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