2a68a967f5770a7a5542005fb3a6c15a6e18d52d
[gcc.git] / libjava / ChangeLog
1 2004-09-26 Per Bothner <per@bothner.com>
2
3 * java/util/Collections.java (sort): Copy from array in forwards
4 order, rather than reverse order which may be much less efficient.
5
6 2004-09-26 Mark Wielaard <mark@klomp.org>
7
8 * java/lang/System.java (properties): Make package private.
9 * java/lang/Throwable.java (StaticData.nl): Initialize through
10 directly accessing System.properties.getProperty().
11
12 * java/lang/Throwable.java (nl): Remove static field.
13 (StaticData): New private static inner class.
14 (stackTraceStringBuffer): Use StaticData.nl.
15
16 2004-09-26 Casey Marshall <csm@gnu.org>
17
18 * java/security/ProtectionDomain.java
19 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
20 `true'.
21
22 * java/security/SecureClassLoader.java
23 (defineClass): make protection domain dynamically bound.
24 (getPermissions): call `getCurrentPolicy' to avoid permission
25 check.
26
27 2004-09-25 Mark Wielaard <mark@klomp.org>
28
29 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
30 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
31 * Makefile.in: Regenerated.
32
33 * gcj/javaprims.h: Regenerated.
34
35 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
36 (getDefaultTimeZone): Make package private. Check that GMToffset
37 contains at least one digit.
38 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
39 VMTimeZone.
40 * util/VMTimeZone.java: New file with above methods.
41
42 * java/util/natTimeZone.cc: Removed (renamed).
43 * java/util/natVMTimeZone.cc: Added (renamed).
44
45 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
46
47 * java/util/TimeZone.java
48 (getDefaultTimeZone): Fixed test to distinguish between hours and
49 minutes in specified timezone.
50
51 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
52
53 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
54 handling of default package. (generate): Removed confused comments
55 and code about making Method and Field accessible.
56
57 2004-09-25 Tom Tromey <tromey@redhat.com>
58
59 PR java/17500:
60 * testsuite/libjava.compile/pr17500.java: New file.
61
62 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
63 Mark Wielaard <mark@klomp.org>
64
65 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
66 * gnu/regexp/RETokenLookAhead.java: New file.
67
68 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
69 * Makefile.in: Regenerated.
70
71 2004-09-25 Michael Koch <konqueror@gmx.de>
72
73 * java/io/ObjectStreamField.java:
74 Removed unused import statement.
75
76 2004-09-24 Tom Tromey <tromey@redhat.com>
77
78 PR java/15656:
79 * testsuite/libjava.compile/pr15656.xfail: New file.
80 * testsuite/libjava.compile/pr15656.java: new file.
81
82 PR java/16789:
83 * testsuite/libjava.lang/pr16789.out: New file.
84 * testsuite/libjava.lang/pr16789.java: New file.
85
86 2004-09-24 Andrew Haley <aph@redhat.com>
87
88 PR java/16927
89 * testsuite/libjava.compile/AssertBug.java: New file.
90
91 2004-09-24 Casey Marshall <csm@gnu.org>
92
93 * java/util/PropertyPermissionCollection.java
94 (implies): avoid infinite loop.
95
96 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
97
98 * javax/security/auth/PrivateCredentialPermission.java
99 (PrivateCredentialPermission): added serialization UID
100
101
102 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
103
104 * gnu/java/rmi/server/UnicastServer.java
105 (incomingMessageCall): Added code to handle Errors.
106 * gnu/java/rmi/server/UnicastServerRef.java
107 (incomingMessageCall): Added code to handle Errors.
108
109
110 2004-09-24 Tom Tromey <tromey@redhat.com>
111
112 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
113 (definedPackages): Likewise.
114
115 2004-09-24 Michael Koch <konqueror@gmx.de>
116
117 * java/io/ObjectInputStream.java:
118 Re-ordered imports.
119
120 2004-09-24 Casey Marshall <csm@gnu.org>
121
122 * java/io/ObjectInputStream.java (callReadMethod): re-throw
123 `ClassNotFoundException'.
124
125 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
126
127 * java/io/ObjectInputStream.java (readObject): Delegate instantation
128 of Externalizable classes to ObjectStreamClass.
129 * java/io/ObjectStreamClass.java (newInstance): New method to
130 instantiate Externalizable (while ignoring the accessibility of
131 the constructor). (constructor): New field to cache the constructor.
132
133 2004-09-24 Mark Wielaard <mark@klomp.org>
134
135 * java/net/URL.java (systemClassLoader): New static field.
136 (getURLStreamHandler): Always use system/application classloader
137 for finding URLStreamhandler. Remove unecessary instanceof checks.
138
139 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
140
141 * java/net/URL.java
142 (set): This method now matches the behaviour of the JDK.
143 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
144
145 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
146
147 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
148
149 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
150
151 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
152 Don't set authority if host isn't specified.
153
154 2004-09-24 Michael Koch <konqueror@gmx.de>
155
156 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
157 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
158 * gnu/java/nio/VMPipe.java,
159 gnu/java/nio/VMSelector.java:
160 New files.
161 * gnu/java/nio/natPipeImplEcos.cc,
162 gnu/java/nio/natPipeImplPosix.cc,
163 gnu/java/nio/natPipeImplWin32.cc:
164 Ported to VMPipe.
165 * gnu/java/nio/natSelectorImplEcos.cc,
166 gnu/java/nio/natSelectorImplPosix.cc,
167 gnu/java/nio/natSelectorImplWin32.cc:
168 Ported to VMSelector.
169 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
170 gnu/java/nio/VMSelector.java.
171 * Makefile.in: Regenerated.
172
173 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
174
175 * java/lang/StackTraceElement.java
176 (className): Renamed field to declaringClass to be compatible
177 with Sun serialization format.
178
179 2004-09-23 Michael Koch <konqueror@gmx.de>
180
181 * java/applet/AppletContext.java,
182 java/applet/Applet.java,
183 java/applet/AppletStub.java,
184 java/applet/AudioClip.java:
185 Jalopied and checkstyle clean.
186
187 2004-09-23 Mark Wielaard <mark@klomp.org>
188
189 * java/util/Collections.java
190 (binarySearch(List, Object, Comparator)): Explicitly
191 reverse direction in list iterator.
192 (rotate): Just return when list is empty.
193
194 2004-09-23 Tom Tromey <tromey@redhat.com>
195
196 PR java/17329:
197 * testsuite/libjava.compile/pr17329.java: New file.
198
199 PR java/17380:
200 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
201 9.2-implicit-7.
202
203 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
204
205 * Makefile.am: Run aclocal with -I ../config
206 * acinclude.m4: Delete macros picked up from ../config and tidy.
207 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
208 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
209 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
210
211 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
212
213 * aclocal.m4: Regenerate with aclocal 1.9.2.
214 * configure: Regenerate.
215 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
216 * include/Makefile.in, testsuite/Makefile.in: Likewise.
217
218 2004-09-22 David Daney <ddaney@avtrex.com>
219
220 PR libgcj/17623
221 * java/net/URL.java (URL): Copy userInfo from context.
222 (getUserInfo): Return cached userInfo if present.
223
224 2004-09-22 Tom Tromey <tromey@redhat.com>
225
226 PR libgcj/6182:
227 * mauve-libgcj: Enable java.lang.Character tests.
228
229 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
230
231 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
232 dependencies.
233 (lib_org_ietf_jgss_la_LIBADD): Likewise.
234 * Makefile.in: Regenerated.
235
236 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
237
238 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
239 * configure: Regenerate.
240 * include/config.h.in: Likewise.
241 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
242 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
243 macro to gtkpeer.h.
244 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
245 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
246 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
247 architectures.
248 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
249 Likewise.
250
251 2004-09-22 Tom Tromey <tromey@redhat.com>
252
253 PR libgcj/14446:
254 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
255 when comparing CRCs.
256 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
257 field.
258 (read()): New overload.
259
260 2004-09-21 Tom Tromey <tromey@redhat.com>
261
262 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
263 Indentation fix.
264
265 2004-09-21 Michael Koch <konqueror@gmx.de>
266
267 * java/net/Socket.java
268 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
269
270 2004-09-21 Casey Marshall <csm@gnu.org>
271
272 * javax/crypto/MacSpi.java (clone): Provide meaningful
273 implementation.
274
275 2004-09-21 Tom Tromey <tromey@redhat.com>
276
277 PR libgcj/16869:
278 * Makefile.in: Rebuilt.
279 * Makefile.am (MOSTLYCLEANFILES): Removed.
280 (mostlyclean-local): Remove header files.
281
282 2004-09-21 Casey Marshall <csm@gnu.org>
283
284 * java/security/cert/X509CRLSelector.java:
285 (match): remove unreachable try-catch clauses.
286 Reported by: Dalibor Topic <robilad@kaffe.org>
287
288 2004-09-21 Mark Wielaard <mark@klomp.org>
289
290 * java/util/TreeMap.java (root): Don't initialize.
291 (TreeMap(Comparator)): Call fabricateTree(0).
292 (fabricateTree): Initialize root and size when count is 0.
293
294 2004-09-21 Sven de Marothy <sven@physto.se>
295
296 * java/nio/ByteBuffer.java (hashCode): Implemented.
297 * java/nio/CharBuffer.java: Likewise.
298 * java/nio/DoubleBuffer.java: Likewise.
299 * java/nio/FloatBuffer.java: Likewise.
300 * java/nio/LongBuffer.java: Likewise.
301 * java/nio/IntBuffer.java: Likewise.
302 * java/nio/ShortBuffer.java: Likewise.
303
304 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
305
306 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
307
308 2004-09-21 Michael Koch <konqueror@gmx.de>
309
310 * javax/net/ssl/SSLServerSocket.java:
311 Removed comment about "Do not edit this file, it's generated.".
312
313 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
314
315 Import the big Crypto/Jessie/Security merge from Classpath.
316
317 * Makefile.am: Add imported files.
318 * Makefile.in: Regenerate.
319
320 2004-08-14 Casey Marshall <csm@gnu.org>
321
322 The Big Crypto Merge of 2004.
323
324 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
325 Crypto's version.
326
327 Files imported from GNU Crypto.
328 * javax/crypto/BadPaddingException.java
329 * javax/crypto/Cipher.java
330 * javax/crypto/CipherInputStream.java
331 * javax/crypto/CipherOutputStream.java
332 * javax/crypto/CipherSpi.java
333 * javax/crypto/EncryptedPrivateKeyInfo.java
334 * javax/crypto/ExemptionMechanism.java
335 * javax/crypto/ExemptionMechanismException.java
336 * javax/crypto/ExemptionMechanismSpi.java
337 * javax/crypto/IllegalBlockSizeException.java
338 * javax/crypto/KeyAgreement.java
339 * javax/crypto/KeyAgreementSpi.java
340 * javax/crypto/KeyGenerator.java
341 * javax/crypto/KeyGeneratorSpi.java
342 * javax/crypto/Mac.java
343 * javax/crypto/MacSpi.java
344 * javax/crypto/Makefile.am
345 * javax/crypto/NoSuchPaddingException.java
346 * javax/crypto/NullCipher.java
347 * javax/crypto/NullCipherImpl.java
348 * javax/crypto/SealedObject.java
349 * javax/crypto/SecretKey.java
350 * javax/crypto/SecretKeyFactory.java
351 * javax/crypto/SecretKeyFactorySpi.java
352 * javax/crypto/ShortBufferException.java
353 * javax/crypto/interfaces/DHKey.java
354 * javax/crypto/interfaces/DHPrivateKey.java
355 * javax/crypto/interfaces/DHPublicKey.java
356 * javax/crypto/interfaces/PBEKey.java
357 * javax/crypto/spec/DESKeySpec.java
358 * javax/crypto/spec/DESedeKeySpec.java
359 * javax/crypto/spec/DHGenParameterSpec.java
360 * javax/crypto/spec/DHParameterSpec.java
361 * javax/crypto/spec/DHPrivateKeySpec.java
362 * javax/crypto/spec/DHPublicKeySpec.java
363 * javax/crypto/spec/IvParameterSpec.java
364 * javax/crypto/spec/PBEKeySpec.java
365 * javax/crypto/spec/PBEParameterSpec.java
366 * javax/crypto/spec/RC2ParameterSpec.java
367 * javax/crypto/spec/RC5ParameterSpec.java
368 * javax/crypto/spec/SecretKeySpec.java
369 * javax/security/auth/AuthPermission.java
370 * javax/security/auth/DestroyFailedException.java
371 * javax/security/auth/Destroyable.java
372 * javax/security/auth/Policy.java
373 * javax/security/auth/PrivateCredentialPermission.java
374 * javax/security/auth/RefreshFailedException.java
375 * javax/security/auth/Refreshable.java
376 * javax/security/auth/Subject.java
377 * javax/security/auth/SubjectDomainCombiner.java
378 * javax/security/auth/callback/Callback.java
379 * javax/security/auth/callback/CallbackHandler.java
380 * javax/security/auth/callback/ChoiceCallback.java
381 * javax/security/auth/callback/ConfirmationCallback.java
382 * javax/security/auth/callback/LanguageCallback.java
383 * javax/security/auth/callback/NameCallback.java
384 * javax/security/auth/callback/PasswordCallback.java
385 * javax/security/auth/callback/TextInputCallback.java
386 * javax/security/auth/callback/TextOutputCallback.java
387 * javax/security/auth/callback/UnsupportedCallbackException.java
388 * javax/security/auth/login/AccountExpiredException.java
389 * javax/security/auth/login/AppConfigurationEntry.java
390 * javax/security/auth/login/Configuration.java
391 * javax/security/auth/login/CredentialExpiredException.java
392 * javax/security/auth/login/FailedLoginException.java
393 * javax/security/auth/login/LoginContext.java
394 * javax/security/auth/login/LoginException.java
395 * javax/security/auth/login/NullConfiguration.java
396 * javax/security/auth/x500/X500PrivateCredential.java
397 * javax/security/sasl/AuthenticationException.java
398 * javax/security/sasl/AuthorizeCallback.java
399 * javax/security/sasl/RealmCallback.java
400 * javax/security/sasl/RealmChoiceCallback.java
401 * javax/security/sasl/Sasl.java
402 * javax/security/sasl/SaslClient.java
403 * javax/security/sasl/SaslClientFactory.java
404 * javax/security/sasl/SaslException.java
405 * javax/security/sasl/SaslServer.java
406 * javax/security/sasl/SaslServerFactory.java
407 * org/ietf/jgss/ChannelBinding.java
408 * org/ietf/jgss/GSSContext.java
409 * org/ietf/jgss/GSSCredential.java
410 * org/ietf/jgss/GSSException.java
411 * org/ietf/jgss/GSSManager.java
412 * org/ietf/jgss/GSSName.java
413 * org/ietf/jgss/MessageProp.java
414 * org/ietf/jgss/Oid.java
415 * org/ietf/jgss/MessagesBundle.properties
416
417 Files imported from Jessie <http://www.nongnu.org/jessie/>
418 * javax/net/ServerSocketFactory.java
419 * javax/net/SocketFactory.java
420 * javax/net/VanillaServerSocketFactory.java
421 * javax/net/VanillaSocketFactory.java
422 * javax/net/ssl/HandshakeCompletedEvent.java
423 * javax/net/ssl/HandshakeCompletedListener.java
424 * javax/net/ssl/HostnameVerifier.java
425 * javax/net/ssl/HttpsURLConnection.java
426 * javax/net/ssl/KeyManager.java
427 * javax/net/ssl/KeyManagerFactory.java
428 * javax/net/ssl/KeyManagerFactorySpi.java
429 * javax/net/ssl/ManagerFactoryParameters.java
430 * javax/net/ssl/SSLContext.java
431 * javax/net/ssl/SSLContextSpi.java
432 * javax/net/ssl/SSLException.java
433 * javax/net/ssl/SSLHandshakeException.java
434 * javax/net/ssl/SSLKeyException.java
435 * javax/net/ssl/SSLPeerUnverifiedException.java
436 * javax/net/ssl/SSLPermission.java
437 * javax/net/ssl/SSLProtocolException.java
438 * javax/net/ssl/SSLServerSocket.java
439 * javax/net/ssl/SSLServerSocketFactory.java
440 * javax/net/ssl/SSLSession.java
441 * javax/net/ssl/SSLSessionBindingEvent.java
442 * javax/net/ssl/SSLSessionBindingListener.java
443 * javax/net/ssl/SSLSessionContext.java
444 * javax/net/ssl/SSLSocket.java
445 * javax/net/ssl/SSLSocketFactory.java
446 * javax/net/ssl/TrivialHostnameVerifier.java
447 * javax/net/ssl/TrustManager.java
448 * javax/net/ssl/TrustManagerFactory.java
449 * javax/net/ssl/TrustManagerFactorySpi.java
450 * javax/net/ssl/X509KeyManager.java
451 * javax/net/ssl/X509TrustManager.java
452 * javax/security/cert/Certificate.java
453 * javax/security/cert/CertificateEncodingException.java
454 * javax/security/cert/CertificateException.java
455 * javax/security/cert/CertificateExpiredException.java
456 * javax/security/cert/CertificateNotYetValidException.java
457 * javax/security/cert/CertificateParsingException.java
458 * javax/security/cert/X509CertBridge.java
459 * javax/security/cert/X509Certificate.java
460
461 2004-08-20 Casey Marshall <csm@gnu.org>
462
463 * java/security/cert/X509CRLSelector.java: New file.
464 * java/security/cert/X509CertSelector.java: New file.
465
466 2004-09-15 Michael Koch <konqueror@gmx.de>
467
468 * gnu/java/net/protocol/file/Handler.java
469 (openConnection): Don't throw exception if host part for file: URI is
470 present. setURL() keeps file: protocol if ftp: protocol is not
471 available.
472
473 2004-09-14 Richard Henderson <rth@redhat.com>
474
475 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
476 value of sigsuspend.
477
478 2004-09-12 Tom Tromey <tromey@redhat.com>
479
480 * javax/naming/CompoundName.java (CompoundName): Don't check for
481 separator in "flat" case.
482
483 2004-09-12 Michael Koch <konqueror@gmx.de>
484
485 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
486 AM_CONFIG_HEADER by AC_CONFIG_FILES.
487 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
488 Regenerate.
489
490 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
491
492 PR libgcj/14751
493 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
494 handle in newly-allocated _Jv_Thread_t.
495 (_Jv_ThreadDestroyData): Close thread handle.
496 (_Jv_ThreadStart): Remove obsolete comment.
497 Store handle of newly-created thread in _Jv_Thread_t.
498 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
499 before including <windows.h>
500 #define _Jv_HaveCondDestroy
501
502 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
503
504 * java/lang/natThread.cc (finalize_native): Destroy
505 join conditional variable and mutex if these destroy
506 operations are supported.
507
508 2004-09-10 Dalibor Topic <robilad@kaffe.org>
509
510 * gnu/java/net/protocol/file/Connection.java (permission): New field.
511 (DEFAULT_PERMISSION): New constant.
512 (Connection): Create a FilePermission with permission to read file.
513
514 2004-09-10 Michael Koch <konqueror@gmx.de>
515
516 * gnu/java/net/protocol/file/Connection.java
517 (getLastModified): Moved around.
518 (getPermission): Return stored permission.
519
520 2004-09-10 Michael Koch <konqueror@gmx.de>
521
522 * Makefile.in: Regenerate.
523
524 2004-09-10 Michael Koch <konqueror@gmx.de>
525
526 * Makefile.am: Reverted accidently commited stuff.
527 * configure: Regenerated.
528
529 2004-09-10 Michael Koch <konqueror@gmx.de>
530
531 * gnu/java/net/protocol/file/Connection.java
532 (lineSeparator): Made non-final.
533 (static): Removed.
534 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
535 instead of StringBufferInputStream.
536
537 2004-09-10 Michael Koch <konqueror@gmx.de>
538
539 * gnu/java/net/protocol/file/Connection.java
540 (connect): Handle file is a directory case.
541
542 2004-09-10 Michael Koch <konqueror@gmx.de>
543
544 * Makefile.am
545 (xlib_includes): Removed.
546 (AM_CPPFLAGS): Renamed from INCLUDES.
547 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
548 * Makefile.in: Regenerate.
549
550 2004-09-09 Michael Koch <konqueror@gmx.de>
551
552 * java/security/ProtectionDomain.java,
553 * java/util/PropertyPermissionCollection.java:
554 Fixed javadocs all over.
555
556 2004-09-09 Sven de Marothy <sven@physto.se>
557
558 Patch from David Gilbert <david.gilbert@object-refinery.com>
559 * java/lang/Comparable.java: Fixed documentation errors.
560 * java/util/Arrays.java: Likewise.
561
562 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
563
564 * java/net/Inet4Address.java
565 (Inet4Address): Added comment to serialization UID.
566 * java/text/Format.java
567 (Format): Added comment to serialization UID.
568
569 2004-09-09 Michael Koch <konqueror@gmx.de>
570
571 * java/lang/System.java
572 (err): Fixed javadoci to point to setErr() and not setOut().
573
574 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
575
576 (normalizePath): Added special case for windows systems.
577
578 2004-09-09 Michael Koch <konqueror@gmx.de>
579
580 * java/io/File.java
581 (dupSeparator): Made private.
582 (File(URI)): New constructor.
583 (getParentFile): Fixed javadoc.
584 (createTempFile): Reformated.
585 (setReadOnly): Added comment.
586 (deleteOnExit): Merged javadoc with classpath version.
587
588 2004-09-09 Michael Koch <konqueror@gmx.de>
589
590 * Makefile.am: Don't try to include deps.mk.
591 * Makefile.in: Regenerated.
592
593 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
594
595 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
596 .d files.
597 * configure: Rebuilt.
598
599 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
600
601 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
602 Changed pfn from static local to local.
603
604 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
605 H.J. Lu <hongjiu.lu@intel.com>
606
607 PR libgcj/17290
608 * Makefile.am (GCJCOMPILE): Remove definition.
609 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
610 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
611 * Makefile.in: Rebuilt.
612
613 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
614
615 * configure.ac (enable-gc-debug): Update help for new syntax.
616 * configure: Regenerate.
617
618 2004-09-03 David Daney <ddaney@avtrex.com>
619
620 * include/mips-signal.h: Update copyright.
621
622 2004-09-03 David Daney <ddaney@avtrex.com>
623
624 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
625 * include/mips-signal.h: Added HANDLE_FPE support.
626
627 2004-08-31 Michael Koch <konqueror@gmx.de>
628
629 * javax/swing/plaf/basic/BasicTextAreaUI.java
630 (create): New method.
631 * javax/swing/text/DefaultHighlighter.java
632 (DefaultHighlightPainter.debugRect): Removed.
633 * javax/swing/text/StyleContext.java
634 (DEFAULT_STYLE): New field.
635
636 2004-08-31 Michael Koch <konqueror@gmx.de>
637
638 * javax/swing/plaf/basic/BasicLookAndFeel.java
639 (initComponentDefaults): Add keybindings for selection.backward and
640 selection-forward for text components.
641 * javax/swing/plaf/basic/BasicTextUI.java
642 (paintSafely): Paint highlight only when something is actually
643 selected.
644 * javax/swing/text/DefaultCaret.java
645 (handleHighlight): New method.
646 (setSelectionVisible): Don't do anything when nothing changes.
647 Handle highlight.
648 (moveDot): Reimplemented. Handle highlight.
649 (setDot): Set mark too. Handle highlight.
650 (getSelectionPainter): New method.
651 * javax/swing/text/DefaultEditorKit.java
652 (defaultActions): Added new actions for text selection.
653 * javax/swing/text/DefaultHighlighter.java
654 (DefaultHighlightPainter): New inner class.
655 (DefaultPainter): New field.
656 (paint): Implemented.
657 * javax/swing/text/PlainView.java
658 (paint): Don't draw background here again.
659 * javax/swing/text/Utilities.java
660 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
661 (drawTabbedText): Likewise.
662
663 2004-08-31 Graydon Hoare <graydon@redhat.com>
664
665 * javax/swing/JComponent.java
666 (resetKeyboardActions): Add null checks.
667
668 2004-08-31 Graydon Hoare <graydon@redhat.com>
669
670 * javax/swing/DefaultButtonModel.java:
671 Skip group notification when no group is set.
672
673 2004-08-31 Graydon Hoare <graydon@redhat.com>
674
675 * javax/swing/JColorChooser.java:
676 Make a couple inner classes static, for jikes.
677
678 2004-08-31 Michael Koch <konqueror@gmx.de>
679
680 * javax/swing/plaf/basic/BasicTextUI.java
681 (RottView.modelToView): New method.
682 (UpdateHandler): Renamed from EventHandler.
683 (updateHandler): Renamed from eventHandler.
684 (modelToView): Implemented.
685 * javax/swing/text/AbstractDocument.java
686 (BranchElement.getElement): Return null for non-existing indeces.
687 (BranchElement.getElementIndex): Return 0 in some corner cases.
688 * javax/swing/text/FieldView.java
689 (modelToView): New method.
690 * javax/swing/text/PlainView.java
691 (modelToView): Made public.
692
693 2004-08-31 Kim Ho <kho@redhat.com>
694
695 * Makefile.am: New files.
696 * Makefile.in: Regenerate.
697 * gcj/Makefile.in: Regenerate.
698 * include/Makefile.in: Regenerate.
699 * java/awt/Color.java: Fix documentation.
700 (RGBtoHSB): Use floats for conversions.
701 * javax/swing/ButtonGroup.java: Run Jalopy.
702 (setSelected): Reimplement.
703 * javax/swing/DefaultButtonModel.java: Run Jalopy.
704 (changeState): Let ButtonGroup know that the button
705 is changing state.
706 * javax/swing/JColorChooser.java: Implement.
707 * javax/swing/JLabel.java: Run Jalopy.
708 * javax/swing/JSpinner.java: Run Jalopy.
709 (setValue): New method.
710 * javax/swing/JTabbedPane.java: Run Jalopy.
711 (removeTabAt): Call correct remove method.
712 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
713 (getPreviousValue): Compare minimum value.
714 * javax/swing/Timer.java: Run Jalopy.
715 (run): Comment out println.
716 * javax/swing/ToolTipManager.java:
717 (mouseMoved): Get new tooltip text for location.
718 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
719 Jalopy and Javadoc.
720 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
721 Implement.
722 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
723 Run Jalopy.
724 (setSelectedColor): Fire ChangeEvent.
725 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
726 New file. Implement.
727 * javax/swing/colorchooser/DefaultPreviewPanel.java:
728 Ditto.
729 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
730 Ditto.
731 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
732 Ditto.
733 * javax/swing/plaf/basic/BasicArrowButton.java:
734 (getArrow): Fix size of upward pointing button.
735 * javax/swing/plaf/basic/BasicColorChooserUI.java:
736 Implement.
737 * javax/swing/plaf/basic/BasicSliderUI.java:
738 (getWidthOfWidestLabel): Use preferred dimensions.
739 (getHeightOfTallestLabel): Ditto.
740 * javax/swing/plaf/basic/BasicSpinnerUI.java:
741 Run Jalopy.
742 (mousePressed): Disable changes to spinner if it is not enabled.
743 * testsuite/Makefile.in: Regenerate.
744
745
746 2004-08-31 Michael Koch <konqueror@gmx.de>
747
748 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
749 javax/swing/plaf/basic/BasicTableUI.java:
750 Added copyright notice.
751
752 2004-08-31 Olga Rodimina <rodimina@redhat.com>
753
754 * Makefile.am: Added new files.
755 * Makefile.in: Regenerate.
756 * javax/swing/ComboBoxEditor.java: Added javadocs.
757 * javax/swing/ComboBoxModel.java: Likewise.
758 * javax/swing/DefaultComboBoxModel.java: Implemented.
759 * javax/swing/DefaultListCellRenderer.java: Added javadocs
760 and ran through jalopy to fix formatting style.
761 (getListCellRendererComponent): Use appropriate border
762 if renderer has focus and use noFocusBorder when it doesn't.
763 * javax/swing/JComboBox.java: Implemented.
764 * javax/swing/JList.java:
765 (locationToIndex): New Method. Implemented.
766 (indexToLocation): New Method.
767 * javax/swing/JPopupMenu.java:
768 (visible): New field.
769 (isVisible): Changed to use new field above.
770 (setVisible): Likewise.
771 * javax/swing/MutableComboBoxModel.java: Added javadocs.
772 * javax/swing/plaf/basic/BasicArrowButton.java:
773 (shadow): Changed default color to Color.gray.
774 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
775 UI delegate for JComboBox.
776 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
777 Popup menu containing list of JComboBox's items.
778 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
779 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
780 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
781 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
782 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
783 (popupMenuWillBecomeVisible): Set selected path to the first
784 element only if it is of type MenuElement. Also fix formatting
785 style.
786 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
787 methods signatures.
788
789 2004-08-31 Michael Koch <konqueror@gmx.de>
790
791 * javax/swing/text/AbstractDocument.java
792 (createBranchElement): Use new constructor of BranchElement.
793 (createLeafElement): Renamed arguments.
794 (getRootElements): Implemented.
795 (BranchElement.start): Removed.
796 (BranchElement.end): Likewise.
797 (BranchElement.BranchElement): Fixed arguments.
798 (BranchElement.getEndOffset): Reimplemented.
799 (BranchElement.getStartOffset): Likewis.
800 * javax/swing/text/DefaultCaret.java
801 (paint): Draw simple vertical line as caret instead of a rectangle.
802 * javax/swing/text/JTextComponent.java
803 (setText): Use doc directly.
804 * javax/swing/text/PlainView.java
805 (nextTabStop): Implemented.
806 * javax/swing/text/Utilities.java
807 (drawTabbedText): nextTabStop() returns an absolute x position.
808 (getTabbedTextWidth): Likewise.
809
810 2004-08-31 Graydon Hoare <graydon@redhat.com>
811
812 * java/awt/Component.java
813 (isFocusTraversable): Predicate on isLightweight()
814 (setFocusable): Set isFocusTraversableOverridden.
815 (requestFocus): Predicate peer dispatch on !isLightweight()
816 (requestFocusInWindow): Likewise.
817 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
818 * java/awt/Container.java
819 (dispatchEventImpl): Predicate on event mask.
820 (LightweightDispatcher): Remove focus machinery.
821 * java/awt/DefaultFocusTraversalPolicy.java
822 (accept): Expand predicate to include isFocusable().
823 * java/awt/DefaultKeyboardFocusManager.java:
824 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
825 * java/awt/KeyboardFocusManager.java
826 (redispatchEvent): Synchronize on event to prevent feedback.
827 * javax/swing/AbstractButton.java
828 (ButtonFocusListener): Remove class.
829 (init): Set focusPainted, focusable.
830 * javax/swing/ActionMap.java (get): Check parent for null.
831 * javax/swing/InputMap.java (get): Likewise.
832 * javax/swing/JComponent.java
833 (inputMap_whenFocused): New InputMap.
834 (inputMap_whenAncestorOfFocused): Likewise.
835 (inputMap_whenInFocusedWindow): Likewise.
836 (getActionForKeyStroke): Rewrite.
837 (getConditionForKeystroke): Likewise.
838 (ActionListenerProxy): New private class.
839 (setInputMap): Implement.
840 (getInputMap): Likewise.
841 (setActionMap): Likewise.
842 (getActionMap): Likewise.
843 (processComponentKeyEvent): New empty method.
844 (processKeyEvent): Implement.
845 (processKeyBinding): Likewise.
846 (resetKeyboardActions): Rewrite.
847 * javax/swing/KeyStroke.java: Rewrite.
848 * javax/swing/SwingUtilities.java
849 (notifyAction): Implement.
850 (replaceUIActionMap): Likewise.
851 (replaceUIInputMap): Likewise.
852 * javax/swing/plaf/basic/BasicButtonListener.java
853 (focusGained): Implement.
854 (focusLost): Repaint if focusPainted().
855 (installKeyboardActions): Install pressed / released actions.
856 (uninstallKeyboardActions): Implement.
857 * javax/swing/plaf/basic/BasicButtonUI.java
858 (focusColor): New field.
859 (installDefaults): Load focus color, install input map.
860 (installKeyboardActions): Implement.
861 (uninstallKeyboardActions): Likewise.
862 (paintFocus): Rewrite.
863 * javax/swing/plaf/basic/BasicLookAndFeel.java
864 (Button.focus): New default, midPurple.
865 * javax/swing/plaf/basic/BasicTextUI.java
866 (kit): Make static.
867 (installUI): Get doc from kit, load defaults.
868 (getKeymapName): Implement.
869 (createKeymap): Likewise.
870 (installKeyboardActions): Likewise.
871 (getInputMap): Likewise.
872 (getActionMap): Likewise.
873 (createActionMap): Likewise.
874 * javax/swing/text/AbstractDocument.java
875 (getStartPosition): Implement.
876 (getEndPosition): Likewise.
877 * javax/swing/text/DefaultEditorKit.java
878 (CopyAction): New class.
879 (CutAction): Likewise.
880 (DefaultKeyTypedAction): Likewise.
881 (InsertBreakAction): Likewise.
882 (InsertContentAction): Likewise.
883 (InsertTabAction): Likewise.
884 (PasteAction): Likewise.
885 (defaultActions): New static table.
886 (createCaret): Implement.
887 (getActions): Likewise.
888 * javax/swing/text/JTextComponent.java
889 (KeymapWrapper): New private class.
890 (KeymapActionMap): Likewise.
891 (DefaultKeymap): New class.
892 (keymaps): New static table.
893 (keymap): New field.
894 (getKeymap): Implement.
895 (removeKeymap): Likewise.
896 (addKeymap): Likewise.
897 (setKeymap): Likewise.
898 (loadKeymap): Likewise.
899 (getActions): Likewise.
900 (margin): New field.
901 (JTextComponent): Build and install default keymap.
902 * javax/swing/text/TextAction.java
903 (textAction): Call super properly.
904 (getTextComponent): Implement.
905 * javax/swing/text/Utilities.java
906 (drawTabbedText): Adjust position by ascent.
907
908 2004-08-31 David Jee <djee@redhat.com>
909
910 PR AWT/17156
911
912 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
913 (setEnabled): Make it a native method.
914 * java/awt/DefaultKeyboardFocusManager.java
915 (postProcessKeyEvent): Only post event if the menu item
916 is active.
917 * java/awt/MenuItem.java:
918 Private field 'enabled' should be true by default.
919 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
920 (setEnabled): New function.
921
922 2004-08-31 David Jee <djee@redhat.com>
923
924 PR AWT/17059
925
926 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
927 (nativeSetHelpMenu): New native method declaration.
928 (addHelpMenu): Call nativeSetHelpMenu().
929 (addMenu): Remove.
930 * java/awt/MenuBar.java
931 (setHelpMenu): Call addNotify() on the new help menu.
932 (add): Call addNotify() on the new menu.
933 (addNotify): Set the help menu if one exists.
934 * java/awt/peer/MenuBarPeer.java
935 (addMenu): Remove.
936 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
937 (nativeSetHelpMenu): New method.
938
939 2004-08-31 Graydon Hoare <graydon@redhat.com>
940
941 * Makefile.am: Add new files.
942 * Makefile.in: Regenerate.
943 * javax/swing/Box.java: Fix setting of layout in ctor.
944 * javax/swing/JScrollPane.java: Scroll headers as well.
945 * javax/swing/JTable.java: Reimplement.
946 * javax/swing/JViewPort.java: Only add non-null children.
947 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
948 * javax/swing/Timer.java: Fix stopping null waker.
949 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
950 * javax/swing/plaf/basic/BasicTableUI.java: New file.
951 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
952 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
953 * javax/swing/table/DefaultTableModel.java: Clean up.
954 * javax/swing/table/JTableHeader.java: Implement.
955
956 2004-08-31 Mark Wielaard <mark@klomp.org>
957
958 * javax/swing/JSpinner.java (getChangeListeners): Remove double
959 semi-colon.
960
961 2004-08-31 Mark Wielaard <mark@klomp.org>
962
963 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
964 Declare variables at top of functions/block.
965 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
966
967 2004-08-31 Mark Wielaard <mark@klomp.org>
968
969 * java/lang/Rectangle.java (intersects): Check r.width and r.height
970 first.
971
972 2004-08-31 Michael Koch <konqueror@gmx.de>
973
974 * javax/swing/text/PlainView.java
975 (selectedColor): New field.
976 (unselectedColor): Likewise.
977 (font): Likewise.
978 (updateMetrics): New method.
979 (lineToRect): Likewise.
980 (modelToView): Likewise.
981 (drawSelectedText): Use color from JTextComponent ad draw with
982 Utilities class.
983 (drawUnselectedText): Likewise.
984 (paint): Initialize helper fields.
985 * javax/swing/text/View.java
986 (getChildAllocation): New method.
987 (getViewIndex): Likewise.
988 (getToolTipText): Likewise.
989
990 2004-08-31 Michael Koch <konqueror@gmx.de>
991
992 * javax/swing/text/Utilities.java
993 (drawTabbedText): Reimplemented.
994 (getTabbedTextWidth): Likewise.
995
996 2004-08-31 Michael Koch <konqueror@gmx.de>
997
998 * javax/swing/plaf/basic/BasicTextUI.java
999 (installDefaults): Install caret and highlighter.
1000 (modelToView): Use Bias.Forward when calling sibling.
1001 * javax/swing/text/AbstractDocument.java
1002 (ElementEdit): Implements DocumentEvent.ElementChange.
1003 (ElementEdit.ElementEdit): New method.
1004 (ElementEdit.getChildrenAdded): Likewise.
1005 (ElementEdit.getChildrenRemoved): Likewise.
1006 (ElementEdit.getElement): Likewise.
1007 (ElementEdit.getIndex): Likewise.
1008 * javax/swing/text/DefaultCaret.java
1009 (color): Removed.
1010 (textComponent): Renamed from parent, made private.
1011 (selectionVisible): Renamed from vis_sel, made private.
1012 (blinkRate): Renamed from blink, made private.
1013 (magicCaretPosition): Renamed from magic, made private.
1014 (visible): Renamed from vis, made private.
1015 (dot): Made private.
1016 (mark): Likewise.
1017 (deinstall): Remove as MouseMotionListener.
1018 (install): Initialize textComponent first. Add as MouseMotionListener.
1019 (paint): Reimplemented.
1020 * javax/swing/text/JTextComponent.java
1021 (setCaret): Deinstall old caret, install new one and fire property
1022 change after setting property.
1023 (setHighlighter): Deinstall old highlighter, install new one and fire
1024 property change after setting property.
1025 (setCaretColor): Fire property change after setting property.
1026 (setDisabledTextColor): Likewise.
1027 (setSelectedTextColor): Likewise.
1028 (setSelectionColor): Likewise.
1029 (modelToView): New method.
1030
1031 2004-08-31 Michael Koch <konqueror@gmx.de>
1032
1033 * javax/swing/text/AbstractDocument.java
1034 (getText): Simplified.
1035 * javax/swing/text/Segment.java
1036 (current): New field.
1037 (current): Reimplemented.
1038 (first): Likewise.
1039 (getIndex): Likewise.
1040 (last): Likewise.
1041 (next): Likewise.
1042 (previous): Likewise.
1043 (setIndex): Likewise.
1044
1045 2004-08-31 Michael Koch <konqueror@gmx.de>
1046
1047 * javax/swing/plaf/basic/BasicButtonUI.java
1048 (defaultTextIconGap): Made protected.
1049 (defaultTextShiftOffset): Likewise.
1050 (textShiftOffset): New field.
1051 (clearTextShiftOffset): New method.
1052 (getTextShiftOffset): Likewise.
1053 (setTextShiftOffset): Likewise.
1054
1055 2004-08-31 Michael Koch <konqueror@gmx.de>
1056
1057 * javax/swing/plaf/basic/BasicTextUI.java
1058 (installUI): Add eventHandler as property listener.
1059 (uninstallUI): remove eventHandler as propert listener.
1060 (installDefaults): Added comment.
1061 (installListeners): Likewise.
1062 (installKeyboardActions): Likewise.
1063 (uninstallDefaults): Likewise.
1064 (uninstallListeners): Likewise.
1065 (uninstallKeyboardActions): Likewise.
1066
1067 2004-08-31 Michael Koch <konqueror@gmx.de>
1068
1069 * javax/swing/text/AbstractDocument.java:
1070 Fixed some typos in comments.
1071 (insertString): Reimplemented.
1072 (remove): Likewise.
1073 (replace): New method.
1074 (children): Dont use fully qualified class name.
1075 (DefaultDocumentEvent.offset): Renamed from off.
1076 (DefaultDocumentEvent.length): Renamed from len.
1077 (DefaultDocumentEvent.type): New field.
1078 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1079 (DefaultDocumentEvent.getType): Implemented.
1080
1081 2004-08-31 Michael Koch <konqueror@gmx.de>
1082
1083 * javax/swing/plaf/basic/BasicTextUI.java
1084 (RootView.textComponent): Removed.
1085 (RootView.RootView): Don't initialize textComponent.
1086 (RootView.getViewFactory): New method.
1087 (EventHandler): New inner class.
1088 (rootView): Initialize at instance creation.
1089 (eventHandler): New field.
1090 (installUI): Don't create view hierarchy directly,
1091 call modelChanged() instead.
1092 (modelChanged): New method.
1093 * javax/swing/text/JTextComponent.java
1094 (setDocument): Fire property change event.
1095
1096 2004-08-31 Michael Koch <konqueror@gmx.de>
1097
1098 * javax/swing/plaf/basic/BasicTextUI.java
1099 (RootView.paint): Removed debug output.
1100 (paintSafely): Draw highlighter before text.
1101 (paintBackground): Use background color of text component.
1102 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1103 Reformatted.
1104
1105 2004-08-31 Michael Koch <konqueror@gmx.de>
1106
1107 * javax/swing/plaf/basic/BasicToolBarUI.java
1108 (BasicToolBarUI): Fixed arguments for constructor.
1109 (createUI): Fixed creation of object.
1110
1111 2004-08-31 Michael Koch <konqueror@gmx.de>
1112
1113 * javax/swing/DefaultListSelectionModel.java
1114 (fireValueChanged): Renamed from fireSelectionValueChanged,
1115 made protected.
1116
1117 2004-08-31 Michael Koch <konqueror@gmx.de>
1118
1119 * javax/swing/text/TabSet.java
1120 (TabSet): Implements java.io.Serializable.
1121 * javax/swing/text/TabStop.java
1122 (TabStop): Implements java.io.Serializable.
1123 (TabStop): Made public.
1124
1125 2004-08-31 Michael Koch <konqueror@gmx.de>
1126
1127 * javax/swing/JComponent.java
1128 (setUI): Fire PropertyChange.
1129 * javax/swing/JLabel.java
1130 (text): Renamed from labelText.
1131 (horizontalAlignment): New default vlaue.
1132 (icon): Renamed from activeIcon.
1133 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1134 (displayedMnemonicIndex): Renamed from underlineChar.
1135 (setDisplayedMnemonic): Reimplemented.
1136 * javax/swing/JRadioButton.java
1137 (JRadioButton): New constructors.
1138 * javax/swing/JTextField.java
1139 (JTextField): Throw exception if colums < 0, initialitialz
1140 this.columns directly and initialize document with text conditionally.
1141
1142 2004-08-31 Michael Koch <konqueror@gmx.de>
1143
1144 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1145 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1146 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1147 * javax/swing/text/FieldView.java
1148 (paint): Just call super method for now.
1149 * Makefile.am: Added new files.
1150 * Makefile.in: Regenerated.
1151
1152 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1153
1154 * javax/swing/AbstractSpinnerModel.java,
1155 javax/swing/JSpinner.java,
1156 javax/swing/SpinnerNumberModel.java,
1157 javax/swing/plaf/basic/BasicSpinnerUI.java:
1158 New files.
1159 * javax/swing/plaf/basic/BasicLookAndFeel.java
1160 (initClassDefaults): Added defaults for BasicSpinnerUI.
1161
1162 2004-08-31 Michael Koch <konqueror@gmx.de>
1163
1164 * Makefile.am: Added new files.
1165 * Makefile.in: Regenerated.
1166
1167 2004-08-31 Michael Koch <konqueror@gmx.de>
1168
1169 * javax/swing/TransferHandler.java,
1170 javax/swing/plaf/basic/ComboPopup.java: New files
1171 * Makefile.am: Added javax/swing/TransferHandler.java and
1172 javax/swing/plaf/basic/ComboPopup.java
1173 * Makefile.in: Regenerated.
1174
1175 2004-08-31 Roman Kennke <roman@ontographics.com>
1176
1177 * javax/swing/text/Utilities.java: New file.
1178
1179 2004-08-31 Michael Koch <konqueror@gmx.de>
1180
1181 * Makefile.am: Added javax/swing/text/Utilities.java.
1182 * Makefile.in: Regenerated.
1183
1184 2004-08-31 Graydon Hoare <graydon@redhat.com>
1185
1186 * javax/swing/text/SimpleAttributeSet.java: New file.
1187 * javax/swing/text/StyleConstants.java: New file.
1188 * javax/swing/text/StyleContext.java: New file.
1189 * javax/swing/text/TabSet.java: New file.
1190 * javax/swing/text/TabStop.java: New file.
1191 * javax/swing/text/AbstactDocument.java:
1192 (AbstractElement): Implement attribute support.
1193 * javax/swing/text/AttributeSet.java
1194 (NameAttribute): New static field.
1195 (ResolveAttribute): New static field.
1196 * Makefile.am: Update for new files.
1197 * Makefile.in: Regenerate.
1198
1199 2004-08-31 Craig Black <craig.black@aonix.com>
1200
1201 * gnu/java/awt/peer/gtk/GdkGraphics.java
1202 (drawImage): Add support for scaling pixmaps.
1203 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1204 (copyAndScalePixmap): New native method.
1205
1206 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1207
1208 PR AWT/16121
1209 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1210 type-punning compiler warnings using unions.
1211 (throw): Replace bzero with memset.
1212
1213 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1214 Thomas Fitzsimmons <fitzsim@redhat.com>
1215
1216 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1217 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1218 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1219 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1220 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1221
1222 2004-08-31 Mark Wielaard <mark@klomp.org>
1223
1224 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1225 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1226 and stdlib.h, not gtkpeer.h.
1227 (*vm): New static variable.
1228 (areaPreparedID): Make static.
1229 (areaUpdatedID): Likewise.
1230 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1231 (area_prepared): Likewise.
1232 (area_updated): Likewise.
1233 (closed): Likewise.
1234 (initStaticState): Initialize *vm javaVM.
1235 (pumpBytes): Use given env, not global gdk_env.
1236
1237 2004-08-31 Mark Wielaard <mark@klomp.org>
1238
1239 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1240 comments.
1241
1242 2004-08-31 Sven de Marothy <sven@physto.se>
1243
1244 * java/awt/geom/CubicCurve2D.java: Reindent.
1245 (contains): Implemented.
1246 (intersects): Implemented.
1247 * java/awt/geom/QuadCurve2D.java: Likewise.
1248 * java/awt/geom/GeneralPath.java: Reindent and document.
1249 Fully (re)implemented using separate xpoints and ypoints
1250 float[] coords.
1251 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1252
1253 2004-08-31 Michael Koch <konqueror@gmx.de>
1254
1255 * javax/swing/JMenuItem.java
1256 (getMenuDragMouseListeners): New method.
1257 (getMenuKeyListeners): Likewise.
1258
1259 2004-08-31 Michael Koch <konqueror@gmx.de>
1260
1261 * javax/swing/AbstractButton.java
1262 (model): Made protected.
1263 (actionListener): Likewise.
1264 (changeListener): Likewise.
1265 (itemListener): Likewise.
1266 (multiClickThreshhold): New field.
1267 (getActionListeners): New method.
1268 (getChangeListeners): Likewise.
1269 (getItemListeners): Likewise.
1270 (fireItemStateChanged): Simplified implementation.
1271 (fireActionPerformed): Likewise.
1272 (fireStateChanged): Likewise.
1273 (getMultiClickThreshhold): New method.
1274 (setMultiClickThreshhold): Likewise.
1275
1276 2004-08-31 Tom Tromey <tromey@redhat.com>
1277
1278 * java/awt/image/Kernel.java (clone): Use super.clone().
1279
1280 2004-08-31 David Jee <djee@redhat.com>
1281
1282 PR AWT/16682
1283 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1284 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1285 (nativeSetIconImageFromData): New native method declaration.
1286 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1287 * gnu/java/awt/peer/gtk/GtkImage.java
1288 (getPixelCache): New method.
1289 (getColorModel): New method.
1290 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1291 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1292 (free_pixbuf_data): New helper function.
1293 (nativeSetIconImageFromData): New function.
1294
1295 2004-08-31 Graydon Hoare <graydon@redhat.com>
1296
1297 PR SWING/16576
1298 * javax/swing/JLayeredPane.java
1299 (setLayer): Permit changing layer after addition.
1300 (setPosition): Permit over-length positions.
1301 (layerToRange): Compare intValue()s.
1302 * javax/swing/Box.java (createHorizontalBox): Implement.
1303 (createRigidArea): Likewise.
1304 (createVerticalBox): Likewise.
1305
1306 2004-08-31 Kim Ho <kho@redhat.com>
1307
1308 * java/awt/Component.java:
1309 (processMouseEvent): Consume event after
1310 listeners process it.
1311 (processMouseMotionEvent): ditto.
1312 (processMouseWheelEvent): ditto.
1313 * java/awt/Container.java:
1314 (acquireComponentForMouseEvent):
1315 Do not dispatch to events that have been
1316 removed from the Container.
1317 (handleEvent): Consume the MouseEvents.
1318 * javax/swing/RepaintManager.java:
1319 (paintDirtyRegions): Do not add to list of
1320 damaged areas if the component has no root.
1321
1322 2004-08-31 Michael Koch <konqueror@gmx.de>
1323
1324 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1325
1326 2004-08-31 Mark Wielaard <mark@klomp.org>
1327
1328 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1329 null when a MissingResourceException is thrown. Should never happen.
1330
1331 2004-08-31 Mark Wielaard <mark@klomp.org>
1332
1333 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1334 when argument is null.
1335
1336 2004-08-31 Mark Wielaard <mark@klomp.org>
1337
1338 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1339 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1340 Define hid at start of function.
1341 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1342 Likewise.
1343
1344 2004-08-31 Mark Wielaard <mark@klomp.org>
1345
1346 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1347 * javax/swing/JButton.java: Reindent.
1348 * javax/swing/JCheckBox.java: Reindent.
1349
1350 2004-08-31 Mark Wielaard <mark@klomp.org>
1351
1352 * Makefile.am (gtk_c_source_files): Added
1353 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1354 (gtk_awt_peer_sources): Added
1355 gnu/java/awt/peer/gtk/GThreadMutex.java and
1356 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1357 * Makefile.in: Regenerated.
1358
1359 2004-08-31 Archie Cobbs <archie@dellroad.org>
1360
1361 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1362
1363 2004-08-31 Steven Augart <augart@watson.ibm.com>
1364
1365 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1366 Added jfieldID, jmethodID.
1367
1368 2004-08-31 Mark Wielaard <mark@klomp.org>
1369
1370 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1371 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1372 gdk_env before calling any gdk or gtk function.
1373
1374 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1375 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1376 (run): Set gtkInitCalled.
1377
1378 2004-08-31 Steven Augart <augart@watson.ibm.com>
1379
1380 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1381 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1382
1383 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1384 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1385 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1386 init_glib_threads.
1387 (init_glib_threads): New function.
1388
1389 2004-08-31 Mark Wielaard <mark@klomp.org>
1390
1391 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1392 PRIORITY when not already defined in header file.
1393
1394 2004-08-31 Mark Wielaard <mark@klomp.org>
1395
1396 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1397 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1398
1399 2004-08-31 Steven Augart <augart@watson.ibm.com>
1400
1401 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1402 Implemented missing functions for GTK2.
1403 Added error handling.
1404 Renamed static functions out of the g_ namespace.
1405 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1406 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1407 Rewrote global-reference code.
1408 Eliminated cascading errors.
1409 (mutex_trylock_jni_impl) Fully implemented.
1410 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1411 resolution.
1412 (setup_cache) New function.
1413 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1414 bug where they were not unlocking the GMutex associated with the
1415 condition variable during the wait on that condition variable.
1416
1417 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1418 native/jni/gtk-peer/gthread-jni.c,
1419 native/jni/gtk-peer/gthread-jni.h
1420 (g_thread_jni_functions): Renamed to ...
1421 (portable_native_sync_jni_functions): this name.
1422 (gdk_vm): Renamed to...
1423 (the_vm): this name.
1424
1425 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1426 (gdk_vm): Removed duplicate definition.
1427 (gtkInit): Removed stray message to stdout.
1428 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1429 (gtkInit): Fix a const assignment bug.
1430 (gtkInit): Simplified code.
1431
1432 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1433 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1434 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1435 gnu/java/awt/peer/gtk/GThreadMutex.java:
1436 New files.
1437
1438 2004-08-31 Mark Wielaard <mark@klomp.org>
1439
1440 * javax/swing/Box.java: Put FIXME comment above class declaration.
1441 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1442 * javax/swing/JCheckBox.java: Likewise.
1443 * javax/swing/JDialog.java: Likewise.
1444 * javax/swing/JRadioButton.java: Likewise.
1445 * javax/swing/JToggleButton.java: Likewise.
1446 * javax/swing/UIManager.java: Likewise.
1447 * javax/swing/border/TitledBorder.java: Likewise.
1448 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1449 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1450 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1451 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1452 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1453 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1454 * javax/swing/text/JTextComponent.java: Likewise.
1455
1456 2004-08-31 David Jee <djee@redhat.com>
1457
1458 PR AWT/16682
1459 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1460 (setIconImage): Add a FIXME for unhandled cases.
1461
1462 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1463
1464 PR AWT/16040
1465 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1466 getModifiers. Replace old button masks with new ones.
1467 * gnu/awt/xlib/XEventLoop.java: Likewise.
1468 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1469 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1470 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1471 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1472 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1473 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1474 * java/awt/Component.java: Replace old modifier masks with new
1475 ones.
1476 * java/awt/Container.java: Call getModifiersEx, not
1477 getModifiers.
1478 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1479 old modifier masks.
1480 * javax/swing/JMenuItem.java: Replace old button masks with new
1481 ones.
1482 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1483 getModifiers.
1484 * javax/swing/SwingUtilities.java: Likewise.
1485 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1486 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1487 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1488 mask macros with new ones.
1489 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1490 macros with new ones representing new masks.
1491
1492 2004-08-31 Craig Black <craig.black@aonix.com>
1493
1494 * gnu/java/awt/peer/gtk/GdkGraphics.java
1495 (drawRoundRect): Implemented.
1496 (fillRoundRect): Implemented.
1497 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1498 (drawRoundRect): Reimplemented to match GdkGraphics.
1499 (fillRoundRect): Reimplemented to match GdkGraphics.
1500
1501 2004-08-31 Mark Wielaard <mark@klomp.org>
1502
1503 * Makefile.in: Regenerated.
1504
1505 2004-08-31 Michael Koch <konqueror@gmx.de>
1506
1507 * gnu/java/awt/EmbeddedWindow.java
1508 (addNotify): Use AccessController to allow execution of privileged
1509 code.
1510
1511 2004-08-31 Michael Koch <konqueror@gmx.de>
1512
1513 * gnu/java/awt/EmbeddedWindow.java
1514 (static): Removed.
1515 (addNotify): Set peer via reflection.
1516 (setWindowPeer): Removed.
1517 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1518 * Makefile.am (nat_source_files):
1519 Removed gnu/java/awt/natEmbeddedWindow.cc.
1520
1521 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1522
1523 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1524 and gnu/java/security/action/SetAccessibleAction.java.
1525
1526 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1527
1528 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1529 Renamed from 'setName'. New 2-argument form with default value.
1530 (run): Pass default 'value' parameter to System.getProperty().
1531 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1532 typos.
1533
1534 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1535
1536 * gnu/java/security/action/GetPropertyAction.java: New class.
1537 * gnu/java/security/action/SetAccessibleAction.java: New class.
1538
1539 2004-08-31 David Jee <djee@redhat.com>
1540
1541 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1542 (setIconImage): Check if image is null.
1543
1544 2004-08-31 David Jee <djee@redhat.com>
1545
1546 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1547 (create): Set the icon image.
1548 (nativeSetIconImage): New native method declaration.
1549 (setIconImage): Implement.
1550 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1551 (nativeSetIconImage): New function.
1552
1553 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1554
1555 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1556 (filenameFilterCallback): Declare local variable accepted before use.
1557
1558 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1559
1560 * gnu/java/awt/ComponentDataBlitOp.java:
1561 Cleaned up imports.
1562
1563 2004-08-31 Tom Tromey <tromey@redhat.com>
1564
1565 * gnu/java/awt/peer/GLightweightPeer.java,
1566 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1567 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1568 javax/swing/JScrollPane.java: Removed
1569 redundant imports.
1570
1571 2004-08-31 David Jee <djee@redhat.com>
1572
1573 * java/awt/DefaultKeyboardFocusManager.java
1574 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1575 event. Fix shift modifier checking.
1576 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1577 (accel_attach): Remove.
1578 (setupAccelGroup): Remove calls to accel_attach.
1579
1580 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1581
1582 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1583 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1584
1585 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1586 GtkArgList.java.
1587 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1588 * Makefile.in: Regenerate.
1589 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1590 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1591 (create(String)): New method.
1592 (create): Call new create method.
1593 (getArgs): Remove method.
1594 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1595 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1596 (nativeCreate): Rename to create.
1597 (gtkSetLabel): Rename to gtkButtonSetLabel.
1598 (gtkToggleButtonSetActive): New method.
1599 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1600 (setState): Replace set call with gtkToggleButtonSetActive.
1601 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1602 (getArgs): Remove method.
1603 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1604 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1605 (gtkWidgetSetSensitive): New method.
1606 (gtkWidgetSetParent): Likewise.
1607 (GtkComponentPeer): Call setParent, setComponentBounds and
1608 setVisibleAndEnabled.
1609 (setParent): New method.
1610 (setComponentBounds): New method.
1611 (setVisibleAndEnabled): New method.
1612 (setEnabled): Call gtkWidgetSetSensitive.
1613 (getArgs): Remove method.
1614 Remove all set methods.
1615 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1616 gtkWindowSetModal, setTitle and setResizable.
1617 (getArgs): Remove method.
1618 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1619 (setComponentBounds): New method.
1620 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1621 Replace set call with gtkWindowSetResizable.
1622 (getArgs): Remove method.
1623 (create): Call setTitle and setResizable.
1624 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1625 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1626 (gtkWindowSetTitle): New method.
1627 (gtkWindowSetResizable): New method.
1628 (gtkWindowSetModal): New method.
1629 (setParent): New method.
1630 (setVisibleAndEnabled): New method.
1631 (getArgs): Remove method.
1632 (setTitle): Call gtkWindowSetTitle.
1633 (setResizable): Call gtkWindowSetResizable.
1634 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1635 and off locking instrumentation.
1636
1637 2004-08-31 Kim Ho <kho@redhat.com>
1638
1639 * Makefile.am: Add new file.
1640 * Makefile.in: Regenerate.
1641 * gcj/Makefile.in: Regenerate
1642 * include/Makefile.in:
1643 * java/awt/Container.java:
1644 (acquireComponentForMouseEvent): Respect
1645 the event mask when looking for candidate.
1646 * javax/swing/JComponent.java:
1647 Remove toolTip field.
1648 (createToolTip): Create a tooltip on demand.
1649 (setToolTipText): Register with the ToolTipManager.
1650 (getToolTipText(MouseEvent)): Return getToolTipText().
1651 * javax/swing/JToolTip.java: Implement.
1652 * javax/swing/Timer.java: Jalopy.
1653 (restart): Call stop, then start.
1654 (stop): Interrupt the timer rather than wait for
1655 the timer to come to a stop naturally.
1656 * javax/swing/ToolTipManager.java: Implement.
1657 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1658 Change ToolTip.background color.
1659 * javax/swing/plaf/basic/BasicToolTipUI.java:
1660 Implement.
1661 * testsuite/Makefile.in: Regenerate
1662
1663 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
1664
1665 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1666 constructor param comments.
1667
1668 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1669
1670 * java/awt/Component.java: Document AWT 1.0 event handler
1671 methods.
1672
1673 2004-08-31 Roman Kennke <roman@ontographics.com>
1674
1675 * javax/swing/Box.java:
1676 (createGlue): Implemented
1677 (createHorizontalGlue): Implemented
1678 (createHorizontalStrut): Implemented
1679 (createVerticalGlue): Implemented
1680 (createVerticalStrut): Implemented
1681
1682 2004-08-31 David Jee <djee@redhat.com>
1683
1684 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1685 (GtkChoicePeer): Do not automatically select first item.
1686 (getHistory): Remove.
1687 (nativeGetSelected): New method.
1688 (nativeRemoveAll): New method.
1689 (add): Use nativeGetSelected() instead of getHistory().
1690 (remove): Likewise.
1691 (removeAll): Call nativeRemoveAll().
1692 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1693 (create): Migrate to GtkComboBox.
1694 (append): Likewise.
1695 (nativeAdd): Likewise.
1696 (nativeRemove): Likewise.
1697 (select): Likewise.
1698 (nativeRemoveAll): New method.
1699 (nativeGetSelected): New method.
1700 (selection_changed): New method.
1701 (getHistory): Remove.
1702 (item_activate): Remove.
1703 (item_removed): Remove.
1704 (connect_choice_item_selectable_hook): Remove.
1705
1706 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1707
1708 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1709 variable in setEditable call.
1710
1711 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1712 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1713 (gtkWidgetSetBackground): New method.
1714 (gtkWidgetSetForeground): Likewise.
1715 (create): Set peer's editable state based on awtComponent's.
1716
1717 * java/awt/Button.java (Button()): Use empty string rather than
1718 null in no-label constructor.
1719
1720 2004-08-31 Roman Kennke <roman@ontographics.com>
1721
1722 * javax/swing/BoxLayout.java: Reimplement.
1723
1724 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1725
1726 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1727 gnu_java_awt_peer_gtk_GdkGraphics.c
1728 (initState(GtkComponentPeer)): Don't return array of colour
1729 values.
1730 (GdkGraphics(int,int)): Set default font to size 12.
1731 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1732 component's foreground colour.
1733 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1734 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1735 (initState(GtkComponentPeer)): Don't return array of colour
1736 values.
1737 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1738 colours to component's colours.
1739 (current_colors_of_widget): Remove function.
1740 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1741 Return a new graphics object.
1742 * java/awt/Font.java (toString): Fix format.
1743 * java/awt/Graphics.java (toString): Likewise.
1744
1745 2004-08-31 Craig Black <craig.black@aonix.com>
1746
1747 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1748 (addTearOff): New function.
1749 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1750 New native method.
1751 (init): Call addTearOff() when menu.isTearOff().
1752
1753 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1754
1755 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
1756 Default implementation.
1757 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
1758 Implement using GdkPixbufDecoder.
1759
1760 2004-08-31 David Jee <djee@redhat.com>
1761
1762 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1763 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
1764 setting the size of GtkFileDialogPeers.
1765 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1766 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
1767 use their default sizes rather than their natural requisitions.
1768
1769 2004-08-31 Michael Koch <konqueror@gmx.de>
1770
1771 * javax/swing/JFormattedTextField.java
1772 (JFormattedTextField): Implemented.
1773 * javax/swing/text/DefaultEditorKit.java
1774 (BeepAction): New inner class.
1775 * javax/swing/text/Segment.java
1776 (partialReturn): New field.
1777 (setPartialReturn): New method.
1778 (isPartialReturn): Likewise.
1779 * javax/swing/text/View.java
1780 (createFragment): Fixed typo.
1781 (getStartOffset): New method.
1782 (getEndOffset): Likewise.
1783
1784 2004-08-31 Michael Koch <konqueror@gmx.de>
1785
1786 * javax/swing/table/DefaultTableColumnModel.java
1787 (serialVersionUID): Made private.
1788 (listenerList): Initialize.
1789 (changeEvent): Initialize.
1790 * javax/swing/table/JTableHeader.java
1791 (JTableHeader): New constructors.
1792 (createDefaultColumnModel): New method.
1793 * javax/swing/table/TableColumn.java
1794 (setHeaderRenderer): Simplified code.
1795 (setCellRenderer): Likewise.
1796 (setWidth): Likewise.
1797
1798 2004-08-31 Tom Tromey <tromey@redhat.com>
1799
1800 * java/text/AttributedString.java (AttributedString): Use
1801 ArrayList to build array of attribute ranges. Don't use
1802 `attribs' before it is set.
1803
1804 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1805
1806 * HACKING: Remove reference to special automake. No longer needed.
1807
1808 2004-08-30 Tom Tromey <tromey@redhat.com>
1809
1810 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
1811 return result from `add'.
1812
1813 2004-08-30 Tom Tromey <tromey@redhat.com>
1814
1815 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
1816
1817 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1818
1819 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
1820
1821 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
1822
1823 * java/io/File.java File(String,String): Fixed handling of empty
1824 path.
1825
1826 2004-08-30 Casey Marshall <csm@gnu.org>
1827
1828 Author e-mail updated for all files.
1829 * gnu/java/security/OID.java (equals): Test if the aurgment is an
1830 instance of OID.
1831 (compareTo): Use `equals'.
1832 * gnu/java/security/der/BitString.java (equals): Test if the
1833 argument is an instance of BitString.
1834 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
1835 class final. Made fields private.
1836 (<init>): New constructor.
1837 (skip): New method.
1838 (makeString): Made static; don't use NIO.
1839 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
1840 * gnu/java/security/der/DERWriter.java: Fixed imports.
1841 (writeString): Don't use NIO.
1842 (toIso88591, toUtf16Be, toUtf8): New methods.
1843 * gnu/java/security/der/DERValue.java: Formatting changes only.
1844 * gnu/java/security/der/DER.java: Likewise.
1845
1846 2004-08-30 Tom Tromey <tromey@redhat.com>
1847
1848 * java/nio/CharBuffer.java (put): Fix typo.
1849 * java/nio/DoubleBuffer.java (put): Fix typo.
1850 * java/nio/FloatBuffer.java (put): Fix typo.
1851 * java/nio/IntBuffer.java (put): Fix typo.
1852 * java/nio/LongBuffer.java (put): Fix typo.
1853 * java/nio/ShortBuffer.java (put): Fix typo.
1854
1855 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
1856
1857 * java/nio/ByteBuffer.java (put): Fix typo.
1858
1859 2004-08-30 Casey Marshall <csm@gnu.org>
1860
1861 * java/security/DummyKeyPairGenerator.java (clone): Removed
1862 useless instanceof check.
1863 * java/security/DummyMessageDigest.java (clone): Likewise.
1864 * java/security/DummySignature.java (clone): Likewise.
1865 * java/security/MessageDigest.java (clone): Remove useless
1866 instanceof check.
1867 * java/security/MessageDigestSpi.java (clone): Likewise.
1868 * java/security/Signature.java (clone): Provide meaningful
1869 implementation.
1870 * java/security/SignatureSpi.java (clone): Likewise.
1871
1872 2004-08-29 Mark Wielaard <mark@klomp.org>
1873
1874 * java/util/Arrays.java
1875 (sort(byte[], int, int)): Check fromIndex < 0.
1876 (sort(char[], int, int)): Likewise.
1877 (sort(short[], int, int)): Likewise.
1878 (sort(int[], int, int)): Likewise.
1879 (sort(long[], int, int)): Likewise.
1880 (sort(float[], int, int)): Likewise.
1881 (sort(double[], int, int)): Likewise.
1882 (sort(Object[], int, int, Comparator)): Likewise.
1883 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
1884 (qsort(char[], int, int)): Likewise.
1885 (qsort(short[], int, int)): Likewise.
1886 (qsort(int[], int, int)): Likewise.
1887 (qsort(long[], int, int)): Likewise.
1888 (qsort(float[], int, int)): Likewise.
1889 (qsort(double[], int, int)): Likewise.
1890
1891 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
1892
1893 * java/util/AbstractCollection.java, java/util/AbstractList.java,
1894 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
1895 java/util/ArrayList.java, java/util/Arrays.java,
1896 java/util/BitSet.java, java/util/Calendar.java,
1897 java/util/Collection.java, java/util/ListIterator.java,
1898 java/util/Map.java, java/util/SortedSet.java:
1899 Added additional exceptions to documentation, along
1900 with some additions and corrections.
1901
1902 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
1903
1904 * configure.ac: Handle --enable-gc-debug.
1905 * configure: Regenerate.
1906 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
1907 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
1908 Rearrange include file order.
1909 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
1910 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
1911 (disable_gc_mutex): Delete along with all references.
1912 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
1913 adjust for debug header size.
1914 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
1915 debug case.
1916 (_Jv_AllocArray): Declare min_heap_addr only if needed.
1917 (gcj_describe_type_fn): New.
1918 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
1919 Register gcj_describe_type_fn.
1920 * include/boehm-gc.h:
1921 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
1922 Don't define, but declare, for debug case.
1923 * java/lang/natObject.cc:
1924 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
1925
1926 2004-08-26 Mark Wielaard <mark@klomp.org>
1927
1928 Fixes PR libgcj/17002:
1929 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
1930 a TimeZoneId string and then try to convert that to a TimeZone with
1931 getDefaultSystemTimeZone(String).
1932 (timezones0): Changed type from Hashtable to HashMap.
1933 (timezones): Create HashMap, not Hashtable.
1934 (getDefaultTimeZone): New method, rewritten from CNI version.
1935 (readTimeZoneFile): New method.
1936 (readtzFile): Likewise.
1937 (skipFully): Likewise.
1938 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
1939 getDefaultTimeZoneId and rewritten.
1940 (getDefaultTimeZoneId): Rewritten in java.
1941
1942 2004-08-25 David Daney <daney@avtrex.com>
1943
1944 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
1945 * Makefile.in: Regenerated.
1946
1947 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
1948
1949 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
1950 only if jvmpi is enabled.
1951 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
1952 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
1953 (_Jv_AllocString): Likewise.
1954 (_Jv_AllocPtrFreeObject): Likewise.
1955
1956 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
1957
1958 * defineclass.cc: Include <stdio.h>.
1959 * java/lang/natClassLoader.cc: Include <stdio.h>.
1960
1961 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
1962 Michael Koch <konqueror@gmx.de>
1963
1964 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
1965 * Makefile.in: Regenerated.
1966
1967 2004-08-20 Michael Koch <konqueror@gmx.de>
1968
1969 * configure.ac: Replaced all AC_TRY_COMPILE macros with
1970 AC_COMPILE_IFELSE macros.
1971
1972 2004-08-20 Michael Koch <konqueror@gmx.de>
1973
1974 * configure.in: Renamed to configure.ac.
1975 * configure.ac: New file.
1976 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
1977 include/config.h.in, testsuite/Makefile.in: Regenerated.
1978
1979 2004-08-20 Michael Koch <konqueror@gmx.de>
1980
1981 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
1982 * aclocal.m4, configure: Regenerated.
1983
1984 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
1985 Michael Koch <konqueror@gmx.de>
1986
1987 * configure.in, Makefile.am: Ported to automake 1.9.
1988 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
1989 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
1990 Regenerated.
1991
1992 2004-08-19 Tom Tromey <tromey@redhat.com>
1993
1994 * java/net/DatagramSocket.java: Fixed typo.
1995
1996 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1997
1998 PR libgcj/17081
1999 * java/net/URI.java (string): New field. Make all other fields
2000 transient.
2001 (readObject): Implemented.
2002 (writeObject): Implemented.
2003 (URI): Set 'string'.
2004
2005 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2006
2007 PR libgcj/17079
2008 * java/util/logging/Handler.java (isLoggable): Accept record if its
2009 log level equals the threshold level. From Robin Green.
2010
2011 2004-08-18 David Daney <ddaney@avtrex.com>
2012
2013 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2014 instead of sigwait.
2015
2016 2004-08-17 Michael Koch <konqueror@gmx.de>
2017
2018 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2019 * Makefile.in: Regenerated.
2020
2021 2004-08-16 Tom Tromey <tromey@redhat.com>
2022
2023 PR java/8473:
2024 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2025
2026 2004-08-16 Michael Koch <konqueror@gmx.de>
2027
2028 * Makefile.am
2029 (math_c_files): Renamed from c_files.
2030 (math_c_source_files): Renamed from c_source_files.
2031 * Makefile.in,
2032 gcj/Makefile.in,
2033 include/Makefile.in,
2034 testsuite/Makefile.in: Regenerated.
2035
2036 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2037
2038 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2039 to avoid autoconf warning.
2040 * configure: Rebuilt.
2041
2042 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2043
2044 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2045 localhostAddress to loopbackAddress.
2046 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2047
2048 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2049
2050 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2051 boehm-gc's include dirs.
2052 * configure: Rebuilt.
2053 * include/boehm-gc.h: Include gc_config.h.
2054
2055 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2056
2057 * java/net/InetAddress.java (loopbackAddress): Renamed from
2058 localhostAddress.
2059 (getByName): Return loopback address for null hostname, without
2060 security check. Use lookup(), not getAllByName.
2061 (getAllByName): Return loopback address for null hostname, without
2062 security check.
2063 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2064 check here.
2065
2066 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2067
2068 PR libgcj/17020
2069 Reported by Robin Green.
2070 * defineclass.cc (handleField): Don't throw exception on unrecognised
2071 modifier. Add FIXME comments for spec compliance.
2072 (handleMethod): Likewise.
2073
2074 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2075
2076 PR libgcj/16662
2077 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2078 (Almost everywhere): add LOG calls, fix, add comments.
2079 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2080 Add explicit check for LOCKED bit in slow case (PR 16662).
2081 (_Jv_MonitorExit): Add casts in debug-only code.
2082 Always release LOCKED bit before throwing exception.
2083 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2084 isn't. Handle easy cases without lock acquisition.
2085 (Object::wait): Use NotifyAll for lock inflation.
2086
2087 2004-08-12 David Daney <ddaney@avtrex.com>
2088
2089 * testsuite/libjava.lang/Process_1.java: New test.
2090 * testsuite/libjava.lang/Process_2.java: New test.
2091 * testsuite/libjava.lang/Process_3.java: New test.
2092 * testsuite/libjava.lang/Process_4.java: New test.
2093 * testsuite/libjava.lang/Process_5.java: New test.
2094 * testsuite/libjava.lang/Process_6.java: New test.
2095 * testsuite/libjava.lang/Process_1.out: Expected result.
2096 * testsuite/libjava.lang/Process_2.out: Expected result.
2097 * testsuite/libjava.lang/Process_3.out: Expected result.
2098 * testsuite/libjava.lang/Process_4.out: Expected result.
2099 * testsuite/libjava.lang/Process_5.out: Expected result.
2100 * testsuite/libjava.lang/Process_6.out: Expected result.
2101
2102 2004-08-12 David Daney <ddaney@avtrex.com>
2103
2104 PR libgcj/11801
2105 * java/lang/PosixProcess.java: Rewrote.
2106 * java/lang/natPosixProcess.cc: Rewrote.
2107 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2108 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2109 * posix-threads.cc (block_sigchld) New function.
2110 (_Jv_ThreadRegister) Use it.
2111 (_Jv_ThreadStart) Use it.
2112 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2113 * Makefile.am: ... to specify extra native headers.
2114 * configure: Regenerated.
2115 * include/config.h: Regenerated.
2116 * Makefile.in: Regenerated.
2117 * gcj/Makefile.in: Regenerated.
2118 * include/Makefile.in: Regenerated.
2119 * testsuite/Makefile.in: Regenerated.
2120
2121 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2122
2123 PR tree-optimization/16867
2124 * testsuite/libjava.lang/PR16867.java: New test.
2125
2126 2004-08-09 Per Bothner <per@bothner.com>
2127
2128 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2129 with private fields and access methods.
2130 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2131 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2132 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2133 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2134 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2135 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2136 * jni.cc: Likewise.
2137 * resolve.cc: Likewise.
2138 * gcj/field.h: Likewise.
2139 * include/jvm.h: Likewise.
2140 * java/lang/Class.h: Likewise.
2141 * java/lang/natClass.cc: Likwise.
2142 * java/lang/natClassLoader.cc: Likewise
2143 * java/lang/reflect/natMethod.cc: Likewise
2144 * verify.cc: Likewise.
2145 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2146 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2147
2148 2004-08-10 Andrew Haley <aph@redhat.com>
2149
2150 * testsuite/libjava.lang/err14.java: New file.
2151 * testsuite/libjava.lang/err14.out: New file.
2152
2153 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2154
2155 * Makefile.am: Fix missing rename from x_nat_headers to
2156 xlib_nat_headers.
2157 * Makefile.in: Regenerated.
2158
2159 2004-08-04 Andrew Haley <aph@redhat.com>
2160
2161 * java/security/BasicPermission.java: Don't check wildcards.
2162
2163 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2164 Michael Koch <konqueror@gmx.de>
2165
2166 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2167 * configure.in: Replaced all usages of AC_LINK_FILES by
2168 AC_CONFIG_LINKS.
2169 * aclocal.m4,
2170 configure: Regenerated.
2171
2172 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2173 Michael Koch <konqueror@gmx.de>
2174
2175 * acconfig.h: Removed.
2176 * Makefile.am: Rename variables for xlib peer to include xlib and
2177 gtk_c_headers to gtk_jni_headers.
2178 * Makefile.in: Regenerated.
2179
2180 2004-08-04 Andrew Haley <aph@redhat.com>
2181
2182 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2183 debugging.
2184
2185 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2186
2187 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2188 Replace most top level 'dnl' comments with '#' comments, conforming
2189 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2190 help strings.
2191 * configure: Rebuilt.
2192
2193 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2194
2195 * acinclude.m4: Include no-executables.m4.
2196 * aclocal.m4: Rebuild.
2197 * configure.in: Convert to the autoconf 2.59 version of
2198 of the no-executables hack, and also of the nonstandard CXX
2199 hack and the multilibbed CC and CXX hack. Change prerequisite
2200 to autoconf 2.59.
2201 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2202 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2203 testsuite/Makefile.in: Regenerate.
2204
2205 2004-08-03 Tom Tromey <tromey@redhat.com>
2206
2207 * jni.cc: Reindented.
2208
2209 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2210
2211 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2212
2213 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2214
2215 * testsuite/libjava.compile/PR16701.java: New test.
2216
2217 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2218
2219 * java/util/Collection.java, java/util/List.java,
2220 java/util/Map.java, java/util/Set.java,
2221 java/util/SortedMap.java, java/util/SortedSet.java:
2222 Added additional exceptions to documentation.
2223
2224 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2225
2226 PR libgcj/16814
2227 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2228 * configure. Regenerate.
2229 * include/win32.h: Explicitly include winsock2.h
2230 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2231 Winsock api.
2232
2233 2004-07-30 Michael Koch <konqueror@gmx.de>
2234
2235 * java/util/zip/GZIPInputStream.java
2236 (GZIPInputStream): Increase buffer size to 4k.
2237 * java/util/zip/GZIPOutputStream.java
2238 (GZIPOutputStream): Likewise.
2239 * java/util/zip/Inflater.java
2240 (setInput): Merged formating with GNU classpath.
2241 * java/util/zip/InflaterInputStream.java
2242 (InflaterInputStream): Increase buffer size to 4k.
2243 (fill): Throw exception if stream ends early.
2244 (read): Merged endless-loop with GNU classpath.
2245 (skip): Increase buffer size to 2k.
2246
2247 2004-07-30 Michael Koch <konqueror@gmx.de>
2248
2249 * gnu/java/awt/EmbeddedWindow.java
2250 (addNotify): Use AccessController to allow execution of privileged
2251 code.
2252
2253 2004-07-29 Michael Koch <konqueror@gmx.de>
2254
2255 * gnu/java/lang/MainThread.java:
2256 Explicitely import used classes.
2257 (args): Make it type String[].
2258
2259 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2260
2261 * gnu/java/awt/ComponentDataBlitOp.java,
2262 gnu/java/beans/ExplicitBeanInfo.java,
2263 gnu/java/beans/IntrospectionIncubator.java,
2264 gnu/java/beans/editors/ColorEditor.java,
2265 gnu/java/beans/editors/FontEditor.java,
2266 gnu/java/beans/editors/NativeBooleanEditor.java,
2267 gnu/java/beans/editors/NativeByteEditor.java,
2268 gnu/java/beans/editors/NativeDoubleEditor.java,
2269 gnu/java/beans/editors/NativeFloatEditor.java,
2270 gnu/java/beans/editors/NativeIntEditor.java,
2271 gnu/java/beans/editors/NativeLongEditor.java,
2272 gnu/java/beans/editors/NativeShortEditor.java,
2273 gnu/java/beans/editors/StringEditor.java,
2274 gnu/java/io/ClassLoaderObjectInputStream.java,
2275 gnu/java/io/decode/Decoder.java,
2276 gnu/java/io/encode/Encoder.java,
2277 gnu/java/lang/ClassHelper.java,
2278 gnu/java/locale/Calendar.java,
2279 gnu/java/locale/Calendar_de.java,
2280 gnu/java/locale/Calendar_en.java,
2281 gnu/java/locale/Calendar_nl.java,
2282 gnu/java/locale/LocaleInformation_de.java,
2283 gnu/java/locale/LocaleInformation_en.java,
2284 gnu/java/locale/LocaleInformation_nl.java:
2285 Cleaned up imports.
2286
2287 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2288
2289 * README: Remove obsolete info. Update bug URL.
2290 * THANKS: Updated.
2291 * NEWS: Updated with news up to GCC 3.4 release.
2292
2293 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2294
2295 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2296 Renamed from 'setName'. New 2-argument form with default value.
2297 (run): Pass default 'value' parameter to System.getProperty().
2298 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2299 typos.
2300 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2301 not 'setName'.
2302
2303 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2304
2305 * configure.in: Check for minimum GTK version 2.4 requirement.
2306 * configure: Rebuilt.
2307
2308 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2309
2310 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2311 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2312 Reduce sleep time.
2313 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2314 compiler bug.
2315 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2316 address. Reduce sleep times. Synchronize with target threads before
2317 attempting to interrupt them. Don't try to calibrate yeild count,
2318 instead, always loop for a fixed time.
2319 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2320 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2321 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2322 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2323 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2324 * testsuite/libjava.lang/pr179.java: Likewise.
2325 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2326 time. Remove upper bounds check on sleep time.
2327
2328 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2329
2330 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2331 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2332
2333 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2334
2335 * java/io/File.java (toURI): Throw RuntimeException, not
2336 InternalError.
2337 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2338 class name, not instance.
2339
2340 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2341
2342 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2343 and gnu/java/security/action/SetAccessibleAction.java.
2344 * Makefile.in: Rebuilt.
2345
2346 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2347
2348 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2349 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2350 _Jv_InitPrimClass.
2351 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2352 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2353 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2354
2355 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2356
2357 * Makefile.am: Replace jar, rmic and rmiregistry references with
2358 gjar, grmic and grmiregistry.
2359 * configure.in: Likewise.
2360 * Makefile.in: Regenerate.
2361 * configure: Likewise.
2362 * gcj/Makefile.in: Likewise.
2363 * include/Makefile.in: Likewise.
2364 * testsuite/Makefile.in: Likewise.
2365
2366 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2367
2368 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2369 for privileged getProperty calls.
2370 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2371 SetAccessibleAction instead of anonymous class for doPrivileged call.
2372 (getMethod): Likewise.
2373 (setAccessible): New field. PrivilegedAction object to use when
2374 calling setAccessible.
2375 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2376 SetAccessibleAction instead of anonymous class for diPrivileged call.
2377 (setFields): Likewise.
2378 (getClassUID): Likewise.
2379 (findMethod): Likewise.
2380 * gnu/java/security/action/GetPropertyAction.java: New class.
2381 * gnu/java/security/action/SetAccessibleAction.java: New class.
2382
2383 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2384
2385 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2386 for final fields.
2387 * testsuite/libjava.lang/Serialization.java: New test.
2388 * testsuite/libjava.lang/Serialization.out: New.
2389
2390 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2391
2392 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2393 missed in last commit.
2394
2395 2004-07-23 Mark Wielaard <mark@klomp.org>
2396
2397 * java/lang/System.java (static): Set http.agent system property when
2398 not yet set.
2399 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2400 from system property inside AccessController.doPrivileged() call.
2401 (proxyPort): Made package private.
2402 (proxyInUse): Likewise.
2403 (proxyHost): Likewise.
2404 (userAgent): Likewise.
2405
2406 2004-07-23 Mark Wielaard <mark@klomp.org>
2407
2408 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2409 implementation.
2410
2411 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2412
2413 * Makefile.am (ordinary_java_source_files): Add
2414 DefaultContentHandlerFactory.java.
2415 * Makefile.in: Rebuilt.
2416 * java/net/URLConnection.java (defaultFactory): New field.
2417 (getContent):
2418 (getContentHandler): Renamed from 'setContentHandler'. Try
2419 defaultFactory after user-set factory, if any. Search for content
2420 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2421 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2422 Implemented.
2423 (getLastModified): Implemented.
2424 (getPermission): Create file permission here, instead of in
2425 constructor.
2426 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2427 Implemented.
2428 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2429 Implemented.
2430 (getLastModified): Implemented.
2431 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2432 Default implementation.
2433 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2434 Implement using GdkPixbufDecoder.
2435
2436 2004-07-21 Michael Koch <konqueror@gmx.de>
2437
2438 * javax/swing/JTextArea.java
2439 (setLineWrap): Fire property change event after new value is set.
2440 (setTabSize): Likewise.
2441
2442 2004-07-21 Michael Koch <konqueror@gmx.de>
2443
2444 * javax/swing/JTable.java
2445 (autoCreateColumnsFromModel): New field.
2446 (autoResizeMode): Likewise.
2447 (cellEditor): Likewise.
2448 (cellSelectionEnabled): Likewise.
2449 (columnModel): Likewise.
2450 (dataModel): Likewise.
2451 (defaultEditorsByColumnClass): Likewise.
2452 (defaultRenderersByColumnClass): Likewise.
2453 (editingColumn): Likewise.
2454 (editingRow): Likewise.
2455 (gridColor): Likewise.
2456 (preferredViewportSize): Likewise.
2457 (rowHeight): Likewise.
2458 (rowMargin): Likewise.
2459 (rowSelectionAllowed): Likewise.
2460 (selectionBackground): Likewise.
2461 (selectionForeground): Likewise.
2462 (selectionModel): Likewise.
2463 (showHorizontalLines): Likewise.
2464 (showVerticalLines): Likewise.
2465 (tableHeader): Likewise.
2466 (JTable): Implemented.
2467 (getColumnModel): Likewise.
2468 (getSelectedRow): Likewise.
2469 (getSelectionModel): Likewise.
2470 (setModel): Likewise.
2471 (setSelectionModel): Likewise.
2472 (createScrollPaneForTable): New method.
2473 (createDefaultDataModel): Likewise.
2474 (createDefaultListSelectionModel): Likewise.
2475 (getModel): Likewise.
2476 (getTableHeader): Likewise.
2477 (setTableHeader): Likewise.
2478 (getColumnSelectionAllowed): Likewise.
2479 (setColumnSelectionAllowed): Likewise.
2480 (getRowSelectionAllowed): Likewise.
2481 (setRowSelectionAllowed): Likewise.
2482 (getAutoResizeMode): Likewise.
2483 (setAutoResizeMode): Likewise.
2484 (getColumnCount): Likewise.
2485 (getRowCount): Likewise.
2486 (getCellRenderer): Likewise.
2487 * javax/swing/JTree.java
2488 (cellRenderer): New field.
2489 (editable): Likewise.
2490 (rootVisible): Likewise.
2491 (showsRootHandles): Likewise.
2492 (getModel): New method.
2493 (setModel): Likewise.
2494 (isEditable): Likewise.
2495 (setEditable): Likewise.
2496 (isRootVisbile): Likewise.
2497 (setRootVisible): Likewise.
2498 (getShowsRootHandles): Likewise.
2499 (setShowRootHandles): Likewise.
2500 (getCellRenderer): Likewise.
2501 (setCellRenderer): Likewise.
2502
2503 2004-07-21 Michael Koch <konqueror@gmx.de>
2504
2505 * javax/swing/JFormattedTextField.java
2506 (setDocument): Implemented.
2507 * javax/swing/JRootPane.java:
2508 Fixed javadocs.
2509 * javax/swing/JTable.java
2510 (getDefaultRenderer): New method.
2511 * javax/swing/JTextField.java
2512 (setFont): Likewise.
2513 (getPreferredSize): Likewise.
2514 * javax/swing/JToggleButton.java
2515 (getAccessibleContext): Fix javadoc.
2516 * javax/swing/JTree.java:
2517 Add some javadocs.
2518 * javax/swing/JViewport.java:
2519 Likewise.
2520
2521 2004-07-21 David Jee <djee@redhat.com>
2522
2523 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2524 Collect all native method declaration at the top.
2525 (create): Set the filename filter if necessary.
2526 (setDirectory): Call nativeSetDirectory().
2527 (setFilenameFilter): Implement.
2528 (filenameFilterCallback): New method.
2529 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2530 (create): Configure dialog to show hidden files.
2531 (filenameFilterCallback): New function.
2532 (nativeSetFilenameFilter): New function.
2533 (nativeSetDirectory): New function.
2534
2535 2004-07-21 Kim Ho <kho@redhat.com>
2536
2537 * javax/swing/plaf/basic/BasicSliderUI.java:
2538 Ran Jalopy.
2539 (paintTrack): Fill the track before painting
2540 the borders.
2541
2542 2004-07-21 Graydon Hoare <graydon@redhat.com>
2543
2544 patch from Roman Kennke <roman@ontographics.com>
2545 * javax/swing/Spring.java: New file.
2546 * javax/swing/SpringLayout.java: New file.
2547 * Makefile.am: Add new files.
2548 * Makefile.in: Regenerate.
2549
2550 2004-07-21 Graydon Hoare <graydon@redhat.com>
2551
2552 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2553 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2554 * javax/swing/ScrollPaneLayout.java: Likewise.
2555
2556 2004-07-21 Kim Ho <kho@redhat.com>
2557
2558 * javax/swing/DefaultDesktopManager.java:
2559 (findMinimum): Removed.
2560 (resizeFrame): Trust the UI to pass valid
2561 bounds.
2562 * javax/swing/JOptionPane.java:
2563 Implemented showInternalXXXDialog methods.
2564 (startModal): New method.
2565 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2566 (BorderListener::mouseDragged): Verify that the new
2567 bounds are valid before passing them to the DesktopManager.
2568 (preferredLayoutSize): Delegate
2569 to getSize.
2570 (minimumLayoutSize): Ditto.
2571 (getSize): New method.
2572 (GlassPaneDispatcher): Reimplemented by copying
2573 a stripped down LightweightDispatcher from Container.
2574 (getMinimumSize): Call minimumLayoutSize.
2575 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2576 Ran Jalopy.
2577 (mousePressed): Add ability to properly close
2578 JInternalFrames.
2579 * javax/swing/plaf/basic/BasicToolBarUI.java:
2580 (DragWindow): Set owner for DragWindow.
2581
2582 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2583
2584 * java/awt/image/ShortLookupTable.java: New file.
2585 * java/awt/image/ByteLookupTable.java: New file.
2586 * Makefile.am: Added new files.
2587 * Makefile.in: Regenerated.
2588
2589 2004-07-21 David Jee <djee@redhat.com>
2590
2591 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2592 (create(GtkContainerPeer)): New native method.
2593 (create()): Call native create(), passing in the parent frame
2594 as the paramter. Natively set the current file and directory.
2595 (setFile): Construct an absolute filename before passing it to
2596 the native peer.
2597 (nativeGetDirectory): New method.
2598 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2599 (window_closed): Removed.
2600 (ok_clicked): Likewise.
2601 (cancel_clicked): Likewise.
2602 (handle_response): New method.
2603 (create): Use GtkFileChooserDialog.
2604 (connectSignals): Connect to handle_response.
2605 (nativeGetDirectory): New method.
2606 (nativeSetFile): Use GtkFileChooserDialog.
2607
2608 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2609
2610 * java/awt/image/LookupTable.java: New file.
2611 * Makefile.am: Added new file.
2612 * Makefile.in: Regenerated.
2613
2614 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2615
2616 * java/awt/image/Kernel.java: New file.
2617 * Makefile.am: Added new file.
2618 * Makefile.in: Regenerated.
2619
2620 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2621
2622 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2623 * javax/swing/JMenu.java: Likewise.
2624 * javax/swing/JMenuBar.java: Likewise.
2625 (MARGIN_CHANGED_PROPERTY): New property.
2626 (setMargin): Implemented.
2627 * javax/swing/JMenuItem.java: Fixed javadocs.
2628 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2629 (LABEL_CHANGED_PROPERTY): New property.
2630 (add): changed to use createActionComponent.
2631 (createActionComponent): Implemented.
2632 (setLabel): Fire PropertyChangeEvent if label property
2633 changes.
2634 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2635 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2636 (ContainerHandler): Repaint if margin property has changed.
2637 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2638 (installUI): Call installComponents().
2639 (uninstallUI): Call uinstallComponents().
2640 * javax/swing/plaf/basic/BasicMenuUI.java:
2641 Fixed javadocs.
2642 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2643 Likewise.
2644
2645 2004-07-21 Kim Ho <kho@redhat.com>
2646
2647 * javax/swing/plaf/basic/BasicToolBarUI.java:
2648 (DragWindow): Use the right constructor.
2649
2650 2004-07-21 Kim Ho <kho@redhat.com>
2651
2652 * javax/swing/JToolBar.java:
2653 (layoutContainer): Use getComponents.
2654 * javax/swing/plaf/basic/BasicToolBarUI.java:
2655 (DragWindow): Don't use SwingUtilities'
2656 getOwnerFrame
2657 (ToolBarDialog): ditto.
2658
2659 2004-07-21 Kim Ho <kho@redhat.com>
2660
2661 * javax/swing/JRootPane.java:
2662 Ran jalopy.
2663 (layoutContainer): Set the glasspane's size to
2664 be the same as the content pane.
2665 (createGlassPane): Set opaque property to false.
2666
2667 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2668
2669 * java/awt/Component.java (requestFocus()): Don't handle Panels
2670 specially.
2671 (requestFocus(boolean)): Likewise.
2672 (requestFocusInWindow(boolean)): Likewise.
2673 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2674 Set GTK_CAN_FOCUS flag.
2675
2676 2004-07-21 Kim Ho <kho@redhat.com>
2677
2678 * Makefile.am: Added new file.
2679 * Makefile.in: Regenerated.
2680 * gcj/Makefile.in: Regenerated.
2681 * include/Makefile.in: Regenerated.
2682 * javax/swing/AbstractButton.java:
2683 Add rollOverEnabled property.
2684 (setRolloverEnabled): Use new property.
2685 (isRolloverEnabled): Use new property.
2686 * javax/swing/JTabbedPane.java:
2687 (setComponent): Remove useless JTabbedPane.this.
2688 * javax/swing/JToolBar.java: Finish implementation.
2689 * javax/swing/plaf/basic/BasicArrowButton.java:
2690 (paint): Moved border painting to a border.
2691 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2692 Change JToolBar look and feel defaults.
2693 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2694 (actionPerformed): Return Integer index instead of name.
2695 (addButtonComponents): Check to see if component is
2696 JButton last.
2697 (createMessageArea): Don't use components that are not
2698 completed yet.
2699 (getIconForType): Use temporary icons.
2700 * javax/swing/plaf/basic/BasicSliderUI.java:
2701 (mousePressed): Do not return if it's on thumb.
2702 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2703 (paintMinorTickForVertSlider): ditto.
2704 (paintMajorTickForHorizSlider): ditto.
2705 (paintMajorTickForVertSlider): ditto.
2706 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2707 Add a border around the SplitPaneDivider.
2708 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2709 Remove comments.
2710 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2711 New file. Implemented.
2712 * javax/swing/plaf/basic/BasicToolBarUI.java:
2713 Implemented.
2714 * testsuite/Makefile.in: Regenerated.
2715
2716 2004-07-21 Graydon Hoare <graydon@redhat.com>
2717
2718 * javax/swing/Timer.java (run): Queue events each time cycle.
2719
2720 2004-07-21 David Jee <djee@redhat.com>
2721
2722 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2723 (imageComplete): Call image.imageComplete().
2724 * java/awt/image/MemoryImageSource.java:
2725 Reimplement consumers as a Vector instead of a Hashtable. This is
2726 because enumeration on a Hashtable is not thread-safe.
2727 (addConsumer): Adapt to Vector consumers.
2728 (isConsumer): Adapt to Vector consumers.
2729 (removeConsumer): Adapt to Vector consumers.
2730 (startProduction): Adapt to Vector consumers. Call imageComplete()
2731 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2732 (newPixels): Adapt to Vector consumers.
2733 (sendPicture): Set the color model of the image consumer.
2734 (newPixels(IIII)): Adapt to Vector consumers.
2735 (newPixels(IIIIB)): Adapt to Vector consumers.
2736
2737 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2738
2739 * java/awt/Component.java (deliverEvent): Implement.
2740 (postEvent): Implement.
2741 (handleEvent): Implement.
2742 (translateEvent): New method.
2743 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2744 * java/awt/Container.java (deliverEvent): Implement.
2745 * java/awt/Event.java (paramString): Fix formatting.
2746 * java/awt/Font.java (toString): Likewise.
2747 * java/awt/Window.java (postEvent): Implement.
2748
2749 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2750
2751 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2752 Set window's focus owner upon receiving a FOCUS_LOST event.
2753 * java/awt/Window.java (Window()): Refocus the previously
2754 focused component within the window when the window regains the
2755 top-level focus.
2756 (setFocusOwner): New method.
2757 * java/awt/Component.java (requestFocus): Add FIXME.
2758
2759 * libgcj.pc.in: Remove library flags.
2760
2761 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2762
2763 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
2764 MOUSE_PRESSED event.
2765 * java/awt/Component.java (requestFocus()): Handle Panel
2766 specially. Post FOCUS_LOST event on opposite component.
2767 (requestFocus(boolean)): Likewise.
2768 (requestFocusInWindow(boolean)): Likewise.
2769 (paramString): Reorder dimension fields.
2770 * java/awt/Container.java (paramString): Fix string format.
2771 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2772 Handle FOCUS_LOST events. Don't handle Windows specially. Only
2773 process key events if the focus owner is non-null.
2774 (dispatchKeyEvent): Likewise.
2775 * java/awt/Frame.java (paramString): Fix formatting.
2776 (generateName): New method.
2777 (getUniqueLong): Likewise.
2778 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
2779 the temporary focus owner is null. If so, return the permanent
2780 focus owner.
2781 * java/awt/Panel.java (generateName): New method.
2782 (getUniqueLong): Likewise.
2783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
2784 signal handling to make callbacks more specific.
2785
2786 2004-07-21 Michael Koch <konqueror@gmx.de>
2787
2788 * javax/swing/text/Position.java
2789 (Bias): Implemented.
2790
2791 2004-07-21 Michael Koch <konqueror@gmx.de>
2792
2793 * javax/swing/LookAndFeel.java
2794 (provideErrorFeedback): New method.
2795
2796 2004-07-21 Michael Koch <konqueror@gmx.de>
2797
2798 * javax/swing/JTextArea.java
2799 (tabSize): New field.
2800 (getTabSize): New method.
2801 (setTabSize): Likewise.
2802
2803 2004-07-21 Michael Koch <konqueror@gmx.de>
2804
2805 * javax/swing/ActionMap.java:
2806 Fixed javadocs all over.
2807 (serialVersionUID): Made private.
2808 (parent): Don't explicitely initialize with default value.
2809 (get): SImplified.
2810 (keys): Reimplemented.
2811 (allKeys): Likewise.
2812 (convertSet): Removed.
2813 * javax/swing/ComponentInputMap.java:
2814 Fixed javadocs all over.
2815 (ComponentInputMap): Implemented.
2816 (put): Likewise.
2817 (clear): Likewise.
2818 (remove): Likewise.
2819 (SetParent): Likewise.
2820 (getComponent): Likewise.
2821 * javax/swing/InputMap.java:
2822 Fixed javadocs all over.
2823 (serialVersionUID): Made private.
2824 (parent): Don't explicitely initialize with default value.
2825 (get): SImplified.
2826 (keys): Reimplemented.
2827 (allKeys): Likewise.
2828 (convertSet): Removed.
2829
2830 2004-07-21 Michael Koch <konqueror@gmx.de>
2831
2832 * javax/swing/ActionMap.java,
2833 javax/swing/ComponentInputMap.java,
2834 javax/swing/InputMap.java,
2835 javax/swing/table/DefaultTableColumnModel.java,
2836 javax/swing/table/TableColumn.java,
2837 javax/swing/table/TableColumnModel.java,
2838 javax/swing/table/TableModel.java,
2839 javax/swing/text/AbstractDocument.java,
2840 javax/swing/text/TextAction.java:
2841 Reformated.
2842
2843 2004-07-21 Graydon Hoare <graydon@redhat.com>
2844
2845 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
2846 Make method non-static.
2847 * javax/swing/AbstractButton.java:
2848 Rename fields to match property names where possible.
2849 (iconTextGap): New property.
2850 * javax/swing/JCheckBox.java: Match AbstractButton changes.
2851 (init) New method, call from after various constructors.
2852 * javax/swing/JComponent.java (revalidate):
2853 Invalidate before queueing repair.
2854 * javax/swing/JList.java (getPreferredScrollableViewportSize):
2855 Reimplement in terms of visibleRowCount property.
2856 * javax/swing/JMenuButton.java: Match AbstractButton changes.
2857 * javax/swing/JScrollPane.java (createScrollListener):
2858 Remove tracing chatter.
2859 * javax/swing/JToggleButton.java: Match AbstractButton changes.
2860 * javax/swing/RepaintManager.java (addInvalidComponent):
2861 Don't invalidate.
2862 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
2863 calculations.
2864 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
2865 Mimic sun behavior on top left/right positioning.
2866 * javax/swing/ViewportLayout.java (preferredLayoutSize):
2867 Remove mistaken use of preferredScrollableViewportSize here.
2868 (layoutContainer): Use view's preferred size as basis.
2869 * javax/swing/plaf/basic/BasicButtonUI.java:
2870 Set, get, and use textIconGap property.
2871 (paint) Paint text returned from layout (with ellipsis).
2872 * javax/swing/plaf/basic/BasicListUI.java:
2873 Remove tracing chatter, correct various minor calculations.
2874 (getCellBounds): Update layout state before calculating.
2875 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
2876 Use margin default similar to sun's.
2877 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
2878 (createIncreaseIcon): Center icon, minimize margins.
2879 (createDecreaseIcon): Likewise.
2880 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
2881 Implement.
2882 (installUI): Call it.
2883 (uninstallDefaults): Implement.
2884 (uninstallUI): Call it.
2885 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
2886 Call existing Window constructor.
2887 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
2888 Set clip before painting.
2889
2890 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2891
2892 * javax/swing/JMenuItem.java:
2893 (processMouseEvent): Reimplemented to deal with
2894 mouse drag events.
2895 (createMenuDragMouseEvent): New private helper method.
2896 Creates MenuDragMouseEvent.
2897 * javax/swing/MenuSelectionManager.java
2898 (componentForPoint): Implemented.
2899 (isComponentPartOfCurrentMenu): Made public.
2900 (processMouseEvent): Reimplemented to deal with
2901 mouse drag events.
2902 (setSelectedPath): Corrected small mistake that caused
2903 path to be set incorrectly.
2904 (getPath): If given component is JMenu then also add this
2905 menu's popup menu to the selected path.
2906 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2907 (getPath): Ditto.
2908 (getPreferredSize): Call getPreferredMenuItemSize().
2909 (getPreferredItemSize): Moved code from getPreferredSize to here.
2910 (installListeners): Install MouseMotionListeners.
2911 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
2912 if mouse wasn't released in the bounds of this menu item.
2913 (MenuDragMouseHandler): Implemented.
2914 * javax/swing/plaf/basic/BasicMenuUI.java:
2915 (installListeners): Install MouseMotionListener and
2916 MenuDrageMouseListener.
2917 (MenuDragMouseHandler): Implemented.
2918 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2919 (uninstallListeners): Implemented.
2920
2921 2004-07-21 Michael Koch <konqueror@gmx.de>
2922
2923 * javax/swing/JCheckBox.java: Reformated.
2924 (JCheckBox): Fixed all constructors.
2925 (isBorderPaintedFlat): New method.
2926 (setBorderPaintedFlat): New method.
2927 * javax/swing/JEditorPane.java
2928 (createEditorKitForContentType): Made public.
2929 (scrollToReference): Likewise.
2930 * javax/swing/JTextArea.java
2931 (setLineWrap): Fire property change.
2932 * javax/swing/JToggleButton.java
2933 (JToggleButton): New constructor.
2934 (JToggleButton): Simplified.
2935 * javax/swing/text/AttributeSet.java
2936 (FontAttribute): Renamed from FontCharacterAttribute.
2937 * javax/swing/text/JTextComponent.java
2938 (KeyBinBinding): Added javadoc.
2939 (JTextComponent): Likewise.
2940 (getAccessibleContext): Fixed javadoc.
2941 * javax/swing/text/View.java
2942 (View): Added javadoc.
2943 * javax/swing/text/TabableView.java: New file.
2944 * Makefile.am: Added javax/swing/text/TabableView.java.
2945 * Makefile.in: Regenerated.
2946
2947 2004-07-21 Graydon Hoare <graydon@redhat.com>
2948
2949 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
2950 * gnu/java/awt/peer/gtk/GtkToolkit.java
2951 (GtkErrorImage): New helper class.
2952 (bufferedImageOrError): New helper method.
2953 (createImage): Use it.
2954
2955 2004-07-21 David Jee <djee@redhat.com>
2956
2957 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
2958 (setCaretPosition): Scroll the text view so the new caret position
2959 is visible on screen.
2960
2961 2004-07-21 David Jee <djee@redhat.com>
2962
2963 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2964 (setBounds): Do not validate awtComponent here.
2965 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
2966 (getPreferredSize): New method.
2967 * java/awt/ScrollPane.java
2968 (ScrollPane): Set default size to 100x100.
2969 (addNotify): If child is not a Panel, wrap it with a new Panel.
2970 (paramString): Implement.
2971
2972 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2973
2974 * javax/swing/JMenu.java:
2975 (setSelected): Display popup menu only if this menu
2976 is showing on the screen.
2977 * javax/swing/JPopupMenu.java:
2978 (processMouseEvent): Added comment.
2979 (processKeyEvent): Likewise.
2980 * javax/swing/MenuSelectionManager.java:
2981 (clearSelectedPath): Only fireStateChanged() after
2982 selected path was changed, not before.
2983 (setSelectedPath): Likewise.
2984 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2985 (paintMenuItem): Corrected position of menu item's
2986 icon.
2987 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2988 (installUI): Correct setDefaultLightWeightPopupEnabled call.
2989 (popupMenuCanceled): Reimplemented.
2990 (popupMenuWillBecomeVisible): Select first menu item by default
2991 when displaying free floating popup menus.
2992 (TopWindowListener): Reimplemented.
2993
2994 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2995
2996 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
2997 Panel from being painted twice when it is first shown.
2998
2999 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3000
3001 * java/awt/Window.java: Reverted changes from my
3002 previous patch for creating window without an owner.
3003 * javax/swing/SwingUtilities.java:
3004 (SwingUtilities.OwnerFrame): made static.
3005 (OwnerFrame.setVisible): New method. Overridden with
3006 empty implementation.
3007 (OwnerFrame.isShowing): New method. Ovverridden
3008 to return always true.
3009
3010 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3011
3012 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3013 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3014 (GtkComponentPeer): Remove temporary try/catch block.
3015 (setVisible): Call show and hide.
3016 (show): Make native.
3017 (hide): Likewise.
3018 (getArgs): Don't add "visible" argument.
3019 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3020 (property_notify_predicate): Return Bool instead of int.
3021 (find_layout): New function.
3022 (connectJObject): Call find_layout.
3023 (connectSignals): Likewise.
3024 (moveLayout): Likewise.
3025 (gtkLayoutSetVisible): Likewise.
3026
3027 2004-07-21 Mark Wielaard <mark@klomp.org>
3028
3029 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3030 on notifier object before calling notifyAll().
3031
3032 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3033
3034 * java/awt/Window.java: Changed constructors to use new
3035 method that is described below. Constructors call this
3036 methods only if newly created window should have an owner.
3037 (setWindowOwner): New method. Implementation for
3038 this method is moved from this(owner,configuration).
3039 * javax/swing/JWindow.java:
3040 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3041 instead of owner.
3042 * javax/swing/SwingUtilities.java:
3043 (ownerFrame): Change type of this field to OwnerFrame.
3044 (getOwnerFrame): Changed to return object of type OwnerFrame.
3045 (SwingUtilities.OwnerFrame): New class. Represents owner
3046 of a Window that is not provided with one.
3047
3048 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3049
3050 * javax/swing/AbstractButton.java:
3051 (configurePropertiesFromAction): Set action command
3052 to button's text by default if action command is not
3053 explicitely specified.
3054 * javax/swing/JMenu.java: Remove unnecessary listener
3055 and methods relevant to it.
3056 (setSelected): Reimplemented.
3057 (menuSelectionChanged): Moved most part of implementation to
3058 setSelected() and call it instead.
3059 * javax/swing/JMenuItem.java:
3060 (init): Comment out statement that sets paint_border to false.
3061 (configurePropertiesFromAction): Do not set accelerator
3062 for JMenu.
3063 (menuSelectionChanged): Change selected index in the selection
3064 model of menu item's parent.
3065 * javax/swing/JPopupMenu.java:
3066 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3067 instead of GridBagConstraints.HORIZONTAL.
3068 (insert): Likewise.
3069 (createActionChangeListener): Implemented.
3070 (setVisible): Correct location of HeavyWeightMenu and
3071 don't firePopupMenuCanceled().
3072 (menuSelectionChanged): Implemented.
3073 (ActionChangeListener): New Listener. Implemented.
3074 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3075 (BasicMenuBarUI.ContainerHandler): Implemented.
3076 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3077 (paintMenuItem): Uncommented out code that paints
3078 icon, now that icons are working properly.
3079 (PropertyChangeListener): Implemented.
3080 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3081 Added javadocs.
3082 (topWindowListener): New field.
3083 (Constructor): initialize topWindowListener.
3084 (BasicPopupMenuUI.TopWindowListener): Implemented.
3085 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3086 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3087 Implemented.
3088
3089 2004-07-21 Michael Koch <konqueror@gmx.de>
3090
3091 * javax/swing/plaf/basic/BasicButtonUI.java
3092 (paintFocus): Fixed method signature.
3093 (paintButtonPressed): Likewise.
3094 (paintButtonNormal): Likewise.
3095 (paintText): New method.
3096 * javax/swing/plaf/basic/BasicLabelUI.java
3097 (paint): Re-indented.
3098 * javax/swing/plaf/basic/BasicTextUI.java
3099 (installUI): Set parent textComponent to opaque.
3100 * javax/swing/text/DefaultHighlighter.java
3101 (checkPositions): New helper method.
3102 (addHighlight): Throws BadLocationException, check positions.
3103 (changeHighlight): Likewise.
3104 * javax/swing/text/EditorKit.java
3105 (EditorKit): Implements Serializable.
3106 * javax/swing/text/JTextComponent.java
3107 (getUI): Added javadoc.
3108 (setUI): Likewise.
3109 (upadteUI): Added javadoc, don't revalidate and repaint.
3110
3111 2004-07-21 David Jee <djee@redhat.com>
3112
3113 * java/awt/GridBagLayout.java
3114 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3115 * javax/swing/AbstractButton.java
3116 (setText): Reindent.
3117 * javax/swing/RepaintManager.java
3118 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3119
3120 2004-07-21 Michael Koch <konqueror@gmx.de>
3121
3122 * javax/swing/JFormattedTextField.java
3123 (value): New field.
3124 (JFormattedTextField): Implemented.
3125 (getValue): Likewise.
3126 (setValue): Likewise.
3127 * javax/swing/LookAndFeel.java
3128 (getSupportsWindowDecorations): New method.
3129 * javax/swing/UIDefaults.java:
3130 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3131 (addPropertyChangeListener): Made public.
3132 (addResourceBundle): Likewise.
3133 (removeResourceBundle): Likewise.
3134 (setDefaultLocale): Likewise.
3135 * javax/swing/plaf/basic/BasicRootPaneUI.java
3136 (BasicRootPaneUI): Implements PropertyChangeListener.
3137 (propertyChange): New method.
3138 * javax/swing/plaf/basic/BasicTextUI.java
3139 (BasicHighlighter): New inner class.
3140 (createHighlighter): New method.
3141 * javax/swing/plaf/basic/BasicToolBarUI.java
3142 (DragWindow): Extends java.awt.Window.
3143 * javax/swing/text/JTextComponent.java
3144 (getDocument): Removed debug output.
3145 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3146 javax/swing/text/DefaultHighlighter.java,
3147 javax/swing/text/FieldView.java,
3148 javax/swing/text/PlainView.java: New files.
3149 * Makefile.am: Added new files.
3150 * Makefile.in: Regenerated.
3151
3152 2004-07-21 Michael Koch <konqueror@gmx.de>
3153
3154 * javax/swing/JEditorPane.java
3155 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3156 (createEditorKitForContentType): Likewise.
3157 * javax/swing/text/DefaultEditorKit.java
3158 (serialVersionUID): Added constant field.
3159 (EndOfLineStringPropery): Fixed typo.
3160 (DefaultEditorKit): New constructor.
3161 * javax/swing/text/Segment.java:
3162 Import java.text.CharacterIterator.
3163 * javax/swing/text/CharacterIterator.java,
3164 javax/swing/text/PlainEditorKit.java: Removed.
3165 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3166 javax/swing/text/PlainEditorKit.java.
3167 * Makefile.in: Regenerated.
3168
3169 2004-07-21 Michael Koch <konqueror@gmx.de>
3170
3171 * javax/swing/JButton.java,
3172 javax/swing/text/DefaultEditorKit.java,
3173 javax/swing/text/EditorKit.java,
3174 javax/swing/text/Segment.java,
3175 javax/swing/text/StyledEditorKit.java:
3176 Reformatted.
3177
3178 2004-07-21 Michael Koch <konqueror@gmx.de>
3179
3180 * javax/swing/ImageIcon.java
3181 (file): Removed.
3182 (description): Renamed from descr.
3183 (ImageIcon): Added missing constructors.
3184 (setParent): Removed.
3185 (setImageObserver): New method.
3186 (getImageObserver): New method.
3187 (paintIcon): Handle observer = null.
3188 * javax/swing/JButton.java
3189 (removeNotify): Fixed javadoc.
3190 (updateUI): Simplified.
3191 * javax/swing/JRootPane.java
3192 (serialVersionUID): New constant field.
3193 * javax/swing/UIManager.java:
3194 Fixed javadocs all over.
3195 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3196 * javax/swing/text/AbstractDocument.java
3197 (createPosition): Throws BadLocationException.
3198 (getText): Likewise.
3199 (remove): Likewise.
3200 * javax/swing/text/ComponentView.java
3201 (modelToView): Likewise.
3202 * javax/swing/text/DefaultEditorKit.java:
3203 Made all public methods public.
3204 (read): Throws BadLocationException and IOException.
3205 (write): Likewise.
3206 * javax/swing/text/EditorKit.java:
3207 Made all public methods public.
3208 (serialVersionUID): New constant field.
3209 (clone): New method.
3210 (read): Throws BadLocationException and IOException.
3211 (write): Likewise.
3212 * javax/swing/text/Segment.java
3213 (array): Made public.
3214 (count): Likewise.
3215 (offset): Likewise.
3216 (Segment): New constructors.
3217 (clone): Reimplemented.
3218 * javax/swing/text/StyledEditorKit.java
3219 (serialVersionUID): New constant field.
3220
3221 2004-07-21 Graydon Hoare <graydon@redhat.com>
3222
3223 * java/awt/image/BufferedImage.java
3224 (getSource): Implement.
3225 * javax/swing/ImageIcon.java
3226 (ImageIcon): Implement ctor.
3227 * javax/swing/ScrollPaneLayout.java
3228 (preferredLayoutSize): Be more careful about nulls.
3229
3230 2004-07-21 Michael Koch <konqueror@gmx.de>
3231
3232 * javax/swing/text/AttributeSet.java
3233 (CharacterAttribute): New interface
3234 (ColorAttribute): Likewise.
3235 (FontCharacterAttribute): Likewise.
3236 (ParagraphAttribute): Likewise.
3237 * javax/swing/text/DefaultCaret.java
3238 (moveCaret): New method.
3239 (positionCaret): Likewise.
3240 (repaint): Made protected.
3241 * javax/swing/text/JTextComponent.java
3242 (KeyBinding): Made it static.
3243 * javax/swing/text/View.java
3244 (getContainer): Honor parent == null.
3245
3246 2004-07-21 Michael Koch <konqueror@gmx.de>
3247
3248 * javax/swing/text/AbstractDocument.java:
3249 Reformatted.
3250
3251 2004-07-21 Michael Koch <konqueror@gmx.de>
3252
3253 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3254 Import javax.swing.UIManager explicitely.
3255 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3256 (ScrollingButton): Made it static.
3257
3258 2004-07-21 Michael Koch <konqueror@gmx.de>
3259
3260 * javax/swing/UIDefaults.java
3261 (ActiveValue): Made public.
3262 (LazyValue): Likewise.
3263 * javax/swing/plaf/basic/BasicTextUI.java
3264 (RootView): Reintroduced.
3265 (view): Removed.
3266 (rootView): New field.
3267 (installUI): Create document if needed, initialize rootView.
3268 (uninstallUI): Hanle rootView.
3269 (paint): Likewise.
3270 (getRootView): Likewise.
3271 (setView): Likewise.
3272 * javax/swing/text/DefaultCaret.java:
3273 Renamed all "evt" variables to "event".
3274
3275 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3276
3277 * libgcj.spec.in: Add -l-java-util-logging.
3278
3279 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3280
3281 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3282 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3283 gtk-xft-dpi can no calculate the right value.
3284 (dpi_changed_cb): Mark *pspec as unsused.
3285
3286 2004-07-21 David Jee <djee@redhat.com>
3287
3288 * java/awt/Component.java
3289 (move): Delegate to setBounds().
3290 (resize): Likewise.
3291 (reshape): Fix so it repaints parent and self only when necessary.
3292
3293 2004-07-21 David Jee <djee@redhat.com>
3294
3295 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3296 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3297 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3298 (setVisible): Likewise.
3299 (show): Likewise.
3300 (hide): Likewise.
3301 (getArgs): Likewise.
3302 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3303 (property_notify_predicate): Likewise.
3304 (find_layout): Likewise.
3305 (connectJObject): Likewise.
3306 (connectSignals): Likewise.
3307 (moveLayout): Likewise.
3308 (gtkLayoutSetVisible): Likewise.
3309
3310 2004-07-21 Graydon Hoare <graydon@redhat.com>
3311
3312 * Makefile.am
3313 (jv_convert_LDADD):
3314 (gij_LDADD):
3315 (rmic_LDADD):
3316 (rmiregistry_LDADD): Add lib-java-util-logging.la
3317 * Makefile.in: Regenerate.
3318
3319 2004-07-21 Michael Koch <konqueror@gmx.de>
3320
3321 * javax/swing/text/AbstractDocument.java
3322 (replace): Dont use protected method of java.util.Vector directly.
3323
3324 2004-07-21 Michael Koch <konqueror@gmx.de>
3325
3326 * javax/swing/plaf/basic/BasicTextUI.java
3327 (installUI): Call specialized install methods.
3328 (installDefaults): New method.
3329 (installListeners): Likewise.
3330 (installKeyboardActions): Likewise.
3331 (uninstallUI): Likewise.
3332 (uninstallDefaults): New method.
3333 (uninstallListeners): Likewise.
3334 (uninstallKeyboardActions): Likewise.
3335 (getPropertyPrefix): New abstract method.
3336 (paint): Made final, just call paintSafely().
3337 (paintSavely): New method.
3338 (paintBackground): Likewise.
3339 (getVisibleEditorRect): Likewise.
3340 * javax/swing/text/LayeredHighlighter.java,
3341 javax/swing/text/TabExpander.java: New files.
3342 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3343 and javax/swing/text/TabExpander.java.
3344 * Makefile.in: Regenerated.
3345
3346 2004-07-21 Michael Koch <konqueror@gmx.de>
3347
3348 * javax/swing/plaf/basic/BasicTextUI.java
3349 (BasicTextUI): Made abstract.
3350 (BasicCaret): New inner class.
3351 (view): Don't explicitely initialize with "null".
3352 (textComponent): New field.
3353 (textColor): Removed.
3354 (disabledTextColor): Removed.
3355 (normalBackgroundColor): Removed.
3356 (RootView): Removed commented out inner class.
3357 (createUI): Removed.
3358 (createCaret): New method.
3359 (getComponent): Likewise.
3360 (installUI): Initialize textComponent only.
3361 (getPreferredSize): Use installed JTextComponent.
3362 (setView): New method.
3363 (create): Likewise.
3364 * javax/swing/text/JTextComponent.java
3365 (highlighter): New field.
3366 (caretColor): Likewise.
3367 (disabledTextColor): Likewise.
3368 (seletedTextColor): Likewise.
3369 (selectionColor): Likewise.
3370 (setUI): New method.
3371 (getCaretColor): Likewise.
3372 (setCaretColor): Likewise.
3373 (getDisabledColor): Likewise.
3374 (setDisabledColor): Likewise.
3375 (getSelectedTextColor): Likewise.
3376 (setSelectedTextColor): Likewise.
3377 (getSelectionColor): Likewise.
3378 (setSelectionColor): Likewise.
3379 (getHighlighter): Likewise.
3380 (setHighlighter): Likewise.
3381 (replaceSelection): Likewise.
3382
3383 2004-07-21 Michael Koch <konqueror@gmx.de>
3384
3385 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3386 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3387 * javax/swing/plaf/basic/BasicToolBarUI.java
3388 (BasicToolBarUI): Implements SwingConstants.
3389
3390 2004-07-21 Michael Koch <konqueror@gmx.de>
3391
3392 * javax/swing/JPopupMenu.java: Removed CVS tags.
3393 * javax/swing/UIDefaults.java: Reformatted.
3394 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3395 Explicitely import used classes.
3396
3397 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3398
3399 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3400 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3401 (GtkComponentPeer): Remove temporary try/catch block.
3402 (setVisible): Call show and hide.
3403 (show): Make native.
3404 (hide): Likewise.
3405 (getArgs): Don't add "visible" argument.
3406 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3407 (property_notify_predicate): Return Bool instead of int.
3408 (find_layout): New function.
3409 (connectJObject): Call find_layout.
3410 (connectSignals): Likewise.
3411 (moveLayout): Likewise.
3412 (gtkLayoutSetVisible): Likewise.
3413
3414 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3415
3416 * javax/swing/AbstractButton.java:
3417 (setDisplayedMnemonicIndex): Check if button
3418 text is not null before checking its length.
3419 * javax/swing/JMenuItem.java:
3420 (processMouseEvent): Disarm menu item if mouse has
3421 exited it.
3422 * javax/swing/plaf/basic/BasicMenuUI.java:
3423 (MouseInputHandler.mouseEntered): Do not raise
3424 popup menu if this menu is already selected.
3425 (MouseInputHandler.mousePressed): Do not fire
3426 MenuEvents.
3427 (MenuHandler): Implemented.
3428
3429 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3430
3431 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3432 (getSelectedObjects): Implemented.
3433 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3434 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3435 Added javadoc for few methods.
3436 (processMouseEvent): Made public.
3437 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3438 (processMouseEvent): Likewise.
3439
3440 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3441
3442 * javax/swing/AbstractButton.java:
3443 (init): Set display mnemonic index to -1.
3444 (setMnemonic(char)): Use setMnemonic(int).
3445 (setMnemonic(int)): Set display mnemonic index.
3446 (getDisplayedMnemonicIndex): Change method signature
3447 by removing 'index' parameter.
3448 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3449 Added default for Menu.selectionBackground.
3450 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3451 (paintMenuItem): Change background color of the selected
3452 menu item.
3453 (paintText): Paint differently when menu item is disabled.
3454 Also paint mnemonic if it appears in the menu item's label.
3455 (paintAccelerator): Paint accelerator differently
3456 if menu item is disabled.
3457 * javax/swing/plaf/basic/BasicMenuUI.java:
3458 (installDefaults): Install defaults for
3459 selectionForeground and selectionBackground.
3460 (uninstallDefaults): Uninstall defauls for
3461 selectionForeground and selectionBackground.
3462
3463 2004-07-21 Michael Koch <konqueror@gmx.de>
3464
3465 * javax/swing/text/AbstractDocument.java
3466 (BranchElement): Implemented.
3467 (LeafElement): Implemented.
3468 * javax/swing/text/DefaultCaret.java:
3469 Import used classes.
3470 (serialVersionUID): New constant.
3471 * javax/swing/text/JTextComponent.java
3472 (AccessibleJTextComponent): Removed dead declaration.
3473 (caretPos): Removed.
3474 (setCaret): New method.
3475 * javax/swing/text/PlainDocument.java
3476 (rootElement): New field.
3477 (PlainDocument): Initialize rootElement.
3478 (createDefaultRoot): New method.
3479 (getDefaultRootElement): Implemented.
3480 * javax/swing/text/View.java: Reformatted.
3481 * javax/swing/text/ViewFactory.java
3482 (create): Added javadoc.
3483
3484 2004-07-21 Michael Koch <konqueror@gmx.de>
3485
3486 * javax/swing/ToolTipManager.java: Reformatted.
3487
3488 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3489
3490 * javax/swing/AbstractButton.java
3491 (changeEvent): New field.
3492 (fireItemStateChanged): Change source of the event
3493 to 'this' before firing it to button listeners.
3494 (fireActionPerformed): Likewise.
3495 (fireStateChanged): Likewise.
3496 (createActionListener): Do not set source
3497 of the event to AbstractButton.
3498 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3499 (ContainerHandler.componentAdded): Removed
3500 print out statement.
3501 (ContainerHandler.componentRemoved): Likewise.
3502
3503 2004-07-21 Michael Koch <konqueror@gmx.de>
3504
3505 * javax/swing/text/Highlighter.java: New file.
3506 * Makefile.am: Added javax/swing/text/Highlighter.java.
3507 * Makefile.in: Regenerated.
3508
3509 2004-07-21 Michael Koch <konqueror@gmx.de>
3510
3511 * javax/swing/ToolTipManager.java
3512 (stillInsideTimerAction): Fixed constructor arguments.
3513 (outsideTimerAction): Likewise.
3514 (insideTimerAction): Likewise.
3515
3516 2004-07-21 Michael Koch <konqueror@gmx.de>
3517
3518 * javax/swing/JButton.java: Reformatted.
3519 * javax/swing/JFormattedTextField.java
3520 (getUIClassID): Implemented.
3521 * javax/swing/JRootPane.java
3522 (serialVersionUID): New constant.
3523 * javax/swing/JTextField.java
3524 (align): New field.
3525 (JTextField): Simplified.
3526 (getUIClassID): New method.
3527 (getActionListeners): Added @since tag.
3528 (setColumns): Invalidate layout and repaint.
3529 (getHorizontalAlignment): New method.
3530 (setHorizontalAlignment): New method.
3531 (selectAll): Removed.
3532 * javax/swing/SwingUtilities.java
3533 (getAncestorOfClass): Removed redundant @see tag.
3534 (isLeftMouseButton): Fixed implementation.
3535 (isMiddleMouseButton): Likewise.
3536 (isRightMouseButton): Likewise.
3537 * javax/swing/text/AbstractDocument.java
3538 (AttributeContext.addAttribute): New method.
3539 (AttributeContext.addAttributes): New method.
3540 (AttributeContext.getEmptySet): New method.
3541 (AttributeContext.reclaim): New method.
3542 (AttributeContext.removeAttribute): New method.
3543 (AttributeContext.removeAttributes): New method.
3544 * javax/swing/text/Document.java
3545 (createPosition): Throws BadLocationException.
3546 (getText): Likewise.
3547 (remove): Likewise.
3548 * javax/swing/text/JTextComponent.java
3549 (getText): Return null if no document is set. Catch
3550 BadLocationException.
3551 (getUI): Return ui.
3552 (updateUI): Simplified.
3553
3554 2004-07-21 Michael Koch <konqueror@gmx.de>
3555
3556 * javax/swing/JButton.java
3557 (removeNotify): Fixed javadoc.
3558 (updateUI): Simplified.
3559
3560 2004-07-21 David Jee <djee@redhat.com>
3561
3562 * gnu/java/awt/image/ImageDecoder.java
3563 (startProduction): Only add consumer if it's not added yet.
3564 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3565 (GdkPixbufDecoder): Don't call initState() here.
3566 (produce): Call initState() here, to ensure area_prepared and
3567 area_updated signals are properly connected.
3568 * gnu/java/awt/peer/gtk/GtkImage.java
3569 (setColorModel): Use equals() to compare ColorModel objects.
3570 (setPixels): Likewise.
3571 * java/awt/image/ColorModel.java
3572 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3573 * java/awt/image/RGBImageFilter.java
3574 (setColorModel): Set consumer's color model.
3575 (setPixels): Use equals() to compare ColorModel objects.
3576
3577 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3578
3579 * java/net/URLConnection.java (position): New field.
3580 (dateFormat1, dateFormat2, dateFormat3): Removed.
3581 (dateFormats): New field.
3582 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3583 each time instead of re-allocating.
3584 (initializeDateFormats): Initialize 'dateFormats'.
3585
3586 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3587
3588 PR libgcj/16591
3589 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3590 is defined.
3591
3592 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3593
3594 * java/net/Socket.java (getImpl): Now private. Remove comment.
3595
3596 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3597
3598 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3599 of chained Writer when calling super-constructor.
3600 * java/io/FilterWriter.java (FilterWriter): Likewise.
3601 * java/io/PrintWriter.java (PrintWriter): Likewise.
3602
3603 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3604
3605 * prims.cc (process_gcj_properties): Don't increment i within LHS
3606 of assignment.
3607
3608 2004-07-19 Per Bothner <per@bothner.com>
3609
3610 Print -verbose:message on "loading", not initialization.
3611 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3612 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3613 gcj::verbose_class_flag.
3614 * java/lang/natClass.cc (initializeClass): Don't print message here.
3615 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3616 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3617 (_Jv_PrepareCompiledClass): Likewise.
3618
3619 2004-07-18 Matthias Klose <doko@debian.org>
3620
3621 * configure.in: Substitute target_noncanonical.
3622 * configure: Regenerate
3623
3624 2004-07-17 Michael Koch <konqueror@gmx.de>
3625
3626 * java/lang/String.java: Fixed javadocs all over.
3627
3628 2004-07-17 Mark Wielaard <mark@klomp.org>
3629
3630 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3631 when size is smaller.
3632 * java/io/RandomAccessFile.java (setLength): Use truncate for
3633 shrinking the file and seek plus write for expanding the file.
3634
3635 2004-07-17 Michael Koch <konqueror@gmx.de>
3636
3637 * gnu/java/nio/channels/natFileChannelPosix.cc
3638 (implTruncate): Always save current position. Only reposition file
3639 pointer to where we started if not beyond new lenght. Reposition file
3640 pointer to file length if it points beyond the end of file.
3641
3642 2004-07-17 Mark Wielaard <mark@klomp.org>
3643
3644 * javax/swing/Box.java: Put FIXME comment above class declaration.
3645 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3646 * javax/swing/JCheckBox.java: Likewise.
3647 * javax/swing/JDialog.java: Likewise.
3648 * javax/swing/JRadioButton.java: Likewise.
3649 * javax/swing/JToggleButton.java: Likewise.
3650 * javax/swing/UIManager.java: Likewise.
3651 * javax/swing/border/TitledBorder.java: Likewise.
3652 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3653 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3654 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3655 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3656 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3657 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3658 * javax/swing/text/JTextComponent.java: Likewise.
3659
3660 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
3661
3662 * java/net/DatagramPacket.java (setAddress): Removed check for
3663 null address.
3664
3665 2004-07-17 Michael Koch <konqueror@gmx.de>
3666
3667 * java/net/DatagramSocket.java
3668 (getLocalAddress): Check if socket is bound or not.
3669 * java/net/Socket.java
3670 (getLocalAddrss): Check if socket is bound or not.
3671 (getPort): Return -1 when not connected. Dont check getImpl() for
3672 null.
3673 (setReuseAddress): Check if socket is closed.
3674 (isConnected): Check if getImpl() returns null.
3675
3676 2004-07-17 Mark Wielaard <mark@klomp.org>
3677
3678 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3679 on notifier object before calling notifyAll().
3680
3681 2004-07-17 Michael Koch <konqueror@gmx.de>
3682
3683 * gnu/java/nio/channels/FileChannelImpl.java
3684 (finalize): Added javadoc.
3685
3686 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3687
3688 * java/text/CollationElementIterator.java
3689 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
3690 (setText): Use ArrayList instead of Vector.
3691
3692 2004-07-17 Michael Koch <konqueror@gmx.de>
3693
3694 * java/nio/ByteOrder.java
3695 (static): Removed. Not needed.
3696 Thanks to Patrick Reali for noticing.
3697 * java/nio/charset/CharsetDecoder.java
3698 (decode): Fix for classpath bug #9177: Reset state before flipping.
3699
3700 2004-07-17 Michael Koch <konqueror@gmx.de>
3701
3702 * java/security/Security.java: Fixed javadocs all over.
3703
3704 2004-07-17 Michael Koch <konqueror@gmx.de>
3705
3706 * gnu/java/awt/EmbeddedWindow.java
3707 (static): Removed.
3708 (addNotify): Set peer via reflection.
3709 (setWindowPeer): Removed.
3710 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3711 * Makefile.am (nat_source_files):
3712 Removed gnu/java/awt/natEmbeddedWindow.cc.
3713 * Makefile.in: Regenerated.
3714
3715 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
3716
3717 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
3718 assignment.
3719 * configure: Regenerated.
3720
3721 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
3722
3723 * configure.in: Use build_noncanonical rather than build_alias.
3724 * configure: Rebuild.
3725
3726 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
3727 by logic refactoring. Move default definition of NATIVE closer
3728 to first alternate definition.
3729 * configure: Regenerate.
3730
3731 * Makefile.am: Set ZIP and GCJH directly using autoconf.
3732 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
3733 gcj/Makefile.in: Regenerate.
3734 * configure.in: Set ZIP and GCJH. Remove redundant condition
3735 in AM_CONDITIONAL(NATIVE,...)
3736 * configure: Regenerate.
3737
3738 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
3739
3740 * configure.in: Use target_noncanonical rather than
3741 target_alias for forward-compatibility with autoconf 2.59.
3742 * configure: Regenerate.
3743 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
3744 testsuite/Makefile.am: Substitute target_noncanonical.
3745 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3746 testsuite/Makefile.in: Regenerate.
3747
3748 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
3749 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
3750 * acinclude.m4: Include acx.m4.
3751 * aclocal.m4: Regenerate.
3752 * configure: Regenerate.
3753
3754 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
3755
3756 PR libgcj/16574
3757 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
3758 (decimalFormat): New static variable.
3759 (sbuf): Likewise.
3760 (getTime): New. Override Date.getTime().
3761 (toString): Synchronize. Use decimalFormat to format nanos value
3762 correctly. Truncate extra zeros.
3763 (before): Compare getNanos() only if getTime() is equal.
3764 (after): Likewise.
3765
3766 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3767
3768 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
3769 * configure.in: ...here.
3770 * aclocal.m4: Regenerate.
3771 * configure: Regenerate.
3772
3773 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
3774 * configure: Rebuilt with autoconf 2.13.
3775 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3776 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
3777
3778 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
3779
3780 PR libgcj/16204
3781 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
3782 large file support.
3783 * Makefile.in: Rebuilt.
3784 * testsuite/libjava.lang/LargeFile.java: New test case.
3785 * testsuite/libjava.lang/LargeFile.out: New file.
3786
3787 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3788
3789 * java/beans/EventHandler.java: Remove debugging statements.
3790
3791 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3792
3793 * java/beans/EventHandler.java: New file.
3794 * Makefile.am (awt_java_source_files): Add EventHandler.java.
3795 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3796 testsuite/Makefile.in: Regenerate.
3797
3798 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
3799
3800 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
3801 flag to the gcj_setup.
3802 (gcj_jacks_run): Check tclsh version and launch jacks directly with
3803 the tclsh.
3804 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
3805 deprecation flag change. 58 XFAILS removed.
3806
3807 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3808
3809 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
3810 -fno-use-divide-subroutine.
3811 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
3812 (HANDLE_FPE): Define.
3813 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
3814 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3815 (HANDLE_DIVIDE_OVERFLOW): Define.
3816
3817 2004-07-14 Michael Koch <konqueror@gmx.de>
3818 Matthias Klose <doko@debian.org>
3819
3820 * java/awt/im/InputContext.java: Initialize in, line.
3821
3822 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
3823
3824 * interpret.cc (run): Correctly access libffi return values of
3825 integral smaller-than-int type; these are implicitly promoted.
3826
3827 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
3828
3829 PR libgcj/7587
3830 * interpret.cc (compile_mutex): New.
3831 (_Jv_InitInterpreter): New. Initialize compile_mutex.
3832 (run): Lock compile_mutex before calling compile() if compilation is
3833 required.
3834 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
3835 * include/java-interp.h (_Jv_InitInterpreter): Declare.
3836
3837 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
3838
3839 PR libgcj/15713
3840 * include/jvm.h (_Jv_value): New union type.
3841 * gcj/field.h (_Jv_Field): Add new _addr union field variants
3842 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
3843 union members.
3844
3845 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
3846
3847 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
3848 * gnu/awt/xlib/XOffScreenImage.java
3849 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
3850 constructor argument. Add constructor using ImageProducer.
3851 (getSource): Implement.
3852 (imageComplete): New method.
3853 (setColorModel): New method.
3854 (setDimensions): New method.
3855 (setHints): New method.
3856 (setPixels): New method.
3857 (setProperties): New method.
3858 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
3859 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
3860
3861 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
3862
3863 PR libgcj/16478
3864 * prims.cc (_Jv_CreateJavaVM): Fix comment.
3865 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
3866 (finalizerReady): Now native.
3867 (run): Likewise.
3868 (runFinalizers): Removed.
3869 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
3870 a primitive lock, and don't hold it while running the finalizers.
3871 (runFinalizers): Implement. Don't aquire any Java lock.
3872 (finalizerReady): Use lock primitives to signal finalizer thread.
3873
3874 2004-07-11 Mark Wielaard <mark@klomp.org>
3875
3876 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
3877 * java/net/URLStreamHandler.java (parseURL): When url file part
3878 doesn't contain a '/' just ignore context.
3879
3880 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
3881
3882 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
3883 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3884 (MAKE_THROW_FRAME): Do not modify PSW address.
3885 (INIT_SEGV): Install SIGINFO-style signal handler.
3886 (INIT_FPE): Likewise.
3887
3888 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3889
3890 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
3891 status. 21 xfail's removed, 1 added.
3892
3893 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3894
3895 * gcj/javaprims.h: Regenerate CNI namespace definitions.
3896
3897 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
3898
3899 * java/text/MessageFormat.java
3900 (formatInternal): Append "{n}" if argument n is unavailable.
3901 (format(Object, StringBuffer, FieldPosition)): This
3902 should be equivalent to format(Object[],
3903 StringBuffer, FieldPosition).
3904
3905 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3906
3907 * java.util.Calendar.java (cache): New private static field. Cached
3908 mappings of locales->calendar classes.
3909 (ctorArgTypes): New private static field. Singleton argument for
3910 calendar class constructor lookup.
3911 (getInstance): Cache Locale->Calendar class mappings using HashMap.
3912 Optimize by bypassing reflection instantiation for the
3913 GregorianCalendar case.
3914
3915 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3916
3917 * java/util/Calendar.java: Use getSystemClassLoader as argument for
3918 ResourceBundle.getBundle() calls.
3919 * java/util/GregorianCalendar.java: Likewise.
3920 * java/util/Currency.java: Likewise.
3921 * java/text/BreakIterator.java: Likewise.
3922 * java/text/Collator.java: Likewise.
3923 * java/text/DateFormat.java: Likewise.
3924 * java/text/DateFormatSymbols.java: Likewise.
3925 * java/text/DecimalFormatSymbols.java: Likewise.
3926 * java/text/NumberFormat.java: Likewise.
3927 * java/awt/Window.java: Likewise.
3928
3929 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3930
3931 * java/util/ResourceBundle.java (bundleCache): Renamed from
3932 resourceBundleCache. Update comments.
3933 (getObject): Don't catch MissingResourceException.
3934 (getBundle(String)): Remove 'final'. Use system classloader if
3935 getCallingClassLoader returned null.
3936 (getBundle(String, Locale)): Likewise.
3937 (BundleKey): New private class. HashMap key for bundle cache lookup.
3938 (lookupKey): New. Singleton instance of BundleKey.
3939 (nullEntry): New. Cache entry to represent failed lookups.
3940 (getBundle(String, Locale, ClassLoader)): Re-written to use new
3941 caching strategy, no-allocation lookup, and new tryBundle methods.
3942 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
3943 name using given classloader.
3944 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
3945 baseName for given Locale and attempt to load bundle.
3946
3947 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3948
3949 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
3950 illegal protected method calls.
3951
3952 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3953
3954 Fix or remove some bogus test cases.
3955 * testsuite/libjava.compile/pr10459_2.java: Removed.
3956 * testsuite/libjava.compile/pr10459.java: Test using its own method,
3957 not Object.clone().
3958 * testsuite/libjava.compile/inner_data.java: Test against its own
3959 protected field.
3960
3961 2004-07-09 Michael Koch <konqueror@gmx.de>
3962
3963 * scripts/unicode-muncher.pl: Updated to version 2.1
3964 from GNU classpath. Added some clarifications on where to find the
3965 needed files from www.unicode.org.
3966 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
3967 gnu/gcj/convert/UnicodeData-3.0.0.txt:
3968 Removed, these can directly be downloaded from www.unicode.org if
3969 needed.
3970 * gnu/java/lang/CharData.java: Regenerated.
3971 * include/java-chartables.h: Regenerated.
3972 * Makefile.am (ordinary_java_source_files):
3973 Removed gnu/java/lang/CharData.java.
3974 * Makefile.in: Regenerated.
3975
3976 2004-07-09 Michael Koch <konqueror@gmx.de>
3977
3978 * java/security/AccessControlContext.java,
3979 java/security/SecureClassLoader.java:
3980 Fixed javadocs.
3981
3982 2004-07-09 Michael Koch <konqueror@gmx.de>
3983
3984 * java/io/ObjectInputStream.java (readFields): Use long datatype
3985 when shifting byte values more then 24 bits left.
3986
3987 2004-07-09 Michael Koch <konqueror@gmx.de>
3988
3989 * java/util/zip/DeflaterOutputStream.java,
3990 java/util/zip/GZIPInputStream.java,
3991 java/util/zip/GZIPOutputStream.java,
3992 java/util/zip/InflaterInputStream.java:
3993 Reformatted. Added javadocs. Reordered all stuff.
3994 Renamed variables to be more clear.
3995
3996 2004-07-09 Michael Koch <konqueror@gmx.de>
3997
3998 * javax/imageio/IIOException.java,
3999 javax/imageio/event/IIOReadProgressListener.java,
4000 javax/imageio/event/IIOReadUpdateListener.java,
4001 javax/imageio/event/IIOReadWarningListener.java,
4002 javax/imageio/event/IIOWriteProgressListener.java,
4003 javax/imageio/event/IIOWriteWarningListener.java:
4004 New files.
4005 * Makefile.am: Added new files.
4006 * Makefile.in: Regenerated.
4007
4008 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4009
4010 * java/text/RuleBasedCollator.java
4011 (mergeRules): Use ArrayList instead of Vector.
4012 (subParseString): likewise.
4013 (parseString): likewise.
4014 (buildCollationVector): likewise.
4015 (getCollationKey): likewise.
4016
4017 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4018
4019 * java/text/DateFormat.java (parse):
4020 Improved javadoc. Improved exception message.
4021
4022 2004-07-09 Mark Wielaard <mark@klomp.org>
4023
4024 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4025 interrupted() method to clear interupt flag of our Thread.
4026
4027 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4028
4029 * java/nio/Buffer.java,
4030 java/nio/ByteBuffer.java,
4031 java/nio/ByteBufferHelper.java,
4032 java/nio/ByteBufferImpl.java,
4033 java/nio/CharBuffer.java,
4034 java/nio/CharBufferImpl.java,
4035 java/nio/CharViewBufferImpl.java,
4036 java/nio/DirectByteBufferImpl.java,
4037 java/nio/DoubleBuffer.java,
4038 java/nio/DoubleBufferImpl.java,
4039 java/nio/DoubleViewBufferImpl.java,
4040 java/nio/FloatBuffer.java,
4041 java/nio/FloatBufferImpl.java,
4042 java/nio/FloatViewBufferImpl.java,
4043 java/nio/IntBuffer.java,
4044 java/nio/IntBufferImpl.java,
4045 java/nio/IntViewBufferImpl.java,
4046 java/nio/LongBuffer.java,
4047 java/nio/LongBufferImpl.java,
4048 java/nio/LongViewBufferImpl.java,
4049 java/nio/MappedByteBufferImpl.java,
4050 java/nio/ShortBuffer.java,
4051 java/nio/ShortBufferImpl.java,
4052 java/nio/ShortViewBufferImpl.java:
4053 Fixed javadocs all over. Improved input error
4054 checking.
4055
4056 * java/nio/Buffer.java
4057 (checkForUnderflow, checkForOverflow, checkIndex,
4058 checkIfReadOnly, checkArraySize): New helper methods
4059 for error checking.
4060
4061 * java/nio/ByteBufferHelper.java
4062 (checkRemainingForRead, checkRemainingForWrite,
4063 checkAvailableForRead, checkAvailableForWrite): Removed
4064 no longer needed methods.
4065
4066 2004-07-09 Michael Koch <konqueror@gmx.de>
4067
4068 * gnu/regexp/CharIndexedInputStream.java:
4069 Reordered imports to match classpath.
4070
4071 2004-07-09 Michael Koch <konqueror@gmx.de>
4072
4073 * gnu/java/awt/EmbeddedWindow.java:
4074 Load native library for setWindowPeer method.
4075
4076 2004-07-08 Randolph Chung <tausq@debian.org>
4077
4078 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4079 * configure: Regenerate.
4080 * configure.host: Set can_unwind_signal for hppa*-linux.
4081 * include/pa-signal.h: New file.
4082
4083 2004-07-07 Per Bothner <per@bothner.com>
4084
4085 * Makefile.am: Add rules to build libgij from just gij.cc.
4086
4087 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4088 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4089 (initializeClass): If verbose_class_flag, print message.
4090 * gij.cc (main): Handle -verbose:class flag.
4091
4092 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4093
4094 * configure.host: Enable hash synchronization on Darwin.
4095 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4096 ';', since this is a comment on Darwin.
4097 (compare_and_swap_release): Likewise.
4098
4099 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4100
4101 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4102 file portion of URL in addition to spec for file: protocol.
4103
4104 2004-07-05 Anthony Green <green@redhat.com>
4105
4106 * java/io/File.java (toURI): Merge from Classpath.
4107
4108 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4109
4110 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4111 before passing to URL constructor. Rethrow any MalformedURLException
4112 as a RuntimeException. Catch MalformedURLException specifically, not
4113 all exceptions.
4114
4115 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4116
4117 * java/util/Locale.java (readObject): Intern strings read from object
4118 stream.
4119
4120 2004-07-04 Michael Koch <konqueror@gmx.de>
4121
4122 * gnu/gcj/runtime/FirstThread.java,
4123 gnu/gcj/runtime/natFirstThread.cc: Removed.
4124 * gnu/java/lang/MainThread.java,
4125 gnu/java/lang/natMainThread.cc: New files.
4126 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4127 * Makefile.am: Added new files and removed deleted ones.
4128 * Makefile.in: Regenerated.
4129
4130 2004-07-03 Mark Wielaard <mark@klomp.org>
4131 Anthony Green <green@redhat.com>
4132
4133 * java/net/URL.java (getFile): Clarify return value doc.
4134 (getPath): Return null if file is empty - not empty String.
4135 (set): Convert protocol to lower case before doing anything.
4136 Only change the protocol handler if it's different.
4137
4138 2004-07-03 Anthony Green <green@redhat.com>
4139
4140 * java/net/URL.java (URL): Convert protocol to lower case before
4141 doing anything, so we getURLStreamHandler() with the proper value.
4142
4143 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4144
4145 * java/util/Locale.java (hashcode): Made transient.
4146 (hashCode): No longer synchronized.
4147 (equals): Remove comment.
4148 (writeObject): No longer synchronized. Implement using writeObject
4149 calls instead of tweaking hashCode field. Update doc.
4150 (readObject): Implement using readObject calls.
4151
4152 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4153 Andreas Tobler <a.tobler@schweiz.ch>
4154
4155 * configure.host (powerpc-*-darwin*): New case, define
4156 can_unwind_signal.
4157 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4158 * configure: Regenerate.
4159 * include/darwin-signal.h: New.
4160
4161 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4162
4163 * java/beans/Statement.java (doExecute): Fix formatting.
4164
4165 2004-06-29 Per Bothner <per@bothner.com>
4166
4167 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4168 etc etc): Remove needless parenthesis, which causes __stdcall__
4169 attribute on MinGW to get ignored.
4170
4171 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4172
4173 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4174
4175 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4176
4177 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4178
4179 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4180
4181 * java/beans/Expression.java: New file.
4182 * java/beans/Statement.java: New file.
4183 * Makefile.am: Added new files.
4184 * Makefile.in: Re-generate.
4185
4186 2004-06-27 Mark Wielaard <mark@klomp.org>
4187
4188 * java/io/FilePermission.java (usingPerms): Removed.
4189 (actionsString): Made final.
4190 (cachePerms): Renamed to checkPerms.
4191 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4192 on action String.
4193 (FilePermission): Check arguments, call checkPerms().
4194 (equals): Remove cachePerms() call.
4195 (implies): Likewise.
4196
4197 2004-06-27 Mark Wielaard <mark@klomp.org>
4198
4199 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4200 final field.
4201 (sendRequest): Use new field in user-agent http agent.
4202
4203 2004-06-27 Mark Wielaard <mark@klomp.org>
4204
4205 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4206 when argument is null.
4207
4208 2004-06-26 Mark Wielaard <mark@klomp.org>
4209
4210 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4211 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4212 GetMethodID call.
4213 (cancel_clicked): Likewise.
4214
4215 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4216
4217 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4218 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4219 can not calculate the right value.
4220 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4221
4222 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4223
4224 * testsuite/libjava.jacks/jacks.xfail: Remove
4225 15.9.1-qualified-concrete-20.
4226
4227 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4228
4229 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4230 encoding name to iconv.
4231 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4232
4233 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4234
4235 PR libgcj/16134:
4236 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4237 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4238 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4239
4240 2004-06-21 Andrew Haley <aph@redhat.com>
4241
4242 * java/io/ObjectOutputStream.java: Add DEBUG statements
4243 everywhere.
4244 (dumpElementln): New method.
4245 (depth): New field.
4246 * java/io/ObjectInputStream.java
4247 (currentClassLoader): Make native.
4248 (callersClassLoader): New field.
4249 (depth): New field.
4250 (readObject): ENDBLOCKDATA is generated if the class has a write
4251 method, not if it has a read method.
4252 (readObject): Save and restore this.currentObject and
4253 this.currentObjectStreamClass around calls to callReadMethod().
4254 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4255 method.
4256
4257 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4258
4259 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4260 darwin.
4261
4262 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4263
4264 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4265 if desired, before the default class loader is initialised.
4266 Call INIT_SEGV only if HANDLE_SEGV is defined.
4267
4268 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4269
4270 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4271 directory only if it actually exists.
4272
4273 2004-06-18 Graydon Hoare <graydon@redhat.com>
4274
4275 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4276 Fix up non-ansi comments.
4277
4278 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4279
4280 * javax/swing/text/AbstractDocument.java: Adding missing import
4281 for javax.swing.event.EventListenerList.
4282 * javax/swing/text/DefaultCaret.java: Likewise.
4283
4284 2004-06-17 Michael Koch <konqueror@gmx.de>
4285
4286 * javax/swing/JToolBar.java
4287 (name): Removed.
4288 (JToolBar): Use Component.setName(String) instead of doing it all
4289 alone.
4290 * javax/swing/Timer.java
4291 (queueEvent): Added missing modifier.
4292
4293 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4294
4295 * Makefile.am: Added new file.
4296 * Makefile.in: Re-generate.
4297 * javax/swing/JMenu.java:
4298 (insertSeparator): Implemented.
4299 * javax/swing/JPopupMenu.java:
4300 (JPopupMenu.Separator): Implemented.
4301 * javax/swing/MenuSelectionManager.java:
4302 (processMouseEvent): Use java.awt.Component
4303 for event source instead of javax.swing.JComponent.
4304 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4305 New File. Implemented.
4306
4307 2004-06-16 David Jee <djee@redhat.com>
4308
4309 * java/awt/GridBagLayout.java
4310 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4311 Make sure pos_x and pos_y are never negative.
4312
4313 2004-04-16 Andrew Overholt <overholt@redhat.com>
4314
4315 * Makefile.am: Add new file.
4316 * Makefile.in: Re-generate.
4317 * javax/swing/JToolBar.java
4318 Partially implemented.
4319 * javax/swing/plaf/basic/BasicToolBarUI.java
4320 New file. Partially implemented.
4321
4322 2004-06-16 Graydon Hoare <graydon@redhat.com>
4323
4324 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4325 (setComposite): Accept AlphaComposite arguments.
4326 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4327 (createBufferedImage): Add new overloads.
4328 * gnu/java/awt/peer/gtk/GtkToolkit.java
4329 (createImage): Use GdkPixbufDecoder.createBufferedImage
4330 when useGraphics2D() is true.
4331 (getImage): Delegate to createImage.
4332 * javax/swing/JList.java
4333 (isSelectionEmpty):
4334 (getFirstVisibleIndex):
4335 (getLastVisibleIndex):
4336 (setSelectedValue):
4337 (ensureIndexIsVisible): New methods.
4338 * javax/swing/Timer.java: Reimplement.
4339
4340 2004-06-16 Michael Koch <konqueror@gmx.de>
4341
4342 * javax/swing/text/AbstractDocument.java
4343 (AbstracElement): Made public, implements java.io.Serializable.
4344 (AttributeContext): Made public.
4345 (BranchElement): Likewise.
4346 (Content): Likewise.
4347 (DefaultDocumentEvent): Made public, extends
4348 javax.swing.undo.CompoundEdit.
4349 (ElementEdit): Made public, extends
4350 javax.swing.undo.AbstractUndoableEdit.
4351 (LeafElement): Made public.
4352 (LeafElement.LeafElement): Made public.
4353
4354 2004-06-16 Michael Koch <konqueror@gmx.de>
4355
4356 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4357 methods (that were obviously never be intended to get included hi this
4358 class. Added some methods too.
4359
4360 2004-06-16 Michael Koch <konqueror@gmx.de>
4361
4362 * javax/swing/text/PlainDocument.java
4363 (serialVersionUID): New constant.
4364 (lineLimitAttribute): Likewise.
4365 (tabSizeAttribute): Likewise.
4366 (tabSize): New field.
4367 (PlainDocument): Made public.
4368 (PlainDocument): New constructor.
4369
4370 2004-06-16 Michael Koch <konqueror@gmx.de>
4371
4372 * javax/swing/text/AbstractDocument.java
4373 (insertString): Throws BadLocationException.
4374 * javax/swing/text/Document.java
4375 (insertString): Likewise.
4376 * javax/swing/text/JTextComponent.java:
4377 Javadocs and comments cleaned up.
4378
4379 2004-06-16 Michael Koch <konqueror@gmx.de>
4380
4381 * javax/swing/event/UndoableEditListener.java: Reformatted.
4382 * javax/swing/text/AbstractDocument.java
4383 (AbstractDocument): Implements java.io.Serializable.
4384 (doc_list): Removed.
4385 (undo_list): Removed.
4386 (AbstractElement.serialVerionUID): New field.
4387 (BranchElement.serialVerionUID): Likewise.
4388 (DefaultDocumentEvent.serialVerionUID): Likewise.
4389 (ElementEdit.serialVerionUID): Likewise.
4390 (LeafElement.serialVerionUID): Likewise.
4391 (serialVerionUID): Likewise.
4392 (BAD_LOCATION): New constant.
4393 (BidiElementName): Likewise.
4394 (ContentElementName): Likewise.
4395 (ParagraphElementName): Likewise.
4396 (SectionElementName): Likewise.
4397 (ElementNameAttribute): Likewise.
4398 (AbstractDocument): Made protected.
4399 (AbstractDocument): New construtor.
4400 (listenerList): New field.
4401 (fireChangedUpdate): Implemented.
4402 (fireInsertUpdate): Likewise.
4403 (fireRemoveUpdate): Likewise.
4404 (fireUndoableEditUpdate): Likewise.
4405 (getListeners): Likewise.
4406 (addDocumentListener): Likewise.
4407 (removeDocumentListener): Likewise.
4408 (addUndoableEditListener): Likewise.
4409 (removeUndoableEditListener): Likewise.
4410 (getDocumentListeners): New method.
4411 (getUndoableEditListeners): Likewise.
4412 (getAsynchronousLoadPriority): Made public.
4413 (getBidiRootElement): Likewise.
4414 (setAsynchronousLoadPriority): Likewise.
4415 (setDocumentProperties): Likewise.
4416 * javax/swing/text/BadLocationException.java
4417 (serialVerionUID): New field.
4418 * javax/swing/text/DefaultCaret.java
4419 (changeEvent): New field.
4420 (listenerList): Likewise.
4421 (changes): Removed.
4422 (addChangeListener): Reimplemented.
4423 (removeChangeListener): Likewise.
4424 (getListeners): New method.
4425 (getChangeListeners): Likwise.
4426 (getComponent): Likewise.
4427 * javax/swing/text/GapContent.java
4428 (GapContent): Implements java.io.Serializable.
4429 (serialVerionUID): New field.
4430
4431 2004-06-16 Michael Koch <konqueror@gmx.de>
4432
4433 * javax/swing/JTree.java
4434 (treeModel): New field.
4435 (JTree): New constructors, one existing one made public.
4436 (createTreeModel): New method.
4437 (addTreeExpansionListener): Likewise.
4438 (removeTreeExpansionListener): Likewise.
4439 (getTreeExpansionListeners): Likewise.
4440 (fireTreeCollapsed): Likewise.
4441 (fireTreeExpanded): Likewise.
4442 (addTreeSelectionListener): Likewise.
4443 (removeTreeSelectionListener): Likewise.
4444 (getTreeSelectionListeners): Likewise.
4445 (fireValueChanged): Likewise.
4446 (addTreeWillExpandListener): Likewise.
4447 (removeTreeWillExpandListener): Likewise.
4448 (getTreeWillExpandListeners): Likewise.
4449 (fireTreeWillCollapse): Likewise.
4450 (fireTreeWillExpand): Likewise.
4451
4452 2004-06-16 Michael Koch <konqueror@gmx.de>
4453
4454 * javax/swing/JTree.java: Reformatted.
4455
4456 2004-06-16 Michael Koch <konqueror@gmx.de>
4457
4458 * javax/swing/JTextArea.java: New file.
4459 * javax/swing/JTextField.java
4460 (actions): Removed.
4461 (notifyAction): New constant.
4462 (columns): New field.
4463 (JTextField): New constructors.
4464 (createDefaultModel): New method.
4465 (addActionListener): Reimplmemented.
4466 (removeActionListener): Reimplemented.
4467 (getActionListeners): New method.
4468 (fireActionPerformed): New method.
4469 (getColumns): New method.
4470 (setColumne): New method.
4471 * javax/swing/text/JTextComponent.java
4472 (AccessibleJTextComponent.serialVersionUID): New field.
4473 (serialVersionUID): Likewise.
4474 (DEFAULT_KEYMAP): Likewise.
4475 (FOCUS_ACCELERATOR_KEY): Likewise.
4476 (doc): Made private.
4477 (icon_gap): Likewise.
4478 (icon): Likewise.
4479 (align): Likewise.
4480 (JTextComponent): Some constructors removed.
4481 (getScrollableTracksViewportHeight): New method.
4482 (getScrollableTracksViewportWidth): Likewise.
4483 * Makefile.am: Added javax/swing/JTextArea.java.
4484 * Makefile.in: Regenerated.
4485
4486 2004-06-15 Graydon Hoare <graydon@redhat.com>
4487
4488 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4489 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4490 * javax/swing/JViewport.java
4491 (getExtentSize): Return size rather than preferred size.
4492 (toViewCoordinates): New methods.
4493 (getViewSize): Return size rather than preferred size.
4494 (setViewSize): Note view size as set.
4495 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4496 * javax/swing/plaf/basic/BasicScrollBarUI.java
4497 (getPreferredSize): Don't redo layout.
4498 * javax/swing/plaf/basic/BasicViewportUI.java
4499 (paint): Translate image properly and eat exceptions.
4500
4501 2004-06-15 Kim Ho <kho@redhat.com>
4502
4503 * javax/swing/JTabbedPane.java
4504 (setComponent): Remove old component and
4505 add new component.
4506 (setSelectedIndex): Don't operate on the
4507 components if they're null. Don't set index
4508 on the model if the index is the same.
4509 (insertTab): Don't add or hide the component
4510 if it's null. Repaint the container.
4511 * javax/swing/plaf/basic/BasicLookAndFeel.java
4512 Change colors for TabbedPane.
4513 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4514 (mousePressed): Re-layout and paint the component.
4515 (layoutContainer): Don't set location on the view.
4516 (ScrollingViewport::paint): Remove.
4517
4518 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4519
4520 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4521 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4522
4523 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4524 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4525 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4526 critical region.
4527 (drawLine): Call gdk_flush before leaving GDK critical region.
4528 (fillRect): Likewise.
4529 (drawRect): Likewise.
4530 (copyArea): Likewise.
4531 (copyPixmap): Likewise.
4532 (clearRect): Likewise.
4533 (drawArc): Likewise.
4534 (drawPolyline): Likewise.
4535 (drawPolygon): Likewise.
4536 (fillPolygon): Likewise.
4537 (fillArc): Likewise.
4538 (drawOval): Likewise.
4539 (fillOval): Likewise.
4540
4541 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4542 style parameter.
4543 (GdkFontMetrics): Add style argument to initState call.
4544 (stringWidth(String,int,int,String)): Add style parameter.
4545 (stringWidth(String)): Add style argument to stringWidth call.
4546 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4547 (initState): Set pango font style and weight based on AWT style
4548 parameter. Pass default GTK language to
4549 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4550 simply dividing by PANGO_SCALE.
4551 (stringWidth): Set pango font style and weight based on AWT style
4552 parameter.
4553
4554 * java/awt/Button.java (next_button_number): New field.
4555 (paramString): Change output.
4556 (generateName): New method.
4557 (getUniqueLong): New method.
4558
4559 2004-06-14 Kim Ho <kho@redhat.com>
4560
4561 * javax/swing/JTabbedPane.java:
4562 (setComponentAt): Set the component, not
4563 the enabled status.
4564 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4565 (actionPerformed): Let deiconize catch exception.
4566
4567 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4568
4569 * javax/swing/JPopupMenu.java:
4570 (setVisible): Corrected location of a
4571 heavyweight popup menu.
4572
4573 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4574
4575 * javax/swing/MenuSelectionManager.java:
4576 Ran through jalopy to fix formatting style.
4577
4578 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4579
4580 * javax/swing/JLayeredPane.java:
4581 (remove): Revalidate and repaint layered pane after
4582 the component was removed.
4583 javax/swing/JMenu.java:
4584 (setVisible): Display popup menu at the user location,
4585 if one was set by the user.
4586 (setMenuLocation): Reimplemented. Fixed javadoc.
4587 * javax/swing/JMenuBar.java: Added javadoc.
4588 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4589 (MODEL_CHANGED_PROPERTY): New Property.
4590 (isSelected): Implemented.
4591 (setBorderPainted): Fire PropertyChangeEvent
4592 if paintBorder property changes.
4593 (setSelected): Implemented.
4594 (setSelectionModel): Implemented.
4595 * javax/swing/JPopupMenu.java: Added Javadoc
4596 (pack): Implemented.
4597 (setVisible): Reimplemented.
4598 (show): Fixed location.
4599 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4600 Container instead of JPanel.
4601 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4602 (clearSelectedPath): Reimplemented to clear selectedPath
4603 in reverse order.
4604 (processMouseEvent): Reimplemented.
4605 (setSelectedPath): Fire stateChange event indicating that
4606 selected menu path has changed.
4607 (getPath): Change to use ArrayList instead of Vector.
4608 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4609 (installUI): call installKeyboardActions().
4610 (uninstallUI): call uninstallKeyboardActions().
4611
4612 2004-06-13 Michael Koch <konqueror@gmx.de>
4613
4614 * javax/swing/text/DefaultCaret.java,
4615 javax/swing/text/BadLocationException.java:
4616 Reformatted.
4617
4618 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4619
4620 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4621 DEFAULT_COLS): New variables.
4622 (create): Don't allow 0 rows or 0 columns. Instead, set the
4623 values to DEFAULT_ROWS or DEFAULT_COLS.
4624 (getMinimumSize): Likewise.
4625 (getPreferredSize): Likewise.
4626 (minimumSize): Likewise.
4627 (preferredSize): Likewise.
4628 (create): Set peer's editable state.
4629 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4630 zero. Update javadocs.
4631 (TextArea(String)): Likewise.
4632 (TextArea(int,int)): Fix javadocs.
4633 (TextArea(String,int,int,int)): Only throw exception if one of
4634 rows or columns is zero. Fix javadocs.
4635
4636 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4637
4638 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4639 addition to Components.
4640
4641 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4642 wasn't consumed by normal processing, send it to the parent
4643 menu.
4644
4645 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4646 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4647 translation.
4648
4649 2004-06-11 David Jee <djee@redhat.com>
4650
4651 * java/awt/MediaTracker.java
4652 (addImage(Image,int)): Call imageUpdate() to udpate image status.
4653 (addImage(Image,int,int,int)): Likewise.
4654
4655 2004-06-11 Michael Koch <konqueror@gmx.de>
4656
4657 * javax/swing/text/AbstractDocument.java,
4658 javax/swing/text/Document.java,
4659 javax/swing/text/GapContent.java,
4660 javax/swing/text/JTextComponent.java,
4661 javax/swing/text/PlainDocument.java:
4662 Reformatted.
4663
4664 2004-06-11 Michael Koch <konqueror@gmx.de>
4665
4666 * javax/swing/JRootPane.java
4667 (AccessibleJRootPane.serialVersionUID): New field.
4668 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
4669 (AccessibleJRootPane.getAccessibleRole): New method.
4670 (RootLayout): Implements Serializable.
4671 (RootLayout.serialVersionUID): New field.
4672 (RootLayout.RootLayout): New constructor.
4673 (setJMenuBar): Made public.
4674 (getJMenuBar): Likewise.
4675 (JRootPane): Likewise.
4676 (createContentPane): Likewise.
4677 (createGlassPane): Likewise.
4678 (createLayeredPane): Likewise.
4679
4680 2004-06-11 Michael Koch <konqueror@gmx.de>
4681
4682 * javax/swing/SwingUtilities.java
4683 (isLeftMouseButton): Fixed javadoc.
4684 (isMiddleMouseButton): Likewise.
4685 (isRightMouseButton): Likewise.
4686
4687 2004-06-11 Michael Koch <konqueror@gmx.de>
4688
4689 * javax/swing/JScrollPane.java
4690 (serialVersionUID): New field.
4691 (columnHeader): Made protected.
4692 (rowHeader): Likewise.
4693 (lowerLeft): Likewise.
4694 (lowerRight): Likewise.
4695 (upperLeft): Likewise.
4696 (upperRight): Likewise.
4697 (horizontalScrollBar): Likewise.
4698 (horizontalScrollBarPolicy): Likewise.
4699 (verticalScrollBar): Likewise.
4700 (verticalScrollBarPolicy): Likewise.
4701 (viewport): Likewise.
4702
4703 2004-06-11 Michael Koch <konqueror@gmx.de>
4704
4705 * javax/swing/LookAndFeel.java: Fixed javadocs.
4706
4707 2004-06-11 Michael Koch <konqueror@gmx.de>
4708
4709 * javax/swing/JEditorPane.java: Fixed javadocs.
4710 (JEditorPane): Removed redundant call to to this().
4711 (fireHyperlinkUpdate): Implemented.
4712
4713 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4714
4715 * javax/swing/JMenu.java: Fixed file name
4716 in the file comment.
4717
4718 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4719
4720 * javax/swing/JMenu.java: Added javadoc.
4721 (JMenu): Added MenuChangeListener to listen to
4722 ChangeEvents occuring in menu's model.
4723 (insert): Throw IllegalArgumentException if
4724 index is less than 0
4725 (setSelected): Reimplement.
4726 (setPopupMenuVisible): Call menu's model isEnabled()
4727 (setDelay): Throw IllegalArgumentException if
4728 given amount of delay is less than 0.
4729 (createActionComponent): Implemented.
4730 (createActionChangeListener): Implemented.
4731 (addSeparator): Implemented.
4732 (getItem): Throw IllegalArgumentException if index is
4733 less than 0.
4734 (getItemCount): Implemented.
4735 (fireMenuSelected): Changed to use menuEvent.
4736 (fireMenuDeselected): Likewise.
4737 (fireMenuCanceled): Likewise.
4738 (setAccelerator): Changed to throw an error if this
4739 method is used.
4740 (doClick): Implemented.
4741 (JMenu.ActionChangedListener): New inner class to handle
4742 PropertyChangeEvents occuring in the actions associated with menu.
4743 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
4744 (BasicMenuUI): Added PropertyChangeListener to the menu.
4745 (createChangeListener): Implemented.
4746 (createMenuDragMouseListener): Likewise.
4747 (createMenuKeyListener): Likewise.
4748 (createPropertyChangeListener): Likewise.
4749 (uninstallListeners): Likewise.
4750 (BasicMenuUI.MouseInputHandler): Reimplemented.
4751 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
4752 (BasicMenuUI.ChangeHandler): Likewise.
4753 (BasicMenuUI.MenuDragMouseHandler): Likewise.
4754 (BasicMenuUI.MenuKeyHandler): Likewise.
4755
4756 2004-06-10 David Jee <djee@redhat.com>
4757
4758 * java/awt/MediaTracker.java
4759 (imageUpdate): Only do notifyAll() if the image is complete.
4760
4761 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4762
4763 * javax/swing/JApplet.java:
4764 (getJMenuBar): Made public.
4765 (setJMenuBar): Likewise.
4766 * javax/swing/JFrame.java:
4767 (getJMenuBar): Made public.
4768 (setJMenuBar): Likewise.
4769 * javax/swing/JWindow.java:
4770 (getJMenuBar): Removed.
4771 (setJMenuBar): Removed.
4772
4773 2004-06-10 Michael Koch <konqueror@gmx.de>
4774
4775 * javax/swing/JEditorPane.java
4776 (createEditorKitForContentType): Fixed visibility.
4777 (fireHyperlinkUpdate): Likewise.
4778 (getContentType): Likewise.
4779 (getEditorKit): Likewise.
4780 (getEditorKitForContentType): Likewise.
4781 (getPage): Likewise.
4782 (read): Likewise.
4783 (registerEditorKitForContentTyoe): Likewise.
4784 (replaceSelection): Likewise.
4785 (setContentType): Likewise.
4786 (setEditorKit): Likewise.
4787 (setPage): Likewise.
4788
4789 2004-06-10 Michael Koch <konqueror@gmx.de>
4790
4791 * javax/swing/Timer.java
4792 (Timer): New constructor.
4793 * javax/swing/plaf/basic/BasicProgressBarUI.java
4794 (animationTimer): Don't initialize at construction.
4795 (startAnimationTimer): Added since tag.
4796 (stopAnimationTimer): Likewise.
4797 (installUI): Use new Timer constructor.
4798 * javax/swing/plaf/basic/BasicScrollBarUI.java
4799 (installUI): Likewise.
4800 * javax/swing/plaf/basic/BasicSliderUI.java
4801 (installUI): Likewise.
4802
4803 2004-06-10 Michael Koch <konqueror@gmx.de>
4804
4805 * javax/swing/ButtonGroup.java
4806 (serialVersionUID): Made private.
4807 (buttons): Renamed from v, added javadoc.
4808 (sel): Added javadoc.
4809 (ButtonGroup): Likewise.
4810 (add): Likewise.
4811 (remove): Likewise.
4812 (getElements): Likewise.
4813 (getSelection): Likewise.
4814 (setSelected): Likewise.
4815 (isSelected): Likewise.
4816 (getButtonCount): Likewise.
4817
4818 2004-06-10 Michael Koch <konqueror@gmx.de>
4819
4820 * javax/swing/ButtonGroup.java,
4821 javax/swing/ImageIcon.java,
4822 javax/swing/JEditorPane.java,
4823 javax/swing/JRootPane.java,
4824 javax/swing/JTextField.java,
4825 javax/swing/LookAndFeel.java,
4826 javax/swing/plaf/basic/BasicTextUI.java:
4827 Reindented.
4828
4829 2004-06-10 Michael Koch <konqueror@gmx.de>
4830
4831 * javax/swing/text/Style.java: Added javadocs.
4832
4833 2004-06-10 Michael Koch <konqueror@gmx.de>
4834
4835 * javax/swing/JComponent.java
4836 (fireVetoableChange): Removed redundant cast.
4837 * javax/swing/JLabel.java
4838 (getDisabledIcon): Save icon for next call.
4839
4840 2004-06-10 Michael Koch <konqueror@gmx.de>
4841
4842 * javax/swing/KeyStroke.java
4843 (getKeyStroke(char,boolean)): Marked deprecated.
4844
4845 2004-06-10 Michael Koch <konqueror@gmx.de>
4846
4847 * javax/swing/DefaultCellEditor.java,
4848 javax/swing/GrayFilter.java,
4849 javax/swing/event/DocumentEvent.java,
4850 javax/swing/text/JTextComponent.java,
4851 javax/swing/text/MutableAttributeSet.java:
4852 Reindented.
4853
4854 2004-06-10 Michael Koch <konqueror@gmx.de>
4855
4856 * javax/swing/plaf/BorderUIResource.java:
4857 Added serialVersionUID all over.
4858
4859 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
4860
4861 * javax/swing/undo/UndoManager.java: Re-written from scratch.
4862
4863 2004-06-10 Michael Koch <konqueror@gmx.de>
4864
4865 * javax/swing/table/DefaultTableCellRenderer.java
4866 (noFocusBorder): Initialize directly.
4867
4868 2004-06-10 Michael Koch <konqueror@gmx.de>
4869
4870 * javax/swing/plaf/basic/BasicArrowButton.java
4871 (setDirection): Use method argument.
4872
4873 2004-06-10 Michael Koch <konqueror@gmx.de>
4874
4875 * javax/swing/plaf/BorderUIResource.java,
4876 javax/swing/plaf/ComponentUI.java,
4877 javax/swing/undo/CompoundEdit.java,
4878 javax/swing/undo/StateEdit.java:
4879 Fixed javadocs all over.
4880
4881 2004-06-10 Michael Koch <konqueror@gmx.de>
4882
4883 * javax/swing/DefaultButtonModel.java
4884 (ARMED): Made public final, fixed value.
4885 (ENABLED): Likewise.
4886 (PRESSED): Likewise.
4887 (ROLLOVER): Likewise.
4888 (SELECTED): Likewise.
4889 (stateMask): Initialize directly.
4890 (listenerList): Likewise.
4891 (mnemonic): Likewise.
4892 (fireStateChanged): Removed argument, use changeEvent as event.
4893 All places where this method is called are fixed too.
4894 (getActionCommant): Fixed javadoc.
4895 (setGroup): Fixed javadoc.
4896 (getGroup): New method.
4897
4898 2004-06-09 Olga Rodimina <rodimina@redhat.com>
4899
4900 * javax/swing/AbstractButton.java
4901 (AbstractButton): Use init() to initialize the button.
4902 (init): New Method. Initializes AbstractButton.
4903 * javax/swing/JMenuItem.java: Documented.
4904 (JMenuItem): Reimplemented.
4905 (init): Implemented.
4906 (setEnabled): Changed to call super.setEnabled()
4907 (processMouseEvent): Reimplemented.
4908 (fireMenuKeyPressed): Implemented.
4909 (fireMenuKeyReleased): Implemented.
4910 (fireMenuKeyTyped): Implemented.
4911 (menuSelectionChanged): disarm the model if the menu item was
4912 deselected.
4913 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
4914 (getPath): Change to use ArrayList instead of Vector.
4915 (getPreferredSize): Renamed variable.
4916 (paintMenuItem): Paint margin area of menu item.
4917 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
4918 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
4919 menu item's bounds before clearing the selection.
4920
4921 2004-06-09 David Jee <djee@redhat.com>
4922
4923 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
4924 (GtkTextComponentPeer): Set caret position to 0.
4925 * java/awt/TextComponent.java
4926 (setText): Set caret position to 0.
4927 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4928 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
4929 Handle GtkScrolledWindow separately. Fix signal handler blocking.
4930 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
4931 Likewise.
4932 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
4933 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
4934 visible.
4935
4936 2004-06-09 Kim Ho <kho@redhat.com>
4937
4938 * Makefile.am: New files
4939 * Makefile.in: Regenerated
4940 * java/awt/Container.java
4941 (getComponentAt): Removed.
4942 * javax/swing/AbstractAction.java
4943 (ENABLED_PROPERTY): New property.
4944 (putValue): Fire PropertyChangeEvents.
4945 (setEnabled): ditto.
4946 (firePropertyChange): Javadoc and implement
4947 convenience method.
4948 * javax/swing/AbstractButton.java
4949 (setAction): Don't create PropertyChangeListener
4950 if new Action is null.
4951 (setIcon): Don't set icon till after comparing
4952 it.
4953 (configurePropertiesFromAction): Check mnemonic
4954 key before calling intValue().
4955 (createActionPropertyChangeListener): Check
4956 properties rather than bulk change.
4957 * javax/swing/DefaultDesktopManager.java:
4958 Implement.
4959 * javax/swing/DesktopManager.java:
4960 Jalopy and javadoc.
4961 * javax/swing/JComponent.java
4962 (fireVetoableChange): Implement.
4963 (paintImmediately): Use root component.
4964 * javax/swing/JDesktopPane.java: Implement
4965 * javax/swing/JInternalFrame.java: Implement
4966 * javax/swing/JLabel.java
4967 (getDisabledIcon): Return grayscaled icon if
4968 no disabled icon specified.
4969 * javax/swing/JMenuBar.java
4970 (getComponentAtIndex): Use getComponent
4971 * javax/swing/JOptionPane.java
4972 (getDesktopPaneForComponent): Use SwingUtilities'
4973 getAncestorOfClass
4974 (getFrameForComponent): ditto.
4975 * javax/swing/JSplitPane.java
4976 (remove): Use getComponent.
4977 * javax/swing/SwingUtilities.java
4978 (convertPoint): Implement.
4979 * javax/swing/plaf/basic/BasicButtonUI.java
4980 (paintButtonNormal): Check opaqueness before
4981 filling background.
4982 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
4983 Implement
4984 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
4985 Implement.
4986 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
4987 Implement.
4988 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
4989 Implement.
4990 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4991 Change InternalFrame and Desktop colors.
4992
4993 2004-06-09 David Jee <djee@redhat.com>
4994
4995 * java/awt/Container.java
4996 (remove): Do not set component to invisible.
4997
4998 2004-06-09 Michael Koch <konqueror@gmx.de>
4999
5000 * javax/swing/tree/DefaultMutableTreeNode.java
5001 (getLeafCount): Renamed enum to e.
5002
5003 2004-06-09 Michael Koch <konqueror@gmx.de>
5004
5005 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5006 (positionForMouseEvent): Removed redundant semicolon.
5007 (continueDrag): Use method arguments.
5008
5009 2004-06-09 Michael Koch <konqueror@gmx.de>
5010
5011 * javax/swing/border/TitledBorder.java,
5012 javax/swing/filechooser/FileSystemView.java,
5013 javax/swing/plaf/basic/BasicButtonListener.java,
5014 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5015 javax/swing/plaf/basic/BasicLabelUI.java,
5016 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5017 javax/swing/plaf/basic/BasicScrollBarUI.java,
5018 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5019 javax/swing/plaf/basic/BasicSliderUI.java,
5020 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5021 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5022 javax/swing/table/JTableHeader.java,
5023 javax/swing/text/AbstractDocument.java,
5024 javax/swing/text/DefaultCaret.java,
5025 javax/swing/text/StyledEditorKit.java,
5026 javax/swing/tree/DefaultTreeCellEditor.java:
5027 Reworked import statements.
5028
5029 2004-06-08 Graydon Hoare <graydon@redhat.com>
5030
5031 * javax/swing/Box.java: Temporarily comment out code
5032 broken due to visibility bug.
5033
5034 2004-06-09 Michael Koch <konqueror@gmx.de>
5035
5036 * javax/swing/ImageIcon.java
5037 (ImageIcon): Added missing constructor.
5038
5039 2004-06-08 Michael Koch <konqueror@gmx.de>
5040
5041 * javax/swing/JToggleButton.java
5042 (JToggleButton): New constructor.
5043 (getAccessibleContext): Moved documentation into javadoc.
5044 (getUIClassID): Likewise.
5045
5046 2004-06-08 Michael Koch <konqueror@gmx.de>
5047
5048 * javax/swing/AbstractButton.java
5049 (getDisabledIcon): Create disabled icon if none exists yet.
5050
5051 2004-06-08 Michael Koch <konqueror@gmx.de>
5052
5053 * javax/swing/plaf/basic/BasicLookAndFeel.java
5054 (initClassDefaults): Added FormattedTextFieldUI.
5055 (loadResourceBundle): Renamed enum to e.
5056
5057 2004-06-08 Michael Koch <konqueror@gmx.de>
5058
5059 * javax/swing/plaf/basic/BasicButtonUI.java
5060 (paintIcon): Simplified.
5061 (paintText): Paint disabled button correctly.
5062
5063 2004-06-08 Michael Koch <konqueror@gmx.de>
5064
5065 * javax/swing/JComponent.java
5066 (createToolTip): Use official JToolTip API.
5067
5068 2004-06-08 Michael Koch <konqueror@gmx.de>
5069
5070 * javax/swing/JToolTip.java
5071 (JToolTip): No arguments in API.
5072 (setTipText): New method.
5073
5074 2004-06-08 Michael Koch <konqueror@gmx.de>
5075
5076 * javax/swing/SwingUtilities.java
5077 (isLeftMouseButton): New method.
5078 (isMiddleMouseButton): New method.
5079 (isRightMouseButton): New method.
5080
5081 2004-06-08 Michael Koch <konqueror@gmx.de>
5082
5083 * javax/swing/AbstractButton.java,
5084 javax/swing/CellRendererPane.java,
5085 javax/swing/JCheckBoxMenuItem.java,
5086 javax/swing/JColorChooser.java,
5087 javax/swing/JComboBox.java,
5088 javax/swing/JComponent.java,
5089 javax/swing/JDesktopPane.java,
5090 javax/swing/JFileChooser.java,
5091 javax/swing/JMenu.java,
5092 javax/swing/JMenuItem.java,
5093 javax/swing/JOptionPane.java,
5094 javax/swing/JPasswordField.java,
5095 javax/swing/JPopupMenu.java,
5096 javax/swing/JProgressBar.java,
5097 javax/swing/JRadioButtonMenuItem.java,
5098 javax/swing/JScrollBar.java,
5099 javax/swing/JSeparator.java,
5100 javax/swing/JSlider.java,
5101 javax/swing/JSplitPane.java,
5102 javax/swing/JTabbedPane.java,
5103 javax/swing/JTextField.java,
5104 javax/swing/JToolBar.java,
5105 javax/swing/text/JTextComponent.java:
5106 Fixed all constructors of accessibility classes.
5107
5108 2004-06-08 Michael Koch <konqueror@gmx.de>
5109
5110 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5111 over.
5112
5113 2004-06-08 Michael Koch <konqueror@gmx.de>
5114
5115 * javax/swing/Box.java
5116 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5117 (AccessibleBoxFiller.serialVersionUID): New member variable.
5118 * javax/swing/DefaultButtonModel.java
5119 (stateMask): Made protected.
5120 (listenerList): Likewise.
5121 (changeEvent): Likewise.
5122 (group): Likewise.
5123 (mnemonic): Likewise.
5124 (actionCommand): Likewise.
5125 (getListeners): New method.
5126 (getActionListeners): New method.
5127 (getItemListeners): New method.
5128 (getChangeListeners): New method.
5129 (fireItemStateChanged): Simplified.
5130 (fireActionPerformed): Simplified.
5131 (fireStateChanged): Simplified.
5132 * javax/swing/JFrame.java
5133 (JFrame): Implements WindowContants.
5134 (HIDE_ON_CLOSE): Removed.
5135 (EXIT_ON_CLOSE): Removed.
5136 (DISPOSE_ON_CLOSE): Removed.
5137 (DO_NOTHING_ON_CLOSE): Removed.
5138 (processWindowEvent): Exit with code 0.
5139 (setDefaultCloseOperation): Do security check before setting value.
5140 * javax/swing/JOptionPane.java
5141 (message): Initialize only in constructor.
5142 * javax/swing/JToolTip.java: Removed unused imports.
5143 * javax/swing/JViewport.java
5144 (serialVersionUID): New member variable.
5145 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5146 (BLIT_SCROLL_MODE): Likewise.
5147 (BACKINGSTORE_SCROLL_MODE): Likewise.
5148 (scrollUnderway): Made protected.
5149 (isViewSizeSet): Likewise.
5150 * javax/swing/ListModel.java: Fixed javadoc.
5151 * javax/swing/Popup.java: Likewise.
5152 * javax/swing/RepaintManager.java
5153 (paintDirtyRegions): Don't use internal classes of
5154 java.util.AbstractMap.
5155 * javax/swing/ScrollPaneConstants.java: Reindented.
5156 * javax/swing/ScrollPaneLayout.java
5157 (viewport): Made protected.
5158 (verticalScrollBar): Made protected, renamed to vsb.
5159 (horizontalScrollBar): Made protected, renamed to hsb.
5160 (rowHeader): Made protected, renamed to rowHead.
5161 (columnHeader): Made protected, renamed to colHead.
5162 (lowerLeft): Made protected.
5163 (lowerRight): Made protected.
5164 (upperLeft): Made protected.
5165 (upperRight): Made protected.
5166 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5167 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5168
5169 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5170
5171 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5172 LOADING if flags has SOMEBITS set.
5173
5174 2004-06-07 Michael Koch <konqueror@gmx.de>
5175
5176 * javax/swing/AbstractButton.java: Reorganized imports.
5177 * javax/swing/ActionMap.java: Likewise.
5178 * javax/swing/DefaultButtonModel.java: Likewise.
5179 * javax/swing/DefaultListModel.java: Likewise.
5180 * javax/swing/ImageIcon.java: Likewise.
5181 (serialVersionUID): New member variable.
5182 * javax/swing/JComboBox.java: Reorganized imports.
5183 * javax/swing/JComponent.java: Likewise.
5184 (ui): Made protected.
5185 (listenerList): Made protected.
5186 (TOOL_TIP_TEXT_KEY): New constant.
5187 (scrollRectToVisible): Removed redundant null check.
5188 * javax/swing/JFrame.java: Reorganized imports.
5189 * javax/swing/JInternalFrame.java: Reorganized imports.
5190 * javax/swing/JProgressBar.java: Likewise.
5191 * javax/swing/JRootPane.java: Likewise.
5192 * javax/swing/JScrollBar.java: Likewise.
5193 * javax/swing/JSeparator.java: Likewise.
5194 * javax/swing/JSlider.java: Likewise.
5195 * javax/swing/JTabbedPane.java: Likewise.
5196 * javax/swing/JTextField.java: Likewise.
5197 * javax/swing/JToolBar.java: Likewise.
5198 * javax/swing/JTree.java: Likewise.
5199 * javax/swing/JViewport.java: Likewise.
5200 * javax/swing/JWindow.java: Likewise.
5201 * javax/swing/KeyStroke.java: Likewise.
5202 * javax/swing/LookAndFeel.java: Likewise.
5203 * javax/swing/MenuSelectionManager.java: Likewise.
5204 * javax/swing/SwingUtilities.java: Likewise.
5205 * javax/swing/Timer.java: Likewise.
5206 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5207 * javax/swing/JList.java
5208 (HORIZONTAL_WRAP): Made final, fixed value.
5209 (VERTICAL): Likewise.
5210 (VERTICAL_WRAP): Likewise.
5211
5212 2004-06-07 Michael Koch <konqueror@gmx.de>
5213
5214 * javax/swing/AbstractButton.java
5215 (serialVersionUID): New member variable.
5216 (AccessibleAbstractButton.serialVersionUID): Likewise.
5217 (AbstractButton): Made public.
5218 * javax/swing/Box.java
5219 (AccessibleBox.serialVersionUID): New member variable.
5220 (Filler.serialVersionUID): Likewise.
5221 * javax/swing/DefaultListSelectionModel.java
5222 (serialVersionUID): Likewise.
5223 * javax/swing/JApplet.java
5224 (serialVersionUID): Likewise.
5225 * javax/swing/JCheckBox.java
5226 (serialVersionUID): Likewise.
5227 * javax/swing/JCheckBoxMenuItem.java
5228 (serialVersionUID): Likewise.
5229 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5230 * javax/swing/JColorChooser.java
5231 (serialVersionUID): Likewise.
5232 (AccessibleJColorChooser.serialVersionUID): Likewise.
5233 * javax/swing/JComponent.java
5234 (serialVersionUID): Made private.
5235 (AccessibleJComponent.serialVersionUID): New member variable.
5236 * javax/swing/JDesktopPane.java
5237 (serialVersionUID): Likewise.
5238 * javax/swing/JDialog.java
5239 (serialVersionUID): Likewise.
5240 * javax/swing/JFormattedTextField.java
5241 (serialVersionUID): Fixed value.
5242 * javax/swing/JFrame.java
5243 (serialVersionUID): New member variable.
5244 (getDefaultCloseOpertation): Made public.
5245 * javax/swing/JLayeredPane.java
5246 (serialVersionUID): Likewise.
5247 (LAYER_PROPERTY): Made final, fixed value.
5248 (JLayeredPane): Made public.
5249 * javax/swing/JMenu.java
5250 (AccessibleJMenu.serialVersionUID): New member variable.
5251 (WinListener.serialVersionUID): Likewise.
5252 * javax/swing/JMenuBar.java
5253 (serialVersionUID): Likewise.
5254 (getComponentAtIndex): Added @deprecated tag.
5255 * javax/swing/JMenuItem.java
5256 (serialVersionUID): New member variable.
5257 (AccessibleJMenuItem.serialVersionUID): Likewise.
5258 * javax/swing/JOptionPane.java
5259 (serialVersionUID): Likewise.
5260 (AccessibleJOptionPane.serialVersionUID): Likewise.
5261 * javax/swing/JPopupMenu.java
5262 (serialVersionUID): Likewise.
5263 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5264 (getPopupMenuListeners): New method.
5265 (getComponentAtIndex): Added @deprecated tag.
5266 * javax/swing/JProgressBar.java
5267 (serialVersionUID): New member variable.
5268 (AccessibleJProgressBar.serialVersionUID): Likewise.
5269 * javax/swing/JRadioButton.java
5270 (serialVersionUID): Likewise.
5271 * javax/swing/JRadioButtonMenuItem.java
5272 (serialVersionUID): Likewise.
5273 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5274 * javax/swing/JScrollBar.java
5275 (serialVersionUID): Likewise.
5276 (AccessibleJScrollBar.serialVersionUID): Likewise.
5277 * javax/swing/JSeparator.java
5278 (serialVersionUID): Likewise.
5279 (AccessibleJSeparator.serialVersionUID): Likewise.
5280 * javax/swing/JSlider.java: Fixed javadocs.
5281 (AccessibleJSlider.serialVersionUID): New member variable.
5282 * javax/swing/JSplitPane.java: Added copyright statement.
5283 (serialVersionUID): New member variable.
5284 (AccessibleJSplitPane.serialVersionUID): Likewise.
5285 * javax/swing/JTabbedPane.java
5286 (serialVersionUID): Likewise.
5287 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5288 (ModelListener.serialVersionUID): Likewise.
5289 (ModelListener.ModelListener): New constructor.
5290 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5291 (WRAP_TAB_LAYOUT): Likewise.
5292 * javax/swing/JTable.java
5293 (serialVersionUID): New member variable.
5294 * javax/swing/JToggleButton.java
5295 (serialVersionUID): Likewise.
5296 (ToggleButtonModel): Made static.
5297 (ToggleButtonModel.serialVersionUID): New member variable.
5298 * javax/swing/JToolTip.java
5299 (serialVersionUID): Likewise.
5300 * javax/swing/JTree.java
5301 (serialVersionUID): Likewise.
5302 * javax/swing/JWindow.java
5303 (serialVersionUID): Likewise.
5304 * javax/swing/Timer.java
5305 (serialVersionUID): Likewise.
5306
5307 2004-06-06 Michael Koch <konqueror@gmx.de>
5308
5309 * javax/swing/SwingConstants.java
5310 (NEXT): New constant.
5311 (PREVIOUS): Likewise.
5312 * javax/swing/UIManager.java
5313 (LookAndFeel): Made public.
5314 (LookAndFeel.getClassName): Likewise.
5315 (LookAndFeel.getName): Likewise.
5316
5317 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5318
5319 * javax/swing/JCheckBoxMenuItem.java:
5320 Removed CVS tags.
5321 * javax/swing/JMenu.java: Likewise.
5322 * javax/swing/JMenuBar.java: Likewise.
5323 * javax/swing/JMenuItem.java: Likewise.
5324 * javax/swing/JPopupMenu.java: Likewise.
5325 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5326 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5327 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5328 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5329 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5330 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5331 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5332
5333 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5334
5335 * javax/swing/plaf/basic/BasicMenuUI.java:
5336 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5337 Call getPath() from super class instead.
5338
5339 2004-05-31 David Jee <djee@redhat.com>
5340
5341 * java/awt/Container.java
5342 (remove): Set component visibility to false after removing it.
5343
5344 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5345
5346 * java/awt/Component.java (getForeground): Return SystemColor if
5347 parent is null.
5348 (getBackground): Likewise.
5349
5350 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5351 (item_highlighted): New function.
5352 (connectSignals): Set item_highlighted as list's select
5353 function.
5354
5355 * java/applet/Applet.java: Revert changes from 2004-04-29,
5356 2004-03-15 and 2004-03-14.
5357
5358 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5359 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5360 factor.
5361
5362 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5363 "Dialog" as the default font.
5364 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5365 Likewise.
5366 * java/awt/Component.java (getFont): Return "Dialog" font by
5367 default.
5368 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5369 Multiply size argument to pango_font_description_set_size by the
5370 DPI conversion factor rather than by PANGO_SCALE.
5371 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5372 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5373 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5374 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5375 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5376 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5377 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5378 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5379 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5380 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5381 Divide baseline y coordinate by DPI conversion factor rather
5382 than by PANGO_SCALE.
5383 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5384 (area_prepared): Fix typo.
5385 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5386 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5387 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5388 (dpi_conversion_factor): New global variable.
5389 (init_dpi_conversion_factor): New function to calculate and
5390 track DPI conversion factor.
5391 (dpi_changed_cb): New callback.
5392 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5393
5394 2004-05-27 David Jee <djee@redhat.com>
5395
5396 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5397 (getGraphics): Return a new GdkGraphics instance.
5398 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5399 (getGraphics): Call super.getGraphics().
5400
5401 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5402
5403 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5404 (setNativeBounds): Clamp width and height values to >= 0.
5405
5406 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5407 (find_fg_color_widget): Handle GtkOptionMenu specially.
5408
5409 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5410 (pre_event_handler): Only post configure events to visible
5411 top-level windows.
5412
5413 2004-05-26 David Jee <djee@redhat.com>
5414
5415 * java/awt/BorderLayout.java
5416 (layoutContainer): Fix size calculations.
5417
5418 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5419
5420 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5421 (window_wm_protocols_filter): Remove function.
5422 (create): Remove filter that removes WM_TAKE_FOCUS client
5423 messages.
5424
5425 2004-06-17 Anthony Green <green@redhat.com>
5426
5427 * java/util/zip/ZipFile.java (getInputStream): Return null if
5428 entry not found.
5429
5430 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5431 directory contents to the class path.
5432
5433 2004-06-15 Andrew Haley <aph@redhat.com>
5434
5435 * java/lang/natSystem.cc (getenv0): Don't assume environment
5436 variable is Latin 1 coded.
5437
5438 2004-06-14 Andreas Jaeger <aj@suse.de>
5439
5440 * configure.in: Support --enable-version-specific-runtime-libs.
5441 * configure: Regenerated.
5442
5443 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5444
5445 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5446 to pass ClassLoader argument.
5447 * java/util/GregorianCalendar.java: Likewise.
5448 * java/util/Currency.java: Likewise.
5449 * java/text/BreakIterator.java: Likewise.
5450 * java/text/Collator.java: Likewise.
5451 * java/text/DateFormat.java: Likewise.
5452 * java/text/DateFormatSymbols.java: Likewise.
5453 * java/text/DecimalFormatSymbols.java: Likewise.
5454 * java/text/NumberFormat.java: Likewise.
5455 * java/awt/Window.java: Likewise.
5456
5457 2004-06-14 Andrew Haley <aph@redhat.com>
5458
5459 * java/lang/System.java: (getenv0): New method.
5460 (getenv): Add security check. Do the right thing.
5461 * java/lang/natSystem.cc (getenv0): New method.
5462
5463 2004-06-12 Mark Wielaard <mark@klomp.org>
5464
5465 * javax/swing/RepaintManager.java
5466 (paintDirtyRegions): Use entrySet(), not values().
5467
5468 2004-06-10 Mark Wielaard <mark@klomp.org>
5469
5470 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5471 NoSuchMethodError.
5472
5473 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5474
5475 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5476 when we already know the answer.
5477 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5478 (setStartRule,setEndRule): Don't take abs of day number.
5479 (getOffset): Clarify docs. Add argument checks.
5480 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5481 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5482 endTimeMode.
5483
5484 2004-06-10 Tom Tromey <tromey@redhat.com>
5485
5486 * interpret.cc (run): Handle wide fload.
5487
5488 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5489
5490 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5491
5492 2004-06-05 Michael Koch <konqueror@gmx.de>
5493
5494 * javax/swing/SwingConstants.java
5495 (NEXT): New constant.
5496 (PREVIOUS): Likewise.
5497
5498 2004-06-05 Michael Koch <konqueror@gmx.de>
5499
5500 * javax/swing/UIManager.java
5501 (LookAndFeel): Made public.
5502 (LookAndFeel.getName): Likewise.
5503 (LookAndFeel.getClassName): Likewise.
5504
5505 2004-06-03 Michael Koch <konqueror@gmx.de>
5506
5507 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5508 (requestFocus): Revert last changes.
5509 (gtkRequestFocus): Removed.
5510 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5511 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5512 Renamed to ...
5513 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5514 Reverted last patch.
5515 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5516 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5517 Reverted comment change.
5518
5519 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5520
5521 * javax/swing/JCheckBoxMenuItem.java:
5522 Removed CVS tags.
5523 * javax/swing/JMenu.java: Likewise.
5524 * javax/swing/JMenuBar.java: Likewise.
5525 * javax/swing/JMenuItem.java: Likewise.
5526 * javax/swing/JPopupMenu.java: Likewise.
5527 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5528 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5529 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5530 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5531 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5532 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5533 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5534
5535 2004-06-01 Tom Tromey <tromey@redhat.com>
5536
5537 * java/io/ObjectStreamField.java: Cleaned up imports.
5538
5539 2004-06-01 Michael Koch <konqueror@gmx.de>
5540
5541 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5542
5543 2004-06-01 Mark Wielaard <mark@klomp.org>
5544
5545 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5546
5547 2004-06-01 Michael Koch <konqueror@gmx.de>
5548
5549 * java/security/Security.java
5550 (insertProviderAt): Use equals() instead of ==.
5551 (removeProvicer): Likewise.
5552 (getProvider): Likewise.
5553 * java/security/Signature.java
5554 (sign): Don't set state to UNINITIALIZED.
5555 (verify): Likewise.
5556
5557 2004-06-01 Mark Wielaard <mark@klomp.org>
5558
5559 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5560 Implement by calling gtkRequestFocus.
5561 (gtkRequestFocus): New native method.
5562 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5563 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5564 Renamed to ...
5565 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5566 New function name.
5567 (filter_expose_event_handler):
5568 Mark static.
5569 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5570 (menu_pos): Mark static.
5571
5572 2004-06-01 Michael Koch <konqueror@gmx.de>
5573
5574 * java/text/CollationElementIterator.java,
5575 java/text/CollationKey.java,
5576 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5577 * testsuite/libjava.mauve/xfails: Removed all
5578 java.text.CollationElementIterator tests.
5579
5580 2004-06-01 Michael Koch <konqueror@gmx.de>
5581
5582 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5583 version.
5584 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5585 Java 1.5 keyword usage.
5586
5587 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5588
5589 * javax/swing/plaf/basic/BasicMenuUI.java:
5590 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5591 Call getPath() from super class instead.
5592
5593 2004-05-31 Michael Koch <konqueror@gmx.de>
5594
5595 * java/io/SequenceInputStream.java:
5596 Rename enum to e because enum is a keyword in Java 1.5.
5597
5598 2004-05-31 Michael Koch <konqueror@gmx.de>
5599
5600 * gnu/java/rmi/rmic/CompilerProcess.java:
5601 Fixed javadoc to by XHTML compliant.
5602
5603 2004-05-30 Mark Wielaard <mark@klomp.org>
5604
5605 * java/awt/Toolkit.java (loadSystemColors): Implement.
5606
5607 2004-05-30 Michael Koch <konqueror@gmx.de>
5608
5609 * java/lang/System.java: Reordered imports.
5610
5611 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5612
5613 * java/text/DecimalFormat.java
5614 (parse): Fixed parsing of decimal strings. Number of maximum
5615 digits to be read should now work.
5616 * java/text/SimpleDateFormat.java
5617 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5618 formatter. This fixes DateFormatTest.
5619
5620 2004-05-30 Michael Koch <konqueror@gmx.de>
5621
5622 * java/nio/Buffer.java
5623 (limit): Fixed off by one error.
5624 * java/nio/CharBuffer.java
5625 (wrap): Fixed arguments, added javadocs.
5626
5627 2004-05-30 Michael Koch <konqueror@gmx.de>
5628
5629 * gnu/java/beans/BeanInfoEmbryo.java,
5630 java/awt/im/InputContext.java,
5631 javax/swing/tree/DefaultMutableTreeNode.java:
5632 Rename enum to e because enum is a keyword in Java 1.5.
5633
5634 2004-05-30 Michael Koch <konqueror@gmx.de>
5635
5636 * gnu/java/math/MPN.java,
5637 java/awt/geom/Arc2D.java:
5638 Fixed javadocs all over.
5639
5640 2004-05-30 Michael Koch <konqueror@gmx.de>
5641
5642 * java/awt/DefaultKeyboardFocusManager.java
5643 (dispatchEvent): Call method to get key event dispatchers.
5644 (dispatchKeyEvent): Call method to get key event post processors.
5645 * javax/swing/JComponent.java
5646 (listenerList): Made protected.
5647 * javax/swing/JOptionPane.java
5648 (message): Don't initialize.
5649 (JOptionPane): Set message text.
5650 * javax/swing/JPopupMenu.java
5651 (show): Fixed typo in argument name.
5652 * javax/swing/RepaintManager.java
5653 (paintDirtyRegions): Use public API of java.util.Map.
5654 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5655 (positionForMouseEvent): Removed redundant ';'.
5656 (continueDrag): Use method arguments.
5657
5658 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
5659
5660 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
5661 results.
5662
5663 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
5664
5665 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
5666 _Jv_AllocBytes.
5667 * gnu/gcj/RawDataManaged.java: New file.
5668 * java/lang/Thread.java (data): Declare as RawDataManaged.
5669 * java/lang/natThread.cc (init_native): Cast natThread data to
5670 RawDataManaged, not jobject.
5671 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
5672 * Makefile.in: Rebuilt.
5673
5674 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
5675
5676 * java/util/SimpleTimeZone.java: Reverting my last change until I
5677 can fix it properly.
5678
5679 2004-05-27 Michael Koch <konqueror@gmx.de>
5680
5681 * javax/swing/JPopupMenu.java
5682 (isVisible): Do not use visible directly.
5683 (setVisible): Likewise.
5684 * javax/swing/JWindow.java
5685 (JWindow): call accessible constructor.
5686 * javax/swing/RepaintManager.java
5687 (paintDirtyRegions): Use public methods to obtain iterator.
5688
5689 2004-05-25 David Jee <djee@redhat.com>
5690
5691 * java/awt/Container.java
5692 (remove): Set component's parent to null only after we removed the
5693 component from its parent's layout manager.
5694
5695 2004-05-25 David Jee <djee@redhat.com>
5696
5697 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5698 (GtkComponentPeer): Set bounds regardless of whether awtComponent
5699 is valid.
5700 * gnu/java/awt/peer/gtk/GtkListPeer.java
5701 (getSize): Change native method declaration.
5702 (minimumSize): Pass visible row count into getSize().
5703 (preferredSize): Likewise.
5704 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5705 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
5706 natural size. Use visible row count to determine the final height
5707 value to return.
5708
5709 2004-05-21 Graydon Hoare <graydon@redhat.com>
5710
5711 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5712 (setClip): Minor correction to order of operations.
5713
5714 * javax/swing/JScrollPane.java: Extend sketchy implementation.
5715 * javax/swing/ScrollPaneLayout.java: Likewise.
5716 * javax/swing/JViewPort.java: Likewise.
5717 * javax/swing/ViewportLayout.java: Likewise.
5718
5719 * javax/swing/JComponent.java: Rewrite.
5720 * javax/swing/RepaintManager.java: Likewise.
5721
5722 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
5723 * javax/swing/JList.java
5724 (setSelectedIndices):
5725 (getSelectedIndices):
5726 (getSelectedValues): New functions.
5727 (getPreferredScrollableViewportSize): Return preferred size.
5728 (getScrollableUnitIncrement):
5729 (getScrollableBlockIncrement): Initial implementations.
5730 * javax/swing/JRootPane.java: Clean up slightly.
5731 (getUI):
5732 (setUI):
5733 (updateUI):
5734 (getUIClassID):
5735 (isValidateRoot): Add overrides from JComponent.
5736 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
5737 * javax/swing/UIManager.java (getDimension): Return the dimension.
5738
5739 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
5740 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5741 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5742 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5743 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5744 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
5745 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
5746 * javax/swing/plaf/basic/BasicRootPaneUI.java:
5747 Likewise, and set background.
5748 * javax/swing/plaf/basic/BasicListUI.java:
5749 Likewise, and improve a bit.
5750 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5751 Likewise, and adjust calculations.
5752 * javax/swing/plaf/basic/BasicViewportUI.java:
5753 Likewise, and improve a bit.
5754 * javax/swing/plaf/basic/BasicLookAndFeel.java
5755 (Button.margin): Shrink.
5756
5757 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5758 Hack to set horizontal always, workaround pango.
5759
5760 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
5761 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
5762 Synchronize more often, check cairo status after ops,
5763 handle changes to cairo pattern API, check for disposal.
5764
5765 2004-05-21 Olga Rodimina <rodimina@redhat.com>
5766
5767 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5768 (BasicMenuItemUI): Create propertyChangeListener.
5769 (getPath):Implemented.
5770 (installListeners): Add propertyChangeListener to menuItem.
5771 (uninstallListeners): Remove propertyChangeListener from menuItem.
5772 (update): Implemented.
5773 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5774 (mouseEntered): Take insets of popup menu into account when
5775 calculating position of popup menu.
5776
5777 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5778
5779 * Makefile.am: Added new file.
5780 * Makefile.in: Regenerate.
5781 * javax/swing/JMenuBar.java:
5782 Started implementation.
5783 * javax/swing/JPopupMenu.java:
5784 (setVisible): Fixed location of lightweight/mediumweight
5785 popup menu.
5786 (show): Fixed location of PopupMenu.
5787 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5788 New file. UI Delegate for JMenuBar.
5789 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5790 (mouseEntered): Corrected position of the submenu.
5791
5792 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
5793
5794 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
5795 to _gtk_accel_group_attach.
5796 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5797 Likewise.
5798
5799 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
5800 package access. Don't override setFont.
5801 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
5802 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
5803 gtkWidgetRequestFocus package access.
5804 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
5805 setFont.
5806 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
5807 Give gtkWidgetRequestFocus package access.
5808 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
5809 gtkWidgetRequestFocus package access. Don't override setFont.
5810 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
5811 setFont.
5812 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5813 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
5814 region.
5815 (gtkSetFont): Likewise.
5816 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
5817 Implement.
5818 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5819 (gtkSetFont): Whitespace fix.
5820
5821 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5822 (gtkWidgetSetUsize): Remove method.
5823
5824 2004-05-18 David Jee <djee@redhat.com>
5825
5826 * java/awt/image/MemoryImageSource.java
5827 (newPixels(int,int,int,int,boolean)): Set only the specified
5828 rectangle of pixels.
5829 (newPixels(byte[],ColorModel,int,int)): Implement.
5830 (newPixels(int[],ColorModel,int,int)): Implement.
5831
5832 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5833
5834 * Makefile.am: Added new file.
5835 * Makefile.in: Regenerate.
5836 * javax/swing/JMenu.java: Started
5837 implementation.
5838 * javax/swing/JPopupMenu.java:
5839 (insert): If specified index is -1, then
5840 add component at the end.
5841 (isPopupTrigger): Reimplemented.
5842 (JPopupMenu.LightWeightPopup): setBounds
5843 of the lightWeightPopup before adding it
5844 to the layeredPane.
5845 (javax/swing/plaf/basic/BasicIconFactory.java):
5846 (getMenuArrowIcon): Implemented.
5847 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5848 (getPreferredSize): Add size of the arrow icon
5849 if this menu item is instance of JMenu.
5850 (paintMenuItem): Paint arrow icon if this
5851 menu item is a submenu.
5852 * javax/swing/plaf/basic/BasicMenuUI.java:
5853 New File. UI Delegate for JMenu.
5854
5855 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
5856
5857 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
5858 Post KEY_TYPED events.
5859 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5860 (generates_key_typed_event): Remove function.
5861
5862 2004-05-17 Olga Rodimina <rodimina@redhat.com>
5863
5864 * javax/swing/JRootPane.java
5865 (JRootPane.RootLayout): Reimplemented to
5866 set bounds of contentPane and menuBar.
5867 (setJMenuBar): Add menu bar to the layered pane.
5868 (createLayeredPane): Set layout of layeredPane
5869 to null.
5870 * javax/swing/JLayeredPane.java:
5871 (addImpl): Calculate index of the component in the
5872 layeredPane according to the specified position within
5873 the layer.
5874
5875 2004-05-17 David Jee <djee@redhat.com>
5876
5877 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5878 (setPixels): Change color model to the default model after
5879 converting pixels.
5880 * java/awt/image/MemoryImageSource.java
5881 (newPixels): Set only the specified rectangle of pixels.
5882
5883 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5884
5885 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
5886 -l-java-beans -l-javax-accessibility -l-javax-swing.
5887
5888 * java/awt/AWTEvent.java (toString): Print source's name rather
5889 than the source itself.
5890
5891 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5892
5893 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
5894 native.
5895 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
5896 (gdk_color_to_java_color): New function.
5897 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
5898
5899 2004-05-12 David Jee <djee@redhat.com>
5900
5901 * java/awt/image/RGBImageFilter.java:
5902 Initialize origmodel as null.
5903 (makeColor): Fix pixel component order.
5904 (filterRGBPixels): Fix pixel iteration.
5905 (setPixels): Add extra checks for index color model. Convert pixels
5906 to default color model if necessary.
5907 (convertColorModelToDefault): New override method for byte pixels.
5908 (convertColorModelToDefault): For int pixels, fix pixel iteration.
5909 (makeColorbyDefaultCM): New override method for byte pixels.
5910 (makeColorbyDefaultCM): For int pixel, add color model as argument.
5911 (makeColor): Fix pixel component order.
5912
5913 2004-05-11 Kim Ho <kho@redhat.com>
5914
5915 * javax/swing/Box.java:
5916 Comment out more parts of Box.Filler.
5917
5918 2004-05-11 Kim Ho <kho@redhat.com>
5919
5920 * javax/swing/Box.java:
5921 Remove reference to AccessibleAWTComponent so
5922 it compiles again.
5923
5924 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
5925
5926 * gnu/java/awt/peer/gtk/GtkListPeer.java,
5927 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
5928 implementation of list peer to use GtkTreeView instead of
5929 deprecated GtkCList.
5930
5931 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
5932
5933 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5934 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
5935 (handleEvent): Remove keyChar argument to
5936 gtkWidgetDispatchKeyEvent calls.
5937 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
5938 compiler warnings.
5939 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5940 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
5941 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5942 Likewise.
5943
5944 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
5945
5946 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5947 (gtkWidgetRequestFocus): Mark protected.
5948 (GtkComponentPeer): Only set the peer's bounds if its component
5949 is valid.
5950 * java/awt/Component.java (static): Set the default keyboard
5951 focus manager.
5952 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
5953 requestFocusInWindow(temporary)): Don't request focus if the
5954 component is not showing. Get tree lock before traversing
5955 component hierarchy.
5956 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
5957 Only set the global focus owner if it is not a Window.
5958 (processKeyEvent): Consume keystrokes associated with the focus
5959 traversal keystroke.
5960 (focusPreviousComponent, focusNextComponent, upFocusCycle,
5961 downFocusCycle): Call requestFocusInWindow instead of
5962 requestFocus.
5963 * java/awt/EventDispatchThread.java (run): Move setting of
5964 default keyboard focus manager to Component.java.
5965 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5966 (awt_keycode_to_keysym): New function.
5967 (gtkWidgetDispatchKeyEvent): Finish implementation.
5968 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5969 (pre_event_handler): Add FIXME comment.
5970
5971 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
5972 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5973 (gtkWidgetRequestFocus): New method.
5974 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
5975 disable Tab and Shift-Tab keystrokes.
5976 (addNotify, appendText, insertText, replaceText): Simplify peer
5977 retrieval code.
5978 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
5979 (connectSignals): Remove connections to "commit" signals.
5980 Remove C++-style comments.
5981
5982 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
5983 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5984 (handleEvent): Activate GTK button when the space bar key is
5985 pressed.
5986 (gtkActivate): New method.
5987
5988 2004-05-06 David Jee <djee@redhat.com>
5989
5990 * java/awt/image/CropImageFilter.java
5991 (setPixels): Implement for byte array pixels.
5992 * java/awt/image/ReplicateScaleFilter.java
5993 (setPixels): Implement for byte array pixels.
5994 (replicatePixels): Overload for byte array pixels.
5995
5996 2004-05-06 Kim Ho <kho@redhat.com>
5997
5998 * javax/swing/Box.java:
5999 (getAccessibleContext): Return an instance of the
6000 correct class.
6001
6002 2004-05-05 David Jee <djee@redhat.com>
6003
6004 * gnu/java/awt/peer/gtk/GdkGraphics.java
6005 (drawImage): When component is null, use SystemColor.window as
6006 the default bgcolor.
6007 * gnu/java/awt/peer/gtk/GtkImage.java
6008 (setPixels): We can avoid iterating through the pixel rows only
6009 when height is 1.
6010 * java/awt/Image.java
6011 (getScaledInstance): Partially implement.
6012 * java/awt/image/CropImageFilter.java
6013 (setProperties): Fix "filter" property.
6014 (setPixels): Implement.
6015 * java/awt/image/ReplicateScaleFilter.java
6016 (setDimensions): Use scaled dimensions.
6017 (setPixels): Implement.
6018 (replicatePixels): New method.
6019
6020 2004-05-05 David Jee <djee@redhat.com>
6021
6022 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6023 (convertPixels): If either pixels or model is null, return null.
6024 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6025 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6026 is null, do nothing and return.
6027
6028 2004-05-03 Kim Ho <kho@redhat.com>
6029
6030 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6031 (getGraphics): Like GtkFramePeer, the Graphics
6032 object needs to be translate to account for
6033 window decorations.
6034 (postMouseEvent): New method. Account for
6035 translation.
6036 (postExposeEvent): ditto.
6037 * javax/swing/Box.java: Stubbed.
6038 * javax/swing/JDialog.java: Ran through jalopy
6039 to fix indentation.
6040 (JDialog): Call SwingUtilities' getOwnerFrame
6041 for null owners.
6042 (setLayout): Check isRootPaneCheckingEnabled
6043 * javax/swing/JOptionPane.java: Re-implemented.
6044 * javax/swing/SwingUtilities.java:
6045 (getOwnerFrame): Static method to grab a default
6046 owner frame for Dialogs that don't specify owners.
6047 * javax/swing/event/SwingPropertyChangeSupport.java:
6048 (firePropertyChange): Fix early exit condition.
6049 * javax/swing/plaf/basic/BasicLabelUI.java:
6050 (paint): Avoid painting text if it is null
6051 or empty.
6052 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6053 Implement.
6054
6055 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6056
6057 * Makefile.am: Added new file.
6058 * Makefile.in: Regenerate.
6059 * javax/swing/JPopupMenu.java:
6060 Started implementation.
6061 * javax/swing/JWindow.java
6062 (JWindow): call super() if parent for window
6063 is not specified.
6064 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6065 New File. UI Delegate for JPopupMenu.
6066
6067 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6068
6069 * javax/swing/JApplet.java: Indicated that JApplet
6070 implements RootPaneContainer and made method of this
6071 interface public.
6072 * javax/swing/JFrame.java: Ditto.
6073 * javax/swing/JWindow.java: Ditto.
6074
6075 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6076
6077 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6078 (nativeSetBounds): Call gdk_window_move in addition to
6079 gtk_window_move.
6080
6081 * java/applet/Applet.java (preferredSize): Call parent's
6082 preferredSize if the applet stub is null.
6083 (minimumSize): Likewise for parent's minimumSize.
6084
6085 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6086
6087 * javax/swing/JMenuItem.java
6088 (createActionPropertyChangeListener): Implemented.
6089 (processMouseEvent): Ditto.
6090 (fireMenuDragMouseEntered): Ditto.
6091 (fireMenuDragMouseExited): Ditto.
6092 (fireMenuDragMouseDragged): Ditto.
6093 (fireMenuDragMouseReleased): Ditto.
6094 (menuSelectionChanged): Ditto.
6095 (getSubElements): Ditto.
6096 (getComponent): Ditto.
6097 (addMenuDragMouseListener): Ditto.
6098 (removeMenuDragMouseListener):Ditto.
6099 (addMenuKeyListener): Ditto.
6100 (removeMenuKeyListener): Ditto.
6101 * javax/swing/plaf/basic/BasicMenuItemUI.java
6102 (doClick): Imlemented.
6103 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6104 Don't handle mouse events here. Pass them to
6105 MenuSelectionManager.
6106
6107 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6108 Used correct version of jalopy configuration
6109 file to fix style in the files below.
6110
6111 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6112
6113 * javax/swing/JCheckBoxMenuItem.java:
6114 Fixed style and removed unnecessary comments.
6115 * javax/swing/JMenuItem.java: Ditto.
6116 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6117 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6118 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6119 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6120
6121 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6122
6123 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6124 C-style.
6125
6126 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6127
6128 * java/awt/ContainerOrderFocusTraversalPolicy.java
6129 (getComponentAfter): Start from current component and work up
6130 the component hierarchy until an acceptable component is found.
6131 Synchronize on tree lock.
6132 (getComponentBefore): Likewise.
6133
6134 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6135
6136 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6137 focus-related debugging messages.
6138 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6139 * java/awt/EventDispatchThread.java: Likewise.
6140 * java/awt/KeyboardFocusManager.java: Likewise.
6141 * java/awt/Window.java: Likewise.
6142 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6143 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6144
6145 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6146 new C++-style comments to C-style comments.
6147 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6148
6149 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6150 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6151 (handleEvent): Dispatch key press and key release events to
6152 backing widget.
6153 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6154 (gtkWidgetRequestFocus): New method.
6155 (gtkWidgetDispatchKeyEvent): Likewise.
6156 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6157 requestFocusInWindow, requestFocusInWindow(boolean),
6158 getFocusCycleRootAncestor, nextFocus, transferFocus,
6159 transferFocusBackward, transferFocusUpCycle, hasFocus,
6160 isFocusOwner): Implement and document focus-handling methods.
6161 (setFocusTraversalKeys): Inherit focus traversal keys when
6162 keystrokes argument is null. Fix focus-handling documentation
6163 throughout class.
6164 * java/awt/Container.java (setFocusTraversalKeys,
6165 getFocusTraversalKeys, areFocusTraversalKeysSet,
6166 isFocusCycleRoot, setFocusTraversalPolicy,
6167 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6168 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6169 Implement and document focus-handling methods.
6170 (transferFocusBackward): Remove method.
6171 (readObject, writeObject): Implement and document serialization
6172 methods.
6173 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6174 and document.
6175 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6176 document.
6177 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6178 partially document.
6179 * java/awt/EventDispatchThread.java (run): Set default keyboard
6180 focus manager. Attempt to dispatch each event to the keyboard
6181 focus manager before normal dispatch.
6182 * java/awt/KeyboardFocusManager.java: Implement and partially
6183 document.
6184 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6185 (show): Focus initial component when window is shown for the
6186 first time.
6187 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6188 (pre_event_handler): Replace complex key press and key release
6189 logic with simple callbacks into GtkComponentPeer.
6190 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6191
6192 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6193
6194 * javax/swing/MenuSelectionManager.java
6195 (componentForPoint): Added new method.
6196 (defaultManager): New Method. Implemented.
6197 (getSelectedPath): Ditto.
6198 (isComponentPartOfCurrentMenu): Ditto.
6199 (processKeyEvent): Added new method.
6200 (processMouseEvent): New Method. Implemented.
6201 (setSelectedPath): Ditto.
6202 (getPath): Ditto.
6203
6204 2004-04-19 Kim Ho <kho@redhat.com>
6205
6206 * java/awt/Container.java:
6207 (remove): Set the component's parent to null.
6208 (getComponentAt): Implement.
6209 * javax/swing/JComponent.java:
6210 (JComponent): Initialize defaultLocale
6211 (getDefaultLocale): Implement.
6212 (setDefaultLocale): ditto.
6213 * javax/swing/JSlider.java:
6214 (JSlider): Fix calculation of value.
6215 * javax/swing/JSplitPane.java: Implement.
6216 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6217 Change SplitPane's default divider size.
6218 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6219 (paint): Remove unused code.
6220 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6221 Added comments and ran through jalopy.
6222 (setBasicSplitPaneUI): Get reference to hidden divider
6223 and set up one touch buttons if necessary.
6224 (setBorder): Fire propertyChangeEvent only if
6225 borders are different.
6226 (getPreferredSize): Defer to layout manager.
6227 (propertyChange): Implement.
6228 (oneTouchExpandableChanged): ditto.
6229 (createLeftOneTouchButton): Use BasicArrowButton.
6230 (createRightOneTouchButton): ditto.
6231 (moveDividerTo): New method. Moves the divider
6232 to a set location based on the last divider location.
6233 (BasicSplitPaneDivider::MouseHandler): Implement.
6234 (BasicSplitPaneDivider::OneTouchButton): Removed.
6235 (BasicSplitPaneDivider::DragController): Implement.
6236 (BasicSplitPaneDivider::VerticalDragController):
6237 ditto.
6238 (BasicSplitPaneDivider::DividerLayout): ditto.
6239 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6240 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6241 (calculateLayoutInfo): Don't show component if it's
6242 null.
6243 (paintTab): Fix title paint logic.
6244
6245 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6246
6247 PR libgcj/8321
6248 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6249 (setStartRule,setEndRule): Don't take abs of day number.
6250 (getOffset): Clarify docs. Add argument checks.
6251 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6252 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6253 endTimeMode.
6254 * testsuite/libjava.mauve/xfails
6255 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6256
6257 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6258
6259 Layout interfaces during preparation, not initialization.
6260 * java/lang/natClass.cc (initializeClass): Move
6261 _Jv_LayoutInterfaceMethods call...
6262 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6263
6264 2004-05-19 Anthony Green <green@localhost.localdomain>
6265
6266 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6267 gnu.javax.rmi code.
6268 * Makefile.in: Rebuilt.
6269 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6270 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6271 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6272 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6273 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6274 gnu/javax/rmi/CORBA/DelegateFactory.java,
6275 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6276 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6277 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6278 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6279 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6280 gnu/javax/rmi/PortableServer.java: Remove files.
6281
6282 2004-05-19 Anthony Green <green@redhat.com>
6283
6284 * Makefile.am: Define JAVA_EXT_DIRS.
6285 * Makefile.in: Rebuilt.
6286 * java/lang/natRuntime.cc (insertSystemProperties): Set
6287 java.ext.dirs property.
6288
6289 2004-05-16 Mark Wielaard <mark@klomp.org>
6290
6291 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6292
6293 2004-05-15 Mark Wielaard <mark@klomp.org>
6294
6295 * doc/cni.sgml: Removed, merged into gcj.texi.
6296
6297 2004-05-15 Mark Wielaard <mark@klomp.org>
6298
6299 * Makefile.am (ordinary_java_source_files): Add new javax.print
6300 classes.
6301 * Makefile.in: Regenerated.
6302
6303 2004-05-15 Michael Koch <konqueror@gmx.de>
6304
6305 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6306 javax/print/attribute/standard/DateTimeAtCreation.java,
6307 javax/print/attribute/standard/DateTimeAtProcessing.java,
6308 javax/print/attribute/standard/DocumentName.java,
6309 javax/print/attribute/standard/JobHoldUntil.java,
6310 javax/print/attribute/standard/JobImpressionsCompleted.java,
6311 javax/print/attribute/standard/JobMessageFromOperator.java,
6312 javax/print/attribute/standard/JobName.java,
6313 javax/print/attribute/standard/JobOriginatingUserName.java,
6314 javax/print/attribute/standard/JobPriority.java,
6315 javax/print/attribute/standard/JobPrioritySupported.java,
6316 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6317 javax/print/attribute/standard/OutputDeviceAssigned.java,
6318 javax/print/attribute/standard/PrinterInfo.java,
6319 javax/print/attribute/standard/PrinterLocation.java,
6320 javax/print/attribute/standard/PrinterMakeAndModel.java,
6321 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6322 javax/print/attribute/standard/PrinterName.java,
6323 javax/print/attribute/standard/QueuedJobCount.java,
6324 javax/print/attribute/standard/RequestingUserName.java:
6325 Fixed javadocs all over.
6326
6327 2004-05-15 Michael Koch <konqueror@gmx.de>
6328
6329 * javax/print/DocFlavor.java,
6330 javax/print/attribute/standard/ColorSupported.java,
6331 javax/print/attribute/standard/Compression.java,
6332 javax/print/attribute/standard/CopiesSupported.java,
6333 javax/print/attribute/standard/Fidelity.java,
6334 javax/print/attribute/standard/Finishings.java,
6335 javax/print/attribute/standard/JobImpressionsSupported.java,
6336 javax/print/attribute/standard/JobKOctetsSupported.java,
6337 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6338 javax/print/attribute/standard/JobSheets.java,
6339 javax/print/attribute/standard/JobState.java,
6340 javax/print/attribute/standard/JobStateReason.java,
6341 javax/print/attribute/standard/JobStateReasons.java,
6342 javax/print/attribute/standard/Media.java,
6343 javax/print/attribute/standard/MediaSizeName.java,
6344 javax/print/attribute/standard/MultipleDocumentHandling.java,
6345 javax/print/attribute/standard/NumberUpSupported.java,
6346 javax/print/attribute/standard/OrientationRequested.java,
6347 javax/print/attribute/standard/PDLOverrideSupported.java,
6348 javax/print/attribute/standard/PageRanges.java,
6349 javax/print/attribute/standard/PresentationDirection.java,
6350 javax/print/attribute/standard/PrintQuality.java,
6351 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6352 javax/print/attribute/standard/PrinterMoreInfo.java,
6353 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6354 javax/print/attribute/standard/PrinterResolution.java,
6355 javax/print/attribute/standard/PrinterState.java,
6356 javax/print/attribute/standard/PrinterStateReason.java,
6357 javax/print/attribute/standard/PrinterStateReasons.java,
6358 javax/print/attribute/standard/PrinterURI.java,
6359 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6360 javax/print/attribute/standard/Severity.java,
6361 javax/print/attribute/standard/SheetCollate.java,
6362 javax/print/attribute/standard/Sides.java:
6363 Added serialVersionUID and removed final keyword where it doenst
6364 belong.
6365
6366 2004-05-15 Michael Koch <konqueror@gmx.de>
6367
6368 * javax/print/PrintServiceLookup.java: New file.
6369
6370 2004-05-15 Michael Koch <konqueror@gmx.de>
6371
6372 * javax/print/DocFlavor.java:
6373 Implemented all flavor classes.
6374
6375 2004-05-15 Michael Koch <konqueror@gmx.de>
6376
6377 * javax/print/attribute/standard/ColorSupported.java,
6378 javax/print/attribute/standard/Compression.java,
6379 javax/print/attribute/standard/CopiesSupported.java,
6380 javax/print/attribute/standard/Fidelity.java,
6381 javax/print/attribute/standard/Finishings.java,
6382 javax/print/attribute/standard/JobImpressionsSupported.java,
6383 javax/print/attribute/standard/JobKOctetsSupported.java,
6384 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6385 javax/print/attribute/standard/JobSheets.java,
6386 javax/print/attribute/standard/JobState.java,
6387 javax/print/attribute/standard/JobStateReason.java,
6388 javax/print/attribute/standard/JobStateReasons.java,
6389 javax/print/attribute/standard/Media.java,
6390 javax/print/attribute/standard/MediaSizeName.java,
6391 javax/print/attribute/standard/MultipleDocumentHandling.java,
6392 javax/print/attribute/standard/NumberUpSupported.java,
6393 javax/print/attribute/standard/OrientationRequested.java,
6394 javax/print/attribute/standard/PDLOverrideSupported.java,
6395 javax/print/attribute/standard/PageRanges.java,
6396 javax/print/attribute/standard/PresentationDirection.java,
6397 javax/print/attribute/standard/PrintQuality.java,
6398 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6399 javax/print/attribute/standard/PrinterMoreInfo.java,
6400 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6401 javax/print/attribute/standard/PrinterResolution.java,
6402 javax/print/attribute/standard/PrinterState.java,
6403 javax/print/attribute/standard/PrinterStateReason.java,
6404 javax/print/attribute/standard/PrinterStateReasons.java,
6405 javax/print/attribute/standard/PrinterURI.java,
6406 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6407 javax/print/attribute/standard/Severity.java,
6408 javax/print/attribute/standard/SheetCollate.java,
6409 javax/print/attribute/standard/Sides.java: New files.
6410
6411 2004-05-15 Michael Koch <konqueror@gmx.de>
6412
6413 * javax/print/Doc.java
6414 (getPrintData): Throws IOException.
6415 (getReaderForText): Likewise.
6416 (getStreamForBytes): Likewise.
6417 * javax/print/DocFlavor.java:
6418 Fixed filename in copyright.
6419 (serialVersionUID): New field.
6420 * javax/print/ServiceUIFactory.java:
6421 Made all constants final.
6422 * javax/print/AttributeException.java
6423 javax/print/MultiDoc.java
6424 javax/print/MultiDocPrintJob.java
6425 javax/print/MultiDocPrintService.java
6426 javax/print/StreamPrintService.java
6427 javax/print/URIException.java: New files.
6428 * javax/print/Makefile.am
6429 (EXTRA_DIST): Added all new files.
6430
6431 2004-05-15 Michael Koch <konqueror@gmx.de>
6432
6433 * javax/print/attribute/standard/Copies.java,
6434 javax/print/attribute/standard/DateTimeAtCompleted.java,
6435 javax/print/attribute/standard/DateTimeAtCreation.java,
6436 javax/print/attribute/standard/DateTimeAtProcessing.java,
6437 javax/print/attribute/standard/DocumentName.java,
6438 javax/print/attribute/standard/JobHoldUntil.java,
6439 javax/print/attribute/standard/JobImpressions.java,
6440 javax/print/attribute/standard/JobImpressionsCompleted.java,
6441 javax/print/attribute/standard/JobKOctets.java,
6442 javax/print/attribute/standard/JobKOctetsProcessed.java,
6443 javax/print/attribute/standard/JobMediaSheets.java,
6444 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6445 javax/print/attribute/standard/JobMessageFromOperator.java,
6446 javax/print/attribute/standard/JobName.java,
6447 javax/print/attribute/standard/JobOriginatingUserName.java,
6448 javax/print/attribute/standard/JobPriority.java,
6449 javax/print/attribute/standard/JobPrioritySupported.java,
6450 javax/print/attribute/standard/NumberOfDocuments.java,
6451 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6452 javax/print/attribute/standard/NumberUp.java,
6453 javax/print/attribute/standard/OutputDeviceAssigned.java,
6454 javax/print/attribute/standard/PagesPerMinute.java,
6455 javax/print/attribute/standard/PagesPerMinuteColor.java:
6456 Fixed @return tag all over.
6457
6458 2004-05-15 Michael Koch <konqueror@gmx.de>
6459
6460 * javax/print/attribute/AttributeSetUtilities.java
6461 (verifyCategoryForValue): Fixed typo in javadoc.
6462 * javax/print/attribute/HashAttributeSet.java
6463 (containsKey): Fixed @return tag.
6464 (comtainsValue): Likewise.
6465 (equals): Likewise.
6466 * javax/print/attribute/IntegerSyntax.java
6467 (equals): Likewise.
6468 * javax/print/attribute/ResolutionSyntax.java
6469 (equals): Likewise.
6470 (getCrossFeedResolution): Removed unused code.
6471 (getFeedResolution): Likewise.
6472 * javax/print/attribute/SetOfIntegerSyntax.java
6473 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6474 (equals): Fixed @return tag.
6475 * javax/print/attribute/TextSyntax.java
6476 (TextSyntax): Take locale into account.
6477 (hashCode): Better implementation.
6478
6479 2004-05-15 Michael Koch <konqueror@gmx.de>
6480
6481 * javax/print/CancelablePrintJob.java,
6482 javax/print/Doc.java,
6483 javax/print/DocFlavor.java,
6484 javax/print/DocPrintJob.java,
6485 javax/print/FlavorException.java,
6486 javax/print/PrintException.java,
6487 javax/print/PrintService.java,
6488 javax/print/ServiceUIFactory.java: New files.
6489
6490 2004-05-15 Mark Wielaard <mark@klomp.org>
6491
6492 * gnu/regexp/CharIndexedReader.java: Removed.
6493 * gnu/regexp/REFilterReader.java: Likewise.
6494 * gnu/regexp/RETokenLookAhead.java: Likewise.
6495 * Makefile.am (ordinary_java_source_files): Remove above classes.
6496 * Makefile.in: Regenerated.
6497
6498 2004-05-14 Tom Tromey <tromey@redhat.com>
6499
6500 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6501 not `XGraphicsConfiguration.XOffScreenImage'.
6502
6503 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6504
6505 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6506
6507 2004-05-14 Steven Augart <augart@watson.ibm.com>
6508
6509 * include/jni.h (_Jv_func): Removed.
6510 (struct JNINativeInterface): Use `void *' for reserved slots.
6511 (struct JNIInvokeInterface): Likewise.
6512
6513 2004-05-11 Michael Koch <konqueror@gmx.de>
6514
6515 * gnu/java/net/natPlainSocketImplPosix.cc
6516 (read): Fixed typo in expression.
6517
6518 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6519
6520 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6521 ld_library_additions. Adjust all calls to libjava_invoke to match
6522 the new argument.
6523
6524 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6525 path to cxxflagslist.
6526 Pass path of libstdc++ to libjava_invoke.
6527
6528 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6529 libjava_invoke arguments.
6530
6531 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6532
6533 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6534 reality.
6535
6536 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6537
6538 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6539 main binary against the JNI shared library.
6540
6541 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6542
6543 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6544 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6545 (SimpleTimeZone): Tweak docs. Add new variation.
6546 (setStartRule,setEndRule): Add new variations. Use
6547 startTimeMode and endTimeMode.
6548
6549 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6550
6551 * java/util/Calendar.java (getActualMinimum,
6552 getActualMaximum): Remove abstract. Implement.
6553
6554 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6555
6556 Run the jni tests using the interpreter.
6557 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6558 options_cxx to shared lib compile command.
6559 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6560 they are used to link the shared lib, not the main binary.
6561 Use libjava_invoke to run gij.
6562
6563 2004-05-06 Michael Koch <konqueror@gmx.de>
6564
6565 * java/util/logging/Level.java
6566 (parse): Use == instead of String.equals().
6567
6568 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6569
6570 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6571 verify_field_signature and verify_method_signature, not
6572 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6573 (_Jv_ClassReader::handleField): Likewise.
6574 (_Jv_ClassReader::handleMethod): Likewise.
6575
6576 2004-05-06 Michael Koch <konqueror@gmx.de>
6577
6578 * javax/swing/table/TableColumn.java:
6579 Reformated.
6580
6581 2004-05-06 Michael Koch <konqueror@gmx.de>
6582
6583 * javax/imageio/spi/ImageReaderWriterSpi.java
6584 (ImageReaderWriterSpi): Made it public.
6585 * javax/imageio/stream/ImageInputStream.java:
6586 Clean up imports.
6587
6588 2004-05-06 Michael Koch <konqueror@gmx.de>
6589
6590 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6591 Removed empty line.
6592
6593 2004-05-06 Michael Koch <konqueror@gmx.de>
6594
6595 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6596 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6597 New files.
6598 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6599 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6600 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6601 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6602 their own source file.
6603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6604 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6605 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6606 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6607 (create): Define variable on top of function.
6608 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6609 (menu_pos): Prototyped.
6610 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6611 (setTitle): Removed.
6612 * jni/gtk-peer/gthread-jni.c
6613 (gdk_threads_wake): Removed.
6614 * Makefile.am (gtk_c_source_files): Added new files
6615 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6616 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6617 * Makefile.in: Regenerated.
6618
6619 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6620
6621 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6622 call.
6623
6624 2004-05-05 Mark Wielaard <mark@klomp.org>
6625
6626 * javax/swing/AbstractButton.java: Replace special HTML entities with
6627 ASCII equivalent.
6628 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6629 * javax/swing/DefaultButtonModel.java: Likewise.
6630 * javax/swing/DefaultListModel.java: Likewise.
6631 * javax/swing/JList.java: Likewise.
6632 * javax/swing/JSlider.java: Likewise.
6633 * javax/swing/ListModel.java: Likewise.
6634 * javax/swing/Popup.java: Likewise.
6635 * javax/swing/SwingUtilities.java: Likewise.
6636
6637 2004-05-05 Michael Koch <konqueror@gmx.de>
6638
6639 * javax/swing/AbstractButton.java,
6640 javax/swing/ActionMap.java,
6641 javax/swing/DefaultButtonModel.java,
6642 javax/swing/DefaultListModel.java,
6643 javax/swing/ImageIcon.java,
6644 javax/swing/JComboBox.java,
6645 javax/swing/JComponent.java,
6646 javax/swing/JFrame.java,
6647 javax/swing/JInternalFrame.java,
6648 javax/swing/JMenuBar.java,
6649 javax/swing/JMenuItem.java,
6650 javax/swing/JOptionPane.java,
6651 javax/swing/JProgressBar.java,
6652 javax/swing/JRootPane.java,
6653 javax/swing/JScrollBar.java,
6654 javax/swing/JScrollPane.java,
6655 javax/swing/JSeparator.java,
6656 javax/swing/JSlider.java,
6657 javax/swing/JTabbedPane.java,
6658 javax/swing/JTable.java,
6659 javax/swing/JTextField.java,
6660 javax/swing/JToolBar.java,
6661 javax/swing/JToolTip.java,
6662 javax/swing/JTree.java,
6663 javax/swing/JViewport.java,
6664 javax/swing/JWindow.java,
6665 javax/swing/KeyStroke.java,
6666 javax/swing/LookAndFeel.java,
6667 javax/swing/SwingUtilities.java,
6668 javax/swing/Timer.java,
6669 javax/swing/ToolTipManager.java,
6670 javax/swing/UIDefaults.java,
6671 javax/swing/border/TitledBorder.java,
6672 javax/swing/filechooser/FileSystemView.java,
6673 javax/swing/plaf/basic/BasicButtonListener.java,
6674 javax/swing/plaf/basic/BasicButtonUI.java,
6675 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
6676 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6677 javax/swing/plaf/basic/BasicLabelUI.java,
6678 javax/swing/plaf/basic/BasicMenuItemUI.java,
6679 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6680 javax/swing/plaf/basic/BasicRootPaneUI.java,
6681 javax/swing/plaf/basic/BasicScrollBarUI.java,
6682 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6683 javax/swing/plaf/basic/BasicSliderUI.java,
6684 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6685 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6686 javax/swing/table/JTableHeader.java,
6687 javax/swing/text/AbstractDocument.java,
6688 javax/swing/text/DefaultCaret.java,
6689 javax/swing/text/StyledEditorKit.java,
6690 javax/swing/tree/DefaultTreeCellEditor.java:
6691 Cleaned up imports.
6692
6693 2004-05-05 Michael Koch <konqueror@gmx.de>
6694
6695 * java/util/prefs/AbstractPreferences.java
6696 (AbstractPreferences): Added parenthesis for clarity.
6697 Closes classpath bug #7940.
6698
6699 2004-05-05 Tom Tromey <tromey@redhat.com>
6700
6701 * javax/naming/CompoundName.java (endsWith): Look at correct
6702 element of source name.
6703
6704 2004-05-05 Mark Wielaard <mark@klomp.org>
6705
6706 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6707 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6708
6709 2004-05-05 Tom Tromey <tromey@redhat.com>
6710
6711 * java/io/BufferedReader.java (skip): Removed unused
6712 variable.
6713
6714 2004-05-05 Michael Koch <konqueror@gmx.de>
6715
6716 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6717
6718 2004-05-05 Dalibor Topic <robilad@kaffe.org>
6719
6720 * java/text/AttributedString.java,
6721 java/text/AttributedStringIterator.java,
6722 java/text/Collator.java,
6723 java/text/DecimalFormatSymbols.java,
6724 java/text/NumberFormat.java,
6725 java/text/RuleBasedCollator.java:
6726 Cleaned up imports.
6727
6728 2004-05-05 Tom Tromey <tromey@redhat.com>
6729
6730 * java/text/Format.java: Cleaned up imports.
6731 * java/text/DecimalFormat.java: Cleaned up imports.
6732 * java/security/SecureRandom.java: Cleaned up imports.
6733 (SecureRandom): Removed unused variable.
6734 * java/security/UnresolvedPermission.java: Cleaned up imports.
6735 * java/util/Date.java (parse): Removed unused variable.
6736 * java/util/ResourceBundle.java: Cleaned up imports.
6737 (getBundle): Removed unused variable.
6738 (tryBundle): Likewise.
6739 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6740
6741 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6742
6743 * java/text/SimpleDateFormat.java:
6744 (formatWithAttribute): New method. It implements
6745 the formatting process with attributes.
6746 (format): Use formatWithAttribute.
6747 (formatToCharacterIterator): New method. Use
6748 formatWithAttribute.
6749
6750 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6751
6752 * java/text/MessageFormat.java:
6753 (class Field): New class.
6754 (formatToCharacterIterator): New method.
6755 (format): Use formatInternal now.
6756 (formatInternal): New method. String formatter should
6757 be done here (with attributes). Attributes merging supported.
6758 (parse): More documentation.
6759 (getFormatsByArgumentIndex): New method.
6760 (setFormatByArgumentIndex): New method.
6761 (setFormatsByArgumentIndex): New method.
6762
6763 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6764
6765 * java/text/DecimalFormat.java
6766 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
6767 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
6768 (parse): Fixed handling of exponentiation notation and grouping.
6769
6770 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6771
6772 * java/text/DecimalFormat.java
6773 (scanFix): Build attribute array. Fixed error reporting.
6774 (applyPatternWithSymbols): Store attributes for the prefix and
6775 suffix.
6776 (formatInternal): New method. Changed the way the string is
6777 computed. Implemented attributes. Cleant up rounding in
6778 exponential notation.
6779 (format): Use formatInternal.
6780 (formatToCharacterIterator): New method.
6781 (exponentRound, negativePrefixRanges, positivePrefixRanges,
6782 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
6783 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
6784 New fields.
6785
6786 2004-05-04 Dalibor Topic <robilad@kaffe.org>
6787
6788 * java/security/interfaces/DSAKeyPairGenerator.java,
6789 java/security/interfaces/DSAPrivateKey.java,
6790 java/security/interfaces/DSAPublicKey.java,
6791 java/security/interfaces/RSAPrivateKey.java,
6792 java/security/interfaces/RSAPublicKey.java:
6793 Cleaned up imports.
6794
6795 2004-05-04 Michael Koch <konqueror@gmx.de>
6796
6797 * java/nio/ByteBuffer.java,
6798 java/nio/CharBuffer.java,
6799 java/nio/DoubleBuffer.java,
6800 java/nio/FloatBuffer.java,
6801 java/nio/IntBuffer.java,
6802 java/nio/LongBuffer.java,
6803 java/nio/ShortBuffer.java:
6804 (compareTo): Fixed bogus implementation in all buffer classes.
6805
6806 2004-05-04 Ingo Proetel <proetel@aicas.com>
6807
6808 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
6809 32 bit pixels not 8 bit pixels.
6810 (isCompatibleRaster): Added javadoc comment.
6811
6812 2004-05-04 Ingo Proetel <proetel@aicas.com>
6813
6814 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
6815 scanline stride.
6816
6817 2004-05-04 Ingo Proetel <proetel@aicas.com>
6818
6819 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
6820 (getColorModel): Return the actual color model.
6821 (getRaster): Implemented.
6822 (ColorRaster): New inner class.
6823 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
6824 a PaintContext.
6825 * java/awt/Color.java (<init>): Make exception more verbose.
6826 (createContext): Use ColorModel when creating a PaintContext.
6827
6828 2004-05-04 Michael Koch <konqueror@gmx.de>
6829
6830 * gnu/java/text/CharacterBreakIterator.java
6831 (previous): Removed unused variable.
6832
6833 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
6834
6835 * gnu/java/text/FormatBuffer.java,
6836 gnu/java/text/AttributedFormatBuffer.java,
6837 gnu/java/text/StringFormatBuffer.java: New classes to implement
6838 attributed iterators in java.text.
6839 * gnu/java/text/FormatCharacterIterator.java: Moved
6840 from java/text as it is an internal class.
6841 * java/text/FormatCharacterIterator.java: Removed.
6842 * java/text/Format.java:
6843 Import gnu.java.text.FormatCharacterIterator.
6844 * Makefile.am (java_source_files): Added new files.
6845 * Makefile.in: Regenerated.
6846
6847
6848 2004-05-04 Mark Wielaard <mark@klomp.org>
6849
6850 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
6851
6852 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
6853
6854 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
6855 * Makefile.in: Rebuilt.
6856
6857 2004-05-03 Mark Wielaard <mark@klomp.org>
6858
6859 * gnu/java/security/der/DERReader.java: Call static methods staticly.
6860 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
6861 * java/net/URL.java
6862 (set(String, String, int, String, String, String, String, String)):
6863 Assign this.file to path or path + "?" + query.
6864 * java/util/Arrays.java: Call static methods staticly.
6865 * java/util/zip/ZipEntry.java: Likewise.
6866 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
6867 dir to this.direction.
6868 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
6869 Assign static field only once.
6870 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
6871
6872 2004-05-03 Mark Wielaard <mark@klomp.org>
6873
6874 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
6875 unused variables hScrollbarHeight and vScrollbarWidth.
6876 (preferredSize): Likewise.
6877 * gnu/java/security/provider/DSAParameters.java (engineToString):
6878 Removed unused call to System.getProperty("line.seperator");
6879 * java/security/Security.java (loadProviders): Return result.
6880
6881 2004-05-03 Tom Tromey <tromey@redhat.com>
6882
6883 * java/net/URLStreamHandler.java (toExternalForm): Removed
6884 unused variables.
6885 unused constructor.
6886 * java/math/BigDecimal.java (divide): Removed unused variable.
6887 * java/lang/Throwable.java: Cleaned up imports.
6888 * java/lang/ClassLoader.java: Cleaned up imports.
6889 * java/io/FilePermission.java (implies): Removed unused
6890 variable.
6891 * java/awt/TextComponent.java: Removed unused import.
6892 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
6893 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
6894 * gnu/java/text/WordBreakIterator.java: Removed unused import.
6895 * gnu/java/text/SentenceBreakIterator.java: Removed unused
6896 import.
6897 * gnu/java/text/LineBreakIterator.java: Removed unused import.
6898 * gnu/java/text/CharacterBreakIterator.java: Removed
6899 unused import.
6900 * gnu/java/security/provider/DSAKeyPairGenerator.java:
6901 Cleaned up imports.
6902 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
6903 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
6904 unused method.
6905 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
6906 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
6907 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
6908 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
6909 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
6910 (lookupProviders): Removed unused variable.
6911 (loadNextServiceProvider): Likewise.
6912 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
6913
6914 2004-05-03 Michael Koch <konqueror@gmx.de>
6915
6916 Fixes PR libgcj/14695:
6917 * java/net/NetworkInterface.java
6918 (getByName): Return null when no interface was found.
6919
6920 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
6921 Tom Tromey <tromey@redhat.com>
6922
6923 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
6924 additional option "-Wmissing-prototypes" for compiling C sources.
6925 Print actual filename for pass/fail rather than $name.c.
6926 * testsuite/libjava.jni/PR15133.java: New testcase file.
6927 * testsuite/libjava.jni/PR15133.c: Likewise.
6928 * testsuite/libjava.jni/PR15133.out: Likewise.
6929
6930 2004-04-30 Roger Sayle <roger@eyesopen.com>
6931
6932 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
6933 ceil and floor.
6934
6935 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
6936
6937 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
6938 limit the maximum heap size to avoid unnecessary thrashing.
6939
6940 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
6941
6942 * java/text/CollationElementIterator.java (reset): Reset
6943 lookahead variables.
6944
6945 2004-04-23 Mark Wielaard <mark@klomp.org>
6946
6947 * jni/classpath/jcl.c: Changed C++ comments into C comments.
6948
6949 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6950
6951 * java/sql/DriverManager.java:
6952 Cleaned up imports.
6953
6954 2004-04-23 Michael Koch <konqueror@gmx.de>
6955
6956 * java/net/URL.java
6957 (hashcode): Don't initialize with default value explicitely.
6958 (getContent): Removed redundant "final" keyword.
6959 (openStream): Likewise.
6960 (getURLStreamHandler): Fixed coding style.
6961 * java/net/URLConnection.java
6962 (defaultAllowUserInteraction): Don't initialize with default value
6963 explicitely.
6964 (connected): Likewise.
6965 (doOutput): Likewise.
6966 (ifModifiedSince): Likewise.
6967 (dateformats_initialized): Likewise.
6968 (setURLStreamHander): Use StreamTokenizer where it belongs to.
6969
6970 2004-04-23 Michael Koch <konqueror@gmx.de>
6971
6972 * gnu/java/nio/channels/FileChannelImpl.java
6973 (SET, CUR): Unused, removed.
6974 (read): Implement here directly.
6975 (implRead): Removed.
6976 (write): Implement here directly.
6977 (implWrite): Removed.
6978
6979 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6980
6981 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
6982 javax/rmi/CORBA/Stub.java,
6983 javax/rmi/CORBA/Util.java,
6984 javax/rmi/CORBA/ValueHandler.java,
6985 javax/rmi/CORBA/ValueHandler.java,
6986 javax/rmi/PortableRemoteObject.java:
6987 Cleaned up imports.
6988
6989 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6990
6991 * java/util/jar/JarFile.java,
6992 java/util/jar/JarInputStream.java,
6993 java/util/jar/JarOutputStream.java,
6994 java/util/jar/Manifest.java:
6995 Cleaned up imports.
6996
6997 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6998
6999 * java/util/ArrayList.java,
7000 java/util/Calendar.java,
7001 java/util/Currency.java,
7002 java/util/HashMap.java,
7003 java/util/HashSet.java,
7004 java/util/Hashtable.java,
7005 java/util/LinkedList.java,
7006 java/util/Properties.java,
7007 java/util/PropertyPermission.java,
7008 java/util/TimeZone.java,
7009 java/util/TreeMap.java,
7010 java/util/TreeSet.java,
7011 java/util/Vector.java,
7012 java/util/WeakHashMap.java:
7013 Cleaned up imports.
7014
7015 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7016
7017 * java/util/logging/FileHandler.java,
7018 java/util/logging/Formatter.java,
7019 java/util/logging/Handler.java,
7020 java/util/logging/Logger.java,
7021 java/util/logging/SimpleFormatter.java,
7022 java/util/logging/XMLFormatter.java:
7023 Cleaned up imports.
7024
7025 2004-04-22 Mark Wielaard <mark@klomp.org>
7026
7027 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7028 -Wno-long-long flags variable.
7029 (gtk_c_files): Use PEDANTIC_CFLAGS.
7030 * Makefile.in: Regenerated.
7031
7032 2004-04-22 Mark Wielaard <mark@klomp.org>
7033
7034 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7035 Changed C++ comments into C comments.
7036 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7037 Likewise.
7038
7039 2004-04-22 Michael Koch <konqueror@gmx.de>
7040
7041 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7042 Merged copyright year with GNU classpath.
7043
7044 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7045
7046 * javax/security/auth/x500/X500Principal.java:
7047 Cleaned up imports.
7048
7049 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7050
7051 * javax/swing/JSlider.java:
7052 Fixed HTML tags in comments.
7053
7054 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7055
7056 * javax/accessibility/AccessibleText.java:
7057 Cleaned up imports.
7058
7059 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7060
7061 * java/net/URLStreamHandler.java
7062 (parseURL): Convert the file path to using '/' instead of native
7063 file separator.
7064
7065 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7066
7067 * java/net/URL.java
7068 (userInfo): New field.
7069 (URL): Set authority to the right value.
7070 (setURL): Fixed authority and file initialization.
7071 * java/net/URLStreamHandler.java
7072 (parseURL): Take care of the query tag. Build authority.
7073 (toExternalForm): Fixed URL building using authority.
7074
7075 2004-04-22 Michael Koch <konqueror@gmx.de>
7076
7077 * java/net/Socket.java
7078 (impl): Made package-private.
7079 * java/net/ServerSocket.java
7080 (implAccept): Access Socket.impl field directly.
7081
7082 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7083
7084 * java/util/prefs/Preferences.java,
7085 java/util/prefs/InvalidPreferencesFormatException.java,
7086 java/util/prefs/BackingStoreException.java,
7087 java/util/prefs/AbstractPreferences.java:
7088 Cleaned up imports.
7089
7090 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7091
7092 * java/util/regex/Matcher.java,
7093 java/util/regex/Pattern.java:
7094 Cleaned up imports.
7095
7096 2004-04-22 Michael Koch <konqueror@gmx.de>
7097
7098 * java/nio/charset/IllegalCharsetNameException.java
7099 (charsetName): Made private.
7100 (IllegalCharsetNameException): Added @param tag to javadoc.
7101 (getCharsetName): Added @return tag to javadoc.
7102 * java/nio/charset/MalformedInputException.java
7103 (MalformedInputException): Added @param tag to javadoc.
7104 (getInputLength): Revised method description, added @return tag.
7105 (getMessage): Added @return tag.
7106
7107 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7108
7109 * java/awt/Font.java (deriveFont): Implement missing variants.
7110 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7111 missing variants.
7112
7113 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7114
7115 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7116 Set method->index values for interface methods to their itable index.
7117 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7118
7119 2004-04-21 Michael Koch <konqueror@gmx.de>
7120
7121 * java/nio/DirectByteBufferImpl.java
7122 (shiftDown): Made static, give address as argument and
7123 provide a convenience method that overwrites shiftDown in
7124 ByteBufferImpl and calls the native shiftDown.
7125 * java/nio/MappedByteBufferImpl.java
7126 (): Use optimized method in DirectByteBufferImpl.
7127 * java/nio/natDirectByteBufferImpl.cc
7128 (shiftDown): Changed method signature. Removed usage of array_offset.
7129
7130 2004-04-21 Michael Koch <konqueror@gmx.de>
7131
7132 * gnu/java/net/natPlainSocketImplPosix.cc
7133 (SocketInputStream::read): Make sure returned data is a byte value.
7134
7135 2004-04-21 Michael Koch <konqueror@gmx.de>
7136
7137 * gnu/classpath/ServiceFactory.java,
7138 gnu/classpath/ServiceProviderLoadingAction.java,
7139 javax/imageio/ImageReader.java,
7140 javax/imageio/ImageTranscoder.java,
7141 javax/imageio/ImageWriter.java,
7142 javax/imageio/package.html,
7143 javax/imageio/spi/IIOServiceProvider.java,
7144 javax/imageio/spi/ImageInputStreamSpi.java,
7145 javax/imageio/spi/ImageOutputStreamSpi.java,
7146 javax/imageio/spi/ImageReaderWriterSpi.java,
7147 javax/imageio/spi/ImageTranscoderSpi.java,
7148 javax/imageio/spi/RegisterableService.java,
7149 javax/imageio/spi/ServiceRegistry.java,
7150 javax/imageio/spi/package.html,
7151 javax/imageio/stream/IIOByteBuffer.java,
7152 javax/imageio/stream/ImageInputStream.java,
7153 javax/imageio/stream/ImageOutputStream.java,
7154 javax/imageio/stream/package.html:
7155 New files.
7156 * Makefile.am
7157 (ordinary_java_source_files): Added
7158 gnu/classpath/ServiceFactory.java and
7159 gnu/classpath/ServiceProviderLoadingAction.java.
7160 (javax_source_files): Added
7161 javax/imageio/ImageReader.java,
7162 javax/imageio/ImageTranscoder.java,
7163 javax/imageio/ImageWriter.java,
7164 javax/imageio/spi/IIOServiceProvider.java,
7165 javax/imageio/spi/ImageInputStreamSpi.java,
7166 javax/imageio/spi/ImageOutputStreamSpi.java,
7167 javax/imageio/spi/ImageReaderWriterSpi.java,
7168 javax/imageio/spi/ImageTranscoderSpi.java,
7169 javax/imageio/spi/RegisterableService.java,
7170 javax/imageio/spi/ServiceRegistry.java,
7171 javax/imageio/stream/IIOByteBuffer.java,
7172 javax/imageio/stream/ImageInputStream.java and
7173 javax/imageio/stream/ImageOutputStream.java.
7174 * Makefile.in: Regenerated.
7175
7176 2004-04-21 Michael Koch <konqueror@gmx.de>
7177
7178 * java/util/Properties.java
7179 (load): Fix wrongly merged fix.
7180
7181 2004-04-21 Mark Wielaard <mark@klomp.org>
7182
7183 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7184 malloc and free buf.
7185
7186 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7187
7188 * javax/naming/AuthenticationException.java,
7189 javax/naming/AuthenticationNotSupportedException.java,
7190 javax/naming/CannotProceedException.java,
7191 javax/naming/CommunicationException.java,
7192 javax/naming/CompoundName.java,
7193 javax/naming/ConfigurationException.java,
7194 javax/naming/ContextNotEmptyException.java,
7195 javax/naming/InitialContext.java,
7196 javax/naming/InsufficientResourcesException.java,
7197 javax/naming/InterruptedNamingException.java,
7198 javax/naming/LimitExceededException.java,
7199 javax/naming/LinkException.java,
7200 javax/naming/LinkLoopException.java,
7201 javax/naming/LinkRef.java,
7202 javax/naming/MalformedLinkException.java,
7203 javax/naming/Name.java,
7204 javax/naming/NameAlreadyBoundException.java,
7205 javax/naming/NameNotFoundException.java,
7206 javax/naming/NamingSecurityException.java,
7207 javax/naming/NoInitialContextException.java,
7208 javax/naming/NoPermissionException.java,
7209 javax/naming/NotContextException.java,
7210 javax/naming/PartialResultException.java,
7211 javax/naming/ReferralException.java,
7212 javax/naming/ServiceUnavailableException.java,
7213 javax/naming/SizeLimitExceededException.java,
7214 javax/naming/TimeLimitExceededException.java,
7215 javax/naming/directory/Attribute.java,
7216 javax/naming/directory/Attributes.java,
7217 javax/naming/directory/SearchResult.java,
7218 javax/naming/event/NamingExceptionEvent.java,
7219 javax/naming/spi/ResolveResult.java:
7220 Cleaned up imports.
7221
7222 2004-04-21 Mark Wielaard <mark@klomp.org>
7223
7224 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7225 Changed C++ comments into C comments. Removed commented out code.
7226 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7227 Likewise.
7228 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7229 Likewise.
7230 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7231 Likewise.
7232 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7233 Likewise.
7234 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7235 Likewise.
7236 * native/jni/gtk-peer/gthread-jni.c:
7237 Likewise.
7238
7239 2004-04-21 Mark Wielaard <mark@klomp.org>
7240
7241 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7242 static fields defined in interface.
7243 * javax/awt/JDialog.java: Likewise.
7244 (JDialog): Make constructors public.
7245 (getDefaultCloseOperation): Make public.
7246 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7247 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7248 * javax/swing/JViewport.java (JViewport): Make constructor public.
7249
7250 2004-04-21 Michael Koch <konqueror@gmx.de>
7251
7252 * java/util/Map.java
7253 (Entry): Removed redundant "static" modifier.
7254 * java/text/AttributedCharacterIterator.java:
7255 Updated copyright year.
7256
7257 2004-04-20 Michael Koch <konqueror@gmx.de>
7258
7259 * javax/naming/directory/SearchControls.java:
7260 Don't explicitely extend java.lang.Object.
7261 * javax/naming/spi/DirStateFactory.java:
7262 Merged copyright year with GNU classpath.
7263
7264 2004-04-20 Michael Koch <konqueror@gmx.de>
7265
7266 * java/nio/channels/Channels.java:
7267 Merged coding style with GNU classpath.
7268
7269 2004-04-20 Michael Koch <konqueror@gmx.de>
7270
7271 * java/net/ServerSocket.java
7272 Merged coding style from GNU classpath.
7273
7274 2004-04-20 Michael Koch <konqueror@gmx.de>
7275
7276 * java/io/BufferedWriter.java:
7277 Reordered variables to be at top of the class.
7278 (localFlush): Removed redundant final keyword.
7279
7280 2004-04-20 Ingo Proetel <proetel@aicas.com>
7281
7282 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7283
7284 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7285
7286 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7287 for percent and permill check.
7288
7289 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7290
7291 * java/text/FieldPosition.java
7292 (FieldPosition) Constructor now behaves as it should according
7293 to the java documentation.
7294
7295 2004-04-20 Mark Wielaard <mark@klomp.org>
7296
7297 * java/util/Properties.java: Use the word umlaut, not &auml; in api
7298 documentation.
7299
7300 2004-04-20 Michael Koch <konqueror@gmx.de>
7301
7302 * java/nio/Buffer.java,
7303 java/nio/channels/AlreadyConnectedException.java,
7304 java/nio/channels/AsynchronousCloseException.java,
7305 java/nio/channels/ByteChannel.java,
7306 java/nio/channels/CancelledKeyException.java,
7307 java/nio/channels/Channel.java,
7308 java/nio/channels/Channels.java,
7309 java/nio/channels/ClosedByInterruptException.java,
7310 java/nio/channels/ClosedChannelException.java,
7311 java/nio/channels/ClosedSelectorException.java,
7312 java/nio/channels/ConnectionPendingException.java,
7313 java/nio/channels/DatagramChannel.java,
7314 java/nio/channels/FileChannel.java,
7315 java/nio/channels/FileLock.java,
7316 java/nio/channels/FileLockInterruptionException.java,
7317 java/nio/channels/GatheringByteChannel.java,
7318 java/nio/channels/IllegalBlockingModeException.java,
7319 java/nio/channels/IllegalSelectorException.java,
7320 java/nio/channels/InterruptibleChannel.java,
7321 java/nio/channels/NoConnectionPendingException.java,
7322 java/nio/channels/NonReadableChannelException.java,
7323 java/nio/channels/NonWritableChannelException.java,
7324 java/nio/channels/NotYetBoundException.java,
7325 java/nio/channels/NotYetConnectedException.java,
7326 java/nio/channels/OverlappingFileLockException.java,
7327 java/nio/channels/Pipe.java,
7328 java/nio/channels/ReadableByteChannel.java,
7329 java/nio/channels/ScatteringByteChannel.java,
7330 java/nio/channels/SelectableChannel.java,
7331 java/nio/channels/SelectionKey.java,
7332 java/nio/channels/Selector.java,
7333 java/nio/channels/ServerSocketChannel.java,
7334 java/nio/channels/SocketChannel.java,
7335 java/nio/channels/UnresolvedAddressException.java,
7336 java/nio/channels/UnsupportedAddressTypeException.java,
7337 java/nio/channels/WritableByteChannel.java,
7338 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7339 java/nio/channels/spi/AbstractSelectableChannel.java,
7340 java/nio/channels/spi/AbstractSelectionKey.java,
7341 java/nio/channels/spi/AbstractSelector.java,
7342 java/nio/channels/spi/SelectorProvider.java,
7343 java/nio/charset/spi/CharsetProvider.java:
7344 Fixed javadocs and jalopied all over java.nio.
7345
7346 2004-04-20 Michael Koch <konqueror@gmx.de>
7347
7348 * java/nio/ByteBufferImpl.java,
7349 java/nio/CharBufferImpl.java,
7350 java/nio/DirectByteBufferImpl.java,
7351 java/nio/DoubleBufferImpl.java,
7352 java/nio/DoubleViewBufferImpl.java,
7353 java/nio/FloatBufferImpl.java,
7354 java/nio/FloatViewBufferImpl.java,
7355 java/nio/IntBufferImpl.java,
7356 java/nio/IntViewBufferImpl.java,
7357 java/nio/LongBufferImpl.java,
7358 java/nio/LongViewBufferImpl.java,
7359 java/nio/MappedByteBufferImpl.java,
7360 java/nio/ShortBufferImpl.java,
7361 java/nio/ShortViewBufferImpl.java:
7362 Made sure all classes are final and removed final keyword from all
7363 methods.
7364
7365 2004-04-20 Michael Koch <konqueror@gmx.de>
7366
7367 * java/rmi/MarshalledObject.java,
7368 java/rmi/Naming.java,
7369 java/rmi/RemoteException.java,
7370 java/rmi/activation/ActivationException.java,
7371 java/rmi/server/ServerCloneException.java,
7372 java/security/AccessController.java,
7373 java/security/AlgorithmParameterGenerator.java,
7374 java/security/AlgorithmParameters.java,
7375 java/security/CodeSource.java,
7376 java/security/Identity.java,
7377 java/security/IdentityScope.java,
7378 java/security/KeyPairGenerator.java,
7379 java/security/KeyStore.java,
7380 java/security/Security.java,
7381 java/security/Signature.java,
7382 java/security/SignatureSpi.java,
7383 java/security/SignedObject.java,
7384 java/security/spec/DSAParameterSpec.java,
7385 java/security/spec/DSAPrivateKeySpec.java,
7386 java/security/spec/DSAPublicKeySpec.java,
7387 java/sql/Array.java,
7388 java/sql/DatabaseMetaData.java,
7389 java/sql/ResultSet.java,
7390 java/text/ChoiceFormat.java,
7391 java/text/CollationElementIterator.java,
7392 java/text/CollationKey.java,
7393 java/text/Collator.java,
7394 java/text/DateFormat.java,
7395 java/text/DateFormatSymbols.java,
7396 java/text/DecimalFormatSymbols.java,
7397 java/text/Format.java,
7398 java/text/ParsePosition.java,
7399 java/text/RuleBasedCollator.java,
7400 java/text/SimpleDateFormat.java,
7401 java/text/StringCharacterIterator.java,
7402 java/util/Collections.java,
7403 java/util/PropertyResourceBundle.java,
7404 java/util/ResourceBundle.java,
7405 java/util/StringTokenizer.java,
7406 java/util/jar/Attributes.java,
7407 java/util/logging/ConsoleHandler.java,
7408 java/util/logging/LogManager.java,
7409 java/util/logging/MemoryHandler.java,
7410 java/util/logging/SocketHandler.java,
7411 javax/naming/NamingException.java:
7412 Fixed javadoc, coding style and argument names all over.
7413
7414 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7415
7416 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7417 constructor. (valid) Added null check.
7418
7419 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7420
7421 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7422 * java/io/FileOutputStream.java
7423 (FileOutputStream) Reorganized constructors. Constructors now
7424 check whether the given path is directory.
7425
7426 2004-04-20 Michael Koch <konqueror@gmx.de>
7427
7428 * java/net/Authenticator.java,
7429 java/net/BindException.java,
7430 java/net/ConnectException.java,
7431 java/net/ContentHandler.java,
7432 java/net/ContentHandlerFactory.java,
7433 java/net/DatagramPacket.java,
7434 java/net/DatagramSocket.java,
7435 java/net/DatagramSocketImpl.java,
7436 java/net/DatagramSocketImplFactory.java,
7437 java/net/FileNameMap.java,
7438 java/net/HttpURLConnection.java,
7439 java/net/Inet4Address.java,
7440 java/net/Inet6Address.java,
7441 java/net/InetAddress.java,
7442 java/net/InetSocketAddress.java,
7443 java/net/JarURLConnection.java,
7444 java/net/MalformedURLException.java,
7445 java/net/MulticastSocket.java,
7446 java/net/NetPermission.java,
7447 java/net/NetworkInterface.java,
7448 java/net/NoRouteToHostException.java,
7449 java/net/PasswordAuthentication.java,
7450 java/net/PortUnreachableException.java,
7451 java/net/ProtocolException.java,
7452 java/net/ServerSocket.java,
7453 java/net/Socket.java,
7454 java/net/SocketAddress.java,
7455 java/net/SocketException.java,
7456 java/net/SocketImpl.java,
7457 java/net/SocketImplFactory.java,
7458 java/net/SocketOptions.java,
7459 java/net/SocketPermission.java,
7460 java/net/SocketTimeoutException.java,
7461 java/net/URI.java,
7462 java/net/URISyntaxException.java,
7463 java/net/URL.java,
7464 java/net/URLClassLoader.java,
7465 java/net/URLConnection.java,
7466 java/net/URLDecoder.java,
7467 java/net/URLEncoder.java,
7468 java/net/URLStreamHandler.java,
7469 java/net/URLStreamHandlerFactory.java,
7470 java/net/UnknownHostException.java,
7471 java/net/UnknownServiceException.java:
7472 Fixed javadocs, coding style and argument names all over.
7473
7474 2004-04-20 Michael Koch <konqueror@gmx.de>
7475
7476 * java/lang/Byte.java,
7477 java/lang/CharSequence.java,
7478 java/lang/ClassLoader.java,
7479 java/lang/Compiler.java,
7480 java/lang/Double.java,
7481 java/lang/Float.java,
7482 java/lang/Integer.java,
7483 java/lang/Long.java,
7484 java/lang/Math.java,
7485 java/lang/Number.java,
7486 java/lang/Package.java,
7487 java/lang/Runtime.java,
7488 java/lang/RuntimePermission.java,
7489 java/lang/SecurityManager.java,
7490 java/lang/Short.java,
7491 java/lang/StringBuffer.java,
7492 java/lang/System.java,
7493 java/lang/ThreadGroup.java,
7494 java/lang/Throwable.java,
7495 java/lang/reflect/InvocationHandler.java,
7496 java/lang/reflect/Proxy.java:
7497 Fixed javadocs, coding style and argument names all over.
7498
7499 2004-04-20 Michael Koch <konqueror@gmx.de>
7500
7501 * java/io/BufferedWriter.java,
7502 java/io/ByteArrayInputStream.java,
7503 java/io/CharArrayWriter.java,
7504 java/io/DataInput.java,
7505 java/io/DataInputStream.java,
7506 java/io/File.java,
7507 java/io/FilterInputStream.java,
7508 java/io/InputStream.java,
7509 java/io/InputStreamReader.java,
7510 java/io/ObjectInputStream.java,
7511 java/io/ObjectStreamClass.java,
7512 java/io/PipedInputStream.java,
7513 java/io/PipedReader.java,
7514 java/io/PushbackInputStream.java,
7515 java/io/PushbackReader.java,
7516 java/io/RandomAccessFile.java,
7517 java/io/SerializablePermission.java,
7518 java/io/StreamTokenizer.java,
7519 java/io/StringWriter.java,
7520 java/io/WriteAbortedException.java,
7521 java/io/Writer.java:
7522 Fixed javadocs all over, rename arguments to match javadocs,
7523 fixed coding style.
7524
7525 2004-04-20 Ingo Proetel <proetel@aicas.com>
7526
7527 * java/awt/FontMetrics.java:
7528 (charsWidth): fixed accumulation of total_width
7529 (getWidth): simple default implementation
7530 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7531 in Rectangle constructor.
7532 * java/awt/image/Raster.java (toString): Added method.
7533 * java/awt/image/SampleModel.java (<init>): Added error cause
7534 information to thrown exception.
7535 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7536 New method.
7537 (setDataElements): New method.
7538 (setPixels): New method.
7539 (toString): New method.
7540
7541 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7542
7543 * java/awt/image/ComponentColorModel.java
7544 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7545 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7546 Mauve tests on this method. Improved documentation.
7547
7548 2004-04-20 Michael Koch <konqueror@gmx.de>
7549
7550 * javax/swing/JLayeredPane.java,
7551 javax/swing/plaf/BorderUIResource.java,
7552 javax/swing/plaf/ComponentUI.java,
7553 javax/swing/undo/CompoundEdit.java,
7554 javax/swing/undo/StateEdit.java:
7555 Fixed HTML tags in javadocs all over.
7556
7557 2004-04-20 Michael Koch <konqueror@gmx.de>
7558
7559 * javax/print/attribute/EnumSyntax.java
7560 (getOffset): Made protected.
7561 * javax/print/attribute/HashAttributeSet.java
7562 (HashAttributeSet): Likewise.
7563 * javax/print/attribute/ResolutionSyntax.java
7564 (getFeedResolution): Fixed typo in exception name.
7565 (getCrossFeedResolution): Likewise.
7566 * javax/print/attribute/SetOfIntegerSyntax.java
7567 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7568 * javax/print/attribute/TextSyntax.java
7569 (TextSyntax): Handle locale correctly.
7570 (hashCode): Calc better hashcode value.
7571 (equals): Fixed @return tag.
7572 (toString): New method.
7573
7574 2004-04-20 Michael Koch <konqueror@gmx.de>
7575
7576 * gnu/java/nio/FileLockImpl.java
7577 (static): Removed, not needed anymore.
7578 * gnu/java/nio/channels/FileChannelImpl.java
7579 (FileChannelImpl): Made final.
7580 (mode): Made private.
7581 (READ, WRITE, APPEND): Made public.
7582 (EXCL, SYNC, DSYNC): Likewise.
7583 (static): Load native JNI library, when needed.
7584 (length): Unused, removed.
7585 (available): Made public.
7586 (implPosition): Throws IOException.
7587 (seek): Likewise.
7588 (implTruncate): Likewise.
7589 (unlock): Likewise.
7590 (lock): Likewise.
7591
7592 2004-04-20 Michael Koch <konqueror@gmx.de>
7593
7594 * java/awt/AWTPermission.java,
7595 java/awt/Component.java,
7596 java/awt/ComponentOrientation.java,,
7597 java/awt/Dialog.java,
7598 java/awt/FontMetrics.java,
7599 java/awt/Graphics.java,
7600 java/awt/datatransfer/DataFlavor.java,
7601 java/beans/Introspector.java,
7602 java/beans/PropertyEditor.java,
7603 java/beans/PropertyEditorManager.java,
7604 java/beans/beancontext/BeanContextServiceProvider.java:
7605 Fixed HTML tags in javadocs all over.
7606
7607 2004-04-20 Mark Wielaard <mark@klomp.org>
7608
7609 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7610 MissingResourceException is thrown.
7611 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7612 null when a MissingResourceException is thrown. Should never happen.
7613
7614 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7615
7616 * java/awt/image/DataBufferShort.java,
7617 java/awt/image/DataBufferFloat.java,
7618 java/awt/image/DataBufferDouble.java,
7619 java/awt/image/PixelInterleavedSampleModel.java: New files.
7620 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7621 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7622
7623 2004-04-20 Michael Koch <konqueror@gmx.de>
7624
7625 * Makefile.am (java_source_files): Added
7626 java/awt/image/DataBufferDouble.java,
7627 java/awt/image/DataBufferFloat.java,
7628 java/awt/image/DataBufferShort.java and
7629 java/awt/image/PixelInterleavedSampleModel.java.
7630 * Makefile.in: Regenerated.
7631
7632 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7633
7634 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7635 undocumented CNI calls.
7636 * include/java-interp.h (_Jv_InterpClass): No longer
7637 extends java.lang.Class.
7638 * java/lang/Class.h (Class): Add new field `aux_info'.
7639 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7640 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7641 Use Class->aux_info instead.
7642 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7643 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7644 Use Class->aux_info instead.
7645 * java/io/natObjectInputStream.cc (allocateObject): Use
7646 _Jv_AllocObject.
7647 * java/lang/natClass.cc (newInstance): Likewise.
7648 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7649 * java/lang/natObject.cc (clone): Likewise.
7650 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7651 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7652 JvAllocObject. Allocate klass->aux_info here for interpreted
7653 class.
7654
7655 2004-04-17 Mark Wielaard <mark@klomp.org>
7656
7657 * javax/swing/JToggleButton.java (ToggleButtonModel):
7658 Make public static inner class.
7659 * javax/swing/JTabbedPane.java (setComponentAt):
7660 Call Page.setComponent().
7661 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7662 (WRAP_TAB_LAYOUT): Make public, value is 0.
7663 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7664 Make private static inner class.
7665
7666 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7667
7668 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7669 arguments to match new signature. Remove FIXME comments.
7670
7671 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7672
7673 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7674 Remove method.
7675 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7676 unused code.
7677
7678 2004-04-02 Olga Rodimina <rodimina@redhat.com>
7679
7680 * Makefile.am: Added new file.
7681 * Makefile.in: Regenerate.
7682 * javax/swing/ImageIcon.java:
7683 (ImageIcon(file)): set description of the icon
7684 to the file name
7685 * javax/swing/JCheckBoxMenuItem.java:
7686 Mostly Implemented. Work in progress.
7687 * javax/swing/JRadioButtonMenuItem.java:
7688 Reimplement constructors to use JToggleButtonModel.
7689 * javax/swing/plaf/basic/BasicIconFactory.java:
7690 (getCheckBoxMenuItemIcon): return check box
7691 icon.
7692 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7693 paint menu item selected only when it is armed and
7694 pressed.
7695
7696 2004-04-02 David Jee <djee@redhat.com>
7697
7698 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7699 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7700 * java/awt/Component.java
7701 (add): Set the parent of the popup as this component.
7702 * java/awt/PopupMenu.java
7703 (addNotify): Create popup menu when peer is null.
7704 (show): Call addNotify() if peer is null.
7705 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7706 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7707 argument for gtk_menu_popup() as zero. This causes the popup menu to
7708 respond to any mouse button.
7709
7710 2004-03-31 Olga Rodimina <rodimina@redhat.com>
7711
7712 * Makefile.am: Added new file.
7713 * Makefile.in: Regenerate.
7714 * javax/swing/JRadioButtonMenuItem.java:
7715 Implemented.
7716 * javax/swing/plaf/basic/BasicIconFactory.java:
7717 (getRadioButtonMenuItemIcon): Return
7718 radio button icon.
7719 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7720 (getPreferredSize): Add size of checkIcon if it
7721 exists.
7722 (installDefaults): Don't initialize checkIcon.
7723 It's value will be set in subclasses.
7724 (uninstallDefaults): remove uninstallation of
7725 checkIcon.
7726 (paint): Moved code to paintMenuItem().
7727 (paintMenuItem): Implemented.
7728 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7729 UI delegate for JRadioButtonMenuItem.
7730
7731 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7732
7733 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7734 Corrected position of the accelerator.
7735
7736 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7737
7738 * Makefile.am: Added new file.
7739 * Makefile.in: Regenerate.
7740 * javax/swing/JMenuItem.java: Partly
7741 implemented. Work in progress
7742 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7743 Changed default value of acceleratorDelimiter.
7744 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7745 New class. Partly implemented.
7746
7747 2004-03-26 Mark Wielaard <mark@klomp.org>
7748
7749 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
7750 (item_activate): Declare label before use.
7751 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7752 (gtkSetFont): Removed unused variable label.
7753 (addExposeFilter): Declare variables before use.
7754 (removeExposeFilter): Likewise.
7755 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
7756 (ok_clicked): Declare str_fileName before use.
7757
7758 2004-03-26 David Jee <djee@redhat.com>
7759
7760 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
7761 (addSeparator): Remove.
7762 * java/awt/Menu.java
7763 (separator): Remove static final MenuItem field.
7764 (separatorLabel): New static final String field.
7765 (addSeparator): Do not use peer method; use add(MenuItem) instead.
7766 Use separatorLabel to denote that it is a separator.
7767 (insertSeparator): Create a new MenuItem with separatorLabel, instead
7768 of reusing the static separator instance, because a MenuItem instance
7769 can't be added more than once without being cloned.
7770 * java/awt/peer/MenuPeer.java
7771 (addSeparator): Remove from interface.
7772
7773 2004-03-26 David Jee <djee@redhat.com>
7774
7775 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7776 (connectSignals): New native method declaration.
7777 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
7778 * java/awt/MenuItem.java
7779 (getActionCommand): Return the label if the action command is not set.
7780 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
7781 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
7782 gtk_menu_shell_append().
7783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
7784 (item_activate): Fix argument type.
7785 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
7786 signal here.
7787 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
7788 method.
7789 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7790 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
7791 given. Add the menu widget's top-level GtkWindow to the global window
7792 group, so it can grab the pointer.
7793 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
7794 gtk_menu_shell_append().
7795
7796 2004-03-23 Graydon Hoare <graydon@redhat.com>
7797
7798 * java/text/AttributedString.java
7799 (addAttribute): Fix off-by-one.
7800 (getIterator): Likewise.
7801 * java/text/AttributedStringIterator.java
7802 (getRunLimit): Correct logic.
7803 (getRunStart): Likewise.
7804 (getAttribute): Fix inequality.
7805 (getAttributes): Likewise.
7806 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
7807
7808 2004-03-23 Kim Ho <kho@redhat.com>
7809
7810 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7811 (calculateSizes): Return real width and height.
7812
7813 2004-03-23 Kim Ho <kho@redhat.com>
7814
7815 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
7816 (calculateTabRects): Set the selectedRun before
7817 trying to rotate tabs.
7818
7819 2004-03-23 Kim Ho <kho@redhat.com>
7820
7821 * Makefile.am: New file
7822 * Makefile.in: Regenerate
7823 * java/awt/Graphics.java: (drawRect):
7824 Draw to the correct point.
7825 * javax/swing/DefaultSingleSelectionModel.java
7826 (isSelected): Return true if the selected index
7827 is not -1.
7828 * javax/swing/JLabel.java: Do not change mnemonic
7829 index if text is null.
7830 * javax/swing/JProgressBar.java: Use JComponent's
7831 EventListenerList.
7832 * javax/swing/JScrollBar.java: Ditto.
7833 * javax/swing/JSlider.java: Ditto.
7834 * javax/swing/JTabbedPane.java: Reimplement.
7835 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7836 Add defaults for TabbedPane.
7837 * javax/swing/plaf/basic/BasicArrowButton.java:
7838 Implement
7839 * javax/swing/plaf/basic/BasicProgressBarUI.java:
7840 (paintDeterminate): Don't paint String if it's
7841 empty.
7842 (paintIndeterminate): ditto.
7843 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7844 Reimplement.
7845
7846 2004-03-19 Michael Koch <konqueror@gmx.de>
7847
7848 * java/awt/image/AffineTransformOp.java
7849 (AffineTransformOp): Made public.
7850 * javax/swing/JComponent.java
7851 (listenerList): Made protected.
7852 (accessibleContext): Likewise.
7853 * javax/swing/JList.java
7854 (valueChanged): Dont use internal fields of ListSelectionEvent.
7855 * javax/swing/JViewport.java
7856 (getView): Dont use internal fields of Component.
7857 (addImpl): Likewise.
7858 * javax/swing/Timer.java
7859 (isRunning): Made public.
7860 (start): Likewise.
7861 (stop): Likewise.
7862 * javax/swing/UIDefaults.java
7863 (getInt): Made public.
7864 * javax/swing/plaf/basic/BasicListUI.java
7865 (mousePressed): Dont use internal fields of MouseEvent.
7866 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7867 * javax/swing/plaf/basic/BasicScrollBarUI.java
7868 (arrowIcon): Made static.
7869 * javax/swing/plaf/basic/BasicViewportUI.java
7870 (stateChanged): Dont use internal field on ChangeEvent.
7871 * javax/swing/text/JTextComponent.java
7872 (getUI): Call UIManager.getUI().
7873 (updateUI): Use getUI().
7874
7875 2004-03-19 Graydon Hoare <graydon@redhat.com>
7876
7877 * javax/swing/JComponent.java: Turn off double buffer by default.
7878 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
7879 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
7880 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
7881 Use cairo to copy areas.
7882 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
7883 Initialize and set clip region.
7884
7885 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
7886
7887 * java/applet/Applet.java (preferredSize): Override deprecated
7888 variant of getPreferredSize.
7889 (minimumSize): Override deprecated variant of getMinimumSize.
7890
7891 2004-03-15 Olga Rodimina <rodimina@redhat.com>
7892
7893 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
7894 (drawImage(img,xform,bgcolor,obs)): New Method.
7895 Helper function that every drawImage method will
7896 use.
7897 (drawRaster): Added new parameter, bgcolor. All
7898 transparent pixels are changed to bgcolor before
7899 image is drawn.
7900 (drawRenderedImage): Fixed to use changed drawRaster().
7901 (drawImage(image,xform,obs): Fixed to use new helper function
7902 (drawImage(image,op,x,y)): Ditto.
7903 (drawImage (img,x,y,observer)): Ditto.
7904 ((PainterThread) bgcolor): New Field.
7905 ((PainterThread) (setPixels)): Changed all transparent pixels
7906 to bgcolor.
7907 (drawImage(img,x,y,width,height,bgcolor,observer)):
7908 Fixed FIXME - all the transparent pixels are
7909 changed to the specified bgcolor.
7910 (drawImage(img, x, y, width, height, observer): Changed to
7911 use function above.
7912 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
7913 Fixed FIXME- changed all transparent pixels to bgcolor.
7914 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
7915 Changed to use function above.
7916
7917 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
7918
7919 * java/applet/Applet.java (dimensions): New field.
7920 (getDimensions): New method.
7921 (getPreferredSize): Call getDimensions.
7922 (getMinimumSize): Likewise.
7923
7924 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
7925
7926 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
7927 * jni/classpath/jnilink.c: Likewise.
7928
7929 * java/applet/Applet.java (getPreferredSize): New method.
7930 (getMinimumSize): New method.
7931
7932 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
7933
7934 * prims.cc (_Jv_AllocObject): Remove `size' argument.
7935 (_Jv_AllocObjectNoFinalizer): Likewise.
7936 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
7937 (_Jv_AllocPtrFreeObject): Likewise.
7938 (_Jv_AllocString): Moved from natString.cc. Call collector interface
7939 directly even in the JVMPI case.
7940 * gcj/cni.h (JvAllocObject): Remove `size' argument from
7941 _Jv_AllocObject calls.
7942 * gcj/javaprims.h: Update prototypes.
7943 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
7944 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
7945 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
7946
7947 2004-04-14 Andrew Haley <aph@redhat.com>
7948 Bryce McKinlay <mckinlay@redhat.com>
7949
7950 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
7951 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
7952 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
7953
7954 * testsuite/libjava.lang/InvokeInterface.java: New file.
7955 * testsuite/libjava.lang/InvokeInterface.out: New file.
7956
7957 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
7958
7959 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
7960 modified lookup().
7961 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
7962 StackTraceElement directly.
7963 (newElement): New native helper method to create StackTraceElement
7964 bypassing Java access control.
7965 (createStackTraceElement): Use newElement() instead of directly
7966 calling StackTraceElement's constructor.
7967 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
7968
7969 2004-04-01 Michael Koch <konqueror@gmx.de>
7970
7971 * java/lang/SecurityManager.java
7972 (checkAwtEventQueueAccess): Implemented.
7973
7974 2004-04-01 Gary Benson <gbenson@redhat.com>
7975
7976 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
7977 (_Jv_SearchMethodInClass): Likewise.
7978
7979 2004-03-26 Peter Moon <peterm@miraculum.com>
7980
7981 * java/text/NumberFormat.java: Fix spelling of setCurrency
7982 method.
7983
7984 2004-03-21 Anthony Green <green@redhat.com>
7985
7986 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
7987 recursion when searching for the system ClassLoader.
7988
7989 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
7990
7991 * java/net/ServerSocket.java
7992 (accept): Close the socket when error occured.
7993
7994 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
7995
7996 * java/net/URI.java (parseURI): Added unquoting.
7997 (unquote): New method.
7998 (quoteAuthority): Implemented.
7999 (quote(String,String)): New method.
8000 (quotePath): Implemented.
8001 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8002 (getSchemeSpecificPart): Removed FIXME comment.
8003 (getRawAuthority): Return new rawAuthority field.
8004 (getAuthority): Removed FIXME comment.
8005 (getRawUserInfo): Return new rawUserInfo field.
8006 (getUserInfo): Removed FIXME comment.
8007 (getRawPath): Return new rawPath field.
8008 (getPath): Removed FIXME comment.
8009 (getRawQuery): Return new rawQuery field.
8010 (getQuery): Removed FIXME comment.
8011 (getRawFragment): Return new rawFragment field.
8012 (getFragment): Removed FIXME comment.
8013
8014 2004-03-20 Michael Koch <konqueror@gmx.de>
8015
8016 * java/net/URLConnection.java: Merged copyright year with classpath.
8017
8018 2004-03-20 Norbert Frese <postfach@nfrese.net>
8019
8020 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8021 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8022 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8023 rmi-message.
8024 (getObjectInputStream): Return object reference, throw IOException if null.
8025 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8026 (getObjectOutputStream): Return object reference, throw IOException if null.
8027 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8028 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8029 (UnicastConnectionManager): Throw RemoteException if port is not available.
8030 (getInstance): Throw RemoteException.
8031 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8032 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8033 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8034 Collect Exceptions which are returned by a rmi-call and fix void returns.
8035 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8036 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8037 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8038 (dispatch): Answer ping messages which are sent by other java implementions.
8039 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8040 for every rmi-message and fix void return problems.
8041 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8042 (UnicastServerRef): Throw RemoteException.
8043 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8044 In some situations it is necessary to export a subclass of the class which has the _Stub.
8045 For instance when the class with has the _Stub is abstract.
8046 (findStubSkelClass): New method which looks for the class which has the _Stub.
8047 (getClientHost): Implementated.
8048 * gcc/libjava/java/rmi/server/RemoteServer.java
8049 (getClientHost): Implementated.
8050 * gcc/libjava/Makefile.am (rmi_java_source_files):
8051 Added gnu/java/rmi/server/RMIIncomingThread.java.
8052 * Makefile.in: Regenerated.
8053
8054 2004-03-20 Michael Koch <konqueror@gmx.de>
8055
8056 * java/net/InetAddress.java
8057 (getLocalHostname): Added javadoc.
8058
8059 2004-03-19 Per Bothner <per@bothner.com>
8060
8061 * configure.in: FILE variable overrides FLATFORM when linking
8062 natFileChannelXXX.cc.
8063
8064 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8065 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8066
8067 2004-03-19 Per Bothner <per@bothner.com>
8068
8069 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8070 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8071 * Makefile.am: Update accordingly.
8072 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8073 as aliases for UnicodeLittle and UnicodeBig.
8074
8075 2004-03-20 Mark Wielaard <mark@klomp.org>
8076
8077 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8078 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8079 Don't access ws when it is null.
8080 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8081 Likewise.
8082
8083 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8084
8085 * java/lang/ThreadGroup.java (list): Changed print to println.
8086
8087 2004-03-19 Mark Wielaard <mark@klomp.org>
8088
8089 * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
8090 happy.
8091
8092 2004-02-10 Randolph Chung <tausq@debian.org>
8093
8094 * configure.in: Build java for hppa target.
8095 * configure: Regenerate.
8096 * libjava/configure.host (hppa-*): Add target.
8097 * libjava/sysdeps/pa/lock.h: New file.
8098
8099 2004-03-19 Mark Wielaard <mark@klomp.org>
8100
8101 Reported by Stephen Crawley
8102 * java/io/FilePermission.java (implies): Use String.length() -1 to
8103 access last char of String.
8104
8105 2004-03-19 Michael Koch <konqueror@gmx.de>
8106
8107 * java/awt/image/AffineTransformOp.java
8108 (AffineTransformOp): Made public.
8109 * javax/swing/JComponent.java
8110 (listenerList): Made protected.
8111 (accessibleContext): Likewise.
8112 * javax/swing/JList.java
8113 (valueChanged): Dont use internal fields of ListSelectionEvent.
8114 * javax/swing/JViewport.java
8115 (getView): Dont use internal fields of Component.
8116 (addImpl): Likewise.
8117 * javax/swing/Timer.java
8118 (isRunning): Made public.
8119 (start): Likewise.
8120 (stop): Likewise.
8121 * javax/swing/UIDefaults.java
8122 (getInt): Made public.
8123 * javax/swing/plaf/basic/BasicListUI.java
8124 (mousePressed): Dont use internal fields of MouseEvent.
8125 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8126 * javax/swing/plaf/basic/BasicScrollBarUI.java
8127 (arrowIcon): Made static.
8128 * javax/swing/plaf/basic/BasicViewportUI.java
8129 (stateChanged): Dont use internal field on ChangeEvent.
8130 * javax/swing/text/JTextComponent.java
8131 (getUI): Call UIManager.getUI().
8132 (updateUI): Use getUI().
8133
8134 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8135
8136 * verify.cc: Undef PC.
8137
8138 2004-03-18 Michael Koch <konqueror@gmx.de>
8139
8140 * java/nio/channels/spi/AbstractSelectableChannel.java
8141 (keys): Initialize at declaration.
8142 (locate): keys cant be null.
8143 (add): Removed.
8144 (addSelectionKey): New method.
8145 (removeSelectionKey): New method.
8146 * java/nio/channels/spi/AbstractSelectionKey.java
8147 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8148 * java/nio/channels/spi/AbstractSelector.java
8149 (provider): Javadoc added.
8150 (cancelledKeys): Javadoc added.
8151 (cancelKey): Javadoc added, add key to cancelledKeys.
8152 (deregister): Implemented.
8153
8154 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8155
8156 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8157 MAP_FAILED to void *.
8158
8159 2004-03-12 Graydon Hoare <graydon@redhat.com>
8160
8161 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8162 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8163 * javax/swing/JList.java (ListListener): Revalidate on changes.
8164 * javax/swing/JScrollPane.java: Reimplement.
8165 * javax/swing/JViewport.java: Reimplement.
8166 * javax/swing/ScrollPaneLayout.java: Reimplement.
8167 * javax/swing/ViewportLayout.java: Tidy up.
8168 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8169 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8170 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8171 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8172 backing store only.
8173
8174 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8175
8176 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8177 (window_wm_protocols_filter): New function.
8178 (window_focus_in_cb): Remove function.
8179 (window_focus_out_cb): Likewise.
8180 (window_focus_or_active_state_change_cb): New function.
8181 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8182 (connectSignals): Don't attach handlers to focus-in-event or
8183 focus-out-event signals. Handle notify signal.
8184
8185 2004-03-11 David Jee <djee@redhat.com>
8186
8187 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8188 (gtkSetLabel): New native method declaration.
8189 (setLabel): Use gtkSetLabel.
8190 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8191 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8192
8193 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8194
8195 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8196 black when color argument is null.
8197
8198 2004-03-10 Kim Ho <kho@redhat.com>
8199
8200 * java/awt/Container.java: Remove check
8201 for drag events.
8202
8203 2004-03-10 Kim Ho <kho@redhat.com>
8204
8205 * java/awt/Container.java: (visitChild):
8206 Remove candidate clip. Use the component
8207 clip to intersect.
8208 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8209 (handleEvent): Use the PaintEvent's clip.
8210
8211 2004-03-10 Kim Ho <kho@redhat.com>
8212
8213 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8214 (handleEvent): Don't set the clip for the
8215 Graphics object.
8216
8217 2004-03-09 Graydon Hoare <graydon@redhat.com>
8218
8219 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8220 Fix double <-> fixed macros, reset font transform.
8221 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8222 Likewise.
8223
8224 2004-03-09  Kim Ho <kho@redhat.com>
8225
8226 * java/awt/Container.java: (visitChild): Move
8227 the x and y coordinate of the component rectangle
8228 to correct position.
8229 (handleEvent): Forward drag events to the pressed
8230 component.
8231 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8232 Fix comments.
8233 (ArrowButtonListener::mousePressed): Stop the
8234 existing timer.
8235 (mouseDragged): Implement.
8236 (TrackListener::mousePressed): Only react if
8237 the press doesn't occur on the thumb, otherwise
8238 just set the offset.
8239 (TrackListener::mouseReleased): Unset the isAdjusting
8240 value.
8241 (createIncreaseIcon): Switch icon.
8242 (createDecreaseIcon): Switch icon.
8243 (calculatePreferredSize): Use width.
8244 (getThumbBounds): Use the top as the lower value.
8245 (layoutVScrollBar): Switch the button locations.
8246 (paintIncreaseHighlight): Paint correct side of thumb.
8247 (paintDecreaseHighlight): ditto.
8248 (valueForYPosition): Use top as the lower value.
8249 * javax/swing/plaf/basic/BasicSliderUI.java:
8250 Fix comments.
8251 (mouseDragged): Implement.
8252 (mousePressed): Only react when the thumb isn't
8253 pressed, otherwise just set offset.
8254 (mouseReleased): Handle a release of the thumb.
8255 (scrollDueToClickInTrack): Stop the timer first.
8256 * javax/swing/JProgressBar.java:
8257 (setString): Fix change condition.
8258 * javax/swing/JSeparator.java:
8259 Remove println's.
8260
8261 2004-03-08 David Jee <djee@redhat.com>
8262
8263 * java/awt/image/AffineTransformOp.java:
8264 (filter): Use Graphics2D interface instead of directly using the
8265 GdkGraphics2D peer.
8266
8267 2004-03-05 David Jee <djee@redhat.com>
8268
8269 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8270 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8271 * java/awt/Container.java
8272 (acquireComponentForMouseEvent): Fixed.
8273 (handleEvent): Fixed.
8274 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8275 (state_to_awt_mods_with_button_states): New method.
8276 (pre_event_handler): Fixed mouse event generation.
8277
8278 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8279
8280 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8281 (GdkGraphics2D (BufferedImage)): Initialize
8282 pixmap associated with specified BufferedImage.
8283 (setPaint): Changed implementation of Texture
8284 Paint to use AffineTransformOp.
8285 * java/awt/image/AffineTransformOp.java
8286 (createCompatibleDestRaster): Throw RasterFormatException
8287 if resulting width or height of raster is 0.
8288
8289 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8290
8291 * java/awt/image/AffineTransformOp.java:
8292 Removed unnecessary field interpolationType.
8293 Formatted some of the lines to be consistent with
8294 the GNU style.
8295 (AffineTransformOp): Create new RenderingHints
8296 containing specified interpolation type.
8297 (createCompatibleDestImage): Implemented.
8298 (createCompatibleDestRaster): Implemented.
8299 (filter): Implemented.
8300 (getBounds2D(BufferedImage)): Implemented.
8301 (getBounds2D(Raster)): Implemented.
8302 (getInterpolationType): Get interpolation value from
8303 rendering hints.
8304
8305 2004-03-04 David Jee <djee@redhat.com>
8306
8307 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8308 (setFont): Check if child peers are null.
8309
8310 2004-03-04 Graydon Hoare <graydon@redhat.com>
8311
8312 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8313 .libs in -L option.
8314 (libjava_arguments): Add new libraries to argument list.
8315
8316 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8317
8318 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8319 * Makefile.in: Re-generated.
8320 * java/awt/image/AffineTransformOp.java: New Class.
8321
8322 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8323
8324 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8325 (setPaint): Interpret correctly TexturePaint's
8326 anchor rectangle.
8327 (drawImage): Fixed scale factors of the affine
8328 transform.
8329
8330 2004-02-27 David Jee <djee@redhat.com>
8331
8332 * gnu/java/awt/peer/gtk/GdkGraphics.java
8333 (GdkGraphics(Component)): Inherit font from component.
8334 (drawString): Use font style.
8335 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8336 (gtkSetFont): New native method declaration.
8337 (setFont): New method.
8338 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8339 (gtkSetFont): New native method declaration.
8340 (setFont): Call new native method gtkSetFont.
8341 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8342 (setFont): For all child components who do not their fonts set,
8343 set their peers' fonts with this container's font.
8344 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8345 Move all native method declarations to the top for readability.
8346 (gtkSetFont): New native method declaration.
8347 (setFont): New method.
8348 * java/awt/Component.java
8349 (setFont): Invalidate after setting the font.
8350 * java/awt/Container.java
8351 (invalidateTree): New method.
8352 (setFont): Invalidate the container tree after setting the font.
8353 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8354 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8355 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8356 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8357 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8358 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8359 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8360 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8361
8362 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8363
8364 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8365 (updateBufferedImage): New helper function.
8366 Updates BufferedImage in memory if it was changed.
8367 (draw): changed to update BufferedImage in memory after
8368 this drawing operation
8369 (fill): Ditto.
8370 (draw3DRect): Ditto.
8371 (fill3DRect): Ditto.
8372 (clearRect): Ditto.
8373 (drawRaster): Ditto.
8374 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8375 no affine transformation.
8376 (drawGlyphVector): Ditto.
8377
8378 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8379
8380 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8381 (isBufferedImageGraphics): New Helper function.
8382 Returns true if this graphics2d can be used to draw
8383 into buffered image and false otherwise.
8384 (updateImagePixels): New Helper function.
8385 Updates pixels in the BufferedImage.
8386 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8387 (getImagePixels): New function. Returns pixels
8388 of the buffered image associated with
8389 this Graphics2D.
8390
8391 2004-02-26 David Jee <djee@redhat.com>
8392
8393 * java/awt/BorderLayout.java
8394 (layoutContainer): Fix width and height calculations to ensure
8395 that they're non-negative.
8396 * java/awt/Component.java
8397 (setBackground): If c is null, inherit from closest ancestor whose
8398 background color is set.
8399
8400 2004-02-26  Kim Ho  <kho@redhat.com>
8401
8402 * Makefile.am: Add new files.
8403 * Makefile.in: Re-generate.
8404 * javax/swing/JProgressBar.java:
8405 (JProgressBar(int, int int)): Throw
8406 IllegalArgumentException if orientation is
8407 invalid.
8408 (JProgressBar(BoundedRangeModel)): Create
8409 ChangeListener and register it. UpdateUI.
8410 (getChangeListeners): Implement.
8411 (setModel): Reset ChangeListener.
8412 * javax/swing/JScrollBar.java: Implement.
8413 * javax/swing/JSeparator.java: Implement.
8414 * javax/swing/JSlider.java:
8415 (JSlider(int, int, int, int)): Throw
8416 IllegalArgumentException if orientation
8417 is invalid.
8418 (getChangeListeners): Fix method name.
8419 * javax/swing/SwingUtilities.java:
8420 (layoutCompoundLabel): If there is no text,
8421 set the text rectangle dimensions to 0.
8422 * javax/swing/plaf/basic/BasicButtonUI.java:
8423 (paint): If there is no text, don't paint it.
8424 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8425 Implement.
8426 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8427 Implement.
8428 * javax/swing/plaf/basic/BasicSliderUI.java:
8429 (propertyChange): If the model changes, change
8430 the listeners accordingly.
8431
8432 2004-02-25 Graydon Hoare <graydon@redhat.com>
8433
8434 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8435 * javax/swing/JList.java: Reimplement.
8436 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8437 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8438 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8439 * javax/swing/ListModel.java: Javadoc.
8440 * javax/swing/ListSelectionModel.java: Add missing methods.
8441 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8442 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8443 * javax/swing/ListModel.java: Javadoc and corrections.
8444 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8445
8446 2004-02-25 David Jee <djee@redhat.com>
8447
8448 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8449 (GtkFontPeer): Change default size to 12.
8450 * gnu/java/awt/peer/gtk/GtkToolkit.java
8451 (getFontPeer): Change default size to 12.
8452 (getClasspathFontPeer): Likewise. Set default name to "Default".
8453 * java/awt/Font.java
8454 (Font(Map)): Call Font(String,Map).
8455 (Font(String,Map)): If attrs is null, initialize it as an empty
8456 HashMap, which will ensure that the Font will get default attributes.
8457
8458 2004-02-25 David Jee <djee@redhat.com>
8459
8460 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8461 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8462 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8463 * gnu/java/awt/peer/gtk/GtkToolkit.java
8464 (getFontPeer(String,int)): Call the new overload method with size 1.
8465 (getFontPeer(String,int,int)): New method. Overloaded with size
8466 attribute.
8467 (getClasspathFontPeer): Set the size of the font.
8468
8469 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8470
8471 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8472 (bimage): New field.
8473 (GdkGraphics2D): New Constructor. Constructs Graphics
8474 object that can be used to draw into the Buffered Image.
8475 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8476 (GdkGraphicsEnvironment): Fixed to include public
8477 keyword.
8478 (createGraphics): Implemented.
8479 * gnu/java/awt/peer/gtk/GtkToolkit.java
8480 (getLocalGraphicsEnvironment): Implemented.
8481 * java/awt/GraphicsEnvironment.java:
8482 (getLocalGraphicsEnvironment): Implemented.
8483 * java/awt/image/BufferedImage.java:
8484 (createGraphics): Implemented.
8485
8486 2004-02-24 David Jee <djee@redhat.com>
8487
8488 * java/awt/Component.java
8489 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8490 * java/awt/Container.java
8491 (addNotifyContainerChildren): Fix event enabling.
8492
8493 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8494
8495 * Makefile.am: Added
8496 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8497 * Makefile.in: Re-generated.
8498 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8499 New Class.
8500
8501 2004-02-19 Kim Ho <kho@redhat.com>
8502
8503 * Makefile.am: Add BasicProgressBarUI
8504 * Makefile.in: Regenerate.
8505 * javax/swing/JProgressBar.java:
8506 Re-implement.
8507 * javax/swing/plaf/basic/BasicLookAndFeel.java
8508 Add constants for JProgressBar.
8509 * javax/swing/plaf/basic/BasicProgressBarUI.java
8510 Implement.
8511 * javax/swing/plaf/basic/BasicSliderUI.java
8512 Change comments.
8513 (calculateGeometry): New method
8514 (paint): Remove unnecessary size calculations.
8515
8516 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8517
8518 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8519 (drawRaster): Fixed small error that caused
8520 imageToUser transformation to be set incorrectly.
8521 (toString): Implemented.
8522
8523 2004-02-18 David Jee <djee@redhat.com>
8524
8525 * java/awt/CardLayout.java
8526 (addLayoutComponent): Show the first component added as the default.
8527 (removeLayoutComponent): After removing, show the next component.
8528 (gotoComponent): If there is only one component, show it and return.
8529
8530 2004-02-18 Kim Ho <kho@redhat.com>
8531
8532 * javax/swing/JSlider.java: Re-order
8533 modifiers.
8534 * javax/swing/JLabel.java: Re-order
8535 modifiers.
8536 * javax/swing/JComponent.java:
8537 (addPropertyChangeListener):
8538 Implement.
8539 (removePropertyChangeListener):
8540 ditto.
8541 (firePropertyChangeEvent):
8542 ditto.
8543
8544 2004-02-17 David Jee <djee@redhat.com>
8545
8546 * java/awt/Component.java
8547 (show): Dispatch ComponentEvent via system event queue.
8548 (hide): Likewise.
8549 (move): Likewise.
8550 (resize): Likewise.
8551 (reshape): Likewise.
8552 * java/awt/Window.java
8553 (setBoundsCallback): Likewise.
8554
8555 2004-02-17 David Jee <djee@redhat.com>
8556
8557 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8558 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8559 Use gtk_widget_set_size_request() instead of the deprecated
8560 gtk_widget_set_usize().
8561
8562 2004-02-17 Kim Ho <kho@redhat.com>
8563
8564 * javax/swing/JSlider.java: Fix comments and
8565 make property strings constants.
8566 (createStandardLabels): Use the labels
8567 preferred size as bounds.
8568 * javax/swing/plaf/basic/BasicSliderUI.java
8569 Fix comments.
8570 (ScrollHandler::actionPerformed): Don't
8571 calculate the timer stop value. Let the
8572 MouseListeners find the stop location.
8573 (getPreferredHorizontalSize): Re-implement.
8574 (getPreferredVerticalSize): ditto.
8575 (getMinimumHorizontalSize): ditto.
8576 (getMinimumVerticalSize): ditto.
8577 (getPreferredSize): ditto.
8578 (getMinimumSize): ditto.
8579 (getMaximumSize): ditto.
8580 (paintTicks): Use doubles to find the
8581 tick location.
8582 (paintHorizontalLabel):  Use preferredSize
8583 as initial width and height.
8584 (paintVerticalLabel): ditto.
8585
8586 2004-02-17 Kim Ho <kho@redhat.com>
8587
8588 * javax/swing/JLabel.java: Changed
8589 property strings to constants.
8590 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8591 New property.
8592 (setText): Change mnemonic index if
8593 text is too short.
8594 (setDisplayedMnemonicIndex): Fire property
8595 change event.
8596 (getDisplayedMnemonicIndex): Remove check
8597 against short text.
8598
8599 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8600
8601 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8602 (drawImage(img,xform,obs)): Invert xform before
8603 passing the xform to cairo.
8604 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8605 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8606 implemented.
8607 (drawImage (img,x,y,w,h,obs)): Implemented.
8608 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8609 bgcolor,obs)): Partly implemented.
8610 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8611 Implemented.
8612 * java/awt/image/BufferedImage.java:
8613 (copyData): if dest is null, create raster with same
8614 dimensions as the current image.
8615
8616 2004-02-16 Graydon Hoare <graydon@redhat.com>
8617
8618 * javax/swing/plaf/basic/BasicLabelUI.java
8619 (getPreferredSize): Use layoutCL.
8620 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8621 (getPreferredButtonSize): Start with empty view rect, layout using
8622 component's preferred alignment.
8623 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8624 List defaults.
8625
8626 2004-02-16 David Jee <djee@redhat.com>
8627
8628 * java/awt/Component.java
8629 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8630 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8631 (move): Erase old bounds and repaint new bounds. Dispatch
8632 COMPONENT_MOVED ComponentEvent.
8633 (resize): Erase old bounds and repaint new bounds. Dispatch
8634 COMPONENT_RESIZED ComponentEvent.
8635 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8636 ComponentEvents.
8637 * java/awt/Window.java
8638 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8639 ComponentEvents.
8640
8641 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8642
8643 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8644 (setRenderingHint): Added implementation of
8645 Interpolation rendering hints.
8646 (setRenderingHints): Ditto.
8647 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8648 (drawPixels): fixed to allow user to choose type
8649 of filtering that should be used when displaying images.
8650 (cairoSurfaceSetFilter): New method. Sets filter type for
8651 interpolation of pixel values.
8652
8653 2004-02-16 David Jee <djee@redhat.com>
8654
8655 * java/awt/GridBagLayout.java
8656 (calcCellSizes): Rows or columns with zero sizes should still be
8657 considered for extra space distribution.
8658
8659 2004-02-16 Kim Ho <kho@redhat.com>
8660
8661 * javax/swing/JLabel.java: Re-implement.
8662 * javax/swing/plaf/basic/BasicLabelUI.java
8663 Re-implement.
8664 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8665 Added constant.
8666
8667 2004-02-16  Kim Ho  <kho@redhat.com>
8668
8669 * javax/swing/JSlider.java: Fix indentation and comments.
8670 (setModel): Remove null check to conform with Sun's.
8671 (setOrientation): Throw exception if not
8672 HORIZONTAL or VERTICAL.
8673 (getInverted): Use private variable instead of
8674 ComponentOrientation.
8675 (setInverted): ditto.
8676 * javax/swing/plaf/basic/BasicSliderUI.java:
8677 Fix indentation and comments.
8678 (propertyChange): Remove check for inverted slider, handle
8679 in main paint.
8680 (getMinimumSize): Return preferred size.
8681 (getMaximumSize): ditto.
8682 (calculateFocusRect): Don't relocate rectangle.
8683 (drawInverted): Return XOR of the slider's inversion and
8684 the component's orientation.
8685 (paint): Update leftToRightCache
8686
8687 2004-02-13 David Jee <djee@redhat.com>
8688
8689 * java/awt/GridBagLayout.java
8690 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
8691 code to helper methods.
8692 (sortBySpan): New helper method.
8693 (distributeSizeAndWeight): Likewise.
8694 (calcCellWeights): Likewise.
8695 (calcCellSizes): Add comments.
8696
8697 2004-02-13 David Jee <djee@redhat.com>
8698
8699 * java/awt/Component.java
8700 (show): Only do something if component is invisible at the moment.
8701 (hide): Only do something if component is visible at the moment.
8702 (reshape): If lightweight, erase old bounds and repaint new bounds.
8703
8704 2004-02-13  Kim Ho  <kho@redhat.com>
8705
8706 * Makefile.am: Updated for new file.
8707 * Makefile.in: Regenerated.
8708 * javax/swing/JSlider.java: Reimplement.
8709 * javax/swing/SwingUtilities.java
8710 (layoutCompoundLabel): Use icon height
8711 instead of width.
8712 (paintComponent): Implement.
8713 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8714 Add JSlider defaults.
8715 * javax/swing/plaf/basic/BasicSliderUI.java:
8716 Implement. New file.
8717
8718 2004-03-17 Michael Koch <konqueror@gmx.de>
8719
8720 * gnu/java/net/PlainDatagramSocketImpl.java
8721 (RECEIVE_LOCK): New member field.
8722 (SEND_LOCK): New member field.
8723 (send0): New method.
8724 (send): Synchronize on SEND_LOCK.
8725 (receive0): New method.
8726 (receive): Synchronize on RECEIVE_LOCK.
8727 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
8728 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
8729 gnu/java/net/natPlainDatagramSocketImplWin32.cc
8730 (send0): Renamed from send.
8731 (receive0): Renamed from receive.
8732 2004-03-17 Michael Koch <konqueror@gmx.de>
8733
8734 * gnu/java/net/natPlainSocketImplPosix.cc
8735 (write): Just call write(jbyteArray, offset, len).
8736 (read): Just call read(jbyteArray, offset, len).
8737
8738 2004-03-16 Michael Koch <konqueror@gmx.de>
8739
8740 * javax/swing/JTabbedPane.java
8741 (serialVersionUID): New field.
8742
8743 2004-03-16 Norbert Frese <postfach@nfrese.net>
8744
8745 * java/net/InetAddress.java
8746 (getByName): Handle hostname == "" case.
8747
8748 2004-03-16 Dalibor Topic <robilad@kaffe.org>
8749
8750 Reported by: Adam Heath <doogie@debian.org>
8751 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
8752 class loader.
8753
8754 2004-03-15 Michael Koch <konqueror@gmx.de>
8755
8756 * java/util/Locale.java: Reverting my last patch
8757 and add a comment why the original version was okay.
8758
8759 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
8760
8761 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
8762 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
8763 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
8764 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
8765
8766 2004-03-12 Michael Koch <konqueror@gmx.de>
8767
8768 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
8769
8770 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8771
8772 * java/net/URI.java (toURL): Implemented.
8773
8774 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8775
8776 * java/net/URI.java
8777 (URI_REGEXP) updated to contain scheme specific part.
8778 (SCHEME_SPEC_PART_GROUP) new constant.
8779 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
8780 updated to make room for SCHEME_SPEC_PART_GROUP.
8781 (parseURI) parse scheme specific part.
8782 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
8783 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
8784 getQuery, getFragment) implemented.
8785
8786 2004-03-12 Dalibor Topic <robilad@kaffe.org>
8787
8788 * libraries/javalib/java/net/URI.java
8789 partially implemented using java.util.regex.
8790 (URI_REGEXP) new constant. Used to parse URIs.
8791 (SCHEME_GROUP) new constant representing index of scheme group
8792 in parsed URI.
8793 (AUTHORITY_GROUP) new constant representing index of authority
8794 group in parsed URI.
8795 (PATH_GROUP) new constant representing index of path group in
8796 parsed URI.
8797 (QUERY_GROUP) new constant representing index of query group in
8798 parsed URI.
8799 (FRAGMENT_GROUP) new constant representing index of fragment
8800 group in parsed URI.
8801 (getURIGroup) new static utility method.
8802 (parseURI) implemented.
8803 (quote) stub for new static utility method.
8804 (quoteAuthority) stub for new static utility method.
8805 (quoteHost) stub for new static utility method.
8806 (quotePath) stub for new static utility method.
8807 (quoteUserInfo) stub for new static utility method.
8808 (URI) implemented.
8809 (create) don't throw URISyntaxException. Implemented.
8810 (toString) implemented.
8811
8812 2004-03-12 Michael Koch <konqueror@gmx.de>
8813
8814 * java/net/HttpURLConnection.java
8815 (getResponseCode): Fix another typo in javadoc.
8816
8817 2004-03-11 Michael Koch <konqueror@gmx.de>
8818
8819 * java/util/logging/Level.java
8820 (parse): Use String.equals() instead of ==.
8821
8822 2004-03-11 Michael Koch <konqueror@gmx.de>
8823
8824 * gnu/java/net/protocol/jar/Connection.java
8825 (getContentLength): New method.
8826
8827 2004-03-11 Michael Koch <konqueror@gmx.de>
8828
8829 * gnu/java/net/PlainSocketImpl.java:
8830 Reformated to merge better with classpath's version.
8831
8832 2004-03-11 Michael Koch <konqueror@gmx.de>
8833
8834 * java/util/Locale.java
8835 (getISO3Language): Use String.equals() instead of ==.
8836 (getISO3Country): Likewise.
8837
8838 2004-03-11 Dalibor Topic <robilad@kaffe.org>
8839
8840 * java/text/AttributedString.java
8841 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
8842 Use HashMap instead of Hashtable since value can be null, and
8843 you can not store a null value in a Hashtable.
8844
8845 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8846
8847 * java/text/AttributedStringIterator.java
8848 (getAllAttributesKey): Return only keys concerned
8849 by the current iterator.
8850 (getAttributes): Use strict inequality for
8851 end_index.
8852
8853 2004-03-11 Michael Koch <konqueror@gmx.de>
8854
8855 * java/net/HttpURLConnection.java:
8856 Fixed typo in javadoc.
8857
8858 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8859
8860 * java/io/BufferedInputStream.java (marktarget): New field for max
8861 mark limit.
8862 (CHUNKSIZE): New constant for incremental mark buffer allocation.
8863 (mark): Use new fields.
8864 (read): Likewise.
8865 (read(byte[],int,int)): Likewise.
8866 (skip): Likewise.
8867 (refill): Likewise.
8868
8869 2004-03-11 Mark Wielaard <mark@klomp.org>
8870
8871 * java/beans/BeanDescriptor.java (BeanDescriptor):
8872 Set the FeatureDescriptor programmatic name.
8873
8874 2004-03-11 Michael Koch <konqueror@gmx.de>
8875
8876 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
8877 This file was was just copied form java/io/natFileDescriptorEcos.cc
8878 and never changed to compile correctly.
8879
8880 2004-03-11 Michael Koch <konqueror@gmx.de>
8881
8882 * gnu/java/nio/PipeImpl.java
8883 (SourceChannelImpl): Made final.
8884 (read): Implemented.
8885 (SinkChannelImpl): Made final.
8886 (write): Implemented.
8887
8888 2004-03-11 Michael Koch <konqueror@gmx.de>
8889
8890 * gnu/java/net/PlainDatagramSocketImpl.java:
8891 Reformated to match classpath's version more.
8892
8893 2004-03-11 Michael Koch <konqueror@gmx.de>
8894
8895 * gnu/java/awt/peer/ClasspathFontPeer.java:
8896 Fixed javadoc to be correct xhtml.
8897 * gnu/java/awt/peer/gtk/GtkArgList.java
8898 (add): Use Boolean.valueOf() instead of new Boolean().
8899
8900 2004-03-09 Michael Koch <konqueror@gmx.de>
8901
8902 * java/lang/Thread.java
8903 (runnable): Moved around.
8904 (daemon): Renamed from daemon_flag.
8905 (contextClassLoader): Renamed from context_class_loader.
8906 (Thread): Reordered constructors.
8907 (activeCount): Use group directly.
8908 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
8909 (holdsLock): Reworked javadoc.
8910 (setDaemon): Reworked.
8911 * java/lang/natThread.cc
8912 (destroy): Removed.
8913
8914 2004-03-08 Anthony Green <green@redhat.com>
8915
8916 * Makefile.am: Build property resource files into libgcj.
8917 * Makefile.in: Rebuilt.
8918 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
8919 java/util/regex/PatternSyntaxException.java,
8920 gnu/regexp/CharIndexed.java,
8921 gnu/regexp/CharIndexedCharArray.java,
8922 gnu/regexp/CharIndexedInputStream.java,
8923 gnu/regexp/CharIndexedReader.java,
8924 gnu/regexp/CharIndexedString.java,
8925 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
8926 gnu/regexp/REException.java,
8927 gnu/regexp/REFilterInputStream.java,
8928 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
8929 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
8930 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
8931 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
8932 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
8933 gnu/regexp/RETokenLookAhead.java,
8934 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
8935 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
8936 gnu/regexp/RETokenStart.java,
8937 gnu/regexp/RETokenWordBoundary.java,
8938 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
8939
8940 2004-03-03 Per Bothner <per@bothner.com>
8941
8942 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
8943 Optimize when argument is a FileChannelImpl.
8944 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
8945 New native methods.
8946 * java/nio/channels/natChannels.cc: New file for new native methods.
8947 * Makefile.am: Update accordingly.
8948
8949 2004-03-02 Jan Hubicka <jh@suse.cz>
8950
8951 * configure.host: Pass -fno-omit-frame-pointer for i386.
8952 * configure.in: Likewise.
8953 * configure: Regenerate.
8954
8955 2004-03-01 Per Bothner <per@bothner.com>
8956
8957 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
8958
8959 2004-02-29 Per Bothner <per@bothner.com>
8960
8961 * java/nio/channels/FileChannelImpl.java: Moved to package
8962 gnu/java/nio/channels, since we need to refer to it from java.io.
8963 * java/nio/channels/natFileChannelImpl.cc: Removed file.
8964 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
8965 from java/nio/channels. Don't depend on FileDescriptor.
8966 (in, out, err): New static fields.
8967 (mode): New field.
8968 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
8969 from FileDescriptor.
8970 (by): Removed MappedByteBuffer field.
8971 (map): New working implementation.
8972 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
8973 some code "ported" from natFileDescriptoPosix.cc.
8974 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
8975 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
8976 * java/io/FileDescriptor.java: Implement on top of FileChannel.
8977 Remove native methods.
8978 * Makefile.am, configure.in: Updated accordingly.
8979
8980 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
8981 (ch): New FileChannelImpl field. Update constructor to match.
8982 (releaseImpl): Remove native method. Instead ...
8983 (release): Call unlock on channel.
8984 * gnu/java/nio/natFileLockImpl.cc: Removed file.
8985
8986 * java/io/natFileDescriptorEcos.cc: Remove file.
8987 * java/io/natFileDescriptorPosix.cc: Remove file.
8988 * java/io/natFileDescriptorWin32.cc: Remove file.
8989 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
8990 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
8991 (<init>(FileChannelImpl)): New package-private constructor.
8992 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
8993 (available, close, read, skip): Implement using FileChannelImpl.
8994 (getFD): Allocate FileDescriptor if needed.
8995 (getChannel): Is now trivial.
8996 * java/io/FileOutputStream.java: Corresponding changes.
8997 * java/io/RandomAccessFile.java: Corresponding changes.
8998
8999 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9000 unmapImpl): New dummy methods, to be overridden by subclass.
9001 (finalize, isLoaded, load, force): New methods.
9002 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9003 Now works, at least for read mapping.
9004
9005 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9006 streams using FileChannelImpl, not FileDescriptor.
9007 * java/lang/natWin32Process.cc (startProcess): Likewise.
9008
9009 2004-02-28 Michael Koch <konqueror@gmx.de>
9010
9011 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9012 wrong code.
9013
9014 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9015
9016 * java/io/ObjectInputStream.java
9017 (readClassDescriptor): Keep elements of the mapping non null.
9018 (checkTypeConsistency): New method.
9019 (readFields): Fixed main loop and base logic. Small reindentation.
9020 * java/io/ObjectStreamField.java
9021 (lookupField): New method to update the field reference.
9022 (checkFieldType): New method.
9023 * java/io/ObjectStreamClass.java
9024 (setClass, setFields): Call lookupField when building the field
9025 database. Check the real field type.
9026
9027 2004-02-28 Michael Koch <konqueror@gmx.de>
9028
9029 * java/nio/ByteOrder.java
9030 (nativeOrder): Use equals() to compare strings.
9031
9032 2004-02-26 Michael Koch <konqueror@gmx.de>
9033
9034 * gnu/java/nio/FileLockImpl.java
9035 (finalize): Made protected.
9036 * java/nio/channels/FileChannel.java
9037 (MapMode.READ_ONLY): Made final.
9038 (MapMode.READ_WRITE): Made final.
9039 (MapMode.PRIVATE): Made final.
9040 * java/nio/channels/SocketChannel.java
9041 (open): Simplified code.
9042 * java/nio/channels/spi/AbstractSelectableChannel.java
9043 (registered): Unused, removed.
9044 (keyFor): Check channel is open, only locate key
9045 and not add a new one.
9046 (register): Don't delete attachments.
9047
9048 2004-02-26 Michael Koch <konqueror@gmx.de>
9049
9050 * gnu/java/awt/ComponentDataBlitOp.java
9051 (INSTANCE): Made final.
9052 * gnu/java/awt/image/ImageDecoder.java:
9053 Reworked imports.
9054 (cm): Unused, removed.
9055
9056 2004-02-26 Michael Koch <konqueror@gmx.de>
9057
9058 * gnu/java/nio/DatagramChannelImpl.java
9059 (send): Check if target address is resolved.
9060
9061 2004-02-26 Michael Koch <konqueror@gmx.de>
9062
9063 * Makefile.am: Generate and install headers for inner classes in
9064 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9065 * Makefile.in: Regenerated.
9066
9067 2004-02-24 Anthony Green <green@redhat.com>
9068
9069 * java/lang/StringBuffer.java: No need to NULL out remainder of
9070 buffer since ensureCapacity_unsynchronized will have done this for
9071 us.
9072
9073 2004-02-20 Michael Koch <konqueror@gmx.de>
9074
9075 * gnu/java/net/protocol/jar/Handler.java
9076 (): Removed unneeded check for file != null. java.net.URL.getFile()
9077 returns an empty string but never null.
9078
9079 2004-02-20 Michael Koch <konqueror@gmx.de>
9080
9081 * gnu/gcj/convert/Convert.java
9082 (main): Use equals() to compare strings.
9083
9084 2004-02-20 Michael Koch <konqueror@gmx.de>
9085
9086 * javax/swing/AbstractButton.java: Made several constants final.
9087 (getRolloverSelectedIcon): Made public.
9088 (getSelectedIcon): Made public.
9089
9090 2004-02-16 Per Bothner <per@bothner.com>
9091
9092 * java/nio/CharBufferImpl.java: Inline super constructor.
9093 * java/nio/DoubleBufferImpl.java: Likewise.
9094 * java/nio/FloatBufferImpl.java: Likewise.
9095 * java/nio/IntBufferImpl.java: Likewise.
9096 * java/nio/LongBufferImpl.java: Likewise.
9097 * java/nio/ShortBufferImpl.java: Likewise.
9098 * java/nio/CharBuffer.java: Remove unused constructor.
9099 * java/nio/DoubleBuffer.java: Likewise.
9100 * java/nio/FloatBuffer.java: Likewise.
9101 * java/nio/IntBuffer.java: Likewise.
9102 * java/nio/LongBuffer.java: Likewise.
9103 * java/nio/ShortBuffer.java: Likewise.
9104 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9105 Fix buggy call to super constructor.
9106 * java/nio/DoubleViewBufferImpl.java: Likewise.
9107 * java/nio/FloatViewBufferImpl.java: Likewise.
9108 * java/nio/IntViewBufferImpl.java: Likewise.
9109 * java/nio/LongViewBufferImpl.java: Likewise.
9110 * java/nio/ShortViewBufferImpl.java: Likewise.
9111
9112 * java/nio/ByteBuffer.java (endian): Make non-private so other
9113 java.nio classes can inherit it.
9114 (<init>): Don't bother clearing array_offset.
9115 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9116 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9117 Remove redundant test.
9118
9119 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9120 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9121 Use new XxxViewBufferImpl constructors.
9122 * java/nio/MappedByteBufferImpl.java: Likewise.
9123 * java/nio/DirectByteBufferImpl.java: Likewise.
9124
9125 * java/nio/ByteBufferImpl.java: Remove one constructor.
9126 Inline super in remaining constructor.
9127 * java/nio/ByteBuffer.java: Remove unused constructor.
9128
9129 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9130
9131 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9132 * java/nio/DirectByteBufferImpl.java (owner): New field.
9133 (offset): Remove unused field.
9134 (<init>): Modify one and add another constructor. Change callers.
9135 (allocateDirect): Removed - not used.
9136 (getImpl, putImpl): Make static and pass address explicitly,
9137 to make them useful for MappedByteBufferImpl.
9138 (get, put): Check for underflow. Modify for new getImpl.
9139 (getImpl): New native method where target is array.
9140 (get(byte[],int,int)): Use the above.
9141 (adjustAddress): New static native method.
9142 (slice, duplicate, asReadOnly): New implementations.
9143 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9144 adjustAddress): New or updated native methods.
9145
9146 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9147
9148 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9149 overflow of fieldmapping.
9150
9151 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9152
9153 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9154
9155 2004-02-14 Per Bothner <per@bothner.com>
9156
9157 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9158 Set closed before calling implCloseChannel, as in the spec.
9159
9160 2004-02-09 Graydon Hoare <graydon@redhat.com>
9161
9162 * javax/swing/ToggleButtonModel.java: Remove dead class.
9163 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9164 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9165 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9166 * Makefile.am: Update for new and removed files.
9167 * Makefile.in: Regenerate.
9168
9169 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9170 * javax/swing/AbstractButton.java
9171 (AbstractButton): Initialize fields correctly in ctor.
9172 * javax/swing/JCheckbox.java
9173 (JCheckBox): Override painting flags.
9174 * javax/swing/DefaultButtonModel.java: Conform to sun.
9175 * javax/swing/JComponent.java (paint): Fill with background color
9176 if available.
9177 (processComponentKeyEvent)
9178 (processFocusEvent)
9179 (processKeyEvent)
9180 (processMouseMotionEvent): Remove event-consuming empty methods.
9181 (getUIClassID): Return "ComponentUI" not "JComponent"
9182 * javax/swing/JFrame.java: Remove some debugging chatter.
9183 (JFrame): Subscribe to window events.
9184 * javax/swing/JRadioButton.java
9185 (JRadioButton): Override painting flags.
9186 * javax/swing/JRootPane.java
9187 (JRootPane): Set background from UIDefaults.
9188 * javax/swing/JToggleButton.java
9189 (ToggleButtonModel): New inner class.
9190 (JToggleButton): Override layout alighment.
9191 * javax/swing/SwingUtilities.java:
9192 (getLocalBounds): Return width and height, not x and y.
9193 (calculateInnerArea): Use local bounds, not bounds.
9194 (layoutCompoundLabel): Provide overridden form.
9195 (layoutCompoundLabel): Correct bugs.
9196 * javax/swing/UIDefaults.java: Correct comment.
9197 * javax/swing/plaf/basic/BasicButtonUI.java:
9198 Move most logic into defaults, external listener.
9199 (paintIcon): Implement icon painting.
9200 (paint): Fix state painting to conform to changes in model.
9201 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9202 Remove most dead/wrong methods.
9203 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9204 * javax/swing/plaf/basic/BasicIconFactory.java:
9205 (DummyIcon): New class.
9206 (getMenuItemCheckIcon)
9207 (getMenuItemArrowIcon)
9208 (getMenuArrowIcon)
9209 (getCheckBoxMenuItemIcon)
9210 (getRadioButtonMenuItemIcon)
9211 (createEmptyFrameIcon): Return DummyIcons, not null.
9212 (getCheckBoxIcon): Implement an icon that looks like sun's.
9213 (getRadioButtonIcon): Implement an icon that looks like sun's.
9214 * javax/swing/plaf/basic/BasicLookAndFeel.java
9215 (initComponentDefaults): Fix impossible values, add some missing.
9216 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9217 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9218 Remove most dead/wrong methods.
9219 (icon): New field.
9220 (getDefaultIcon): New method.
9221 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9222 Remove most dead/wrong methods.
9223 * javax/swing/plaf/metal/MetalLookAndFeel.java
9224 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9225 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9226 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9227 Implement "clearing" as drawing, when on pixmap drawables.
9228
9229 * javax/swing/JButton.java (getUIClassID):
9230 * javax/swing/JCheckBox.java (getUIClassID):
9231 * javax/swing/JEditorPane.java (getUIClassID):
9232 * javax/swing/JLabel.java (getUIClassID):
9233 * javax/swing/JList.java (getUIClassID):
9234 * javax/swing/JOptionPane.java (getUIClassID):
9235 * javax/swing/JPanel.java (getUIClassID):
9236 * javax/swing/JPasswordField.java (uiClassID):
9237 * javax/swing/JRadioButton.java (getUIClassID):
9238 * javax/swing/JRootPane.java (getUIClassID):
9239 * javax/swing/JScrollPane.java (getUIClassID):
9240 * javax/swing/JTabbedPane.java (getUIClassID):
9241 * javax/swing/JToggleButton.java (getUIClassID):
9242 * javax/swing/JTree.java (getUIClassID):
9243 * javax/swing/JViewport.java (getUIClassID):
9244 * javax/swing/text/JTextComponent.java (getUIClassID):
9245 Return "fooUI" not "Jfoo"
9246
9247 2004-02-11 Michael Koch <konqueror@gmx.de>
9248
9249 * java/net/DatagramSocket.java
9250 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9251 Boolean object.
9252 (setBroadcast): Likewise.
9253 * java/net/MulticastSocket.java
9254 (setLoopbackMode): Likewise.
9255 * java/net/ServerSocket.java
9256 (setReuseAddress): Likewise.
9257 * java/net/Socket.java
9258 (setTcpNoDelay): Likewise.
9259 (setSoLinger): Likewise.
9260 (setOOBInline): Likewise.
9261 (setKeepAlive): Likewise.
9262 (setReuseAddress): Likewise.
9263 * java/net/URLConnection.java
9264 (setContentHandler): Replace == with equals().
9265 * java/net/URLStreamHandler.java
9266 (hostSEquals): Fix checking host addresses.
9267 (toExternalForm): Dont check protocol for null. We know already its
9268 not null.
9269
9270 2004-02-10 David Jee <djee@redhat.com>
9271
9272 * java/awt/BorderLayout.java
9273 (calcCompSize): Invisible components get zero dimensions.
9274 * java/awt/Button.java
9275 (setLabel): Set actionCommand.
9276 * java/awt/Component.java
9277 (show): Invalidate component and parent container.
9278 (hide): Likewise.
9279
9280 2004-02-10 David Jee <djee@redhat.com>
9281
9282 * java/awt/GridBagLayout.java
9283 (GridBagLayout): New private field, internalcomptable.
9284 (lookupInternalConstraints): New method.
9285 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9286 (GetLayoutInfo): Reimplement.
9287 (calcCellSizes): Ignore rows/columns with size 0.
9288
9289 2004-02-10 Michael Koch <konqueror@gmx.de>
9290
9291 * gnu/java/awt/EmbeddedWindow.java
9292 (setHandle): Use java.awt.Component.getPeer() instead of
9293 java.awt.Component.peer directly.
9294
9295 2004-02-10 David Jee <djee@redhat.com>
9296
9297 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9298 (gtkSetLabel): New native method definition.
9299 (setLabel): Use gtkSetLabel.
9300 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9301 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9302
9303 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9304
9305 * include/powerpc-signal.h: Revert 2004-01-21 change.
9306 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9307 from syscall for ppc32 versions.
9308
9309 2004-02-08 Per Bothner <per@bothner.com>
9310
9311 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9312 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9313 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9314 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9315 Pass ByteOrder parameter to most methods, since the underlying
9316 ByteBuffer's order isn't always what we should use.
9317 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9318 * java/nio/DirectByteBufferImpl.java: Likewise.
9319 Use ByteBufferHelper methods.
9320 * java/nio/MappedByteBufferImpl.java: Likewise.
9321 (compact): Use shiftDown.
9322 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9323 (get, put): Use ByteBufferHelper.
9324 (compact): Use new shiftDown method.
9325 (duplicate(boolean)): New helper method.
9326 (duplicate, asReadOnlyBuffer): Use it.
9327 (order): Return endian field.
9328 * java/nio/DoubleViewBufferImpl.java: Likewise.
9329 * java/nio/FloatViewBufferImpl.java: Likewise.
9330 * java/nio/IntViewBufferImpl.java: Likewise.
9331 * java/nio/LongViewBufferImpl.java: Likewise.
9332 * java/nio/ShortViewBufferImpl.java: Likewise.
9333 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9334 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9335 (compact): Re-implement using shiftDown.
9336
9337 2004-02-08 Andreas Jaeger <aj@suse.de>
9338
9339 * include/x86_64-signal.h: Fix typo.
9340
9341 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9342
9343 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9344 qualifier to _regs.
9345 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9346
9347 2004-02-06 Michael Koch <konqueror@gmx.de>
9348
9349 * java/io/ObjectInputStream.java
9350 (currentClassLoader): Reverted to old version of this method.
9351
9352 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9353
9354 * java/io/ObjectInputStream.java: Made all calls
9355 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9356 use cached info from ObjectStreamClass. (readClassDescriptor):
9357 Cache more information in ObjectStreamClass. (processResolution,
9358 readFields): Use cached info from ObjectStreamClass.
9359 (newObject): Throw exception instead of returning null for failure.
9360 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9361 setCharField, setDoubleField, setFloatField, setIntField,
9362 setLongField, setShortField, setObjectField, readObjectParams):
9363 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9364 check.
9365 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9366 (setClass): Added call to cacheMethods() (findMethod): New method.
9367 (cacheMethods): New method. (ObjectStreamClass): Added call to
9368 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9369 AccessController.doPrivileged to invoke setAccessible.
9370 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9371 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9372 New fields.
9373 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9374 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9375 isPrimitive): Made safe for cases where type == null.
9376 (setBooleanField, setByteField, setCharField, setShortField,
9377 setIntField, setLongField, setFloatField, setDoubleField,
9378 setObjectField): New methods.
9379
9380 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9381
9382 * java/awt/Component.java (getFont): Return a default font
9383 instead of null.
9384
9385 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9386 (Scrollbar (int, int, int, int, int)): Make default page
9387 increment 10.
9388 (setValues): Only call peer.setValues if one of the values has
9389 changed.
9390 (generateName): New method.
9391 (getUniqueLong): New method.
9392 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9393 (range_scrollbar): Remove structure.
9394 (post_adjustment_event): Remove function.
9395 (post_change_event): Accept jobject argument.
9396 (create): Cast jints to gdoubles. Round scrollbar values to the
9397 nearest integer. Clamp min, max and value settings.
9398 (connectJObject): Connect hook to widget->window.
9399 (connectSignals): Remove range_scrollbar structure variables.
9400 Remove "move-slider" connection. Pass global peer reference to
9401 "value-changed" callback.
9402 (setLineIncrement): Cast jint value to gdouble.
9403 (setPageIncrement): Likewise.
9404 (setValues): Likewise. Clamp min, max and value settings.
9405
9406 2004-02-05 Michael Koch <konqueror@gmx.de>
9407
9408 * javax/swing/AbstractCellEditor.java
9409 (getCellEditorValue): Removed.
9410 * javax/swing/Box.java: Reformated.
9411 (serialVersionUID): New field.
9412 * javax/swing/ButtonGroup.java:
9413 Removed some weird whitespace.
9414 * javax/swing/CellEditor.java: Reformated.
9415 * javax/swing/CellRendererPane.java
9416 (serialVersionUID): New field.
9417 (AccessibleCellRendererPaneserialVersionUID): New field.
9418 * javax/swing/DefaultListModel.java
9419 (serialVersionUID): New field.
9420 * javax/swing/JEditorPane.java
9421 (serialVersionUID): New field.
9422 (setPage): Throws IOException.
9423 (addHyperlinkListener): Implemented.
9424 (removeHyperlinkListener): Implemented.
9425 (getHyperlinkListener): New method.
9426 * javax/swing/JFileChooser.java
9427 (serialVersionUID): New field.
9428 (AccessibleJFileChooser.serialVersionUID): New field.
9429 (addActionListener): Implemented.
9430 (removeActionListener): Implemented.
9431 (getActionListeners): New method.
9432 * javax/swing/JFormattedTextField.java
9433 (serialVersionUID): New field.
9434 (AbstractFormatter.serialVersionUID): New field.
9435 (clone): Throws CloneNotSupportedException
9436 (setEditValid): Add missing argument.
9437 (stringToValue): Throws ParseExcpetion.
9438 (valueToString): Throws ParseException.
9439 (commitEdit): Throws ParseException.
9440 * javax/swing/JLabel.java
9441 (serialVersionUID): New field.
9442 * javax/swing/JList.java
9443 (serialVersionUID): New field.
9444 (addListSelectionListener): Reformated.
9445 (removeListSelectionListener): Reformated.
9446 (getListSelectionListeners): New method.
9447 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9448 Reformated.
9449 (serialVersionUID): New field.
9450 * javax/swing/table/AbstractTableModel.java
9451 (getValueAt): Removed.
9452 (getColumnCount): Removed.
9453 (getRowCount): Removed.
9454
9455 2004-02-05 Michael Koch <konqueror@gmx.de>
9456
9457 * java/awt/datatransfer/DataFlavor.java
9458 (imageFlavor): Javadoc added.
9459 (javaJVMLocalObjectType): Fixed.
9460
9461 2004-02-05 Michael Koch <konqueror@gmx.de>
9462
9463 * java/lang/Thread.java
9464 (Thread): Reordered.
9465 (setContextClassLoader): Fixed javadoc comment.
9466 (setPriority): Reordered.
9467 (yield): Reordered.
9468 (initialize_native): Reordered.
9469 (gen_name): Reordered.
9470
9471 2004-02-05 Michael Koch <konqueror@gmx.de>
9472
9473 * java/lang/Thread.java: Reordered fields, reformated much code,
9474 no functional changes, some variables renamed, javadoc comments
9475 merged.
9476
9477 2004-02-05 Michael Koch <konqueror@gmx.de>
9478
9479 * java/util/zip/Deflater.java,
9480 java/util/zip/DeflaterOutputStream.java,
9481 java/util/zip/GZIPInputStream.java:
9482 Reformated and javadoc comments merged from classpath.
9483
9484 2004-02-05 Michael Koch <konqueror@gmx.de>
9485
9486 * gnu/java/nio/NIOServerSocket.java
9487 (impl): Unused, removed.
9488 * gnu/java/nio/SocketChannelImpl.java
9489 (finnishConnect): Don't throw NoConnectionPendingException if not
9490 connected or no connection pending.
9491
9492 2004-02-02 Graydon Hoare <graydon@redhat.com>
9493
9494 * javax/swing/SwingUtilities.java: Many new functions.
9495 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9496 * javax/swing/basic/BasicGraphicsUtils.java
9497 (getPreferredButtonSize): Start layout from top-left corner.
9498
9499 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9500
9501 * java/awt/geom/AffineTransform.java:
9502 Corrected comments on the field definitions for
9503 m11 and m10.
9504 (shear): Fixed few errors that caused shear
9505 transformation to be performed incorrectly.
9506 (createInverse): Fixed to return correct
9507 inverse of the given matrix.
9508
9509 2004-02-03 Tom Tromey <tromey@redhat.com>
9510
9511 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9512 PATH or LD_LIBRARY_PATH is not set in parent environment.
9513
9514 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9515
9516 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9517 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9518 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9519 java/awt/Component.java, java/awt/Container.java,
9520 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9521 java/awt/LayoutManager2.java, java/awt/List.java,
9522 java/awt/Menu.java, java/awt/MenuBar.java,
9523 java/awt/MenuItem.java, java/awt/Polygon.java,
9524 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9525 java/awt/Scrollbar.java, java/awt/TextArea.java,
9526 java/awt/TextField.java,
9527 java/awt/image/renderable/RenderContext.java,
9528 javax/swing/JApplet.java: Fix handling of alias methods, where a
9529 method has been deprecated in favour of a new one with the same
9530 funtion but a different name. Put the method implementation in
9531 the deprecated method and have the new method call the
9532 deprecated one. Make all other code call the new method.
9533
9534 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9535
9536 * gnu/java/nio/DatagramChannelImpl.java
9537 (inChannelOperation): New field.
9538 (isInChannelOperation): New accessor.
9539 (setInChannelOperation): New modifier.
9540 (receive): Use capacity() - position() of destination
9541 buffer instead of remaining(). Set and reset our "in
9542 channel operation indicator" before and after delegating
9543 the receive to our datagram socket. Removed testing code.
9544 Update destination buffer's current position if it is
9545 backed by a byte array (hasArray() is true).
9546 (send): Set and reset our "in channel operation indicator"
9547 before and after delegating the send to our datagram socket.
9548 Removed testing code. Update source buffer's current position
9549 if it is backed by a byte array (hasArray() is true).
9550 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9551 Use capacity() - position() of destination buffer instead
9552 of remaining().
9553 * java/net/DatagramSocket.java (receive): Don't throw an
9554 IllegalBlockingModeException if we have a non-blocking
9555 channel which initiated this operation.
9556 (send): Likewise.
9557
9558 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9559
9560 * configure.in: Add pkgconfig check for glib and gthread.
9561 * configure: Regenerate.
9562
9563 2004-02-01 Michael Koch <konqueror@gmx.de>
9564
9565 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9566 arguments.
9567 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9568 * verify.cc (debug_print): Mark 'fmt' unused.
9569
9570 2004-01-30 Michael Koch <konqueror@gmx.de>
9571
9572 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9573 * configure: Regenerated.
9574 * glib-2.0.m4: Removed.
9575 * gtk-2.0.m4: Removed.
9576 * libart.m4: Removed.
9577 * pkg.m4: New file.
9578
9579 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9580
9581 * gnu/java/net/PlainSocketImpl.java
9582 (inChannelOperation): New field.
9583 (isInChannelOperation): New accessor.
9584 (setInChannelOperation): New modifier.
9585 * gnu/java/nio/ServerSocketChannelImpl.java
9586 (accept): Set and reset our server socket's PlainSocketImpl's
9587 "in channel operation" indicator before and after delegating
9588 the accept to our server socket.
9589 * gnu/java/nio/SocketChannelImpl.java
9590 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9591 operation" indicator before and after delegating the operation to
9592 our socket.
9593 (read): Likewise.
9594 (write): Likewise.
9595 * java/net/ServerSocket.java (implAccept): Don't throw an
9596 IllegalBlockingModeException if we have a non-blocking
9597 channel which initiated this accept operation.
9598 * java/net/Socket.java (connect): Don't throw an
9599 IllegalBlockingModeException if we have a non-blocking
9600 channel which initiated this connect operation.
9601 * java/nio/channels/spi/AbstractSelectableChannel.java
9602 (configureBlocking): Only call implConfigureBlocking() if
9603 the desired blocking mode is different from our current one.
9604
9605 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9606
9607 * java/io/BufferedReader.java (sbuf): New field.
9608 (readLine): Use String.valueOf instead of new String() as per
9609 Per Bothner's suggestion. Use instance sbuf field instead of a
9610 local StringBuffer instance.
9611 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9612 caller's buffer to refill().
9613 (read(void)): Pass our internal work buffer to refill if our
9614 input queue is empty.
9615 (refill): Changed return type to int. Use the specified buffer
9616 instead of our work buffer as per Bryce McKinlay's suggestion.
9617 Return the number of characters read or -1 for EOF.
9618
9619 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9620
9621 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9622
9623 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9624
9625 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9626 * Makefile.in: Re-generated.
9627 * gnu/awt/xlib/XFontPeer.java: New file.
9628 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9629 (setClip): Commented out debug printout.
9630 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9631 (getFontPeer): Return XFontPeer.
9632 (getLocalGraphicsEnvironment): New method.
9633 (getClasspathFontPeer): New method.
9634 (createFont): New method.
9635
9636 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9637
9638 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9639 return null.
9640
9641 2004-01-29 Kim Ho <kho@redhat.com>
9642
9643 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9644 (gtkLayoutSetVisible): New method
9645 (setMenuBar): Hide layout before setting MenuBar
9646 and reshow it after.
9647 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9648 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9649
9650 2004-01-28 Michael Koch <konqueror@gmx.de>
9651
9652 * gnu/java/lang/ClassHelper.java
9653 (getPackagePortion): Removed.
9654
9655 2004-01-28 Michael Koch <konqueror@gmx.de>
9656
9657 * javax/swing/JComponent.java
9658 (listenerList): Initalize globally.
9659 (ancestor_list): Removed.
9660 (veto_list): Removed.
9661 (change_list): Removed.
9662 (get_veto_list): Removed.
9663 (get_change_list): Removed.
9664 (get_ancestor_list): Removed.
9665 (removeAncestorListener): Reimplemented.
9666 (removePropertyChangeListener): Likewise.
9667 (removeVetoableChangeListener): Likewise.
9668 (addAncestorListener): Likewise.
9669 (addPropertyChangeListener): Likewise.
9670 (addVetoableChangeListener): Likewise.
9671 (getListeners): New method.
9672 (getAncestorListeners): Likewise.
9673 (getVetoableChangeListeners): Likewise.
9674 (fireVetoableChange): Throws PropertyVetoException.
9675 * javax/swing/JEditorPane.java
9676 (JEditorPane): Throws IOException.
9677
9678 2004-01-28 David Jee <djee@redhat.com>
9679
9680 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9681 (create): Set the default foreground color to
9682 java.awt.SystemColor.windowText.
9683
9684 2004-01-27 Michael Koch <konqueror@gmx.de>
9685
9686 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
9687 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9688 Reindented to merge with classpath.
9689
9690 2004-01-27 David Jee <djee@redhat.com>
9691
9692 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9693 (addExposeFilter): Handle GtkFramePeer separately.
9694 (removeExposeFilter): Likewise.
9695
9696 2004-01-27 Michael Koch <konqueror@gmx.de>
9697
9698 * gnu/java/net/protocol/http/Connection.java
9699 (getOutputStream): Fixed typo.
9700
9701 2004-01-27 Michael Koch <konqueror@gmx.de>
9702
9703 * java/lang/Class.java
9704 (getConstructor): Removed SecurityException from throws clause.
9705 (_getConstructors): Likewise.
9706 (getConstructors): Likewise.
9707 (getDeclaredConstructor): Likewise.
9708 (getDeclaredClasses): Likewise.
9709 (getDeclaredConstructors): Likewise.
9710 (getDeclaredField): Likewise.
9711 (getDeclaredMethod): Likewise.
9712 (getDeclaredMethods): Likewise.
9713 (getField): Likewise.
9714 (getMethod): Likewise.
9715 (getMethods): Likewise.
9716
9717 2004-01-27 Kim Ho <kho@redhat.com>
9718
9719 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9720 (removeMenuBarPeer): Remove MenuBarPeer argument.
9721 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
9722 (dispose): Call native method.
9723 * java/awt/Frame.java (setMenuBar): Create and remove
9724 MenuBar peers only if the Frame has a peer.
9725 (addNotify): Create the MenuBar peer if one exists.
9726 (removeNotify): Remove MenuBar peer if one exists.
9727 * java/awt/Menu.java: Fix imports.
9728 (addNotify): Don't use full class name.
9729 (removeNotify): Call removeNotify on all children.
9730 * java/awt/MenuBar.java (removeNotify): Call
9731 removeNotify on all children.
9732 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9733 (removeMenuBarPeer): Remove MenuBarPeer argument.
9734 Iterate through children to find the Frame's MenuBar.
9735 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
9736 New file.
9737 (dispose): Remove references to the MenuComponent.
9738
9739 2004-01-27 Michael Koch <konqueror@gmx.de>
9740
9741 * javax/swing/AbstractCellEditor.java: Reformated.
9742 * javax/swing/DefaultListSelectionModel.java
9743 (listenerList): Made protected.
9744 (addListSelectionListener): Javadoc added.
9745 (removeListSelectionListener): Likewise.
9746 (getListeners): Likewise.
9747 (getListSelectionListeners): Likewise.
9748 * javax/swing/JComboBox.java: Merged copyright year.
9749 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
9750
9751 2004-01-26 Andrew Haley <aph@redhat.com>
9752
9753 * javax/swing/table/JTableHeader.java: Extend JComponent
9754
9755 2004-01-26 Kim Ho <kho@redhat.com>
9756
9757 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
9758 Fix spacing.
9759
9760 2004-01-26 Kim Ho <kho@redhat.com>
9761
9762 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
9763 method.
9764 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
9765 height and let the Layout Managers readjust anything that
9766 needs to move.
9767 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9768 (moveLayout): New method. Shift everything in the Gtk
9769 layout in the Y direction by an offset.
9770
9771 2004-01-26 David Jee <djee@redhat.com>
9772
9773 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
9774 (handleEvent): Implemented. Handles PaintEvents.
9775 (paint): Implemented. Use GTK native methods to queue updates
9776 for this heavyweight peer.
9777 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
9778 (handleEvent): Removed.
9779 * java/awt/Component.java
9780 (paint): Implemented. Explictly paint the heavyweight peer.
9781 (update): Clear the background for heavyweight components.
9782 (paintAll): No need to call peer.paint() anymore.
9783 (processEvent): Don't process PaintEvents here. It's now done in
9784 the peer's handleEvent().
9785 (processPaintEvent): Removed.
9786 * java/awt/Container.java
9787 (paint): No need to call super.paint(). Visit heavyweight
9788 children as well.
9789 (update): Don't clear the background here. It's done in
9790 Component.update().
9791 (visitChildren): Added check to not recurse into Containers.
9792 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9793 (filter_expose_event_handler): New method. Filter unwanted
9794 expose events while painting heavyweight peers.
9795 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
9796 New method. Connect filter and block pre_event_handler.
9797 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
9798 New method. Disconnect filter and unblock pre_event_handler.
9799 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
9800 New method. Invalidate and update given area.
9801 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
9802 (pre_event_handler): Add checks for unwanted expose events.
9803
9804 2004-01-26 David Jee <djee@redhat.com>
9805
9806 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9807 (find_bg_color_widget): For GtkButton, return its child.
9808
9809 2004-01-26 Kim Ho <kho@redhat.com>
9810
9811 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
9812 private.
9813 (setMenuBar): Grab MenuBar height and change insets.
9814 (setBounds): Account for MenuBar height.
9815 (postInsetsChangedEvent): Ditto.
9816 (postSizeAllocateEvent): Remove.
9817 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9818 (menubar_resize_cb): Remove
9819 (setMenuBarPeer): Remove callback.
9820 (getMenuBarHeight): Use size requisition instead of
9821 allocation.
9822
9823 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9824
9825 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
9826 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
9827 when peer is null.
9828 (setColumns): Remove FIXME -- peer will retrieve number of
9829 columns by calling getColumns.
9830 (setRows): Likewise for number of rows.
9831 (next_text_number): New field.
9832 (paramString): Fix param string.
9833 (generateName): New method.
9834 (getUniqueLong): New method.
9835
9836 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9837
9838 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
9839 image observer of image loading status.
9840 (getImage (String)): Start image production.
9841 (getImage (URL)): Likewise.
9842
9843 2004-01-25 Michael Koch <konqueror@gmx.de>
9844
9845 * java/lang/Class.java: Imports reworked, reformated.
9846 (Class): Javadoc added.
9847 (forName): Likewise.
9848 (getClasses): Likewise.
9849 (getClassLoader): Likewise.
9850 (getComponentType): Likewise.
9851 (getConstructor): Likewise.
9852 (getConstructors): Likewise.
9853 (getDeclaredConstructor): Likewise.
9854 (getDeclaredClasses): Likewise.
9855 (getDeclaredConstructors): Likewise.
9856 (getDeclaredField): Likewise.
9857 (getDeclaredMethod): Likewise.
9858 (getDeclaredMethods): Likewise.
9859 (getDeclaringClass): Likewise.
9860 (getField): Likewise.
9861 (getInterfaces): Likewise.
9862 (getMethod): Likewise.
9863 (getMethods): Likewise.
9864 (getModifiers): Likewise.
9865 (getName): Likewise.
9866 (getResource): Likewise.
9867 (getResourceAsStream): Likewise.
9868 (getSigners): Likewise.
9869 (setSigners): Likewise.
9870 (getSuperclass): Likewise.
9871 (isArray): Likewise.
9872 (isAssignableFrom): Likewise.
9873 (isInstance): Likewise.
9874 (isInterface): Likewise.
9875 (isPrimitive): Likewise.
9876 (newInstance): Likewise.
9877 (getProtectionDomain): Likewise.
9878 (toString): Likewise.
9879 (Class): Moved.
9880 (initializeClass): Likewise.
9881 (finalize): Likewise.
9882
9883 2004-01-24 Michael Koch <konqueror@gmx.de>
9884
9885 * gnu/java/net/protocol/jar/Connection.java
9886 (hdrHash): Removed.
9887 (hdrVec): Removed.
9888 (gotHeaders): Removed.
9889 (getHeaderField): Removed.
9890 (getHeaderFields): Removed.
9891 (getHeaderFieldKey): Removed.
9892 (getKey): Removed.
9893 (getField): Removed.
9894 (getHeaders): Removed.
9895
9896 2004-01-24 Michael Koch <konqueror@gmx.de>
9897
9898 * Makefile.am: Added library version to gtk peer lib.
9899 * Makefile.in: Regenerated.
9900
9901 2004-01-24 Michael Koch <konqueror@gmx.de>
9902
9903 * java/util/zip/InflaterInputStream.java: Merged class documentation
9904 with classpath.
9905
9906 2004-01-21 Jakub Jelinek <jakub@redhat.com>
9907
9908 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
9909 header. For __powerpc64__ provide the default-signal.h definitions
9910 for now.
9911 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
9912 instead of the dummy definitions.
9913 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
9914 (powerpc64*-*): Remove with_libffi_default.
9915 Only add -mminimal-toc for 64-bit compilations.
9916 * configure.in: Use powerpc-signal.h on powerpc64 as well.
9917 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
9918 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
9919 * configure: Rebuilt.
9920
9921 2004-01-23 Michael Koch <konqueror@gmx.de>
9922
9923 * gnu/java/nio/FileLockImpl.java: Compile fixes.
9924
9925 2004-01-23 Michael Koch <konqueror@gmx.de>
9926
9927 * java/lang/VMClassLoader.java: Reworked imports.
9928
9929 2004-01-23 Michael Koch <konqueror@gmx.de>
9930
9931 * javax/swing/AbstractAction.java: Reformated.
9932
9933 2004-01-23 Michael Koch <konqueror@gmx.de>
9934
9935 * java/text/CollationElementIterator.java:
9936 (setText): New method.
9937
9938 2004-01-23 Michael Koch <konqueror@gmx.de>
9939
9940 * gnu/java/nio/FileLockImpl.java:
9941 Fixed filename in copyright.
9942 (released): Removed.
9943 (finalize): New method.
9944 * gnu/java/nio/natFileLockImpl.cc
9945 (releaseImpl): Implemented.
9946 * java/nio/channels/FileChannelImpl.java:
9947 Reworked imports.
9948 (lock): Implemented.
9949 (lockImpl): New method.
9950 (tryLock): Implemented.
9951 (tryLockImpl): New method.
9952 * java/nio/channels/natFileChannelImpl.cc
9953 (lockImpl): New method.
9954 (tryLockImpl): New method.
9955
9956 2004-01-23 Michael Koch <konqueror@gmx.de>
9957
9958 * java/io/FileDescriptor.java
9959 (lock): New method.
9960 (tryLock): New method.
9961 (unlock): New method.
9962 * java/io/natFileDescriptorEcos.cc
9963 (lock): New method.
9964 (tryLock): New method.
9965 (unlock): New method.
9966 * java/io/natFileDescriptorPosix.cc
9967 (lock): New method.
9968 (tryLock): New method.
9969 (unlock): New method.
9970 * java/io/natFileDescriptorWin32.cc
9971 (lock): New method.
9972 (tryLock): New method.
9973 (unlock): New method.
9974
9975 2004-01-23 Michael Koch <konqueror@gmx.de>
9976
9977 * java/io/FileDescriptor.java
9978 (sync): Moved around, added javadoc.
9979 (valid): Likewise.
9980 (open): Likewise.
9981 (write): Likewise.
9982 (close): Likewise.
9983 (setLength): Likewise.
9984 (seek): Likewise.
9985 (getLength): Likewise.
9986 (getFilePointer): Likewise.
9987 (read): Likewise.
9988 (available): Likewise.
9989 (finalize): Likewise.
9990
9991 2004-01-23 Michael Koch <konqueror@gmx.de>
9992
9993 * javax/swing/AbstractAction.java: Reformated.
9994 (getPropertyChangeListeners): New method.
9995 * javax/swing/AbstractCellEditor.java: Reformated.
9996 (getCellEditorListeners): New method.
9997 * javax/swing/DefaultListSelectionModel.java
9998 (listenerList): New field.
9999 (listeners): Removed.
10000 (get_listeners): Removed.
10001 (addListSelectionListener): Rewritten.
10002 (removeListSelectionListener): Rewritten.
10003 (getListSelectionListeners): New method.
10004 (getListeners): New method.
10005 * javax/swing/JComboBox.java: Imports reworked.
10006 (addActionListener): Implemented.
10007 (removeActionListener): Implemented.
10008 (addItemListener): Implemented.
10009 (removeItemListener): Implemented.
10010 (addPopupMenuListener): Implemented.
10011 (removePopupMenuListener): Implemented.
10012 (getActionListeners): New method.
10013 (getItemListeners): New method.
10014 (getPopupMenuListeners): New method.
10015
10016 2004-01-23 Michael Koch <konqueror@gmx.de>
10017
10018 * gnu/java/net/protocol/http/Connection.java
10019 (connect): Don't initialize bufferedOutputStream if not needed.
10020 (sendRequest): Set property for content length if content is present.
10021 Write content only if present.
10022 (getOutputStream): Check if already connected, dont connect,
10023 initalize bufferedOutputStream if needed.
10024
10025 2004-01-23 Michael Koch <konqueror@gmx.de>
10026
10027 * java/io/FileDescriptor.java
10028 (in, out, err): Added javadoc.
10029 (static): Merged loading code.
10030 (fd, position): Moved around.
10031
10032 2004-01-23 Michael Koch <konqueror@gmx.de>
10033
10034 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10035 New file.
10036
10037 2004-01-23 Michael Koch <konqueror@gmx.de>
10038
10039 * java/lang/Class.java,
10040 java/lang/Object.java,
10041 java/lang/Thread.java: Merged copyright with classpath.
10042
10043 2004-01-23 Michael Koch <konqueror@gmx.de>
10044
10045 * java/io/FileDescriptor.java: Merged copyright with classpath to
10046 start merging this class.
10047
10048 2004-01-22 Tom Tromey <tromey@redhat.com>
10049
10050 PR libgcj/13107:
10051 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10052 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10053 * testsuite/libjava.lang/pr13107_3.java: New file.
10054 * testsuite/libjava.lang/pr13107_3.out: New file.
10055 * testsuite/libjava.lang/pr13107_2.java: New file.
10056 * testsuite/libjava.lang/pr13107_2.out: New file.
10057 * testsuite/libjava.lang/pr13107.java: New file.
10058 * testsuite/libjava.lang/pr13107.out: New file.
10059 * verify.cc (jsr_ptrs): Removed.
10060 (entry_points): Likewise.
10061 (struct subr_info): Likewise.
10062 (struct subr_entry_info): Likewise.
10063 (type_val::unused_by_subroutine_type): Likewise.
10064 (type::merge): Don't handle unused_by_subroutine_type.
10065 (type::print): Likewise.
10066 (state::flags): Removed.
10067 (state::subroutine): Likewise.
10068 (state::seen_subrs): Likewise.
10069 (state::NO_STACK): Likewise.
10070 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10071 (state): Updated all methods.
10072 (state::clean_subrs): Removed.
10073 (state::state): Removed `ret_semantics' flag.
10074 (state::copy): Likewise.
10075 (state::add_subr): Removed.
10076 (state::enter_subroutine): Likewise.
10077 (type::set_return_address): New method.
10078 (handle_jsr_insn): Set return address on the type. Always
10079 invalidate PC after call.
10080 (check_nonrecursive_call): Removed.
10081 (~_Jv_BytecodeVerifier): Updated.
10082 (branch_prepass): Removed special handling of jsr.
10083 (note_branch_target): Likewise.
10084 (get_subroutine): Removed.
10085 (state::merge): Don't merge subroutines and don't handle
10086 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10087 (state::note_variable): Removed.
10088 (state::is_unmerged_ret_state): Likewise.
10089 (state::print): Updated.
10090 (set_variable): Likewise.
10091 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10092 and jsr_semantics arguments. Updated for new reverification
10093 list.
10094 (pop_jump): Rewrote.
10095 (construct_primitive_array_type): Updated.
10096 (state::next): Removed.
10097 (INVALID_STATE): New define.
10098 (state::INVALID): Removed.
10099 (state::NO_NEXT): New value.
10100 (state::pc, state::next): New fields.
10101 (state::get_pc): New method.
10102 (next_verify_pc): Removed.
10103 (next_verify_state): New field.
10104 (verify_instructions_0): Always check for falling off end.
10105 (linked): New type.
10106 (linked_utf8): Removed.
10107 (states): Changed type.
10108 (type::state_mergeable_p): New method.
10109 (state::state_mergeable_p): Likewise.
10110 (handle_ret_insn): Removed most code.
10111 (state::reverify): New method.
10112 (add_new_state): Likewise.
10113 (state::set_pc): Likewise.
10114
10115 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10116
10117 PR java/13733
10118 * testsuite/libjava.compile/PR13733.java: New file.
10119 * testsuite/libjava.compile/PR13733.xfail: New file.
10120
10121 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10122 Michael Koch <konqueror@gmx.de>
10123
10124 * javax/swing/table/DefaultTableCellRenderer.java
10125 (DefaultTableCellRenderer): Added javadoc for the class and for
10126 the constructor, Border instance, create an EmptyBorder.
10127 (UIResource): Removed the comment at the end of the class
10128 (setForeground): New method.
10129 (setBackground): New method.
10130 (updateUI): New method.
10131 (getTableCellRendererComponent): Rewritten with the help of
10132 dvholten and Stephane Meslin-Weber.
10133 (validate): New method.
10134 (repaint): New method.
10135 (firePropertyChange): New method.
10136 (setValue): New method.
10137
10138 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10139
10140 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10141 (connectJObject): Replace printf calls with g_assert statements.
10142 Move property-notify-event signal connection to ...
10143 (connectSignals): Connect property-notify-event signal. Iterate
10144 through the vbox's children to find layout.
10145
10146 2004-01-22 Graydon Hoare <graydon@redhat.com>
10147
10148 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10149 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10150 Predicate static initialization on GtkToolkit.useGraphics2D().
10151 * java/awt/Component.java (processPaintEvent): Consume event.
10152 * javax/swing/AbstractButton.java: Reimplement, document.
10153 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10154 * javax/swing/JComponent.java (paint): Use double buffer.
10155 (listenerList): Enable member.
10156 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10157 * javax/swing/JToggleButton.java
10158 (JToggleButton): Modify model constructor.
10159 * javax/swing/SwingUtilities.java
10160 (layoutCompoundLabel): Adjust arithmetic.
10161 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10162 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10163 (getPreferredButtonSize): Include margins in calculation.
10164 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10165 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10166 Receive up events from subordinate layout component.
10167
10168 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10169
10170 * java/awt/Component.java (show): Set visible to true before
10171 showing the peer.
10172
10173 2004-01-21 Kim Ho <kho@redhat.com>
10174
10175 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10176 Fix comments.
10177 (removeMenuBarPeer): Make package private.
10178 (setMenuBarPeer): Make package private.
10179 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10180 (menubar_resize_cb): Mark attributes unused.
10181 (getMenuBarHeight): ditto.
10182
10183 2004-01-21 David Jee <djee@redhat.com>
10184
10185 * java/awt/Container.java
10186 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10187 dispatching MOUSE_ENTERED event twice. Translate the point for
10188 the mouse event target before dispatching the event.
10189
10190 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10191
10192 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10193 lib_org_w3c_dom_la_LDFLAGS): New.
10194 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10195 * Makefile.in: Rebuilt.
10196
10197 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10198
10199 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10200 Calculate proper offsets for heavyweight components packed in
10201 lightweight containers.
10202
10203 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10204 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10205 (native create): Add width parameter.
10206 (create): Calculate text entry width based on current font's
10207 metrics and number of columns. Set TextField's font if not
10208 already set. Call native create.
10209 (gtkEntryGetBorderWidth): New native method.
10210 (gtkEntryGetSize): Remove method.
10211 (getMinimumSize): Call minimumSize.
10212 (getPreferredSize): Call preferredSize.
10213 (minimumSize): Calculate minimum size based on backing
10214 GtkEntry's borders, font metrics and number of columns.
10215 (preferredSize): Likewise for preferred size.
10216 (get_border_width): New static function.
10217
10218 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10219 Override GtkWindowPeer's setResizable method to account for menu
10220 bar height when setting the frame's size.
10221
10222 2004-01-19 Matthias Klose <doko@debian.org>
10223
10224 * libtool-version: Increased `current' to 6.
10225
10226 2004-01-19 Kim Ho <kho@redhat.com>
10227
10228 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10229 (connectJObject): Iterate through the vbox's children to find layout.
10230
10231 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10232
10233 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10234 isDispatchThread method to replace wrong test condition.
10235
10236 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10237
10238 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10239 events to the queue out of order by acquiring locks in the proper
10240 order and not by releasing one before acquiring the other.
10241
10242 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10243
10244 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10245 visible so that dialog can be reused.
10246
10247 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10248
10249 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10250 events may be handled by any queue in the stack.
10251
10252 2004-01-19 Kim Ho <kho@redhat.com>
10253
10254 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10255 MenuBarPeer parameter.
10256 (removeMenuBarPeer): New native method.
10257 (setMenuBar): Call remove if menu bar is null. Adjust insets
10258 appropriately.
10259 (postSizeAllocateEvent): New method. Called when menu bar size is
10260 allocated. Adjust insets and redo layout.
10261 (GtkFramePeer): Set menu bar during frame creation.
10262 (postConfigureEvent): Adjust position and size to accomodate
10263 menu bar.
10264 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10265 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10266 (addNotify): Create the peer if it doesn't exist and call addNotify
10267 for the menu's items.
10268 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10269 * java/awt/MenuItem.java (addNotify): Create the peer if it
10270 doesn't exist.
10271 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10272 (removeMenuBarPeer): New method. Remove menu bar on the current
10273 frame.
10274 (setMenuBarPeer): Add the menu bar to the current frame and the
10275 callback for size-allocate events on the menu bar.
10276 (getMenuBarHeight): Add menu bar parameter.
10277 (menubar_resize_cb): New callback method for postSizeAllocate events.
10278
10279 Also: Fix indentation on last ChangeLog entry.
10280
10281 2004-01-16 Kim Ho <kho@redhat.com>
10282
10283 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10284 (gtkWidgetGetDimensions): Remove.
10285 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10286 (gtkWidgetGetDimensions): Remove.
10287
10288 2004-01-16 Tom Tromey <tromey@redhat.com>
10289
10290 * java/awt/Container.java: Typo and indentation fixes.
10291
10292 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10293 * java/lang/natVMClassLoader.cc: ...here. New file.
10294 * Makefile.in: Rebuilt.
10295 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10296
10297 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10298
10299 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10300 Discard GDK_ENTER_NOTIFY related to ungrabs.
10301
10302 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10303
10304 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10305 is called for an intermediate queue.
10306
10307 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10308
10309 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10310 (window_property_changed_cb): Set id_set.
10311
10312 2004-01-16 Kim Ho <kho@redhat.com>
10313
10314 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10315 it is a FileDialog and has dimensions of 0 by 0, then the initial
10316 size is set to size request plus insets.
10317 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10318 (gtkWidgetGetDimensions): Override method.
10319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10320 (gtkWidgetGetDimensions): Override method. Returns size request plus
10321 insets.
10322
10323 2004-01-16 Andrew Haley <aph@redhat.com>
10324
10325 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10326 * sysdep/i386/locks.h: Likewise.
10327
10328 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10329
10330 * java/awt/EventDispatchThread.java (run): Stop running when
10331 interrupted.
10332 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10333 Reset the queue after transferring its contents.
10334 (push): Start a new dispatch thread if none is running.
10335
10336 2004-01-16  Olga Rodimina <rodimina@redhat.com>
10337
10338 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10339 (doPolygon): set fill rule of polygon to
10340 WIND_EVEN_ODD by default.
10341
10342 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10343
10344 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10345 Implemented rendering hints related methods.
10346 (getDefaultHints): New helper method. Returns
10347 default rendering hints.
10348 (walkPath): changed to normalize path if
10349 the KEY_STROKE_CONTROL key is in "normalize" mode.
10350 (draw3DRect): changed coordinates of rectangle by +0.5
10351 if in "normalize" mode.
10352
10353 2004-01-15 Tom Tromey <tromey@redhat.com>
10354
10355 * Makefile.in: Rebuilt.
10356 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10357 (%.lo: %.java) Filter out StackTrace.lo.
10358
10359 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10360
10361 * configure.in: Add in AC_PREREQ(2.13)
10362 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10363 FIXME comment.
10364
10365 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10366 Tom Tromey <tromey@redhat.com>
10367
10368 PR libgcj/12001:
10369 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10370 array to superclass.
10371 (init): Changed interface; add URLs here.
10372 (initialize): New static method.
10373 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10374 (_Jv_RunMain): ... not here.
10375
10376 2004-01-14 Michael Koch <konqueror@gmx.de>
10377
10378 * java/text/MessageFormat.java:
10379 Added descriptions to exceptions.
10380 This fixes PR libgcj/2429.
10381
10382 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10383
10384 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10385 (push): Make sure push is performed at the top of the thread stack.
10386
10387 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10388
10389 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10390 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10391 (native create): Add width and height parameters. Set text
10392 view's size request according to new parameters.
10393 (create): Calculate text view size based on current font's
10394 metrics and number of rows and columns. Set TextArea's font if
10395 not already set. Call native create.
10396 (getMinimumSize): Call minimumSize.
10397 (getPreferredSize): Call preferredSize.
10398 (getHScrollbarHeight): New method.
10399 (getVScrollbarWidth): New method.
10400 (minimumSize): Calculate minimum size based on scrollbar
10401 visibility, scrollbar sizes, font metrics and number of rows and
10402 columns.
10403 (preferredSize): Likewise for preferred size.
10404 (gtkTextGetSize): Remove method.
10405
10406 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10407
10408 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10409 (initializeInsets): Remove method.
10410 (GtkComponentPeer): Initialize insets field. Remove call to
10411 initializeInsets.
10412 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10413 Remove method.
10414 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10415 Remove method.
10416 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10417 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10418 (latestInsets): Remove field.
10419 (native create): Add insets parameter. Call
10420 window_get_frame_extents. Set the window's default size and
10421 size request based on its frame extents.
10422 (create): Initialize insets.
10423 (postInsetsChangedEvent): New method.
10424 (postConfigureEvent): Remove parameters top, left, bottom,
10425 right. Remove insets-related logic.
10426 (connectJObject): Handle property-notify-event.
10427 (window_get_frame_extents, request_frame_extents,
10428 property_notify_predicate, window_property_changed_cb): New
10429 static functions.
10430 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10431 (pre_event_handler): Remove insets-related logic for configure
10432 events.
10433 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10434 Update postConfigureEvent signature.
10435
10436 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10437
10438 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10439 to handle Window "Closing" events.
10440
10441 2004-01-13  David Jee  <djee@redhat.com>
10442
10443 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10444 (setBackground): New method. Children with no explicitly-set
10445 background will be repainted with the parent container's new
10446 background color.
10447
10448 2004-01-13  David Jee  <djee@redhat.com>
10449
10450 * Makefile.am: Add BitwiseXORComposite.java.
10451 * Makefile.in: Regenerated.
10452 * gcj/Makefile.in: Regenerated.
10453 * include/Makefile.in: Regenerated.
10454 * testsuite/Makefile.in: Regenerated.
10455
10456 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10457
10458 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10459 not show modal dialogs twice and so that it allows showing a modal
10460 dialog from another modal dialog.
10461
10462 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10463
10464 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10465 and run secondary dispatch thread to process event queue while this
10466 thread is blocked.
10467
10468 2004-01-12 Graydon Hoare <graydon@redhat.com>
10469
10470 * gnu/java/awt/gtk/GdkGraphics2D.java
10471 (static): Check GtkToolkit before initializing static state.
10472 (Graphics2D): Don't construct transform with 0.5 unit offset.
10473
10474 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10475
10476 * gnu/java/awt/BitwiseXORComposite.java: Add.
10477 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10478 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10479 (BitwiseXORComposite): Remove inner class.
10480
10481 2004-01-11 Michael Koch <konqueror@gmx.de>
10482
10483 * gnu/java/lang/reflect/TypeSignature.java
10484 (getEncodingOfClass): Documentation fixed.
10485 (getClassForEncoding): Give class loader to Class.forName().
10486 Documentation fixed.
10487
10488 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10489
10490 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10491
10492 2004-01-11 Michael Koch <konqueror@gmx.de>
10493
10494 * javax/swing/undo/StateEditable.java
10495 (RCSID): Removed redundant modifiers.
10496
10497 2004-01-10 Michael Koch <konqueror@gmx.de>
10498
10499 * javax/print/attribute/EnumSyntax.java
10500 (getStringTable): Made protected.
10501 (getEnumValueTable): Likewise.
10502 * javax/print/attribute/standard/JobKOctetsProcessed.java
10503 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10504 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10505 (JobMediaSheetsCompleted): Made class final.
10506 * javax/print/attribute/standard/OutputDeviceAssigned.java
10507 (getName): Fixed typo.
10508 * javax/print/attribute/standard/RequestingUserName.java
10509 (serialVersionUID): Fixed value.
10510
10511 2004-01-10 Michael Koch <konqueror@gmx.de>
10512
10513 * javax/swing/plaf/basic/BasicButtonUI.java,
10514 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10515 javax/swing/plaf/basic/BasicListUI.java,
10516 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10517 javax/swing/plaf/basic/BasicPanelUI.java,
10518 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10519 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10520 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10521 javax/swing/plaf/basic/BasicViewportUI.java:
10522 Fixed import statements.
10523
10524 2004-01-10 Michael Koch <konqueror@gmx.de>
10525
10526 * gnu/java/awt/image/ImageDecoder.java
10527 (produce): Made public.
10528 * gnu/java/awt/peer/GLightweightPeer.java,
10529 gnu/java/awt/peer/gtk/GtkToolkit.java:
10530 Reformated.
10531
10532 2004-01-10 Michael Koch <konqueror@gmx.de>
10533
10534 * javax/swing/JRadioButtonMenuItem.java,
10535 javax/swing/JSeparator.java,
10536 javax/swing/JSplitPane.java,
10537 javax/swing/JTextPane.java,
10538 javax/swing/JToolBar.java,
10539 javax/swing/ListCellRenderer.java,
10540 javax/swing/ListModel.java,
10541 javax/swing/MenuElement.java,
10542 javax/swing/OverlayLayout.java,
10543 javax/swing/ProgressMonitor.java,
10544 javax/swing/ProgressMonitorInputStream.java,
10545 javax/swing/Renderer.java,
10546 javax/swing/RootPaneContainer.java,
10547 javax/swing/Scrollable.java,
10548 javax/swing/SingleSelectionModel.java,
10549 javax/swing/ToolTipManager.java,
10550 javax/swing/ViewportLayout.java,
10551 javax/swing/event/DocumentEvent.java,
10552 javax/swing/event/SwingPropertyChangeSupport.java,
10553 javax/swing/event/TreeSelectionEvent.java,
10554 javax/swing/event/UndoableEditEvent.java,
10555 javax/swing/text/AbstractDocument.java,
10556 javax/swing/text/AttributeSet.java,
10557 javax/swing/text/Caret.java,
10558 javax/swing/text/ComponentView.java,
10559 javax/swing/text/DefaultCaret.java,
10560 javax/swing/text/DefaultEditorKit.java,
10561 javax/swing/text/Document.java,
10562 javax/swing/text/EditorKit.java,
10563 javax/swing/text/GapContent.java,
10564 javax/swing/text/Keymap.java,
10565 javax/swing/text/MutableAttributeSet.java,
10566 javax/swing/text/PlainEditorKit.java,
10567 javax/swing/text/Segment.java,
10568 javax/swing/text/Style.java,
10569 javax/swing/text/StyledDocument.java,
10570 javax/swing/text/StyledEditorKit.java,
10571 javax/swing/text/TextAction.java,
10572 javax/swing/text/View.java: Fixed import statements.
10573
10574 2004-01-08 Graydon Hoare <graydon@redhat.com>
10575
10576 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10577 djee@redhat.com's recent inverse ordering of Container elements.
10578
10579 2004-01-09 Michael Koch <konqueror@gmx.de>
10580
10581 * gnu/java/lang/ArrayHelper.java
10582 (equalsArray): Removed.
10583
10584 2004-01-09 Andrew Haley <aph@redhat.com>
10585
10586 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10587 a Utf8Const field before looking at its class.
10588
10589 2004-01-09 Michael Koch <konqueror@gmx.de>
10590
10591 * javax/print/attribute/standard/DocumentName.java,
10592 javax/print/attribute/standard/JobHoldUntil.java,
10593 javax/print/attribute/standard/JobMessageFromOperator.java,
10594 javax/print/attribute/standard/JobName.java,
10595 javax/print/attribute/standard/JobOriginatingUserName.java,
10596 javax/print/attribute/standard/OutputDeviceAssigned.java,
10597 javax/print/attribute/standard/PrinterInfo.java,
10598 javax/print/attribute/standard/PrinterLocation.java,
10599 javax/print/attribute/standard/PrinterMakeAndModel.java,
10600 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10601 javax/print/attribute/standard/PrinterName.java,
10602 javax/print/attribute/standard/RequestingUserName.java: New files.
10603 * Makefile.am (javax_source_files): Added new files.
10604 * Makefile.in: Regenerated.
10605
10606 2004-01-09 Michael Koch <konqueror@gmx.de>
10607
10608 * javax/swing/AbstractAction.java,
10609 javax/swing/AbstractSet.java,
10610 javax/swing/Action.java,
10611 javax/swing/ActionMap.java,
10612 javax/swing/BoundedRangeModel.java,
10613 javax/swing/ButtonModel.java,
10614 javax/swing/CellEditor.java,
10615 javax/swing/CellRendererPane.java,
10616 javax/swing/ComboBoxEditor.java,
10617 javax/swing/DebugGraphics.java,
10618 javax/swing/DefaultCellEditor.java,
10619 javax/swing/DefaultCellRenderer.java,
10620 javax/swing/DefaultComboBoxModel.java,
10621 javax/swing/DefaultDesktopManager.java,
10622 javax/swing/DefaultFocusManager.java,
10623 javax/swing/DefaultListCellRenderer.java,
10624 javax/swing/Icon.java,
10625 javax/swing/JButton.java,
10626 javax/swing/JCheckBoxMenuItem.java,
10627 javax/swing/JDesktopPane.java,
10628 javax/swing/JEditorPane.java,
10629 javax/swing/JMenu.java,
10630 javax/swing/JPanel.java,
10631 javax/swing/JPasswordField.java,
10632 javax/swing/JPopupMenu.java,
10633 javax/swing/JProgressBar.java: Reworked imports.
10634
10635 2004-01-09 Michael Koch <konqueror@gmx.de>
10636
10637 * java/awt/geom/PathIterator.java
10638 (WIND_EVEN_ODD): Removed redundant modifiers.
10639 (WIND_NON_ZERO): Likewise.
10640 (SEG_MOVETO): Likewise.
10641 (SEG_LINETO): Likewise.
10642 (SEG_QUADTO): Likewise.
10643 (SEG_CUBICTO): Likewise.
10644 (SEG_CLOSE): Likewise.
10645 * java/awt/image/SinglePixelPackedSampleModel.java:
10646 Removed redundant semicolon.
10647 * java/io/ObjectInputStream.java
10648 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10649 * java/util/logging/Filter.java
10650 (isLoggable): Removed redundant modifier.
10651 * java/util/logging/LogManager.java:
10652 Removed redundant semicolon.
10653 * java/util/logging/XMLFormatter.java
10654 (format): Removed unused variable "key".
10655
10656 2004-01-08 Fernando Nasser <fnasser@redhat.com>
10657
10658 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
10659 New name for the former setFile native method.
10660 (setFile): New method.
10661 (setDirectory): Implemented.
10662 (connectSignals): New native method.
10663 (setFilenameFilter): Improve comment.
10664 (getGraphics): Comment.
10665 (gtkHideFileDialog): New method.
10666 (gtkDisposeFileDialog): New method.
10667 (gtkSetFilename): New method.
10668 * java/awt/Dialog.java (show): Block on modal dialogs, but only
10669 for FileDialog for now.
10670 (hide): New method.
10671 (dispose): New method.
10672 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
10673 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
10674 deprecated creation functions. Make dialog modal. Add it to the
10675 window group.
10676 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
10677 function.
10678 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
10679 Rename to...
10680 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
10681 name.
10682 (window_closed): New function.
10683 (ok_clicked): New function.
10684 (cancel_clicked): New function.
10685
10686 2004-01-08 Michael Koch <konqueror@gmx.de>
10687
10688 * javax/swing/JLayeredPane.java: Revert changes to standard
10689 boilerplate, reworked imports.
10690
10691 2004-01-07 Tom Tromey <tromey@redhat.com>
10692
10693 PR libgcj/13439:
10694 * verify.cc (state::merge): Copy changed locals out of subroutine
10695 in NO_STACK case.
10696 (state::FLAG_CHANGED): New const.
10697 (state::FLAG_UNUSED): Likewise.
10698 (state::local_changed): Removed. Updated all users.
10699 (state::flags): New field.
10700 (state::merge): Added jsr_semantics argument, more logic.
10701 (push_jump_merge): Added jsr_semantics argument.
10702 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
10703 merging through the jsr instruction.
10704
10705 2004-01-07 Tom Tromey <tromey@redhat.com>
10706
10707 * scripts/MakeDefaultMimeTypes.java: Use \n, not
10708 backslash-newline.
10709
10710 2004-01-07 Graydon Hoare <graydon@redhat.com>
10711
10712 * java/awt/Container.java (LightweightDispatcher): Implement.
10713 (visitChild): Reuse graphics object.
10714 (dispatchEventImpl): Optionally dispatch to lightweight.
10715 (addNotifyContainerChildren): Build LightweightDispatcher.
10716
10717 2004-01-07 David Jee <djee@redhat.com>
10718
10719 * java/awt/Container.java
10720 (update): Clear only the clipped region, instead of clearing the
10721 entire Container.
10722 (visitChildren): Visit children in descending order.
10723
10724 2004-01-07 Michael Koch <konqueror@gmx.de>
10725
10726 * java/lang/reflect/Array.java: Merged documentation with classpath.
10727
10728 2004-01-07 Michael Koch <konqueror@gmx.de>
10729
10730 * java/text/CollationElementIterator.java
10731 (textIndex): Renamed from index.
10732 * java/text/CollationKey.java
10733 (collator): New member.
10734 (CollationKey): New argument for parent collator.
10735 (equals): Check for same collator, source string and key array.
10736 * java/text/RuleBasedCollator.java:
10737 Reformated.
10738 (RuleBasedCollator): Don't re-initialize frenchAccents with default
10739 value.
10740 (getCollationElementIterator): Rewritten.
10741 (getCollationKey): Added new argument to CollationKey constructor.
10742
10743 2004-01-07 Michael Koch <konqueror@gmx.de>
10744
10745 * gnu/java/nio/DatagramChannelImpl.java
10746 (blocking): Removed.
10747 (DatagramChannelImpl): Call configureBlocking().
10748 (implConfigureBlocking): Dont initialize blocking.
10749 * gnu/java/nio/ServerSocketChannelImpl.java
10750 (blocking): Removed.
10751 (ServerSocketChannelImpl): Call configureBlocking().
10752 (implConfigureBlocking): Dont initialize blocking.
10753 * gnu/java/nio/SocketChannelImpl.java
10754 (blocking): Removed.
10755 (SocketChannelImpl): Call configureBlocking().
10756 (implConfigureBlocking): Dont initialize blocking.
10757 (connect): Use isBlocking().
10758 * java/nio/channels/spi/AbstractSelectableChannel.java
10759 (configureBlocking): Use blockingLock() instead of LOCK.
10760 Set blocking after successfully called implConfigureBlocking().
10761 (register): Use blockingLock() instead of LOCK.
10762
10763 2004-01-07 Michael Koch <konqueror@gmx.de>
10764
10765 * java/net/ServerSocket.java (isBound): Fixed documentation.
10766
10767 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
10768
10769 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
10770 (changeEvent): Create event object on demand.
10771 (DefaultBoundedRangeModel, toString, setValue, setExtent,
10772 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
10773 fireStateChanged): Re-written.
10774 * javax/swing/event/EventListenerList.java: Reformatted, document
10775 typical usage.
10776 (toString): Implemented.
10777 (getListeners): Re-written.
10778 (remove): Re-written.
10779 (add): Re-written.
10780 (NO_LISTENERS): New singleton field.
10781 (listenerList): Declare as transient; document.
10782 (serialVersionUID): Document.
10783 (getListenerCount(Class)): More efficient implementation,
10784 also accepts null argument. Improve Javadoc.
10785 (getListenerCount()): Remove unnecessary cast; docfix.
10786 * javax/swing/undo/UndoableEditSupport.java:
10787 Re-format, document.
10788 (UndoableEditSupport): Set realSource field. Improve documentation.
10789 (_postEdit): Iterate over cloned listener vector.
10790 (toString): Don't emit realSource.
10791 (beginUpdate, endUpdate): Support nested updates.
10792 (postEdit): Use compound edit if present.
10793
10794 2004-01-06 Graydon Hoare <graydon@redhat.com>
10795
10796 * java/awt/Container.java (swapComponents): Add forgotten
10797 function, required for JLayeredPane change.
10798
10799 2004-01-06 Michael Koch <konqueror@gmx.de>
10800
10801 * java/text/CollationElementIterator.java: Reformated.
10802 (CollationElementIterator): Changed order of arguments.
10803 * java/text/RuleBasedCollator.java
10804 (RuleBasedCollator): Merged class documentation.
10805 (CollationElement): Added documentation.
10806 (compare): Reformated, renamed arguments.
10807 (equals): Likewise.
10808 (getCollationElementIterator): Likewise.
10809 (getCollationKey): Likewise.
10810
10811 2004-01-06 Graydon Hoare <graydon@redhat.com>
10812
10813 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
10814
10815 2004-01-06 Michael Koch <konqueror@gmx.de>
10816
10817 * gnu/java/net/protocol/file/Connection.java:
10818 Reformated copyright.
10819 (hdrHash): Removed.
10820 (hdrVec): Removed.
10821 (gotHeaders): Removed.
10822 (getHeaderField): Removed.
10823 (getHeaderField): Removed.
10824 (getHeaderFieldKey): Removed.
10825 (getKey): Removed.
10826 (getField): Removed.
10827 (getHeaders): Removed.
10828
10829 2004-01-06 Michael Koch <konqueror@gmx.de>
10830
10831 * javax/print/attribute/standard/DateTimeAtCompleted.java,
10832 javax/print/attribute/standard/DateTimeAtCreation.java,
10833 javax/print/attribute/standard/DateTimeAtProcessing.java,
10834 javax/print/attribute/standard/JobImpressionsCompleted.java,
10835 javax/print/attribute/standard/JobKOctets.java,
10836 javax/print/attribute/standard/JobKOctetsProcessed.java,
10837 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
10838 javax/print/attribute/standard/JobPrioritySupported.java: New files.
10839 * Makefile.am (javax_source_files): Added new files.
10840 * Makefile.in: Regenerated.
10841
10842 2004-01-06 Michael Koch <konqueror@gmx.de>
10843
10844 * java/net/URLConnection.java
10845 (contentHandler): Removed.
10846 (locale): Removed.
10847 (getHeaderFields): Return an empty map instead of null.
10848 (getContent): Connect if needed, renamed "cType" to "type" and
10849 "contentHandler" to "ch" and made it a local variable.
10850 (getPermission): Don't use package in class name.
10851 (setDefaultRequestProperty): Fixed typo in documentation.
10852 (initializeDateFormats): Made locale a local variable.
10853
10854 2004-01-06 Michael Koch <konqueror@gmx.de>
10855
10856 * java/lang/Package.java
10857 (getPackage): Get the current class loader directly.
10858 * java/lang/SecurityManager.java
10859 (currentLoadedClass): Dont iterate over class contexts.
10860 (classLoaderDepth): Don't check class loaders if everything is allowed.
10861
10862 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10863
10864 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10865 (pre_event_handler): Set all insets to 0 when a Configure event
10866 is received for a GtkPlug.
10867 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
10868 Make handle long, not int.
10869 (EmbeddedWindow()): New constructor.
10870 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
10871 long, not int.
10872 (setHandle): New method.
10873 (getHandle): Return long, not int.
10874 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
10875 declaration.
10876 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
10877 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
10878 (create(long)): Take long parameter, not int. Cast gtk_plug_new
10879 argument to GdkNativeWindow.
10880 (construct): New method.
10881 (embed): New method.
10882
10883 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
10884 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
10885 (create(int, int)): New method.
10886 (create): Call new create method.
10887 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
10888 methods.
10889 (childResized): Remove native implementation. Implement in
10890 Java.
10891 (getHScrollbarHeight, getVScrollbarWidth): Call
10892 gtk_widget_size_request to get scrollbar dimensions.
10893 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
10894 call getVScrollbarWidth and getHScrollbarHeight when vertical
10895 and horizontal scrollbars respectively are needed.
10896 (doLayout): Enlarge child if it is smaller than the viewport.
10897
10898 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10899
10900 * java/awt/Dialog.java (constructor): Accept null title as per spec.
10901 * java/awt/FileDialog.java (constructor): Throw exception on invalid
10902 argument as per spec.
10903
10904 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10905
10906 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
10907 (insert): Ditto.
10908 (remove): Ditto. Also, Check for valid argument.
10909 (removeAll): Use peer interface method.
10910 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
10911 native add function.
10912 (nativeRemove): New name for native remove function.
10913 (getHistory): New native function.
10914 (constructor): Generate ItemEvent.
10915 (add): Ditto, if selection is changed.
10916 (remove): Ditto, ditto.
10917 (removeAll): Add implementation.
10918 (handleEvent): Remove. Dead code.
10919 (choicePostItemEvent): Add comment.
10920 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
10921 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
10922 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
10923 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
10924 comments and fix condition to change selection.
10925 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
10926 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
10927 remove all capability.
10928 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
10929 (item_activate): Add cast to remove compiler warning.
10930
10931 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10932
10933 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
10934 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10935 (getPreferredSize): Call preferredSize.
10936 (preferredSize): Call gtkWidgetGetPreferredDimensions.
10937 (getMinimumSize): Call minimumSize.
10938 (minimumSize): Call gtkWidgetGetPreferredDimensions.
10939 (gtkWidgetGetDimensions): Return the peer widget's current size
10940 request.
10941 (gtkWidgetGetPreferredDimensions): Return the peer widget's
10942 natural size request.
10943
10944 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
10945
10946 Thanks to Brian Gough <bjg@network-theory.com>
10947 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
10948 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
10949
10950 2004-01-04 Matthias Klose <doko@debian.org>
10951
10952 * aclocal.m4: Rebuilt using "aclocal -I .".
10953 * configure: Rebuilt.
10954
10955 2004-01-03 Per Bothner <per@bothner.com>
10956
10957 * java/util/Date.java (parse): Fix a number of problems.
10958 (skipParens): Remove no-longer-needed method.
10959