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