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