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