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