1 2004-09-22 Tom Tromey <tromey@redhat.com>
4 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
6 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
8 (read()): New overload.
10 2004-09-21 Tom Tromey <tromey@redhat.com>
12 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
15 2004-09-21 Michael Koch <konqueror@gmx.de>
17 * java/net/Socket.java
18 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
20 2004-09-21 Casey Marshall <csm@gnu.org>
22 * javax/crypto/MacSpi.java (clone): Provide meaningful
25 2004-09-21 Tom Tromey <tromey@redhat.com>
28 * Makefile.in: Rebuilt.
29 * Makefile.am (MOSTLYCLEANFILES): Removed.
30 (mostlyclean-local): Remove header files.
32 2004-09-21 Casey Marshall <csm@gnu.org>
34 * java/security/cert/X509CRLSelector.java:
35 (match): remove unreachable try-catch clauses.
36 Reported by: Dalibor Topic <robilad@kaffe.org>
38 2004-09-21 Mark Wielaard <mark@klomp.org>
40 * java/util/TreeMap.java (root): Don't initialize.
41 (TreeMap(Comparator)): Call fabricateTree(0).
42 (fabricateTree): Initialize root and size when count is 0.
44 2004-09-21 Sven de Marothy <sven@physto.se>
46 * java/nio/ByteBuffer.java (hashCode): Implemented.
47 * java/nio/CharBuffer.java: Likewise.
48 * java/nio/DoubleBuffer.java: Likewise.
49 * java/nio/FloatBuffer.java: Likewise.
50 * java/nio/LongBuffer.java: Likewise.
51 * java/nio/IntBuffer.java: Likewise.
52 * java/nio/ShortBuffer.java: Likewise.
54 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
56 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
58 2004-09-21 Michael Koch <konqueror@gmx.de>
60 * javax/net/ssl/SSLServerSocket.java:
61 Removed comment about "Do not edit this file, it's generated.".
63 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
65 Import the big Crypto/Jessie/Security merge from Classpath.
67 * Makefile.am: Add imported files.
68 * Makefile.in: Regenerate.
70 2004-08-14 Casey Marshall <csm@gnu.org>
72 The Big Crypto Merge of 2004.
74 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
77 Files imported from GNU Crypto.
78 * javax/crypto/BadPaddingException.java
79 * javax/crypto/Cipher.java
80 * javax/crypto/CipherInputStream.java
81 * javax/crypto/CipherOutputStream.java
82 * javax/crypto/CipherSpi.java
83 * javax/crypto/EncryptedPrivateKeyInfo.java
84 * javax/crypto/ExemptionMechanism.java
85 * javax/crypto/ExemptionMechanismException.java
86 * javax/crypto/ExemptionMechanismSpi.java
87 * javax/crypto/IllegalBlockSizeException.java
88 * javax/crypto/KeyAgreement.java
89 * javax/crypto/KeyAgreementSpi.java
90 * javax/crypto/KeyGenerator.java
91 * javax/crypto/KeyGeneratorSpi.java
92 * javax/crypto/Mac.java
93 * javax/crypto/MacSpi.java
94 * javax/crypto/Makefile.am
95 * javax/crypto/NoSuchPaddingException.java
96 * javax/crypto/NullCipher.java
97 * javax/crypto/NullCipherImpl.java
98 * javax/crypto/SealedObject.java
99 * javax/crypto/SecretKey.java
100 * javax/crypto/SecretKeyFactory.java
101 * javax/crypto/SecretKeyFactorySpi.java
102 * javax/crypto/ShortBufferException.java
103 * javax/crypto/interfaces/DHKey.java
104 * javax/crypto/interfaces/DHPrivateKey.java
105 * javax/crypto/interfaces/DHPublicKey.java
106 * javax/crypto/interfaces/PBEKey.java
107 * javax/crypto/spec/DESKeySpec.java
108 * javax/crypto/spec/DESedeKeySpec.java
109 * javax/crypto/spec/DHGenParameterSpec.java
110 * javax/crypto/spec/DHParameterSpec.java
111 * javax/crypto/spec/DHPrivateKeySpec.java
112 * javax/crypto/spec/DHPublicKeySpec.java
113 * javax/crypto/spec/IvParameterSpec.java
114 * javax/crypto/spec/PBEKeySpec.java
115 * javax/crypto/spec/PBEParameterSpec.java
116 * javax/crypto/spec/RC2ParameterSpec.java
117 * javax/crypto/spec/RC5ParameterSpec.java
118 * javax/crypto/spec/SecretKeySpec.java
119 * javax/security/auth/AuthPermission.java
120 * javax/security/auth/DestroyFailedException.java
121 * javax/security/auth/Destroyable.java
122 * javax/security/auth/Policy.java
123 * javax/security/auth/PrivateCredentialPermission.java
124 * javax/security/auth/RefreshFailedException.java
125 * javax/security/auth/Refreshable.java
126 * javax/security/auth/Subject.java
127 * javax/security/auth/SubjectDomainCombiner.java
128 * javax/security/auth/callback/Callback.java
129 * javax/security/auth/callback/CallbackHandler.java
130 * javax/security/auth/callback/ChoiceCallback.java
131 * javax/security/auth/callback/ConfirmationCallback.java
132 * javax/security/auth/callback/LanguageCallback.java
133 * javax/security/auth/callback/NameCallback.java
134 * javax/security/auth/callback/PasswordCallback.java
135 * javax/security/auth/callback/TextInputCallback.java
136 * javax/security/auth/callback/TextOutputCallback.java
137 * javax/security/auth/callback/UnsupportedCallbackException.java
138 * javax/security/auth/login/AccountExpiredException.java
139 * javax/security/auth/login/AppConfigurationEntry.java
140 * javax/security/auth/login/Configuration.java
141 * javax/security/auth/login/CredentialExpiredException.java
142 * javax/security/auth/login/FailedLoginException.java
143 * javax/security/auth/login/LoginContext.java
144 * javax/security/auth/login/LoginException.java
145 * javax/security/auth/login/NullConfiguration.java
146 * javax/security/auth/x500/X500PrivateCredential.java
147 * javax/security/sasl/AuthenticationException.java
148 * javax/security/sasl/AuthorizeCallback.java
149 * javax/security/sasl/RealmCallback.java
150 * javax/security/sasl/RealmChoiceCallback.java
151 * javax/security/sasl/Sasl.java
152 * javax/security/sasl/SaslClient.java
153 * javax/security/sasl/SaslClientFactory.java
154 * javax/security/sasl/SaslException.java
155 * javax/security/sasl/SaslServer.java
156 * javax/security/sasl/SaslServerFactory.java
157 * org/ietf/jgss/ChannelBinding.java
158 * org/ietf/jgss/GSSContext.java
159 * org/ietf/jgss/GSSCredential.java
160 * org/ietf/jgss/GSSException.java
161 * org/ietf/jgss/GSSManager.java
162 * org/ietf/jgss/GSSName.java
163 * org/ietf/jgss/MessageProp.java
164 * org/ietf/jgss/Oid.java
165 * org/ietf/jgss/MessagesBundle.properties
167 Files imported from Jessie <http://www.nongnu.org/jessie/>
168 * javax/net/ServerSocketFactory.java
169 * javax/net/SocketFactory.java
170 * javax/net/VanillaServerSocketFactory.java
171 * javax/net/VanillaSocketFactory.java
172 * javax/net/ssl/HandshakeCompletedEvent.java
173 * javax/net/ssl/HandshakeCompletedListener.java
174 * javax/net/ssl/HostnameVerifier.java
175 * javax/net/ssl/HttpsURLConnection.java
176 * javax/net/ssl/KeyManager.java
177 * javax/net/ssl/KeyManagerFactory.java
178 * javax/net/ssl/KeyManagerFactorySpi.java
179 * javax/net/ssl/ManagerFactoryParameters.java
180 * javax/net/ssl/SSLContext.java
181 * javax/net/ssl/SSLContextSpi.java
182 * javax/net/ssl/SSLException.java
183 * javax/net/ssl/SSLHandshakeException.java
184 * javax/net/ssl/SSLKeyException.java
185 * javax/net/ssl/SSLPeerUnverifiedException.java
186 * javax/net/ssl/SSLPermission.java
187 * javax/net/ssl/SSLProtocolException.java
188 * javax/net/ssl/SSLServerSocket.java
189 * javax/net/ssl/SSLServerSocketFactory.java
190 * javax/net/ssl/SSLSession.java
191 * javax/net/ssl/SSLSessionBindingEvent.java
192 * javax/net/ssl/SSLSessionBindingListener.java
193 * javax/net/ssl/SSLSessionContext.java
194 * javax/net/ssl/SSLSocket.java
195 * javax/net/ssl/SSLSocketFactory.java
196 * javax/net/ssl/TrivialHostnameVerifier.java
197 * javax/net/ssl/TrustManager.java
198 * javax/net/ssl/TrustManagerFactory.java
199 * javax/net/ssl/TrustManagerFactorySpi.java
200 * javax/net/ssl/X509KeyManager.java
201 * javax/net/ssl/X509TrustManager.java
202 * javax/security/cert/Certificate.java
203 * javax/security/cert/CertificateEncodingException.java
204 * javax/security/cert/CertificateException.java
205 * javax/security/cert/CertificateExpiredException.java
206 * javax/security/cert/CertificateNotYetValidException.java
207 * javax/security/cert/CertificateParsingException.java
208 * javax/security/cert/X509CertBridge.java
209 * javax/security/cert/X509Certificate.java
211 2004-08-20 Casey Marshall <csm@gnu.org>
213 * java/security/cert/X509CRLSelector.java: New file.
214 * java/security/cert/X509CertSelector.java: New file.
216 2004-09-15 Michael Koch <konqueror@gmx.de>
218 * gnu/java/net/protocol/file/Handler.java
219 (openConnection): Don't throw exception if host part for file: URI is
220 present. setURL() keeps file: protocol if ftp: protocol is not
223 2004-09-14 Richard Henderson <rth@redhat.com>
225 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
228 2004-09-12 Tom Tromey <tromey@redhat.com>
230 * javax/naming/CompoundName.java (CompoundName): Don't check for
231 separator in "flat" case.
233 2004-09-12 Michael Koch <konqueror@gmx.de>
235 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
236 AM_CONFIG_HEADER by AC_CONFIG_FILES.
237 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
240 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
243 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
244 handle in newly-allocated _Jv_Thread_t.
245 (_Jv_ThreadDestroyData): Close thread handle.
246 (_Jv_ThreadStart): Remove obsolete comment.
247 Store handle of newly-created thread in _Jv_Thread_t.
248 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
249 before including <windows.h>
250 #define _Jv_HaveCondDestroy
252 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
254 * java/lang/natThread.cc (finalize_native): Destroy
255 join conditional variable and mutex if these destroy
256 operations are supported.
258 2004-09-10 Dalibor Topic <robilad@kaffe.org>
260 * gnu/java/net/protocol/file/Connection.java (permission): New field.
261 (DEFAULT_PERMISSION): New constant.
262 (Connection): Create a FilePermission with permission to read file.
264 2004-09-10 Michael Koch <konqueror@gmx.de>
266 * gnu/java/net/protocol/file/Connection.java
267 (getLastModified): Moved around.
268 (getPermission): Return stored permission.
270 2004-09-10 Michael Koch <konqueror@gmx.de>
272 * Makefile.in: Regenerate.
274 2004-09-10 Michael Koch <konqueror@gmx.de>
276 * Makefile.am: Reverted accidently commited stuff.
277 * configure: Regenerated.
279 2004-09-10 Michael Koch <konqueror@gmx.de>
281 * gnu/java/net/protocol/file/Connection.java
282 (lineSeparator): Made non-final.
284 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
285 instead of StringBufferInputStream.
287 2004-09-10 Michael Koch <konqueror@gmx.de>
289 * gnu/java/net/protocol/file/Connection.java
290 (connect): Handle file is a directory case.
292 2004-09-10 Michael Koch <konqueror@gmx.de>
295 (xlib_includes): Removed.
296 (AM_CPPFLAGS): Renamed from INCLUDES.
297 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
298 * Makefile.in: Regenerate.
300 2004-09-09 Michael Koch <konqueror@gmx.de>
302 * java/security/ProtectionDomain.java,
303 * java/util/PropertyPermissionCollection.java:
304 Fixed javadocs all over.
306 2004-09-09 Sven de Marothy <sven@physto.se>
308 Patch from David Gilbert <david.gilbert@object-refinery.com>
309 * java/lang/Comparable.java: Fixed documentation errors.
310 * java/util/Arrays.java: Likewise.
312 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
314 * java/net/Inet4Address.java
315 (Inet4Address): Added comment to serialization UID.
316 * java/text/Format.java
317 (Format): Added comment to serialization UID.
319 2004-09-09 Michael Koch <konqueror@gmx.de>
321 * java/lang/System.java
322 (err): Fixed javadoci to point to setErr() and not setOut().
324 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
326 (normalizePath): Added special case for windows systems.
328 2004-09-09 Michael Koch <konqueror@gmx.de>
331 (dupSeparator): Made private.
332 (File(URI)): New constructor.
333 (getParentFile): Fixed javadoc.
334 (createTempFile): Reformated.
335 (setReadOnly): Added comment.
336 (deleteOnExit): Merged javadoc with classpath version.
338 2004-09-09 Michael Koch <konqueror@gmx.de>
340 * Makefile.am: Don't try to include deps.mk.
341 * Makefile.in: Regenerated.
343 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
345 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
347 * configure: Rebuilt.
349 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
351 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
352 Changed pfn from static local to local.
354 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
355 H.J. Lu <hongjiu.lu@intel.com>
358 * Makefile.am (GCJCOMPILE): Remove definition.
359 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
360 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
361 * Makefile.in: Rebuilt.
363 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
365 * configure.ac (enable-gc-debug): Update help for new syntax.
366 * configure: Regenerate.
368 2004-09-03 David Daney <ddaney@avtrex.com>
370 * include/mips-signal.h: Update copyright.
372 2004-09-03 David Daney <ddaney@avtrex.com>
374 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
375 * include/mips-signal.h: Added HANDLE_FPE support.
377 2004-08-31 Michael Koch <konqueror@gmx.de>
379 * javax/swing/plaf/basic/BasicTextAreaUI.java
380 (create): New method.
381 * javax/swing/text/DefaultHighlighter.java
382 (DefaultHighlightPainter.debugRect): Removed.
383 * javax/swing/text/StyleContext.java
384 (DEFAULT_STYLE): New field.
386 2004-08-31 Michael Koch <konqueror@gmx.de>
388 * javax/swing/plaf/basic/BasicLookAndFeel.java
389 (initComponentDefaults): Add keybindings for selection.backward and
390 selection-forward for text components.
391 * javax/swing/plaf/basic/BasicTextUI.java
392 (paintSafely): Paint highlight only when something is actually
394 * javax/swing/text/DefaultCaret.java
395 (handleHighlight): New method.
396 (setSelectionVisible): Don't do anything when nothing changes.
398 (moveDot): Reimplemented. Handle highlight.
399 (setDot): Set mark too. Handle highlight.
400 (getSelectionPainter): New method.
401 * javax/swing/text/DefaultEditorKit.java
402 (defaultActions): Added new actions for text selection.
403 * javax/swing/text/DefaultHighlighter.java
404 (DefaultHighlightPainter): New inner class.
405 (DefaultPainter): New field.
406 (paint): Implemented.
407 * javax/swing/text/PlainView.java
408 (paint): Don't draw background here again.
409 * javax/swing/text/Utilities.java
410 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
411 (drawTabbedText): Likewise.
413 2004-08-31 Graydon Hoare <graydon@redhat.com>
415 * javax/swing/JComponent.java
416 (resetKeyboardActions): Add null checks.
418 2004-08-31 Graydon Hoare <graydon@redhat.com>
420 * javax/swing/DefaultButtonModel.java:
421 Skip group notification when no group is set.
423 2004-08-31 Graydon Hoare <graydon@redhat.com>
425 * javax/swing/JColorChooser.java:
426 Make a couple inner classes static, for jikes.
428 2004-08-31 Michael Koch <konqueror@gmx.de>
430 * javax/swing/plaf/basic/BasicTextUI.java
431 (RottView.modelToView): New method.
432 (UpdateHandler): Renamed from EventHandler.
433 (updateHandler): Renamed from eventHandler.
434 (modelToView): Implemented.
435 * javax/swing/text/AbstractDocument.java
436 (BranchElement.getElement): Return null for non-existing indeces.
437 (BranchElement.getElementIndex): Return 0 in some corner cases.
438 * javax/swing/text/FieldView.java
439 (modelToView): New method.
440 * javax/swing/text/PlainView.java
441 (modelToView): Made public.
443 2004-08-31 Kim Ho <kho@redhat.com>
445 * Makefile.am: New files.
446 * Makefile.in: Regenerate.
447 * gcj/Makefile.in: Regenerate.
448 * include/Makefile.in: Regenerate.
449 * java/awt/Color.java: Fix documentation.
450 (RGBtoHSB): Use floats for conversions.
451 * javax/swing/ButtonGroup.java: Run Jalopy.
452 (setSelected): Reimplement.
453 * javax/swing/DefaultButtonModel.java: Run Jalopy.
454 (changeState): Let ButtonGroup know that the button
456 * javax/swing/JColorChooser.java: Implement.
457 * javax/swing/JLabel.java: Run Jalopy.
458 * javax/swing/JSpinner.java: Run Jalopy.
459 (setValue): New method.
460 * javax/swing/JTabbedPane.java: Run Jalopy.
461 (removeTabAt): Call correct remove method.
462 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
463 (getPreviousValue): Compare minimum value.
464 * javax/swing/Timer.java: Run Jalopy.
465 (run): Comment out println.
466 * javax/swing/ToolTipManager.java:
467 (mouseMoved): Get new tooltip text for location.
468 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
470 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
472 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
474 (setSelectedColor): Fire ChangeEvent.
475 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
477 * javax/swing/colorchooser/DefaultPreviewPanel.java:
479 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
481 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
483 * javax/swing/plaf/basic/BasicArrowButton.java:
484 (getArrow): Fix size of upward pointing button.
485 * javax/swing/plaf/basic/BasicColorChooserUI.java:
487 * javax/swing/plaf/basic/BasicSliderUI.java:
488 (getWidthOfWidestLabel): Use preferred dimensions.
489 (getHeightOfTallestLabel): Ditto.
490 * javax/swing/plaf/basic/BasicSpinnerUI.java:
492 (mousePressed): Disable changes to spinner if it is not enabled.
493 * testsuite/Makefile.in: Regenerate.
496 2004-08-31 Michael Koch <konqueror@gmx.de>
498 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
499 javax/swing/plaf/basic/BasicTableUI.java:
500 Added copyright notice.
502 2004-08-31 Olga Rodimina <rodimina@redhat.com>
504 * Makefile.am: Added new files.
505 * Makefile.in: Regenerate.
506 * javax/swing/ComboBoxEditor.java: Added javadocs.
507 * javax/swing/ComboBoxModel.java: Likewise.
508 * javax/swing/DefaultComboBoxModel.java: Implemented.
509 * javax/swing/DefaultListCellRenderer.java: Added javadocs
510 and ran through jalopy to fix formatting style.
511 (getListCellRendererComponent): Use appropriate border
512 if renderer has focus and use noFocusBorder when it doesn't.
513 * javax/swing/JComboBox.java: Implemented.
514 * javax/swing/JList.java:
515 (locationToIndex): New Method. Implemented.
516 (indexToLocation): New Method.
517 * javax/swing/JPopupMenu.java:
518 (visible): New field.
519 (isVisible): Changed to use new field above.
520 (setVisible): Likewise.
521 * javax/swing/MutableComboBoxModel.java: Added javadocs.
522 * javax/swing/plaf/basic/BasicArrowButton.java:
523 (shadow): Changed default color to Color.gray.
524 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
525 UI delegate for JComboBox.
526 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
527 Popup menu containing list of JComboBox's items.
528 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
529 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
530 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
531 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
532 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
533 (popupMenuWillBecomeVisible): Set selected path to the first
534 element only if it is of type MenuElement. Also fix formatting
536 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
539 2004-08-31 Michael Koch <konqueror@gmx.de>
541 * javax/swing/text/AbstractDocument.java
542 (createBranchElement): Use new constructor of BranchElement.
543 (createLeafElement): Renamed arguments.
544 (getRootElements): Implemented.
545 (BranchElement.start): Removed.
546 (BranchElement.end): Likewise.
547 (BranchElement.BranchElement): Fixed arguments.
548 (BranchElement.getEndOffset): Reimplemented.
549 (BranchElement.getStartOffset): Likewis.
550 * javax/swing/text/DefaultCaret.java
551 (paint): Draw simple vertical line as caret instead of a rectangle.
552 * javax/swing/text/JTextComponent.java
553 (setText): Use doc directly.
554 * javax/swing/text/PlainView.java
555 (nextTabStop): Implemented.
556 * javax/swing/text/Utilities.java
557 (drawTabbedText): nextTabStop() returns an absolute x position.
558 (getTabbedTextWidth): Likewise.
560 2004-08-31 Graydon Hoare <graydon@redhat.com>
562 * java/awt/Component.java
563 (isFocusTraversable): Predicate on isLightweight()
564 (setFocusable): Set isFocusTraversableOverridden.
565 (requestFocus): Predicate peer dispatch on !isLightweight()
566 (requestFocusInWindow): Likewise.
567 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
568 * java/awt/Container.java
569 (dispatchEventImpl): Predicate on event mask.
570 (LightweightDispatcher): Remove focus machinery.
571 * java/awt/DefaultFocusTraversalPolicy.java
572 (accept): Expand predicate to include isFocusable().
573 * java/awt/DefaultKeyboardFocusManager.java:
574 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
575 * java/awt/KeyboardFocusManager.java
576 (redispatchEvent): Synchronize on event to prevent feedback.
577 * javax/swing/AbstractButton.java
578 (ButtonFocusListener): Remove class.
579 (init): Set focusPainted, focusable.
580 * javax/swing/ActionMap.java (get): Check parent for null.
581 * javax/swing/InputMap.java (get): Likewise.
582 * javax/swing/JComponent.java
583 (inputMap_whenFocused): New InputMap.
584 (inputMap_whenAncestorOfFocused): Likewise.
585 (inputMap_whenInFocusedWindow): Likewise.
586 (getActionForKeyStroke): Rewrite.
587 (getConditionForKeystroke): Likewise.
588 (ActionListenerProxy): New private class.
589 (setInputMap): Implement.
590 (getInputMap): Likewise.
591 (setActionMap): Likewise.
592 (getActionMap): Likewise.
593 (processComponentKeyEvent): New empty method.
594 (processKeyEvent): Implement.
595 (processKeyBinding): Likewise.
596 (resetKeyboardActions): Rewrite.
597 * javax/swing/KeyStroke.java: Rewrite.
598 * javax/swing/SwingUtilities.java
599 (notifyAction): Implement.
600 (replaceUIActionMap): Likewise.
601 (replaceUIInputMap): Likewise.
602 * javax/swing/plaf/basic/BasicButtonListener.java
603 (focusGained): Implement.
604 (focusLost): Repaint if focusPainted().
605 (installKeyboardActions): Install pressed / released actions.
606 (uninstallKeyboardActions): Implement.
607 * javax/swing/plaf/basic/BasicButtonUI.java
608 (focusColor): New field.
609 (installDefaults): Load focus color, install input map.
610 (installKeyboardActions): Implement.
611 (uninstallKeyboardActions): Likewise.
612 (paintFocus): Rewrite.
613 * javax/swing/plaf/basic/BasicLookAndFeel.java
614 (Button.focus): New default, midPurple.
615 * javax/swing/plaf/basic/BasicTextUI.java
617 (installUI): Get doc from kit, load defaults.
618 (getKeymapName): Implement.
619 (createKeymap): Likewise.
620 (installKeyboardActions): Likewise.
621 (getInputMap): Likewise.
622 (getActionMap): Likewise.
623 (createActionMap): Likewise.
624 * javax/swing/text/AbstractDocument.java
625 (getStartPosition): Implement.
626 (getEndPosition): Likewise.
627 * javax/swing/text/DefaultEditorKit.java
628 (CopyAction): New class.
629 (CutAction): Likewise.
630 (DefaultKeyTypedAction): Likewise.
631 (InsertBreakAction): Likewise.
632 (InsertContentAction): Likewise.
633 (InsertTabAction): Likewise.
634 (PasteAction): Likewise.
635 (defaultActions): New static table.
636 (createCaret): Implement.
637 (getActions): Likewise.
638 * javax/swing/text/JTextComponent.java
639 (KeymapWrapper): New private class.
640 (KeymapActionMap): Likewise.
641 (DefaultKeymap): New class.
642 (keymaps): New static table.
644 (getKeymap): Implement.
645 (removeKeymap): Likewise.
646 (addKeymap): Likewise.
647 (setKeymap): Likewise.
648 (loadKeymap): Likewise.
649 (getActions): Likewise.
651 (JTextComponent): Build and install default keymap.
652 * javax/swing/text/TextAction.java
653 (textAction): Call super properly.
654 (getTextComponent): Implement.
655 * javax/swing/text/Utilities.java
656 (drawTabbedText): Adjust position by ascent.
658 2004-08-31 David Jee <djee@redhat.com>
662 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
663 (setEnabled): Make it a native method.
664 * java/awt/DefaultKeyboardFocusManager.java
665 (postProcessKeyEvent): Only post event if the menu item
667 * java/awt/MenuItem.java:
668 Private field 'enabled' should be true by default.
669 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
670 (setEnabled): New function.
672 2004-08-31 David Jee <djee@redhat.com>
676 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
677 (nativeSetHelpMenu): New native method declaration.
678 (addHelpMenu): Call nativeSetHelpMenu().
680 * java/awt/MenuBar.java
681 (setHelpMenu): Call addNotify() on the new help menu.
682 (add): Call addNotify() on the new menu.
683 (addNotify): Set the help menu if one exists.
684 * java/awt/peer/MenuBarPeer.java
686 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
687 (nativeSetHelpMenu): New method.
689 2004-08-31 Graydon Hoare <graydon@redhat.com>
691 * Makefile.am: Add new files.
692 * Makefile.in: Regenerate.
693 * javax/swing/Box.java: Fix setting of layout in ctor.
694 * javax/swing/JScrollPane.java: Scroll headers as well.
695 * javax/swing/JTable.java: Reimplement.
696 * javax/swing/JViewPort.java: Only add non-null children.
697 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
698 * javax/swing/Timer.java: Fix stopping null waker.
699 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
700 * javax/swing/plaf/basic/BasicTableUI.java: New file.
701 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
702 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
703 * javax/swing/table/DefaultTableModel.java: Clean up.
704 * javax/swing/table/JTableHeader.java: Implement.
706 2004-08-31 Mark Wielaard <mark@klomp.org>
708 * javax/swing/JSpinner.java (getChangeListeners): Remove double
711 2004-08-31 Mark Wielaard <mark@klomp.org>
713 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
714 Declare variables at top of functions/block.
715 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
717 2004-08-31 Mark Wielaard <mark@klomp.org>
719 * java/lang/Rectangle.java (intersects): Check r.width and r.height
722 2004-08-31 Michael Koch <konqueror@gmx.de>
724 * javax/swing/text/PlainView.java
725 (selectedColor): New field.
726 (unselectedColor): Likewise.
728 (updateMetrics): New method.
729 (lineToRect): Likewise.
730 (modelToView): Likewise.
731 (drawSelectedText): Use color from JTextComponent ad draw with
733 (drawUnselectedText): Likewise.
734 (paint): Initialize helper fields.
735 * javax/swing/text/View.java
736 (getChildAllocation): New method.
737 (getViewIndex): Likewise.
738 (getToolTipText): Likewise.
740 2004-08-31 Michael Koch <konqueror@gmx.de>
742 * javax/swing/text/Utilities.java
743 (drawTabbedText): Reimplemented.
744 (getTabbedTextWidth): Likewise.
746 2004-08-31 Michael Koch <konqueror@gmx.de>
748 * javax/swing/plaf/basic/BasicTextUI.java
749 (installDefaults): Install caret and highlighter.
750 (modelToView): Use Bias.Forward when calling sibling.
751 * javax/swing/text/AbstractDocument.java
752 (ElementEdit): Implements DocumentEvent.ElementChange.
753 (ElementEdit.ElementEdit): New method.
754 (ElementEdit.getChildrenAdded): Likewise.
755 (ElementEdit.getChildrenRemoved): Likewise.
756 (ElementEdit.getElement): Likewise.
757 (ElementEdit.getIndex): Likewise.
758 * javax/swing/text/DefaultCaret.java
760 (textComponent): Renamed from parent, made private.
761 (selectionVisible): Renamed from vis_sel, made private.
762 (blinkRate): Renamed from blink, made private.
763 (magicCaretPosition): Renamed from magic, made private.
764 (visible): Renamed from vis, made private.
767 (deinstall): Remove as MouseMotionListener.
768 (install): Initialize textComponent first. Add as MouseMotionListener.
769 (paint): Reimplemented.
770 * javax/swing/text/JTextComponent.java
771 (setCaret): Deinstall old caret, install new one and fire property
772 change after setting property.
773 (setHighlighter): Deinstall old highlighter, install new one and fire
774 property change after setting property.
775 (setCaretColor): Fire property change after setting property.
776 (setDisabledTextColor): Likewise.
777 (setSelectedTextColor): Likewise.
778 (setSelectionColor): Likewise.
779 (modelToView): New method.
781 2004-08-31 Michael Koch <konqueror@gmx.de>
783 * javax/swing/text/AbstractDocument.java
784 (getText): Simplified.
785 * javax/swing/text/Segment.java
786 (current): New field.
787 (current): Reimplemented.
789 (getIndex): Likewise.
792 (previous): Likewise.
793 (setIndex): Likewise.
795 2004-08-31 Michael Koch <konqueror@gmx.de>
797 * javax/swing/plaf/basic/BasicButtonUI.java
798 (defaultTextIconGap): Made protected.
799 (defaultTextShiftOffset): Likewise.
800 (textShiftOffset): New field.
801 (clearTextShiftOffset): New method.
802 (getTextShiftOffset): Likewise.
803 (setTextShiftOffset): Likewise.
805 2004-08-31 Michael Koch <konqueror@gmx.de>
807 * javax/swing/plaf/basic/BasicTextUI.java
808 (installUI): Add eventHandler as property listener.
809 (uninstallUI): remove eventHandler as propert listener.
810 (installDefaults): Added comment.
811 (installListeners): Likewise.
812 (installKeyboardActions): Likewise.
813 (uninstallDefaults): Likewise.
814 (uninstallListeners): Likewise.
815 (uninstallKeyboardActions): Likewise.
817 2004-08-31 Michael Koch <konqueror@gmx.de>
819 * javax/swing/text/AbstractDocument.java:
820 Fixed some typos in comments.
821 (insertString): Reimplemented.
823 (replace): New method.
824 (children): Dont use fully qualified class name.
825 (DefaultDocumentEvent.offset): Renamed from off.
826 (DefaultDocumentEvent.length): Renamed from len.
827 (DefaultDocumentEvent.type): New field.
828 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
829 (DefaultDocumentEvent.getType): Implemented.
831 2004-08-31 Michael Koch <konqueror@gmx.de>
833 * javax/swing/plaf/basic/BasicTextUI.java
834 (RootView.textComponent): Removed.
835 (RootView.RootView): Don't initialize textComponent.
836 (RootView.getViewFactory): New method.
837 (EventHandler): New inner class.
838 (rootView): Initialize at instance creation.
839 (eventHandler): New field.
840 (installUI): Don't create view hierarchy directly,
841 call modelChanged() instead.
842 (modelChanged): New method.
843 * javax/swing/text/JTextComponent.java
844 (setDocument): Fire property change event.
846 2004-08-31 Michael Koch <konqueror@gmx.de>
848 * javax/swing/plaf/basic/BasicTextUI.java
849 (RootView.paint): Removed debug output.
850 (paintSafely): Draw highlighter before text.
851 (paintBackground): Use background color of text component.
852 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
855 2004-08-31 Michael Koch <konqueror@gmx.de>
857 * javax/swing/plaf/basic/BasicToolBarUI.java
858 (BasicToolBarUI): Fixed arguments for constructor.
859 (createUI): Fixed creation of object.
861 2004-08-31 Michael Koch <konqueror@gmx.de>
863 * javax/swing/DefaultListSelectionModel.java
864 (fireValueChanged): Renamed from fireSelectionValueChanged,
867 2004-08-31 Michael Koch <konqueror@gmx.de>
869 * javax/swing/text/TabSet.java
870 (TabSet): Implements java.io.Serializable.
871 * javax/swing/text/TabStop.java
872 (TabStop): Implements java.io.Serializable.
873 (TabStop): Made public.
875 2004-08-31 Michael Koch <konqueror@gmx.de>
877 * javax/swing/JComponent.java
878 (setUI): Fire PropertyChange.
879 * javax/swing/JLabel.java
880 (text): Renamed from labelText.
881 (horizontalAlignment): New default vlaue.
882 (icon): Renamed from activeIcon.
883 (displayedMnemonic): Renamed from mnemonicKey, added default value.
884 (displayedMnemonicIndex): Renamed from underlineChar.
885 (setDisplayedMnemonic): Reimplemented.
886 * javax/swing/JRadioButton.java
887 (JRadioButton): New constructors.
888 * javax/swing/JTextField.java
889 (JTextField): Throw exception if colums < 0, initialitialz
890 this.columns directly and initialize document with text conditionally.
892 2004-08-31 Michael Koch <konqueror@gmx.de>
894 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
895 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
896 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
897 * javax/swing/text/FieldView.java
898 (paint): Just call super method for now.
899 * Makefile.am: Added new files.
900 * Makefile.in: Regenerated.
902 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
904 * javax/swing/AbstractSpinnerModel.java,
905 javax/swing/JSpinner.java,
906 javax/swing/SpinnerNumberModel.java,
907 javax/swing/plaf/basic/BasicSpinnerUI.java:
909 * javax/swing/plaf/basic/BasicLookAndFeel.java
910 (initClassDefaults): Added defaults for BasicSpinnerUI.
912 2004-08-31 Michael Koch <konqueror@gmx.de>
914 * Makefile.am: Added new files.
915 * Makefile.in: Regenerated.
917 2004-08-31 Michael Koch <konqueror@gmx.de>
919 * javax/swing/TransferHandler.java,
920 javax/swing/plaf/basic/ComboPopup.java: New files
921 * Makefile.am: Added javax/swing/TransferHandler.java and
922 javax/swing/plaf/basic/ComboPopup.java
923 * Makefile.in: Regenerated.
925 2004-08-31 Roman Kennke <roman@ontographics.com>
927 * javax/swing/text/Utilities.java: New file.
929 2004-08-31 Michael Koch <konqueror@gmx.de>
931 * Makefile.am: Added javax/swing/text/Utilities.java.
932 * Makefile.in: Regenerated.
934 2004-08-31 Graydon Hoare <graydon@redhat.com>
936 * javax/swing/text/SimpleAttributeSet.java: New file.
937 * javax/swing/text/StyleConstants.java: New file.
938 * javax/swing/text/StyleContext.java: New file.
939 * javax/swing/text/TabSet.java: New file.
940 * javax/swing/text/TabStop.java: New file.
941 * javax/swing/text/AbstactDocument.java:
942 (AbstractElement): Implement attribute support.
943 * javax/swing/text/AttributeSet.java
944 (NameAttribute): New static field.
945 (ResolveAttribute): New static field.
946 * Makefile.am: Update for new files.
947 * Makefile.in: Regenerate.
949 2004-08-31 Craig Black <craig.black@aonix.com>
951 * gnu/java/awt/peer/gtk/GdkGraphics.java
952 (drawImage): Add support for scaling pixmaps.
953 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
954 (copyAndScalePixmap): New native method.
956 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
959 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
960 type-punning compiler warnings using unions.
961 (throw): Replace bzero with memset.
963 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
964 Thomas Fitzsimmons <fitzsim@redhat.com>
966 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
967 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
968 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
969 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
970 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
972 2004-08-31 Mark Wielaard <mark@klomp.org>
974 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
975 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
976 and stdlib.h, not gtkpeer.h.
977 (*vm): New static variable.
978 (areaPreparedID): Make static.
979 (areaUpdatedID): Likewise.
980 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
981 (area_prepared): Likewise.
982 (area_updated): Likewise.
984 (initStaticState): Initialize *vm javaVM.
985 (pumpBytes): Use given env, not global gdk_env.
987 2004-08-31 Mark Wielaard <mark@klomp.org>
989 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
992 2004-08-31 Sven de Marothy <sven@physto.se>
994 * java/awt/geom/CubicCurve2D.java: Reindent.
995 (contains): Implemented.
996 (intersects): Implemented.
997 * java/awt/geom/QuadCurve2D.java: Likewise.
998 * java/awt/geom/GeneralPath.java: Reindent and document.
999 Fully (re)implemented using separate xpoints and ypoints
1001 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1003 2004-08-31 Michael Koch <konqueror@gmx.de>
1005 * javax/swing/JMenuItem.java
1006 (getMenuDragMouseListeners): New method.
1007 (getMenuKeyListeners): Likewise.
1009 2004-08-31 Michael Koch <konqueror@gmx.de>
1011 * javax/swing/AbstractButton.java
1012 (model): Made protected.
1013 (actionListener): Likewise.
1014 (changeListener): Likewise.
1015 (itemListener): Likewise.
1016 (multiClickThreshhold): New field.
1017 (getActionListeners): New method.
1018 (getChangeListeners): Likewise.
1019 (getItemListeners): Likewise.
1020 (fireItemStateChanged): Simplified implementation.
1021 (fireActionPerformed): Likewise.
1022 (fireStateChanged): Likewise.
1023 (getMultiClickThreshhold): New method.
1024 (setMultiClickThreshhold): Likewise.
1026 2004-08-31 Tom Tromey <tromey@redhat.com>
1028 * java/awt/image/Kernel.java (clone): Use super.clone().
1030 2004-08-31 David Jee <djee@redhat.com>
1033 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1034 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1035 (nativeSetIconImageFromData): New native method declaration.
1036 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1037 * gnu/java/awt/peer/gtk/GtkImage.java
1038 (getPixelCache): New method.
1039 (getColorModel): New method.
1040 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1041 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1042 (free_pixbuf_data): New helper function.
1043 (nativeSetIconImageFromData): New function.
1045 2004-08-31 Graydon Hoare <graydon@redhat.com>
1048 * javax/swing/JLayeredPane.java
1049 (setLayer): Permit changing layer after addition.
1050 (setPosition): Permit over-length positions.
1051 (layerToRange): Compare intValue()s.
1052 * javax/swing/Box.java (createHorizontalBox): Implement.
1053 (createRigidArea): Likewise.
1054 (createVerticalBox): Likewise.
1056 2004-08-31 Kim Ho <kho@redhat.com>
1058 * java/awt/Component.java:
1059 (processMouseEvent): Consume event after
1060 listeners process it.
1061 (processMouseMotionEvent): ditto.
1062 (processMouseWheelEvent): ditto.
1063 * java/awt/Container.java:
1064 (acquireComponentForMouseEvent):
1065 Do not dispatch to events that have been
1066 removed from the Container.
1067 (handleEvent): Consume the MouseEvents.
1068 * javax/swing/RepaintManager.java:
1069 (paintDirtyRegions): Do not add to list of
1070 damaged areas if the component has no root.
1072 2004-08-31 Michael Koch <konqueror@gmx.de>
1074 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1076 2004-08-31 Mark Wielaard <mark@klomp.org>
1078 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1079 null when a MissingResourceException is thrown. Should never happen.
1081 2004-08-31 Mark Wielaard <mark@klomp.org>
1083 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1084 when argument is null.
1086 2004-08-31 Mark Wielaard <mark@klomp.org>
1088 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1089 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1090 Define hid at start of function.
1091 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1094 2004-08-31 Mark Wielaard <mark@klomp.org>
1096 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1097 * javax/swing/JButton.java: Reindent.
1098 * javax/swing/JCheckBox.java: Reindent.
1100 2004-08-31 Mark Wielaard <mark@klomp.org>
1102 * Makefile.am (gtk_c_source_files): Added
1103 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1104 (gtk_awt_peer_sources): Added
1105 gnu/java/awt/peer/gtk/GThreadMutex.java and
1106 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1107 * Makefile.in: Regenerated.
1109 2004-08-31 Archie Cobbs <archie@dellroad.org>
1111 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1113 2004-08-31 Steven Augart <augart@watson.ibm.com>
1115 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1116 Added jfieldID, jmethodID.
1118 2004-08-31 Mark Wielaard <mark@klomp.org>
1120 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1121 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1122 gdk_env before calling any gdk or gtk function.
1124 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1125 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1126 (run): Set gtkInitCalled.
1128 2004-08-31 Steven Augart <augart@watson.ibm.com>
1130 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1131 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1133 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1134 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1135 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1137 (init_glib_threads): New function.
1139 2004-08-31 Mark Wielaard <mark@klomp.org>
1141 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1142 PRIORITY when not already defined in header file.
1144 2004-08-31 Mark Wielaard <mark@klomp.org>
1146 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1147 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1149 2004-08-31 Steven Augart <augart@watson.ibm.com>
1151 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1152 Implemented missing functions for GTK2.
1153 Added error handling.
1154 Renamed static functions out of the g_ namespace.
1155 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1156 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1157 Rewrote global-reference code.
1158 Eliminated cascading errors.
1159 (mutex_trylock_jni_impl) Fully implemented.
1160 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1162 (setup_cache) New function.
1163 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1164 bug where they were not unlocking the GMutex associated with the
1165 condition variable during the wait on that condition variable.
1167 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1168 native/jni/gtk-peer/gthread-jni.c,
1169 native/jni/gtk-peer/gthread-jni.h
1170 (g_thread_jni_functions): Renamed to ...
1171 (portable_native_sync_jni_functions): this name.
1172 (gdk_vm): Renamed to...
1173 (the_vm): this name.
1175 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1176 (gdk_vm): Removed duplicate definition.
1177 (gtkInit): Removed stray message to stdout.
1178 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1179 (gtkInit): Fix a const assignment bug.
1180 (gtkInit): Simplified code.
1182 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1183 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1184 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1185 gnu/java/awt/peer/gtk/GThreadMutex.java:
1188 2004-08-31 Mark Wielaard <mark@klomp.org>
1190 * javax/swing/Box.java: Put FIXME comment above class declaration.
1191 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1192 * javax/swing/JCheckBox.java: Likewise.
1193 * javax/swing/JDialog.java: Likewise.
1194 * javax/swing/JRadioButton.java: Likewise.
1195 * javax/swing/JToggleButton.java: Likewise.
1196 * javax/swing/UIManager.java: Likewise.
1197 * javax/swing/border/TitledBorder.java: Likewise.
1198 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1199 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1200 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1201 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1202 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1203 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1204 * javax/swing/text/JTextComponent.java: Likewise.
1206 2004-08-31 David Jee <djee@redhat.com>
1209 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1210 (setIconImage): Add a FIXME for unhandled cases.
1212 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1215 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1216 getModifiers. Replace old button masks with new ones.
1217 * gnu/awt/xlib/XEventLoop.java: Likewise.
1218 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1219 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1220 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1221 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1222 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1223 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1224 * java/awt/Component.java: Replace old modifier masks with new
1226 * java/awt/Container.java: Call getModifiersEx, not
1228 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1230 * javax/swing/JMenuItem.java: Replace old button masks with new
1232 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1234 * javax/swing/SwingUtilities.java: Likewise.
1235 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1236 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1237 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1238 mask macros with new ones.
1239 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1240 macros with new ones representing new masks.
1242 2004-08-31 Craig Black <craig.black@aonix.com>
1244 * gnu/java/awt/peer/gtk/GdkGraphics.java
1245 (drawRoundRect): Implemented.
1246 (fillRoundRect): Implemented.
1247 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1248 (drawRoundRect): Reimplemented to match GdkGraphics.
1249 (fillRoundRect): Reimplemented to match GdkGraphics.
1251 2004-08-31 Mark Wielaard <mark@klomp.org>
1253 * Makefile.in: Regenerated.
1255 2004-08-31 Michael Koch <konqueror@gmx.de>
1257 * gnu/java/awt/EmbeddedWindow.java
1258 (addNotify): Use AccessController to allow execution of privileged
1261 2004-08-31 Michael Koch <konqueror@gmx.de>
1263 * gnu/java/awt/EmbeddedWindow.java
1265 (addNotify): Set peer via reflection.
1266 (setWindowPeer): Removed.
1267 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1268 * Makefile.am (nat_source_files):
1269 Removed gnu/java/awt/natEmbeddedWindow.cc.
1271 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1273 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1274 and gnu/java/security/action/SetAccessibleAction.java.
1276 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1278 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1279 Renamed from 'setName'. New 2-argument form with default value.
1280 (run): Pass default 'value' parameter to System.getProperty().
1281 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1284 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1286 * gnu/java/security/action/GetPropertyAction.java: New class.
1287 * gnu/java/security/action/SetAccessibleAction.java: New class.
1289 2004-08-31 David Jee <djee@redhat.com>
1291 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1292 (setIconImage): Check if image is null.
1294 2004-08-31 David Jee <djee@redhat.com>
1296 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1297 (create): Set the icon image.
1298 (nativeSetIconImage): New native method declaration.
1299 (setIconImage): Implement.
1300 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1301 (nativeSetIconImage): New function.
1303 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1305 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1306 (filenameFilterCallback): Declare local variable accepted before use.
1308 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1310 * gnu/java/awt/ComponentDataBlitOp.java:
1313 2004-08-31 Tom Tromey <tromey@redhat.com>
1315 * gnu/java/awt/peer/GLightweightPeer.java,
1316 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1317 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1318 javax/swing/JScrollPane.java: Removed
1321 2004-08-31 David Jee <djee@redhat.com>
1323 * java/awt/DefaultKeyboardFocusManager.java
1324 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1325 event. Fix shift modifier checking.
1326 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1327 (accel_attach): Remove.
1328 (setupAccelGroup): Remove calls to accel_attach.
1330 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1332 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1333 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1335 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1337 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1338 * Makefile.in: Regenerate.
1339 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1340 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1341 (create(String)): New method.
1342 (create): Call new create method.
1343 (getArgs): Remove method.
1344 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1345 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1346 (nativeCreate): Rename to create.
1347 (gtkSetLabel): Rename to gtkButtonSetLabel.
1348 (gtkToggleButtonSetActive): New method.
1349 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1350 (setState): Replace set call with gtkToggleButtonSetActive.
1351 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1352 (getArgs): Remove method.
1353 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1354 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1355 (gtkWidgetSetSensitive): New method.
1356 (gtkWidgetSetParent): Likewise.
1357 (GtkComponentPeer): Call setParent, setComponentBounds and
1358 setVisibleAndEnabled.
1359 (setParent): New method.
1360 (setComponentBounds): New method.
1361 (setVisibleAndEnabled): New method.
1362 (setEnabled): Call gtkWidgetSetSensitive.
1363 (getArgs): Remove method.
1364 Remove all set methods.
1365 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1366 gtkWindowSetModal, setTitle and setResizable.
1367 (getArgs): Remove method.
1368 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1369 (setComponentBounds): New method.
1370 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1371 Replace set call with gtkWindowSetResizable.
1372 (getArgs): Remove method.
1373 (create): Call setTitle and setResizable.
1374 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1375 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1376 (gtkWindowSetTitle): New method.
1377 (gtkWindowSetResizable): New method.
1378 (gtkWindowSetModal): New method.
1379 (setParent): New method.
1380 (setVisibleAndEnabled): New method.
1381 (getArgs): Remove method.
1382 (setTitle): Call gtkWindowSetTitle.
1383 (setResizable): Call gtkWindowSetResizable.
1384 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1385 and off locking instrumentation.
1387 2004-08-31 Kim Ho <kho@redhat.com>
1389 * Makefile.am: Add new file.
1390 * Makefile.in: Regenerate.
1391 * gcj/Makefile.in: Regenerate
1392 * include/Makefile.in:
1393 * java/awt/Container.java:
1394 (acquireComponentForMouseEvent): Respect
1395 the event mask when looking for candidate.
1396 * javax/swing/JComponent.java:
1397 Remove toolTip field.
1398 (createToolTip): Create a tooltip on demand.
1399 (setToolTipText): Register with the ToolTipManager.
1400 (getToolTipText(MouseEvent)): Return getToolTipText().
1401 * javax/swing/JToolTip.java: Implement.
1402 * javax/swing/Timer.java: Jalopy.
1403 (restart): Call stop, then start.
1404 (stop): Interrupt the timer rather than wait for
1405 the timer to come to a stop naturally.
1406 * javax/swing/ToolTipManager.java: Implement.
1407 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1408 Change ToolTip.background color.
1409 * javax/swing/plaf/basic/BasicToolTipUI.java:
1411 * testsuite/Makefile.in: Regenerate
1413 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
1415 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1416 constructor param comments.
1418 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1420 * java/awt/Component.java: Document AWT 1.0 event handler
1423 2004-08-31 Roman Kennke <roman@ontographics.com>
1425 * javax/swing/Box.java:
1426 (createGlue): Implemented
1427 (createHorizontalGlue): Implemented
1428 (createHorizontalStrut): Implemented
1429 (createVerticalGlue): Implemented
1430 (createVerticalStrut): Implemented
1432 2004-08-31 David Jee <djee@redhat.com>
1434 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1435 (GtkChoicePeer): Do not automatically select first item.
1436 (getHistory): Remove.
1437 (nativeGetSelected): New method.
1438 (nativeRemoveAll): New method.
1439 (add): Use nativeGetSelected() instead of getHistory().
1441 (removeAll): Call nativeRemoveAll().
1442 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1443 (create): Migrate to GtkComboBox.
1445 (nativeAdd): Likewise.
1446 (nativeRemove): Likewise.
1448 (nativeRemoveAll): New method.
1449 (nativeGetSelected): New method.
1450 (selection_changed): New method.
1451 (getHistory): Remove.
1452 (item_activate): Remove.
1453 (item_removed): Remove.
1454 (connect_choice_item_selectable_hook): Remove.
1456 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1458 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1459 variable in setEditable call.
1461 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1462 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1463 (gtkWidgetSetBackground): New method.
1464 (gtkWidgetSetForeground): Likewise.
1465 (create): Set peer's editable state based on awtComponent's.
1467 * java/awt/Button.java (Button()): Use empty string rather than
1468 null in no-label constructor.
1470 2004-08-31 Roman Kennke <roman@ontographics.com>
1472 * javax/swing/BoxLayout.java: Reimplement.
1474 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1476 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1477 gnu_java_awt_peer_gtk_GdkGraphics.c
1478 (initState(GtkComponentPeer)): Don't return array of colour
1480 (GdkGraphics(int,int)): Set default font to size 12.
1481 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1482 component's foreground colour.
1483 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1484 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1485 (initState(GtkComponentPeer)): Don't return array of colour
1487 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1488 colours to component's colours.
1489 (current_colors_of_widget): Remove function.
1490 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1491 Return a new graphics object.
1492 * java/awt/Font.java (toString): Fix format.
1493 * java/awt/Graphics.java (toString): Likewise.
1495 2004-08-31 Craig Black <craig.black@aonix.com>
1497 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1498 (addTearOff): New function.
1499 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1501 (init): Call addTearOff() when menu.isTearOff().
1503 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1505 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
1506 Default implementation.
1507 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
1508 Implement using GdkPixbufDecoder.
1510 2004-08-31 David Jee <djee@redhat.com>
1512 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1513 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
1514 setting the size of GtkFileDialogPeers.
1515 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1516 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
1517 use their default sizes rather than their natural requisitions.
1519 2004-08-31 Michael Koch <konqueror@gmx.de>
1521 * javax/swing/JFormattedTextField.java
1522 (JFormattedTextField): Implemented.
1523 * javax/swing/text/DefaultEditorKit.java
1524 (BeepAction): New inner class.
1525 * javax/swing/text/Segment.java
1526 (partialReturn): New field.
1527 (setPartialReturn): New method.
1528 (isPartialReturn): Likewise.
1529 * javax/swing/text/View.java
1530 (createFragment): Fixed typo.
1531 (getStartOffset): New method.
1532 (getEndOffset): Likewise.
1534 2004-08-31 Michael Koch <konqueror@gmx.de>
1536 * javax/swing/table/DefaultTableColumnModel.java
1537 (serialVersionUID): Made private.
1538 (listenerList): Initialize.
1539 (changeEvent): Initialize.
1540 * javax/swing/table/JTableHeader.java
1541 (JTableHeader): New constructors.
1542 (createDefaultColumnModel): New method.
1543 * javax/swing/table/TableColumn.java
1544 (setHeaderRenderer): Simplified code.
1545 (setCellRenderer): Likewise.
1546 (setWidth): Likewise.
1548 2004-08-31 Tom Tromey <tromey@redhat.com>
1550 * java/text/AttributedString.java (AttributedString): Use
1551 ArrayList to build array of attribute ranges. Don't use
1552 `attribs' before it is set.
1554 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1556 * HACKING: Remove reference to special automake. No longer needed.
1558 2004-08-30 Tom Tromey <tromey@redhat.com>
1560 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
1561 return result from `add'.
1563 2004-08-30 Tom Tromey <tromey@redhat.com>
1565 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
1567 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1569 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
1571 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
1573 * java/io/File.java File(String,String): Fixed handling of empty
1576 2004-08-30 Casey Marshall <csm@gnu.org>
1578 Author e-mail updated for all files.
1579 * gnu/java/security/OID.java (equals): Test if the aurgment is an
1581 (compareTo): Use `equals'.
1582 * gnu/java/security/der/BitString.java (equals): Test if the
1583 argument is an instance of BitString.
1584 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
1585 class final. Made fields private.
1586 (<init>): New constructor.
1588 (makeString): Made static; don't use NIO.
1589 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
1590 * gnu/java/security/der/DERWriter.java: Fixed imports.
1591 (writeString): Don't use NIO.
1592 (toIso88591, toUtf16Be, toUtf8): New methods.
1593 * gnu/java/security/der/DERValue.java: Formatting changes only.
1594 * gnu/java/security/der/DER.java: Likewise.
1596 2004-08-30 Tom Tromey <tromey@redhat.com>
1598 * java/nio/CharBuffer.java (put): Fix typo.
1599 * java/nio/DoubleBuffer.java (put): Fix typo.
1600 * java/nio/FloatBuffer.java (put): Fix typo.
1601 * java/nio/IntBuffer.java (put): Fix typo.
1602 * java/nio/LongBuffer.java (put): Fix typo.
1603 * java/nio/ShortBuffer.java (put): Fix typo.
1605 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
1607 * java/nio/ByteBuffer.java (put): Fix typo.
1609 2004-08-30 Casey Marshall <csm@gnu.org>
1611 * java/security/DummyKeyPairGenerator.java (clone): Removed
1612 useless instanceof check.
1613 * java/security/DummyMessageDigest.java (clone): Likewise.
1614 * java/security/DummySignature.java (clone): Likewise.
1615 * java/security/MessageDigest.java (clone): Remove useless
1617 * java/security/MessageDigestSpi.java (clone): Likewise.
1618 * java/security/Signature.java (clone): Provide meaningful
1620 * java/security/SignatureSpi.java (clone): Likewise.
1622 2004-08-29 Mark Wielaard <mark@klomp.org>
1624 * java/util/Arrays.java
1625 (sort(byte[], int, int)): Check fromIndex < 0.
1626 (sort(char[], int, int)): Likewise.
1627 (sort(short[], int, int)): Likewise.
1628 (sort(int[], int, int)): Likewise.
1629 (sort(long[], int, int)): Likewise.
1630 (sort(float[], int, int)): Likewise.
1631 (sort(double[], int, int)): Likewise.
1632 (sort(Object[], int, int, Comparator)): Likewise.
1633 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
1634 (qsort(char[], int, int)): Likewise.
1635 (qsort(short[], int, int)): Likewise.
1636 (qsort(int[], int, int)): Likewise.
1637 (qsort(long[], int, int)): Likewise.
1638 (qsort(float[], int, int)): Likewise.
1639 (qsort(double[], int, int)): Likewise.
1641 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
1643 * java/util/AbstractCollection.java, java/util/AbstractList.java,
1644 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
1645 java/util/ArrayList.java, java/util/Arrays.java,
1646 java/util/BitSet.java, java/util/Calendar.java,
1647 java/util/Collection.java, java/util/ListIterator.java,
1648 java/util/Map.java, java/util/SortedSet.java:
1649 Added additional exceptions to documentation, along
1650 with some additions and corrections.
1652 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
1654 * configure.ac: Handle --enable-gc-debug.
1655 * configure: Regenerate.
1656 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
1657 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
1658 Rearrange include file order.
1659 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
1660 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
1661 (disable_gc_mutex): Delete along with all references.
1662 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
1663 adjust for debug header size.
1664 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
1666 (_Jv_AllocArray): Declare min_heap_addr only if needed.
1667 (gcj_describe_type_fn): New.
1668 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
1669 Register gcj_describe_type_fn.
1670 * include/boehm-gc.h:
1671 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
1672 Don't define, but declare, for debug case.
1673 * java/lang/natObject.cc:
1674 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
1676 2004-08-26 Mark Wielaard <mark@klomp.org>
1678 Fixes PR libgcj/17002:
1679 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
1680 a TimeZoneId string and then try to convert that to a TimeZone with
1681 getDefaultSystemTimeZone(String).
1682 (timezones0): Changed type from Hashtable to HashMap.
1683 (timezones): Create HashMap, not Hashtable.
1684 (getDefaultTimeZone): New method, rewritten from CNI version.
1685 (readTimeZoneFile): New method.
1686 (readtzFile): Likewise.
1687 (skipFully): Likewise.
1688 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
1689 getDefaultTimeZoneId and rewritten.
1690 (getDefaultTimeZoneId): Rewritten in java.
1692 2004-08-25 David Daney <daney@avtrex.com>
1694 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
1695 * Makefile.in: Regenerated.
1697 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
1699 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
1700 only if jvmpi is enabled.
1701 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
1702 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
1703 (_Jv_AllocString): Likewise.
1704 (_Jv_AllocPtrFreeObject): Likewise.
1706 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
1708 * defineclass.cc: Include <stdio.h>.
1709 * java/lang/natClassLoader.cc: Include <stdio.h>.
1711 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
1712 Michael Koch <konqueror@gmx.de>
1714 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
1715 * Makefile.in: Regenerated.
1717 2004-08-20 Michael Koch <konqueror@gmx.de>
1719 * configure.ac: Replaced all AC_TRY_COMPILE macros with
1720 AC_COMPILE_IFELSE macros.
1722 2004-08-20 Michael Koch <konqueror@gmx.de>
1724 * configure.in: Renamed to configure.ac.
1725 * configure.ac: New file.
1726 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
1727 include/config.h.in, testsuite/Makefile.in: Regenerated.
1729 2004-08-20 Michael Koch <konqueror@gmx.de>
1731 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
1732 * aclocal.m4, configure: Regenerated.
1734 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
1735 Michael Koch <konqueror@gmx.de>
1737 * configure.in, Makefile.am: Ported to automake 1.9.
1738 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
1739 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
1742 2004-08-19 Tom Tromey <tromey@redhat.com>
1744 * java/net/DatagramSocket.java: Fixed typo.
1746 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1749 * java/net/URI.java (string): New field. Make all other fields
1751 (readObject): Implemented.
1752 (writeObject): Implemented.
1753 (URI): Set 'string'.
1755 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1758 * java/util/logging/Handler.java (isLoggable): Accept record if its
1759 log level equals the threshold level. From Robin Green.
1761 2004-08-18 David Daney <ddaney@avtrex.com>
1763 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
1766 2004-08-17 Michael Koch <konqueror@gmx.de>
1768 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
1769 * Makefile.in: Regenerated.
1771 2004-08-16 Tom Tromey <tromey@redhat.com>
1774 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
1776 2004-08-16 Michael Koch <konqueror@gmx.de>
1779 (math_c_files): Renamed from c_files.
1780 (math_c_source_files): Renamed from c_source_files.
1783 include/Makefile.in,
1784 testsuite/Makefile.in: Regenerated.
1786 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
1788 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
1789 to avoid autoconf warning.
1790 * configure: Rebuilt.
1792 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
1794 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
1795 localhostAddress to loopbackAddress.
1796 * java/net/natInetAddressWin32.cc (lookup): Likewise.
1798 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1800 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
1801 boehm-gc's include dirs.
1802 * configure: Rebuilt.
1803 * include/boehm-gc.h: Include gc_config.h.
1805 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1807 * java/net/InetAddress.java (loopbackAddress): Renamed from
1809 (getByName): Return loopback address for null hostname, without
1810 security check. Use lookup(), not getAllByName.
1811 (getAllByName): Return loopback address for null hostname, without
1813 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
1816 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1819 Reported by Robin Green.
1820 * defineclass.cc (handleField): Don't throw exception on unrecognised
1821 modifier. Add FIXME comments for spec compliance.
1822 (handleMethod): Likewise.
1824 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
1827 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
1828 (Almost everywhere): add LOG calls, fix, add comments.
1829 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
1830 Add explicit check for LOCKED bit in slow case (PR 16662).
1831 (_Jv_MonitorExit): Add casts in debug-only code.
1832 Always release LOCKED bit before throwing exception.
1833 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
1834 isn't. Handle easy cases without lock acquisition.
1835 (Object::wait): Use NotifyAll for lock inflation.
1837 2004-08-12 David Daney <ddaney@avtrex.com>
1839 * testsuite/libjava.lang/Process_1.java: New test.
1840 * testsuite/libjava.lang/Process_2.java: New test.
1841 * testsuite/libjava.lang/Process_3.java: New test.
1842 * testsuite/libjava.lang/Process_4.java: New test.
1843 * testsuite/libjava.lang/Process_5.java: New test.
1844 * testsuite/libjava.lang/Process_6.java: New test.
1845 * testsuite/libjava.lang/Process_1.out: Expected result.
1846 * testsuite/libjava.lang/Process_2.out: Expected result.
1847 * testsuite/libjava.lang/Process_3.out: Expected result.
1848 * testsuite/libjava.lang/Process_4.out: Expected result.
1849 * testsuite/libjava.lang/Process_5.out: Expected result.
1850 * testsuite/libjava.lang/Process_6.out: Expected result.
1852 2004-08-12 David Daney <ddaney@avtrex.com>
1855 * java/lang/PosixProcess.java: Rewrote.
1856 * java/lang/natPosixProcess.cc: Rewrote.
1857 * java/lang/Runtime.java (execInternal): Declare throws IOException.
1858 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
1859 * posix-threads.cc (block_sigchld) New function.
1860 (_Jv_ThreadRegister) Use it.
1861 (_Jv_ThreadStart) Use it.
1862 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
1863 * Makefile.am: ... to specify extra native headers.
1864 * configure: Regenerated.
1865 * include/config.h: Regenerated.
1866 * Makefile.in: Regenerated.
1867 * gcj/Makefile.in: Regenerated.
1868 * include/Makefile.in: Regenerated.
1869 * testsuite/Makefile.in: Regenerated.
1871 2004-08-12 Diego Novillo <dnovillo@redhat.com>
1873 PR tree-optimization/16867
1874 * testsuite/libjava.lang/PR16867.java: New test.
1876 2004-08-09 Per Bothner <per@bothner.com>
1878 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
1879 with private fields and access methods.
1880 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
1881 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
1882 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
1883 ( _Jv_makeUtf8Const): Rewrite using new constructors.
1884 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
1885 * defineclass.cc: Use new _Utf8Const access/convenience methods.
1887 * resolve.cc: Likewise.
1888 * gcj/field.h: Likewise.
1889 * include/jvm.h: Likewise.
1890 * java/lang/Class.h: Likewise.
1891 * java/lang/natClass.cc: Likwise.
1892 * java/lang/natClassLoader.cc: Likewise
1893 * java/lang/reflect/natMethod.cc: Likewise
1894 * verify.cc: Likewise.
1895 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
1896 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
1898 2004-08-10 Andrew Haley <aph@redhat.com>
1900 * testsuite/libjava.lang/err14.java: New file.
1901 * testsuite/libjava.lang/err14.out: New file.
1903 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
1905 * Makefile.am: Fix missing rename from x_nat_headers to
1907 * Makefile.in: Regenerated.
1909 2004-08-04 Andrew Haley <aph@redhat.com>
1911 * java/security/BasicPermission.java: Don't check wildcards.
1913 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
1914 Michael Koch <konqueror@gmx.de>
1916 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
1917 * configure.in: Replaced all usages of AC_LINK_FILES by
1920 configure: Regenerated.
1922 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
1923 Michael Koch <konqueror@gmx.de>
1925 * acconfig.h: Removed.
1926 * Makefile.am: Rename variables for xlib peer to include xlib and
1927 gtk_c_headers to gtk_jni_headers.
1928 * Makefile.in: Regenerated.
1930 2004-08-04 Andrew Haley <aph@redhat.com>
1932 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
1935 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
1937 * configure.in: Eliminate uses of changequote (mostly by quoting []).
1938 Replace most top level 'dnl' comments with '#' comments, conforming
1939 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
1941 * configure: Rebuilt.
1943 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
1945 * acinclude.m4: Include no-executables.m4.
1946 * aclocal.m4: Rebuild.
1947 * configure.in: Convert to the autoconf 2.59 version of
1948 of the no-executables hack, and also of the nonstandard CXX
1949 hack and the multilibbed CC and CXX hack. Change prerequisite
1951 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
1952 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1953 testsuite/Makefile.in: Regenerate.
1955 2004-08-03 Tom Tromey <tromey@redhat.com>
1957 * jni.cc: Reindented.
1959 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
1961 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
1963 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
1965 * testsuite/libjava.compile/PR16701.java: New test.
1967 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
1969 * java/util/Collection.java, java/util/List.java,
1970 java/util/Map.java, java/util/Set.java,
1971 java/util/SortedMap.java, java/util/SortedSet.java:
1972 Added additional exceptions to documentation.
1974 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
1977 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
1978 * configure. Regenerate.
1979 * include/win32.h: Explicitly include winsock2.h
1980 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
1983 2004-07-30 Michael Koch <konqueror@gmx.de>
1985 * java/util/zip/GZIPInputStream.java
1986 (GZIPInputStream): Increase buffer size to 4k.
1987 * java/util/zip/GZIPOutputStream.java
1988 (GZIPOutputStream): Likewise.
1989 * java/util/zip/Inflater.java
1990 (setInput): Merged formating with GNU classpath.
1991 * java/util/zip/InflaterInputStream.java
1992 (InflaterInputStream): Increase buffer size to 4k.
1993 (fill): Throw exception if stream ends early.
1994 (read): Merged endless-loop with GNU classpath.
1995 (skip): Increase buffer size to 2k.
1997 2004-07-30 Michael Koch <konqueror@gmx.de>
1999 * gnu/java/awt/EmbeddedWindow.java
2000 (addNotify): Use AccessController to allow execution of privileged
2003 2004-07-29 Michael Koch <konqueror@gmx.de>
2005 * gnu/java/lang/MainThread.java:
2006 Explicitely import used classes.
2007 (args): Make it type String[].
2009 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2011 * gnu/java/awt/ComponentDataBlitOp.java,
2012 gnu/java/beans/ExplicitBeanInfo.java,
2013 gnu/java/beans/IntrospectionIncubator.java,
2014 gnu/java/beans/editors/ColorEditor.java,
2015 gnu/java/beans/editors/FontEditor.java,
2016 gnu/java/beans/editors/NativeBooleanEditor.java,
2017 gnu/java/beans/editors/NativeByteEditor.java,
2018 gnu/java/beans/editors/NativeDoubleEditor.java,
2019 gnu/java/beans/editors/NativeFloatEditor.java,
2020 gnu/java/beans/editors/NativeIntEditor.java,
2021 gnu/java/beans/editors/NativeLongEditor.java,
2022 gnu/java/beans/editors/NativeShortEditor.java,
2023 gnu/java/beans/editors/StringEditor.java,
2024 gnu/java/io/ClassLoaderObjectInputStream.java,
2025 gnu/java/io/decode/Decoder.java,
2026 gnu/java/io/encode/Encoder.java,
2027 gnu/java/lang/ClassHelper.java,
2028 gnu/java/locale/Calendar.java,
2029 gnu/java/locale/Calendar_de.java,
2030 gnu/java/locale/Calendar_en.java,
2031 gnu/java/locale/Calendar_nl.java,
2032 gnu/java/locale/LocaleInformation_de.java,
2033 gnu/java/locale/LocaleInformation_en.java,
2034 gnu/java/locale/LocaleInformation_nl.java:
2037 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2039 * README: Remove obsolete info. Update bug URL.
2041 * NEWS: Updated with news up to GCC 3.4 release.
2043 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2045 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2046 Renamed from 'setName'. New 2-argument form with default value.
2047 (run): Pass default 'value' parameter to System.getProperty().
2048 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2050 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2053 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2055 * configure.in: Check for minimum GTK version 2.4 requirement.
2056 * configure: Rebuilt.
2058 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2060 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2061 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2063 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2065 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2066 address. Reduce sleep times. Synchronize with target threads before
2067 attempting to interrupt them. Don't try to calibrate yeild count,
2068 instead, always loop for a fixed time.
2069 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2070 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2071 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2072 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2073 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2074 * testsuite/libjava.lang/pr179.java: Likewise.
2075 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2076 time. Remove upper bounds check on sleep time.
2078 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2080 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2081 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2083 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2085 * java/io/File.java (toURI): Throw RuntimeException, not
2087 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2088 class name, not instance.
2090 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2092 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2093 and gnu/java/security/action/SetAccessibleAction.java.
2094 * Makefile.in: Rebuilt.
2096 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2098 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2099 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2101 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2102 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2103 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2105 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2107 * Makefile.am: Replace jar, rmic and rmiregistry references with
2108 gjar, grmic and grmiregistry.
2109 * configure.in: Likewise.
2110 * Makefile.in: Regenerate.
2111 * configure: Likewise.
2112 * gcj/Makefile.in: Likewise.
2113 * include/Makefile.in: Likewise.
2114 * testsuite/Makefile.in: Likewise.
2116 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2118 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2119 for privileged getProperty calls.
2120 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2121 SetAccessibleAction instead of anonymous class for doPrivileged call.
2122 (getMethod): Likewise.
2123 (setAccessible): New field. PrivilegedAction object to use when
2124 calling setAccessible.
2125 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2126 SetAccessibleAction instead of anonymous class for diPrivileged call.
2127 (setFields): Likewise.
2128 (getClassUID): Likewise.
2129 (findMethod): Likewise.
2130 * gnu/java/security/action/GetPropertyAction.java: New class.
2131 * gnu/java/security/action/SetAccessibleAction.java: New class.
2133 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2135 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2137 * testsuite/libjava.lang/Serialization.java: New test.
2138 * testsuite/libjava.lang/Serialization.out: New.
2140 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2142 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2143 missed in last commit.
2145 2004-07-23 Mark Wielaard <mark@klomp.org>
2147 * java/lang/System.java (static): Set http.agent system property when
2149 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2150 from system property inside AccessController.doPrivileged() call.
2151 (proxyPort): Made package private.
2152 (proxyInUse): Likewise.
2153 (proxyHost): Likewise.
2154 (userAgent): Likewise.
2156 2004-07-23 Mark Wielaard <mark@klomp.org>
2158 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2161 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2163 * Makefile.am (ordinary_java_source_files): Add
2164 DefaultContentHandlerFactory.java.
2165 * Makefile.in: Rebuilt.
2166 * java/net/URLConnection.java (defaultFactory): New field.
2168 (getContentHandler): Renamed from 'setContentHandler'. Try
2169 defaultFactory after user-set factory, if any. Search for content
2170 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2171 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2173 (getLastModified): Implemented.
2174 (getPermission): Create file permission here, instead of in
2176 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2178 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2180 (getLastModified): Implemented.
2181 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2182 Default implementation.
2183 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2184 Implement using GdkPixbufDecoder.
2186 2004-07-21 Michael Koch <konqueror@gmx.de>
2188 * javax/swing/JTextArea.java
2189 (setLineWrap): Fire property change event after new value is set.
2190 (setTabSize): Likewise.
2192 2004-07-21 Michael Koch <konqueror@gmx.de>
2194 * javax/swing/JTable.java
2195 (autoCreateColumnsFromModel): New field.
2196 (autoResizeMode): Likewise.
2197 (cellEditor): Likewise.
2198 (cellSelectionEnabled): Likewise.
2199 (columnModel): Likewise.
2200 (dataModel): Likewise.
2201 (defaultEditorsByColumnClass): Likewise.
2202 (defaultRenderersByColumnClass): Likewise.
2203 (editingColumn): Likewise.
2204 (editingRow): Likewise.
2205 (gridColor): Likewise.
2206 (preferredViewportSize): Likewise.
2207 (rowHeight): Likewise.
2208 (rowMargin): Likewise.
2209 (rowSelectionAllowed): Likewise.
2210 (selectionBackground): Likewise.
2211 (selectionForeground): Likewise.
2212 (selectionModel): Likewise.
2213 (showHorizontalLines): Likewise.
2214 (showVerticalLines): Likewise.
2215 (tableHeader): Likewise.
2216 (JTable): Implemented.
2217 (getColumnModel): Likewise.
2218 (getSelectedRow): Likewise.
2219 (getSelectionModel): Likewise.
2220 (setModel): Likewise.
2221 (setSelectionModel): Likewise.
2222 (createScrollPaneForTable): New method.
2223 (createDefaultDataModel): Likewise.
2224 (createDefaultListSelectionModel): Likewise.
2225 (getModel): Likewise.
2226 (getTableHeader): Likewise.
2227 (setTableHeader): Likewise.
2228 (getColumnSelectionAllowed): Likewise.
2229 (setColumnSelectionAllowed): Likewise.
2230 (getRowSelectionAllowed): Likewise.
2231 (setRowSelectionAllowed): Likewise.
2232 (getAutoResizeMode): Likewise.
2233 (setAutoResizeMode): Likewise.
2234 (getColumnCount): Likewise.
2235 (getRowCount): Likewise.
2236 (getCellRenderer): Likewise.
2237 * javax/swing/JTree.java
2238 (cellRenderer): New field.
2239 (editable): Likewise.
2240 (rootVisible): Likewise.
2241 (showsRootHandles): Likewise.
2242 (getModel): New method.
2243 (setModel): Likewise.
2244 (isEditable): Likewise.
2245 (setEditable): Likewise.
2246 (isRootVisbile): Likewise.
2247 (setRootVisible): Likewise.
2248 (getShowsRootHandles): Likewise.
2249 (setShowRootHandles): Likewise.
2250 (getCellRenderer): Likewise.
2251 (setCellRenderer): Likewise.
2253 2004-07-21 Michael Koch <konqueror@gmx.de>
2255 * javax/swing/JFormattedTextField.java
2256 (setDocument): Implemented.
2257 * javax/swing/JRootPane.java:
2259 * javax/swing/JTable.java
2260 (getDefaultRenderer): New method.
2261 * javax/swing/JTextField.java
2262 (setFont): Likewise.
2263 (getPreferredSize): Likewise.
2264 * javax/swing/JToggleButton.java
2265 (getAccessibleContext): Fix javadoc.
2266 * javax/swing/JTree.java:
2268 * javax/swing/JViewport.java:
2271 2004-07-21 David Jee <djee@redhat.com>
2273 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2274 Collect all native method declaration at the top.
2275 (create): Set the filename filter if necessary.
2276 (setDirectory): Call nativeSetDirectory().
2277 (setFilenameFilter): Implement.
2278 (filenameFilterCallback): New method.
2279 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2280 (create): Configure dialog to show hidden files.
2281 (filenameFilterCallback): New function.
2282 (nativeSetFilenameFilter): New function.
2283 (nativeSetDirectory): New function.
2285 2004-07-21 Kim Ho <kho@redhat.com>
2287 * javax/swing/plaf/basic/BasicSliderUI.java:
2289 (paintTrack): Fill the track before painting
2292 2004-07-21 Graydon Hoare <graydon@redhat.com>
2294 patch from Roman Kennke <roman@ontographics.com>
2295 * javax/swing/Spring.java: New file.
2296 * javax/swing/SpringLayout.java: New file.
2297 * Makefile.am: Add new files.
2298 * Makefile.in: Regenerate.
2300 2004-07-21 Graydon Hoare <graydon@redhat.com>
2302 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2303 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2304 * javax/swing/ScrollPaneLayout.java: Likewise.
2306 2004-07-21 Kim Ho <kho@redhat.com>
2308 * javax/swing/DefaultDesktopManager.java:
2309 (findMinimum): Removed.
2310 (resizeFrame): Trust the UI to pass valid
2312 * javax/swing/JOptionPane.java:
2313 Implemented showInternalXXXDialog methods.
2314 (startModal): New method.
2315 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2316 (BorderListener::mouseDragged): Verify that the new
2317 bounds are valid before passing them to the DesktopManager.
2318 (preferredLayoutSize): Delegate
2320 (minimumLayoutSize): Ditto.
2321 (getSize): New method.
2322 (GlassPaneDispatcher): Reimplemented by copying
2323 a stripped down LightweightDispatcher from Container.
2324 (getMinimumSize): Call minimumLayoutSize.
2325 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2327 (mousePressed): Add ability to properly close
2329 * javax/swing/plaf/basic/BasicToolBarUI.java:
2330 (DragWindow): Set owner for DragWindow.
2332 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2334 * java/awt/image/ShortLookupTable.java: New file.
2335 * java/awt/image/ByteLookupTable.java: New file.
2336 * Makefile.am: Added new files.
2337 * Makefile.in: Regenerated.
2339 2004-07-21 David Jee <djee@redhat.com>
2341 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2342 (create(GtkContainerPeer)): New native method.
2343 (create()): Call native create(), passing in the parent frame
2344 as the paramter. Natively set the current file and directory.
2345 (setFile): Construct an absolute filename before passing it to
2347 (nativeGetDirectory): New method.
2348 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2349 (window_closed): Removed.
2350 (ok_clicked): Likewise.
2351 (cancel_clicked): Likewise.
2352 (handle_response): New method.
2353 (create): Use GtkFileChooserDialog.
2354 (connectSignals): Connect to handle_response.
2355 (nativeGetDirectory): New method.
2356 (nativeSetFile): Use GtkFileChooserDialog.
2358 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2360 * java/awt/image/LookupTable.java: New file.
2361 * Makefile.am: Added new file.
2362 * Makefile.in: Regenerated.
2364 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2366 * java/awt/image/Kernel.java: New file.
2367 * Makefile.am: Added new file.
2368 * Makefile.in: Regenerated.
2370 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2372 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2373 * javax/swing/JMenu.java: Likewise.
2374 * javax/swing/JMenuBar.java: Likewise.
2375 (MARGIN_CHANGED_PROPERTY): New property.
2376 (setMargin): Implemented.
2377 * javax/swing/JMenuItem.java: Fixed javadocs.
2378 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2379 (LABEL_CHANGED_PROPERTY): New property.
2380 (add): changed to use createActionComponent.
2381 (createActionComponent): Implemented.
2382 (setLabel): Fire PropertyChangeEvent if label property
2384 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2385 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2386 (ContainerHandler): Repaint if margin property has changed.
2387 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2388 (installUI): Call installComponents().
2389 (uninstallUI): Call uinstallComponents().
2390 * javax/swing/plaf/basic/BasicMenuUI.java:
2392 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2395 2004-07-21 Kim Ho <kho@redhat.com>
2397 * javax/swing/plaf/basic/BasicToolBarUI.java:
2398 (DragWindow): Use the right constructor.
2400 2004-07-21 Kim Ho <kho@redhat.com>
2402 * javax/swing/JToolBar.java:
2403 (layoutContainer): Use getComponents.
2404 * javax/swing/plaf/basic/BasicToolBarUI.java:
2405 (DragWindow): Don't use SwingUtilities'
2407 (ToolBarDialog): ditto.
2409 2004-07-21 Kim Ho <kho@redhat.com>
2411 * javax/swing/JRootPane.java:
2413 (layoutContainer): Set the glasspane's size to
2414 be the same as the content pane.
2415 (createGlassPane): Set opaque property to false.
2417 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2419 * java/awt/Component.java (requestFocus()): Don't handle Panels
2421 (requestFocus(boolean)): Likewise.
2422 (requestFocusInWindow(boolean)): Likewise.
2423 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2424 Set GTK_CAN_FOCUS flag.
2426 2004-07-21 Kim Ho <kho@redhat.com>
2428 * Makefile.am: Added new file.
2429 * Makefile.in: Regenerated.
2430 * gcj/Makefile.in: Regenerated.
2431 * include/Makefile.in: Regenerated.
2432 * javax/swing/AbstractButton.java:
2433 Add rollOverEnabled property.
2434 (setRolloverEnabled): Use new property.
2435 (isRolloverEnabled): Use new property.
2436 * javax/swing/JTabbedPane.java:
2437 (setComponent): Remove useless JTabbedPane.this.
2438 * javax/swing/JToolBar.java: Finish implementation.
2439 * javax/swing/plaf/basic/BasicArrowButton.java:
2440 (paint): Moved border painting to a border.
2441 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2442 Change JToolBar look and feel defaults.
2443 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2444 (actionPerformed): Return Integer index instead of name.
2445 (addButtonComponents): Check to see if component is
2447 (createMessageArea): Don't use components that are not
2449 (getIconForType): Use temporary icons.
2450 * javax/swing/plaf/basic/BasicSliderUI.java:
2451 (mousePressed): Do not return if it's on thumb.
2452 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2453 (paintMinorTickForVertSlider): ditto.
2454 (paintMajorTickForHorizSlider): ditto.
2455 (paintMajorTickForVertSlider): ditto.
2456 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2457 Add a border around the SplitPaneDivider.
2458 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2460 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2461 New file. Implemented.
2462 * javax/swing/plaf/basic/BasicToolBarUI.java:
2464 * testsuite/Makefile.in: Regenerated.
2466 2004-07-21 Graydon Hoare <graydon@redhat.com>
2468 * javax/swing/Timer.java (run): Queue events each time cycle.
2470 2004-07-21 David Jee <djee@redhat.com>
2472 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2473 (imageComplete): Call image.imageComplete().
2474 * java/awt/image/MemoryImageSource.java:
2475 Reimplement consumers as a Vector instead of a Hashtable. This is
2476 because enumeration on a Hashtable is not thread-safe.
2477 (addConsumer): Adapt to Vector consumers.
2478 (isConsumer): Adapt to Vector consumers.
2479 (removeConsumer): Adapt to Vector consumers.
2480 (startProduction): Adapt to Vector consumers. Call imageComplete()
2481 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2482 (newPixels): Adapt to Vector consumers.
2483 (sendPicture): Set the color model of the image consumer.
2484 (newPixels(IIII)): Adapt to Vector consumers.
2485 (newPixels(IIIIB)): Adapt to Vector consumers.
2487 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2489 * java/awt/Component.java (deliverEvent): Implement.
2490 (postEvent): Implement.
2491 (handleEvent): Implement.
2492 (translateEvent): New method.
2493 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2494 * java/awt/Container.java (deliverEvent): Implement.
2495 * java/awt/Event.java (paramString): Fix formatting.
2496 * java/awt/Font.java (toString): Likewise.
2497 * java/awt/Window.java (postEvent): Implement.
2499 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2501 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2502 Set window's focus owner upon receiving a FOCUS_LOST event.
2503 * java/awt/Window.java (Window()): Refocus the previously
2504 focused component within the window when the window regains the
2506 (setFocusOwner): New method.
2507 * java/awt/Component.java (requestFocus): Add FIXME.
2509 * libgcj.pc.in: Remove library flags.
2511 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2513 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
2514 MOUSE_PRESSED event.
2515 * java/awt/Component.java (requestFocus()): Handle Panel
2516 specially. Post FOCUS_LOST event on opposite component.
2517 (requestFocus(boolean)): Likewise.
2518 (requestFocusInWindow(boolean)): Likewise.
2519 (paramString): Reorder dimension fields.
2520 * java/awt/Container.java (paramString): Fix string format.
2521 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2522 Handle FOCUS_LOST events. Don't handle Windows specially. Only
2523 process key events if the focus owner is non-null.
2524 (dispatchKeyEvent): Likewise.
2525 * java/awt/Frame.java (paramString): Fix formatting.
2526 (generateName): New method.
2527 (getUniqueLong): Likewise.
2528 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
2529 the temporary focus owner is null. If so, return the permanent
2531 * java/awt/Panel.java (generateName): New method.
2532 (getUniqueLong): Likewise.
2533 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
2534 signal handling to make callbacks more specific.
2536 2004-07-21 Michael Koch <konqueror@gmx.de>
2538 * javax/swing/text/Position.java
2539 (Bias): Implemented.
2541 2004-07-21 Michael Koch <konqueror@gmx.de>
2543 * javax/swing/LookAndFeel.java
2544 (provideErrorFeedback): New method.
2546 2004-07-21 Michael Koch <konqueror@gmx.de>
2548 * javax/swing/JTextArea.java
2549 (tabSize): New field.
2550 (getTabSize): New method.
2551 (setTabSize): Likewise.
2553 2004-07-21 Michael Koch <konqueror@gmx.de>
2555 * javax/swing/ActionMap.java:
2556 Fixed javadocs all over.
2557 (serialVersionUID): Made private.
2558 (parent): Don't explicitely initialize with default value.
2560 (keys): Reimplemented.
2561 (allKeys): Likewise.
2562 (convertSet): Removed.
2563 * javax/swing/ComponentInputMap.java:
2564 Fixed javadocs all over.
2565 (ComponentInputMap): Implemented.
2569 (SetParent): Likewise.
2570 (getComponent): Likewise.
2571 * javax/swing/InputMap.java:
2572 Fixed javadocs all over.
2573 (serialVersionUID): Made private.
2574 (parent): Don't explicitely initialize with default value.
2576 (keys): Reimplemented.
2577 (allKeys): Likewise.
2578 (convertSet): Removed.
2580 2004-07-21 Michael Koch <konqueror@gmx.de>
2582 * javax/swing/ActionMap.java,
2583 javax/swing/ComponentInputMap.java,
2584 javax/swing/InputMap.java,
2585 javax/swing/table/DefaultTableColumnModel.java,
2586 javax/swing/table/TableColumn.java,
2587 javax/swing/table/TableColumnModel.java,
2588 javax/swing/table/TableModel.java,
2589 javax/swing/text/AbstractDocument.java,
2590 javax/swing/text/TextAction.java:
2593 2004-07-21 Graydon Hoare <graydon@redhat.com>
2595 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
2596 Make method non-static.
2597 * javax/swing/AbstractButton.java:
2598 Rename fields to match property names where possible.
2599 (iconTextGap): New property.
2600 * javax/swing/JCheckBox.java: Match AbstractButton changes.
2601 (init) New method, call from after various constructors.
2602 * javax/swing/JComponent.java (revalidate):
2603 Invalidate before queueing repair.
2604 * javax/swing/JList.java (getPreferredScrollableViewportSize):
2605 Reimplement in terms of visibleRowCount property.
2606 * javax/swing/JMenuButton.java: Match AbstractButton changes.
2607 * javax/swing/JScrollPane.java (createScrollListener):
2608 Remove tracing chatter.
2609 * javax/swing/JToggleButton.java: Match AbstractButton changes.
2610 * javax/swing/RepaintManager.java (addInvalidComponent):
2612 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
2614 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
2615 Mimic sun behavior on top left/right positioning.
2616 * javax/swing/ViewportLayout.java (preferredLayoutSize):
2617 Remove mistaken use of preferredScrollableViewportSize here.
2618 (layoutContainer): Use view's preferred size as basis.
2619 * javax/swing/plaf/basic/BasicButtonUI.java:
2620 Set, get, and use textIconGap property.
2621 (paint) Paint text returned from layout (with ellipsis).
2622 * javax/swing/plaf/basic/BasicListUI.java:
2623 Remove tracing chatter, correct various minor calculations.
2624 (getCellBounds): Update layout state before calculating.
2625 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
2626 Use margin default similar to sun's.
2627 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
2628 (createIncreaseIcon): Center icon, minimize margins.
2629 (createDecreaseIcon): Likewise.
2630 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
2632 (installUI): Call it.
2633 (uninstallDefaults): Implement.
2634 (uninstallUI): Call it.
2635 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
2636 Call existing Window constructor.
2637 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
2638 Set clip before painting.
2640 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2642 * javax/swing/JMenuItem.java:
2643 (processMouseEvent): Reimplemented to deal with
2645 (createMenuDragMouseEvent): New private helper method.
2646 Creates MenuDragMouseEvent.
2647 * javax/swing/MenuSelectionManager.java
2648 (componentForPoint): Implemented.
2649 (isComponentPartOfCurrentMenu): Made public.
2650 (processMouseEvent): Reimplemented to deal with
2652 (setSelectedPath): Corrected small mistake that caused
2653 path to be set incorrectly.
2654 (getPath): If given component is JMenu then also add this
2655 menu's popup menu to the selected path.
2656 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2658 (getPreferredSize): Call getPreferredMenuItemSize().
2659 (getPreferredItemSize): Moved code from getPreferredSize to here.
2660 (installListeners): Install MouseMotionListeners.
2661 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
2662 if mouse wasn't released in the bounds of this menu item.
2663 (MenuDragMouseHandler): Implemented.
2664 * javax/swing/plaf/basic/BasicMenuUI.java:
2665 (installListeners): Install MouseMotionListener and
2666 MenuDrageMouseListener.
2667 (MenuDragMouseHandler): Implemented.
2668 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2669 (uninstallListeners): Implemented.
2671 2004-07-21 Michael Koch <konqueror@gmx.de>
2673 * javax/swing/JCheckBox.java: Reformated.
2674 (JCheckBox): Fixed all constructors.
2675 (isBorderPaintedFlat): New method.
2676 (setBorderPaintedFlat): New method.
2677 * javax/swing/JEditorPane.java
2678 (createEditorKitForContentType): Made public.
2679 (scrollToReference): Likewise.
2680 * javax/swing/JTextArea.java
2681 (setLineWrap): Fire property change.
2682 * javax/swing/JToggleButton.java
2683 (JToggleButton): New constructor.
2684 (JToggleButton): Simplified.
2685 * javax/swing/text/AttributeSet.java
2686 (FontAttribute): Renamed from FontCharacterAttribute.
2687 * javax/swing/text/JTextComponent.java
2688 (KeyBinBinding): Added javadoc.
2689 (JTextComponent): Likewise.
2690 (getAccessibleContext): Fixed javadoc.
2691 * javax/swing/text/View.java
2692 (View): Added javadoc.
2693 * javax/swing/text/TabableView.java: New file.
2694 * Makefile.am: Added javax/swing/text/TabableView.java.
2695 * Makefile.in: Regenerated.
2697 2004-07-21 Graydon Hoare <graydon@redhat.com>
2699 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
2700 * gnu/java/awt/peer/gtk/GtkToolkit.java
2701 (GtkErrorImage): New helper class.
2702 (bufferedImageOrError): New helper method.
2703 (createImage): Use it.
2705 2004-07-21 David Jee <djee@redhat.com>
2707 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
2708 (setCaretPosition): Scroll the text view so the new caret position
2709 is visible on screen.
2711 2004-07-21 David Jee <djee@redhat.com>
2713 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2714 (setBounds): Do not validate awtComponent here.
2715 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
2716 (getPreferredSize): New method.
2717 * java/awt/ScrollPane.java
2718 (ScrollPane): Set default size to 100x100.
2719 (addNotify): If child is not a Panel, wrap it with a new Panel.
2720 (paramString): Implement.
2722 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2724 * javax/swing/JMenu.java:
2725 (setSelected): Display popup menu only if this menu
2726 is showing on the screen.
2727 * javax/swing/JPopupMenu.java:
2728 (processMouseEvent): Added comment.
2729 (processKeyEvent): Likewise.
2730 * javax/swing/MenuSelectionManager.java:
2731 (clearSelectedPath): Only fireStateChanged() after
2732 selected path was changed, not before.
2733 (setSelectedPath): Likewise.
2734 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2735 (paintMenuItem): Corrected position of menu item's
2737 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2738 (installUI): Correct setDefaultLightWeightPopupEnabled call.
2739 (popupMenuCanceled): Reimplemented.
2740 (popupMenuWillBecomeVisible): Select first menu item by default
2741 when displaying free floating popup menus.
2742 (TopWindowListener): Reimplemented.
2744 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2746 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
2747 Panel from being painted twice when it is first shown.
2749 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2751 * java/awt/Window.java: Reverted changes from my
2752 previous patch for creating window without an owner.
2753 * javax/swing/SwingUtilities.java:
2754 (SwingUtilities.OwnerFrame): made static.
2755 (OwnerFrame.setVisible): New method. Overridden with
2756 empty implementation.
2757 (OwnerFrame.isShowing): New method. Ovverridden
2758 to return always true.
2760 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2762 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2763 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2764 (GtkComponentPeer): Remove temporary try/catch block.
2765 (setVisible): Call show and hide.
2766 (show): Make native.
2768 (getArgs): Don't add "visible" argument.
2769 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2770 (property_notify_predicate): Return Bool instead of int.
2771 (find_layout): New function.
2772 (connectJObject): Call find_layout.
2773 (connectSignals): Likewise.
2774 (moveLayout): Likewise.
2775 (gtkLayoutSetVisible): Likewise.
2777 2004-07-21 Mark Wielaard <mark@klomp.org>
2779 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
2780 on notifier object before calling notifyAll().
2782 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2784 * java/awt/Window.java: Changed constructors to use new
2785 method that is described below. Constructors call this
2786 methods only if newly created window should have an owner.
2787 (setWindowOwner): New method. Implementation for
2788 this method is moved from this(owner,configuration).
2789 * javax/swing/JWindow.java:
2790 (JWindow): Reimplement to use SwingUtilities.ownerFrame
2792 * javax/swing/SwingUtilities.java:
2793 (ownerFrame): Change type of this field to OwnerFrame.
2794 (getOwnerFrame): Changed to return object of type OwnerFrame.
2795 (SwingUtilities.OwnerFrame): New class. Represents owner
2796 of a Window that is not provided with one.
2798 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2800 * javax/swing/AbstractButton.java:
2801 (configurePropertiesFromAction): Set action command
2802 to button's text by default if action command is not
2803 explicitely specified.
2804 * javax/swing/JMenu.java: Remove unnecessary listener
2805 and methods relevant to it.
2806 (setSelected): Reimplemented.
2807 (menuSelectionChanged): Moved most part of implementation to
2808 setSelected() and call it instead.
2809 * javax/swing/JMenuItem.java:
2810 (init): Comment out statement that sets paint_border to false.
2811 (configurePropertiesFromAction): Do not set accelerator
2813 (menuSelectionChanged): Change selected index in the selection
2814 model of menu item's parent.
2815 * javax/swing/JPopupMenu.java:
2816 (remove): Set constraints.fill field to GridBagConstraints.BOTH
2817 instead of GridBagConstraints.HORIZONTAL.
2819 (createActionChangeListener): Implemented.
2820 (setVisible): Correct location of HeavyWeightMenu and
2821 don't firePopupMenuCanceled().
2822 (menuSelectionChanged): Implemented.
2823 (ActionChangeListener): New Listener. Implemented.
2824 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2825 (BasicMenuBarUI.ContainerHandler): Implemented.
2826 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2827 (paintMenuItem): Uncommented out code that paints
2828 icon, now that icons are working properly.
2829 (PropertyChangeListener): Implemented.
2830 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2832 (topWindowListener): New field.
2833 (Constructor): initialize topWindowListener.
2834 (BasicPopupMenuUI.TopWindowListener): Implemented.
2835 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
2836 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
2839 2004-07-21 Michael Koch <konqueror@gmx.de>
2841 * javax/swing/plaf/basic/BasicButtonUI.java
2842 (paintFocus): Fixed method signature.
2843 (paintButtonPressed): Likewise.
2844 (paintButtonNormal): Likewise.
2845 (paintText): New method.
2846 * javax/swing/plaf/basic/BasicLabelUI.java
2847 (paint): Re-indented.
2848 * javax/swing/plaf/basic/BasicTextUI.java
2849 (installUI): Set parent textComponent to opaque.
2850 * javax/swing/text/DefaultHighlighter.java
2851 (checkPositions): New helper method.
2852 (addHighlight): Throws BadLocationException, check positions.
2853 (changeHighlight): Likewise.
2854 * javax/swing/text/EditorKit.java
2855 (EditorKit): Implements Serializable.
2856 * javax/swing/text/JTextComponent.java
2857 (getUI): Added javadoc.
2859 (upadteUI): Added javadoc, don't revalidate and repaint.
2861 2004-07-21 David Jee <djee@redhat.com>
2863 * java/awt/GridBagLayout.java
2864 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
2865 * javax/swing/AbstractButton.java
2866 (setText): Reindent.
2867 * javax/swing/RepaintManager.java
2868 (addInvalidComponent): Find the first ancestor that isValidateRoot().
2870 2004-07-21 Michael Koch <konqueror@gmx.de>
2872 * javax/swing/JFormattedTextField.java
2874 (JFormattedTextField): Implemented.
2875 (getValue): Likewise.
2876 (setValue): Likewise.
2877 * javax/swing/LookAndFeel.java
2878 (getSupportsWindowDecorations): New method.
2879 * javax/swing/UIDefaults.java:
2880 Use java.beans.PropertyChangeSupport instead of doing all ourself.
2881 (addPropertyChangeListener): Made public.
2882 (addResourceBundle): Likewise.
2883 (removeResourceBundle): Likewise.
2884 (setDefaultLocale): Likewise.
2885 * javax/swing/plaf/basic/BasicRootPaneUI.java
2886 (BasicRootPaneUI): Implements PropertyChangeListener.
2887 (propertyChange): New method.
2888 * javax/swing/plaf/basic/BasicTextUI.java
2889 (BasicHighlighter): New inner class.
2890 (createHighlighter): New method.
2891 * javax/swing/plaf/basic/BasicToolBarUI.java
2892 (DragWindow): Extends java.awt.Window.
2893 * javax/swing/text/JTextComponent.java
2894 (getDocument): Removed debug output.
2895 * javax/swing/plaf/basic/BasicTextFieldUI.java,
2896 javax/swing/text/DefaultHighlighter.java,
2897 javax/swing/text/FieldView.java,
2898 javax/swing/text/PlainView.java: New files.
2899 * Makefile.am: Added new files.
2900 * Makefile.in: Regenerated.
2902 2004-07-21 Michael Koch <konqueror@gmx.de>
2904 * javax/swing/JEditorPane.java
2905 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
2906 (createEditorKitForContentType): Likewise.
2907 * javax/swing/text/DefaultEditorKit.java
2908 (serialVersionUID): Added constant field.
2909 (EndOfLineStringPropery): Fixed typo.
2910 (DefaultEditorKit): New constructor.
2911 * javax/swing/text/Segment.java:
2912 Import java.text.CharacterIterator.
2913 * javax/swing/text/CharacterIterator.java,
2914 javax/swing/text/PlainEditorKit.java: Removed.
2915 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
2916 javax/swing/text/PlainEditorKit.java.
2917 * Makefile.in: Regenerated.
2919 2004-07-21 Michael Koch <konqueror@gmx.de>
2921 * javax/swing/JButton.java,
2922 javax/swing/text/DefaultEditorKit.java,
2923 javax/swing/text/EditorKit.java,
2924 javax/swing/text/Segment.java,
2925 javax/swing/text/StyledEditorKit.java:
2928 2004-07-21 Michael Koch <konqueror@gmx.de>
2930 * javax/swing/ImageIcon.java
2932 (description): Renamed from descr.
2933 (ImageIcon): Added missing constructors.
2934 (setParent): Removed.
2935 (setImageObserver): New method.
2936 (getImageObserver): New method.
2937 (paintIcon): Handle observer = null.
2938 * javax/swing/JButton.java
2939 (removeNotify): Fixed javadoc.
2940 (updateUI): Simplified.
2941 * javax/swing/JRootPane.java
2942 (serialVersionUID): New constant field.
2943 * javax/swing/UIManager.java:
2944 Fixed javadocs all over.
2945 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
2946 * javax/swing/text/AbstractDocument.java
2947 (createPosition): Throws BadLocationException.
2948 (getText): Likewise.
2950 * javax/swing/text/ComponentView.java
2951 (modelToView): Likewise.
2952 * javax/swing/text/DefaultEditorKit.java:
2953 Made all public methods public.
2954 (read): Throws BadLocationException and IOException.
2956 * javax/swing/text/EditorKit.java:
2957 Made all public methods public.
2958 (serialVersionUID): New constant field.
2959 (clone): New method.
2960 (read): Throws BadLocationException and IOException.
2962 * javax/swing/text/Segment.java
2963 (array): Made public.
2966 (Segment): New constructors.
2967 (clone): Reimplemented.
2968 * javax/swing/text/StyledEditorKit.java
2969 (serialVersionUID): New constant field.
2971 2004-07-21 Graydon Hoare <graydon@redhat.com>
2973 * java/awt/image/BufferedImage.java
2974 (getSource): Implement.
2975 * javax/swing/ImageIcon.java
2976 (ImageIcon): Implement ctor.
2977 * javax/swing/ScrollPaneLayout.java
2978 (preferredLayoutSize): Be more careful about nulls.
2980 2004-07-21 Michael Koch <konqueror@gmx.de>
2982 * javax/swing/text/AttributeSet.java
2983 (CharacterAttribute): New interface
2984 (ColorAttribute): Likewise.
2985 (FontCharacterAttribute): Likewise.
2986 (ParagraphAttribute): Likewise.
2987 * javax/swing/text/DefaultCaret.java
2988 (moveCaret): New method.
2989 (positionCaret): Likewise.
2990 (repaint): Made protected.
2991 * javax/swing/text/JTextComponent.java
2992 (KeyBinding): Made it static.
2993 * javax/swing/text/View.java
2994 (getContainer): Honor parent == null.
2996 2004-07-21 Michael Koch <konqueror@gmx.de>
2998 * javax/swing/text/AbstractDocument.java:
3001 2004-07-21 Michael Koch <konqueror@gmx.de>
3003 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3004 Import javax.swing.UIManager explicitely.
3005 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3006 (ScrollingButton): Made it static.
3008 2004-07-21 Michael Koch <konqueror@gmx.de>
3010 * javax/swing/UIDefaults.java
3011 (ActiveValue): Made public.
3012 (LazyValue): Likewise.
3013 * javax/swing/plaf/basic/BasicTextUI.java
3014 (RootView): Reintroduced.
3016 (rootView): New field.
3017 (installUI): Create document if needed, initialize rootView.
3018 (uninstallUI): Hanle rootView.
3020 (getRootView): Likewise.
3021 (setView): Likewise.
3022 * javax/swing/text/DefaultCaret.java:
3023 Renamed all "evt" variables to "event".
3025 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3027 * libgcj.spec.in: Add -l-java-util-logging.
3029 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3031 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3032 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3033 gtk-xft-dpi can no calculate the right value.
3034 (dpi_changed_cb): Mark *pspec as unsused.
3036 2004-07-21 David Jee <djee@redhat.com>
3038 * java/awt/Component.java
3039 (move): Delegate to setBounds().
3041 (reshape): Fix so it repaints parent and self only when necessary.
3043 2004-07-21 David Jee <djee@redhat.com>
3045 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3046 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3047 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3048 (setVisible): Likewise.
3051 (getArgs): Likewise.
3052 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3053 (property_notify_predicate): Likewise.
3054 (find_layout): Likewise.
3055 (connectJObject): Likewise.
3056 (connectSignals): Likewise.
3057 (moveLayout): Likewise.
3058 (gtkLayoutSetVisible): Likewise.
3060 2004-07-21 Graydon Hoare <graydon@redhat.com>
3066 (rmiregistry_LDADD): Add lib-java-util-logging.la
3067 * Makefile.in: Regenerate.
3069 2004-07-21 Michael Koch <konqueror@gmx.de>
3071 * javax/swing/text/AbstractDocument.java
3072 (replace): Dont use protected method of java.util.Vector directly.
3074 2004-07-21 Michael Koch <konqueror@gmx.de>
3076 * javax/swing/plaf/basic/BasicTextUI.java
3077 (installUI): Call specialized install methods.
3078 (installDefaults): New method.
3079 (installListeners): Likewise.
3080 (installKeyboardActions): Likewise.
3081 (uninstallUI): Likewise.
3082 (uninstallDefaults): New method.
3083 (uninstallListeners): Likewise.
3084 (uninstallKeyboardActions): Likewise.
3085 (getPropertyPrefix): New abstract method.
3086 (paint): Made final, just call paintSafely().
3087 (paintSavely): New method.
3088 (paintBackground): Likewise.
3089 (getVisibleEditorRect): Likewise.
3090 * javax/swing/text/LayeredHighlighter.java,
3091 javax/swing/text/TabExpander.java: New files.
3092 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3093 and javax/swing/text/TabExpander.java.
3094 * Makefile.in: Regenerated.
3096 2004-07-21 Michael Koch <konqueror@gmx.de>
3098 * javax/swing/plaf/basic/BasicTextUI.java
3099 (BasicTextUI): Made abstract.
3100 (BasicCaret): New inner class.
3101 (view): Don't explicitely initialize with "null".
3102 (textComponent): New field.
3103 (textColor): Removed.
3104 (disabledTextColor): Removed.
3105 (normalBackgroundColor): Removed.
3106 (RootView): Removed commented out inner class.
3107 (createUI): Removed.
3108 (createCaret): New method.
3109 (getComponent): Likewise.
3110 (installUI): Initialize textComponent only.
3111 (getPreferredSize): Use installed JTextComponent.
3112 (setView): New method.
3114 * javax/swing/text/JTextComponent.java
3115 (highlighter): New field.
3116 (caretColor): Likewise.
3117 (disabledTextColor): Likewise.
3118 (seletedTextColor): Likewise.
3119 (selectionColor): Likewise.
3120 (setUI): New method.
3121 (getCaretColor): Likewise.
3122 (setCaretColor): Likewise.
3123 (getDisabledColor): Likewise.
3124 (setDisabledColor): Likewise.
3125 (getSelectedTextColor): Likewise.
3126 (setSelectedTextColor): Likewise.
3127 (getSelectionColor): Likewise.
3128 (setSelectionColor): Likewise.
3129 (getHighlighter): Likewise.
3130 (setHighlighter): Likewise.
3131 (replaceSelection): Likewise.
3133 2004-07-21 Michael Koch <konqueror@gmx.de>
3135 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3136 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3137 * javax/swing/plaf/basic/BasicToolBarUI.java
3138 (BasicToolBarUI): Implements SwingConstants.
3140 2004-07-21 Michael Koch <konqueror@gmx.de>
3142 * javax/swing/JPopupMenu.java: Removed CVS tags.
3143 * javax/swing/UIDefaults.java: Reformatted.
3144 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3145 Explicitely import used classes.
3147 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3149 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3150 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3151 (GtkComponentPeer): Remove temporary try/catch block.
3152 (setVisible): Call show and hide.
3153 (show): Make native.
3155 (getArgs): Don't add "visible" argument.
3156 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3157 (property_notify_predicate): Return Bool instead of int.
3158 (find_layout): New function.
3159 (connectJObject): Call find_layout.
3160 (connectSignals): Likewise.
3161 (moveLayout): Likewise.
3162 (gtkLayoutSetVisible): Likewise.
3164 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3166 * javax/swing/AbstractButton.java:
3167 (setDisplayedMnemonicIndex): Check if button
3168 text is not null before checking its length.
3169 * javax/swing/JMenuItem.java:
3170 (processMouseEvent): Disarm menu item if mouse has
3172 * javax/swing/plaf/basic/BasicMenuUI.java:
3173 (MouseInputHandler.mouseEntered): Do not raise
3174 popup menu if this menu is already selected.
3175 (MouseInputHandler.mousePressed): Do not fire
3177 (MenuHandler): Implemented.
3179 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3181 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3182 (getSelectedObjects): Implemented.
3183 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3184 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3185 Added javadoc for few methods.
3186 (processMouseEvent): Made public.
3187 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3188 (processMouseEvent): Likewise.
3190 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3192 * javax/swing/AbstractButton.java:
3193 (init): Set display mnemonic index to -1.
3194 (setMnemonic(char)): Use setMnemonic(int).
3195 (setMnemonic(int)): Set display mnemonic index.
3196 (getDisplayedMnemonicIndex): Change method signature
3197 by removing 'index' parameter.
3198 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3199 Added default for Menu.selectionBackground.
3200 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3201 (paintMenuItem): Change background color of the selected
3203 (paintText): Paint differently when menu item is disabled.
3204 Also paint mnemonic if it appears in the menu item's label.
3205 (paintAccelerator): Paint accelerator differently
3206 if menu item is disabled.
3207 * javax/swing/plaf/basic/BasicMenuUI.java:
3208 (installDefaults): Install defaults for
3209 selectionForeground and selectionBackground.
3210 (uninstallDefaults): Uninstall defauls for
3211 selectionForeground and selectionBackground.
3213 2004-07-21 Michael Koch <konqueror@gmx.de>
3215 * javax/swing/text/AbstractDocument.java
3216 (BranchElement): Implemented.
3217 (LeafElement): Implemented.
3218 * javax/swing/text/DefaultCaret.java:
3219 Import used classes.
3220 (serialVersionUID): New constant.
3221 * javax/swing/text/JTextComponent.java
3222 (AccessibleJTextComponent): Removed dead declaration.
3223 (caretPos): Removed.
3224 (setCaret): New method.
3225 * javax/swing/text/PlainDocument.java
3226 (rootElement): New field.
3227 (PlainDocument): Initialize rootElement.
3228 (createDefaultRoot): New method.
3229 (getDefaultRootElement): Implemented.
3230 * javax/swing/text/View.java: Reformatted.
3231 * javax/swing/text/ViewFactory.java
3232 (create): Added javadoc.
3234 2004-07-21 Michael Koch <konqueror@gmx.de>
3236 * javax/swing/ToolTipManager.java: Reformatted.
3238 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3240 * javax/swing/AbstractButton.java
3241 (changeEvent): New field.
3242 (fireItemStateChanged): Change source of the event
3243 to 'this' before firing it to button listeners.
3244 (fireActionPerformed): Likewise.
3245 (fireStateChanged): Likewise.
3246 (createActionListener): Do not set source
3247 of the event to AbstractButton.
3248 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3249 (ContainerHandler.componentAdded): Removed
3250 print out statement.
3251 (ContainerHandler.componentRemoved): Likewise.
3253 2004-07-21 Michael Koch <konqueror@gmx.de>
3255 * javax/swing/text/Highlighter.java: New file.
3256 * Makefile.am: Added javax/swing/text/Highlighter.java.
3257 * Makefile.in: Regenerated.
3259 2004-07-21 Michael Koch <konqueror@gmx.de>
3261 * javax/swing/ToolTipManager.java
3262 (stillInsideTimerAction): Fixed constructor arguments.
3263 (outsideTimerAction): Likewise.
3264 (insideTimerAction): Likewise.
3266 2004-07-21 Michael Koch <konqueror@gmx.de>
3268 * javax/swing/JButton.java: Reformatted.
3269 * javax/swing/JFormattedTextField.java
3270 (getUIClassID): Implemented.
3271 * javax/swing/JRootPane.java
3272 (serialVersionUID): New constant.
3273 * javax/swing/JTextField.java
3275 (JTextField): Simplified.
3276 (getUIClassID): New method.
3277 (getActionListeners): Added @since tag.
3278 (setColumns): Invalidate layout and repaint.
3279 (getHorizontalAlignment): New method.
3280 (setHorizontalAlignment): New method.
3281 (selectAll): Removed.
3282 * javax/swing/SwingUtilities.java
3283 (getAncestorOfClass): Removed redundant @see tag.
3284 (isLeftMouseButton): Fixed implementation.
3285 (isMiddleMouseButton): Likewise.
3286 (isRightMouseButton): Likewise.
3287 * javax/swing/text/AbstractDocument.java
3288 (AttributeContext.addAttribute): New method.
3289 (AttributeContext.addAttributes): New method.
3290 (AttributeContext.getEmptySet): New method.
3291 (AttributeContext.reclaim): New method.
3292 (AttributeContext.removeAttribute): New method.
3293 (AttributeContext.removeAttributes): New method.
3294 * javax/swing/text/Document.java
3295 (createPosition): Throws BadLocationException.
3296 (getText): Likewise.
3298 * javax/swing/text/JTextComponent.java
3299 (getText): Return null if no document is set. Catch
3300 BadLocationException.
3302 (updateUI): Simplified.
3304 2004-07-21 Michael Koch <konqueror@gmx.de>
3306 * javax/swing/JButton.java
3307 (removeNotify): Fixed javadoc.
3308 (updateUI): Simplified.
3310 2004-07-21 David Jee <djee@redhat.com>
3312 * gnu/java/awt/image/ImageDecoder.java
3313 (startProduction): Only add consumer if it's not added yet.
3314 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3315 (GdkPixbufDecoder): Don't call initState() here.
3316 (produce): Call initState() here, to ensure area_prepared and
3317 area_updated signals are properly connected.
3318 * gnu/java/awt/peer/gtk/GtkImage.java
3319 (setColorModel): Use equals() to compare ColorModel objects.
3320 (setPixels): Likewise.
3321 * java/awt/image/ColorModel.java
3322 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3323 * java/awt/image/RGBImageFilter.java
3324 (setColorModel): Set consumer's color model.
3325 (setPixels): Use equals() to compare ColorModel objects.
3327 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3329 * java/net/URLConnection.java (position): New field.
3330 (dateFormat1, dateFormat2, dateFormat3): Removed.
3331 (dateFormats): New field.
3332 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3333 each time instead of re-allocating.
3334 (initializeDateFormats): Initialize 'dateFormats'.
3336 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3339 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3342 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3344 * java/net/Socket.java (getImpl): Now private. Remove comment.
3346 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3348 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3349 of chained Writer when calling super-constructor.
3350 * java/io/FilterWriter.java (FilterWriter): Likewise.
3351 * java/io/PrintWriter.java (PrintWriter): Likewise.
3353 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3355 * prims.cc (process_gcj_properties): Don't increment i within LHS
3358 2004-07-19 Per Bothner <per@bothner.com>
3360 Print -verbose:message on "loading", not initialization.
3361 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3362 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3363 gcj::verbose_class_flag.
3364 * java/lang/natClass.cc (initializeClass): Don't print message here.
3365 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3366 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3367 (_Jv_PrepareCompiledClass): Likewise.
3369 2004-07-18 Matthias Klose <doko@debian.org>
3371 * configure.in: Substitute target_noncanonical.
3372 * configure: Regenerate
3374 2004-07-17 Michael Koch <konqueror@gmx.de>
3376 * java/lang/String.java: Fixed javadocs all over.
3378 2004-07-17 Mark Wielaard <mark@klomp.org>
3380 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3381 when size is smaller.
3382 * java/io/RandomAccessFile.java (setLength): Use truncate for
3383 shrinking the file and seek plus write for expanding the file.
3385 2004-07-17 Michael Koch <konqueror@gmx.de>
3387 * gnu/java/nio/channels/natFileChannelPosix.cc
3388 (implTruncate): Always save current position. Only reposition file
3389 pointer to where we started if not beyond new lenght. Reposition file
3390 pointer to file length if it points beyond the end of file.
3392 2004-07-17 Mark Wielaard <mark@klomp.org>
3394 * javax/swing/Box.java: Put FIXME comment above class declaration.
3395 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3396 * javax/swing/JCheckBox.java: Likewise.
3397 * javax/swing/JDialog.java: Likewise.
3398 * javax/swing/JRadioButton.java: Likewise.
3399 * javax/swing/JToggleButton.java: Likewise.
3400 * javax/swing/UIManager.java: Likewise.
3401 * javax/swing/border/TitledBorder.java: Likewise.
3402 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3403 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3404 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3405 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3406 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3407 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3408 * javax/swing/text/JTextComponent.java: Likewise.
3410 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
3412 * java/net/DatagramPacket.java (setAddress): Removed check for
3415 2004-07-17 Michael Koch <konqueror@gmx.de>
3417 * java/net/DatagramSocket.java
3418 (getLocalAddress): Check if socket is bound or not.
3419 * java/net/Socket.java
3420 (getLocalAddrss): Check if socket is bound or not.
3421 (getPort): Return -1 when not connected. Dont check getImpl() for
3423 (setReuseAddress): Check if socket is closed.
3424 (isConnected): Check if getImpl() returns null.
3426 2004-07-17 Mark Wielaard <mark@klomp.org>
3428 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3429 on notifier object before calling notifyAll().
3431 2004-07-17 Michael Koch <konqueror@gmx.de>
3433 * gnu/java/nio/channels/FileChannelImpl.java
3434 (finalize): Added javadoc.
3436 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3438 * java/text/CollationElementIterator.java
3439 (text_decomposition): Changed type to RuleBasedCollator.Coll