1 2004-09-21 Tom Tromey <tromey@redhat.com>
3 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
6 2004-09-21 Michael Koch <konqueror@gmx.de>
9 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
11 2004-09-21 Casey Marshall <csm@gnu.org>
13 * javax/crypto/MacSpi.java (clone): Provide meaningful
16 2004-09-21 Tom Tromey <tromey@redhat.com>
19 * Makefile.in: Rebuilt.
20 * Makefile.am (MOSTLYCLEANFILES): Removed.
21 (mostlyclean-local): Remove header files.
23 2004-09-21 Casey Marshall <csm@gnu.org>
25 * java/security/cert/X509CRLSelector.java:
26 (match): remove unreachable try-catch clauses.
27 Reported by: Dalibor Topic <robilad@kaffe.org>
29 2004-09-21 Mark Wielaard <mark@klomp.org>
31 * java/util/TreeMap.java (root): Don't initialize.
32 (TreeMap(Comparator)): Call fabricateTree(0).
33 (fabricateTree): Initialize root and size when count is 0.
35 2004-09-21 Sven de Marothy <sven@physto.se>
37 * java/nio/ByteBuffer.java (hashCode): Implemented.
38 * java/nio/CharBuffer.java: Likewise.
39 * java/nio/DoubleBuffer.java: Likewise.
40 * java/nio/FloatBuffer.java: Likewise.
41 * java/nio/LongBuffer.java: Likewise.
42 * java/nio/IntBuffer.java: Likewise.
43 * java/nio/ShortBuffer.java: Likewise.
45 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
47 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
49 2004-09-21 Michael Koch <konqueror@gmx.de>
51 * javax/net/ssl/SSLServerSocket.java:
52 Removed comment about "Do not edit this file, it's generated.".
54 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
56 Import the big Crypto/Jessie/Security merge from Classpath.
58 * Makefile.am: Add imported files.
59 * Makefile.in: Regenerate.
61 2004-08-14 Casey Marshall <csm@gnu.org>
63 The Big Crypto Merge of 2004.
65 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
68 Files imported from GNU Crypto.
69 * javax/crypto/BadPaddingException.java
70 * javax/crypto/Cipher.java
71 * javax/crypto/CipherInputStream.java
72 * javax/crypto/CipherOutputStream.java
73 * javax/crypto/CipherSpi.java
74 * javax/crypto/EncryptedPrivateKeyInfo.java
75 * javax/crypto/ExemptionMechanism.java
76 * javax/crypto/ExemptionMechanismException.java
77 * javax/crypto/ExemptionMechanismSpi.java
78 * javax/crypto/IllegalBlockSizeException.java
79 * javax/crypto/KeyAgreement.java
80 * javax/crypto/KeyAgreementSpi.java
81 * javax/crypto/KeyGenerator.java
82 * javax/crypto/KeyGeneratorSpi.java
83 * javax/crypto/Mac.java
84 * javax/crypto/MacSpi.java
85 * javax/crypto/Makefile.am
86 * javax/crypto/NoSuchPaddingException.java
87 * javax/crypto/NullCipher.java
88 * javax/crypto/NullCipherImpl.java
89 * javax/crypto/SealedObject.java
90 * javax/crypto/SecretKey.java
91 * javax/crypto/SecretKeyFactory.java
92 * javax/crypto/SecretKeyFactorySpi.java
93 * javax/crypto/ShortBufferException.java
94 * javax/crypto/interfaces/DHKey.java
95 * javax/crypto/interfaces/DHPrivateKey.java
96 * javax/crypto/interfaces/DHPublicKey.java
97 * javax/crypto/interfaces/PBEKey.java
98 * javax/crypto/spec/DESKeySpec.java
99 * javax/crypto/spec/DESedeKeySpec.java
100 * javax/crypto/spec/DHGenParameterSpec.java
101 * javax/crypto/spec/DHParameterSpec.java
102 * javax/crypto/spec/DHPrivateKeySpec.java
103 * javax/crypto/spec/DHPublicKeySpec.java
104 * javax/crypto/spec/IvParameterSpec.java
105 * javax/crypto/spec/PBEKeySpec.java
106 * javax/crypto/spec/PBEParameterSpec.java
107 * javax/crypto/spec/RC2ParameterSpec.java
108 * javax/crypto/spec/RC5ParameterSpec.java
109 * javax/crypto/spec/SecretKeySpec.java
110 * javax/security/auth/AuthPermission.java
111 * javax/security/auth/DestroyFailedException.java
112 * javax/security/auth/Destroyable.java
113 * javax/security/auth/Policy.java
114 * javax/security/auth/PrivateCredentialPermission.java
115 * javax/security/auth/RefreshFailedException.java
116 * javax/security/auth/Refreshable.java
117 * javax/security/auth/Subject.java
118 * javax/security/auth/SubjectDomainCombiner.java
119 * javax/security/auth/callback/Callback.java
120 * javax/security/auth/callback/CallbackHandler.java
121 * javax/security/auth/callback/ChoiceCallback.java
122 * javax/security/auth/callback/ConfirmationCallback.java
123 * javax/security/auth/callback/LanguageCallback.java
124 * javax/security/auth/callback/NameCallback.java
125 * javax/security/auth/callback/PasswordCallback.java
126 * javax/security/auth/callback/TextInputCallback.java
127 * javax/security/auth/callback/TextOutputCallback.java
128 * javax/security/auth/callback/UnsupportedCallbackException.java
129 * javax/security/auth/login/AccountExpiredException.java
130 * javax/security/auth/login/AppConfigurationEntry.java
131 * javax/security/auth/login/Configuration.java
132 * javax/security/auth/login/CredentialExpiredException.java
133 * javax/security/auth/login/FailedLoginException.java
134 * javax/security/auth/login/LoginContext.java
135 * javax/security/auth/login/LoginException.java
136 * javax/security/auth/login/NullConfiguration.java
137 * javax/security/auth/x500/X500PrivateCredential.java
138 * javax/security/sasl/AuthenticationException.java
139 * javax/security/sasl/AuthorizeCallback.java
140 * javax/security/sasl/RealmCallback.java
141 * javax/security/sasl/RealmChoiceCallback.java
142 * javax/security/sasl/Sasl.java
143 * javax/security/sasl/SaslClient.java
144 * javax/security/sasl/SaslClientFactory.java
145 * javax/security/sasl/SaslException.java
146 * javax/security/sasl/SaslServer.java
147 * javax/security/sasl/SaslServerFactory.java
148 * org/ietf/jgss/ChannelBinding.java
149 * org/ietf/jgss/GSSContext.java
150 * org/ietf/jgss/GSSCredential.java
151 * org/ietf/jgss/GSSException.java
152 * org/ietf/jgss/GSSManager.java
153 * org/ietf/jgss/GSSName.java
154 * org/ietf/jgss/MessageProp.java
155 * org/ietf/jgss/Oid.java
156 * org/ietf/jgss/MessagesBundle.properties
158 Files imported from Jessie <http://www.nongnu.org/jessie/>
159 * javax/net/ServerSocketFactory.java
160 * javax/net/SocketFactory.java
161 * javax/net/VanillaServerSocketFactory.java
162 * javax/net/VanillaSocketFactory.java
163 * javax/net/ssl/HandshakeCompletedEvent.java
164 * javax/net/ssl/HandshakeCompletedListener.java
165 * javax/net/ssl/HostnameVerifier.java
166 * javax/net/ssl/HttpsURLConnection.java
167 * javax/net/ssl/KeyManager.java
168 * javax/net/ssl/KeyManagerFactory.java
169 * javax/net/ssl/KeyManagerFactorySpi.java
170 * javax/net/ssl/ManagerFactoryParameters.java
171 * javax/net/ssl/SSLContext.java
172 * javax/net/ssl/SSLContextSpi.java
173 * javax/net/ssl/SSLException.java
174 * javax/net/ssl/SSLHandshakeException.java
175 * javax/net/ssl/SSLKeyException.java
176 * javax/net/ssl/SSLPeerUnverifiedException.java
177 * javax/net/ssl/SSLPermission.java
178 * javax/net/ssl/SSLProtocolException.java
179 * javax/net/ssl/SSLServerSocket.java
180 * javax/net/ssl/SSLServerSocketFactory.java
181 * javax/net/ssl/SSLSession.java
182 * javax/net/ssl/SSLSessionBindingEvent.java
183 * javax/net/ssl/SSLSessionBindingListener.java
184 * javax/net/ssl/SSLSessionContext.java
185 * javax/net/ssl/SSLSocket.java
186 * javax/net/ssl/SSLSocketFactory.java
187 * javax/net/ssl/TrivialHostnameVerifier.java
188 * javax/net/ssl/TrustManager.java
189 * javax/net/ssl/TrustManagerFactory.java
190 * javax/net/ssl/TrustManagerFactorySpi.java
191 * javax/net/ssl/X509KeyManager.java
192 * javax/net/ssl/X509TrustManager.java
193 * javax/security/cert/Certificate.java
194 * javax/security/cert/CertificateEncodingException.java
195 * javax/security/cert/CertificateException.java
196 * javax/security/cert/CertificateExpiredException.java
197 * javax/security/cert/CertificateNotYetValidException.java
198 * javax/security/cert/CertificateParsingException.java
199 * javax/security/cert/X509CertBridge.java
200 * javax/security/cert/X509Certificate.java
202 2004-08-20 Casey Marshall <csm@gnu.org>
204 * java/security/cert/X509CRLSelector.java: New file.
205 * java/security/cert/X509CertSelector.java: New file.
207 2004-09-15 Michael Koch <konqueror@gmx.de>
209 * gnu/java/net/protocol/file/Handler.java
210 (openConnection): Don't throw exception if host part for file: URI is
211 present. setURL() keeps file: protocol if ftp: protocol is not
214 2004-09-14 Richard Henderson <rth@redhat.com>
216 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
219 2004-09-12 Tom Tromey <tromey@redhat.com>
221 * javax/naming/CompoundName.java (CompoundName): Don't check for
222 separator in "flat" case.
224 2004-09-12 Michael Koch <konqueror@gmx.de>
226 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
227 AM_CONFIG_HEADER by AC_CONFIG_FILES.
228 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
231 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
234 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
235 handle in newly-allocated _Jv_Thread_t.
236 (_Jv_ThreadDestroyData): Close thread handle.
237 (_Jv_ThreadStart): Remove obsolete comment.
238 Store handle of newly-created thread in _Jv_Thread_t.
239 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
240 before including <windows.h>
241 #define _Jv_HaveCondDestroy
243 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
245 * java/lang/natThread.cc (finalize_native): Destroy
246 join conditional variable and mutex if these destroy
247 operations are supported.
249 2004-09-10 Dalibor Topic <robilad@kaffe.org>
251 * gnu/java/net/protocol/file/Connection.java (permission): New field.
252 (DEFAULT_PERMISSION): New constant.
253 (Connection): Create a FilePermission with permission to read file.
255 2004-09-10 Michael Koch <konqueror@gmx.de>
257 * gnu/java/net/protocol/file/Connection.java
258 (getLastModified): Moved around.
259 (getPermission): Return stored permission.
261 2004-09-10 Michael Koch <konqueror@gmx.de>
263 * Makefile.in: Regenerate.
265 2004-09-10 Michael Koch <konqueror@gmx.de>
267 * Makefile.am: Reverted accidently commited stuff.
268 * configure: Regenerated.
270 2004-09-10 Michael Koch <konqueror@gmx.de>
272 * gnu/java/net/protocol/file/Connection.java
273 (lineSeparator): Made non-final.
275 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
276 instead of StringBufferInputStream.
278 2004-09-10 Michael Koch <konqueror@gmx.de>
280 * gnu/java/net/protocol/file/Connection.java
281 (connect): Handle file is a directory case.
283 2004-09-10 Michael Koch <konqueror@gmx.de>
286 (xlib_includes): Removed.
287 (AM_CPPFLAGS): Renamed from INCLUDES.
288 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
289 * Makefile.in: Regenerate.
291 2004-09-09 Michael Koch <konqueror@gmx.de>
293 * java/security/ProtectionDomain.java,
294 * java/util/PropertyPermissionCollection.java:
295 Fixed javadocs all over.
297 2004-09-09 Sven de Marothy <sven@physto.se>
299 Patch from David Gilbert <david.gilbert@object-refinery.com>
300 * java/lang/Comparable.java: Fixed documentation errors.
301 * java/util/Arrays.java: Likewise.
303 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
305 * java/net/Inet4Address.java
306 (Inet4Address): Added comment to serialization UID.
307 * java/text/Format.java
308 (Format): Added comment to serialization UID.
310 2004-09-09 Michael Koch <konqueror@gmx.de>
312 * java/lang/System.java
313 (err): Fixed javadoci to point to setErr() and not setOut().
315 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
317 (normalizePath): Added special case for windows systems.
319 2004-09-09 Michael Koch <konqueror@gmx.de>
322 (dupSeparator): Made private.
323 (File(URI)): New constructor.
324 (getParentFile): Fixed javadoc.
325 (createTempFile): Reformated.
326 (setReadOnly): Added comment.
327 (deleteOnExit): Merged javadoc with classpath version.
329 2004-09-09 Michael Koch <konqueror@gmx.de>
331 * Makefile.am: Don't try to include deps.mk.
332 * Makefile.in: Regenerated.
334 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
336 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
338 * configure: Rebuilt.
340 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
342 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
343 Changed pfn from static local to local.
345 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
346 H.J. Lu <hongjiu.lu@intel.com>
349 * Makefile.am (GCJCOMPILE): Remove definition.
350 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
351 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
352 * Makefile.in: Rebuilt.
354 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
356 * configure.ac (enable-gc-debug): Update help for new syntax.
357 * configure: Regenerate.
359 2004-09-03 David Daney <ddaney@avtrex.com>
361 * include/mips-signal.h: Update copyright.
363 2004-09-03 David Daney <ddaney@avtrex.com>
365 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
366 * include/mips-signal.h: Added HANDLE_FPE support.
368 2004-08-31 Michael Koch <konqueror@gmx.de>
370 * javax/swing/plaf/basic/BasicTextAreaUI.java
371 (create): New method.
372 * javax/swing/text/DefaultHighlighter.java
373 (DefaultHighlightPainter.debugRect): Removed.
374 * javax/swing/text/StyleContext.java
375 (DEFAULT_STYLE): New field.
377 2004-08-31 Michael Koch <konqueror@gmx.de>
379 * javax/swing/plaf/basic/BasicLookAndFeel.java
380 (initComponentDefaults): Add keybindings for selection.backward and
381 selection-forward for text components.
382 * javax/swing/plaf/basic/BasicTextUI.java
383 (paintSafely): Paint highlight only when something is actually
385 * javax/swing/text/DefaultCaret.java
386 (handleHighlight): New method.
387 (setSelectionVisible): Don't do anything when nothing changes.
389 (moveDot): Reimplemented. Handle highlight.
390 (setDot): Set mark too. Handle highlight.
391 (getSelectionPainter): New method.
392 * javax/swing/text/DefaultEditorKit.java
393 (defaultActions): Added new actions for text selection.
394 * javax/swing/text/DefaultHighlighter.java
395 (DefaultHighlightPainter): New inner class.
396 (DefaultPainter): New field.
397 (paint): Implemented.
398 * javax/swing/text/PlainView.java
399 (paint): Don't draw background here again.
400 * javax/swing/text/Utilities.java
401 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
402 (drawTabbedText): Likewise.
404 2004-08-31 Graydon Hoare <graydon@redhat.com>
406 * javax/swing/JComponent.java
407 (resetKeyboardActions): Add null checks.
409 2004-08-31 Graydon Hoare <graydon@redhat.com>
411 * javax/swing/DefaultButtonModel.java:
412 Skip group notification when no group is set.
414 2004-08-31 Graydon Hoare <graydon@redhat.com>
416 * javax/swing/JColorChooser.java:
417 Make a couple inner classes static, for jikes.
419 2004-08-31 Michael Koch <konqueror@gmx.de>
421 * javax/swing/plaf/basic/BasicTextUI.java
422 (RottView.modelToView): New method.
423 (UpdateHandler): Renamed from EventHandler.
424 (updateHandler): Renamed from eventHandler.
425 (modelToView): Implemented.
426 * javax/swing/text/AbstractDocument.java
427 (BranchElement.getElement): Return null for non-existing indeces.
428 (BranchElement.getElementIndex): Return 0 in some corner cases.
429 * javax/swing/text/FieldView.java
430 (modelToView): New method.
431 * javax/swing/text/PlainView.java
432 (modelToView): Made public.
434 2004-08-31 Kim Ho <kho@redhat.com>
436 * Makefile.am: New files.
437 * Makefile.in: Regenerate.
438 * gcj/Makefile.in: Regenerate.
439 * include/Makefile.in: Regenerate.
440 * java/awt/Color.java: Fix documentation.
441 (RGBtoHSB): Use floats for conversions.
442 * javax/swing/ButtonGroup.java: Run Jalopy.
443 (setSelected): Reimplement.
444 * javax/swing/DefaultButtonModel.java: Run Jalopy.
445 (changeState): Let ButtonGroup know that the button
447 * javax/swing/JColorChooser.java: Implement.
448 * javax/swing/JLabel.java: Run Jalopy.
449 * javax/swing/JSpinner.java: Run Jalopy.
450 (setValue): New method.
451 * javax/swing/JTabbedPane.java: Run Jalopy.
452 (removeTabAt): Call correct remove method.
453 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
454 (getPreviousValue): Compare minimum value.
455 * javax/swing/Timer.java: Run Jalopy.
456 (run): Comment out println.
457 * javax/swing/ToolTipManager.java:
458 (mouseMoved): Get new tooltip text for location.
459 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
461 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
463 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
465 (setSelectedColor): Fire ChangeEvent.
466 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
468 * javax/swing/colorchooser/DefaultPreviewPanel.java:
470 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
472 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
474 * javax/swing/plaf/basic/BasicArrowButton.java:
475 (getArrow): Fix size of upward pointing button.
476 * javax/swing/plaf/basic/BasicColorChooserUI.java:
478 * javax/swing/plaf/basic/BasicSliderUI.java:
479 (getWidthOfWidestLabel): Use preferred dimensions.
480 (getHeightOfTallestLabel): Ditto.
481 * javax/swing/plaf/basic/BasicSpinnerUI.java:
483 (mousePressed): Disable changes to spinner if it is not enabled.
484 * testsuite/Makefile.in: Regenerate.
487 2004-08-31 Michael Koch <konqueror@gmx.de>
489 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
490 javax/swing/plaf/basic/BasicTableUI.java:
491 Added copyright notice.
493 2004-08-31 Olga Rodimina <rodimina@redhat.com>
495 * Makefile.am: Added new files.
496 * Makefile.in: Regenerate.
497 * javax/swing/ComboBoxEditor.java: Added javadocs.
498 * javax/swing/ComboBoxModel.java: Likewise.
499 * javax/swing/DefaultComboBoxModel.java: Implemented.
500 * javax/swing/DefaultListCellRenderer.java: Added javadocs
501 and ran through jalopy to fix formatting style.
502 (getListCellRendererComponent): Use appropriate border
503 if renderer has focus and use noFocusBorder when it doesn't.
504 * javax/swing/JComboBox.java: Implemented.
505 * javax/swing/JList.java:
506 (locationToIndex): New Method. Implemented.
507 (indexToLocation): New Method.
508 * javax/swing/JPopupMenu.java:
509 (visible): New field.
510 (isVisible): Changed to use new field above.
511 (setVisible): Likewise.
512 * javax/swing/MutableComboBoxModel.java: Added javadocs.
513 * javax/swing/plaf/basic/BasicArrowButton.java:
514 (shadow): Changed default color to Color.gray.
515 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
516 UI delegate for JComboBox.
517 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
518 Popup menu containing list of JComboBox's items.
519 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
520 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
521 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
522 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
523 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
524 (popupMenuWillBecomeVisible): Set selected path to the first
525 element only if it is of type MenuElement. Also fix formatting
527 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
530 2004-08-31 Michael Koch <konqueror@gmx.de>
532 * javax/swing/text/AbstractDocument.java
533 (createBranchElement): Use new constructor of BranchElement.
534 (createLeafElement): Renamed arguments.
535 (getRootElements): Implemented.
536 (BranchElement.start): Removed.
537 (BranchElement.end): Likewise.
538 (BranchElement.BranchElement): Fixed arguments.
539 (BranchElement.getEndOffset): Reimplemented.
540 (BranchElement.getStartOffset): Likewis.
541 * javax/swing/text/DefaultCaret.java
542 (paint): Draw simple vertical line as caret instead of a rectangle.
543 * javax/swing/text/JTextComponent.java
544 (setText): Use doc directly.
545 * javax/swing/text/PlainView.java
546 (nextTabStop): Implemented.
547 * javax/swing/text/Utilities.java
548 (drawTabbedText): nextTabStop() returns an absolute x position.
549 (getTabbedTextWidth): Likewise.
551 2004-08-31 Graydon Hoare <graydon@redhat.com>
553 * java/awt/Component.java
554 (isFocusTraversable): Predicate on isLightweight()
555 (setFocusable): Set isFocusTraversableOverridden.
556 (requestFocus): Predicate peer dispatch on !isLightweight()
557 (requestFocusInWindow): Likewise.
558 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
559 * java/awt/Container.java
560 (dispatchEventImpl): Predicate on event mask.
561 (LightweightDispatcher): Remove focus machinery.
562 * java/awt/DefaultFocusTraversalPolicy.java
563 (accept): Expand predicate to include isFocusable().
564 * java/awt/DefaultKeyboardFocusManager.java:
565 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
566 * java/awt/KeyboardFocusManager.java
567 (redispatchEvent): Synchronize on event to prevent feedback.
568 * javax/swing/AbstractButton.java
569 (ButtonFocusListener): Remove class.
570 (init): Set focusPainted, focusable.
571 * javax/swing/ActionMap.java (get): Check parent for null.
572 * javax/swing/InputMap.java (get): Likewise.
573 * javax/swing/JComponent.java
574 (inputMap_whenFocused): New InputMap.
575 (inputMap_whenAncestorOfFocused): Likewise.
576 (inputMap_whenInFocusedWindow): Likewise.
577 (getActionForKeyStroke): Rewrite.
578 (getConditionForKeystroke): Likewise.
579 (ActionListenerProxy): New private class.
580 (setInputMap): Implement.
581 (getInputMap): Likewise.
582 (setActionMap): Likewise.
583 (getActionMap): Likewise.
584 (processComponentKeyEvent): New empty method.
585 (processKeyEvent): Implement.
586 (processKeyBinding): Likewise.
587 (resetKeyboardActions): Rewrite.
588 * javax/swing/KeyStroke.java: Rewrite.
589 * javax/swing/SwingUtilities.java
590 (notifyAction): Implement.
591 (replaceUIActionMap): Likewise.
592 (replaceUIInputMap): Likewise.
593 * javax/swing/plaf/basic/BasicButtonListener.java
594 (focusGained): Implement.
595 (focusLost): Repaint if focusPainted().
596 (installKeyboardActions): Install pressed / released actions.
597 (uninstallKeyboardActions): Implement.
598 * javax/swing/plaf/basic/BasicButtonUI.java
599 (focusColor): New field.
600 (installDefaults): Load focus color, install input map.
601 (installKeyboardActions): Implement.
602 (uninstallKeyboardActions): Likewise.
603 (paintFocus): Rewrite.
604 * javax/swing/plaf/basic/BasicLookAndFeel.java
605 (Button.focus): New default, midPurple.
606 * javax/swing/plaf/basic/BasicTextUI.java
608 (installUI): Get doc from kit, load defaults.
609 (getKeymapName): Implement.
610 (createKeymap): Likewise.
611 (installKeyboardActions): Likewise.
612 (getInputMap): Likewise.
613 (getActionMap): Likewise.
614 (createActionMap): Likewise.
615 * javax/swing/text/AbstractDocument.java
616 (getStartPosition): Implement.
617 (getEndPosition): Likewise.
618 * javax/swing/text/DefaultEditorKit.java
619 (CopyAction): New class.
620 (CutAction): Likewise.
621 (DefaultKeyTypedAction): Likewise.
622 (InsertBreakAction): Likewise.
623 (InsertContentAction): Likewise.
624 (InsertTabAction): Likewise.
625 (PasteAction): Likewise.
626 (defaultActions): New static table.
627 (createCaret): Implement.
628 (getActions): Likewise.
629 * javax/swing/text/JTextComponent.java
630 (KeymapWrapper): New private class.
631 (KeymapActionMap): Likewise.
632 (DefaultKeymap): New class.
633 (keymaps): New static table.
635 (getKeymap): Implement.
636 (removeKeymap): Likewise.
637 (addKeymap): Likewise.
638 (setKeymap): Likewise.
639 (loadKeymap): Likewise.
640 (getActions): Likewise.
642 (JTextComponent): Build and install default keymap.
643 * javax/swing/text/TextAction.java
644 (textAction): Call super properly.
645 (getTextComponent): Implement.
646 * javax/swing/text/Utilities.java
647 (drawTabbedText): Adjust position by ascent.
649 2004-08-31 David Jee <djee@redhat.com>
653 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
654 (setEnabled): Make it a native method.
655 * java/awt/DefaultKeyboardFocusManager.java
656 (postProcessKeyEvent): Only post event if the menu item
658 * java/awt/MenuItem.java:
659 Private field 'enabled' should be true by default.
660 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
661 (setEnabled): New function.
663 2004-08-31 David Jee <djee@redhat.com>
667 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
668 (nativeSetHelpMenu): New native method declaration.
669 (addHelpMenu): Call nativeSetHelpMenu().
671 * java/awt/MenuBar.java
672 (setHelpMenu): Call addNotify() on the new help menu.
673 (add): Call addNotify() on the new menu.
674 (addNotify): Set the help menu if one exists.
675 * java/awt/peer/MenuBarPeer.java
677 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
678 (nativeSetHelpMenu): New method.
680 2004-08-31 Graydon Hoare <graydon@redhat.com>
682 * Makefile.am: Add new files.
683 * Makefile.in: Regenerate.
684 * javax/swing/Box.java: Fix setting of layout in ctor.
685 * javax/swing/JScrollPane.java: Scroll headers as well.
686 * javax/swing/JTable.java: Reimplement.
687 * javax/swing/JViewPort.java: Only add non-null children.
688 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
689 * javax/swing/Timer.java: Fix stopping null waker.
690 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
691 * javax/swing/plaf/basic/BasicTableUI.java: New file.
692 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
693 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
694 * javax/swing/table/DefaultTableModel.java: Clean up.
695 * javax/swing/table/JTableHeader.java: Implement.
697 2004-08-31 Mark Wielaard <mark@klomp.org>
699 * javax/swing/JSpinner.java (getChangeListeners): Remove double
702 2004-08-31 Mark Wielaard <mark@klomp.org>
704 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
705 Declare variables at top of functions/block.
706 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
708 2004-08-31 Mark Wielaard <mark@klomp.org>
710 * java/lang/Rectangle.java (intersects): Check r.width and r.height
713 2004-08-31 Michael Koch <konqueror@gmx.de>
715 * javax/swing/text/PlainView.java
716 (selectedColor): New field.
717 (unselectedColor): Likewise.
719 (updateMetrics): New method.
720 (lineToRect): Likewise.
721 (modelToView): Likewise.
722 (drawSelectedText): Use color from JTextComponent ad draw with
724 (drawUnselectedText): Likewise.
725 (paint): Initialize helper fields.
726 * javax/swing/text/View.java
727 (getChildAllocation): New method.
728 (getViewIndex): Likewise.
729 (getToolTipText): Likewise.
731 2004-08-31 Michael Koch <konqueror@gmx.de>
733 * javax/swing/text/Utilities.java
734 (drawTabbedText): Reimplemented.
735 (getTabbedTextWidth): Likewise.
737 2004-08-31 Michael Koch <konqueror@gmx.de>
739 * javax/swing/plaf/basic/BasicTextUI.java
740 (installDefaults): Install caret and highlighter.
741 (modelToView): Use Bias.Forward when calling sibling.
742 * javax/swing/text/AbstractDocument.java
743 (ElementEdit): Implements DocumentEvent.ElementChange.
744 (ElementEdit.ElementEdit): New method.
745 (ElementEdit.getChildrenAdded): Likewise.
746 (ElementEdit.getChildrenRemoved): Likewise.
747 (ElementEdit.getElement): Likewise.
748 (ElementEdit.getIndex): Likewise.
749 * javax/swing/text/DefaultCaret.java
751 (textComponent): Renamed from parent, made private.
752 (selectionVisible): Renamed from vis_sel, made private.
753 (blinkRate): Renamed from blink, made private.
754 (magicCaretPosition): Renamed from magic, made private.
755 (visible): Renamed from vis, made private.
758 (deinstall): Remove as MouseMotionListener.
759 (install): Initialize textComponent first. Add as MouseMotionListener.
760 (paint): Reimplemented.
761 * javax/swing/text/JTextComponent.java
762 (setCaret): Deinstall old caret, install new one and fire property
763 change after setting property.
764 (setHighlighter): Deinstall old highlighter, install new one and fire
765 property change after setting property.
766 (setCaretColor): Fire property change after setting property.
767 (setDisabledTextColor): Likewise.
768 (setSelectedTextColor): Likewise.
769 (setSelectionColor): Likewise.
770 (modelToView): New method.
772 2004-08-31 Michael Koch <konqueror@gmx.de>
774 * javax/swing/text/AbstractDocument.java
775 (getText): Simplified.
776 * javax/swing/text/Segment.java
777 (current): New field.
778 (current): Reimplemented.
780 (getIndex): Likewise.
783 (previous): Likewise.
784 (setIndex): Likewise.
786 2004-08-31 Michael Koch <konqueror@gmx.de>
788 * javax/swing/plaf/basic/BasicButtonUI.java
789 (defaultTextIconGap): Made protected.
790 (defaultTextShiftOffset): Likewise.
791 (textShiftOffset): New field.
792 (clearTextShiftOffset): New method.
793 (getTextShiftOffset): Likewise.
794 (setTextShiftOffset): Likewise.
796 2004-08-31 Michael Koch <konqueror@gmx.de>
798 * javax/swing/plaf/basic/BasicTextUI.java
799 (installUI): Add eventHandler as property listener.
800 (uninstallUI): remove eventHandler as propert listener.
801 (installDefaults): Added comment.
802 (installListeners): Likewise.
803 (installKeyboardActions): Likewise.
804 (uninstallDefaults): Likewise.
805 (uninstallListeners): Likewise.
806 (uninstallKeyboardActions): Likewise.
808 2004-08-31 Michael Koch <konqueror@gmx.de>
810 * javax/swing/text/AbstractDocument.java:
811 Fixed some typos in comments.
812 (insertString): Reimplemented.
814 (replace): New method.
815 (children): Dont use fully qualified class name.
816 (DefaultDocumentEvent.offset): Renamed from off.
817 (DefaultDocumentEvent.length): Renamed from len.
818 (DefaultDocumentEvent.type): New field.
819 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
820 (DefaultDocumentEvent.getType): Implemented.
822 2004-08-31 Michael Koch <konqueror@gmx.de>
824 * javax/swing/plaf/basic/BasicTextUI.java
825 (RootView.textComponent): Removed.
826 (RootView.RootView): Don't initialize textComponent.
827 (RootView.getViewFactory): New method.
828 (EventHandler): New inner class.
829 (rootView): Initialize at instance creation.
830 (eventHandler): New field.
831 (installUI): Don't create view hierarchy directly,
832 call modelChanged() instead.
833 (modelChanged): New method.
834 * javax/swing/text/JTextComponent.java
835 (setDocument): Fire property change event.
837 2004-08-31 Michael Koch <konqueror@gmx.de>
839 * javax/swing/plaf/basic/BasicTextUI.java
840 (RootView.paint): Removed debug output.
841 (paintSafely): Draw highlighter before text.
842 (paintBackground): Use background color of text component.
843 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
846 2004-08-31 Michael Koch <konqueror@gmx.de>
848 * javax/swing/plaf/basic/BasicToolBarUI.java
849 (BasicToolBarUI): Fixed arguments for constructor.
850 (createUI): Fixed creation of object.
852 2004-08-31 Michael Koch <konqueror@gmx.de>
854 * javax/swing/DefaultListSelectionModel.java
855 (fireValueChanged): Renamed from fireSelectionValueChanged,
858 2004-08-31 Michael Koch <konqueror@gmx.de>
860 * javax/swing/text/TabSet.java
861 (TabSet): Implements java.io.Serializable.
862 * javax/swing/text/TabStop.java
863 (TabStop): Implements java.io.Serializable.
864 (TabStop): Made public.
866 2004-08-31 Michael Koch <konqueror@gmx.de>
868 * javax/swing/JComponent.java
869 (setUI): Fire PropertyChange.
870 * javax/swing/JLabel.java
871 (text): Renamed from labelText.
872 (horizontalAlignment): New default vlaue.
873 (icon): Renamed from activeIcon.
874 (displayedMnemonic): Renamed from mnemonicKey, added default value.
875 (displayedMnemonicIndex): Renamed from underlineChar.
876 (setDisplayedMnemonic): Reimplemented.
877 * javax/swing/JRadioButton.java
878 (JRadioButton): New constructors.
879 * javax/swing/JTextField.java
880 (JTextField): Throw exception if colums < 0, initialitialz
881 this.columns directly and initialize document with text conditionally.
883 2004-08-31 Michael Koch <konqueror@gmx.de>
885 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
886 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
887 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
888 * javax/swing/text/FieldView.java
889 (paint): Just call super method for now.
890 * Makefile.am: Added new files.
891 * Makefile.in: Regenerated.
893 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
895 * javax/swing/AbstractSpinnerModel.java,
896 javax/swing/JSpinner.java,
897 javax/swing/SpinnerNumberModel.java,
898 javax/swing/plaf/basic/BasicSpinnerUI.java:
900 * javax/swing/plaf/basic/BasicLookAndFeel.java
901 (initClassDefaults): Added defaults for BasicSpinnerUI.
903 2004-08-31 Michael Koch <konqueror@gmx.de>
905 * Makefile.am: Added new files.
906 * Makefile.in: Regenerated.
908 2004-08-31 Michael Koch <konqueror@gmx.de>
910 * javax/swing/TransferHandler.java,
911 javax/swing/plaf/basic/ComboPopup.java: New files
912 * Makefile.am: Added javax/swing/TransferHandler.java and
913 javax/swing/plaf/basic/ComboPopup.java
914 * Makefile.in: Regenerated.
916 2004-08-31 Roman Kennke <roman@ontographics.com>
918 * javax/swing/text/Utilities.java: New file.
920 2004-08-31 Michael Koch <konqueror@gmx.de>
922 * Makefile.am: Added javax/swing/text/Utilities.java.
923 * Makefile.in: Regenerated.
925 2004-08-31 Graydon Hoare <graydon@redhat.com>
927 * javax/swing/text/SimpleAttributeSet.java: New file.
928 * javax/swing/text/StyleConstants.java: New file.
929 * javax/swing/text/StyleContext.java: New file.
930 * javax/swing/text/TabSet.java: New file.
931 * javax/swing/text/TabStop.java: New file.
932 * javax/swing/text/AbstactDocument.java:
933 (AbstractElement): Implement attribute support.
934 * javax/swing/text/AttributeSet.java
935 (NameAttribute): New static field.
936 (ResolveAttribute): New static field.
937 * Makefile.am: Update for new files.
938 * Makefile.in: Regenerate.
940 2004-08-31 Craig Black <craig.black@aonix.com>
942 * gnu/java/awt/peer/gtk/GdkGraphics.java
943 (drawImage): Add support for scaling pixmaps.
944 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
945 (copyAndScalePixmap): New native method.
947 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
950 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
951 type-punning compiler warnings using unions.
952 (throw): Replace bzero with memset.
954 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
955 Thomas Fitzsimmons <fitzsim@redhat.com>
957 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
958 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
959 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
960 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
961 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
963 2004-08-31 Mark Wielaard <mark@klomp.org>
965 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
966 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
967 and stdlib.h, not gtkpeer.h.
968 (*vm): New static variable.
969 (areaPreparedID): Make static.
970 (areaUpdatedID): Likewise.
971 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
972 (area_prepared): Likewise.
973 (area_updated): Likewise.
975 (initStaticState): Initialize *vm javaVM.
976 (pumpBytes): Use given env, not global gdk_env.
978 2004-08-31 Mark Wielaard <mark@klomp.org>
980 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
983 2004-08-31 Sven de Marothy <sven@physto.se>
985 * java/awt/geom/CubicCurve2D.java: Reindent.
986 (contains): Implemented.
987 (intersects): Implemented.
988 * java/awt/geom/QuadCurve2D.java: Likewise.
989 * java/awt/geom/GeneralPath.java: Reindent and document.
990 Fully (re)implemented using separate xpoints and ypoints
992 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
994 2004-08-31 Michael Koch <konqueror@gmx.de>
996 * javax/swing/JMenuItem.java
997 (getMenuDragMouseListeners): New method.
998 (getMenuKeyListeners): Likewise.
1000 2004-08-31 Michael Koch <konqueror@gmx.de>
1002 * javax/swing/AbstractButton.java
1003 (model): Made protected.
1004 (actionListener): Likewise.
1005 (changeListener): Likewise.
1006 (itemListener): Likewise.
1007 (multiClickThreshhold): New field.
1008 (getActionListeners): New method.
1009 (getChangeListeners): Likewise.
1010 (getItemListeners): Likewise.
1011 (fireItemStateChanged): Simplified implementation.
1012 (fireActionPerformed): Likewise.
1013 (fireStateChanged): Likewise.
1014 (getMultiClickThreshhold): New method.
1015 (setMultiClickThreshhold): Likewise.
1017 2004-08-31 Tom Tromey <tromey@redhat.com>
1019 * java/awt/image/Kernel.java (clone): Use super.clone().
1021 2004-08-31 David Jee <djee@redhat.com>
1024 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1025 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1026 (nativeSetIconImageFromData): New native method declaration.
1027 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1028 * gnu/java/awt/peer/gtk/GtkImage.java
1029 (getPixelCache): New method.
1030 (getColorModel): New method.
1031 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1032 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1033 (free_pixbuf_data): New helper function.
1034 (nativeSetIconImageFromData): New function.
1036 2004-08-31 Graydon Hoare <graydon@redhat.com>
1039 * javax/swing/JLayeredPane.java
1040 (setLayer): Permit changing layer after addition.
1041 (setPosition): Permit over-length positions.
1042 (layerToRange): Compare intValue()s.
1043 * javax/swing/Box.java (createHorizontalBox): Implement.
1044 (createRigidArea): Likewise.
1045 (createVerticalBox): Likewise.
1047 2004-08-31 Kim Ho <kho@redhat.com>
1049 * java/awt/Component.java:
1050 (processMouseEvent): Consume event after
1051 listeners process it.
1052 (processMouseMotionEvent): ditto.
1053 (processMouseWheelEvent): ditto.
1054 * java/awt/Container.java:
1055 (acquireComponentForMouseEvent):
1056 Do not dispatch to events that have been
1057 removed from the Container.
1058 (handleEvent): Consume the MouseEvents.
1059 * javax/swing/RepaintManager.java:
1060 (paintDirtyRegions): Do not add to list of
1061 damaged areas if the component has no root.
1063 2004-08-31 Michael Koch <konqueror@gmx.de>
1065 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1067 2004-08-31 Mark Wielaard <mark@klomp.org>
1069 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1070 null when a MissingResourceException is thrown. Should never happen.
1072 2004-08-31 Mark Wielaard <mark@klomp.org>
1074 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1075 when argument is null.
1077 2004-08-31 Mark Wielaard <mark@klomp.org>
1079 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1080 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1081 Define hid at start of function.
1082 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1085 2004-08-31 Mark Wielaard <mark@klomp.org>
1087 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1088 * javax/swing/JButton.java: Reindent.
1089 * javax/swing/JCheckBox.java: Reindent.
1091 2004-08-31 Mark Wielaard <mark@klomp.org>
1093 * Makefile.am (gtk_c_source_files): Added
1094 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1095 (gtk_awt_peer_sources): Added
1096 gnu/java/awt/peer/gtk/GThreadMutex.java and
1097 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1098 * Makefile.in: Regenerated.
1100 2004-08-31 Archie Cobbs <archie@dellroad.org>
1102 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1104 2004-08-31 Steven Augart <augart@watson.ibm.com>
1106 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1107 Added jfieldID, jmethodID.
1109 2004-08-31 Mark Wielaard <mark@klomp.org>
1111 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1112 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1113 gdk_env before calling any gdk or gtk function.
1115 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1116 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1117 (run): Set gtkInitCalled.
1119 2004-08-31 Steven Augart <augart@watson.ibm.com>
1121 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1122 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1124 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1125 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1126 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1128 (init_glib_threads): New function.
1130 2004-08-31 Mark Wielaard <mark@klomp.org>
1132 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1133 PRIORITY when not already defined in header file.
1135 2004-08-31 Mark Wielaard <mark@klomp.org>
1137 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1138 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1140 2004-08-31 Steven Augart <augart@watson.ibm.com>
1142 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1143 Implemented missing functions for GTK2.
1144 Added error handling.
1145 Renamed static functions out of the g_ namespace.
1146 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1147 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1148 Rewrote global-reference code.
1149 Eliminated cascading errors.
1150 (mutex_trylock_jni_impl) Fully implemented.
1151 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1153 (setup_cache) New function.
1154 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1155 bug where they were not unlocking the GMutex associated with the
1156 condition variable during the wait on that condition variable.
1158 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1159 native/jni/gtk-peer/gthread-jni.c,
1160 native/jni/gtk-peer/gthread-jni.h
1161 (g_thread_jni_functions): Renamed to ...
1162 (portable_native_sync_jni_functions): this name.
1163 (gdk_vm): Renamed to...
1164 (the_vm): this name.
1166 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1167 (gdk_vm): Removed duplicate definition.
1168 (gtkInit): Removed stray message to stdout.
1169 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1170 (gtkInit): Fix a const assignment bug.
1171 (gtkInit): Simplified code.
1173 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1174 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1175 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1176 gnu/java/awt/peer/gtk/GThreadMutex.java:
1179 2004-08-31 Mark Wielaard <mark@klomp.org>
1181 * javax/swing/Box.java: Put FIXME comment above class declaration.
1182 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1183 * javax/swing/JCheckBox.java: Likewise.
1184 * javax/swing/JDialog.java: Likewise.
1185 * javax/swing/JRadioButton.java: Likewise.
1186 * javax/swing/JToggleButton.java: Likewise.
1187 * javax/swing/UIManager.java: Likewise.
1188 * javax/swing/border/TitledBorder.java: Likewise.
1189 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1190 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1191 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1192 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1193 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1194 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1195 * javax/swing/text/JTextComponent.java: Likewise.
1197 2004-08-31 David Jee <djee@redhat.com>
1200 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1201 (setIconImage): Add a FIXME for unhandled cases.
1203 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1206 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1207 getModifiers. Replace old button masks with new ones.
1208 * gnu/awt/xlib/XEventLoop.java: Likewise.
1209 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1210 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1211 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1212 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1213 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1214 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1215 * java/awt/Component.java: Replace old modifier masks with new
1217 * java/awt/Container.java: Call getModifiersEx, not
1219 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1221 * javax/swing/JMenuItem.java: Replace old button masks with new
1223 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1225 * javax/swing/SwingUtilities.java: Likewise.
1226 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1227 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1228 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1229 mask macros with new ones.
1230 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1231 macros with new ones representing new masks.
1233 2004-08-31 Craig Black <craig.black@aonix.com>
1235 * gnu/java/awt/peer/gtk/GdkGraphics.java
1236 (drawRoundRect): Implemented.
1237 (fillRoundRect): Implemented.
1238 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1239 (drawRoundRect): Reimplemented to match GdkGraphics.
1240 (fillRoundRect): Reimplemented to match GdkGraphics.
1242 2004-08-31 Mark Wielaard <mark@klomp.org>
1244 * Makefile.in: Regenerated.
1246 2004-08-31 Michael Koch <konqueror@gmx.de>
1248 * gnu/java/awt/EmbeddedWindow.java
1249 (addNotify): Use AccessController to allow execution of privileged
1252 2004-08-31 Michael Koch <konqueror@gmx.de>
1254 * gnu/java/awt/EmbeddedWindow.java
1256 (addNotify): Set peer via reflection.
1257 (setWindowPeer): Removed.
1258 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1259 * Makefile.am (nat_source_files):
1260 Removed gnu/java/awt/natEmbeddedWindow.cc.
1262 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1264 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1265 and gnu/java/security/action/SetAccessibleAction.java.
1267 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1269 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1270 Renamed from 'setName'. New 2-argument form with default value.
1271 (run): Pass default 'value' parameter to System.getProperty().
1272 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1275 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1277 * gnu/java/security/action/GetPropertyAction.java: New class.
1278 * gnu/java/security/action/SetAccessibleAction.java: New class.
1280 2004-08-31 David Jee <djee@redhat.com>
1282 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1283 (setIconImage): Check if image is null.
1285 2004-08-31 David Jee <djee@redhat.com>
1287 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1288 (create): Set the icon image.
1289 (nativeSetIconImage): New native method declaration.
1290 (setIconImage): Implement.
1291 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1292 (nativeSetIconImage): New function.
1294 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1296 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1297 (filenameFilterCallback): Declare local variable accepted before use.
1299 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1301 * gnu/java/awt/ComponentDataBlitOp.java:
1304 2004-08-31 Tom Tromey <tromey@redhat.com>
1306 * gnu/java/awt/peer/GLightweightPeer.java,
1307 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1308 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1309 javax/swing/JScrollPane.java: Removed
1312 2004-08-31 David Jee <djee@redhat.com>
1314 * java/awt/DefaultKeyboardFocusManager.java
1315 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1316 event. Fix shift modifier checking.
1317 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1318 (accel_attach): Remove.
1319 (setupAccelGroup): Remove calls to accel_attach.
1321 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1323 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1324 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1326 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1328 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1329 * Makefile.in: Regenerate.
1330 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1331 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1332 (create(String)): New method.
1333 (create): Call new create method.
1334 (getArgs): Remove method.
1335 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1336 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1337 (nativeCreate): Rename to create.
1338 (gtkSetLabel): Rename to gtkButtonSetLabel.
1339 (gtkToggleButtonSetActive): New method.
1340 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1341 (setState): Replace set call with gtkToggleButtonSetActive.
1342 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1343 (getArgs): Remove method.
1344 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1345 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1346 (gtkWidgetSetSensitive): New method.
1347 (gtkWidgetSetParent): Likewise.
1348 (GtkComponentPeer): Call setParent, setComponentBounds and
1349 setVisibleAndEnabled.
1350 (setParent): New method.
1351 (setComponentBounds): New method.
1352 (setVisibleAndEnabled): New method.
1353 (setEnabled): Call gtkWidgetSetSensitive.
1354 (getArgs): Remove method.
1355 Remove all set methods.
1356 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1357 gtkWindowSetModal, setTitle and setResizable.
1358 (getArgs): Remove method.
1359 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1360 (setComponentBounds): New method.
1361 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1362 Replace set call with gtkWindowSetResizable.
1363 (getArgs): Remove method.
1364 (create): Call setTitle and setResizable.
1365 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1366 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1367 (gtkWindowSetTitle): New method.
1368 (gtkWindowSetResizable): New method.
1369 (gtkWindowSetModal): New method.
1370 (setParent): New method.
1371 (setVisibleAndEnabled): New method.
1372 (getArgs): Remove method.
1373 (setTitle): Call gtkWindowSetTitle.
1374 (setResizable): Call gtkWindowSetResizable.
1375 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1376 and off locking instrumentation.
1378 2004-08-31 Kim Ho <kho@redhat.com>
1380 * Makefile.am: Add new file.
1381 * Makefile.in: Regenerate.
1382 * gcj/Makefile.in: Regenerate
1383 * include/Makefile.in:
1384 * java/awt/Container.java:
1385 (acquireComponentForMouseEvent): Respect
1386 the event mask when looking for candidate.
1387 * javax/swing/JComponent.java:
1388 Remove toolTip field.
1389 (createToolTip): Create a tooltip on demand.
1390 (setToolTipText): Register with the ToolTipManager.
1391 (getToolTipText(MouseEvent)): Return getToolTipText().
1392 * javax/swing/JToolTip.java: Implement.
1393 * javax/swing/Timer.java: Jalopy.
1394 (restart): Call stop, then start.
1395 (stop): Interrupt the timer rather than wait for
1396 the timer to come to a stop naturally.
1397 * javax/swing/ToolTipManager.java: Implement.
1398 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1399 Change ToolTip.background color.
1400 * javax/swing/plaf/basic/BasicToolTipUI.java:
1402 * testsuite/Makefile.in: Regenerate
1404 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
1406 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1407 constructor param comments.
1409 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1411 * java/awt/Component.java: Document AWT 1.0 event handler
1414 2004-08-31 Roman Kennke <roman@ontographics.com>
1416 * javax/swing/Box.java:
1417 (createGlue): Implemented
1418 (createHorizontalGlue): Implemented
1419 (createHorizontalStrut): Implemented
1420 (createVerticalGlue): Implemented
1421 (createVerticalStrut): Implemented
1423 2004-08-31 David Jee <djee@redhat.com>
1425 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1426 (GtkChoicePeer): Do not automatically select first item.
1427 (getHistory): Remove.
1428 (nativeGetSelected): New method.
1429 (nativeRemoveAll): New method.
1430 (add): Use nativeGetSelected() instead of getHistory().
1432 (removeAll): Call nativeRemoveAll().
1433 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1434 (create): Migrate to GtkComboBox.
1436 (nativeAdd): Likewise.
1437 (nativeRemove): Likewise.
1439 (nativeRemoveAll): New method.
1440 (nativeGetSelected): New method.
1441 (selection_changed): New method.
1442 (getHistory): Remove.
1443 (item_activate): Remove.
1444 (item_removed): Remove.
1445 (connect_choice_item_selectable_hook): Remove.
1447 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1449 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1450 variable in setEditable call.
1452 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1453 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1454 (gtkWidgetSetBackground): New method.
1455 (gtkWidgetSetForeground): Likewise.
1456 (create): Set peer's editable state based on awtComponent's.
1458 * java/awt/Button.java (Button()): Use empty string rather than
1459 null in no-label constructor.
1461 2004-08-31 Roman Kennke <roman@ontographics.com>
1463 * javax/swing/BoxLayout.java: Reimplement.
1465 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1467 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1468 gnu_java_awt_peer_gtk_GdkGraphics.c
1469 (initState(GtkComponentPeer)): Don't return array of colour
1471 (GdkGraphics(int,int)): Set default font to size 12.
1472 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1473 component's foreground colour.
1474 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1475 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1476 (initState(GtkComponentPeer)): Don't return array of colour
1478 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1479 colours to component's colours.
1480 (current_colors_of_widget): Remove function.
1481 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1482 Return a new graphics object.
1483 * java/awt/Font.java (toString): Fix format.
1484 * java/awt/Graphics.java (toString): Likewise.
1486 2004-08-31 Craig Black <craig.black@aonix.com>
1488 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1489 (addTearOff): New function.
1490 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1492 (init): Call addTearOff() when menu.isTearOff().
1494 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1496 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
1497 Default implementation.
1498 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
1499 Implement using GdkPixbufDecoder.
1501 2004-08-31 David Jee <djee@redhat.com>
1503 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1504 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
1505 setting the size of GtkFileDialogPeers.
1506 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1507 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
1508 use their default sizes rather than their natural requisitions.
1510 2004-08-31 Michael Koch <konqueror@gmx.de>
1512 * javax/swing/JFormattedTextField.java
1513 (JFormattedTextField): Implemented.
1514 * javax/swing/text/DefaultEditorKit.java
1515 (BeepAction): New inner class.
1516 * javax/swing/text/Segment.java
1517 (partialReturn): New field.
1518 (setPartialReturn): New method.
1519 (isPartialReturn): Likewise.
1520 * javax/swing/text/View.java
1521 (createFragment): Fixed typo.
1522 (getStartOffset): New method.
1523 (getEndOffset): Likewise.
1525 2004-08-31 Michael Koch <konqueror@gmx.de>
1527 * javax/swing/table/DefaultTableColumnModel.java
1528 (serialVersionUID): Made private.
1529 (listenerList): Initialize.
1530 (changeEvent): Initialize.
1531 * javax/swing/table/JTableHeader.java
1532 (JTableHeader): New constructors.
1533 (createDefaultColumnModel): New method.
1534 * javax/swing/table/TableColumn.java
1535 (setHeaderRenderer): Simplified code.
1536 (setCellRenderer): Likewise.
1537 (setWidth): Likewise.
1539 2004-08-31 Tom Tromey <tromey@redhat.com>
1541 * java/text/AttributedString.java (AttributedString): Use
1542 ArrayList to build array of attribute ranges. Don't use
1543 `attribs' before it is set.
1545 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1547 * HACKING: Remove reference to special automake. No longer needed.
1549 2004-08-30 Tom Tromey <tromey@redhat.com>
1551 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
1552 return result from `add'.
1554 2004-08-30 Tom Tromey <tromey@redhat.com>
1556 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
1558 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1560 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
1562 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
1564 * java/io/File.java File(String,String): Fixed handling of empty
1567 2004-08-30 Casey Marshall <csm@gnu.org>
1569 Author e-mail updated for all files.
1570 * gnu/java/security/OID.java (equals): Test if the aurgment is an
1572 (compareTo): Use `equals'.
1573 * gnu/java/security/der/BitString.java (equals): Test if the
1574 argument is an instance of BitString.
1575 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
1576 class final. Made fields private.
1577 (<init>): New constructor.
1579 (makeString): Made static; don't use NIO.
1580 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
1581 * gnu/java/security/der/DERWriter.java: Fixed imports.
1582 (writeString): Don't use NIO.
1583 (toIso88591, toUtf16Be, toUtf8): New methods.
1584 * gnu/java/security/der/DERValue.java: Formatting changes only.
1585 * gnu/java/security/der/DER.java: Likewise.
1587 2004-08-30 Tom Tromey <tromey@redhat.com>
1589 * java/nio/CharBuffer.java (put): Fix typo.
1590 * java/nio/DoubleBuffer.java (put): Fix typo.
1591 * java/nio/FloatBuffer.java (put): Fix typo.
1592 * java/nio/IntBuffer.java (put): Fix typo.
1593 * java/nio/LongBuffer.java (put): Fix typo.
1594 * java/nio/ShortBuffer.java (put): Fix typo.
1596 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
1598 * java/nio/ByteBuffer.java (put): Fix typo.
1600 2004-08-30 Casey Marshall <csm@gnu.org>
1602 * java/security/DummyKeyPairGenerator.java (clone): Removed
1603 useless instanceof check.
1604 * java/security/DummyMessageDigest.java (clone): Likewise.
1605 * java/security/DummySignature.java (clone): Likewise.
1606 * java/security/MessageDigest.java (clone): Remove useless
1608 * java/security/MessageDigestSpi.java (clone): Likewise.
1609 * java/security/Signature.java (clone): Provide meaningful
1611 * java/security/SignatureSpi.java (clone): Likewise.
1613 2004-08-29 Mark Wielaard <mark@klomp.org>
1615 * java/util/Arrays.java
1616 (sort(byte[], int, int)): Check fromIndex < 0.
1617 (sort(char[], int, int)): Likewise.
1618 (sort(short[], int, int)): Likewise.
1619 (sort(int[], int, int)): Likewise.
1620 (sort(long[], int, int)): Likewise.
1621 (sort(float[], int, int)): Likewise.
1622 (sort(double[], int, int)): Likewise.
1623 (sort(Object[], int, int, Comparator)): Likewise.
1624 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
1625 (qsort(char[], int, int)): Likewise.
1626 (qsort(short[], int, int)): Likewise.
1627 (qsort(int[], int, int)): Likewise.
1628 (qsort(long[], int, int)): Likewise.
1629 (qsort(float[], int, int)): Likewise.
1630 (qsort(double[], int, int)): Likewise.
1632 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
1634 * java/util/AbstractCollection.java, java/util/AbstractList.java,
1635 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
1636 java/util/ArrayList.java, java/util/Arrays.java,
1637 java/util/BitSet.java, java/util/Calendar.java,
1638 java/util/Collection.java, java/util/ListIterator.java,
1639 java/util/Map.java, java/util/SortedSet.java:
1640 Added additional exceptions to documentation, along
1641 with some additions and corrections.
1643 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
1645 * configure.ac: Handle --enable-gc-debug.
1646 * configure: Regenerate.
1647 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
1648 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
1649 Rearrange include file order.
1650 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
1651 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
1652 (disable_gc_mutex): Delete along with all references.
1653 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
1654 adjust for debug header size.
1655 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
1657 (_Jv_AllocArray): Declare min_heap_addr only if needed.
1658 (gcj_describe_type_fn): New.
1659 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
1660 Register gcj_describe_type_fn.
1661 * include/boehm-gc.h:
1662 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
1663 Don't define, but declare, for debug case.
1664 * java/lang/natObject.cc:
1665 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
1667 2004-08-26 Mark Wielaard <mark@klomp.org>
1669 Fixes PR libgcj/17002:
1670 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
1671 a TimeZoneId string and then try to convert that to a TimeZone with
1672 getDefaultSystemTimeZone(String).
1673 (timezones0): Changed type from Hashtable to HashMap.
1674 (timezones): Create HashMap, not Hashtable.
1675 (getDefaultTimeZone): New method, rewritten from CNI version.
1676 (readTimeZoneFile): New method.
1677 (readtzFile): Likewise.
1678 (skipFully): Likewise.
1679 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
1680 getDefaultTimeZoneId and rewritten.
1681 (getDefaultTimeZoneId): Rewritten in java.
1683 2004-08-25 David Daney <daney@avtrex.com>
1685 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
1686 * Makefile.in: Regenerated.
1688 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
1690 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
1691 only if jvmpi is enabled.
1692 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
1693 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
1694 (_Jv_AllocString): Likewise.
1695 (_Jv_AllocPtrFreeObject): Likewise.
1697 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
1699 * defineclass.cc: Include <stdio.h>.
1700 * java/lang/natClassLoader.cc: Include <stdio.h>.
1702 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
1703 Michael Koch <konqueror@gmx.de>
1705 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
1706 * Makefile.in: Regenerated.
1708 2004-08-20 Michael Koch <konqueror@gmx.de>
1710 * configure.ac: Replaced all AC_TRY_COMPILE macros with
1711 AC_COMPILE_IFELSE macros.
1713 2004-08-20 Michael Koch <konqueror@gmx.de>
1715 * configure.in: Renamed to configure.ac.
1716 * configure.ac: New file.
1717 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
1718 include/config.h.in, testsuite/Makefile.in: Regenerated.
1720 2004-08-20 Michael Koch <konqueror@gmx.de>
1722 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
1723 * aclocal.m4, configure: Regenerated.
1725 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
1726 Michael Koch <konqueror@gmx.de>
1728 * configure.in, Makefile.am: Ported to automake 1.9.
1729 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
1730 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
1733 2004-08-19 Tom Tromey <tromey@redhat.com>
1735 * java/net/DatagramSocket.java: Fixed typo.
1737 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1740 * java/net/URI.java (string): New field. Make all other fields
1742 (readObject): Implemented.
1743 (writeObject): Implemented.
1744 (URI): Set 'string'.
1746 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1749 * java/util/logging/Handler.java (isLoggable): Accept record if its
1750 log level equals the threshold level. From Robin Green.
1752 2004-08-18 David Daney <ddaney@avtrex.com>
1754 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
1757 2004-08-17 Michael Koch <konqueror@gmx.de>
1759 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
1760 * Makefile.in: Regenerated.
1762 2004-08-16 Tom Tromey <tromey@redhat.com>
1765 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
1767 2004-08-16 Michael Koch <konqueror@gmx.de>
1770 (math_c_files): Renamed from c_files.
1771 (math_c_source_files): Renamed from c_source_files.
1774 include/Makefile.in,
1775 testsuite/Makefile.in: Regenerated.
1777 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
1779 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
1780 to avoid autoconf warning.
1781 * configure: Rebuilt.
1783 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
1785 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
1786 localhostAddress to loopbackAddress.
1787 * java/net/natInetAddressWin32.cc (lookup): Likewise.
1789 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1791 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
1792 boehm-gc's include dirs.
1793 * configure: Rebuilt.
1794 * include/boehm-gc.h: Include gc_config.h.
1796 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1798 * java/net/InetAddress.java (loopbackAddress): Renamed from
1800 (getByName): Return loopback address for null hostname, without
1801 security check. Use lookup(), not getAllByName.
1802 (getAllByName): Return loopback address for null hostname, without
1804 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
1807 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1810 Reported by Robin Green.
1811 * defineclass.cc (handleField): Don't throw exception on unrecognised
1812 modifier. Add FIXME comments for spec compliance.
1813 (handleMethod): Likewise.
1815 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
1818 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
1819 (Almost everywhere): add LOG calls, fix, add comments.
1820 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
1821 Add explicit check for LOCKED bit in slow case (PR 16662).
1822 (_Jv_MonitorExit): Add casts in debug-only code.
1823 Always release LOCKED bit before throwing exception.
1824 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
1825 isn't. Handle easy cases without lock acquisition.
1826 (Object::wait): Use NotifyAll for lock inflation.
1828 2004-08-12 David Daney <ddaney@avtrex.com>
1830 * testsuite/libjava.lang/Process_1.java: New test.
1831 * testsuite/libjava.lang/Process_2.java: New test.
1832 * testsuite/libjava.lang/Process_3.java: New test.
1833 * testsuite/libjava.lang/Process_4.java: New test.
1834 * testsuite/libjava.lang/Process_5.java: New test.
1835 * testsuite/libjava.lang/Process_6.java: New test.
1836 * testsuite/libjava.lang/Process_1.out: Expected result.
1837 * testsuite/libjava.lang/Process_2.out: Expected result.
1838 * testsuite/libjava.lang/Process_3.out: Expected result.
1839 * testsuite/libjava.lang/Process_4.out: Expected result.
1840 * testsuite/libjava.lang/Process_5.out: Expected result.
1841 * testsuite/libjava.lang/Process_6.out: Expected result.
1843 2004-08-12 David Daney <ddaney@avtrex.com>
1846 * java/lang/PosixProcess.java: Rewrote.
1847 * java/lang/natPosixProcess.cc: Rewrote.
1848 * java/lang/Runtime.java (execInternal): Declare throws IOException.
1849 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
1850 * posix-threads.cc (block_sigchld) New function.
1851 (_Jv_ThreadRegister) Use it.
1852 (_Jv_ThreadStart) Use it.
1853 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
1854 * Makefile.am: ... to specify extra native headers.
1855 * configure: Regenerated.
1856 * include/config.h: Regenerated.
1857 * Makefile.in: Regenerated.
1858 * gcj/Makefile.in: Regenerated.
1859 * include/Makefile.in: Regenerated.
1860 * testsuite/Makefile.in: Regenerated.
1862 2004-08-12 Diego Novillo <dnovillo@redhat.com>
1864 PR tree-optimization/16867
1865 * testsuite/libjava.lang/PR16867.java: New test.
1867 2004-08-09 Per Bothner <per@bothner.com>
1869 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
1870 with private fields and access methods.
1871 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
1872 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
1873 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
1874 ( _Jv_makeUtf8Const): Rewrite using new constructors.
1875 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
1876 * defineclass.cc: Use new _Utf8Const access/convenience methods.
1878 * resolve.cc: Likewise.
1879 * gcj/field.h: Likewise.
1880 * include/jvm.h: Likewise.
1881 * java/lang/Class.h: Likewise.
1882 * java/lang/natClass.cc: Likwise.
1883 * java/lang/natClassLoader.cc: Likewise
1884 * java/lang/reflect/natMethod.cc: Likewise
1885 * verify.cc: Likewise.
1886 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
1887 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
1889 2004-08-10 Andrew Haley <aph@redhat.com>
1891 * testsuite/libjava.lang/err14.java: New file.
1892 * testsuite/libjava.lang/err14.out: New file.
1894 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
1896 * Makefile.am: Fix missing rename from x_nat_headers to
1898 * Makefile.in: Regenerated.
1900 2004-08-04 Andrew Haley <aph@redhat.com>
1902 * java/security/BasicPermission.java: Don't check wildcards.
1904 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
1905 Michael Koch <konqueror@gmx.de>
1907 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
1908 * configure.in: Replaced all usages of AC_LINK_FILES by
1911 configure: Regenerated.
1913 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
1914 Michael Koch <konqueror@gmx.de>
1916 * acconfig.h: Removed.
1917 * Makefile.am: Rename variables for xlib peer to include xlib and
1918 gtk_c_headers to gtk_jni_headers.
1919 * Makefile.in: Regenerated.
1921 2004-08-04 Andrew Haley <aph@redhat.com>
1923 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
1926 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
1928 * configure.in: Eliminate uses of changequote (mostly by quoting []).
1929 Replace most top level 'dnl' comments with '#' comments, conforming
1930 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
1932 * configure: Rebuilt.
1934 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
1936 * acinclude.m4: Include no-executables.m4.
1937 * aclocal.m4: Rebuild.
1938 * configure.in: Convert to the autoconf 2.59 version of
1939 of the no-executables hack, and also of the nonstandard CXX
1940 hack and the multilibbed CC and CXX hack. Change prerequisite
1942 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
1943 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1944 testsuite/Makefile.in: Regenerate.
1946 2004-08-03 Tom Tromey <tromey@redhat.com>
1948 * jni.cc: Reindented.
1950 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
1952 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
1954 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
1956 * testsuite/libjava.compile/PR16701.java: New test.
1958 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
1960 * java/util/Collection.java, java/util/List.java,
1961 java/util/Map.java, java/util/Set.java,
1962 java/util/SortedMap.java, java/util/SortedSet.java:
1963 Added additional exceptions to documentation.
1965 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
1968 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
1969 * configure. Regenerate.
1970 * include/win32.h: Explicitly include winsock2.h
1971 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
1974 2004-07-30 Michael Koch <konqueror@gmx.de>
1976 * java/util/zip/GZIPInputStream.java
1977 (GZIPInputStream): Increase buffer size to 4k.
1978 * java/util/zip/GZIPOutputStream.java
1979 (GZIPOutputStream): Likewise.
1980 * java/util/zip/Inflater.java
1981 (setInput): Merged formating with GNU classpath.
1982 * java/util/zip/InflaterInputStream.java
1983 (InflaterInputStream): Increase buffer size to 4k.
1984 (fill): Throw exception if stream ends early.
1985 (read): Merged endless-loop with GNU classpath.
1986 (skip): Increase buffer size to 2k.
1988 2004-07-30 Michael Koch <konqueror@gmx.de>
1990 * gnu/java/awt/EmbeddedWindow.java
1991 (addNotify): Use AccessController to allow execution of privileged
1994 2004-07-29 Michael Koch <konqueror@gmx.de>
1996 * gnu/java/lang/MainThread.java:
1997 Explicitely import used classes.
1998 (args): Make it type String[].
2000 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2002 * gnu/java/awt/ComponentDataBlitOp.java,
2003 gnu/java/beans/ExplicitBeanInfo.java,
2004 gnu/java/beans/IntrospectionIncubator.java,
2005 gnu/java/beans/editors/ColorEditor.java,
2006 gnu/java/beans/editors/FontEditor.java,
2007 gnu/java/beans/editors/NativeBooleanEditor.java,
2008 gnu/java/beans/editors/NativeByteEditor.java,
2009 gnu/java/beans/editors/NativeDoubleEditor.java,
2010 gnu/java/beans/editors/NativeFloatEditor.java,
2011 gnu/java/beans/editors/NativeIntEditor.java,
2012 gnu/java/beans/editors/NativeLongEditor.java,
2013 gnu/java/beans/editors/NativeShortEditor.java,
2014 gnu/java/beans/editors/StringEditor.java,
2015 gnu/java/io/ClassLoaderObjectInputStream.java,
2016 gnu/java/io/decode/Decoder.java,
2017 gnu/java/io/encode/Encoder.java,
2018 gnu/java/lang/ClassHelper.java,
2019 gnu/java/locale/Calendar.java,
2020 gnu/java/locale/Calendar_de.java,
2021 gnu/java/locale/Calendar_en.java,
2022 gnu/java/locale/Calendar_nl.java,
2023 gnu/java/locale/LocaleInformation_de.java,
2024 gnu/java/locale/LocaleInformation_en.java,
2025 gnu/java/locale/LocaleInformation_nl.java:
2028 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2030 * README: Remove obsolete info. Update bug URL.
2032 * NEWS: Updated with news up to GCC 3.4 release.
2034 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2036 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2037 Renamed from 'setName'. New 2-argument form with default value.
2038 (run): Pass default 'value' parameter to System.getProperty().
2039 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2041 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2044 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2046 * configure.in: Check for minimum GTK version 2.4 requirement.
2047 * configure: Rebuilt.
2049 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2051 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2052 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2054 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2056 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2057 address. Reduce sleep times. Synchronize with target threads before
2058 attempting to interrupt them. Don't try to calibrate yeild count,
2059 instead, always loop for a fixed time.
2060 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2061 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2062 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2063 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2064 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2065 * testsuite/libjava.lang/pr179.java: Likewise.
2066 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2067 time. Remove upper bounds check on sleep time.
2069 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2071 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2072 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2074 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2076 * java/io/File.java (toURI): Throw RuntimeException, not
2078 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2079 class name, not instance.
2081 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2083 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2084 and gnu/java/security/action/SetAccessibleAction.java.
2085 * Makefile.in: Rebuilt.
2087 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2089 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2090 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2092 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2093 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2094 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2096 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2098 * Makefile.am: Replace jar, rmic and rmiregistry references with
2099 gjar, grmic and grmiregistry.
2100 * configure.in: Likewise.
2101 * Makefile.in: Regenerate.
2102 * configure: Likewise.
2103 * gcj/Makefile.in: Likewise.
2104 * include/Makefile.in: Likewise.
2105 * testsuite/Makefile.in: Likewise.
2107 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2109 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2110 for privileged getProperty calls.
2111 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2112 SetAccessibleAction instead of anonymous class for doPrivileged call.
2113 (getMethod): Likewise.
2114 (setAccessible): New field. PrivilegedAction object to use when
2115 calling setAccessible.
2116 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2117 SetAccessibleAction instead of anonymous class for diPrivileged call.
2118 (setFields): Likewise.
2119 (getClassUID): Likewise.
2120 (findMethod): Likewise.
2121 * gnu/java/security/action/GetPropertyAction.java: New class.
2122 * gnu/java/security/action/SetAccessibleAction.java: New class.
2124 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2126 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2128 * testsuite/libjava.lang/Serialization.java: New test.
2129 * testsuite/libjava.lang/Serialization.out: New.
2131 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2133 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2134 missed in last commit.
2136 2004-07-23 Mark Wielaard <mark@klomp.org>
2138 * java/lang/System.java (static): Set http.agent system property when
2140 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2141 from system property inside AccessController.doPrivileged() call.
2142 (proxyPort): Made package private.
2143 (proxyInUse): Likewise.
2144 (proxyHost): Likewise.
2145 (userAgent): Likewise.
2147 2004-07-23 Mark Wielaard <mark@klomp.org>
2149 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2152 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2154 * Makefile.am (ordinary_java_source_files): Add
2155 DefaultContentHandlerFactory.java.
2156 * Makefile.in: Rebuilt.
2157 * java/net/URLConnection.java (defaultFactory): New field.
2159 (getContentHandler): Renamed from 'setContentHandler'. Try
2160 defaultFactory after user-set factory, if any. Search for content
2161 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2162 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2164 (getLastModified): Implemented.
2165 (getPermission): Create file permission here, instead of in
2167 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2169 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2171 (getLastModified): Implemented.
2172 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2173 Default implementation.
2174 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2175 Implement using GdkPixbufDecoder.
2177 2004-07-21 Michael Koch <konqueror@gmx.de>
2179 * javax/swing/JTextArea.java
2180 (setLineWrap): Fire property change event after new value is set.
2181 (setTabSize): Likewise.
2183 2004-07-21 Michael Koch <konqueror@gmx.de>
2185 * javax/swing/JTable.java
2186 (autoCreateColumnsFromModel): New field.
2187 (autoResizeMode): Likewise.
2188 (cellEditor): Likewise.
2189 (cellSelectionEnabled): Likewise.
2190 (columnModel): Likewise.
2191 (dataModel): Likewise.
2192 (defaultEditorsByColumnClass): Likewise.
2193 (defaultRenderersByColumnClass): Likewise.
2194 (editingColumn): Likewise.
2195 (editingRow): Likewise.
2196 (gridColor): Likewise.
2197 (preferredViewportSize): Likewise.
2198 (rowHeight): Likewise.
2199 (rowMargin): Likewise.
2200 (rowSelectionAllowed): Likewise.
2201 (selectionBackground): Likewise.
2202 (selectionForeground): Likewise.
2203 (selectionModel): Likewise.
2204 (showHorizontalLines): Likewise.
2205 (showVerticalLines): Likewise.
2206 (tableHeader): Likewise.
2207 (JTable): Implemented.
2208 (getColumnModel): Likewise.
2209 (getSelectedRow): Likewise.
2210 (getSelectionModel): Likewise.
2211 (setModel): Likewise.
2212 (setSelectionModel): Likewise.
2213 (createScrollPaneForTable): New method.
2214 (createDefaultDataModel): Likewise.
2215 (createDefaultListSelectionModel): Likewise.
2216 (getModel): Likewise.
2217 (getTableHeader): Likewise.
2218 (setTableHeader): Likewise.
2219 (getColumnSelectionAllowed): Likewise.
2220 (setColumnSelectionAllowed): Likewise.
2221 (getRowSelectionAllowed): Likewise.
2222 (setRowSelectionAllowed): Likewise.
2223 (getAutoResizeMode): Likewise.
2224 (setAutoResizeMode): Likewise.
2225 (getColumnCount): Likewise.
2226 (getRowCount): Likewise.
2227 (getCellRenderer): Likewise.
2228 * javax/swing/JTree.java
2229 (cellRenderer): New field.
2230 (editable): Likewise.
2231 (rootVisible): Likewise.
2232 (showsRootHandles): Likewise.
2233 (getModel): New method.
2234 (setModel): Likewise.
2235 (isEditable): Likewise.
2236 (setEditable): Likewise.
2237 (isRootVisbile): Likewise.
2238 (setRootVisible): Likewise.
2239 (getShowsRootHandles): Likewise.
2240 (setShowRootHandles): Likewise.
2241 (getCellRenderer): Likewise.
2242 (setCellRenderer): Likewise.
2244 2004-07-21 Michael Koch <konqueror@gmx.de>
2246 * javax/swing/JFormattedTextField.java
2247 (setDocument): Implemented.
2248 * javax/swing/JRootPane.java:
2250 * javax/swing/JTable.java
2251 (getDefaultRenderer): New method.
2252 * javax/swing/JTextField.java
2253 (setFont): Likewise.
2254 (getPreferredSize): Likewise.
2255 * javax/swing/JToggleButton.java
2256 (getAccessibleContext): Fix javadoc.
2257 * javax/swing/JTree.java:
2259 * javax/swing/JViewport.java:
2262 2004-07-21 David Jee <djee@redhat.com>
2264 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2265 Collect all native method declaration at the top.
2266 (create): Set the filename filter if necessary.
2267 (setDirectory): Call nativeSetDirectory().
2268 (setFilenameFilter): Implement.
2269 (filenameFilterCallback): New method.
2270 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2271 (create): Configure dialog to show hidden files.
2272 (filenameFilterCallback): New function.
2273 (nativeSetFilenameFilter): New function.
2274 (nativeSetDirectory): New function.
2276 2004-07-21 Kim Ho <kho@redhat.com>
2278 * javax/swing/plaf/basic/BasicSliderUI.java:
2280 (paintTrack): Fill the track before painting
2283 2004-07-21 Graydon Hoare <graydon@redhat.com>
2285 patch from Roman Kennke <roman@ontographics.com>
2286 * javax/swing/Spring.java: New file.
2287 * javax/swing/SpringLayout.java: New file.
2288 * Makefile.am: Add new files.
2289 * Makefile.in: Regenerate.
2291 2004-07-21 Graydon Hoare <graydon@redhat.com>
2293 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2294 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2295 * javax/swing/ScrollPaneLayout.java: Likewise.
2297 2004-07-21 Kim Ho <kho@redhat.com>
2299 * javax/swing/DefaultDesktopManager.java:
2300 (findMinimum): Removed.
2301 (resizeFrame): Trust the UI to pass valid
2303 * javax/swing/JOptionPane.java:
2304 Implemented showInternalXXXDialog methods.
2305 (startModal): New method.
2306 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2307 (BorderListener::mouseDragged): Verify that the new
2308 bounds are valid before passing them to the DesktopManager.
2309 (preferredLayoutSize): Delegate
2311 (minimumLayoutSize): Ditto.
2312 (getSize): New method.
2313 (GlassPaneDispatcher): Reimplemented by copying
2314 a stripped down LightweightDispatcher from Container.
2315 (getMinimumSize): Call minimumLayoutSize.
2316 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2318 (mousePressed): Add ability to properly close
2320 * javax/swing/plaf/basic/BasicToolBarUI.java:
2321 (DragWindow): Set owner for DragWindow.
2323 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2325 * java/awt/image/ShortLookupTable.java: New file.
2326 * java/awt/image/ByteLookupTable.java: New file.
2327 * Makefile.am: Added new files.
2328 * Makefile.in: Regenerated.
2330 2004-07-21 David Jee <djee@redhat.com>
2332 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2333 (create(GtkContainerPeer)): New native method.
2334 (create()): Call native create(), passing in the parent frame
2335 as the paramter. Natively set the current file and directory.
2336 (setFile): Construct an absolute filename before passing it to
2338 (nativeGetDirectory): New method.
2339 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2340 (window_closed): Removed.
2341 (ok_clicked): Likewise.
2342 (cancel_clicked): Likewise.
2343 (handle_response): New method.
2344 (create): Use GtkFileChooserDialog.
2345 (connectSignals): Connect to handle_response.
2346 (nativeGetDirectory): New method.
2347 (nativeSetFile): Use GtkFileChooserDialog.
2349 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2351 * java/awt/image/LookupTable.java: New file.
2352 * Makefile.am: Added new file.
2353 * Makefile.in: Regenerated.
2355 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2357 * java/awt/image/Kernel.java: New file.
2358 * Makefile.am: Added new file.
2359 * Makefile.in: Regenerated.
2361 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2363 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2364 * javax/swing/JMenu.java: Likewise.
2365 * javax/swing/JMenuBar.java: Likewise.
2366 (MARGIN_CHANGED_PROPERTY): New property.
2367 (setMargin): Implemented.
2368 * javax/swing/JMenuItem.java: Fixed javadocs.
2369 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2370 (LABEL_CHANGED_PROPERTY): New property.
2371 (add): changed to use createActionComponent.
2372 (createActionComponent): Implemented.
2373 (setLabel): Fire PropertyChangeEvent if label property
2375 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2376 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2377 (ContainerHandler): Repaint if margin property has changed.
2378 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2379 (installUI): Call installComponents().
2380 (uninstallUI): Call uinstallComponents().
2381 * javax/swing/plaf/basic/BasicMenuUI.java:
2383 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2386 2004-07-21 Kim Ho <kho@redhat.com>
2388 * javax/swing/plaf/basic/BasicToolBarUI.java:
2389 (DragWindow): Use the right constructor.
2391 2004-07-21 Kim Ho <kho@redhat.com>
2393 * javax/swing/JToolBar.java:
2394 (layoutContainer): Use getComponents.
2395 * javax/swing/plaf/basic/BasicToolBarUI.java:
2396 (DragWindow): Don't use SwingUtilities'
2398 (ToolBarDialog): ditto.
2400 2004-07-21 Kim Ho <kho@redhat.com>
2402 * javax/swing/JRootPane.java:
2404 (layoutContainer): Set the glasspane's size to
2405 be the same as the content pane.
2406 (createGlassPane): Set opaque property to false.
2408 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2410 * java/awt/Component.java (requestFocus()): Don't handle Panels
2412 (requestFocus(boolean)): Likewise.
2413 (requestFocusInWindow(boolean)): Likewise.
2414 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2415 Set GTK_CAN_FOCUS flag.
2417 2004-07-21 Kim Ho <kho@redhat.com>
2419 * Makefile.am: Added new file.
2420 * Makefile.in: Regenerated.
2421 * gcj/Makefile.in: Regenerated.
2422 * include/Makefile.in: Regenerated.
2423 * javax/swing/AbstractButton.java:
2424 Add rollOverEnabled property.
2425 (setRolloverEnabled): Use new property.
2426 (isRolloverEnabled): Use new property.
2427 * javax/swing/JTabbedPane.java:
2428 (setComponent): Remove useless JTabbedPane.this.
2429 * javax/swing/JToolBar.java: Finish implementation.
2430 * javax/swing/plaf/basic/BasicArrowButton.java:
2431 (paint): Moved border painting to a border.
2432 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2433 Change JToolBar look and feel defaults.
2434 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2435 (actionPerformed): Return Integer index instead of name.
2436 (addButtonComponents): Check to see if component is
2438 (createMessageArea): Don't use components that are not
2440 (getIconForType): Use temporary icons.
2441 * javax/swing/plaf/basic/BasicSliderUI.java:
2442 (mousePressed): Do not return if it's on thumb.
2443 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2444 (paintMinorTickForVertSlider): ditto.
2445 (paintMajorTickForHorizSlider): ditto.
2446 (paintMajorTickForVertSlider): ditto.
2447 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2448 Add a border around the SplitPaneDivider.
2449 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2451 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2452 New file. Implemented.
2453 * javax/swing/plaf/basic/BasicToolBarUI.java:
2455 * testsuite/Makefile.in: Regenerated.
2457 2004-07-21 Graydon Hoare <graydon@redhat.com>
2459 * javax/swing/Timer.java (run): Queue events each time cycle.
2461 2004-07-21 David Jee <djee@redhat.com>
2463 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2464 (imageComplete): Call image.imageComplete().
2465 * java/awt/image/MemoryImageSource.java:
2466 Reimplement consumers as a Vector instead of a Hashtable. This is
2467 because enumeration on a Hashtable is not thread-safe.
2468 (addConsumer): Adapt to Vector consumers.
2469 (isConsumer): Adapt to Vector consumers.
2470 (removeConsumer): Adapt to Vector consumers.
2471 (startProduction): Adapt to Vector consumers. Call imageComplete()
2472 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2473 (newPixels): Adapt to Vector consumers.
2474 (sendPicture): Set the color model of the image consumer.
2475 (newPixels(IIII)): Adapt to Vector consumers.
2476 (newPixels(IIIIB)): Adapt to Vector consumers.
2478 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2480 * java/awt/Component.java (deliverEvent): Implement.
2481 (postEvent): Implement.
2482 (handleEvent): Implement.
2483 (translateEvent): New method.
2484 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2485 * java/awt/Container.java (deliverEvent): Implement.
2486 * java/awt/Event.java (paramString): Fix formatting.
2487 * java/awt/Font.java (toString): Likewise.
2488 * java/awt/Window.java (postEvent): Implement.
2490 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2492 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2493 Set window's focus owner upon receiving a FOCUS_LOST event.
2494 * java/awt/Window.java (Window()): Refocus the previously
2495 focused component within the window when the window regains the
2497 (setFocusOwner): New method.
2498 * java/awt/Component.java (requestFocus): Add FIXME.
2500 * libgcj.pc.in: Remove library flags.
2502 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2504 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
2505 MOUSE_PRESSED event.
2506 * java/awt/Component.java (requestFocus()): Handle Panel
2507 specially. Post FOCUS_LOST event on opposite component.
2508 (requestFocus(boolean)): Likewise.
2509 (requestFocusInWindow(boolean)): Likewise.
2510 (paramString): Reorder dimension fields.
2511 * java/awt/Container.java (paramString): Fix string format.
2512 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2513 Handle FOCUS_LOST events. Don't handle Windows specially. Only
2514 process key events if the focus owner is non-null.
2515 (dispatchKeyEvent): Likewise.
2516 * java/awt/Frame.java (paramString): Fix formatting.
2517 (generateName): New method.
2518 (getUniqueLong): Likewise.
2519 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
2520 the temporary focus owner is null. If so, return the permanent
2522 * java/awt/Panel.java (generateName): New method.
2523 (getUniqueLong): Likewise.
2524 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
2525 signal handling to make callbacks more specific.
2527 2004-07-21 Michael Koch <konqueror@gmx.de>
2529 * javax/swing/text/Position.java
2530 (Bias): Implemented.
2532 2004-07-21 Michael Koch <konqueror@gmx.de>
2534 * javax/swing/LookAndFeel.java
2535 (provideErrorFeedback): New method.
2537 2004-07-21 Michael Koch <konqueror@gmx.de>
2539 * javax/swing/JTextArea.java
2540 (tabSize): New field.
2541 (getTabSize): New method.
2542 (setTabSize): Likewise.
2544 2004-07-21 Michael Koch <konqueror@gmx.de>
2546 * javax/swing/ActionMap.java:
2547 Fixed javadocs all over.
2548 (serialVersionUID): Made private.
2549 (parent): Don't explicitely initialize with default value.
2551 (keys): Reimplemented.
2552 (allKeys): Likewise.
2553 (convertSet): Removed.
2554 * javax/swing/ComponentInputMap.java:
2555 Fixed javadocs all over.
2556 (ComponentInputMap): Implemented.
2560 (SetParent): Likewise.
2561 (getComponent): Likewise.
2562 * javax/swing/InputMap.java:
2563 Fixed javadocs all over.
2564 (serialVersionUID): Made private.
2565 (parent): Don't explicitely initialize with default value.
2567 (keys): Reimplemented.
2568 (allKeys): Likewise.
2569 (convertSet): Removed.
2571 2004-07-21 Michael Koch <konqueror@gmx.de>
2573 * javax/swing/ActionMap.java,
2574 javax/swing/ComponentInputMap.java,
2575 javax/swing/InputMap.java,
2576 javax/swing/table/DefaultTableColumnModel.java,
2577 javax/swing/table/TableColumn.java,
2578 javax/swing/table/TableColumnModel.java,
2579 javax/swing/table/TableModel.java,
2580 javax/swing/text/AbstractDocument.java,
2581 javax/swing/text/TextAction.java:
2584 2004-07-21 Graydon Hoare <graydon@redhat.com>
2586 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
2587 Make method non-static.
2588 * javax/swing/AbstractButton.java:
2589 Rename fields to match property names where possible.
2590 (iconTextGap): New property.
2591 * javax/swing/JCheckBox.java: Match AbstractButton changes.
2592 (init) New method, call from after various constructors.
2593 * javax/swing/JComponent.java (revalidate):
2594 Invalidate before queueing repair.
2595 * javax/swing/JList.java (getPreferredScrollableViewportSize):
2596 Reimplement in terms of visibleRowCount property.
2597 * javax/swing/JMenuButton.java: Match AbstractButton changes.
2598 * javax/swing/JScrollPane.java (createScrollListener):
2599 Remove tracing chatter.
2600 * javax/swing/JToggleButton.java: Match AbstractButton changes.
2601 * javax/swing/RepaintManager.java (addInvalidComponent):
2603 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
2605 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
2606 Mimic sun behavior on top left/right positioning.
2607 * javax/swing/ViewportLayout.java (preferredLayoutSize):
2608 Remove mistaken use of preferredScrollableViewportSize here.
2609 (layoutContainer): Use view's preferred size as basis.
2610 * javax/swing/plaf/basic/BasicButtonUI.java:
2611 Set, get, and use textIconGap property.
2612 (paint) Paint text returned from layout (with ellipsis).
2613 * javax/swing/plaf/basic/BasicListUI.java:
2614 Remove tracing chatter, correct various minor calculations.
2615 (getCellBounds): Update layout state before calculating.
2616 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
2617 Use margin default similar to sun's.
2618 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
2619 (createIncreaseIcon): Center icon, minimize margins.
2620 (createDecreaseIcon): Likewise.
2621 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
2623 (installUI): Call it.
2624 (uninstallDefaults): Implement.
2625 (uninstallUI): Call it.
2626 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
2627 Call existing Window constructor.
2628 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
2629 Set clip before painting.
2631 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2633 * javax/swing/JMenuItem.java:
2634 (processMouseEvent): Reimplemented to deal with
2636 (createMenuDragMouseEvent): New private helper method.
2637 Creates MenuDragMouseEvent.
2638 * javax/swing/MenuSelectionManager.java
2639 (componentForPoint): Implemented.
2640 (isComponentPartOfCurrentMenu): Made public.
2641 (processMouseEvent): Reimplemented to deal with
2643 (setSelectedPath): Corrected small mistake that caused
2644 path to be set incorrectly.
2645 (getPath): If given component is JMenu then also add this
2646 menu's popup menu to the selected path.
2647 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2649 (getPreferredSize): Call getPreferredMenuItemSize().
2650 (getPreferredItemSize): Moved code from getPreferredSize to here.
2651 (installListeners): Install MouseMotionListeners.
2652 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
2653 if mouse wasn't released in the bounds of this menu item.
2654 (MenuDragMouseHandler): Implemented.
2655 * javax/swing/plaf/basic/BasicMenuUI.java:
2656 (installListeners): Install MouseMotionListener and
2657 MenuDrageMouseListener.
2658 (MenuDragMouseHandler): Implemented.
2659 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2660 (uninstallListeners): Implemented.
2662 2004-07-21 Michael Koch <konqueror@gmx.de>
2664 * javax/swing/JCheckBox.java: Reformated.
2665 (JCheckBox): Fixed all constructors.
2666 (isBorderPaintedFlat): New method.
2667 (setBorderPaintedFlat): New method.
2668 * javax/swing/JEditorPane.java
2669 (createEditorKitForContentType): Made public.
2670 (scrollToReference): Likewise.
2671 * javax/swing/JTextArea.java
2672 (setLineWrap): Fire property change.
2673 * javax/swing/JToggleButton.java
2674 (JToggleButton): New constructor.
2675 (JToggleButton): Simplified.
2676 * javax/swing/text/AttributeSet.java
2677 (FontAttribute): Renamed from FontCharacterAttribute.
2678 * javax/swing/text/JTextComponent.java
2679 (KeyBinBinding): Added javadoc.
2680 (JTextComponent): Likewise.
2681 (getAccessibleContext): Fixed javadoc.
2682 * javax/swing/text/View.java
2683 (View): Added javadoc.
2684 * javax/swing/text/TabableView.java: New file.
2685 * Makefile.am: Added javax/swing/text/TabableView.java.
2686 * Makefile.in: Regenerated.
2688 2004-07-21 Graydon Hoare <graydon@redhat.com>
2690 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
2691 * gnu/java/awt/peer/gtk/GtkToolkit.java
2692 (GtkErrorImage): New helper class.
2693 (bufferedImageOrError): New helper method.
2694 (createImage): Use it.
2696 2004-07-21 David Jee <djee@redhat.com>
2698 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
2699 (setCaretPosition): Scroll the text view so the new caret position
2700 is visible on screen.
2702 2004-07-21 David Jee <djee@redhat.com>
2704 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2705 (setBounds): Do not validate awtComponent here.
2706 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
2707 (getPreferredSize): New method.
2708 * java/awt/ScrollPane.java
2709 (ScrollPane): Set default size to 100x100.
2710 (addNotify): If child is not a Panel, wrap it with a new Panel.
2711 (paramString): Implement.
2713 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2715 * javax/swing/JMenu.java:
2716 (setSelected): Display popup menu only if this menu
2717 is showing on the screen.
2718 * javax/swing/JPopupMenu.java:
2719 (processMouseEvent): Added comment.
2720 (processKeyEvent): Likewise.
2721 * javax/swing/MenuSelectionManager.java:
2722 (clearSelectedPath): Only fireStateChanged() after
2723 selected path was changed, not before.
2724 (setSelectedPath): Likewise.
2725 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2726 (paintMenuItem): Corrected position of menu item's
2728 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2729 (installUI): Correct setDefaultLightWeightPopupEnabled call.
2730 (popupMenuCanceled): Reimplemented.
2731 (popupMenuWillBecomeVisible): Select first menu item by default
2732 when displaying free floating popup menus.
2733 (TopWindowListener): Reimplemented.
2735 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2737 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
2738 Panel from being painted twice when it is first shown.
2740 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2742 * java/awt/Window.java: Reverted changes from my
2743 previous patch for creating window without an owner.
2744 * javax/swing/SwingUtilities.java:
2745 (SwingUtilities.OwnerFrame): made static.
2746 (OwnerFrame.setVisible): New method. Overridden with
2747 empty implementation.
2748 (OwnerFrame.isShowing): New method. Ovverridden
2749 to return always true.
2751 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2753 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2754 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2755 (GtkComponentPeer): Remove temporary try/catch block.
2756 (setVisible): Call show and hide.
2757 (show): Make native.
2759 (getArgs): Don't add "visible" argument.
2760 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2761 (property_notify_predicate): Return Bool instead of int.
2762 (find_layout): New function.
2763 (connectJObject): Call find_layout.
2764 (connectSignals): Likewise.
2765 (moveLayout): Likewise.
2766 (gtkLayoutSetVisible): Likewise.
2768 2004-07-21 Mark Wielaard <mark@klomp.org>
2770 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
2771 on notifier object before calling notifyAll().
2773 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2775 * java/awt/Window.java: Changed constructors to use new
2776 method that is described below. Constructors call this
2777 methods only if newly created window should have an owner.
2778 (setWindowOwner): New method. Implementation for
2779 this method is moved from this(owner,configuration).
2780 * javax/swing/JWindow.java:
2781 (JWindow): Reimplement to use SwingUtilities.ownerFrame
2783 * javax/swing/SwingUtilities.java:
2784 (ownerFrame): Change type of this field to OwnerFrame.
2785 (getOwnerFrame): Changed to return object of type OwnerFrame.
2786 (SwingUtilities.OwnerFrame): New class. Represents owner
2787 of a Window that is not provided with one.
2789 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2791 * javax/swing/AbstractButton.java:
2792 (configurePropertiesFromAction): Set action command
2793 to button's text by default if action command is not
2794 explicitely specified.
2795 * javax/swing/JMenu.java: Remove unnecessary listener
2796 and methods relevant to it.
2797 (setSelected): Reimplemented.
2798 (menuSelectionChanged): Moved most part of implementation to
2799 setSelected() and call it instead.
2800 * javax/swing/JMenuItem.java:
2801 (init): Comment out statement that sets paint_border to false.
2802 (configurePropertiesFromAction): Do not set accelerator
2804 (menuSelectionChanged): Change selected index in the selection
2805 model of menu item's parent.
2806 * javax/swing/JPopupMenu.java:
2807 (remove): Set constraints.fill field to GridBagConstraints.BOTH
2808 instead of GridBagConstraints.HORIZONTAL.
2810 (createActionChangeListener): Implemented.
2811 (setVisible): Correct location of HeavyWeightMenu and
2812 don't firePopupMenuCanceled().
2813 (menuSelectionChanged): Implemented.
2814 (ActionChangeListener): New Listener. Implemented.
2815 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2816 (BasicMenuBarUI.ContainerHandler): Implemented.
2817 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2818 (paintMenuItem): Uncommented out code that paints
2819 icon, now that icons are working properly.
2820 (PropertyChangeListener): Implemented.
2821 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2823 (topWindowListener): New field.
2824 (Constructor): initialize topWindowListener.
2825 (BasicPopupMenuUI.TopWindowListener): Implemented.
2826 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
2827 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
2830 2004-07-21 Michael Koch <konqueror@gmx.de>
2832 * javax/swing/plaf/basic/BasicButtonUI.java
2833 (paintFocus): Fixed method signature.
2834 (paintButtonPressed): Likewise.
2835 (paintButtonNormal): Likewise.
2836 (paintText): New method.
2837 * javax/swing/plaf/basic/BasicLabelUI.java
2838 (paint): Re-indented.
2839 * javax/swing/plaf/basic/BasicTextUI.java
2840 (installUI): Set parent textComponent to opaque.
2841 * javax/swing/text/DefaultHighlighter.java
2842 (checkPositions): New helper method.
2843 (addHighlight): Throws BadLocationException, check positions.
2844 (changeHighlight): Likewise.
2845 * javax/swing/text/EditorKit.java
2846 (EditorKit): Implements Serializable.
2847 * javax/swing/text/JTextComponent.java
2848 (getUI): Added javadoc.
2850 (upadteUI): Added javadoc, don't revalidate and repaint.
2852 2004-07-21 David Jee <djee@redhat.com>
2854 * java/awt/GridBagLayout.java
2855 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
2856 * javax/swing/AbstractButton.java
2857 (setText): Reindent.
2858 * javax/swing/RepaintManager.java
2859 (addInvalidComponent): Find the first ancestor that isValidateRoot().
2861 2004-07-21 Michael Koch <konqueror@gmx.de>
2863 * javax/swing/JFormattedTextField.java
2865 (JFormattedTextField): Implemented.
2866 (getValue): Likewise.
2867 (setValue): Likewise.
2868 * javax/swing/LookAndFeel.java
2869 (getSupportsWindowDecorations): New method.
2870 * javax/swing/UIDefaults.java:
2871 Use java.beans.PropertyChangeSupport instead of doing all ourself.
2872 (addPropertyChangeListener): Made public.
2873 (addResourceBundle): Likewise.
2874 (removeResourceBundle): Likewise.
2875 (setDefaultLocale): Likewise.
2876 * javax/swing/plaf/basic/BasicRootPaneUI.java
2877 (BasicRootPaneUI): Implements PropertyChangeListener.
2878 (propertyChange): New method.
2879 * javax/swing/plaf/basic/BasicTextUI.java
2880 (BasicHighlighter): New inner class.
2881 (createHighlighter): New method.
2882 * javax/swing/plaf/basic/BasicToolBarUI.java
2883 (DragWindow): Extends java.awt.Window.
2884 * javax/swing/text/JTextComponent.java
2885 (getDocument): Removed debug output.
2886 * javax/swing/plaf/basic/BasicTextFieldUI.java,
2887 javax/swing/text/DefaultHighlighter.java,
2888 javax/swing/text/FieldView.java,
2889 javax/swing/text/PlainView.java: New files.
2890 * Makefile.am: Added new files.
2891 * Makefile.in: Regenerated.
2893 2004-07-21 Michael Koch <konqueror@gmx.de>
2895 * javax/swing/JEditorPane.java
2896 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
2897 (createEditorKitForContentType): Likewise.
2898 * javax/swing/text/DefaultEditorKit.java
2899 (serialVersionUID): Added constant field.
2900 (EndOfLineStringPropery): Fixed typo.
2901 (DefaultEditorKit): New constructor.
2902 * javax/swing/text/Segment.java:
2903 Import java.text.CharacterIterator.
2904 * javax/swing/text/CharacterIterator.java,
2905 javax/swing/text/PlainEditorKit.java: Removed.
2906 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
2907 javax/swing/text/PlainEditorKit.java.
2908 * Makefile.in: Regenerated.
2910 2004-07-21 Michael Koch <konqueror@gmx.de>
2912 * javax/swing/JButton.java,
2913 javax/swing/text/DefaultEditorKit.java,
2914 javax/swing/text/EditorKit.java,
2915 javax/swing/text/Segment.java,
2916 javax/swing/text/StyledEditorKit.java:
2919 2004-07-21 Michael Koch <konqueror@gmx.de>
2921 * javax/swing/ImageIcon.java
2923 (description): Renamed from descr.
2924 (ImageIcon): Added missing constructors.
2925 (setParent): Removed.
2926 (setImageObserver): New method.
2927 (getImageObserver): New method.
2928 (paintIcon): Handle observer = null.
2929 * javax/swing/JButton.java
2930 (removeNotify): Fixed javadoc.
2931 (updateUI): Simplified.
2932 * javax/swing/JRootPane.java
2933 (serialVersionUID): New constant field.
2934 * javax/swing/UIManager.java:
2935 Fixed javadocs all over.
2936 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
2937 * javax/swing/text/AbstractDocument.java
2938 (createPosition): Throws BadLocationException.
2939 (getText): Likewise.
2941 * javax/swing/text/ComponentView.java
2942 (modelToView): Likewise.
2943 * javax/swing/text/DefaultEditorKit.java:
2944 Made all public methods public.
2945 (read): Throws BadLocationException and IOException.
2947 * javax/swing/text/EditorKit.java:
2948 Made all public methods public.
2949 (serialVersionUID): New constant field.
2950 (clone): New method.
2951 (read): Throws BadLocationException and IOException.
2953 * javax/swing/text/Segment.java
2954 (array): Made public.
2957 (Segment): New constructors.
2958 (clone): Reimplemented.
2959 * javax/swing/text/StyledEditorKit.java
2960 (serialVersionUID): New constant field.
2962 2004-07-21 Graydon Hoare <graydon@redhat.com>
2964 * java/awt/image/BufferedImage.java
2965 (getSource): Implement.
2966 * javax/swing/ImageIcon.java
2967 (ImageIcon): Implement ctor.
2968 * javax/swing/ScrollPaneLayout.java
2969 (preferredLayoutSize): Be more careful about nulls.
2971 2004-07-21 Michael Koch <konqueror@gmx.de>
2973 * javax/swing/text/AttributeSet.java
2974 (CharacterAttribute): New interface
2975 (ColorAttribute): Likewise.
2976 (FontCharacterAttribute): Likewise.
2977 (ParagraphAttribute): Likewise.
2978 * javax/swing/text/DefaultCaret.java
2979 (moveCaret): New method.
2980 (positionCaret): Likewise.
2981 (repaint): Made protected.
2982 * javax/swing/text/JTextComponent.java
2983 (KeyBinding): Made it static.
2984 * javax/swing/text/View.java
2985 (getContainer): Honor parent == null.
2987 2004-07-21 Michael Koch <konqueror@gmx.de>
2989 * javax/swing/text/AbstractDocument.java:
2992 2004-07-21 Michael Koch <konqueror@gmx.de>
2994 * javax/swing/plaf/basic/BasicRootPaneUI.java:
2995 Import javax.swing.UIManager explicitely.
2996 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2997 (ScrollingButton): Made it static.
2999 2004-07-21 Michael Koch <konqueror@gmx.de>
3001 * javax/swing/UIDefaults.java
3002 (ActiveValue): Made public.
3003 (LazyValue): Likewise.
3004 * javax/swing/plaf/basic/BasicTextUI.java
3005 (RootView): Reintroduced.
3007 (rootView): New field.
3008 (installUI): Create document if needed, initialize rootView.
3009 (uninstallUI): Hanle rootView.
3011 (getRootView): Likewise.
3012 (setView): Likewise.
3013 * javax/swing/text/DefaultCaret.java:
3014 Renamed all "evt" variables to "event".
3016 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3018 * libgcj.spec.in: Add -l-java-util-logging.
3020 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3022 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3023 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3024 gtk-xft-dpi can no calculate the right value.
3025 (dpi_changed_cb): Mark *pspec as unsused.
3027 2004-07-21 David Jee <djee@redhat.com>
3029 * java/awt/Component.java
3030 (move): Delegate to setBounds().
3032 (reshape): Fix so it repaints parent and self only when necessary.
3034 2004-07-21 David Jee <djee@redhat.com>
3036 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3037 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3038 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3039 (setVisible): Likewise.
3042 (getArgs): Likewise.
3043 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3044 (property_notify_predicate): Likewise.
3045 (find_layout): Likewise.
3046 (connectJObject): Likewise.
3047 (connectSignals): Likewise.
3048 (moveLayout): Likewise.
3049 (gtkLayoutSetVisible): Likewise.
3051 2004-07-21 Graydon Hoare <graydon@redhat.com>
3057 (rmiregistry_LDADD): Add lib-java-util-logging.la
3058 * Makefile.in: Regenerate.
3060 2004-07-21 Michael Koch <konqueror@gmx.de>
3062 * javax/swing/text/AbstractDocument.java
3063 (replace): Dont use protected method of java.util.Vector directly.
3065 2004-07-21 Michael Koch <konqueror@gmx.de>
3067 * javax/swing/plaf/basic/BasicTextUI.java
3068 (installUI): Call specialized install methods.
3069 (installDefaults): New method.
3070 (installListeners): Likewise.
3071 (installKeyboardActions): Likewise.
3072 (uninstallUI): Likewise.
3073 (uninstallDefaults): New method.
3074 (uninstallListeners): Likewise.
3075 (uninstallKeyboardActions): Likewise.
3076 (getPropertyPrefix): New abstract method.
3077 (paint): Made final, just call paintSafely().
3078 (paintSavely): New method.
3079 (paintBackground): Likewise.
3080 (getVisibleEditorRect): Likewise.
3081 * javax/swing/text/LayeredHighlighter.java,
3082 javax/swing/text/TabExpander.java: New files.
3083 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3084 and javax/swing/text/TabExpander.java.
3085 * Makefile.in: Regenerated.
3087 2004-07-21 Michael Koch <konqueror@gmx.de>
3089 * javax/swing/plaf/basic/BasicTextUI.java
3090 (BasicTextUI): Made abstract.
3091 (BasicCaret): New inner class.
3092 (view): Don't explicitely initialize with "null".
3093 (textComponent): New field.
3094 (textColor): Removed.
3095 (disabledTextColor): Removed.
3096 (normalBackgroundColor): Removed.
3097 (RootView): Removed commented out inner class.
3098 (createUI): Removed.
3099 (createCaret): New method.
3100 (getComponent): Likewise.
3101 (installUI): Initialize textComponent only.
3102 (getPreferredSize): Use installed JTextComponent.
3103 (setView): New method.
3105 * javax/swing/text/JTextComponent.java
3106 (highlighter): New field.
3107 (caretColor): Likewise.
3108 (disabledTextColor): Likewise.
3109 (seletedTextColor): Likewise.
3110 (selectionColor): Likewise.
3111 (setUI): New method.
3112 (getCaretColor): Likewise.
3113 (setCaretColor): Likewise.
3114 (getDisabledColor): Likewise.
3115 (setDisabledColor): Likewise.
3116 (getSelectedTextColor): Likewise.
3117 (setSelectedTextColor): Likewise.
3118 (getSelectionColor): Likewise.
3119 (setSelectionColor): Likewise.
3120 (getHighlighter): Likewise.
3121 (setHighlighter): Likewise.
3122 (replaceSelection): Likewise.
3124 2004-07-21 Michael Koch <konqueror@gmx.de>
3126 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3127 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3128 * javax/swing/plaf/basic/BasicToolBarUI.java
3129 (BasicToolBarUI): Implements SwingConstants.
3131 2004-07-21 Michael Koch <konqueror@gmx.de>
3133 * javax/swing/JPopupMenu.java: Removed CVS tags.
3134 * javax/swing/UIDefaults.java: Reformatted.
3135 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3136 Explicitely import used classes.
3138 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3140 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3141 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3142 (GtkComponentPeer): Remove temporary try/catch block.
3143 (setVisible): Call show and hide.
3144 (show): Make native.
3146 (getArgs): Don't add "visible" argument.
3147 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3148 (property_notify_predicate): Return Bool instead of int.
3149 (find_layout): New function.
3150 (connectJObject): Call find_layout.
3151 (connectSignals): Likewise.
3152 (moveLayout): Likewise.
3153 (gtkLayoutSetVisible): Likewise.
3155 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3157 * javax/swing/AbstractButton.java:
3158 (setDisplayedMnemonicIndex): Check if button
3159 text is not null before checking its length.
3160 * javax/swing/JMenuItem.java:
3161 (processMouseEvent): Disarm menu item if mouse has
3163 * javax/swing/plaf/basic/BasicMenuUI.java:
3164 (MouseInputHandler.mouseEntered): Do not raise
3165 popup menu if this menu is already selected.
3166 (MouseInputHandler.mousePressed): Do not fire
3168 (MenuHandler): Implemented.
3170 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3172 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3173 (getSelectedObjects): Implemented.
3174 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3175 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3176 Added javadoc for few methods.
3177 (processMouseEvent): Made public.
3178 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3179 (processMouseEvent): Likewise.
3181 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3183 * javax/swing/AbstractButton.java:
3184 (init): Set display mnemonic index to -1.
3185 (setMnemonic(char)): Use setMnemonic(int).
3186 (setMnemonic(int)): Set display mnemonic index.
3187 (getDisplayedMnemonicIndex): Change method signature
3188 by removing 'index' parameter.
3189 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3190 Added default for Menu.selectionBackground.
3191 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3192 (paintMenuItem): Change background color of the selected
3194 (paintText): Paint differently when menu item is disabled.
3195 Also paint mnemonic if it appears in the menu item's label.
3196 (paintAccelerator): Paint accelerator differently
3197 if menu item is disabled.
3198 * javax/swing/plaf/basic/BasicMenuUI.java:
3199 (installDefaults): Install defaults for
3200 selectionForeground and selectionBackground.
3201 (uninstallDefaults): Uninstall defauls for
3202 selectionForeground and selectionBackground.
3204 2004-07-21 Michael Koch <konqueror@gmx.de>
3206 * javax/swing/text/AbstractDocument.java
3207 (BranchElement): Implemented.
3208 (LeafElement): Implemented.
3209 * javax/swing/text/DefaultCaret.java:
3210 Import used classes.
3211 (serialVersionUID): New constant.
3212 * javax/swing/text/JTextComponent.java
3213 (AccessibleJTextComponent): Removed dead declaration.
3214 (caretPos): Removed.
3215 (setCaret): New method.
3216 * javax/swing/text/PlainDocument.java
3217 (rootElement): New field.
3218 (PlainDocument): Initialize rootElement.
3219 (createDefaultRoot): New method.
3220 (getDefaultRootElement): Implemented.
3221 * javax/swing/text/View.java: Reformatted.
3222 * javax/swing/text/ViewFactory.java
3223 (create): Added javadoc.
3225 2004-07-21 Michael Koch <konqueror@gmx.de>
3227 * javax/swing/ToolTipManager.java: Reformatted.
3229 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3231 * javax/swing/AbstractButton.java
3232 (changeEvent): New field.
3233 (fireItemStateChanged): Change source of the event
3234 to 'this' before firing it to button listeners.
3235 (fireActionPerformed): Likewise.
3236 (fireStateChanged): Likewise.
3237 (createActionListener): Do not set source
3238 of the event to AbstractButton.
3239 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3240 (ContainerHandler.componentAdded): Removed
3241 print out statement.
3242 (ContainerHandler.componentRemoved): Likewise.
3244 2004-07-21 Michael Koch <konqueror@gmx.de>
3246 * javax/swing/text/Highlighter.java: New file.
3247 * Makefile.am: Added javax/swing/text/Highlighter.java.
3248 * Makefile.in: Regenerated.
3250 2004-07-21 Michael Koch <konqueror@gmx.de>
3252 * javax/swing/ToolTipManager.java
3253 (stillInsideTimerAction): Fixed constructor arguments.
3254 (outsideTimerAction): Likewise.
3255 (insideTimerAction): Likewise.
3257 2004-07-21 Michael Koch <konqueror@gmx.de>
3259 * javax/swing/JButton.java: Reformatted.
3260 * javax/swing/JFormattedTextField.java
3261 (getUIClassID): Implemented.
3262 * javax/swing/JRootPane.java
3263 (serialVersionUID): New constant.
3264 * javax/swing/JTextField.java
3266 (JTextField): Simplified.
3267 (getUIClassID): New method.
3268 (getActionListeners): Added @since tag.
3269 (setColumns): Invalidate layout and repaint.
3270 (getHorizontalAlignment): New method.
3271 (setHorizontalAlignment): New method.
3272 (selectAll): Removed.
3273 * javax/swing/SwingUtilities.java
3274 (getAncestorOfClass): Removed redundant @see tag.
3275 (isLeftMouseButton): Fixed implementation.
3276 (isMiddleMouseButton): Likewise.
3277 (isRightMouseButton): Likewise.
3278 * javax/swing/text/AbstractDocument.java
3279 (AttributeContext.addAttribute): New method.
3280 (AttributeContext.addAttributes): New method.
3281 (AttributeContext.getEmptySet): New method.
3282 (AttributeContext.reclaim): New method.
3283 (AttributeContext.removeAttribute): New method.
3284 (AttributeContext.removeAttributes): New method.
3285 * javax/swing/text/Document.java
3286 (createPosition): Throws BadLocationException.
3287 (getText): Likewise.
3289 * javax/swing/text/JTextComponent.java
3290 (getText): Return null if no document is set. Catch
3291 BadLocationException.
3293 (updateUI): Simplified.
3295 2004-07-21 Michael Koch <konqueror@gmx.de>
3297 * javax/swing/JButton.java
3298 (removeNotify): Fixed javadoc.
3299 (updateUI): Simplified.
3301 2004-07-21 David Jee <djee@redhat.com>
3303 * gnu/java/awt/image/ImageDecoder.java
3304 (startProduction): Only add consumer if it's not added yet.
3305 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3306 (GdkPixbufDecoder): Don't call initState() here.
3307 (produce): Call initState() here, to ensure area_prepared and
3308 area_updated signals are properly connected.
3309 * gnu/java/awt/peer/gtk/GtkImage.java
3310 (setColorModel): Use equals() to compare ColorModel objects.
3311 (setPixels): Likewise.
3312 * java/awt/image/ColorModel.java
3313 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3314 * java/awt/image/RGBImageFilter.java
3315 (setColorModel): Set consumer's color model.
3316 (setPixels): Use equals() to compare ColorModel objects.
3318 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3320 * java/net/URLConnection.java (position): New field.
3321 (dateFormat1, dateFormat2, dateFormat3): Removed.
3322 (dateFormats): New field.
3323 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3324 each time instead of re-allocating.
3325 (initializeDateFormats): Initialize 'dateFormats'.
3327 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3330 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3333 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3335 * java/net/Socket.java (getImpl): Now private. Remove comment.
3337 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3339 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3340 of chained Writer when calling super-constructor.
3341 * java/io/FilterWriter.java (FilterWriter): Likewise.
3342 * java/io/PrintWriter.java (PrintWriter): Likewise.
3344 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3346 * prims.cc (process_gcj_properties): Don't increment i within LHS
3349 2004-07-19 Per Bothner <per@bothner.com>
3351 Print -verbose:message on "loading", not initialization.
3352 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3353 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3354 gcj::verbose_class_flag.
3355 * java/lang/natClass.cc (initializeClass): Don't print message here.
3356 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3357 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3358 (_Jv_PrepareCompiledClass): Likewise.
3360 2004-07-18 Matthias Klose <doko@debian.org>
3362 * configure.in: Substitute target_noncanonical.
3363 * configure: Regenerate
3365 2004-07-17 Michael Koch <konqueror@gmx.de>
3367 * java/lang/String.java: Fixed javadocs all over.
3369 2004-07-17 Mark Wielaard <mark@klomp.org>
3371 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3372 when size is smaller.
3373 * java/io/RandomAccessFile.java (setLength): Use truncate for
3374 shrinking the file and seek plus write for expanding the file.
3376 2004-07-17 Michael Koch <konqueror@gmx.de>
3378 * gnu/java/nio/channels/natFileChannelPosix.cc
3379 (implTruncate): Always save current position. Only reposition file
3380 pointer to where we started if not beyond new lenght. Reposition file
3381 pointer to file length if it points beyond the end of file.
3383 2004-07-17 Mark Wielaard <mark@klomp.org>
3385 * javax/swing/Box.java: Put FIXME comment above class declaration.
3386 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3387 * javax/swing/JCheckBox.java: Likewise.
3388 * javax/swing/JDialog.java: Likewise.
3389 * javax/swing/JRadioButton.java: Likewise.
3390 * javax/swing/JToggleButton.java: Likewise.
3391 * javax/swing/UIManager.java: Likewise.
3392 * javax/swing/border/TitledBorder.java: Likewise.
3393 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3394 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3395 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3396 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3397 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3398 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3399 * javax/swing/text/JTextComponent.java: Likewise.
3401 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
3403 * java/net/DatagramPacket.java (setAddress): Removed check for
3406 2004-07-17 Michael Koch <konqueror@gmx.de>
3408 * java/net/DatagramSocket.java
3409 (getLocalAddress): Check if socket is bound or not.
3410 * java/net/Socket.java
3411 (getLocalAddrss): Check if socket is bound or not.
3412 (getPort): Return -1 when not connected. Dont check getImpl() for
3414 (setReuseAddress): Check if socket is closed.
3415 (isConnected): Check if getImpl() returns null.
3417 2004-07-17 Mark Wielaard <mark@klomp.org>
3419 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3420 on notifier object before calling notifyAll().
3422 2004-07-17 Michael Koch <konqueror@gmx.de>
3424 * gnu/java/nio/channels/FileChannelImpl.java
3425 (finalize): Added javadoc.
3427 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3429 * java/text/CollationElementIterator.java
3430 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
3431 (setText): Use ArrayList instead of Vector.
3433 2004-07-17 Michael Koch <konqueror@gmx.de>
3435 * java/nio/ByteOrder.java
3436 (static): Removed. Not needed.
3437 Thanks to Patrick Reali for noticing.
3438 * java/nio/charset/CharsetDecoder.java
3439 (decode): Fix for classpath bug #9177: Reset state before flipping.
3441 2004-07-17 Michael Koch <konqueror@gmx.de>
3443 * java/security/Security.java: Fixed javadocs all over.
3445 2004-07-17 Michael Koch <konqueror@gmx.de>
3447 * gnu/java/awt/EmbeddedWindow.java
3449 (addNotify): Set peer via reflection.
3450 (setWindowPeer): Removed.
3451 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3452 * Makefile.am (nat_source_files):
3453 Removed gnu/java/awt/natEmbeddedWindow.cc.
3454 * Makefile.in: Regenerated.
3456 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
3458 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
3460 * configure: Regenerated.
3462 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
3464 * configure.in: Use build_noncanonical rather than build_alias.
3465 * configure: Rebuild.
3467 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
3468 by logic refactoring. Move default definition of NATIVE closer
3469 to first alternate definition.
3470 * configure: Regenerate.
3472 * Makefile.am: Set ZIP and GCJH directly using autoconf.
3473 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
3474 gcj/Makefile.in: Regenerate.
3475 * configure.in: Set ZIP and GCJH. Remove redundant condition
3476 in AM_CONDITIONAL(NATIVE,...)
3477 * configure: Regenerate.
3479 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
3481 * configure.in: Use target_noncanonical rather than
3482 target_alias for forward-compatibility with autoconf 2.59.
3483 * configure: Regenerate.
3484 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
3485 testsuite/Makefile.am: Substitute target_noncanonical.
3486 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3487 testsuite/Makefile.in: Regenerate.
3489 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
3490 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
3491 * acinclude.m4: Include acx.m4.
3492 * aclocal.m4: Regenerate.
3493 * configure: Regenerate.
3495 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
3498 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
3499 (decimalFormat): New static variable.
3501 (getTime): New. Override Date.getTime().
3502 (toString): Synchronize. Use decimalFormat to format nanos value
3503 correctly. Truncate extra zeros.
3504 (before): Compare getNanos() only if getTime() is equal.
3507 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3509 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
3510 * configure.in: ...here.
3511 * aclocal.m4: Regenerate.
3512 * configure: Regenerate.
3514 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
3515 * configure: Rebuilt with autoconf 2.13.
3516 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3517 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
3519 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
3522 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
3524 * Makefile.in: Rebuilt.
3525 * testsuite/libjava.lang/LargeFile.java: New test case.
3526 * testsuite/libjava.lang/LargeFile.out: New file.
3528 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3530 * java/beans/EventHandler.java: Remove debugging statements.
3532 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3534 * java/beans/EventHandler.java: New file.
3535 * Makefile.am (awt_java_source_files): Add EventHandler.java.
3536 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3537 testsuite/Makefile.in: Regenerate.
3539 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
3541 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
3542 flag to the gcj_setup.
3543 (gcj_jacks_run): Check tclsh version and launch jacks directly with
3545 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
3546 deprecation flag change. 58 XFAILS removed.
3548 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3550 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
3551 -fno-use-divide-subroutine.
3552 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
3553 (HANDLE_FPE): Define.
3554 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
3555 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3556 (HANDLE_DIVIDE_OVERFLOW): Define.
3558 2004-07-14 Michael Koch <konqueror@gmx.de>
3559 Matthias Klose <doko@debian.org>
3561 * java/awt/im/InputContext.java: Initialize in, line.
3563 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
3565 * interpret.cc (run): Correctly access libffi return values of
3566 integral smaller-than-int type; these are implicitly promoted.
3568 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
3571 * interpret.cc (compile_mutex): New.
3572 (_Jv_InitInterpreter): New. Initialize compile_mutex.
3573 (run): Lock compile_mutex before calling compile() if compilation is
3575 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
3576 * include/java-interp.h (_Jv_InitInterpreter): Declare.
3578 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
3581 * include/jvm.h (_Jv_value): New union type.
3582 * gcj/field.h (_Jv_Field): Add new _addr union field variants
3583 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
3586 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
3588 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
3589 * gnu/awt/xlib/XOffScreenImage.java
3590 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
3591 constructor argument. Add constructor using ImageProducer.
3592 (getSource): Implement.
3593 (imageComplete): New method.
3594 (setColorModel): New method.
3595 (setDimensions): New method.
3596 (setHints): New method.
3597 (setPixels): New method.
3598 (setProperties): New method.
3599 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
3600 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
3602 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
3605 * prims.cc (_Jv_CreateJavaVM): Fix comment.
3606 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
3607 (finalizerReady): Now native.
3609 (runFinalizers): Removed.
3610 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
3611 a primitive lock, and don't hold it while running the finalizers.
3612 (runFinalizers): Implement. Don't aquire any Java lock.
3613 (finalizerReady): Use lock primitives to signal finalizer thread.
3615 2004-07-11 Mark Wielaard <mark@klomp.org>
3617 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
3618 * java/net/URLStreamHandler.java (parseURL): When url file part
3619 doesn't contain a '/' just ignore context.
3621 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
3623 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
3624 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3625 (MAKE_THROW_FRAME): Do not modify PSW address.
3626 (INIT_SEGV): Install SIGINFO-style signal handler.
3627 (INIT_FPE): Likewise.
3629 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3631 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
3632 status. 21 xfail's removed, 1 added.
3634 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3636 * gcj/javaprims.h: Regenerate CNI namespace definitions.
3638 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
3640 * java/text/MessageFormat.java
3641 (formatInternal): Append "{n}" if argument n is unavailable.
3642 (format(Object, StringBuffer, FieldPosition)): This
3643 should be equivalent to format(Object[],
3644 StringBuffer, FieldPosition).
3646 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3648 * java.util.Calendar.java (cache): New private static field. Cached
3649 mappings of locales->calendar classes.
3650 (ctorArgTypes): New private static field. Singleton argument for
3651 calendar class constructor lookup.
3652 (getInstance): Cache Locale->Calendar class mappings using HashMap.
3653 Optimize by bypassing reflection instantiation for the
3654 GregorianCalendar case.
3656 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3658 * java/util/Calendar.java: Use getSystemClassLoader as argument for
3659 ResourceBundle.getBundle() calls.
3660 * java/util/GregorianCalendar.java: Likewise.
3661 * java/util/Currency.java: Likewise.
3662 * java/text/BreakIterator.java: Likewise.
3663 * java/text/Collator.java: Likewise.
3664 * java/text/DateFormat.java: Likewise.
3665 * java/text/DateFormatSymbols.java: Likewise.
3666 * java/text/DecimalFormatSymbols.java: Likewise.
3667 * java/text/NumberFormat.java: Likewise.
3668 * java/awt/Window.java: Likewise.
3670 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3672 * java/util/ResourceBundle.java (bundleCache): Renamed from
3673 resourceBundleCache. Update comments.
3674 (getObject): Don't catch MissingResourceException.
3675 (getBundle(String)): Remove 'final'. Use system classloader if
3676 getCallingClassLoader returned null.
3677 (getBundle(String, Locale)): Likewise.
3678 (BundleKey): New private class. HashMap key for bundle cache lookup.
3679 (lookupKey): New. Singleton instance of BundleKey.
3680 (nullEntry): New. Cache entry to represent failed lookups.
3681 (getBundle(String, Locale, ClassLoader)): Re-written to use new
3682 caching strategy, no-allocation lookup, and new tryBundle methods.
3683 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
3684 name using given classloader.
3685 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
3686 baseName for given Locale and attempt to load bundle.
3688 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3690 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
3691 illegal protected method calls.
3693 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3695 Fix or remove some bogus test cases.
3696 * testsuite/libjava.compile/pr10459_2.java: Removed.
3697 * testsuite/libjava.compile/pr10459.java: Test using its own method,
3699 * testsuite/libjava.compile/inner_data.java: Test against its own
3702 2004-07-09 Michael Koch <konqueror@gmx.de>
3704 * scripts/unicode-muncher.pl: Updated to version 2.1
3705 from GNU classpath. Added some clarifications on where to find the
3706 needed files from www.unicode.org.
3707 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
3708 gnu/gcj/convert/UnicodeData-3.0.0.txt:
3709 Removed, these can directly be downloaded from www.unicode.org if
3711 * gnu/java/lang/CharData.java: Regenerated.
3712 * include/java-chartables.h: Regenerated.
3713 * Makefile.am (ordinary_java_source_files):
3714 Removed gnu/java/lang/CharData.java.
3715 * Makefile.in: Regenerated.
3717 2004-07-09 Michael Koch <konqueror@gmx.de>
3719 * java/security/AccessControlContext.java,
3720 java/security/SecureClassLoader.java:
3723 2004-07-09 Michael Koch <konqueror@gmx.de>
3725 * java/io/ObjectInputStream.java (readFields): Use long datatype
3726 when shifting byte values more then 24 bits left.
3728 2004-07-09 Michael Koch <konqueror@gmx.de>
3730 * java/util/zip/DeflaterOutputStream.java,
3731 java/util/zip/GZIPInputStream.java,
3732 java/util/zip/GZIPOutputStream.java,
3733 java/util/zip/InflaterInputStream.java:
3734 Reformatted. Added javadocs. Reordered all stuff.
3735 Renamed variables to be more clear.
3737 2004-07-09 Michael Koch <konqueror@gmx.de>
3739 * javax/imageio/IIOException.java,
3740 javax/imageio/event/IIOReadProgressListener.java,
3741 javax/imageio/event/IIOReadUpdateListener.java,
3742 javax/imageio/event/IIOReadWarningListener.java,
3743 javax/imageio/event/IIOWriteProgressListener.java,
3744 javax/imageio/event/IIOWriteWarningListener.java:
3746 * Makefile.am: Added new files.
3747 * Makefile.in: Regenerated.
3749 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
3751 * java/text/RuleBasedCollator.java
3752 (mergeRules): Use ArrayList instead of Vector.
3753 (subParseString): likewise.
3754 (parseString): likewise.
3755 (buildCollationVector): likewise.
3756 (getCollationKey): likewise.
3758 2004-07-09 Dalibor Topic <robilad@kaffe.org>
3760 * java/text/DateFormat.java (parse):
3761 Improved javadoc. Improved exception message.
3763 2004-07-09 Mark Wielaard <mark@klomp.org>
3765 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
3766 interrupted() method to clear interupt flag of our Thread.
3768 2004-07-09 Dalibor Topic <robilad@kaffe.org>
3770 * java/nio/Buffer.java,
3771 java/nio/ByteBuffer.java,
3772 java/nio/ByteBufferHelper.java,
3773 java/nio/ByteBufferImpl.java,
3774 java/nio/CharBuffer.java,
3775 java/nio/CharBufferImpl.java,
3776 java/nio/CharViewBufferImpl.java,
3777 java/nio/DirectByteBufferImpl.java,
3778 java/nio/DoubleBuffer.java,
3779 java/nio/DoubleBufferImpl.java,
3780 java/nio/DoubleViewBufferImpl.java,
3781 java/nio/FloatBuffer.java,
3782 java/nio/FloatBufferImpl.java,
3783 java/nio/FloatViewBufferImpl.java,
3784 java/nio/IntBuffer.java,
3785 java/nio/IntBufferImpl.java,
3786 java/nio/IntViewBufferImpl.java,
3787 java/nio/LongBuffer.java,
3788 java/nio/LongBufferImpl.java,
3789 java/nio/LongViewBufferImpl.java,
3790 java/nio/MappedByteBufferImpl.java,
3791 java/nio/ShortBuffer.java,
3792 java/nio/ShortBufferImpl.java,
3793 java/nio/ShortViewBufferImpl.java:
3794 Fixed javadocs all over. Improved input error
3797 * java/nio/Buffer.java
3798 (checkForUnderflow, checkForOverflow, checkIndex,
3799 checkIfReadOnly, checkArraySize): New helper methods
3802 * java/nio/ByteBufferHelper.java
3803 (checkRemainingForRead, checkRemainingForWrite,
3804 checkAvailableForRead, checkAvailableForWrite): Removed
3805 no longer needed methods.
3807 2004-07-09 Michael Koch <konqueror@gmx.de>
3809 * gnu/regexp/CharIndexedInputStream.java:
3810 Reordered imports to match classpath.
3812 2004-07-09 Michael Koch <konqueror@gmx.de>
3814 * gnu/java/awt/EmbeddedWindow.java:
3815 Load native library for setWindowPeer method.
3817 2004-07-08 Randolph Chung <tausq@debian.org>
3819 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
3820 * configure: Regenerate.
3821 * configure.host: Set can_unwind_signal for hppa*-linux.
3822 * include/pa-signal.h: New file.
3824 2004-07-07 Per Bothner <per@bothner.com>
3826 * Makefile.am: Add rules to build libgij from just gij.cc.
3828 * include/jvm.h (namespace jcj): Declare verbose_class_flag
3829 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
3830 (initializeClass): If verbose_class_flag, print message.
3831 * gij.cc (main): Handle -verbose:class flag.
3833 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
3835 * configure.host: Enable hash synchronization on Darwin.
3836 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
3837 ';', since this is a comment on Darwin.
3838 (compare_and_swap_release): Likewise.
3840 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
3842 * java/net/URLStreamHandler.java (parseURL): Canonicalize
3843 file portion of URL in addition to spec for file: protocol.
3845 2004-07-05 Anthony Green <green@redhat.com>
3847 * java/io/File.java (toURI): Merge from Classpath.
3849 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
3851 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
3852 before passing to URL constructor. Rethrow any MalformedURLException
3853 as a RuntimeException. Catch MalformedURLException specifically, not
3856 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
3858 * java/util/Locale.java (readObject): Intern strings read from object
3861 2004-07-04 Michael Koch <konqueror@gmx.de>
3863 * gnu/gcj/runtime/FirstThread.java,
3864 gnu/gcj/runtime/natFirstThread.cc: Removed.
3865 * gnu/java/lang/MainThread.java,
3866 gnu/java/lang/natMainThread.cc: New files.
3867 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
3868 * Makefile.am: Added new files and removed deleted ones.
3869 * Makefile.in: Regenerated.
3871 2004-07-03 Mark Wielaard <mark@klomp.org>
3872 Anthony Green <green@redhat.com>
3874 * java/net/URL.java (getFile): Clarify return value doc.
3875 (getPath): Return null if file is empty - not empty String.
3876 (set): Convert protocol to lower case before doing anything.
3877 Only change the protocol handler if it's different.
3879 2004-07-03 Anthony Green <green@redhat.com>
3881 * java/net/URL.java (URL): Convert protocol to lower case before
3882 doing anything, so we getURLStreamHandler() with the proper value.
3884 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
3886 * java/util/Locale.java (hashcode): Made transient.
3887 (hashCode): No longer synchronized.
3888 (equals): Remove comment.
3889 (writeObject): No longer synchronized. Implement using writeObject
3890 calls instead of tweaking hashCode field. Update doc.
3891 (readObject): Implement using readObject calls.
3893 2004-06-26 Geoffrey Keating <geoffk@apple.com>
3894 Andreas Tobler <a.tobler@schweiz.ch>
3896 * configure.host (powerpc-*-darwin*): New case, define
3898 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
3899 * configure: Regenerate.
3900 * include/darwin-signal.h: New.
3902 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
3904 * java/beans/Statement.java (doExecute): Fix formatting.
3906 2004-06-29 Per Bothner <per@bothner.com>
3908 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
3909 etc etc): Remove needless parenthesis, which causes __stdcall__
3910 attribute on MinGW to get ignored.
3912 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
3914 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
3916 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
3918 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
3920 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
3922 * java/beans/Expression.java: New file.
3923 * java/beans/Statement.java: New file.
3924 * Makefile.am: Added new files.
3925 * Makefile.in: Re-generate.
3927 2004-06-27 Mark Wielaard <mark@klomp.org>
3929 * java/io/FilePermission.java (usingPerms): Removed.
3930 (actionsString): Made final.
3931 (cachePerms): Renamed to checkPerms.
3932 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
3934 (FilePermission): Check arguments, call checkPerms().
3935 (equals): Remove cachePerms() call.
3936 (implies): Likewise.
3938 2004-06-27 Mark Wielaard <mark@klomp.org>
3940 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
3942 (sendRequest): Use new field in user-agent http agent.
3944 2004-06-27 Mark Wielaard <mark@klomp.org>
3946 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
3947 when argument is null.
3949 2004-06-26 Mark Wielaard <mark@klomp.org>
3951 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
3952 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
3954 (cancel_clicked): Likewise.
3956 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
3958 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3959 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
3960 can not calculate the right value.
3961 (dpi_changed_cb): Likewise. Mark *pspec as unused.
3963 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
3965 * testsuite/libjava.jacks/jacks.xfail: Remove
3966 15.9.1-qualified-concrete-20.
3968 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
3970 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
3971 encoding name to iconv.
3972 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
3974 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
3977 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
3978 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
3979 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
3981 2004-06-21 Andrew Haley <aph@redhat.com>
3983 * java/io/ObjectOutputStream.java: Add DEBUG statements
3985 (dumpElementln): New method.
3987 * java/io/ObjectInputStream.java
3988 (currentClassLoader): Make native.
3989 (callersClassLoader): New field.
3991 (readObject): ENDBLOCKDATA is generated if the class has a write
3992 method, not if it has a read method.
3993 (readObject): Save and restore this.currentObject and
3994 this.currentObjectStreamClass around calls to callReadMethod().
3995 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
3998 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4000 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4003 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4005 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4006 if desired, before the default class loader is initialised.
4007 Call INIT_SEGV only if HANDLE_SEGV is defined.
4009 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4011 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4012 directory only if it actually exists.
4014 2004-06-18 Graydon Hoare <graydon@redhat.com>
4016 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4017 Fix up non-ansi comments.
4019 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4021 * javax/swing/text/AbstractDocument.java: Adding missing import
4022 for javax.swing.event.EventListenerList.
4023 * javax/swing/text/DefaultCaret.java: Likewise.
4025 2004-06-17 Michael Koch <konqueror@gmx.de>
4027 * javax/swing/JToolBar.java
4029 (JToolBar): Use Component.setName(String) instead of doing it all
4031 * javax/swing/Timer.java
4032 (queueEvent): Added missing modifier.
4034 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4036 * Makefile.am: Added new file.
4037 * Makefile.in: Re-generate.
4038 * javax/swing/JMenu.java:
4039 (insertSeparator): Implemented.
4040 * javax/swing/JPopupMenu.java:
4041 (JPopupMenu.Separator): Implemented.
4042 * javax/swing/MenuSelectionManager.java:
4043 (processMouseEvent): Use java.awt.Component
4044 for event source instead of javax.swing.JComponent.
4045 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4046 New File. Implemented.
4048 2004-06-16 David Jee <djee@redhat.com>
4050 * java/awt/GridBagLayout.java
4051 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4052 Make sure pos_x and pos_y are never negative.
4054 2004-04-16 Andrew Overholt <overholt@redhat.com>
4056 * Makefile.am: Add new file.
4057 * Makefile.in: Re-generate.
4058 * javax/swing/JToolBar.java
4059 Partially implemented.
4060 * javax/swing/plaf/basic/BasicToolBarUI.java
4061 New file. Partially implemented.
4063 2004-06-16 Graydon Hoare <graydon@redhat.com>
4065 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4066 (setComposite): Accept AlphaComposite arguments.
4067 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4068 (createBufferedImage): Add new overloads.
4069 * gnu/java/awt/peer/gtk/GtkToolkit.java
4070 (createImage): Use GdkPixbufDecoder.createBufferedImage
4071 when useGraphics2D() is true.
4072 (getImage): Delegate to createImage.
4073 * javax/swing/JList.java
4075 (getFirstVisibleIndex):
4076 (getLastVisibleIndex):
4078 (ensureIndexIsVisible): New methods.
4079 * javax/swing/Timer.java: Reimplement.
4081 2004-06-16 Michael Koch <konqueror@gmx.de>
4083 * javax/swing/text/AbstractDocument.java
4084 (AbstracElement): Made public, implements java.io.Serializable.
4085 (AttributeContext): Made public.
4086 (BranchElement): Likewise.
4087 (Content): Likewise.
4088 (DefaultDocumentEvent): Made public, extends
4089 javax.swing.undo.CompoundEdit.
4090 (ElementEdit): Made public, extends
4091 javax.swing.undo.AbstractUndoableEdit.
4092 (LeafElement): Made public.
4093 (LeafElement.LeafElement): Made public.
4095 2004-06-16 Michael Koch <konqueror@gmx.de>
4097 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4098 methods (that were obviously never be intended to get included hi this
4099 class. Added some methods too.
4101 2004-06-16 Michael Koch <konqueror@gmx.de>
4103 * javax/swing/text/PlainDocument.java
4104 (serialVersionUID): New constant.
4105 (lineLimitAttribute): Likewise.
4106 (tabSizeAttribute): Likewise.
4107 (tabSize): New field.
4108 (PlainDocument): Made public.
4109 (PlainDocument): New constructor.
4111 2004-06-16 Michael Koch <konqueror@gmx.de>
4113 * javax/swing/text/AbstractDocument.java
4114 (insertString): Throws BadLocationException.
4115 * javax/swing/text/Document.java
4116 (insertString): Likewise.
4117 * javax/swing/text/JTextComponent.java:
4118 Javadocs and comments cleaned up.
4120 2004-06-16 Michael Koch <konqueror@gmx.de>
4122 * javax/swing/event/UndoableEditListener.java: Reformatted.
4123 * javax/swing/text/AbstractDocument.java
4124 (AbstractDocument): Implements java.io.Serializable.
4125 (doc_list): Removed.
4126 (undo_list): Removed.
4127 (AbstractElement.serialVerionUID): New field.
4128 (BranchElement.serialVerionUID): Likewise.
4129 (DefaultDocumentEvent.serialVerionUID): Likewise.
4130 (ElementEdit.serialVerionUID): Likewise.
4131 (LeafElement.serialVerionUID): Likewise.
4132 (serialVerionUID): Likewise.
4133 (BAD_LOCATION): New constant.
4134 (BidiElementName): Likewise.
4135 (ContentElementName): Likewise.
4136 (ParagraphElementName): Likewise.
4137 (SectionElementName): Likewise.
4138 (ElementNameAttribute): Likewise.
4139 (AbstractDocument): Made protected.
4140 (AbstractDocument): New construtor.
4141 (listenerList): New field.
4142 (fireChangedUpdate): Implemented.
4143 (fireInsertUpdate): Likewise.
4144 (fireRemoveUpdate): Likewise.
4145 (fireUndoableEditUpdate): Likewise.
4146 (getListeners): Likewise.
4147 (addDocumentListener): Likewise.
4148 (removeDocumentListener): Likewise.
4149 (addUndoableEditListener): Likewise.
4150 (removeUndoableEditListener): Likewise.
4151 (getDocumentListeners): New method.
4152 (getUndoableEditListeners): Likewise.
4153 (getAsynchronousLoadPriority): Made public.
4154 (getBidiRootElement): Likewise.
4155 (setAsynchronousLoadPriority): Likewise.
4156 (setDocumentProperties): Likewise.
4157 * javax/swing/text/BadLocationException.java
4158 (serialVerionUID): New field.
4159 * javax/swing/text/DefaultCaret.java
4160 (changeEvent): New field.
4161 (listenerList): Likewise.
4163 (addChangeListener): Reimplemented.
4164 (removeChangeListener): Likewise.
4165 (getListeners): New method.
4166 (getChangeListeners): Likwise.
4167 (getComponent): Likewise.
4168 * javax/swing/text/GapContent.java
4169 (GapContent): Implements java.io.Serializable.
4170 (serialVerionUID): New field.
4172 2004-06-16 Michael Koch <konqueror@gmx.de>
4174 * javax/swing/JTree.java
4175 (treeModel): New field.
4176 (JTree): New constructors, one existing one made public.
4177 (createTreeModel): New method.
4178 (addTreeExpansionListener): Likewise.
4179 (removeTreeExpansionListener): Likewise.
4180 (getTreeExpansionListeners): Likewise.
4181 (fireTreeCollapsed): Likewise.
4182 (fireTreeExpanded): Likewise.
4183 (addTreeSelectionListener): Likewise.
4184 (removeTreeSelectionListener): Likewise.
4185 (getTreeSelectionListeners): Likewise.
4186 (fireValueChanged): Likewise.
4187 (addTreeWillExpandListener): Likewise.
4188 (removeTreeWillExpandListener): Likewise.
4189 (getTreeWillExpandListeners): Likewise.
4190 (fireTreeWillCollapse): Likewise.
4191 (fireTreeWillExpand): Likewise.
4193 2004-06-16 Michael Koch <konqueror@gmx.de>
4195 * javax/swing/JTree.java: Reformatted.
4197 2004-06-16 Michael Koch <konqueror@gmx.de>
4199 * javax/swing/JTextArea.java: New file.
4200 * javax/swing/JTextField.java
4202 (notifyAction): New constant.
4203 (columns): New field.
4204 (JTextField): New constructors.
4205 (createDefaultModel): New method.
4206 (addActionListener): Reimplmemented.
4207 (removeActionListener): Reimplemented.
4208 (getActionListeners): New method.
4209 (fireActionPerformed): New method.
4210 (getColumns): New method.
4211 (setColumne): New method.
4212 * javax/swing/text/JTextComponent.java
4213 (AccessibleJTextComponent.serialVersionUID): New field.
4214 (serialVersionUID): Likewise.
4215 (DEFAULT_KEYMAP): Likewise.
4216 (FOCUS_ACCELERATOR_KEY): Likewise.
4217 (doc): Made private.
4218 (icon_gap): Likewise.
4221 (JTextComponent): Some constructors removed.
4222 (getScrollableTracksViewportHeight): New method.
4223 (getScrollableTracksViewportWidth): Likewise.
4224 * Makefile.am: Added javax/swing/JTextArea.java.
4225 * Makefile.in: Regenerated.
4227 2004-06-15 Graydon Hoare <graydon@redhat.com>
4229 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4230 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4231 * javax/swing/JViewport.java
4232 (getExtentSize): Return size rather than preferred size.
4233 (toViewCoordinates): New methods.
4234 (getViewSize): Return size rather than preferred size.
4235 (setViewSize): Note view size as set.
4236 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4237 * javax/swing/plaf/basic/BasicScrollBarUI.java
4238 (getPreferredSize): Don't redo layout.
4239 * javax/swing/plaf/basic/BasicViewportUI.java
4240 (paint): Translate image properly and eat exceptions.
4242 2004-06-15 Kim Ho <kho@redhat.com>
4244 * javax/swing/JTabbedPane.java
4245 (setComponent): Remove old component and
4247 (setSelectedIndex): Don't operate on the
4248 components if they're null. Don't set index
4249 on the model if the index is the same.
4250 (insertTab): Don't add or hide the component
4251 if it's null. Repaint the container.
4252 * javax/swing/plaf/basic/BasicLookAndFeel.java
4253 Change colors for TabbedPane.
4254 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4255 (mousePressed): Re-layout and paint the component.
4256 (layoutContainer): Don't set location on the view.
4257 (ScrollingViewport::paint): Remove.
4259 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4261 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4262 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4264 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4265 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4266 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4268 (drawLine): Call gdk_flush before leaving GDK critical region.
4269 (fillRect): Likewise.
4270 (drawRect): Likewise.
4271 (copyArea): Likewise.
4272 (copyPixmap): Likewise.
4273 (clearRect): Likewise.
4274 (drawArc): Likewise.
4275 (drawPolyline): Likewise.
4276 (drawPolygon): Likewise.
4277 (fillPolygon): Likewise.
4278 (fillArc): Likewise.
4279 (drawOval): Likewise.
4280 (fillOval): Likewise.
4282 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4284 (GdkFontMetrics): Add style argument to initState call.
4285 (stringWidth(String,int,int,String)): Add style parameter.
4286 (stringWidth(String)): Add style argument to stringWidth call.
4287 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4288 (initState): Set pango font style and weight based on AWT style
4289 parameter. Pass default GTK language to
4290 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4291 simply dividing by PANGO_SCALE.
4292 (stringWidth): Set pango font style and weight based on AWT style
4295 * java/awt/Button.java (next_button_number): New field.
4296 (paramString): Change output.
4297 (generateName): New method.
4298 (getUniqueLong): New method.
4300 2004-06-14 Kim Ho <kho@redhat.com>
4302 * javax/swing/JTabbedPane.java:
4303 (setComponentAt): Set the component, not
4305 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4306 (actionPerformed): Let deiconize catch exception.
4308 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4310 * javax/swing/JPopupMenu.java:
4311 (setVisible): Corrected location of a
4312 heavyweight popup menu.
4314 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4316 * javax/swing/MenuSelectionManager.java:
4317 Ran through jalopy to fix formatting style.
4319 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4321 * javax/swing/JLayeredPane.java:
4322 (remove): Revalidate and repaint layered pane after
4323 the component was removed.
4324 javax/swing/JMenu.java:
4325 (setVisible): Display popup menu at the user location,
4326 if one was set by the user.
4327 (setMenuLocation): Reimplemented. Fixed javadoc.
4328 * javax/swing/JMenuBar.java: Added javadoc.
4329 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4330 (MODEL_CHANGED_PROPERTY): New Property.
4331 (isSelected): Implemented.
4332 (setBorderPainted): Fire PropertyChangeEvent
4333 if paintBorder property changes.
4334 (setSelected): Implemented.
4335 (setSelectionModel): Implemented.
4336 * javax/swing/JPopupMenu.java: Added Javadoc
4337 (pack): Implemented.
4338 (setVisible): Reimplemented.
4339 (show): Fixed location.
4340 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4341 Container instead of JPanel.
4342 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4343 (clearSelectedPath): Reimplemented to clear selectedPath
4345 (processMouseEvent): Reimplemented.
4346 (setSelectedPath): Fire stateChange event indicating that
4347 selected menu path has changed.
4348 (getPath): Change to use ArrayList instead of Vector.
4349 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4350 (installUI): call installKeyboardActions().
4351 (uninstallUI): call uninstallKeyboardActions().
4353 2004-06-13 Michael Koch <konqueror@gmx.de>
4355 * javax/swing/text/DefaultCaret.java,
4356 javax/swing/text/BadLocationException.java:
4359 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4361 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4362 DEFAULT_COLS): New variables.
4363 (create): Don't allow 0 rows or 0 columns. Instead, set the
4364 values to DEFAULT_ROWS or DEFAULT_COLS.
4365 (getMinimumSize): Likewise.
4366 (getPreferredSize): Likewise.
4367 (minimumSize): Likewise.
4368 (preferredSize): Likewise.
4369 (create): Set peer's editable state.
4370 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4371 zero. Update javadocs.
4372 (TextArea(String)): Likewise.
4373 (TextArea(int,int)): Fix javadocs.
4374 (TextArea(String,int,int,int)): Only throw exception if one of
4375 rows or columns is zero. Fix javadocs.
4377 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4379 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4380 addition to Components.
4382 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4383 wasn't consumed by normal processing, send it to the parent
4386 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4387 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4390 2004-06-11 David Jee <djee@redhat.com>
4392 * java/awt/MediaTracker.java
4393 (addImage(Image,int)): Call imageUpdate() to udpate image status.
4394 (addImage(Image,int,int,int)): Likewise.
4396 2004-06-11 Michael Koch <konqueror@gmx.de>
4398 * javax/swing/text/AbstractDocument.java,
4399 javax/swing/text/Document.java,
4400 javax/swing/text/GapContent.java,
4401 javax/swing/text/JTextComponent.java,
4402 javax/swing/text/PlainDocument.java:
4405 2004-06-11 Michael Koch <konqueror@gmx.de>
4407 * javax/swing/JRootPane.java
4408 (AccessibleJRootPane.serialVersionUID): New field.
4409 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
4410 (AccessibleJRootPane.getAccessibleRole): New method.
4411 (RootLayout): Implements Serializable.
4412 (RootLayout.serialVersionUID): New field.
4413 (RootLayout.RootLayout): New constructor.
4414 (setJMenuBar): Made public.
4415 (getJMenuBar): Likewise.
4416 (JRootPane): Likewise.
4417 (createContentPane): Likewise.
4418 (createGlassPane): Likewise.
4419 (createLayeredPane): Likewise.
4421 2004-06-11 Michael Koch <konqueror@gmx.de>
4423 * javax/swing/SwingUtilities.java
4424 (isLeftMouseButton): Fixed javadoc.
4425 (isMiddleMouseButton): Likewise.
4426 (isRightMouseButton): Likewise.
4428 2004-06-11 Michael Koch <konqueror@gmx.de>
4430 * javax/swing/JScrollPane.java
4431 (serialVersionUID): New field.
4432 (columnHeader): Made protected.
4433 (rowHeader): Likewise.
4434 (lowerLeft): Likewise.
4435 (lowerRight): Likewise.
4436 (upperLeft): Likewise.
4437 (upperRight): Likewise.
4438 (horizontalScrollBar): Likewise.
4439 (horizontalScrollBarPolicy): Likewise.
4440 (verticalScrollBar): Likewise.
4441 (verticalScrollBarPolicy): Likewise.
4442 (viewport): Likewise.
4444 2004-06-11 Michael Koch <konqueror@gmx.de>
4446 * javax/swing/LookAndFeel.java: Fixed javadocs.
4448 2004-06-11 Michael Koch <konqueror@gmx.de>
4450 * javax/swing/JEditorPane.java: Fixed javadocs.
4451 (JEditorPane): Removed redundant call to to this().
4452 (fireHyperlinkUpdate): Implemented.
4454 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4456 * javax/swing/JMenu.java: Fixed file name
4457 in the file comment.
4459 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4461 * javax/swing/JMenu.java: Added javadoc.
4462 (JMenu): Added MenuChangeListener to listen to
4463 ChangeEvents occuring in menu's model.
4464 (insert): Throw IllegalArgumentException if
4465 index is less than 0
4466 (setSelected): Reimplement.
4467 (setPopupMenuVisible): Call menu's model isEnabled()
4468 (setDelay): Throw IllegalArgumentException if
4469 given amount of delay is less than 0.
4470 (createActionComponent): Implemented.
4471 (createActionChangeListener): Implemented.
4472 (addSeparator): Implemented.
4473 (getItem): Throw IllegalArgumentException if index is
4475 (getItemCount): Implemented.
4476 (fireMenuSelected): Changed to use menuEvent.
4477 (fireMenuDeselected): Likewise.
4478 (fireMenuCanceled): Likewise.
4479 (setAccelerator): Changed to throw an error if this
4481 (doClick): Implemented.
4482 (JMenu.ActionChangedListener): New inner class to handle
4483 PropertyChangeEvents occuring in the actions associated with menu.
4484 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
4485 (BasicMenuUI): Added PropertyChangeListener to the menu.
4486 (createChangeListener): Implemented.
4487 (createMenuDragMouseListener): Likewise.
4488 (createMenuKeyListener): Likewise.
4489 (createPropertyChangeListener): Likewise.
4490 (uninstallListeners): Likewise.
4491 (BasicMenuUI.MouseInputHandler): Reimplemented.
4492 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
4493 (BasicMenuUI.ChangeHandler): Likewise.
4494 (BasicMenuUI.MenuDragMouseHandler): Likewise.
4495 (BasicMenuUI.MenuKeyHandler): Likewise.
4497 2004-06-10 David Jee <djee@redhat.com>
4499 * java/awt/MediaTracker.java
4500 (imageUpdate): Only do notifyAll() if the image is complete.
4502 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4504 * javax/swing/JApplet.java:
4505 (getJMenuBar): Made public.
4506 (setJMenuBar): Likewise.
4507 * javax/swing/JFrame.java:
4508 (getJMenuBar): Made public.
4509 (setJMenuBar): Likewise.
4510 * javax/swing/JWindow.java:
4511 (getJMenuBar): Removed.
4512 (setJMenuBar): Removed.
4514 2004-06-10 Michael Koch <konqueror@gmx.de>
4516 * javax/swing/JEditorPane.java
4517 (createEditorKitForContentType): Fixed visibility.
4518 (fireHyperlinkUpdate): Likewise.
4519 (getContentType): Likewise.
4520 (getEditorKit): Likewise.
4521 (getEditorKitForContentType): Likewise.
4522 (getPage): Likewise.
4524 (registerEditorKitForContentTyoe): Likewise.
4525 (replaceSelection): Likewise.
4526 (setContentType): Likewise.
4527 (setEditorKit): Likewise.
4528 (setPage): Likewise.
4530 2004-06-10 Michael Koch <konqueror@gmx.de>
4532 * javax/swing/Timer.java
4533 (Timer): New constructor.
4534 * javax/swing/plaf/basic/BasicProgressBarUI.java
4535 (animationTimer): Don't initialize at construction.
4536 (startAnimationTimer): Added since tag.
4537 (stopAnimationTimer): Likewise.
4538 (installUI): Use new Timer constructor.
4539 * javax/swing/plaf/basic/BasicScrollBarUI.java
4540 (installUI): Likewise.
4541 * javax/swing/plaf/basic/BasicSliderUI.java
4542 (installUI): Likewise.
4544 2004-06-10 Michael Koch <konqueror@gmx.de>
4546 * javax/swing/ButtonGroup.java
4547 (serialVersionUID): Made private.
4548 (buttons): Renamed from v, added javadoc.
4549 (sel): Added javadoc.
4550 (ButtonGroup): Likewise.
4553 (getElements): Likewise.
4554 (getSelection): Likewise.
4555 (setSelected): Likewise.
4556 (isSelected): Likewise.
4557 (getButtonCount): Likewise.
4559 2004-06-10 Michael Koch <konqueror@gmx.de>
4561 * javax/swing/ButtonGroup.java,
4562 javax/swing/ImageIcon.java,
4563 javax/swing/JEditorPane.java,
4564 javax/swing/JRootPane.java,
4565 javax/swing/JTextField.java,
4566 javax/swing/LookAndFeel.java,
4567 javax/swing/plaf/basic/BasicTextUI.java:
4570 2004-06-10 Michael Koch <konqueror@gmx.de>
4572 * javax/swing/text/Style.java: Added javadocs.
4574 2004-06-10 Michael Koch <konqueror@gmx.de>
4576 * javax/swing/JComponent.java
4577 (fireVetoableChange): Removed redundant cast.
4578 * javax/swing/JLabel.java
4579 (getDisabledIcon): Save icon for next call.
4581 2004-06-10 Michael Koch <konqueror@gmx.de>
4583 * javax/swing/KeyStroke.java
4584 (getKeyStroke(char,boolean)): Marked deprecated.
4586 2004-06-10 Michael Koch <konqueror@gmx.de>
4588 * javax/swing/DefaultCellEditor.java,
4589 javax/swing/GrayFilter.java,
4590 javax/swing/event/DocumentEvent.java,
4591 javax/swing/text/JTextComponent.java,
4592 javax/swing/text/MutableAttributeSet.java:
4595 2004-06-10 Michael Koch <konqueror@gmx.de>
4597 * javax/swing/plaf/BorderUIResource.java:
4598 Added serialVersionUID all over.
4600 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
4602 * javax/swing/undo/UndoManager.java: Re-written from scratch.
4604 2004-06-10 Michael Koch <konqueror@gmx.de>
4606 * javax/swing/table/DefaultTableCellRenderer.java
4607 (noFocusBorder): Initialize directly.
4609 2004-06-10 Michael Koch <konqueror@gmx.de>
4611 * javax/swing/plaf/basic/BasicArrowButton.java
4612 (setDirection): Use method argument.
4614 2004-06-10 Michael Koch <konqueror@gmx.de>
4616 * javax/swing/plaf/BorderUIResource.java,
4617 javax/swing/plaf/ComponentUI.java,
4618 javax/swing/undo/CompoundEdit.java,
4619 javax/swing/undo/StateEdit.java:
4620 Fixed javadocs all over.
4622 2004-06-10 Michael Koch <konqueror@gmx.de>
4624 * javax/swing/DefaultButtonModel.java
4625 (ARMED): Made public final, fixed value.
4626 (ENABLED): Likewise.
4627 (PRESSED): Likewise.
4628 (ROLLOVER): Likewise.
4629 (SELECTED): Likewise.
4630 (stateMask): Initialize directly.
4631 (listenerList): Likewise.
4632 (mnemonic): Likewise.
4633 (fireStateChanged): Removed argument, use changeEvent as event.
4634 All places where this method is called are fixed too.
4635 (getActionCommant): Fixed javadoc.
4636 (setGroup): Fixed javadoc.
4637 (getGroup): New method.
4639 2004-06-09 Olga Rodimina <rodimina@redhat.com>
4641 * javax/swing/AbstractButton.java
4642 (AbstractButton): Use init() to initialize the button.
4643 (init): New Method. Initializes AbstractButton.
4644 * javax/swing/JMenuItem.java: Documented.
4645 (JMenuItem): Reimplemented.
4646 (init): Implemented.
4647 (setEnabled): Changed to call super.setEnabled()
4648 (processMouseEvent): Reimplemented.
4649 (fireMenuKeyPressed): Implemented.
4650 (fireMenuKeyReleased): Implemented.
4651 (fireMenuKeyTyped): Implemented.
4652 (menuSelectionChanged): disarm the model if the menu item was
4654 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
4655 (getPath): Change to use ArrayList instead of Vector.
4656 (getPreferredSize): Renamed variable.
4657 (paintMenuItem): Paint margin area of menu item.
4658 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
4659 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
4660 menu item's bounds before clearing the selection.
4662 2004-06-09 David Jee <djee@redhat.com>
4664 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
4665 (GtkTextComponentPeer): Set caret position to 0.
4666 * java/awt/TextComponent.java
4667 (setText): Set caret position to 0.
4668 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4669 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
4670 Handle GtkScrolledWindow separately. Fix signal handler blocking.
4671 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
4673 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
4674 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
4677 2004-06-09 Kim Ho <kho@redhat.com>
4679 * Makefile.am: New files
4680 * Makefile.in: Regenerated
4681 * java/awt/Container.java
4682 (getComponentAt): Removed.
4683 * javax/swing/AbstractAction.java
4684 (ENABLED_PROPERTY): New property.
4685 (putValue): Fire PropertyChangeEvents.
4686 (setEnabled): ditto.
4687 (firePropertyChange): Javadoc and implement
4689 * javax/swing/AbstractButton.java
4690 (setAction): Don't create PropertyChangeListener
4691 if new Action is null.
4692 (setIcon): Don't set icon till after comparing
4694 (configurePropertiesFromAction): Check mnemonic
4695 key before calling intValue().
4696 (createActionPropertyChangeListener): Check
4697 properties rather than bulk change.
4698 * javax/swing/DefaultDesktopManager.java:
4700 * javax/swing/DesktopManager.java:
4702 * javax/swing/JComponent.java
4703 (fireVetoableChange): Implement.
4704 (paintImmediately): Use root component.
4705 * javax/swing/JDesktopPane.java: Implement
4706 * javax/swing/JInternalFrame.java: Implement
4707 * javax/swing/JLabel.java
4708 (getDisabledIcon): Return grayscaled icon if
4709 no disabled icon specified.
4710 * javax/swing/JMenuBar.java
4711 (getComponentAtIndex): Use getComponent
4712 * javax/swing/JOptionPane.java
4713 (getDesktopPaneForComponent): Use SwingUtilities'
4715 (getFrameForComponent): ditto.
4716 * javax/swing/JSplitPane.java
4717 (remove): Use getComponent.
4718 * javax/swing/SwingUtilities.java
4719 (convertPoint): Implement.
4720 * javax/swing/plaf/basic/BasicButtonUI.java
4721 (paintButtonNormal): Check opaqueness before
4723 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
4725 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
4727 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
4729 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
4731 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4732 Change InternalFrame and Desktop colors.
4734 2004-06-09 David Jee <djee@redhat.com>
4736 * java/awt/Container.java
4737 (remove): Do not set component to invisible.
4739 2004-06-09 Michael Koch <konqueror@gmx.de>
4741 * javax/swing/tree/DefaultMutableTreeNode.java
4742 (getLeafCount): Renamed enum to e.
4744 2004-06-09 Michael Koch <konqueror@gmx.de>
4746 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
4747 (positionForMouseEvent): Removed redundant semicolon.
4748 (continueDrag): Use method arguments.
4750 2004-06-09 Michael Koch <konqueror@gmx.de>
4752 * javax/swing/border/TitledBorder.java,
4753 javax/swing/filechooser/FileSystemView.java,
4754 javax/swing/plaf/basic/BasicButtonListener.java,
4755 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4756 javax/swing/plaf/basic/BasicLabelUI.java,
4757 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4758 javax/swing/plaf/basic/BasicScrollBarUI.java,
4759 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4760 javax/swing/plaf/basic/BasicSliderUI.java,
4761 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4762 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4763 javax/swing/table/JTableHeader.java,
4764 javax/swing/text/AbstractDocument.java,
4765 javax/swing/text/DefaultCaret.java,
4766 javax/swing/text/StyledEditorKit.java,
4767 javax/swing/tree/DefaultTreeCellEditor.java:
4768 Reworked import statements.
4770 2004-06-08 Graydon Hoare <graydon@redhat.com>
4772 * javax/swing/Box.java: Temporarily comment out code
4773 broken due to visibility bug.
4775 2004-06-09 Michael Koch <konqueror@gmx.de>
4777 * javax/swing/ImageIcon.java
4778 (ImageIcon): Added missing constructor.
4780 2004-06-08 Michael Koch <konqueror@gmx.de>
4782 * javax/swing/JToggleButton.java
4783 (JToggleButton): New constructor.
4784 (getAccessibleContext): Moved documentation into javadoc.
4785 (getUIClassID): Likewise.
4787 2004-06-08 Michael Koch <konqueror@gmx.de>
4789 * javax/swing/AbstractButton.java
4790 (getDisabledIcon): Create disabled icon if none exists yet.
4792 2004-06-08 Michael Koch <konqueror@gmx.de>
4794 * javax/swing/plaf/basic/BasicLookAndFeel.java
4795 (initClassDefaults): Added FormattedTextFieldUI.
4796 (loadResourceBundle): Renamed enum to e.
4798 2004-06-08 Michael Koch <konqueror@gmx.de>
4800 * javax/swing/plaf/basic/BasicButtonUI.java
4801 (paintIcon): Simplified.
4802 (paintText): Paint disabled button correctly.
4804 2004-06-08 Michael Koch <konqueror@gmx.de>
4806 * javax/swing/JComponent.java
4807 (createToolTip): Use official JToolTip API.
4809 2004-06-08 Michael Koch <konqueror@gmx.de>
4811 * javax/swing/JToolTip.java
4812 (JToolTip): No arguments in API.
4813 (setTipText): New method.
4815 2004-06-08 Michael Koch <konqueror@gmx.de>
4817 * javax/swing/SwingUtilities.java
4818 (isLeftMouseButton): New method.
4819 (isMiddleMouseButton): New method.
4820 (isRightMouseButton): New method.
4822 2004-06-08 Michael Koch <konqueror@gmx.de>
4824 * javax/swing/AbstractButton.java,
4825 javax/swing/CellRendererPane.java,
4826 javax/swing/JCheckBoxMenuItem.java,
4827 javax/swing/JColorChooser.java,
4828 javax/swing/JComboBox.java,
4829 javax/swing/JComponent.java,
4830 javax/swing/JDesktopPane.java,
4831 javax/swing/JFileChooser.java,
4832 javax/swing/JMenu.java,
4833 javax/swing/JMenuItem.java,
4834 javax/swing/JOptionPane.java,
4835 javax/swing/JPasswordField.java,
4836 javax/swing/JPopupMenu.java,
4837 javax/swing/JProgressBar.java,
4838 javax/swing/JRadioButtonMenuItem.java,
4839 javax/swing/JScrollBar.java,
4840 javax/swing/JSeparator.java,
4841 javax/swing/JSlider.java,
4842 javax/swing/JSplitPane.java,
4843 javax/swing/JTabbedPane.java,
4844 javax/swing/JTextField.java,
4845 javax/swing/JToolBar.java,
4846 javax/swing/text/JTextComponent.java:
4847 Fixed all constructors of accessibility classes.
4849 2004-06-08 Michael Koch <konqueror@gmx.de>
4851 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
4854 2004-06-08 Michael Koch <konqueror@gmx.de>
4856 * javax/swing/Box.java
4857 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
4858 (AccessibleBoxFiller.serialVersionUID): New member variable.
4859 * javax/swing/DefaultButtonModel.java
4860 (stateMask): Made protected.
4861 (listenerList): Likewise.
4862 (changeEvent): Likewise.
4864 (mnemonic): Likewise.
4865 (actionCommand): Likewise.
4866 (getListeners): New method.
4867 (getActionListeners): New method.
4868 (getItemListeners): New method.
4869 (getChangeListeners): New method.
4870 (fireItemStateChanged): Simplified.
4871 (fireActionPerformed): Simplified.
4872 (fireStateChanged): Simplified.
4873 * javax/swing/JFrame.java
4874 (JFrame): Implements WindowContants.
4875 (HIDE_ON_CLOSE): Removed.
4876 (EXIT_ON_CLOSE): Removed.
4877 (DISPOSE_ON_CLOSE): Removed.
4878 (DO_NOTHING_ON_CLOSE): Removed.
4879 (processWindowEvent): Exit with code 0.
4880 (setDefaultCloseOperation): Do security check before setting value.
4881 * javax/swing/JOptionPane.java
4882 (message): Initialize only in constructor.
4883 * javax/swing/JToolTip.java: Removed unused imports.
4884 * javax/swing/JViewport.java
4885 (serialVersionUID): New member variable.
4886 (SIMPLE_SCROLL_MODE): Made final, fixed value.
4887 (BLIT_SCROLL_MODE): Likewise.
4888 (BACKINGSTORE_SCROLL_MODE): Likewise.
4889 (scrollUnderway): Made protected.
4890 (isViewSizeSet): Likewise.
4891 * javax/swing/ListModel.java: Fixed javadoc.
4892 * javax/swing/Popup.java: Likewise.
4893 * javax/swing/RepaintManager.java
4894 (paintDirtyRegions): Don't use internal classes of
4895 java.util.AbstractMap.
4896 * javax/swing/ScrollPaneConstants.java: Reindented.
4897 * javax/swing/ScrollPaneLayout.java
4898 (viewport): Made protected.
4899 (verticalScrollBar): Made protected, renamed to vsb.
4900 (horizontalScrollBar): Made protected, renamed to hsb.
4901 (rowHeader): Made protected, renamed to rowHead.
4902 (columnHeader): Made protected, renamed to colHead.
4903 (lowerLeft): Made protected.
4904 (lowerRight): Made protected.
4905 (upperLeft): Made protected.
4906 (upperRight): Made protected.
4907 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
4908 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
4910 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
4912 * java/awt/MediaTracker.java (imageUpdate): Only set status to
4913 LOADING if flags has SOMEBITS set.
4915 2004-06-07 Michael Koch <konqueror@gmx.de>
4917 * javax/swing/AbstractButton.java: Reorganized imports.
4918 * javax/swing/ActionMap.java: Likewise.
4919 * javax/swing/DefaultButtonModel.java: Likewise.
4920 * javax/swing/DefaultListModel.java: Likewise.
4921 * javax/swing/ImageIcon.java: Likewise.
4922 (serialVersionUID): New member variable.
4923 * javax/swing/JComboBox.java: Reorganized imports.
4924 * javax/swing/JComponent.java: Likewise.
4925 (ui): Made protected.
4926 (listenerList): Made protected.
4927 (TOOL_TIP_TEXT_KEY): New constant.
4928 (scrollRectToVisible): Removed redundant null check.
4929 * javax/swing/JFrame.java: Reorganized imports.
4930 * javax/swing/JInternalFrame.java: Reorganized imports.
4931 * javax/swing/JProgressBar.java: Likewise.
4932 * javax/swing/JRootPane.java: Likewise.
4933 * javax/swing/JScrollBar.java: Likewise.
4934 * javax/swing/JSeparator.java: Likewise.
4935 * javax/swing/JSlider.java: Likewise.
4936 * javax/swing/JTabbedPane.java: Likewise.
4937 * javax/swing/JTextField.java: Likewise.
4938 * javax/swing/JToolBar.java: Likewise.
4939 * javax/swing/JTree.java: Likewise.
4940 * javax/swing/JViewport.java: Likewise.
4941 * javax/swing/JWindow.java: Likewise.
4942 * javax/swing/KeyStroke.java: Likewise.
4943 * javax/swing/LookAndFeel.java: Likewise.
4944 * javax/swing/MenuSelectionManager.java: Likewise.
4945 * javax/swing/SwingUtilities.java: Likewise.
4946 * javax/swing/Timer.java: Likewise.
4947 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
4948 * javax/swing/JList.java
4949 (HORIZONTAL_WRAP): Made final, fixed value.
4950 (VERTICAL): Likewise.
4951 (VERTICAL_WRAP): Likewise.
4953 2004-06-07 Michael Koch <konqueror@gmx.de>
4955 * javax/swing/AbstractButton.java
4956 (serialVersionUID): New member variable.
4957 (AccessibleAbstractButton.serialVersionUID): Likewise.
4958 (AbstractButton): Made public.
4959 * javax/swing/Box.java
4960 (AccessibleBox.serialVersionUID): New member variable.
4961 (Filler.serialVersionUID): Likewise.
4962 * javax/swing/DefaultListSelectionModel.java
4963 (serialVersionUID): Likewise.
4964 * javax/swing/JApplet.java
4965 (serialVersionUID): Likewise.
4966 * javax/swing/JCheckBox.java
4967 (serialVersionUID): Likewise.
4968 * javax/swing/JCheckBoxMenuItem.java
4969 (serialVersionUID): Likewise.
4970 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
4971 * javax/swing/JColorChooser.java
4972 (serialVersionUID): Likewise.
4973 (AccessibleJColorChooser.serialVersionUID): Likewise.
4974 * javax/swing/JComponent.java
4975 (serialVersionUID): Made private.
4976 (AccessibleJComponent.serialVersionUID): New member variable.
4977 * javax/swing/JDesktopPane.java
4978 (serialVersionUID): Likewise.
4979 * javax/swing/JDialog.java
4980 (serialVersionUID): Likewise.
4981 * javax/swing/JFormattedTextField.java
4982 (serialVersionUID): Fixed value.
4983 * javax/swing/JFrame.java
4984 (serialVersionUID): New member variable.
4985 (getDefaultCloseOpertation): Made public.
4986 * javax/swing/JLayeredPane.java
4987 (serialVersionUID): Likewise.
4988 (LAYER_PROPERTY): Made final, fixed value.
4989 (JLayeredPane): Made public.
4990 * javax/swing/JMenu.java
4991 (AccessibleJMenu.serialVersionUID): New member variable.
4992 (WinListener.serialVersionUID): Likewise.
4993 * javax/swing/JMenuBar.java
4994 (serialVersionUID): Likewise.
4995 (getComponentAtIndex): Added @deprecated tag.
4996 * javax/swing/JMenuItem.java
4997 (serialVersionUID): New member variable.
4998 (AccessibleJMenuItem.serialVersionUID): Likewise.
4999 * javax/swing/JOptionPane.java
5000 (serialVersionUID): Likewise.
5001 (AccessibleJOptionPane.serialVersionUID): Likewise.
5002 * javax/swing/JPopupMenu.java
5003 (serialVersionUID): Likewise.
5004 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5005 (getPopupMenuListeners): New method.
5006 (getComponentAtIndex): Added @deprecated tag.
5007 * javax/swing/JProgressBar.java
5008 (serialVersionUID): New member variable.
5009 (AccessibleJProgressBar.serialVersionUID): Likewise.
5010 * javax/swing/JRadioButton.java
5011 (serialVersionUID): Likewise.
5012 * javax/swing/JRadioButtonMenuItem.java
5013 (serialVersionUID): Likewise.
5014 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5015 * javax/swing/JScrollBar.java
5016 (serialVersionUID): Likewise.
5017 (AccessibleJScrollBar.serialVersionUID): Likewise.
5018 * javax/swing/JSeparator.java
5019 (serialVersionUID): Likewise.
5020 (AccessibleJSeparator.serialVersionUID): Likewise.
5021 * javax/swing/JSlider.java: Fixed javadocs.
5022 (AccessibleJSlider.serialVersionUID): New member variable.
5023 * javax/swing/JSplitPane.java: Added copyright statement.
5024 (serialVersionUID): New member variable.
5025 (AccessibleJSplitPane.serialVersionUID): Likewise.
5026 * javax/swing/JTabbedPane.java
5027 (serialVersionUID): Likewise.
5028 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5029 (ModelListener.serialVersionUID): Likewise.
5030 (ModelListener.ModelListener): New constructor.
5031 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5032 (WRAP_TAB_LAYOUT): Likewise.
5033 * javax/swing/JTable.java
5034 (serialVersionUID): New member variable.
5035 * javax/swing/JToggleButton.java
5036 (serialVersionUID): Likewise.
5037 (ToggleButtonModel): Made static.
5038 (ToggleButtonModel.serialVersionUID): New member variable.
5039 * javax/swing/JToolTip.java
5040 (serialVersionUID): Likewise.
5041 * javax/swing/JTree.java
5042 (serialVersionUID): Likewise.
5043 * javax/swing/JWindow.java
5044 (serialVersionUID): Likewise.
5045 * javax/swing/Timer.java
5046 (serialVersionUID): Likewise.
5048 2004-06-06 Michael Koch <konqueror@gmx.de>
5050 * javax/swing/SwingConstants.java
5051 (NEXT): New constant.
5052 (PREVIOUS): Likewise.
5053 * javax/swing/UIManager.java
5054 (LookAndFeel): Made public.
5055 (LookAndFeel.getClassName): Likewise.
5056 (LookAndFeel.getName): Likewise.
5058 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5060 * javax/swing/JCheckBoxMenuItem.java:
5062 * javax/swing/JMenu.java: Likewise.
5063 * javax/swing/JMenuBar.java: Likewise.
5064 * javax/swing/JMenuItem.java: Likewise.
5065 * javax/swing/JPopupMenu.java: Likewise.
5066 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5067 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5068 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5069 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5070 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5071 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5072 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5074 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5076 * javax/swing/plaf/basic/BasicMenuUI.java:
5077 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5078 Call getPath() from super class instead.
5080 2004-05-31 David Jee <djee@redhat.com>
5082 * java/awt/Container.java
5083 (remove): Set component visibility to false after removing it.
5085 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5087 * java/awt/Component.java (getForeground): Return SystemColor if
5089 (getBackground): Likewise.
5091 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5092 (item_highlighted): New function.
5093 (connectSignals): Set item_highlighted as list's select
5096 * java/applet/Applet.java: Revert changes from 2004-04-29,
5097 2004-03-15 and 2004-03-14.
5099 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5100 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5103 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5104 "Dialog" as the default font.
5105 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5107 * java/awt/Component.java (getFont): Return "Dialog" font by
5109 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5110 Multiply size argument to pango_font_description_set_size by the
5111 DPI conversion factor rather than by PANGO_SCALE.
5112 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5113 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5114 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5115 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5116 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5117 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5118 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5119 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5120 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5121 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5122 Divide baseline y coordinate by DPI conversion factor rather
5123 than by PANGO_SCALE.
5124 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5125 (area_prepared): Fix typo.
5126 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5127 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5128 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5129 (dpi_conversion_factor): New global variable.
5130 (init_dpi_conversion_factor): New function to calculate and
5131 track DPI conversion factor.
5132 (dpi_changed_cb): New callback.
5133 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5135 2004-05-27 David Jee <djee@redhat.com>
5137 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5138 (getGraphics): Return a new GdkGraphics instance.
5139 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5140 (getGraphics): Call super.getGraphics().
5142 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5144 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5145 (setNativeBounds): Clamp width and height values to >= 0.
5147 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5148 (find_fg_color_widget): Handle GtkOptionMenu specially.
5150 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5151 (pre_event_handler): Only post configure events to visible
5154 2004-05-26 David Jee <djee@redhat.com>
5156 * java/awt/BorderLayout.java
5157 (layoutContainer): Fix size calculations.
5159 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5161 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5162 (window_wm_protocols_filter): Remove function.
5163 (create): Remove filter that removes WM_TAKE_FOCUS client
5166 2004-06-17 Anthony Green <green@redhat.com>
5168 * java/util/zip/ZipFile.java (getInputStream): Return null if
5171 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5172 directory contents to the class path.
5174 2004-06-15 Andrew Haley <aph@redhat.com>
5176 * java/lang/natSystem.cc (getenv0): Don't assume environment
5177 variable is Latin 1 coded.
5179 2004-06-14 Andreas Jaeger <aj@suse.de>
5181 * configure.in: Support --enable-version-specific-runtime-libs.
5182 * configure: Regenerated.
5184 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5186 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5187 to pass ClassLoader argument.
5188 * java/util/GregorianCalendar.java: Likewise.
5189 * java/util/Currency.java: Likewise.
5190 * java/text/BreakIterator.java: Likewise.
5191 * java/text/Collator.java: Likewise.
5192 * java/text/DateFormat.java: Likewise.
5193 * java/text/DateFormatSymbols.java: Likewise.
5194 * java/text/DecimalFormatSymbols.java: Likewise.
5195 * java/text/NumberFormat.java: Likewise.
5196 * java/awt/Window.java: Likewise.
5198 2004-06-14 Andrew Haley <aph@redhat.com>
5200 * java/lang/System.java: (getenv0): New method.
5201 (getenv): Add security check. Do the right thing.
5202 * java/lang/natSystem.cc (getenv0): New method.
5204 2004-06-12 Mark Wielaard <mark@klomp.org>
5206 * javax/swing/RepaintManager.java
5207 (paintDirtyRegions): Use entrySet(), not values().
5209 2004-06-10 Mark Wielaard <mark@klomp.org>
5211 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5214 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5216 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5217 when we already know the answer.
5218 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5219 (setStartRule,setEndRule): Don't take abs of day number.
5220 (getOffset): Clarify docs. Add argument checks.
5221 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5222 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5225 2004-06-10 Tom Tromey <tromey@redhat.com>
5227 * interpret.cc (run): Handle wide fload.
5229 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5231 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5233 2004-06-05 Michael Koch <konqueror@gmx.de>
5235 * javax/swing/SwingConstants.java
5236 (NEXT): New constant.
5237 (PREVIOUS): Likewise.
5239 2004-06-05 Michael Koch <konqueror@gmx.de>
5241 * javax/swing/UIManager.java
5242 (LookAndFeel): Made public.
5243 (LookAndFeel.getName): Likewise.
5244 (LookAndFeel.getClassName): Likewise.
5246 2004-06-03 Michael Koch <konqueror@gmx.de>
5248 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5249 (requestFocus): Revert last changes.
5250 (gtkRequestFocus): Removed.
5251 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5252 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5254 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5255 Reverted last patch.
5256 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5257 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5258 Reverted comment change.
5260 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5262 * javax/swing/JCheckBoxMenuItem.java:
5264 * javax/swing/JMenu.java: Likewise.
5265 * javax/swing/JMenuBar.java: Likewise.
5266 * javax/swing/JMenuItem.java: Likewise.
5267 * javax/swing/JPopupMenu.java: Likewise.
5268 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5269 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5270 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5271 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5272 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5273 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5274 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5276 2004-06-01 Tom Tromey <tromey@redhat.com>
5278 * java/io/ObjectStreamField.java: Cleaned up imports.
5280 2004-06-01 Michael Koch <konqueror@gmx.de>
5282 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5284 2004-06-01 Mark Wielaard <mark@klomp.org>
5286 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5288 2004-06-01 Michael Koch <konqueror@gmx.de>
5290 * java/security/Security.java
5291 (insertProviderAt): Use equals() instead of ==.
5292 (removeProvicer): Likewise.
5293 (getProvider): Likewise.
5294 * java/security/Signature.java
5295 (sign): Don't set state to UNINITIALIZED.
5298 2004-06-01 Mark Wielaard <mark@klomp.org>
5300 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5301 Implement by calling gtkRequestFocus.
5302 (gtkRequestFocus): New native method.
5303 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5304 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5306 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5308 (filter_expose_event_handler):
5310 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5311 (menu_pos): Mark static.
5313 2004-06-01 Michael Koch <konqueror@gmx.de>
5315 * java/text/CollationElementIterator.java,
5316 java/text/CollationKey.java,
5317 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5318 * testsuite/libjava.mauve/xfails: Removed all
5319 java.text.CollationElementIterator tests.
5321 2004-06-01 Michael Koch <konqueror@gmx.de>
5323 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5325 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5326 Java 1.5 keyword usage.
5328 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5330 * javax/swing/plaf/basic/BasicMenuUI.java:
5331 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5332 Call getPath() from super class instead.
5334 2004-05-31 Michael Koch <konqueror@gmx.de>
5336 * java/io/SequenceInputStream.java:
5337 Rename enum to e because enum is a keyword in Java 1.5.
5339 2004-05-31 Michael Koch <konqueror@gmx.de>
5341 * gnu/java/rmi/rmic/CompilerProcess.java:
5342 Fixed javadoc to by XHTML compliant.
5344 2004-05-30 Mark Wielaard <mark@klomp.org>
5346 * java/awt/Toolkit.java (loadSystemColors): Implement.
5348 2004-05-30 Michael Koch <konqueror@gmx.de>
5350 * java/lang/System.java: Reordered imports.
5352 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5354 * java/text/DecimalFormat.java
5355 (parse): Fixed parsing of decimal strings. Number of maximum
5356 digits to be read should now work.
5357 * java/text/SimpleDateFormat.java
5358 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5359 formatter. This fixes DateFormatTest.
5361 2004-05-30 Michael Koch <konqueror@gmx.de>
5363 * java/nio/Buffer.java
5364 (limit): Fixed off by one error.
5365 * java/nio/CharBuffer.java
5366 (wrap): Fixed arguments, added javadocs.
5368 2004-05-30 Michael Koch <konqueror@gmx.de>
5370 * gnu/java/beans/BeanInfoEmbryo.java,
5371 java/awt/im/InputContext.java,
5372 javax/swing/tree/DefaultMutableTreeNode.java:
5373 Rename enum to e because enum is a keyword in Java 1.5.
5375 2004-05-30 Michael Koch <konqueror@gmx.de>
5377 * gnu/java/math/MPN.java,
5378 java/awt/geom/Arc2D.java:
5379 Fixed javadocs all over.
5381 2004-05-30 Michael Koch <konqueror@gmx.de>
5383 * java/awt/DefaultKeyboardFocusManager.java
5384 (dispatchEvent): Call method to get key event dispatchers.
5385 (dispatchKeyEvent): Call method to get key event post processors.
5386 * javax/swing/JComponent.java
5387 (listenerList): Made protected.
5388 * javax/swing/JOptionPane.java
5389 (message): Don't initialize.
5390 (JOptionPane): Set message text.
5391 * javax/swing/JPopupMenu.java
5392 (show): Fixed typo in argument name.
5393 * javax/swing/RepaintManager.java
5394 (paintDirtyRegions): Use public API of java.util.Map.
5395 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5396 (positionForMouseEvent): Removed redundant ';'.
5397 (continueDrag): Use method arguments.
5399 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
5401 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
5404 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
5406 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
5408 * gnu/gcj/RawDataManaged.java: New file.
5409 * java/lang/Thread.java (data): Declare as RawDataManaged.
5410 * java/lang/natThread.cc (init_native): Cast natThread data to
5411 RawDataManaged, not jobject.
5412 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
5413 * Makefile.in: Rebuilt.
5415 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
5417 * java/util/SimpleTimeZone.java: Reverting my last change until I
5418 can fix it properly.
5420 2004-05-27 Michael Koch <konqueror@gmx.de>
5422 * javax/swing/JPopupMenu.java
5423 (isVisible): Do not use visible directly.
5424 (setVisible): Likewise.
5425 * javax/swing/JWindow.java
5426 (JWindow): call accessible constructor.
5427 * javax/swing/RepaintManager.java
5428 (paintDirtyRegions): Use public methods to obtain iterator.
5430 2004-05-25 David Jee <djee@redhat.com>
5432 * java/awt/Container.java
5433 (remove): Set component's parent to null only after we removed the
5434 component from its parent's layout manager.
5436 2004-05-25 David Jee <djee@redhat.com>
5438 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5439 (GtkComponentPeer): Set bounds regardless of whether awtComponent
5441 * gnu/java/awt/peer/gtk/GtkListPeer.java
5442 (getSize): Change native method declaration.
5443 (minimumSize): Pass visible row count into getSize().
5444 (preferredSize): Likewise.
5445 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5446 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
5447 natural size. Use visible row count to determine the final height
5450 2004-05-21 Graydon Hoare <graydon@redhat.com>
5452 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5453 (setClip): Minor correction to order of operations.
5455 * javax/swing/JScrollPane.java: Extend sketchy implementation.
5456 * javax/swing/ScrollPaneLayout.java: Likewise.
5457 * javax/swing/JViewPort.java: Likewise.
5458 * javax/swing/ViewportLayout.java: Likewise.
5460 * javax/swing/JComponent.java: Rewrite.
5461 * javax/swing/RepaintManager.java: Likewise.
5463 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
5464 * javax/swing/JList.java
5465 (setSelectedIndices):
5466 (getSelectedIndices):
5467 (getSelectedValues): New functions.
5468 (getPreferredScrollableViewportSize): Return preferred size.
5469 (getScrollableUnitIncrement):
5470 (getScrollableBlockIncrement): Initial implementations.
5471 * javax/swing/JRootPane.java: Clean up slightly.
5476 (isValidateRoot): Add overrides from JComponent.
5477 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
5478 * javax/swing/UIManager.java (getDimension): Return the dimension.
5480 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
5481 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5482 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5483 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5484 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5485 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
5486 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
5487 * javax/swing/plaf/basic/BasicRootPaneUI.java:
5488 Likewise, and set background.
5489 * javax/swing/plaf/basic/BasicListUI.java:
5490 Likewise, and improve a bit.
5491 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5492 Likewise, and adjust calculations.
5493 * javax/swing/plaf/basic/BasicViewportUI.java:
5494 Likewise, and improve a bit.
5495 * javax/swing/plaf/basic/BasicLookAndFeel.java
5496 (Button.margin): Shrink.
5498 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5499 Hack to set horizontal always, workaround pango.
5501 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
5502 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
5503 Synchronize more often, check cairo status after ops,
5504 handle changes to cairo pattern API, check for disposal.
5506 2004-05-21 Olga Rodimina <rodimina@redhat.com>
5508 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5509 (BasicMenuItemUI): Create propertyChangeListener.
5510 (getPath):Implemented.
5511 (installListeners): Add propertyChangeListener to menuItem.
5512 (uninstallListeners): Remove propertyChangeListener from menuItem.
5513 (update): Implemented.
5514 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5515 (mouseEntered): Take insets of popup menu into account when
5516 calculating position of popup menu.
5518 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5520 * Makefile.am: Added new file.
5521 * Makefile.in: Regenerate.
5522 * javax/swing/JMenuBar.java:
5523 Started implementation.
5524 * javax/swing/JPopupMenu.java:
5525 (setVisible): Fixed location of lightweight/mediumweight
5527 (show): Fixed location of PopupMenu.
5528 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5529 New file. UI Delegate for JMenuBar.
5530 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5531 (mouseEntered): Corrected position of the submenu.
5533 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
5535 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
5536 to _gtk_accel_group_attach.
5537 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5540 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
5541 package access. Don't override setFont.
5542 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
5543 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
5544 gtkWidgetRequestFocus package access.
5545 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
5547 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
5548 Give gtkWidgetRequestFocus package access.
5549 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
5550 gtkWidgetRequestFocus package access. Don't override setFont.
5551 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
5553 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5554 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
5556 (gtkSetFont): Likewise.
5557 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
5559 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5560 (gtkSetFont): Whitespace fix.
5562 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5563 (gtkWidgetSetUsize): Remove method.
5565 2004-05-18 David Jee <djee@redhat.com>
5567 * java/awt/image/MemoryImageSource.java
5568 (newPixels(int,int,int,int,boolean)): Set only the specified
5569 rectangle of pixels.
5570 (newPixels(byte[],ColorModel,int,int)): Implement.
5571 (newPixels(int[],ColorModel,int,int)): Implement.
5573 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5575 * Makefile.am: Added new file.
5576 * Makefile.in: Regenerate.
5577 * javax/swing/JMenu.java: Started
5579 * javax/swing/JPopupMenu.java:
5580 (insert): If specified index is -1, then
5581 add component at the end.
5582 (isPopupTrigger): Reimplemented.
5583 (JPopupMenu.LightWeightPopup): setBounds
5584 of the lightWeightPopup before adding it
5586 (javax/swing/plaf/basic/BasicIconFactory.java):
5587 (getMenuArrowIcon): Implemented.
5588 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5589 (getPreferredSize): Add size of the arrow icon
5590 if this menu item is instance of JMenu.
5591 (paintMenuItem): Paint arrow icon if this
5592 menu item is a submenu.
5593 * javax/swing/plaf/basic/BasicMenuUI.java:
5594 New File. UI Delegate for JMenu.
5596 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
5598 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
5599 Post KEY_TYPED events.
5600 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5601 (generates_key_typed_event): Remove function.
5603 2004-05-17 Olga Rodimina <rodimina@redhat.com>
5605 * javax/swing/JRootPane.java
5606 (JRootPane.RootLayout): Reimplemented to
5607 set bounds of contentPane and menuBar.
5608 (setJMenuBar): Add menu bar to the layered pane.
5609 (createLayeredPane): Set layout of layeredPane
5611 * javax/swing/JLayeredPane.java:
5612 (addImpl): Calculate index of the component in the
5613 layeredPane according to the specified position within
5616 2004-05-17 David Jee <djee@redhat.com>
5618 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5619 (setPixels): Change color model to the default model after
5621 * java/awt/image/MemoryImageSource.java
5622 (newPixels): Set only the specified rectangle of pixels.
5624 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5626 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
5627 -l-java-beans -l-javax-accessibility -l-javax-swing.
5629 * java/awt/AWTEvent.java (toString): Print source's name rather
5630 than the source itself.
5632 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5634 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
5636 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
5637 (gdk_color_to_java_color): New function.
5638 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
5640 2004-05-12 David Jee <djee@redhat.com>
5642 * java/awt/image/RGBImageFilter.java:
5643 Initialize origmodel as null.
5644 (makeColor): Fix pixel component order.
5645 (filterRGBPixels): Fix pixel iteration.
5646 (setPixels): Add extra checks for index color model. Convert pixels
5647 to default color model if necessary.
5648 (convertColorModelToDefault): New override method for byte pixels.
5649 (convertColorModelToDefault): For int pixels, fix pixel iteration.
5650 (makeColorbyDefaultCM): New override method for byte pixels.
5651 (makeColorbyDefaultCM): For int pixel, add color model as argument.
5652 (makeColor): Fix pixel component order.
5654 2004-05-11 Kim Ho <kho@redhat.com>
5656 * javax/swing/Box.java:
5657 Comment out more parts of Box.Filler.
5659 2004-05-11 Kim Ho <kho@redhat.com>
5661 * javax/swing/Box.java:
5662 Remove reference to AccessibleAWTComponent so
5665 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
5667 * gnu/java/awt/peer/gtk/GtkListPeer.java,
5668 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
5669 implementation of list peer to use GtkTreeView instead of
5670 deprecated GtkCList.
5672 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
5674 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5675 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
5676 (handleEvent): Remove keyChar argument to
5677 gtkWidgetDispatchKeyEvent calls.
5678 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
5680 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5681 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
5682 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5685 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
5687 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5688 (gtkWidgetRequestFocus): Mark protected.
5689 (GtkComponentPeer): Only set the peer's bounds if its component
5691 * java/awt/Component.java (static): Set the default keyboard
5693 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
5694 requestFocusInWindow(temporary)): Don't request focus if the
5695 component is not showing. Get tree lock before traversing
5696 component hierarchy.
5697 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
5698 Only set the global focus owner if it is not a Window.
5699 (processKeyEvent): Consume keystrokes associated with the focus
5700 traversal keystroke.
5701 (focusPreviousComponent, focusNextComponent, upFocusCycle,
5702 downFocusCycle): Call requestFocusInWindow instead of
5704 * java/awt/EventDispatchThread.java (run): Move setting of
5705 default keyboard focus manager to Component.java.
5706 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5707 (awt_keycode_to_keysym): New function.
5708 (gtkWidgetDispatchKeyEvent): Finish implementation.
5709 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5710 (pre_event_handler): Add FIXME comment.
5712 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
5713 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5714 (gtkWidgetRequestFocus): New method.
5715 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
5716 disable Tab and Shift-Tab keystrokes.
5717 (addNotify, appendText, insertText, replaceText): Simplify peer
5719 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
5720 (connectSignals): Remove connections to "commit" signals.
5721 Remove C++-style comments.
5723 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
5724 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5725 (handleEvent): Activate GTK button when the space bar key is
5727 (gtkActivate): New method.
5729 2004-05-06 David Jee <djee@redhat.com>
5731 * java/awt/image/CropImageFilter.java
5732 (setPixels): Implement for byte array pixels.
5733 * java/awt/image/ReplicateScaleFilter.java
5734 (setPixels): Implement for byte array pixels.
5735 (replicatePixels): Overload for byte array pixels.
5737 2004-05-06 Kim Ho <kho@redhat.com>
5739 * javax/swing/Box.java:
5740 (getAccessibleContext): Return an instance of the
5743 2004-05-05 David Jee <djee@redhat.com>
5745 * gnu/java/awt/peer/gtk/GdkGraphics.java
5746 (drawImage): When component is null, use SystemColor.window as
5747 the default bgcolor.
5748 * gnu/java/awt/peer/gtk/GtkImage.java
5749 (setPixels): We can avoid iterating through the pixel rows only
5751 * java/awt/Image.java
5752 (getScaledInstance): Partially implement.
5753 * java/awt/image/CropImageFilter.java
5754 (setProperties): Fix "filter" property.
5755 (setPixels): Implement.
5756 * java/awt/image/ReplicateScaleFilter.java
5757 (setDimensions): Use scaled dimensions.
5758 (setPixels): Implement.
5759 (replicatePixels): New method.
5761 2004-05-05 David Jee <djee@redhat.com>
5763 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5764 (convertPixels): If either pixels or model is null, return null.
5765 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
5766 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
5767 is null, do nothing and return.
5769 2004-05-03 Kim Ho <kho@redhat.com>
5771 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
5772 (getGraphics): Like GtkFramePeer, the Graphics
5773 object needs to be translate to account for
5775 (postMouseEvent): New method. Account for
5777 (postExposeEvent): ditto.
5778 * javax/swing/Box.java: Stubbed.
5779 * javax/swing/JDialog.java: Ran through jalopy
5781 (JDialog): Call SwingUtilities' getOwnerFrame
5783 (setLayout): Check isRootPaneCheckingEnabled
5784 * javax/swing/JOptionPane.java: Re-implemented.
5785 * javax/swing/SwingUtilities.java:
5786 (getOwnerFrame): Static method to grab a default
5787 owner frame for Dialogs that don't specify owners.
5788 * javax/swing/event/SwingPropertyChangeSupport.java:
5789 (firePropertyChange): Fix early exit condition.
5790 * javax/swing/plaf/basic/BasicLabelUI.java:
5791 (paint): Avoid painting text if it is null
5793 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
5796 2004-05-03 Olga Rodimina <rodimina@redhat.com>
5798 * Makefile.am: Added new file.
5799 * Makefile.in: Regenerate.
5800 * javax/swing/JPopupMenu.java:
5801 Started implementation.
5802 * javax/swing/JWindow.java
5803 (JWindow): call super() if parent for window
5805 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
5806 New File. UI Delegate for JPopupMenu.
5808 2004-04-30 Olga Rodimina <rodimina@redhat.com>
5810 * javax/swing/JApplet.java: Indicated that JApplet
5811 implements RootPaneContainer and made method of this
5813 * javax/swing/JFrame.java: Ditto.
5814 * javax/swing/JWindow.java: Ditto.
5816 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
5818 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5819 (nativeSetBounds): Call gdk_window_move in addition to
5822 * java/applet/Applet.java (preferredSize): Call parent's
5823 preferredSize if the applet stub is null.
5824 (minimumSize): Likewise for parent's minimumSize.
5826 2004-04-27 Olga Rodimina <rodimina@redhat.com>
5828 * javax/swing/JMenuItem.java
5829 (createActionPropertyChangeListener): Implemented.
5830 (processMouseEvent): Ditto.
5831 (fireMenuDragMouseEntered): Ditto.
5832 (fireMenuDragMouseExited): Ditto.
5833 (fireMenuDragMouseDragged): Ditto.
5834 (fireMenuDragMouseReleased): Ditto.
5835 (menuSelectionChanged): Ditto.
5836 (getSubElements): Ditto.
5837 (getComponent): Ditto.
5838 (addMenuDragMouseListener): Ditto.
5839 (removeMenuDragMouseListener):Ditto.
5840 (addMenuKeyListener): Ditto.
5841 (removeMenuKeyListener): Ditto.
5842 * javax/swing/plaf/basic/BasicMenuItemUI.java
5843 (doClick): Imlemented.
5844 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
5845 Don't handle mouse events here. Pass them to
5846 MenuSelectionManager.
5848 2004-04-26 Olga Rodimina <rodimina@redhat.com>
5849 Used correct version of jalopy configuration
5850 file to fix style in the files below.
5852 2004-04-26 Olga Rodimina <rodimina@redhat.com>
5854 * javax/swing/JCheckBoxMenuItem.java:
5855 Fixed style and removed unnecessary comments.
5856 * javax/swing/JMenuItem.java: Ditto.
5857 * javax/swing/JRadioButtonMenuItem.java: Ditto.
5858 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
5859 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
5860 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
5862 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
5864 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
5867 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
5869 * java/awt/ContainerOrderFocusTraversalPolicy.java
5870 (getComponentAfter): Start from current component and work up
5871 the component hierarchy until an acceptable component is found.
5872 Synchronize on tree lock.
5873 (getComponentBefore): Likewise.
5875 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
5877 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
5878 focus-related debugging messages.
5879 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
5880 * java/awt/EventDispatchThread.java: Likewise.
5881 * java/awt/KeyboardFocusManager.java: Likewise.
5882 * java/awt/Window.java: Likewise.
5883 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5884 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5886 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
5887 new C++-style comments to C-style comments.
5888 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5890 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
5891 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5892 (handleEvent): Dispatch key press and key release events to
5894 (requestFocus): Post a FOCUS_GAINED event to the event queue.
5895 (gtkWidgetRequestFocus): New method.
5896 (gtkWidgetDispatchKeyEvent): Likewise.
5897 * java/awt/Component.java (requestFocus, requestFocus(boolean),
5898 requestFocusInWindow, requestFocusInWindow(boolean),
5899 getFocusCycleRootAncestor, nextFocus, transferFocus,
5900 transferFocusBackward, transferFocusUpCycle, hasFocus,
5901 isFocusOwner): Implement and document focus-handling methods.
5902 (setFocusTraversalKeys): Inherit focus traversal keys when
5903 keystrokes argument is null. Fix focus-handling documentation
5905 * java/awt/Container.java (setFocusTraversalKeys,
5906 getFocusTraversalKeys, areFocusTraversalKeysSet,
5907 isFocusCycleRoot, setFocusTraversalPolicy,
5908 getFocusTraversalPolicy, isFocusTraversalPolicySet,
5909 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
5910 Implement and document focus-handling methods.
5911 (transferFocusBackward): Remove method.
5912 (readObject, writeObject): Implement and document serialization
5914 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
5916 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
5918 * java/awt/DefaultKeyboardFocusManager.java: Implement and
5920 * java/awt/EventDispatchThread.java (run): Set default keyboard
5921 focus manager. Attempt to dispatch each event to the keyboard
5922 focus manager before normal dispatch.
5923 * java/awt/KeyboardFocusManager.java: Implement and partially
5925 * java/awt/Window.java (Window): Set focusCycleRoot to true.
5926 (show): Focus initial component when window is shown for the
5928 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5929 (pre_event_handler): Replace complex key press and key release
5930 logic with simple callbacks into GtkComponentPeer.
5931 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
5933 2004-04-21 Olga Rodimina <rodimina@redhat.com>
5935 * javax/swing/MenuSelectionManager.java
5936 (componentForPoint): Added new method.
5937 (defaultManager): New Method. Implemented.
5938 (getSelectedPath): Ditto.
5939 (isComponentPartOfCurrentMenu): Ditto.
5940 (processKeyEvent): Added new method.
5941 (processMouseEvent): New Method. Implemented.
5942 (setSelectedPath): Ditto.
5945 2004-04-19 Kim Ho <kho@redhat.com>
5947 * java/awt/Container.java:
5948 (remove): Set the component's parent to null.
5949 (getComponentAt): Implement.
5950 * javax/swing/JComponent.java:
5951 (JComponent): Initialize defaultLocale
5952 (getDefaultLocale): Implement.
5953 (setDefaultLocale): ditto.
5954 * javax/swing/JSlider.java:
5955 (JSlider): Fix calculation of value.
5956 * javax/swing/JSplitPane.java: Implement.
5957 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5958 Change SplitPane's default divider size.
5959 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5960 (paint): Remove unused code.
5961 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
5962 Added comments and ran through jalopy.
5963 (setBasicSplitPaneUI): Get reference to hidden divider
5964 and set up one touch buttons if necessary.
5965 (setBorder): Fire propertyChangeEvent only if
5966 borders are different.
5967 (getPreferredSize): Defer to layout manager.
5968 (propertyChange): Implement.
5969 (oneTouchExpandableChanged): ditto.
5970 (createLeftOneTouchButton): Use BasicArrowButton.
5971 (createRightOneTouchButton): ditto.
5972 (moveDividerTo): New method. Moves the divider
5973 to a set location based on the last divider location.
5974 (BasicSplitPaneDivider::MouseHandler): Implement.
5975 (BasicSplitPaneDivider::OneTouchButton): Removed.
5976 (BasicSplitPaneDivider::DragController): Implement.
5977 (BasicSplitPaneDivider::VerticalDragController):
5979 (BasicSplitPaneDivider::DividerLayout): ditto.
5980 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
5981 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5982 (calculateLayoutInfo): Don't show component if it's
5984 (paintTab): Fix title paint logic.
5986 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
5989 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5990 (setStartRule,setEndRule): Don't take abs of day number.
5991 (getOffset): Clarify docs. Add argument checks.
5992 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5993 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5995 * testsuite/libjava.mauve/xfails
5996 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
5998 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6000 Layout interfaces during preparation, not initialization.
6001 * java/lang/natClass.cc (initializeClass): Move
6002 _Jv_LayoutInterfaceMethods call...
6003 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6005 2004-05-19 Anthony Green <green@localhost.localdomain>
6007 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6009 * Makefile.in: Rebuilt.
6010 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6011 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6012 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6013 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6014 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6015 gnu/javax/rmi/CORBA/DelegateFactory.java,
6016 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6017 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6018 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6019 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6020 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6021 gnu/javax/rmi/PortableServer.java: Remove files.
6023 2004-05-19 Anthony Green <green@redhat.com>
6025 * Makefile.am: Define JAVA_EXT_DIRS.
6026 * Makefile.in: Rebuilt.
6027 * java/lang/natRuntime.cc (insertSystemProperties): Set
6028 java.ext.dirs property.
6030 2004-05-16 Mark Wielaard <mark@klomp.org>
6032 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6034 2004-05-15 Mark Wielaard <mark@klomp.org>
6036 * doc/cni.sgml: Removed, merged into gcj.texi.
6038 2004-05-15 Mark Wielaard <mark@klomp.org>
6040 * Makefile.am (ordinary_java_source_files): Add new javax.print
6042 * Makefile.in: Regenerated.
6044 2004-05-15 Michael Koch <konqueror@gmx.de>
6046 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6047 javax/print/attribute/standard/DateTimeAtCreation.java,
6048 javax/print/attribute/standard/DateTimeAtProcessing.java,
6049 javax/print/attribute/standard/DocumentName.java,
6050 javax/print/attribute/standard/JobHoldUntil.java,
6051 javax/print/attribute/standard/JobImpressionsCompleted.java,
6052 javax/print/attribute/standard/JobMessageFromOperator.java,
6053 javax/print/attribute/standard/JobName.java,
6054 javax/print/attribute/standard/JobOriginatingUserName.java,
6055 javax/print/attribute/standard/JobPriority.java,
6056 javax/print/attribute/standard/JobPrioritySupported.java,
6057 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6058 javax/print/attribute/standard/OutputDeviceAssigned.java,
6059 javax/print/attribute/standard/PrinterInfo.java,
6060 javax/print/attribute/standard/PrinterLocation.java,
6061 javax/print/attribute/standard/PrinterMakeAndModel.java,
6062 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6063 javax/print/attribute/standard/PrinterName.java,
6064 javax/print/attribute/standard/QueuedJobCount.java,
6065 javax/print/attribute/standard/RequestingUserName.java:
6066 Fixed javadocs all over.
6068 2004-05-15 Michael Koch <konqueror@gmx.de>
6070 * javax/print/DocFlavor.java,
6071 javax/print/attribute/standard/ColorSupported.java,
6072 javax/print/attribute/standard/Compression.java,
6073 javax/print/attribute/standard/CopiesSupported.java,
6074 javax/print/attribute/standard/Fidelity.java,
6075 javax/print/attribute/standard/Finishings.java,
6076 javax/print/attribute/standard/JobImpressionsSupported.java,
6077 javax/print/attribute/standard/JobKOctetsSupported.java,
6078 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6079 javax/print/attribute/standard/JobSheets.java,
6080 javax/print/attribute/standard/JobState.java,
6081 javax/print/attribute/standard/JobStateReason.java,
6082 javax/print/attribute/standard/JobStateReasons.java,
6083 javax/print/attribute/standard/Media.java,
6084 javax/print/attribute/standard/MediaSizeName.java,
6085 javax/print/attribute/standard/MultipleDocumentHandling.java,
6086 javax/print/attribute/standard/NumberUpSupported.java,
6087 javax/print/attribute/standard/OrientationRequested.java,
6088 javax/print/attribute/standard/PDLOverrideSupported.java,
6089 javax/print/attribute/standard/PageRanges.java,
6090 javax/print/attribute/standard/PresentationDirection.java,
6091 javax/print/attribute/standard/PrintQuality.java,
6092 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6093 javax/print/attribute/standard/PrinterMoreInfo.java,
6094 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6095 javax/print/attribute/standard/PrinterResolution.java,
6096 javax/print/attribute/standard/PrinterState.java,
6097 javax/print/attribute/standard/PrinterStateReason.java,
6098 javax/print/attribute/standard/PrinterStateReasons.java,
6099 javax/print/attribute/standard/PrinterURI.java,
6100 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6101 javax/print/attribute/standard/Severity.java,
6102 javax/print/attribute/standard/SheetCollate.java,
6103 javax/print/attribute/standard/Sides.java:
6104 Added serialVersionUID and removed final keyword where it doenst
6107 2004-05-15 Michael Koch <konqueror@gmx.de>
6109 * javax/print/PrintServiceLookup.java: New file.
6111 2004-05-15 Michael Koch <konqueror@gmx.de>
6113 * javax/print/DocFlavor.java:
6114 Implemented all flavor classes.
6116 2004-05-15 Michael Koch <konqueror@gmx.de>
6118 * javax/print/attribute/standard/ColorSupported.java,
6119 javax/print/attribute/standard/Compression.java,
6120 javax/print/attribute/standard/CopiesSupported.java,
6121 javax/print/attribute/standard/Fidelity.java,
6122 javax/print/attribute/standard/Finishings.java,
6123 javax/print/attribute/standard/JobImpressionsSupported.java,
6124 javax/print/attribute/standard/JobKOctetsSupported.java,
6125 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6126 javax/print/attribute/standard/JobSheets.java,
6127 javax/print/attribute/standard/JobState.java,
6128 javax/print/attribute/standard/JobStateReason.java,
6129 javax/print/attribute/standard/JobStateReasons.java,
6130 javax/print/attribute/standard/Media.java,
6131 javax/print/attribute/standard/MediaSizeName.java,
6132 javax/print/attribute/standard/MultipleDocumentHandling.java,
6133 javax/print/attribute/standard/NumberUpSupported.java,
6134 javax/print/attribute/standard/OrientationRequested.java,
6135 javax/print/attribute/standard/PDLOverrideSupported.java,
6136 javax/print/attribute/standard/PageRanges.java,
6137 javax/print/attribute/standard/PresentationDirection.java,
6138 javax/print/attribute/standard/PrintQuality.java,
6139 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6140 javax/print/attribute/standard/PrinterMoreInfo.java,
6141 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6142 javax/print/attribute/standard/PrinterResolution.java,
6143 javax/print/attribute/standard/PrinterState.java,
6144 javax/print/attribute/standard/PrinterStateReason.java,
6145 javax/print/attribute/standard/PrinterStateReasons.java,
6146 javax/print/attribute/standard/PrinterURI.java,
6147 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6148 javax/print/attribute/standard/Severity.java,
6149 javax/print/attribute/standard/SheetCollate.java,
6150 javax/print/attribute/standard/Sides.java: New files.
6152 2004-05-15 Michael Koch <konqueror@gmx.de>
6154 * javax/print/Doc.java
6155 (getPrintData): Throws IOException.
6156 (getReaderForText): Likewise.
6157 (getStreamForBytes): Likewise.
6158 * javax/print/DocFlavor.java:
6159 Fixed filename in copyright.
6160 (serialVersionUID): New field.
6161 * javax/print/ServiceUIFactory.java:
6162 Made all constants final.
6163 * javax/print/AttributeException.java
6164 javax/print/MultiDoc.java
6165 javax/print/MultiDocPrintJob.java
6166 javax/print/MultiDocPrintService.java
6167 javax/print/StreamPrintService.java
6168 javax/print/URIException.java: New files.
6169 * javax/print/Makefile.am
6170 (EXTRA_DIST): Added all new files.
6172 2004-05-15 Michael Koch <konqueror@gmx.de>
6174 * javax/print/attribute/standard/Copies.java,
6175 javax/print/attribute/standard/DateTimeAtCompleted.java,
6176 javax/print/attribute/standard/DateTimeAtCreation.java,
6177 javax/print/attribute/standard/DateTimeAtProcessing.java,
6178 javax/print/attribute/standard/DocumentName.java,
6179 javax/print/attribute/standard/JobHoldUntil.java,
6180 javax/print/attribute/standard/JobImpressions.java,
6181 javax/print/attribute/standard/JobImpressionsCompleted.java,
6182 javax/print/attribute/standard/JobKOctets.java,
6183 javax/print/attribute/standard/JobKOctetsProcessed.java,
6184 javax/print/attribute/standard/JobMediaSheets.java,
6185 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6186 javax/print/attribute/standard/JobMessageFromOperator.java,
6187 javax/print/attribute/standard/JobName.java,
6188 javax/print/attribute/standard/JobOriginatingUserName.java,
6189 javax/print/attribute/standard/JobPriority.java,
6190 javax/print/attribute/standard/JobPrioritySupported.java,
6191 javax/print/attribute/standard/NumberOfDocuments.java,
6192 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6193 javax/print/attribute/standard/NumberUp.java,
6194 javax/print/attribute/standard/OutputDeviceAssigned.java,
6195 javax/print/attribute/standard/PagesPerMinute.java,
6196 javax/print/attribute/standard/PagesPerMinuteColor.java:
6197 Fixed @return tag all over.
6199 2004-05-15 Michael Koch <konqueror@gmx.de>
6201 * javax/print/attribute/AttributeSetUtilities.java
6202 (verifyCategoryForValue): Fixed typo in javadoc.
6203 * javax/print/attribute/HashAttributeSet.java
6204 (containsKey): Fixed @return tag.
6205 (comtainsValue): Likewise.
6207 * javax/print/attribute/IntegerSyntax.java
6209 * javax/print/attribute/ResolutionSyntax.java
6211 (getCrossFeedResolution): Removed unused code.
6212 (getFeedResolution): Likewise.
6213 * javax/print/attribute/SetOfIntegerSyntax.java
6214 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6215 (equals): Fixed @return tag.
6216 * javax/print/attribute/TextSyntax.java
6217 (TextSyntax): Take locale into account.
6218 (hashCode): Better implementation.
6220 2004-05-15 Michael Koch <konqueror@gmx.de>
6222 * javax/print/CancelablePrintJob.java,
6223 javax/print/Doc.java,
6224 javax/print/DocFlavor.java,
6225 javax/print/DocPrintJob.java,
6226 javax/print/FlavorException.java,
6227 javax/print/PrintException.java,
6228 javax/print/PrintService.java,
6229 javax/print/ServiceUIFactory.java: New files.
6231 2004-05-15 Mark Wielaard <mark@klomp.org>
6233 * gnu/regexp/CharIndexedReader.java: Removed.
6234 * gnu/regexp/REFilterReader.java: Likewise.
6235 * gnu/regexp/RETokenLookAhead.java: Likewise.
6236 * Makefile.am (ordinary_java_source_files): Remove above classes.
6237 * Makefile.in: Regenerated.
6239 2004-05-14 Tom Tromey <tromey@redhat.com>
6241 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6242 not `XGraphicsConfiguration.XOffScreenImage'.
6244 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6246 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6248 2004-05-14 Steven Augart <augart@watson.ibm.com>
6250 * include/jni.h (_Jv_func): Removed.
6251 (struct JNINativeInterface): Use `void *' for reserved slots.
6252 (struct JNIInvokeInterface): Likewise.
6254 2004-05-11 Michael Koch <konqueror@gmx.de>
6256 * gnu/java/net/natPlainSocketImplPosix.cc
6257 (read): Fixed typo in expression.
6259 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6261 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6262 ld_library_additions. Adjust all calls to libjava_invoke to match
6265 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6266 path to cxxflagslist.
6267 Pass path of libstdc++ to libjava_invoke.
6269 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6270 libjava_invoke arguments.
6272 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6274 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6277 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6279 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6280 main binary against the JNI shared library.
6282 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6284 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6285 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6286 (SimpleTimeZone): Tweak docs. Add new variation.
6287 (setStartRule,setEndRule): Add new variations. Use
6288 startTimeMode and endTimeMode.
6290 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6292 * java/util/Calendar.java (getActualMinimum,
6293 getActualMaximum): Remove abstract. Implement.
6295 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6297 Run the jni tests using the interpreter.
6298 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6299 options_cxx to shared lib compile command.
6300 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6301 they are used to link the shared lib, not the main binary.
6302 Use libjava_invoke to run gij.
6304 2004-05-06 Michael Koch <konqueror@gmx.de>
6306 * java/util/logging/Level.java
6307 (parse): Use == instead of String.equals().
6309 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6311 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6312 verify_field_signature and verify_method_signature, not
6313 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6314 (_Jv_ClassReader::handleField): Likewise.
6315 (_Jv_ClassReader::handleMethod): Likewise.
6317 2004-05-06 Michael Koch <konqueror@gmx.de>
6319 * javax/swing/table/TableColumn.java:
6322 2004-05-06 Michael Koch <konqueror@gmx.de>
6324 * javax/imageio/spi/ImageReaderWriterSpi.java
6325 (ImageReaderWriterSpi): Made it public.
6326 * javax/imageio/stream/ImageInputStream.java:
6329 2004-05-06 Michael Koch <konqueror@gmx.de>
6331 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6334 2004-05-06 Michael Koch <konqueror@gmx.de>
6336 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6337 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6339 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6340 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6341 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6342 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6343 their own source file.
6344 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6345 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6346 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6347 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6348 (create): Define variable on top of function.
6349 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6350 (menu_pos): Prototyped.
6351 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6352 (setTitle): Removed.
6353 * jni/gtk-peer/gthread-jni.c
6354 (gdk_threads_wake): Removed.
6355 * Makefile.am (gtk_c_source_files): Added new files
6356 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6357 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6358 * Makefile.in: Regenerated.
6360 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6362 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6365 2004-05-05 Mark Wielaard <mark@klomp.org>
6367 * javax/swing/AbstractButton.java: Replace special HTML entities with
6369 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6370 * javax/swing/DefaultButtonModel.java: Likewise.
6371 * javax/swing/DefaultListModel.java: Likewise.
6372 * javax/swing/JList.java: Likewise.
6373 * javax/swing/JSlider.java: Likewise.
6374 * javax/swing/ListModel.java: Likewise.
6375 * javax/swing/Popup.java: Likewise.
6376 * javax/swing/SwingUtilities.java: Likewise.
6378 2004-05-05 Michael Koch <konqueror@gmx.de>
6380 * javax/swing/AbstractButton.java,
6381 javax/swing/ActionMap.java,
6382 javax/swing/DefaultButtonModel.java,
6383 javax/swing/DefaultListModel.java,
6384 javax/swing/ImageIcon.java,
6385 javax/swing/JComboBox.java,
6386 javax/swing/JComponent.java,
6387 javax/swing/JFrame.java,
6388 javax/swing/JInternalFrame.java,
6389 javax/swing/JMenuBar.java,
6390 javax/swing/JMenuItem.java,
6391 javax/swing/JOptionPane.java,
6392 javax/swing/JProgressBar.java,
6393 javax/swing/JRootPane.java,
6394 javax/swing/JScrollBar.java,
6395 javax/swing/JScrollPane.java,
6396 javax/swing/JSeparator.java,
6397 javax/swing/JSlider.java,
6398 javax/swing/JTabbedPane.java,
6399 javax/swing/JTable.java,
6400 javax/swing/JTextField.java,
6401 javax/swing/JToolBar.java,
6402 javax/swing/JToolTip.java,
6403 javax/swing/JTree.java,
6404 javax/swing/JViewport.java,
6405 javax/swing/JWindow.java,
6406 javax/swing/KeyStroke.java,
6407 javax/swing/LookAndFeel.java,
6408 javax/swing/SwingUtilities.java,
6409 javax/swing/Timer.java,
6410 javax/swing/ToolTipManager.java,
6411 javax/swing/UIDefaults.java,
6412 javax/swing/border/TitledBorder.java,
6413 javax/swing/filechooser/FileSystemView.java,
6414 javax/swing/plaf/basic/BasicButtonListener.java,
6415 javax/swing/plaf/basic/BasicButtonUI.java,
6416 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
6417 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6418 javax/swing/plaf/basic/BasicLabelUI.java,
6419 javax/swing/plaf/basic/BasicMenuItemUI.java,
6420 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6421 javax/swing/plaf/basic/BasicRootPaneUI.java,
6422 javax/swing/plaf/basic/BasicScrollBarUI.java,
6423 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6424 javax/swing/plaf/basic/BasicSliderUI.java,
6425 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6426 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6427 javax/swing/table/JTableHeader.java,
6428 javax/swing/text/AbstractDocument.java,
6429 javax/swing/text/DefaultCaret.java,
6430 javax/swing/text/StyledEditorKit.java,
6431 javax/swing/tree/DefaultTreeCellEditor.java:
6434 2004-05-05 Michael Koch <konqueror@gmx.de>
6436 * java/util/prefs/AbstractPreferences.java
6437 (AbstractPreferences): Added parenthesis for clarity.
6438 Closes classpath bug #7940.
6440 2004-05-05 Tom Tromey <tromey@redhat.com>
6442 * javax/naming/CompoundName.java (endsWith): Look at correct
6443 element of source name.
6445 2004-05-05 Mark Wielaard <mark@klomp.org>
6447 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6448 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6450 2004-05-05 Tom Tromey <tromey@redhat.com>
6452 * java/io/BufferedReader.java (skip): Removed unused
6455 2004-05-05 Michael Koch <konqueror@gmx.de>
6457 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6459 2004-05-05 Dalibor Topic <robilad@kaffe.org>
6461 * java/text/AttributedString.java,
6462 java/text/AttributedStringIterator.java,
6463 java/text/Collator.java,
6464 java/text/DecimalFormatSymbols.java,
6465 java/text/NumberFormat.java,
6466 java/text/RuleBasedCollator.java:
6469 2004-05-05 Tom Tromey <tromey@redhat.com>
6471 * java/text/Format.java: Cleaned up imports.
6472 * java/text/DecimalFormat.java: Cleaned up imports.
6473 * java/security/SecureRandom.java: Cleaned up imports.
6474 (SecureRandom): Removed unused variable.
6475 * java/security/UnresolvedPermission.java: Cleaned up imports.
6476 * java/util/Date.java (parse): Removed unused variable.
6477 * java/util/ResourceBundle.java: Cleaned up imports.
6478 (getBundle): Removed unused variable.
6479 (tryBundle): Likewise.
6480 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6482 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6484 * java/text/SimpleDateFormat.java:
6485 (formatWithAttribute): New method. It implements
6486 the formatting process with attributes.
6487 (format): Use formatWithAttribute.
6488 (formatToCharacterIterator): New method. Use
6489 formatWithAttribute.
6491 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6493 * java/text/MessageFormat.java:
6494 (class Field): New class.
6495 (formatToCharacterIterator): New method.
6496 (format): Use formatInternal now.
6497 (formatInternal): New method. String formatter should
6498 be done here (with attributes). Attributes merging supported.
6499 (parse): More documentation.
6500 (getFormatsByArgumentIndex): New method.
6501 (setFormatByArgumentIndex): New method.
6502 (setFormatsByArgumentIndex): New method.
6504 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6506 * java/text/DecimalFormat.java
6507 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
6508 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
6509 (parse): Fixed handling of exponentiation notation and grouping.
6511 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6513 * java/text/DecimalFormat.java
6514 (scanFix): Build attribute array. Fixed error reporting.
6515 (applyPatternWithSymbols): Store attributes for the prefix and
6517 (formatInternal): New method. Changed the way the string is
6518 computed. Implemented attributes. Cleant up rounding in
6519 exponential notation.
6520 (format): Use formatInternal.
6521 (formatToCharacterIterator): New method.
6522 (exponentRound, negativePrefixRanges, positivePrefixRanges,
6523 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
6524 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
6527 2004-05-04 Dalibor Topic <robilad@kaffe.org>
6529 * java/security/interfaces/DSAKeyPairGenerator.java,
6530 java/security/interfaces/DSAPrivateKey.java,
6531 java/security/interfaces/DSAPublicKey.java,
6532 java/security/interfaces/RSAPrivateKey.java,
6533 java/security/interfaces/RSAPublicKey.java:
6536 2004-05-04 Michael Koch <konqueror@gmx.de>
6538 * java/nio/ByteBuffer.java,
6539 java/nio/CharBuffer.java,
6540 java/nio/DoubleBuffer.java,
6541 java/nio/FloatBuffer.java,
6542 java/nio/IntBuffer.java,
6543 java/nio/LongBuffer.java,
6544 java/nio/ShortBuffer.java:
6545 (compareTo): Fixed bogus implementation in all buffer classes.
6547 2004-05-04 Ingo Proetel <proetel@aicas.com>
6549 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
6550 32 bit pixels not 8 bit pixels.
6551 (isCompatibleRaster): Added javadoc comment.
6553 2004-05-04 Ingo Proetel <proetel@aicas.com>
6555 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
6558 2004-05-04 Ingo Proetel <proetel@aicas.com>
6560 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
6561 (getColorModel): Return the actual color model.
6562 (getRaster): Implemented.
6563 (ColorRaster): New inner class.
6564 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
6566 * java/awt/Color.java (<init>): Make exception more verbose.
6567 (createContext): Use ColorModel when creating a PaintContext.
6569 2004-05-04 Michael Koch <konqueror@gmx.de>
6571 * gnu/java/text/CharacterBreakIterator.java
6572 (previous): Removed unused variable.
6574 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
6576 * gnu/java/text/FormatBuffer.java,
6577 gnu/java/text/AttributedFormatBuffer.java,
6578 gnu/java/text/StringFormatBuffer.java: New classes to implement
6579 attributed iterators in java.text.
6580 * gnu/java/text/FormatCharacterIterator.java: Moved
6581 from java/text as it is an internal class.
6582 * java/text/FormatCharacterIterator.java: Removed.
6583 * java/text/Format.java:
6584 Import gnu.java.text.FormatCharacterIterator.
6585 * Makefile.am (java_source_files): Added new files.
6586 * Makefile.in: Regenerated.
6589 2004-05-04 Mark Wielaard <mark@klomp.org>
6591 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
6593 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
6595 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
6596 * Makefile.in: Rebuilt.
6598 2004-05-03 Mark Wielaard <mark@klomp.org>
6600 * gnu/java/security/der/DERReader.java: Call static methods staticly.
6601 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
6603 (set(String, String, int, String, String, String, String, String)):
6604 Assign this.file to path or path + "?" + query.
6605 * java/util/Arrays.java: Call static methods staticly.
6606 * java/util/zip/ZipEntry.java: Likewise.
6607 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
6608 dir to this.direction.
6609 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
6610 Assign static field only once.
6611 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
6613 2004-05-03 Mark Wielaard <mark@klomp.org>
6615 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
6616 unused variables hScrollbarHeight and vScrollbarWidth.
6617 (preferredSize): Likewise.
6618 * gnu/java/security/provider/DSAParameters.java (engineToString):
6619 Removed unused call to System.getProperty("line.seperator");
6620 * java/security/Security.java (loadProviders): Return result.
6622 2004-05-03 Tom Tromey <tromey@redhat.com>
6624 * java/net/URLStreamHandler.java (toExternalForm): Removed
6627 * java/math/BigDecimal.java (divide): Removed unused variable.
6628 * java/lang/Throwable.java: Cleaned up imports.
6629 * java/lang/ClassLoader.java: Cleaned up imports.
6630 * java/io/FilePermission.java (implies): Removed unused
6632 * java/awt/TextComponent.java: Removed unused import.
6633 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
6634 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
6635 * gnu/java/text/WordBreakIterator.java: Removed unused import.
6636 * gnu/java/text/SentenceBreakIterator.java: Removed unused
6638 * gnu/java/text/LineBreakIterator.java: Removed unused import.
6639 * gnu/java/text/CharacterBreakIterator.java: Removed
6641 * gnu/java/security/provider/DSAKeyPairGenerator.java:
6643 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
6644 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
6646 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
6647 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
6648 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
6649 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
6650 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
6651 (lookupProviders): Removed unused variable.
6652 (loadNextServiceProvider): Likewise.
6653 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
6655 2004-05-03 Michael Koch <konqueror@gmx.de>
6657 Fixes PR libgcj/14695:
6658 * java/net/NetworkInterface.java
6659 (getByName): Return null when no interface was found.
6661 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
6662 Tom Tromey <tromey@redhat.com>
6664 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
6665 additional option "-Wmissing-prototypes" for compiling C sources.
6666 Print actual filename for pass/fail rather than $name.c.
6667 * testsuite/libjava.jni/PR15133.java: New testcase file.
6668 * testsuite/libjava.jni/PR15133.c: Likewise.
6669 * testsuite/libjava.jni/PR15133.out: Likewise.
6671 2004-04-30 Roger Sayle <roger@eyesopen.com>
6673 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
6676 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
6678 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
6679 limit the maximum heap size to avoid unnecessary thrashing.
6681 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
6683 * java/text/CollationElementIterator.java (reset): Reset
6684 lookahead variables.
6686 2004-04-23 Mark Wielaard <mark@klomp.org>
6688 * jni/classpath/jcl.c: Changed C++ comments into C comments.
6690 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6692 * java/sql/DriverManager.java:
6695 2004-04-23 Michael Koch <konqueror@gmx.de>
6698 (hashcode): Don't initialize with default value explicitely.
6699 (getContent): Removed redundant "final" keyword.
6700 (openStream): Likewise.
6701 (getURLStreamHandler): Fixed coding style.
6702 * java/net/URLConnection.java
6703 (defaultAllowUserInteraction): Don't initialize with default value
6705 (connected): Likewise.
6706 (doOutput): Likewise.
6707 (ifModifiedSince): Likewise.
6708 (dateformats_initialized): Likewise.
6709 (setURLStreamHander): Use StreamTokenizer where it belongs to.
6711 2004-04-23 Michael Koch <konqueror@gmx.de>
6713 * gnu/java/nio/channels/FileChannelImpl.java
6714 (SET, CUR): Unused, removed.
6715 (read): Implement here directly.
6716 (implRead): Removed.
6717 (write): Implement here directly.
6718 (implWrite): Removed.
6720 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6722 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
6723 javax/rmi/CORBA/Stub.java,
6724 javax/rmi/CORBA/Util.java,
6725 javax/rmi/CORBA/ValueHandler.java,
6726 javax/rmi/CORBA/ValueHandler.java,
6727 javax/rmi/PortableRemoteObject.java:
6730 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6732 * java/util/jar/JarFile.java,
6733 java/util/jar/JarInputStream.java,
6734 java/util/jar/JarOutputStream.java,
6735 java/util/jar/Manifest.java:
6738 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6740 * java/util/ArrayList.java,
6741 java/util/Calendar.java,
6742 java/util/Currency.java,
6743 java/util/HashMap.java,
6744 java/util/HashSet.java,
6745 java/util/Hashtable.java,
6746 java/util/LinkedList.java,
6747 java/util/Properties.java,
6748 java/util/PropertyPermission.java,
6749 java/util/TimeZone.java,
6750 java/util/TreeMap.java,
6751 java/util/TreeSet.java,
6752 java/util/Vector.java,
6753 java/util/WeakHashMap.java:
6756 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6758 * java/util/logging/FileHandler.java,
6759 java/util/logging/Formatter.java,
6760 java/util/logging/Handler.java,
6761 java/util/logging/Logger.java,
6762 java/util/logging/SimpleFormatter.java,
6763 java/util/logging/XMLFormatter.java:
6766 2004-04-22 Mark Wielaard <mark@klomp.org>
6768 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
6769 -Wno-long-long flags variable.
6770 (gtk_c_files): Use PEDANTIC_CFLAGS.
6771 * Makefile.in: Regenerated.
6773 2004-04-22 Mark Wielaard <mark@klomp.org>
6775 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6776 Changed C++ comments into C comments.
6777 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
6780 2004-04-22 Michael Koch <konqueror@gmx.de>
6782 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6783 Merged copyright year with GNU classpath.
6785 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6787 * javax/security/auth/x500/X500Principal.java:
6790 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6792 * javax/swing/JSlider.java:
6793 Fixed HTML tags in comments.
6795 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6797 * javax/accessibility/AccessibleText.java:
6800 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
6802 * java/net/URLStreamHandler.java
6803 (parseURL): Convert the file path to using '/' instead of native
6806 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
6809 (userInfo): New field.
6810 (URL): Set authority to the right value.
6811 (setURL): Fixed authority and file initialization.
6812 * java/net/URLStreamHandler.java
6813 (parseURL): Take care of the query tag. Build authority.
6814 (toExternalForm): Fixed URL building using authority.
6816 2004-04-22 Michael Koch <konqueror@gmx.de>
6818 * java/net/Socket.java
6819 (impl): Made package-private.
6820 * java/net/ServerSocket.java
6821 (implAccept): Access Socket.impl field directly.
6823 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6825 * java/util/prefs/Preferences.java,
6826 java/util/prefs/InvalidPreferencesFormatException.java,
6827 java/util/prefs/BackingStoreException.java,
6828 java/util/prefs/AbstractPreferences.java:
6831 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6833 * java/util/regex/Matcher.java,
6834 java/util/regex/Pattern.java:
6837 2004-04-22 Michael Koch <konqueror@gmx.de>
6839 * java/nio/charset/IllegalCharsetNameException.java
6840 (charsetName): Made private.
6841 (IllegalCharsetNameException): Added @param tag to javadoc.
6842 (getCharsetName): Added @return tag to javadoc.
6843 * java/nio/charset/MalformedInputException.java
6844 (MalformedInputException): Added @param tag to javadoc.
6845 (getInputLength): Revised method description, added @return tag.
6846 (getMessage): Added @return tag.
6848 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
6850 * java/awt/Font.java (deriveFont): Implement missing variants.
6851 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
6854 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
6856 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
6857 Set method->index values for interface methods to their itable index.
6858 (initializeClass): Call _Jv_LayoutInterfaceMethods.
6860 2004-04-21 Michael Koch <konqueror@gmx.de>
6862 * java/nio/DirectByteBufferImpl.java
6863 (shiftDown): Made static, give address as argument and
6864 provide a convenience method that overwrites shiftDown in
6865 ByteBufferImpl and calls the native shiftDown.
6866 * java/nio/MappedByteBufferImpl.java
6867 (): Use optimized method in DirectByteBufferImpl.
6868 * java/nio/natDirectByteBufferImpl.cc
6869 (shiftDown): Changed method signature. Removed usage of array_offset.
6871 2004-04-21 Michael Koch <konqueror@gmx.de>
6873 * gnu/java/net/natPlainSocketImplPosix.cc
6874 (SocketInputStream::read): Make sure returned data is a byte value.
6876 2004-04-21 Michael Koch <konqueror@gmx.de>
6878 * gnu/classpath/ServiceFactory.java,
6879 gnu/classpath/ServiceProviderLoadingAction.java,
6880 javax/imageio/ImageReader.java,
6881 javax/imageio/ImageTranscoder.java,
6882 javax/imageio/ImageWriter.java,
6883 javax/imageio/package.html,
6884 javax/imageio/spi/IIOServiceProvider.java,
6885 javax/imageio/spi/ImageInputStreamSpi.java,
6886 javax/imageio/spi/ImageOutputStreamSpi.java,
6887 javax/imageio/spi/ImageReaderWriterSpi.java,
6888 javax/imageio/spi/ImageTranscoderSpi.java,
6889 javax/imageio/spi/RegisterableService.java,
6890 javax/imageio/spi/ServiceRegistry.java,
6891 javax/imageio/spi/package.html,
6892 javax/imageio/stream/IIOByteBuffer.java,
6893 javax/imageio/stream/ImageInputStream.java,
6894 javax/imageio/stream/ImageOutputStream.java,
6895 javax/imageio/stream/package.html:
6898 (ordinary_java_source_files): Added
6899 gnu/classpath/ServiceFactory.java and
6900 gnu/classpath/ServiceProviderLoadingAction.java.
6901 (javax_source_files): Added
6902 javax/imageio/ImageReader.java,
6903 javax/imageio/ImageTranscoder.java,
6904 javax/imageio/ImageWriter.java,
6905 javax/imageio/spi/IIOServiceProvider.java,
6906 javax/imageio/spi/ImageInputStreamSpi.java,
6907 javax/imageio/spi/ImageOutputStreamSpi.java,
6908 javax/imageio/spi/ImageReaderWriterSpi.java,
6909 javax/imageio/spi/ImageTranscoderSpi.java,
6910 javax/imageio/spi/RegisterableService.java,
6911 javax/imageio/spi/ServiceRegistry.java,
6912 javax/imageio/stream/IIOByteBuffer.java,
6913 javax/imageio/stream/ImageInputStream.java and
6914 javax/imageio/stream/ImageOutputStream.java.
6915 * Makefile.in: Regenerated.
6917 2004-04-21 Michael Koch <konqueror@gmx.de>
6919 * java/util/Properties.java
6920 (load): Fix wrongly merged fix.
6922 2004-04-21 Mark Wielaard <mark@klomp.org>
6924 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
6925 malloc and free buf.
6927 2004-04-21 Dalibor Topic <robilad@kaffe.org>
6929 * javax/naming/AuthenticationException.java,
6930 javax/naming/AuthenticationNotSupportedException.java,
6931 javax/naming/CannotProceedException.java,
6932 javax/naming/CommunicationException.java,
6933 javax/naming/CompoundName.java,
6934 javax/naming/ConfigurationException.java,
6935 javax/naming/ContextNotEmptyException.java,
6936 javax/naming/InitialContext.java,
6937 javax/naming/InsufficientResourcesException.java,
6938 javax/naming/InterruptedNamingException.java,
6939 javax/naming/LimitExceededException.java,
6940 javax/naming/LinkException.java,
6941 javax/naming/LinkLoopException.java,
6942 javax/naming/LinkRef.java,
6943 javax/naming/MalformedLinkException.java,
6944 javax/naming/Name.java,
6945 javax/naming/NameAlreadyBoundException.java,
6946 javax/naming/NameNotFoundException.java,
6947 javax/naming/NamingSecurityException.java,
6948 javax/naming/NoInitialContextException.java,
6949 javax/naming/NoPermissionException.java,
6950 javax/naming/NotContextException.java,
6951 javax/naming/PartialResultException.java,
6952 javax/naming/ReferralException.java,
6953 javax/naming/ServiceUnavailableException.java,
6954 javax/naming/SizeLimitExceededException.java,
6955 javax/naming/TimeLimitExceededException.java,
6956 javax/naming/directory/Attribute.java,
6957 javax/naming/directory/Attributes.java,
6958 javax/naming/directory/SearchResult.java,
6959 javax/naming/event/NamingExceptionEvent.java,
6960 javax/naming/spi/ResolveResult.java:
6963 2004-04-21 Mark Wielaard <mark@klomp.org>
6965 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6966 Changed C++ comments into C comments. Removed commented out code.
6967 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6969 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
6971 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
6973 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
6975 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6977 * native/jni/gtk-peer/gthread-jni.c:
6980 2004-04-21 Mark Wielaard <mark@klomp.org>
6982 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
6983 static fields defined in interface.
6984 * javax/awt/JDialog.java: Likewise.
6985 (JDialog): Make constructors public.
6986 (getDefaultCloseOperation): Make public.
6987 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
6988 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
6989 * javax/swing/JViewport.java (JViewport): Make constructor public.
6991 2004-04-21 Michael Koch <konqueror@gmx.de>
6993 * java/util/Map.java
6994 (Entry): Removed redundant "static" modifier.
6995 * java/text/AttributedCharacterIterator.java:
6996 Updated copyright year.
6998 2004-04-20 Michael Koch <konqueror@gmx.de>
7000 * javax/naming/directory/SearchControls.java:
7001 Don't explicitely extend java.lang.Object.
7002 * javax/naming/spi/DirStateFactory.java:
7003 Merged copyright year with GNU classpath.
7005 2004-04-20 Michael Koch <konqueror@gmx.de>
7007 * java/nio/channels/Channels.java:
7008 Merged coding style with GNU classpath.
7010 2004-04-20 Michael Koch <konqueror@gmx.de>
7012 * java/net/ServerSocket.java
7013 Merged coding style from GNU classpath.
7015 2004-04-20 Michael Koch <konqueror@gmx.de>
7017 * java/io/BufferedWriter.java:
7018 Reordered variables to be at top of the class.
7019 (localFlush): Removed redundant final keyword.
7021 2004-04-20 Ingo Proetel <proetel@aicas.com>
7023 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7025 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7027 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7028 for percent and permill check.
7030 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7032 * java/text/FieldPosition.java
7033 (FieldPosition) Constructor now behaves as it should according
7034 to the java documentation.
7036 2004-04-20 Mark Wielaard <mark@klomp.org>
7038 * java/util/Properties.java: Use the word umlaut, not ä in api
7041 2004-04-20 Michael Koch <konqueror@gmx.de>
7043 * java/nio/Buffer.java,
7044 java/nio/channels/AlreadyConnectedException.java,
7045 java/nio/channels/AsynchronousCloseException.java,
7046 java/nio/channels/ByteChannel.java,
7047 java/nio/channels/CancelledKeyException.java,
7048 java/nio/channels/Channel.java,
7049 java/nio/channels/Channels.java,
7050 java/nio/channels/ClosedByInterruptException.java,
7051 java/nio/channels/ClosedChannelException.java,
7052 java/nio/channels/ClosedSelectorException.java,
7053 java/nio/channels/ConnectionPendingException.java,
7054 java/nio/channels/DatagramChannel.java,
7055 java/nio/channels/FileChannel.java,
7056 java/nio/channels/FileLock.java,
7057 java/nio/channels/FileLockInterruptionException.java,
7058 java/nio/channels/GatheringByteChannel.java,
7059 java/nio/channels/IllegalBlockingModeException.java,
7060 java/nio/channels/IllegalSelectorException.java,
7061 java/nio/channels/InterruptibleChannel.java,
7062 java/nio/channels/NoConnectionPendingException.java,
7063 java/nio/channels/NonReadableChannelException.java,
7064 java/nio/channels/NonWritableChannelException.java,
7065 java/nio/channels/NotYetBoundException.java,
7066 java/nio/channels/NotYetConnectedException.java,
7067 java/nio/channels/OverlappingFileLockException.java,
7068 java/nio/channels/Pipe.java,
7069 java/nio/channels/ReadableByteChannel.java,
7070 java/nio/channels/ScatteringByteChannel.java,
7071 java/nio/channels/SelectableChannel.java,
7072 java/nio/channels/SelectionKey.java,
7073 java/nio/channels/Selector.java,
7074 java/nio/channels/ServerSocketChannel.java,
7075 java/nio/channels/SocketChannel.java,
7076 java/nio/channels/UnresolvedAddressException.java,
7077 java/nio/channels/UnsupportedAddressTypeException.java,
7078 java/nio/channels/WritableByteChannel.java,
7079 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7080 java/nio/channels/spi/AbstractSelectableChannel.java,
7081 java/nio/channels/spi/AbstractSelectionKey.java,
7082 java/nio/channels/spi/AbstractSelector.java,
7083 java/nio/channels/spi/SelectorProvider.java,
7084 java/nio/charset/spi/CharsetProvider.java:
7085 Fixed javadocs and jalopied all over java.nio.
7087 2004-04-20 Michael Koch <konqueror@gmx.de>
7089 * java/nio/ByteBufferImpl.java,
7090 java/nio/CharBufferImpl.java,
7091 java/nio/DirectByteBufferImpl.java,
7092 java/nio/DoubleBufferImpl.java,
7093 java/nio/DoubleViewBufferImpl.java,
7094 java/nio/FloatBufferImpl.java,
7095 java/nio/FloatViewBufferImpl.java,
7096 java/nio/IntBufferImpl.java,
7097 java/nio/IntViewBufferImpl.java,
7098 java/nio/LongBufferImpl.java,
7099 java/nio/LongViewBufferImpl.java,
7100 java/nio/MappedByteBufferImpl.java,
7101 java/nio/ShortBufferImpl.java,
7102 java/nio/ShortViewBufferImpl.java:
7103 Made sure all classes are final and removed final keyword from all
7106 2004-04-20 Michael Koch <konqueror@gmx.de>
7108 * java/rmi/MarshalledObject.java,
7109 java/rmi/Naming.java,
7110 java/rmi/RemoteException.java,
7111 java/rmi/activation/ActivationException.java,
7112 java/rmi/server/ServerCloneException.java,
7113 java/security/AccessController.java,
7114 java/security/AlgorithmParameterGenerator.java,
7115 java/security/AlgorithmParameters.java,
7116 java/security/CodeSource.java,
7117 java/security/Identity.java,
7118 java/security/IdentityScope.java,
7119 java/security/KeyPairGenerator.java,
7120 java/security/KeyStore.java,
7121 java/security/Security.java,
7122 java/security/Signature.java,
7123 java/security/SignatureSpi.java,
7124 java/security/SignedObject.java,
7125 java/security/spec/DSAParameterSpec.java,
7126 java/security/spec/DSAPrivateKeySpec.java,
7127 java/security/spec/DSAPublicKeySpec.java,
7128 java/sql/Array.java,
7129 java/sql/DatabaseMetaData.java,
7130 java/sql/ResultSet.java,
7131 java/text/ChoiceFormat.java,
7132 java/text/CollationElementIterator.java,
7133 java/text/CollationKey.java,
7134 java/text/Collator.java,
7135 java/text/DateFormat.java,
7136 java/text/DateFormatSymbols.java,
7137 java/text/DecimalFormatSymbols.java,
7138 java/text/Format.java,
7139 java/text/ParsePosition.java,
7140 java/text/RuleBasedCollator.java,
7141 java/text/SimpleDateFormat.java,
7142 java/text/StringCharacterIterator.java,
7143 java/util/Collections.java,
7144 java/util/PropertyResourceBundle.java,
7145 java/util/ResourceBundle.java,
7146 java/util/StringTokenizer.java,
7147 java/util/jar/Attributes.java,
7148 java/util/logging/ConsoleHandler.java,
7149 java/util/logging/LogManager.java,
7150 java/util/logging/MemoryHandler.java,
7151 java/util/logging/SocketHandler.java,
7152 javax/naming/NamingException.java:
7153 Fixed javadoc, coding style and argument names all over.
7155 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7157 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7158 constructor. (valid) Added null check.
7160 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7162 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7163 * java/io/FileOutputStream.java
7164 (FileOutputStream) Reorganized constructors. Constructors now
7165 check whether the given path is directory.
7167 2004-04-20 Michael Koch <konqueror@gmx.de>
7169 * java/net/Authenticator.java,
7170 java/net/BindException.java,
7171 java/net/ConnectException.java,
7172 java/net/ContentHandler.java,
7173 java/net/ContentHandlerFactory.java,
7174 java/net/DatagramPacket.java,
7175 java/net/DatagramSocket.java,
7176 java/net/DatagramSocketImpl.java,
7177 java/net/DatagramSocketImplFactory.java,
7178 java/net/FileNameMap.java,
7179 java/net/HttpURLConnection.java,
7180 java/net/Inet4Address.java,
7181 java/net/Inet6Address.java,
7182 java/net/InetAddress.java,
7183 java/net/InetSocketAddress.java,
7184 java/net/JarURLConnection.java,
7185 java/net/MalformedURLException.java,
7186 java/net/MulticastSocket.java,
7187 java/net/NetPermission.java,
7188 java/net/NetworkInterface.java,
7189 java/net/NoRouteToHostException.java,
7190 java/net/PasswordAuthentication.java,
7191 java/net/PortUnreachableException.java,
7192 java/net/ProtocolException.java,
7193 java/net/ServerSocket.java,
7194 java/net/Socket.java,
7195 java/net/SocketAddress.java,
7196 java/net/SocketException.java,
7197 java/net/SocketImpl.java,
7198 java/net/SocketImplFactory.java,
7199 java/net/SocketOptions.java,
7200 java/net/SocketPermission.java,
7201 java/net/SocketTimeoutException.java,
7203 java/net/URISyntaxException.java,
7205 java/net/URLClassLoader.java,
7206 java/net/URLConnection.java,
7207 java/net/URLDecoder.java,
7208 java/net/URLEncoder.java,
7209 java/net/URLStreamHandler.java,
7210 java/net/URLStreamHandlerFactory.java,
7211 java/net/UnknownHostException.java,
7212 java/net/UnknownServiceException.java:
7213 Fixed javadocs, coding style and argument names all over.
7215 2004-04-20 Michael Koch <konqueror@gmx.de>
7217 * java/lang/Byte.java,
7218 java/lang/CharSequence.java,
7219 java/lang/ClassLoader.java,
7220 java/lang/Compiler.java,
7221 java/lang/Double.java,
7222 java/lang/Float.java,
7223 java/lang/Integer.java,
7224 java/lang/Long.java,
7225 java/lang/Math.java,
7226 java/lang/Number.java,
7227 java/lang/Package.java,
7228 java/lang/Runtime.java,
7229 java/lang/RuntimePermission.java,
7230 java/lang/SecurityManager.java,
7231 java/lang/Short.java,
7232 java/lang/StringBuffer.java,
7233 java/lang/System.java,
7234 java/lang/ThreadGroup.java,
7235 java/lang/Throwable.java,
7236 java/lang/reflect/InvocationHandler.java,
7237 java/lang/reflect/Proxy.java:
7238 Fixed javadocs, coding style and argument names all over.
7240 2004-04-20 Michael Koch <konqueror@gmx.de>
7242 * java/io/BufferedWriter.java,
7243 java/io/ByteArrayInputStream.java,
7244 java/io/CharArrayWriter.java,
7245 java/io/DataInput.java,
7246 java/io/DataInputStream.java,
7248 java/io/FilterInputStream.java,
7249 java/io/InputStream.java,
7250 java/io/InputStreamReader.java,
7251 java/io/ObjectInputStream.java,
7252 java/io/ObjectStreamClass.java,
7253 java/io/PipedInputStream.java,
7254 java/io/PipedReader.java,
7255 java/io/PushbackInputStream.java,
7256 java/io/PushbackReader.java,
7257 java/io/RandomAccessFile.java,
7258 java/io/SerializablePermission.java,
7259 java/io/StreamTokenizer.java,
7260 java/io/StringWriter.java,
7261 java/io/WriteAbortedException.java,
7262 java/io/Writer.java:
7263 Fixed javadocs all over, rename arguments to match javadocs,
7266 2004-04-20 Ingo Proetel <proetel@aicas.com>
7268 * java/awt/FontMetrics.java:
7269 (charsWidth): fixed accumulation of total_width
7270 (getWidth): simple default implementation
7271 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7272 in Rectangle constructor.
7273 * java/awt/image/Raster.java (toString): Added method.
7274 * java/awt/image/SampleModel.java (<init>): Added error cause
7275 information to thrown exception.
7276 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7278 (setDataElements): New method.
7279 (setPixels): New method.
7280 (toString): New method.
7282 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7284 * java/awt/image/ComponentColorModel.java
7285 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7286 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7287 Mauve tests on this method. Improved documentation.
7289 2004-04-20 Michael Koch <konqueror@gmx.de>
7291 * javax/swing/JLayeredPane.java,
7292 javax/swing/plaf/BorderUIResource.java,
7293 javax/swing/plaf/ComponentUI.java,
7294 javax/swing/undo/CompoundEdit.java,
7295 javax/swing/undo/StateEdit.java:
7296 Fixed HTML tags in javadocs all over.
7298 2004-04-20 Michael Koch <konqueror@gmx.de>
7300 * javax/print/attribute/EnumSyntax.java
7301 (getOffset): Made protected.
7302 * javax/print/attribute/HashAttributeSet.java
7303 (HashAttributeSet): Likewise.
7304 * javax/print/attribute/ResolutionSyntax.java
7305 (getFeedResolution): Fixed typo in exception name.
7306 (getCrossFeedResolution): Likewise.
7307 * javax/print/attribute/SetOfIntegerSyntax.java
7308 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7309 * javax/print/attribute/TextSyntax.java
7310 (TextSyntax): Handle locale correctly.
7311 (hashCode): Calc better hashcode value.
7312 (equals): Fixed @return tag.
7313 (toString): New method.
7315 2004-04-20 Michael Koch <konqueror@gmx.de>
7317 * gnu/java/nio/FileLockImpl.java
7318 (static): Removed, not needed anymore.
7319 * gnu/java/nio/channels/FileChannelImpl.java
7320 (FileChannelImpl): Made final.
7321 (mode): Made private.
7322 (READ, WRITE, APPEND): Made public.
7323 (EXCL, SYNC, DSYNC): Likewise.
7324 (static): Load native JNI library, when needed.
7325 (length): Unused, removed.
7326 (available): Made public.
7327 (implPosition): Throws IOException.
7329 (implTruncate): Likewise.
7333 2004-04-20 Michael Koch <konqueror@gmx.de>
7335 * java/awt/AWTPermission.java,
7336 java/awt/Component.java,
7337 java/awt/ComponentOrientation.java,,
7338 java/awt/Dialog.java,
7339 java/awt/FontMetrics.java,
7340 java/awt/Graphics.java,
7341 java/awt/datatransfer/DataFlavor.java,
7342 java/beans/Introspector.java,
7343 java/beans/PropertyEditor.java,
7344 java/beans/PropertyEditorManager.java,
7345 java/beans/beancontext/BeanContextServiceProvider.java:
7346 Fixed HTML tags in javadocs all over.
7348 2004-04-20 Mark Wielaard <mark@klomp.org>
7350 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7351 MissingResourceException is thrown.
7352 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7353 null when a MissingResourceException is thrown. Should never happen.
7355 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7357 * java/awt/image/DataBufferShort.java,
7358 java/awt/image/DataBufferFloat.java,
7359 java/awt/image/DataBufferDouble.java,
7360 java/awt/image/PixelInterleavedSampleModel.java: New files.
7361 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7362 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7364 2004-04-20 Michael Koch <konqueror@gmx.de>
7366 * Makefile.am (java_source_files): Added
7367 java/awt/image/DataBufferDouble.java,
7368 java/awt/image/DataBufferFloat.java,
7369 java/awt/image/DataBufferShort.java and
7370 java/awt/image/PixelInterleavedSampleModel.java.
7371 * Makefile.in: Regenerated.
7373 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7375 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7376 undocumented CNI calls.
7377 * include/java-interp.h (_Jv_InterpClass): No longer
7378 extends java.lang.Class.
7379 * java/lang/Class.h (Class): Add new field `aux_info'.
7380 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7381 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7382 Use Class->aux_info instead.
7383 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7384 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7385 Use Class->aux_info instead.
7386 * java/io/natObjectInputStream.cc (allocateObject): Use
7388 * java/lang/natClass.cc (newInstance): Likewise.
7389 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7390 * java/lang/natObject.cc (clone): Likewise.
7391 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7392 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7393 JvAllocObject. Allocate klass->aux_info here for interpreted
7396 2004-04-17 Mark Wielaard <mark@klomp.org>
7398 * javax/swing/JToggleButton.java (ToggleButtonModel):
7399 Make public static inner class.
7400 * javax/swing/JTabbedPane.java (setComponentAt):
7401 Call Page.setComponent().
7402 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7403 (WRAP_TAB_LAYOUT): Make public, value is 0.
7404 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7405 Make private static inner class.
7407 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7409 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7410 arguments to match new signature. Remove FIXME comments.
7412 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7414 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7416 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7419 2004-04-02 Olga Rodimina <rodimina@redhat.com>
7421 * Makefile.am: Added new file.
7422 * Makefile.in: Regenerate.
7423 * javax/swing/ImageIcon.java:
7424 (ImageIcon(file)): set description of the icon
7426 * javax/swing/JCheckBoxMenuItem.java:
7427 Mostly Implemented. Work in progress.
7428 * javax/swing/JRadioButtonMenuItem.java:
7429 Reimplement constructors to use JToggleButtonModel.
7430 * javax/swing/plaf/basic/BasicIconFactory.java:
7431 (getCheckBoxMenuItemIcon): return check box
7433 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7434 paint menu item selected only when it is armed and
7437 2004-04-02 David Jee <djee@redhat.com>
7439 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7440 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7441 * java/awt/Component.java
7442 (add): Set the parent of the popup as this component.
7443 * java/awt/PopupMenu.java
7444 (addNotify): Create popup menu when peer is null.
7445 (show): Call addNotify() if peer is null.
7446 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7447 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7448 argument for gtk_menu_popup() as zero. This causes the popup menu to
7449 respond to any mouse button.
7451 2004-03-31 Olga Rodimina <rodimina@redhat.com>
7453 * Makefile.am: Added new file.
7454 * Makefile.in: Regenerate.
7455 * javax/swing/JRadioButtonMenuItem.java:
7457 * javax/swing/plaf/basic/BasicIconFactory.java:
7458 (getRadioButtonMenuItemIcon): Return
7460 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7461 (getPreferredSize): Add size of checkIcon if it
7463 (installDefaults): Don't initialize checkIcon.
7464 It's value will be set in subclasses.
7465 (uninstallDefaults): remove uninstallation of
7467 (paint): Moved code to paintMenuItem().
7468 (paintMenuItem): Implemented.
7469 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7470 UI delegate for JRadioButtonMenuItem.
7472 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7474 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7475 Corrected position of the accelerator.
7477 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7479 * Makefile.am: Added new file.
7480 * Makefile.in: Regenerate.
7481 * javax/swing/JMenuItem.java: Partly
7482 implemented. Work in progress
7483 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7484 Changed default value of acceleratorDelimiter.
7485 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7486 New class. Partly implemented.
7488 2004-03-26 Mark Wielaard <mark@klomp.org>
7490 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
7491 (item_activate): Declare label before use.
7492 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7493 (gtkSetFont): Removed unused variable label.
7494 (addExposeFilter): Declare variables before use.
7495 (removeExposeFilter): Likewise.
7496 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
7497 (ok_clicked): Declare str_fileName before use.
7499 2004-03-26 David Jee <djee@redhat.com>
7501 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
7502 (addSeparator): Remove.
7503 * java/awt/Menu.java
7504 (separator): Remove static final MenuItem field.
7505 (separatorLabel): New static final String field.
7506 (addSeparator): Do not use peer method; use add(MenuItem) instead.
7507 Use separatorLabel to denote that it is a separator.
7508 (insertSeparator): Create a new MenuItem with separatorLabel, instead
7509 of reusing the static separator instance, because a MenuItem instance
7510 can't be added more than once without being cloned.
7511 * java/awt/peer/MenuPeer.java
7512 (addSeparator): Remove from interface.
7514 2004-03-26 David Jee <djee@redhat.com>
7516 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7517 (connectSignals): New native method declaration.
7518 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
7519 * java/awt/MenuItem.java
7520 (getActionCommand): Return the label if the action command is not set.
7521 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
7522 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
7523 gtk_menu_shell_append().
7524 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
7525 (item_activate): Fix argument type.
7526 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
7528 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
7530 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7531 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
7532 given. Add the menu widget's top-level GtkWindow to the global window
7533 group, so it can grab the pointer.
7534 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
7535 gtk_menu_shell_append().
7537 2004-03-23 Graydon Hoare <graydon@redhat.com>
7539 * java/text/AttributedString.java
7540 (addAttribute): Fix off-by-one.
7541 (getIterator): Likewise.
7542 * java/text/AttributedStringIterator.java
7543 (getRunLimit): Correct logic.
7544 (getRunStart): Likewise.
7545 (getAttribute): Fix inequality.
7546 (getAttributes): Likewise.
7547 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
7549 2004-03-23 Kim Ho <kho@redhat.com>
7551 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7552 (calculateSizes): Return real width and height.
7554 2004-03-23 Kim Ho <kho@redhat.com>
7556 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
7557 (calculateTabRects): Set the selectedRun before
7558 trying to rotate tabs.
7560 2004-03-23 Kim Ho <kho@redhat.com>
7562 * Makefile.am: New file
7563 * Makefile.in: Regenerate
7564 * java/awt/Graphics.java: (drawRect):
7565 Draw to the correct point.
7566 * javax/swing/DefaultSingleSelectionModel.java
7567 (isSelected): Return true if the selected index
7569 * javax/swing/JLabel.java: Do not change mnemonic
7570 index if text is null.
7571 * javax/swing/JProgressBar.java: Use JComponent's
7573 * javax/swing/JScrollBar.java: Ditto.
7574 * javax/swing/JSlider.java: Ditto.
7575 * javax/swing/JTabbedPane.java: Reimplement.
7576 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7577 Add defaults for TabbedPane.
7578 * javax/swing/plaf/basic/BasicArrowButton.java:
7580 * javax/swing/plaf/basic/BasicProgressBarUI.java:
7581 (paintDeterminate): Don't paint String if it's
7583 (paintIndeterminate): ditto.
7584 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7587 2004-03-19 Michael Koch <konqueror@gmx.de>
7589 * java/awt/image/AffineTransformOp.java
7590 (AffineTransformOp): Made public.
7591 * javax/swing/JComponent.java
7592 (listenerList): Made protected.
7593 (accessibleContext): Likewise.
7594 * javax/swing/JList.java
7595 (valueChanged): Dont use internal fields of ListSelectionEvent.
7596 * javax/swing/JViewport.java
7597 (getView): Dont use internal fields of Component.
7598 (addImpl): Likewise.
7599 * javax/swing/Timer.java
7600 (isRunning): Made public.
7603 * javax/swing/UIDefaults.java
7604 (getInt): Made public.
7605 * javax/swing/plaf/basic/BasicListUI.java
7606 (mousePressed): Dont use internal fields of MouseEvent.
7607 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7608 * javax/swing/plaf/basic/BasicScrollBarUI.java
7609 (arrowIcon): Made static.
7610 * javax/swing/plaf/basic/BasicViewportUI.java
7611 (stateChanged): Dont use internal field on ChangeEvent.
7612 * javax/swing/text/JTextComponent.java
7613 (getUI): Call UIManager.getUI().
7614 (updateUI): Use getUI().
7616 2004-03-19 Graydon Hoare <graydon@redhat.com>
7618 * javax/swing/JComponent.java: Turn off double buffer by default.
7619 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
7620 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
7621 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
7622 Use cairo to copy areas.
7623 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
7624 Initialize and set clip region.
7626 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
7628 * java/applet/Applet.java (preferredSize): Override deprecated
7629 variant of getPreferredSize.
7630 (minimumSize): Override deprecated variant of getMinimumSize.
7632 2004-03-15 Olga Rodimina <rodimina@redhat.com>
7634 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
7635 (drawImage(img,xform,bgcolor,obs)): New Method.
7636 Helper function that every drawImage method will
7638 (drawRaster): Added new parameter, bgcolor. All
7639 transparent pixels are changed to bgcolor before
7641 (drawRenderedImage): Fixed to use changed drawRaster().
7642 (drawImage(image,xform,obs): Fixed to use new helper function
7643 (drawImage(image,op,x,y)): Ditto.
7644 (drawImage (img,x,y,observer)): Ditto.
7645 ((PainterThread) bgcolor): New Field.
7646 ((PainterThread) (setPixels)): Changed all transparent pixels
7648 (drawImage(img,x,y,width,height,bgcolor,observer)):
7649 Fixed FIXME - all the transparent pixels are
7650 changed to the specified bgcolor.
7651 (drawImage(img, x, y, width, height, observer): Changed to
7653 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
7654 Fixed FIXME- changed all transparent pixels to bgcolor.
7655 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
7656 Changed to use function above.
7658 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
7660 * java/applet/Applet.java (dimensions): New field.
7661 (getDimensions): New method.
7662 (getPreferredSize): Call getDimensions.
7663 (getMinimumSize): Likewise.
7665 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
7667 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
7668 * jni/classpath/jnilink.c: Likewise.
7670 * java/applet/Applet.java (getPreferredSize): New method.
7671 (getMinimumSize): New method.
7673 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
7675 * prims.cc (_Jv_AllocObject): Remove `size' argument.
7676 (_Jv_AllocObjectNoFinalizer): Likewise.
7677 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
7678 (_Jv_AllocPtrFreeObject): Likewise.
7679 (_Jv_AllocString): Moved from natString.cc. Call collector interface
7680 directly even in the JVMPI case.
7681 * gcj/cni.h (JvAllocObject): Remove `size' argument from
7682 _Jv_AllocObject calls.
7683 * gcj/javaprims.h: Update prototypes.
7684 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
7685 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
7686 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
7688 2004-04-14 Andrew Haley <aph@redhat.com>
7689 Bryce McKinlay <mckinlay@redhat.com>
7691 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
7692 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
7693 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
7695 * testsuite/libjava.lang/InvokeInterface.java: New file.
7696 * testsuite/libjava.lang/InvokeInterface.out: New file.
7698 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
7700 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
7702 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
7703 StackTraceElement directly.
7704 (newElement): New native helper method to create StackTraceElement
7705 bypassing Java access control.
7706 (createStackTraceElement): Use newElement() instead of directly
7707 calling StackTraceElement's constructor.
7708 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
7710 2004-04-01 Michael Koch <konqueror@gmx.de>
7712 * java/lang/SecurityManager.java
7713 (checkAwtEventQueueAccess): Implemented.
7715 2004-04-01 Gary Benson <gbenson@redhat.com>
7717 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
7718 (_Jv_SearchMethodInClass): Likewise.
7720 2004-03-26 Peter Moon <peterm@miraculum.com>
7722 * java/text/NumberFormat.java: Fix spelling of setCurrency
7725 2004-03-21 Anthony Green <green@redhat.com>
7727 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
7728 recursion when searching for the system ClassLoader.
7730 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
7732 * java/net/ServerSocket.java
7733 (accept): Close the socket when error occured.
7735 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
7737 * java/net/URI.java (parseURI): Added unquoting.
7738 (unquote): New method.
7739 (quoteAuthority): Implemented.
7740 (quote(String,String)): New method.
7741 (quotePath): Implemented.
7742 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
7743 (getSchemeSpecificPart): Removed FIXME comment.
7744 (getRawAuthority): Return new rawAuthority field.
7745 (getAuthority): Removed FIXME comment.
7746 (getRawUserInfo): Return new rawUserInfo field.
7747 (getUserInfo): Removed FIXME comment.
7748 (getRawPath): Return new rawPath field.
7749 (getPath): Removed FIXME comment.
7750 (getRawQuery): Return new rawQuery field.
7751 (getQuery): Removed FIXME comment.
7752 (getRawFragment): Return new rawFragment field.
7753 (getFragment): Removed FIXME comment.
7755 2004-03-20 Michael Koch <konqueror@gmx.de>
7757 * java/net/URLConnection.java: Merged copyright year with classpath.
7759 2004-03-20 Norbert Frese <postfach@nfrese.net>
7761 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
7762 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
7763 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
7765 (getObjectInputStream): Return object reference, throw IOException if null.
7766 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
7767 (getObjectOutputStream): Return object reference, throw IOException if null.
7768 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
7769 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
7770 (UnicastConnectionManager): Throw RemoteException if port is not available.
7771 (getInstance): Throw RemoteException.
7772 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
7773 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
7774 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
7775 Collect Exceptions which are returned by a rmi-call and fix void returns.
7776 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
7777 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
7778 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
7779 (dispatch): Answer ping messages which are sent by other java implementions.
7780 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
7781 for every rmi-message and fix void return problems.
7782 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
7783 (UnicastServerRef): Throw RemoteException.
7784 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
7785 In some situations it is necessary to export a subclass of the class which has the _Stub.
7786 For instance when the class with has the _Stub is abstract.
7787 (findStubSkelClass): New method which looks for the class which has the _Stub.
7788 (getClientHost): Implementated.
7789 * gcc/libjava/java/rmi/server/RemoteServer.java
7790 (getClientHost): Implementated.
7791 * gcc/libjava/Makefile.am (rmi_java_source_files):
7792 Added gnu/java/rmi/server/RMIIncomingThread.java.
7793 * Makefile.in: Regenerated.
7795 2004-03-20 Michael Koch <konqueror@gmx.de>
7797 * java/net/InetAddress.java
7798 (getLocalHostname): Added javadoc.
7800 2004-03-19 Per Bothner <per@bothner.com>
7802 * configure.in: FILE variable overrides FLATFORM when linking
7803 natFileChannelXXX.cc.
7805 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
7806 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
7808 2004-03-19 Per Bothner <per@bothner.com>
7810 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
7811 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
7812 * Makefile.am: Update accordingly.
7813 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
7814 as aliases for UnicodeLittle and UnicodeBig.
7816 2004-03-20 Mark Wielaard <mark@klomp.org>
7818 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
7819 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
7820 Don't access ws when it is null.
7821 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
7824 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
7826 * java/lang/ThreadGroup.java (list): Changed print to println.
7828 2004-03-19 Mark Wielaard <mark@klomp.org>
7830 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
7833 2004-02-10 Randolph Chung <tausq@debian.org>
7835 * configure.in: Build java for hppa target.
7836 * configure: Regenerate.
7837 * libjava/configure.host (hppa-*): Add target.
7838 * libjava/sysdeps/pa/lock.h: New file.
7840 2004-03-19 Mark Wielaard <mark@klomp.org>
7842 Reported by Stephen Crawley
7843 * java/io/FilePermission.java (implies): Use String.length() -1 to
7844 access last char of String.
7846 2004-03-19 Michael Koch <konqueror@gmx.de>
7848 * java/awt/image/AffineTransformOp.java
7849 (AffineTransformOp): Made public.
7850 * javax/swing/JComponent.java
7851 (listenerList): Made protected.
7852 (accessibleContext): Likewise.
7853 * javax/swing/JList.java
7854 (valueChanged): Dont use internal fields of ListSelectionEvent.
7855 * javax/swing/JViewport.java
7856 (getView): Dont use internal fields of Component.
7857 (addImpl): Likewise.
7858 * javax/swing/Timer.java
7859 (isRunning): Made public.
7862 * javax/swing/UIDefaults.java
7863 (getInt): Made public.
7864 * javax/swing/plaf/basic/BasicListUI.java
7865 (mousePressed): Dont use internal fields of MouseEvent.
7866 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7867 * javax/swing/plaf/basic/BasicScrollBarUI.java
7868 (arrowIcon): Made static.
7869 * javax/swing/plaf/basic/BasicViewportUI.java
7870 (stateChanged): Dont use internal field on ChangeEvent.
7871 * javax/swing/text/JTextComponent.java
7872 (getUI): Call UIManager.getUI().
7873 (updateUI): Use getUI().
7875 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7877 * verify.cc: Undef PC.
7879 2004-03-18 Michael Koch <konqueror@gmx.de>
7881 * java/nio/channels/spi/AbstractSelectableChannel.java
7882 (keys): Initialize at declaration.
7883 (locate): keys cant be null.
7885 (addSelectionKey): New method.
7886 (removeSelectionKey): New method.
7887 * java/nio/channels/spi/AbstractSelectionKey.java
7888 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
7889 * java/nio/channels/spi/AbstractSelector.java
7890 (provider): Javadoc added.
7891 (cancelledKeys): Javadoc added.
7892 (cancelKey): Javadoc added, add key to cancelledKeys.
7893 (deregister): Implemented.
7895 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7897 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
7898 MAP_FAILED to void *.
7900 2004-03-12 Graydon Hoare <graydon@redhat.com>
7902 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
7903 * javax/swing/JComponent.java (paint): Use persistent double buffer.
7904 * javax/swing/JList.java (ListListener): Revalidate on changes.
7905 * javax/swing/JScrollPane.java: Reimplement.
7906 * javax/swing/JViewport.java: Reimplement.
7907 * javax/swing/ScrollPaneLayout.java: Reimplement.
7908 * javax/swing/ViewportLayout.java: Tidy up.
7909 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
7910 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
7911 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
7912 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
7915 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
7917 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7918 (window_wm_protocols_filter): New function.
7919 (window_focus_in_cb): Remove function.
7920 (window_focus_out_cb): Likewise.
7921 (window_focus_or_active_state_change_cb): New function.
7922 (create): Add filter that removes WM_TAKE_FOCUS client messages.
7923 (connectSignals): Don't attach handlers to focus-in-event or
7924 focus-out-event signals. Handle notify signal.
7926 2004-03-11 David Jee <djee@redhat.com>
7928 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
7929 (gtkSetLabel): New native method declaration.
7930 (setLabel): Use gtkSetLabel.
7931 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
7932 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
7934 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
7936 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
7937 black when color argument is null.
7939 2004-03-10 Kim Ho <kho@redhat.com>
7941 * java/awt/Container.java: Remove check
7944 2004-03-10 Kim Ho <kho@redhat.com>
7946 * java/awt/Container.java: (visitChild):
7947 Remove candidate clip. Use the component
7949 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
7950 (handleEvent): Use the PaintEvent's clip.
7952 2004-03-10 Kim Ho <kho@redhat.com>
7954 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
7955 (handleEvent): Don't set the clip for the
7958 2004-03-09 Graydon Hoare <graydon@redhat.com>
7960 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
7961 Fix double <-> fixed macros, reset font transform.
7962 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
7965 2004-03-09Â Kim Ho <kho@redhat.com>
7967 * java/awt/Container.java: (visitChild): Move
7968 the x and y coordinate of the component rectangle
7969 to correct position.
7970 (handleEvent): Forward drag events to the pressed
7972 * javax/swing/plaf/basic/BasicScrollBarUI.java:
7974 (ArrowButtonListener::mousePressed): Stop the
7976 (mouseDragged): Implement.
7977 (TrackListener::mousePressed): Only react if
7978 the press doesn't occur on the thumb, otherwise
7979 just set the offset.
7980 (TrackListener::mouseReleased): Unset the isAdjusting
7982 (createIncreaseIcon): Switch icon.
7983 (createDecreaseIcon): Switch icon.
7984 (calculatePreferredSize): Use width.
7985 (getThumbBounds): Use the top as the lower value.
7986 (layoutVScrollBar): Switch the button locations.
7987 (paintIncreaseHighlight): Paint correct side of thumb.
7988 (paintDecreaseHighlight): ditto.
7989 (valueForYPosition): Use top as the lower value.
7990 * javax/swing/plaf/basic/BasicSliderUI.java:
7992 (mouseDragged): Implement.
7993 (mousePressed): Only react when the thumb isn't
7994 pressed, otherwise just set offset.
7995 (mouseReleased): Handle a release of the thumb.
7996 (scrollDueToClickInTrack): Stop the timer first.
7997 * javax/swing/JProgressBar.java:
7998 (setString): Fix change condition.
7999 * javax/swing/JSeparator.java:
8002 2004-03-08 David Jee <djee@redhat.com>
8004 * java/awt/image/AffineTransformOp.java:
8005 (filter): Use Graphics2D interface instead of directly using the
8008 2004-03-05 David Jee <djee@redhat.com>
8010 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8011 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8012 * java/awt/Container.java
8013 (acquireComponentForMouseEvent): Fixed.
8014 (handleEvent): Fixed.
8015 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8016 (state_to_awt_mods_with_button_states): New method.
8017 (pre_event_handler): Fixed mouse event generation.
8019 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8021 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8022 (GdkGraphics2D (BufferedImage)): Initialize
8023 pixmap associated with specified BufferedImage.
8024 (setPaint): Changed implementation of Texture
8025 Paint to use AffineTransformOp.
8026 * java/awt/image/AffineTransformOp.java
8027 (createCompatibleDestRaster): Throw RasterFormatException
8028 if resulting width or height of raster is 0.
8030 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8032 * java/awt/image/AffineTransformOp.java:
8033 Removed unnecessary field interpolationType.
8034 Formatted some of the lines to be consistent with
8036 (AffineTransformOp): Create new RenderingHints
8037 containing specified interpolation type.
8038 (createCompatibleDestImage): Implemented.
8039 (createCompatibleDestRaster): Implemented.
8040 (filter): Implemented.
8041 (getBounds2D(BufferedImage)): Implemented.
8042 (getBounds2D(Raster)): Implemented.
8043 (getInterpolationType): Get interpolation value from
8046 2004-03-04 David Jee <djee@redhat.com>
8048 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8049 (setFont): Check if child peers are null.
8051 2004-03-04 Graydon Hoare <graydon@redhat.com>
8053 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8055 (libjava_arguments): Add new libraries to argument list.
8057 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8059 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8060 * Makefile.in: Re-generated.
8061 * java/awt/image/AffineTransformOp.java: New Class.
8063 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8065 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8066 (setPaint): Interpret correctly TexturePaint's
8068 (drawImage): Fixed scale factors of the affine
8071 2004-02-27 David Jee <djee@redhat.com>
8073 * gnu/java/awt/peer/gtk/GdkGraphics.java
8074 (GdkGraphics(Component)): Inherit font from component.
8075 (drawString): Use font style.
8076 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8077 (gtkSetFont): New native method declaration.
8078 (setFont): New method.
8079 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8080 (gtkSetFont): New native method declaration.
8081 (setFont): Call new native method gtkSetFont.
8082 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8083 (setFont): For all child components who do not their fonts set,
8084 set their peers' fonts with this container's font.
8085 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8086 Move all native method declarations to the top for readability.
8087 (gtkSetFont): New native method declaration.
8088 (setFont): New method.
8089 * java/awt/Component.java
8090 (setFont): Invalidate after setting the font.
8091 * java/awt/Container.java
8092 (invalidateTree): New method.
8093 (setFont): Invalidate the container tree after setting the font.
8094 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8095 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8096 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8097 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8098 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8099 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8100 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8101 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8103 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8105 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8106 (updateBufferedImage): New helper function.
8107 Updates BufferedImage in memory if it was changed.
8108 (draw): changed to update BufferedImage in memory after
8109 this drawing operation
8111 (draw3DRect): Ditto.
8112 (fill3DRect): Ditto.
8114 (drawRaster): Ditto.
8115 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8116 no affine transformation.
8117 (drawGlyphVector): Ditto.
8119 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8121 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8122 (isBufferedImageGraphics): New Helper function.
8123 Returns true if this graphics2d can be used to draw
8124 into buffered image and false otherwise.
8125 (updateImagePixels): New Helper function.
8126 Updates pixels in the BufferedImage.
8127 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8128 (getImagePixels): New function. Returns pixels
8129 of the buffered image associated with
8132 2004-02-26 David Jee <djee@redhat.com>
8134 * java/awt/BorderLayout.java
8135 (layoutContainer): Fix width and height calculations to ensure
8136 that they're non-negative.
8137 * java/awt/Component.java
8138 (setBackground): If c is null, inherit from closest ancestor whose
8139 background color is set.
8141 2004-02-26 Kim Ho <kho@redhat.com>
8143 * Makefile.am: Add new files.
8144 * Makefile.in: Re-generate.
8145 * javax/swing/JProgressBar.java:
8146 (JProgressBar(int, int int)): Throw
8147 IllegalArgumentException if orientation is
8149 (JProgressBar(BoundedRangeModel)): Create
8150 ChangeListener and register it. UpdateUI.
8151 (getChangeListeners): Implement.
8152 (setModel): Reset ChangeListener.
8153 * javax/swing/JScrollBar.java: Implement.
8154 * javax/swing/JSeparator.java: Implement.
8155 * javax/swing/JSlider.java:
8156 (JSlider(int, int, int, int)): Throw
8157 IllegalArgumentException if orientation
8159 (getChangeListeners): Fix method name.
8160 * javax/swing/SwingUtilities.java:
8161 (layoutCompoundLabel): If there is no text,
8162 set the text rectangle dimensions to 0.
8163 * javax/swing/plaf/basic/BasicButtonUI.java:
8164 (paint): If there is no text, don't paint it.
8165 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8167 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8169 * javax/swing/plaf/basic/BasicSliderUI.java:
8170 (propertyChange): If the model changes, change
8171 the listeners accordingly.
8173 2004-02-25 Graydon Hoare <graydon@redhat.com>
8175 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8176 * javax/swing/JList.java: Reimplement.
8177 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8178 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8179 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8180 * javax/swing/ListModel.java: Javadoc.
8181 * javax/swing/ListSelectionModel.java: Add missing methods.
8182 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8183 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8184 * javax/swing/ListModel.java: Javadoc and corrections.
8185 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8187 2004-02-25 David Jee <djee@redhat.com>
8189 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8190 (GtkFontPeer): Change default size to 12.
8191 * gnu/java/awt/peer/gtk/GtkToolkit.java
8192 (getFontPeer): Change default size to 12.
8193 (getClasspathFontPeer): Likewise. Set default name to "Default".
8194 * java/awt/Font.java
8195 (Font(Map)): Call Font(String,Map).
8196 (Font(String,Map)): If attrs is null, initialize it as an empty
8197 HashMap, which will ensure that the Font will get default attributes.
8199 2004-02-25 David Jee <djee@redhat.com>
8201 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8202 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8203 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8204 * gnu/java/awt/peer/gtk/GtkToolkit.java
8205 (getFontPeer(String,int)): Call the new overload method with size 1.
8206 (getFontPeer(String,int,int)): New method. Overloaded with size
8208 (getClasspathFontPeer): Set the size of the font.
8210 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8212 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8213 (bimage): New field.
8214 (GdkGraphics2D): New Constructor. Constructs Graphics
8215 object that can be used to draw into the Buffered Image.
8216 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8217 (GdkGraphicsEnvironment): Fixed to include public
8219 (createGraphics): Implemented.
8220 * gnu/java/awt/peer/gtk/GtkToolkit.java
8221 (getLocalGraphicsEnvironment): Implemented.
8222 * java/awt/GraphicsEnvironment.java:
8223 (getLocalGraphicsEnvironment): Implemented.
8224 * java/awt/image/BufferedImage.java:
8225 (createGraphics): Implemented.
8227 2004-02-24 David Jee <djee@redhat.com>
8229 * java/awt/Component.java
8230 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8231 * java/awt/Container.java
8232 (addNotifyContainerChildren): Fix event enabling.
8234 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8236 * Makefile.am: Added
8237 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8238 * Makefile.in: Re-generated.
8239 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8242 2004-02-19 Kim Ho <kho@redhat.com>
8244 * Makefile.am: Add BasicProgressBarUI
8245 * Makefile.in: Regenerate.
8246 * javax/swing/JProgressBar.java:
8248 * javax/swing/plaf/basic/BasicLookAndFeel.java
8249 Add constants for JProgressBar.
8250 * javax/swing/plaf/basic/BasicProgressBarUI.java
8252 * javax/swing/plaf/basic/BasicSliderUI.java
8254 (calculateGeometry): New method
8255 (paint): Remove unnecessary size calculations.
8257 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8259 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8260 (drawRaster): Fixed small error that caused
8261 imageToUser transformation to be set incorrectly.
8262 (toString): Implemented.
8264 2004-02-18 David Jee <djee@redhat.com>
8266 * java/awt/CardLayout.java
8267 (addLayoutComponent): Show the first component added as the default.
8268 (removeLayoutComponent): After removing, show the next component.
8269 (gotoComponent): If there is only one component, show it and return.
8271 2004-02-18 Kim Ho <kho@redhat.com>
8273 * javax/swing/JSlider.java: Re-order
8275 * javax/swing/JLabel.java: Re-order
8277 * javax/swing/JComponent.java:
8278 (addPropertyChangeListener):
8280 (removePropertyChangeListener):
8282 (firePropertyChangeEvent):
8285 2004-02-17 David Jee <djee@redhat.com>
8287 * java/awt/Component.java
8288 (show): Dispatch ComponentEvent via system event queue.
8292 (reshape): Likewise.
8293 * java/awt/Window.java
8294 (setBoundsCallback): Likewise.
8296 2004-02-17 David Jee <djee@redhat.com>
8298 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8299 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8300 Use gtk_widget_set_size_request() instead of the deprecated
8301 gtk_widget_set_usize().
8303 2004-02-17 Kim Ho <kho@redhat.com>
8305 * javax/swing/JSlider.java: Fix comments and
8306 make property strings constants.
8307 (createStandardLabels): Use the labels
8308 preferred size as bounds.
8309 * javax/swing/plaf/basic/BasicSliderUI.java
8311 (ScrollHandler::actionPerformed): Don't
8312 calculate the timer stop value. Let the
8313 MouseListeners find the stop location.
8314 (getPreferredHorizontalSize): Re-implement.
8315 (getPreferredVerticalSize): ditto.
8316 (getMinimumHorizontalSize): ditto.
8317 (getMinimumVerticalSize): ditto.
8318 (getPreferredSize): ditto.
8319 (getMinimumSize): ditto.
8320 (getMaximumSize): ditto.
8321 (paintTicks): Use doubles to find the
8323 (paintHorizontalLabel):Â Use preferredSize
8324 as initial width and height.
8325 (paintVerticalLabel): ditto.
8327 2004-02-17 Kim Ho <kho@redhat.com>
8329 * javax/swing/JLabel.java: Changed
8330 property strings to constants.
8331 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8333 (setText): Change mnemonic index if
8335 (setDisplayedMnemonicIndex): Fire property
8337 (getDisplayedMnemonicIndex): Remove check
8340 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8342 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8343 (drawImage(img,xform,obs)): Invert xform before
8344 passing the xform to cairo.
8345 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8346 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8348 (drawImage (img,x,y,w,h,obs)): Implemented.
8349 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8350 bgcolor,obs)): Partly implemented.
8351 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8353 * java/awt/image/BufferedImage.java:
8354 (copyData): if dest is null, create raster with same
8355 dimensions as the current image.
8357 2004-02-16 Graydon Hoare <graydon@redhat.com>
8359 * javax/swing/plaf/basic/BasicLabelUI.java
8360 (getPreferredSize): Use layoutCL.
8361 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8362 (getPreferredButtonSize): Start with empty view rect, layout using
8363 component's preferred alignment.
8364 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8367 2004-02-16 David Jee <djee@redhat.com>
8369 * java/awt/Component.java
8370 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8371 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8372 (move): Erase old bounds and repaint new bounds. Dispatch
8373 COMPONENT_MOVED ComponentEvent.
8374 (resize): Erase old bounds and repaint new bounds. Dispatch
8375 COMPONENT_RESIZED ComponentEvent.
8376 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8378 * java/awt/Window.java
8379 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8382 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8384 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8385 (setRenderingHint): Added implementation of
8386 Interpolation rendering hints.
8387 (setRenderingHints): Ditto.
8388 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8389 (drawPixels): fixed to allow user to choose type
8390 of filtering that should be used when displaying images.
8391 (cairoSurfaceSetFilter): New method. Sets filter type for
8392 interpolation of pixel values.
8394 2004-02-16 David Jee <djee@redhat.com>
8396 * java/awt/GridBagLayout.java
8397 (calcCellSizes): Rows or columns with zero sizes should still be
8398 considered for extra space distribution.
8400 2004-02-16 Kim Ho <kho@redhat.com>
8402 * javax/swing/JLabel.java: Re-implement.
8403 * javax/swing/plaf/basic/BasicLabelUI.java
8405 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8408 2004-02-16 Kim Ho <kho@redhat.com>
8410 * javax/swing/JSlider.java: Fix indentation and comments.
8411 (setModel): Remove null check to conform with Sun's.
8412 (setOrientation): Throw exception if not
8413 HORIZONTAL or VERTICAL.
8414 (getInverted): Use private variable instead of
8415 ComponentOrientation.
8416 (setInverted): ditto.
8417 * javax/swing/plaf/basic/BasicSliderUI.java:
8418 Fix indentation and comments.
8419 (propertyChange): Remove check for inverted slider, handle
8421 (getMinimumSize): Return preferred size.
8422 (getMaximumSize): ditto.
8423 (calculateFocusRect): Don't relocate rectangle.
8424 (drawInverted): Return XOR of the slider's inversion and
8425 the component's orientation.
8426 (paint): Update leftToRightCache
8428 2004-02-13 David Jee <djee@redhat.com>
8430 * java/awt/GridBagLayout.java
8431 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
8432 code to helper methods.
8433 (sortBySpan): New helper method.
8434 (distributeSizeAndWeight): Likewise.
8435 (calcCellWeights): Likewise.
8436 (calcCellSizes): Add comments.
8438 2004-02-13 David Jee <djee@redhat.com>
8440 * java/awt/Component.java
8441 (show): Only do something if component is invisible at the moment.
8442 (hide): Only do something if component is visible at the moment.
8443 (reshape): If lightweight, erase old bounds and repaint new bounds.
8445 2004-02-13 Kim Ho <kho@redhat.com>
8447 * Makefile.am: Updated for new file.
8448 * Makefile.in: Regenerated.
8449 * javax/swing/JSlider.java: Reimplement.
8450 * javax/swing/SwingUtilities.java
8451 (layoutCompoundLabel): Use icon height
8453 (paintComponent): Implement.
8454 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8455 Add JSlider defaults.
8456 * javax/swing/plaf/basic/BasicSliderUI.java:
8457 Implement. New file.
8459 2004-03-17 Michael Koch <konqueror@gmx.de>
8461 * gnu/java/net/PlainDatagramSocketImpl.java
8462 (RECEIVE_LOCK): New member field.
8463 (SEND_LOCK): New member field.
8464 (send0): New method.
8465 (send): Synchronize on SEND_LOCK.
8466 (receive0): New method.
8467 (receive): Synchronize on RECEIVE_LOCK.
8468 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
8469 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
8470 gnu/java/net/natPlainDatagramSocketImplWin32.cc
8471 (send0): Renamed from send.
8472 (receive0): Renamed from receive.
8473 2004-03-17 Michael Koch <konqueror@gmx.de>
8475 * gnu/java/net/natPlainSocketImplPosix.cc
8476 (write): Just call write(jbyteArray, offset, len).
8477 (read): Just call read(jbyteArray, offset, len).
8479 2004-03-16 Michael Koch <konqueror@gmx.de>
8481 * javax/swing/JTabbedPane.java
8482 (serialVersionUID): New field.
8484 2004-03-16 Norbert Frese <postfach@nfrese.net>
8486 * java/net/InetAddress.java
8487 (getByName): Handle hostname == "" case.
8489 2004-03-16 Dalibor Topic <robilad@kaffe.org>
8491 Reported by: Adam Heath <doogie@debian.org>
8492 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
8495 2004-03-15 Michael Koch <konqueror@gmx.de>
8497 * java/util/Locale.java: Reverting my last patch
8498 and add a comment why the original version was okay.
8500 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
8502 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
8503 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
8504 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
8505 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
8507 2004-03-12 Michael Koch <konqueror@gmx.de>
8509 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
8511 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8513 * java/net/URI.java (toURL): Implemented.
8515 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8518 (URI_REGEXP) updated to contain scheme specific part.
8519 (SCHEME_SPEC_PART_GROUP) new constant.
8520 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
8521 updated to make room for SCHEME_SPEC_PART_GROUP.
8522 (parseURI) parse scheme specific part.
8523 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
8524 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
8525 getQuery, getFragment) implemented.
8527 2004-03-12 Dalibor Topic <robilad@kaffe.org>
8529 * libraries/javalib/java/net/URI.java
8530 partially implemented using java.util.regex.
8531 (URI_REGEXP) new constant. Used to parse URIs.
8532 (SCHEME_GROUP) new constant representing index of scheme group
8534 (AUTHORITY_GROUP) new constant representing index of authority
8535 group in parsed URI.
8536 (PATH_GROUP) new constant representing index of path group in
8538 (QUERY_GROUP) new constant representing index of query group in
8540 (FRAGMENT_GROUP) new constant representing index of fragment
8541 group in parsed URI.
8542 (getURIGroup) new static utility method.
8543 (parseURI) implemented.
8544 (quote) stub for new static utility method.
8545 (quoteAuthority) stub for new static utility method.
8546 (quoteHost) stub for new static utility method.
8547 (quotePath) stub for new static utility method.
8548 (quoteUserInfo) stub for new static utility method.
8550 (create) don't throw URISyntaxException. Implemented.
8551 (toString) implemented.
8553 2004-03-12 Michael Koch <konqueror@gmx.de>
8555 * java/net/HttpURLConnection.java
8556 (getResponseCode): Fix another typo in javadoc.
8558 2004-03-11 Michael Koch <konqueror@gmx.de>
8560 * java/util/logging/Level.java
8561 (parse): Use String.equals() instead of ==.
8563 2004-03-11 Michael Koch <konqueror@gmx.de>
8565 * gnu/java/net/protocol/jar/Connection.java
8566 (getContentLength): New method.
8568 2004-03-11 Michael Koch <konqueror@gmx.de>
8570 * gnu/java/net/PlainSocketImpl.java:
8571 Reformated to merge better with classpath's version.
8573 2004-03-11 Michael Koch <konqueror@gmx.de>
8575 * java/util/Locale.java
8576 (getISO3Language): Use String.equals() instead of ==.
8577 (getISO3Country): Likewise.
8579 2004-03-11 Dalibor Topic <robilad@kaffe.org>
8581 * java/text/AttributedString.java
8582 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
8583 Use HashMap instead of Hashtable since value can be null, and
8584 you can not store a null value in a Hashtable.
8586 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8588 * java/text/AttributedStringIterator.java
8589 (getAllAttributesKey): Return only keys concerned
8590 by the current iterator.
8591 (getAttributes): Use strict inequality for
8594 2004-03-11 Michael Koch <konqueror@gmx.de>
8596 * java/net/HttpURLConnection.java:
8597 Fixed typo in javadoc.
8599 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8601 * java/io/BufferedInputStream.java (marktarget): New field for max
8603 (CHUNKSIZE): New constant for incremental mark buffer allocation.
8604 (mark): Use new fields.
8606 (read(byte[],int,int)): Likewise.
8610 2004-03-11 Mark Wielaard <mark@klomp.org>
8612 * java/beans/BeanDescriptor.java (BeanDescriptor):
8613 Set the FeatureDescriptor programmatic name.
8615 2004-03-11 Michael Koch <konqueror@gmx.de>
8617 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
8618 This file was was just copied form java/io/natFileDescriptorEcos.cc
8619 and never changed to compile correctly.
8621 2004-03-11 Michael Koch <konqueror@gmx.de>
8623 * gnu/java/nio/PipeImpl.java
8624 (SourceChannelImpl): Made final.
8625 (read): Implemented.
8626 (SinkChannelImpl): Made final.
8627 (write): Implemented.
8629 2004-03-11 Michael Koch <konqueror@gmx.de>
8631 * gnu/java/net/PlainDatagramSocketImpl.java:
8632 Reformated to match classpath's version more.
8634 2004-03-11 Michael Koch <konqueror@gmx.de>
8636 * gnu/java/awt/peer/ClasspathFontPeer.java:
8637 Fixed javadoc to be correct xhtml.
8638 * gnu/java/awt/peer/gtk/GtkArgList.java
8639 (add): Use Boolean.valueOf() instead of new Boolean().
8641 2004-03-09 Michael Koch <konqueror@gmx.de>
8643 * java/lang/Thread.java
8644 (runnable): Moved around.
8645 (daemon): Renamed from daemon_flag.
8646 (contextClassLoader): Renamed from context_class_loader.
8647 (Thread): Reordered constructors.
8648 (activeCount): Use group directly.
8649 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
8650 (holdsLock): Reworked javadoc.
8651 (setDaemon): Reworked.
8652 * java/lang/natThread.cc
8655 2004-03-08 Anthony Green <green@redhat.com>
8657 * Makefile.am: Build property resource files into libgcj.
8658 * Makefile.in: Rebuilt.
8659 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
8660 java/util/regex/PatternSyntaxException.java,
8661 gnu/regexp/CharIndexed.java,
8662 gnu/regexp/CharIndexedCharArray.java,
8663 gnu/regexp/CharIndexedInputStream.java,
8664 gnu/regexp/CharIndexedReader.java,
8665 gnu/regexp/CharIndexedString.java,
8666 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
8667 gnu/regexp/REException.java,
8668 gnu/regexp/REFilterInputStream.java,
8669 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
8670 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
8671 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
8672 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
8673 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
8674 gnu/regexp/RETokenLookAhead.java,
8675 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
8676 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
8677 gnu/regexp/RETokenStart.java,
8678 gnu/regexp/RETokenWordBoundary.java,
8679 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
8681 2004-03-03 Per Bothner <per@bothner.com>
8683 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
8684 Optimize when argument is a FileChannelImpl.
8685 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
8687 * java/nio/channels/natChannels.cc: New file for new native methods.
8688 * Makefile.am: Update accordingly.
8690 2004-03-02 Jan Hubicka <jh@suse.cz>
8692 * configure.host: Pass -fno-omit-frame-pointer for i386.
8693 * configure.in: Likewise.
8694 * configure: Regenerate.
8696 2004-03-01 Per Bothner <per@bothner.com>
8698 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
8700 2004-02-29 Per Bothner <per@bothner.com>
8702 * java/nio/channels/FileChannelImpl.java: Moved to package
8703 gnu/java/nio/channels, since we need to refer to it from java.io.
8704 * java/nio/channels/natFileChannelImpl.cc: Removed file.
8705 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
8706 from java/nio/channels. Don't depend on FileDescriptor.
8707 (in, out, err): New static fields.
8709 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
8710 from FileDescriptor.
8711 (by): Removed MappedByteBuffer field.
8712 (map): New working implementation.
8713 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
8714 some code "ported" from natFileDescriptoPosix.cc.
8715 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
8716 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
8717 * java/io/FileDescriptor.java: Implement on top of FileChannel.
8718 Remove native methods.
8719 * Makefile.am, configure.in: Updated accordingly.
8721 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
8722 (ch): New FileChannelImpl field. Update constructor to match.
8723 (releaseImpl): Remove native method. Instead ...
8724 (release): Call unlock on channel.
8725 * gnu/java/nio/natFileLockImpl.cc: Removed file.
8727 * java/io/natFileDescriptorEcos.cc: Remove file.
8728 * java/io/natFileDescriptorPosix.cc: Remove file.
8729 * java/io/natFileDescriptorWin32.cc: Remove file.
8730 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
8731 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
8732 (<init>(FileChannelImpl)): New package-private constructor.
8733 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
8734 (available, close, read, skip): Implement using FileChannelImpl.
8735 (getFD): Allocate FileDescriptor if needed.
8736 (getChannel): Is now trivial.
8737 * java/io/FileOutputStream.java: Corresponding changes.
8738 * java/io/RandomAccessFile.java: Corresponding changes.
8740 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
8741 unmapImpl): New dummy methods, to be overridden by subclass.
8742 (finalize, isLoaded, load, force): New methods.
8743 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
8744 Now works, at least for read mapping.
8746 * java/lang/natPosixProcess.cc (startProcess): Implement standard
8747 streams using FileChannelImpl, not FileDescriptor.
8748 * java/lang/natWin32Process.cc (startProcess): Likewise.
8750 2004-02-28 Michael Koch <konqueror@gmx.de>
8752 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
8755 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
8757 * java/io/ObjectInputStream.java
8758 (readClassDescriptor): Keep elements of the mapping non null.
8759 (checkTypeConsistency): New method.
8760 (readFields): Fixed main loop and base logic. Small reindentation.
8761 * java/io/ObjectStreamField.java
8762 (lookupField): New method to update the field reference.
8763 (checkFieldType): New method.
8764 * java/io/ObjectStreamClass.java
8765 (setClass, setFields): Call lookupField when building the field
8766 database. Check the real field type.
8768 2004-02-28 Michael Koch <konqueror@gmx.de>
8770 * java/nio/ByteOrder.java
8771 (nativeOrder): Use equals() to compare strings.
8773 2004-02-26 Michael Koch <konqueror@gmx.de>
8775 * gnu/java/nio/FileLockImpl.java
8776 (finalize): Made protected.
8777 * java/nio/channels/FileChannel.java
8778 (MapMode.READ_ONLY): Made final.
8779 (MapMode.READ_WRITE): Made final.
8780 (MapMode.PRIVATE): Made final.
8781 * java/nio/channels/SocketChannel.java
8782 (open): Simplified code.
8783 * java/nio/channels/spi/AbstractSelectableChannel.java
8784 (registered): Unused, removed.
8785 (keyFor): Check channel is open, only locate key
8786 and not add a new one.
8787 (register): Don't delete attachments.
8789 2004-02-26 Michael Koch <konqueror@gmx.de>
8791 * gnu/java/awt/ComponentDataBlitOp.java
8792 (INSTANCE): Made final.
8793 * gnu/java/awt/image/ImageDecoder.java:
8795 (cm): Unused, removed.
8797 2004-02-26 Michael Koch <konqueror@gmx.de>
8799 * gnu/java/nio/DatagramChannelImpl.java
8800 (send): Check if target address is resolved.
8802 2004-02-26 Michael Koch <konqueror@gmx.de>
8804 * Makefile.am: Generate and install headers for inner classes in
8805 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
8806 * Makefile.in: Regenerated.
8808 2004-02-24 Anthony Green <green@redhat.com>
8810 * java/lang/StringBuffer.java: No need to NULL out remainder of
8811 buffer since ensureCapacity_unsynchronized will have done this for
8814 2004-02-20 Michael Koch <konqueror@gmx.de>
8816 * gnu/java/net/protocol/jar/Handler.java
8817 (): Removed unneeded check for file != null. java.net.URL.getFile()
8818 returns an empty string but never null.
8820 2004-02-20 Michael Koch <konqueror@gmx.de>
8822 * gnu/gcj/convert/Convert.java
8823 (main): Use equals() to compare strings.
8825 2004-02-20 Michael Koch <konqueror@gmx.de>
8827 * javax/swing/AbstractButton.java: Made several constants final.
8828 (getRolloverSelectedIcon): Made public.
8829 (getSelectedIcon): Made public.
8831 2004-02-16 Per Bothner <per@bothner.com>
8833 * java/nio/CharBufferImpl.java: Inline super constructor.
8834 * java/nio/DoubleBufferImpl.java: Likewise.
8835 * java/nio/FloatBufferImpl.java: Likewise.
8836 * java/nio/IntBufferImpl.java: Likewise.
8837 * java/nio/LongBufferImpl.java: Likewise.
8838 * java/nio/ShortBufferImpl.java: Likewise.
8839 * java/nio/CharBuffer.java: Remove unused constructor.
8840 * java/nio/DoubleBuffer.java: Likewise.
8841 * java/nio/FloatBuffer.java: Likewise.
8842 * java/nio/IntBuffer.java: Likewise.
8843 * java/nio/LongBuffer.java: Likewise.
8844 * java/nio/ShortBuffer.java: Likewise.
8845 * java/nio/CharViewBufferImpl.java: New convenience constructor.
8846 Fix buggy call to super constructor.
8847 * java/nio/DoubleViewBufferImpl.java: Likewise.
8848 * java/nio/FloatViewBufferImpl.java: Likewise.
8849 * java/nio/IntViewBufferImpl.java: Likewise.
8850 * java/nio/LongViewBufferImpl.java: Likewise.
8851 * java/nio/ShortViewBufferImpl.java: Likewise.
8853 * java/nio/ByteBuffer.java (endian): Make non-private so other
8854 java.nio classes can inherit it.
8855 (<init>): Don't bother clearing array_offset.
8856 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
8857 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
8858 Remove redundant test.
8860 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
8861 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
8862 Use new XxxViewBufferImpl constructors.
8863 * java/nio/MappedByteBufferImpl.java: Likewise.
8864 * java/nio/DirectByteBufferImpl.java: Likewise.
8866 * java/nio/ByteBufferImpl.java: Remove one constructor.
8867 Inline super in remaining constructor.
8868 * java/nio/ByteBuffer.java: Remove unused constructor.
8870 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
8872 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
8873 * java/nio/DirectByteBufferImpl.java (owner): New field.
8874 (offset): Remove unused field.
8875 (<init>): Modify one and add another constructor. Change callers.
8876 (allocateDirect): Removed - not used.
8877 (getImpl, putImpl): Make static and pass address explicitly,
8878 to make them useful for MappedByteBufferImpl.
8879 (get, put): Check for underflow. Modify for new getImpl.
8880 (getImpl): New native method where target is array.
8881 (get(byte[],int,int)): Use the above.
8882 (adjustAddress): New static native method.
8883 (slice, duplicate, asReadOnly): New implementations.
8884 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
8885 adjustAddress): New or updated native methods.
8887 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
8889 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
8890 overflow of fieldmapping.
8892 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
8894 * javax/swing/undo/UndoManager.java: Re-written from scratch.
8896 2004-02-14 Per Bothner <per@bothner.com>
8898 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
8899 Set closed before calling implCloseChannel, as in the spec.
8901 2004-02-09 Graydon Hoare <graydon@redhat.com>
8903 * javax/swing/ToggleButtonModel.java: Remove dead class.
8904 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
8905 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
8906 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
8907 * Makefile.am: Update for new and removed files.
8908 * Makefile.in: Regenerate.
8910 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
8911 * javax/swing/AbstractButton.java
8912 (AbstractButton): Initialize fields correctly in ctor.
8913 * javax/swing/JCheckbox.java
8914 (JCheckBox): Override painting flags.
8915 * javax/swing/DefaultButtonModel.java: Conform to sun.
8916 * javax/swing/JComponent.java (paint): Fill with background color
8918 (processComponentKeyEvent)
8921 (processMouseMotionEvent): Remove event-consuming empty methods.
8922 (getUIClassID): Return "ComponentUI" not "JComponent"
8923 * javax/swing/JFrame.java: Remove some debugging chatter.
8924 (JFrame): Subscribe to window events.
8925 * javax/swing/JRadioButton.java
8926 (JRadioButton): Override painting flags.
8927 * javax/swing/JRootPane.java
8928 (JRootPane): Set background from UIDefaults.
8929 * javax/swing/JToggleButton.java
8930 (ToggleButtonModel): New inner class.
8931 (JToggleButton): Override layout alighment.
8932 * javax/swing/SwingUtilities.java:
8933 (getLocalBounds): Return width and height, not x and y.
8934 (calculateInnerArea): Use local bounds, not bounds.
8935 (layoutCompoundLabel): Provide overridden form.
8936 (layoutCompoundLabel): Correct bugs.
8937 * javax/swing/UIDefaults.java: Correct comment.
8938 * javax/swing/plaf/basic/BasicButtonUI.java:
8939 Move most logic into defaults, external listener.
8940 (paintIcon): Implement icon painting.
8941 (paint): Fix state painting to conform to changes in model.
8942 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
8943 Remove most dead/wrong methods.
8944 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
8945 * javax/swing/plaf/basic/BasicIconFactory.java:
8946 (DummyIcon): New class.
8947 (getMenuItemCheckIcon)
8948 (getMenuItemArrowIcon)
8950 (getCheckBoxMenuItemIcon)
8951 (getRadioButtonMenuItemIcon)
8952 (createEmptyFrameIcon): Return DummyIcons, not null.
8953 (getCheckBoxIcon): Implement an icon that looks like sun's.
8954 (getRadioButtonIcon): Implement an icon that looks like sun's.
8955 * javax/swing/plaf/basic/BasicLookAndFeel.java
8956 (initComponentDefaults): Fix impossible values, add some missing.
8957 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
8958 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
8959 Remove most dead/wrong methods.
8961 (getDefaultIcon): New method.
8962 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
8963 Remove most dead/wrong methods.
8964 * javax/swing/plaf/metal/MetalLookAndFeel.java
8965 (getDefaults): Return super.getDefaults(), not BasicDefaults.
8966 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8967 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
8968 Implement "clearing" as drawing, when on pixmap drawables.
8970 * javax/swing/JButton.java (getUIClassID):
8971 * javax/swing/JCheckBox.java (getUIClassID):
8972 * javax/swing/JEditorPane.java (getUIClassID):
8973 * javax/swing/JLabel.java (getUIClassID):
8974 * javax/swing/JList.java (getUIClassID):
8975 * javax/swing/JOptionPane.java (getUIClassID):
8976 * javax/swing/JPanel.java (getUIClassID):
8977 * javax/swing/JPasswordField.java (uiClassID):
8978 * javax/swing/JRadioButton.java (getUIClassID):
8979 * javax/swing/JRootPane.java (getUIClassID):
8980 * javax/swing/JScrollPane.java (getUIClassID):
8981 * javax/swing/JTabbedPane.java (getUIClassID):
8982 * javax/swing/JToggleButton.java (getUIClassID):
8983 * javax/swing/JTree.java (getUIClassID):
8984 * javax/swing/JViewport.java (getUIClassID):
8985 * javax/swing/text/JTextComponent.java (getUIClassID):
8986 Return "fooUI" not "Jfoo"
8988 2004-02-11 Michael Koch <konqueror@gmx.de>
8990 * java/net/DatagramSocket.java
8991 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
8993 (setBroadcast): Likewise.
8994 * java/net/MulticastSocket.java
8995 (setLoopbackMode): Likewise.
8996 * java/net/ServerSocket.java
8997 (setReuseAddress): Likewise.
8998 * java/net/Socket.java
8999 (setTcpNoDelay): Likewise.
9000 (setSoLinger): Likewise.
9001 (setOOBInline): Likewise.
9002 (setKeepAlive): Likewise.
9003 (setReuseAddress): Likewise.
9004 * java/net/URLConnection.java
9005 (setContentHandler): Replace == with equals().
9006 * java/net/URLStreamHandler.java
9007 (hostSEquals): Fix checking host addresses.
9008 (toExternalForm): Dont check protocol for null. We know already its
9011 2004-02-10 David Jee <djee@redhat.com>
9013 * java/awt/BorderLayout.java
9014 (calcCompSize): Invisible components get zero dimensions.
9015 * java/awt/Button.java
9016 (setLabel): Set actionCommand.
9017 * java/awt/Component.java
9018 (show): Invalidate component and parent container.
9021 2004-02-10 David Jee <djee@redhat.com>
9023 * java/awt/GridBagLayout.java
9024 (GridBagLayout): New private field, internalcomptable.
9025 (lookupInternalConstraints): New method.
9026 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9027 (GetLayoutInfo): Reimplement.
9028 (calcCellSizes): Ignore rows/columns with size 0.
9030 2004-02-10 Michael Koch <konqueror@gmx.de>
9032 * gnu/java/awt/EmbeddedWindow.java
9033 (setHandle): Use java.awt.Component.getPeer() instead of
9034 java.awt.Component.peer directly.
9036 2004-02-10 David Jee <djee@redhat.com>
9038 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9039 (gtkSetLabel): New native method definition.
9040 (setLabel): Use gtkSetLabel.
9041 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9042 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9044 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9046 * include/powerpc-signal.h: Revert 2004-01-21 change.
9047 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9048 from syscall for ppc32 versions.
9050 2004-02-08 Per Bothner <per@bothner.com>
9052 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9053 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9054 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9055 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9056 Pass ByteOrder parameter to most methods, since the underlying
9057 ByteBuffer's order isn't always what we should use.
9058 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9059 * java/nio/DirectByteBufferImpl.java: Likewise.
9060 Use ByteBufferHelper methods.
9061 * java/nio/MappedByteBufferImpl.java: Likewise.
9062 (compact): Use shiftDown.
9063 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9064 (get, put): Use ByteBufferHelper.
9065 (compact): Use new shiftDown method.
9066 (duplicate(boolean)): New helper method.
9067 (duplicate, asReadOnlyBuffer): Use it.
9068 (order): Return endian field.
9069 * java/nio/DoubleViewBufferImpl.java: Likewise.
9070 * java/nio/FloatViewBufferImpl.java: Likewise.
9071 * java/nio/IntViewBufferImpl.java: Likewise.
9072 * java/nio/LongViewBufferImpl.java: Likewise.
9073 * java/nio/ShortViewBufferImpl.java: Likewise.
9074 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9075 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9076 (compact): Re-implement using shiftDown.
9078 2004-02-08 Andreas Jaeger <aj@suse.de>
9080 * include/x86_64-signal.h: Fix typo.
9082 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9084 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9086 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9088 2004-02-06 Michael Koch <konqueror@gmx.de>
9090 * java/io/ObjectInputStream.java
9091 (currentClassLoader): Reverted to old version of this method.
9093 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9095 * java/io/ObjectInputStream.java: Made all calls
9096 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9097 use cached info from ObjectStreamClass. (readClassDescriptor):
9098 Cache more information in ObjectStreamClass. (processResolution,
9099 readFields): Use cached info from ObjectStreamClass.
9100 (newObject): Throw exception instead of returning null for failure.
9101 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9102 setCharField, setDoubleField, setFloatField, setIntField,
9103 setLongField, setShortField, setObjectField, readObjectParams):
9104 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9106 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9107 (setClass): Added call to cacheMethods() (findMethod): New method.
9108 (cacheMethods): New method. (ObjectStreamClass): Added call to
9109 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9110 AccessController.doPrivileged to invoke setAccessible.
9111 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9112 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9114 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9115 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9116 isPrimitive): Made safe for cases where type == null.
9117 (setBooleanField, setByteField, setCharField, setShortField,
9118 setIntField, setLongField, setFloatField, setDoubleField,
9119 setObjectField): New methods.
9121 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9123 * java/awt/Component.java (getFont): Return a default font
9126 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9127 (Scrollbar (int, int, int, int, int)): Make default page
9129 (setValues): Only call peer.setValues if one of the values has
9131 (generateName): New method.
9132 (getUniqueLong): New method.
9133 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9134 (range_scrollbar): Remove structure.
9135 (post_adjustment_event): Remove function.
9136 (post_change_event): Accept jobject argument.
9137 (create): Cast jints to gdoubles. Round scrollbar values to the
9138 nearest integer. Clamp min, max and value settings.
9139 (connectJObject): Connect hook to widget->window.
9140 (connectSignals): Remove range_scrollbar structure variables.
9141 Remove "move-slider" connection. Pass global peer reference to
9142 "value-changed" callback.
9143 (setLineIncrement): Cast jint value to gdouble.
9144 (setPageIncrement): Likewise.
9145 (setValues): Likewise. Clamp min, max and value settings.
9147 2004-02-05 Michael Koch <konqueror@gmx.de>
9149 * javax/swing/AbstractCellEditor.java
9150 (getCellEditorValue): Removed.
9151 * javax/swing/Box.java: Reformated.
9152 (serialVersionUID): New field.
9153 * javax/swing/ButtonGroup.java:
9154 Removed some weird whitespace.
9155 * javax/swing/CellEditor.java: Reformated.
9156 * javax/swing/CellRendererPane.java
9157 (serialVersionUID): New field.
9158 (AccessibleCellRendererPaneserialVersionUID): New field.
9159 * javax/swing/DefaultListModel.java
9160 (serialVersionUID): New field.
9161 * javax/swing/JEditorPane.java
9162 (serialVersionUID): New field.
9163 (setPage): Throws IOException.
9164 (addHyperlinkListener): Implemented.
9165 (removeHyperlinkListener): Implemented.
9166 (getHyperlinkListener): New method.
9167 * javax/swing/JFileChooser.java
9168 (serialVersionUID): New field.
9169 (AccessibleJFileChooser.serialVersionUID): New field.
9170 (addActionListener): Implemented.
9171 (removeActionListener): Implemented.
9172 (getActionListeners): New method.
9173 * javax/swing/JFormattedTextField.java
9174 (serialVersionUID): New field.
9175 (AbstractFormatter.serialVersionUID): New field.
9176 (clone): Throws CloneNotSupportedException
9177 (setEditValid): Add missing argument.
9178 (stringToValue): Throws ParseExcpetion.
9179 (valueToString): Throws ParseException.
9180 (commitEdit): Throws ParseException.
9181 * javax/swing/JLabel.java
9182 (serialVersionUID): New field.
9183 * javax/swing/JList.java
9184 (serialVersionUID): New field.
9185 (addListSelectionListener): Reformated.
9186 (removeListSelectionListener): Reformated.
9187 (getListSelectionListeners): New method.
9188 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9190 (serialVersionUID): New field.
9191 * javax/swing/table/AbstractTableModel.java
9192 (getValueAt): Removed.
9193 (getColumnCount): Removed.
9194 (getRowCount): Removed.
9196 2004-02-05 Michael Koch <konqueror@gmx.de>
9198 * java/awt/datatransfer/DataFlavor.java
9199 (imageFlavor): Javadoc added.
9200 (javaJVMLocalObjectType): Fixed.
9202 2004-02-05 Michael Koch <konqueror@gmx.de>
9204 * java/lang/Thread.java
9205 (Thread): Reordered.
9206 (setContextClassLoader): Fixed javadoc comment.
9207 (setPriority): Reordered.
9209 (initialize_native): Reordered.
9210 (gen_name): Reordered.
9212 2004-02-05 Michael Koch <konqueror@gmx.de>
9214 * java/lang/Thread.java: Reordered fields, reformated much code,
9215 no functional changes, some variables renamed, javadoc comments
9218 2004-02-05 Michael Koch <konqueror@gmx.de>
9220 * java/util/zip/Deflater.java,
9221 java/util/zip/DeflaterOutputStream.java,
9222 java/util/zip/GZIPInputStream.java:
9223 Reformated and javadoc comments merged from classpath.
9225 2004-02-05 Michael Koch <konqueror@gmx.de>
9227 * gnu/java/nio/NIOServerSocket.java
9228 (impl): Unused, removed.
9229 * gnu/java/nio/SocketChannelImpl.java
9230 (finnishConnect): Don't throw NoConnectionPendingException if not
9231 connected or no connection pending.
9233 2004-02-02 Graydon Hoare <graydon@redhat.com>
9235 * javax/swing/SwingUtilities.java: Many new functions.
9236 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9237 * javax/swing/basic/BasicGraphicsUtils.java
9238 (getPreferredButtonSize): Start layout from top-left corner.
9240 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9242 * java/awt/geom/AffineTransform.java:
9243 Corrected comments on the field definitions for
9245 (shear): Fixed few errors that caused shear
9246 transformation to be performed incorrectly.
9247 (createInverse): Fixed to return correct
9248 inverse of the given matrix.
9250 2004-02-03 Tom Tromey <tromey@redhat.com>
9252 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9253 PATH or LD_LIBRARY_PATH is not set in parent environment.
9255 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9257 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9258 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9259 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9260 java/awt/Component.java, java/awt/Container.java,
9261 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9262 java/awt/LayoutManager2.java, java/awt/List.java,
9263 java/awt/Menu.java, java/awt/MenuBar.java,
9264 java/awt/MenuItem.java, java/awt/Polygon.java,
9265 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9266 java/awt/Scrollbar.java, java/awt/TextArea.java,
9267 java/awt/TextField.java,
9268 java/awt/image/renderable/RenderContext.java,
9269 javax/swing/JApplet.java: Fix handling of alias methods, where a
9270 method has been deprecated in favour of a new one with the same
9271 funtion but a different name. Put the method implementation in
9272 the deprecated method and have the new method call the
9273 deprecated one. Make all other code call the new method.
9275 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9277 * gnu/java/nio/DatagramChannelImpl.java
9278 (inChannelOperation): New field.
9279 (isInChannelOperation): New accessor.
9280 (setInChannelOperation): New modifier.
9281 (receive): Use capacity() - position() of destination
9282 buffer instead of remaining(). Set and reset our "in
9283 channel operation indicator" before and after delegating
9284 the receive to our datagram socket. Removed testing code.
9285 Update destination buffer's current position if it is
9286 backed by a byte array (hasArray() is true).
9287 (send): Set and reset our "in channel operation indicator"
9288 before and after delegating the send to our datagram socket.
9289 Removed testing code. Update source buffer's current position
9290 if it is backed by a byte array (hasArray() is true).
9291 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9292 Use capacity() - position() of destination buffer instead
9294 * java/net/DatagramSocket.java (receive): Don't throw an
9295 IllegalBlockingModeException if we have a non-blocking
9296 channel which initiated this operation.
9299 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9301 * configure.in: Add pkgconfig check for glib and gthread.
9302 * configure: Regenerate.
9304 2004-02-01 Michael Koch <konqueror@gmx.de>
9306 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9308 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9309 * verify.cc (debug_print): Mark 'fmt' unused.
9311 2004-01-30 Michael Koch <konqueror@gmx.de>
9313 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9314 * configure: Regenerated.
9315 * glib-2.0.m4: Removed.
9316 * gtk-2.0.m4: Removed.
9317 * libart.m4: Removed.
9320 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9322 * gnu/java/net/PlainSocketImpl.java
9323 (inChannelOperation): New field.
9324 (isInChannelOperation): New accessor.
9325 (setInChannelOperation): New modifier.
9326 * gnu/java/nio/ServerSocketChannelImpl.java
9327 (accept): Set and reset our server socket's PlainSocketImpl's
9328 "in channel operation" indicator before and after delegating
9329 the accept to our server socket.
9330 * gnu/java/nio/SocketChannelImpl.java
9331 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9332 operation" indicator before and after delegating the operation to
9336 * java/net/ServerSocket.java (implAccept): Don't throw an
9337 IllegalBlockingModeException if we have a non-blocking
9338 channel which initiated this accept operation.
9339 * java/net/Socket.java (connect): Don't throw an
9340 IllegalBlockingModeException if we have a non-blocking
9341 channel which initiated this connect operation.
9342 * java/nio/channels/spi/AbstractSelectableChannel.java
9343 (configureBlocking): Only call implConfigureBlocking() if
9344 the desired blocking mode is different from our current one.
9346 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9348 * java/io/BufferedReader.java (sbuf): New field.
9349 (readLine): Use String.valueOf instead of new String() as per
9350 Per Bothner's suggestion. Use instance sbuf field instead of a
9351 local StringBuffer instance.
9352 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9353 caller's buffer to refill().
9354 (read(void)): Pass our internal work buffer to refill if our
9355 input queue is empty.
9356 (refill): Changed return type to int. Use the specified buffer
9357 instead of our work buffer as per Bryce McKinlay's suggestion.
9358 Return the number of characters read or -1 for EOF.
9360 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9362 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9364 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9366 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9367 * Makefile.in: Re-generated.
9368 * gnu/awt/xlib/XFontPeer.java: New file.
9369 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9370 (setClip): Commented out debug printout.
9371 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9372 (getFontPeer): Return XFontPeer.
9373 (getLocalGraphicsEnvironment): New method.
9374 (getClasspathFontPeer): New method.
9375 (createFont): New method.
9377 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9379 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9382 2004-01-29 Kim Ho <kho@redhat.com>
9384 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9385 (gtkLayoutSetVisible): New method
9386 (setMenuBar): Hide layout before setting MenuBar
9387 and reshow it after.
9388 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9389 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9391 2004-01-28 Michael Koch <konqueror@gmx.de>
9393 * gnu/java/lang/ClassHelper.java
9394 (getPackagePortion): Removed.
9396 2004-01-28 Michael Koch <konqueror@gmx.de>
9398 * javax/swing/JComponent.java
9399 (listenerList): Initalize globally.
9400 (ancestor_list): Removed.
9401 (veto_list): Removed.
9402 (change_list): Removed.
9403 (get_veto_list): Removed.
9404 (get_change_list): Removed.
9405 (get_ancestor_list): Removed.
9406 (removeAncestorListener): Reimplemented.
9407 (removePropertyChangeListener): Likewise.
9408 (removeVetoableChangeListener): Likewise.
9409 (addAncestorListener): Likewise.
9410 (addPropertyChangeListener): Likewise.
9411 (addVetoableChangeListener): Likewise.
9412 (getListeners): New method.
9413 (getAncestorListeners): Likewise.
9414 (getVetoableChangeListeners): Likewise.
9415 (fireVetoableChange): Throws PropertyVetoException.
9416 * javax/swing/JEditorPane.java
9417 (JEditorPane): Throws IOException.
9419 2004-01-28 David Jee <djee@redhat.com>
9421 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9422 (create): Set the default foreground color to
9423 java.awt.SystemColor.windowText.
9425 2004-01-27 Michael Koch <konqueror@gmx.de>
9427 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
9428 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9429 Reindented to merge with classpath.
9431 2004-01-27 David Jee <djee@redhat.com>
9433 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9434 (addExposeFilter): Handle GtkFramePeer separately.
9435 (removeExposeFilter): Likewise.
9437 2004-01-27 Michael Koch <konqueror@gmx.de>
9439 * gnu/java/net/protocol/http/Connection.java
9440 (getOutputStream): Fixed typo.
9442 2004-01-27 Michael Koch <konqueror@gmx.de>
9444 * java/lang/Class.java
9445 (getConstructor): Removed SecurityException from throws clause.
9446 (_getConstructors): Likewise.
9447 (getConstructors): Likewise.
9448 (getDeclaredConstructor): Likewise.
9449 (getDeclaredClasses): Likewise.
9450 (getDeclaredConstructors): Likewise.
9451 (getDeclaredField): Likewise.
9452 (getDeclaredMethod): Likewise.
9453 (getDeclaredMethods): Likewise.
9454 (getField): Likewise.
9455 (getMethod): Likewise.
9456 (getMethods): Likewise.
9458 2004-01-27 Kim Ho <kho@redhat.com>
9460 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9461 (removeMenuBarPeer): Remove MenuBarPeer argument.
9462 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
9463 (dispose): Call native method.
9464 * java/awt/Frame.java (setMenuBar): Create and remove
9465 MenuBar peers only if the Frame has a peer.
9466 (addNotify): Create the MenuBar peer if one exists.
9467 (removeNotify): Remove MenuBar peer if one exists.
9468 * java/awt/Menu.java: Fix imports.
9469 (addNotify): Don't use full class name.
9470 (removeNotify): Call removeNotify on all children.
9471 * java/awt/MenuBar.java (removeNotify): Call
9472 removeNotify on all children.
9473 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9474 (removeMenuBarPeer): Remove MenuBarPeer argument.
9475 Iterate through children to find the Frame's MenuBar.
9476 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
9478 (dispose): Remove references to the MenuComponent.
9480 2004-01-27 Michael Koch <konqueror@gmx.de>
9482 * javax/swing/AbstractCellEditor.java: Reformated.
9483 * javax/swing/DefaultListSelectionModel.java
9484 (listenerList): Made protected.
9485 (addListSelectionListener): Javadoc added.
9486 (removeListSelectionListener): Likewise.
9487 (getListeners): Likewise.
9488 (getListSelectionListeners): Likewise.
9489 * javax/swing/JComboBox.java: Merged copyright year.
9490 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
9492 2004-01-26 Andrew Haley <aph@redhat.com>
9494 * javax/swing/table/JTableHeader.java: Extend JComponent
9496 2004-01-26 Kim Ho <kho@redhat.com>
9498 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
9501 2004-01-26 Kim Ho <kho@redhat.com>
9503 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
9505 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
9506 height and let the Layout Managers readjust anything that
9508 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9509 (moveLayout): New method. Shift everything in the Gtk
9510 layout in the Y direction by an offset.
9512 2004-01-26 David Jee <djee@redhat.com>
9514 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
9515 (handleEvent): Implemented. Handles PaintEvents.
9516 (paint): Implemented. Use GTK native methods to queue updates
9517 for this heavyweight peer.
9518 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
9519 (handleEvent): Removed.
9520 * java/awt/Component.java
9521 (paint): Implemented. Explictly paint the heavyweight peer.
9522 (update): Clear the background for heavyweight components.
9523 (paintAll): No need to call peer.paint() anymore.
9524 (processEvent): Don't process PaintEvents here. It's now done in
9525 the peer's handleEvent().
9526 (processPaintEvent): Removed.
9527 * java/awt/Container.java
9528 (paint): No need to call super.paint(). Visit heavyweight
9530 (update): Don't clear the background here. It's done in
9532 (visitChildren): Added check to not recurse into Containers.
9533 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9534 (filter_expose_event_handler): New method. Filter unwanted
9535 expose events while painting heavyweight peers.
9536 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
9537 New method. Connect filter and block pre_event_handler.
9538 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
9539 New method. Disconnect filter and unblock pre_event_handler.
9540 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
9541 New method. Invalidate and update given area.
9542 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
9543 (pre_event_handler): Add checks for unwanted expose events.
9545 2004-01-26 David Jee <djee@redhat.com>
9547 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9548 (find_bg_color_widget): For GtkButton, return its child.
9550 2004-01-26 Kim Ho <kho@redhat.com>
9552 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
9554 (setMenuBar): Grab MenuBar height and change insets.
9555 (setBounds): Account for MenuBar height.
9556 (postInsetsChangedEvent): Ditto.
9557 (postSizeAllocateEvent): Remove.
9558 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9559 (menubar_resize_cb): Remove
9560 (setMenuBarPeer): Remove callback.
9561 (getMenuBarHeight): Use size requisition instead of
9564 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9566 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
9567 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
9569 (setColumns): Remove FIXME -- peer will retrieve number of
9570 columns by calling getColumns.
9571 (setRows): Likewise for number of rows.
9572 (next_text_number): New field.
9573 (paramString): Fix param string.
9574 (generateName): New method.
9575 (getUniqueLong): New method.
9577 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9579 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
9580 image observer of image loading status.
9581 (getImage (String)): Start image production.
9582 (getImage (URL)): Likewise.
9584 2004-01-25 Michael Koch <konqueror@gmx.de>
9586 * java/lang/Class.java: Imports reworked, reformated.
9587 (Class): Javadoc added.
9588 (forName): Likewise.
9589 (getClasses): Likewise.
9590 (getClassLoader): Likewise.
9591 (getComponentType): Likewise.
9592 (getConstructor): Likewise.
9593 (getConstructors): Likewise.
9594 (getDeclaredConstructor): Likewise.
9595 (getDeclaredClasses): Likewise.
9596 (getDeclaredConstructors): Likewise.
9597 (getDeclaredField): Likewise.
9598 (getDeclaredMethod): Likewise.
9599 (getDeclaredMethods): Likewise.
9600 (getDeclaringClass): Likewise.
9601 (getField): Likewise.
9602 (getInterfaces): Likewise.
9603 (getMethod): Likewise.
9604 (getMethods): Likewise.
9605 (getModifiers): Likewise.
9606 (getName): Likewise.
9607 (getResource): Likewise.
9608 (getResourceAsStream): Likewise.
9609 (getSigners): Likewise.
9610 (setSigners): Likewise.
9611 (getSuperclass): Likewise.
9612 (isArray): Likewise.
9613 (isAssignableFrom): Likewise.
9614 (isInstance): Likewise.
9615 (isInterface): Likewise.
9616 (isPrimitive): Likewise.
9617 (newInstance): Likewise.
9618 (getProtectionDomain): Likewise.
9619 (toString): Likewise.
9621 (initializeClass): Likewise.
9622 (finalize): Likewise.
9624 2004-01-24 Michael Koch <konqueror@gmx.de>
9626 * gnu/java/net/protocol/jar/Connection.java
9629 (gotHeaders): Removed.
9630 (getHeaderField): Removed.
9631 (getHeaderFields): Removed.
9632 (getHeaderFieldKey): Removed.
9634 (getField): Removed.
9635 (getHeaders): Removed.
9637 2004-01-24 Michael Koch <konqueror@gmx.de>
9639 * Makefile.am: Added library version to gtk peer lib.
9640 * Makefile.in: Regenerated.
9642 2004-01-24 Michael Koch <konqueror@gmx.de>
9644 * java/util/zip/InflaterInputStream.java: Merged class documentation
9647 2004-01-21 Jakub Jelinek <jakub@redhat.com>
9649 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
9650 header. For __powerpc64__ provide the default-signal.h definitions
9652 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
9653 instead of the dummy definitions.
9654 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
9655 (powerpc64*-*): Remove with_libffi_default.
9656 Only add -mminimal-toc for 64-bit compilations.
9657 * configure.in: Use powerpc-signal.h on powerpc64 as well.
9658 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
9659 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
9660 * configure: Rebuilt.
9662 2004-01-23 Michael Koch <konqueror@gmx.de>
9664 * gnu/java/nio/FileLockImpl.java: Compile fixes.
9666 2004-01-23 Michael Koch <konqueror@gmx.de>
9668 * java/lang/VMClassLoader.java: Reworked imports.
9670 2004-01-23 Michael Koch <konqueror@gmx.de>
9672 * javax/swing/AbstractAction.java: Reformated.
9674 2004-01-23 Michael Koch <konqueror@gmx.de>
9676 * java/text/CollationElementIterator.java:
9677 (setText): New method.
9679 2004-01-23 Michael Koch <konqueror@gmx.de>
9681 * gnu/java/nio/FileLockImpl.java:
9682 Fixed filename in copyright.
9683 (released): Removed.
9684 (finalize): New method.
9685 * gnu/java/nio/natFileLockImpl.cc
9686 (releaseImpl): Implemented.
9687 * java/nio/channels/FileChannelImpl.java:
9689 (lock): Implemented.
9690 (lockImpl): New method.
9691 (tryLock): Implemented.
9692 (tryLockImpl): New method.
9693 * java/nio/channels/natFileChannelImpl.cc
9694 (lockImpl): New method.
9695 (tryLockImpl): New method.
9697 2004-01-23 Michael Koch <konqueror@gmx.de>
9699 * java/io/FileDescriptor.java
9701 (tryLock): New method.
9702 (unlock): New method.
9703 * java/io/natFileDescriptorEcos.cc
9705 (tryLock): New method.
9706 (unlock): New method.
9707 * java/io/natFileDescriptorPosix.cc
9709 (tryLock): New method.
9710 (unlock): New method.
9711 * java/io/natFileDescriptorWin32.cc
9713 (tryLock): New method.
9714 (unlock): New method.
9716 2004-01-23 Michael Koch <konqueror@gmx.de>
9718 * java/io/FileDescriptor.java
9719 (sync): Moved around, added javadoc.
9724 (setLength): Likewise.
9726 (getLength): Likewise.
9727 (getFilePointer): Likewise.
9729 (available): Likewise.
9730 (finalize): Likewise.
9732 2004-01-23 Michael Koch <konqueror@gmx.de>
9734 * javax/swing/AbstractAction.java: Reformated.
9735 (getPropertyChangeListeners): New method.
9736 * javax/swing/AbstractCellEditor.java: Reformated.
9737 (getCellEditorListeners): New method.
9738 * javax/swing/DefaultListSelectionModel.java
9739 (listenerList): New field.
9740 (listeners): Removed.
9741 (get_listeners): Removed.
9742 (addListSelectionListener): Rewritten.
9743 (removeListSelectionListener): Rewritten.
9744 (getListSelectionListeners): New method.
9745 (getListeners): New method.
9746 * javax/swing/JComboBox.java: Imports reworked.
9747 (addActionListener): Implemented.
9748 (removeActionListener): Implemented.
9749 (addItemListener): Implemented.
9750 (removeItemListener): Implemented.
9751 (addPopupMenuListener): Implemented.
9752 (removePopupMenuListener): Implemented.
9753 (getActionListeners): New method.
9754 (getItemListeners): New method.
9755 (getPopupMenuListeners): New method.
9757 2004-01-23 Michael Koch <konqueror@gmx.de>
9759 * gnu/java/net/protocol/http/Connection.java
9760 (connect): Don't initialize bufferedOutputStream if not needed.
9761 (sendRequest): Set property for content length if content is present.
9762 Write content only if present.
9763 (getOutputStream): Check if already connected, dont connect,
9764 initalize bufferedOutputStream if needed.
9766 2004-01-23 Michael Koch <konqueror@gmx.de>
9768 * java/io/FileDescriptor.java
9769 (in, out, err): Added javadoc.
9770 (static): Merged loading code.
9771 (fd, position): Moved around.
9773 2004-01-23 Michael Koch <konqueror@gmx.de>
9775 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
9778 2004-01-23 Michael Koch <konqueror@gmx.de>
9780 * java/lang/Class.java,
9781 java/lang/Object.java,
9782 java/lang/Thread.java: Merged copyright with classpath.
9784 2004-01-23 Michael Koch <konqueror@gmx.de>
9786 * java/io/FileDescriptor.java: Merged copyright with classpath to
9787 start merging this class.
9789 2004-01-22 Tom Tromey <tromey@redhat.com>
9792 * testsuite/libjava.lang/pr13107_2.xfail: New file.
9793 * testsuite/libjava.lang/pr13107_3.xfail: New file.
9794 * testsuite/libjava.lang/pr13107_3.java: New file.
9795 * testsuite/libjava.lang/pr13107_3.out: New file.
9796 * testsuite/libjava.lang/pr13107_2.java: New file.
9797 * testsuite/libjava.lang/pr13107_2.out: New file.
9798 * testsuite/libjava.lang/pr13107.java: New file.
9799 * testsuite/libjava.lang/pr13107.out: New file.
9800 * verify.cc (jsr_ptrs): Removed.
9801 (entry_points): Likewise.
9802 (struct subr_info): Likewise.
9803 (struct subr_entry_info): Likewise.
9804 (type_val::unused_by_subroutine_type): Likewise.
9805 (type::merge): Don't handle unused_by_subroutine_type.
9806 (type::print): Likewise.
9807 (state::flags): Removed.
9808 (state::subroutine): Likewise.
9809 (state::seen_subrs): Likewise.
9810 (state::NO_STACK): Likewise.
9811 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
9812 (state): Updated all methods.
9813 (state::clean_subrs): Removed.
9814 (state::state): Removed `ret_semantics' flag.
9815 (state::copy): Likewise.
9816 (state::add_subr): Removed.
9817 (state::enter_subroutine): Likewise.
9818 (type::set_return_address): New method.
9819 (handle_jsr_insn): Set return address on the type. Always
9820 invalidate PC after call.
9821 (check_nonrecursive_call): Removed.
9822 (~_Jv_BytecodeVerifier): Updated.
9823 (branch_prepass): Removed special handling of jsr.
9824 (note_branch_target): Likewise.
9825 (get_subroutine): Removed.
9826 (state::merge): Don't merge subroutines and don't handle
9827 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
9828 (state::note_variable): Removed.
9829 (state::is_unmerged_ret_state): Likewise.
9830 (state::print): Updated.
9831 (set_variable): Likewise.
9832 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
9833 and jsr_semantics arguments. Updated for new reverification
9835 (pop_jump): Rewrote.
9836 (construct_primitive_array_type): Updated.
9837 (state::next): Removed.
9838 (INVALID_STATE): New define.
9839 (state::INVALID): Removed.
9840 (state::NO_NEXT): New value.
9841 (state::pc, state::next): New fields.
9842 (state::get_pc): New method.
9843 (next_verify_pc): Removed.
9844 (next_verify_state): New field.
9845 (verify_instructions_0): Always check for falling off end.
9847 (linked_utf8): Removed.
9848 (states): Changed type.
9849 (type::state_mergeable_p): New method.
9850 (state::state_mergeable_p): Likewise.
9851 (handle_ret_insn): Removed most code.
9852 (state::reverify): New method.
9853 (add_new_state): Likewise.
9854 (state::set_pc): Likewise.
9856 2004-01-22 Jeff Sturm <jsturm@one-point.com>
9859 * testsuite/libjava.compile/PR13733.java: New file.
9860 * testsuite/libjava.compile/PR13733.xfail: New file.
9862 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
9863 Michael Koch <konqueror@gmx.de>
9865 * javax/swing/table/DefaultTableCellRenderer.java
9866 (DefaultTableCellRenderer): Added javadoc for the class and for
9867 the constructor, Border instance, create an EmptyBorder.
9868 (UIResource): Removed the comment at the end of the class
9869 (setForeground): New method.
9870 (setBackground): New method.
9871 (updateUI): New method.
9872 (getTableCellRendererComponent): Rewritten with the help of
9873 dvholten and Stephane Meslin-Weber.
9874 (validate): New method.
9875 (repaint): New method.
9876 (firePropertyChange): New method.
9877 (setValue): New method.
9879 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
9881 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9882 (connectJObject): Replace printf calls with g_assert statements.
9883 Move property-notify-event signal connection to ...
9884 (connectSignals): Connect property-notify-event signal. Iterate
9885 through the vbox's children to find layout.
9887 2004-01-22 Graydon Hoare <graydon@redhat.com>
9889 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
9890 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9891 Predicate static initialization on GtkToolkit.useGraphics2D().
9892 * java/awt/Component.java (processPaintEvent): Consume event.
9893 * javax/swing/AbstractButton.java: Reimplement, document.
9894 * javax/swing/DefaultButtonModel.java: Reimplement, document.
9895 * javax/swing/JComponent.java (paint): Use double buffer.
9896 (listenerList): Enable member.
9897 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
9898 * javax/swing/JToggleButton.java
9899 (JToggleButton): Modify model constructor.
9900 * javax/swing/SwingUtilities.java
9901 (layoutCompoundLabel): Adjust arithmetic.
9902 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
9903 * javax/swing/plaf/basic/BasicGraphicsUtils.java
9904 (getPreferredButtonSize): Include margins in calculation.
9905 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9906 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
9907 Receive up events from subordinate layout component.
9909 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
9911 * java/awt/Component.java (show): Set visible to true before
9914 2004-01-21 Kim Ho <kho@redhat.com>
9916 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
9918 (removeMenuBarPeer): Make package private.
9919 (setMenuBarPeer): Make package private.
9920 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9921 (menubar_resize_cb): Mark attributes unused.
9922 (getMenuBarHeight): ditto.
9924 2004-01-21 David Jee <djee@redhat.com>
9926 * java/awt/Container.java
9927 (LightweightDispatcher.handleEvent): Add an extra check to avoid
9928 dispatching MOUSE_ENTERED event twice. Translate the point for
9929 the mouse event target before dispatching the event.
9931 2004-01-20 Jakub Jelinek <jakub@redhat.com>
9933 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
9934 lib_org_w3c_dom_la_LDFLAGS): New.
9935 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
9936 * Makefile.in: Rebuilt.
9938 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
9940 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
9941 Calculate proper offsets for heavyweight components packed in
9942 lightweight containers.
9944 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
9945 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
9946 (native create): Add width parameter.
9947 (create): Calculate text entry width based on current font's
9948 metrics and number of columns. Set TextField's font if not
9949 already set. Call native create.
9950 (gtkEntryGetBorderWidth): New native method.
9951 (gtkEntryGetSize): Remove method.
9952 (getMinimumSize): Call minimumSize.
9953 (getPreferredSize): Call preferredSize.
9954 (minimumSize): Calculate minimum size based on backing
9955 GtkEntry's borders, font metrics and number of columns.
9956 (preferredSize): Likewise for preferred size.
9957 (get_border_width): New static function.
9959 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
9960 Override GtkWindowPeer's setResizable method to account for menu
9961 bar height when setting the frame's size.
9963 2004-01-19 Matthias Klose <doko@debian.org>
9965 * libtool-version: Increased `current' to 6.
9967 2004-01-19 Kim Ho <kho@redhat.com>
9969 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9970 (connectJObject): Iterate through the vbox's children to find layout.
9972 2004-01-19 Fernando Nasser <fnasser@redhat.com>
9974 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
9975 isDispatchThread method to replace wrong test condition.
9977 2004-01-19 Fernando Nasser <fnasser@redhat.com>
9979 * java/awt/EventQueue.java (pop): Prevent racing condition to add
9980 events to the queue out of order by acquiring locks in the proper
9981 order and not by releasing one before acquiring the other.
9983 2004-01-19 Fernando Nasser <fnasser@redhat.com>
9985 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
9986 visible so that dialog can be reused.
9988 2004-01-19 Fernando Nasser <fnasser@redhat.com>
9990 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
9991 events may be handled by any queue in the stack.
9993 2004-01-19 Kim Ho <kho@redhat.com>
9995 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
9996 MenuBarPeer parameter.
9997 (removeMenuBarPeer): New native method.
9998 (setMenuBar): Call remove if menu bar is null. Adjust insets
10000 (postSizeAllocateEvent): New method. Called when menu bar size is
10001 allocated. Adjust insets and redo layout.
10002 (GtkFramePeer): Set menu bar during frame creation.
10003 (postConfigureEvent): Adjust position and size to accomodate
10005 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10006 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10007 (addNotify): Create the peer if it doesn't exist and call addNotify
10008 for the menu's items.
10009 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10010 * java/awt/MenuItem.java (addNotify): Create the peer if it
10012 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10013 (removeMenuBarPeer): New method. Remove menu bar on the current
10015 (setMenuBarPeer): Add the menu bar to the current frame and the
10016 callback for size-allocate events on the menu bar.
10017 (getMenuBarHeight): Add menu bar parameter.
10018 (menubar_resize_cb): New callback method for postSizeAllocate events.
10020 Also: Fix indentation on last ChangeLog entry.
10022 2004-01-16 Kim Ho <kho@redhat.com>
10024 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10025 (gtkWidgetGetDimensions): Remove.
10026 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10027 (gtkWidgetGetDimensions): Remove.
10029 2004-01-16 Tom Tromey <tromey@redhat.com>
10031 * java/awt/Container.java: Typo and indentation fixes.
10033 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10034 * java/lang/natVMClassLoader.cc: ...here. New file.
10035 * Makefile.in: Rebuilt.
10036 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10038 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10040 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10041 Discard GDK_ENTER_NOTIFY related to ungrabs.
10043 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10045 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10046 is called for an intermediate queue.
10048 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10050 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10051 (window_property_changed_cb): Set id_set.
10053 2004-01-16 Kim Ho <kho@redhat.com>
10055 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10056 it is a FileDialog and has dimensions of 0 by 0, then the initial
10057 size is set to size request plus insets.
10058 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10059 (gtkWidgetGetDimensions): Override method.
10060 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10061 (gtkWidgetGetDimensions): Override method. Returns size request plus
10064 2004-01-16 Andrew Haley <aph@redhat.com>
10066 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10067 * sysdep/i386/locks.h: Likewise.
10069 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10071 * java/awt/EventDispatchThread.java (run): Stop running when
10073 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10074 Reset the queue after transferring its contents.
10075 (push): Start a new dispatch thread if none is running.
10077 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10079 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10080 (doPolygon): set fill rule of polygon to
10081 WIND_EVEN_ODD by default.
10083 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10085 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10086 Implemented rendering hints related methods.
10087 (getDefaultHints): New helper method. Returns
10088 default rendering hints.
10089 (walkPath): changed to normalize path if
10090 the KEY_STROKE_CONTROL key is in "normalize" mode.
10091 (draw3DRect): changed coordinates of rectangle by +0.5
10092 if in "normalize" mode.
10094 2004-01-15 Tom Tromey <tromey@redhat.com>
10096 * Makefile.in: Rebuilt.
10097 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10098 (%.lo: %.java) Filter out StackTrace.lo.
10100 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10102 * configure.in: Add in AC_PREREQ(2.13)
10103 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10106 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10107 Tom Tromey <tromey@redhat.com>
10110 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10111 array to superclass.
10112 (init): Changed interface; add URLs here.
10113 (initialize): New static method.
10114 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10115 (_Jv_RunMain): ... not here.
10117 2004-01-14 Michael Koch <konqueror@gmx.de>
10119 * java/text/MessageFormat.java:
10120 Added descriptions to exceptions.
10121 This fixes PR libgcj/2429.
10123 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10125 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10126 (push): Make sure push is performed at the top of the thread stack.
10128 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10130 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10131 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10132 (native create): Add width and height parameters. Set text
10133 view's size request according to new parameters.
10134 (create): Calculate text view size based on current font's
10135 metrics and number of rows and columns. Set TextArea's font if
10136 not already set. Call native create.
10137 (getMinimumSize): Call minimumSize.
10138 (getPreferredSize): Call preferredSize.
10139 (getHScrollbarHeight): New method.
10140 (getVScrollbarWidth): New method.
10141 (minimumSize): Calculate minimum size based on scrollbar
10142 visibility, scrollbar sizes, font metrics and number of rows and
10144 (preferredSize): Likewise for preferred size.
10145 (gtkTextGetSize): Remove method.
10147 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10149 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10150 (initializeInsets): Remove method.
10151 (GtkComponentPeer): Initialize insets field. Remove call to
10153 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10155 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10157 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10158 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10159 (latestInsets): Remove field.
10160 (native create): Add insets parameter. Call
10161 window_get_frame_extents. Set the window's default size and
10162 size request based on its frame extents.
10163 (create): Initialize insets.
10164 (postInsetsChangedEvent): New method.
10165 (postConfigureEvent): Remove parameters top, left, bottom,
10166 right. Remove insets-related logic.
10167 (connectJObject): Handle property-notify-event.
10168 (window_get_frame_extents, request_frame_extents,
10169 property_notify_predicate, window_property_changed_cb): New
10171 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10172 (pre_event_handler): Remove insets-related logic for configure
10174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10175 Update postConfigureEvent signature.
10177 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10179 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10180 to handle Window "Closing" events.
10182 2004-01-13 David Jee <djee@redhat.com>
10184 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10185 (setBackground): New method. Children with no explicitly-set
10186 background will be repainted with the parent container's new
10189 2004-01-13 David Jee <djee@redhat.com>
10191 * Makefile.am: Add BitwiseXORComposite.java.
10192 * Makefile.in: Regenerated.
10193 * gcj/Makefile.in: Regenerated.
10194 * include/Makefile.in: Regenerated.
10195 * testsuite/Makefile.in: Regenerated.
10197 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10199 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10200 not show modal dialogs twice and so that it allows showing a modal
10201 dialog from another modal dialog.
10203 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10205 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10206 and run secondary dispatch thread to process event queue while this
10209 2004-01-12 Graydon Hoare <graydon@redhat.com>
10211 * gnu/java/awt/gtk/GdkGraphics2D.java
10212 (static): Check GtkToolkit before initializing static state.
10213 (Graphics2D): Don't construct transform with 0.5 unit offset.
10215 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10217 * gnu/java/awt/BitwiseXORComposite.java: Add.
10218 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10219 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10220 (BitwiseXORComposite): Remove inner class.
10222 2004-01-11 Michael Koch <konqueror@gmx.de>
10224 * gnu/java/lang/reflect/TypeSignature.java
10225 (getEncodingOfClass): Documentation fixed.
10226 (getClassForEncoding): Give class loader to Class.forName().
10227 Documentation fixed.
10229 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10231 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10233 2004-01-11 Michael Koch <konqueror@gmx.de>
10235 * javax/swing/undo/StateEditable.java
10236 (RCSID): Removed redundant modifiers.
10238 2004-01-10 Michael Koch <konqueror@gmx.de>
10240 * javax/print/attribute/EnumSyntax.java
10241 (getStringTable): Made protected.
10242 (getEnumValueTable): Likewise.
10243 * javax/print/attribute/standard/JobKOctetsProcessed.java
10244 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10245 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10246 (JobMediaSheetsCompleted): Made class final.
10247 * javax/print/attribute/standard/OutputDeviceAssigned.java
10248 (getName): Fixed typo.
10249 * javax/print/attribute/standard/RequestingUserName.java
10250 (serialVersionUID): Fixed value.
10252 2004-01-10 Michael Koch <konqueror@gmx.de>
10254 * javax/swing/plaf/basic/BasicButtonUI.java,
10255 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10256 javax/swing/plaf/basic/BasicListUI.java,
10257 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10258 javax/swing/plaf/basic/BasicPanelUI.java,
10259 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10260 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10261 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10262 javax/swing/plaf/basic/BasicViewportUI.java:
10263 Fixed import statements.
10265 2004-01-10 Michael Koch <konqueror@gmx.de>
10267 * gnu/java/awt/image/ImageDecoder.java
10268 (produce): Made public.
10269 * gnu/java/awt/peer/GLightweightPeer.java,
10270 gnu/java/awt/peer/gtk/GtkToolkit.java:
10273 2004-01-10 Michael Koch <konqueror@gmx.de>
10275 * javax/swing/JRadioButtonMenuItem.java,
10276 javax/swing/JSeparator.java,
10277 javax/swing/JSplitPane.java,
10278 javax/swing/JTextPane.java,
10279 javax/swing/JToolBar.java,
10280 javax/swing/ListCellRenderer.java,
10281 javax/swing/ListModel.java,
10282 javax/swing/MenuElement.java,
10283 javax/swing/OverlayLayout.java,
10284 javax/swing/ProgressMonitor.java,
10285 javax/swing/ProgressMonitorInputStream.java,
10286 javax/swing/Renderer.java,
10287 javax/swing/RootPaneContainer.java,
10288 javax/swing/Scrollable.java,
10289 javax/swing/SingleSelectionModel.java,
10290 javax/swing/ToolTipManager.java,
10291 javax/swing/ViewportLayout.java,
10292 javax/swing/event/DocumentEvent.java,
10293 javax/swing/event/SwingPropertyChangeSupport.java,
10294 javax/swing/event/TreeSelectionEvent.java,
10295 javax/swing/event/UndoableEditEvent.java,
10296 javax/swing/text/AbstractDocument.java,
10297 javax/swing/text/AttributeSet.java,
10298 javax/swing/text/Caret.java,
10299 javax/swing/text/ComponentView.java,
10300 javax/swing/text/DefaultCaret.java,
10301 javax/swing/text/DefaultEditorKit.java,
10302 javax/swing/text/Document.java,
10303 javax/swing/text/EditorKit.java,
10304 javax/swing/text/GapContent.java,
10305 javax/swing/text/Keymap.java,
10306 javax/swing/text/MutableAttributeSet.java,
10307 javax/swing/text/PlainEditorKit.java,
10308 javax/swing/text/Segment.java,
10309 javax/swing/text/Style.java,
10310 javax/swing/text/StyledDocument.java,
10311 javax/swing/text/StyledEditorKit.java,
10312 javax/swing/text/TextAction.java,
10313 javax/swing/text/View.java: Fixed import statements.
10315 2004-01-08 Graydon Hoare <graydon@redhat.com>
10317 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10318 djee@redhat.com's recent inverse ordering of Container elements.
10320 2004-01-09 Michael Koch <konqueror@gmx.de>
10322 * gnu/java/lang/ArrayHelper.java
10323 (equalsArray): Removed.
10325 2004-01-09 Andrew Haley <aph@redhat.com>
10327 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10328 a Utf8Const field before looking at its class.
10330 2004-01-09 Michael Koch <konqueror@gmx.de>
10332 * javax/print/attribute/standard/DocumentName.java,
10333 javax/print/attribute/standard/JobHoldUntil.java,
10334 javax/print/attribute/standard/JobMessageFromOperator.java,
10335 javax/print/attribute/standard/JobName.java,
10336 javax/print/attribute/standard/JobOriginatingUserName.java,
10337 javax/print/attribute/standard/OutputDeviceAssigned.java,
10338 javax/print/attribute/standard/PrinterInfo.java,
10339 javax/print/attribute/standard/PrinterLocation.java,
10340 javax/print/attribute/standard/PrinterMakeAndModel.java,
10341 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10342 javax/print/attribute/standard/PrinterName.java,
10343 javax/print/attribute/standard/RequestingUserName.java: New files.
10344 * Makefile.am (javax_source_files): Added new files.
10345 * Makefile.in: Regenerated.
10347 2004-01-09 Michael Koch <konqueror@gmx.de>
10349 * javax/swing/AbstractAction.java,
10350 javax/swing/AbstractSet.java,
10351 javax/swing/Action.java,
10352 javax/swing/ActionMap.java,
10353 javax/swing/BoundedRangeModel.java,
10354 javax/swing/ButtonModel.java,
10355 javax/swing/CellEditor.java,
10356 javax/swing/CellRendererPane.java,
10357 javax/swing/ComboBoxEditor.java,
10358 javax/swing/DebugGraphics.java,
10359 javax/swing/DefaultCellEditor.java,
10360 javax/swing/DefaultCellRenderer.java,
10361 javax/swing/DefaultComboBoxModel.java,
10362 javax/swing/DefaultDesktopManager.java,
10363 javax/swing/DefaultFocusManager.java,
10364 javax/swing/DefaultListCellRenderer.java,
10365 javax/swing/Icon.java,
10366 javax/swing/JButton.java,
10367 javax/swing/JCheckBoxMenuItem.java,
10368 javax/swing/JDesktopPane.java,
10369 javax/swing/JEditorPane.java,
10370 javax/swing/JMenu.java,
10371 javax/swing/JPanel.java,
10372 javax/swing/JPasswordField.java,
10373 javax/swing/JPopupMenu.java,
10374 javax/swing/JProgressBar.java: Reworked imports.
10376 2004-01-09 Michael Koch <konqueror@gmx.de>
10378 * java/awt/geom/PathIterator.java
10379 (WIND_EVEN_ODD): Removed redundant modifiers.
10380 (WIND_NON_ZERO): Likewise.
10381 (SEG_MOVETO): Likewise.
10382 (SEG_LINETO): Likewise.
10383 (SEG_QUADTO): Likewise.
10384 (SEG_CUBICTO): Likewise.
10385 (SEG_CLOSE): Likewise.
10386 * java/awt/image/SinglePixelPackedSampleModel.java:
10387 Removed redundant semicolon.
10388 * java/io/ObjectInputStream.java
10389 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10390 * java/util/logging/Filter.java
10391 (isLoggable): Removed redundant modifier.
10392 * java/util/logging/LogManager.java:
10393 Removed redundant semicolon.
10394 * java/util/logging/XMLFormatter.java
10395 (format): Removed unused variable "key".
10397 2004-01-08 Fernando Nasser <fnasser@redhat.com>
10399 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
10400 New name for the former setFile native method.
10401 (setFile): New method.
10402 (setDirectory): Implemented.
10403 (connectSignals): New native method.
10404 (setFilenameFilter): Improve comment.
10405 (getGraphics): Comment.
10406 (gtkHideFileDialog): New method.
10407 (gtkDisposeFileDialog): New method.
10408 (gtkSetFilename): New method.
10409 * java/awt/Dialog.java (show): Block on modal dialogs, but only
10410 for FileDialog for now.
10411 (hide): New method.
10412 (dispose): New method.
10413 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
10414 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
10415 deprecated creation functions. Make dialog modal. Add it to the
10417 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
10419 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
10421 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
10423 (window_closed): New function.
10424 (ok_clicked): New function.
10425 (cancel_clicked): New function.
10427 2004-01-08 Michael Koch <konqueror@gmx.de>
10429 * javax/swing/JLayeredPane.java: Revert changes to standard
10430 boilerplate, reworked imports.
10432 2004-01-07 Tom Tromey <tromey@redhat.com>
10435 * verify.cc (state::merge): Copy changed locals out of subroutine
10437 (state::FLAG_CHANGED): New const.
10438 (state::FLAG_UNUSED): Likewise.
10439 (state::local_changed): Removed. Updated all users.
10440 (state::flags): New field.
10441 (state::merge): Added jsr_semantics argument, more logic.
10442 (push_jump_merge): Added jsr_semantics argument.
10443 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
10444 merging through the jsr instruction.
10446 2004-01-07 Tom Tromey <tromey@redhat.com>
10448 * scripts/MakeDefaultMimeTypes.java: Use \n, not
10451 2004-01-07 Graydon Hoare <graydon@redhat.com>
10453 * java/awt/Container.java (LightweightDispatcher): Implement.
10454 (visitChild): Reuse graphics object.
10455 (dispatchEventImpl): Optionally dispatch to lightweight.
10456 (addNotifyContainerChildren): Build LightweightDispatcher.
10458 2004-01-07 David Jee <djee@redhat.com>
10460 * java/awt/Container.java
10461 (update): Clear only the clipped region, instead of clearing the
10463 (visitChildren): Visit children in descending order.
10465 2004-01-07 Michael Koch <konqueror@gmx.de>
10467 * java/lang/reflect/Array.java: Merged documentation with classpath.
10469 2004-01-07 Michael Koch <konqueror@gmx.de>
10471 * java/text/CollationElementIterator.java
10472 (textIndex): Renamed from index.
10473 * java/text/CollationKey.java
10474 (collator): New member.
10475 (CollationKey): New argument for parent collator.
10476 (equals): Check for same collator, source string and key array.
10477 * java/text/RuleBasedCollator.java:
10479 (RuleBasedCollator): Don't re-initialize frenchAccents with default
10481 (getCollationElementIterator): Rewritten.
10482 (getCollationKey): Added new argument to CollationKey constructor.
10484 2004-01-07 Michael Koch <konqueror@gmx.de>
10486 * gnu/java/nio/DatagramChannelImpl.java
10487 (blocking): Removed.
10488 (DatagramChannelImpl): Call configureBlocking().
10489 (implConfigureBlocking): Dont initialize blocking.
10490 * gnu/java/nio/ServerSocketChannelImpl.java
10491 (blocking): Removed.
10492 (ServerSocketChannelImpl): Call configureBlocking().
10493 (implConfigureBlocking): Dont initialize blocking.
10494 * gnu/java/nio/SocketChannelImpl.java
10495 (blocking): Removed.
10496 (SocketChannelImpl): Call configureBlocking().
10497 (implConfigureBlocking): Dont initialize blocking.
10498 (connect): Use isBlocking().
10499 * java/nio/channels/spi/AbstractSelectableChannel.java
10500 (configureBlocking): Use blockingLock() instead of LOCK.
10501 Set blocking after successfully called implConfigureBlocking().
10502 (register): Use blockingLock() instead of LOCK.
10504 2004-01-07 Michael Koch <konqueror@gmx.de>
10506 * java/net/ServerSocket.java (isBound): Fixed documentation.
10508 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
10510 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
10511 (changeEvent): Create event object on demand.
10512 (DefaultBoundedRangeModel, toString, setValue, setExtent,
10513 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
10514 fireStateChanged): Re-written.
10515 * javax/swing/event/EventListenerList.java: Reformatted, document
10517 (toString): Implemented.
10518 (getListeners): Re-written.
10519 (remove): Re-written.
10521 (NO_LISTENERS): New singleton field.
10522 (listenerList): Declare as transient; document.
10523 (serialVersionUID): Document.
10524 (getListenerCount(Class)): More efficient implementation,
10525 also accepts null argument. Improve Javadoc.
10526 (getListenerCount()): Remove unnecessary cast; docfix.
10527 * javax/swing/undo/UndoableEditSupport.java:
10528 Re-format, document.
10529 (UndoableEditSupport): Set realSource field. Improve documentation.
10530 (_postEdit): Iterate over cloned listener vector.
10531 (toString): Don't emit realSource.
10532 (beginUpdate, endUpdate): Support nested updates.
10533 (postEdit): Use compound edit if present.
10535 2004-01-06 Graydon Hoare <graydon@redhat.com>
10537 * java/awt/Container.java (swapComponents): Add forgotten
10538 function, required for JLayeredPane change.
10540 2004-01-06 Michael Koch <konqueror@gmx.de>
10542 * java/text/CollationElementIterator.java: Reformated.
10543 (CollationElementIterator): Changed order of arguments.
10544 * java/text/RuleBasedCollator.java
10545 (RuleBasedCollator): Merged class documentation.
10546 (CollationElement): Added documentation.
10547 (compare): Reformated, renamed arguments.
10548 (equals): Likewise.
10549 (getCollationElementIterator): Likewise.
10550 (getCollationKey): Likewise.
10552 2004-01-06 Graydon Hoare <graydon@redhat.com>
10554 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
10556 2004-01-06 Michael Koch <konqueror@gmx.de>
10558 * gnu/java/net/protocol/file/Connection.java:
10559 Reformated copyright.
10560 (hdrHash): Removed.
10562 (gotHeaders): Removed.
10563 (getHeaderField): Removed.
10564 (getHeaderField): Removed.
10565 (getHeaderFieldKey): Removed.
10567 (getField): Removed.
10568 (getHeaders): Removed.
10570 2004-01-06 Michael Koch <konqueror@gmx.de>
10572 * javax/print/attribute/standard/DateTimeAtCompleted.java,
10573 javax/print/attribute/standard/DateTimeAtCreation.java,
10574 javax/print/attribute/standard/DateTimeAtProcessing.java,
10575 javax/print/attribute/standard/JobImpressionsCompleted.java,
10576 javax/print/attribute/standard/JobKOctets.java,
10577 javax/print/attribute/standard/JobKOctetsProcessed.java,
10578 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
10579 javax/print/attribute/standard/JobPrioritySupported.java: New files.
10580 * Makefile.am (javax_source_files): Added new files.
10581 * Makefile.in: Regenerated.
10583 2004-01-06 Michael Koch <konqueror@gmx.de>
10585 * java/net/URLConnection.java
10586 (contentHandler): Removed.
10588 (getHeaderFields): Return an empty map instead of null.
10589 (getContent): Connect if needed, renamed "cType" to "type" and
10590 "contentHandler" to "ch" and made it a local variable.
10591 (getPermission): Don't use package in class name.
10592 (setDefaultRequestProperty): Fixed typo in documentation.
10593 (initializeDateFormats): Made locale a local variable.
10595 2004-01-06 Michael Koch <konqueror@gmx.de>
10597 * java/lang/Package.java
10598 (getPackage): Get the current class loader directly.
10599 * java/lang/SecurityManager.java
10600 (currentLoadedClass): Dont iterate over class contexts.
10601 (classLoaderDepth): Don't check class loaders if everything is allowed.
10603 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10605 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10606 (pre_event_handler): Set all insets to 0 when a Configure event
10607 is received for a GtkPlug.
10608 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
10609 Make handle long, not int.
10610 (EmbeddedWindow()): New constructor.
10611 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
10613 (setHandle): New method.
10614 (getHandle): Return long, not int.
10615 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
10617 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
10618 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
10619 (create(long)): Take long parameter, not int. Cast gtk_plug_new
10620 argument to GdkNativeWindow.
10621 (construct): New method.
10622 (embed): New method.
10624 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
10625 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
10626 (create(int, int)): New method.
10627 (create): Call new create method.
10628 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
10630 (childResized): Remove native implementation. Implement in
10632 (getHScrollbarHeight, getVScrollbarWidth): Call
10633 gtk_widget_size_request to get scrollbar dimensions.
10634 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
10635 call getVScrollbarWidth and getHScrollbarHeight when vertical
10636 and horizontal scrollbars respectively are needed.
10637 (doLayout): Enlarge child if it is smaller than the viewport.
10639 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10641 * java/awt/Dialog.java (constructor): Accept null title as per spec.
10642 * java/awt/FileDialog.java (constructor): Throw exception on invalid
10643 argument as per spec.
10645 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10647 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
10649 (remove): Ditto. Also, Check for valid argument.
10650 (removeAll): Use peer interface method.
10651 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
10652 native add function.
10653 (nativeRemove): New name for native remove function.
10654 (getHistory): New native function.
10655 (constructor): Generate ItemEvent.
10656 (add): Ditto, if selection is changed.
10657 (remove): Ditto, ditto.
10658 (removeAll): Add implementation.
10659 (handleEvent): Remove. Dead code.
10660 (choicePostItemEvent): Add comment.
10661 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
10662 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
10663 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
10664 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
10665 comments and fix condition to change selection.
10666 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
10667 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
10668 remove all capability.
10669 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
10670 (item_activate): Add cast to remove compiler warning.
10672 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10674 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
10675 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10676 (getPreferredSize): Call preferredSize.
10677 (preferredSize): Call gtkWidgetGetPreferredDimensions.
10678 (getMinimumSize): Call minimumSize.
10679 (minimumSize): Call gtkWidgetGetPreferredDimensions.
10680 (gtkWidgetGetDimensions): Return the peer widget's current size
10682 (gtkWidgetGetPreferredDimensions): Return the peer widget's
10683 natural size request.
10685 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
10687 Thanks to Brian Gough <bjg@network-theory.com>
10688 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
10689 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
10691 2004-01-04 Matthias Klose <doko@debian.org>
10693 * aclocal.m4: Rebuilt using "aclocal -I .".
10694 * configure: Rebuilt.
10696 2004-01-03 Per Bothner <per@bothner.com>
10698 * java/util/Date.java (parse): Fix a number of problems.
10699 (skipParens): Remove no-longer-needed method.