RMIC.java, [...]: Reworked import statements and fixed file headers.
[gcc.git] / libjava / ChangeLog
1 2004-10-09 Michael Koch <konqueror@gmx.de>
2
3 * gnu/java/rmi/rmic/RMIC.java,
4 gnu/java/rmi/server/RMIHashes.java,
5 gnu/java/rmi/server/RMIObjectInputStream.java,
6 gnu/java/rmi/server/UnicastConnection.java,
7 gnu/java/rmi/server/UnicastConnectionManager.java,
8 gnu/java/rmi/server/UnicastRemoteCall.java,
9 gnu/java/rmi/server/UnicastServerRef.java:
10 Reworked import statements and fixed file headers.
11
12 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
13
14 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
15 emission rule.
16 * configure: Rebuilt.
17
18 2004-09-30 Tom Tromey <tromey@redhat.com>
19
20 * java/text/MessageFormat.java (Field): Constructor now
21 protected.
22
23 2004-09-30 Tom Tromey <tromey@redhat.com>
24
25 * javax/crypto/MacSpi.java: Fixed typo.
26
27 2004-09-30 Michael Koch <konqueror@gmx.de>
28
29 * java/net/InetAddress.java: Reformatted.
30 (loopback): Initialize with Inet4Address object.
31 (static): Initialize ANY_IF with Inet4Address object.
32 (InetAddress): Removed unused package-private constructor.
33
34 2004-09-30 Michael Koch <konqueror@gmx.de>
35
36 * java/beans/Beans.java,
37 java/beans/EventHandler.java,
38 java/beans/EventSetDescriptor.java,
39 java/beans/Introspector.java,
40 java/beans/PropertyEditorManager.java,
41 java/beans/beancontext/BeanContext.java,
42 java/beans/beancontext/BeanContextChild.java,
43 java/beans/beancontext/BeanContextChildSupport.java,
44 java/beans/beancontext/BeanContextMembershipEvent.java:
45 Reordered import statements and removed redundant modifiers.
46
47 2004-09-29 Tom Tromey <tromey@redhat.com>
48
49 PR libgcj/17715:
50 * Makefile.in: Rebuilt.
51 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
52 files.
53 (all_property_files): New macro.
54
55 * Makefile.in: Rebuilt.
56 * Makefile.am (ordinary_java_source_files): Re-sorted.
57 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
58
59 2004-09-28 Tom Tromey <tromey@redhat.com>
60
61 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
62
63 PR libgcj/17222:
64 * Makefile.am (libgcj.la): Restored.
65 * Makefile.in: Rebuilt.
66
67 2004-09-28 Michael Koch <konqueror@gmx.de>
68
69 * java/net/URLConnection.java: Reformatted.
70 * java/net/URLClassLoader.java: Reformatted.
71 (getContent): Reordered return of content.
72 (getContentHandler): Don't check for null explicitely.
73
74 2004-09-27 Michael Koch <konqueror@gmx.de>
75
76 * java/io/BufferedInputStream.java
77 (BufferedInputStream): Added Jeroen Frijters to authors.
78 (count): Don't explicitely initialize with default value.
79 (pos): Likewise.
80 (marklimit): Likewise.
81 (read): Changed boolean expression to match GNU classpath' version.
82 (reset): Add proper message to exception.
83 (skip): Check for closed stream.
84 (refill): Likewise.
85
86 2004-09-26 Per Bothner <per@bothner.com>
87
88 * prims.cc (unblock_signal): Annotate signum with __unused__ to
89 avoid warnings in the non-POSIX_VERSION case.
90 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
91 so place it inside an #if block.
92 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
93 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
94 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
95 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
96
97 2004-09-26 Per Bothner <per@bothner.com>
98
99 * prims.cc (process_gcj_properties): Optimization.
100
101 2004-09-26 Per Bothner <per@bothner.com>
102
103 * java/util/Collections.java (sort): Copy from array in forwards
104 order, rather than reverse order which may be much less efficient.
105
106 2004-09-26 Mark Wielaard <mark@klomp.org>
107
108 * java/lang/System.java (properties): Make package private.
109 * java/lang/Throwable.java (StaticData.nl): Initialize through
110 directly accessing System.properties.getProperty().
111
112 * java/lang/Throwable.java (nl): Remove static field.
113 (StaticData): New private static inner class.
114 (stackTraceStringBuffer): Use StaticData.nl.
115
116 2004-09-26 Casey Marshall <csm@gnu.org>
117
118 * java/security/ProtectionDomain.java
119 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
120 `true'.
121
122 * java/security/SecureClassLoader.java
123 (defineClass): make protection domain dynamically bound.
124 (getPermissions): call `getCurrentPolicy' to avoid permission
125 check.
126
127 2004-09-25 Mark Wielaard <mark@klomp.org>
128
129 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
130 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
131 * Makefile.in: Regenerated.
132
133 * gcj/javaprims.h: Regenerated.
134
135 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
136 (getDefaultTimeZone): Make package private. Check that GMToffset
137 contains at least one digit.
138 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
139 VMTimeZone.
140 * util/VMTimeZone.java: New file with above methods.
141
142 * java/util/natTimeZone.cc: Removed (renamed).
143 * java/util/natVMTimeZone.cc: Added (renamed).
144
145 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
146
147 * java/util/TimeZone.java
148 (getDefaultTimeZone): Fixed test to distinguish between hours and
149 minutes in specified timezone.
150
151 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
152
153 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
154 handling of default package. (generate): Removed confused comments
155 and code about making Method and Field accessible.
156
157 2004-09-25 Tom Tromey <tromey@redhat.com>
158
159 PR java/17500:
160 * testsuite/libjava.compile/pr17500.java: New file.
161
162 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
163 Mark Wielaard <mark@klomp.org>
164
165 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
166 * gnu/regexp/RETokenLookAhead.java: New file.
167
168 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
169 * Makefile.in: Regenerated.
170
171 2004-09-25 Michael Koch <konqueror@gmx.de>
172
173 * java/io/ObjectStreamField.java:
174 Removed unused import statement.
175
176 2004-09-24 Tom Tromey <tromey@redhat.com>
177
178 PR java/15656:
179 * testsuite/libjava.compile/pr15656.xfail: New file.
180 * testsuite/libjava.compile/pr15656.java: new file.
181
182 PR java/16789:
183 * testsuite/libjava.lang/pr16789.out: New file.
184 * testsuite/libjava.lang/pr16789.java: New file.
185
186 2004-09-24 Andrew Haley <aph@redhat.com>
187
188 PR java/16927
189 * testsuite/libjava.compile/AssertBug.java: New file.
190
191 2004-09-24 Casey Marshall <csm@gnu.org>
192
193 * java/util/PropertyPermissionCollection.java
194 (implies): avoid infinite loop.
195
196 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
197
198 * javax/security/auth/PrivateCredentialPermission.java
199 (PrivateCredentialPermission): added serialization UID
200
201
202 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
203
204 * gnu/java/rmi/server/UnicastServer.java
205 (incomingMessageCall): Added code to handle Errors.
206 * gnu/java/rmi/server/UnicastServerRef.java
207 (incomingMessageCall): Added code to handle Errors.
208
209
210 2004-09-24 Tom Tromey <tromey@redhat.com>
211
212 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
213 (definedPackages): Likewise.
214
215 2004-09-24 Michael Koch <konqueror@gmx.de>
216
217 * java/io/ObjectInputStream.java:
218 Re-ordered imports.
219
220 2004-09-24 Casey Marshall <csm@gnu.org>
221
222 * java/io/ObjectInputStream.java (callReadMethod): re-throw
223 `ClassNotFoundException'.
224
225 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
226
227 * java/io/ObjectInputStream.java (readObject): Delegate instantation
228 of Externalizable classes to ObjectStreamClass.
229 * java/io/ObjectStreamClass.java (newInstance): New method to
230 instantiate Externalizable (while ignoring the accessibility of
231 the constructor). (constructor): New field to cache the constructor.
232
233 2004-09-24 Mark Wielaard <mark@klomp.org>
234
235 * java/net/URL.java (systemClassLoader): New static field.
236 (getURLStreamHandler): Always use system/application classloader
237 for finding URLStreamhandler. Remove unecessary instanceof checks.
238
239 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
240
241 * java/net/URL.java
242 (set): This method now matches the behaviour of the JDK.
243 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
244
245 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
246
247 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
248
249 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
250
251 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
252 Don't set authority if host isn't specified.
253
254 2004-09-24 Michael Koch <konqueror@gmx.de>
255
256 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
257 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
258 * gnu/java/nio/VMPipe.java,
259 gnu/java/nio/VMSelector.java:
260 New files.
261 * gnu/java/nio/natPipeImplEcos.cc,
262 gnu/java/nio/natPipeImplPosix.cc,
263 gnu/java/nio/natPipeImplWin32.cc:
264 Ported to VMPipe.
265 * gnu/java/nio/natSelectorImplEcos.cc,
266 gnu/java/nio/natSelectorImplPosix.cc,
267 gnu/java/nio/natSelectorImplWin32.cc:
268 Ported to VMSelector.
269 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
270 gnu/java/nio/VMSelector.java.
271 * Makefile.in: Regenerated.
272
273 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
274
275 * java/lang/StackTraceElement.java
276 (className): Renamed field to declaringClass to be compatible
277 with Sun serialization format.
278
279 2004-09-23 Michael Koch <konqueror@gmx.de>
280
281 * java/applet/AppletContext.java,
282 java/applet/Applet.java,
283 java/applet/AppletStub.java,
284 java/applet/AudioClip.java:
285 Jalopied and checkstyle clean.
286
287 2004-09-23 Mark Wielaard <mark@klomp.org>
288
289 * java/util/Collections.java
290 (binarySearch(List, Object, Comparator)): Explicitly
291 reverse direction in list iterator.
292 (rotate): Just return when list is empty.
293
294 2004-09-23 Tom Tromey <tromey@redhat.com>
295
296 PR java/17329:
297 * testsuite/libjava.compile/pr17329.java: New file.
298
299 PR java/17380:
300 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
301 9.2-implicit-7.
302
303 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
304
305 * Makefile.am: Run aclocal with -I ../config
306 * acinclude.m4: Delete macros picked up from ../config and tidy.
307 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
308 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
309 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
310
311 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
312
313 * aclocal.m4: Regenerate with aclocal 1.9.2.
314 * configure: Regenerate.
315 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
316 * include/Makefile.in, testsuite/Makefile.in: Likewise.
317
318 2004-09-22 David Daney <ddaney@avtrex.com>
319
320 PR libgcj/17623
321 * java/net/URL.java (URL): Copy userInfo from context.
322 (getUserInfo): Return cached userInfo if present.
323
324 2004-09-22 Tom Tromey <tromey@redhat.com>
325
326 PR libgcj/6182:
327 * mauve-libgcj: Enable java.lang.Character tests.
328
329 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
330
331 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
332 dependencies.
333 (lib_org_ietf_jgss_la_LIBADD): Likewise.
334 * Makefile.in: Regenerated.
335
336 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
337
338 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
339 * configure: Regenerate.
340 * include/config.h.in: Likewise.
341 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
342 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
343 macro to gtkpeer.h.
344 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
345 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
346 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
347 architectures.
348 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
349 Likewise.
350
351 2004-09-22 Tom Tromey <tromey@redhat.com>
352
353 PR libgcj/14446:
354 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
355 when comparing CRCs.
356 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
357 field.
358 (read()): New overload.
359
360 2004-09-21 Tom Tromey <tromey@redhat.com>
361
362 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
363 Indentation fix.
364
365 2004-09-21 Michael Koch <konqueror@gmx.de>
366
367 * java/net/Socket.java
368 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
369
370 2004-09-21 Casey Marshall <csm@gnu.org>
371
372 * javax/crypto/MacSpi.java (clone): Provide meaningful
373 implementation.
374
375 2004-09-21 Tom Tromey <tromey@redhat.com>
376
377 PR libgcj/16869:
378 * Makefile.in: Rebuilt.
379 * Makefile.am (MOSTLYCLEANFILES): Removed.
380 (mostlyclean-local): Remove header files.
381
382 2004-09-21 Casey Marshall <csm@gnu.org>
383
384 * java/security/cert/X509CRLSelector.java:
385 (match): remove unreachable try-catch clauses.
386 Reported by: Dalibor Topic <robilad@kaffe.org>
387
388 2004-09-21 Mark Wielaard <mark@klomp.org>
389
390 * java/util/TreeMap.java (root): Don't initialize.
391 (TreeMap(Comparator)): Call fabricateTree(0).
392 (fabricateTree): Initialize root and size when count is 0.
393
394 2004-09-21 Sven de Marothy <sven@physto.se>
395
396 * java/nio/ByteBuffer.java (hashCode): Implemented.
397 * java/nio/CharBuffer.java: Likewise.
398 * java/nio/DoubleBuffer.java: Likewise.
399 * java/nio/FloatBuffer.java: Likewise.
400 * java/nio/LongBuffer.java: Likewise.
401 * java/nio/IntBuffer.java: Likewise.
402 * java/nio/ShortBuffer.java: Likewise.
403
404 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
405
406 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
407
408 2004-09-21 Michael Koch <konqueror@gmx.de>
409
410 * javax/net/ssl/SSLServerSocket.java:
411 Removed comment about "Do not edit this file, it's generated.".
412
413 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
414
415 Import the big Crypto/Jessie/Security merge from Classpath.
416
417 * Makefile.am: Add imported files.
418 * Makefile.in: Regenerate.
419
420 2004-08-14 Casey Marshall <csm@gnu.org>
421
422 The Big Crypto Merge of 2004.
423
424 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
425 Crypto's version.
426
427 Files imported from GNU Crypto.
428 * javax/crypto/BadPaddingException.java
429 * javax/crypto/Cipher.java
430 * javax/crypto/CipherInputStream.java
431 * javax/crypto/CipherOutputStream.java
432 * javax/crypto/CipherSpi.java
433 * javax/crypto/EncryptedPrivateKeyInfo.java
434 * javax/crypto/ExemptionMechanism.java
435 * javax/crypto/ExemptionMechanismException.java
436 * javax/crypto/ExemptionMechanismSpi.java
437 * javax/crypto/IllegalBlockSizeException.java
438 * javax/crypto/KeyAgreement.java
439 * javax/crypto/KeyAgreementSpi.java
440 * javax/crypto/KeyGenerator.java
441 * javax/crypto/KeyGeneratorSpi.java
442 * javax/crypto/Mac.java
443 * javax/crypto/MacSpi.java
444 * javax/crypto/Makefile.am
445 * javax/crypto/NoSuchPaddingException.java
446 * javax/crypto/NullCipher.java
447 * javax/crypto/NullCipherImpl.java
448 * javax/crypto/SealedObject.java
449 * javax/crypto/SecretKey.java
450 * javax/crypto/SecretKeyFactory.java
451 * javax/crypto/SecretKeyFactorySpi.java
452 * javax/crypto/ShortBufferException.java
453 * javax/crypto/interfaces/DHKey.java
454 * javax/crypto/interfaces/DHPrivateKey.java
455 * javax/crypto/interfaces/DHPublicKey.java
456 * javax/crypto/interfaces/PBEKey.java
457 * javax/crypto/spec/DESKeySpec.java
458 * javax/crypto/spec/DESedeKeySpec.java
459 * javax/crypto/spec/DHGenParameterSpec.java
460 * javax/crypto/spec/DHParameterSpec.java
461 * javax/crypto/spec/DHPrivateKeySpec.java
462 * javax/crypto/spec/DHPublicKeySpec.java
463 * javax/crypto/spec/IvParameterSpec.java
464 * javax/crypto/spec/PBEKeySpec.java
465 * javax/crypto/spec/PBEParameterSpec.java
466 * javax/crypto/spec/RC2ParameterSpec.java
467 * javax/crypto/spec/RC5ParameterSpec.java
468 * javax/crypto/spec/SecretKeySpec.java
469 * javax/security/auth/AuthPermission.java
470 * javax/security/auth/DestroyFailedException.java
471 * javax/security/auth/Destroyable.java
472 * javax/security/auth/Policy.java
473 * javax/security/auth/PrivateCredentialPermission.java
474 * javax/security/auth/RefreshFailedException.java
475 * javax/security/auth/Refreshable.java
476 * javax/security/auth/Subject.java
477 * javax/security/auth/SubjectDomainCombiner.java
478 * javax/security/auth/callback/Callback.java
479 * javax/security/auth/callback/CallbackHandler.java
480 * javax/security/auth/callback/ChoiceCallback.java
481 * javax/security/auth/callback/ConfirmationCallback.java
482 * javax/security/auth/callback/LanguageCallback.java
483 * javax/security/auth/callback/NameCallback.java
484 * javax/security/auth/callback/PasswordCallback.java
485 * javax/security/auth/callback/TextInputCallback.java
486 * javax/security/auth/callback/TextOutputCallback.java
487 * javax/security/auth/callback/UnsupportedCallbackException.java
488 * javax/security/auth/login/AccountExpiredException.java
489 * javax/security/auth/login/AppConfigurationEntry.java
490 * javax/security/auth/login/Configuration.java
491 * javax/security/auth/login/CredentialExpiredException.java
492 * javax/security/auth/login/FailedLoginException.java
493 * javax/security/auth/login/LoginContext.java
494 * javax/security/auth/login/LoginException.java
495 * javax/security/auth/login/NullConfiguration.java
496 * javax/security/auth/x500/X500PrivateCredential.java
497 * javax/security/sasl/AuthenticationException.java
498 * javax/security/sasl/AuthorizeCallback.java
499 * javax/security/sasl/RealmCallback.java
500 * javax/security/sasl/RealmChoiceCallback.java
501 * javax/security/sasl/Sasl.java
502 * javax/security/sasl/SaslClient.java
503 * javax/security/sasl/SaslClientFactory.java
504 * javax/security/sasl/SaslException.java
505 * javax/security/sasl/SaslServer.java
506 * javax/security/sasl/SaslServerFactory.java
507 * org/ietf/jgss/ChannelBinding.java
508 * org/ietf/jgss/GSSContext.java
509 * org/ietf/jgss/GSSCredential.java
510 * org/ietf/jgss/GSSException.java
511 * org/ietf/jgss/GSSManager.java
512 * org/ietf/jgss/GSSName.java
513 * org/ietf/jgss/MessageProp.java
514 * org/ietf/jgss/Oid.java
515 * org/ietf/jgss/MessagesBundle.properties
516
517 Files imported from Jessie <http://www.nongnu.org/jessie/>
518 * javax/net/ServerSocketFactory.java
519 * javax/net/SocketFactory.java
520 * javax/net/VanillaServerSocketFactory.java
521 * javax/net/VanillaSocketFactory.java
522 * javax/net/ssl/HandshakeCompletedEvent.java
523 * javax/net/ssl/HandshakeCompletedListener.java
524 * javax/net/ssl/HostnameVerifier.java
525 * javax/net/ssl/HttpsURLConnection.java
526 * javax/net/ssl/KeyManager.java
527 * javax/net/ssl/KeyManagerFactory.java
528 * javax/net/ssl/KeyManagerFactorySpi.java
529 * javax/net/ssl/ManagerFactoryParameters.java
530 * javax/net/ssl/SSLContext.java
531 * javax/net/ssl/SSLContextSpi.java
532 * javax/net/ssl/SSLException.java
533 * javax/net/ssl/SSLHandshakeException.java
534 * javax/net/ssl/SSLKeyException.java
535 * javax/net/ssl/SSLPeerUnverifiedException.java
536 * javax/net/ssl/SSLPermission.java
537 * javax/net/ssl/SSLProtocolException.java
538 * javax/net/ssl/SSLServerSocket.java
539 * javax/net/ssl/SSLServerSocketFactory.java
540 * javax/net/ssl/SSLSession.java
541 * javax/net/ssl/SSLSessionBindingEvent.java
542 * javax/net/ssl/SSLSessionBindingListener.java
543 * javax/net/ssl/SSLSessionContext.java
544 * javax/net/ssl/SSLSocket.java
545 * javax/net/ssl/SSLSocketFactory.java
546 * javax/net/ssl/TrivialHostnameVerifier.java
547 * javax/net/ssl/TrustManager.java
548 * javax/net/ssl/TrustManagerFactory.java
549 * javax/net/ssl/TrustManagerFactorySpi.java
550 * javax/net/ssl/X509KeyManager.java
551 * javax/net/ssl/X509TrustManager.java
552 * javax/security/cert/Certificate.java
553 * javax/security/cert/CertificateEncodingException.java
554 * javax/security/cert/CertificateException.java
555 * javax/security/cert/CertificateExpiredException.java
556 * javax/security/cert/CertificateNotYetValidException.java
557 * javax/security/cert/CertificateParsingException.java
558 * javax/security/cert/X509CertBridge.java
559 * javax/security/cert/X509Certificate.java
560
561 2004-08-20 Casey Marshall <csm@gnu.org>
562
563 * java/security/cert/X509CRLSelector.java: New file.
564 * java/security/cert/X509CertSelector.java: New file.
565
566 2004-09-15 Michael Koch <konqueror@gmx.de>
567
568 * gnu/java/net/protocol/file/Handler.java
569 (openConnection): Don't throw exception if host part for file: URI is
570 present. setURL() keeps file: protocol if ftp: protocol is not
571 available.
572
573 2004-09-14 Richard Henderson <rth@redhat.com>
574
575 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
576 value of sigsuspend.
577
578 2004-09-12 Tom Tromey <tromey@redhat.com>
579
580 * javax/naming/CompoundName.java (CompoundName): Don't check for
581 separator in "flat" case.
582
583 2004-09-12 Michael Koch <konqueror@gmx.de>
584
585 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
586 AM_CONFIG_HEADER by AC_CONFIG_FILES.
587 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
588 Regenerate.
589
590 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
591
592 PR libgcj/14751
593 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
594 handle in newly-allocated _Jv_Thread_t.
595 (_Jv_ThreadDestroyData): Close thread handle.
596 (_Jv_ThreadStart): Remove obsolete comment.
597 Store handle of newly-created thread in _Jv_Thread_t.
598 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
599 before including <windows.h>
600 #define _Jv_HaveCondDestroy
601
602 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
603
604 * java/lang/natThread.cc (finalize_native): Destroy
605 join conditional variable and mutex if these destroy
606 operations are supported.
607
608 2004-09-10 Dalibor Topic <robilad@kaffe.org>
609
610 * gnu/java/net/protocol/file/Connection.java (permission): New field.
611 (DEFAULT_PERMISSION): New constant.
612 (Connection): Create a FilePermission with permission to read file.
613
614 2004-09-10 Michael Koch <konqueror@gmx.de>
615
616 * gnu/java/net/protocol/file/Connection.java
617 (getLastModified): Moved around.
618 (getPermission): Return stored permission.
619
620 2004-09-10 Michael Koch <konqueror@gmx.de>
621
622 * Makefile.in: Regenerate.
623
624 2004-09-10 Michael Koch <konqueror@gmx.de>
625
626 * Makefile.am: Reverted accidently commited stuff.
627 * configure: Regenerated.
628
629 2004-09-10 Michael Koch <konqueror@gmx.de>
630
631 * gnu/java/net/protocol/file/Connection.java
632 (lineSeparator): Made non-final.
633 (static): Removed.
634 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
635 instead of StringBufferInputStream.
636
637 2004-09-10 Michael Koch <konqueror@gmx.de>
638
639 * gnu/java/net/protocol/file/Connection.java
640 (connect): Handle file is a directory case.
641
642 2004-09-10 Michael Koch <konqueror@gmx.de>
643
644 * Makefile.am
645 (xlib_includes): Removed.
646 (AM_CPPFLAGS): Renamed from INCLUDES.
647 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
648 * Makefile.in: Regenerate.
649
650 2004-09-09 Michael Koch <konqueror@gmx.de>
651
652 * java/security/ProtectionDomain.java,
653 * java/util/PropertyPermissionCollection.java:
654 Fixed javadocs all over.
655
656 2004-09-09 Sven de Marothy <sven@physto.se>
657
658 Patch from David Gilbert <david.gilbert@object-refinery.com>
659 * java/lang/Comparable.java: Fixed documentation errors.
660 * java/util/Arrays.java: Likewise.
661
662 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
663
664 * java/net/Inet4Address.java
665 (Inet4Address): Added comment to serialization UID.
666 * java/text/Format.java
667 (Format): Added comment to serialization UID.
668
669 2004-09-09 Michael Koch <konqueror@gmx.de>
670
671 * java/lang/System.java
672 (err): Fixed javadoci to point to setErr() and not setOut().
673
674 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
675
676 (normalizePath): Added special case for windows systems.
677
678 2004-09-09 Michael Koch <konqueror@gmx.de>
679
680 * java/io/File.java
681 (dupSeparator): Made private.
682 (File(URI)): New constructor.
683 (getParentFile): Fixed javadoc.
684 (createTempFile): Reformated.
685 (setReadOnly): Added comment.
686 (deleteOnExit): Merged javadoc with classpath version.
687
688 2004-09-09 Michael Koch <konqueror@gmx.de>
689
690 * Makefile.am: Don't try to include deps.mk.
691 * Makefile.in: Regenerated.
692
693 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
694
695 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
696 .d files.
697 * configure: Rebuilt.
698
699 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
700
701 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
702 Changed pfn from static local to local.
703
704 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
705 H.J. Lu <hongjiu.lu@intel.com>
706
707 PR libgcj/17290
708 * Makefile.am (GCJCOMPILE): Remove definition.
709 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
710 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
711 * Makefile.in: Rebuilt.
712
713 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
714
715 * configure.ac (enable-gc-debug): Update help for new syntax.
716 * configure: Regenerate.
717
718 2004-09-03 David Daney <ddaney@avtrex.com>
719
720 * include/mips-signal.h: Update copyright.
721
722 2004-09-03 David Daney <ddaney@avtrex.com>
723
724 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
725 * include/mips-signal.h: Added HANDLE_FPE support.
726
727 2004-08-31 Michael Koch <konqueror@gmx.de>
728
729 * javax/swing/plaf/basic/BasicTextAreaUI.java
730 (create): New method.
731 * javax/swing/text/DefaultHighlighter.java
732 (DefaultHighlightPainter.debugRect): Removed.
733 * javax/swing/text/StyleContext.java
734 (DEFAULT_STYLE): New field.
735
736 2004-08-31 Michael Koch <konqueror@gmx.de>
737
738 * javax/swing/plaf/basic/BasicLookAndFeel.java
739 (initComponentDefaults): Add keybindings for selection.backward and
740 selection-forward for text components.
741 * javax/swing/plaf/basic/BasicTextUI.java
742 (paintSafely): Paint highlight only when something is actually
743 selected.
744 * javax/swing/text/DefaultCaret.java
745 (handleHighlight): New method.
746 (setSelectionVisible): Don't do anything when nothing changes.
747 Handle highlight.
748 (moveDot): Reimplemented. Handle highlight.
749 (setDot): Set mark too. Handle highlight.
750 (getSelectionPainter): New method.
751 * javax/swing/text/DefaultEditorKit.java
752 (defaultActions): Added new actions for text selection.
753 * javax/swing/text/DefaultHighlighter.java
754 (DefaultHighlightPainter): New inner class.
755 (DefaultPainter): New field.
756 (paint): Implemented.
757 * javax/swing/text/PlainView.java
758 (paint): Don't draw background here again.
759 * javax/swing/text/Utilities.java
760 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
761 (drawTabbedText): Likewise.
762
763 2004-08-31 Graydon Hoare <graydon@redhat.com>
764
765 * javax/swing/JComponent.java
766 (resetKeyboardActions): Add null checks.
767
768 2004-08-31 Graydon Hoare <graydon@redhat.com>
769
770 * javax/swing/DefaultButtonModel.java:
771 Skip group notification when no group is set.
772
773 2004-08-31 Graydon Hoare <graydon@redhat.com>
774
775 * javax/swing/JColorChooser.java:
776 Make a couple inner classes static, for jikes.
777
778 2004-08-31 Michael Koch <konqueror@gmx.de>
779
780 * javax/swing/plaf/basic/BasicTextUI.java
781 (RottView.modelToView): New method.
782 (UpdateHandler): Renamed from EventHandler.
783 (updateHandler): Renamed from eventHandler.
784 (modelToView): Implemented.
785 * javax/swing/text/AbstractDocument.java
786 (BranchElement.getElement): Return null for non-existing indeces.
787 (BranchElement.getElementIndex): Return 0 in some corner cases.
788 * javax/swing/text/FieldView.java
789 (modelToView): New method.
790 * javax/swing/text/PlainView.java
791 (modelToView): Made public.
792
793 2004-08-31 Kim Ho <kho@redhat.com>
794
795 * Makefile.am: New files.
796 * Makefile.in: Regenerate.
797 * gcj/Makefile.in: Regenerate.
798 * include/Makefile.in: Regenerate.
799 * java/awt/Color.java: Fix documentation.
800 (RGBtoHSB): Use floats for conversions.
801 * javax/swing/ButtonGroup.java: Run Jalopy.
802 (setSelected): Reimplement.
803 * javax/swing/DefaultButtonModel.java: Run Jalopy.
804 (changeState): Let ButtonGroup know that the button
805 is changing state.
806 * javax/swing/JColorChooser.java: Implement.
807 * javax/swing/JLabel.java: Run Jalopy.
808 * javax/swing/JSpinner.java: Run Jalopy.
809 (setValue): New method.
810 * javax/swing/JTabbedPane.java: Run Jalopy.
811 (removeTabAt): Call correct remove method.
812 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
813 (getPreviousValue): Compare minimum value.
814 * javax/swing/Timer.java: Run Jalopy.
815 (run): Comment out println.
816 * javax/swing/ToolTipManager.java:
817 (mouseMoved): Get new tooltip text for location.
818 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
819 Jalopy and Javadoc.
820 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
821 Implement.
822 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
823 Run Jalopy.
824 (setSelectedColor): Fire ChangeEvent.
825 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
826 New file. Implement.
827 * javax/swing/colorchooser/DefaultPreviewPanel.java:
828 Ditto.
829 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
830 Ditto.
831 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
832 Ditto.
833 * javax/swing/plaf/basic/BasicArrowButton.java:
834 (getArrow): Fix size of upward pointing button.
835 * javax/swing/plaf/basic/BasicColorChooserUI.java:
836 Implement.
837 * javax/swing/plaf/basic/BasicSliderUI.java:
838 (getWidthOfWidestLabel): Use preferred dimensions.
839 (getHeightOfTallestLabel): Ditto.
840 * javax/swing/plaf/basic/BasicSpinnerUI.java:
841 Run Jalopy.
842 (mousePressed): Disable changes to spinner if it is not enabled.
843 * testsuite/Makefile.in: Regenerate.
844
845
846 2004-08-31 Michael Koch <konqueror@gmx.de>
847
848 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
849 javax/swing/plaf/basic/BasicTableUI.java:
850 Added copyright notice.
851
852 2004-08-31 Olga Rodimina <rodimina@redhat.com>
853
854 * Makefile.am: Added new files.
855 * Makefile.in: Regenerate.
856 * javax/swing/ComboBoxEditor.java: Added javadocs.
857 * javax/swing/ComboBoxModel.java: Likewise.
858 * javax/swing/DefaultComboBoxModel.java: Implemented.
859 * javax/swing/DefaultListCellRenderer.java: Added javadocs
860 and ran through jalopy to fix formatting style.
861 (getListCellRendererComponent): Use appropriate border
862 if renderer has focus and use noFocusBorder when it doesn't.
863 * javax/swing/JComboBox.java: Implemented.
864 * javax/swing/JList.java:
865 (locationToIndex): New Method. Implemented.
866 (indexToLocation): New Method.
867 * javax/swing/JPopupMenu.java:
868 (visible): New field.
869 (isVisible): Changed to use new field above.
870 (setVisible): Likewise.
871 * javax/swing/MutableComboBoxModel.java: Added javadocs.
872 * javax/swing/plaf/basic/BasicArrowButton.java:
873 (shadow): Changed default color to Color.gray.
874 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
875 UI delegate for JComboBox.
876 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
877 Popup menu containing list of JComboBox's items.
878 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
879 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
880 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
881 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
882 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
883 (popupMenuWillBecomeVisible): Set selected path to the first
884 element only if it is of type MenuElement. Also fix formatting
885 style.
886 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
887 methods signatures.
888
889 2004-08-31 Michael Koch <konqueror@gmx.de>
890
891 * javax/swing/text/AbstractDocument.java
892 (createBranchElement): Use new constructor of BranchElement.
893 (createLeafElement): Renamed arguments.
894 (getRootElements): Implemented.
895 (BranchElement.start): Removed.
896 (BranchElement.end): Likewise.
897 (BranchElement.BranchElement): Fixed arguments.
898 (BranchElement.getEndOffset): Reimplemented.
899 (BranchElement.getStartOffset): Likewis.
900 * javax/swing/text/DefaultCaret.java
901 (paint): Draw simple vertical line as caret instead of a rectangle.
902 * javax/swing/text/JTextComponent.java
903 (setText): Use doc directly.
904 * javax/swing/text/PlainView.java
905 (nextTabStop): Implemented.
906 * javax/swing/text/Utilities.java
907 (drawTabbedText): nextTabStop() returns an absolute x position.
908 (getTabbedTextWidth): Likewise.
909
910 2004-08-31 Graydon Hoare <graydon@redhat.com>
911
912 * java/awt/Component.java
913 (isFocusTraversable): Predicate on isLightweight()
914 (setFocusable): Set isFocusTraversableOverridden.
915 (requestFocus): Predicate peer dispatch on !isLightweight()
916 (requestFocusInWindow): Likewise.
917 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
918 * java/awt/Container.java
919 (dispatchEventImpl): Predicate on event mask.
920 (LightweightDispatcher): Remove focus machinery.
921 * java/awt/DefaultFocusTraversalPolicy.java
922 (accept): Expand predicate to include isFocusable().
923 * java/awt/DefaultKeyboardFocusManager.java:
924 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
925 * java/awt/KeyboardFocusManager.java
926 (redispatchEvent): Synchronize on event to prevent feedback.
927 * javax/swing/AbstractButton.java
928 (ButtonFocusListener): Remove class.
929 (init): Set focusPainted, focusable.
930 * javax/swing/ActionMap.java (get): Check parent for null.
931 * javax/swing/InputMap.java (get): Likewise.
932 * javax/swing/JComponent.java
933 (inputMap_whenFocused): New InputMap.
934 (inputMap_whenAncestorOfFocused): Likewise.
935 (inputMap_whenInFocusedWindow): Likewise.
936 (getActionForKeyStroke): Rewrite.
937 (getConditionForKeystroke): Likewise.
938 (ActionListenerProxy): New private class.
939 (setInputMap): Implement.
940 (getInputMap): Likewise.
941 (setActionMap): Likewise.
942 (getActionMap): Likewise.
943 (processComponentKeyEvent): New empty method.
944 (processKeyEvent): Implement.
945 (processKeyBinding): Likewise.
946 (resetKeyboardActions): Rewrite.
947 * javax/swing/KeyStroke.java: Rewrite.
948 * javax/swing/SwingUtilities.java
949 (notifyAction): Implement.
950 (replaceUIActionMap): Likewise.
951 (replaceUIInputMap): Likewise.
952 * javax/swing/plaf/basic/BasicButtonListener.java
953 (focusGained): Implement.
954 (focusLost): Repaint if focusPainted().
955 (installKeyboardActions): Install pressed / released actions.
956 (uninstallKeyboardActions): Implement.
957 * javax/swing/plaf/basic/BasicButtonUI.java
958 (focusColor): New field.
959 (installDefaults): Load focus color, install input map.
960 (installKeyboardActions): Implement.
961 (uninstallKeyboardActions): Likewise.
962 (paintFocus): Rewrite.
963 * javax/swing/plaf/basic/BasicLookAndFeel.java
964 (Button.focus): New default, midPurple.
965 * javax/swing/plaf/basic/BasicTextUI.java
966 (kit): Make static.
967 (installUI): Get doc from kit, load defaults.
968 (getKeymapName): Implement.
969 (createKeymap): Likewise.
970 (installKeyboardActions): Likewise.
971 (getInputMap): Likewise.
972 (getActionMap): Likewise.
973 (createActionMap): Likewise.
974 * javax/swing/text/AbstractDocument.java
975 (getStartPosition): Implement.
976 (getEndPosition): Likewise.
977 * javax/swing/text/DefaultEditorKit.java
978 (CopyAction): New class.
979 (CutAction): Likewise.
980 (DefaultKeyTypedAction): Likewise.
981 (InsertBreakAction): Likewise.
982 (InsertContentAction): Likewise.
983 (InsertTabAction): Likewise.
984 (PasteAction): Likewise.
985 (defaultActions): New static table.
986 (createCaret): Implement.
987 (getActions): Likewise.
988 * javax/swing/text/JTextComponent.java
989 (KeymapWrapper): New private class.
990 (KeymapActionMap): Likewise.
991 (DefaultKeymap): New class.
992 (keymaps): New static table.
993 (keymap): New field.
994 (getKeymap): Implement.
995 (removeKeymap): Likewise.
996 (addKeymap): Likewise.
997 (setKeymap): Likewise.
998 (loadKeymap): Likewise.
999 (getActions): Likewise.
1000 (margin): New field.
1001 (JTextComponent): Build and install default keymap.
1002 * javax/swing/text/TextAction.java
1003 (textAction): Call super properly.
1004 (getTextComponent): Implement.
1005 * javax/swing/text/Utilities.java
1006 (drawTabbedText): Adjust position by ascent.
1007
1008 2004-08-31 David Jee <djee@redhat.com>
1009
1010 PR AWT/17156
1011
1012 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1013 (setEnabled): Make it a native method.
1014 * java/awt/DefaultKeyboardFocusManager.java
1015 (postProcessKeyEvent): Only post event if the menu item
1016 is active.
1017 * java/awt/MenuItem.java:
1018 Private field 'enabled' should be true by default.
1019 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1020 (setEnabled): New function.
1021
1022 2004-08-31 David Jee <djee@redhat.com>
1023
1024 PR AWT/17059
1025
1026 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
1027 (nativeSetHelpMenu): New native method declaration.
1028 (addHelpMenu): Call nativeSetHelpMenu().
1029 (addMenu): Remove.
1030 * java/awt/MenuBar.java
1031 (setHelpMenu): Call addNotify() on the new help menu.
1032 (add): Call addNotify() on the new menu.
1033 (addNotify): Set the help menu if one exists.
1034 * java/awt/peer/MenuBarPeer.java
1035 (addMenu): Remove.
1036 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1037 (nativeSetHelpMenu): New method.
1038
1039 2004-08-31 Graydon Hoare <graydon@redhat.com>
1040
1041 * Makefile.am: Add new files.
1042 * Makefile.in: Regenerate.
1043 * javax/swing/Box.java: Fix setting of layout in ctor.
1044 * javax/swing/JScrollPane.java: Scroll headers as well.
1045 * javax/swing/JTable.java: Reimplement.
1046 * javax/swing/JViewPort.java: Only add non-null children.
1047 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
1048 * javax/swing/Timer.java: Fix stopping null waker.
1049 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
1050 * javax/swing/plaf/basic/BasicTableUI.java: New file.
1051 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
1052 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
1053 * javax/swing/table/DefaultTableModel.java: Clean up.
1054 * javax/swing/table/JTableHeader.java: Implement.
1055
1056 2004-08-31 Mark Wielaard <mark@klomp.org>
1057
1058 * javax/swing/JSpinner.java (getChangeListeners): Remove double
1059 semi-colon.
1060
1061 2004-08-31 Mark Wielaard <mark@klomp.org>
1062
1063 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1064 Declare variables at top of functions/block.
1065 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
1066
1067 2004-08-31 Mark Wielaard <mark@klomp.org>
1068
1069 * java/lang/Rectangle.java (intersects): Check r.width and r.height
1070 first.
1071
1072 2004-08-31 Michael Koch <konqueror@gmx.de>
1073
1074 * javax/swing/text/PlainView.java
1075 (selectedColor): New field.
1076 (unselectedColor): Likewise.
1077 (font): Likewise.
1078 (updateMetrics): New method.
1079 (lineToRect): Likewise.
1080 (modelToView): Likewise.
1081 (drawSelectedText): Use color from JTextComponent ad draw with
1082 Utilities class.
1083 (drawUnselectedText): Likewise.
1084 (paint): Initialize helper fields.
1085 * javax/swing/text/View.java
1086 (getChildAllocation): New method.
1087 (getViewIndex): Likewise.
1088 (getToolTipText): Likewise.
1089
1090 2004-08-31 Michael Koch <konqueror@gmx.de>
1091
1092 * javax/swing/text/Utilities.java
1093 (drawTabbedText): Reimplemented.
1094 (getTabbedTextWidth): Likewise.
1095
1096 2004-08-31 Michael Koch <konqueror@gmx.de>
1097
1098 * javax/swing/plaf/basic/BasicTextUI.java
1099 (installDefaults): Install caret and highlighter.
1100 (modelToView): Use Bias.Forward when calling sibling.
1101 * javax/swing/text/AbstractDocument.java
1102 (ElementEdit): Implements DocumentEvent.ElementChange.
1103 (ElementEdit.ElementEdit): New method.
1104 (ElementEdit.getChildrenAdded): Likewise.
1105 (ElementEdit.getChildrenRemoved): Likewise.
1106 (ElementEdit.getElement): Likewise.
1107 (ElementEdit.getIndex): Likewise.
1108 * javax/swing/text/DefaultCaret.java
1109 (color): Removed.
1110 (textComponent): Renamed from parent, made private.
1111 (selectionVisible): Renamed from vis_sel, made private.
1112 (blinkRate): Renamed from blink, made private.
1113 (magicCaretPosition): Renamed from magic, made private.
1114 (visible): Renamed from vis, made private.
1115 (dot): Made private.
1116 (mark): Likewise.
1117 (deinstall): Remove as MouseMotionListener.
1118 (install): Initialize textComponent first. Add as MouseMotionListener.
1119 (paint): Reimplemented.
1120 * javax/swing/text/JTextComponent.java
1121 (setCaret): Deinstall old caret, install new one and fire property
1122 change after setting property.
1123 (setHighlighter): Deinstall old highlighter, install new one and fire
1124 property change after setting property.
1125 (setCaretColor): Fire property change after setting property.
1126 (setDisabledTextColor): Likewise.
1127 (setSelectedTextColor): Likewise.
1128 (setSelectionColor): Likewise.
1129 (modelToView): New method.
1130
1131 2004-08-31 Michael Koch <konqueror@gmx.de>
1132
1133 * javax/swing/text/AbstractDocument.java
1134 (getText): Simplified.
1135 * javax/swing/text/Segment.java
1136 (current): New field.
1137 (current): Reimplemented.
1138 (first): Likewise.
1139 (getIndex): Likewise.
1140 (last): Likewise.
1141 (next): Likewise.
1142 (previous): Likewise.
1143 (setIndex): Likewise.
1144
1145 2004-08-31 Michael Koch <konqueror@gmx.de>
1146
1147 * javax/swing/plaf/basic/BasicButtonUI.java
1148 (defaultTextIconGap): Made protected.
1149 (defaultTextShiftOffset): Likewise.
1150 (textShiftOffset): New field.
1151 (clearTextShiftOffset): New method.
1152 (getTextShiftOffset): Likewise.
1153 (setTextShiftOffset): Likewise.
1154
1155 2004-08-31 Michael Koch <konqueror@gmx.de>
1156
1157 * javax/swing/plaf/basic/BasicTextUI.java
1158 (installUI): Add eventHandler as property listener.
1159 (uninstallUI): remove eventHandler as propert listener.
1160 (installDefaults): Added comment.
1161 (installListeners): Likewise.
1162 (installKeyboardActions): Likewise.
1163 (uninstallDefaults): Likewise.
1164 (uninstallListeners): Likewise.
1165 (uninstallKeyboardActions): Likewise.
1166
1167 2004-08-31 Michael Koch <konqueror@gmx.de>
1168
1169 * javax/swing/text/AbstractDocument.java:
1170 Fixed some typos in comments.
1171 (insertString): Reimplemented.
1172 (remove): Likewise.
1173 (replace): New method.
1174 (children): Dont use fully qualified class name.
1175 (DefaultDocumentEvent.offset): Renamed from off.
1176 (DefaultDocumentEvent.length): Renamed from len.
1177 (DefaultDocumentEvent.type): New field.
1178 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1179 (DefaultDocumentEvent.getType): Implemented.
1180
1181 2004-08-31 Michael Koch <konqueror@gmx.de>
1182
1183 * javax/swing/plaf/basic/BasicTextUI.java
1184 (RootView.textComponent): Removed.
1185 (RootView.RootView): Don't initialize textComponent.
1186 (RootView.getViewFactory): New method.
1187 (EventHandler): New inner class.
1188 (rootView): Initialize at instance creation.
1189 (eventHandler): New field.
1190 (installUI): Don't create view hierarchy directly,
1191 call modelChanged() instead.
1192 (modelChanged): New method.
1193 * javax/swing/text/JTextComponent.java
1194 (setDocument): Fire property change event.
1195
1196 2004-08-31 Michael Koch <konqueror@gmx.de>
1197
1198 * javax/swing/plaf/basic/BasicTextUI.java
1199 (RootView.paint): Removed debug output.
1200 (paintSafely): Draw highlighter before text.
1201 (paintBackground): Use background color of text component.
1202 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1203 Reformatted.
1204
1205 2004-08-31 Michael Koch <konqueror@gmx.de>
1206
1207 * javax/swing/plaf/basic/BasicToolBarUI.java
1208 (BasicToolBarUI): Fixed arguments for constructor.
1209 (createUI): Fixed creation of object.
1210
1211 2004-08-31 Michael Koch <konqueror@gmx.de>
1212
1213 * javax/swing/DefaultListSelectionModel.java
1214 (fireValueChanged): Renamed from fireSelectionValueChanged,
1215 made protected.
1216
1217 2004-08-31 Michael Koch <konqueror@gmx.de>
1218
1219 * javax/swing/text/TabSet.java
1220 (TabSet): Implements java.io.Serializable.
1221 * javax/swing/text/TabStop.java
1222 (TabStop): Implements java.io.Serializable.
1223 (TabStop): Made public.
1224
1225 2004-08-31 Michael Koch <konqueror@gmx.de>
1226
1227 * javax/swing/JComponent.java
1228 (setUI): Fire PropertyChange.
1229 * javax/swing/JLabel.java
1230 (text): Renamed from labelText.
1231 (horizontalAlignment): New default vlaue.
1232 (icon): Renamed from activeIcon.
1233 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1234 (displayedMnemonicIndex): Renamed from underlineChar.
1235 (setDisplayedMnemonic): Reimplemented.
1236 * javax/swing/JRadioButton.java
1237 (JRadioButton): New constructors.
1238 * javax/swing/JTextField.java
1239 (JTextField): Throw exception if colums < 0, initialitialz
1240 this.columns directly and initialize document with text conditionally.
1241
1242 2004-08-31 Michael Koch <konqueror@gmx.de>
1243
1244 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1245 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1246 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1247 * javax/swing/text/FieldView.java
1248 (paint): Just call super method for now.
1249 * Makefile.am: Added new files.
1250 * Makefile.in: Regenerated.
1251
1252 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1253
1254 * javax/swing/AbstractSpinnerModel.java,
1255 javax/swing/JSpinner.java,
1256 javax/swing/SpinnerNumberModel.java,
1257 javax/swing/plaf/basic/BasicSpinnerUI.java:
1258 New files.
1259 * javax/swing/plaf/basic/BasicLookAndFeel.java
1260 (initClassDefaults): Added defaults for BasicSpinnerUI.
1261
1262 2004-08-31 Michael Koch <konqueror@gmx.de>
1263
1264 * Makefile.am: Added new files.
1265 * Makefile.in: Regenerated.
1266
1267 2004-08-31 Michael Koch <konqueror@gmx.de>
1268
1269 * javax/swing/TransferHandler.java,
1270 javax/swing/plaf/basic/ComboPopup.java: New files
1271 * Makefile.am: Added javax/swing/TransferHandler.java and
1272 javax/swing/plaf/basic/ComboPopup.java
1273 * Makefile.in: Regenerated.
1274
1275 2004-08-31 Roman Kennke <roman@ontographics.com>
1276
1277 * javax/swing/text/Utilities.java: New file.
1278
1279 2004-08-31 Michael Koch <konqueror@gmx.de>
1280
1281 * Makefile.am: Added javax/swing/text/Utilities.java.
1282 * Makefile.in: Regenerated.
1283
1284 2004-08-31 Graydon Hoare <graydon@redhat.com>
1285
1286 * javax/swing/text/SimpleAttributeSet.java: New file.
1287 * javax/swing/text/StyleConstants.java: New file.
1288 * javax/swing/text/StyleContext.java: New file.
1289 * javax/swing/text/TabSet.java: New file.
1290 * javax/swing/text/TabStop.java: New file.
1291 * javax/swing/text/AbstactDocument.java:
1292 (AbstractElement): Implement attribute support.
1293 * javax/swing/text/AttributeSet.java
1294 (NameAttribute): New static field.
1295 (ResolveAttribute): New static field.
1296 * Makefile.am: Update for new files.
1297 * Makefile.in: Regenerate.
1298
1299 2004-08-31 Craig Black <craig.black@aonix.com>
1300
1301 * gnu/java/awt/peer/gtk/GdkGraphics.java
1302 (drawImage): Add support for scaling pixmaps.
1303 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1304 (copyAndScalePixmap): New native method.
1305
1306 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1307
1308 PR AWT/16121
1309 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1310 type-punning compiler warnings using unions.
1311 (throw): Replace bzero with memset.
1312
1313 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1314 Thomas Fitzsimmons <fitzsim@redhat.com>
1315
1316 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1317 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1318 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1320 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1321
1322 2004-08-31 Mark Wielaard <mark@klomp.org>
1323
1324 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1325 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1326 and stdlib.h, not gtkpeer.h.
1327 (*vm): New static variable.
1328 (areaPreparedID): Make static.
1329 (areaUpdatedID): Likewise.
1330 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1331 (area_prepared): Likewise.
1332 (area_updated): Likewise.
1333 (closed): Likewise.
1334 (initStaticState): Initialize *vm javaVM.
1335 (pumpBytes): Use given env, not global gdk_env.
1336
1337 2004-08-31 Mark Wielaard <mark@klomp.org>
1338
1339 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1340 comments.
1341
1342 2004-08-31 Sven de Marothy <sven@physto.se>
1343
1344 * java/awt/geom/CubicCurve2D.java: Reindent.
1345 (contains): Implemented.
1346 (intersects): Implemented.
1347 * java/awt/geom/QuadCurve2D.java: Likewise.
1348 * java/awt/geom/GeneralPath.java: Reindent and document.
1349 Fully (re)implemented using separate xpoints and ypoints
1350 float[] coords.
1351 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1352
1353 2004-08-31 Michael Koch <konqueror@gmx.de>
1354
1355 * javax/swing/JMenuItem.java
1356 (getMenuDragMouseListeners): New method.
1357 (getMenuKeyListeners): Likewise.
1358
1359 2004-08-31 Michael Koch <konqueror@gmx.de>
1360
1361 * javax/swing/AbstractButton.java
1362 (model): Made protected.
1363 (actionListener): Likewise.
1364 (changeListener): Likewise.
1365 (itemListener): Likewise.
1366 (multiClickThreshhold): New field.
1367 (getActionListeners): New method.
1368 (getChangeListeners): Likewise.
1369 (getItemListeners): Likewise.
1370 (fireItemStateChanged): Simplified implementation.
1371 (fireActionPerformed): Likewise.
1372 (fireStateChanged): Likewise.
1373 (getMultiClickThreshhold): New method.
1374 (setMultiClickThreshhold): Likewise.
1375
1376 2004-08-31 Tom Tromey <tromey@redhat.com>
1377
1378 * java/awt/image/Kernel.java (clone): Use super.clone().
1379
1380 2004-08-31 David Jee <djee@redhat.com>
1381
1382 PR AWT/16682
1383 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1384 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1385 (nativeSetIconImageFromData): New native method declaration.
1386 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1387 * gnu/java/awt/peer/gtk/GtkImage.java
1388 (getPixelCache): New method.
1389 (getColorModel): New method.
1390 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1391 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1392 (free_pixbuf_data): New helper function.
1393 (nativeSetIconImageFromData): New function.
1394
1395 2004-08-31 Graydon Hoare <graydon@redhat.com>
1396
1397 PR SWING/16576
1398 * javax/swing/JLayeredPane.java
1399 (setLayer): Permit changing layer after addition.
1400 (setPosition): Permit over-length positions.
1401 (layerToRange): Compare intValue()s.
1402 * javax/swing/Box.java (createHorizontalBox): Implement.
1403 (createRigidArea): Likewise.
1404 (createVerticalBox): Likewise.
1405
1406 2004-08-31 Kim Ho <kho@redhat.com>
1407
1408 * java/awt/Component.java:
1409 (processMouseEvent): Consume event after
1410 listeners process it.
1411 (processMouseMotionEvent): ditto.
1412 (processMouseWheelEvent): ditto.
1413 * java/awt/Container.java:
1414 (acquireComponentForMouseEvent):
1415 Do not dispatch to events that have been
1416 removed from the Container.
1417 (handleEvent): Consume the MouseEvents.
1418 * javax/swing/RepaintManager.java:
1419 (paintDirtyRegions): Do not add to list of
1420 damaged areas if the component has no root.
1421
1422 2004-08-31 Michael Koch <konqueror@gmx.de>
1423
1424 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1425
1426 2004-08-31 Mark Wielaard <mark@klomp.org>
1427
1428 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1429 null when a MissingResourceException is thrown. Should never happen.
1430
1431 2004-08-31 Mark Wielaard <mark@klomp.org>
1432
1433 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1434 when argument is null.
1435
1436 2004-08-31 Mark Wielaard <mark@klomp.org>
1437
1438 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1439 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1440 Define hid at start of function.
1441 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1442 Likewise.
1443
1444 2004-08-31 Mark Wielaard <mark@klomp.org>
1445
1446 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1447 * javax/swing/JButton.java: Reindent.
1448 * javax/swing/JCheckBox.java: Reindent.
1449
1450 2004-08-31 Mark Wielaard <mark@klomp.org>
1451
1452 * Makefile.am (gtk_c_source_files): Added
1453 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1454 (gtk_awt_peer_sources): Added
1455 gnu/java/awt/peer/gtk/GThreadMutex.java and
1456 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1457 * Makefile.in: Regenerated.
1458
1459 2004-08-31 Archie Cobbs <archie@dellroad.org>
1460
1461 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1462
1463 2004-08-31 Steven Augart <augart@watson.ibm.com>
1464
1465 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1466 Added jfieldID, jmethodID.
1467
1468 2004-08-31 Mark Wielaard <mark@klomp.org>
1469
1470 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1471 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1472 gdk_env before calling any gdk or gtk function.
1473
1474 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1475 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1476 (run): Set gtkInitCalled.
1477
1478 2004-08-31 Steven Augart <augart@watson.ibm.com>
1479
1480 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1481 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1482
1483 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1484 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1485 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1486 init_glib_threads.
1487 (init_glib_threads): New function.
1488
1489 2004-08-31 Mark Wielaard <mark@klomp.org>
1490
1491 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1492 PRIORITY when not already defined in header file.
1493
1494 2004-08-31 Mark Wielaard <mark@klomp.org>
1495
1496 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1497 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1498
1499 2004-08-31 Steven Augart <augart@watson.ibm.com>
1500
1501 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1502 Implemented missing functions for GTK2.
1503 Added error handling.
1504 Renamed static functions out of the g_ namespace.
1505 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1506 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1507 Rewrote global-reference code.
1508 Eliminated cascading errors.
1509 (mutex_trylock_jni_impl) Fully implemented.
1510 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1511 resolution.
1512 (setup_cache) New function.
1513 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1514 bug where they were not unlocking the GMutex associated with the
1515 condition variable during the wait on that condition variable.
1516
1517 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1518 native/jni/gtk-peer/gthread-jni.c,
1519 native/jni/gtk-peer/gthread-jni.h
1520 (g_thread_jni_functions): Renamed to ...
1521 (portable_native_sync_jni_functions): this name.
1522 (gdk_vm): Renamed to...
1523 (the_vm): this name.
1524
1525 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1526 (gdk_vm): Removed duplicate definition.
1527 (gtkInit): Removed stray message to stdout.
1528 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1529 (gtkInit): Fix a const assignment bug.
1530 (gtkInit): Simplified code.
1531
1532 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1533 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1534 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1535 gnu/java/awt/peer/gtk/GThreadMutex.java:
1536 New files.
1537
1538 2004-08-31 Mark Wielaard <mark@klomp.org>
1539
1540 * javax/swing/Box.java: Put FIXME comment above class declaration.
1541 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1542 * javax/swing/JCheckBox.java: Likewise.
1543 * javax/swing/JDialog.java: Likewise.
1544 * javax/swing/JRadioButton.java: Likewise.
1545 * javax/swing/JToggleButton.java: Likewise.
1546 * javax/swing/UIManager.java: Likewise.
1547 * javax/swing/border/TitledBorder.java: Likewise.
1548 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1549 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1550 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1551 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1552 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1553 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1554 * javax/swing/text/JTextComponent.java: Likewise.
1555
1556 2004-08-31 David Jee <djee@redhat.com>
1557
1558 PR AWT/16682
1559 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1560 (setIconImage): Add a FIXME for unhandled cases.
1561
1562 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1563
1564 PR AWT/16040
1565 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1566 getModifiers. Replace old button masks with new ones.
1567 * gnu/awt/xlib/XEventLoop.java: Likewise.
1568 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1569 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1570 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1571 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1572 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1573 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1574 * java/awt/Component.java: Replace old modifier masks with new
1575 ones.
1576 * java/awt/Container.java: Call getModifiersEx, not
1577 getModifiers.
1578 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1579 old modifier masks.
1580 * javax/swing/JMenuItem.java: Replace old button masks with new
1581 ones.
1582 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1583 getModifiers.
1584 * javax/swing/SwingUtilities.java: Likewise.
1585 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1586 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1587 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1588 mask macros with new ones.
1589 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1590 macros with new ones representing new masks.
1591
1592 2004-08-31 Craig Black <craig.black@aonix.com>
1593
1594 * gnu/java/awt/peer/gtk/GdkGraphics.java
1595 (drawRoundRect): Implemented.
1596 (fillRoundRect): Implemented.
1597 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1598 (drawRoundRect): Reimplemented to match GdkGraphics.
1599 (fillRoundRect): Reimplemented to match GdkGraphics.
1600
1601 2004-08-31 Mark Wielaard <mark@klomp.org>
1602
1603 * Makefile.in: Regenerated.
1604
1605 2004-08-31 Michael Koch <konqueror@gmx.de>
1606
1607 * gnu/java/awt/EmbeddedWindow.java
1608 (addNotify): Use AccessController to allow execution of privileged
1609 code.
1610
1611 2004-08-31 Michael Koch <konqueror@gmx.de>
1612
1613 * gnu/java/awt/EmbeddedWindow.java
1614 (static): Removed.
1615 (addNotify): Set peer via reflection.
1616 (setWindowPeer): Removed.
1617 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1618 * Makefile.am (nat_source_files):
1619 Removed gnu/java/awt/natEmbeddedWindow.cc.
1620
1621 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1622
1623 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1624 and gnu/java/security/action/SetAccessibleAction.java.
1625
1626 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1627
1628 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1629 Renamed from 'setName'. New 2-argument form with default value.
1630 (run): Pass default 'value' parameter to System.getProperty().
1631 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1632 typos.
1633
1634 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1635
1636 * gnu/java/security/action/GetPropertyAction.java: New class.
1637 * gnu/java/security/action/SetAccessibleAction.java: New class.
1638
1639 2004-08-31 David Jee <djee@redhat.com>
1640
1641 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1642 (setIconImage): Check if image is null.
1643
1644 2004-08-31 David Jee <djee@redhat.com>
1645
1646 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1647 (create): Set the icon image.
1648 (nativeSetIconImage): New native method declaration.
1649 (setIconImage): Implement.
1650 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1651 (nativeSetIconImage): New function.
1652
1653 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1654
1655 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1656 (filenameFilterCallback): Declare local variable accepted before use.
1657
1658 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1659
1660 * gnu/java/awt/ComponentDataBlitOp.java:
1661 Cleaned up imports.
1662
1663 2004-08-31 Tom Tromey <tromey@redhat.com>
1664
1665 * gnu/java/awt/peer/GLightweightPeer.java,
1666 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1667 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1668 javax/swing/JScrollPane.java: Removed
1669 redundant imports.
1670
1671 2004-08-31 David Jee <djee@redhat.com>
1672
1673 * java/awt/DefaultKeyboardFocusManager.java
1674 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1675 event. Fix shift modifier checking.
1676 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1677 (accel_attach): Remove.
1678 (setupAccelGroup): Remove calls to accel_attach.
1679
1680 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1681
1682 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1683 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1684
1685 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1686 GtkArgList.java.
1687 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1688 * Makefile.in: Regenerate.
1689 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1690 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1691 (create(String)): New method.
1692 (create): Call new create method.
1693 (getArgs): Remove method.
1694 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1695 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1696 (nativeCreate): Rename to create.
1697 (gtkSetLabel): Rename to gtkButtonSetLabel.
1698 (gtkToggleButtonSetActive): New method.
1699 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1700 (setState): Replace set call with gtkToggleButtonSetActive.
1701 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1702 (getArgs): Remove method.
1703 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1704 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1705 (gtkWidgetSetSensitive): New method.
1706 (gtkWidgetSetParent): Likewise.
1707 (GtkComponentPeer): Call setParent, setComponentBounds and
1708 setVisibleAndEnabled.
1709 (setParent): New method.
1710 (setComponentBounds): New method.
1711 (setVisibleAndEnabled): New method.
1712 (setEnabled): Call gtkWidgetSetSensitive.
1713 (getArgs): Remove method.
1714 Remove all set methods.
1715 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1716 gtkWindowSetModal, setTitle and setResizable.
1717 (getArgs): Remove method.
1718 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1719 (setComponentBounds): New method.
1720 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1721 Replace set call with gtkWindowSetResizable.
1722 (getArgs): Remove method.
1723 (create): Call setTitle and setResizable.
1724 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1725 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1726 (gtkWindowSetTitle): New method.
1727 (gtkWindowSetResizable): New method.
1728 (gtkWindowSetModal): New method.
1729 (setParent): New method.
1730 (setVisibleAndEnabled): New method.
1731 (getArgs): Remove method.
1732 (setTitle): Call gtkWindowSetTitle.
1733 (setResizable): Call gtkWindowSetResizable.
1734 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1735 and off locking instrumentation.
1736
1737 2004-08-31 Kim Ho <kho@redhat.com>
1738
1739 * Makefile.am: Add new file.
1740 * Makefile.in: Regenerate.
1741 * gcj/Makefile.in: Regenerate
1742 * include/Makefile.in:
1743 * java/awt/Container.java:
1744 (acquireComponentForMouseEvent): Respect
1745 the event mask when looking for candidate.
1746 * javax/swing/JComponent.java:
1747 Remove toolTip field.
1748 (createToolTip): Create a tooltip on demand.
1749 (setToolTipText): Register with the ToolTipManager.
1750 (getToolTipText(MouseEvent)): Return getToolTipText().
1751 * javax/swing/JToolTip.java: Implement.
1752 * javax/swing/Timer.java: Jalopy.
1753 (restart): Call stop, then start.
1754 (stop): Interrupt the timer rather than wait for
1755 the timer to come to a stop naturally.
1756 * javax/swing/ToolTipManager.java: Implement.
1757 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1758 Change ToolTip.background color.
1759 * javax/swing/plaf/basic/BasicToolTipUI.java:
1760 Implement.
1761 * testsuite/Makefile.in: Regenerate
1762
1763 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
1764
1765 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1766 constructor param comments.
1767
1768 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1769
1770 * java/awt/Component.java: Document AWT 1.0 event handler
1771 methods.
1772
1773 2004-08-31 Roman Kennke <roman@ontographics.com>
1774
1775 * javax/swing/Box.java:
1776 (createGlue): Implemented
1777 (createHorizontalGlue): Implemented
1778 (createHorizontalStrut): Implemented
1779 (createVerticalGlue): Implemented
1780 (createVerticalStrut): Implemented
1781
1782 2004-08-31 David Jee <djee@redhat.com>
1783
1784 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1785 (GtkChoicePeer): Do not automatically select first item.
1786 (getHistory): Remove.
1787 (nativeGetSelected): New method.
1788 (nativeRemoveAll): New method.
1789 (add): Use nativeGetSelected() instead of getHistory().
1790 (remove): Likewise.
1791 (removeAll): Call nativeRemoveAll().
1792 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1793 (create): Migrate to GtkComboBox.
1794 (append): Likewise.
1795 (nativeAdd): Likewise.
1796 (nativeRemove): Likewise.
1797 (select): Likewise.
1798 (nativeRemoveAll): New method.
1799 (nativeGetSelected): New method.
1800 (selection_changed): New method.
1801 (getHistory): Remove.
1802 (item_activate): Remove.
1803 (item_removed): Remove.
1804 (connect_choice_item_selectable_hook): Remove.
1805
1806 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1807
1808 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1809 variable in setEditable call.
1810
1811 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1812 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1813 (gtkWidgetSetBackground): New method.
1814 (gtkWidgetSetForeground): Likewise.
1815 (create): Set peer's editable state based on awtComponent's.
1816
1817 * java/awt/Button.java (Button()): Use empty string rather than
1818 null in no-label constructor.
1819
1820 2004-08-31 Roman Kennke <roman@ontographics.com>
1821
1822 * javax/swing/BoxLayout.java: Reimplement.
1823
1824 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1825
1826 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1827 gnu_java_awt_peer_gtk_GdkGraphics.c
1828 (initState(GtkComponentPeer)): Don't return array of colour
1829 values.
1830 (GdkGraphics(int,int)): Set default font to size 12.
1831 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1832 component's foreground colour.
1833 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1834 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1835 (initState(GtkComponentPeer)): Don't return array of colour
1836 values.
1837 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1838 colours to component's colours.
1839 (current_colors_of_widget): Remove function.
1840 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1841 Return a new graphics object.
1842 * java/awt/Font.java (toString): Fix format.
1843 * java/awt/Graphics.java (toString): Likewise.
1844
1845 2004-08-31 Craig Black <craig.black@aonix.com>
1846
1847 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1848 (addTearOff): New function.
1849 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1850 New native method.
1851 (init): Call addTearOff() when menu.isTearOff().
1852
1853 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1854
1855 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
1856 Default implementation.
1857 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
1858 Implement using GdkPixbufDecoder.
1859
1860 2004-08-31 David Jee <djee@redhat.com>
1861
1862 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1863 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
1864 setting the size of GtkFileDialogPeers.
1865 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1866 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
1867 use their default sizes rather than their natural requisitions.
1868
1869 2004-08-31 Michael Koch <konqueror@gmx.de>
1870
1871 * javax/swing/JFormattedTextField.java
1872 (JFormattedTextField): Implemented.
1873 * javax/swing/text/DefaultEditorKit.java
1874 (BeepAction): New inner class.
1875 * javax/swing/text/Segment.java
1876 (partialReturn): New field.
1877 (setPartialReturn): New method.
1878 (isPartialReturn): Likewise.
1879 * javax/swing/text/View.java
1880 (createFragment): Fixed typo.
1881 (getStartOffset): New method.
1882 (getEndOffset): Likewise.
1883
1884 2004-08-31 Michael Koch <konqueror@gmx.de>
1885
1886 * javax/swing/table/DefaultTableColumnModel.java
1887 (serialVersionUID): Made private.
1888 (listenerList): Initialize.
1889 (changeEvent): Initialize.
1890 * javax/swing/table/JTableHeader.java
1891 (JTableHeader): New constructors.
1892 (createDefaultColumnModel): New method.
1893 * javax/swing/table/TableColumn.java
1894 (setHeaderRenderer): Simplified code.
1895 (setCellRenderer): Likewise.
1896 (setWidth): Likewise.
1897
1898 2004-08-31 Tom Tromey <tromey@redhat.com>
1899
1900 * java/text/AttributedString.java (AttributedString): Use
1901 ArrayList to build array of attribute ranges. Don't use
1902 `attribs' before it is set.
1903
1904 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1905
1906 * HACKING: Remove reference to special automake. No longer needed.
1907
1908 2004-08-30 Tom Tromey <tromey@redhat.com>
1909
1910 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
1911 return result from `add'.
1912
1913 2004-08-30 Tom Tromey <tromey@redhat.com>
1914
1915 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
1916
1917 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1918
1919 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
1920
1921 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
1922
1923 * java/io/File.java File(String,String): Fixed handling of empty
1924 path.
1925
1926 2004-08-30 Casey Marshall <csm@gnu.org>
1927
1928 Author e-mail updated for all files.
1929 * gnu/java/security/OID.java (equals): Test if the aurgment is an
1930 instance of OID.
1931 (compareTo): Use `equals'.
1932 * gnu/java/security/der/BitString.java (equals): Test if the
1933 argument is an instance of BitString.
1934 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
1935 class final. Made fields private.
1936 (<init>): New constructor.
1937 (skip): New method.
1938 (makeString): Made static; don't use NIO.
1939 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
1940 * gnu/java/security/der/DERWriter.java: Fixed imports.
1941 (writeString): Don't use NIO.
1942 (toIso88591, toUtf16Be, toUtf8): New methods.
1943 * gnu/java/security/der/DERValue.java: Formatting changes only.
1944 * gnu/java/security/der/DER.java: Likewise.
1945
1946 2004-08-30 Tom Tromey <tromey@redhat.com>
1947
1948 * java/nio/CharBuffer.java (put): Fix typo.
1949 * java/nio/DoubleBuffer.java (put): Fix typo.
1950 * java/nio/FloatBuffer.java (put): Fix typo.
1951 * java/nio/IntBuffer.java (put): Fix typo.
1952 * java/nio/LongBuffer.java (put): Fix typo.
1953 * java/nio/ShortBuffer.java (put): Fix typo.
1954
1955 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
1956
1957 * java/nio/ByteBuffer.java (put): Fix typo.
1958
1959 2004-08-30 Casey Marshall <csm@gnu.org>
1960
1961 * java/security/DummyKeyPairGenerator.java (clone): Removed
1962 useless instanceof check.
1963 * java/security/DummyMessageDigest.java (clone): Likewise.
1964 * java/security/DummySignature.java (clone): Likewise.
1965 * java/security/MessageDigest.java (clone): Remove useless
1966 instanceof check.
1967 * java/security/MessageDigestSpi.java (clone): Likewise.
1968 * java/security/Signature.java (clone): Provide meaningful
1969 implementation.
1970 * java/security/SignatureSpi.java (clone): Likewise.
1971
1972 2004-08-29 Mark Wielaard <mark@klomp.org>
1973
1974 * java/util/Arrays.java
1975 (sort(byte[], int, int)): Check fromIndex < 0.
1976 (sort(char[], int, int)): Likewise.
1977 (sort(short[], int, int)): Likewise.
1978 (sort(int[], int, int)): Likewise.
1979 (sort(long[], int, int)): Likewise.
1980 (sort(float[], int, int)): Likewise.
1981 (sort(double[], int, int)): Likewise.
1982 (sort(Object[], int, int, Comparator)): Likewise.
1983 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
1984 (qsort(char[], int, int)): Likewise.
1985 (qsort(short[], int, int)): Likewise.
1986 (qsort(int[], int, int)): Likewise.
1987 (qsort(long[], int, int)): Likewise.
1988 (qsort(float[], int, int)): Likewise.
1989 (qsort(double[], int, int)): Likewise.
1990
1991 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
1992
1993 * java/util/AbstractCollection.java, java/util/AbstractList.java,
1994 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
1995 java/util/ArrayList.java, java/util/Arrays.java,
1996 java/util/BitSet.java, java/util/Calendar.java,
1997 java/util/Collection.java, java/util/ListIterator.java,
1998 java/util/Map.java, java/util/SortedSet.java:
1999 Added additional exceptions to documentation, along
2000 with some additions and corrections.
2001
2002 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
2003
2004 * configure.ac: Handle --enable-gc-debug.
2005 * configure: Regenerate.
2006 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
2007 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
2008 Rearrange include file order.
2009 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
2010 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
2011 (disable_gc_mutex): Delete along with all references.
2012 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
2013 adjust for debug header size.
2014 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
2015 debug case.
2016 (_Jv_AllocArray): Declare min_heap_addr only if needed.
2017 (gcj_describe_type_fn): New.
2018 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
2019 Register gcj_describe_type_fn.
2020 * include/boehm-gc.h:
2021 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
2022 Don't define, but declare, for debug case.
2023 * java/lang/natObject.cc:
2024 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
2025
2026 2004-08-26 Mark Wielaard <mark@klomp.org>
2027
2028 Fixes PR libgcj/17002:
2029 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
2030 a TimeZoneId string and then try to convert that to a TimeZone with
2031 getDefaultSystemTimeZone(String).
2032 (timezones0): Changed type from Hashtable to HashMap.
2033 (timezones): Create HashMap, not Hashtable.
2034 (getDefaultTimeZone): New method, rewritten from CNI version.
2035 (readTimeZoneFile): New method.
2036 (readtzFile): Likewise.
2037 (skipFully): Likewise.
2038 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
2039 getDefaultTimeZoneId and rewritten.
2040 (getDefaultTimeZoneId): Rewritten in java.
2041
2042 2004-08-25 David Daney <daney@avtrex.com>
2043
2044 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
2045 * Makefile.in: Regenerated.
2046
2047 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
2048
2049 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
2050 only if jvmpi is enabled.
2051 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
2052 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
2053 (_Jv_AllocString): Likewise.
2054 (_Jv_AllocPtrFreeObject): Likewise.
2055
2056 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
2057
2058 * defineclass.cc: Include <stdio.h>.
2059 * java/lang/natClassLoader.cc: Include <stdio.h>.
2060
2061 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
2062 Michael Koch <konqueror@gmx.de>
2063
2064 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
2065 * Makefile.in: Regenerated.
2066
2067 2004-08-20 Michael Koch <konqueror@gmx.de>
2068
2069 * configure.ac: Replaced all AC_TRY_COMPILE macros with
2070 AC_COMPILE_IFELSE macros.
2071
2072 2004-08-20 Michael Koch <konqueror@gmx.de>
2073
2074 * configure.in: Renamed to configure.ac.
2075 * configure.ac: New file.
2076 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
2077 include/config.h.in, testsuite/Makefile.in: Regenerated.
2078
2079 2004-08-20 Michael Koch <konqueror@gmx.de>
2080
2081 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
2082 * aclocal.m4, configure: Regenerated.
2083
2084 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2085 Michael Koch <konqueror@gmx.de>
2086
2087 * configure.in, Makefile.am: Ported to automake 1.9.
2088 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
2089 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
2090 Regenerated.
2091
2092 2004-08-19 Tom Tromey <tromey@redhat.com>
2093
2094 * java/net/DatagramSocket.java: Fixed typo.
2095
2096 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2097
2098 PR libgcj/17081
2099 * java/net/URI.java (string): New field. Make all other fields
2100 transient.
2101 (readObject): Implemented.
2102 (writeObject): Implemented.
2103 (URI): Set 'string'.
2104
2105 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2106
2107 PR libgcj/17079
2108 * java/util/logging/Handler.java (isLoggable): Accept record if its
2109 log level equals the threshold level. From Robin Green.
2110
2111 2004-08-18 David Daney <ddaney@avtrex.com>
2112
2113 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2114 instead of sigwait.
2115
2116 2004-08-17 Michael Koch <konqueror@gmx.de>
2117
2118 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2119 * Makefile.in: Regenerated.
2120
2121 2004-08-16 Tom Tromey <tromey@redhat.com>
2122
2123 PR java/8473:
2124 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2125
2126 2004-08-16 Michael Koch <konqueror@gmx.de>
2127
2128 * Makefile.am
2129 (math_c_files): Renamed from c_files.
2130 (math_c_source_files): Renamed from c_source_files.
2131 * Makefile.in,
2132 gcj/Makefile.in,
2133 include/Makefile.in,
2134 testsuite/Makefile.in: Regenerated.
2135
2136 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2137
2138 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2139 to avoid autoconf warning.
2140 * configure: Rebuilt.
2141
2142 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2143
2144 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2145 localhostAddress to loopbackAddress.
2146 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2147
2148 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2149
2150 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2151 boehm-gc's include dirs.
2152 * configure: Rebuilt.
2153 * include/boehm-gc.h: Include gc_config.h.
2154
2155 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2156
2157 * java/net/InetAddress.java (loopbackAddress): Renamed from
2158 localhostAddress.
2159 (getByName): Return loopback address for null hostname, without
2160 security check. Use lookup(), not getAllByName.
2161 (getAllByName): Return loopback address for null hostname, without
2162 security check.
2163 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2164 check here.
2165
2166 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2167
2168 PR libgcj/17020
2169 Reported by Robin Green.
2170 * defineclass.cc (handleField): Don't throw exception on unrecognised
2171 modifier. Add FIXME comments for spec compliance.
2172 (handleMethod): Likewise.
2173
2174 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2175
2176 PR libgcj/16662
2177 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2178 (Almost everywhere): add LOG calls, fix, add comments.
2179 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2180 Add explicit check for LOCKED bit in slow case (PR 16662).
2181 (_Jv_MonitorExit): Add casts in debug-only code.
2182 Always release LOCKED bit before throwing exception.
2183 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2184 isn't. Handle easy cases without lock acquisition.
2185 (Object::wait): Use NotifyAll for lock inflation.
2186
2187 2004-08-12 David Daney <ddaney@avtrex.com>
2188
2189 * testsuite/libjava.lang/Process_1.java: New test.
2190 * testsuite/libjava.lang/Process_2.java: New test.
2191 * testsuite/libjava.lang/Process_3.java: New test.
2192 * testsuite/libjava.lang/Process_4.java: New test.
2193 * testsuite/libjava.lang/Process_5.java: New test.
2194 * testsuite/libjava.lang/Process_6.java: New test.
2195 * testsuite/libjava.lang/Process_1.out: Expected result.
2196 * testsuite/libjava.lang/Process_2.out: Expected result.
2197 * testsuite/libjava.lang/Process_3.out: Expected result.
2198 * testsuite/libjava.lang/Process_4.out: Expected result.
2199 * testsuite/libjava.lang/Process_5.out: Expected result.
2200 * testsuite/libjava.lang/Process_6.out: Expected result.
2201
2202 2004-08-12 David Daney <ddaney@avtrex.com>
2203
2204 PR libgcj/11801
2205 * java/lang/PosixProcess.java: Rewrote.
2206 * java/lang/natPosixProcess.cc: Rewrote.
2207 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2208 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2209 * posix-threads.cc (block_sigchld) New function.
2210 (_Jv_ThreadRegister) Use it.
2211 (_Jv_ThreadStart) Use it.
2212 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2213 * Makefile.am: ... to specify extra native headers.
2214 * configure: Regenerated.
2215 * include/config.h: Regenerated.
2216 * Makefile.in: Regenerated.
2217 * gcj/Makefile.in: Regenerated.
2218 * include/Makefile.in: Regenerated.
2219 * testsuite/Makefile.in: Regenerated.
2220
2221 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2222
2223 PR tree-optimization/16867
2224 * testsuite/libjava.lang/PR16867.java: New test.
2225
2226 2004-08-09 Per Bothner <per@bothner.com>
2227
2228 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2229 with private fields and access methods.
2230 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2231 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2232 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2233 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2234 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2235 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2236 * jni.cc: Likewise.
2237 * resolve.cc: Likewise.
2238 * gcj/field.h: Likewise.
2239 * include/jvm.h: Likewise.
2240 * java/lang/Class.h: Likewise.
2241 * java/lang/natClass.cc: Likwise.
2242 * java/lang/natClassLoader.cc: Likewise
2243 * java/lang/reflect/natMethod.cc: Likewise
2244 * verify.cc: Likewise.
2245 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2246 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2247
2248 2004-08-10 Andrew Haley <aph@redhat.com>
2249
2250 * testsuite/libjava.lang/err14.java: New file.
2251 * testsuite/libjava.lang/err14.out: New file.
2252
2253 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2254
2255 * Makefile.am: Fix missing rename from x_nat_headers to
2256 xlib_nat_headers.
2257 * Makefile.in: Regenerated.
2258
2259 2004-08-04 Andrew Haley <aph@redhat.com>
2260
2261 * java/security/BasicPermission.java: Don't check wildcards.
2262
2263 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2264 Michael Koch <konqueror@gmx.de>
2265
2266 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2267 * configure.in: Replaced all usages of AC_LINK_FILES by
2268 AC_CONFIG_LINKS.
2269 * aclocal.m4,
2270 configure: Regenerated.
2271
2272 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2273 Michael Koch <konqueror@gmx.de>
2274
2275 * acconfig.h: Removed.
2276 * Makefile.am: Rename variables for xlib peer to include xlib and
2277 gtk_c_headers to gtk_jni_headers.
2278 * Makefile.in: Regenerated.
2279
2280 2004-08-04 Andrew Haley <aph@redhat.com>
2281
2282 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2283 debugging.
2284
2285 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2286
2287 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2288 Replace most top level 'dnl' comments with '#' comments, conforming
2289 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2290 help strings.
2291 * configure: Rebuilt.
2292
2293 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2294
2295 * acinclude.m4: Include no-executables.m4.
2296 * aclocal.m4: Rebuild.
2297 * configure.in: Convert to the autoconf 2.59 version of
2298 of the no-executables hack, and also of the nonstandard CXX
2299 hack and the multilibbed CC and CXX hack. Change prerequisite
2300 to autoconf 2.59.
2301 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2302 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2303 testsuite/Makefile.in: Regenerate.
2304
2305 2004-08-03 Tom Tromey <tromey@redhat.com>
2306
2307 * jni.cc: Reindented.
2308
2309 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2310
2311 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2312
2313 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2314
2315 * testsuite/libjava.compile/PR16701.java: New test.
2316
2317 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2318
2319 * java/util/Collection.java, java/util/List.java,
2320 java/util/Map.java, java/util/Set.java,
2321 java/util/SortedMap.java, java/util/SortedSet.java:
2322 Added additional exceptions to documentation.
2323
2324 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2325
2326 PR libgcj/16814
2327 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2328 * configure. Regenerate.
2329 * include/win32.h: Explicitly include winsock2.h
2330 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2331 Winsock api.
2332
2333 2004-07-30 Michael Koch <konqueror@gmx.de>
2334
2335 * java/util/zip/GZIPInputStream.java
2336 (GZIPInputStream): Increase buffer size to 4k.
2337 * java/util/zip/GZIPOutputStream.java
2338 (GZIPOutputStream): Likewise.
2339 * java/util/zip/Inflater.java
2340 (setInput): Merged formating with GNU classpath.
2341 * java/util/zip/InflaterInputStream.java
2342 (InflaterInputStream): Increase buffer size to 4k.
2343 (fill): Throw exception if stream ends early.
2344 (read): Merged endless-loop with GNU classpath.
2345 (skip): Increase buffer size to 2k.
2346
2347 2004-07-30 Michael Koch <konqueror@gmx.de>
2348
2349 * gnu/java/awt/EmbeddedWindow.java
2350 (addNotify): Use AccessController to allow execution of privileged
2351 code.
2352
2353 2004-07-29 Michael Koch <konqueror@gmx.de>
2354
2355 * gnu/java/lang/MainThread.java:
2356 Explicitely import used classes.
2357 (args): Make it type String[].
2358
2359 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2360
2361 * gnu/java/awt/ComponentDataBlitOp.java,
2362 gnu/java/beans/ExplicitBeanInfo.java,
2363 gnu/java/beans/IntrospectionIncubator.java,
2364 gnu/java/beans/editors/ColorEditor.java,
2365 gnu/java/beans/editors/FontEditor.java,
2366 gnu/java/beans/editors/NativeBooleanEditor.java,
2367 gnu/java/beans/editors/NativeByteEditor.java,
2368 gnu/java/beans/editors/NativeDoubleEditor.java,
2369 gnu/java/beans/editors/NativeFloatEditor.java,
2370 gnu/java/beans/editors/NativeIntEditor.java,
2371 gnu/java/beans/editors/NativeLongEditor.java,
2372 gnu/java/beans/editors/NativeShortEditor.java,
2373 gnu/java/beans/editors/StringEditor.java,
2374 gnu/java/io/ClassLoaderObjectInputStream.java,
2375 gnu/java/io/decode/Decoder.java,
2376 gnu/java/io/encode/Encoder.java,
2377 gnu/java/lang/ClassHelper.java,
2378 gnu/java/locale/Calendar.java,
2379 gnu/java/locale/Calendar_de.java,
2380 gnu/java/locale/Calendar_en.java,
2381 gnu/java/locale/Calendar_nl.java,
2382 gnu/java/locale/LocaleInformation_de.java,
2383 gnu/java/locale/LocaleInformation_en.java,
2384 gnu/java/locale/LocaleInformation_nl.java:
2385 Cleaned up imports.
2386
2387 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2388
2389 * README: Remove obsolete info. Update bug URL.
2390 * THANKS: Updated.
2391 * NEWS: Updated with news up to GCC 3.4 release.
2392
2393 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2394
2395 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2396 Renamed from 'setName'. New 2-argument form with default value.
2397 (run): Pass default 'value' parameter to System.getProperty().
2398 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2399 typos.
2400 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2401 not 'setName'.
2402
2403 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2404
2405 * configure.in: Check for minimum GTK version 2.4 requirement.
2406 * configure: Rebuilt.
2407
2408 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2409
2410 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2411 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2412 Reduce sleep time.
2413 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2414 compiler bug.
2415 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2416 address. Reduce sleep times. Synchronize with target threads before
2417 attempting to interrupt them. Don't try to calibrate yeild count,
2418 instead, always loop for a fixed time.
2419 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2420 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2421 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2422 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2423 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2424 * testsuite/libjava.lang/pr179.java: Likewise.
2425 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2426 time. Remove upper bounds check on sleep time.
2427
2428 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2429
2430 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2431 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2432
2433 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2434
2435 * java/io/File.java (toURI): Throw RuntimeException, not
2436 InternalError.
2437 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2438 class name, not instance.
2439
2440 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2441
2442 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2443 and gnu/java/security/action/SetAccessibleAction.java.
2444 * Makefile.in: Rebuilt.
2445
2446 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2447
2448 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2449 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2450 _Jv_InitPrimClass.
2451 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2452 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2453 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2454
2455 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2456
2457 * Makefile.am: Replace jar, rmic and rmiregistry references with
2458 gjar, grmic and grmiregistry.
2459 * configure.in: Likewise.
2460 * Makefile.in: Regenerate.
2461 * configure: Likewise.
2462 * gcj/Makefile.in: Likewise.
2463 * include/Makefile.in: Likewise.
2464 * testsuite/Makefile.in: Likewise.
2465
2466 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2467
2468 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2469 for privileged getProperty calls.
2470 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2471 SetAccessibleAction instead of anonymous class for doPrivileged call.
2472 (getMethod): Likewise.
2473 (setAccessible): New field. PrivilegedAction object to use when
2474 calling setAccessible.
2475 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2476 SetAccessibleAction instead of anonymous class for diPrivileged call.
2477 (setFields): Likewise.
2478 (getClassUID): Likewise.
2479 (findMethod): Likewise.
2480 * gnu/java/security/action/GetPropertyAction.java: New class.
2481 * gnu/java/security/action/SetAccessibleAction.java: New class.
2482
2483 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2484
2485 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2486 for final fields.
2487 * testsuite/libjava.lang/Serialization.java: New test.
2488 * testsuite/libjava.lang/Serialization.out: New.
2489
2490 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2491
2492 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2493 missed in last commit.
2494
2495 2004-07-23 Mark Wielaard <mark@klomp.org>
2496
2497 * java/lang/System.java (static): Set http.agent system property when
2498 not yet set.
2499 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2500 from system property inside AccessController.doPrivileged() call.
2501 (proxyPort): Made package private.
2502 (proxyInUse): Likewise.
2503 (proxyHost): Likewise.
2504 (userAgent): Likewise.
2505
2506 2004-07-23 Mark Wielaard <mark@klomp.org>
2507
2508 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2509 implementation.
2510
2511 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2512
2513 * Makefile.am (ordinary_java_source_files): Add
2514 DefaultContentHandlerFactory.java.
2515 * Makefile.in: Rebuilt.
2516 * java/net/URLConnection.java (defaultFactory): New field.
2517 (getContent):
2518 (getContentHandler): Renamed from 'setContentHandler'. Try
2519 defaultFactory after user-set factory, if any. Search for content
2520 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2521 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2522 Implemented.
2523 (getLastModified): Implemented.
2524 (getPermission): Create file permission here, instead of in
2525 constructor.
2526 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2527 Implemented.
2528 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2529 Implemented.
2530 (getLastModified): Implemented.
2531 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2532 Default implementation.
2533 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2534 Implement using GdkPixbufDecoder.
2535
2536 2004-07-21 Michael Koch <konqueror@gmx.de>
2537
2538 * javax/swing/JTextArea.java
2539 (setLineWrap): Fire property change event after new value is set.
2540 (setTabSize): Likewise.
2541
2542 2004-07-21 Michael Koch <konqueror@gmx.de>
2543
2544 * javax/swing/JTable.java
2545 (autoCreateColumnsFromModel): New field.
2546 (autoResizeMode): Likewise.
2547 (cellEditor): Likewise.
2548 (cellSelectionEnabled): Likewise.
2549 (columnModel): Likewise.
2550 (dataModel): Likewise.
2551 (defaultEditorsByColumnClass): Likewise.
2552 (defaultRenderersByColumnClass): Likewise.
2553 (editingColumn): Likewise.
2554 (editingRow): Likewise.
2555 (gridColor): Likewise.
2556 (preferredViewportSize): Likewise.
2557 (rowHeight): Likewise.
2558 (rowMargin): Likewise.
2559 (rowSelectionAllowed): Likewise.
2560 (selectionBackground): Likewise.
2561 (selectionForeground): Likewise.
2562 (selectionModel): Likewise.
2563 (showHorizontalLines): Likewise.
2564 (showVerticalLines): Likewise.
2565 (tableHeader): Likewise.
2566 (JTable): Implemented.
2567 (getColumnModel): Likewise.
2568 (getSelectedRow): Likewise.
2569 (getSelectionModel): Likewise.
2570 (setModel): Likewise.
2571 (setSelectionModel): Likewise.
2572 (createScrollPaneForTable): New method.
2573 (createDefaultDataModel): Likewise.
2574 (createDefaultListSelectionModel): Likewise.
2575 (getModel): Likewise.
2576 (getTableHeader): Likewise.
2577 (setTableHeader): Likewise.
2578 (getColumnSelectionAllowed): Likewise.
2579 (setColumnSelectionAllowed): Likewise.
2580 (getRowSelectionAllowed): Likewise.
2581 (setRowSelectionAllowed): Likewise.
2582 (getAutoResizeMode): Likewise.
2583 (setAutoResizeMode): Likewise.
2584 (getColumnCount): Likewise.
2585 (getRowCount): Likewise.
2586 (getCellRenderer): Likewise.
2587 * javax/swing/JTree.java
2588 (cellRenderer): New field.
2589 (editable): Likewise.
2590 (rootVisible): Likewise.
2591 (showsRootHandles): Likewise.
2592 (getModel): New method.
2593 (setModel): Likewise.
2594 (isEditable): Likewise.
2595 (setEditable): Likewise.
2596 (isRootVisbile): Likewise.
2597 (setRootVisible): Likewise.
2598 (getShowsRootHandles): Likewise.
2599 (setShowRootHandles): Likewise.
2600 (getCellRenderer): Likewise.
2601 (setCellRenderer): Likewise.
2602
2603 2004-07-21 Michael Koch <konqueror@gmx.de>
2604
2605 * javax/swing/JFormattedTextField.java
2606 (setDocument): Implemented.
2607 * javax/swing/JRootPane.java:
2608 Fixed javadocs.
2609 * javax/swing/JTable.java
2610 (getDefaultRenderer): New method.
2611 * javax/swing/JTextField.java
2612 (setFont): Likewise.
2613 (getPreferredSize): Likewise.
2614 * javax/swing/JToggleButton.java
2615 (getAccessibleContext): Fix javadoc.
2616 * javax/swing/JTree.java:
2617 Add some javadocs.
2618 * javax/swing/JViewport.java:
2619 Likewise.
2620
2621 2004-07-21 David Jee <djee@redhat.com>
2622
2623 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2624 Collect all native method declaration at the top.
2625 (create): Set the filename filter if necessary.
2626 (setDirectory): Call nativeSetDirectory().
2627 (setFilenameFilter): Implement.
2628 (filenameFilterCallback): New method.
2629 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2630 (create): Configure dialog to show hidden files.
2631 (filenameFilterCallback): New function.
2632 (nativeSetFilenameFilter): New function.
2633 (nativeSetDirectory): New function.
2634
2635 2004-07-21 Kim Ho <kho@redhat.com>
2636
2637 * javax/swing/plaf/basic/BasicSliderUI.java:
2638 Ran Jalopy.
2639 (paintTrack): Fill the track before painting
2640 the borders.
2641
2642 2004-07-21 Graydon Hoare <graydon@redhat.com>
2643
2644 patch from Roman Kennke <roman@ontographics.com>
2645 * javax/swing/Spring.java: New file.
2646 * javax/swing/SpringLayout.java: New file.
2647 * Makefile.am: Add new files.
2648 * Makefile.in: Regenerate.
2649
2650 2004-07-21 Graydon Hoare <graydon@redhat.com>
2651
2652 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2653 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2654 * javax/swing/ScrollPaneLayout.java: Likewise.
2655
2656 2004-07-21 Kim Ho <kho@redhat.com>
2657
2658 * javax/swing/DefaultDesktopManager.java:
2659 (findMinimum): Removed.
2660 (resizeFrame): Trust the UI to pass valid
2661 bounds.
2662 * javax/swing/JOptionPane.java:
2663 Implemented showInternalXXXDialog methods.
2664 (startModal): New method.
2665 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2666 (BorderListener::mouseDragged): Verify that the new
2667 bounds are valid before passing them to the DesktopManager.
2668 (preferredLayoutSize): Delegate
2669 to getSize.
2670 (minimumLayoutSize): Ditto.
2671 (getSize): New method.
2672 (GlassPaneDispatcher): Reimplemented by copying
2673 a stripped down LightweightDispatcher from Container.
2674 (getMinimumSize): Call minimumLayoutSize.
2675 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2676 Ran Jalopy.
2677 (mousePressed): Add ability to properly close
2678 JInternalFrames.
2679 * javax/swing/plaf/basic/BasicToolBarUI.java:
2680 (DragWindow): Set owner for DragWindow.
2681
2682 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2683
2684 * java/awt/image/ShortLookupTable.java: New file.
2685 * java/awt/image/ByteLookupTable.java: New file.
2686 * Makefile.am: Added new files.
2687 * Makefile.in: Regenerated.
2688
2689 2004-07-21 David Jee <djee@redhat.com>
2690
2691 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2692 (create(GtkContainerPeer)): New native method.
2693 (create()): Call native create(), passing in the parent frame
2694 as the paramter. Natively set the current file and directory.
2695 (setFile): Construct an absolute filename before passing it to
2696 the native peer.
2697 (nativeGetDirectory): New method.
2698 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2699 (window_closed): Removed.
2700 (ok_clicked): Likewise.
2701 (cancel_clicked): Likewise.
2702 (handle_response): New method.
2703 (create): Use GtkFileChooserDialog.
2704 (connectSignals): Connect to handle_response.
2705 (nativeGetDirectory): New method.
2706 (nativeSetFile): Use GtkFileChooserDialog.
2707
2708 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2709
2710 * java/awt/image/LookupTable.java: New file.
2711 * Makefile.am: Added new file.
2712 * Makefile.in: Regenerated.
2713
2714 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2715
2716 * java/awt/image/Kernel.java: New file.
2717 * Makefile.am: Added new file.
2718 * Makefile.in: Regenerated.
2719
2720 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2721
2722 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2723 * javax/swing/JMenu.java: Likewise.
2724 * javax/swing/JMenuBar.java: Likewise.
2725 (MARGIN_CHANGED_PROPERTY): New property.
2726 (setMargin): Implemented.
2727 * javax/swing/JMenuItem.java: Fixed javadocs.
2728 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2729 (LABEL_CHANGED_PROPERTY): New property.
2730 (add): changed to use createActionComponent.
2731 (createActionComponent): Implemented.
2732 (setLabel): Fire PropertyChangeEvent if label property
2733 changes.
2734 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2735 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2736 (ContainerHandler): Repaint if margin property has changed.
2737 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2738 (installUI): Call installComponents().
2739 (uninstallUI): Call uinstallComponents().
2740 * javax/swing/plaf/basic/BasicMenuUI.java:
2741 Fixed javadocs.
2742 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2743 Likewise.
2744
2745 2004-07-21 Kim Ho <kho@redhat.com>
2746
2747 * javax/swing/plaf/basic/BasicToolBarUI.java:
2748 (DragWindow): Use the right constructor.
2749
2750 2004-07-21 Kim Ho <kho@redhat.com>
2751
2752 * javax/swing/JToolBar.java:
2753 (layoutContainer): Use getComponents.
2754 * javax/swing/plaf/basic/BasicToolBarUI.java:
2755 (DragWindow): Don't use SwingUtilities'
2756 getOwnerFrame
2757 (ToolBarDialog): ditto.
2758
2759 2004-07-21 Kim Ho <kho@redhat.com>
2760
2761 * javax/swing/JRootPane.java:
2762 Ran jalopy.
2763 (layoutContainer): Set the glasspane's size to
2764 be the same as the content pane.
2765 (createGlassPane): Set opaque property to false.
2766
2767 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2768
2769 * java/awt/Component.java (requestFocus()): Don't handle Panels
2770 specially.
2771 (requestFocus(boolean)): Likewise.
2772 (requestFocusInWindow(boolean)): Likewise.
2773 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2774 Set GTK_CAN_FOCUS flag.
2775
2776 2004-07-21 Kim Ho <kho@redhat.com>
2777
2778 * Makefile.am: Added new file.
2779 * Makefile.in: Regenerated.
2780 * gcj/Makefile.in: Regenerated.
2781 * include/Makefile.in: Regenerated.
2782 * javax/swing/AbstractButton.java:
2783 Add rollOverEnabled property.
2784 (setRolloverEnabled): Use new property.
2785 (isRolloverEnabled): Use new property.
2786 * javax/swing/JTabbedPane.java:
2787 (setComponent): Remove useless JTabbedPane.this.
2788 * javax/swing/JToolBar.java: Finish implementation.
2789 * javax/swing/plaf/basic/BasicArrowButton.java:
2790 (paint): Moved border painting to a border.
2791 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2792 Change JToolBar look and feel defaults.
2793 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2794 (actionPerformed): Return Integer index instead of name.
2795 (addButtonComponents): Check to see if component is
2796 JButton last.
2797 (createMessageArea): Don't use components that are not
2798 completed yet.
2799 (getIconForType): Use temporary icons.
2800 * javax/swing/plaf/basic/BasicSliderUI.java:
2801 (mousePressed): Do not return if it's on thumb.
2802 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2803 (paintMinorTickForVertSlider): ditto.
2804 (paintMajorTickForHorizSlider): ditto.
2805 (paintMajorTickForVertSlider): ditto.
2806 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2807 Add a border around the SplitPaneDivider.
2808 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2809 Remove comments.
2810 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2811 New file. Implemented.
2812 * javax/swing/plaf/basic/BasicToolBarUI.java:
2813 Implemented.
2814 * testsuite/Makefile.in: Regenerated.
2815
2816 2004-07-21 Graydon Hoare <graydon@redhat.com>
2817
2818 * javax/swing/Timer.java (run): Queue events each time cycle.
2819
2820 2004-07-21 David Jee <djee@redhat.com>
2821
2822 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2823 (imageComplete): Call image.imageComplete().
2824 * java/awt/image/MemoryImageSource.java:
2825 Reimplement consumers as a Vector instead of a Hashtable. This is
2826 because enumeration on a Hashtable is not thread-safe.
2827 (addConsumer): Adapt to Vector consumers.
2828 (isConsumer): Adapt to Vector consumers.
2829 (removeConsumer): Adapt to Vector consumers.
2830 (startProduction): Adapt to Vector consumers. Call imageComplete()
2831 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2832 (newPixels): Adapt to Vector consumers.
2833 (sendPicture): Set the color model of the image consumer.
2834 (newPixels(IIII)): Adapt to Vector consumers.
2835 (newPixels(IIIIB)): Adapt to Vector consumers.
2836
2837 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2838
2839 * java/awt/Component.java (deliverEvent): Implement.
2840 (postEvent): Implement.
2841 (handleEvent): Implement.
2842 (translateEvent): New method.
2843 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2844 * java/awt/Container.java (deliverEvent): Implement.
2845 * java/awt/Event.java (paramString): Fix formatting.
2846 * java/awt/Font.java (toString): Likewise.
2847 * java/awt/Window.java (postEvent): Implement.
2848
2849 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2850
2851 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2852 Set window's focus owner upon receiving a FOCUS_LOST event.
2853 * java/awt/Window.java (Window()): Refocus the previously
2854 focused component within the window when the window regains the
2855 top-level focus.
2856 (setFocusOwner): New method.
2857 * java/awt/Component.java (requestFocus): Add FIXME.
2858
2859 * libgcj.pc.in: Remove library flags.
2860
2861 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2862
2863 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
2864 MOUSE_PRESSED event.
2865 * java/awt/Component.java (requestFocus()): Handle Panel
2866 specially. Post FOCUS_LOST event on opposite component.
2867 (requestFocus(boolean)): Likewise.
2868 (requestFocusInWindow(boolean)): Likewise.
2869 (paramString): Reorder dimension fields.
2870 * java/awt/Container.java (paramString): Fix string format.
2871 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2872 Handle FOCUS_LOST events. Don't handle Windows specially. Only
2873 process key events if the focus owner is non-null.
2874 (dispatchKeyEvent): Likewise.
2875 * java/awt/Frame.java (paramString): Fix formatting.
2876 (generateName): New method.
2877 (getUniqueLong): Likewise.
2878 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
2879 the temporary focus owner is null. If so, return the permanent
2880 focus owner.
2881 * java/awt/Panel.java (generateName): New method.
2882 (getUniqueLong): Likewise.
2883 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
2884 signal handling to make callbacks more specific.
2885
2886 2004-07-21 Michael Koch <konqueror@gmx.de>
2887
2888 * javax/swing/text/Position.java
2889 (Bias): Implemented.
2890
2891 2004-07-21 Michael Koch <konqueror@gmx.de>
2892
2893 * javax/swing/LookAndFeel.java
2894 (provideErrorFeedback): New method.
2895
2896 2004-07-21 Michael Koch <konqueror@gmx.de>
2897
2898 * javax/swing/JTextArea.java
2899 (tabSize): New field.
2900 (getTabSize): New method.
2901 (setTabSize): Likewise.
2902
2903 2004-07-21 Michael Koch <konqueror@gmx.de>
2904
2905 * javax/swing/ActionMap.java:
2906 Fixed javadocs all over.
2907 (serialVersionUID): Made private.
2908 (parent): Don't explicitely initialize with default value.
2909 (get): SImplified.
2910 (keys): Reimplemented.
2911 (allKeys): Likewise.
2912 (convertSet): Removed.
2913 * javax/swing/ComponentInputMap.java:
2914 Fixed javadocs all over.
2915 (ComponentInputMap): Implemented.
2916 (put): Likewise.
2917 (clear): Likewise.
2918 (remove): Likewise.
2919 (SetParent): Likewise.
2920 (getComponent): Likewise.
2921 * javax/swing/InputMap.java:
2922 Fixed javadocs all over.
2923 (serialVersionUID): Made private.
2924 (parent): Don't explicitely initialize with default value.
2925 (get): SImplified.
2926 (keys): Reimplemented.
2927 (allKeys): Likewise.
2928 (convertSet): Removed.
2929
2930 2004-07-21 Michael Koch <konqueror@gmx.de>
2931
2932 * javax/swing/ActionMap.java,
2933 javax/swing/ComponentInputMap.java,
2934 javax/swing/InputMap.java,
2935 javax/swing/table/DefaultTableColumnModel.java,
2936 javax/swing/table/TableColumn.java,
2937 javax/swing/table/TableColumnModel.java,
2938 javax/swing/table/TableModel.java,
2939 javax/swing/text/AbstractDocument.java,
2940 javax/swing/text/TextAction.java:
2941 Reformated.
2942
2943 2004-07-21 Graydon Hoare <graydon@redhat.com>
2944
2945 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
2946 Make method non-static.
2947 * javax/swing/AbstractButton.java:
2948 Rename fields to match property names where possible.
2949 (iconTextGap): New property.
2950 * javax/swing/JCheckBox.java: Match AbstractButton changes.
2951 (init) New method, call from after various constructors.
2952 * javax/swing/JComponent.java (revalidate):
2953 Invalidate before queueing repair.
2954 * javax/swing/JList.java (getPreferredScrollableViewportSize):
2955 Reimplement in terms of visibleRowCount property.
2956 * javax/swing/JMenuButton.java: Match AbstractButton changes.
2957 * javax/swing/JScrollPane.java (createScrollListener):
2958 Remove tracing chatter.
2959 * javax/swing/JToggleButton.java: Match AbstractButton changes.
2960 * javax/swing/RepaintManager.java (addInvalidComponent):
2961 Don't invalidate.
2962 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
2963 calculations.
2964 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
2965 Mimic sun behavior on top left/right positioning.
2966 * javax/swing/ViewportLayout.java (preferredLayoutSize):
2967 Remove mistaken use of preferredScrollableViewportSize here.
2968 (layoutContainer): Use view's preferred size as basis.
2969 * javax/swing/plaf/basic/BasicButtonUI.java:
2970 Set, get, and use textIconGap property.
2971 (paint) Paint text returned from layout (with ellipsis).
2972 * javax/swing/plaf/basic/BasicListUI.java:
2973 Remove tracing chatter, correct various minor calculations.
2974 (getCellBounds): Update layout state before calculating.
2975 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
2976 Use margin default similar to sun's.
2977 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
2978 (createIncreaseIcon): Center icon, minimize margins.
2979 (createDecreaseIcon): Likewise.
2980 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
2981 Implement.
2982 (installUI): Call it.
2983 (uninstallDefaults): Implement.
2984 (uninstallUI): Call it.
2985 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
2986 Call existing Window constructor.
2987 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
2988 Set clip before painting.
2989
2990 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2991
2992 * javax/swing/JMenuItem.java:
2993 (processMouseEvent): Reimplemented to deal with
2994 mouse drag events.
2995 (createMenuDragMouseEvent): New private helper method.
2996 Creates MenuDragMouseEvent.
2997 * javax/swing/MenuSelectionManager.java
2998 (componentForPoint): Implemented.
2999 (isComponentPartOfCurrentMenu): Made public.
3000 (processMouseEvent): Reimplemented to deal with
3001 mouse drag events.
3002 (setSelectedPath): Corrected small mistake that caused
3003 path to be set incorrectly.
3004 (getPath): If given component is JMenu then also add this
3005 menu's popup menu to the selected path.
3006 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3007 (getPath): Ditto.
3008 (getPreferredSize): Call getPreferredMenuItemSize().
3009 (getPreferredItemSize): Moved code from getPreferredSize to here.
3010 (installListeners): Install MouseMotionListeners.
3011 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
3012 if mouse wasn't released in the bounds of this menu item.
3013 (MenuDragMouseHandler): Implemented.
3014 * javax/swing/plaf/basic/BasicMenuUI.java:
3015 (installListeners): Install MouseMotionListener and
3016 MenuDrageMouseListener.
3017 (MenuDragMouseHandler): Implemented.
3018 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3019 (uninstallListeners): Implemented.
3020
3021 2004-07-21 Michael Koch <konqueror@gmx.de>
3022
3023 * javax/swing/JCheckBox.java: Reformated.
3024 (JCheckBox): Fixed all constructors.
3025 (isBorderPaintedFlat): New method.
3026 (setBorderPaintedFlat): New method.
3027 * javax/swing/JEditorPane.java
3028 (createEditorKitForContentType): Made public.
3029 (scrollToReference): Likewise.
3030 * javax/swing/JTextArea.java
3031 (setLineWrap): Fire property change.
3032 * javax/swing/JToggleButton.java
3033 (JToggleButton): New constructor.
3034 (JToggleButton): Simplified.
3035 * javax/swing/text/AttributeSet.java
3036 (FontAttribute): Renamed from FontCharacterAttribute.
3037 * javax/swing/text/JTextComponent.java
3038 (KeyBinBinding): Added javadoc.
3039 (JTextComponent): Likewise.
3040 (getAccessibleContext): Fixed javadoc.
3041 * javax/swing/text/View.java
3042 (View): Added javadoc.
3043 * javax/swing/text/TabableView.java: New file.
3044 * Makefile.am: Added javax/swing/text/TabableView.java.
3045 * Makefile.in: Regenerated.
3046
3047 2004-07-21 Graydon Hoare <graydon@redhat.com>
3048
3049 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
3050 * gnu/java/awt/peer/gtk/GtkToolkit.java
3051 (GtkErrorImage): New helper class.
3052 (bufferedImageOrError): New helper method.
3053 (createImage): Use it.
3054
3055 2004-07-21 David Jee <djee@redhat.com>
3056
3057 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3058 (setCaretPosition): Scroll the text view so the new caret position
3059 is visible on screen.
3060
3061 2004-07-21 David Jee <djee@redhat.com>
3062
3063 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3064 (setBounds): Do not validate awtComponent here.
3065 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
3066 (getPreferredSize): New method.
3067 * java/awt/ScrollPane.java
3068 (ScrollPane): Set default size to 100x100.
3069 (addNotify): If child is not a Panel, wrap it with a new Panel.
3070 (paramString): Implement.
3071
3072 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3073
3074 * javax/swing/JMenu.java:
3075 (setSelected): Display popup menu only if this menu
3076 is showing on the screen.
3077 * javax/swing/JPopupMenu.java:
3078 (processMouseEvent): Added comment.
3079 (processKeyEvent): Likewise.
3080 * javax/swing/MenuSelectionManager.java:
3081 (clearSelectedPath): Only fireStateChanged() after
3082 selected path was changed, not before.
3083 (setSelectedPath): Likewise.
3084 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3085 (paintMenuItem): Corrected position of menu item's
3086 icon.
3087 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3088 (installUI): Correct setDefaultLightWeightPopupEnabled call.
3089 (popupMenuCanceled): Reimplemented.
3090 (popupMenuWillBecomeVisible): Select first menu item by default
3091 when displaying free floating popup menus.
3092 (TopWindowListener): Reimplemented.
3093
3094 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3095
3096 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
3097 Panel from being painted twice when it is first shown.
3098
3099 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3100
3101 * java/awt/Window.java: Reverted changes from my
3102 previous patch for creating window without an owner.
3103 * javax/swing/SwingUtilities.java:
3104 (SwingUtilities.OwnerFrame): made static.
3105 (OwnerFrame.setVisible): New method. Overridden with
3106 empty implementation.
3107 (OwnerFrame.isShowing): New method. Ovverridden
3108 to return always true.
3109
3110 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3111
3112 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3113 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3114 (GtkComponentPeer): Remove temporary try/catch block.
3115 (setVisible): Call show and hide.
3116 (show): Make native.
3117 (hide): Likewise.
3118 (getArgs): Don't add "visible" argument.
3119 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3120 (property_notify_predicate): Return Bool instead of int.
3121 (find_layout): New function.
3122 (connectJObject): Call find_layout.
3123 (connectSignals): Likewise.
3124 (moveLayout): Likewise.
3125 (gtkLayoutSetVisible): Likewise.
3126
3127 2004-07-21 Mark Wielaard <mark@klomp.org>
3128
3129 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3130 on notifier object before calling notifyAll().
3131
3132 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3133
3134 * java/awt/Window.java: Changed constructors to use new
3135 method that is described below. Constructors call this
3136 methods only if newly created window should have an owner.
3137 (setWindowOwner): New method. Implementation for
3138 this method is moved from this(owner,configuration).
3139 * javax/swing/JWindow.java:
3140 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3141 instead of owner.
3142 * javax/swing/SwingUtilities.java:
3143 (ownerFrame): Change type of this field to OwnerFrame.
3144 (getOwnerFrame): Changed to return object of type OwnerFrame.
3145 (SwingUtilities.OwnerFrame): New class. Represents owner
3146 of a Window that is not provided with one.
3147
3148 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3149
3150 * javax/swing/AbstractButton.java:
3151 (configurePropertiesFromAction): Set action command
3152 to button's text by default if action command is not
3153 explicitely specified.
3154 * javax/swing/JMenu.java: Remove unnecessary listener
3155 and methods relevant to it.
3156 (setSelected): Reimplemented.
3157 (menuSelectionChanged): Moved most part of implementation to
3158 setSelected() and call it instead.
3159 * javax/swing/JMenuItem.java:
3160 (init): Comment out statement that sets paint_border to false.
3161 (configurePropertiesFromAction): Do not set accelerator
3162 for JMenu.
3163 (menuSelectionChanged): Change selected index in the selection
3164 model of menu item's parent.
3165 * javax/swing/JPopupMenu.java:
3166 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3167 instead of GridBagConstraints.HORIZONTAL.
3168 (insert): Likewise.
3169 (createActionChangeListener): Implemented.
3170 (setVisible): Correct location of HeavyWeightMenu and
3171 don't firePopupMenuCanceled().
3172 (menuSelectionChanged): Implemented.
3173 (ActionChangeListener): New Listener. Implemented.
3174 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3175 (BasicMenuBarUI.ContainerHandler): Implemented.
3176 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3177 (paintMenuItem): Uncommented out code that paints
3178 icon, now that icons are working properly.
3179 (PropertyChangeListener): Implemented.
3180 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3181 Added javadocs.
3182 (topWindowListener): New field.
3183 (Constructor): initialize topWindowListener.
3184 (BasicPopupMenuUI.TopWindowListener): Implemented.
3185 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3186 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3187 Implemented.
3188
3189 2004-07-21 Michael Koch <konqueror@gmx.de>
3190
3191 * javax/swing/plaf/basic/BasicButtonUI.java
3192 (paintFocus): Fixed method signature.
3193 (paintButtonPressed): Likewise.
3194 (paintButtonNormal): Likewise.
3195 (paintText): New method.
3196 * javax/swing/plaf/basic/BasicLabelUI.java
3197 (paint): Re-indented.
3198 * javax/swing/plaf/basic/BasicTextUI.java
3199 (installUI): Set parent textComponent to opaque.
3200 * javax/swing/text/DefaultHighlighter.java
3201 (checkPositions): New helper method.
3202 (addHighlight): Throws BadLocationException, check positions.
3203 (changeHighlight): Likewise.
3204 * javax/swing/text/EditorKit.java
3205 (EditorKit): Implements Serializable.
3206 * javax/swing/text/JTextComponent.java
3207 (getUI): Added javadoc.
3208 (setUI): Likewise.
3209 (upadteUI): Added javadoc, don't revalidate and repaint.
3210
3211 2004-07-21 David Jee <djee@redhat.com>
3212
3213 * java/awt/GridBagLayout.java
3214 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3215 * javax/swing/AbstractButton.java
3216 (setText): Reindent.
3217 * javax/swing/RepaintManager.java
3218 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3219
3220 2004-07-21 Michael Koch <konqueror@gmx.de>
3221
3222 * javax/swing/JFormattedTextField.java
3223 (value): New field.
3224 (JFormattedTextField): Implemented.
3225 (getValue): Likewise.
3226 (setValue): Likewise.
3227 * javax/swing/LookAndFeel.java
3228 (getSupportsWindowDecorations): New method.
3229 * javax/swing/UIDefaults.java:
3230 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3231 (addPropertyChangeListener): Made public.
3232 (addResourceBundle): Likewise.
3233 (removeResourceBundle): Likewise.
3234 (setDefaultLocale): Likewise.
3235 * javax/swing/plaf/basic/BasicRootPaneUI.java
3236 (BasicRootPaneUI): Implements PropertyChangeListener.
3237 (propertyChange): New method.
3238 * javax/swing/plaf/basic/BasicTextUI.java
3239 (BasicHighlighter): New inner class.
3240 (createHighlighter): New method.
3241 * javax/swing/plaf/basic/BasicToolBarUI.java
3242 (DragWindow): Extends java.awt.Window.
3243 * javax/swing/text/JTextComponent.java
3244 (getDocument): Removed debug output.
3245 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3246 javax/swing/text/DefaultHighlighter.java,
3247 javax/swing/text/FieldView.java,
3248 javax/swing/text/PlainView.java: New files.
3249 * Makefile.am: Added new files.
3250 * Makefile.in: Regenerated.
3251
3252 2004-07-21 Michael Koch <konqueror@gmx.de>
3253
3254 * javax/swing/JEditorPane.java
3255 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3256 (createEditorKitForContentType): Likewise.
3257 * javax/swing/text/DefaultEditorKit.java
3258 (serialVersionUID): Added constant field.
3259 (EndOfLineStringPropery): Fixed typo.
3260 (DefaultEditorKit): New constructor.
3261 * javax/swing/text/Segment.java:
3262 Import java.text.CharacterIterator.
3263 * javax/swing/text/CharacterIterator.java,
3264 javax/swing/text/PlainEditorKit.java: Removed.
3265 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3266 javax/swing/text/PlainEditorKit.java.
3267 * Makefile.in: Regenerated.
3268
3269 2004-07-21 Michael Koch <konqueror@gmx.de>
3270
3271 * javax/swing/JButton.java,
3272 javax/swing/text/DefaultEditorKit.java,
3273 javax/swing/text/EditorKit.java,
3274 javax/swing/text/Segment.java,
3275 javax/swing/text/StyledEditorKit.java:
3276 Reformatted.
3277
3278 2004-07-21 Michael Koch <konqueror@gmx.de>
3279
3280 * javax/swing/ImageIcon.java
3281 (file): Removed.
3282 (description): Renamed from descr.
3283 (ImageIcon): Added missing constructors.
3284 (setParent): Removed.
3285 (setImageObserver): New method.
3286 (getImageObserver): New method.
3287 (paintIcon): Handle observer = null.
3288 * javax/swing/JButton.java
3289 (removeNotify): Fixed javadoc.
3290 (updateUI): Simplified.
3291 * javax/swing/JRootPane.java
3292 (serialVersionUID): New constant field.
3293 * javax/swing/UIManager.java:
3294 Fixed javadocs all over.
3295 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3296 * javax/swing/text/AbstractDocument.java
3297 (createPosition): Throws BadLocationException.
3298 (getText): Likewise.
3299 (remove): Likewise.
3300 * javax/swing/text/ComponentView.java
3301 (modelToView): Likewise.
3302 * javax/swing/text/DefaultEditorKit.java:
3303 Made all public methods public.
3304 (read): Throws BadLocationException and IOException.
3305 (write): Likewise.
3306 * javax/swing/text/EditorKit.java:
3307 Made all public methods public.
3308 (serialVersionUID): New constant field.
3309 (clone): New method.
3310 (read): Throws BadLocationException and IOException.
3311 (write): Likewise.
3312 * javax/swing/text/Segment.java
3313 (array): Made public.
3314 (count): Likewise.
3315 (offset): Likewise.
3316 (Segment): New constructors.
3317 (clone): Reimplemented.
3318 * javax/swing/text/StyledEditorKit.java
3319 (serialVersionUID): New constant field.
3320
3321 2004-07-21 Graydon Hoare <graydon@redhat.com>
3322
3323 * java/awt/image/BufferedImage.java
3324 (getSource): Implement.
3325 * javax/swing/ImageIcon.java
3326 (ImageIcon): Implement ctor.
3327 * javax/swing/ScrollPaneLayout.java
3328 (preferredLayoutSize): Be more careful about nulls.
3329
3330 2004-07-21 Michael Koch <konqueror@gmx.de>
3331
3332 * javax/swing/text/AttributeSet.java
3333 (CharacterAttribute): New interface
3334 (ColorAttribute): Likewise.
3335 (FontCharacterAttribute): Likewise.
3336 (ParagraphAttribute): Likewise.
3337 * javax/swing/text/DefaultCaret.java
3338 (moveCaret): New method.
3339 (positionCaret): Likewise.
3340 (repaint): Made protected.
3341 * javax/swing/text/JTextComponent.java
3342 (KeyBinding): Made it static.
3343 * javax/swing/text/View.java
3344 (getContainer): Honor parent == null.
3345
3346 2004-07-21 Michael Koch <konqueror@gmx.de>
3347
3348 * javax/swing/text/AbstractDocument.java:
3349 Reformatted.
3350
3351 2004-07-21 Michael Koch <konqueror@gmx.de>
3352
3353 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3354 Import javax.swing.UIManager explicitely.
3355 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3356 (ScrollingButton): Made it static.
3357
3358 2004-07-21 Michael Koch <konqueror@gmx.de>
3359
3360 * javax/swing/UIDefaults.java
3361 (ActiveValue): Made public.
3362 (LazyValue): Likewise.
3363 * javax/swing/plaf/basic/BasicTextUI.java
3364 (RootView): Reintroduced.
3365 (view): Removed.
3366 (rootView): New field.
3367 (installUI): Create document if needed, initialize rootView.
3368 (uninstallUI): Hanle rootView.
3369 (paint): Likewise.
3370 (getRootView): Likewise.
3371 (setView): Likewise.
3372 * javax/swing/text/DefaultCaret.java:
3373 Renamed all "evt" variables to "event".
3374
3375 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3376
3377 * libgcj.spec.in: Add -l-java-util-logging.
3378
3379 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3380
3381 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3382 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3383 gtk-xft-dpi can no calculate the right value.
3384 (dpi_changed_cb): Mark *pspec as unsused.
3385
3386 2004-07-21 David Jee <djee@redhat.com>
3387
3388 * java/awt/Component.java
3389 (move): Delegate to setBounds().
3390 (resize): Likewise.
3391 (reshape): Fix so it repaints parent and self only when necessary.
3392
3393 2004-07-21 David Jee <djee@redhat.com>
3394
3395 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3396 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3397 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3398 (setVisible): Likewise.
3399 (show): Likewise.
3400 (hide): Likewise.
3401 (getArgs): Likewise.
3402 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3403 (property_notify_predicate): Likewise.
3404 (find_layout): Likewise.
3405 (connectJObject): Likewise.
3406 (connectSignals): Likewise.
3407 (moveLayout): Likewise.
3408 (gtkLayoutSetVisible): Likewise.
3409
3410 2004-07-21 Graydon Hoare <graydon@redhat.com>
3411
3412 * Makefile.am
3413 (jv_convert_LDADD):
3414 (gij_LDADD):
3415 (rmic_LDADD):
3416 (rmiregistry_LDADD): Add lib-java-util-logging.la
3417 * Makefile.in: Regenerate.
3418
3419 2004-07-21 Michael Koch <konqueror@gmx.de>
3420
3421 * javax/swing/text/AbstractDocument.java
3422 (replace): Dont use protected method of java.util.Vector directly.
3423
3424 2004-07-21 Michael Koch <konqueror@gmx.de>
3425
3426 * javax/swing/plaf/basic/BasicTextUI.java
3427 (installUI): Call specialized install methods.
3428 (installDefaults): New method.
3429 (installListeners): Likewise.
3430 (installKeyboardActions): Likewise.
3431 (uninstallUI): Likewise.
3432 (uninstallDefaults): New method.
3433 (uninstallListeners): Likewise.
3434 (uninstallKeyboardActions): Likewise.
3435 (getPropertyPrefix): New abstract method.
3436 (paint): Made final, just call paintSafely().
3437 (paintSavely): New method.
3438 (paintBackground): Likewise.
3439 (getVisibleEditorRect): Likewise.
3440 * javax/swing/text/LayeredHighlighter.java,
3441 javax/swing/text/TabExpander.java: New files.
3442 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3443 and javax/swing/text/TabExpander.java.
3444 * Makefile.in: Regenerated.
3445
3446 2004-07-21 Michael Koch <konqueror@gmx.de>
3447
3448 * javax/swing/plaf/basic/BasicTextUI.java
3449 (BasicTextUI): Made abstract.
3450 (BasicCaret): New inner class.
3451 (view): Don't explicitely initialize with "null".
3452 (textComponent): New field.
3453 (textColor): Removed.
3454 (disabledTextColor): Removed.
3455 (normalBackgroundColor): Removed.
3456 (RootView): Removed commented out inner class.
3457 (createUI): Removed.
3458 (createCaret): New method.
3459 (getComponent): Likewise.
3460 (installUI): Initialize textComponent only.
3461 (getPreferredSize): Use installed JTextComponent.
3462 (setView): New method.
3463 (create): Likewise.
3464 * javax/swing/text/JTextComponent.java
3465 (highlighter): New field.
3466 (caretColor): Likewise.
3467 (disabledTextColor): Likewise.
3468 (seletedTextColor): Likewise.
3469 (selectionColor): Likewise.
3470 (setUI): New method.
3471 (getCaretColor): Likewise.
3472 (setCaretColor): Likewise.
3473 (getDisabledColor): Likewise.
3474 (setDisabledColor): Likewise.
3475 (getSelectedTextColor): Likewise.
3476 (setSelectedTextColor): Likewise.
3477 (getSelectionColor): Likewise.
3478 (setSelectionColor): Likewise.
3479 (getHighlighter): Likewise.
3480 (setHighlighter): Likewise.
3481 (replaceSelection): Likewise.
3482
3483 2004-07-21 Michael Koch <konqueror@gmx.de>
3484
3485 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3486 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3487 * javax/swing/plaf/basic/BasicToolBarUI.java
3488 (BasicToolBarUI): Implements SwingConstants.
3489
3490 2004-07-21 Michael Koch <konqueror@gmx.de>
3491
3492 * javax/swing/JPopupMenu.java: Removed CVS tags.
3493 * javax/swing/UIDefaults.java: Reformatted.
3494 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3495 Explicitely import used classes.
3496
3497 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3498
3499 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3500 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3501 (GtkComponentPeer): Remove temporary try/catch block.
3502 (setVisible): Call show and hide.
3503 (show): Make native.
3504 (hide): Likewise.
3505 (getArgs): Don't add "visible" argument.
3506 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3507 (property_notify_predicate): Return Bool instead of int.
3508 (find_layout): New function.
3509 (connectJObject): Call find_layout.
3510 (connectSignals): Likewise.
3511 (moveLayout): Likewise.
3512 (gtkLayoutSetVisible): Likewise.
3513
3514 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3515
3516 * javax/swing/AbstractButton.java:
3517 (setDisplayedMnemonicIndex): Check if button
3518 text is not null before checking its length.
3519 * javax/swing/JMenuItem.java:
3520 (processMouseEvent): Disarm menu item if mouse has
3521 exited it.
3522 * javax/swing/plaf/basic/BasicMenuUI.java:
3523 (MouseInputHandler.mouseEntered): Do not raise
3524 popup menu if this menu is already selected.
3525 (MouseInputHandler.mousePressed): Do not fire
3526 MenuEvents.
3527 (MenuHandler): Implemented.
3528
3529 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3530
3531 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3532 (getSelectedObjects): Implemented.
3533 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3534 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3535 Added javadoc for few methods.
3536 (processMouseEvent): Made public.
3537 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3538 (processMouseEvent): Likewise.
3539
3540 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3541
3542 * javax/swing/AbstractButton.java:
3543 (init): Set display mnemonic index to -1.
3544 (setMnemonic(char)): Use setMnemonic(int).
3545 (setMnemonic(int)): Set display mnemonic index.
3546 (getDisplayedMnemonicIndex): Change method signature
3547 by removing 'index' parameter.
3548 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3549 Added default for Menu.selectionBackground.
3550 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3551 (paintMenuItem): Change background color of the selected
3552 menu item.
3553 (paintText): Paint differently when menu item is disabled.
3554 Also paint mnemonic if it appears in the menu item's label.
3555 (paintAccelerator): Paint accelerator differently
3556 if menu item is disabled.
3557 * javax/swing/plaf/basic/BasicMenuUI.java:
3558 (installDefaults): Install defaults for
3559 selectionForeground and selectionBackground.
3560 (uninstallDefaults): Uninstall defauls for
3561 selectionForeground and selectionBackground.
3562
3563 2004-07-21 Michael Koch <konqueror@gmx.de>
3564
3565 * javax/swing/text/AbstractDocument.java
3566 (BranchElement): Implemented.
3567 (LeafElement): Implemented.
3568 * javax/swing/text/DefaultCaret.java:
3569 Import used classes.
3570 (serialVersionUID): New constant.
3571 * javax/swing/text/JTextComponent.java
3572 (AccessibleJTextComponent): Removed dead declaration.
3573 (caretPos): Removed.
3574 (setCaret): New method.
3575 * javax/swing/text/PlainDocument.java
3576 (rootElement): New field.
3577 (PlainDocument): Initialize rootElement.
3578 (createDefaultRoot): New method.
3579 (getDefaultRootElement): Implemented.
3580 * javax/swing/text/View.java: Reformatted.
3581 * javax/swing/text/ViewFactory.java
3582 (create): Added javadoc.
3583
3584 2004-07-21 Michael Koch <konqueror@gmx.de>
3585
3586 * javax/swing/ToolTipManager.java: Reformatted.
3587
3588 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3589
3590 * javax/swing/AbstractButton.java
3591 (changeEvent): New field.
3592 (fireItemStateChanged): Change source of the event
3593 to 'this' before firing it to button listeners.
3594 (fireActionPerformed): Likewise.
3595 (fireStateChanged): Likewise.
3596 (createActionListener): Do not set source
3597 of the event to AbstractButton.
3598 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3599 (ContainerHandler.componentAdded): Removed
3600 print out statement.
3601 (ContainerHandler.componentRemoved): Likewise.
3602
3603 2004-07-21 Michael Koch <konqueror@gmx.de>
3604
3605 * javax/swing/text/Highlighter.java: New file.
3606 * Makefile.am: Added javax/swing/text/Highlighter.java.
3607 * Makefile.in: Regenerated.
3608
3609 2004-07-21 Michael Koch <konqueror@gmx.de>
3610
3611 * javax/swing/ToolTipManager.java
3612 (stillInsideTimerAction): Fixed constructor arguments.
3613 (outsideTimerAction): Likewise.
3614 (insideTimerAction): Likewise.
3615
3616 2004-07-21 Michael Koch <konqueror@gmx.de>
3617
3618 * javax/swing/JButton.java: Reformatted.
3619 * javax/swing/JFormattedTextField.java
3620 (getUIClassID): Implemented.
3621 * javax/swing/JRootPane.java
3622 (serialVersionUID): New constant.
3623 * javax/swing/JTextField.java
3624 (align): New field.
3625 (JTextField): Simplified.
3626 (getUIClassID): New method.
3627 (getActionListeners): Added @since tag.
3628 (setColumns): Invalidate layout and repaint.
3629 (getHorizontalAlignment): New method.
3630 (setHorizontalAlignment): New method.
3631 (selectAll): Removed.
3632 * javax/swing/SwingUtilities.java
3633 (getAncestorOfClass): Removed redundant @see tag.
3634 (isLeftMouseButton): Fixed implementation.
3635 (isMiddleMouseButton): Likewise.
3636 (isRightMouseButton): Likewise.
3637 * javax/swing/text/AbstractDocument.java
3638 (AttributeContext.addAttribute): New method.
3639 (AttributeContext.addAttributes): New method.
3640 (AttributeContext.getEmptySet): New method.
3641 (AttributeContext.reclaim): New method.
3642 (AttributeContext.removeAttribute): New method.
3643 (AttributeContext.removeAttributes): New method.
3644 * javax/swing/text/Document.java
3645 (createPosition): Throws BadLocationException.
3646 (getText): Likewise.
3647 (remove): Likewise.
3648 * javax/swing/text/JTextComponent.java
3649 (getText): Return null if no document is set. Catch
3650 BadLocationException.
3651 (getUI): Return ui.
3652 (updateUI): Simplified.
3653
3654 2004-07-21 Michael Koch <konqueror@gmx.de>
3655
3656 * javax/swing/JButton.java
3657 (removeNotify): Fixed javadoc.
3658 (updateUI): Simplified.
3659
3660 2004-07-21 David Jee <djee@redhat.com>
3661
3662 * gnu/java/awt/image/ImageDecoder.java
3663 (startProduction): Only add consumer if it's not added yet.
3664 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3665 (GdkPixbufDecoder): Don't call initState() here.
3666 (produce): Call initState() here, to ensure area_prepared and
3667 area_updated signals are properly connected.
3668 * gnu/java/awt/peer/gtk/GtkImage.java
3669 (setColorModel): Use equals() to compare ColorModel objects.
3670 (setPixels): Likewise.
3671 * java/awt/image/ColorModel.java
3672 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3673 * java/awt/image/RGBImageFilter.java
3674 (setColorModel): Set consumer's color model.
3675 (setPixels): Use equals() to compare ColorModel objects.
3676
3677 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3678
3679 * java/net/URLConnection.java (position): New field.
3680 (dateFormat1, dateFormat2, dateFormat3): Removed.
3681 (dateFormats): New field.
3682 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3683 each time instead of re-allocating.
3684 (initializeDateFormats): Initialize 'dateFormats'.
3685
3686 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3687
3688 PR libgcj/16591
3689 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3690 is defined.
3691
3692 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3693
3694 * java/net/Socket.java (getImpl): Now private. Remove comment.
3695
3696 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3697
3698 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3699 of chained Writer when calling super-constructor.
3700 * java/io/FilterWriter.java (FilterWriter): Likewise.
3701 * java/io/PrintWriter.java (PrintWriter): Likewise.
3702
3703 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3704
3705 * prims.cc (process_gcj_properties): Don't increment i within LHS
3706 of assignment.
3707
3708 2004-07-19 Per Bothner <per@bothner.com>
3709
3710 Print -verbose:message on "loading", not initialization.
3711 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3712 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3713 gcj::verbose_class_flag.
3714 * java/lang/natClass.cc (initializeClass): Don't print message here.
3715 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3716 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3717 (_Jv_PrepareCompiledClass): Likewise.
3718
3719 2004-07-18 Matthias Klose <doko@debian.org>
3720
3721 * configure.in: Substitute target_noncanonical.
3722 * configure: Regenerate
3723
3724 2004-07-17 Michael Koch <konqueror@gmx.de>
3725
3726 * java/lang/String.java: Fixed javadocs all over.
3727
3728 2004-07-17 Mark Wielaard <mark@klomp.org>
3729
3730 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3731 when size is smaller.
3732 * java/io/RandomAccessFile.java (setLength): Use truncate for
3733 shrinking the file and seek plus write for expanding the file.
3734
3735 2004-07-17 Michael Koch <konqueror@gmx.de>
3736
3737 * gnu/java/nio/channels/natFileChannelPosix.cc
3738 (implTruncate): Always save current position. Only reposition file
3739 pointer to where we started if not beyond new lenght. Reposition file
3740 pointer to file length if it points beyond the end of file.
3741
3742 2004-07-17 Mark Wielaard <mark@klomp.org>
3743
3744 * javax/swing/Box.java: Put FIXME comment above class declaration.
3745 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3746 * javax/swing/JCheckBox.java: Likewise.
3747 * javax/swing/JDialog.java: Likewise.
3748 * javax/swing/JRadioButton.java: Likewise.
3749 * javax/swing/JToggleButton.java: Likewise.
3750 * javax/swing/UIManager.java: Likewise.
3751 * javax/swing/border/TitledBorder.java: Likewise.
3752 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3753 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3754 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3755 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3756 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3757 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3758 * javax/swing/text/JTextComponent.java: Likewise.
3759
3760 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
3761
3762 * java/net/DatagramPacket.java (setAddress): Removed check for
3763 null address.
3764
3765 2004-07-17 Michael Koch <konqueror@gmx.de>
3766
3767 * java/net/DatagramSocket.java
3768 (getLocalAddress): Check if socket is bound or not.
3769 * java/net/Socket.java
3770 (getLocalAddrss): Check if socket is bound or not.
3771 (getPort): Return -1 when not connected. Dont check getImpl() for
3772 null.
3773 (setReuseAddress): Check if socket is closed.
3774 (isConnected): Check if getImpl() returns null.
3775
3776 2004-07-17 Mark Wielaard <mark@klomp.org>
3777
3778 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3779 on notifier object before calling notifyAll().
3780
3781 2004-07-17 Michael Koch <konqueror@gmx.de>
3782
3783 * gnu/java/nio/channels/FileChannelImpl.java
3784 (finalize): Added javadoc.
3785
3786 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3787
3788 * java/text/CollationElementIterator.java
3789 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
3790 (setText): Use ArrayList instead of Vector.
3791
3792 2004-07-17 Michael Koch <konqueror@gmx.de>
3793
3794 * java/nio/ByteOrder.java
3795 (static): Removed. Not needed.
3796 Thanks to Patrick Reali for noticing.
3797 * java/nio/charset/CharsetDecoder.java
3798 (decode): Fix for classpath bug #9177: Reset state before flipping.
3799
3800 2004-07-17 Michael Koch <konqueror@gmx.de>
3801
3802 * java/security/Security.java: Fixed javadocs all over.
3803
3804 2004-07-17 Michael Koch <konqueror@gmx.de>
3805
3806 * gnu/java/awt/EmbeddedWindow.java
3807 (static): Removed.
3808 (addNotify): Set peer via reflection.
3809 (setWindowPeer): Removed.
3810 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3811 * Makefile.am (nat_source_files):
3812 Removed gnu/java/awt/natEmbeddedWindow.cc.
3813 * Makefile.in: Regenerated.
3814
3815 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
3816
3817 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
3818 assignment.
3819 * configure: Regenerated.
3820
3821 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
3822
3823 * configure.in: Use build_noncanonical rather than build_alias.
3824 * configure: Rebuild.
3825
3826 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
3827 by logic refactoring. Move default definition of NATIVE closer
3828 to first alternate definition.
3829 * configure: Regenerate.
3830
3831 * Makefile.am: Set ZIP and GCJH directly using autoconf.
3832 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
3833 gcj/Makefile.in: Regenerate.
3834 * configure.in: Set ZIP and GCJH. Remove redundant condition
3835 in AM_CONDITIONAL(NATIVE,...)
3836 * configure: Regenerate.
3837
3838 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
3839
3840 * configure.in: Use target_noncanonical rather than
3841 target_alias for forward-compatibility with autoconf 2.59.
3842 * configure: Regenerate.
3843 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
3844 testsuite/Makefile.am: Substitute target_noncanonical.
3845 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3846 testsuite/Makefile.in: Regenerate.
3847
3848 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
3849 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
3850 * acinclude.m4: Include acx.m4.
3851 * aclocal.m4: Regenerate.
3852 * configure: Regenerate.
3853
3854 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
3855
3856 PR libgcj/16574
3857 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
3858 (decimalFormat): New static variable.
3859 (sbuf): Likewise.
3860 (getTime): New. Override Date.getTime().
3861 (toString): Synchronize. Use decimalFormat to format nanos value
3862 correctly. Truncate extra zeros.
3863 (before): Compare getNanos() only if getTime() is equal.
3864 (after): Likewise.
3865
3866 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3867
3868 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
3869 * configure.in: ...here.
3870 * aclocal.m4: Regenerate.
3871 * configure: Regenerate.
3872
3873 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
3874 * configure: Rebuilt with autoconf 2.13.
3875 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3876 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
3877
3878 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
3879
3880 PR libgcj/16204
3881 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
3882 large file support.
3883 * Makefile.in: Rebuilt.
3884 * testsuite/libjava.lang/LargeFile.java: New test case.
3885 * testsuite/libjava.lang/LargeFile.out: New file.
3886
3887 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3888
3889 * java/beans/EventHandler.java: Remove debugging statements.
3890
3891 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3892
3893 * java/beans/EventHandler.java: New file.
3894 * Makefile.am (awt_java_source_files): Add EventHandler.java.
3895 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3896 testsuite/Makefile.in: Regenerate.
3897
3898 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
3899
3900 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
3901 flag to the gcj_setup.
3902 (gcj_jacks_run): Check tclsh version and launch jacks directly with
3903 the tclsh.
3904 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
3905 deprecation flag change. 58 XFAILS removed.
3906
3907 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3908
3909 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
3910 -fno-use-divide-subroutine.
3911 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
3912 (HANDLE_FPE): Define.
3913 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
3914 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3915 (HANDLE_DIVIDE_OVERFLOW): Define.
3916
3917 2004-07-14 Michael Koch <konqueror@gmx.de>
3918 Matthias Klose <doko@debian.org>
3919
3920 * java/awt/im/InputContext.java: Initialize in, line.
3921
3922 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
3923
3924 * interpret.cc (run): Correctly access libffi return values of
3925 integral smaller-than-int type; these are implicitly promoted.
3926
3927 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
3928
3929 PR libgcj/7587
3930 * interpret.cc (compile_mutex): New.
3931 (_Jv_InitInterpreter): New. Initialize compile_mutex.
3932 (run): Lock compile_mutex before calling compile() if compilation is
3933 required.
3934 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
3935 * include/java-interp.h (_Jv_InitInterpreter): Declare.
3936
3937 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
3938
3939 PR libgcj/15713
3940 * include/jvm.h (_Jv_value): New union type.
3941 * gcj/field.h (_Jv_Field): Add new _addr union field variants
3942 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
3943 union members.
3944
3945 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
3946
3947 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
3948 * gnu/awt/xlib/XOffScreenImage.java
3949 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
3950 constructor argument. Add constructor using ImageProducer.
3951 (getSource): Implement.
3952 (imageComplete): New method.
3953 (setColorModel): New method.
3954 (setDimensions): New method.
3955 (setHints): New method.
3956 (setPixels): New method.
3957 (setProperties): New method.
3958 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
3959 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
3960
3961 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
3962
3963 PR libgcj/16478
3964 * prims.cc (_Jv_CreateJavaVM): Fix comment.
3965 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
3966 (finalizerReady): Now native.
3967 (run): Likewise.
3968 (runFinalizers): Removed.
3969 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
3970 a primitive lock, and don't hold it while running the finalizers.
3971 (runFinalizers): Implement. Don't aquire any Java lock.
3972 (finalizerReady): Use lock primitives to signal finalizer thread.
3973
3974 2004-07-11 Mark Wielaard <mark@klomp.org>
3975
3976 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
3977 * java/net/URLStreamHandler.java (parseURL): When url file part
3978 doesn't contain a '/' just ignore context.
3979
3980 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
3981
3982 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
3983 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3984 (MAKE_THROW_FRAME): Do not modify PSW address.
3985 (INIT_SEGV): Install SIGINFO-style signal handler.
3986 (INIT_FPE): Likewise.
3987
3988 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3989
3990 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
3991 status. 21 xfail's removed, 1 added.
3992
3993 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3994
3995 * gcj/javaprims.h: Regenerate CNI namespace definitions.
3996
3997 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
3998
3999 * java/text/MessageFormat.java
4000 (formatInternal): Append "{n}" if argument n is unavailable.
4001 (format(Object, StringBuffer, FieldPosition)): This
4002 should be equivalent to format(Object[],
4003 StringBuffer, FieldPosition).
4004
4005 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4006
4007 * java.util.Calendar.java (cache): New private static field. Cached
4008 mappings of locales->calendar classes.
4009 (ctorArgTypes): New private static field. Singleton argument for
4010 calendar class constructor lookup.
4011 (getInstance): Cache Locale->Calendar class mappings using HashMap.
4012 Optimize by bypassing reflection instantiation for the
4013 GregorianCalendar case.
4014
4015 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4016
4017 * java/util/Calendar.java: Use getSystemClassLoader as argument for
4018 ResourceBundle.getBundle() calls.
4019 * java/util/GregorianCalendar.java: Likewise.
4020 * java/util/Currency.java: Likewise.
4021 * java/text/BreakIterator.java: Likewise.
4022 * java/text/Collator.java: Likewise.
4023 * java/text/DateFormat.java: Likewise.
4024 * java/text/DateFormatSymbols.java: Likewise.
4025 * java/text/DecimalFormatSymbols.java: Likewise.
4026 * java/text/NumberFormat.java: Likewise.
4027 * java/awt/Window.java: Likewise.
4028
4029 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4030
4031 * java/util/ResourceBundle.java (bundleCache): Renamed from
4032 resourceBundleCache. Update comments.
4033 (getObject): Don't catch MissingResourceException.
4034 (getBundle(String)): Remove 'final'. Use system classloader if
4035 getCallingClassLoader returned null.
4036 (getBundle(String, Locale)): Likewise.
4037 (BundleKey): New private class. HashMap key for bundle cache lookup.
4038 (lookupKey): New. Singleton instance of BundleKey.
4039 (nullEntry): New. Cache entry to represent failed lookups.
4040 (getBundle(String, Locale, ClassLoader)): Re-written to use new
4041 caching strategy, no-allocation lookup, and new tryBundle methods.
4042 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
4043 name using given classloader.
4044 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
4045 baseName for given Locale and attempt to load bundle.
4046
4047 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4048
4049 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
4050 illegal protected method calls.
4051
4052 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4053
4054 Fix or remove some bogus test cases.
4055 * testsuite/libjava.compile/pr10459_2.java: Removed.
4056 * testsuite/libjava.compile/pr10459.java: Test using its own method,
4057 not Object.clone().
4058 * testsuite/libjava.compile/inner_data.java: Test against its own
4059 protected field.
4060
4061 2004-07-09 Michael Koch <konqueror@gmx.de>
4062
4063 * scripts/unicode-muncher.pl: Updated to version 2.1
4064 from GNU classpath. Added some clarifications on where to find the
4065 needed files from www.unicode.org.
4066 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
4067 gnu/gcj/convert/UnicodeData-3.0.0.txt:
4068 Removed, these can directly be downloaded from www.unicode.org if
4069 needed.
4070 * gnu/java/lang/CharData.java: Regenerated.
4071 * include/java-chartables.h: Regenerated.
4072 * Makefile.am (ordinary_java_source_files):
4073 Removed gnu/java/lang/CharData.java.
4074 * Makefile.in: Regenerated.
4075
4076 2004-07-09 Michael Koch <konqueror@gmx.de>
4077
4078 * java/security/AccessControlContext.java,
4079 java/security/SecureClassLoader.java:
4080 Fixed javadocs.
4081
4082 2004-07-09 Michael Koch <konqueror@gmx.de>
4083
4084 * java/io/ObjectInputStream.java (readFields): Use long datatype
4085 when shifting byte values more then 24 bits left.
4086
4087 2004-07-09 Michael Koch <konqueror@gmx.de>
4088
4089 * java/util/zip/DeflaterOutputStream.java,
4090 java/util/zip/GZIPInputStream.java,
4091 java/util/zip/GZIPOutputStream.java,
4092 java/util/zip/InflaterInputStream.java:
4093 Reformatted. Added javadocs. Reordered all stuff.
4094 Renamed variables to be more clear.
4095
4096 2004-07-09 Michael Koch <konqueror@gmx.de>
4097
4098 * javax/imageio/IIOException.java,
4099 javax/imageio/event/IIOReadProgressListener.java,
4100 javax/imageio/event/IIOReadUpdateListener.java,
4101 javax/imageio/event/IIOReadWarningListener.java,
4102 javax/imageio/event/IIOWriteProgressListener.java,
4103 javax/imageio/event/IIOWriteWarningListener.java:
4104 New files.
4105 * Makefile.am: Added new files.
4106 * Makefile.in: Regenerated.
4107
4108 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4109
4110 * java/text/RuleBasedCollator.java
4111 (mergeRules): Use ArrayList instead of Vector.
4112 (subParseString): likewise.
4113 (parseString): likewise.
4114 (buildCollationVector): likewise.
4115 (getCollationKey): likewise.
4116
4117 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4118
4119 * java/text/DateFormat.java (parse):
4120 Improved javadoc. Improved exception message.
4121
4122 2004-07-09 Mark Wielaard <mark@klomp.org>
4123
4124 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4125 interrupted() method to clear interupt flag of our Thread.
4126
4127 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4128
4129 * java/nio/Buffer.java,
4130 java/nio/ByteBuffer.java,
4131 java/nio/ByteBufferHelper.java,
4132 java/nio/ByteBufferImpl.java,
4133 java/nio/CharBuffer.java,
4134 java/nio/CharBufferImpl.java,
4135 java/nio/CharViewBufferImpl.java,
4136 java/nio/DirectByteBufferImpl.java,
4137 java/nio/DoubleBuffer.java,
4138 java/nio/DoubleBufferImpl.java,
4139 java/nio/DoubleViewBufferImpl.java,
4140 java/nio/FloatBuffer.java,
4141 java/nio/FloatBufferImpl.java,
4142 java/nio/FloatViewBufferImpl.java,
4143 java/nio/IntBuffer.java,
4144 java/nio/IntBufferImpl.java,
4145 java/nio/IntViewBufferImpl.java,
4146 java/nio/LongBuffer.java,
4147 java/nio/LongBufferImpl.java,
4148 java/nio/LongViewBufferImpl.java,
4149 java/nio/MappedByteBufferImpl.java,
4150 java/nio/ShortBuffer.java,
4151 java/nio/ShortBufferImpl.java,
4152 java/nio/ShortViewBufferImpl.java:
4153 Fixed javadocs all over. Improved input error
4154 checking.
4155
4156 * java/nio/Buffer.java
4157 (checkForUnderflow, checkForOverflow, checkIndex,
4158 checkIfReadOnly, checkArraySize): New helper methods
4159 for error checking.
4160
4161 * java/nio/ByteBufferHelper.java
4162 (checkRemainingForRead, checkRemainingForWrite,
4163 checkAvailableForRead, checkAvailableForWrite): Removed
4164 no longer needed methods.
4165
4166 2004-07-09 Michael Koch <konqueror@gmx.de>
4167
4168 * gnu/regexp/CharIndexedInputStream.java:
4169 Reordered imports to match classpath.
4170
4171 2004-07-09 Michael Koch <konqueror@gmx.de>
4172
4173 * gnu/java/awt/EmbeddedWindow.java:
4174 Load native library for setWindowPeer method.
4175
4176 2004-07-08 Randolph Chung <tausq@debian.org>
4177
4178 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4179 * configure: Regenerate.
4180 * configure.host: Set can_unwind_signal for hppa*-linux.
4181 * include/pa-signal.h: New file.
4182
4183 2004-07-07 Per Bothner <per@bothner.com>
4184
4185 * Makefile.am: Add rules to build libgij from just gij.cc.
4186
4187 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4188 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4189 (initializeClass): If verbose_class_flag, print message.
4190 * gij.cc (main): Handle -verbose:class flag.
4191
4192 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4193
4194 * configure.host: Enable hash synchronization on Darwin.
4195 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4196 ';', since this is a comment on Darwin.
4197 (compare_and_swap_release): Likewise.
4198
4199 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4200
4201 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4202 file portion of URL in addition to spec for file: protocol.
4203
4204 2004-07-05 Anthony Green <green@redhat.com>
4205
4206 * java/io/File.java (toURI): Merge from Classpath.
4207
4208 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4209
4210 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4211 before passing to URL constructor. Rethrow any MalformedURLException
4212 as a RuntimeException. Catch MalformedURLException specifically, not
4213 all exceptions.
4214
4215 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4216
4217 * java/util/Locale.java (readObject): Intern strings read from object
4218 stream.
4219
4220 2004-07-04 Michael Koch <konqueror@gmx.de>
4221
4222 * gnu/gcj/runtime/FirstThread.java,
4223 gnu/gcj/runtime/natFirstThread.cc: Removed.
4224 * gnu/java/lang/MainThread.java,
4225 gnu/java/lang/natMainThread.cc: New files.
4226 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4227 * Makefile.am: Added new files and removed deleted ones.
4228 * Makefile.in: Regenerated.
4229
4230 2004-07-03 Mark Wielaard <mark@klomp.org>
4231 Anthony Green <green@redhat.com>
4232
4233 * java/net/URL.java (getFile): Clarify return value doc.
4234 (getPath): Return null if file is empty - not empty String.
4235 (set): Convert protocol to lower case before doing anything.
4236 Only change the protocol handler if it's different.
4237
4238 2004-07-03 Anthony Green <green@redhat.com>
4239
4240 * java/net/URL.java (URL): Convert protocol to lower case before
4241 doing anything, so we getURLStreamHandler() with the proper value.
4242
4243 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4244
4245 * java/util/Locale.java (hashcode): Made transient.
4246 (hashCode): No longer synchronized.
4247 (equals): Remove comment.
4248 (writeObject): No longer synchronized. Implement using writeObject
4249 calls instead of tweaking hashCode field. Update doc.
4250 (readObject): Implement using readObject calls.
4251
4252 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4253 Andreas Tobler <a.tobler@schweiz.ch>
4254
4255 * configure.host (powerpc-*-darwin*): New case, define
4256 can_unwind_signal.
4257 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4258 * configure: Regenerate.
4259 * include/darwin-signal.h: New.
4260
4261 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4262
4263 * java/beans/Statement.java (doExecute): Fix formatting.
4264
4265 2004-06-29 Per Bothner <per@bothner.com>
4266
4267 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4268 etc etc): Remove needless parenthesis, which causes __stdcall__
4269 attribute on MinGW to get ignored.
4270
4271 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4272
4273 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4274
4275 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4276
4277 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4278
4279 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4280
4281 * java/beans/Expression.java: New file.
4282 * java/beans/Statement.java: New file.
4283 * Makefile.am: Added new files.
4284 * Makefile.in: Re-generate.
4285
4286 2004-06-27 Mark Wielaard <mark@klomp.org>
4287
4288 * java/io/FilePermission.java (usingPerms): Removed.
4289 (actionsString): Made final.
4290 (cachePerms): Renamed to checkPerms.
4291 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4292 on action String.
4293 (FilePermission): Check arguments, call checkPerms().
4294 (equals): Remove cachePerms() call.
4295 (implies): Likewise.
4296
4297 2004-06-27 Mark Wielaard <mark@klomp.org>
4298
4299 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4300 final field.
4301 (sendRequest): Use new field in user-agent http agent.
4302
4303 2004-06-27 Mark Wielaard <mark@klomp.org>
4304
4305 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4306 when argument is null.
4307
4308 2004-06-26 Mark Wielaard <mark@klomp.org>
4309
4310 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4311 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4312 GetMethodID call.
4313 (cancel_clicked): Likewise.
4314
4315 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4316
4317 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4318 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4319 can not calculate the right value.
4320 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4321
4322 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4323
4324 * testsuite/libjava.jacks/jacks.xfail: Remove
4325 15.9.1-qualified-concrete-20.
4326
4327 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4328
4329 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4330 encoding name to iconv.
4331 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4332
4333 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4334
4335 PR libgcj/16134:
4336 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4337 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4338 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4339
4340 2004-06-21 Andrew Haley <aph@redhat.com>
4341
4342 * java/io/ObjectOutputStream.java: Add DEBUG statements
4343 everywhere.
4344 (dumpElementln): New method.
4345 (depth): New field.
4346 * java/io/ObjectInputStream.java
4347 (currentClassLoader): Make native.
4348 (callersClassLoader): New field.
4349 (depth): New field.
4350 (readObject): ENDBLOCKDATA is generated if the class has a write
4351 method, not if it has a read method.
4352 (readObject): Save and restore this.currentObject and
4353 this.currentObjectStreamClass around calls to callReadMethod().
4354 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4355 method.
4356
4357 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4358
4359 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4360 darwin.
4361
4362 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4363
4364 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4365 if desired, before the default class loader is initialised.
4366 Call INIT_SEGV only if HANDLE_SEGV is defined.
4367
4368 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4369
4370 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4371 directory only if it actually exists.
4372
4373 2004-06-18 Graydon Hoare <graydon@redhat.com>
4374
4375 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4376 Fix up non-ansi comments.
4377
4378 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4379
4380 * javax/swing/text/AbstractDocument.java: Adding missing import
4381 for javax.swing.event.EventListenerList.
4382 * javax/swing/text/DefaultCaret.java: Likewise.
4383
4384 2004-06-17 Michael Koch <konqueror@gmx.de>
4385
4386 * javax/swing/JToolBar.java
4387 (name): Removed.
4388 (JToolBar): Use Component.setName(String) instead of doing it all
4389 alone.
4390 * javax/swing/Timer.java
4391 (queueEvent): Added missing modifier.
4392
4393 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4394
4395 * Makefile.am: Added new file.
4396 * Makefile.in: Re-generate.
4397 * javax/swing/JMenu.java:
4398 (insertSeparator): Implemented.
4399 * javax/swing/JPopupMenu.java:
4400 (JPopupMenu.Separator): Implemented.
4401 * javax/swing/MenuSelectionManager.java:
4402 (processMouseEvent): Use java.awt.Component
4403 for event source instead of javax.swing.JComponent.
4404 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4405 New File. Implemented.
4406
4407 2004-06-16 David Jee <djee@redhat.com>
4408
4409 * java/awt/GridBagLayout.java
4410 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4411 Make sure pos_x and pos_y are never negative.
4412
4413 2004-04-16 Andrew Overholt <overholt@redhat.com>
4414
4415 * Makefile.am: Add new file.
4416 * Makefile.in: Re-generate.
4417 * javax/swing/JToolBar.java
4418 Partially implemented.
4419 * javax/swing/plaf/basic/BasicToolBarUI.java
4420 New file. Partially implemented.
4421
4422 2004-06-16 Graydon Hoare <graydon@redhat.com>
4423
4424 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4425 (setComposite): Accept AlphaComposite arguments.
4426 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4427 (createBufferedImage): Add new overloads.
4428 * gnu/java/awt/peer/gtk/GtkToolkit.java
4429 (createImage): Use GdkPixbufDecoder.createBufferedImage
4430 when useGraphics2D() is true.
4431 (getImage): Delegate to createImage.
4432 * javax/swing/JList.java
4433 (isSelectionEmpty):
4434 (getFirstVisibleIndex):
4435 (getLastVisibleIndex):
4436 (setSelectedValue):
4437 (ensureIndexIsVisible): New methods.
4438 * javax/swing/Timer.java: Reimplement.
4439
4440 2004-06-16 Michael Koch <konqueror@gmx.de>
4441
4442 * javax/swing/text/AbstractDocument.java
4443 (AbstracElement): Made public, implements java.io.Serializable.
4444 (AttributeContext): Made public.
4445 (BranchElement): Likewise.
4446 (Content): Likewise.
4447 (DefaultDocumentEvent): Made public, extends
4448 javax.swing.undo.CompoundEdit.
4449 (ElementEdit): Made public, extends
4450 javax.swing.undo.AbstractUndoableEdit.
4451 (LeafElement): Made public.
4452 (LeafElement.LeafElement): Made public.
4453
4454 2004-06-16 Michael Koch <konqueror@gmx.de>
4455
4456 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4457 methods (that were obviously never be intended to get included hi this
4458 class. Added some methods too.
4459
4460 2004-06-16 Michael Koch <konqueror@gmx.de>
4461
4462 * javax/swing/text/PlainDocument.java
4463 (serialVersionUID): New constant.
4464 (lineLimitAttribute): Likewise.
4465 (tabSizeAttribute): Likewise.
4466 (tabSize): New field.
4467 (PlainDocument): Made public.
4468 (PlainDocument): New constructor.
4469
4470 2004-06-16 Michael Koch <konqueror@gmx.de>
4471
4472 * javax/swing/text/AbstractDocument.java
4473 (insertString): Throws BadLocationException.
4474 * javax/swing/text/Document.java
4475 (insertString): Likewise.
4476 * javax/swing/text/JTextComponent.java:
4477 Javadocs and comments cleaned up.
4478
4479 2004-06-16 Michael Koch <konqueror@gmx.de>
4480
4481 * javax/swing/event/UndoableEditListener.java: Reformatted.
4482 * javax/swing/text/AbstractDocument.java
4483 (AbstractDocument): Implements java.io.Serializable.
4484 (doc_list): Removed.
4485 (undo_list): Removed.
4486 (AbstractElement.serialVerionUID): New field.
4487 (BranchElement.serialVerionUID): Likewise.
4488 (DefaultDocumentEvent.serialVerionUID): Likewise.
4489 (ElementEdit.serialVerionUID): Likewise.
4490 (LeafElement.serialVerionUID): Likewise.
4491 (serialVerionUID): Likewise.
4492 (BAD_LOCATION): New constant.
4493 (BidiElementName): Likewise.
4494 (ContentElementName): Likewise.
4495 (ParagraphElementName): Likewise.
4496 (SectionElementName): Likewise.
4497 (ElementNameAttribute): Likewise.
4498 (AbstractDocument): Made protected.
4499 (AbstractDocument): New construtor.
4500 (listenerList): New field.
4501 (fireChangedUpdate): Implemented.
4502 (fireInsertUpdate): Likewise.
4503 (fireRemoveUpdate): Likewise.
4504 (fireUndoableEditUpdate): Likewise.
4505 (getListeners): Likewise.
4506 (addDocumentListener): Likewise.
4507 (removeDocumentListener): Likewise.
4508 (addUndoableEditListener): Likewise.
4509 (removeUndoableEditListener): Likewise.
4510 (getDocumentListeners): New method.
4511 (getUndoableEditListeners): Likewise.
4512 (getAsynchronousLoadPriority): Made public.
4513 (getBidiRootElement): Likewise.
4514 (setAsynchronousLoadPriority): Likewise.
4515 (setDocumentProperties): Likewise.
4516 * javax/swing/text/BadLocationException.java
4517 (serialVerionUID): New field.
4518 * javax/swing/text/DefaultCaret.java
4519 (changeEvent): New field.
4520 (listenerList): Likewise.
4521 (changes): Removed.
4522 (addChangeListener): Reimplemented.
4523 (removeChangeListener): Likewise.
4524 (getListeners): New method.
4525 (getChangeListeners): Likwise.
4526 (getComponent): Likewise.
4527 * javax/swing/text/GapContent.java
4528 (GapContent): Implements java.io.Serializable.
4529 (serialVerionUID): New field.
4530
4531 2004-06-16 Michael Koch <konqueror@gmx.de>
4532
4533 * javax/swing/JTree.java
4534 (treeModel): New field.
4535 (JTree): New constructors, one existing one made public.
4536 (createTreeModel): New method.
4537 (addTreeExpansionListener): Likewise.
4538 (removeTreeExpansionListener): Likewise.
4539 (getTreeExpansionListeners): Likewise.
4540 (fireTreeCollapsed): Likewise.
4541 (fireTreeExpanded): Likewise.
4542 (addTreeSelectionListener): Likewise.
4543 (removeTreeSelectionListener): Likewise.
4544 (getTreeSelectionListeners): Likewise.
4545 (fireValueChanged): Likewise.
4546 (addTreeWillExpandListener): Likewise.
4547 (removeTreeWillExpandListener): Likewise.
4548 (getTreeWillExpandListeners): Likewise.
4549 (fireTreeWillCollapse): Likewise.
4550 (fireTreeWillExpand): Likewise.
4551
4552 2004-06-16 Michael Koch <konqueror@gmx.de>
4553
4554 * javax/swing/JTree.java: Reformatted.
4555
4556 2004-06-16 Michael Koch <konqueror@gmx.de>
4557
4558 * javax/swing/JTextArea.java: New file.
4559 * javax/swing/JTextField.java
4560 (actions): Removed.
4561 (notifyAction): New constant.
4562 (columns): New field.
4563 (JTextField): New constructors.
4564 (createDefaultModel): New method.
4565 (addActionListener): Reimplmemented.
4566 (removeActionListener): Reimplemented.
4567 (getActionListeners): New method.
4568 (fireActionPerformed): New method.
4569 (getColumns): New method.
4570 (setColumne): New method.
4571 * javax/swing/text/JTextComponent.java
4572 (AccessibleJTextComponent.serialVersionUID): New field.
4573 (serialVersionUID): Likewise.
4574 (DEFAULT_KEYMAP): Likewise.
4575 (FOCUS_ACCELERATOR_KEY): Likewise.
4576 (doc): Made private.
4577 (icon_gap): Likewise.
4578 (icon): Likewise.
4579 (align): Likewise.
4580 (JTextComponent): Some constructors removed.
4581 (getScrollableTracksViewportHeight): New method.
4582 (getScrollableTracksViewportWidth): Likewise.
4583 * Makefile.am: Added javax/swing/JTextArea.java.
4584 * Makefile.in: Regenerated.
4585
4586 2004-06-15 Graydon Hoare <graydon@redhat.com>
4587
4588 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4589 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4590 * javax/swing/JViewport.java
4591 (getExtentSize): Return size rather than preferred size.
4592 (toViewCoordinates): New methods.
4593 (getViewSize): Return size rather than preferred size.
4594 (setViewSize): Note view size as set.
4595 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4596 * javax/swing/plaf/basic/BasicScrollBarUI.java
4597 (getPreferredSize): Don't redo layout.
4598 * javax/swing/plaf/basic/BasicViewportUI.java
4599 (paint): Translate image properly and eat exceptions.
4600
4601 2004-06-15 Kim Ho <kho@redhat.com>
4602
4603 * javax/swing/JTabbedPane.java
4604 (setComponent): Remove old component and
4605 add new component.
4606 (setSelectedIndex): Don't operate on the
4607 components if they're null. Don't set index
4608 on the model if the index is the same.
4609 (insertTab): Don't add or hide the component
4610 if it's null. Repaint the container.
4611 * javax/swing/plaf/basic/BasicLookAndFeel.java
4612 Change colors for TabbedPane.
4613 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4614 (mousePressed): Re-layout and paint the component.
4615 (layoutContainer): Don't set location on the view.
4616 (ScrollingViewport::paint): Remove.
4617
4618 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4619
4620 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4621 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4622
4623 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4624 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4625 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4626 critical region.
4627 (drawLine): Call gdk_flush before leaving GDK critical region.
4628 (fillRect): Likewise.
4629 (drawRect): Likewise.
4630 (copyArea): Likewise.
4631 (copyPixmap): Likewise.
4632 (clearRect): Likewise.
4633 (drawArc): Likewise.
4634 (drawPolyline): Likewise.
4635 (drawPolygon): Likewise.
4636 (fillPolygon): Likewise.
4637 (fillArc): Likewise.
4638 (drawOval): Likewise.
4639 (fillOval): Likewise.
4640
4641 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4642 style parameter.
4643 (GdkFontMetrics): Add style argument to initState call.
4644 (stringWidth(String,int,int,String)): Add style parameter.
4645 (stringWidth(String)): Add style argument to stringWidth call.
4646 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4647 (initState): Set pango font style and weight based on AWT style
4648 parameter. Pass default GTK language to
4649 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4650 simply dividing by PANGO_SCALE.
4651 (stringWidth): Set pango font style and weight based on AWT style
4652 parameter.
4653
4654 * java/awt/Button.java (next_button_number): New field.
4655 (paramString): Change output.
4656 (generateName): New method.
4657 (getUniqueLong): New method.
4658
4659 2004-06-14 Kim Ho <kho@redhat.com>
4660
4661 * javax/swing/JTabbedPane.java:
4662 (setComponentAt): Set the component, not
4663 the enabled status.
4664 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4665 (actionPerformed): Let deiconize catch exception.
4666
4667 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4668
4669 * javax/swing/JPopupMenu.java:
4670 (setVisible): Corrected location of a
4671 heavyweight popup menu.
4672
4673 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4674
4675 * javax/swing/MenuSelectionManager.java:
4676 Ran through jalopy to fix formatting style.
4677
4678 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4679
4680 * javax/swing/JLayeredPane.java:
4681 (remove): Revalidate and repaint layered pane after
4682 the component was removed.
4683 javax/swing/JMenu.java:
4684 (setVisible): Display popup menu at the user location,
4685 if one was set by the user.
4686 (setMenuLocation): Reimplemented. Fixed javadoc.
4687 * javax/swing/JMenuBar.java: Added javadoc.
4688 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4689 (MODEL_CHANGED_PROPERTY): New Property.
4690 (isSelected): Implemented.
4691 (setBorderPainted): Fire PropertyChangeEvent
4692 if paintBorder property changes.
4693 (setSelected): Implemented.
4694 (setSelectionModel): Implemented.
4695 * javax/swing/JPopupMenu.java: Added Javadoc
4696 (pack): Implemented.
4697 (setVisible): Reimplemented.
4698 (show): Fixed location.
4699 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4700 Container instead of JPanel.
4701 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4702 (clearSelectedPath): Reimplemented to clear selectedPath
4703 in reverse order.
4704 (processMouseEvent): Reimplemented.
4705 (setSelectedPath): Fire stateChange event indicating that
4706 selected menu path has changed.
4707 (getPath): Change to use ArrayList instead of Vector.
4708 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4709 (installUI): call installKeyboardActions().
4710 (uninstallUI): call uninstallKeyboardActions().
4711
4712 2004-06-13 Michael Koch <konqueror@gmx.de>
4713
4714 * javax/swing/text/DefaultCaret.java,
4715 javax/swing/text/BadLocationException.java:
4716 Reformatted.
4717
4718 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4719
4720 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4721 DEFAULT_COLS): New variables.
4722 (create): Don't allow 0 rows or 0 columns. Instead, set the
4723 values to DEFAULT_ROWS or DEFAULT_COLS.
4724 (getMinimumSize): Likewise.
4725 (getPreferredSize): Likewise.
4726 (minimumSize): Likewise.
4727 (preferredSize): Likewise.
4728 (create): Set peer's editable state.
4729 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4730 zero. Update javadocs.
4731 (TextArea(String)): Likewise.
4732 (TextArea(int,int)): Fix javadocs.
4733 (TextArea(String,int,int,int)): Only throw exception if one of
4734 rows or columns is zero. Fix javadocs.
4735
4736 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4737
4738 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4739 addition to Components.
4740
4741 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4742 wasn't consumed by normal processing, send it to the parent
4743 menu.
4744
4745 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4746 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4747 translation.
4748
4749 2004-06-11 David Jee <djee@redhat.com>
4750
4751 * java/awt/MediaTracker.java
4752 (addImage(Image,int)): Call imageUpdate() to udpate image status.
4753 (addImage(Image,int,int,int)): Likewise.
4754
4755 2004-06-11 Michael Koch <konqueror@gmx.de>
4756
4757 * javax/swing/text/AbstractDocument.java,
4758 javax/swing/text/Document.java,
4759 javax/swing/text/GapContent.java,
4760 javax/swing/text/JTextComponent.java,
4761 javax/swing/text/PlainDocument.java:
4762 Reformatted.
4763
4764 2004-06-11 Michael Koch <konqueror@gmx.de>
4765
4766 * javax/swing/JRootPane.java
4767 (AccessibleJRootPane.serialVersionUID): New field.
4768 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
4769 (AccessibleJRootPane.getAccessibleRole): New method.
4770 (RootLayout): Implements Serializable.
4771 (RootLayout.serialVersionUID): New field.
4772 (RootLayout.RootLayout): New constructor.
4773 (setJMenuBar): Made public.
4774 (getJMenuBar): Likewise.
4775 (JRootPane): Likewise.
4776 (createContentPane): Likewise.
4777 (createGlassPane): Likewise.
4778 (createLayeredPane): Likewise.
4779
4780 2004-06-11 Michael Koch <konqueror@gmx.de>
4781
4782 * javax/swing/SwingUtilities.java
4783 (isLeftMouseButton): Fixed javadoc.
4784 (isMiddleMouseButton): Likewise.
4785 (isRightMouseButton): Likewise.
4786
4787 2004-06-11 Michael Koch <konqueror@gmx.de>
4788
4789 * javax/swing/JScrollPane.java
4790 (serialVersionUID): New field.
4791 (columnHeader): Made protected.
4792 (rowHeader): Likewise.
4793 (lowerLeft): Likewise.
4794 (lowerRight): Likewise.
4795 (upperLeft): Likewise.
4796 (upperRight): Likewise.
4797 (horizontalScrollBar): Likewise.
4798 (horizontalScrollBarPolicy): Likewise.
4799 (verticalScrollBar): Likewise.
4800 (verticalScrollBarPolicy): Likewise.
4801 (viewport): Likewise.
4802
4803 2004-06-11 Michael Koch <konqueror@gmx.de>
4804
4805 * javax/swing/LookAndFeel.java: Fixed javadocs.
4806
4807 2004-06-11 Michael Koch <konqueror@gmx.de>
4808
4809 * javax/swing/JEditorPane.java: Fixed javadocs.
4810 (JEditorPane): Removed redundant call to to this().
4811 (fireHyperlinkUpdate): Implemented.
4812
4813 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4814
4815 * javax/swing/JMenu.java: Fixed file name
4816 in the file comment.
4817
4818 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4819
4820 * javax/swing/JMenu.java: Added javadoc.
4821 (JMenu): Added MenuChangeListener to listen to
4822 ChangeEvents occuring in menu's model.
4823 (insert): Throw IllegalArgumentException if
4824 index is less than 0
4825 (setSelected): Reimplement.
4826 (setPopupMenuVisible): Call menu's model isEnabled()
4827 (setDelay): Throw IllegalArgumentException if
4828 given amount of delay is less than 0.
4829 (createActionComponent): Implemented.
4830 (createActionChangeListener): Implemented.
4831 (addSeparator): Implemented.
4832 (getItem): Throw IllegalArgumentException if index is
4833 less than 0.
4834 (getItemCount): Implemented.
4835 (fireMenuSelected): Changed to use menuEvent.
4836 (fireMenuDeselected): Likewise.
4837 (fireMenuCanceled): Likewise.
4838 (setAccelerator): Changed to throw an error if this
4839 method is used.
4840 (doClick): Implemented.
4841 (JMenu.ActionChangedListener): New inner class to handle
4842 PropertyChangeEvents occuring in the actions associated with menu.
4843 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
4844 (BasicMenuUI): Added PropertyChangeListener to the menu.
4845 (createChangeListener): Implemented.
4846 (createMenuDragMouseListener): Likewise.
4847 (createMenuKeyListener): Likewise.
4848 (createPropertyChangeListener): Likewise.
4849 (uninstallListeners): Likewise.
4850 (BasicMenuUI.MouseInputHandler): Reimplemented.
4851 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
4852 (BasicMenuUI.ChangeHandler): Likewise.
4853 (BasicMenuUI.MenuDragMouseHandler): Likewise.
4854 (BasicMenuUI.MenuKeyHandler): Likewise.
4855
4856 2004-06-10 David Jee <djee@redhat.com>
4857
4858 * java/awt/MediaTracker.java
4859 (imageUpdate): Only do notifyAll() if the image is complete.
4860
4861 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4862
4863 * javax/swing/JApplet.java:
4864 (getJMenuBar): Made public.
4865 (setJMenuBar): Likewise.
4866 * javax/swing/JFrame.java:
4867 (getJMenuBar): Made public.
4868 (setJMenuBar): Likewise.
4869 * javax/swing/JWindow.java:
4870 (getJMenuBar): Removed.
4871 (setJMenuBar): Removed.
4872
4873 2004-06-10 Michael Koch <konqueror@gmx.de>
4874
4875 * javax/swing/JEditorPane.java
4876 (createEditorKitForContentType): Fixed visibility.
4877 (fireHyperlinkUpdate): Likewise.
4878 (getContentType): Likewise.
4879 (getEditorKit): Likewise.
4880 (getEditorKitForContentType): Likewise.
4881 (getPage): Likewise.
4882 (read): Likewise.
4883 (registerEditorKitForContentTyoe): Likewise.
4884 (replaceSelection): Likewise.
4885 (setContentType): Likewise.
4886 (setEditorKit): Likewise.
4887 (setPage): Likewise.
4888
4889 2004-06-10 Michael Koch <konqueror@gmx.de>
4890
4891 * javax/swing/Timer.java
4892 (Timer): New constructor.
4893 * javax/swing/plaf/basic/BasicProgressBarUI.java
4894 (animationTimer): Don't initialize at construction.
4895 (startAnimationTimer): Added since tag.
4896 (stopAnimationTimer): Likewise.
4897 (installUI): Use new Timer constructor.
4898 * javax/swing/plaf/basic/BasicScrollBarUI.java
4899 (installUI): Likewise.
4900 * javax/swing/plaf/basic/BasicSliderUI.java
4901 (installUI): Likewise.
4902
4903 2004-06-10 Michael Koch <konqueror@gmx.de>
4904
4905 * javax/swing/ButtonGroup.java
4906 (serialVersionUID): Made private.
4907 (buttons): Renamed from v, added javadoc.
4908 (sel): Added javadoc.
4909 (ButtonGroup): Likewise.
4910 (add): Likewise.
4911 (remove): Likewise.
4912 (getElements): Likewise.
4913 (getSelection): Likewise.
4914 (setSelected): Likewise.
4915 (isSelected): Likewise.
4916 (getButtonCount): Likewise.
4917
4918 2004-06-10 Michael Koch <konqueror@gmx.de>
4919
4920 * javax/swing/ButtonGroup.java,
4921 javax/swing/ImageIcon.java,
4922 javax/swing/JEditorPane.java,
4923 javax/swing/JRootPane.java,
4924 javax/swing/JTextField.java,
4925 javax/swing/LookAndFeel.java,
4926 javax/swing/plaf/basic/BasicTextUI.java:
4927 Reindented.
4928
4929 2004-06-10 Michael Koch <konqueror@gmx.de>
4930
4931 * javax/swing/text/Style.java: Added javadocs.
4932
4933 2004-06-10 Michael Koch <konqueror@gmx.de>
4934
4935 * javax/swing/JComponent.java
4936 (fireVetoableChange): Removed redundant cast.
4937 * javax/swing/JLabel.java
4938 (getDisabledIcon): Save icon for next call.
4939
4940 2004-06-10 Michael Koch <konqueror@gmx.de>
4941
4942 * javax/swing/KeyStroke.java
4943 (getKeyStroke(char,boolean)): Marked deprecated.
4944
4945 2004-06-10 Michael Koch <konqueror@gmx.de>
4946
4947 * javax/swing/DefaultCellEditor.java,
4948 javax/swing/GrayFilter.java,
4949 javax/swing/event/DocumentEvent.java,
4950 javax/swing/text/JTextComponent.java,
4951 javax/swing/text/MutableAttributeSet.java:
4952 Reindented.
4953
4954 2004-06-10 Michael Koch <konqueror@gmx.de>
4955
4956 * javax/swing/plaf/BorderUIResource.java:
4957 Added serialVersionUID all over.
4958
4959 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
4960
4961 * javax/swing/undo/UndoManager.java: Re-written from scratch.
4962
4963 2004-06-10 Michael Koch <konqueror@gmx.de>
4964
4965 * javax/swing/table/DefaultTableCellRenderer.java
4966 (noFocusBorder): Initialize directly.
4967
4968 2004-06-10 Michael Koch <konqueror@gmx.de>
4969
4970 * javax/swing/plaf/basic/BasicArrowButton.java
4971 (setDirection): Use method argument.
4972
4973 2004-06-10 Michael Koch <konqueror@gmx.de>
4974
4975 * javax/swing/plaf/BorderUIResource.java,
4976 javax/swing/plaf/ComponentUI.java,
4977 javax/swing/undo/CompoundEdit.java,
4978 javax/swing/undo/StateEdit.java:
4979 Fixed javadocs all over.
4980
4981 2004-06-10 Michael Koch <konqueror@gmx.de>
4982
4983 * javax/swing/DefaultButtonModel.java
4984 (ARMED): Made public final, fixed value.
4985 (ENABLED): Likewise.
4986 (PRESSED): Likewise.
4987 (ROLLOVER): Likewise.
4988 (SELECTED): Likewise.
4989 (stateMask): Initialize directly.
4990 (listenerList): Likewise.
4991 (mnemonic): Likewise.
4992 (fireStateChanged): Removed argument, use changeEvent as event.
4993 All places where this method is called are fixed too.
4994 (getActionCommant): Fixed javadoc.
4995 (setGroup): Fixed javadoc.
4996 (getGroup): New method.
4997
4998 2004-06-09 Olga Rodimina <rodimina@redhat.com>
4999
5000 * javax/swing/AbstractButton.java
5001 (AbstractButton): Use init() to initialize the button.
5002 (init): New Method. Initializes AbstractButton.
5003 * javax/swing/JMenuItem.java: Documented.
5004 (JMenuItem): Reimplemented.
5005 (init): Implemented.
5006 (setEnabled): Changed to call super.setEnabled()
5007 (processMouseEvent): Reimplemented.
5008 (fireMenuKeyPressed): Implemented.
5009 (fireMenuKeyReleased): Implemented.
5010 (fireMenuKeyTyped): Implemented.
5011 (menuSelectionChanged): disarm the model if the menu item was
5012 deselected.
5013 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5014 (getPath): Change to use ArrayList instead of Vector.
5015 (getPreferredSize): Renamed variable.
5016 (paintMenuItem): Paint margin area of menu item.
5017 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5018 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5019 menu item's bounds before clearing the selection.
5020
5021 2004-06-09 David Jee <djee@redhat.com>
5022
5023 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5024 (GtkTextComponentPeer): Set caret position to 0.
5025 * java/awt/TextComponent.java
5026 (setText): Set caret position to 0.
5027 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5028 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5029 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5030 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5031 Likewise.
5032 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5033 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5034 visible.
5035
5036 2004-06-09 Kim Ho <kho@redhat.com>
5037
5038 * Makefile.am: New files
5039 * Makefile.in: Regenerated
5040 * java/awt/Container.java
5041 (getComponentAt): Removed.
5042 * javax/swing/AbstractAction.java
5043 (ENABLED_PROPERTY): New property.
5044 (putValue): Fire PropertyChangeEvents.
5045 (setEnabled): ditto.
5046 (firePropertyChange): Javadoc and implement
5047 convenience method.
5048 * javax/swing/AbstractButton.java
5049 (setAction): Don't create PropertyChangeListener
5050 if new Action is null.
5051 (setIcon): Don't set icon till after comparing
5052 it.
5053 (configurePropertiesFromAction): Check mnemonic
5054 key before calling intValue().
5055 (createActionPropertyChangeListener): Check
5056 properties rather than bulk change.
5057 * javax/swing/DefaultDesktopManager.java:
5058 Implement.
5059 * javax/swing/DesktopManager.java:
5060 Jalopy and javadoc.
5061 * javax/swing/JComponent.java
5062 (fireVetoableChange): Implement.
5063 (paintImmediately): Use root component.
5064 * javax/swing/JDesktopPane.java: Implement
5065 * javax/swing/JInternalFrame.java: Implement
5066 * javax/swing/JLabel.java
5067 (getDisabledIcon): Return grayscaled icon if
5068 no disabled icon specified.
5069 * javax/swing/JMenuBar.java
5070 (getComponentAtIndex): Use getComponent
5071 * javax/swing/JOptionPane.java
5072 (getDesktopPaneForComponent): Use SwingUtilities'
5073 getAncestorOfClass
5074 (getFrameForComponent): ditto.
5075 * javax/swing/JSplitPane.java
5076 (remove): Use getComponent.
5077 * javax/swing/SwingUtilities.java
5078 (convertPoint): Implement.
5079 * javax/swing/plaf/basic/BasicButtonUI.java
5080 (paintButtonNormal): Check opaqueness before
5081 filling background.
5082 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5083 Implement
5084 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5085 Implement.
5086 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5087 Implement.
5088 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5089 Implement.
5090 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5091 Change InternalFrame and Desktop colors.
5092
5093 2004-06-09 David Jee <djee@redhat.com>
5094
5095 * java/awt/Container.java
5096 (remove): Do not set component to invisible.
5097
5098 2004-06-09 Michael Koch <konqueror@gmx.de>
5099
5100 * javax/swing/tree/DefaultMutableTreeNode.java
5101 (getLeafCount): Renamed enum to e.
5102
5103 2004-06-09 Michael Koch <konqueror@gmx.de>
5104
5105 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5106 (positionForMouseEvent): Removed redundant semicolon.
5107 (continueDrag): Use method arguments.
5108
5109 2004-06-09 Michael Koch <konqueror@gmx.de>
5110
5111 * javax/swing/border/TitledBorder.java,
5112 javax/swing/filechooser/FileSystemView.java,
5113 javax/swing/plaf/basic/BasicButtonListener.java,
5114 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5115 javax/swing/plaf/basic/BasicLabelUI.java,
5116 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5117 javax/swing/plaf/basic/BasicScrollBarUI.java,
5118 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5119 javax/swing/plaf/basic/BasicSliderUI.java,
5120 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5121 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5122 javax/swing/table/JTableHeader.java,
5123 javax/swing/text/AbstractDocument.java,
5124 javax/swing/text/DefaultCaret.java,
5125 javax/swing/text/StyledEditorKit.java,
5126 javax/swing/tree/DefaultTreeCellEditor.java:
5127 Reworked import statements.
5128
5129 2004-06-08 Graydon Hoare <graydon@redhat.com>
5130
5131 * javax/swing/Box.java: Temporarily comment out code
5132 broken due to visibility bug.
5133
5134 2004-06-09 Michael Koch <konqueror@gmx.de>
5135
5136 * javax/swing/ImageIcon.java
5137 (ImageIcon): Added missing constructor.
5138
5139 2004-06-08 Michael Koch <konqueror@gmx.de>
5140
5141 * javax/swing/JToggleButton.java
5142 (JToggleButton): New constructor.
5143 (getAccessibleContext): Moved documentation into javadoc.
5144 (getUIClassID): Likewise.
5145
5146 2004-06-08 Michael Koch <konqueror@gmx.de>
5147
5148 * javax/swing/AbstractButton.java
5149 (getDisabledIcon): Create disabled icon if none exists yet.
5150
5151 2004-06-08 Michael Koch <konqueror@gmx.de>
5152
5153 * javax/swing/plaf/basic/BasicLookAndFeel.java
5154 (initClassDefaults): Added FormattedTextFieldUI.
5155 (loadResourceBundle): Renamed enum to e.
5156
5157 2004-06-08 Michael Koch <konqueror@gmx.de>
5158
5159 * javax/swing/plaf/basic/BasicButtonUI.java
5160 (paintIcon): Simplified.
5161 (paintText): Paint disabled button correctly.
5162
5163 2004-06-08 Michael Koch <konqueror@gmx.de>
5164
5165 * javax/swing/JComponent.java
5166 (createToolTip): Use official JToolTip API.
5167
5168 2004-06-08 Michael Koch <konqueror@gmx.de>
5169
5170 * javax/swing/JToolTip.java
5171 (JToolTip): No arguments in API.
5172 (setTipText): New method.
5173
5174 2004-06-08 Michael Koch <konqueror@gmx.de>
5175
5176 * javax/swing/SwingUtilities.java
5177 (isLeftMouseButton): New method.
5178 (isMiddleMouseButton): New method.
5179 (isRightMouseButton): New method.
5180
5181 2004-06-08 Michael Koch <konqueror@gmx.de>
5182
5183 * javax/swing/AbstractButton.java,
5184 javax/swing/CellRendererPane.java,
5185 javax/swing/JCheckBoxMenuItem.java,
5186 javax/swing/JColorChooser.java,
5187 javax/swing/JComboBox.java,
5188 javax/swing/JComponent.java,
5189 javax/swing/JDesktopPane.java,
5190 javax/swing/JFileChooser.java,
5191 javax/swing/JMenu.java,
5192 javax/swing/JMenuItem.java,
5193 javax/swing/JOptionPane.java,
5194 javax/swing/JPasswordField.java,
5195 javax/swing/JPopupMenu.java,
5196 javax/swing/JProgressBar.java,
5197 javax/swing/JRadioButtonMenuItem.java,
5198 javax/swing/JScrollBar.java,
5199 javax/swing/JSeparator.java,
5200 javax/swing/JSlider.java,
5201 javax/swing/JSplitPane.java,
5202 javax/swing/JTabbedPane.java,
5203 javax/swing/JTextField.java,
5204 javax/swing/JToolBar.java,
5205 javax/swing/text/JTextComponent.java:
5206 Fixed all constructors of accessibility classes.
5207
5208 2004-06-08 Michael Koch <konqueror@gmx.de>
5209
5210 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5211 over.
5212
5213 2004-06-08 Michael Koch <konqueror@gmx.de>
5214
5215 * javax/swing/Box.java
5216 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5217 (AccessibleBoxFiller.serialVersionUID): New member variable.
5218 * javax/swing/DefaultButtonModel.java
5219 (stateMask): Made protected.
5220 (listenerList): Likewise.
5221 (changeEvent): Likewise.
5222 (group): Likewise.
5223 (mnemonic): Likewise.
5224 (actionCommand): Likewise.
5225 (getListeners): New method.
5226 (getActionListeners): New method.
5227 (getItemListeners): New method.
5228 (getChangeListeners): New method.
5229 (fireItemStateChanged): Simplified.
5230 (fireActionPerformed): Simplified.
5231 (fireStateChanged): Simplified.
5232 * javax/swing/JFrame.java
5233 (JFrame): Implements WindowContants.
5234 (HIDE_ON_CLOSE): Removed.
5235 (EXIT_ON_CLOSE): Removed.
5236 (DISPOSE_ON_CLOSE): Removed.
5237 (DO_NOTHING_ON_CLOSE): Removed.
5238 (processWindowEvent): Exit with code 0.
5239 (setDefaultCloseOperation): Do security check before setting value.
5240 * javax/swing/JOptionPane.java
5241 (message): Initialize only in constructor.
5242 * javax/swing/JToolTip.java: Removed unused imports.
5243 * javax/swing/JViewport.java
5244 (serialVersionUID): New member variable.
5245 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5246 (BLIT_SCROLL_MODE): Likewise.
5247 (BACKINGSTORE_SCROLL_MODE): Likewise.
5248 (scrollUnderway): Made protected.
5249 (isViewSizeSet): Likewise.
5250 * javax/swing/ListModel.java: Fixed javadoc.
5251 * javax/swing/Popup.java: Likewise.
5252 * javax/swing/RepaintManager.java
5253 (paintDirtyRegions): Don't use internal classes of
5254 java.util.AbstractMap.
5255 * javax/swing/ScrollPaneConstants.java: Reindented.
5256 * javax/swing/ScrollPaneLayout.java
5257 (viewport): Made protected.
5258 (verticalScrollBar): Made protected, renamed to vsb.
5259 (horizontalScrollBar): Made protected, renamed to hsb.
5260 (rowHeader): Made protected, renamed to rowHead.
5261 (columnHeader): Made protected, renamed to colHead.
5262 (lowerLeft): Made protected.
5263 (lowerRight): Made protected.
5264 (upperLeft): Made protected.
5265 (upperRight): Made protected.
5266 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5267 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5268
5269 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5270
5271 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5272 LOADING if flags has SOMEBITS set.
5273
5274 2004-06-07 Michael Koch <konqueror@gmx.de>
5275
5276 * javax/swing/AbstractButton.java: Reorganized imports.
5277 * javax/swing/ActionMap.java: Likewise.
5278 * javax/swing/DefaultButtonModel.java: Likewise.
5279 * javax/swing/DefaultListModel.java: Likewise.
5280 * javax/swing/ImageIcon.java: Likewise.
5281 (serialVersionUID): New member variable.
5282 * javax/swing/JComboBox.java: Reorganized imports.
5283 * javax/swing/JComponent.java: Likewise.
5284 (ui): Made protected.
5285 (listenerList): Made protected.
5286 (TOOL_TIP_TEXT_KEY): New constant.
5287 (scrollRectToVisible): Removed redundant null check.
5288 * javax/swing/JFrame.java: Reorganized imports.
5289 * javax/swing/JInternalFrame.java: Reorganized imports.
5290 * javax/swing/JProgressBar.java: Likewise.
5291 * javax/swing/JRootPane.java: Likewise.
5292 * javax/swing/JScrollBar.java: Likewise.
5293 * javax/swing/JSeparator.java: Likewise.
5294 * javax/swing/JSlider.java: Likewise.
5295 * javax/swing/JTabbedPane.java: Likewise.
5296 * javax/swing/JTextField.java: Likewise.
5297 * javax/swing/JToolBar.java: Likewise.
5298 * javax/swing/JTree.java: Likewise.
5299 * javax/swing/JViewport.java: Likewise.
5300 * javax/swing/JWindow.java: Likewise.
5301 * javax/swing/KeyStroke.java: Likewise.
5302 * javax/swing/LookAndFeel.java: Likewise.
5303 * javax/swing/MenuSelectionManager.java: Likewise.
5304 * javax/swing/SwingUtilities.java: Likewise.
5305 * javax/swing/Timer.java: Likewise.
5306 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5307 * javax/swing/JList.java
5308 (HORIZONTAL_WRAP): Made final, fixed value.
5309 (VERTICAL): Likewise.
5310 (VERTICAL_WRAP): Likewise.
5311
5312 2004-06-07 Michael Koch <konqueror@gmx.de>
5313
5314 * javax/swing/AbstractButton.java
5315 (serialVersionUID): New member variable.
5316 (AccessibleAbstractButton.serialVersionUID): Likewise.
5317 (AbstractButton): Made public.
5318 * javax/swing/Box.java
5319 (AccessibleBox.serialVersionUID): New member variable.
5320 (Filler.serialVersionUID): Likewise.
5321 * javax/swing/DefaultListSelectionModel.java
5322 (serialVersionUID): Likewise.
5323 * javax/swing/JApplet.java
5324 (serialVersionUID): Likewise.
5325 * javax/swing/JCheckBox.java
5326 (serialVersionUID): Likewise.
5327 * javax/swing/JCheckBoxMenuItem.java
5328 (serialVersionUID): Likewise.
5329 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5330 * javax/swing/JColorChooser.java
5331 (serialVersionUID): Likewise.
5332 (AccessibleJColorChooser.serialVersionUID): Likewise.
5333 * javax/swing/JComponent.java
5334 (serialVersionUID): Made private.
5335 (AccessibleJComponent.serialVersionUID): New member variable.
5336 * javax/swing/JDesktopPane.java
5337 (serialVersionUID): Likewise.
5338 * javax/swing/JDialog.java
5339 (serialVersionUID): Likewise.
5340 * javax/swing/JFormattedTextField.java
5341 (serialVersionUID): Fixed value.
5342 * javax/swing/JFrame.java
5343 (serialVersionUID): New member variable.
5344 (getDefaultCloseOpertation): Made public.
5345 * javax/swing/JLayeredPane.java
5346 (serialVersionUID): Likewise.
5347 (LAYER_PROPERTY): Made final, fixed value.
5348 (JLayeredPane): Made public.
5349 * javax/swing/JMenu.java
5350 (AccessibleJMenu.serialVersionUID): New member variable.
5351 (WinListener.serialVersionUID): Likewise.
5352 * javax/swing/JMenuBar.java
5353 (serialVersionUID): Likewise.
5354 (getComponentAtIndex): Added @deprecated tag.
5355 * javax/swing/JMenuItem.java
5356 (serialVersionUID): New member variable.
5357 (AccessibleJMenuItem.serialVersionUID): Likewise.
5358 * javax/swing/JOptionPane.java
5359 (serialVersionUID): Likewise.
5360 (AccessibleJOptionPane.serialVersionUID): Likewise.
5361 * javax/swing/JPopupMenu.java
5362 (serialVersionUID): Likewise.
5363 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5364 (getPopupMenuListeners): New method.
5365 (getComponentAtIndex): Added @deprecated tag.
5366 * javax/swing/JProgressBar.java
5367 (serialVersionUID): New member variable.
5368 (AccessibleJProgressBar.serialVersionUID): Likewise.
5369 * javax/swing/JRadioButton.java
5370 (serialVersionUID): Likewise.
5371 * javax/swing/JRadioButtonMenuItem.java
5372 (serialVersionUID): Likewise.
5373 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5374 * javax/swing/JScrollBar.java
5375 (serialVersionUID): Likewise.
5376 (AccessibleJScrollBar.serialVersionUID): Likewise.
5377 * javax/swing/JSeparator.java
5378 (serialVersionUID): Likewise.
5379 (AccessibleJSeparator.serialVersionUID): Likewise.
5380 * javax/swing/JSlider.java: Fixed javadocs.
5381 (AccessibleJSlider.serialVersionUID): New member variable.
5382 * javax/swing/JSplitPane.java: Added copyright statement.
5383 (serialVersionUID): New member variable.
5384 (AccessibleJSplitPane.serialVersionUID): Likewise.
5385 * javax/swing/JTabbedPane.java
5386 (serialVersionUID): Likewise.
5387 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5388 (ModelListener.serialVersionUID): Likewise.
5389 (ModelListener.ModelListener): New constructor.
5390 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5391 (WRAP_TAB_LAYOUT): Likewise.
5392 * javax/swing/JTable.java
5393 (serialVersionUID): New member variable.
5394 * javax/swing/JToggleButton.java
5395 (serialVersionUID): Likewise.
5396 (ToggleButtonModel): Made static.
5397 (ToggleButtonModel.serialVersionUID): New member variable.
5398 * javax/swing/JToolTip.java
5399 (serialVersionUID): Likewise.
5400 * javax/swing/JTree.java
5401 (serialVersionUID): Likewise.
5402 * javax/swing/JWindow.java
5403 (serialVersionUID): Likewise.
5404 * javax/swing/Timer.java
5405 (serialVersionUID): Likewise.
5406
5407 2004-06-06 Michael Koch <konqueror@gmx.de>
5408
5409 * javax/swing/SwingConstants.java
5410 (NEXT): New constant.
5411 (PREVIOUS): Likewise.
5412 * javax/swing/UIManager.java
5413 (LookAndFeel): Made public.
5414 (LookAndFeel.getClassName): Likewise.
5415 (LookAndFeel.getName): Likewise.
5416
5417 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5418
5419 * javax/swing/JCheckBoxMenuItem.java:
5420 Removed CVS tags.
5421 * javax/swing/JMenu.java: Likewise.
5422 * javax/swing/JMenuBar.java: Likewise.
5423 * javax/swing/JMenuItem.java: Likewise.
5424 * javax/swing/JPopupMenu.java: Likewise.
5425 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5426 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5427 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5428 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5429 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5430 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5431 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5432
5433 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5434
5435 * javax/swing/plaf/basic/BasicMenuUI.java:
5436 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5437 Call getPath() from super class instead.
5438
5439 2004-05-31 David Jee <djee@redhat.com>
5440
5441 * java/awt/Container.java
5442 (remove): Set component visibility to false after removing it.
5443
5444 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5445
5446 * java/awt/Component.java (getForeground): Return SystemColor if
5447 parent is null.
5448 (getBackground): Likewise.
5449
5450 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5451 (item_highlighted): New function.
5452 (connectSignals): Set item_highlighted as list's select
5453 function.
5454
5455 * java/applet/Applet.java: Revert changes from 2004-04-29,
5456 2004-03-15 and 2004-03-14.
5457
5458 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5459 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5460 factor.
5461
5462 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5463 "Dialog" as the default font.
5464 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5465 Likewise.
5466 * java/awt/Component.java (getFont): Return "Dialog" font by
5467 default.
5468 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5469 Multiply size argument to pango_font_description_set_size by the
5470 DPI conversion factor rather than by PANGO_SCALE.
5471 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5472 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5473 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5474 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5475 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5476 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5477 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5478 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5479 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5480 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5481 Divide baseline y coordinate by DPI conversion factor rather
5482 than by PANGO_SCALE.
5483 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5484 (area_prepared): Fix typo.
5485 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5486 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5487 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5488 (dpi_conversion_factor): New global variable.
5489 (init_dpi_conversion_factor): New function to calculate and
5490 track DPI conversion factor.
5491 (dpi_changed_cb): New callback.
5492 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5493
5494 2004-05-27 David Jee <djee@redhat.com>
5495
5496 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5497 (getGraphics): Return a new GdkGraphics instance.
5498 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5499 (getGraphics): Call super.getGraphics().
5500
5501 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5502
5503 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5504 (setNativeBounds): Clamp width and height values to >= 0.
5505
5506 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5507 (find_fg_color_widget): Handle GtkOptionMenu specially.
5508
5509 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5510 (pre_event_handler): Only post configure events to visible
5511 top-level windows.
5512
5513 2004-05-26 David Jee <djee@redhat.com>
5514
5515 * java/awt/BorderLayout.java
5516 (layoutContainer): Fix size calculations.
5517
5518 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5519
5520 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5521 (window_wm_protocols_filter): Remove function.
5522 (create): Remove filter that removes WM_TAKE_FOCUS client
5523 messages.
5524
5525 2004-06-17 Anthony Green <green@redhat.com>
5526
5527 * java/util/zip/ZipFile.java (getInputStream): Return null if
5528 entry not found.
5529
5530 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5531 directory contents to the class path.
5532
5533 2004-06-15 Andrew Haley <aph@redhat.com>
5534
5535 * java/lang/natSystem.cc (getenv0): Don't assume environment
5536 variable is Latin 1 coded.
5537
5538 2004-06-14 Andreas Jaeger <aj@suse.de>
5539
5540 * configure.in: Support --enable-version-specific-runtime-libs.
5541 * configure: Regenerated.
5542
5543 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5544
5545 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5546 to pass ClassLoader argument.
5547 * java/util/GregorianCalendar.java: Likewise.
5548 * java/util/Currency.java: Likewise.
5549 * java/text/BreakIterator.java: Likewise.
5550 * java/text/Collator.java: Likewise.
5551 * java/text/DateFormat.java: Likewise.
5552 * java/text/DateFormatSymbols.java: Likewise.
5553 * java/text/DecimalFormatSymbols.java: Likewise.
5554 * java/text/NumberFormat.java: Likewise.
5555 * java/awt/Window.java: Likewise.
5556
5557 2004-06-14 Andrew Haley <aph@redhat.com>
5558
5559 * java/lang/System.java: (getenv0): New method.
5560 (getenv): Add security check. Do the right thing.
5561 * java/lang/natSystem.cc (getenv0): New method.
5562
5563 2004-06-12 Mark Wielaard <mark@klomp.org>
5564
5565 * javax/swing/RepaintManager.java
5566 (paintDirtyRegions): Use entrySet(), not values().
5567
5568 2004-06-10 Mark Wielaard <mark@klomp.org>
5569
5570 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5571 NoSuchMethodError.
5572
5573 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5574
5575 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5576 when we already know the answer.
5577 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5578 (setStartRule,setEndRule): Don't take abs of day number.
5579 (getOffset): Clarify docs. Add argument checks.
5580 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5581 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5582 endTimeMode.
5583
5584 2004-06-10 Tom Tromey <tromey@redhat.com>
5585
5586 * interpret.cc (run): Handle wide fload.
5587
5588 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5589
5590 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5591
5592 2004-06-05 Michael Koch <konqueror@gmx.de>
5593
5594 * javax/swing/SwingConstants.java
5595 (NEXT): New constant.
5596 (PREVIOUS): Likewise.
5597
5598 2004-06-05 Michael Koch <konqueror@gmx.de>
5599
5600 * javax/swing/UIManager.java
5601 (LookAndFeel): Made public.
5602 (LookAndFeel.getName): Likewise.
5603 (LookAndFeel.getClassName): Likewise.
5604
5605 2004-06-03 Michael Koch <konqueror@gmx.de>
5606
5607 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5608 (requestFocus): Revert last changes.
5609 (gtkRequestFocus): Removed.
5610 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5611 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5612 Renamed to ...
5613 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5614 Reverted last patch.
5615 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5616 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5617 Reverted comment change.
5618
5619 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5620
5621 * javax/swing/JCheckBoxMenuItem.java:
5622 Removed CVS tags.
5623 * javax/swing/JMenu.java: Likewise.
5624 * javax/swing/JMenuBar.java: Likewise.
5625 * javax/swing/JMenuItem.java: Likewise.
5626 * javax/swing/JPopupMenu.java: Likewise.
5627 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5628 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5629 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5630 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5631 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5632 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5633 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5634
5635 2004-06-01 Tom Tromey <tromey@redhat.com>
5636
5637 * java/io/ObjectStreamField.java: Cleaned up imports.
5638
5639 2004-06-01 Michael Koch <konqueror@gmx.de>
5640
5641 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5642
5643 2004-06-01 Mark Wielaard <mark@klomp.org>
5644
5645 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5646
5647 2004-06-01 Michael Koch <konqueror@gmx.de>
5648
5649 * java/security/Security.java
5650 (insertProviderAt): Use equals() instead of ==.
5651 (removeProvicer): Likewise.
5652 (getProvider): Likewise.
5653 * java/security/Signature.java
5654 (sign): Don't set state to UNINITIALIZED.
5655 (verify): Likewise.
5656
5657 2004-06-01 Mark Wielaard <mark@klomp.org>
5658
5659 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5660 Implement by calling gtkRequestFocus.
5661 (gtkRequestFocus): New native method.
5662 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5663 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5664 Renamed to ...
5665 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5666 New function name.
5667 (filter_expose_event_handler):
5668 Mark static.
5669 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5670 (menu_pos): Mark static.
5671
5672 2004-06-01 Michael Koch <konqueror@gmx.de>
5673
5674 * java/text/CollationElementIterator.java,
5675 java/text/CollationKey.java,
5676 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5677 * testsuite/libjava.mauve/xfails: Removed all
5678 java.text.CollationElementIterator tests.
5679
5680 2004-06-01 Michael Koch <konqueror@gmx.de>
5681
5682 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5683 version.
5684 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5685 Java 1.5 keyword usage.
5686
5687 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5688
5689 * javax/swing/plaf/basic/BasicMenuUI.java:
5690 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5691 Call getPath() from super class instead.
5692
5693 2004-05-31 Michael Koch <konqueror@gmx.de>
5694
5695 * java/io/SequenceInputStream.java:
5696 Rename enum to e because enum is a keyword in Java 1.5.
5697
5698 2004-05-31 Michael Koch <konqueror@gmx.de>
5699
5700 * gnu/java/rmi/rmic/CompilerProcess.java:
5701 Fixed javadoc to by XHTML compliant.
5702
5703 2004-05-30 Mark Wielaard <mark@klomp.org>
5704
5705 * java/awt/Toolkit.java (loadSystemColors): Implement.
5706
5707 2004-05-30 Michael Koch <konqueror@gmx.de>
5708
5709 * java/lang/System.java: Reordered imports.
5710
5711 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5712
5713 * java/text/DecimalFormat.java
5714 (parse): Fixed parsing of decimal strings. Number of maximum
5715 digits to be read should now work.
5716 * java/text/SimpleDateFormat.java
5717 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5718 formatter. This fixes DateFormatTest.
5719
5720 2004-05-30 Michael Koch <konqueror@gmx.de>
5721
5722 * java/nio/Buffer.java
5723 (limit): Fixed off by one error.
5724 * java/nio/CharBuffer.java
5725 (wrap): Fixed arguments, added javadocs.
5726
5727 2004-05-30 Michael Koch <konqueror@gmx.de>
5728
5729 * gnu/java/beans/BeanInfoEmbryo.java,
5730 java/awt/im/InputContext.java,
5731 javax/swing/tree/DefaultMutableTreeNode.java:
5732 Rename enum to e because enum is a keyword in Java 1.5.
5733
5734 2004-05-30 Michael Koch <konqueror@gmx.de>
5735
5736 * gnu/java/math/MPN.java,
5737 java/awt/geom/Arc2D.java:
5738 Fixed javadocs all over.
5739
5740 2004-05-30 Michael Koch <konqueror@gmx.de>
5741
5742 * java/awt/DefaultKeyboardFocusManager.java
5743 (dispatchEvent): Call method to get key event dispatchers.
5744 (dispatchKeyEvent): Call method to get key event post processors.
5745 * javax/swing/JComponent.java
5746 (listenerList): Made protected.
5747 * javax/swing/JOptionPane.java
5748 (message): Don't initialize.
5749 (JOptionPane): Set message text.
5750 * javax/swing/JPopupMenu.java
5751 (show): Fixed typo in argument name.
5752 * javax/swing/RepaintManager.java
5753 (paintDirtyRegions): Use public API of java.util.Map.
5754 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5755 (positionForMouseEvent): Removed redundant ';'.
5756 (continueDrag): Use method arguments.
5757
5758 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
5759
5760 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
5761 results.
5762
5763 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
5764
5765 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
5766 _Jv_AllocBytes.
5767 * gnu/gcj/RawDataManaged.java: New file.
5768 * java/lang/Thread.java (data): Declare as RawDataManaged.
5769 * java/lang/natThread.cc (init_native): Cast natThread data to
5770 RawDataManaged, not jobject.
5771 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
5772 * Makefile.in: Rebuilt.
5773
5774 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
5775
5776 * java/util/SimpleTimeZone.java: Reverting my last change until I
5777 can fix it properly.
5778
5779 2004-05-27 Michael Koch <konqueror@gmx.de>
5780
5781 * javax/swing/JPopupMenu.java
5782 (isVisible): Do not use visible directly.
5783 (setVisible): Likewise.
5784 * javax/swing/JWindow.java
5785 (JWindow): call accessible constructor.
5786 * javax/swing/RepaintManager.java
5787 (paintDirtyRegions): Use public methods to obtain iterator.
5788
5789 2004-05-25 David Jee <djee@redhat.com>
5790
5791 * java/awt/Container.java
5792 (remove): Set component's parent to null only after we removed the
5793 component from its parent's layout manager.
5794
5795 2004-05-25 David Jee <djee@redhat.com>
5796
5797 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5798 (GtkComponentPeer): Set bounds regardless of whether awtComponent
5799 is valid.
5800 * gnu/java/awt/peer/gtk/GtkListPeer.java
5801 (getSize): Change native method declaration.
5802 (minimumSize): Pass visible row count into getSize().
5803 (preferredSize): Likewise.
5804 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5805 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
5806 natural size. Use visible row count to determine the final height
5807 value to return.
5808
5809 2004-05-21 Graydon Hoare <graydon@redhat.com>
5810
5811 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5812 (setClip): Minor correction to order of operations.
5813
5814 * javax/swing/JScrollPane.java: Extend sketchy implementation.
5815 * javax/swing/ScrollPaneLayout.java: Likewise.
5816 * javax/swing/JViewPort.java: Likewise.
5817 * javax/swing/ViewportLayout.java: Likewise.
5818
5819 * javax/swing/JComponent.java: Rewrite.
5820 * javax/swing/RepaintManager.java: Likewise.
5821
5822 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
5823 * javax/swing/JList.java
5824 (setSelectedIndices):
5825 (getSelectedIndices):
5826 (getSelectedValues): New functions.
5827 (getPreferredScrollableViewportSize): Return preferred size.
5828 (getScrollableUnitIncrement):
5829 (getScrollableBlockIncrement): Initial implementations.
5830 * javax/swing/JRootPane.java: Clean up slightly.
5831 (getUI):
5832 (setUI):
5833 (updateUI):
5834 (getUIClassID):
5835 (isValidateRoot): Add overrides from JComponent.
5836 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
5837 * javax/swing/UIManager.java (getDimension): Return the dimension.
5838
5839 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
5840 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5841 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5842 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5843 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5844 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
5845 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
5846 * javax/swing/plaf/basic/BasicRootPaneUI.java:
5847 Likewise, and set background.
5848 * javax/swing/plaf/basic/BasicListUI.java:
5849 Likewise, and improve a bit.
5850 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5851 Likewise, and adjust calculations.
5852 * javax/swing/plaf/basic/BasicViewportUI.java:
5853 Likewise, and improve a bit.
5854 * javax/swing/plaf/basic/BasicLookAndFeel.java
5855 (Button.margin): Shrink.
5856
5857 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5858 Hack to set horizontal always, workaround pango.
5859
5860 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
5861 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
5862 Synchronize more often, check cairo status after ops,
5863 handle changes to cairo pattern API, check for disposal.
5864
5865 2004-05-21 Olga Rodimina <rodimina@redhat.com>
5866
5867 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5868 (BasicMenuItemUI): Create propertyChangeListener.
5869 (getPath):Implemented.
5870 (installListeners): Add propertyChangeListener to menuItem.
5871 (uninstallListeners): Remove propertyChangeListener from menuItem.
5872 (update): Implemented.
5873 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5874 (mouseEntered): Take insets of popup menu into account when
5875 calculating position of popup menu.
5876
5877 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5878
5879 * Makefile.am: Added new file.
5880 * Makefile.in: Regenerate.
5881 * javax/swing/JMenuBar.java:
5882 Started implementation.
5883 * javax/swing/JPopupMenu.java:
5884 (setVisible): Fixed location of lightweight/mediumweight
5885 popup menu.
5886 (show): Fixed location of PopupMenu.
5887 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5888 New file. UI Delegate for JMenuBar.
5889 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5890 (mouseEntered): Corrected position of the submenu.
5891
5892 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
5893
5894 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
5895 to _gtk_accel_group_attach.
5896 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5897 Likewise.
5898
5899 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
5900 package access. Don't override setFont.
5901 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
5902 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
5903 gtkWidgetRequestFocus package access.
5904 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
5905 setFont.
5906 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
5907 Give gtkWidgetRequestFocus package access.
5908 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
5909 gtkWidgetRequestFocus package access. Don't override setFont.
5910 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
5911 setFont.
5912 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5913 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
5914 region.
5915 (gtkSetFont): Likewise.
5916 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
5917 Implement.
5918 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5919 (gtkSetFont): Whitespace fix.
5920
5921 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5922 (gtkWidgetSetUsize): Remove method.
5923
5924 2004-05-18 David Jee <djee@redhat.com>
5925
5926 * java/awt/image/MemoryImageSource.java
5927 (newPixels(int,int,int,int,boolean)): Set only the specified
5928 rectangle of pixels.
5929 (newPixels(byte[],ColorModel,int,int)): Implement.
5930 (newPixels(int[],ColorModel,int,int)): Implement.
5931
5932 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5933
5934 * Makefile.am: Added new file.
5935 * Makefile.in: Regenerate.
5936 * javax/swing/JMenu.java: Started
5937 implementation.
5938 * javax/swing/JPopupMenu.java:
5939 (insert): If specified index is -1, then
5940 add component at the end.
5941 (isPopupTrigger): Reimplemented.
5942 (JPopupMenu.LightWeightPopup): setBounds
5943 of the lightWeightPopup before adding it
5944 to the layeredPane.
5945 (javax/swing/plaf/basic/BasicIconFactory.java):
5946 (getMenuArrowIcon): Implemented.
5947 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5948 (getPreferredSize): Add size of the arrow icon
5949 if this menu item is instance of JMenu.
5950 (paintMenuItem): Paint arrow icon if this
5951 menu item is a submenu.
5952 * javax/swing/plaf/basic/BasicMenuUI.java:
5953 New File. UI Delegate for JMenu.
5954
5955 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
5956
5957 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
5958 Post KEY_TYPED events.
5959 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5960 (generates_key_typed_event): Remove function.
5961
5962 2004-05-17 Olga Rodimina <rodimina@redhat.com>
5963
5964 * javax/swing/JRootPane.java
5965 (JRootPane.RootLayout): Reimplemented to
5966 set bounds of contentPane and menuBar.
5967 (setJMenuBar): Add menu bar to the layered pane.
5968 (createLayeredPane): Set layout of layeredPane
5969 to null.
5970 * javax/swing/JLayeredPane.java:
5971 (addImpl): Calculate index of the component in the
5972 layeredPane according to the specified position within
5973 the layer.
5974
5975 2004-05-17 David Jee <djee@redhat.com>
5976
5977 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5978 (setPixels): Change color model to the default model after
5979 converting pixels.
5980 * java/awt/image/MemoryImageSource.java
5981 (newPixels): Set only the specified rectangle of pixels.
5982
5983 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5984
5985 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
5986 -l-java-beans -l-javax-accessibility -l-javax-swing.
5987
5988 * java/awt/AWTEvent.java (toString): Print source's name rather
5989 than the source itself.
5990
5991 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5992
5993 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
5994 native.
5995 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
5996 (gdk_color_to_java_color): New function.
5997 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
5998
5999 2004-05-12 David Jee <djee@redhat.com>
6000
6001 * java/awt/image/RGBImageFilter.java:
6002 Initialize origmodel as null.
6003 (makeColor): Fix pixel component order.
6004 (filterRGBPixels): Fix pixel iteration.
6005 (setPixels): Add extra checks for index color model. Convert pixels
6006 to default color model if necessary.
6007 (convertColorModelToDefault): New override method for byte pixels.
6008 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6009 (makeColorbyDefaultCM): New override method for byte pixels.
6010 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6011 (makeColor): Fix pixel component order.
6012
6013 2004-05-11 Kim Ho <kho@redhat.com>
6014
6015 * javax/swing/Box.java:
6016 Comment out more parts of Box.Filler.
6017
6018 2004-05-11 Kim Ho <kho@redhat.com>
6019
6020 * javax/swing/Box.java:
6021 Remove reference to AccessibleAWTComponent so
6022 it compiles again.
6023
6024 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6025
6026 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6027 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6028 implementation of list peer to use GtkTreeView instead of
6029 deprecated GtkCList.
6030
6031 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6032
6033 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6034 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6035 (handleEvent): Remove keyChar argument to
6036 gtkWidgetDispatchKeyEvent calls.
6037 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6038 compiler warnings.
6039 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6040 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6041 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6042 Likewise.
6043
6044 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6045
6046 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6047 (gtkWidgetRequestFocus): Mark protected.
6048 (GtkComponentPeer): Only set the peer's bounds if its component
6049 is valid.
6050 * java/awt/Component.java (static): Set the default keyboard
6051 focus manager.
6052 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6053 requestFocusInWindow(temporary)): Don't request focus if the
6054 component is not showing. Get tree lock before traversing
6055 component hierarchy.
6056 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6057 Only set the global focus owner if it is not a Window.
6058 (processKeyEvent): Consume keystrokes associated with the focus
6059 traversal keystroke.
6060 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6061 downFocusCycle): Call requestFocusInWindow instead of
6062 requestFocus.
6063 * java/awt/EventDispatchThread.java (run): Move setting of
6064 default keyboard focus manager to Component.java.
6065 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6066 (awt_keycode_to_keysym): New function.
6067 (gtkWidgetDispatchKeyEvent): Finish implementation.
6068 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6069 (pre_event_handler): Add FIXME comment.
6070
6071 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6072 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6073 (gtkWidgetRequestFocus): New method.
6074 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6075 disable Tab and Shift-Tab keystrokes.
6076 (addNotify, appendText, insertText, replaceText): Simplify peer
6077 retrieval code.
6078 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6079 (connectSignals): Remove connections to "commit" signals.
6080 Remove C++-style comments.
6081
6082 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6083 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6084 (handleEvent): Activate GTK button when the space bar key is
6085 pressed.
6086 (gtkActivate): New method.
6087
6088 2004-05-06 David Jee <djee@redhat.com>
6089
6090 * java/awt/image/CropImageFilter.java
6091 (setPixels): Implement for byte array pixels.
6092 * java/awt/image/ReplicateScaleFilter.java
6093 (setPixels): Implement for byte array pixels.
6094 (replicatePixels): Overload for byte array pixels.
6095
6096 2004-05-06 Kim Ho <kho@redhat.com>
6097
6098 * javax/swing/Box.java:
6099 (getAccessibleContext): Return an instance of the
6100 correct class.
6101
6102 2004-05-05 David Jee <djee@redhat.com>
6103
6104 * gnu/java/awt/peer/gtk/GdkGraphics.java
6105 (drawImage): When component is null, use SystemColor.window as
6106 the default bgcolor.
6107 * gnu/java/awt/peer/gtk/GtkImage.java
6108 (setPixels): We can avoid iterating through the pixel rows only
6109 when height is 1.
6110 * java/awt/Image.java
6111 (getScaledInstance): Partially implement.
6112 * java/awt/image/CropImageFilter.java
6113 (setProperties): Fix "filter" property.
6114 (setPixels): Implement.
6115 * java/awt/image/ReplicateScaleFilter.java
6116 (setDimensions): Use scaled dimensions.
6117 (setPixels): Implement.
6118 (replicatePixels): New method.
6119
6120 2004-05-05 David Jee <djee@redhat.com>
6121
6122 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6123 (convertPixels): If either pixels or model is null, return null.
6124 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6125 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6126 is null, do nothing and return.
6127
6128 2004-05-03 Kim Ho <kho@redhat.com>
6129
6130 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6131 (getGraphics): Like GtkFramePeer, the Graphics
6132 object needs to be translate to account for
6133 window decorations.
6134 (postMouseEvent): New method. Account for
6135 translation.
6136 (postExposeEvent): ditto.
6137 * javax/swing/Box.java: Stubbed.
6138 * javax/swing/JDialog.java: Ran through jalopy
6139 to fix indentation.
6140 (JDialog): Call SwingUtilities' getOwnerFrame
6141 for null owners.
6142 (setLayout): Check isRootPaneCheckingEnabled
6143 * javax/swing/JOptionPane.java: Re-implemented.
6144 * javax/swing/SwingUtilities.java:
6145 (getOwnerFrame): Static method to grab a default
6146 owner frame for Dialogs that don't specify owners.
6147 * javax/swing/event/SwingPropertyChangeSupport.java:
6148 (firePropertyChange): Fix early exit condition.
6149 * javax/swing/plaf/basic/BasicLabelUI.java:
6150 (paint): Avoid painting text if it is null
6151 or empty.
6152 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6153 Implement.
6154
6155 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6156
6157 * Makefile.am: Added new file.
6158 * Makefile.in: Regenerate.
6159 * javax/swing/JPopupMenu.java:
6160 Started implementation.
6161 * javax/swing/JWindow.java
6162 (JWindow): call super() if parent for window
6163 is not specified.
6164 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6165 New File. UI Delegate for JPopupMenu.
6166
6167 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6168
6169 * javax/swing/JApplet.java: Indicated that JApplet
6170 implements RootPaneContainer and made method of this
6171 interface public.
6172 * javax/swing/JFrame.java: Ditto.
6173 * javax/swing/JWindow.java: Ditto.
6174
6175 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6176
6177 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6178 (nativeSetBounds): Call gdk_window_move in addition to
6179 gtk_window_move.
6180
6181 * java/applet/Applet.java (preferredSize): Call parent's
6182 preferredSize if the applet stub is null.
6183 (minimumSize): Likewise for parent's minimumSize.
6184
6185 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6186
6187 * javax/swing/JMenuItem.java
6188 (createActionPropertyChangeListener): Implemented.
6189 (processMouseEvent): Ditto.
6190 (fireMenuDragMouseEntered): Ditto.
6191 (fireMenuDragMouseExited): Ditto.
6192 (fireMenuDragMouseDragged): Ditto.
6193 (fireMenuDragMouseReleased): Ditto.
6194 (menuSelectionChanged): Ditto.
6195 (getSubElements): Ditto.
6196 (getComponent): Ditto.
6197 (addMenuDragMouseListener): Ditto.
6198 (removeMenuDragMouseListener):Ditto.
6199 (addMenuKeyListener): Ditto.
6200 (removeMenuKeyListener): Ditto.
6201 * javax/swing/plaf/basic/BasicMenuItemUI.java
6202 (doClick): Imlemented.
6203 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6204 Don't handle mouse events here. Pass them to
6205 MenuSelectionManager.
6206
6207 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6208 Used correct version of jalopy configuration
6209 file to fix style in the files below.
6210
6211 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6212
6213 * javax/swing/JCheckBoxMenuItem.java:
6214 Fixed style and removed unnecessary comments.
6215 * javax/swing/JMenuItem.java: Ditto.
6216 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6217 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6218 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6219 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6220
6221 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6222
6223 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6224 C-style.
6225
6226 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6227
6228 * java/awt/ContainerOrderFocusTraversalPolicy.java
6229 (getComponentAfter): Start from current component and work up
6230 the component hierarchy until an acceptable component is found.
6231 Synchronize on tree lock.
6232 (getComponentBefore): Likewise.
6233
6234 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6235
6236 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6237 focus-related debugging messages.
6238 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6239 * java/awt/EventDispatchThread.java: Likewise.
6240 * java/awt/KeyboardFocusManager.java: Likewise.
6241 * java/awt/Window.java: Likewise.
6242 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6243 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6244
6245 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6246 new C++-style comments to C-style comments.
6247 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6248
6249 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6250 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6251 (handleEvent): Dispatch key press and key release events to
6252 backing widget.
6253 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6254 (gtkWidgetRequestFocus): New method.
6255 (gtkWidgetDispatchKeyEvent): Likewise.
6256 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6257 requestFocusInWindow, requestFocusInWindow(boolean),
6258 getFocusCycleRootAncestor, nextFocus, transferFocus,
6259 transferFocusBackward, transferFocusUpCycle, hasFocus,
6260 isFocusOwner): Implement and document focus-handling methods.
6261 (setFocusTraversalKeys): Inherit focus traversal keys when
6262 keystrokes argument is null. Fix focus-handling documentation
6263 throughout class.
6264 * java/awt/Container.java (setFocusTraversalKeys,
6265 getFocusTraversalKeys, areFocusTraversalKeysSet,
6266 isFocusCycleRoot, setFocusTraversalPolicy,
6267 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6268 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6269 Implement and document focus-handling methods.
6270 (transferFocusBackward): Remove method.
6271 (readObject, writeObject): Implement and document serialization
6272 methods.
6273 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6274 and document.
6275 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6276 document.
6277 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6278 partially document.
6279 * java/awt/EventDispatchThread.java (run): Set default keyboard
6280 focus manager. Attempt to dispatch each event to the keyboard
6281 focus manager before normal dispatch.
6282 * java/awt/KeyboardFocusManager.java: Implement and partially
6283 document.
6284 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6285 (show): Focus initial component when window is shown for the
6286 first time.
6287 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6288 (pre_event_handler): Replace complex key press and key release
6289 logic with simple callbacks into GtkComponentPeer.
6290 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6291
6292 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6293
6294 * javax/swing/MenuSelectionManager.java
6295 (componentForPoint): Added new method.
6296 (defaultManager): New Method. Implemented.
6297 (getSelectedPath): Ditto.
6298 (isComponentPartOfCurrentMenu): Ditto.
6299 (processKeyEvent): Added new method.
6300 (processMouseEvent): New Method. Implemented.
6301 (setSelectedPath): Ditto.
6302 (getPath): Ditto.
6303
6304 2004-04-19 Kim Ho <kho@redhat.com>
6305
6306 * java/awt/Container.java:
6307 (remove): Set the component's parent to null.
6308 (getComponentAt): Implement.
6309 * javax/swing/JComponent.java:
6310 (JComponent): Initialize defaultLocale
6311 (getDefaultLocale): Implement.
6312 (setDefaultLocale): ditto.
6313 * javax/swing/JSlider.java:
6314 (JSlider): Fix calculation of value.
6315 * javax/swing/JSplitPane.java: Implement.
6316 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6317 Change SplitPane's default divider size.
6318 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6319 (paint): Remove unused code.
6320 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6321 Added comments and ran through jalopy.
6322 (setBasicSplitPaneUI): Get reference to hidden divider
6323 and set up one touch buttons if necessary.
6324 (setBorder): Fire propertyChangeEvent only if
6325 borders are different.
6326 (getPreferredSize): Defer to layout manager.
6327 (propertyChange): Implement.
6328 (oneTouchExpandableChanged): ditto.
6329 (createLeftOneTouchButton): Use BasicArrowButton.
6330 (createRightOneTouchButton): ditto.
6331 (moveDividerTo): New method. Moves the divider
6332 to a set location based on the last divider location.
6333 (BasicSplitPaneDivider::MouseHandler): Implement.
6334 (BasicSplitPaneDivider::OneTouchButton): Removed.
6335 (BasicSplitPaneDivider::DragController): Implement.
6336 (BasicSplitPaneDivider::VerticalDragController):
6337 ditto.
6338 (BasicSplitPaneDivider::DividerLayout): ditto.
6339 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6340 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6341 (calculateLayoutInfo): Don't show component if it's
6342 null.
6343 (paintTab): Fix title paint logic.
6344
6345 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6346
6347 PR libgcj/8321
6348 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6349 (setStartRule,setEndRule): Don't take abs of day number.
6350 (getOffset): Clarify docs. Add argument checks.
6351 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6352 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6353 endTimeMode.
6354 * testsuite/libjava.mauve/xfails
6355 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6356
6357 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6358
6359 Layout interfaces during preparation, not initialization.
6360 * java/lang/natClass.cc (initializeClass): Move
6361 _Jv_LayoutInterfaceMethods call...
6362 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6363
6364 2004-05-19 Anthony Green <green@localhost.localdomain>
6365
6366 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6367 gnu.javax.rmi code.
6368 * Makefile.in: Rebuilt.
6369 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6370 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6371 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6372 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6373 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6374 gnu/javax/rmi/CORBA/DelegateFactory.java,
6375 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6376 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6377 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6378 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6379 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6380 gnu/javax/rmi/PortableServer.java: Remove files.
6381
6382 2004-05-19 Anthony Green <green@redhat.com>
6383
6384 * Makefile.am: Define JAVA_EXT_DIRS.
6385 * Makefile.in: Rebuilt.
6386 * java/lang/natRuntime.cc (insertSystemProperties): Set
6387 java.ext.dirs property.
6388
6389 2004-05-16 Mark Wielaard <mark@klomp.org>
6390
6391 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6392
6393 2004-05-15 Mark Wielaard <mark@klomp.org>
6394
6395 * doc/cni.sgml: Removed, merged into gcj.texi.
6396
6397 2004-05-15 Mark Wielaard <mark@klomp.org>
6398
6399 * Makefile.am (ordinary_java_source_files): Add new javax.print
6400 classes.
6401 * Makefile.in: Regenerated.
6402
6403 2004-05-15 Michael Koch <konqueror@gmx.de>
6404
6405 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6406 javax/print/attribute/standard/DateTimeAtCreation.java,
6407 javax/print/attribute/standard/DateTimeAtProcessing.java,
6408 javax/print/attribute/standard/DocumentName.java,
6409 javax/print/attribute/standard/JobHoldUntil.java,
6410 javax/print/attribute/standard/JobImpressionsCompleted.java,
6411 javax/print/attribute/standard/JobMessageFromOperator.java,
6412 javax/print/attribute/standard/JobName.java,
6413 javax/print/attribute/standard/JobOriginatingUserName.java,
6414 javax/print/attribute/standard/JobPriority.java,
6415 javax/print/attribute/standard/JobPrioritySupported.java,
6416 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6417 javax/print/attribute/standard/OutputDeviceAssigned.java,
6418 javax/print/attribute/standard/PrinterInfo.java,
6419 javax/print/attribute/standard/PrinterLocation.java,
6420 javax/print/attribute/standard/PrinterMakeAndModel.java,
6421 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6422 javax/print/attribute/standard/PrinterName.java,
6423 javax/print/attribute/standard/QueuedJobCount.java,
6424 javax/print/attribute/standard/RequestingUserName.java:
6425 Fixed javadocs all over.
6426
6427 2004-05-15 Michael Koch <konqueror@gmx.de>
6428
6429 * javax/print/DocFlavor.java,
6430 javax/print/attribute/standard/ColorSupported.java,
6431 javax/print/attribute/standard/Compression.java,
6432 javax/print/attribute/standard/CopiesSupported.java,
6433 javax/print/attribute/standard/Fidelity.java,
6434 javax/print/attribute/standard/Finishings.java,
6435 javax/print/attribute/standard/JobImpressionsSupported.java,
6436 javax/print/attribute/standard/JobKOctetsSupported.java,
6437 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6438 javax/print/attribute/standard/JobSheets.java,
6439 javax/print/attribute/standard/JobState.java,
6440 javax/print/attribute/standard/JobStateReason.java,
6441 javax/print/attribute/standard/JobStateReasons.java,
6442 javax/print/attribute/standard/Media.java,
6443 javax/print/attribute/standard/MediaSizeName.java,
6444 javax/print/attribute/standard/MultipleDocumentHandling.java,
6445 javax/print/attribute/standard/NumberUpSupported.java,
6446 javax/print/attribute/standard/OrientationRequested.java,
6447 javax/print/attribute/standard/PDLOverrideSupported.java,
6448 javax/print/attribute/standard/PageRanges.java,
6449 javax/print/attribute/standard/PresentationDirection.java,
6450 javax/print/attribute/standard/PrintQuality.java,
6451 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6452 javax/print/attribute/standard/PrinterMoreInfo.java,
6453 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6454 javax/print/attribute/standard/PrinterResolution.java,
6455 javax/print/attribute/standard/PrinterState.java,
6456 javax/print/attribute/standard/PrinterStateReason.java,
6457 javax/print/attribute/standard/PrinterStateReasons.java,
6458 javax/print/attribute/standard/PrinterURI.java,
6459 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6460 javax/print/attribute/standard/Severity.java,
6461 javax/print/attribute/standard/SheetCollate.java,
6462 javax/print/attribute/standard/Sides.java:
6463 Added serialVersionUID and removed final keyword where it doenst
6464 belong.
6465
6466 2004-05-15 Michael Koch <konqueror@gmx.de>
6467
6468 * javax/print/PrintServiceLookup.java: New file.
6469
6470 2004-05-15 Michael Koch <konqueror@gmx.de>
6471
6472 * javax/print/DocFlavor.java:
6473 Implemented all flavor classes.
6474
6475 2004-05-15 Michael Koch <konqueror@gmx.de>
6476
6477 * javax/print/attribute/standard/ColorSupported.java,
6478 javax/print/attribute/standard/Compression.java,
6479 javax/print/attribute/standard/CopiesSupported.java,
6480 javax/print/attribute/standard/Fidelity.java,
6481 javax/print/attribute/standard/Finishings.java,
6482 javax/print/attribute/standard/JobImpressionsSupported.java,
6483 javax/print/attribute/standard/JobKOctetsSupported.java,
6484 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6485 javax/print/attribute/standard/JobSheets.java,
6486 javax/print/attribute/standard/JobState.java,
6487 javax/print/attribute/standard/JobStateReason.java,
6488 javax/print/attribute/standard/JobStateReasons.java,
6489 javax/print/attribute/standard/Media.java,
6490 javax/print/attribute/standard/MediaSizeName.java,
6491 javax/print/attribute/standard/MultipleDocumentHandling.java,
6492 javax/print/attribute/standard/NumberUpSupported.java,
6493 javax/print/attribute/standard/OrientationRequested.java,
6494 javax/print/attribute/standard/PDLOverrideSupported.java,
6495 javax/print/attribute/standard/PageRanges.java,
6496 javax/print/attribute/standard/PresentationDirection.java,
6497 javax/print/attribute/standard/PrintQuality.java,
6498 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6499 javax/print/attribute/standard/PrinterMoreInfo.java,
6500 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6501 javax/print/attribute/standard/PrinterResolution.java,
6502 javax/print/attribute/standard/PrinterState.java,
6503 javax/print/attribute/standard/PrinterStateReason.java,
6504 javax/print/attribute/standard/PrinterStateReasons.java,
6505 javax/print/attribute/standard/PrinterURI.java,
6506 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6507 javax/print/attribute/standard/Severity.java,
6508 javax/print/attribute/standard/SheetCollate.java,
6509 javax/print/attribute/standard/Sides.java: New files.
6510
6511 2004-05-15 Michael Koch <konqueror@gmx.de>
6512
6513 * javax/print/Doc.java
6514 (getPrintData): Throws IOException.
6515 (getReaderForText): Likewise.
6516 (getStreamForBytes): Likewise.
6517 * javax/print/DocFlavor.java:
6518 Fixed filename in copyright.
6519 (serialVersionUID): New field.
6520 * javax/print/ServiceUIFactory.java:
6521 Made all constants final.
6522 * javax/print/AttributeException.java
6523 javax/print/MultiDoc.java
6524 javax/print/MultiDocPrintJob.java
6525 javax/print/MultiDocPrintService.java
6526 javax/print/StreamPrintService.java
6527 javax/print/URIException.java: New files.
6528 * javax/print/Makefile.am
6529 (EXTRA_DIST): Added all new files.
6530
6531 2004-05-15 Michael Koch <konqueror@gmx.de>
6532
6533 * javax/print/attribute/standard/Copies.java,
6534 javax/print/attribute/standard/DateTimeAtCompleted.java,
6535 javax/print/attribute/standard/DateTimeAtCreation.java,
6536 javax/print/attribute/standard/DateTimeAtProcessing.java,
6537 javax/print/attribute/standard/DocumentName.java,
6538 javax/print/attribute/standard/JobHoldUntil.java,
6539 javax/print/attribute/standard/JobImpressions.java,
6540 javax/print/attribute/standard/JobImpressionsCompleted.java,
6541 javax/print/attribute/standard/JobKOctets.java,
6542 javax/print/attribute/standard/JobKOctetsProcessed.java,
6543 javax/print/attribute/standard/JobMediaSheets.java,
6544 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6545 javax/print/attribute/standard/JobMessageFromOperator.java,
6546 javax/print/attribute/standard/JobName.java,
6547 javax/print/attribute/standard/JobOriginatingUserName.java,
6548 javax/print/attribute/standard/JobPriority.java,
6549 javax/print/attribute/standard/JobPrioritySupported.java,
6550 javax/print/attribute/standard/NumberOfDocuments.java,
6551 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6552 javax/print/attribute/standard/NumberUp.java,
6553 javax/print/attribute/standard/OutputDeviceAssigned.java,
6554 javax/print/attribute/standard/PagesPerMinute.java,
6555 javax/print/attribute/standard/PagesPerMinuteColor.java:
6556 Fixed @return tag all over.
6557
6558 2004-05-15 Michael Koch <konqueror@gmx.de>
6559
6560 * javax/print/attribute/AttributeSetUtilities.java
6561 (verifyCategoryForValue): Fixed typo in javadoc.
6562 * javax/print/attribute/HashAttributeSet.java
6563 (containsKey): Fixed @return tag.
6564 (comtainsValue): Likewise.
6565 (equals): Likewise.
6566 * javax/print/attribute/IntegerSyntax.java
6567 (equals): Likewise.
6568 * javax/print/attribute/ResolutionSyntax.java
6569 (equals): Likewise.
6570 (getCrossFeedResolution): Removed unused code.
6571 (getFeedResolution): Likewise.
6572 * javax/print/attribute/SetOfIntegerSyntax.java
6573 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6574 (equals): Fixed @return tag.
6575 * javax/print/attribute/TextSyntax.java
6576 (TextSyntax): Take locale into account.
6577 (hashCode): Better implementation.
6578
6579 2004-05-15 Michael Koch <konqueror@gmx.de>
6580
6581 * javax/print/CancelablePrintJob.java,
6582 javax/print/Doc.java,
6583 javax/print/DocFlavor.java,
6584 javax/print/DocPrintJob.java,
6585 javax/print/FlavorException.java,
6586 javax/print/PrintException.java,
6587 javax/print/PrintService.java,
6588 javax/print/ServiceUIFactory.java: New files.
6589
6590 2004-05-15 Mark Wielaard <mark@klomp.org>
6591
6592 * gnu/regexp/CharIndexedReader.java: Removed.
6593 * gnu/regexp/REFilterReader.java: Likewise.
6594 * gnu/regexp/RETokenLookAhead.java: Likewise.
6595 * Makefile.am (ordinary_java_source_files): Remove above classes.
6596 * Makefile.in: Regenerated.
6597
6598 2004-05-14 Tom Tromey <tromey@redhat.com>
6599
6600 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6601 not `XGraphicsConfiguration.XOffScreenImage'.
6602
6603 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6604
6605 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6606
6607 2004-05-14 Steven Augart <augart@watson.ibm.com>
6608
6609 * include/jni.h (_Jv_func): Removed.
6610 (struct JNINativeInterface): Use `void *' for reserved slots.
6611 (struct JNIInvokeInterface): Likewise.
6612
6613 2004-05-11 Michael Koch <konqueror@gmx.de>
6614
6615 * gnu/java/net/natPlainSocketImplPosix.cc
6616 (read): Fixed typo in expression.
6617
6618 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6619
6620 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6621 ld_library_additions. Adjust all calls to libjava_invoke to match
6622 the new argument.
6623
6624 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6625 path to cxxflagslist.
6626 Pass path of libstdc++ to libjava_invoke.
6627
6628 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6629 libjava_invoke arguments.
6630
6631 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6632
6633 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6634 reality.
6635
6636 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6637
6638 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6639 main binary against the JNI shared library.
6640
6641 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6642
6643 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6644 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6645 (SimpleTimeZone): Tweak docs. Add new variation.
6646 (setStartRule,setEndRule): Add new variations. Use
6647 startTimeMode and endTimeMode.
6648
6649 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6650
6651 * java/util/Calendar.java (getActualMinimum,
6652 getActualMaximum): Remove abstract. Implement.
6653
6654 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6655
6656 Run the jni tests using the interpreter.
6657 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6658 options_cxx to shared lib compile command.
6659 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6660 they are used to link the shared lib, not the main binary.
6661 Use libjava_invoke to run gij.
6662
6663 2004-05-06 Michael Koch <konqueror@gmx.de>
6664
6665 * java/util/logging/Level.java
6666 (parse): Use == instead of String.equals().
6667
6668 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6669
6670 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6671 verify_field_signature and verify_method_signature, not
6672 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6673 (_Jv_ClassReader::handleField): Likewise.
6674 (_Jv_ClassReader::handleMethod): Likewise.
6675
6676 2004-05-06 Michael Koch <konqueror@gmx.de>
6677
6678 * javax/swing/table/TableColumn.java:
6679 Reformated.
6680
6681 2004-05-06 Michael Koch <konqueror@gmx.de>
6682
6683 * javax/imageio/spi/ImageReaderWriterSpi.java
6684 (ImageReaderWriterSpi): Made it public.
6685 * javax/imageio/stream/ImageInputStream.java:
6686 Clean up imports.
6687
6688 2004-05-06 Michael Koch <konqueror@gmx.de>
6689
6690 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6691 Removed empty line.
6692
6693 2004-05-06 Michael Koch <konqueror@gmx.de>
6694
6695 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6696 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6697 New files.
6698 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6699 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6700 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6701 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6702 their own source file.
6703 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6704 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6705 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6706 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6707 (create): Define variable on top of function.
6708 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6709 (menu_pos): Prototyped.
6710 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6711 (setTitle): Removed.
6712 * jni/gtk-peer/gthread-jni.c
6713 (gdk_threads_wake): Removed.
6714 * Makefile.am (gtk_c_source_files): Added new files
6715 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6716 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6717 * Makefile.in: Regenerated.
6718
6719 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6720
6721 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6722 call.
6723
6724 2004-05-05 Mark Wielaard <mark@klomp.org>
6725
6726 * javax/swing/AbstractButton.java: Replace special HTML entities with
6727 ASCII equivalent.
6728 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6729 * javax/swing/DefaultButtonModel.java: Likewise.
6730 * javax/swing/DefaultListModel.java: Likewise.
6731 * javax/swing/JList.java: Likewise.
6732 * javax/swing/JSlider.java: Likewise.
6733 * javax/swing/ListModel.java: Likewise.
6734 * javax/swing/Popup.java: Likewise.
6735 * javax/swing/SwingUtilities.java: Likewise.
6736
6737 2004-05-05 Michael Koch <konqueror@gmx.de>
6738
6739 * javax/swing/AbstractButton.java,
6740 javax/swing/ActionMap.java,
6741 javax/swing/DefaultButtonModel.java,
6742 javax/swing/DefaultListModel.java,
6743 javax/swing/ImageIcon.java,
6744 javax/swing/JComboBox.java,
6745 javax/swing/JComponent.java,
6746 javax/swing/JFrame.java,
6747 javax/swing/JInternalFrame.java,
6748 javax/swing/JMenuBar.java,
6749 javax/swing/JMenuItem.java,
6750 javax/swing/JOptionPane.java,
6751 javax/swing/JProgressBar.java,
6752 javax/swing/JRootPane.java,
6753 javax/swing/JScrollBar.java,
6754 javax/swing/JScrollPane.java,
6755 javax/swing/JSeparator.java,
6756 javax/swing/JSlider.java,
6757 javax/swing/JTabbedPane.java,
6758 javax/swing/JTable.java,
6759 javax/swing/JTextField.java,
6760 javax/swing/JToolBar.java,
6761 javax/swing/JToolTip.java,
6762 javax/swing/JTree.java,
6763 javax/swing/JViewport.java,
6764 javax/swing/JWindow.java,
6765 javax/swing/KeyStroke.java,
6766 javax/swing/LookAndFeel.java,
6767 javax/swing/SwingUtilities.java,
6768 javax/swing/Timer.java,
6769 javax/swing/ToolTipManager.java,
6770 javax/swing/UIDefaults.java,
6771 javax/swing/border/TitledBorder.java,
6772 javax/swing/filechooser/FileSystemView.java,
6773 javax/swing/plaf/basic/BasicButtonListener.java,
6774 javax/swing/plaf/basic/BasicButtonUI.java,
6775 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
6776 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6777 javax/swing/plaf/basic/BasicLabelUI.java,
6778 javax/swing/plaf/basic/BasicMenuItemUI.java,
6779 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6780 javax/swing/plaf/basic/BasicRootPaneUI.java,
6781 javax/swing/plaf/basic/BasicScrollBarUI.java,
6782 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6783 javax/swing/plaf/basic/BasicSliderUI.java,
6784 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6785 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6786 javax/swing/table/JTableHeader.java,
6787 javax/swing/text/AbstractDocument.java,
6788 javax/swing/text/DefaultCaret.java,
6789 javax/swing/text/StyledEditorKit.java,
6790 javax/swing/tree/DefaultTreeCellEditor.java:
6791 Cleaned up imports.
6792
6793 2004-05-05 Michael Koch <konqueror@gmx.de>
6794
6795 * java/util/prefs/AbstractPreferences.java
6796 (AbstractPreferences): Added parenthesis for clarity.
6797 Closes classpath bug #7940.
6798
6799 2004-05-05 Tom Tromey <tromey@redhat.com>
6800
6801 * javax/naming/CompoundName.java (endsWith): Look at correct
6802 element of source name.
6803
6804 2004-05-05 Mark Wielaard <mark@klomp.org>
6805
6806 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6807 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6808
6809 2004-05-05 Tom Tromey <tromey@redhat.com>
6810
6811 * java/io/BufferedReader.java (skip): Removed unused
6812 variable.
6813
6814 2004-05-05 Michael Koch <konqueror@gmx.de>
6815
6816 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6817
6818 2004-05-05 Dalibor Topic <robilad@kaffe.org>
6819
6820 * java/text/AttributedString.java,
6821 java/text/AttributedStringIterator.java,
6822 java/text/Collator.java,
6823 java/text/DecimalFormatSymbols.java,
6824 java/text/NumberFormat.java,
6825 java/text/RuleBasedCollator.java:
6826 Cleaned up imports.
6827
6828 2004-05-05 Tom Tromey <tromey@redhat.com>
6829
6830 * java/text/Format.java: Cleaned up imports.
6831 * java/text/DecimalFormat.java: Cleaned up imports.
6832 * java/security/SecureRandom.java: Cleaned up imports.
6833 (SecureRandom): Removed unused variable.
6834 * java/security/UnresolvedPermission.java: Cleaned up imports.
6835 * java/util/Date.java (parse): Removed unused variable.
6836 * java/util/ResourceBundle.java: Cleaned up imports.
6837 (getBundle): Removed unused variable.
6838 (tryBundle): Likewise.
6839 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6840
6841 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6842
6843 * java/text/SimpleDateFormat.java:
6844 (formatWithAttribute): New method. It implements
6845 the formatting process with attributes.
6846 (format): Use formatWithAttribute.
6847 (formatToCharacterIterator): New method. Use
6848 formatWithAttribute.
6849
6850 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6851
6852 * java/text/MessageFormat.java:
6853 (class Field): New class.
6854 (formatToCharacterIterator): New method.
6855 (format): Use formatInternal now.
6856 (formatInternal): New method. String formatter should
6857 be done here (with attributes). Attributes merging supported.
6858 (parse): More documentation.
6859 (getFormatsByArgumentIndex): New method.
6860 (setFormatByArgumentIndex): New method.
6861 (setFormatsByArgumentIndex): New method.
6862
6863 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6864
6865 * java/text/DecimalFormat.java
6866 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
6867 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
6868 (parse): Fixed handling of exponentiation notation and grouping.
6869
6870 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6871
6872 * java/text/DecimalFormat.java
6873 (scanFix): Build attribute array. Fixed error reporting.
6874 (applyPatternWithSymbols): Store attributes for the prefix and
6875 suffix.
6876 (formatInternal): New method. Changed the way the string is
6877 computed. Implemented attributes. Cleant up rounding in
6878 exponential notation.
6879 (format): Use formatInternal.
6880 (formatToCharacterIterator): New method.
6881 (exponentRound, negativePrefixRanges, positivePrefixRanges,
6882 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
6883 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
6884 New fields.
6885
6886 2004-05-04 Dalibor Topic <robilad@kaffe.org>
6887
6888 * java/security/interfaces/DSAKeyPairGenerator.java,
6889 java/security/interfaces/DSAPrivateKey.java,
6890 java/security/interfaces/DSAPublicKey.java,
6891 java/security/interfaces/RSAPrivateKey.java,
6892 java/security/interfaces/RSAPublicKey.java:
6893 Cleaned up imports.
6894
6895 2004-05-04 Michael Koch <konqueror@gmx.de>
6896
6897 * java/nio/ByteBuffer.java,
6898 java/nio/CharBuffer.java,
6899 java/nio/DoubleBuffer.java,
6900 java/nio/FloatBuffer.java,
6901 java/nio/IntBuffer.java,
6902 java/nio/LongBuffer.java,
6903 java/nio/ShortBuffer.java:
6904 (compareTo): Fixed bogus implementation in all buffer classes.
6905
6906 2004-05-04 Ingo Proetel <proetel@aicas.com>
6907
6908 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
6909 32 bit pixels not 8 bit pixels.
6910 (isCompatibleRaster): Added javadoc comment.
6911
6912 2004-05-04 Ingo Proetel <proetel@aicas.com>
6913
6914 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
6915 scanline stride.
6916
6917 2004-05-04 Ingo Proetel <proetel@aicas.com>
6918
6919 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
6920 (getColorModel): Return the actual color model.
6921 (getRaster): Implemented.
6922 (ColorRaster): New inner class.
6923 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
6924 a PaintContext.
6925 * java/awt/Color.java (<init>): Make exception more verbose.
6926 (createContext): Use ColorModel when creating a PaintContext.
6927
6928 2004-05-04 Michael Koch <konqueror@gmx.de>
6929
6930 * gnu/java/text/CharacterBreakIterator.java
6931 (previous): Removed unused variable.
6932
6933 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
6934
6935 * gnu/java/text/FormatBuffer.java,
6936 gnu/java/text/AttributedFormatBuffer.java,
6937 gnu/java/text/StringFormatBuffer.java: New classes to implement
6938 attributed iterators in java.text.
6939 * gnu/java/text/FormatCharacterIterator.java: Moved
6940 from java/text as it is an internal class.
6941 * java/text/FormatCharacterIterator.java: Removed.
6942 * java/text/Format.java:
6943 Import gnu.java.text.FormatCharacterIterator.
6944 * Makefile.am (java_source_files): Added new files.
6945 * Makefile.in: Regenerated.
6946
6947
6948 2004-05-04 Mark Wielaard <mark@klomp.org>
6949
6950 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
6951
6952 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
6953
6954 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
6955 * Makefile.in: Rebuilt.
6956
6957 2004-05-03 Mark Wielaard <mark@klomp.org>
6958
6959 * gnu/java/security/der/DERReader.java: Call static methods staticly.
6960 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
6961 * java/net/URL.java
6962 (set(String, String, int, String, String, String, String, String)):
6963 Assign this.file to path or path + "?" + query.
6964 * java/util/Arrays.java: Call static methods staticly.
6965 * java/util/zip/ZipEntry.java: Likewise.
6966 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
6967 dir to this.direction.
6968 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
6969 Assign static field only once.
6970 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
6971
6972 2004-05-03 Mark Wielaard <mark@klomp.org>
6973
6974 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
6975 unused variables hScrollbarHeight and vScrollbarWidth.
6976 (preferredSize): Likewise.
6977 * gnu/java/security/provider/DSAParameters.java (engineToString):
6978 Removed unused call to System.getProperty("line.seperator");
6979 * java/security/Security.java (loadProviders): Return result.
6980
6981 2004-05-03 Tom Tromey <tromey@redhat.com>
6982
6983 * java/net/URLStreamHandler.java (toExternalForm): Removed
6984 unused variables.
6985 unused constructor.
6986 * java/math/BigDecimal.java (divide): Removed unused variable.
6987 * java/lang/Throwable.java: Cleaned up imports.
6988 * java/lang/ClassLoader.java: Cleaned up imports.
6989 * java/io/FilePermission.java (implies): Removed unused
6990 variable.
6991 * java/awt/TextComponent.java: Removed unused import.
6992 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
6993 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
6994 * gnu/java/text/WordBreakIterator.java: Removed unused import.
6995 * gnu/java/text/SentenceBreakIterator.java: Removed unused
6996 import.
6997 * gnu/java/text/LineBreakIterator.java: Removed unused import.
6998 * gnu/java/text/CharacterBreakIterator.java: Removed
6999 unused import.
7000 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7001 Cleaned up imports.
7002 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7003 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7004 unused method.
7005 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7006 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7007 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7008 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7009 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7010 (lookupProviders): Removed unused variable.
7011 (loadNextServiceProvider): Likewise.
7012 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7013
7014 2004-05-03 Michael Koch <konqueror@gmx.de>
7015
7016 Fixes PR libgcj/14695:
7017 * java/net/NetworkInterface.java
7018 (getByName): Return null when no interface was found.
7019
7020 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7021 Tom Tromey <tromey@redhat.com>
7022
7023 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7024 additional option "-Wmissing-prototypes" for compiling C sources.
7025 Print actual filename for pass/fail rather than $name.c.
7026 * testsuite/libjava.jni/PR15133.java: New testcase file.
7027 * testsuite/libjava.jni/PR15133.c: Likewise.
7028 * testsuite/libjava.jni/PR15133.out: Likewise.
7029
7030 2004-04-30 Roger Sayle <roger@eyesopen.com>
7031
7032 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7033 ceil and floor.
7034
7035 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7036
7037 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7038 limit the maximum heap size to avoid unnecessary thrashing.
7039
7040 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7041
7042 * java/text/CollationElementIterator.java (reset): Reset
7043 lookahead variables.
7044
7045 2004-04-23 Mark Wielaard <mark@klomp.org>
7046
7047 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7048
7049 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7050
7051 * java/sql/DriverManager.java:
7052 Cleaned up imports.
7053
7054 2004-04-23 Michael Koch <konqueror@gmx.de>
7055
7056 * java/net/URL.java
7057 (hashcode): Don't initialize with default value explicitely.
7058 (getContent): Removed redundant "final" keyword.
7059 (openStream): Likewise.
7060 (getURLStreamHandler): Fixed coding style.
7061 * java/net/URLConnection.java
7062 (defaultAllowUserInteraction): Don't initialize with default value
7063 explicitely.
7064 (connected): Likewise.
7065 (doOutput): Likewise.
7066 (ifModifiedSince): Likewise.
7067 (dateformats_initialized): Likewise.
7068 (setURLStreamHander): Use StreamTokenizer where it belongs to.
7069
7070 2004-04-23 Michael Koch <konqueror@gmx.de>
7071
7072 * gnu/java/nio/channels/FileChannelImpl.java
7073 (SET, CUR): Unused, removed.
7074 (read): Implement here directly.
7075 (implRead): Removed.
7076 (write): Implement here directly.
7077 (implWrite): Removed.
7078
7079 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7080
7081 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
7082 javax/rmi/CORBA/Stub.java,
7083 javax/rmi/CORBA/Util.java,
7084 javax/rmi/CORBA/ValueHandler.java,
7085 javax/rmi/CORBA/ValueHandler.java,
7086 javax/rmi/PortableRemoteObject.java:
7087 Cleaned up imports.
7088
7089 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7090
7091 * java/util/jar/JarFile.java,
7092 java/util/jar/JarInputStream.java,
7093 java/util/jar/JarOutputStream.java,
7094 java/util/jar/Manifest.java:
7095 Cleaned up imports.
7096
7097 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7098
7099 * java/util/ArrayList.java,
7100 java/util/Calendar.java,
7101 java/util/Currency.java,
7102 java/util/HashMap.java,
7103 java/util/HashSet.java,
7104 java/util/Hashtable.java,
7105 java/util/LinkedList.java,
7106 java/util/Properties.java,
7107 java/util/PropertyPermission.java,
7108 java/util/TimeZone.java,
7109 java/util/TreeMap.java,
7110 java/util/TreeSet.java,
7111 java/util/Vector.java,
7112 java/util/WeakHashMap.java:
7113 Cleaned up imports.
7114
7115 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7116
7117 * java/util/logging/FileHandler.java,
7118 java/util/logging/Formatter.java,
7119 java/util/logging/Handler.java,
7120 java/util/logging/Logger.java,
7121 java/util/logging/SimpleFormatter.java,
7122 java/util/logging/XMLFormatter.java:
7123 Cleaned up imports.
7124
7125 2004-04-22 Mark Wielaard <mark@klomp.org>
7126
7127 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7128 -Wno-long-long flags variable.
7129 (gtk_c_files): Use PEDANTIC_CFLAGS.
7130 * Makefile.in: Regenerated.
7131
7132 2004-04-22 Mark Wielaard <mark@klomp.org>
7133
7134 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7135 Changed C++ comments into C comments.
7136 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7137 Likewise.
7138
7139 2004-04-22 Michael Koch <konqueror@gmx.de>
7140
7141 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7142 Merged copyright year with GNU classpath.
7143
7144 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7145
7146 * javax/security/auth/x500/X500Principal.java:
7147 Cleaned up imports.
7148
7149 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7150
7151 * javax/swing/JSlider.java:
7152 Fixed HTML tags in comments.
7153
7154 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7155
7156 * javax/accessibility/AccessibleText.java:
7157 Cleaned up imports.
7158
7159 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7160
7161 * java/net/URLStreamHandler.java
7162 (parseURL): Convert the file path to using '/' instead of native
7163 file separator.
7164
7165 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7166
7167 * java/net/URL.java
7168 (userInfo): New field.
7169 (URL): Set authority to the right value.
7170 (setURL): Fixed authority and file initialization.
7171 * java/net/URLStreamHandler.java
7172 (parseURL): Take care of the query tag. Build authority.
7173 (toExternalForm): Fixed URL building using authority.
7174
7175 2004-04-22 Michael Koch <konqueror@gmx.de>
7176
7177 * java/net/Socket.java
7178 (impl): Made package-private.
7179 * java/net/ServerSocket.java
7180 (implAccept): Access Socket.impl field directly.
7181
7182 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7183
7184 * java/util/prefs/Preferences.java,
7185 java/util/prefs/InvalidPreferencesFormatException.java,
7186 java/util/prefs/BackingStoreException.java,
7187 java/util/prefs/AbstractPreferences.java:
7188 Cleaned up imports.
7189
7190 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7191
7192 * java/util/regex/Matcher.java,
7193 java/util/regex/Pattern.java:
7194 Cleaned up imports.
7195
7196 2004-04-22 Michael Koch <konqueror@gmx.de>
7197
7198 * java/nio/charset/IllegalCharsetNameException.java
7199 (charsetName): Made private.
7200 (IllegalCharsetNameException): Added @param tag to javadoc.
7201 (getCharsetName): Added @return tag to javadoc.
7202 * java/nio/charset/MalformedInputException.java
7203 (MalformedInputException): Added @param tag to javadoc.
7204 (getInputLength): Revised method description, added @return tag.
7205 (getMessage): Added @return tag.
7206
7207 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7208
7209 * java/awt/Font.java (deriveFont): Implement missing variants.
7210 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7211 missing variants.
7212
7213 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7214
7215 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7216 Set method->index values for interface methods to their itable index.
7217 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7218
7219 2004-04-21 Michael Koch <konqueror@gmx.de>
7220
7221 * java/nio/DirectByteBufferImpl.java
7222 (shiftDown): Made static, give address as argument and
7223 provide a convenience method that overwrites shiftDown in
7224 ByteBufferImpl and calls the native shiftDown.
7225 * java/nio/MappedByteBufferImpl.java
7226 (): Use optimized method in DirectByteBufferImpl.
7227 * java/nio/natDirectByteBufferImpl.cc
7228 (shiftDown): Changed method signature. Removed usage of array_offset.
7229
7230 2004-04-21 Michael Koch <konqueror@gmx.de>
7231
7232 * gnu/java/net/natPlainSocketImplPosix.cc
7233 (SocketInputStream::read): Make sure returned data is a byte value.
7234
7235 2004-04-21 Michael Koch <konqueror@gmx.de>
7236
7237 * gnu/classpath/ServiceFactory.java,
7238 gnu/classpath/ServiceProviderLoadingAction.java,
7239 javax/imageio/ImageReader.java,
7240 javax/imageio/ImageTranscoder.java,
7241 javax/imageio/ImageWriter.java,
7242 javax/imageio/package.html,
7243 javax/imageio/spi/IIOServiceProvider.java,
7244 javax/imageio/spi/ImageInputStreamSpi.java,
7245 javax/imageio/spi/ImageOutputStreamSpi.java,
7246 javax/imageio/spi/ImageReaderWriterSpi.java,
7247 javax/imageio/spi/ImageTranscoderSpi.java,
7248 javax/imageio/spi/RegisterableService.java,
7249 javax/imageio/spi/ServiceRegistry.java,
7250 javax/imageio/spi/package.html,
7251 javax/imageio/stream/IIOByteBuffer.java,
7252 javax/imageio/stream/ImageInputStream.java,
7253 javax/imageio/stream/ImageOutputStream.java,
7254 javax/imageio/stream/package.html:
7255 New files.
7256 * Makefile.am
7257 (ordinary_java_source_files): Added
7258 gnu/classpath/ServiceFactory.java and
7259 gnu/classpath/ServiceProviderLoadingAction.java.
7260 (javax_source_files): Added
7261 javax/imageio/ImageReader.java,
7262 javax/imageio/ImageTranscoder.java,
7263 javax/imageio/ImageWriter.java,
7264 javax/imageio/spi/IIOServiceProvider.java,
7265 javax/imageio/spi/ImageInputStreamSpi.java,
7266 javax/imageio/spi/ImageOutputStreamSpi.java,
7267 javax/imageio/spi/ImageReaderWriterSpi.java,
7268 javax/imageio/spi/ImageTranscoderSpi.java,
7269 javax/imageio/spi/RegisterableService.java,
7270 javax/imageio/spi/ServiceRegistry.java,
7271 javax/imageio/stream/IIOByteBuffer.java,
7272 javax/imageio/stream/ImageInputStream.java and
7273 javax/imageio/stream/ImageOutputStream.java.
7274 * Makefile.in: Regenerated.
7275
7276 2004-04-21 Michael Koch <konqueror@gmx.de>
7277
7278 * java/util/Properties.java
7279 (load): Fix wrongly merged fix.
7280
7281 2004-04-21 Mark Wielaard <mark@klomp.org>
7282
7283 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7284 malloc and free buf.
7285
7286 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7287
7288 * javax/naming/AuthenticationException.java,
7289 javax/naming/AuthenticationNotSupportedException.java,
7290 javax/naming/CannotProceedException.java,
7291 javax/naming/CommunicationException.java,
7292 javax/naming/CompoundName.java,
7293 javax/naming/ConfigurationException.java,
7294 javax/naming/ContextNotEmptyException.java,
7295 javax/naming/InitialContext.java,
7296 javax/naming/InsufficientResourcesException.java,
7297 javax/naming/InterruptedNamingException.java,
7298 javax/naming/LimitExceededException.java,
7299 javax/naming/LinkException.java,
7300 javax/naming/LinkLoopException.java,
7301 javax/naming/LinkRef.java,
7302 javax/naming/MalformedLinkException.java,
7303 javax/naming/Name.java,
7304 javax/naming/NameAlreadyBoundException.java,
7305 javax/naming/NameNotFoundException.java,
7306 javax/naming/NamingSecurityException.java,
7307 javax/naming/NoInitialContextException.java,
7308 javax/naming/NoPermissionException.java,
7309 javax/naming/NotContextException.java,
7310 javax/naming/PartialResultException.java,
7311 javax/naming/ReferralException.java,
7312 javax/naming/ServiceUnavailableException.java,
7313 javax/naming/SizeLimitExceededException.java,
7314 javax/naming/TimeLimitExceededException.java,
7315 javax/naming/directory/Attribute.java,
7316 javax/naming/directory/Attributes.java,
7317 javax/naming/directory/SearchResult.java,
7318 javax/naming/event/NamingExceptionEvent.java,
7319 javax/naming/spi/ResolveResult.java:
7320 Cleaned up imports.
7321
7322 2004-04-21 Mark Wielaard <mark@klomp.org>
7323
7324 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7325 Changed C++ comments into C comments. Removed commented out code.
7326 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7327 Likewise.
7328 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7329 Likewise.
7330 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7331 Likewise.
7332 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7333 Likewise.
7334 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7335 Likewise.
7336 * native/jni/gtk-peer/gthread-jni.c:
7337 Likewise.
7338
7339 2004-04-21 Mark Wielaard <mark@klomp.org>
7340
7341 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7342 static fields defined in interface.
7343 * javax/awt/JDialog.java: Likewise.
7344 (JDialog): Make constructors public.
7345 (getDefaultCloseOperation): Make public.
7346 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7347 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7348 * javax/swing/JViewport.java (JViewport): Make constructor public.
7349
7350 2004-04-21 Michael Koch <konqueror@gmx.de>
7351
7352 * java/util/Map.java
7353 (Entry): Removed redundant "static" modifier.
7354 * java/text/AttributedCharacterIterator.java:
7355 Updated copyright year.
7356
7357 2004-04-20 Michael Koch <konqueror@gmx.de>
7358
7359 * javax/naming/directory/SearchControls.java:
7360 Don't explicitely extend java.lang.Object.
7361 * javax/naming/spi/DirStateFactory.java:
7362 Merged copyright year with GNU classpath.
7363
7364 2004-04-20 Michael Koch <konqueror@gmx.de>
7365
7366 * java/nio/channels/Channels.java:
7367 Merged coding style with GNU classpath.
7368
7369 2004-04-20 Michael Koch <konqueror@gmx.de>
7370
7371 * java/net/ServerSocket.java
7372 Merged coding style from GNU classpath.
7373
7374 2004-04-20 Michael Koch <konqueror@gmx.de>
7375
7376 * java/io/BufferedWriter.java:
7377 Reordered variables to be at top of the class.
7378 (localFlush): Removed redundant final keyword.
7379
7380 2004-04-20 Ingo Proetel <proetel@aicas.com>
7381
7382 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7383
7384 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7385
7386 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7387 for percent and permill check.
7388
7389 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7390
7391 * java/text/FieldPosition.java
7392 (FieldPosition) Constructor now behaves as it should according
7393 to the java documentation.
7394
7395 2004-04-20 Mark Wielaard <mark@klomp.org>
7396
7397 * java/util/Properties.java: Use the word umlaut, not &auml; in api
7398 documentation.
7399
7400 2004-04-20 Michael Koch <konqueror@gmx.de>
7401
7402 * java/nio/Buffer.java,
7403 java/nio/channels/AlreadyConnectedException.java,
7404 java/nio/channels/AsynchronousCloseException.java,
7405 java/nio/channels/ByteChannel.java,
7406 java/nio/channels/CancelledKeyException.java,
7407 java/nio/channels/Channel.java,
7408 java/nio/channels/Channels.java,
7409 java/nio/channels/ClosedByInterruptException.java,
7410 java/nio/channels/ClosedChannelException.java,
7411 java/nio/channels/ClosedSelectorException.java,
7412 java/nio/channels/ConnectionPendingException.java,
7413 java/nio/channels/DatagramChannel.java,
7414 java/nio/channels/FileChannel.java,
7415 java/nio/channels/FileLock.java,
7416 java/nio/channels/FileLockInterruptionException.java,
7417 java/nio/channels/GatheringByteChannel.java,
7418 java/nio/channels/IllegalBlockingModeException.java,
7419 java/nio/channels/IllegalSelectorException.java,
7420 java/nio/channels/InterruptibleChannel.java,
7421 java/nio/channels/NoConnectionPendingException.java,
7422 java/nio/channels/NonReadableChannelException.java,
7423 java/nio/channels/NonWritableChannelException.java,
7424 java/nio/channels/NotYetBoundException.java,
7425 java/nio/channels/NotYetConnectedException.java,
7426 java/nio/channels/OverlappingFileLockException.java,
7427 java/nio/channels/Pipe.java,
7428 java/nio/channels/ReadableByteChannel.java,
7429 java/nio/channels/ScatteringByteChannel.java,
7430 java/nio/channels/SelectableChannel.java,
7431 java/nio/channels/SelectionKey.java,
7432 java/nio/channels/Selector.java,
7433 java/nio/channels/ServerSocketChannel.java,
7434 java/nio/channels/SocketChannel.java,
7435 java/nio/channels/UnresolvedAddressException.java,
7436 java/nio/channels/UnsupportedAddressTypeException.java,
7437 java/nio/channels/WritableByteChannel.java,
7438 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7439 java/nio/channels/spi/AbstractSelectableChannel.java,
7440 java/nio/channels/spi/AbstractSelectionKey.java,
7441 java/nio/channels/spi/AbstractSelector.java,
7442 java/nio/channels/spi/SelectorProvider.java,
7443 java/nio/charset/spi/CharsetProvider.java:
7444 Fixed javadocs and jalopied all over java.nio.
7445
7446 2004-04-20 Michael Koch <konqueror@gmx.de>
7447
7448 * java/nio/ByteBufferImpl.java,
7449 java/nio/CharBufferImpl.java,
7450 java/nio/DirectByteBufferImpl.java,
7451 java/nio/DoubleBufferImpl.java,
7452 java/nio/DoubleViewBufferImpl.java,
7453 java/nio/FloatBufferImpl.java,
7454 java/nio/FloatViewBufferImpl.java,
7455 java/nio/IntBufferImpl.java,
7456 java/nio/IntViewBufferImpl.java,
7457 java/nio/LongBufferImpl.java,
7458 java/nio/LongViewBufferImpl.java,
7459 java/nio/MappedByteBufferImpl.java,
7460 java/nio/ShortBufferImpl.java,
7461 java/nio/ShortViewBufferImpl.java:
7462 Made sure all classes are final and removed final keyword from all
7463 methods.
7464
7465 2004-04-20 Michael Koch <konqueror@gmx.de>
7466
7467 * java/rmi/MarshalledObject.java,
7468 java/rmi/Naming.java,
7469 java/rmi/RemoteException.java,
7470 java/rmi/activation/ActivationException.java,
7471 java/rmi/server/ServerCloneException.java,
7472 java/security/AccessController.java,
7473 java/security/AlgorithmParameterGenerator.java,
7474 java/security/AlgorithmParameters.java,
7475 java/security/CodeSource.java,
7476 java/security/Identity.java,
7477 java/security/IdentityScope.java,
7478 java/security/KeyPairGenerator.java,
7479 java/security/KeyStore.java,
7480 java/security/Security.java,
7481 java/security/Signature.java,
7482 java/security/SignatureSpi.java,
7483 java/security/SignedObject.java,
7484 java/security/spec/DSAParameterSpec.java,
7485 java/security/spec/DSAPrivateKeySpec.java,
7486 java/security/spec/DSAPublicKeySpec.java,
7487 java/sql/Array.java,
7488 java/sql/DatabaseMetaData.java,
7489 java/sql/ResultSet.java,
7490 java/text/ChoiceFormat.java,
7491 java/text/CollationElementIterator.java,
7492 java/text/CollationKey.java,
7493 java/text/Collator.java,
7494 java/text/DateFormat.java,
7495 java/text/DateFormatSymbols.java,
7496 java/text/DecimalFormatSymbols.java,
7497 java/text/Format.java,
7498 java/text/ParsePosition.java,
7499 java/text/RuleBasedCollator.java,
7500 java/text/SimpleDateFormat.java,
7501 java/text/StringCharacterIterator.java,
7502 java/util/Collections.java,
7503 java/util/PropertyResourceBundle.java,
7504 java/util/ResourceBundle.java,
7505 java/util/StringTokenizer.java,
7506 java/util/jar/Attributes.java,
7507 java/util/logging/ConsoleHandler.java,
7508 java/util/logging/LogManager.java,
7509 java/util/logging/MemoryHandler.java,
7510 java/util/logging/SocketHandler.java,
7511 javax/naming/NamingException.java:
7512 Fixed javadoc, coding style and argument names all over.
7513
7514 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7515
7516 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7517 constructor. (valid) Added null check.
7518
7519 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7520
7521 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7522 * java/io/FileOutputStream.java
7523 (FileOutputStream) Reorganized constructors. Constructors now
7524 check whether the given path is directory.
7525
7526 2004-04-20 Michael Koch <konqueror@gmx.de>
7527
7528 * java/net/Authenticator.java,
7529 java/net/BindException.java,
7530 java/net/ConnectException.java,
7531 java/net/ContentHandler.java,
7532 java/net/ContentHandlerFactory.java,
7533 java/net/DatagramPacket.java,
7534 java/net/DatagramSocket.java,
7535 java/net/DatagramSocketImpl.java,
7536 java/net/DatagramSocketImplFactory.java,
7537 java/net/FileNameMap.java,
7538 java/net/HttpURLConnection.java,
7539 java/net/Inet4Address.java,
7540 java/net/Inet6Address.java,
7541 java/net/InetAddress.java,
7542 java/net/InetSocketAddress.java,
7543 java/net/JarURLConnection.java,
7544 java/net/MalformedURLException.java,
7545 java/net/MulticastSocket.java,
7546 java/net/NetPermission.java,
7547 java/net/NetworkInterface.java,
7548 java/net/NoRouteToHostException.java,
7549 java/net/PasswordAuthentication.java,
7550 java/net/PortUnreachableException.java,
7551 java/net/ProtocolException.java,
7552 java/net/ServerSocket.java,
7553 java/net/Socket.java,
7554 java/net/SocketAddress.java,
7555 java/net/SocketException.java,
7556 java/net/SocketImpl.java,
7557 java/net/SocketImplFactory.java,
7558 java/net/SocketOptions.java,
7559 java/net/SocketPermission.java,
7560 java/net/SocketTimeoutException.java,
7561 java/net/URI.java,
7562 java/net/URISyntaxException.java,
7563 java/net/URL.java,
7564 java/net/URLClassLoader.java,
7565 java/net/URLConnection.java,
7566 java/net/URLDecoder.java,
7567 java/net/URLEncoder.java,
7568 java/net/URLStreamHandler.java,
7569 java/net/URLStreamHandlerFactory.java,
7570 java/net/UnknownHostException.java,
7571 java/net/UnknownServiceException.java:
7572 Fixed javadocs, coding style and argument names all over.
7573
7574 2004-04-20 Michael Koch <konqueror@gmx.de>
7575
7576 * java/lang/Byte.java,
7577 java/lang/CharSequence.java,
7578 java/lang/ClassLoader.java,
7579 java/lang/Compiler.java,
7580 java/lang/Double.java,
7581 java/lang/Float.java,
7582 java/lang/Integer.java,
7583 java/lang/Long.java,
7584 java/lang/Math.java,
7585 java/lang/Number.java,
7586 java/lang/Package.java,
7587 java/lang/Runtime.java,
7588 java/lang/RuntimePermission.java,
7589 java/lang/SecurityManager.java,
7590 java/lang/Short.java,
7591 java/lang/StringBuffer.java,
7592 java/lang/System.java,
7593 java/lang/ThreadGroup.java,
7594 java/lang/Throwable.java,
7595 java/lang/reflect/InvocationHandler.java,
7596 java/lang/reflect/Proxy.java:
7597 Fixed javadocs, coding style and argument names all over.
7598
7599 2004-04-20 Michael Koch <konqueror@gmx.de>
7600
7601 * java/io/BufferedWriter.java,
7602 java/io/ByteArrayInputStream.java,
7603 java/io/CharArrayWriter.java,
7604 java/io/DataInput.java,
7605 java/io/DataInputStream.java,
7606 java/io/File.java,
7607 java/io/FilterInputStream.java,
7608 java/io/InputStream.java,
7609 java/io/InputStreamReader.java,
7610 java/io/ObjectInputStream.java,
7611 java/io/ObjectStreamClass.java,
7612 java/io/PipedInputStream.java,
7613 java/io/PipedReader.java,
7614 java/io/PushbackInputStream.java,
7615 java/io/PushbackReader.java,
7616 java/io/RandomAccessFile.java,
7617 java/io/SerializablePermission.java,
7618 java/io/StreamTokenizer.java,
7619 java/io/StringWriter.java,
7620 java/io/WriteAbortedException.java,
7621 java/io/Writer.java:
7622 Fixed javadocs all over, rename arguments to match javadocs,
7623 fixed coding style.
7624
7625 2004-04-20 Ingo Proetel <proetel@aicas.com>
7626
7627 * java/awt/FontMetrics.java:
7628 (charsWidth): fixed accumulation of total_width
7629 (getWidth): simple default implementation
7630 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7631 in Rectangle constructor.
7632 * java/awt/image/Raster.java (toString): Added method.
7633 * java/awt/image/SampleModel.java (<init>): Added error cause
7634 information to thrown exception.
7635 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7636 New method.
7637 (setDataElements): New method.
7638 (setPixels): New method.
7639 (toString): New method.
7640
7641 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7642
7643 * java/awt/image/ComponentColorModel.java
7644 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7645 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7646 Mauve tests on this method. Improved documentation.
7647
7648 2004-04-20 Michael Koch <konqueror@gmx.de>
7649
7650 * javax/swing/JLayeredPane.java,
7651 javax/swing/plaf/BorderUIResource.java,
7652 javax/swing/plaf/ComponentUI.java,
7653 javax/swing/undo/CompoundEdit.java,
7654 javax/swing/undo/StateEdit.java:
7655 Fixed HTML tags in javadocs all over.
7656
7657 2004-04-20 Michael Koch <konqueror@gmx.de>
7658
7659 * javax/print/attribute/EnumSyntax.java
7660 (getOffset): Made protected.
7661 * javax/print/attribute/HashAttributeSet.java
7662 (HashAttributeSet): Likewise.
7663 * javax/print/attribute/ResolutionSyntax.java
7664 (getFeedResolution): Fixed typo in exception name.
7665 (getCrossFeedResolution): Likewise.
7666 * javax/print/attribute/SetOfIntegerSyntax.java
7667 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7668 * javax/print/attribute/TextSyntax.java
7669 (TextSyntax): Handle locale correctly.
7670 (hashCode): Calc better hashcode value.
7671 (equals): Fixed @return tag.
7672 (toString): New method.
7673
7674 2004-04-20 Michael Koch <konqueror@gmx.de>
7675
7676 * gnu/java/nio/FileLockImpl.java
7677 (static): Removed, not needed anymore.
7678 * gnu/java/nio/channels/FileChannelImpl.java
7679 (FileChannelImpl): Made final.
7680 (mode): Made private.
7681 (READ, WRITE, APPEND): Made public.
7682 (EXCL, SYNC, DSYNC): Likewise.
7683 (static): Load native JNI library, when needed.
7684 (length): Unused, removed.
7685 (available): Made public.
7686 (implPosition): Throws IOException.
7687 (seek): Likewise.
7688 (implTruncate): Likewise.
7689 (unlock): Likewise.
7690 (lock): Likewise.
7691
7692 2004-04-20 Michael Koch <konqueror@gmx.de>
7693
7694 * java/awt/AWTPermission.java,
7695 java/awt/Component.java,
7696 java/awt/ComponentOrientation.java,,
7697 java/awt/Dialog.java,
7698 java/awt/FontMetrics.java,
7699 java/awt/Graphics.java,
7700 java/awt/datatransfer/DataFlavor.java,
7701 java/beans/Introspector.java,
7702 java/beans/PropertyEditor.java,
7703 java/beans/PropertyEditorManager.java,
7704 java/beans/beancontext/BeanContextServiceProvider.java:
7705 Fixed HTML tags in javadocs all over.
7706
7707 2004-04-20 Mark Wielaard <mark@klomp.org>
7708
7709 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7710 MissingResourceException is thrown.
7711 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7712 null when a MissingResourceException is thrown. Should never happen.
7713
7714 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7715
7716 * java/awt/image/DataBufferShort.java,
7717 java/awt/image/DataBufferFloat.java,
7718 java/awt/image/DataBufferDouble.java,
7719 java/awt/image/PixelInterleavedSampleModel.java: New files.
7720 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7721 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7722
7723 2004-04-20 Michael Koch <konqueror@gmx.de>
7724
7725 * Makefile.am (java_source_files): Added
7726 java/awt/image/DataBufferDouble.java,
7727 java/awt/image/DataBufferFloat.java,
7728 java/awt/image/DataBufferShort.java and
7729 java/awt/image/PixelInterleavedSampleModel.java.
7730 * Makefile.in: Regenerated.
7731
7732 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7733
7734 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7735 undocumented CNI calls.
7736 * include/java-interp.h (_Jv_InterpClass): No longer
7737 extends java.lang.Class.
7738 * java/lang/Class.h (Class): Add new field `aux_info'.
7739 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7740 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7741 Use Class->aux_info instead.
7742 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7743 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7744 Use Class->aux_info instead.
7745 * java/io/natObjectInputStream.cc (allocateObject): Use
7746 _Jv_AllocObject.
7747 * java/lang/natClass.cc (newInstance): Likewise.
7748 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7749 * java/lang/natObject.cc (clone): Likewise.
7750 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7751 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7752 JvAllocObject. Allocate klass->aux_info here for interpreted
7753 class.
7754
7755 2004-04-17 Mark Wielaard <mark@klomp.org>
7756
7757 * javax/swing/JToggleButton.java (ToggleButtonModel):
7758 Make public static inner class.
7759 * javax/swing/JTabbedPane.java (setComponentAt):
7760 Call Page.setComponent().
7761 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7762 (WRAP_TAB_LAYOUT): Make public, value is 0.
7763 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7764 Make private static inner class.
7765
7766 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7767
7768 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7769 arguments to match new signature. Remove FIXME comments.
7770
7771 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7772
7773 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7774 Remove method.
7775 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7776 unused code.
7777
7778 2004-04-02 Olga Rodimina <rodimina@redhat.com>
7779
7780 * Makefile.am: Added new file.
7781 * Makefile.in: Regenerate.
7782 * javax/swing/ImageIcon.java:
7783 (ImageIcon(file)): set description of the icon
7784 to the file name
7785 * javax/swing/JCheckBoxMenuItem.java:
7786 Mostly Implemented. Work in progress.
7787 * javax/swing/JRadioButtonMenuItem.java:
7788 Reimplement constructors to use JToggleButtonModel.
7789 * javax/swing/plaf/basic/BasicIconFactory.java:
7790 (getCheckBoxMenuItemIcon): return check box
7791 icon.
7792 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7793 paint menu item selected only when it is armed and
7794 pressed.
7795
7796 2004-04-02 David Jee <djee@redhat.com>
7797
7798 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7799 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7800 * java/awt/Component.java
7801 (add): Set the parent of the popup as this component.
7802 * java/awt/PopupMenu.java
7803 (addNotify): Create popup menu when peer is null.
7804 (show): Call addNotify() if peer is null.
7805 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7806 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7807 argument for gtk_menu_popup() as zero. This causes the popup menu to
7808 respond to any mouse button.
7809
7810 2004-03-31 Olga Rodimina <rodimina@redhat.com>
7811
7812 * Makefile.am: Added new file.
7813 * Makefile.in: Regenerate.
7814 * javax/swing/JRadioButtonMenuItem.java:
7815 Implemented.
7816 * javax/swing/plaf/basic/BasicIconFactory.java:
7817 (getRadioButtonMenuItemIcon): Return
7818 radio button icon.
7819 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7820 (getPreferredSize): Add size of checkIcon if it
7821 exists.
7822 (installDefaults): Don't initialize checkIcon.
7823 It's value will be set in subclasses.
7824 (uninstallDefaults): remove uninstallation of
7825 checkIcon.
7826 (paint): Moved code to paintMenuItem().
7827 (paintMenuItem): Implemented.
7828 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7829 UI delegate for JRadioButtonMenuItem.
7830
7831 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7832
7833 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7834 Corrected position of the accelerator.
7835
7836 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7837
7838 * Makefile.am: Added new file.
7839 * Makefile.in: Regenerate.
7840 * javax/swing/JMenuItem.java: Partly
7841 implemented. Work in progress
7842 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7843 Changed default value of acceleratorDelimiter.
7844 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7845 New class. Partly implemented.
7846
7847 2004-03-26 Mark Wielaard <mark@klomp.org>
7848
7849 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
7850 (item_activate): Declare label before use.
7851 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7852 (gtkSetFont): Removed unused variable label.
7853 (addExposeFilter): Declare variables before use.
7854 (removeExposeFilter): Likewise.
7855 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
7856 (ok_clicked): Declare str_fileName before use.
7857
7858 2004-03-26 David Jee <djee@redhat.com>
7859
7860 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
7861 (addSeparator): Remove.
7862 * java/awt/Menu.java
7863 (separator): Remove static final MenuItem field.
7864 (separatorLabel): New static final String field.
7865 (addSeparator): Do not use peer method; use add(MenuItem) instead.
7866 Use separatorLabel to denote that it is a separator.
7867 (insertSeparator): Create a new MenuItem with separatorLabel, instead
7868 of reusing the static separator instance, because a MenuItem instance
7869 can't be added more than once without being cloned.
7870 * java/awt/peer/MenuPeer.java
7871 (addSeparator): Remove from interface.
7872
7873 2004-03-26 David Jee <djee@redhat.com>
7874
7875 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7876 (connectSignals): New native method declaration.
7877 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
7878 * java/awt/MenuItem.java
7879 (getActionCommand): Return the label if the action command is not set.
7880 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
7881 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
7882 gtk_menu_shell_append().
7883 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
7884 (item_activate): Fix argument type.
7885 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
7886 signal here.
7887 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
7888 method.
7889 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7890 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
7891 given. Add the menu widget's top-level GtkWindow to the global window
7892 group, so it can grab the pointer.
7893 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
7894 gtk_menu_shell_append().
7895
7896 2004-03-23 Graydon Hoare <graydon@redhat.com>
7897
7898 * java/text/AttributedString.java
7899 (addAttribute): Fix off-by-one.
7900 (getIterator): Likewise.
7901 * java/text/AttributedStringIterator.java
7902 (getRunLimit): Correct logic.
7903 (getRunStart): Likewise.
7904 (getAttribute): Fix inequality.
7905 (getAttributes): Likewise.
7906 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
7907
7908 2004-03-23 Kim Ho <kho@redhat.com>
7909
7910 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7911 (calculateSizes): Return real width and height.
7912
7913 2004-03-23 Kim Ho <kho@redhat.com>
7914
7915 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
7916 (calculateTabRects): Set the selectedRun before
7917 trying to rotate tabs.
7918
7919 2004-03-23 Kim Ho <kho@redhat.com>
7920
7921 * Makefile.am: New file
7922 * Makefile.in: Regenerate
7923 * java/awt/Graphics.java: (drawRect):
7924 Draw to the correct point.
7925 * javax/swing/DefaultSingleSelectionModel.java
7926 (isSelected): Return true if the selected index
7927 is not -1.
7928 * javax/swing/JLabel.java: Do not change mnemonic
7929 index if text is null.
7930 * javax/swing/JProgressBar.java: Use JComponent's
7931 EventListenerList.
7932 * javax/swing/JScrollBar.java: Ditto.
7933 * javax/swing/JSlider.java: Ditto.
7934 * javax/swing/JTabbedPane.java: Reimplement.
7935 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7936 Add defaults for TabbedPane.
7937 * javax/swing/plaf/basic/BasicArrowButton.java:
7938 Implement
7939 * javax/swing/plaf/basic/BasicProgressBarUI.java:
7940 (paintDeterminate): Don't paint String if it's
7941 empty.
7942 (paintIndeterminate): ditto.
7943 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7944 Reimplement.
7945
7946 2004-03-19 Michael Koch <konqueror@gmx.de>
7947
7948 * java/awt/image/AffineTransformOp.java
7949 (AffineTransformOp): Made public.
7950 * javax/swing/JComponent.java
7951 (listenerList): Made protected.
7952 (accessibleContext): Likewise.
7953 * javax/swing/JList.java
7954 (valueChanged): Dont use internal fields of ListSelectionEvent.
7955 * javax/swing/JViewport.java
7956 (getView): Dont use internal fields of Component.
7957 (addImpl): Likewise.
7958 * javax/swing/Timer.java
7959 (isRunning): Made public.
7960 (start): Likewise.
7961 (stop): Likewise.
7962 * javax/swing/UIDefaults.java
7963 (getInt): Made public.
7964 * javax/swing/plaf/basic/BasicListUI.java
7965 (mousePressed): Dont use internal fields of MouseEvent.
7966 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7967 * javax/swing/plaf/basic/BasicScrollBarUI.java
7968 (arrowIcon): Made static.
7969 * javax/swing/plaf/basic/BasicViewportUI.java
7970 (stateChanged): Dont use internal field on ChangeEvent.
7971 * javax/swing/text/JTextComponent.java
7972 (getUI): Call UIManager.getUI().
7973 (updateUI): Use getUI().
7974
7975 2004-03-19 Graydon Hoare <graydon@redhat.com>
7976
7977 * javax/swing/JComponent.java: Turn off double buffer by default.
7978 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
7979 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
7980 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
7981 Use cairo to copy areas.
7982 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
7983 Initialize and set clip region.
7984
7985 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
7986
7987 * java/applet/Applet.java (preferredSize): Override deprecated
7988 variant of getPreferredSize.
7989 (minimumSize): Override deprecated variant of getMinimumSize.
7990
7991 2004-03-15 Olga Rodimina <rodimina@redhat.com>
7992
7993 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
7994 (drawImage(img,xform,bgcolor,obs)): New Method.
7995 Helper function that every drawImage method will
7996 use.
7997 (drawRaster): Added new parameter, bgcolor. All
7998 transparent pixels are changed to bgcolor before
7999 image is drawn.
8000 (drawRenderedImage): Fixed to use changed drawRaster().
8001 (drawImage(image,xform,obs): Fixed to use new helper function
8002 (drawImage(image,op,x,y)): Ditto.
8003 (drawImage (img,x,y,observer)): Ditto.
8004 ((PainterThread) bgcolor): New Field.
8005 ((PainterThread) (setPixels)): Changed all transparent pixels
8006 to bgcolor.
8007 (drawImage(img,x,y,width,height,bgcolor,observer)):
8008 Fixed FIXME - all the transparent pixels are
8009 changed to the specified bgcolor.
8010 (drawImage(img, x, y, width, height, observer): Changed to
8011 use function above.
8012 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8013 Fixed FIXME- changed all transparent pixels to bgcolor.
8014 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8015 Changed to use function above.
8016
8017 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8018
8019 * java/applet/Applet.java (dimensions): New field.
8020 (getDimensions): New method.
8021 (getPreferredSize): Call getDimensions.
8022 (getMinimumSize): Likewise.
8023
8024 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8025
8026 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8027 * jni/classpath/jnilink.c: Likewise.
8028
8029 * java/applet/Applet.java (getPreferredSize): New method.
8030 (getMinimumSize): New method.
8031
8032 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
8033
8034 * prims.cc (_Jv_AllocObject): Remove `size' argument.
8035 (_Jv_AllocObjectNoFinalizer): Likewise.
8036 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
8037 (_Jv_AllocPtrFreeObject): Likewise.
8038 (_Jv_AllocString): Moved from natString.cc. Call collector interface
8039 directly even in the JVMPI case.
8040 * gcj/cni.h (JvAllocObject): Remove `size' argument from
8041 _Jv_AllocObject calls.
8042 * gcj/javaprims.h: Update prototypes.
8043 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
8044 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
8045 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
8046
8047 2004-04-14 Andrew Haley <aph@redhat.com>
8048 Bryce McKinlay <mckinlay@redhat.com>
8049
8050 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
8051 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
8052 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
8053
8054 * testsuite/libjava.lang/InvokeInterface.java: New file.
8055 * testsuite/libjava.lang/InvokeInterface.out: New file.
8056
8057 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
8058
8059 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
8060 modified lookup().
8061 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
8062 StackTraceElement directly.
8063 (newElement): New native helper method to create StackTraceElement
8064 bypassing Java access control.
8065 (createStackTraceElement): Use newElement() instead of directly
8066 calling StackTraceElement's constructor.
8067 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
8068
8069 2004-04-01 Michael Koch <konqueror@gmx.de>
8070
8071 * java/lang/SecurityManager.java
8072 (checkAwtEventQueueAccess): Implemented.
8073
8074 2004-04-01 Gary Benson <gbenson@redhat.com>
8075
8076 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
8077 (_Jv_SearchMethodInClass): Likewise.
8078
8079 2004-03-26 Peter Moon <peterm@miraculum.com>
8080
8081 * java/text/NumberFormat.java: Fix spelling of setCurrency
8082 method.
8083
8084 2004-03-21 Anthony Green <green@redhat.com>
8085
8086 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
8087 recursion when searching for the system ClassLoader.
8088
8089 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
8090
8091 * java/net/ServerSocket.java
8092 (accept): Close the socket when error occured.
8093
8094 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
8095
8096 * java/net/URI.java (parseURI): Added unquoting.
8097 (unquote): New method.
8098 (quoteAuthority): Implemented.
8099 (quote(String,String)): New method.
8100 (quotePath): Implemented.
8101 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8102 (getSchemeSpecificPart): Removed FIXME comment.
8103 (getRawAuthority): Return new rawAuthority field.
8104 (getAuthority): Removed FIXME comment.
8105 (getRawUserInfo): Return new rawUserInfo field.
8106 (getUserInfo): Removed FIXME comment.
8107 (getRawPath): Return new rawPath field.
8108 (getPath): Removed FIXME comment.
8109 (getRawQuery): Return new rawQuery field.
8110 (getQuery): Removed FIXME comment.
8111 (getRawFragment): Return new rawFragment field.
8112 (getFragment): Removed FIXME comment.
8113
8114 2004-03-20 Michael Koch <konqueror@gmx.de>
8115
8116 * java/net/URLConnection.java: Merged copyright year with classpath.
8117
8118 2004-03-20 Norbert Frese <postfach@nfrese.net>
8119
8120 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8121 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8122 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8123 rmi-message.
8124 (getObjectInputStream): Return object reference, throw IOException if null.
8125 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8126 (getObjectOutputStream): Return object reference, throw IOException if null.
8127 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8128 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8129 (UnicastConnectionManager): Throw RemoteException if port is not available.
8130 (getInstance): Throw RemoteException.
8131 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8132 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8133 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8134 Collect Exceptions which are returned by a rmi-call and fix void returns.
8135 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8136 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8137 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8138 (dispatch): Answer ping messages which are sent by other java implementions.
8139 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8140 for every rmi-message and fix void return problems.
8141 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8142 (UnicastServerRef): Throw RemoteException.
8143 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8144 In some situations it is necessary to export a subclass of the class which has the _Stub.
8145 For instance when the class with has the _Stub is abstract.
8146 (findStubSkelClass): New method which looks for the class which has the _Stub.
8147 (getClientHost): Implementated.
8148 * gcc/libjava/java/rmi/server/RemoteServer.java
8149 (getClientHost): Implementated.
8150 * gcc/libjava/Makefile.am (rmi_java_source_files):
8151 Added gnu/java/rmi/server/RMIIncomingThread.java.
8152 * Makefile.in: Regenerated.
8153
8154 2004-03-20 Michael Koch <konqueror@gmx.de>
8155
8156 * java/net/InetAddress.java
8157 (getLocalHostname): Added javadoc.
8158
8159 2004-03-19 Per Bothner <per@bothner.com>
8160
8161 * configure.in: FILE variable overrides FLATFORM when linking
8162 natFileChannelXXX.cc.
8163
8164 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8165 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8166
8167 2004-03-19 Per Bothner <per@bothner.com>
8168
8169 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8170 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8171 * Makefile.am: Update accordingly.
8172 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8173 as aliases for UnicodeLittle and UnicodeBig.
8174
8175 2004-03-20 Mark Wielaard <mark@klomp.org>
8176
8177 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8178 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8179 Don't access ws when it is null.
8180 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8181 Likewise.
8182
8183 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8184
8185 * java/lang/ThreadGroup.java (list): Changed print to println.
8186
8187 2004-03-19 Mark Wielaard <mark@klomp.org>
8188
8189 * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
8190 happy.
8191
8192 2004-02-10 Randolph Chung <tausq@debian.org>
8193
8194 * configure.in: Build java for hppa target.
8195 * configure: Regenerate.
8196 * libjava/configure.host (hppa-*): Add target.
8197 * libjava/sysdeps/pa/lock.h: New file.
8198
8199 2004-03-19 Mark Wielaard <mark@klomp.org>
8200
8201 Reported by Stephen Crawley
8202 * java/io/FilePermission.java (implies): Use String.length() -1 to
8203 access last char of String.
8204
8205 2004-03-19 Michael Koch <konqueror@gmx.de>
8206
8207 * java/awt/image/AffineTransformOp.java
8208 (AffineTransformOp): Made public.
8209 * javax/swing/JComponent.java
8210 (listenerList): Made protected.
8211 (accessibleContext): Likewise.
8212 * javax/swing/JList.java
8213 (valueChanged): Dont use internal fields of ListSelectionEvent.
8214 * javax/swing/JViewport.java
8215 (getView): Dont use internal fields of Component.
8216 (addImpl): Likewise.
8217 * javax/swing/Timer.java
8218 (isRunning): Made public.
8219 (start): Likewise.
8220 (stop): Likewise.
8221 * javax/swing/UIDefaults.java
8222 (getInt): Made public.
8223 * javax/swing/plaf/basic/BasicListUI.java
8224 (mousePressed): Dont use internal fields of MouseEvent.
8225 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8226 * javax/swing/plaf/basic/BasicScrollBarUI.java
8227 (arrowIcon): Made static.
8228 * javax/swing/plaf/basic/BasicViewportUI.java
8229 (stateChanged): Dont use internal field on ChangeEvent.
8230 * javax/swing/text/JTextComponent.java
8231 (getUI): Call UIManager.getUI().
8232 (updateUI): Use getUI().
8233
8234 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8235
8236 * verify.cc: Undef PC.
8237
8238 2004-03-18 Michael Koch <konqueror@gmx.de>
8239
8240 * java/nio/channels/spi/AbstractSelectableChannel.java
8241 (keys): Initialize at declaration.
8242 (locate): keys cant be null.
8243 (add): Removed.
8244 (addSelectionKey): New method.
8245 (removeSelectionKey): New method.
8246 * java/nio/channels/spi/AbstractSelectionKey.java
8247 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8248 * java/nio/channels/spi/AbstractSelector.java
8249 (provider): Javadoc added.
8250 (cancelledKeys): Javadoc added.
8251 (cancelKey): Javadoc added, add key to cancelledKeys.
8252 (deregister): Implemented.
8253
8254 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8255
8256 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8257 MAP_FAILED to void *.
8258
8259 2004-03-12 Graydon Hoare <graydon@redhat.com>
8260
8261 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8262 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8263 * javax/swing/JList.java (ListListener): Revalidate on changes.
8264 * javax/swing/JScrollPane.java: Reimplement.
8265 * javax/swing/JViewport.java: Reimplement.
8266 * javax/swing/ScrollPaneLayout.java: Reimplement.
8267 * javax/swing/ViewportLayout.java: Tidy up.
8268 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8269 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8270 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8271 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8272 backing store only.
8273
8274 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8275
8276 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8277 (window_wm_protocols_filter): New function.
8278 (window_focus_in_cb): Remove function.
8279 (window_focus_out_cb): Likewise.
8280 (window_focus_or_active_state_change_cb): New function.
8281 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8282 (connectSignals): Don't attach handlers to focus-in-event or
8283 focus-out-event signals. Handle notify signal.
8284
8285 2004-03-11 David Jee <djee@redhat.com>
8286
8287 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8288 (gtkSetLabel): New native method declaration.
8289 (setLabel): Use gtkSetLabel.
8290 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8291 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8292
8293 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8294
8295 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8296 black when color argument is null.
8297
8298 2004-03-10 Kim Ho <kho@redhat.com>
8299
8300 * java/awt/Container.java: Remove check
8301 for drag events.
8302
8303 2004-03-10 Kim Ho <kho@redhat.com>
8304
8305 * java/awt/Container.java: (visitChild):
8306 Remove candidate clip. Use the component
8307 clip to intersect.
8308 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8309 (handleEvent): Use the PaintEvent's clip.
8310
8311 2004-03-10 Kim Ho <kho@redhat.com>
8312
8313 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8314 (handleEvent): Don't set the clip for the
8315 Graphics object.
8316
8317 2004-03-09 Graydon Hoare <graydon@redhat.com>
8318
8319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8320 Fix double <-> fixed macros, reset font transform.
8321 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8322 Likewise.
8323
8324 2004-03-09  Kim Ho <kho@redhat.com>
8325
8326 * java/awt/Container.java: (visitChild): Move
8327 the x and y coordinate of the component rectangle
8328 to correct position.
8329 (handleEvent): Forward drag events to the pressed
8330 component.
8331 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8332 Fix comments.
8333 (ArrowButtonListener::mousePressed): Stop the
8334 existing timer.
8335 (mouseDragged): Implement.
8336 (TrackListener::mousePressed): Only react if
8337 the press doesn't occur on the thumb, otherwise
8338 just set the offset.
8339 (TrackListener::mouseReleased): Unset the isAdjusting
8340 value.
8341 (createIncreaseIcon): Switch icon.
8342 (createDecreaseIcon): Switch icon.
8343 (calculatePreferredSize): Use width.
8344 (getThumbBounds): Use the top as the lower value.
8345 (layoutVScrollBar): Switch the button locations.
8346 (paintIncreaseHighlight): Paint correct side of thumb.
8347 (paintDecreaseHighlight): ditto.
8348 (valueForYPosition): Use top as the lower value.
8349 * javax/swing/plaf/basic/BasicSliderUI.java:
8350 Fix comments.
8351 (mouseDragged): Implement.
8352 (mousePressed): Only react when the thumb isn't
8353 pressed, otherwise just set offset.
8354 (mouseReleased): Handle a release of the thumb.
8355 (scrollDueToClickInTrack): Stop the timer first.
8356 * javax/swing/JProgressBar.java:
8357 (setString): Fix change condition.
8358 * javax/swing/JSeparator.java:
8359 Remove println's.
8360
8361 2004-03-08 David Jee <djee@redhat.com>
8362
8363 * java/awt/image/AffineTransformOp.java:
8364 (filter): Use Graphics2D interface instead of directly using the
8365 GdkGraphics2D peer.
8366
8367 2004-03-05 David Jee <djee@redhat.com>
8368
8369 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8370 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8371 * java/awt/Container.java
8372 (acquireComponentForMouseEvent): Fixed.
8373 (handleEvent): Fixed.
8374 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8375 (state_to_awt_mods_with_button_states): New method.
8376 (pre_event_handler): Fixed mouse event generation.
8377
8378 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8379
8380 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8381 (GdkGraphics2D (BufferedImage)): Initialize
8382 pixmap associated with specified BufferedImage.
8383 (setPaint): Changed implementation of Texture
8384 Paint to use AffineTransformOp.
8385 * java/awt/image/AffineTransformOp.java
8386 (createCompatibleDestRaster): Throw RasterFormatException
8387 if resulting width or height of raster is 0.
8388
8389 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8390
8391 * java/awt/image/AffineTransformOp.java:
8392 Removed unnecessary field interpolationType.
8393 Formatted some of the lines to be consistent with
8394 the GNU style.
8395 (AffineTransformOp): Create new RenderingHints
8396 containing specified interpolation type.
8397 (createCompatibleDestImage): Implemented.
8398 (createCompatibleDestRaster): Implemented.
8399 (filter): Implemented.
8400 (getBounds2D(BufferedImage)): Implemented.
8401 (getBounds2D(Raster)): Implemented.
8402 (getInterpolationType): Get interpolation value from
8403 rendering hints.
8404
8405 2004-03-04 David Jee <djee@redhat.com>
8406
8407 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8408 (setFont): Check if child peers are null.
8409
8410 2004-03-04 Graydon Hoare <graydon@redhat.com>
8411
8412 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8413 .libs in -L option.
8414 (libjava_arguments): Add new libraries to argument list.
8415
8416 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8417
8418 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8419 * Makefile.in: Re-generated.
8420 * java/awt/image/AffineTransformOp.java: New Class.
8421
8422 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8423
8424 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8425 (setPaint): Interpret correctly TexturePaint's
8426 anchor rectangle.
8427 (drawImage): Fixed scale factors of the affine
8428 transform.
8429
8430 2004-02-27 David Jee <djee@redhat.com>
8431
8432 * gnu/java/awt/peer/gtk/GdkGraphics.java
8433 (GdkGraphics(Component)): Inherit font from component.
8434 (drawString): Use font style.
8435 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8436 (gtkSetFont): New native method declaration.
8437 (setFont): New method.
8438 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8439 (gtkSetFont): New native method declaration.
8440 (setFont): Call new native method gtkSetFont.
8441 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8442 (setFont): For all child components who do not their fonts set,
8443 set their peers' fonts with this container's font.
8444 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8445 Move all native method declarations to the top for readability.
8446 (gtkSetFont): New native method declaration.
8447 (setFont): New method.
8448 * java/awt/Component.java
8449 (setFont): Invalidate after setting the font.
8450 * java/awt/Container.java
8451 (invalidateTree): New method.
8452 (setFont): Invalidate the container tree after setting the font.
8453 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8454 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8455 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8456 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8457 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8458 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8459 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8460 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8461
8462 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8463
8464 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8465 (updateBufferedImage): New helper function.
8466 Updates BufferedImage in memory if it was changed.
8467 (draw): changed to update BufferedImage in memory after
8468 this drawing operation
8469 (fill): Ditto.
8470 (draw3DRect): Ditto.
8471 (fill3DRect): Ditto.
8472 (clearRect): Ditto.
8473 (drawRaster): Ditto.
8474 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8475 no affine transformation.
8476 (drawGlyphVector): Ditto.
8477
8478 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8479
8480 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8481 (isBufferedImageGraphics): New Helper function.
8482 Returns true if this graphics2d can be used to draw
8483 into buffered image and false otherwise.
8484 (updateImagePixels): New Helper function.
8485 Updates pixels in the BufferedImage.
8486 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8487 (getImagePixels): New function. Returns pixels
8488 of the buffered image associated with
8489 this Graphics2D.
8490
8491 2004-02-26 David Jee <djee@redhat.com>
8492
8493 * java/awt/BorderLayout.java
8494 (layoutContainer): Fix width and height calculations to ensure
8495 that they're non-negative.
8496 * java/awt/Component.java
8497 (setBackground): If c is null, inherit from closest ancestor whose
8498 background color is set.
8499
8500 2004-02-26  Kim Ho  <kho@redhat.com>
8501
8502 * Makefile.am: Add new files.
8503 * Makefile.in: Re-generate.
8504 * javax/swing/JProgressBar.java:
8505 (JProgressBar(int, int int)): Throw
8506 IllegalArgumentException if orientation is
8507 invalid.
8508 (JProgressBar(BoundedRangeModel)): Create
8509 ChangeListener and register it. UpdateUI.
8510 (getChangeListeners): Implement.
8511 (setModel): Reset ChangeListener.
8512 * javax/swing/JScrollBar.java: Implement.
8513 * javax/swing/JSeparator.java: Implement.
8514 * javax/swing/JSlider.java:
8515 (JSlider(int, int, int, int)): Throw
8516 IllegalArgumentException if orientation
8517 is invalid.
8518 (getChangeListeners): Fix method name.
8519 * javax/swing/SwingUtilities.java:
8520 (layoutCompoundLabel): If there is no text,
8521 set the text rectangle dimensions to 0.
8522 * javax/swing/plaf/basic/BasicButtonUI.java:
8523 (paint): If there is no text, don't paint it.
8524 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8525 Implement.
8526 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8527 Implement.
8528 * javax/swing/plaf/basic/BasicSliderUI.java:
8529 (propertyChange): If the model changes, change
8530 the listeners accordingly.
8531
8532 2004-02-25 Graydon Hoare <graydon@redhat.com>
8533
8534 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8535 * javax/swing/JList.java: Reimplement.
8536 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8537 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8538 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8539 * javax/swing/ListModel.java: Javadoc.
8540 * javax/swing/ListSelectionModel.java: Add missing methods.
8541 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8542 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8543 * javax/swing/ListModel.java: Javadoc and corrections.
8544 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8545
8546 2004-02-25 David Jee <djee@redhat.com>
8547
8548 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8549 (GtkFontPeer): Change default size to 12.
8550 * gnu/java/awt/peer/gtk/GtkToolkit.java
8551 (getFontPeer): Change default size to 12.
8552 (getClasspathFontPeer): Likewise. Set default name to "Default".
8553 * java/awt/Font.java
8554 (Font(Map)): Call Font(String,Map).
8555 (Font(String,Map)): If attrs is null, initialize it as an empty
8556 HashMap, which will ensure that the Font will get default attributes.
8557
8558 2004-02-25 David Jee <djee@redhat.com>
8559
8560 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8561 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8562 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8563 * gnu/java/awt/peer/gtk/GtkToolkit.java
8564 (getFontPeer(String,int)): Call the new overload method with size 1.
8565 (getFontPeer(String,int,int)): New method. Overloaded with size
8566 attribute.
8567 (getClasspathFontPeer): Set the size of the font.
8568
8569 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8570
8571 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8572 (bimage): New field.
8573 (GdkGraphics2D): New Constructor. Constructs Graphics
8574 object that can be used to draw into the Buffered Image.
8575 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8576 (GdkGraphicsEnvironment): Fixed to include public
8577 keyword.
8578 (createGraphics): Implemented.
8579 * gnu/java/awt/peer/gtk/GtkToolkit.java
8580 (getLocalGraphicsEnvironment): Implemented.
8581 * java/awt/GraphicsEnvironment.java:
8582 (getLocalGraphicsEnvironment): Implemented.
8583 * java/awt/image/BufferedImage.java:
8584 (createGraphics): Implemented.
8585
8586 2004-02-24 David Jee <djee@redhat.com>
8587
8588 * java/awt/Component.java
8589 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8590 * java/awt/Container.java
8591 (addNotifyContainerChildren): Fix event enabling.
8592
8593 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8594
8595 * Makefile.am: Added
8596 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8597 * Makefile.in: Re-generated.
8598 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8599 New Class.
8600
8601 2004-02-19 Kim Ho <kho@redhat.com>
8602
8603 * Makefile.am: Add BasicProgressBarUI
8604 * Makefile.in: Regenerate.
8605 * javax/swing/JProgressBar.java:
8606 Re-implement.
8607 * javax/swing/plaf/basic/BasicLookAndFeel.java
8608 Add constants for JProgressBar.
8609 * javax/swing/plaf/basic/BasicProgressBarUI.java
8610 Implement.
8611 * javax/swing/plaf/basic/BasicSliderUI.java
8612 Change comments.
8613 (calculateGeometry): New method
8614 (paint): Remove unnecessary size calculations.
8615
8616 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8617
8618 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8619 (drawRaster): Fixed small error that caused
8620 imageToUser transformation to be set incorrectly.
8621 (toString): Implemented.
8622
8623 2004-02-18 David Jee <djee@redhat.com>
8624
8625 * java/awt/CardLayout.java
8626 (addLayoutComponent): Show the first component added as the default.
8627 (removeLayoutComponent): After removing, show the next component.
8628 (gotoComponent): If there is only one component, show it and return.
8629
8630 2004-02-18 Kim Ho <kho@redhat.com>
8631
8632 * javax/swing/JSlider.java: Re-order
8633 modifiers.
8634 * javax/swing/JLabel.java: Re-order
8635 modifiers.
8636 * javax/swing/JComponent.java:
8637 (addPropertyChangeListener):
8638 Implement.
8639 (removePropertyChangeListener):
8640 ditto.
8641 (firePropertyChangeEvent):
8642 ditto.
8643
8644 2004-02-17 David Jee <djee@redhat.com>
8645
8646 * java/awt/Component.java
8647 (show): Dispatch ComponentEvent via system event queue.
8648 (hide): Likewise.
8649 (move): Likewise.
8650 (resize): Likewise.
8651 (reshape): Likewise.
8652 * java/awt/Window.java
8653 (setBoundsCallback): Likewise.
8654
8655 2004-02-17 David Jee <djee@redhat.com>
8656
8657 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8658 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8659 Use gtk_widget_set_size_request() instead of the deprecated
8660 gtk_widget_set_usize().
8661
8662 2004-02-17 Kim Ho <kho@redhat.com>
8663
8664 * javax/swing/JSlider.java: Fix comments and
8665 make property strings constants.
8666 (createStandardLabels): Use the labels
8667 preferred size as bounds.
8668 * javax/swing/plaf/basic/BasicSliderUI.java
8669 Fix comments.
8670 (ScrollHandler::actionPerformed): Don't
8671 calculate the timer stop value. Let the
8672 MouseListeners find the stop location.
8673 (getPreferredHorizontalSize): Re-implement.
8674 (getPreferredVerticalSize): ditto.
8675 (getMinimumHorizontalSize): ditto.
8676 (getMinimumVerticalSize): ditto.
8677 (getPreferredSize): ditto.
8678 (getMinimumSize): ditto.
8679 (getMaximumSize): ditto.
8680 (paintTicks): Use doubles to find the
8681 tick location.
8682 (paintHorizontalLabel):  Use preferredSize
8683 as initial width and height.
8684 (paintVerticalLabel): ditto.
8685
8686 2004-02-17 Kim Ho <kho@redhat.com>
8687
8688 * javax/swing/JLabel.java: Changed
8689 property strings to constants.
8690 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8691 New property.
8692 (setText): Change mnemonic index if
8693 text is too short.
8694 (setDisplayedMnemonicIndex): Fire property
8695 change event.
8696 (getDisplayedMnemonicIndex): Remove check
8697 against short text.
8698
8699 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8700
8701 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8702 (drawImage(img,xform,obs)): Invert xform before
8703 passing the xform to cairo.
8704 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8705 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8706 implemented.
8707 (drawImage (img,x,y,w,h,obs)): Implemented.
8708 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8709 bgcolor,obs)): Partly implemented.
8710 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8711 Implemented.
8712 * java/awt/image/BufferedImage.java:
8713 (copyData): if dest is null, create raster with same
8714 dimensions as the current image.
8715
8716 2004-02-16 Graydon Hoare <graydon@redhat.com>
8717
8718 * javax/swing/plaf/basic/BasicLabelUI.java
8719 (getPreferredSize): Use layoutCL.
8720 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8721 (getPreferredButtonSize): Start with empty view rect, layout using
8722 component's preferred alignment.
8723 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8724 List defaults.
8725
8726 2004-02-16 David Jee <djee@redhat.com>
8727
8728 * java/awt/Component.java
8729 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8730 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8731 (move): Erase old bounds and repaint new bounds. Dispatch
8732 COMPONENT_MOVED ComponentEvent.
8733 (resize): Erase old bounds and repaint new bounds. Dispatch
8734 COMPONENT_RESIZED ComponentEvent.
8735 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8736 ComponentEvents.
8737 * java/awt/Window.java
8738 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8739 ComponentEvents.
8740
8741 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8742
8743 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8744 (setRenderingHint): Added implementation of
8745 Interpolation rendering hints.
8746 (setRenderingHints): Ditto.
8747 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8748 (drawPixels): fixed to allow user to choose type
8749 of filtering that should be used when displaying images.
8750 (cairoSurfaceSetFilter): New method. Sets filter type for
8751 interpolation of pixel values.
8752
8753 2004-02-16 David Jee <djee@redhat.com>
8754
8755 * java/awt/GridBagLayout.java
8756 (calcCellSizes): Rows or columns with zero sizes should still be
8757 considered for extra space distribution.
8758
8759 2004-02-16 Kim Ho <kho@redhat.com>
8760
8761 * javax/swing/JLabel.java: Re-implement.
8762 * javax/swing/plaf/basic/BasicLabelUI.java
8763 Re-implement.
8764 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8765 Added constant.
8766
8767 2004-02-16  Kim Ho  <kho@redhat.com>
8768
8769 * javax/swing/JSlider.java: Fix indentation and comments.
8770 (setModel): Remove null check to conform with Sun's.
8771 (setOrientation): Throw exception if not
8772 HORIZONTAL or VERTICAL.
8773 (getInverted): Use private variable instead of
8774 ComponentOrientation.
8775 (setInverted): ditto.
8776 * javax/swing/plaf/basic/BasicSliderUI.java:
8777 Fix indentation and comments.
8778 (propertyChange): Remove check for inverted slider, handle
8779 in main paint.
8780 (getMinimumSize): Return preferred size.
8781 (getMaximumSize): ditto.
8782 (calculateFocusRect): Don't relocate rectangle.
8783 (drawInverted): Return XOR of the slider's inversion and
8784 the component's orientation.
8785 (paint): Update leftToRightCache
8786
8787 2004-02-13 David Jee <djee@redhat.com>
8788
8789 * java/awt/GridBagLayout.java
8790 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
8791 code to helper methods.
8792 (sortBySpan): New helper method.
8793 (distributeSizeAndWeight): Likewise.
8794 (calcCellWeights): Likewise.
8795 (calcCellSizes): Add comments.
8796
8797 2004-02-13 David Jee <djee@redhat.com>
8798
8799 * java/awt/Component.java
8800 (show): Only do something if component is invisible at the moment.
8801 (hide): Only do something if component is visible at the moment.
8802 (reshape): If lightweight, erase old bounds and repaint new bounds.
8803
8804 2004-02-13  Kim Ho  <kho@redhat.com>
8805
8806 * Makefile.am: Updated for new file.
8807 * Makefile.in: Regenerated.
8808 * javax/swing/JSlider.java: Reimplement.
8809 * javax/swing/SwingUtilities.java
8810 (layoutCompoundLabel): Use icon height
8811 instead of width.
8812 (paintComponent): Implement.
8813 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8814 Add JSlider defaults.
8815 * javax/swing/plaf/basic/BasicSliderUI.java:
8816 Implement. New file.
8817
8818 2004-03-17 Michael Koch <konqueror@gmx.de>
8819
8820 * gnu/java/net/PlainDatagramSocketImpl.java
8821 (RECEIVE_LOCK): New member field.
8822 (SEND_LOCK): New member field.
8823 (send0): New method.
8824 (send): Synchronize on SEND_LOCK.
8825 (receive0): New method.
8826 (receive): Synchronize on RECEIVE_LOCK.
8827 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
8828 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
8829 gnu/java/net/natPlainDatagramSocketImplWin32.cc
8830 (send0): Renamed from send.
8831 (receive0): Renamed from receive.
8832 2004-03-17 Michael Koch <konqueror@gmx.de>
8833
8834 * gnu/java/net/natPlainSocketImplPosix.cc
8835 (write): Just call write(jbyteArray, offset, len).
8836 (read): Just call read(jbyteArray, offset, len).
8837
8838 2004-03-16 Michael Koch <konqueror@gmx.de>
8839
8840 * javax/swing/JTabbedPane.java
8841 (serialVersionUID): New field.
8842
8843 2004-03-16 Norbert Frese <postfach@nfrese.net>
8844
8845 * java/net/InetAddress.java
8846 (getByName): Handle hostname == "" case.
8847
8848 2004-03-16 Dalibor Topic <robilad@kaffe.org>
8849
8850 Reported by: Adam Heath <doogie@debian.org>
8851 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
8852 class loader.
8853
8854 2004-03-15 Michael Koch <konqueror@gmx.de>
8855
8856 * java/util/Locale.java: Reverting my last patch
8857 and add a comment why the original version was okay.
8858
8859 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
8860
8861 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
8862 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
8863 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
8864 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
8865
8866 2004-03-12 Michael Koch <konqueror@gmx.de>
8867
8868 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
8869
8870 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8871
8872 * java/net/URI.java (toURL): Implemented.
8873
8874 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8875
8876 * java/net/URI.java
8877 (URI_REGEXP) updated to contain scheme specific part.
8878 (SCHEME_SPEC_PART_GROUP) new constant.
8879 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
8880 updated to make room for SCHEME_SPEC_PART_GROUP.
8881 (parseURI) parse scheme specific part.
8882 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
8883 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
8884 getQuery, getFragment) implemented.
8885
8886 2004-03-12 Dalibor Topic <robilad@kaffe.org>
8887
8888 * libraries/javalib/java/net/URI.java
8889 partially implemented using java.util.regex.
8890 (URI_REGEXP) new constant. Used to parse URIs.
8891 (SCHEME_GROUP) new constant representing index of scheme group
8892 in parsed URI.
8893 (AUTHORITY_GROUP) new constant representing index of authority
8894 group in parsed URI.
8895 (PATH_GROUP) new constant representing index of path group in
8896 parsed URI.
8897 (QUERY_GROUP) new constant representing index of query group in
8898 parsed URI.
8899 (FRAGMENT_GROUP) new constant representing index of fragment
8900 group in parsed URI.
8901 (getURIGroup) new static utility method.
8902 (parseURI) implemented.
8903 (quote) stub for new static utility method.
8904 (quoteAuthority) stub for new static utility method.
8905 (quoteHost) stub for new static utility method.
8906 (quotePath) stub for new static utility method.
8907 (quoteUserInfo) stub for new static utility method.
8908 (URI) implemented.
8909 (create) don't throw URISyntaxException. Implemented.
8910 (toString) implemented.
8911
8912 2004-03-12 Michael Koch <konqueror@gmx.de>
8913
8914 * java/net/HttpURLConnection.java
8915 (getResponseCode): Fix another typo in javadoc.
8916
8917 2004-03-11 Michael Koch <konqueror@gmx.de>
8918
8919 * java/util/logging/Level.java
8920 (parse): Use String.equals() instead of ==.
8921
8922 2004-03-11 Michael Koch <konqueror@gmx.de>
8923
8924 * gnu/java/net/protocol/jar/Connection.java
8925 (getContentLength): New method.
8926
8927 2004-03-11 Michael Koch <konqueror@gmx.de>
8928
8929 * gnu/java/net/PlainSocketImpl.java:
8930 Reformated to merge better with classpath's version.
8931
8932 2004-03-11 Michael Koch <konqueror@gmx.de>
8933
8934 * java/util/Locale.java
8935 (getISO3Language): Use String.equals() instead of ==.
8936 (getISO3Country): Likewise.
8937
8938 2004-03-11 Dalibor Topic <robilad@kaffe.org>
8939
8940 * java/text/AttributedString.java
8941 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
8942 Use HashMap instead of Hashtable since value can be null, and
8943 you can not store a null value in a Hashtable.
8944
8945 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8946
8947 * java/text/AttributedStringIterator.java
8948 (getAllAttributesKey): Return only keys concerned
8949 by the current iterator.
8950 (getAttributes): Use strict inequality for
8951 end_index.
8952
8953 2004-03-11 Michael Koch <konqueror@gmx.de>
8954
8955 * java/net/HttpURLConnection.java:
8956 Fixed typo in javadoc.
8957
8958 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8959
8960 * java/io/BufferedInputStream.java (marktarget): New field for max
8961 mark limit.
8962 (CHUNKSIZE): New constant for incremental mark buffer allocation.
8963 (mark): Use new fields.
8964 (read): Likewise.
8965 (read(byte[],int,int)): Likewise.
8966 (skip): Likewise.
8967 (refill): Likewise.
8968
8969 2004-03-11 Mark Wielaard <mark@klomp.org>
8970
8971 * java/beans/BeanDescriptor.java (BeanDescriptor):
8972 Set the FeatureDescriptor programmatic name.
8973
8974 2004-03-11 Michael Koch <konqueror@gmx.de>
8975
8976 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
8977 This file was was just copied form java/io/natFileDescriptorEcos.cc
8978 and never changed to compile correctly.
8979
8980 2004-03-11 Michael Koch <konqueror@gmx.de>
8981
8982 * gnu/java/nio/PipeImpl.java
8983 (SourceChannelImpl): Made final.
8984 (read): Implemented.
8985 (SinkChannelImpl): Made final.
8986 (write): Implemented.
8987
8988 2004-03-11 Michael Koch <konqueror@gmx.de>
8989
8990 * gnu/java/net/PlainDatagramSocketImpl.java:
8991 Reformated to match classpath's version more.
8992
8993 2004-03-11 Michael Koch <konqueror@gmx.de>
8994
8995 * gnu/java/awt/peer/ClasspathFontPeer.java:
8996 Fixed javadoc to be correct xhtml.
8997 * gnu/java/awt/peer/gtk/GtkArgList.java
8998 (add): Use Boolean.valueOf() instead of new Boolean().
8999
9000 2004-03-09 Michael Koch <konqueror@gmx.de>
9001
9002 * java/lang/Thread.java
9003 (runnable): Moved around.
9004 (daemon): Renamed from daemon_flag.
9005 (contextClassLoader): Renamed from context_class_loader.
9006 (Thread): Reordered constructors.
9007 (activeCount): Use group directly.
9008 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
9009 (holdsLock): Reworked javadoc.
9010 (setDaemon): Reworked.
9011 * java/lang/natThread.cc
9012 (destroy): Removed.
9013
9014 2004-03-08 Anthony Green <green@redhat.com>
9015
9016 * Makefile.am: Build property resource files into libgcj.
9017 * Makefile.in: Rebuilt.
9018 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
9019 java/util/regex/PatternSyntaxException.java,
9020 gnu/regexp/CharIndexed.java,
9021 gnu/regexp/CharIndexedCharArray.java,
9022 gnu/regexp/CharIndexedInputStream.java,
9023 gnu/regexp/CharIndexedReader.java,
9024 gnu/regexp/CharIndexedString.java,
9025 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
9026 gnu/regexp/REException.java,
9027 gnu/regexp/REFilterInputStream.java,
9028 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
9029 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
9030 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
9031 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
9032 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
9033 gnu/regexp/RETokenLookAhead.java,
9034 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
9035 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
9036 gnu/regexp/RETokenStart.java,
9037 gnu/regexp/RETokenWordBoundary.java,
9038 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
9039
9040 2004-03-03 Per Bothner <per@bothner.com>
9041
9042 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
9043 Optimize when argument is a FileChannelImpl.
9044 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
9045 New native methods.
9046 * java/nio/channels/natChannels.cc: New file for new native methods.
9047 * Makefile.am: Update accordingly.
9048
9049 2004-03-02 Jan Hubicka <jh@suse.cz>
9050
9051 * configure.host: Pass -fno-omit-frame-pointer for i386.
9052 * configure.in: Likewise.
9053 * configure: Regenerate.
9054
9055 2004-03-01 Per Bothner <per@bothner.com>
9056
9057 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
9058
9059 2004-02-29 Per Bothner <per@bothner.com>
9060
9061 * java/nio/channels/FileChannelImpl.java: Moved to package
9062 gnu/java/nio/channels, since we need to refer to it from java.io.
9063 * java/nio/channels/natFileChannelImpl.cc: Removed file.
9064 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
9065 from java/nio/channels. Don't depend on FileDescriptor.
9066 (in, out, err): New static fields.
9067 (mode): New field.
9068 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
9069 from FileDescriptor.
9070 (by): Removed MappedByteBuffer field.
9071 (map): New working implementation.
9072 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
9073 some code "ported" from natFileDescriptoPosix.cc.
9074 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
9075 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
9076 * java/io/FileDescriptor.java: Implement on top of FileChannel.
9077 Remove native methods.
9078 * Makefile.am, configure.in: Updated accordingly.
9079
9080 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
9081 (ch): New FileChannelImpl field. Update constructor to match.
9082 (releaseImpl): Remove native method. Instead ...
9083 (release): Call unlock on channel.
9084 * gnu/java/nio/natFileLockImpl.cc: Removed file.
9085
9086 * java/io/natFileDescriptorEcos.cc: Remove file.
9087 * java/io/natFileDescriptorPosix.cc: Remove file.
9088 * java/io/natFileDescriptorWin32.cc: Remove file.
9089 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
9090 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
9091 (<init>(FileChannelImpl)): New package-private constructor.
9092 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
9093 (available, close, read, skip): Implement using FileChannelImpl.
9094 (getFD): Allocate FileDescriptor if needed.
9095 (getChannel): Is now trivial.
9096 * java/io/FileOutputStream.java: Corresponding changes.
9097 * java/io/RandomAccessFile.java: Corresponding changes.
9098
9099 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9100 unmapImpl): New dummy methods, to be overridden by subclass.
9101 (finalize, isLoaded, load, force): New methods.
9102 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9103 Now works, at least for read mapping.
9104
9105 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9106 streams using FileChannelImpl, not FileDescriptor.
9107 * java/lang/natWin32Process.cc (startProcess): Likewise.
9108
9109 2004-02-28 Michael Koch <konqueror@gmx.de>
9110
9111 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9112 wrong code.
9113
9114 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9115
9116 * java/io/ObjectInputStream.java
9117 (readClassDescriptor): Keep elements of the mapping non null.
9118 (checkTypeConsistency): New method.
9119 (readFields): Fixed main loop and base logic. Small reindentation.
9120 * java/io/ObjectStreamField.java
9121 (lookupField): New method to update the field reference.
9122 (checkFieldType): New method.
9123 * java/io/ObjectStreamClass.java
9124 (setClass, setFields): Call lookupField when building the field
9125 database. Check the real field type.
9126
9127 2004-02-28 Michael Koch <konqueror@gmx.de>
9128
9129 * java/nio/ByteOrder.java
9130 (nativeOrder): Use equals() to compare strings.
9131
9132 2004-02-26 Michael Koch <konqueror@gmx.de>
9133
9134 * gnu/java/nio/FileLockImpl.java
9135 (finalize): Made protected.
9136 * java/nio/channels/FileChannel.java
9137 (MapMode.READ_ONLY): Made final.
9138 (MapMode.READ_WRITE): Made final.
9139 (MapMode.PRIVATE): Made final.
9140 * java/nio/channels/SocketChannel.java
9141 (open): Simplified code.
9142 * java/nio/channels/spi/AbstractSelectableChannel.java
9143 (registered): Unused, removed.
9144 (keyFor): Check channel is open, only locate key
9145 and not add a new one.
9146 (register): Don't delete attachments.
9147
9148 2004-02-26 Michael Koch <konqueror@gmx.de>
9149
9150 * gnu/java/awt/ComponentDataBlitOp.java
9151 (INSTANCE): Made final.
9152 * gnu/java/awt/image/ImageDecoder.java:
9153 Reworked imports.
9154 (cm): Unused, removed.
9155
9156 2004-02-26 Michael Koch <konqueror@gmx.de>
9157
9158 * gnu/java/nio/DatagramChannelImpl.java
9159 (send): Check if target address is resolved.
9160
9161 2004-02-26 Michael Koch <konqueror@gmx.de>
9162
9163 * Makefile.am: Generate and install headers for inner classes in
9164 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9165 * Makefile.in: Regenerated.
9166
9167 2004-02-24 Anthony Green <green@redhat.com>
9168
9169 * java/lang/StringBuffer.java: No need to NULL out remainder of
9170 buffer since ensureCapacity_unsynchronized will have done this for
9171 us.
9172
9173 2004-02-20 Michael Koch <konqueror@gmx.de>
9174
9175 * gnu/java/net/protocol/jar/Handler.java
9176 (): Removed unneeded check for file != null. java.net.URL.getFile()
9177 returns an empty string but never null.
9178
9179 2004-02-20 Michael Koch <konqueror@gmx.de>
9180
9181 * gnu/gcj/convert/Convert.java
9182 (main): Use equals() to compare strings.
9183
9184 2004-02-20 Michael Koch <konqueror@gmx.de>
9185
9186 * javax/swing/AbstractButton.java: Made several constants final.
9187 (getRolloverSelectedIcon): Made public.
9188 (getSelectedIcon): Made public.
9189
9190 2004-02-16 Per Bothner <per@bothner.com>
9191
9192 * java/nio/CharBufferImpl.java: Inline super constructor.
9193 * java/nio/DoubleBufferImpl.java: Likewise.
9194 * java/nio/FloatBufferImpl.java: Likewise.
9195 * java/nio/IntBufferImpl.java: Likewise.
9196 * java/nio/LongBufferImpl.java: Likewise.
9197 * java/nio/ShortBufferImpl.java: Likewise.
9198 * java/nio/CharBuffer.java: Remove unused constructor.
9199 * java/nio/DoubleBuffer.java: Likewise.
9200 * java/nio/FloatBuffer.java: Likewise.
9201 * java/nio/IntBuffer.java: Likewise.
9202 * java/nio/LongBuffer.java: Likewise.
9203 * java/nio/ShortBuffer.java: Likewise.
9204 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9205 Fix buggy call to super constructor.
9206 * java/nio/DoubleViewBufferImpl.java: Likewise.
9207 * java/nio/FloatViewBufferImpl.java: Likewise.
9208 * java/nio/IntViewBufferImpl.java: Likewise.
9209 * java/nio/LongViewBufferImpl.java: Likewise.
9210 * java/nio/ShortViewBufferImpl.java: Likewise.
9211
9212 * java/nio/ByteBuffer.java (endian): Make non-private so other
9213 java.nio classes can inherit it.
9214 (<init>): Don't bother clearing array_offset.
9215 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9216 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9217 Remove redundant test.
9218
9219 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9220 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9221 Use new XxxViewBufferImpl constructors.
9222 * java/nio/MappedByteBufferImpl.java: Likewise.
9223 * java/nio/DirectByteBufferImpl.java: Likewise.
9224
9225 * java/nio/ByteBufferImpl.java: Remove one constructor.
9226 Inline super in remaining constructor.
9227 * java/nio/ByteBuffer.java: Remove unused constructor.
9228
9229 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9230
9231 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9232 * java/nio/DirectByteBufferImpl.java (owner): New field.
9233 (offset): Remove unused field.
9234 (<init>): Modify one and add another constructor. Change callers.
9235 (allocateDirect): Removed - not used.
9236 (getImpl, putImpl): Make static and pass address explicitly,
9237 to make them useful for MappedByteBufferImpl.
9238 (get, put): Check for underflow. Modify for new getImpl.
9239 (getImpl): New native method where target is array.
9240 (get(byte[],int,int)): Use the above.
9241 (adjustAddress): New static native method.
9242 (slice, duplicate, asReadOnly): New implementations.
9243 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9244 adjustAddress): New or updated native methods.
9245
9246 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9247
9248 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9249 overflow of fieldmapping.
9250
9251 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9252
9253 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9254
9255 2004-02-14 Per Bothner <per@bothner.com>
9256
9257 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9258 Set closed before calling implCloseChannel, as in the spec.
9259
9260 2004-02-09 Graydon Hoare <graydon@redhat.com>
9261
9262 * javax/swing/ToggleButtonModel.java: Remove dead class.
9263 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9264 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9265 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9266 * Makefile.am: Update for new and removed files.
9267 * Makefile.in: Regenerate.
9268
9269 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9270 * javax/swing/AbstractButton.java
9271 (AbstractButton): Initialize fields correctly in ctor.
9272 * javax/swing/JCheckbox.java
9273 (JCheckBox): Override painting flags.
9274 * javax/swing/DefaultButtonModel.java: Conform to sun.
9275 * javax/swing/JComponent.java (paint): Fill with background color
9276 if available.
9277 (processComponentKeyEvent)
9278 (processFocusEvent)
9279 (processKeyEvent)
9280 (processMouseMotionEvent): Remove event-consuming empty methods.
9281 (getUIClassID): Return "ComponentUI" not "JComponent"
9282 * javax/swing/JFrame.java: Remove some debugging chatter.
9283 (JFrame): Subscribe to window events.
9284 * javax/swing/JRadioButton.java
9285 (JRadioButton): Override painting flags.
9286 * javax/swing/JRootPane.java
9287 (JRootPane): Set background from UIDefaults.
9288 * javax/swing/JToggleButton.java
9289 (ToggleButtonModel): New inner class.
9290 (JToggleButton): Override layout alighment.
9291 * javax/swing/SwingUtilities.java:
9292 (getLocalBounds): Return width and height, not x and y.
9293 (calculateInnerArea): Use local bounds, not bounds.
9294 (layoutCompoundLabel): Provide overridden form.
9295 (layoutCompoundLabel): Correct bugs.
9296 * javax/swing/UIDefaults.java: Correct comment.
9297 * javax/swing/plaf/basic/BasicButtonUI.java:
9298 Move most logic into defaults, external listener.
9299 (paintIcon): Implement icon painting.
9300 (paint): Fix state painting to conform to changes in model.
9301 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9302 Remove most dead/wrong methods.
9303 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9304 * javax/swing/plaf/basic/BasicIconFactory.java:
9305 (DummyIcon): New class.
9306 (getMenuItemCheckIcon)
9307 (getMenuItemArrowIcon)
9308 (getMenuArrowIcon)
9309 (getCheckBoxMenuItemIcon)
9310 (getRadioButtonMenuItemIcon)
9311 (createEmptyFrameIcon): Return DummyIcons, not null.
9312 (getCheckBoxIcon): Implement an icon that looks like sun's.
9313 (getRadioButtonIcon): Implement an icon that looks like sun's.
9314 * javax/swing/plaf/basic/BasicLookAndFeel.java
9315 (initComponentDefaults): Fix impossible values, add some missing.
9316 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9317 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9318 Remove most dead/wrong methods.
9319 (icon): New field.
9320 (getDefaultIcon): New method.
9321 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9322 Remove most dead/wrong methods.
9323 * javax/swing/plaf/metal/MetalLookAndFeel.java
9324 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9325 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9326 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9327 Implement "clearing" as drawing, when on pixmap drawables.
9328
9329 * javax/swing/JButton.java (getUIClassID):
9330 * javax/swing/JCheckBox.java (getUIClassID):
9331 * javax/swing/JEditorPane.java (getUIClassID):
9332 * javax/swing/JLabel.java (getUIClassID):
9333 * javax/swing/JList.java (getUIClassID):
9334 * javax/swing/JOptionPane.java (getUIClassID):
9335 * javax/swing/JPanel.java (getUIClassID):
9336 * javax/swing/JPasswordField.java (uiClassID):
9337 * javax/swing/JRadioButton.java (getUIClassID):
9338 * javax/swing/JRootPane.java (getUIClassID):
9339 * javax/swing/JScrollPane.java (getUIClassID):
9340 * javax/swing/JTabbedPane.java (getUIClassID):
9341 * javax/swing/JToggleButton.java (getUIClassID):
9342 * javax/swing/JTree.java (getUIClassID):
9343 * javax/swing/JViewport.java (getUIClassID):
9344 * javax/swing/text/JTextComponent.java (getUIClassID):
9345 Return "fooUI" not "Jfoo"
9346
9347 2004-02-11 Michael Koch <konqueror@gmx.de>
9348
9349 * java/net/DatagramSocket.java
9350 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9351 Boolean object.
9352 (setBroadcast): Likewise.
9353 * java/net/MulticastSocket.java
9354 (setLoopbackMode): Likewise.
9355 * java/net/ServerSocket.java
9356 (setReuseAddress): Likewise.
9357 * java/net/Socket.java
9358 (setTcpNoDelay): Likewise.
9359 (setSoLinger): Likewise.
9360 (setOOBInline): Likewise.
9361 (setKeepAlive): Likewise.
9362 (setReuseAddress): Likewise.
9363 * java/net/URLConnection.java
9364 (setContentHandler): Replace == with equals().
9365 * java/net/URLStreamHandler.java
9366 (hostSEquals): Fix checking host addresses.
9367 (toExternalForm): Dont check protocol for null. We know already its
9368 not null.
9369
9370 2004-02-10 David Jee <djee@redhat.com>
9371
9372 * java/awt/BorderLayout.java
9373 (calcCompSize): Invisible components get zero dimensions.
9374 * java/awt/Button.java
9375 (setLabel): Set actionCommand.
9376 * java/awt/Component.java
9377 (show): Invalidate component and parent container.
9378 (hide): Likewise.
9379
9380 2004-02-10 David Jee <djee@redhat.com>
9381
9382 * java/awt/GridBagLayout.java
9383 (GridBagLayout): New private field, internalcomptable.
9384 (lookupInternalConstraints): New method.
9385 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9386 (GetLayoutInfo): Reimplement.
9387 (calcCellSizes): Ignore rows/columns with size 0.
9388
9389 2004-02-10 Michael Koch <konqueror@gmx.de>
9390
9391 * gnu/java/awt/EmbeddedWindow.java
9392 (setHandle): Use java.awt.Component.getPeer() instead of
9393 java.awt.Component.peer directly.
9394
9395 2004-02-10 David Jee <djee@redhat.com>
9396
9397 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9398 (gtkSetLabel): New native method definition.
9399 (setLabel): Use gtkSetLabel.
9400 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9401 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9402
9403 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9404
9405 * include/powerpc-signal.h: Revert 2004-01-21 change.
9406 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9407 from syscall for ppc32 versions.
9408
9409 2004-02-08 Per Bothner <per@bothner.com>
9410
9411 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9412 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9413 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9414 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9415 Pass ByteOrder parameter to most methods, since the underlying
9416 ByteBuffer's order isn't always what we should use.
9417 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9418 * java/nio/DirectByteBufferImpl.java: Likewise.
9419 Use ByteBufferHelper methods.
9420 * java/nio/MappedByteBufferImpl.java: Likewise.
9421 (compact): Use shiftDown.
9422 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9423 (get, put): Use ByteBufferHelper.
9424 (compact): Use new shiftDown method.
9425 (duplicate(boolean)): New helper method.
9426 (duplicate, asReadOnlyBuffer): Use it.
9427 (order): Return endian field.
9428 * java/nio/DoubleViewBufferImpl.java: Likewise.
9429 * java/nio/FloatViewBufferImpl.java: Likewise.
9430 * java/nio/IntViewBufferImpl.java: Likewise.
9431 * java/nio/LongViewBufferImpl.java: Likewise.
9432 * java/nio/ShortViewBufferImpl.java: Likewise.
9433 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9434 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9435 (compact): Re-implement using shiftDown.
9436
9437 2004-02-08 Andreas Jaeger <aj@suse.de>
9438
9439 * include/x86_64-signal.h: Fix typo.
9440
9441 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9442
9443 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9444 qualifier to _regs.
9445 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9446
9447 2004-02-06 Michael Koch <konqueror@gmx.de>
9448
9449 * java/io/ObjectInputStream.java
9450 (currentClassLoader): Reverted to old version of this method.
9451
9452 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9453
9454 * java/io/ObjectInputStream.java: Made all calls
9455 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9456 use cached info from ObjectStreamClass. (readClassDescriptor):
9457 Cache more information in ObjectStreamClass. (processResolution,
9458 readFields): Use cached info from ObjectStreamClass.
9459 (newObject): Throw exception instead of returning null for failure.
9460 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9461 setCharField, setDoubleField, setFloatField, setIntField,
9462 setLongField, setShortField, setObjectField, readObjectParams):
9463 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9464 check.
9465 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9466 (setClass): Added call to cacheMethods() (findMethod): New method.
9467 (cacheMethods): New method. (ObjectStreamClass): Added call to
9468 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9469 AccessController.doPrivileged to invoke setAccessible.
9470 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9471 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9472 New fields.
9473 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9474 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9475 isPrimitive): Made safe for cases where type == null.
9476 (setBooleanField, setByteField, setCharField, setShortField,
9477 setIntField, setLongField, setFloatField, setDoubleField,
9478 setObjectField): New methods.
9479
9480 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9481
9482 * java/awt/Component.java (getFont): Return a default font
9483 instead of null.
9484
9485 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9486 (Scrollbar (int, int, int, int, int)): Make default page
9487 increment 10.
9488 (setValues): Only call peer.setValues if one of the values has
9489 changed.
9490 (generateName): New method.
9491 (getUniqueLong): New method.
9492 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9493 (range_scrollbar): Remove structure.
9494 (post_adjustment_event): Remove function.
9495 (post_change_event): Accept jobject argument.
9496 (create): Cast jints to gdoubles. Round scrollbar values to the
9497 nearest integer. Clamp min, max and value settings.
9498 (connectJObject): Connect hook to widget->window.
9499 (connectSignals): Remove range_scrollbar structure variables.
9500 Remove "move-slider" connection. Pass global peer reference to
9501 "value-changed" callback.
9502 (setLineIncrement): Cast jint value to gdouble.
9503 (setPageIncrement): Likewise.
9504 (setValues): Likewise. Clamp min, max and value settings.
9505
9506 2004-02-05 Michael Koch <konqueror@gmx.de>
9507
9508 * javax/swing/AbstractCellEditor.java
9509 (getCellEditorValue): Removed.
9510 * javax/swing/Box.java: Reformated.
9511 (serialVersionUID): New field.
9512 * javax/swing/ButtonGroup.java:
9513 Removed some weird whitespace.
9514 * javax/swing/CellEditor.java: Reformated.
9515 * javax/swing/CellRendererPane.java
9516 (serialVersionUID): New field.
9517 (AccessibleCellRendererPaneserialVersionUID): New field.
9518 * javax/swing/DefaultListModel.java
9519 (serialVersionUID): New field.
9520 * javax/swing/JEditorPane.java
9521 (serialVersionUID): New field.
9522 (setPage): Throws IOException.
9523 (addHyperlinkListener): Implemented.
9524 (removeHyperlinkListener): Implemented.
9525 (getHyperlinkListener): New method.
9526 * javax/swing/JFileChooser.java
9527 (serialVersionUID): New field.
9528 (AccessibleJFileChooser.serialVersionUID): New field.
9529 (addActionListener): Implemented.
9530 (removeActionListener): Implemented.
9531 (getActionListeners): New method.
9532 * javax/swing/JFormattedTextField.java
9533 (serialVersionUID): New field.
9534 (AbstractFormatter.serialVersionUID): New field.
9535 (clone): Throws CloneNotSupportedException
9536 (setEditValid): Add missing argument.
9537 (stringToValue): Throws ParseExcpetion.
9538 (valueToString): Throws ParseException.
9539 (commitEdit): Throws ParseException.
9540 * javax/swing/JLabel.java
9541 (serialVersionUID): New field.
9542 * javax/swing/JList.java
9543 (serialVersionUID): New field.
9544 (addListSelectionListener): Reformated.
9545 (removeListSelectionListener): Reformated.
9546 (getListSelectionListeners): New method.
9547 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9548 Reformated.
9549 (serialVersionUID): New field.
9550 * javax/swing/table/AbstractTableModel.java
9551 (getValueAt): Removed.
9552 (getColumnCount): Removed.
9553 (getRowCount): Removed.
9554
9555 2004-02-05 Michael Koch <konqueror@gmx.de>
9556
9557 * java/awt/datatransfer/DataFlavor.java
9558 (imageFlavor): Javadoc added.
9559 (javaJVMLocalObjectType): Fixed.
9560
9561 2004-02-05 Michael Koch <konqueror@gmx.de>
9562
9563 * java/lang/Thread.java
9564 (Thread): Reordered.
9565 (setContextClassLoader): Fixed javadoc comment.
9566 (setPriority): Reordered.
9567 (yield): Reordered.
9568 (initialize_native): Reordered.
9569 (gen_name): Reordered.
9570
9571 2004-02-05 Michael Koch <konqueror@gmx.de>
9572
9573 * java/lang/Thread.java: Reordered fields, reformated much code,
9574 no functional changes, some variables renamed, javadoc comments
9575 merged.
9576
9577 2004-02-05 Michael Koch <konqueror@gmx.de>
9578
9579 * java/util/zip/Deflater.java,
9580 java/util/zip/DeflaterOutputStream.java,
9581 java/util/zip/GZIPInputStream.java:
9582 Reformated and javadoc comments merged from classpath.
9583
9584 2004-02-05 Michael Koch <konqueror@gmx.de>
9585
9586 * gnu/java/nio/NIOServerSocket.java
9587 (impl): Unused, removed.
9588 * gnu/java/nio/SocketChannelImpl.java
9589 (finnishConnect): Don't throw NoConnectionPendingException if not
9590 connected or no connection pending.
9591
9592 2004-02-02 Graydon Hoare <graydon@redhat.com>
9593
9594 * javax/swing/SwingUtilities.java: Many new functions.
9595 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9596 * javax/swing/basic/BasicGraphicsUtils.java
9597 (getPreferredButtonSize): Start layout from top-left corner.
9598
9599 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9600
9601 * java/awt/geom/AffineTransform.java:
9602 Corrected comments on the field definitions for
9603 m11 and m10.
9604 (shear): Fixed few errors that caused shear
9605 transformation to be performed incorrectly.
9606 (createInverse): Fixed to return correct
9607 inverse of the given matrix.
9608
9609 2004-02-03 Tom Tromey <tromey@redhat.com>
9610
9611 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9612 PATH or LD_LIBRARY_PATH is not set in parent environment.
9613
9614 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9615
9616 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9617 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9618 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9619 java/awt/Component.java, java/awt/Container.java,
9620 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9621 java/awt/LayoutManager2.java, java/awt/List.java,
9622 java/awt/Menu.java, java/awt/MenuBar.java,
9623 java/awt/MenuItem.java, java/awt/Polygon.java,
9624 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9625 java/awt/Scrollbar.java, java/awt/TextArea.java,
9626 java/awt/TextField.java,
9627 java/awt/image/renderable/RenderContext.java,
9628 javax/swing/JApplet.java: Fix handling of alias methods, where a
9629 method has been deprecated in favour of a new one with the same
9630 funtion but a different name. Put the method implementation in
9631 the deprecated method and have the new method call the
9632 deprecated one. Make all other code call the new method.
9633
9634 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9635
9636 * gnu/java/nio/DatagramChannelImpl.java
9637 (inChannelOperation): New field.
9638 (isInChannelOperation): New accessor.
9639 (setInChannelOperation): New modifier.
9640 (receive): Use capacity() - position() of destination
9641 buffer instead of remaining(). Set and reset our "in
9642 channel operation indicator" before and after delegating
9643 the receive to our datagram socket. Removed testing code.
9644 Update destination buffer's current position if it is
9645 backed by a byte array (hasArray() is true).
9646 (send): Set and reset our "in channel operation indicator"
9647 before and after delegating the send to our datagram socket.
9648 Removed testing code. Update source buffer's current position
9649 if it is backed by a byte array (hasArray() is true).
9650 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9651 Use capacity() - position() of destination buffer instead
9652 of remaining().
9653 * java/net/DatagramSocket.java (receive): Don't throw an
9654 IllegalBlockingModeException if we have a non-blocking
9655 channel which initiated this operation.
9656 (send): Likewise.
9657
9658 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9659
9660 * configure.in: Add pkgconfig check for glib and gthread.
9661 * configure: Regenerate.
9662
9663 2004-02-01 Michael Koch <konqueror@gmx.de>
9664
9665 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9666 arguments.
9667 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9668 * verify.cc (debug_print): Mark 'fmt' unused.
9669
9670 2004-01-30 Michael Koch <konqueror@gmx.de>
9671
9672 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9673 * configure: Regenerated.
9674 * glib-2.0.m4: Removed.
9675 * gtk-2.0.m4: Removed.
9676 * libart.m4: Removed.
9677 * pkg.m4: New file.
9678
9679 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9680
9681 * gnu/java/net/PlainSocketImpl.java
9682 (inChannelOperation): New field.
9683 (isInChannelOperation): New accessor.
9684 (setInChannelOperation): New modifier.
9685 * gnu/java/nio/ServerSocketChannelImpl.java
9686 (accept): Set and reset our server socket's PlainSocketImpl's
9687 "in channel operation" indicator before and after delegating
9688 the accept to our server socket.
9689 * gnu/java/nio/SocketChannelImpl.java
9690 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9691 operation" indicator before and after delegating the operation to
9692 our socket.
9693 (read): Likewise.
9694 (write): Likewise.
9695 * java/net/ServerSocket.java (implAccept): Don't throw an
9696 IllegalBlockingModeException if we have a non-blocking
9697 channel which initiated this accept operation.
9698 * java/net/Socket.java (connect): Don't throw an
9699 IllegalBlockingModeException if we have a non-blocking
9700 channel which initiated this connect operation.
9701 * java/nio/channels/spi/AbstractSelectableChannel.java
9702 (configureBlocking): Only call implConfigureBlocking() if
9703 the desired blocking mode is different from our current one.
9704
9705 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9706
9707 * java/io/BufferedReader.java (sbuf): New field.
9708 (readLine): Use String.valueOf instead of new String() as per
9709 Per Bothner's suggestion. Use instance sbuf field instead of a
9710 local StringBuffer instance.
9711 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9712 caller's buffer to refill().
9713 (read(void)): Pass our internal work buffer to refill if our
9714 input queue is empty.
9715 (refill): Changed return type to int. Use the specified buffer
9716 instead of our work buffer as per Bryce McKinlay's suggestion.
9717 Return the number of characters read or -1 for EOF.
9718
9719 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9720
9721 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9722
9723 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9724
9725 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9726 * Makefile.in: Re-generated.
9727 * gnu/awt/xlib/XFontPeer.java: New file.
9728 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9729 (setClip): Commented out debug printout.
9730 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9731 (getFontPeer): Return XFontPeer.
9732 (getLocalGraphicsEnvironment): New method.
9733 (getClasspathFontPeer): New method.
9734 (createFont): New method.
9735
9736 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9737
9738 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9739 return null.
9740
9741 2004-01-29 Kim Ho <kho@redhat.com>
9742
9743 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9744 (gtkLayoutSetVisible): New method
9745 (setMenuBar): Hide layout before setting MenuBar
9746 and reshow it after.
9747 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9748 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9749
9750 2004-01-28 Michael Koch <konqueror@gmx.de>
9751
9752 * gnu/java/lang/ClassHelper.java
9753 (getPackagePortion): Removed.
9754
9755 2004-01-28 Michael Koch <konqueror@gmx.de>
9756
9757 * javax/swing/JComponent.java
9758 (listenerList): Initalize globally.
9759 (ancestor_list): Removed.
9760 (veto_list): Removed.
9761 (change_list): Removed.
9762 (get_veto_list): Removed.
9763 (get_change_list): Removed.
9764 (get_ancestor_list): Removed.
9765 (removeAncestorListener): Reimplemented.
9766 (removePropertyChangeListener): Likewise.
9767 (removeVetoableChangeListener): Likewise.
9768 (addAncestorListener): Likewise.
9769 (addPropertyChangeListener): Likewise.
9770 (addVetoableChangeListener): Likewise.
9771 (getListeners): New method.
9772 (getAncestorListeners): Likewise.
9773 (getVetoableChangeListeners): Likewise.
9774 (fireVetoableChange): Throws PropertyVetoException.
9775 * javax/swing/JEditorPane.java
9776 (JEditorPane): Throws IOException.
9777
9778 2004-01-28 David Jee <djee@redhat.com>
9779
9780 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9781 (create): Set the default foreground color to
9782 java.awt.SystemColor.windowText.
9783
9784 2004-01-27 Michael Koch <konqueror@gmx.de>
9785
9786 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
9787 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9788 Reindented to merge with classpath.
9789
9790 2004-01-27 David Jee <djee@redhat.com>
9791
9792 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9793 (addExposeFilter): Handle GtkFramePeer separately.
9794 (removeExposeFilter): Likewise.
9795
9796 2004-01-27 Michael Koch <konqueror@gmx.de>
9797
9798 * gnu/java/net/protocol/http/Connection.java
9799 (getOutputStream): Fixed typo.
9800
9801 2004-01-27 Michael Koch <konqueror@gmx.de>
9802
9803 * java/lang/Class.java
9804 (getConstructor): Removed SecurityException from throws clause.
9805 (_getConstructors): Likewise.
9806 (getConstructors): Likewise.
9807 (getDeclaredConstructor): Likewise.
9808 (getDeclaredClasses): Likewise.
9809 (getDeclaredConstructors): Likewise.
9810 (getDeclaredField): Likewise.
9811 (getDeclaredMethod): Likewise.
9812 (getDeclaredMethods): Likewise.
9813 (getField): Likewise.
9814 (getMethod): Likewise.
9815 (getMethods): Likewise.
9816
9817 2004-01-27 Kim Ho <kho@redhat.com>
9818
9819 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9820 (removeMenuBarPeer): Remove MenuBarPeer argument.
9821 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
9822 (dispose): Call native method.
9823 * java/awt/Frame.java (setMenuBar): Create and remove
9824 MenuBar peers only if the Frame has a peer.
9825 (addNotify): Create the MenuBar peer if one exists.
9826 (removeNotify): Remove MenuBar peer if one exists.
9827 * java/awt/Menu.java: Fix imports.
9828 (addNotify): Don't use full class name.
9829 (removeNotify): Call removeNotify on all children.
9830 * java/awt/MenuBar.java (removeNotify): Call
9831 removeNotify on all children.
9832 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9833 (removeMenuBarPeer): Remove MenuBarPeer argument.
9834 Iterate through children to find the Frame's MenuBar.
9835 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
9836 New file.
9837 (dispose): Remove references to the MenuComponent.
9838
9839 2004-01-27 Michael Koch <konqueror@gmx.de>
9840
9841 * javax/swing/AbstractCellEditor.java: Reformated.
9842 * javax/swing/DefaultListSelectionModel.java
9843 (listenerList): Made protected.
9844 (addListSelectionListener): Javadoc added.
9845 (removeListSelectionListener): Likewise.
9846 (getListeners): Likewise.
9847 (getListSelectionListeners): Likewise.
9848 * javax/swing/JComboBox.java: Merged copyright year.
9849 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
9850
9851 2004-01-26 Andrew Haley <aph@redhat.com>
9852
9853 * javax/swing/table/JTableHeader.java: Extend JComponent
9854
9855 2004-01-26 Kim Ho <kho@redhat.com>
9856
9857 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
9858 Fix spacing.
9859
9860 2004-01-26 Kim Ho <kho@redhat.com>
9861
9862 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
9863 method.
9864 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
9865 height and let the Layout Managers readjust anything that
9866 needs to move.
9867 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9868 (moveLayout): New method. Shift everything in the Gtk
9869 layout in the Y direction by an offset.
9870
9871 2004-01-26 David Jee <djee@redhat.com>
9872
9873 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
9874 (handleEvent): Implemented. Handles PaintEvents.
9875 (paint): Implemented. Use GTK native methods to queue updates
9876 for this heavyweight peer.
9877 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
9878 (handleEvent): Removed.
9879 * java/awt/Component.java
9880 (paint): Implemented. Explictly paint the heavyweight peer.
9881 (update): Clear the background for heavyweight components.
9882 (paintAll): No need to call peer.paint() anymore.
9883 (processEvent): Don't process PaintEvents here. It's now done in
9884 the peer's handleEvent().
9885 (processPaintEvent): Removed.
9886 * java/awt/Container.java
9887 (paint): No need to call super.paint(). Visit heavyweight
9888 children as well.
9889 (update): Don't clear the background here. It's done in
9890 Component.update().
9891 (visitChildren): Added check to not recurse into Containers.
9892 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9893 (filter_expose_event_handler): New method. Filter unwanted
9894 expose events while painting heavyweight peers.
9895 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
9896 New method. Connect filter and block pre_event_handler.
9897 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
9898 New method. Disconnect filter and unblock pre_event_handler.
9899 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
9900 New method. Invalidate and update given area.
9901 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
9902 (pre_event_handler): Add checks for unwanted expose events.
9903
9904 2004-01-26 David Jee <djee@redhat.com>
9905
9906 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9907 (find_bg_color_widget): For GtkButton, return its child.
9908
9909 2004-01-26 Kim Ho <kho@redhat.com>
9910
9911 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
9912 private.
9913 (setMenuBar): Grab MenuBar height and change insets.
9914 (setBounds): Account for MenuBar height.
9915 (postInsetsChangedEvent): Ditto.
9916 (postSizeAllocateEvent): Remove.
9917 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9918 (menubar_resize_cb): Remove
9919 (setMenuBarPeer): Remove callback.
9920 (getMenuBarHeight): Use size requisition instead of
9921 allocation.
9922
9923 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9924
9925 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
9926 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
9927 when peer is null.
9928 (setColumns): Remove FIXME -- peer will retrieve number of
9929 columns by calling getColumns.
9930 (setRows): Likewise for number of rows.
9931 (next_text_number): New field.
9932 (paramString): Fix param string.
9933 (generateName): New method.
9934 (getUniqueLong): New method.
9935
9936 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9937
9938 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
9939 image observer of image loading status.
9940 (getImage (String)): Start image production.
9941 (getImage (URL)): Likewise.
9942
9943 2004-01-25 Michael Koch <konqueror@gmx.de>
9944
9945 * java/lang/Class.java: Imports reworked, reformated.
9946 (Class): Javadoc added.
9947 (forName): Likewise.
9948 (getClasses): Likewise.
9949 (getClassLoader): Likewise.
9950 (getComponentType): Likewise.
9951 (getConstructor): Likewise.
9952 (getConstructors): Likewise.
9953 (getDeclaredConstructor): Likewise.
9954 (getDeclaredClasses): Likewise.
9955 (getDeclaredConstructors): Likewise.
9956 (getDeclaredField): Likewise.
9957 (getDeclaredMethod): Likewise.
9958 (getDeclaredMethods): Likewise.
9959 (getDeclaringClass): Likewise.
9960 (getField): Likewise.
9961 (getInterfaces): Likewise.
9962 (getMethod): Likewise.
9963 (getMethods): Likewise.
9964 (getModifiers): Likewise.
9965 (getName): Likewise.
9966 (getResource): Likewise.
9967 (getResourceAsStream): Likewise.
9968 (getSigners): Likewise.
9969 (setSigners): Likewise.
9970 (getSuperclass): Likewise.
9971 (isArray): Likewise.
9972 (isAssignableFrom): Likewise.
9973 (isInstance): Likewise.
9974 (isInterface): Likewise.
9975 (isPrimitive): Likewise.
9976 (newInstance): Likewise.
9977 (getProtectionDomain): Likewise.
9978 (toString): Likewise.
9979 (Class): Moved.
9980 (initializeClass): Likewise.
9981 (finalize): Likewise.
9982
9983 2004-01-24 Michael Koch <konqueror@gmx.de>
9984
9985 * gnu/java/net/protocol/jar/Connection.java
9986 (hdrHash): Removed.
9987 (hdrVec): Removed.
9988 (gotHeaders): Removed.
9989 (getHeaderField): Removed.
9990 (getHeaderFields): Removed.
9991 (getHeaderFieldKey): Removed.
9992 (getKey): Removed.
9993 (getField): Removed.
9994 (getHeaders): Removed.
9995
9996 2004-01-24 Michael Koch <konqueror@gmx.de>
9997
9998 * Makefile.am: Added library version to gtk peer lib.
9999 * Makefile.in: Regenerated.
10000
10001 2004-01-24 Michael Koch <konqueror@gmx.de>
10002
10003 * java/util/zip/InflaterInputStream.java: Merged class documentation
10004 with classpath.
10005
10006 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10007
10008 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
10009 header. For __powerpc64__ provide the default-signal.h definitions
10010 for now.
10011 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
10012 instead of the dummy definitions.
10013 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
10014 (powerpc64*-*): Remove with_libffi_default.
10015 Only add -mminimal-toc for 64-bit compilations.
10016 * configure.in: Use powerpc-signal.h on powerpc64 as well.
10017 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
10018 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
10019 * configure: Rebuilt.
10020
10021 2004-01-23 Michael Koch <konqueror@gmx.de>
10022
10023 * gnu/java/nio/FileLockImpl.java: Compile fixes.
10024
10025 2004-01-23 Michael Koch <konqueror@gmx.de>
10026
10027 * java/lang/VMClassLoader.java: Reworked imports.
10028
10029 2004-01-23 Michael Koch <konqueror@gmx.de>
10030
10031 * javax/swing/AbstractAction.java: Reformated.
10032
10033 2004-01-23 Michael Koch <konqueror@gmx.de>
10034
10035 * java/text/CollationElementIterator.java:
10036 (setText): New method.
10037
10038 2004-01-23 Michael Koch <konqueror@gmx.de>
10039
10040 * gnu/java/nio/FileLockImpl.java:
10041 Fixed filename in copyright.
10042 (released): Removed.
10043 (finalize): New method.
10044 * gnu/java/nio/natFileLockImpl.cc
10045 (releaseImpl): Implemented.
10046 * java/nio/channels/FileChannelImpl.java:
10047 Reworked imports.
10048 (lock): Implemented.
10049 (lockImpl): New method.
10050 (tryLock): Implemented.
10051 (tryLockImpl): New method.
10052 * java/nio/channels/natFileChannelImpl.cc
10053 (lockImpl): New method.
10054 (tryLockImpl): New method.
10055
10056 2004-01-23 Michael Koch <konqueror@gmx.de>
10057
10058 * java/io/FileDescriptor.java
10059 (lock): New method.
10060 (tryLock): New method.
10061 (unlock): New method.
10062 * java/io/natFileDescriptorEcos.cc
10063 (lock): New method.
10064 (tryLock): New method.
10065 (unlock): New method.
10066 * java/io/natFileDescriptorPosix.cc
10067 (lock): New method.
10068 (tryLock): New method.
10069 (unlock): New method.
10070 * java/io/natFileDescriptorWin32.cc
10071 (lock): New method.
10072 (tryLock): New method.
10073 (unlock): New method.
10074
10075 2004-01-23 Michael Koch <konqueror@gmx.de>
10076
10077 * java/io/FileDescriptor.java
10078 (sync): Moved around, added javadoc.
10079 (valid): Likewise.
10080 (open): Likewise.
10081 (write): Likewise.
10082 (close): Likewise.
10083 (setLength): Likewise.
10084 (seek): Likewise.
10085 (getLength): Likewise.
10086 (getFilePointer): Likewise.
10087 (read): Likewise.
10088 (available): Likewise.
10089 (finalize): Likewise.
10090
10091 2004-01-23 Michael Koch <konqueror@gmx.de>
10092
10093 * javax/swing/AbstractAction.java: Reformated.
10094 (getPropertyChangeListeners): New method.
10095 * javax/swing/AbstractCellEditor.java: Reformated.
10096 (getCellEditorListeners): New method.
10097 * javax/swing/DefaultListSelectionModel.java
10098 (listenerList): New field.
10099 (listeners): Removed.
10100 (get_listeners): Removed.
10101 (addListSelectionListener): Rewritten.
10102 (removeListSelectionListener): Rewritten.
10103 (getListSelectionListeners): New method.
10104 (getListeners): New method.
10105 * javax/swing/JComboBox.java: Imports reworked.
10106 (addActionListener): Implemented.
10107 (removeActionListener): Implemented.
10108 (addItemListener): Implemented.
10109 (removeItemListener): Implemented.
10110 (addPopupMenuListener): Implemented.
10111 (removePopupMenuListener): Implemented.
10112 (getActionListeners): New method.
10113 (getItemListeners): New method.
10114 (getPopupMenuListeners): New method.
10115
10116 2004-01-23 Michael Koch <konqueror@gmx.de>
10117
10118 * gnu/java/net/protocol/http/Connection.java
10119 (connect): Don't initialize bufferedOutputStream if not needed.
10120 (sendRequest): Set property for content length if content is present.
10121 Write content only if present.
10122 (getOutputStream): Check if already connected, dont connect,
10123 initalize bufferedOutputStream if needed.
10124
10125 2004-01-23 Michael Koch <konqueror@gmx.de>
10126
10127 * java/io/FileDescriptor.java
10128 (in, out, err): Added javadoc.
10129 (static): Merged loading code.
10130 (fd, position): Moved around.
10131
10132 2004-01-23 Michael Koch <konqueror@gmx.de>
10133
10134 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10135 New file.
10136
10137 2004-01-23 Michael Koch <konqueror@gmx.de>
10138
10139 * java/lang/Class.java,
10140 java/lang/Object.java,
10141 java/lang/Thread.java: Merged copyright with classpath.
10142
10143 2004-01-23 Michael Koch <konqueror@gmx.de>
10144
10145 * java/io/FileDescriptor.java: Merged copyright with classpath to
10146 start merging this class.
10147
10148 2004-01-22 Tom Tromey <tromey@redhat.com>
10149
10150 PR libgcj/13107:
10151 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10152 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10153 * testsuite/libjava.lang/pr13107_3.java: New file.
10154 * testsuite/libjava.lang/pr13107_3.out: New file.
10155 * testsuite/libjava.lang/pr13107_2.java: New file.
10156 * testsuite/libjava.lang/pr13107_2.out: New file.
10157 * testsuite/libjava.lang/pr13107.java: New file.
10158 * testsuite/libjava.lang/pr13107.out: New file.
10159 * verify.cc (jsr_ptrs): Removed.
10160 (entry_points): Likewise.
10161 (struct subr_info): Likewise.
10162 (struct subr_entry_info): Likewise.
10163 (type_val::unused_by_subroutine_type): Likewise.
10164 (type::merge): Don't handle unused_by_subroutine_type.
10165 (type::print): Likewise.
10166 (state::flags): Removed.
10167 (state::subroutine): Likewise.
10168 (state::seen_subrs): Likewise.
10169 (state::NO_STACK): Likewise.
10170 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10171 (state): Updated all methods.
10172 (state::clean_subrs): Removed.
10173 (state::state): Removed `ret_semantics' flag.
10174 (state::copy): Likewise.
10175 (state::add_subr): Removed.
10176 (state::enter_subroutine): Likewise.
10177 (type::set_return_address): New method.
10178 (handle_jsr_insn): Set return address on the type. Always
10179 invalidate PC after call.
10180 (check_nonrecursive_call): Removed.
10181 (~_Jv_BytecodeVerifier): Updated.
10182 (branch_prepass): Removed special handling of jsr.
10183 (note_branch_target): Likewise.
10184 (get_subroutine): Removed.
10185 (state::merge): Don't merge subroutines and don't handle
10186 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10187 (state::note_variable): Removed.
10188 (state::is_unmerged_ret_state): Likewise.
10189 (state::print): Updated.
10190 (set_variable): Likewise.
10191 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10192 and jsr_semantics arguments. Updated for new reverification
10193 list.
10194 (pop_jump): Rewrote.
10195 (construct_primitive_array_type): Updated.
10196 (state::next): Removed.
10197 (INVALID_STATE): New define.
10198 (state::INVALID): Removed.
10199 (state::NO_NEXT): New value.
10200 (state::pc, state::next): New fields.
10201 (state::get_pc): New method.
10202 (next_verify_pc): Removed.
10203 (next_verify_state): New field.
10204 (verify_instructions_0): Always check for falling off end.
10205 (linked): New type.
10206 (linked_utf8): Removed.
10207 (states): Changed type.
10208 (type::state_mergeable_p): New method.
10209 (state::state_mergeable_p): Likewise.
10210 (handle_ret_insn): Removed most code.
10211 (state::reverify): New method.
10212 (add_new_state): Likewise.
10213 (state::set_pc): Likewise.
10214
10215 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10216
10217 PR java/13733
10218 * testsuite/libjava.compile/PR13733.java: New file.
10219 * testsuite/libjava.compile/PR13733.xfail: New file.
10220
10221 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10222 Michael Koch <konqueror@gmx.de>
10223
10224 * javax/swing/table/DefaultTableCellRenderer.java
10225 (DefaultTableCellRenderer): Added javadoc for the class and for
10226 the constructor, Border instance, create an EmptyBorder.
10227 (UIResource): Removed the comment at the end of the class
10228 (setForeground): New method.
10229 (setBackground): New method.
10230 (updateUI): New method.
10231 (getTableCellRendererComponent): Rewritten with the help of
10232 dvholten and Stephane Meslin-Weber.
10233 (validate): New method.
10234 (repaint): New method.
10235 (firePropertyChange): New method.
10236 (setValue): New method.
10237
10238 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10239
10240 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10241 (connectJObject): Replace printf calls with g_assert statements.
10242 Move property-notify-event signal connection to ...
10243 (connectSignals): Connect property-notify-event signal. Iterate
10244 through the vbox's children to find layout.
10245
10246 2004-01-22 Graydon Hoare <graydon@redhat.com>
10247
10248 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10249 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10250 Predicate static initialization on GtkToolkit.useGraphics2D().
10251 * java/awt/Component.java (processPaintEvent): Consume event.
10252 * javax/swing/AbstractButton.java: Reimplement, document.
10253 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10254 * javax/swing/JComponent.java (paint): Use double buffer.
10255 (listenerList): Enable member.
10256 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10257 * javax/swing/JToggleButton.java
10258 (JToggleButton): Modify model constructor.
10259 * javax/swing/SwingUtilities.java
10260 (layoutCompoundLabel): Adjust arithmetic.
10261 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10262 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10263 (getPreferredButtonSize): Include margins in calculation.
10264 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10265 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10266 Receive up events from subordinate layout component.
10267
10268 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10269
10270 * java/awt/Component.java (show): Set visible to true before
10271 showing the peer.
10272
10273 2004-01-21 Kim Ho <kho@redhat.com>
10274
10275 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10276 Fix comments.
10277 (removeMenuBarPeer): Make package private.
10278 (setMenuBarPeer): Make package private.
10279 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10280 (menubar_resize_cb): Mark attributes unused.
10281 (getMenuBarHeight): ditto.
10282
10283 2004-01-21 David Jee <djee@redhat.com>
10284
10285 * java/awt/Container.java
10286 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10287 dispatching MOUSE_ENTERED event twice. Translate the point for
10288 the mouse event target before dispatching the event.
10289
10290 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10291
10292 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10293 lib_org_w3c_dom_la_LDFLAGS): New.
10294 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10295 * Makefile.in: Rebuilt.
10296
10297 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10298
10299 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10300 Calculate proper offsets for heavyweight components packed in
10301 lightweight containers.
10302
10303 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10304 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10305 (native create): Add width parameter.
10306 (create): Calculate text entry width based on current font's
10307 metrics and number of columns. Set TextField's font if not
10308 already set. Call native create.
10309 (gtkEntryGetBorderWidth): New native method.
10310 (gtkEntryGetSize): Remove method.
10311 (getMinimumSize): Call minimumSize.
10312 (getPreferredSize): Call preferredSize.
10313 (minimumSize): Calculate minimum size based on backing
10314 GtkEntry's borders, font metrics and number of columns.
10315 (preferredSize): Likewise for preferred size.
10316 (get_border_width): New static function.
10317
10318 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10319 Override GtkWindowPeer's setResizable method to account for menu
10320 bar height when setting the frame's size.
10321
10322 2004-01-19 Matthias Klose <doko@debian.org>
10323
10324 * libtool-version: Increased `current' to 6.
10325
10326 2004-01-19 Kim Ho <kho@redhat.com>
10327
10328 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10329 (connectJObject): Iterate through the vbox's children to find layout.
10330
10331 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10332
10333 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10334 isDispatchThread method to replace wrong test condition.
10335
10336 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10337
10338 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10339 events to the queue out of order by acquiring locks in the proper
10340 order and not by releasing one before acquiring the other.
10341
10342 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10343
10344 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10345 visible so that dialog can be reused.
10346
10347 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10348
10349 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10350 events may be handled by any queue in the stack.
10351
10352 2004-01-19 Kim Ho <kho@redhat.com>
10353
10354 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10355 MenuBarPeer parameter.
10356 (removeMenuBarPeer): New native method.
10357 (setMenuBar): Call remove if menu bar is null. Adjust insets
10358 appropriately.
10359 (postSizeAllocateEvent): New method. Called when menu bar size is
10360 allocated. Adjust insets and redo layout.
10361 (GtkFramePeer): Set menu bar during frame creation.
10362 (postConfigureEvent): Adjust position and size to accomodate
10363 menu bar.
10364 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10365 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10366 (addNotify): Create the peer if it doesn't exist and call addNotify
10367 for the menu's items.
10368 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10369 * java/awt/MenuItem.java (addNotify): Create the peer if it
10370 doesn't exist.
10371 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10372 (removeMenuBarPeer): New method. Remove menu bar on the current
10373 frame.
10374 (setMenuBarPeer): Add the menu bar to the current frame and the
10375 callback for size-allocate events on the menu bar.
10376 (getMenuBarHeight): Add menu bar parameter.
10377 (menubar_resize_cb): New callback method for postSizeAllocate events.
10378
10379 Also: Fix indentation on last ChangeLog entry.
10380
10381 2004-01-16 Kim Ho <kho@redhat.com>
10382
10383 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10384 (gtkWidgetGetDimensions): Remove.
10385 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10386 (gtkWidgetGetDimensions): Remove.
10387
10388 2004-01-16 Tom Tromey <tromey@redhat.com>
10389
10390 * java/awt/Container.java: Typo and indentation fixes.
10391
10392 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10393 * java/lang/natVMClassLoader.cc: ...here. New file.
10394 * Makefile.in: Rebuilt.
10395 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10396
10397 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10398
10399 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10400 Discard GDK_ENTER_NOTIFY related to ungrabs.
10401
10402 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10403
10404 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10405 is called for an intermediate queue.
10406
10407 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10408
10409 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10410 (window_property_changed_cb): Set id_set.
10411
10412 2004-01-16 Kim Ho <kho@redhat.com>
10413
10414 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10415 it is a FileDialog and has dimensions of 0 by 0, then the initial
10416 size is set to size request plus insets.
10417 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10418 (gtkWidgetGetDimensions): Override method.
10419 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10420 (gtkWidgetGetDimensions): Override method. Returns size request plus
10421 insets.
10422
10423 2004-01-16 Andrew Haley <aph@redhat.com>
10424
10425 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10426 * sysdep/i386/locks.h: Likewise.
10427
10428 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10429
10430 * java/awt/EventDispatchThread.java (run): Stop running when
10431 interrupted.
10432 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10433 Reset the queue after transferring its contents.
10434 (push): Start a new dispatch thread if none is running.
10435
10436 2004-01-16  Olga Rodimina <rodimina@redhat.com>
10437
10438 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10439 (doPolygon): set fill rule of polygon to
10440 WIND_EVEN_ODD by default.
10441
10442 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10443
10444 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10445 Implemented rendering hints related methods.
10446 (getDefaultHints): New helper method. Returns
10447 default rendering hints.
10448 (walkPath): changed to normalize path if
10449 the KEY_STROKE_CONTROL key is in "normalize" mode.
10450 (draw3DRect): changed coordinates of rectangle by +0.5
10451 if in "normalize" mode.
10452
10453 2004-01-15 Tom Tromey <tromey@redhat.com>
10454
10455 * Makefile.in: Rebuilt.
10456 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10457 (%.lo: %.java) Filter out StackTrace.lo.
10458
10459 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10460
10461 * configure.in: Add in AC_PREREQ(2.13)
10462 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10463 FIXME comment.
10464
10465 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10466 Tom Tromey <tromey@redhat.com>
10467
10468 PR libgcj/12001:
10469 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10470 array to superclass.
10471 (init): Changed interface; add URLs here.
10472 (initialize): New static method.
10473 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10474 (_Jv_RunMain): ... not here.
10475
10476 2004-01-14 Michael Koch <konqueror@gmx.de>
10477
10478 * java/text/MessageFormat.java:
10479 Added descriptions to exceptions.
10480 This fixes PR libgcj/2429.
10481
10482 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10483
10484 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10485 (push): Make sure push is performed at the top of the thread stack.
10486
10487 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10488
10489 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10490 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10491 (native create): Add width and height parameters. Set text
10492 view's size request according to new parameters.
10493 (create): Calculate text view size based on current font's
10494 metrics and number of rows and columns. Set TextArea's font if
10495 not already set. Call native create.
10496 (getMinimumSize): Call minimumSize.
10497 (getPreferredSize): Call preferredSize.
10498 (getHScrollbarHeight): New method.
10499 (getVScrollbarWidth): New method.
10500 (minimumSize): Calculate minimum size based on scrollbar
10501 visibility, scrollbar sizes, font metrics and number of rows and
10502 columns.
10503 (preferredSize): Likewise for preferred size.
10504 (gtkTextGetSize): Remove method.
10505
10506 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10507
10508 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10509 (initializeInsets): Remove method.
10510 (GtkComponentPeer): Initialize insets field. Remove call to
10511 initializeInsets.
10512 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10513 Remove method.
10514 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10515 Remove method.
10516 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10517 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10518 (latestInsets): Remove field.
10519 (native create): Add insets parameter. Call
10520 window_get_frame_extents. Set the window's default size and
10521 size request based on its frame extents.
10522 (create): Initialize insets.
10523 (postInsetsChangedEvent): New method.
10524 (postConfigureEvent): Remove parameters top, left, bottom,
10525 right. Remove insets-related logic.
10526 (connectJObject): Handle property-notify-event.
10527 (window_get_frame_extents, request_frame_extents,
10528 property_notify_predicate, window_property_changed_cb): New
10529 static functions.
10530 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10531 (pre_event_handler): Remove insets-related logic for configure
10532 events.
10533 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10534 Update postConfigureEvent signature.
10535
10536 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10537
10538 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10539 to handle Window "Closing" events.
10540
10541 2004-01-13  David Jee  <djee@redhat.com>
10542
10543 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10544 (setBackground): New method. Children with no explicitly-set
10545 background will be repainted with the parent container's new
10546 background color.
10547
10548 2004-01-13  David Jee  <djee@redhat.com>
10549
10550 * Makefile.am: Add BitwiseXORComposite.java.
10551 * Makefile.in: Regenerated.
10552 * gcj/Makefile.in: Regenerated.
10553 * include/Makefile.in: Regenerated.
10554 * testsuite/Makefile.in: Regenerated.
10555
10556 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10557
10558 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10559 not show modal dialogs twice and so that it allows showing a modal
10560 dialog from another modal dialog.
10561
10562 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10563
10564 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10565 and run secondary dispatch thread to process event queue while this
10566 thread is blocked.
10567
10568 2004-01-12 Graydon Hoare <graydon@redhat.com>
10569
10570 * gnu/java/awt/gtk/GdkGraphics2D.java
10571 (static): Check GtkToolkit before initializing static state.
10572 (Graphics2D): Don't construct transform with 0.5 unit offset.
10573
10574 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10575
10576 * gnu/java/awt/BitwiseXORComposite.java: Add.
10577 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10578 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10579 (BitwiseXORComposite): Remove inner class.
10580
10581 2004-01-11 Michael Koch <konqueror@gmx.de>
10582
10583 * gnu/java/lang/reflect/TypeSignature.java
10584 (getEncodingOfClass): Documentation fixed.
10585 (getClassForEncoding): Give class loader to Class.forName().
10586 Documentation fixed.
10587
10588 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10589
10590 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10591
10592 2004-01-11 Michael Koch <konqueror@gmx.de>
10593
10594 * javax/swing/undo/StateEditable.java
10595 (RCSID): Removed redundant modifiers.
10596
10597 2004-01-10 Michael Koch <konqueror@gmx.de>
10598
10599 * javax/print/attribute/EnumSyntax.java
10600 (getStringTable): Made protected.
10601 (getEnumValueTable): Likewise.
10602 * javax/print/attribute/standard/JobKOctetsProcessed.java
10603 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10604 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10605 (JobMediaSheetsCompleted): Made class final.
10606 * javax/print/attribute/standard/OutputDeviceAssigned.java
10607 (getName): Fixed typo.
10608 * javax/print/attribute/standard/RequestingUserName.java
10609 (serialVersionUID): Fixed value.
10610
10611 2004-01-10 Michael Koch <konqueror@gmx.de>
10612
10613 * javax/swing/plaf/basic/BasicButtonUI.java,
10614 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10615 javax/swing/plaf/basic/BasicListUI.java,
10616 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10617 javax/swing/plaf/basic/BasicPanelUI.java,
10618 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10619 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10620 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10621 javax/swing/plaf/basic/BasicViewportUI.java:
10622 Fixed import statements.
10623
10624 2004-01-10 Michael Koch <konqueror@gmx.de>
10625
10626 * gnu/java/awt/image/ImageDecoder.java
10627 (produce): Made public.
10628 * gnu/java/awt/peer/GLightweightPeer.java,
10629 gnu/java/awt/peer/gtk/GtkToolkit.java:
10630 Reformated.
10631
10632 2004-01-10 Michael Koch <konqueror@gmx.de>
10633
10634 * javax/swing/JRadioButtonMenuItem.java,
10635 javax/swing/JSeparator.java,
10636 javax/swing/JSplitPane.java,
10637 javax/swing/JTextPane.java,
10638 javax/swing/JToolBar.java,
10639 javax/swing/ListCellRenderer.java,
10640 javax/swing/ListModel.java,
10641 javax/swing/MenuElement.java,
10642 javax/swing/OverlayLayout.java,
10643 javax/swing/ProgressMonitor.java,
10644 javax/swing/ProgressMonitorInputStream.java,
10645 javax/swing/Renderer.java,
10646 javax/swing/RootPaneContainer.java,
10647 javax/swing/Scrollable.java,
10648 javax/swing/SingleSelectionModel.java,
10649 javax/swing/ToolTipManager.java,
10650 javax/swing/ViewportLayout.java,
10651 javax/swing/event/DocumentEvent.java,
10652 javax/swing/event/SwingPropertyChangeSupport.java,
10653 javax/swing/event/TreeSelectionEvent.java,
10654 javax/swing/event/UndoableEditEvent.java,
10655 javax/swing/text/AbstractDocument.java,
10656 javax/swing/text/AttributeSet.java,
10657 javax/swing/text/Caret.java,
10658 javax/swing/text/ComponentView.java,
10659 javax/swing/text/DefaultCaret.java,
10660 javax/swing/text/DefaultEditorKit.java,
10661 javax/swing/text/Document.java,
10662 javax/swing/text/EditorKit.java,
10663 javax/swing/text/GapContent.java,
10664 javax/swing/text/Keymap.java,
10665 javax/swing/text/MutableAttributeSet.java,
10666 javax/swing/text/PlainEditorKit.java,
10667 javax/swing/text/Segment.java,
10668 javax/swing/text/Style.java,
10669 javax/swing/text/StyledDocument.java,
10670 javax/swing/text/StyledEditorKit.java,
10671 javax/swing/text/TextAction.java,
10672 javax/swing/text/View.java: Fixed import statements.
10673
10674 2004-01-08 Graydon Hoare <graydon@redhat.com>
10675
10676 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10677 djee@redhat.com's recent inverse ordering of Container elements.
10678
10679 2004-01-09 Michael Koch <konqueror@gmx.de>
10680
10681 * gnu/java/lang/ArrayHelper.java
10682 (equalsArray): Removed.
10683
10684 2004-01-09 Andrew Haley <aph@redhat.com>
10685
10686 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10687 a Utf8Const field before looking at its class.
10688
10689 2004-01-09 Michael Koch <konqueror@gmx.de>
10690
10691 * javax/print/attribute/standard/DocumentName.java,
10692 javax/print/attribute/standard/JobHoldUntil.java,
10693 javax/print/attribute/standard/JobMessageFromOperator.java,
10694 javax/print/attribute/standard/JobName.java,
10695 javax/print/attribute/standard/JobOriginatingUserName.java,
10696 javax/print/attribute/standard/OutputDeviceAssigned.java,
10697 javax/print/attribute/standard/PrinterInfo.java,
10698 javax/print/attribute/standard/PrinterLocation.java,
10699 javax/print/attribute/standard/PrinterMakeAndModel.java,
10700 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10701 javax/print/attribute/standard/PrinterName.java,
10702 javax/print/attribute/standard/RequestingUserName.java: New files.
10703 * Makefile.am (javax_source_files): Added new files.
10704 * Makefile.in: Regenerated.
10705
10706 2004-01-09 Michael Koch <konqueror@gmx.de>
10707
10708 * javax/swing/AbstractAction.java,
10709 javax/swing/AbstractSet.java,
10710 javax/swing/Action.java,
10711 javax/swing/ActionMap.java,
10712 javax/swing/BoundedRangeModel.java,
10713 javax/swing/ButtonModel.java,
10714 javax/swing/CellEditor.java,
10715 javax/swing/CellRendererPane.java,
10716 javax/swing/ComboBoxEditor.java,
10717 javax/swing/DebugGraphics.java,
10718 javax/swing/DefaultCellEditor.java,
10719 javax/swing/DefaultCellRenderer.java,
10720 javax/swing/DefaultComboBoxModel.java,
10721 javax/swing/DefaultDesktopManager.java,
10722 javax/swing/DefaultFocusManager.java,
10723 javax/swing/DefaultListCellRenderer.java,
10724 javax/swing/Icon.java,
10725 javax/swing/JButton.java,
10726 javax/swing/JCheckBoxMenuItem.java,
10727 javax/swing/JDesktopPane.java,
10728 javax/swing/JEditorPane.java,
10729 javax/swing/JMenu.java,
10730 javax/swing/JPanel.java,
10731 javax/swing/JPasswordField.java,
10732 javax/swing/JPopupMenu.java,
10733 javax/swing/JProgressBar.java: Reworked imports.
10734
10735 2004-01-09 Michael Koch <konqueror@gmx.de>
10736
10737 * java/awt/geom/PathIterator.java
10738 (WIND_EVEN_ODD): Removed redundant modifiers.
10739 (WIND_NON_ZERO): Likewise.
10740 (SEG_MOVETO): Likewise.
10741 (SEG_LINETO): Likewise.
10742 (SEG_QUADTO): Likewise.
10743 (SEG_CUBICTO): Likewise.
10744 (SEG_CLOSE): Likewise.
10745 * java/awt/image/SinglePixelPackedSampleModel.java:
10746 Removed redundant semicolon.
10747 * java/io/ObjectInputStream.java
10748 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10749 * java/util/logging/Filter.java
10750 (isLoggable): Removed redundant modifier.
10751 * java/util/logging/LogManager.java:
10752 Removed redundant semicolon.
10753 * java/util/logging/XMLFormatter.java
10754 (format): Removed unused variable "key".
10755
10756 2004-01-08 Fernando Nasser <fnasser@redhat.com>
10757
10758 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
10759 New name for the former setFile native method.
10760 (setFile): New method.
10761 (setDirectory): Implemented.
10762 (connectSignals): New native method.
10763 (setFilenameFilter): Improve comment.
10764 (getGraphics): Comment.
10765 (gtkHideFileDialog): New method.
10766 (gtkDisposeFileDialog): New method.
10767 (gtkSetFilename): New method.
10768 * java/awt/Dialog.java (show): Block on modal dialogs, but only
10769 for FileDialog for now.
10770 (hide): New method.
10771 (dispose): New method.
10772 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
10773 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
10774 deprecated creation functions. Make dialog modal. Add it to the
10775 window group.
10776 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
10777 function.
10778 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
10779 Rename to...
10780 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
10781 name.
10782 (window_closed): New function.
10783 (ok_clicked): New function.
10784 (cancel_clicked): New function.
10785
10786 2004-01-08 Michael Koch <konqueror@gmx.de>
10787
10788 * javax/swing/JLayeredPane.java: Revert changes to standard
10789 boilerplate, reworked imports.
10790
10791 2004-01-07 Tom Tromey <tromey@redhat.com>
10792
10793 PR libgcj/13439:
10794 * verify.cc (state::merge): Copy changed locals out of subroutine
10795 in NO_STACK case.
10796 (state::FLAG_CHANGED): New const.
10797 (state::FLAG_UNUSED): Likewise.
10798 (state::local_changed): Removed. Updated all users.
10799 (state::flags): New field.
10800 (state::merge): Added jsr_semantics argument, more logic.
10801 (push_jump_merge): Added jsr_semantics argument.
10802 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
10803 merging through the jsr instruction.
10804
10805 2004-01-07 Tom Tromey <tromey@redhat.com>
10806
10807 * scripts/MakeDefaultMimeTypes.java: Use \n, not
10808 backslash-newline.
10809
10810 2004-01-07 Graydon Hoare <graydon@redhat.com>
10811
10812 * java/awt/Container.java (LightweightDispatcher): Implement.
10813 (visitChild): Reuse graphics object.
10814 (dispatchEventImpl): Optionally dispatch to lightweight.
10815 (addNotifyContainerChildren): Build LightweightDispatcher.
10816
10817 2004-01-07 David Jee <djee@redhat.com>
10818
10819 * java/awt/Container.java
10820 (update): Clear only the clipped region, instead of clearing the
10821 entire Container.
10822 (visitChildren): Visit children in descending order.
10823
10824 2004-01-07 Michael Koch <konqueror@gmx.de>
10825
10826 * java/lang/reflect/Array.java: Merged documentation with classpath.
10827
10828 2004-01-07 Michael Koch <konqueror@gmx.de>
10829
10830 * java/text/CollationElementIterator.java
10831 (textIndex): Renamed from index.
10832 * java/text/CollationKey.java
10833 (collator): New member.
10834 (CollationKey): New argument for parent collator.
10835 (equals): Check for same collator, source string and key array.
10836 * java/text/RuleBasedCollator.java:
10837 Reformated.
10838 (RuleBasedCollator): Don't re-initialize frenchAccents with default
10839 value.
10840 (getCollationElementIterator): Rewritten.
10841 (getCollationKey): Added new argument to CollationKey constructor.
10842
10843 2004-01-07 Michael Koch <konqueror@gmx.de>
10844
10845 * gnu/java/nio/DatagramChannelImpl.java
10846 (blocking): Removed.
10847 (DatagramChannelImpl): Call configureBlocking().
10848 (implConfigureBlocking): Dont initialize blocking.
10849 * gnu/java/nio/ServerSocketChannelImpl.java
10850 (blocking): Removed.
10851 (ServerSocketChannelImpl): Call configureBlocking().
10852 (implConfigureBlocking): Dont initialize blocking.
10853 * gnu/java/nio/SocketChannelImpl.java
10854 (blocking): Removed.
10855 (SocketChannelImpl): Call configureBlocking().
10856 (implConfigureBlocking): Dont initialize blocking.
10857 (connect): Use isBlocking().
10858 * java/nio/channels/spi/AbstractSelectableChannel.java
10859 (configureBlocking): Use blockingLock() instead of LOCK.
10860 Set blocking after successfully called implConfigureBlocking().
10861 (register): Use blockingLock() instead of LOCK.
10862
10863 2004-01-07 Michael Koch <konqueror@gmx.de>
10864
10865 * java/net/ServerSocket.java (isBound): Fixed documentation.
10866
10867 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
10868
10869 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
10870 (changeEvent): Create event object on demand.
10871 (DefaultBoundedRangeModel, toString, setValue, setExtent,
10872 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
10873 fireStateChanged): Re-written.
10874 * javax/swing/event/EventListenerList.java: Reformatted, document
10875 typical usage.
10876 (toString): Implemented.
10877 (getListeners): Re-written.
10878 (remove): Re-written.
10879 (add): Re-written.
10880 (NO_LISTENERS): New singleton field.
10881 (listenerList): Declare as transient; document.
10882 (serialVersionUID): Document.
10883 (getListenerCount(Class)): More efficient implementation,
10884 also accepts null argument. Improve Javadoc.
10885 (getListenerCount()): Remove unnecessary cast; docfix.
10886 * javax/swing/undo/UndoableEditSupport.java:
10887 Re-format, document.
10888 (UndoableEditSupport): Set realSource field. Improve documentation.
10889 (_postEdit): Iterate over cloned listener vector.
10890 (toString): Don't emit realSource.
10891 (beginUpdate, endUpdate): Support nested updates.
10892 (postEdit): Use compound edit if present.
10893
10894 2004-01-06 Graydon Hoare <graydon@redhat.com>
10895
10896 * java/awt/Container.java (swapComponents): Add forgotten
10897 function, required for JLayeredPane change.
10898
10899 2004-01-06 Michael Koch <konqueror@gmx.de>
10900
10901 * java/text/CollationElementIterator.java: Reformated.
10902 (CollationElementIterator): Changed order of arguments.
10903 * java/text/RuleBasedCollator.java
10904 (RuleBasedCollator): Merged class documentation.
10905 (CollationElement): Added documentation.
10906 (compare): Reformated, renamed arguments.
10907 (equals): Likewise.
10908 (getCollationElementIterator): Likewise.
10909 (getCollationKey): Likewise.
10910
10911 2004-01-06 Graydon Hoare <graydon@redhat.com>
10912
10913 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
10914
10915 2004-01-06 Michael Koch <konqueror@gmx.de>
10916
10917 * gnu/java/net/protocol/file/Connection.java:
10918 Reformated copyright.
10919 (hdrHash): Removed.
10920 (hdrVec): Removed.
10921 (gotHeaders): Removed.
10922 (getHeaderField): Removed.
10923 (getHeaderField): Removed.
10924 (getHeaderFieldKey): Removed.
10925 (getKey): Removed.
10926 (getField): Removed.
10927 (getHeaders): Removed.
10928
10929 2004-01-06 Michael Koch <konqueror@gmx.de>
10930
10931 * javax/print/attribute/standard/DateTimeAtCompleted.java,
10932 javax/print/attribute/standard/DateTimeAtCreation.java,
10933 javax/print/attribute/standard/DateTimeAtProcessing.java,
10934 javax/print/attribute/standard/JobImpressionsCompleted.java,
10935 javax/print/attribute/standard/JobKOctets.java,
10936 javax/print/attribute/standard/JobKOctetsProcessed.java,
10937 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
10938 javax/print/attribute/standard/JobPrioritySupported.java: New files.
10939 * Makefile.am (javax_source_files): Added new files.
10940 * Makefile.in: Regenerated.
10941
10942 2004-01-06 Michael Koch <konqueror@gmx.de>
10943
10944 * java/net/URLConnection.java
10945 (contentHandler): Removed.
10946 (locale): Removed.
10947 (getHeaderFields): Return an empty map instead of null.
10948 (getContent): Connect if needed, renamed "cType" to "type" and
10949 "contentHandler" to "ch" and made it a local variable.
10950 (getPermission): Don't use package in class name.
10951 (setDefaultRequestProperty): Fixed typo in documentation.
10952 (initializeDateFormats): Made locale a local variable.
10953
10954 2004-01-06 Michael Koch <konqueror@gmx.de>
10955
10956 * java/lang/Package.java
10957 (getPackage): Get the current class loader directly.
10958 * java/lang/SecurityManager.java
10959 (currentLoadedClass): Dont iterate over class contexts.
10960 (classLoaderDepth): Don't check class loaders if everything is allowed.
10961
10962 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10963
10964 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10965 (pre_event_handler): Set all insets to 0 when a Configure event
10966 is received for a GtkPlug.
10967 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
10968 Make handle long, not int.
10969 (EmbeddedWindow()): New constructor.
10970 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
10971 long, not int.
10972 (setHandle): New method.
10973 (getHandle): Return long, not int.
10974 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
10975 declaration.
10976 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
10977 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
10978 (create(long)): Take long parameter, not int. Cast gtk_plug_new
10979 argument to GdkNativeWindow.
10980 (construct): New method.
10981 (embed): New method.
10982
10983 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
10984 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
10985 (create(int, int)): New method.
10986 (create): Call new create method.
10987 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
10988 methods.
10989 (childResized): Remove native implementation. Implement in
10990 Java.
10991 (getHScrollbarHeight, getVScrollbarWidth): Call
10992 gtk_widget_size_request to get scrollbar dimensions.
10993 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
10994 call getVScrollbarWidth and getHScrollbarHeight when vertical
10995 and horizontal scrollbars respectively are needed.
10996 (doLayout): Enlarge child if it is smaller than the viewport.
10997
10998 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10999
11000 * java/awt/Dialog.java (constructor): Accept null title as per spec.
11001 * java/awt/FileDialog.java (constructor): Throw exception on invalid
11002 argument as per spec.
11003
11004 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11005
11006 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
11007 (insert): Ditto.
11008 (remove): Ditto. Also, Check for valid argument.
11009 (removeAll): Use peer interface method.
11010 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
11011 native add function.
11012 (nativeRemove): New name for native remove function.
11013 (getHistory): New native function.
11014 (constructor): Generate ItemEvent.
11015 (add): Ditto, if selection is changed.
11016 (remove): Ditto, ditto.
11017 (removeAll): Add implementation.
11018 (handleEvent): Remove. Dead code.
11019 (choicePostItemEvent): Add comment.
11020 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
11021 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
11022 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
11023 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
11024 comments and fix condition to change selection.
11025 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
11026 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
11027 remove all capability.
11028 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
11029 (item_activate): Add cast to remove compiler warning.
11030
11031 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11032
11033 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
11034 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11035 (getPreferredSize): Call preferredSize.
11036 (preferredSize): Call gtkWidgetGetPreferredDimensions.
11037 (getMinimumSize): Call minimumSize.
11038 (minimumSize): Call gtkWidgetGetPreferredDimensions.
11039 (gtkWidgetGetDimensions): Return the peer widget's current size
11040 request.
11041 (gtkWidgetGetPreferredDimensions): Return the peer widget's
11042 natural size request.
11043
11044 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
11045
11046 Thanks to Brian Gough <bjg@network-theory.com>
11047 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
11048 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
11049
11050 2004-01-04 Matthias Klose <doko@debian.org>
11051
11052 * aclocal.m4: Rebuilt using "aclocal -I .".
11053 * configure: Rebuilt.
11054
11055 2004-01-03 Per Bothner <per@bothner.com>
11056
11057 * java/util/Date.java (parse): Fix a number of problems.
11058 (skipParens): Remove no-longer-needed method.
11059