1 2004-09-22 Tom Tromey <tromey@redhat.com>
4 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
6 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
8 (read()): New overload.
10 2004-09-21 Tom Tromey <tromey@redhat.com>
12 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
15 2004-09-21 Michael Koch <konqueror@gmx.de>
17 * java/net/Socket.java
18 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
20 2004-09-21 Casey Marshall <csm@gnu.org>
22 * javax/crypto/MacSpi.java (clone): Provide meaningful
25 2004-09-21 Tom Tromey <tromey@redhat.com>
28 * Makefile.in: Rebuilt.
29 * Makefile.am (MOSTLYCLEANFILES): Removed.
30 (mostlyclean-local): Remove header files.
32 2004-09-21 Casey Marshall <csm@gnu.org>
34 * java/security/cert/X509CRLSelector.java:
35 (match): remove unreachable try-catch clauses.
36 Reported by: Dalibor Topic <robilad@kaffe.org>
38 2004-09-21 Mark Wielaard <mark@klomp.org>
40 * java/util/TreeMap.java (root): Don't initialize.
41 (TreeMap(Comparator)): Call fabricateTree(0).
42 (fabricateTree): Initialize root and size when count is 0.
44 2004-09-21 Sven de Marothy <sven@physto.se>
46 * java/nio/ByteBuffer.java (hashCode): Implemented.
47 * java/nio/CharBuffer.java: Likewise.
48 * java/nio/DoubleBuffer.java: Likewise.
49 * java/nio/FloatBuffer.java: Likewise.
50 * java/nio/LongBuffer.java: Likewise.
51 * java/nio/IntBuffer.java: Likewise.
52 * java/nio/ShortBuffer.java: Likewise.
54 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
56 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
58 2004-09-21 Michael Koch <konqueror@gmx.de>
60 * javax/net/ssl/SSLServerSocket.java:
61 Removed comment about "Do not edit this file, it's generated.".
63 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
65 Import the big Crypto/Jessie/Security merge from Classpath.
67 * Makefile.am: Add imported files.
68 * Makefile.in: Regenerate.
70 2004-08-14 Casey Marshall <csm@gnu.org>
72 The Big Crypto Merge of 2004.
74 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
77 Files imported from GNU Crypto.
78 * javax/crypto/BadPaddingException.java
79 * javax/crypto/Cipher.java
80 * javax/crypto/CipherInputStream.java
81 * javax/crypto/CipherOutputStream.java
82 * javax/crypto/CipherSpi.java
83 * javax/crypto/EncryptedPrivateKeyInfo.java
84 * javax/crypto/ExemptionMechanism.java
85 * javax/crypto/ExemptionMechanismException.java
86 * javax/crypto/ExemptionMechanismSpi.java
87 * javax/crypto/IllegalBlockSizeException.java
88 * javax/crypto/KeyAgreement.java
89 * javax/crypto/KeyAgreementSpi.java
90 * javax/crypto/KeyGenerator.java
91 * javax/crypto/KeyGeneratorSpi.java
92 * javax/crypto/Mac.java
93 * javax/crypto/MacSpi.java
94 * javax/crypto/Makefile.am
95 * javax/crypto/NoSuchPaddingException.java
96 * javax/crypto/NullCipher.java
97 * javax/crypto/NullCipherImpl.java
98 * javax/crypto/SealedObject.java
99 * javax/crypto/SecretKey.java
100 * javax/crypto/SecretKeyFactory.java
101 * javax/crypto/SecretKeyFactorySpi.java
102 * javax/crypto/ShortBufferException.java
103 * javax/crypto/interfaces/DHKey.java
104 * javax/crypto/interfaces/DHPrivateKey.java
105 * javax/crypto/interfaces/DHPublicKey.java
106 * javax/crypto/interfaces/PBEKey.java
107 * javax/crypto/spec/DESKeySpec.java
108 * javax/crypto/spec/DESedeKeySpec.java
109 * javax/crypto/spec/DHGenParameterSpec.java
110 * javax/crypto/spec/DHParameterSpec.java
111 * javax/crypto/spec/DHPrivateKeySpec.java
112 * javax/crypto/spec/DHPublicKeySpec.java
113 * javax/crypto/spec/IvParameterSpec.java
114 * javax/crypto/spec/PBEKeySpec.java
115 * javax/crypto/spec/PBEParameterSpec.java
116 * javax/crypto/spec/RC2ParameterSpec.java
117 * javax/crypto/spec/RC5ParameterSpec.java
118 * javax/crypto/spec/SecretKeySpec.java
119 * javax/security/auth/AuthPermission.java
120 * javax/security/auth/DestroyFailedException.java
121 * javax/security/auth/Destroyable.java
122 * javax/security/auth/Policy.java
123 * javax/security/auth/PrivateCredentialPermission.java
124 * javax/security/auth/RefreshFailedException.java
125 * javax/security/auth/Refreshable.java
126 * javax/security/auth/Subject.java
127 * javax/security/auth/SubjectDomainCombiner.java
128 * javax/security/auth/callback/Callback.java
129 * javax/security/auth/callback/CallbackHandler.java
130 * javax/security/auth/callback/ChoiceCallback.java
131 * javax/security/auth/callback/ConfirmationCallback.java
132 * javax/security/auth/callback/LanguageCallback.java
133 * javax/security/auth/callback/NameCallback.java
134 * javax/security/auth/callback/PasswordCallback.java
135 * javax/security/auth/callback/TextInputCallback.java
136 * javax/security/auth/callback/TextOutputCallback.java
137 * javax/security/auth/callback/UnsupportedCallbackException.java
138 * javax/security/auth/login/AccountExpiredException.java
139 * javax/security/auth/login/AppConfigurationEntry.java
140 * javax/security/auth/login/Configuration.java
141 * javax/security/auth/login/CredentialExpiredException.java
142 * javax/security/auth/login/FailedLoginException.java
143 * javax/security/auth/login/LoginContext.java
144 * javax/security/auth/login/LoginException.java
145 * javax/security/auth/login/NullConfiguration.java
146 * javax/security/auth/x500/X500PrivateCredential.java
147 * javax/security/sasl/AuthenticationException.java
148 * javax/security/sasl/AuthorizeCallback.java
149 * javax/security/sasl/RealmCallback.java
150 * javax/security/sasl/RealmChoiceCallback.java
151 * javax/security/sasl/Sasl.java
152 * javax/security/sasl/SaslClient.java
153 * javax/security/sasl/SaslClientFactory.java
154 * javax/security/sasl/SaslException.java
155 * javax/security/sasl/SaslServer.java
156 * javax/security/sasl/SaslServerFactory.java
157 * org/ietf/jgss/ChannelBinding.java
158 * org/ietf/jgss/GSSContext.java
159 * org/ietf/jgss/GSSCredential.java
160 * org/ietf/jgss/GSSException.java
161 * org/ietf/jgss/GSSManager.java
162 * org/ietf/jgss/GSSName.java
163 * org/ietf/jgss/MessageProp.java
164 * org/ietf/jgss/Oid.java
165 * org/ietf/jgss/MessagesBundle.properties
167 Files imported from Jessie <http://www.nongnu.org/jessie/>
168 * javax/net/ServerSocketFactory.java
169 * javax/net/SocketFactory.java
170 * javax/net/VanillaServerSocketFactory.java
171 * javax/net/VanillaSocketFactory.java
172 * javax/net/ssl/HandshakeCompletedEvent.java
173 * javax/net/ssl/HandshakeCompletedListener.java
174 * javax/net/ssl/HostnameVerifier.java
175 * javax/net/ssl/HttpsURLConnection.java
176 * javax/net/ssl/KeyManager.java
177 * javax/net/ssl/KeyManagerFactory.java
178 * javax/net/ssl/KeyManagerFactorySpi.java
179 * javax/net/ssl/ManagerFactoryParameters.java
180 * javax/net/ssl/SSLContext.java
181 * javax/net/ssl/SSLContextSpi.java
182 * javax/net/ssl/SSLException.java
183 * javax/net/ssl/SSLHandshakeException.java
184 * javax/net/ssl/SSLKeyException.java
185 * javax/net/ssl/SSLPeerUnverifiedException.java
186 * javax/net/ssl/SSLPermission.java
187 * javax/net/ssl/SSLProtocolException.java
188 * javax/net/ssl/SSLServerSocket.java
189 * javax/net/ssl/SSLServerSocketFactory.java
190 * javax/net/ssl/SSLSession.java
191 * javax/net/ssl/SSLSessionBindingEvent.java
192 * javax/net/ssl/SSLSessionBindingListener.java
193 * javax/net/ssl/SSLSessionContext.java
194 * javax/net/ssl/SSLSocket.java
195 * javax/net/ssl/SSLSocketFactory.java
196 * javax/net/ssl/TrivialHostnameVerifier.java
197 * javax/net/ssl/TrustManager.java
198 * javax/net/ssl/TrustManagerFactory.java
199 * javax/net/ssl/TrustManagerFactorySpi.java
200 * javax/net/ssl/X509KeyManager.java
201 * javax/net/ssl/X509TrustManager.java
202 * javax/security/cert/Certificate.java
203 * javax/security/cert/CertificateEncodingException.java
204 * javax/security/cert/CertificateException.java
205 * javax/security/cert/CertificateExpiredException.java
206 * javax/security/cert/CertificateNotYetValidException.java
207 * javax/security/cert/CertificateParsingException.java
208 * javax/security/cert/X509CertBridge.java
209 * javax/security/cert/X509Certificate.java
211 2004-08-20 Casey Marshall <csm@gnu.org>
213 * java/security/cert/X509CRLSelector.java: New file.
214 * java/security/cert/X509CertSelector.java: New file.
216 2004-09-15 Michael Koch <konqueror@gmx.de>
218 * gnu/java/net/protocol/file/Handler.java
219 (openConnection): Don't throw exception if host part for file: URI is
220 present. setURL() keeps file: protocol if ftp: protocol is not
223 2004-09-14 Richard Henderson <rth@redhat.com>
225 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
228 2004-09-12 Tom Tromey <tromey@redhat.com>
230 * javax/naming/CompoundName.java (CompoundName): Don't check for
231 separator in "flat" case.
233 2004-09-12 Michael Koch <konqueror@gmx.de>
235 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
236 AM_CONFIG_HEADER by AC_CONFIG_FILES.
237 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
240 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
243 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
244 handle in newly-allocated _Jv_Thread_t.
245 (_Jv_ThreadDestroyData): Close thread handle.
246 (_Jv_ThreadStart): Remove obsolete comment.
247 Store handle of newly-created thread in _Jv_Thread_t.
248 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
249 before including <windows.h>
250 #define _Jv_HaveCondDestroy
252 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
254 * java/lang/natThread.cc (finalize_native): Destroy
255 join conditional variable and mutex if these destroy
256 operations are supported.
258 2004-09-10 Dalibor Topic <robilad@kaffe.org>
260 * gnu/java/net/protocol/file/Connection.java (permission): New field.
261 (DEFAULT_PERMISSION): New constant.
262 (Connection): Create a FilePermission with permission to read file.
264 2004-09-10 Michael Koch <konqueror@gmx.de>
266 * gnu/java/net/protocol/file/Connection.java
267 (getLastModified): Moved around.
268 (getPermission): Return stored permission.
270 2004-09-10 Michael Koch <konqueror@gmx.de>
272 * Makefile.in: Regenerate.
274 2004-09-10 Michael Koch <konqueror@gmx.de>
276 * Makefile.am: Reverted accidently commited stuff.
277 * configure: Regenerated.
279 2004-09-10 Michael Koch <konqueror@gmx.de>
281 * gnu/java/net/protocol/file/Connection.java
282 (lineSeparator): Made non-final.
284 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
285 instead of StringBufferInputStream.
287 2004-09-10 Michael Koch <konqueror@gmx.de>
289 * gnu/java/net/protocol/file/Connection.java
290 (connect): Handle file is a directory case.
292 2004-09-10 Michael Koch <konqueror@gmx.de>
295 (xlib_includes): Removed.
296 (AM_CPPFLAGS): Renamed from INCLUDES.
297 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
298 * Makefile.in: Regenerate.
300 2004-09-09 Michael Koch <konqueror@gmx.de>
302 * java/security/ProtectionDomain.java,
303 * java/util/PropertyPermissionCollection.java:
304 Fixed javadocs all over.
306 2004-09-09 Sven de Marothy <sven@physto.se>
308 Patch from David Gilbert <david.gilbert@object-refinery.com>
309 * java/lang/Comparable.java: Fixed documentation errors.
310 * java/util/Arrays.java: Likewise.
312 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
314 * java/net/Inet4Address.java
315 (Inet4Address): Added comment to serialization UID.
316 * java/text/Format.java
317 (Format): Added comment to serialization UID.
319 2004-09-09 Michael Koch <konqueror@gmx.de>
321 * java/lang/System.java
322 (err): Fixed javadoci to point to setErr() and not setOut().
324 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
326 (normalizePath): Added special case for windows systems.
328 2004-09-09 Michael Koch <konqueror@gmx.de>
331 (dupSeparator): Made private.
332 (File(URI)): New constructor.
333 (getParentFile): Fixed javadoc.
334 (createTempFile): Reformated.
335 (setReadOnly): Added comment.
336 (deleteOnExit): Merged javadoc with classpath version.
338 2004-09-09 Michael Koch <konqueror@gmx.de>
340 * Makefile.am: Don't try to include deps.mk.
341 * Makefile.in: Regenerated.
343 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
345 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
347 * configure: Rebuilt.
349 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
351 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
352 Changed pfn from static local to local.
354 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
355 H.J. Lu <hongjiu.lu@intel.com>
358 * Makefile.am (GCJCOMPILE): Remove definition.
359 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
360 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
361 * Makefile.in: Rebuilt.
363 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
365 * configure.ac (enable-gc-debug): Update help for new syntax.
366 * configure: Regenerate.
368 2004-09-03 David Daney <ddaney@avtrex.com>
370 * include/mips-signal.h: Update copyright.
372 2004-09-03 David Daney <ddaney@avtrex.com>
374 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
375 * include/mips-signal.h: Added HANDLE_FPE support.
377 2004-08-31 Michael Koch <konqueror@gmx.de>
379 * javax/swing/plaf/basic/BasicTextAreaUI.java
380 (create): New method.
381 * javax/swing/text/DefaultHighlighter.java
382 (DefaultHighlightPainter.debugRect): Removed.
383 * javax/swing/text/StyleContext.java
384 (DEFAULT_STYLE): New field.
386 2004-08-31 Michael Koch <konqueror@gmx.de>
388 * javax/swing/plaf/basic/BasicLookAndFeel.java
389 (initComponentDefaults): Add keybindings for selection.backward and
390 selection-forward for text components.
391 * javax/swing/plaf/basic/BasicTextUI.java
392 (paintSafely): Paint highlight only when something is actually
394 * javax/swing/text/DefaultCaret.java
395 (handleHighlight): New method.
396 (setSelectionVisible): Don't do anything when nothing changes.
398 (moveDot): Reimplemented. Handle highlight.
399 (setDot): Set mark too. Handle highlight.
400 (getSelectionPainter): New method.
401 * javax/swing/text/DefaultEditorKit.java
402 (defaultActions): Added new actions for text selection.
403 * javax/swing/text/DefaultHighlighter.java
404 (DefaultHighlightPainter): New inner class.
405 (DefaultPainter): New field.
406 (paint): Implemented.
407 * javax/swing/text/PlainView.java
408 (paint): Don't draw background here again.
409 * javax/swing/text/Utilities.java
410 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
411 (drawTabbedText): Likewise.
413 2004-08-31 Graydon Hoare <graydon@redhat.com>
415 * javax/swing/JComponent.java
416 (resetKeyboardActions): Add null checks.
418 2004-08-31 Graydon Hoare <graydon@redhat.com>
420 * javax/swing/DefaultButtonModel.java:
421 Skip group notification when no group is set.
423 2004-08-31 Graydon Hoare <graydon@redhat.com>
425 * javax/swing/JColorChooser.java:
426 Make a couple inner classes static, for jikes.
428 2004-08-31 Michael Koch <konqueror@gmx.de>
430 * javax/swing/plaf/basic/BasicTextUI.java
431 (RottView.modelToView): New method.
432 (UpdateHandler): Renamed from EventHandler.
433 (updateHandler): Renamed from eventHandler.
434 (modelToView): Implemented.
435 * javax/swing/text/AbstractDocument.java
436 (BranchElement.getElement): Return null for non-existing indeces.
437 (BranchElement.getElementIndex): Return 0 in some corner cases.
438 * javax/swing/text/FieldView.java
439 (modelToView): New method.
440 * javax/swing/text/PlainView.java
441 (modelToView): Made public.
443 2004-08-31 Kim Ho <kho@redhat.com>
445 * Makefile.am: New files.
446 * Makefile.in: Regenerate.
447 * gcj/Makefile.in: Regenerate.
448 * include/Makefile.in: Regenerate.
449 * java/awt/Color.java: Fix documentation.
450 (RGBtoHSB): Use floats for conversions.
451 * javax/swing/ButtonGroup.java: Run Jalopy.
452 (setSelected): Reimplement.
453 * javax/swing/DefaultButtonModel.java: Run Jalopy.
454 (changeState): Let ButtonGroup know that the button
456 * javax/swing/JColorChooser.java: Implement.
457 * javax/swing/JLabel.java: Run Jalopy.
458 * javax/swing/JSpinner.java: Run Jalopy.
459 (setValue): New method.
460 * javax/swing/JTabbedPane.java: Run Jalopy.
461 (removeTabAt): Call correct remove method.
462 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
463 (getPreviousValue): Compare minimum value.
464 * javax/swing/Timer.java: Run Jalopy.
465 (run): Comment out println.
466 * javax/swing/ToolTipManager.java:
467 (mouseMoved): Get new tooltip text for location.
468 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
470 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
472 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
474 (setSelectedColor): Fire ChangeEvent.
475 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
477 * javax/swing/colorchooser/DefaultPreviewPanel.java:
479 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
481 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
483 * javax/swing/plaf/basic/BasicArrowButton.java:
484 (getArrow): Fix size of upward pointing button.
485 * javax/swing/plaf/basic/BasicColorChooserUI.java:
487 * javax/swing/plaf/basic/BasicSliderUI.java:
488 (getWidthOfWidestLabel): Use preferred dimensions.
489 (getHeightOfTallestLabel): Ditto.
490 * javax/swing/plaf/basic/BasicSpinnerUI.java:
492 (mousePressed): Disable changes to spinner if it is not enabled.
493 * testsuite/Makefile.in: Regenerate.
496 2004-08-31 Michael Koch <konqueror@gmx.de>
498 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
499 javax/swing/plaf/basic/BasicTableUI.java:
500 Added copyright notice.
502 2004-08-31 Olga Rodimina <rodimina@redhat.com>
504 * Makefile.am: Added new files.
505 * Makefile.in: Regenerate.
506 * javax/swing/ComboBoxEditor.java: Added javadocs.
507 * javax/swing/ComboBoxModel.java: Likewise.
508 * javax/swing/DefaultComboBoxModel.java: Implemented.
509 * javax/swing/DefaultListCellRenderer.java: Added javadocs
510 and ran through jalopy to fix formatting style.
511 (getListCellRendererComponent): Use appropriate border
512 if renderer has focus and use noFocusBorder when it doesn't.
513 * javax/swing/JComboBox.java: Implemented.
514 * javax/swing/JList.java:
515 (locationToIndex): New Method. Implemented.
516 (indexToLocation): New Method.
517 * javax/swing/JPopupMenu.java:
518 (visible): New field.
519 (isVisible): Changed to use new field above.
520 (setVisible): Likewise.
521 * javax/swing/MutableComboBoxModel.java: Added javadocs.
522 * javax/swing/plaf/basic/BasicArrowButton.java:
523 (shadow): Changed default color to Color.gray.
524 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
525 UI delegate for JComboBox.
526 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
527 Popup menu containing list of JComboBox's items.
528 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
529 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
530 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
531 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
532 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
533 (popupMenuWillBecomeVisible): Set selected path to the first
534 element only if it is of type MenuElement. Also fix formatting
536 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
539 2004-08-31 Michael Koch <konqueror@gmx.de>
541 * javax/swing/text/AbstractDocument.java
542 (createBranchElement): Use new constructor of BranchElement.
543 (createLeafElement): Renamed arguments.
544 (getRootElements): Implemented.
545 (BranchElement.start): Removed.
546 (BranchElement.end): Likewise.
547 (BranchElement.BranchElement): Fixed arguments.
548 (BranchElement.getEndOffset): Reimplemented.
549 (BranchElement.getStartOffset): Likewis.
550 * javax/swing/text/DefaultCaret.java
551 (paint): Draw simple vertical line as caret instead of a rectangle.
552 * javax/swing/text/JTextComponent.java
553 (setText): Use doc directly.
554 * javax/swing/text/PlainView.java
555 (nextTabStop): Implemented.
556 * javax/swing/text/Utilities.java
557 (drawTabbedText): nextTabStop() returns an absolute x position.
558 (getTabbedTextWidth): Likewise.
560 2004-08-31 Graydon Hoare <graydon@redhat.com>
562 * java/awt/Component.java
563 (isFocusTraversable): Predicate on isLightweight()
564 (setFocusable): Set isFocusTraversableOverridden.
565 (requestFocus): Predicate peer dispatch on !isLightweight()
566 (requestFocusInWindow): Likewise.
567 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
568 * java/awt/Container.java
569 (dispatchEventImpl): Predicate on event mask.
570 (LightweightDispatcher): Remove focus machinery.
571 * java/awt/DefaultFocusTraversalPolicy.java
572 (accept): Expand predicate to include isFocusable().
573 * java/awt/DefaultKeyboardFocusManager.java:
574 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
575 * java/awt/KeyboardFocusManager.java
576 (redispatchEvent): Synchronize on event to prevent feedback.
577 * javax/swing/AbstractButton.java
578 (ButtonFocusListener): Remove class.
579 (init): Set focusPainted, focusable.
580 * javax/swing/ActionMap.java (get): Check parent for null.
581 * javax/swing/InputMap.java (get): Likewise.
582 * javax/swing/JComponent.java
583 (inputMap_whenFocused): New InputMap.
584 (inputMap_whenAncestorOfFocused): Likewise.
585 (inputMap_whenInFocusedWindow): Likewise.
586 (getActionForKeyStroke): Rewrite.
587 (getConditionForKeystroke): Likewise.
588 (ActionListenerProxy): New private class.
589 (setInputMap): Implement.
590 (getInputMap): Likewise.
591 (setActionMap): Likewise.
592 (getActionMap): Likewise.
593 (processComponentKeyEvent): New empty method.
594 (processKeyEvent): Implement.
595 (processKeyBinding): Likewise.
596 (resetKeyboardActions): Rewrite.
597 * javax/swing/KeyStroke.java: Rewrite.
598 * javax/swing/SwingUtilities.java
599 (notifyAction): Implement.
600 (replaceUIActionMap): Likewise.
601 (replaceUIInputMap): Likewise.
602 * javax/swing/plaf/basic/BasicButtonListener.java
603 (focusGained): Implement.
604 (focusLost): Repaint if focusPainted().
605 (installKeyboardActions): Install pressed / released actions.
606 (uninstallKeyboardActions): Implement.
607 * javax/swing/plaf/basic/BasicButtonUI.java
608 (focusColor): New field.
609 (installDefaults): Load focus color, install input map.
610 (installKeyboardActions): Implement.
611 (uninstallKeyboardActions): Likewise.
612 (paintFocus): Rewrite.
613 * javax/swing/plaf/basic/BasicLookAndFeel.java
614 (Button.focus): New default, midPurple.
615 * javax/swing/plaf/basic/BasicTextUI.java
617 (installUI): Get doc from kit, load defaults.
618 (getKeymapName): Implement.
619 (createKeymap): Likewise.
620 (installKeyboardActions): Likewise.
621 (getInputMap): Likewise.
622 (getActionMap): Likewise.
623 (createActionMap): Likewise.
624 * javax/swing/text/AbstractDocument.java
625 (getStartPosition): Implement.
626 (getEndPosition): Likewise.
627 * javax/swing/text/DefaultEditorKit.java
628 (CopyAction): New class.
629 (CutAction): Likewise.
630 (DefaultKeyTypedAction): Likewise.
631 (InsertBreakAction): Likewise.
632 (InsertContentAction): Likewise.
633 (InsertTabAction): Likewise.
634 (PasteAction): Likewise.
635 (defaultActions): New static table.
636 (createCaret): Implement.
637 (getActions): Likewise.
638 * javax/swing/text/JTextComponent.java
639 (KeymapWrapper): New private class.
640 (KeymapActionMap): Likewise.
641 (DefaultKeymap): New class.
642 (keymaps): New static table.
644 (getKeymap): Implement.
645 (removeKeymap): Likewise.
646 (addKeymap): Likewise.
647 (setKeymap): Likewise.
648 (loadKeymap): Likewise.
649 (getActions): Likewise.
651 (JTextComponent): Build and install default keymap.
652 * javax/swing/text/TextAction.java
653 (textAction): Call super properly.
654 (getTextComponent): Implement.
655 * javax/swing/text/Utilities.java
656 (drawTabbedText): Adjust position by ascent.
658 2004-08-31 David Jee <djee@redhat.com>
662 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
663 (setEnabled): Make it a native method.
664 * java/awt/DefaultKeyboardFocusManager.java
665 (postProcessKeyEvent): Only post event if the menu item
667 * java/awt/MenuItem.java:
668 Private field 'enabled' should be true by default.
669 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
670 (setEnabled): New function.
672 2004-08-31 David Jee <djee@redhat.com>
676 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
677 (nativeSetHelpMenu): New native method declaration.
678 (addHelpMenu): Call nativeSetHelpMenu().
680 * java/awt/MenuBar.java
681 (setHelpMenu): Call addNotify() on the new help menu.
682 (add): Call addNotify() on the new menu.
683 (addNotify): Set the help menu if one exists.
684 * java/awt/peer/MenuBarPeer.java
686 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
687 (nativeSetHelpMenu): New method.
689 2004-08-31 Graydon Hoare <graydon@redhat.com>
691 * Makefile.am: Add new files.
692 * Makefile.in: Regenerate.
693 * javax/swing/Box.java: Fix setting of layout in ctor.
694 * javax/swing/JScrollPane.java: Scroll headers as well.
695 * javax/swing/JTable.java: Reimplement.
696 * javax/swing/JViewPort.java: Only add non-null children.
697 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
698 * javax/swing/Timer.java: Fix stopping null waker.
699 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
700 * javax/swing/plaf/basic/BasicTableUI.java: New file.
701 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
702 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
703 * javax/swing/table/DefaultTableModel.java: Clean up.
704 * javax/swing/table/JTableHeader.java: Implement.
706 2004-08-31 Mark Wielaard <mark@klomp.org>
708 * javax/swing/JSpinner.java (getChangeListeners): Remove double
711 2004-08-31 Mark Wielaard <mark@klomp.org>
713 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
714 Declare variables at top of functions/block.
715 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
717 2004-08-31 Mark Wielaard <mark@klomp.org>
719 * java/lang/Rectangle.java (intersects): Check r.width and r.height
722 2004-08-31 Michael Koch <konqueror@gmx.de>
724 * javax/swing/text/PlainView.java
725 (selectedColor): New field.
726 (unselectedColor): Likewise.
728 (updateMetrics): New method.
729 (lineToRect): Likewise.
730 (modelToView): Likewise.
731 (drawSelectedText): Use color from JTextComponent ad draw with
733 (drawUnselectedText): Likewise.
734 (paint): Initialize helper fields.
735 * javax/swing/text/View.java
736 (getChildAllocation): New method.
737 (getViewIndex): Likewise.
738 (getToolTipText): Likewise.
740 2004-08-31 Michael Koch <konqueror@gmx.de>
742 * javax/swing/text/Utilities.java
743 (drawTabbedText): Reimplemented.
744 (getTabbedTextWidth): Likewise.
746 2004-08-31 Michael Koch <konqueror@gmx.de>
748 * javax/swing/plaf/basic/BasicTextUI.java
749 (installDefaults): Install caret and highlighter.
750 (modelToView): Use Bias.Forward when calling sibling.
751 * javax/swing/text/AbstractDocument.java
752 (ElementEdit): Implements DocumentEvent.ElementChange.
753 (ElementEdit.ElementEdit): New method.
754 (ElementEdit.getChildrenAdded): Likewise.
755 (ElementEdit.getChildrenRemoved): Likewise.
756 (ElementEdit.getElement): Likewise.
757 (ElementEdit.getIndex): Likewise.
758 * javax/swing/text/DefaultCaret.java
760 (textComponent): Renamed from parent, made private.
761 (selectionVisible): Renamed from vis_sel, made private.
762 (blinkRate): Renamed from blink, made private.
763 (magicCaretPosition): Renamed from magic, made private.
764 (visible): Renamed from vis, made private.
767 (deinstall): Remove as MouseMotionListener.
768 (install): Initialize textComponent first. Add as MouseMotionListener.
769 (paint): Reimplemented.
770 * javax/swing/text/JTextComponent.java
771 (setCaret): Deinstall old caret, install new one and fire property
772 change after setting property.
773 (setHighlighter): Deinstall old highlighter, install new one and fire
774 property change after setting property.
775 (setCaretColor): Fire property change after setting property.
776 (setDisabledTextColor): Likewise.
777 (setSelectedTextColor): Likewise.
778 (setSelectionColor): Likewise.
779 (modelToView): New method.
781 2004-08-31 Michael Koch <konqueror@gmx.de>
783 * javax/swing/text/AbstractDocument.java
784 (getText): Simplified.
785 * javax/swing/text/Segment.java
786 (current): New field.
787 (current): Reimplemented.
789 (getIndex): Likewise.
792 (previous): Likewise.
793 (setIndex): Likewise.
795 2004-08-31 Michael Koch <konqueror@gmx.de>
797 * javax/swing/plaf/basic/BasicButtonUI.java
798 (defaultTextIconGap): Made protected.
799 (defaultTextShiftOffset): Likewise.
800 (textShiftOffset): New field.
801 (clearTextShiftOffset): New method.
802 (getTextShiftOffset): Likewise.
803 (setTextShiftOffset): Likewise.
805 2004-08-31 Michael Koch <konqueror@gmx.de>
807 * javax/swing/plaf/basic/BasicTextUI.java
808 (installUI): Add eventHandler as property listener.
809 (uninstallUI): remove eventHandler as propert listener.
810 (installDefaults): Added comment.
811 (installListeners): Likewise.
812 (installKeyboardActions): Likewise.
813 (uninstallDefaults): Likewise.
814 (uninstallListeners): Likewise.
815 (uninstallKeyboardActions): Likewise.
817 2004-08-31 Michael Koch <konqueror@gmx.de>
819 * javax/swing/text/AbstractDocument.java:
820 Fixed some typos in comments.
821 (insertString): Reimplemented.
823 (replace): New method.
824 (children): Dont use fully qualified class name.
825 (DefaultDocumentEvent.offset): Renamed from off.
826 (DefaultDocumentEvent.length): Renamed from len.
827 (DefaultDocumentEvent.type): New field.
828 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
829 (DefaultDocumentEvent.getType): Implemented.
831 2004-08-31 Michael Koch <konqueror@gmx.de>
833 * javax/swing/plaf/basic/BasicTextUI.java
834 (RootView.textComponent): Removed.
835 (RootView.RootView): Don't initialize textComponent.
836 (RootView.getViewFactory): New method.
837 (EventHandler): New inner class.
838 (rootView): Initialize at instance creation.
839 (eventHandler): New field.
840 (installUI): Don't create view hierarchy directly,
841 call modelChanged() instead.
842 (modelChanged): New method.
843 * javax/swing/text/JTextComponent.java
844 (setDocument): Fire property change event.
846 2004-08-31 Michael Koch <konqueror@gmx.de>
848 * javax/swing/plaf/basic/BasicTextUI.java
849 (RootView.paint): Removed debug output.
850 (paintSafely): Draw highlighter before text.
851 (paintBackground): Use background color of text component.
852 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
855 2004-08-31 Michael Koch <konqueror@gmx.de>
857 * javax/swing/plaf/basic/BasicToolBarUI.java
858 (BasicToolBarUI): Fixed arguments for constructor.
859 (createUI): Fixed creation of object.
861 2004-08-31 Michael Koch <konqueror@gmx.de>
863 * javax/swing/DefaultListSelectionModel.java
864 (fireValueChanged): Renamed from fireSelectionValueChanged,
867 2004-08-31 Michael Koch <konqueror@gmx.de>
869 * javax/swing/text/TabSet.java
870 (TabSet): Implements java.io.Serializable.
871 * javax/swing/text/TabStop.java
872 (TabStop): Implements java.io.Serializable.
873 (TabStop): Made public.
875 2004-08-31 Michael Koch <konqueror@gmx.de>
877 * javax/swing/JComponent.java
878 (setUI): Fire PropertyChange.
879 * javax/swing/JLabel.java
880 (text): Renamed from labelText.
881 (horizontalAlignment): New default vlaue.
882 (icon): Renamed from activeIcon.
883 (displayedMnemonic): Renamed from mnemonicKey, added default value.
884 (displayedMnemonicIndex): Renamed from underlineChar.
885 (setDisplayedMnemonic): Reimplemented.
886 * javax/swing/JRadioButton.java
887 (JRadioButton): New constructors.
888 * javax/swing/JTextField.java
889 (JTextField): Throw exception if colums < 0, initialitialz
890 this.columns directly and initialize document with text conditionally.
892 2004-08-31 Michael Koch <konqueror@gmx.de>
894 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
895 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
896 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
897 * javax/swing/text/FieldView.java
898 (paint): Just call super method for now.
899 * Makefile.am: Added new files.
900 * Makefile.in: Regenerated.
902 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
904 * javax/swing/AbstractSpinnerModel.java,
905 javax/swing/JSpinner.java,
906 javax/swing/SpinnerNumberModel.java,
907 javax/swing/plaf/basic/BasicSpinnerUI.java:
909 * javax/swing/plaf/basic/BasicLookAndFeel.java
910 (initClassDefaults): Added defaults for BasicSpinnerUI.
912 2004-08-31 Michael Koch <konqueror@gmx.de>
914 * Makefile.am: Added new files.
915 * Makefile.in: Regenerated.
917 2004-08-31 Michael Koch <konqueror@gmx.de>
919 * javax/swing/TransferHandler.java,
920 javax/swing/plaf/basic/ComboPopup.java: New files
921 * Makefile.am: Added javax/swing/TransferHandler.java and
922 javax/swing/plaf/basic/ComboPopup.java
923 * Makefile.in: Regenerated.
925 2004-08-31 Roman Kennke <roman@ontographics.com>
927 * javax/swing/text/Utilities.java: New file.
929 2004-08-31 Michael Koch <konqueror@gmx.de>
931 * Makefile.am: Added javax/swing/text/Utilities.java.
932 * Makefile.in: Regenerated.
934 2004-08-31 Graydon Hoare <graydon@redhat.com>
936 * javax/swing/text/SimpleAttributeSet.java: New file.
937 * javax/swing/text/StyleConstants.java: New file.
938 * javax/swing/text/StyleContext.java: New file.
939 * javax/swing/text/TabSet.java: New file.
940 * javax/swing/text/TabStop.java: New file.
941 * javax/swing/text/AbstactDocument.java:
942 (AbstractElement): Implement attribute support.
943 * javax/swing/text/AttributeSet.java
944 (NameAttribute): New static field.
945 (ResolveAttribute): New static field.
946 * Makefile.am: Update for new files.
947 * Makefile.in: Regenerate.
949 2004-08-31 Craig Black <craig.black@aonix.com>
951 * gnu/java/awt/peer/gtk/GdkGraphics.java
952 (drawImage): Add support for scaling pixmaps.
953 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
954 (copyAndScalePixmap): New native method.
956 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
959 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
960 type-punning compiler warnings using unions.
961 (throw): Replace bzero with memset.
963 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
964 Thomas Fitzsimmons <fitzsim@redhat.com>
966 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
967 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
968 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
969 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
970 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
972 2004-08-31 Mark Wielaard <mark@klomp.org>
974 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
975 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
976 and stdlib.h, not gtkpeer.h.
977 (*vm): New static variable.
978 (areaPreparedID): Make static.
979 (areaUpdatedID): Likewise.
980 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
981 (area_prepared): Likewise.
982 (area_updated): Likewise.
984 (initStaticState): Initialize *vm javaVM.
985 (pumpBytes): Use given env, not global gdk_env.
987 2004-08-31 Mark Wielaard <mark@klomp.org>
989 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
992 2004-08-31 Sven de Marothy <sven@physto.se>
994 * java/awt/geom/CubicCurve2D.java: Reindent.
995 (contains): Implemented.
996 (intersects): Implemented.
997 * java/awt/geom/QuadCurve2D.java: Likewise.
998 * java/awt/geom/GeneralPath.java: Reindent and document.
999 Fully (re)implemented using separate xpoints and ypoints
1001 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1003 2004-08-31 Michael Koch <konqueror@gmx.de>
1005 * javax/swing/JMenuItem.java
1006 (getMenuDragMouseListeners): New method.
1007 (getMenuKeyListeners): Likewise.
1009 2004-08-31 Michael Koch <konqueror@gmx.de>
1011 * javax/swing/AbstractButton.java
1012 (model): Made protected.
1013 (actionListener): Likewise.
1014 (changeListener): Likewise.
1015 (itemListener): Likewise.
1016 (multiClickThreshhold): New field.
1017 (getActionListeners): New method.
1018 (getChangeListeners): Likewise.
1019 (getItemListeners): Likewise.
1020 (fireItemStateChanged): Simplified implementation.
1021 (fireActionPerformed): Likewise.
1022 (fireStateChanged): Likewise.
1023 (getMultiClickThreshhold): New method.
1024 (setMultiClickThreshhold): Likewise.
1026 2004-08-31 Tom Tromey <tromey@redhat.com>
1028 * java/awt/image/Kernel.java (clone): Use super.clone().
1030 2004-08-31 David Jee <djee@redhat.com>
1033 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1034 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1035 (nativeSetIconImageFromData): New native method declaration.
1036 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1037 * gnu/java/awt/peer/gtk/GtkImage.java
1038 (getPixelCache): New method.
1039 (getColorModel): New method.
1040 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1041 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1042 (free_pixbuf_data): New helper function.
1043 (nativeSetIconImageFromData): New function.
1045 2004-08-31 Graydon Hoare <graydon@redhat.com>
1048 * javax/swing/JLayeredPane.java
1049 (setLayer): Permit changing layer after addition.
1050 (setPosition): Permit over-length positions.
1051 (layerToRange): Compare intValue()s.
1052 * javax/swing/Box.java (createHorizontalBox): Implement.
1053 (createRigidArea): Likewise.
1054 (createVerticalBox): Likewise.
1056 2004-08-31 Kim Ho <kho@redhat.com>
1058 * java/awt/Component.java:
1059 (processMouseEvent): Consume event after
1060 listeners process it.
1061 (processMouseMotionEvent): ditto.
1062 (processMouseWheelEvent): ditto.
1063 * java/awt/Container.java:
1064 (acquireComponentForMouseEvent):
1065 Do not dispatch to events that have been
1066 removed from the Container.
1067 (handleEvent): Consume the MouseEvents.
1068 * javax/swing/RepaintManager.java:
1069 (paintDirtyRegions): Do not add to list of
1070 damaged areas if the component has no root.
1072 2004-08-31 Michael Koch <konqueror@gmx.de>
1074 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1076 2004-08-31 Mark Wielaard <mark@klomp.org>
1078 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1079 null when a MissingResourceException is thrown. Should never happen.
1081 2004-08-31 Mark Wielaard <mark@klomp.org>
1083 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1084 when argument is null.
1086 2004-08-31 Mark Wielaard <mark@klomp.org>
1088 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1089 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1090 Define hid at start of function.
1091 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1094 2004-08-31 Mark Wielaard <mark@klomp.org>
1096 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1097 * javax/swing/JButton.java: Reindent.
1098 * javax/swing/JCheckBox.java: Reindent.
1100 2004-08-31 Mark Wielaard <mark@klomp.org>
1102 * Makefile.am (gtk_c_source_files): Added
1103 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1104 (gtk_awt_peer_sources): Added
1105 gnu/java/awt/peer/gtk/GThreadMutex.java and
1106 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1107 * Makefile.in: Regenerated.
1109 2004-08-31 Archie Cobbs <archie@dellroad.org>
1111 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1113 2004-08-31 Steven Augart <augart@watson.ibm.com>
1115 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1116 Added jfieldID, jmethodID.
1118 2004-08-31 Mark Wielaard <mark@klomp.org>
1120 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1121 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1122 gdk_env before calling any gdk or gtk function.
1124 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1125 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1126 (run): Set gtkInitCalled.
1128 2004-08-31 Steven Augart <augart@watson.ibm.com>
1130 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1131 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1133 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1134 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1135 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1137 (init_glib_threads): New function.
1139 2004-08-31 Mark Wielaard <mark@klomp.org>
1141 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1142 PRIORITY when not already defined in header file.
1144 2004-08-31 Mark Wielaard <mark@klomp.org>
1146 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1147 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1149 2004-08-31 Steven Augart <augart@watson.ibm.com>
1151 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1152 Implemented missing functions for GTK2.
1153 Added error handling.
1154 Renamed static functions out of the g_ namespace.
1155 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1156 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1157 Rewrote global-reference code.
1158 Eliminated cascading errors.
1159 (mutex_trylock_jni_impl) Fully implemented.
1160 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1162 (setup_cache) New function.
1163 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1164 bug where they were not unlocking the GMutex associated with the
1165 condition variable during the wait on that condition variable.
1167 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1168 native/jni/gtk-peer/gthread-jni.c,
1169 native/jni/gtk-peer/gthread-jni.h
1170 (g_thread_jni_functions): Renamed to ...
1171 (portable_native_sync_jni_functions): this name.
1172 (gdk_vm): Renamed to...
1173 (the_vm): this name.
1175 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1176 (gdk_vm): Removed duplicate definition.
1177 (gtkInit): Removed stray message to stdout.
1178 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1179 (gtkInit): Fix a const assignment bug.
1180 (gtkInit): Simplified code.
1182 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1183 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1184 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1185 gnu/java/awt/peer/gtk/GThreadMutex.java:
1188 2004-08-31 Mark Wielaard <mark@klomp.org>
1190 * javax/swing/Box.java: Put FIXME comment above class declaration.
1191 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1192 * javax/swing/JCheckBox.java: Likewise.
1193 * javax/swing/JDialog.java: Likewise.
1194 * javax/swing/JRadioButton.java: Likewise.
1195 * javax/swing/JToggleButton.java: Likewise.
1196 * javax/swing/UIManager.java: Likewise.
1197 * javax/swing/border/TitledBorder.java: Likewise.
1198 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1199 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1200 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1201 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1202 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1203 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1204 * javax/swing/text/JTextComponent.java: Likewise.
1206 2004-08-31 David Jee <djee@redhat.com>
1209 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1210 (setIconImage): Add a FIXME for unhandled cases.
1212 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1215 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1216 getModifiers. Replace old button masks with new ones.
1217 * gnu/awt/xlib/XEventLoop.java: Likewise.
1218 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1219 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1220 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1221 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1222 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1223 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1224 * java/awt/Component.java: Replace old modifier masks with new
1226 * java/awt/Container.java: Call getModifiersEx, not
1228 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1230 * javax/swing/JMenuItem.java: Replace old button masks with new
1232 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1234 * javax/swing/SwingUtilities.java: Likewise.
1235 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1236 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1237 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1238 mask macros with new ones.
1239 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1240 macros with new ones representing new masks.
1242 2004-08-31 Craig Black <craig.black@aonix.com>
1244 * gnu/java/awt/peer/gtk/GdkGraphics.java
1245 (drawRoundRect): Implemented.
1246 (fillRoundRect): Implemented.
1247 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1248 (drawRoundRect): Reimplemented to match GdkGraphics.
1249 (fillRoundRect): Reimplemented to match GdkGraphics.
1251 2004-08-31 Mark Wielaard <mark@klomp.org>
1253 * Makefile.in: Regenerated.
1255 2004-08-31 Michael Koch <konqueror@gmx.de>
1257 * gnu/java/awt/EmbeddedWindow.java
1258 (addNotify): Use AccessController to allow execution of privileged
1261 2004-08-31 Michael Koch <konqueror@gmx.de>
1263 * gnu/java/awt/EmbeddedWindow.java
1265 (addNotify): Set peer via reflection.
1266 (setWindowPeer): Removed.
1267 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1268 * Makefile.am (nat_source_files):
1269 Removed gnu/java/awt/natEmbeddedWindow.cc.
1271 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1273 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1274 and gnu/java/security/action/SetAccessibleAction.java.
1276 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1278 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1279 Renamed from 'setName'. New 2-argument form with default value.
1280 (run): Pass default 'value' parameter to System.getProperty().
1281 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1284 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1286 * gnu/java/security/action/GetPropertyAction.java: New class.
1287 * gnu/java/security/action/SetAccessibleAction.java: New class.
1289 2004-08-31 David Jee <djee@redhat.com>
1291 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1292 (setIconImage): Check if image is null.
1294 2004-08-31 David Jee <djee@redhat.com>
1296 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1297 (create): Set the icon image.
1298 (nativeSetIconImage): New native method declaration.
1299 (setIconImage): Implement.
1300 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1301 (nativeSetIconImage): New function.
1303 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1305 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1306 (filenameFilterCallback): Declare local variable accepted before use.
1308 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1310 * gnu/java/awt/ComponentDataBlitOp.java:
1313 2004-08-31 Tom Tromey <tromey@redhat.com>
1315 * gnu/java/awt/peer/GLightweightPeer.java,
1316 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1317 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1318 javax/swing/JScrollPane.java: Removed
1321 2004-08-31 David Jee <djee@redhat.com>
1323 * java/awt/DefaultKeyboardFocusManager.java
1324 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1325 event. Fix shift modifier checking.
1326 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1327 (accel_attach): Remove.
1328 (setupAccelGroup): Remove calls to accel_attach.
1330 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1332 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1333 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1335 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1337 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1338 * Makefile.in: Regenerate.
1339 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1340 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1341 (create(String)): New method.
1342 (create): Call new create method.
1343 (getArgs): Remove method.
1344 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1345 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1346 (nativeCreate): Rename to create.
1347 (gtkSetLabel): Rename to gtkButtonSetLabel.
1348 (gtkToggleButtonSetActive): New method.
1349 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1350 (setState): Replace set call with gtkToggleButtonSetActive.
1351 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1352 (getArgs): Remove method.
1353 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1354 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1355 (gtkWidgetSetSensitive): New method.
1356 (gtkWidgetSetParent): Likewise.
1357 (GtkComponentPeer): Call setParent, setComponentBounds and
1358 setVisibleAndEnabled.
1359 (setParent): New method.
1360 (setComponentBounds): New method.
1361 (setVisibleAndEnabled): New method.
1362 (setEnabled): Call gtkWidgetSetSensitive.
1363 (getArgs): Remove method.
1364 Remove all set methods.
1365 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1366 gtkWindowSetModal, setTitle and setResizable.
1367 (getArgs): Remove method.
1368 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1369 (setComponentBounds): New method.
1370 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1371 Replace set call with gtkWindowSetResizable.
1372 (getArgs): Remove method.
1373 (create): Call setTitle and setResizable.
1374 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1375 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1376 (gtkWindowSetTitle): New method.
1377 (gtkWindowSetResizable): New method.
1378 (gtkWindowSetModal): New method.
1379 (setParent): New method.
1380 (setVisibleAndEnabled): New method.
1381 (getArgs): Remove method.
1382 (setTitle): Call gtkWindowSetTitle.
1383 (setResizable): Call gtkWindowSetResizable.
1384 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1385 and off locking instrumentation.
1387 2004-08-31 Kim Ho <kho@redhat.com>
1389 * Makefile.am: Add new file.
1390 * Makefile.in: Regenerate.
1391 * gcj/Makefile.in: Regenerate
1392 * include/Makefile.in:
1393 * java/awt/Container.java:
1394 (acquireComponentForMouseEvent): Respect
1395 the event mask when looking for candidate.
1396 * javax/swing/JComponent.java:
1397 Remove toolTip field.
1398 (createToolTip): Create a tooltip on demand.
1399 (setToolTipText): Register with the ToolTipManager.
1400 (getToolTipText(MouseEvent)): Return getToolTipText().
1401 * javax/swing/JToolTip.java: Implement.
1402 * javax/swing/Timer.java: Jalopy.
1403 (restart): Call stop, then start.
1404 (stop): Interrupt the timer rather than wait for
1405 the timer to come to a stop naturally.
1406 * javax/swing/ToolTipManager.java: Implement.
1407 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1408 Change ToolTip.background color.
1409 * javax/swing/plaf/basic/BasicToolTipUI.java:
1411 * testsuite/Makefile.in: Regenerate
1413 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
1415 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1416 constructor param comments.
1418 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1420 * java/awt/Component.java: Document AWT 1.0 event handler
1423 2004-08-31 Roman Kennke <roman@ontographics.com>
1425 * javax/swing/Box.java:
1426 (createGlue): Implemented
1427 (createHorizontalGlue): Implemented
1428 (createHorizontalStrut): Implemented
1429 (createVerticalGlue): Implemented
1430 (createVerticalStrut): Implemented
1432 2004-08-31 David Jee <djee@redhat.com>
1434 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1435 (GtkChoicePeer): Do not automatically select first item.
1436 (getHistory): Remove.
1437 (nativeGetSelected): New method.
1438 (nativeRemoveAll): New method.
1439 (add): Use nativeGetSelected() instead of getHistory().
1441 (removeAll): Call nativeRemoveAll().
1442 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1443 (create): Migrate to GtkComboBox.
1445 (nativeAdd): Likewise.
1446 (nativeRemove): Likewise.
1448 (nativeRemoveAll): New method.
1449 (nativeGetSelected): New method.
1450 (selection_changed): New method.
1451 (getHistory): Remove.
1452 (item_activate): Remove.
1453 (item_removed): Remove.
1454 (connect_choice_item_selectable_hook): Remove.
1456 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1458 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1459 variable in setEditable call.
1461 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1462 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1463 (gtkWidgetSetBackground): New method.
1464 (gtkWidgetSetForeground): Likewise.
1465 (create): Set peer's editable state based on awtComponent's.
1467 * java/awt/Button.java (Button()): Use empty string rather than
1468 null in no-label constructor.
1470 2004-08-31 Roman Kennke <roman@ontographics.com>
1472 * javax/swing/BoxLayout.java: Reimplement.
1474 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1476 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1477 gnu_java_awt_peer_gtk_GdkGraphics.c
1478 (initState(GtkComponentPeer)): Don't return array of colour
1480 (GdkGraphics(int,int)): Set default font to size 12.
1481 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1482 component's foreground colour.
1483 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1484 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1485 (initState(GtkComponentPeer)): Don't return array of colour
1487 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1488 colours to component's colours.
1489 (current_colors_of_widget): Remove function.
1490 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1491 Return a new graphics object.
1492 * java/awt/Font.java (toString): Fix format.
1493 * java/awt/Graphics.java (toString): Likewise.
1495 2004-08-31 Craig Black <craig.black@aonix.com>
1497 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1498 (addTearOff): New function.
1499 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1501 (init): Call addTearOff() when menu.isTearOff().
1503 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1505 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
1506 Default implementation.
1507 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
1508 Implement using GdkPixbufDecoder.
1510 2004-08-31 David Jee <djee@redhat.com>
1512 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1513 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
1514 setting the size of GtkFileDialogPeers.
1515 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1516 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
1517 use their default sizes rather than their natural requisitions.
1519 2004-08-31 Michael Koch <konqueror@gmx.de>
1521 * javax/swing/JFormattedTextField.java
1522 (JFormattedTextField): Implemented.
1523 * javax/swing/text/DefaultEditorKit.java
1524 (BeepAction): New inner class.
1525 * javax/swing/text/Segment.java
1526 (partialReturn): New field.
1527 (setPartialReturn): New method.
1528 (isPartialReturn): Likewise.
1529 * javax/swing/text/View.java
1530 (createFragment): Fixed typo.
1531 (getStartOffset): New method.
1532 (getEndOffset): Likewise.
1534 2004-08-31 Michael Koch <konqueror@gmx.de>
1536 * javax/swing/table/DefaultTableColumnModel.java
1537 (serialVersionUID): Made private.
1538 (listenerList): Initialize.
1539 (changeEvent): Initialize.
1540 * javax/swing/table/JTableHeader.java
1541 (JTableHeader): New constructors.
1542 (createDefaultColumnModel): New method.
1543 * javax/swing/table/TableColumn.java
1544 (setHeaderRenderer): Simplified code.
1545 (setCellRenderer): Likewise.
1546 (setWidth): Likewise.
1548 2004-08-31 Tom Tromey <tromey@redhat.com>
1550 * java/text/AttributedString.java (AttributedString): Use
1551 ArrayList to build array of attribute ranges. Don't use
1552 `attribs' before it is set.
1554 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1556 * HACKING: Remove reference to special automake. No longer needed.
1558 2004-08-30 Tom Tromey <tromey@redhat.com>
1560 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
1561 return result from `add'.
1563 2004-08-30 Tom Tromey <tromey@redhat.com>
1565 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
1567 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1569 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
1571 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
1573 * java/io/File.java File(String,String): Fixed handling of empty
1576 2004-08-30 Casey Marshall <csm@gnu.org>
1578 Author e-mail updated for all files.
1579 * gnu/java/security/OID.java (equals): Test if the aurgment is an
1581 (compareTo): Use `equals'.
1582 * gnu/java/security/der/BitString.java (equals): Test if the
1583 argument is an instance of BitString.
1584 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
1585 class final. Made fields private.
1586 (<init>): New constructor.
1588 (makeString): Made static; don't use NIO.
1589 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
1590 * gnu/java/security/der/DERWriter.java: Fixed imports.
1591 (writeString): Don't use NIO.
1592 (toIso88591, toUtf16Be, toUtf8): New methods.
1593 * gnu/java/security/der/DERValue.java: Formatting changes only.
1594 * gnu/java/security/der/DER.java: Likewise.
1596 2004-08-30 Tom Tromey <tromey@redhat.com>
1598 * java/nio/CharBuffer.java (put): Fix typo.
1599 * java/nio/DoubleBuffer.java (put): Fix typo.
1600 * java/nio/FloatBuffer.java (put): Fix typo.
1601 * java/nio/IntBuffer.java (put): Fix typo.
1602 * java/nio/LongBuffer.java (put): Fix typo.
1603 * java/nio/ShortBuffer.java (put): Fix typo.
1605 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
1607 * java/nio/ByteBuffer.java (put): Fix typo.
1609 2004-08-30 Casey Marshall <csm@gnu.org>
1611 * java/security/DummyKeyPairGenerator.java (clone): Removed
1612 useless instanceof check.
1613 * java/security/DummyMessageDigest.java (clone): Likewise.
1614 * java/security/DummySignature.java (clone): Likewise.
1615 * java/security/MessageDigest.java (clone): Remove useless
1617 * java/security/MessageDigestSpi.java (clone): Likewise.
1618 * java/security/Signature.java (clone): Provide meaningful
1620 * java/security/SignatureSpi.java (clone): Likewise.
1622 2004-08-29 Mark Wielaard <mark@klomp.org>
1624 * java/util/Arrays.java
1625 (sort(byte[], int, int)): Check fromIndex < 0.
1626 (sort(char[], int, int)): Likewise.
1627 (sort(short[], int, int)): Likewise.
1628 (sort(int[], int, int)): Likewise.
1629 (sort(long[], int, int)): Likewise.
1630 (sort(float[], int, int)): Likewise.
1631 (sort(double[], int, int)): Likewise.
1632 (sort(Object[], int, int, Comparator)): Likewise.
1633 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
1634 (qsort(char[], int, int)): Likewise.
1635 (qsort(short[], int, int)): Likewise.
1636 (qsort(int[], int, int)): Likewise.
1637 (qsort(long[], int, int)): Likewise.
1638 (qsort(float[], int, int)): Likewise.
1639 (qsort(double[], int, int)): Likewise.
1641 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
1643 * java/util/AbstractCollection.java, java/util/AbstractList.java,
1644 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
1645 java/util/ArrayList.java, java/util/Arrays.java,
1646 java/util/BitSet.java, java/util/Calendar.java,
1647 java/util/Collection.java, java/util/ListIterator.java,
1648 java/util/Map.java, java/util/SortedSet.java:
1649 Added additional exceptions to documentation, along
1650 with some additions and corrections.
1652 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
1654 * configure.ac: Handle --enable-gc-debug.
1655 * configure: Regenerate.
1656 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
1657 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
1658 Rearrange include file order.
1659 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
1660 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
1661 (disable_gc_mutex): Delete along with all references.
1662 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
1663 adjust for debug header size.
1664 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
1666 (_Jv_AllocArray): Declare min_heap_addr only if needed.
1667 (gcj_describe_type_fn): New.
1668 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
1669 Register gcj_describe_type_fn.
1670 * include/boehm-gc.h:
1671 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
1672 Don't define, but declare, for debug case.
1673 * java/lang/natObject.cc:
1674 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
1676 2004-08-26 Mark Wielaard <mark@klomp.org>
1678 Fixes PR libgcj/17002:
1679 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
1680 a TimeZoneId string and then try to convert that to a TimeZone with
1681 getDefaultSystemTimeZone(String).
1682 (timezones0): Changed type from Hashtable to HashMap.
1683 (timezones): Create HashMap, not Hashtable.
1684 (getDefaultTimeZone): New method, rewritten from CNI version.
1685 (readTimeZoneFile): New method.
1686 (readtzFile): Likewise.
1687 (skipFully): Likewise.
1688 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
1689 getDefaultTimeZoneId and rewritten.
1690 (getDefaultTimeZoneId): Rewritten in java.
1692 2004-08-25 David Daney <daney@avtrex.com>
1694 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
1695 * Makefile.in: Regenerated.
1697 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
1699 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
1700 only if jvmpi is enabled.
1701 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
1702 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
1703 (_Jv_AllocString): Likewise.
1704 (_Jv_AllocPtrFreeObject): Likewise.
1706 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
1708 * defineclass.cc: Include <stdio.h>.
1709 * java/lang/natClassLoader.cc: Include <stdio.h>.
1711 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
1712 Michael Koch <konqueror@gmx.de>
1714 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
1715 * Makefile.in: Regenerated.
1717 2004-08-20 Michael Koch <konqueror@gmx.de>
1719 * configure.ac: Replaced all AC_TRY_COMPILE macros with
1720 AC_COMPILE_IFELSE macros.
1722 2004-08-20 Michael Koch <konqueror@gmx.de>
1724 * configure.in: Renamed to configure.ac.
1725 * configure.ac: New file.
1726 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
1727 include/config.h.in, testsuite/Makefile.in: Regenerated.
1729 2004-08-20 Michael Koch <konqueror@gmx.de>
1731 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
1732 * aclocal.m4, configure: Regenerated.
1734 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
1735 Michael Koch <konqueror@gmx.de>
1737 * configure.in, Makefile.am: Ported to automake 1.9.
1738 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
1739 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
1742 2004-08-19 Tom Tromey <tromey@redhat.com>
1744 * java/net/DatagramSocket.java: Fixed typo.
1746 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1749 * java/net/URI.java (string): New field. Make all other fields
1751 (readObject): Implemented.
1752 (writeObject): Implemented.
1753 (URI): Set 'string'.
1755 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1758 * java/util/logging/Handler.java (isLoggable): Accept record if its
1759 log level equals the threshold level. From Robin Green.
1761 2004-08-18 David Daney <ddaney@avtrex.com>
1763 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
1766 2004-08-17 Michael Koch <konqueror@gmx.de>
1768 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
1769 * Makefile.in: Regenerated.
1771 2004-08-16 Tom Tromey <tromey@redhat.com>
1774 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
1776 2004-08-16 Michael Koch <konqueror@gmx.de>
1779 (math_c_files): Renamed from c_files.
1780 (math_c_source_files): Renamed from c_source_files.
1783 include/Makefile.in,
1784 testsuite/Makefile.in: Regenerated.
1786 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
1788 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
1789 to avoid autoconf warning.
1790 * configure: Rebuilt.
1792 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
1794 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
1795 localhostAddress to loopbackAddress.
1796 * java/net/natInetAddressWin32.cc (lookup): Likewise.
1798 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1800 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
1801 boehm-gc's include dirs.
1802 * configure: Rebuilt.
1803 * include/boehm-gc.h: Include gc_config.h.
1805 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1807 * java/net/InetAddress.java (loopbackAddress): Renamed from
1809 (getByName): Return loopback address for null hostname, without
1810 security check. Use lookup(), not getAllByName.
1811 (getAllByName): Return loopback address for null hostname, without
1813 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
1816 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1819 Reported by Robin Green.
1820 * defineclass.cc (handleField): Don't throw exception on unrecognised
1821 modifier. Add FIXME comments for spec compliance.
1822 (handleMethod): Likewise.
1824 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
1827 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
1828 (Almost everywhere): add LOG calls, fix, add comments.
1829 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
1830 Add explicit check for LOCKED bit in slow case (PR 16662).
1831 (_Jv_MonitorExit): Add casts in debug-only code.
1832 Always release LOCKED bit before throwing exception.
1833 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
1834 isn't. Handle easy cases without lock acquisition.
1835 (Object::wait): Use NotifyAll for lock inflation.
1837 2004-08-12 David Daney <ddaney@avtrex.com>
1839 * testsuite/libjava.lang/Process_1.java: New test.
1840 * testsuite/libjava.lang/Process_2.java: New test.
1841 * testsuite/libjava.lang/Process_3.java: New test.
1842 * testsuite/libjava.lang/Process_4.java: New test.
1843 * testsuite/libjava.lang/Process_5.java: New test.
1844 * testsuite/libjava.lang/Process_6.java: New test.
1845 * testsuite/libjava.lang/Process_1.out: Expected result.
1846 * testsuite/libjava.lang/Process_2.out: Expected result.
1847 * testsuite/libjava.lang/Process_3.out: Expected result.
1848 * testsuite/libjava.lang/Process_4.out: Expected result.
1849 * testsuite/libjava.lang/Process_5.out: Expected result.
1850 * testsuite/libjava.lang/Process_6.out: Expected result.
1852 2004-08-12 David Daney <ddaney@avtrex.com>
1855 * java/lang/PosixProcess.java: Rewrote.
1856 * java/lang/natPosixProcess.cc: Rewrote.
1857 * java/lang/Runtime.java (execInternal): Declare throws IOException.
1858 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
1859 * posix-threads.cc (block_sigchld) New function.
1860 (_Jv_ThreadRegister) Use it.
1861 (_Jv_ThreadStart) Use it.
1862 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
1863 * Makefile.am: ... to specify extra native headers.
1864 * configure: Regenerated.
1865 * include/config.h: Regenerated.
1866 * Makefile.in: Regenerated.
1867 * gcj/Makefile.in: Regenerated.
1868 * include/Makefile.in: Regenerated.
1869 * testsuite/Makefile.in: Regenerated.
1871 2004-08-12 Diego Novillo <dnovillo@redhat.com>
1873 PR tree-optimization/16867
1874 * testsuite/libjava.lang/PR16867.java: New test.
1876 2004-08-09 Per Bothner <per@bothner.com>
1878 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
1879 with private fields and access methods.
1880 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
1881 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
1882 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
1883 ( _Jv_makeUtf8Const): Rewrite using new constructors.
1884 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
1885 * defineclass.cc: Use new _Utf8Const access/convenience methods.
1887 * resolve.cc: Likewise.
1888 * gcj/field.h: Likewise.
1889 * include/jvm.h: Likewise.
1890 * java/lang/Class.h: Likewise.
1891 * java/lang/natClass.cc: Likwise.
1892 * java/lang/natClassLoader.cc: Likewise
1893 * java/lang/reflect/natMethod.cc: Likewise
1894 * verify.cc: Likewise.
1895 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
1896 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
1898 2004-08-10 Andrew Haley <aph@redhat.com>
1900 * testsuite/libjava.lang/err14.java: New file.
1901 * testsuite/libjava.lang/err14.out: New file.
1903 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
1905 * Makefile.am: Fix missing rename from x_nat_headers to
1907 * Makefile.in: Regenerated.
1909 2004-08-04 Andrew Haley <aph@redhat.com>
1911 * java/security/BasicPermission.java: Don't check wildcards.
1913 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
1914 Michael Koch <konqueror@gmx.de>
1916 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
1917 * configure.in: Replaced all usages of AC_LINK_FILES by
1920 configure: Regenerated.
1922 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
1923 Michael Koch <konqueror@gmx.de>
1925 * acconfig.h: Removed.
1926 * Makefile.am: Rename variables for xlib peer to include xlib and
1927 gtk_c_headers to gtk_jni_headers.
1928 * Makefile.in: Regenerated.
1930 2004-08-04 Andrew Haley <aph@redhat.com>
1932 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
1935 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
1937 * configure.in: Eliminate uses of changequote (mostly by quoting []).
1938 Replace most top level 'dnl' comments with '#' comments, conforming
1939 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
1941 * configure: Rebuilt.
1943 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
1945 * acinclude.m4: Include no-executables.m4.
1946 * aclocal.m4: Rebuild.
1947 * configure.in: Convert to the autoconf 2.59 version of
1948 of the no-executables hack, and also of the nonstandard CXX
1949 hack and the multilibbed CC and CXX hack. Change prerequisite
1951 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
1952 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1953 testsuite/Makefile.in: Regenerate.
1955 2004-08-03 Tom Tromey <tromey@redhat.com>
1957 * jni.cc: Reindented.
1959 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
1961 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
1963 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
1965 * testsuite/libjava.compile/PR16701.java: New test.
1967 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
1969 * java/util/Collection.java, java/util/List.java,
1970 java/util/Map.java, java/util/Set.java,
1971 java/util/SortedMap.java, java/util/SortedSet.java:
1972 Added additional exceptions to documentation.
1974 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
1977 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
1978 * configure. Regenerate.
1979 * include/win32.h: Explicitly include winsock2.h
1980 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
1983 2004-07-30 Michael Koch <konqueror@gmx.de>
1985 * java/util/zip/GZIPInputStream.java
1986 (GZIPInputStream): Increase buffer size to 4k.
1987 * java/util/zip/GZIPOutputStream.java
1988 (GZIPOutputStream): Likewise.
1989 * java/util/zip/Inflater.java
1990 (setInput): Merged formating with GNU classpath.
1991 * java/util/zip/InflaterInputStream.java
1992 (InflaterInputStream): Increase buffer size to 4k.
1993 (fill): Throw exception if stream ends early.
1994 (read): Merged endless-loop with GNU classpath.
1995 (skip): Increase buffer size to 2k.
1997 2004-07-30 Michael Koch <konqueror@gmx.de>
1999 * gnu/java/awt/EmbeddedWindow.java
2000 (addNotify): Use AccessController to allow execution of privileged
2003 2004-07-29 Michael Koch <konqueror@gmx.de>
2005 * gnu/java/lang/MainThread.java:
2006 Explicitely import used classes.
2007 (args): Make it type String[].
2009 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2011 * gnu/java/awt/ComponentDataBlitOp.java,
2012 gnu/java/beans/ExplicitBeanInfo.java,
2013 gnu/java/beans/IntrospectionIncubator.java,
2014 gnu/java/beans/editors/ColorEditor.java,
2015 gnu/java/beans/editors/FontEditor.java,
2016 gnu/java/beans/editors/NativeBooleanEditor.java,
2017 gnu/java/beans/editors/NativeByteEditor.java,
2018 gnu/java/beans/editors/NativeDoubleEditor.java,
2019 gnu/java/beans/editors/NativeFloatEditor.java,
2020 gnu/java/beans/editors/NativeIntEditor.java,
2021 gnu/java/beans/editors/NativeLongEditor.java,
2022 gnu/java/beans/editors/NativeShortEditor.java,
2023 gnu/java/beans/editors/StringEditor.java,
2024 gnu/java/io/ClassLoaderObjectInputStream.java,
2025 gnu/java/io/decode/Decoder.java,
2026 gnu/java/io/encode/Encoder.java,
2027 gnu/java/lang/ClassHelper.java,
2028 gnu/java/locale/Calendar.java,
2029 gnu/java/locale/Calendar_de.java,
2030 gnu/java/locale/Calendar_en.java,
2031 gnu/java/locale/Calendar_nl.java,
2032 gnu/java/locale/LocaleInformation_de.java,
2033 gnu/java/locale/LocaleInformation_en.java,
2034 gnu/java/locale/LocaleInformation_nl.java:
2037 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2039 * README: Remove obsolete info. Update bug URL.
2041 * NEWS: Updated with news up to GCC 3.4 release.
2043 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2045 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2046 Renamed from 'setName'. New 2-argument form with default value.
2047 (run): Pass default 'value' parameter to System.getProperty().
2048 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2050 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2053 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2055 * configure.in: Check for minimum GTK version 2.4 requirement.
2056 * configure: Rebuilt.
2058 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2060 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2061 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2063 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2065 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2066 address. Reduce sleep times. Synchronize with target threads before
2067 attempting to interrupt them. Don't try to calibrate yeild count,
2068 instead, always loop for a fixed time.
2069 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2070 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2071 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2072 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2073 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2074 * testsuite/libjava.lang/pr179.java: Likewise.
2075 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2076 time. Remove upper bounds check on sleep time.
2078 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2080 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2081 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2083 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2085 * java/io/File.java (toURI): Throw RuntimeException, not
2087 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2088 class name, not instance.
2090 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2092 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2093 and gnu/java/security/action/SetAccessibleAction.java.
2094 * Makefile.in: Rebuilt.
2096 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2098 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2099 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2101 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2102 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2103 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2105 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2107 * Makefile.am: Replace jar, rmic and rmiregistry references with
2108 gjar, grmic and grmiregistry.
2109 * configure.in: Likewise.
2110 * Makefile.in: Regenerate.
2111 * configure: Likewise.
2112 * gcj/Makefile.in: Likewise.
2113 * include/Makefile.in: Likewise.
2114 * testsuite/Makefile.in: Likewise.
2116 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2118 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2119 for privileged getProperty calls.
2120 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2121 SetAccessibleAction instead of anonymous class for doPrivileged call.
2122 (getMethod): Likewise.
2123 (setAccessible): New field. PrivilegedAction object to use when
2124 calling setAccessible.
2125 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2126 SetAccessibleAction instead of anonymous class for diPrivileged call.
2127 (setFields): Likewise.
2128 (getClassUID): Likewise.
2129 (findMethod): Likewise.
2130 * gnu/java/security/action/GetPropertyAction.java: New class.
2131 * gnu/java/security/action/SetAccessibleAction.java: New class.
2133 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2135 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2137 * testsuite/libjava.lang/Serialization.java: New test.
2138 * testsuite/libjava.lang/Serialization.out: New.
2140 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2142 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2143 missed in last commit.
2145 2004-07-23 Mark Wielaard <mark@klomp.org>
2147 * java/lang/System.java (static): Set http.agent system property when
2149 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2150 from system property inside AccessController.doPrivileged() call.
2151 (proxyPort): Made package private.
2152 (proxyInUse): Likewise.
2153 (proxyHost): Likewise.
2154 (userAgent): Likewise.
2156 2004-07-23 Mark Wielaard <mark@klomp.org>
2158 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2161 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2163 * Makefile.am (ordinary_java_source_files): Add
2164 DefaultContentHandlerFactory.java.
2165 * Makefile.in: Rebuilt.
2166 * java/net/URLConnection.java (defaultFactory): New field.
2168 (getContentHandler): Renamed from 'setContentHandler'. Try
2169 defaultFactory after user-set factory, if any. Search for content
2170 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2171 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2173 (getLastModified): Implemented.
2174 (getPermission): Create file permission here, instead of in
2176 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2178 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2180 (getLastModified): Implemented.
2181 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2182 Default implementation.
2183 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2184 Implement using GdkPixbufDecoder.
2186 2004-07-21 Michael Koch <konqueror@gmx.de>
2188 * javax/swing/JTextArea.java
2189 (setLineWrap): Fire property change event after new value is set.
2190 (setTabSize): Likewise.
2192 2004-07-21 Michael Koch <konqueror@gmx.de>
2194 * javax/swing/JTable.java
2195 (autoCreateColumnsFromModel): New field.
2196 (autoResizeMode): Likewise.
2197 (cellEditor): Likewise.
2198 (cellSelectionEnabled): Likewise.
2199 (columnModel): Likewise.
2200 (dataModel): Likewise.
2201 (defaultEditorsByColumnClass): Likewise.
2202 (defaultRenderersByColumnClass): Likewise.
2203 (editingColumn): Likewise.
2204 (editingRow): Likewise.
2205 (gridColor): Likewise.
2206 (preferredViewportSize): Likewise.
2207 (rowHeight): Likewise.
2208 (rowMargin): Likewise.
2209 (rowSelectionAllowed): Likewise.
2210 (selectionBackground): Likewise.
2211 (selectionForeground): Likewise.
2212 (selectionModel): Likewise.
2213 (showHorizontalLines): Likewise.
2214 (showVerticalLines): Likewise.
2215 (tableHeader): Likewise.
2216 (JTable): Implemented.
2217 (getColumnModel): Likewise.
2218 (getSelectedRow): Likewise.
2219 (getSelectionModel): Likewise.
2220 (setModel): Likewise.
2221 (setSelectionModel): Likewise.
2222 (createScrollPaneForTable): New method.
2223 (createDefaultDataModel): Likewise.
2224 (createDefaultListSelectionModel): Likewise.
2225 (getModel): Likewise.
2226 (getTableHeader): Likewise.
2227 (setTableHeader): Likewise.
2228 (getColumnSelectionAllowed): Likewise.
2229 (setColumnSelectionAllowed): Likewise.
2230 (getRowSelectionAllowed): Likewise.
2231 (setRowSelectionAllowed): Likewise.
2232 (getAutoResizeMode): Likewise.
2233 (setAutoResizeMode): Likewise.
2234 (getColumnCount): Likewise.
2235 (getRowCount): Likewise.
2236 (getCellRenderer): Likewise.
2237 * javax/swing/JTree.java
2238 (cellRenderer): New field.
2239 (editable): Likewise.
2240 (rootVisible): Likewise.
2241 (showsRootHandles): Likewise.
2242 (getModel): New method.
2243 (setModel): Likewise.
2244 (isEditable): Likewise.
2245 (setEditable): Likewise.
2246 (isRootVisbile): Likewise.
2247 (setRootVisible): Likewise.
2248 (getShowsRootHandles): Likewise.
2249 (setShowRootHandles): Likewise.
2250 (getCellRenderer): Likewise.
2251 (setCellRenderer): Likewise.
2253 2004-07-21 Michael Koch <konqueror@gmx.de>
2255 * javax/swing/JFormattedTextField.java
2256 (setDocument): Implemented.
2257 * javax/swing/JRootPane.java:
2259 * javax/swing/JTable.java
2260 (getDefaultRenderer): New method.
2261 * javax/swing/JTextField.java
2262 (setFont): Likewise.
2263 (getPreferredSize): Likewise.
2264 * javax/swing/JToggleButton.java
2265 (getAccessibleContext): Fix javadoc.
2266 * javax/swing/JTree.java:
2268 * javax/swing/JViewport.java:
2271 2004-07-21 David Jee <djee@redhat.com>
2273 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2274 Collect all native method declaration at the top.
2275 (create): Set the filename filter if necessary.
2276 (setDirectory): Call nativeSetDirectory().
2277 (setFilenameFilter): Implement.
2278 (filenameFilterCallback): New method.
2279 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2280 (create): Configure dialog to show hidden files.
2281 (filenameFilterCallback): New function.
2282 (nativeSetFilenameFilter): New function.
2283 (nativeSetDirectory): New function.
2285 2004-07-21 Kim Ho <kho@redhat.com>
2287 * javax/swing/plaf/basic/BasicSliderUI.java:
2289 (paintTrack): Fill the track before painting
2292 2004-07-21 Graydon Hoare <graydon@redhat.com>
2294 patch from Roman Kennke <roman@ontographics.com>
2295 * javax/swing/Spring.java: New file.
2296 * javax/swing/SpringLayout.java: New file.
2297 * Makefile.am: Add new files.
2298 * Makefile.in: Regenerate.
2300 2004-07-21 Graydon Hoare <graydon@redhat.com>
2302 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2303 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2304 * javax/swing/ScrollPaneLayout.java: Likewise.
2306 2004-07-21 Kim Ho <kho@redhat.com>
2308 * javax/swing/DefaultDesktopManager.java:
2309 (findMinimum): Removed.
2310 (resizeFrame): Trust the UI to pass valid
2312 * javax/swing/JOptionPane.java:
2313 Implemented showInternalXXXDialog methods.
2314 (startModal): New method.
2315 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2316 (BorderListener::mouseDragged): Verify that the new
2317 bounds are valid before passing them to the DesktopManager.
2318 (preferredLayoutSize): Delegate
2320 (minimumLayoutSize): Ditto.
2321 (getSize): New method.
2322 (GlassPaneDispatcher): Reimplemented by copying
2323 a stripped down LightweightDispatcher from Container.
2324 (getMinimumSize): Call minimumLayoutSize.
2325 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2327 (mousePressed): Add ability to properly close
2329 * javax/swing/plaf/basic/BasicToolBarUI.java:
2330 (DragWindow): Set owner for DragWindow.
2332 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2334 * java/awt/image/ShortLookupTable.java: New file.
2335 * java/awt/image/ByteLookupTable.java: New file.
2336 * Makefile.am: Added new files.
2337 * Makefile.in: Regenerated.
2339 2004-07-21 David Jee <djee@redhat.com>
2341 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2342 (create(GtkContainerPeer)): New native method.
2343 (create()): Call native create(), passing in the parent frame
2344 as the paramter. Natively set the current file and directory.
2345 (setFile): Construct an absolute filename before passing it to
2347 (nativeGetDirectory): New method.
2348 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2349 (window_closed): Removed.
2350 (ok_clicked): Likewise.
2351 (cancel_clicked): Likewise.
2352 (handle_response): New method.
2353 (create): Use GtkFileChooserDialog.
2354 (connectSignals): Connect to handle_response.
2355 (nativeGetDirectory): New method.
2356 (nativeSetFile): Use GtkFileChooserDialog.
2358 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2360 * java/awt/image/LookupTable.java: New file.
2361 * Makefile.am: Added new file.
2362 * Makefile.in: Regenerated.
2364 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2366 * java/awt/image/Kernel.java: New file.
2367 * Makefile.am: Added new file.
2368 * Makefile.in: Regenerated.
2370 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2372 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2373 * javax/swing/JMenu.java: Likewise.
2374 * javax/swing/JMenuBar.java: Likewise.
2375 (MARGIN_CHANGED_PROPERTY): New property.
2376 (setMargin): Implemented.
2377 * javax/swing/JMenuItem.java: Fixed javadocs.
2378 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2379 (LABEL_CHANGED_PROPERTY): New property.
2380 (add): changed to use createActionComponent.
2381 (createActionComponent): Implemented.
2382 (setLabel): Fire PropertyChangeEvent if label property
2384 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2385 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2386 (ContainerHandler): Repaint if margin property has changed.
2387 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2388 (installUI): Call installComponents().
2389 (uninstallUI): Call uinstallComponents().
2390 * javax/swing/plaf/basic/BasicMenuUI.java:
2392 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2395 2004-07-21 Kim Ho <kho@redhat.com>
2397 * javax/swing/plaf/basic/BasicToolBarUI.java:
2398 (DragWindow): Use the right constructor.
2400 2004-07-21 Kim Ho <kho@redhat.com>
2402 * javax/swing/JToolBar.java:
2403 (layoutContainer): Use getComponents.
2404 * javax/swing/plaf/basic/BasicToolBarUI.java:
2405 (DragWindow): Don't use SwingUtilities'
2407 (ToolBarDialog): ditto.
2409 2004-07-21 Kim Ho <kho@redhat.com>
2411 * javax/swing/JRootPane.java:
2413 (layoutContainer): Set the glasspane's size to
2414 be the same as the content pane.
2415 (createGlassPane): Set opaque property to false.
2417 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2419 * java/awt/Component.java (requestFocus()): Don't handle Panels
2421 (requestFocus(boolean)): Likewise.
2422 (requestFocusInWindow(boolean)): Likewise.
2423 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2424 Set GTK_CAN_FOCUS flag.
2426 2004-07-21 Kim Ho <kho@redhat.com>
2428 * Makefile.am: Added new file.
2429 * Makefile.in: Regenerated.
2430 * gcj/Makefile.in: Regenerated.
2431 * include/Makefile.in: Regenerated.
2432 * javax/swing/AbstractButton.java:
2433 Add rollOverEnabled property.
2434 (setRolloverEnabled): Use new property.
2435 (isRolloverEnabled): Use new property.
2436 * javax/swing/JTabbedPane.java:
2437 (setComponent): Remove useless JTabbedPane.this.
2438 * javax/swing/JToolBar.java: Finish implementation.
2439 * javax/swing/plaf/basic/BasicArrowButton.java:
2440 (paint): Moved border painting to a border.
2441 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2442 Change JToolBar look and feel defaults.
2443 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2444 (actionPerformed): Return Integer index instead of name.
2445 (addButtonComponents): Check to see if component is
2447 (createMessageArea): Don't use components that are not
2449 (getIconForType): Use temporary icons.
2450 * javax/swing/plaf/basic/BasicSliderUI.java:
2451 (mousePressed): Do not return if it's on thumb.
2452 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2453 (paintMinorTickForVertSlider): ditto.
2454 (paintMajorTickForHorizSlider): ditto.
2455 (paintMajorTickForVertSlider): ditto.
2456 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2457 Add a border around the SplitPaneDivider.
2458 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2460 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2461 New file. Implemented.
2462 * javax/swing/plaf/basic/BasicToolBarUI.java:
2464 * testsuite/Makefile.in: Regenerated.
2466 2004-07-21 Graydon Hoare <graydon@redhat.com>
2468 * javax/swing/Timer.java (run): Queue events each time cycle.
2470 2004-07-21 David Jee <djee@redhat.com>
2472 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2473 (imageComplete): Call image.imageComplete().
2474 * java/awt/image/MemoryImageSource.java:
2475 Reimplement consumers as a Vector instead of a Hashtable. This is
2476 because enumeration on a Hashtable is not thread-safe.
2477 (addConsumer): Adapt to Vector consumers.
2478 (isConsumer): Adapt to Vector consumers.
2479 (removeConsumer): Adapt to Vector consumers.
2480 (startProduction): Adapt to Vector consumers. Call imageComplete()
2481 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2482 (newPixels): Adapt to Vector consumers.
2483 (sendPicture): Set the color model of the image consumer.
2484 (newPixels(IIII)): Adapt to Vector consumers.
2485 (newPixels(IIIIB)): Adapt to Vector consumers.
2487 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2489 * java/awt/Component.java (deliverEvent): Implement.
2490 (postEvent): Implement.
2491 (handleEvent): Implement.
2492 (translateEvent): New method.
2493 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2494 * java/awt/Container.java (deliverEvent): Implement.
2495 * java/awt/Event.java (paramString): Fix formatting.
2496 * java/awt/Font.java (toString): Likewise.
2497 * java/awt/Window.java (postEvent): Implement.
2499 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2501 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2502 Set window's focus owner upon receiving a FOCUS_LOST event.
2503 * java/awt/Window.java (Window()): Refocus the previously
2504 focused component within the window when the window regains the
2506 (setFocusOwner): New method.
2507 * java/awt/Component.java (requestFocus): Add FIXME.
2509 * libgcj.pc.in: Remove library flags.
2511 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2513 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
2514 MOUSE_PRESSED event.
2515 * java/awt/Component.java (requestFocus()): Handle Panel
2516 specially. Post FOCUS_LOST event on opposite component.
2517 (requestFocus(boolean)): Likewise.
2518 (requestFocusInWindow(boolean)): Likewise.
2519 (paramString): Reorder dimension fields.
2520 * java/awt/Container.java (paramString): Fix string format.
2521 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2522 Handle FOCUS_LOST events. Don't handle Windows specially. Only
2523 process key events if the focus owner is non-null.
2524 (dispatchKeyEvent): Likewise.
2525 * java/awt/Frame.java (paramString): Fix formatting.
2526 (generateName): New method.
2527 (getUniqueLong): Likewise.
2528 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
2529 the temporary focus owner is null. If so, return the permanent
2531 * java/awt/Panel.java (generateName): New method.
2532 (getUniqueLong): Likewise.
2533 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
2534 signal handling to make callbacks more specific.
2536 2004-07-21 Michael Koch <konqueror@gmx.de>
2538 * javax/swing/text/Position.java
2539 (Bias): Implemented.
2541 2004-07-21 Michael Koch <konqueror@gmx.de>
2543 * javax/swing/LookAndFeel.java
2544 (provideErrorFeedback): New method.
2546 2004-07-21 Michael Koch <konqueror@gmx.de>
2548 * javax/swing/JTextArea.java
2549 (tabSize): New field.
2550 (getTabSize): New method.
2551 (setTabSize): Likewise.
2553 2004-07-21 Michael Koch <konqueror@gmx.de>
2555 * javax/swing/ActionMap.java:
2556 Fixed javadocs all over.
2557 (serialVersionUID): Made private.
2558 (parent): Don't explicitely initialize with default value.
2560 (keys): Reimplemented.
2561 (allKeys): Likewise.
2562 (convertSet): Removed.
2563 * javax/swing/ComponentInputMap.java:
2564 Fixed javadocs all over.
2565 (ComponentInputMap): Implemented.
2569 (SetParent): Likewise.
2570 (getComponent): Likewise.
2571 * javax/swing/InputMap.java:
2572 Fixed javadocs all over.
2573 (serialVersionUID): Made private.
2574 (parent): Don't explicitely initialize with default value.
2576 (keys): Reimplemented.
2577 (allKeys): Likewise.
2578 (convertSet): Removed.
2580 2004-07-21 Michael Koch <konqueror@gmx.de>
2582 * javax/swing/ActionMap.java,
2583 javax/swing/ComponentInputMap.java,
2584 javax/swing/InputMap.java,
2585 javax/swing/table/DefaultTableColumnModel.java,
2586 javax/swing/table/TableColumn.java,
2587 javax/swing/table/TableColumnModel.java,
2588 javax/swing/table/TableModel.java,
2589 javax/swing/text/AbstractDocument.java,
2590 javax/swing/text/TextAction.java:
2593 2004-07-21 Graydon Hoare <graydon@redhat.com>
2595 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
2596 Make method non-static.
2597 * javax/swing/AbstractButton.java:
2598 Rename fields to match property names where possible.
2599 (iconTextGap): New property.
2600 * javax/swing/JCheckBox.java: Match AbstractButton changes.
2601 (init) New method, call from after various constructors.
2602 * javax/swing/JComponent.java (revalidate):
2603 Invalidate before queueing repair.
2604 * javax/swing/JList.java (getPreferredScrollableViewportSize):
2605 Reimplement in terms of visibleRowCount property.
2606 * javax/swing/JMenuButton.java: Match AbstractButton changes.
2607 * javax/swing/JScrollPane.java (createScrollListener):
2608 Remove tracing chatter.
2609 * javax/swing/JToggleButton.java: Match AbstractButton changes.
2610 * javax/swing/RepaintManager.java (addInvalidComponent):
2612 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
2614 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
2615 Mimic sun behavior on top left/right positioning.
2616 * javax/swing/ViewportLayout.java (preferredLayoutSize):
2617 Remove mistaken use of preferredScrollableViewportSize here.
2618 (layoutContainer): Use view's preferred size as basis.
2619 * javax/swing/plaf/basic/BasicButtonUI.java:
2620 Set, get, and use textIconGap property.
2621 (paint) Paint text returned from layout (with ellipsis).
2622 * javax/swing/plaf/basic/BasicListUI.java:
2623 Remove tracing chatter, correct various minor calculations.
2624 (getCellBounds): Update layout state before calculating.
2625 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
2626 Use margin default similar to sun's.
2627 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
2628 (createIncreaseIcon): Center icon, minimize margins.
2629 (createDecreaseIcon): Likewise.
2630 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
2632 (installUI): Call it.
2633 (uninstallDefaults): Implement.
2634 (uninstallUI): Call it.
2635 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
2636 Call existing Window constructor.
2637 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
2638 Set clip before painting.
2640 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2642 * javax/swing/JMenuItem.java:
2643 (processMouseEvent): Reimplemented to deal with
2645 (createMenuDragMouseEvent): New private helper method.
2646 Creates MenuDragMouseEvent.
2647 * javax/swing/MenuSelectionManager.java
2648 (componentForPoint): Implemented.
2649 (isComponentPartOfCurrentMenu): Made public.
2650 (processMouseEvent): Reimplemented to deal with
2652 (setSelectedPath): Corrected small mistake that caused
2653 path to be set incorrectly.
2654 (getPath): If given component is JMenu then also add this
2655 menu's popup menu to the selected path.
2656 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2658 (getPreferredSize): Call getPreferredMenuItemSize().
2659 (getPreferredItemSize): Moved code from getPreferredSize to here.
2660 (installListeners): Install MouseMotionListeners.
2661 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
2662 if mouse wasn't released in the bounds of this menu item.
2663 (MenuDragMouseHandler): Implemented.
2664 * javax/swing/plaf/basic/BasicMenuUI.java:
2665 (installListeners): Install MouseMotionListener and
2666 MenuDrageMouseListener.
2667 (MenuDragMouseHandler): Implemented.
2668 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2669 (uninstallListeners): Implemented.
2671 2004-07-21 Michael Koch <konqueror@gmx.de>
2673 * javax/swing/JCheckBox.java: Reformated.
2674 (JCheckBox): Fixed all constructors.
2675 (isBorderPaintedFlat): New method.
2676 (setBorderPaintedFlat): New method.
2677 * javax/swing/JEditorPane.java
2678 (createEditorKitForContentType): Made public.
2679 (scrollToReference): Likewise.
2680 * javax/swing/JTextArea.java
2681 (setLineWrap): Fire property change.
2682 * javax/swing/JToggleButton.java
2683 (JToggleButton): New constructor.
2684 (JToggleButton): Simplified.
2685 * javax/swing/text/AttributeSet.java
2686 (FontAttribute): Renamed from FontCharacterAttribute.
2687 * javax/swing/text/JTextComponent.java
2688 (KeyBinBinding): Added javadoc.
2689 (JTextComponent): Likewise.
2690 (getAccessibleContext): Fixed javadoc.
2691 * javax/swing/text/View.java
2692 (View): Added javadoc.
2693 * javax/swing/text/TabableView.java: New file.
2694 * Makefile.am: Added javax/swing/text/TabableView.java.
2695 * Makefile.in: Regenerated.
2697 2004-07-21 Graydon Hoare <graydon@redhat.com>
2699 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
2700 * gnu/java/awt/peer/gtk/GtkToolkit.java
2701 (GtkErrorImage): New helper class.
2702 (bufferedImageOrError): New helper method.
2703 (createImage): Use it.
2705 2004-07-21 David Jee <djee@redhat.com>
2707 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
2708 (setCaretPosition): Scroll the text view so the new caret position
2709 is visible on screen.
2711 2004-07-21 David Jee <djee@redhat.com>
2713 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2714 (setBounds): Do not validate awtComponent here.
2715 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
2716 (getPreferredSize): New method.
2717 * java/awt/ScrollPane.java
2718 (ScrollPane): Set default size to 100x100.
2719 (addNotify): If child is not a Panel, wrap it with a new Panel.
2720 (paramString): Implement.
2722 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2724 * javax/swing/JMenu.java:
2725 (setSelected): Display popup menu only if this menu
2726 is showing on the screen.
2727 * javax/swing/JPopupMenu.java:
2728 (processMouseEvent): Added comment.
2729 (processKeyEvent): Likewise.
2730 * javax/swing/MenuSelectionManager.java:
2731 (clearSelectedPath): Only fireStateChanged() after
2732 selected path was changed, not before.
2733 (setSelectedPath): Likewise.
2734 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2735 (paintMenuItem): Corrected position of menu item's
2737 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2738 (installUI): Correct setDefaultLightWeightPopupEnabled call.
2739 (popupMenuCanceled): Reimplemented.
2740 (popupMenuWillBecomeVisible): Select first menu item by default
2741 when displaying free floating popup menus.
2742 (TopWindowListener): Reimplemented.
2744 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2746 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
2747 Panel from being painted twice when it is first shown.
2749 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2751 * java/awt/Window.java: Reverted changes from my
2752 previous patch for creating window without an owner.
2753 * javax/swing/SwingUtilities.java:
2754 (SwingUtilities.OwnerFrame): made static.
2755 (OwnerFrame.setVisible): New method. Overridden with
2756 empty implementation.
2757 (OwnerFrame.isShowing): New method. Ovverridden
2758 to return always true.
2760 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2762 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2763 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2764 (GtkComponentPeer): Remove temporary try/catch block.
2765 (setVisible): Call show and hide.
2766 (show): Make native.
2768 (getArgs): Don't add "visible" argument.
2769 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2770 (property_notify_predicate): Return Bool instead of int.
2771 (find_layout): New function.
2772 (connectJObject): Call find_layout.
2773 (connectSignals): Likewise.
2774 (moveLayout): Likewise.
2775 (gtkLayoutSetVisible): Likewise.
2777 2004-07-21 Mark Wielaard <mark@klomp.org>
2779 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
2780 on notifier object before calling notifyAll().
2782 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2784 * java/awt/Window.java: Changed constructors to use new
2785 method that is described below. Constructors call this
2786 methods only if newly created window should have an owner.
2787 (setWindowOwner): New method. Implementation for
2788 this method is moved from this(owner,configuration).
2789 * javax/swing/JWindow.java:
2790 (JWindow): Reimplement to use SwingUtilities.ownerFrame
2792 * javax/swing/SwingUtilities.java:
2793 (ownerFrame): Change type of this field to OwnerFrame.
2794 (getOwnerFrame): Changed to return object of type OwnerFrame.
2795 (SwingUtilities.OwnerFrame): New class. Represents owner
2796 of a Window that is not provided with one.
2798 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2800 * javax/swing/AbstractButton.java:
2801 (configurePropertiesFromAction): Set action command
2802 to button's text by default if action command is not
2803 explicitely specified.
2804 * javax/swing/JMenu.java: Remove unnecessary listener
2805 and methods relevant to it.
2806 (setSelected): Reimplemented.
2807 (menuSelectionChanged): Moved most part of implementation to
2808 setSelected() and call it instead.
2809 * javax/swing/JMenuItem.java:
2810 (init): Comment out statement that sets paint_border to false.
2811 (configurePropertiesFromAction): Do not set accelerator
2813 (menuSelectionChanged): Change selected index in the selection
2814 model of menu item's parent.
2815 * javax/swing/JPopupMenu.java:
2816 (remove): Set constraints.fill field to GridBagConstraints.BOTH
2817 instead of GridBagConstraints.HORIZONTAL.
2819 (createActionChangeListener): Implemented.
2820 (setVisible): Correct location of HeavyWeightMenu and
2821 don't firePopupMenuCanceled().
2822 (menuSelectionChanged): Implemented.
2823 (ActionChangeListener): New Listener. Implemented.
2824 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2825 (BasicMenuBarUI.ContainerHandler): Implemented.
2826 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2827 (paintMenuItem): Uncommented out code that paints
2828 icon, now that icons are working properly.
2829 (PropertyChangeListener): Implemented.
2830 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2832 (topWindowListener): New field.
2833 (Constructor): initialize topWindowListener.
2834 (BasicPopupMenuUI.TopWindowListener): Implemented.
2835 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
2836 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
2839 2004-07-21 Michael Koch <konqueror@gmx.de>
2841 * javax/swing/plaf/basic/BasicButtonUI.java
2842 (paintFocus): Fixed method signature.
2843 (paintButtonPressed): Likewise.
2844 (paintButtonNormal): Likewise.
2845 (paintText): New method.
2846 * javax/swing/plaf/basic/BasicLabelUI.java
2847 (paint): Re-indented.
2848 * javax/swing/plaf/basic/BasicTextUI.java
2849 (installUI): Set parent textComponent to opaque.
2850 * javax/swing/text/DefaultHighlighter.java
2851 (checkPositions): New helper method.
2852 (addHighlight): Throws BadLocationException, check positions.
2853 (changeHighlight): Likewise.
2854 * javax/swing/text/EditorKit.java
2855 (EditorKit): Implements Serializable.
2856 * javax/swing/text/JTextComponent.java
2857 (getUI): Added javadoc.
2859 (upadteUI): Added javadoc, don't revalidate and repaint.
2861 2004-07-21 David Jee <djee@redhat.com>
2863 * java/awt/GridBagLayout.java
2864 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
2865 * javax/swing/AbstractButton.java
2866 (setText): Reindent.
2867 * javax/swing/RepaintManager.java
2868 (addInvalidComponent): Find the first ancestor that isValidateRoot().
2870 2004-07-21 Michael Koch <konqueror@gmx.de>
2872 * javax/swing/JFormattedTextField.java
2874 (JFormattedTextField): Implemented.
2875 (getValue): Likewise.
2876 (setValue): Likewise.
2877 * javax/swing/LookAndFeel.java
2878 (getSupportsWindowDecorations): New method.
2879 * javax/swing/UIDefaults.java:
2880 Use java.beans.PropertyChangeSupport instead of doing all ourself.
2881 (addPropertyChangeListener): Made public.
2882 (addResourceBundle): Likewise.
2883 (removeResourceBundle): Likewise.
2884 (setDefaultLocale): Likewise.
2885 * javax/swing/plaf/basic/BasicRootPaneUI.java
2886 (BasicRootPaneUI): Implements PropertyChangeListener.
2887 (propertyChange): New method.
2888 * javax/swing/plaf/basic/BasicTextUI.java
2889 (BasicHighlighter): New inner class.
2890 (createHighlighter): New method.
2891 * javax/swing/plaf/basic/BasicToolBarUI.java
2892 (DragWindow): Extends java.awt.Window.
2893 * javax/swing/text/JTextComponent.java
2894 (getDocument): Removed debug output.
2895 * javax/swing/plaf/basic/BasicTextFieldUI.java,
2896 javax/swing/text/DefaultHighlighter.java,
2897 javax/swing/text/FieldView.java,
2898 javax/swing/text/PlainView.java: New files.
2899 * Makefile.am: Added new files.
2900 * Makefile.in: Regenerated.
2902 2004-07-21 Michael Koch <konqueror@gmx.de>
2904 * javax/swing/JEditorPane.java
2905 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
2906 (createEditorKitForContentType): Likewise.
2907 * javax/swing/text/DefaultEditorKit.java
2908 (serialVersionUID): Added constant field.
2909 (EndOfLineStringPropery): Fixed typo.
2910 (DefaultEditorKit): New constructor.
2911 * javax/swing/text/Segment.java:
2912 Import java.text.CharacterIterator.
2913 * javax/swing/text/CharacterIterator.java,
2914 javax/swing/text/PlainEditorKit.java: Removed.
2915 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
2916 javax/swing/text/PlainEditorKit.java.
2917 * Makefile.in: Regenerated.
2919 2004-07-21 Michael Koch <konqueror@gmx.de>
2921 * javax/swing/JButton.java,
2922 javax/swing/text/DefaultEditorKit.java,
2923 javax/swing/text/EditorKit.java,
2924 javax/swing/text/Segment.java,
2925 javax/swing/text/StyledEditorKit.java:
2928 2004-07-21 Michael Koch <konqueror@gmx.de>
2930 * javax/swing/ImageIcon.java
2932 (description): Renamed from descr.
2933 (ImageIcon): Added missing constructors.
2934 (setParent): Removed.
2935 (setImageObserver): New method.
2936 (getImageObserver): New method.
2937 (paintIcon): Handle observer = null.
2938 * javax/swing/JButton.java
2939 (removeNotify): Fixed javadoc.
2940 (updateUI): Simplified.
2941 * javax/swing/JRootPane.java
2942 (serialVersionUID): New constant field.
2943 * javax/swing/UIManager.java:
2944 Fixed javadocs all over.
2945 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
2946 * javax/swing/text/AbstractDocument.java
2947 (createPosition): Throws BadLocationException.
2948 (getText): Likewise.
2950 * javax/swing/text/ComponentView.java
2951 (modelToView): Likewise.
2952 * javax/swing/text/DefaultEditorKit.java:
2953 Made all public methods public.
2954 (read): Throws BadLocationException and IOException.
2956 * javax/swing/text/EditorKit.java:
2957 Made all public methods public.
2958 (serialVersionUID): New constant field.
2959 (clone): New method.
2960 (read): Throws BadLocationException and IOException.
2962 * javax/swing/text/Segment.java
2963 (array): Made public.
2966 (Segment): New constructors.
2967 (clone): Reimplemented.
2968 * javax/swing/text/StyledEditorKit.java
2969 (serialVersionUID): New constant field.
2971 2004-07-21 Graydon Hoare <graydon@redhat.com>
2973 * java/awt/image/BufferedImage.java
2974 (getSource): Implement.
2975 * javax/swing/ImageIcon.java
2976 (ImageIcon): Implement ctor.
2977 * javax/swing/ScrollPaneLayout.java
2978 (preferredLayoutSize): Be more careful about nulls.
2980 2004-07-21 Michael Koch <konqueror@gmx.de>
2982 * javax/swing/text/AttributeSet.java
2983 (CharacterAttribute): New interface
2984 (ColorAttribute): Likewise.
2985 (FontCharacterAttribute): Likewise.
2986 (ParagraphAttribute): Likewise.
2987 * javax/swing/text/DefaultCaret.java
2988 (moveCaret): New method.
2989 (positionCaret): Likewise.
2990 (repaint): Made protected.
2991 * javax/swing/text/JTextComponent.java
2992 (KeyBinding): Made it static.
2993 * javax/swing/text/View.java
2994 (getContainer): Honor parent == null.
2996 2004-07-21 Michael Koch <konqueror@gmx.de>
2998 * javax/swing/text/AbstractDocument.java:
3001 2004-07-21 Michael Koch <konqueror@gmx.de>
3003 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3004 Import javax.swing.UIManager explicitely.
3005 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3006 (ScrollingButton): Made it static.
3008 2004-07-21 Michael Koch <konqueror@gmx.de>
3010 * javax/swing/UIDefaults.java
3011 (ActiveValue): Made public.
3012 (LazyValue): Likewise.
3013 * javax/swing/plaf/basic/BasicTextUI.java
3014 (RootView): Reintroduced.
3016 (rootView): New field.
3017 (installUI): Create document if needed, initialize rootView.
3018 (uninstallUI): Hanle rootView.
3020 (getRootView): Likewise.
3021 (setView): Likewise.
3022 * javax/swing/text/DefaultCaret.java:
3023 Renamed all "evt" variables to "event".
3025 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3027 * libgcj.spec.in: Add -l-java-util-logging.
3029 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3031 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3032 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3033 gtk-xft-dpi can no calculate the right value.
3034 (dpi_changed_cb): Mark *pspec as unsused.
3036 2004-07-21 David Jee <djee@redhat.com>
3038 * java/awt/Component.java
3039 (move): Delegate to setBounds().
3041 (reshape): Fix so it repaints parent and self only when necessary.
3043 2004-07-21 David Jee <djee@redhat.com>
3045 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3046 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3047 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3048 (setVisible): Likewise.
3051 (getArgs): Likewise.
3052 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3053 (property_notify_predicate): Likewise.
3054 (find_layout): Likewise.
3055 (connectJObject): Likewise.
3056 (connectSignals): Likewise.
3057 (moveLayout): Likewise.
3058 (gtkLayoutSetVisible): Likewise.
3060 2004-07-21 Graydon Hoare <graydon@redhat.com>
3066 (rmiregistry_LDADD): Add lib-java-util-logging.la
3067 * Makefile.in: Regenerate.
3069 2004-07-21 Michael Koch <konqueror@gmx.de>
3071 * javax/swing/text/AbstractDocument.java
3072 (replace): Dont use protected method of java.util.Vector directly.
3074 2004-07-21 Michael Koch <konqueror@gmx.de>
3076 * javax/swing/plaf/basic/BasicTextUI.java
3077 (installUI): Call specialized install methods.
3078 (installDefaults): New method.
3079 (installListeners): Likewise.
3080 (installKeyboardActions): Likewise.
3081 (uninstallUI): Likewise.
3082 (uninstallDefaults): New method.
3083 (uninstallListeners): Likewise.
3084 (uninstallKeyboardActions): Likewise.
3085 (getPropertyPrefix): New abstract method.
3086 (paint): Made final, just call paintSafely().
3087 (paintSavely): New method.
3088 (paintBackground): Likewise.
3089 (getVisibleEditorRect): Likewise.
3090 * javax/swing/text/LayeredHighlighter.java,
3091 javax/swing/text/TabExpander.java: New files.
3092 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3093 and javax/swing/text/TabExpander.java.
3094 * Makefile.in: Regenerated.
3096 2004-07-21 Michael Koch <konqueror@gmx.de>
3098 * javax/swing/plaf/basic/BasicTextUI.java
3099 (BasicTextUI): Made abstract.
3100 (BasicCaret): New inner class.
3101 (view): Don't explicitely initialize with "null".
3102 (textComponent): New field.
3103 (textColor): Removed.
3104 (disabledTextColor): Removed.
3105 (normalBackgroundColor): Removed.
3106 (RootView): Removed commented out inner class.
3107 (createUI): Removed.
3108 (createCaret): New method.
3109 (getComponent): Likewise.
3110 (installUI): Initialize textComponent only.
3111 (getPreferredSize): Use installed JTextComponent.
3112 (setView): New method.
3114 * javax/swing/text/JTextComponent.java
3115 (highlighter): New field.
3116 (caretColor): Likewise.
3117 (disabledTextColor): Likewise.
3118 (seletedTextColor): Likewise.
3119 (selectionColor): Likewise.
3120 (setUI): New method.
3121 (getCaretColor): Likewise.
3122 (setCaretColor): Likewise.
3123 (getDisabledColor): Likewise.
3124 (setDisabledColor): Likewise.
3125 (getSelectedTextColor): Likewise.
3126 (setSelectedTextColor): Likewise.
3127 (getSelectionColor): Likewise.
3128 (setSelectionColor): Likewise.
3129 (getHighlighter): Likewise.
3130 (setHighlighter): Likewise.
3131 (replaceSelection): Likewise.
3133 2004-07-21 Michael Koch <konqueror@gmx.de>
3135 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3136 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3137 * javax/swing/plaf/basic/BasicToolBarUI.java
3138 (BasicToolBarUI): Implements SwingConstants.
3140 2004-07-21 Michael Koch <konqueror@gmx.de>
3142 * javax/swing/JPopupMenu.java: Removed CVS tags.
3143 * javax/swing/UIDefaults.java: Reformatted.
3144 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3145 Explicitely import used classes.
3147 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3149 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3150 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3151 (GtkComponentPeer): Remove temporary try/catch block.
3152 (setVisible): Call show and hide.
3153 (show): Make native.
3155 (getArgs): Don't add "visible" argument.
3156 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3157 (property_notify_predicate): Return Bool instead of int.
3158 (find_layout): New function.
3159 (connectJObject): Call find_layout.
3160 (connectSignals): Likewise.
3161 (moveLayout): Likewise.
3162 (gtkLayoutSetVisible): Likewise.
3164 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3166 * javax/swing/AbstractButton.java:
3167 (setDisplayedMnemonicIndex): Check if button
3168 text is not null before checking its length.
3169 * javax/swing/JMenuItem.java:
3170 (processMouseEvent): Disarm menu item if mouse has
3172 * javax/swing/plaf/basic/BasicMenuUI.java:
3173 (MouseInputHandler.mouseEntered): Do not raise
3174 popup menu if this menu is already selected.
3175 (MouseInputHandler.mousePressed): Do not fire
3177 (MenuHandler): Implemented.
3179 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3181 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3182 (getSelectedObjects): Implemented.
3183 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3184 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3185 Added javadoc for few methods.
3186 (processMouseEvent): Made public.
3187 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3188 (processMouseEvent): Likewise.
3190 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3192 * javax/swing/AbstractButton.java:
3193 (init): Set display mnemonic index to -1.
3194 (setMnemonic(char)): Use setMnemonic(int).
3195 (setMnemonic(int)): Set display mnemonic index.
3196 (getDisplayedMnemonicIndex): Change method signature
3197 by removing 'index' parameter.
3198 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3199 Added default for Menu.selectionBackground.
3200 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3201 (paintMenuItem): Change background color of the selected
3203 (paintText): Paint differently when menu item is disabled.
3204 Also paint mnemonic if it appears in the menu item's label.
3205 (paintAccelerator): Paint accelerator differently
3206 if menu item is disabled.
3207 * javax/swing/plaf/basic/BasicMenuUI.java:
3208 (installDefaults): Install defaults for
3209 selectionForeground and selectionBackground.
3210 (uninstallDefaults): Uninstall defauls for
3211 selectionForeground and selectionBackground.
3213 2004-07-21 Michael Koch <konqueror@gmx.de>
3215 * javax/swing/text/AbstractDocument.java
3216 (BranchElement): Implemented.
3217 (LeafElement): Implemented.
3218 * javax/swing/text/DefaultCaret.java:
3219 Import used classes.
3220 (serialVersionUID): New constant.
3221 * javax/swing/text/JTextComponent.java
3222 (AccessibleJTextComponent): Removed dead declaration.
3223 (caretPos): Removed.
3224 (setCaret): New method.
3225 * javax/swing/text/PlainDocument.java
3226 (rootElement): New field.
3227 (PlainDocument): Initialize rootElement.
3228 (createDefaultRoot): New method.
3229 (getDefaultRootElement): Implemented.
3230 * javax/swing/text/View.java: Reformatted.
3231 * javax/swing/text/ViewFactory.java
3232 (create): Added javadoc.
3234 2004-07-21 Michael Koch <konqueror@gmx.de>
3236 * javax/swing/ToolTipManager.java: Reformatted.
3238 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3240 * javax/swing/AbstractButton.java
3241 (changeEvent): New field.
3242 (fireItemStateChanged): Change source of the event
3243 to 'this' before firing it to button listeners.
3244 (fireActionPerformed): Likewise.
3245 (fireStateChanged): Likewise.
3246 (createActionListener): Do not set source
3247 of the event to AbstractButton.
3248 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3249 (ContainerHandler.componentAdded): Removed
3250 print out statement.
3251 (ContainerHandler.componentRemoved): Likewise.
3253 2004-07-21 Michael Koch <konqueror@gmx.de>
3255 * javax/swing/text/Highlighter.java: New file.
3256 * Makefile.am: Added javax/swing/text/Highlighter.java.
3257 * Makefile.in: Regenerated.
3259 2004-07-21 Michael Koch <konqueror@gmx.de>
3261 * javax/swing/ToolTipManager.java
3262 (stillInsideTimerAction): Fixed constructor arguments.
3263 (outsideTimerAction): Likewise.
3264 (insideTimerAction): Likewise.
3266 2004-07-21 Michael Koch <konqueror@gmx.de>
3268 * javax/swing/JButton.java: Reformatted.
3269 * javax/swing/JFormattedTextField.java
3270 (getUIClassID): Implemented.
3271 * javax/swing/JRootPane.java
3272 (serialVersionUID): New constant.
3273 * javax/swing/JTextField.java
3275 (JTextField): Simplified.
3276 (getUIClassID): New method.
3277 (getActionListeners): Added @since tag.
3278 (setColumns): Invalidate layout and repaint.
3279 (getHorizontalAlignment): New method.
3280 (setHorizontalAlignment): New method.
3281 (selectAll): Removed.
3282 * javax/swing/SwingUtilities.java
3283 (getAncestorOfClass): Removed redundant @see tag.
3284 (isLeftMouseButton): Fixed implementation.
3285 (isMiddleMouseButton): Likewise.
3286 (isRightMouseButton): Likewise.
3287 * javax/swing/text/AbstractDocument.java
3288 (AttributeContext.addAttribute): New method.
3289 (AttributeContext.addAttributes): New method.
3290 (AttributeContext.getEmptySet): New method.
3291 (AttributeContext.reclaim): New method.
3292 (AttributeContext.removeAttribute): New method.
3293 (AttributeContext.removeAttributes): New method.
3294 * javax/swing/text/Document.java
3295 (createPosition): Throws BadLocationException.
3296 (getText): Likewise.
3298 * javax/swing/text/JTextComponent.java
3299 (getText): Return null if no document is set. Catch
3300 BadLocationException.
3302 (updateUI): Simplified.
3304 2004-07-21 Michael Koch <konqueror@gmx.de>
3306 * javax/swing/JButton.java
3307 (removeNotify): Fixed javadoc.
3308 (updateUI): Simplified.
3310 2004-07-21 David Jee <djee@redhat.com>
3312 * gnu/java/awt/image/ImageDecoder.java
3313 (startProduction): Only add consumer if it's not added yet.
3314 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3315 (GdkPixbufDecoder): Don't call initState() here.
3316 (produce): Call initState() here, to ensure area_prepared and
3317 area_updated signals are properly connected.
3318 * gnu/java/awt/peer/gtk/GtkImage.java
3319 (setColorModel): Use equals() to compare ColorModel objects.
3320 (setPixels): Likewise.
3321 * java/awt/image/ColorModel.java
3322 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3323 * java/awt/image/RGBImageFilter.java
3324 (setColorModel): Set consumer's color model.
3325 (setPixels): Use equals() to compare ColorModel objects.
3327 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3329 * java/net/URLConnection.java (position): New field.
3330 (dateFormat1, dateFormat2, dateFormat3): Removed.
3331 (dateFormats): New field.
3332 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3333 each time instead of re-allocating.
3334 (initializeDateFormats): Initialize 'dateFormats'.
3336 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3339 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3342 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3344 * java/net/Socket.java (getImpl): Now private. Remove comment.
3346 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3348 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3349 of chained Writer when calling super-constructor.
3350 * java/io/FilterWriter.java (FilterWriter): Likewise.
3351 * java/io/PrintWriter.java (PrintWriter): Likewise.
3353 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3355 * prims.cc (process_gcj_properties): Don't increment i within LHS
3358 2004-07-19 Per Bothner <per@bothner.com>
3360 Print -verbose:message on "loading", not initialization.
3361 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3362 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3363 gcj::verbose_class_flag.
3364 * java/lang/natClass.cc (initializeClass): Don't print message here.
3365 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3366 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3367 (_Jv_PrepareCompiledClass): Likewise.
3369 2004-07-18 Matthias Klose <doko@debian.org>
3371 * configure.in: Substitute target_noncanonical.
3372 * configure: Regenerate
3374 2004-07-17 Michael Koch <konqueror@gmx.de>
3376 * java/lang/String.java: Fixed javadocs all over.
3378 2004-07-17 Mark Wielaard <mark@klomp.org>
3380 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3381 when size is smaller.
3382 * java/io/RandomAccessFile.java (setLength): Use truncate for
3383 shrinking the file and seek plus write for expanding the file.
3385 2004-07-17 Michael Koch <konqueror@gmx.de>
3387 * gnu/java/nio/channels/natFileChannelPosix.cc
3388 (implTruncate): Always save current position. Only reposition file
3389 pointer to where we started if not beyond new lenght. Reposition file
3390 pointer to file length if it points beyond the end of file.
3392 2004-07-17 Mark Wielaard <mark@klomp.org>
3394 * javax/swing/Box.java: Put FIXME comment above class declaration.
3395 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3396 * javax/swing/JCheckBox.java: Likewise.
3397 * javax/swing/JDialog.java: Likewise.
3398 * javax/swing/JRadioButton.java: Likewise.
3399 * javax/swing/JToggleButton.java: Likewise.
3400 * javax/swing/UIManager.java: Likewise.
3401 * javax/swing/border/TitledBorder.java: Likewise.
3402 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3403 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3404 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3405 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3406 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3407 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3408 * javax/swing/text/JTextComponent.java: Likewise.
3410 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
3412 * java/net/DatagramPacket.java (setAddress): Removed check for
3415 2004-07-17 Michael Koch <konqueror@gmx.de>
3417 * java/net/DatagramSocket.java
3418 (getLocalAddress): Check if socket is bound or not.
3419 * java/net/Socket.java
3420 (getLocalAddrss): Check if socket is bound or not.
3421 (getPort): Return -1 when not connected. Dont check getImpl() for
3423 (setReuseAddress): Check if socket is closed.
3424 (isConnected): Check if getImpl() returns null.
3426 2004-07-17 Mark Wielaard <mark@klomp.org>
3428 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3429 on notifier object before calling notifyAll().
3431 2004-07-17 Michael Koch <konqueror@gmx.de>
3433 * gnu/java/nio/channels/FileChannelImpl.java
3434 (finalize): Added javadoc.
3436 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3438 * java/text/CollationElementIterator.java
3439 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
3440 (setText): Use ArrayList instead of Vector.
3442 2004-07-17 Michael Koch <konqueror@gmx.de>
3444 * java/nio/ByteOrder.java
3445 (static): Removed. Not needed.
3446 Thanks to Patrick Reali for noticing.
3447 * java/nio/charset/CharsetDecoder.java
3448 (decode): Fix for classpath bug #9177: Reset state before flipping.
3450 2004-07-17 Michael Koch <konqueror@gmx.de>
3452 * java/security/Security.java: Fixed javadocs all over.
3454 2004-07-17 Michael Koch <konqueror@gmx.de>
3456 * gnu/java/awt/EmbeddedWindow.java
3458 (addNotify): Set peer via reflection.
3459 (setWindowPeer): Removed.
3460 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3461 * Makefile.am (nat_source_files):
3462 Removed gnu/java/awt/natEmbeddedWindow.cc.
3463 * Makefile.in: Regenerated.
3465 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
3467 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
3469 * configure: Regenerated.
3471 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
3473 * configure.in: Use build_noncanonical rather than build_alias.
3474 * configure: Rebuild.
3476 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
3477 by logic refactoring. Move default definition of NATIVE closer
3478 to first alternate definition.
3479 * configure: Regenerate.
3481 * Makefile.am: Set ZIP and GCJH directly using autoconf.
3482 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
3483 gcj/Makefile.in: Regenerate.
3484 * configure.in: Set ZIP and GCJH. Remove redundant condition
3485 in AM_CONDITIONAL(NATIVE,...)
3486 * configure: Regenerate.
3488 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
3490 * configure.in: Use target_noncanonical rather than
3491 target_alias for forward-compatibility with autoconf 2.59.
3492 * configure: Regenerate.
3493 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
3494 testsuite/Makefile.am: Substitute target_noncanonical.
3495 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3496 testsuite/Makefile.in: Regenerate.
3498 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
3499 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
3500 * acinclude.m4: Include acx.m4.
3501 * aclocal.m4: Regenerate.
3502 * configure: Regenerate.
3504 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
3507 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
3508 (decimalFormat): New static variable.
3510 (getTime): New. Override Date.getTime().
3511 (toString): Synchronize. Use decimalFormat to format nanos value
3512 correctly. Truncate extra zeros.
3513 (before): Compare getNanos() only if getTime() is equal.
3516 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3518 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
3519 * configure.in: ...here.
3520 * aclocal.m4: Regenerate.
3521 * configure: Regenerate.
3523 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
3524 * configure: Rebuilt with autoconf 2.13.
3525 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3526 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
3528 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
3531 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
3533 * Makefile.in: Rebuilt.
3534 * testsuite/libjava.lang/LargeFile.java: New test case.
3535 * testsuite/libjava.lang/LargeFile.out: New file.
3537 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3539 * java/beans/EventHandler.java: Remove debugging statements.
3541 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3543 * java/beans/EventHandler.java: New file.
3544 * Makefile.am (awt_java_source_files): Add EventHandler.java.
3545 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3546 testsuite/Makefile.in: Regenerate.
3548 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
3550 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
3551 flag to the gcj_setup.
3552 (gcj_jacks_run): Check tclsh version and launch jacks directly with
3554 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
3555 deprecation flag change. 58 XFAILS removed.
3557 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3559 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
3560 -fno-use-divide-subroutine.
3561 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
3562 (HANDLE_FPE): Define.
3563 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
3564 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3565 (HANDLE_DIVIDE_OVERFLOW): Define.
3567 2004-07-14 Michael Koch <konqueror@gmx.de>
3568 Matthias Klose <doko@debian.org>
3570 * java/awt/im/InputContext.java: Initialize in, line.
3572 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
3574 * interpret.cc (run): Correctly access libffi return values of
3575 integral smaller-than-int type; these are implicitly promoted.
3577 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
3580 * interpret.cc (compile_mutex): New.
3581 (_Jv_InitInterpreter): New. Initialize compile_mutex.
3582 (run): Lock compile_mutex before calling compile() if compilation is
3584 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
3585 * include/java-interp.h (_Jv_InitInterpreter): Declare.
3587 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
3590 * include/jvm.h (_Jv_value): New union type.
3591 * gcj/field.h (_Jv_Field): Add new _addr union field variants
3592 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
3595 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
3597 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
3598 * gnu/awt/xlib/XOffScreenImage.java
3599 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
3600 constructor argument. Add constructor using ImageProducer.
3601 (getSource): Implement.
3602 (imageComplete): New method.
3603 (setColorModel): New method.
3604 (setDimensions): New method.
3605 (setHints): New method.
3606 (setPixels): New method.
3607 (setProperties): New method.
3608 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
3609 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
3611 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
3614 * prims.cc (_Jv_CreateJavaVM): Fix comment.
3615 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
3616 (finalizerReady): Now native.
3618 (runFinalizers): Removed.
3619 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
3620 a primitive lock, and don't hold it while running the finalizers.
3621 (runFinalizers): Implement. Don't aquire any Java lock.
3622 (finalizerReady): Use lock primitives to signal finalizer thread.
3624 2004-07-11 Mark Wielaard <mark@klomp.org>
3626 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
3627 * java/net/URLStreamHandler.java (parseURL): When url file part
3628 doesn't contain a '/' just ignore context.
3630 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
3632 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
3633 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3634 (MAKE_THROW_FRAME): Do not modify PSW address.
3635 (INIT_SEGV): Install SIGINFO-style signal handler.
3636 (INIT_FPE): Likewise.
3638 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3640 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
3641 status. 21 xfail's removed, 1 added.
3643 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3645 * gcj/javaprims.h: Regenerate CNI namespace definitions.
3647 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
3649 * java/text/MessageFormat.java
3650 (formatInternal): Append "{n}" if argument n is unavailable.
3651 (format(Object, StringBuffer, FieldPosition)): This
3652 should be equivalent to format(Object[],
3653 StringBuffer, FieldPosition).
3655 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3657 * java.util.Calendar.java (cache): New private static field. Cached
3658 mappings of locales->calendar classes.
3659 (ctorArgTypes): New private static field. Singleton argument for
3660 calendar class constructor lookup.
3661 (getInstance): Cache Locale->Calendar class mappings using HashMap.
3662 Optimize by bypassing reflection instantiation for the
3663 GregorianCalendar case.
3665 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3667 * java/util/Calendar.java: Use getSystemClassLoader as argument for
3668 ResourceBundle.getBundle() calls.
3669 * java/util/GregorianCalendar.java: Likewise.
3670 * java/util/Currency.java: Likewise.
3671 * java/text/BreakIterator.java: Likewise.
3672 * java/text/Collator.java: Likewise.
3673 * java/text/DateFormat.java: Likewise.
3674 * java/text/DateFormatSymbols.java: Likewise.
3675 * java/text/DecimalFormatSymbols.java: Likewise.
3676 * java/text/NumberFormat.java: Likewise.
3677 * java/awt/Window.java: Likewise.
3679 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3681 * java/util/ResourceBundle.java (bundleCache): Renamed from
3682 resourceBundleCache. Update comments.
3683 (getObject): Don't catch MissingResourceException.
3684 (getBundle(String)): Remove 'final'. Use system classloader if
3685 getCallingClassLoader returned null.
3686 (getBundle(String, Locale)): Likewise.
3687 (BundleKey): New private class. HashMap key for bundle cache lookup.
3688 (lookupKey): New. Singleton instance of BundleKey.
3689 (nullEntry): New. Cache entry to represent failed lookups.
3690 (getBundle(String, Locale, ClassLoader)): Re-written to use new
3691 caching strategy, no-allocation lookup, and new tryBundle methods.
3692 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
3693 name using given classloader.
3694 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
3695 baseName for given Locale and attempt to load bundle.
3697 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3699 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
3700 illegal protected method calls.
3702 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3704 Fix or remove some bogus test cases.
3705 * testsuite/libjava.compile/pr10459_2.java: Removed.
3706 * testsuite/libjava.compile/pr10459.java: Test using its own method,
3708 * testsuite/libjava.compile/inner_data.java: Test against its own
3711 2004-07-09 Michael Koch <konqueror@gmx.de>
3713 * scripts/unicode-muncher.pl: Updated to version 2.1
3714 from GNU classpath. Added some clarifications on where to find the
3715 needed files from www.unicode.org.
3716 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
3717 gnu/gcj/convert/UnicodeData-3.0.0.txt:
3718 Removed, these can directly be downloaded from www.unicode.org if
3720 * gnu/java/lang/CharData.java: Regenerated.
3721 * include/java-chartables.h: Regenerated.
3722 * Makefile.am (ordinary_java_source_files):
3723 Removed gnu/java/lang/CharData.java.
3724 * Makefile.in: Regenerated.
3726 2004-07-09 Michael Koch <konqueror@gmx.de>
3728 * java/security/AccessControlContext.java,
3729 java/security/SecureClassLoader.java:
3732 2004-07-09 Michael Koch <konqueror@gmx.de>
3734 * java/io/ObjectInputStream.java (readFields): Use long datatype
3735 when shifting byte values more then 24 bits left.
3737 2004-07-09 Michael Koch <konqueror@gmx.de>
3739 * java/util/zip/DeflaterOutputStream.java,
3740 java/util/zip/GZIPInputStream.java,
3741 java/util/zip/GZIPOutputStream.java,
3742 java/util/zip/InflaterInputStream.java:
3743 Reformatted. Added javadocs. Reordered all stuff.
3744 Renamed variables to be more clear.
3746 2004-07-09 Michael Koch <konqueror@gmx.de>
3748 * javax/imageio/IIOException.java,
3749 javax/imageio/event/IIOReadProgressListener.java,
3750 javax/imageio/event/IIOReadUpdateListener.java,
3751 javax/imageio/event/IIOReadWarningListener.java,
3752 javax/imageio/event/IIOWriteProgressListener.java,
3753 javax/imageio/event/IIOWriteWarningListener.java:
3755 * Makefile.am: Added new files.
3756 * Makefile.in: Regenerated.
3758 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
3760 * java/text/RuleBasedCollator.java
3761 (mergeRules): Use ArrayList instead of Vector.
3762 (subParseString): likewise.
3763 (parseString): likewise.
3764 (buildCollationVector): likewise.
3765 (getCollationKey): likewise.
3767 2004-07-09 Dalibor Topic <robilad@kaffe.org>
3769 * java/text/DateFormat.java (parse):
3770 Improved javadoc. Improved exception message.
3772 2004-07-09 Mark Wielaard <mark@klomp.org>
3774 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
3775 interrupted() method to clear interupt flag of our Thread.
3777 2004-07-09 Dalibor Topic <robilad@kaffe.org>
3779 * java/nio/Buffer.java,
3780 java/nio/ByteBuffer.java,
3781 java/nio/ByteBufferHelper.java,
3782 java/nio/ByteBufferImpl.java,
3783 java/nio/CharBuffer.java,
3784 java/nio/CharBufferImpl.java,
3785 java/nio/CharViewBufferImpl.java,
3786 java/nio/DirectByteBufferImpl.java,
3787 java/nio/DoubleBuffer.java,
3788 java/nio/DoubleBufferImpl.java,
3789 java/nio/DoubleViewBufferImpl.java,
3790 java/nio/FloatBuffer.java,
3791 java/nio/FloatBufferImpl.java,
3792 java/nio/FloatViewBufferImpl.java,
3793 java/nio/IntBuffer.java,
3794 java/nio/IntBufferImpl.java,
3795 java/nio/IntViewBufferImpl.java,
3796 java/nio/LongBuffer.java,
3797 java/nio/LongBufferImpl.java,
3798 java/nio/LongViewBufferImpl.java,
3799 java/nio/MappedByteBufferImpl.java,
3800 java/nio/ShortBuffer.java,
3801 java/nio/ShortBufferImpl.java,
3802 java/nio/ShortViewBufferImpl.java:
3803 Fixed javadocs all over. Improved input error
3806 * java/nio/Buffer.java
3807 (checkForUnderflow, checkForOverflow, checkIndex,
3808 checkIfReadOnly, checkArraySize): New helper methods
3811 * java/nio/ByteBufferHelper.java
3812 (checkRemainingForRead, checkRemainingForWrite,
3813 checkAvailableForRead, checkAvailableForWrite): Removed
3814 no longer needed methods.
3816 2004-07-09 Michael Koch <konqueror@gmx.de>
3818 * gnu/regexp/CharIndexedInputStream.java:
3819 Reordered imports to match classpath.
3821 2004-07-09 Michael Koch <konqueror@gmx.de>
3823 * gnu/java/awt/EmbeddedWindow.java:
3824 Load native library for setWindowPeer method.
3826 2004-07-08 Randolph Chung <tausq@debian.org>
3828 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
3829 * configure: Regenerate.
3830 * configure.host: Set can_unwind_signal for hppa*-linux.
3831 * include/pa-signal.h: New file.
3833 2004-07-07 Per Bothner <per@bothner.com>
3835 * Makefile.am: Add rules to build libgij from just gij.cc.
3837 * include/jvm.h (namespace jcj): Declare verbose_class_flag
3838 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
3839 (initializeClass): If verbose_class_flag, print message.
3840 * gij.cc (main): Handle -verbose:class flag.
3842 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
3844 * configure.host: Enable hash synchronization on Darwin.
3845 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
3846 ';', since this is a comment on Darwin.
3847 (compare_and_swap_release): Likewise.
3849 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
3851 * java/net/URLStreamHandler.java (parseURL): Canonicalize
3852 file portion of URL in addition to spec for file: protocol.
3854 2004-07-05 Anthony Green <green@redhat.com>
3856 * java/io/File.java (toURI): Merge from Classpath.
3858 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
3860 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
3861 before passing to URL constructor. Rethrow any MalformedURLException
3862 as a RuntimeException. Catch MalformedURLException specifically, not
3865 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
3867 * java/util/Locale.java (readObject): Intern strings read from object
3870 2004-07-04 Michael Koch <konqueror@gmx.de>
3872 * gnu/gcj/runtime/FirstThread.java,
3873 gnu/gcj/runtime/natFirstThread.cc: Removed.
3874 * gnu/java/lang/MainThread.java,
3875 gnu/java/lang/natMainThread.cc: New files.
3876 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
3877 * Makefile.am: Added new files and removed deleted ones.
3878 * Makefile.in: Regenerated.
3880 2004-07-03 Mark Wielaard <mark@klomp.org>
3881 Anthony Green <green@redhat.com>
3883 * java/net/URL.java (getFile): Clarify return value doc.
3884 (getPath): Return null if file is empty - not empty String.
3885 (set): Convert protocol to lower case before doing anything.
3886 Only change the protocol handler if it's different.
3888 2004-07-03 Anthony Green <green@redhat.com>
3890 * java/net/URL.java (URL): Convert protocol to lower case before
3891 doing anything, so we getURLStreamHandler() with the proper value.
3893 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
3895 * java/util/Locale.java (hashcode): Made transient.
3896 (hashCode): No longer synchronized.
3897 (equals): Remove comment.
3898 (writeObject): No longer synchronized. Implement using writeObject
3899 calls instead of tweaking hashCode field. Update doc.
3900 (readObject): Implement using readObject calls.
3902 2004-06-26 Geoffrey Keating <geoffk@apple.com>
3903 Andreas Tobler <a.tobler@schweiz.ch>
3905 * configure.host (powerpc-*-darwin*): New case, define
3907 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
3908 * configure: Regenerate.
3909 * include/darwin-signal.h: New.
3911 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
3913 * java/beans/Statement.java (doExecute): Fix formatting.
3915 2004-06-29 Per Bothner <per@bothner.com>
3917 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
3918 etc etc): Remove needless parenthesis, which causes __stdcall__
3919 attribute on MinGW to get ignored.
3921 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
3923 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
3925 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
3927 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
3929 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
3931 * java/beans/Expression.java: New file.
3932 * java/beans/Statement.java: New file.
3933 * Makefile.am: Added new files.
3934 * Makefile.in: Re-generate.
3936 2004-06-27 Mark Wielaard <mark@klomp.org>
3938 * java/io/FilePermission.java (usingPerms): Removed.
3939 (actionsString): Made final.
3940 (cachePerms): Renamed to checkPerms.
3941 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
3943 (FilePermission): Check arguments, call checkPerms().
3944 (equals): Remove cachePerms() call.
3945 (implies): Likewise.
3947 2004-06-27 Mark Wielaard <mark@klomp.org>
3949 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
3951 (sendRequest): Use new field in user-agent http agent.
3953 2004-06-27 Mark Wielaard <mark@klomp.org>
3955 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
3956 when argument is null.
3958 2004-06-26 Mark Wielaard <mark@klomp.org>
3960 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
3961 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
3963 (cancel_clicked): Likewise.
3965 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
3967 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3968 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
3969 can not calculate the right value.
3970 (dpi_changed_cb): Likewise. Mark *pspec as unused.
3972 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
3974 * testsuite/libjava.jacks/jacks.xfail: Remove
3975 15.9.1-qualified-concrete-20.
3977 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
3979 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
3980 encoding name to iconv.
3981 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
3983 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
3986 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
3987 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
3988 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
3990 2004-06-21 Andrew Haley <aph@redhat.com>
3992 * java/io/ObjectOutputStream.java: Add DEBUG statements
3994 (dumpElementln): New method.
3996 * java/io/ObjectInputStream.java
3997 (currentClassLoader): Make native.
3998 (callersClassLoader): New field.
4000 (readObject): ENDBLOCKDATA is generated if the class has a write
4001 method, not if it has a read method.
4002 (readObject): Save and restore this.currentObject and
4003 this.currentObjectStreamClass around calls to callReadMethod().
4004 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4007 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4009 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4012 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4014 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4015 if desired, before the default class loader is initialised.
4016 Call INIT_SEGV only if HANDLE_SEGV is defined.
4018 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4020 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4021 directory only if it actually exists.
4023 2004-06-18 Graydon Hoare <graydon@redhat.com>
4025 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4026 Fix up non-ansi comments.
4028 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4030 * javax/swing/text/AbstractDocument.java: Adding missing import
4031 for javax.swing.event.EventListenerList.
4032 * javax/swing/text/DefaultCaret.java: Likewise.
4034 2004-06-17 Michael Koch <konqueror@gmx.de>
4036 * javax/swing/JToolBar.java
4038 (JToolBar): Use Component.setName(String) instead of doing it all
4040 * javax/swing/Timer.java
4041 (queueEvent): Added missing modifier.
4043 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4045 * Makefile.am: Added new file.
4046 * Makefile.in: Re-generate.
4047 * javax/swing/JMenu.java:
4048 (insertSeparator): Implemented.
4049 * javax/swing/JPopupMenu.java:
4050 (JPopupMenu.Separator): Implemented.
4051 * javax/swing/MenuSelectionManager.java:
4052 (processMouseEvent): Use java.awt.Component
4053 for event source instead of javax.swing.JComponent.
4054 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4055 New File. Implemented.
4057 2004-06-16 David Jee <djee@redhat.com>
4059 * java/awt/GridBagLayout.java
4060 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4061 Make sure pos_x and pos_y are never negative.
4063 2004-04-16 Andrew Overholt <overholt@redhat.com>
4065 * Makefile.am: Add new file.
4066 * Makefile.in: Re-generate.
4067 * javax/swing/JToolBar.java
4068 Partially implemented.
4069 * javax/swing/plaf/basic/BasicToolBarUI.java
4070 New file. Partially implemented.
4072 2004-06-16 Graydon Hoare <graydon@redhat.com>
4074 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4075 (setComposite): Accept AlphaComposite arguments.
4076 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4077 (createBufferedImage): Add new overloads.
4078 * gnu/java/awt/peer/gtk/GtkToolkit.java
4079 (createImage): Use GdkPixbufDecoder.createBufferedImage
4080 when useGraphics2D() is true.
4081 (getImage): Delegate to createImage.
4082 * javax/swing/JList.java
4084 (getFirstVisibleIndex):
4085 (getLastVisibleIndex):
4087 (ensureIndexIsVisible): New methods.
4088 * javax/swing/Timer.java: Reimplement.
4090 2004-06-16 Michael Koch <konqueror@gmx.de>
4092 * javax/swing/text/AbstractDocument.java
4093 (AbstracElement): Made public, implements java.io.Serializable.
4094 (AttributeContext): Made public.
4095 (BranchElement): Likewise.
4096 (Content): Likewise.
4097 (DefaultDocumentEvent): Made public, extends
4098 javax.swing.undo.CompoundEdit.
4099 (ElementEdit): Made public, extends
4100 javax.swing.undo.AbstractUndoableEdit.
4101 (LeafElement): Made public.
4102 (LeafElement.LeafElement): Made public.
4104 2004-06-16 Michael Koch <konqueror@gmx.de>
4106 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4107 methods (that were obviously never be intended to get included hi this
4108 class. Added some methods too.
4110 2004-06-16 Michael Koch <konqueror@gmx.de>
4112 * javax/swing/text/PlainDocument.java
4113 (serialVersionUID): New constant.
4114 (lineLimitAttribute): Likewise.
4115 (tabSizeAttribute): Likewise.
4116 (tabSize): New field.
4117 (PlainDocument): Made public.
4118 (PlainDocument): New constructor.
4120 2004-06-16 Michael Koch <konqueror@gmx.de>
4122 * javax/swing/text/AbstractDocument.java
4123 (insertString): Throws BadLocationException.
4124 * javax/swing/text/Document.java
4125 (insertString): Likewise.
4126 * javax/swing/text/JTextComponent.java:
4127 Javadocs and comments cleaned up.
4129 2004-06-16 Michael Koch <konqueror@gmx.de>
4131 * javax/swing/event/UndoableEditListener.java: Reformatted.
4132 * javax/swing/text/AbstractDocument.java
4133 (AbstractDocument): Implements java.io.Serializable.
4134 (doc_list): Removed.
4135 (undo_list): Removed.
4136 (AbstractElement.serialVerionUID): New field.
4137 (BranchElement.serialVerionUID): Likewise.
4138 (DefaultDocumentEvent.serialVerionUID): Likewise.
4139 (ElementEdit.serialVerionUID): Likewise.
4140 (LeafElement.serialVerionUID): Likewise.
4141 (serialVerionUID): Likewise.
4142 (BAD_LOCATION): New constant.
4143 (BidiElementName): Likewise.
4144 (ContentElementName): Likewise.
4145 (ParagraphElementName): Likewise.
4146 (SectionElementName): Likewise.
4147 (ElementNameAttribute): Likewise.
4148 (AbstractDocument): Made protected.
4149 (AbstractDocument): New construtor.
4150 (listenerList): New field.
4151 (fireChangedUpdate): Implemented.
4152 (fireInsertUpdate): Likewise.
4153 (fireRemoveUpdate): Likewise.
4154 (fireUndoableEditUpdate): Likewise.
4155 (getListeners): Likewise.
4156 (addDocumentListener): Likewise.
4157 (removeDocumentListener): Likewise.
4158 (addUndoableEditListener): Likewise.
4159 (removeUndoableEditListener): Likewise.
4160 (getDocumentListeners): New method.
4161 (getUndoableEditListeners): Likewise.
4162 (getAsynchronousLoadPriority): Made public.
4163 (getBidiRootElement): Likewise.
4164 (setAsynchronousLoadPriority): Likewise.
4165 (setDocumentProperties): Likewise.
4166 * javax/swing/text/BadLocationException.java
4167 (serialVerionUID): New field.
4168 * javax/swing/text/DefaultCaret.java
4169 (changeEvent): New field.
4170 (listenerList): Likewise.
4172 (addChangeListener): Reimplemented.
4173 (removeChangeListener): Likewise.
4174 (getListeners): New method.
4175 (getChangeListeners): Likwise.
4176 (getComponent): Likewise.
4177 * javax/swing/text/GapContent.java
4178 (GapContent): Implements java.io.Serializable.
4179 (serialVerionUID): New field.
4181 2004-06-16 Michael Koch <konqueror@gmx.de>
4183 * javax/swing/JTree.java
4184 (treeModel): New field.
4185 (JTree): New constructors, one existing one made public.
4186 (createTreeModel): New method.
4187 (addTreeExpansionListener): Likewise.
4188 (removeTreeExpansionListener): Likewise.
4189 (getTreeExpansionListeners): Likewise.
4190 (fireTreeCollapsed): Likewise.
4191 (fireTreeExpanded): Likewise.
4192 (addTreeSelectionListener): Likewise.
4193 (removeTreeSelectionListener): Likewise.
4194 (getTreeSelectionListeners): Likewise.
4195 (fireValueChanged): Likewise.
4196 (addTreeWillExpandListener): Likewise.
4197 (removeTreeWillExpandListener): Likewise.
4198 (getTreeWillExpandListeners): Likewise.
4199 (fireTreeWillCollapse): Likewise.
4200 (fireTreeWillExpand): Likewise.
4202 2004-06-16 Michael Koch <konqueror@gmx.de>
4204 * javax/swing/JTree.java: Reformatted.
4206 2004-06-16 Michael Koch <konqueror@gmx.de>
4208 * javax/swing/JTextArea.java: New file.
4209 * javax/swing/JTextField.java
4211 (notifyAction): New constant.
4212 (columns): New field.
4213 (JTextField): New constructors.
4214 (createDefaultModel): New method.
4215 (addActionListener): Reimplmemented.
4216 (removeActionListener): Reimplemented.
4217 (getActionListeners): New method.
4218 (fireActionPerformed): New method.
4219 (getColumns): New method.
4220 (setColumne): New method.
4221 * javax/swing/text/JTextComponent.java
4222 (AccessibleJTextComponent.serialVersionUID): New field.
4223 (serialVersionUID): Likewise.
4224 (DEFAULT_KEYMAP): Likewise.
4225 (FOCUS_ACCELERATOR_KEY): Likewise.
4226 (doc): Made private.
4227 (icon_gap): Likewise.
4230 (JTextComponent): Some constructors removed.
4231 (getScrollableTracksViewportHeight): New method.
4232 (getScrollableTracksViewportWidth): Likewise.
4233 * Makefile.am: Added javax/swing/JTextArea.java.
4234 * Makefile.in: Regenerated.
4236 2004-06-15 Graydon Hoare <graydon@redhat.com>
4238 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4239 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4240 * javax/swing/JViewport.java
4241 (getExtentSize): Return size rather than preferred size.
4242 (toViewCoordinates): New methods.
4243 (getViewSize): Return size rather than preferred size.
4244 (setViewSize): Note view size as set.
4245 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4246 * javax/swing/plaf/basic/BasicScrollBarUI.java
4247 (getPreferredSize): Don't redo layout.
4248 * javax/swing/plaf/basic/BasicViewportUI.java
4249 (paint): Translate image properly and eat exceptions.
4251 2004-06-15 Kim Ho <kho@redhat.com>
4253 * javax/swing/JTabbedPane.java
4254 (setComponent): Remove old component and
4256 (setSelectedIndex): Don't operate on the
4257 components if they're null. Don't set index
4258 on the model if the index is the same.
4259 (insertTab): Don't add or hide the component
4260 if it's null. Repaint the container.
4261 * javax/swing/plaf/basic/BasicLookAndFeel.java
4262 Change colors for TabbedPane.
4263 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4264 (mousePressed): Re-layout and paint the component.
4265 (layoutContainer): Don't set location on the view.
4266 (ScrollingViewport::paint): Remove.
4268 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4270 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4271 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4273 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4274 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4275 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4277 (drawLine): Call gdk_flush before leaving GDK critical region.
4278 (fillRect): Likewise.
4279 (drawRect): Likewise.
4280 (copyArea): Likewise.
4281 (copyPixmap): Likewise.
4282 (clearRect): Likewise.
4283 (drawArc): Likewise.
4284 (drawPolyline): Likewise.
4285 (drawPolygon): Likewise.
4286 (fillPolygon): Likewise.
4287 (fillArc): Likewise.
4288 (drawOval): Likewise.
4289 (fillOval): Likewise.
4291 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4293 (GdkFontMetrics): Add style argument to initState call.
4294 (stringWidth(String,int,int,String)): Add style parameter.
4295 (stringWidth(String)): Add style argument to stringWidth call.
4296 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4297 (initState): Set pango font style and weight based on AWT style
4298 parameter. Pass default GTK language to
4299 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4300 simply dividing by PANGO_SCALE.
4301 (stringWidth): Set pango font style and weight based on AWT style
4304 * java/awt/Button.java (next_button_number): New field.
4305 (paramString): Change output.
4306 (generateName): New method.
4307 (getUniqueLong): New method.
4309 2004-06-14 Kim Ho <kho@redhat.com>
4311 * javax/swing/JTabbedPane.java:
4312 (setComponentAt): Set the component, not
4314 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4315 (actionPerformed): Let deiconize catch exception.
4317 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4319 * javax/swing/JPopupMenu.java:
4320 (setVisible): Corrected location of a
4321 heavyweight popup menu.
4323 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4325 * javax/swing/MenuSelectionManager.java:
4326 Ran through jalopy to fix formatting style.
4328 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4330 * javax/swing/JLayeredPane.java:
4331 (remove): Revalidate and repaint layered pane after
4332 the component was removed.
4333 javax/swing/JMenu.java:
4334 (setVisible): Display popup menu at the user location,
4335 if one was set by the user.
4336 (setMenuLocation): Reimplemented. Fixed javadoc.
4337 * javax/swing/JMenuBar.java: Added javadoc.
4338 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4339 (MODEL_CHANGED_PROPERTY): New Property.
4340 (isSelected): Implemented.
4341 (setBorderPainted): Fire PropertyChangeEvent
4342 if paintBorder property changes.
4343 (setSelected): Implemented.
4344 (setSelectionModel): Implemented.
4345 * javax/swing/JPopupMenu.java: Added Javadoc
4346 (pack): Implemented.
4347 (setVisible): Reimplemented.
4348 (show): Fixed location.
4349 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4350 Container instead of JPanel.
4351 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4352 (clearSelectedPath): Reimplemented to clear selectedPath
4354 (processMouseEvent): Reimplemented.
4355 (setSelectedPath): Fire stateChange event indicating that
4356 selected menu path has changed.
4357 (getPath): Change to use ArrayList instead of Vector.
4358 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4359 (installUI): call installKeyboardActions().
4360 (uninstallUI): call uninstallKeyboardActions().
4362 2004-06-13 Michael Koch <konqueror@gmx.de>
4364 * javax/swing/text/DefaultCaret.java,
4365 javax/swing/text/BadLocationException.java:
4368 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4370 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4371 DEFAULT_COLS): New variables.
4372 (create): Don't allow 0 rows or 0 columns. Instead, set the
4373 values to DEFAULT_ROWS or DEFAULT_COLS.
4374 (getMinimumSize): Likewise.
4375 (getPreferredSize): Likewise.
4376 (minimumSize): Likewise.
4377 (preferredSize): Likewise.
4378 (create): Set peer's editable state.
4379 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4380 zero. Update javadocs.
4381 (TextArea(String)): Likewise.
4382 (TextArea(int,int)): Fix javadocs.
4383 (TextArea(String,int,int,int)): Only throw exception if one of
4384 rows or columns is zero. Fix javadocs.
4386 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4388 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4389 addition to Components.
4391 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4392 wasn't consumed by normal processing, send it to the parent
4395 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4396 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4399 2004-06-11 David Jee <djee@redhat.com>
4401 * java/awt/MediaTracker.java
4402 (addImage(Image,int)): Call imageUpdate() to udpate image status.
4403 (addImage(Image,int,int,int)): Likewise.
4405 2004-06-11 Michael Koch <konqueror@gmx.de>
4407 * javax/swing/text/AbstractDocument.java,
4408 javax/swing/text/Document.java,
4409 javax/swing/text/GapContent.java,
4410 javax/swing/text/JTextComponent.java,
4411 javax/swing/text/PlainDocument.java:
4414 2004-06-11 Michael Koch <konqueror@gmx.de>
4416 * javax/swing/JRootPane.java
4417 (AccessibleJRootPane.serialVersionUID): New field.
4418 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
4419 (AccessibleJRootPane.getAccessibleRole): New method.
4420 (RootLayout): Implements Serializable.
4421 (RootLayout.serialVersionUID): New field.
4422 (RootLayout.RootLayout): New constructor.
4423 (setJMenuBar): Made public.
4424 (getJMenuBar): Likewise.
4425 (JRootPane): Likewise.
4426 (createContentPane): Likewise.
4427 (createGlassPane): Likewise.
4428 (createLayeredPane): Likewise.
4430 2004-06-11 Michael Koch <konqueror@gmx.de>
4432 * javax/swing/SwingUtilities.java
4433 (isLeftMouseButton): Fixed javadoc.
4434 (isMiddleMouseButton): Likewise.
4435 (isRightMouseButton): Likewise.
4437 2004-06-11 Michael Koch <konqueror@gmx.de>
4439 * javax/swing/JScrollPane.java
4440 (serialVersionUID): New field.
4441 (columnHeader): Made protected.
4442 (rowHeader): Likewise.
4443 (lowerLeft): Likewise.
4444 (lowerRight): Likewise.
4445 (upperLeft): Likewise.
4446 (upperRight): Likewise.
4447 (horizontalScrollBar): Likewise.
4448 (horizontalScrollBarPolicy): Likewise.
4449 (verticalScrollBar): Likewise.
4450 (verticalScrollBarPolicy): Likewise.
4451 (viewport): Likewise.
4453 2004-06-11 Michael Koch <konqueror@gmx.de>
4455 * javax/swing/LookAndFeel.java: Fixed javadocs.
4457 2004-06-11 Michael Koch <konqueror@gmx.de>
4459 * javax/swing/JEditorPane.java: Fixed javadocs.
4460 (JEditorPane): Removed redundant call to to this().
4461 (fireHyperlinkUpdate): Implemented.
4463 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4465 * javax/swing/JMenu.java: Fixed file name
4466 in the file comment.
4468 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4470 * javax/swing/JMenu.java: Added javadoc.
4471 (JMenu): Added MenuChangeListener to listen to
4472 ChangeEvents occuring in menu's model.
4473 (insert): Throw IllegalArgumentException if
4474 index is less than 0
4475 (setSelected): Reimplement.
4476 (setPopupMenuVisible): Call menu's model isEnabled()
4477 (setDelay): Throw IllegalArgumentException if
4478 given amount of delay is less than 0.
4479 (createActionComponent): Implemented.
4480 (createActionChangeListener): Implemented.
4481 (addSeparator): Implemented.
4482 (getItem): Throw IllegalArgumentException if index is
4484 (getItemCount): Implemented.
4485 (fireMenuSelected): Changed to use menuEvent.
4486 (fireMenuDeselected): Likewise.
4487 (fireMenuCanceled): Likewise.
4488 (setAccelerator): Changed to throw an error if this
4490 (doClick): Implemented.
4491 (JMenu.ActionChangedListener): New inner class to handle
4492 PropertyChangeEvents occuring in the actions associated with menu.
4493 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
4494 (BasicMenuUI): Added PropertyChangeListener to the menu.
4495 (createChangeListener): Implemented.
4496 (createMenuDragMouseListener): Likewise.
4497 (createMenuKeyListener): Likewise.
4498 (createPropertyChangeListener): Likewise.
4499 (uninstallListeners): Likewise.
4500 (BasicMenuUI.MouseInputHandler): Reimplemented.
4501 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
4502 (BasicMenuUI.ChangeHandler): Likewise.
4503 (BasicMenuUI.MenuDragMouseHandler): Likewise.
4504 (BasicMenuUI.MenuKeyHandler): Likewise.
4506 2004-06-10 David Jee <djee@redhat.com>
4508 * java/awt/MediaTracker.java
4509 (imageUpdate): Only do notifyAll() if the image is complete.
4511 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4513 * javax/swing/JApplet.java:
4514 (getJMenuBar): Made public.
4515 (setJMenuBar): Likewise.
4516 * javax/swing/JFrame.java:
4517 (getJMenuBar): Made public.
4518 (setJMenuBar): Likewise.
4519 * javax/swing/JWindow.java:
4520 (getJMenuBar): Removed.
4521 (setJMenuBar): Removed.
4523 2004-06-10 Michael Koch <konqueror@gmx.de>
4525 * javax/swing/JEditorPane.java
4526 (createEditorKitForContentType): Fixed visibility.
4527 (fireHyperlinkUpdate): Likewise.
4528 (getContentType): Likewise.
4529 (getEditorKit): Likewise.
4530 (getEditorKitForContentType): Likewise.
4531 (getPage): Likewise.
4533 (registerEditorKitForContentTyoe): Likewise.
4534 (replaceSelection): Likewise.
4535 (setContentType): Likewise.
4536 (setEditorKit): Likewise.
4537 (setPage): Likewise.
4539 2004-06-10 Michael Koch <konqueror@gmx.de>
4541 * javax/swing/Timer.java
4542 (Timer): New constructor.
4543 * javax/swing/plaf/basic/BasicProgressBarUI.java
4544 (animationTimer): Don't initialize at construction.
4545 (startAnimationTimer): Added since tag.
4546 (stopAnimationTimer): Likewise.
4547 (installUI): Use new Timer constructor.
4548 * javax/swing/plaf/basic/BasicScrollBarUI.java
4549 (installUI): Likewise.
4550 * javax/swing/plaf/basic/BasicSliderUI.java
4551 (installUI): Likewise.
4553 2004-06-10 Michael Koch <konqueror@gmx.de>
4555 * javax/swing/ButtonGroup.java
4556 (serialVersionUID): Made private.
4557 (buttons): Renamed from v, added javadoc.
4558 (sel): Added javadoc.
4559 (ButtonGroup): Likewise.
4562 (getElements): Likewise.
4563 (getSelection): Likewise.
4564 (setSelected): Likewise.
4565 (isSelected): Likewise.
4566 (getButtonCount): Likewise.
4568 2004-06-10 Michael Koch <konqueror@gmx.de>
4570 * javax/swing/ButtonGroup.java,
4571 javax/swing/ImageIcon.java,
4572 javax/swing/JEditorPane.java,
4573 javax/swing/JRootPane.java,
4574 javax/swing/JTextField.java,
4575 javax/swing/LookAndFeel.java,
4576 javax/swing/plaf/basic/BasicTextUI.java:
4579 2004-06-10 Michael Koch <konqueror@gmx.de>
4581 * javax/swing/text/Style.java: Added javadocs.
4583 2004-06-10 Michael Koch <konqueror@gmx.de>
4585 * javax/swing/JComponent.java
4586 (fireVetoableChange): Removed redundant cast.
4587 * javax/swing/JLabel.java
4588 (getDisabledIcon): Save icon for next call.
4590 2004-06-10 Michael Koch <konqueror@gmx.de>
4592 * javax/swing/KeyStroke.java
4593 (getKeyStroke(char,boolean)): Marked deprecated.
4595 2004-06-10 Michael Koch <konqueror@gmx.de>
4597 * javax/swing/DefaultCellEditor.java,
4598 javax/swing/GrayFilter.java,
4599 javax/swing/event/DocumentEvent.java,
4600 javax/swing/text/JTextComponent.java,
4601 javax/swing/text/MutableAttributeSet.java:
4604 2004-06-10 Michael Koch <konqueror@gmx.de>
4606 * javax/swing/plaf/BorderUIResource.java:
4607 Added serialVersionUID all over.
4609 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
4611 * javax/swing/undo/UndoManager.java: Re-written from scratch.
4613 2004-06-10 Michael Koch <konqueror@gmx.de>
4615 * javax/swing/table/DefaultTableCellRenderer.java
4616 (noFocusBorder): Initialize directly.
4618 2004-06-10 Michael Koch <konqueror@gmx.de>
4620 * javax/swing/plaf/basic/BasicArrowButton.java
4621 (setDirection): Use method argument.
4623 2004-06-10 Michael Koch <konqueror@gmx.de>
4625 * javax/swing/plaf/BorderUIResource.java,
4626 javax/swing/plaf/ComponentUI.java,
4627 javax/swing/undo/CompoundEdit.java,
4628 javax/swing/undo/StateEdit.java:
4629 Fixed javadocs all over.
4631 2004-06-10 Michael Koch <konqueror@gmx.de>
4633 * javax/swing/DefaultButtonModel.java
4634 (ARMED): Made public final, fixed value.
4635 (ENABLED): Likewise.
4636 (PRESSED): Likewise.
4637 (ROLLOVER): Likewise.
4638 (SELECTED): Likewise.
4639 (stateMask): Initialize directly.
4640 (listenerList): Likewise.
4641 (mnemonic): Likewise.
4642 (fireStateChanged): Removed argument, use changeEvent as event.
4643 All places where this method is called are fixed too.
4644 (getActionCommant): Fixed javadoc.
4645 (setGroup): Fixed javadoc.
4646 (getGroup): New method.
4648 2004-06-09 Olga Rodimina <rodimina@redhat.com>
4650 * javax/swing/AbstractButton.java
4651 (AbstractButton): Use init() to initialize the button.
4652 (init): New Method. Initializes AbstractButton.
4653 * javax/swing/JMenuItem.java: Documented.
4654 (JMenuItem): Reimplemented.
4655 (init): Implemented.
4656 (setEnabled): Changed to call super.setEnabled()
4657 (processMouseEvent): Reimplemented.
4658 (fireMenuKeyPressed): Implemented.
4659 (fireMenuKeyReleased): Implemented.
4660 (fireMenuKeyTyped): Implemented.
4661 (menuSelectionChanged): disarm the model if the menu item was
4663 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
4664 (getPath): Change to use ArrayList instead of Vector.
4665 (getPreferredSize): Renamed variable.
4666 (paintMenuItem): Paint margin area of menu item.
4667 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
4668 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
4669 menu item's bounds before clearing the selection.
4671 2004-06-09 David Jee <djee@redhat.com>
4673 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
4674 (GtkTextComponentPeer): Set caret position to 0.
4675 * java/awt/TextComponent.java
4676 (setText): Set caret position to 0.
4677 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4678 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
4679 Handle GtkScrolledWindow separately. Fix signal handler blocking.
4680 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
4682 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
4683 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
4686 2004-06-09 Kim Ho <kho@redhat.com>
4688 * Makefile.am: New files
4689 * Makefile.in: Regenerated
4690 * java/awt/Container.java
4691 (getComponentAt): Removed.
4692 * javax/swing/AbstractAction.java
4693 (ENABLED_PROPERTY): New property.
4694 (putValue): Fire PropertyChangeEvents.
4695 (setEnabled): ditto.
4696 (firePropertyChange): Javadoc and implement
4698 * javax/swing/AbstractButton.java
4699 (setAction): Don't create PropertyChangeListener
4700 if new Action is null.
4701 (setIcon): Don't set icon till after comparing
4703 (configurePropertiesFromAction): Check mnemonic
4704 key before calling intValue().
4705 (createActionPropertyChangeListener): Check
4706 properties rather than bulk change.
4707 * javax/swing/DefaultDesktopManager.java:
4709 * javax/swing/DesktopManager.java:
4711 * javax/swing/JComponent.java
4712 (fireVetoableChange): Implement.
4713 (paintImmediately): Use root component.
4714 * javax/swing/JDesktopPane.java: Implement
4715 * javax/swing/JInternalFrame.java: Implement
4716 * javax/swing/JLabel.java
4717 (getDisabledIcon): Return grayscaled icon if
4718 no disabled icon specified.
4719 * javax/swing/JMenuBar.java
4720 (getComponentAtIndex): Use getComponent
4721 * javax/swing/JOptionPane.java
4722 (getDesktopPaneForComponent): Use SwingUtilities'
4724 (getFrameForComponent): ditto.
4725 * javax/swing/JSplitPane.java
4726 (remove): Use getComponent.
4727 * javax/swing/SwingUtilities.java
4728 (convertPoint): Implement.
4729 * javax/swing/plaf/basic/BasicButtonUI.java
4730 (paintButtonNormal): Check opaqueness before
4732 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
4734 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
4736 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
4738 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
4740 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4741 Change InternalFrame and Desktop colors.
4743 2004-06-09 David Jee <djee@redhat.com>
4745 * java/awt/Container.java
4746 (remove): Do not set component to invisible.
4748 2004-06-09 Michael Koch <konqueror@gmx.de>
4750 * javax/swing/tree/DefaultMutableTreeNode.java
4751 (getLeafCount): Renamed enum to e.
4753 2004-06-09 Michael Koch <konqueror@gmx.de>
4755 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
4756 (positionForMouseEvent): Removed redundant semicolon.
4757 (continueDrag): Use method arguments.
4759 2004-06-09 Michael Koch <konqueror@gmx.de>
4761 * javax/swing/border/TitledBorder.java,
4762 javax/swing/filechooser/FileSystemView.java,
4763 javax/swing/plaf/basic/BasicButtonListener.java,
4764 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4765 javax/swing/plaf/basic/BasicLabelUI.java,
4766 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4767 javax/swing/plaf/basic/BasicScrollBarUI.java,
4768 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4769 javax/swing/plaf/basic/BasicSliderUI.java,
4770 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4771 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4772 javax/swing/table/JTableHeader.java,
4773 javax/swing/text/AbstractDocument.java,
4774 javax/swing/text/DefaultCaret.java,
4775 javax/swing/text/StyledEditorKit.java,
4776 javax/swing/tree/DefaultTreeCellEditor.java:
4777 Reworked import statements.
4779 2004-06-08 Graydon Hoare <graydon@redhat.com>
4781 * javax/swing/Box.java: Temporarily comment out code
4782 broken due to visibility bug.
4784 2004-06-09 Michael Koch <konqueror@gmx.de>
4786 * javax/swing/ImageIcon.java
4787 (ImageIcon): Added missing constructor.
4789 2004-06-08 Michael Koch <konqueror@gmx.de>
4791 * javax/swing/JToggleButton.java
4792 (JToggleButton): New constructor.
4793 (getAccessibleContext): Moved documentation into javadoc.
4794 (getUIClassID): Likewise.
4796 2004-06-08 Michael Koch <konqueror@gmx.de>
4798 * javax/swing/AbstractButton.java
4799 (getDisabledIcon): Create disabled icon if none exists yet.
4801 2004-06-08 Michael Koch <konqueror@gmx.de>
4803 * javax/swing/plaf/basic/BasicLookAndFeel.java
4804 (initClassDefaults): Added FormattedTextFieldUI.
4805 (loadResourceBundle): Renamed enum to e.
4807 2004-06-08 Michael Koch <konqueror@gmx.de>
4809 * javax/swing/plaf/basic/BasicButtonUI.java
4810 (paintIcon): Simplified.
4811 (paintText): Paint disabled button correctly.
4813 2004-06-08 Michael Koch <konqueror@gmx.de>
4815 * javax/swing/JComponent.java
4816 (createToolTip): Use official JToolTip API.
4818 2004-06-08 Michael Koch <konqueror@gmx.de>
4820 * javax/swing/JToolTip.java
4821 (JToolTip): No arguments in API.
4822 (setTipText): New method.
4824 2004-06-08 Michael Koch <konqueror@gmx.de>
4826 * javax/swing/SwingUtilities.java
4827 (isLeftMouseButton): New method.
4828 (isMiddleMouseButton): New method.
4829 (isRightMouseButton): New method.
4831 2004-06-08 Michael Koch <konqueror@gmx.de>
4833 * javax/swing/AbstractButton.java,
4834 javax/swing/CellRendererPane.java,
4835 javax/swing/JCheckBoxMenuItem.java,
4836 javax/swing/JColorChooser.java,
4837 javax/swing/JComboBox.java,
4838 javax/swing/JComponent.java,
4839 javax/swing/JDesktopPane.java,
4840 javax/swing/JFileChooser.java,
4841 javax/swing/JMenu.java,
4842 javax/swing/JMenuItem.java,
4843 javax/swing/JOptionPane.java,
4844 javax/swing/JPasswordField.java,
4845 javax/swing/JPopupMenu.java,
4846 javax/swing/JProgressBar.java,
4847 javax/swing/JRadioButtonMenuItem.java,
4848 javax/swing/JScrollBar.java,
4849 javax/swing/JSeparator.java,
4850 javax/swing/JSlider.java,
4851 javax/swing/JSplitPane.java,
4852 javax/swing/JTabbedPane.java,
4853 javax/swing/JTextField.java,
4854 javax/swing/JToolBar.java,
4855 javax/swing/text/JTextComponent.java:
4856 Fixed all constructors of accessibility classes.
4858 2004-06-08 Michael Koch <konqueror@gmx.de>
4860 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
4863 2004-06-08 Michael Koch <konqueror@gmx.de>
4865 * javax/swing/Box.java
4866 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
4867 (AccessibleBoxFiller.serialVersionUID): New member variable.
4868 * javax/swing/DefaultButtonModel.java
4869 (stateMask): Made protected.
4870 (listenerList): Likewise.
4871 (changeEvent): Likewise.
4873 (mnemonic): Likewise.
4874 (actionCommand): Likewise.
4875 (getListeners): New method.
4876 (getActionListeners): New method.
4877 (getItemListeners): New method.
4878 (getChangeListeners): New method.
4879 (fireItemStateChanged): Simplified.
4880 (fireActionPerformed): Simplified.
4881 (fireStateChanged): Simplified.
4882 * javax/swing/JFrame.java
4883 (JFrame): Implements WindowContants.
4884 (HIDE_ON_CLOSE): Removed.
4885 (EXIT_ON_CLOSE): Removed.
4886 (DISPOSE_ON_CLOSE): Removed.
4887 (DO_NOTHING_ON_CLOSE): Removed.
4888 (processWindowEvent): Exit with code 0.
4889 (setDefaultCloseOperation): Do security check before setting value.
4890 * javax/swing/JOptionPane.java
4891 (message): Initialize only in constructor.
4892 * javax/swing/JToolTip.java: Removed unused imports.
4893 * javax/swing/JViewport.java
4894 (serialVersionUID): New member variable.
4895 (SIMPLE_SCROLL_MODE): Made final, fixed value.
4896 (BLIT_SCROLL_MODE): Likewise.
4897 (BACKINGSTORE_SCROLL_MODE): Likewise.
4898 (scrollUnderway): Made protected.
4899 (isViewSizeSet): Likewise.
4900 * javax/swing/ListModel.java: Fixed javadoc.
4901 * javax/swing/Popup.java: Likewise.
4902 * javax/swing/RepaintManager.java
4903 (paintDirtyRegions): Don't use internal classes of
4904 java.util.AbstractMap.
4905 * javax/swing/ScrollPaneConstants.java: Reindented.
4906 * javax/swing/ScrollPaneLayout.java
4907 (viewport): Made protected.
4908 (verticalScrollBar): Made protected, renamed to vsb.
4909 (horizontalScrollBar): Made protected, renamed to hsb.
4910 (rowHeader): Made protected, renamed to rowHead.
4911 (columnHeader): Made protected, renamed to colHead.
4912 (lowerLeft): Made protected.
4913 (lowerRight): Made protected.
4914 (upperLeft): Made protected.
4915 (upperRight): Made protected.
4916 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
4917 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
4919 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
4921 * java/awt/MediaTracker.java (imageUpdate): Only set status to
4922 LOADING if flags has SOMEBITS set.
4924 2004-06-07 Michael Koch <konqueror@gmx.de>
4926 * javax/swing/AbstractButton.java: Reorganized imports.
4927 * javax/swing/ActionMap.java: Likewise.
4928 * javax/swing/DefaultButtonModel.java: Likewise.
4929 * javax/swing/DefaultListModel.java: Likewise.
4930 * javax/swing/ImageIcon.java: Likewise.
4931 (serialVersionUID): New member variable.
4932 * javax/swing/JComboBox.java: Reorganized imports.
4933 * javax/swing/JComponent.java: Likewise.
4934 (ui): Made protected.
4935 (listenerList): Made protected.
4936 (TOOL_TIP_TEXT_KEY): New constant.
4937 (scrollRectToVisible): Removed redundant null check.
4938 * javax/swing/JFrame.java: Reorganized imports.
4939 * javax/swing/JInternalFrame.java: Reorganized imports.
4940 * javax/swing/JProgressBar.java: Likewise.
4941 * javax/swing/JRootPane.java: Likewise.
4942 * javax/swing/JScrollBar.java: Likewise.
4943 * javax/swing/JSeparator.java: Likewise.
4944 * javax/swing/JSlider.java: Likewise.
4945 * javax/swing/JTabbedPane.java: Likewise.
4946 * javax/swing/JTextField.java: Likewise.
4947 * javax/swing/JToolBar.java: Likewise.
4948 * javax/swing/JTree.java: Likewise.
4949 * javax/swing/JViewport.java: Likewise.
4950 * javax/swing/JWindow.java: Likewise.
4951 * javax/swing/KeyStroke.java: Likewise.
4952 * javax/swing/LookAndFeel.java: Likewise.
4953 * javax/swing/MenuSelectionManager.java: Likewise.
4954 * javax/swing/SwingUtilities.java: Likewise.
4955 * javax/swing/Timer.java: Likewise.
4956 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
4957 * javax/swing/JList.java
4958 (HORIZONTAL_WRAP): Made final, fixed value.
4959 (VERTICAL): Likewise.
4960 (VERTICAL_WRAP): Likewise.
4962 2004-06-07 Michael Koch <konqueror@gmx.de>
4964 * javax/swing/AbstractButton.java
4965 (serialVersionUID): New member variable.
4966 (AccessibleAbstractButton.serialVersionUID): Likewise.
4967 (AbstractButton): Made public.
4968 * javax/swing/Box.java
4969 (AccessibleBox.serialVersionUID): New member variable.
4970 (Filler.serialVersionUID): Likewise.
4971 * javax/swing/DefaultListSelectionModel.java
4972 (serialVersionUID): Likewise.
4973 * javax/swing/JApplet.java
4974 (serialVersionUID): Likewise.
4975 * javax/swing/JCheckBox.java
4976 (serialVersionUID): Likewise.
4977 * javax/swing/JCheckBoxMenuItem.java
4978 (serialVersionUID): Likewise.
4979 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
4980 * javax/swing/JColorChooser.java
4981 (serialVersionUID): Likewise.
4982 (AccessibleJColorChooser.serialVersionUID): Likewise.
4983 * javax/swing/JComponent.java
4984 (serialVersionUID): Made private.
4985 (AccessibleJComponent.serialVersionUID): New member variable.
4986 * javax/swing/JDesktopPane.java
4987 (serialVersionUID): Likewise.
4988 * javax/swing/JDialog.java
4989 (serialVersionUID): Likewise.
4990 * javax/swing/JFormattedTextField.java
4991 (serialVersionUID): Fixed value.
4992 * javax/swing/JFrame.java
4993 (serialVersionUID): New member variable.
4994 (getDefaultCloseOpertation): Made public.
4995 * javax/swing/JLayeredPane.java
4996 (serialVersionUID): Likewise.
4997 (LAYER_PROPERTY): Made final, fixed value.
4998 (JLayeredPane): Made public.
4999 * javax/swing/JMenu.java
5000 (AccessibleJMenu.serialVersionUID): New member variable.
5001 (WinListener.serialVersionUID): Likewise.
5002 * javax/swing/JMenuBar.java
5003 (serialVersionUID): Likewise.
5004 (getComponentAtIndex): Added @deprecated tag.
5005 * javax/swing/JMenuItem.java
5006 (serialVersionUID): New member variable.
5007 (AccessibleJMenuItem.serialVersionUID): Likewise.
5008 * javax/swing/JOptionPane.java
5009 (serialVersionUID): Likewise.
5010 (AccessibleJOptionPane.serialVersionUID): Likewise.
5011 * javax/swing/JPopupMenu.java
5012 (serialVersionUID): Likewise.
5013 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5014 (getPopupMenuListeners): New method.
5015 (getComponentAtIndex): Added @deprecated tag.
5016 * javax/swing/JProgressBar.java
5017 (serialVersionUID): New member variable.
5018 (AccessibleJProgressBar.serialVersionUID): Likewise.
5019 * javax/swing/JRadioButton.java
5020 (serialVersionUID): Likewise.
5021 * javax/swing/JRadioButtonMenuItem.java
5022 (serialVersionUID): Likewise.
5023 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5024 * javax/swing/JScrollBar.java
5025 (serialVersionUID): Likewise.
5026 (AccessibleJScrollBar.serialVersionUID): Likewise.
5027 * javax/swing/JSeparator.java
5028 (serialVersionUID): Likewise.
5029 (AccessibleJSeparator.serialVersionUID): Likewise.
5030 * javax/swing/JSlider.java: Fixed javadocs.
5031 (AccessibleJSlider.serialVersionUID): New member variable.
5032 * javax/swing/JSplitPane.java: Added copyright statement.
5033 (serialVersionUID): New member variable.
5034 (AccessibleJSplitPane.serialVersionUID): Likewise.
5035 * javax/swing/JTabbedPane.java
5036 (serialVersionUID): Likewise.
5037 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5038 (ModelListener.serialVersionUID): Likewise.
5039 (ModelListener.ModelListener): New constructor.
5040 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5041 (WRAP_TAB_LAYOUT): Likewise.
5042 * javax/swing/JTable.java
5043 (serialVersionUID): New member variable.
5044 * javax/swing/JToggleButton.java
5045 (serialVersionUID): Likewise.
5046 (ToggleButtonModel): Made static.
5047 (ToggleButtonModel.serialVersionUID): New member variable.
5048 * javax/swing/JToolTip.java
5049 (serialVersionUID): Likewise.
5050 * javax/swing/JTree.java
5051 (serialVersionUID): Likewise.
5052 * javax/swing/JWindow.java
5053 (serialVersionUID): Likewise.
5054 * javax/swing/Timer.java
5055 (serialVersionUID): Likewise.
5057 2004-06-06 Michael Koch <konqueror@gmx.de>
5059 * javax/swing/SwingConstants.java
5060 (NEXT): New constant.
5061 (PREVIOUS): Likewise.
5062 * javax/swing/UIManager.java
5063 (LookAndFeel): Made public.
5064 (LookAndFeel.getClassName): Likewise.
5065 (LookAndFeel.getName): Likewise.
5067 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5069 * javax/swing/JCheckBoxMenuItem.java:
5071 * javax/swing/JMenu.java: Likewise.
5072 * javax/swing/JMenuBar.java: Likewise.
5073 * javax/swing/JMenuItem.java: Likewise.
5074 * javax/swing/JPopupMenu.java: Likewise.
5075 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5076 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5077 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5078 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5079 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5080 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5081 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5083 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5085 * javax/swing/plaf/basic/BasicMenuUI.java:
5086 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5087 Call getPath() from super class instead.
5089 2004-05-31 David Jee <djee@redhat.com>
5091 * java/awt/Container.java
5092 (remove): Set component visibility to false after removing it.
5094 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5096 * java/awt/Component.java (getForeground): Return SystemColor if
5098 (getBackground): Likewise.
5100 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5101 (item_highlighted): New function.
5102 (connectSignals): Set item_highlighted as list's select
5105 * java/applet/Applet.java: Revert changes from 2004-04-29,
5106 2004-03-15 and 2004-03-14.
5108 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5109 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5112 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5113 "Dialog" as the default font.
5114 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5116 * java/awt/Component.java (getFont): Return "Dialog" font by
5118 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5119 Multiply size argument to pango_font_description_set_size by the
5120 DPI conversion factor rather than by PANGO_SCALE.
5121 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5122 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5123 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5124 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5125 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5126 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5127 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5128 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5129 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5130 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5131 Divide baseline y coordinate by DPI conversion factor rather
5132 than by PANGO_SCALE.
5133 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5134 (area_prepared): Fix typo.
5135 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5136 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5137 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5138 (dpi_conversion_factor): New global variable.
5139 (init_dpi_conversion_factor): New function to calculate and
5140 track DPI conversion factor.
5141 (dpi_changed_cb): New callback.
5142 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5144 2004-05-27 David Jee <djee@redhat.com>
5146 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5147 (getGraphics): Return a new GdkGraphics instance.
5148 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5149 (getGraphics): Call super.getGraphics().
5151 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5153 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5154 (setNativeBounds): Clamp width and height values to >= 0.
5156 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5157 (find_fg_color_widget): Handle GtkOptionMenu specially.
5159 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5160 (pre_event_handler): Only post configure events to visible
5163 2004-05-26 David Jee <djee@redhat.com>
5165 * java/awt/BorderLayout.java
5166 (layoutContainer): Fix size calculations.
5168 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5170 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5171 (window_wm_protocols_filter): Remove function.
5172 (create): Remove filter that removes WM_TAKE_FOCUS client
5175 2004-06-17 Anthony Green <green@redhat.com>
5177 * java/util/zip/ZipFile.java (getInputStream): Return null if
5180 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5181 directory contents to the class path.
5183 2004-06-15 Andrew Haley <aph@redhat.com>
5185 * java/lang/natSystem.cc (getenv0): Don't assume environment
5186 variable is Latin 1 coded.
5188 2004-06-14 Andreas Jaeger <aj@suse.de>
5190 * configure.in: Support --enable-version-specific-runtime-libs.
5191 * configure: Regenerated.
5193 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5195 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5196 to pass ClassLoader argument.
5197 * java/util/GregorianCalendar.java: Likewise.
5198 * java/util/Currency.java: Likewise.
5199 * java/text/BreakIterator.java: Likewise.
5200 * java/text/Collator.java: Likewise.
5201 * java/text/DateFormat.java: Likewise.
5202 * java/text/DateFormatSymbols.java: Likewise.
5203 * java/text/DecimalFormatSymbols.java: Likewise.
5204 * java/text/NumberFormat.java: Likewise.
5205 * java/awt/Window.java: Likewise.
5207 2004-06-14 Andrew Haley <aph@redhat.com>
5209 * java/lang/System.java: (getenv0): New method.
5210 (getenv): Add security check. Do the right thing.
5211 * java/lang/natSystem.cc (getenv0): New method.
5213 2004-06-12 Mark Wielaard <mark@klomp.org>
5215 * javax/swing/RepaintManager.java
5216 (paintDirtyRegions): Use entrySet(), not values().
5218 2004-06-10 Mark Wielaard <mark@klomp.org>
5220 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5223 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5225 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5226 when we already know the answer.
5227 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5228 (setStartRule,setEndRule): Don't take abs of day number.
5229 (getOffset): Clarify docs. Add argument checks.
5230 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5231 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5234 2004-06-10 Tom Tromey <tromey@redhat.com>
5236 * interpret.cc (run): Handle wide fload.
5238 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5240 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5242 2004-06-05 Michael Koch <konqueror@gmx.de>
5244 * javax/swing/SwingConstants.java
5245 (NEXT): New constant.
5246 (PREVIOUS): Likewise.
5248 2004-06-05 Michael Koch <konqueror@gmx.de>
5250 * javax/swing/UIManager.java
5251 (LookAndFeel): Made public.
5252 (LookAndFeel.getName): Likewise.
5253 (LookAndFeel.getClassName): Likewise.
5255 2004-06-03 Michael Koch <konqueror@gmx.de>
5257 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5258 (requestFocus): Revert last changes.
5259 (gtkRequestFocus): Removed.
5260 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5261 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5263 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5264 Reverted last patch.
5265 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5266 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5267 Reverted comment change.
5269 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5271 * javax/swing/JCheckBoxMenuItem.java:
5273 * javax/swing/JMenu.java: Likewise.
5274 * javax/swing/JMenuBar.java: Likewise.
5275 * javax/swing/JMenuItem.java: Likewise.
5276 * javax/swing/JPopupMenu.java: Likewise.
5277 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5278 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5279 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5280 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5281 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5282 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5283 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5285 2004-06-01 Tom Tromey <tromey@redhat.com>
5287 * java/io/ObjectStreamField.java: Cleaned up imports.
5289 2004-06-01 Michael Koch <konqueror@gmx.de>
5291 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5293 2004-06-01 Mark Wielaard <mark@klomp.org>
5295 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5297 2004-06-01 Michael Koch <konqueror@gmx.de>
5299 * java/security/Security.java
5300 (insertProviderAt): Use equals() instead of ==.
5301 (removeProvicer): Likewise.
5302 (getProvider): Likewise.
5303 * java/security/Signature.java
5304 (sign): Don't set state to UNINITIALIZED.
5307 2004-06-01 Mark Wielaard <mark@klomp.org>
5309 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5310 Implement by calling gtkRequestFocus.
5311 (gtkRequestFocus): New native method.
5312 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5313 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5315 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5317 (filter_expose_event_handler):
5319 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5320 (menu_pos): Mark static.
5322 2004-06-01 Michael Koch <konqueror@gmx.de>
5324 * java/text/CollationElementIterator.java,
5325 java/text/CollationKey.java,
5326 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5327 * testsuite/libjava.mauve/xfails: Removed all
5328 java.text.CollationElementIterator tests.
5330 2004-06-01 Michael Koch <konqueror@gmx.de>
5332 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5334 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5335 Java 1.5 keyword usage.
5337 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5339 * javax/swing/plaf/basic/BasicMenuUI.java:
5340 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5341 Call getPath() from super class instead.
5343 2004-05-31 Michael Koch <konqueror@gmx.de>
5345 * java/io/SequenceInputStream.java:
5346 Rename enum to e because enum is a keyword in Java 1.5.
5348 2004-05-31 Michael Koch <konqueror@gmx.de>
5350 * gnu/java/rmi/rmic/CompilerProcess.java:
5351 Fixed javadoc to by XHTML compliant.
5353 2004-05-30 Mark Wielaard <mark@klomp.org>
5355 * java/awt/Toolkit.java (loadSystemColors): Implement.
5357 2004-05-30 Michael Koch <konqueror@gmx.de>
5359 * java/lang/System.java: Reordered imports.
5361 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5363 * java/text/DecimalFormat.java
5364 (parse): Fixed parsing of decimal strings. Number of maximum
5365 digits to be read should now work.
5366 * java/text/SimpleDateFormat.java
5367 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5368 formatter. This fixes DateFormatTest.
5370 2004-05-30 Michael Koch <konqueror@gmx.de>
5372 * java/nio/Buffer.java
5373 (limit): Fixed off by one error.
5374 * java/nio/CharBuffer.java
5375 (wrap): Fixed arguments, added javadocs.
5377 2004-05-30 Michael Koch <konqueror@gmx.de>
5379 * gnu/java/beans/BeanInfoEmbryo.java,
5380 java/awt/im/InputContext.java,
5381 javax/swing/tree/DefaultMutableTreeNode.java:
5382 Rename enum to e because enum is a keyword in Java 1.5.
5384 2004-05-30 Michael Koch <konqueror@gmx.de>
5386 * gnu/java/math/MPN.java,
5387 java/awt/geom/Arc2D.java:
5388 Fixed javadocs all over.
5390 2004-05-30 Michael Koch <konqueror@gmx.de>
5392 * java/awt/DefaultKeyboardFocusManager.java
5393 (dispatchEvent): Call method to get key event dispatchers.
5394 (dispatchKeyEvent): Call method to get key event post processors.
5395 * javax/swing/JComponent.java
5396 (listenerList): Made protected.
5397 * javax/swing/JOptionPane.java
5398 (message): Don't initialize.
5399 (JOptionPane): Set message text.
5400 * javax/swing/JPopupMenu.java
5401 (show): Fixed typo in argument name.
5402 * javax/swing/RepaintManager.java
5403 (paintDirtyRegions): Use public API of java.util.Map.
5404 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5405 (positionForMouseEvent): Removed redundant ';'.
5406 (continueDrag): Use method arguments.
5408 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
5410 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
5413 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
5415 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
5417 * gnu/gcj/RawDataManaged.java: New file.
5418 * java/lang/Thread.java (data): Declare as RawDataManaged.
5419 * java/lang/natThread.cc (init_native): Cast natThread data to
5420 RawDataManaged, not jobject.
5421 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
5422 * Makefile.in: Rebuilt.
5424 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
5426 * java/util/SimpleTimeZone.java: Reverting my last change until I
5427 can fix it properly.
5429 2004-05-27 Michael Koch <konqueror@gmx.de>
5431 * javax/swing/JPopupMenu.java
5432 (isVisible): Do not use visible directly.
5433 (setVisible): Likewise.
5434 * javax/swing/JWindow.java
5435 (JWindow): call accessible constructor.
5436 * javax/swing/RepaintManager.java
5437 (paintDirtyRegions): Use public methods to obtain iterator.
5439 2004-05-25 David Jee <djee@redhat.com>
5441 * java/awt/Container.java
5442 (remove): Set component's parent to null only after we removed the
5443 component from its parent's layout manager.
5445 2004-05-25 David Jee <djee@redhat.com>
5447 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5448 (GtkComponentPeer): Set bounds regardless of whether awtComponent
5450 * gnu/java/awt/peer/gtk/GtkListPeer.java
5451 (getSize): Change native method declaration.
5452 (minimumSize): Pass visible row count into getSize().
5453 (preferredSize): Likewise.
5454 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5455 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
5456 natural size. Use visible row count to determine the final height
5459 2004-05-21 Graydon Hoare <graydon@redhat.com>
5461 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5462 (setClip): Minor correction to order of operations.
5464 * javax/swing/JScrollPane.java: Extend sketchy implementation.
5465 * javax/swing/ScrollPaneLayout.java: Likewise.
5466 * javax/swing/JViewPort.java: Likewise.
5467 * javax/swing/ViewportLayout.java: Likewise.
5469 * javax/swing/JComponent.java: Rewrite.
5470 * javax/swing/RepaintManager.java: Likewise.
5472 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
5473 * javax/swing/JList.java
5474 (setSelectedIndices):
5475 (getSelectedIndices):
5476 (getSelectedValues): New functions.
5477 (getPreferredScrollableViewportSize): Return preferred size.
5478 (getScrollableUnitIncrement):
5479 (getScrollableBlockIncrement): Initial implementations.
5480 * javax/swing/JRootPane.java: Clean up slightly.
5485 (isValidateRoot): Add overrides from JComponent.
5486 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
5487 * javax/swing/UIManager.java (getDimension): Return the dimension.
5489 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
5490 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5491 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5492 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5493 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5494 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
5495 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
5496 * javax/swing/plaf/basic/BasicRootPaneUI.java:
5497 Likewise, and set background.
5498 * javax/swing/plaf/basic/BasicListUI.java:
5499 Likewise, and improve a bit.
5500 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5501 Likewise, and adjust calculations.
5502 * javax/swing/plaf/basic/BasicViewportUI.java:
5503 Likewise, and improve a bit.
5504 * javax/swing/plaf/basic/BasicLookAndFeel.java
5505 (Button.margin): Shrink.
5507 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5508 Hack to set horizontal always, workaround pango.
5510 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
5511 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
5512 Synchronize more often, check cairo status after ops,
5513 handle changes to cairo pattern API, check for disposal.
5515 2004-05-21 Olga Rodimina <rodimina@redhat.com>
5517 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5518 (BasicMenuItemUI): Create propertyChangeListener.
5519 (getPath):Implemented.
5520 (installListeners): Add propertyChangeListener to menuItem.
5521 (uninstallListeners): Remove propertyChangeListener from menuItem.
5522 (update): Implemented.
5523 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5524 (mouseEntered): Take insets of popup menu into account when
5525 calculating position of popup menu.
5527 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5529 * Makefile.am: Added new file.
5530 * Makefile.in: Regenerate.
5531 * javax/swing/JMenuBar.java:
5532 Started implementation.
5533 * javax/swing/JPopupMenu.java:
5534 (setVisible): Fixed location of lightweight/mediumweight
5536 (show): Fixed location of PopupMenu.
5537 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5538 New file. UI Delegate for JMenuBar.
5539 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5540 (mouseEntered): Corrected position of the submenu.
5542 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
5544 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
5545 to _gtk_accel_group_attach.
5546 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5549 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
5550 package access. Don't override setFont.
5551 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
5552 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
5553 gtkWidgetRequestFocus package access.
5554 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
5556 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
5557 Give gtkWidgetRequestFocus package access.
5558 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
5559 gtkWidgetRequestFocus package access. Don't override setFont.
5560 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
5562 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5563 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
5565 (gtkSetFont): Likewise.
5566 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
5568 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5569 (gtkSetFont): Whitespace fix.
5571 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5572 (gtkWidgetSetUsize): Remove method.
5574 2004-05-18 David Jee <djee@redhat.com>
5576 * java/awt/image/MemoryImageSource.java
5577 (newPixels(int,int,int,int,boolean)): Set only the specified
5578 rectangle of pixels.
5579 (newPixels(byte[],ColorModel,int,int)): Implement.
5580 (newPixels(int[],ColorModel,int,int)): Implement.
5582 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5584 * Makefile.am: Added new file.
5585 * Makefile.in: Regenerate.
5586 * javax/swing/JMenu.java: Started
5588 * javax/swing/JPopupMenu.java:
5589 (insert): If specified index is -1, then
5590 add component at the end.
5591 (isPopupTrigger): Reimplemented.
5592 (JPopupMenu.LightWeightPopup): setBounds
5593 of the lightWeightPopup before adding it
5595 (javax/swing/plaf/basic/BasicIconFactory.java):
5596 (getMenuArrowIcon): Implemented.
5597 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5598 (getPreferredSize): Add size of the arrow icon
5599 if this menu item is instance of JMenu.
5600 (paintMenuItem): Paint arrow icon if this
5601 menu item is a submenu.
5602 * javax/swing/plaf/basic/BasicMenuUI.java:
5603 New File. UI Delegate for JMenu.
5605 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
5607 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
5608 Post KEY_TYPED events.
5609 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5610 (generates_key_typed_event): Remove function.
5612 2004-05-17 Olga Rodimina <rodimina@redhat.com>
5614 * javax/swing/JRootPane.java
5615 (JRootPane.RootLayout): Reimplemented to
5616 set bounds of contentPane and menuBar.
5617 (setJMenuBar): Add menu bar to the layered pane.
5618 (createLayeredPane): Set layout of layeredPane
5620 * javax/swing/JLayeredPane.java:
5621 (addImpl): Calculate index of the component in the
5622 layeredPane according to the specified position within
5625 2004-05-17 David Jee <djee@redhat.com>
5627 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5628 (setPixels): Change color model to the default model after
5630 * java/awt/image/MemoryImageSource.java
5631 (newPixels): Set only the specified rectangle of pixels.
5633 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5635 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
5636 -l-java-beans -l-javax-accessibility -l-javax-swing.
5638 * java/awt/AWTEvent.java (toString): Print source's name rather
5639 than the source itself.
5641 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5643 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
5645 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
5646 (gdk_color_to_java_color): New function.
5647 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
5649 2004-05-12 David Jee <djee@redhat.com>
5651 * java/awt/image/RGBImageFilter.java:
5652 Initialize origmodel as null.
5653 (makeColor): Fix pixel component order.
5654 (filterRGBPixels): Fix pixel iteration.
5655 (setPixels): Add extra checks for index color model. Convert pixels
5656 to default color model if necessary.
5657 (convertColorModelToDefault): New override method for byte pixels.
5658 (convertColorModelToDefault): For int pixels, fix pixel iteration.
5659 (makeColorbyDefaultCM): New override method for byte pixels.
5660 (makeColorbyDefaultCM): For int pixel, add color model as argument.
5661 (makeColor): Fix pixel component order.
5663 2004-05-11 Kim Ho <kho@redhat.com>
5665 * javax/swing/Box.java:
5666 Comment out more parts of Box.Filler.
5668 2004-05-11 Kim Ho <kho@redhat.com>
5670 * javax/swing/Box.java:
5671 Remove reference to AccessibleAWTComponent so
5674 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
5676 * gnu/java/awt/peer/gtk/GtkListPeer.java,
5677 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
5678 implementation of list peer to use GtkTreeView instead of
5679 deprecated GtkCList.
5681 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
5683 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5684 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
5685 (handleEvent): Remove keyChar argument to
5686 gtkWidgetDispatchKeyEvent calls.
5687 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
5689 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5690 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
5691 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5694 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
5696 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5697 (gtkWidgetRequestFocus): Mark protected.
5698 (GtkComponentPeer): Only set the peer's bounds if its component
5700 * java/awt/Component.java (static): Set the default keyboard
5702 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
5703 requestFocusInWindow(temporary)): Don't request focus if the
5704 component is not showing. Get tree lock before traversing
5705 component hierarchy.
5706 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
5707 Only set the global focus owner if it is not a Window.
5708 (processKeyEvent): Consume keystrokes associated with the focus
5709 traversal keystroke.
5710 (focusPreviousComponent, focusNextComponent, upFocusCycle,
5711 downFocusCycle): Call requestFocusInWindow instead of
5713 * java/awt/EventDispatchThread.java (run): Move setting of
5714 default keyboard focus manager to Component.java.
5715 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5716 (awt_keycode_to_keysym): New function.
5717 (gtkWidgetDispatchKeyEvent): Finish implementation.
5718 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5719 (pre_event_handler): Add FIXME comment.
5721 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
5722 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5723 (gtkWidgetRequestFocus): New method.
5724 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
5725 disable Tab and Shift-Tab keystrokes.
5726 (addNotify, appendText, insertText, replaceText): Simplify peer
5728 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
5729 (connectSignals): Remove connections to "commit" signals.
5730 Remove C++-style comments.
5732 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
5733 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5734 (handleEvent): Activate GTK button when the space bar key is
5736 (gtkActivate): New method.
5738 2004-05-06 David Jee <djee@redhat.com>
5740 * java/awt/image/CropImageFilter.java
5741 (setPixels): Implement for byte array pixels.
5742 * java/awt/image/ReplicateScaleFilter.java
5743 (setPixels): Implement for byte array pixels.
5744 (replicatePixels): Overload for byte array pixels.
5746 2004-05-06 Kim Ho <kho@redhat.com>
5748 * javax/swing/Box.java:
5749 (getAccessibleContext): Return an instance of the
5752 2004-05-05 David Jee <djee@redhat.com>
5754 * gnu/java/awt/peer/gtk/GdkGraphics.java
5755 (drawImage): When component is null, use SystemColor.window as
5756 the default bgcolor.
5757 * gnu/java/awt/peer/gtk/GtkImage.java
5758 (setPixels): We can avoid iterating through the pixel rows only
5760 * java/awt/Image.java
5761 (getScaledInstance): Partially implement.
5762 * java/awt/image/CropImageFilter.java
5763 (setProperties): Fix "filter" property.
5764 (setPixels): Implement.
5765 * java/awt/image/ReplicateScaleFilter.java
5766 (setDimensions): Use scaled dimensions.
5767 (setPixels): Implement.
5768 (replicatePixels): New method.
5770 2004-05-05 David Jee <djee@redhat.com>
5772 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5773 (convertPixels): If either pixels or model is null, return null.
5774 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
5775 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
5776 is null, do nothing and return.
5778 2004-05-03 Kim Ho <kho@redhat.com>
5780 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
5781 (getGraphics): Like GtkFramePeer, the Graphics
5782 object needs to be translate to account for
5784 (postMouseEvent): New method. Account for
5786 (postExposeEvent): ditto.
5787 * javax/swing/Box.java: Stubbed.
5788 * javax/swing/JDialog.java: Ran through jalopy
5790 (JDialog): Call SwingUtilities' getOwnerFrame
5792 (setLayout): Check isRootPaneCheckingEnabled
5793 * javax/swing/JOptionPane.java: Re-implemented.
5794 * javax/swing/SwingUtilities.java:
5795 (getOwnerFrame): Static method to grab a default
5796 owner frame for Dialogs that don't specify owners.
5797 * javax/swing/event/SwingPropertyChangeSupport.java:
5798 (firePropertyChange): Fix early exit condition.
5799 * javax/swing/plaf/basic/BasicLabelUI.java:
5800 (paint): Avoid painting text if it is null
5802 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
5805 2004-05-03 Olga Rodimina <rodimina@redhat.com>
5807 * Makefile.am: Added new file.
5808 * Makefile.in: Regenerate.
5809 * javax/swing/JPopupMenu.java:
5810 Started implementation.
5811 * javax/swing/JWindow.java
5812 (JWindow): call super() if parent for window
5814 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
5815 New File. UI Delegate for JPopupMenu.
5817 2004-04-30 Olga Rodimina <rodimina@redhat.com>
5819 * javax/swing/JApplet.java: Indicated that JApplet
5820 implements RootPaneContainer and made method of this
5822 * javax/swing/JFrame.java: Ditto.
5823 * javax/swing/JWindow.java: Ditto.
5825 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
5827 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5828 (nativeSetBounds): Call gdk_window_move in addition to
5831 * java/applet/Applet.java (preferredSize): Call parent's
5832 preferredSize if the applet stub is null.
5833 (minimumSize): Likewise for parent's minimumSize.
5835 2004-04-27 Olga Rodimina <rodimina@redhat.com>
5837 * javax/swing/JMenuItem.java
5838 (createActionPropertyChangeListener): Implemented.
5839 (processMouseEvent): Ditto.
5840 (fireMenuDragMouseEntered): Ditto.
5841 (fireMenuDragMouseExited): Ditto.
5842 (fireMenuDragMouseDragged): Ditto.
5843 (fireMenuDragMouseReleased): Ditto.
5844 (menuSelectionChanged): Ditto.
5845 (getSubElements): Ditto.
5846 (getComponent): Ditto.
5847 (addMenuDragMouseListener): Ditto.
5848 (removeMenuDragMouseListener):Ditto.
5849 (addMenuKeyListener): Ditto.
5850 (removeMenuKeyListener): Ditto.
5851 * javax/swing/plaf/basic/BasicMenuItemUI.java
5852 (doClick): Imlemented.
5853 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
5854 Don't handle mouse events here. Pass them to
5855 MenuSelectionManager.
5857 2004-04-26 Olga Rodimina <rodimina@redhat.com>
5858 Used correct version of jalopy configuration
5859 file to fix style in the files below.
5861 2004-04-26 Olga Rodimina <rodimina@redhat.com>
5863 * javax/swing/JCheckBoxMenuItem.java:
5864 Fixed style and removed unnecessary comments.
5865 * javax/swing/JMenuItem.java: Ditto.
5866 * javax/swing/JRadioButtonMenuItem.java: Ditto.
5867 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
5868 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
5869 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
5871 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
5873 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
5876 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
5878 * java/awt/ContainerOrderFocusTraversalPolicy.java
5879 (getComponentAfter): Start from current component and work up
5880 the component hierarchy until an acceptable component is found.
5881 Synchronize on tree lock.
5882 (getComponentBefore): Likewise.
5884 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
5886 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
5887 focus-related debugging messages.
5888 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
5889 * java/awt/EventDispatchThread.java: Likewise.
5890 * java/awt/KeyboardFocusManager.java: Likewise.
5891 * java/awt/Window.java: Likewise.
5892 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5893 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5895 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
5896 new C++-style comments to C-style comments.
5897 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5899 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
5900 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5901 (handleEvent): Dispatch key press and key release events to
5903 (requestFocus): Post a FOCUS_GAINED event to the event queue.
5904 (gtkWidgetRequestFocus): New method.
5905 (gtkWidgetDispatchKeyEvent): Likewise.
5906 * java/awt/Component.java (requestFocus, requestFocus(boolean),
5907 requestFocusInWindow, requestFocusInWindow(boolean),
5908 getFocusCycleRootAncestor, nextFocus, transferFocus,
5909 transferFocusBackward, transferFocusUpCycle, hasFocus,
5910 isFocusOwner): Implement and document focus-handling methods.
5911 (setFocusTraversalKeys): Inherit focus traversal keys when
5912 keystrokes argument is null. Fix focus-handling documentation
5914 * java/awt/Container.java (setFocusTraversalKeys,
5915 getFocusTraversalKeys, areFocusTraversalKeysSet,
5916 isFocusCycleRoot, setFocusTraversalPolicy,
5917 getFocusTraversalPolicy, isFocusTraversalPolicySet,
5918 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
5919 Implement and document focus-handling methods.
5920 (transferFocusBackward): Remove method.
5921 (readObject, writeObject): Implement and document serialization
5923 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
5925 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
5927 * java/awt/DefaultKeyboardFocusManager.java: Implement and
5929 * java/awt/EventDispatchThread.java (run): Set default keyboard
5930 focus manager. Attempt to dispatch each event to the keyboard
5931 focus manager before normal dispatch.
5932 * java/awt/KeyboardFocusManager.java: Implement and partially
5934 * java/awt/Window.java (Window): Set focusCycleRoot to true.
5935 (show): Focus initial component when window is shown for the
5937 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5938 (pre_event_handler): Replace complex key press and key release
5939 logic with simple callbacks into GtkComponentPeer.
5940 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
5942 2004-04-21 Olga Rodimina <rodimina@redhat.com>
5944 * javax/swing/MenuSelectionManager.java
5945 (componentForPoint): Added new method.
5946 (defaultManager): New Method. Implemented.
5947 (getSelectedPath): Ditto.
5948 (isComponentPartOfCurrentMenu): Ditto.
5949 (processKeyEvent): Added new method.
5950 (processMouseEvent): New Method. Implemented.
5951 (setSelectedPath): Ditto.
5954 2004-04-19 Kim Ho <kho@redhat.com>
5956 * java/awt/Container.java:
5957 (remove): Set the component's parent to null.
5958 (getComponentAt): Implement.
5959 * javax/swing/JComponent.java:
5960 (JComponent): Initialize defaultLocale
5961 (getDefaultLocale): Implement.
5962 (setDefaultLocale): ditto.
5963 * javax/swing/JSlider.java:
5964 (JSlider): Fix calculation of value.
5965 * javax/swing/JSplitPane.java: Implement.
5966 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5967 Change SplitPane's default divider size.
5968 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5969 (paint): Remove unused code.
5970 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
5971 Added comments and ran through jalopy.
5972 (setBasicSplitPaneUI): Get reference to hidden divider
5973 and set up one touch buttons if necessary.
5974 (setBorder): Fire propertyChangeEvent only if
5975 borders are different.
5976 (getPreferredSize): Defer to layout manager.
5977 (propertyChange): Implement.
5978 (oneTouchExpandableChanged): ditto.
5979 (createLeftOneTouchButton): Use BasicArrowButton.
5980 (createRightOneTouchButton): ditto.
5981 (moveDividerTo): New method. Moves the divider
5982 to a set location based on the last divider location.
5983 (BasicSplitPaneDivider::MouseHandler): Implement.
5984 (BasicSplitPaneDivider::OneTouchButton): Removed.
5985 (BasicSplitPaneDivider::DragController): Implement.
5986 (BasicSplitPaneDivider::VerticalDragController):
5988 (BasicSplitPaneDivider::DividerLayout): ditto.
5989 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
5990 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5991 (calculateLayoutInfo): Don't show component if it's
5993 (paintTab): Fix title paint logic.
5995 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
5998 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5999 (setStartRule,setEndRule): Don't take abs of day number.
6000 (getOffset): Clarify docs. Add argument checks.
6001 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6002 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6004 * testsuite/libjava.mauve/xfails
6005 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6007 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6009 Layout interfaces during preparation, not initialization.
6010 * java/lang/natClass.cc (initializeClass): Move
6011 _Jv_LayoutInterfaceMethods call...
6012 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6014 2004-05-19 Anthony Green <green@localhost.localdomain>
6016 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6018 * Makefile.in: Rebuilt.
6019 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6020 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6021 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6022 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6023 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6024 gnu/javax/rmi/CORBA/DelegateFactory.java,
6025 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6026 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6027 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6028 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6029 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6030 gnu/javax/rmi/PortableServer.java: Remove files.
6032 2004-05-19 Anthony Green <green@redhat.com>
6034 * Makefile.am: Define JAVA_EXT_DIRS.
6035 * Makefile.in: Rebuilt.
6036 * java/lang/natRuntime.cc (insertSystemProperties): Set
6037 java.ext.dirs property.
6039 2004-05-16 Mark Wielaard <mark@klomp.org>
6041 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6043 2004-05-15 Mark Wielaard <mark@klomp.org>
6045 * doc/cni.sgml: Removed, merged into gcj.texi.
6047 2004-05-15 Mark Wielaard <mark@klomp.org>
6049 * Makefile.am (ordinary_java_source_files): Add new javax.print
6051 * Makefile.in: Regenerated.
6053 2004-05-15 Michael Koch <konqueror@gmx.de>
6055 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6056 javax/print/attribute/standard/DateTimeAtCreation.java,
6057 javax/print/attribute/standard/DateTimeAtProcessing.java,
6058 javax/print/attribute/standard/DocumentName.java,
6059 javax/print/attribute/standard/JobHoldUntil.java,
6060 javax/print/attribute/standard/JobImpressionsCompleted.java,
6061 javax/print/attribute/standard/JobMessageFromOperator.java,
6062 javax/print/attribute/standard/JobName.java,
6063 javax/print/attribute/standard/JobOriginatingUserName.java,
6064 javax/print/attribute/standard/JobPriority.java,
6065 javax/print/attribute/standard/JobPrioritySupported.java,
6066 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6067 javax/print/attribute/standard/OutputDeviceAssigned.java,
6068 javax/print/attribute/standard/PrinterInfo.java,
6069 javax/print/attribute/standard/PrinterLocation.java,
6070 javax/print/attribute/standard/PrinterMakeAndModel.java,
6071 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6072 javax/print/attribute/standard/PrinterName.java,
6073 javax/print/attribute/standard/QueuedJobCount.java,
6074 javax/print/attribute/standard/RequestingUserName.java:
6075 Fixed javadocs all over.
6077 2004-05-15 Michael Koch <konqueror@gmx.de>
6079 * javax/print/DocFlavor.java,
6080 javax/print/attribute/standard/ColorSupported.java,
6081 javax/print/attribute/standard/Compression.java,
6082 javax/print/attribute/standard/CopiesSupported.java,
6083 javax/print/attribute/standard/Fidelity.java,
6084 javax/print/attribute/standard/Finishings.java,
6085 javax/print/attribute/standard/JobImpressionsSupported.java,
6086 javax/print/attribute/standard/JobKOctetsSupported.java,
6087 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6088 javax/print/attribute/standard/JobSheets.java,
6089 javax/print/attribute/standard/JobState.java,
6090 javax/print/attribute/standard/JobStateReason.java,
6091 javax/print/attribute/standard/JobStateReasons.java,
6092 javax/print/attribute/standard/Media.java,
6093 javax/print/attribute/standard/MediaSizeName.java,
6094 javax/print/attribute/standard/MultipleDocumentHandling.java,
6095 javax/print/attribute/standard/NumberUpSupported.java,
6096 javax/print/attribute/standard/OrientationRequested.java,
6097 javax/print/attribute/standard/PDLOverrideSupported.java,
6098 javax/print/attribute/standard/PageRanges.java,
6099 javax/print/attribute/standard/PresentationDirection.java,
6100 javax/print/attribute/standard/PrintQuality.java,
6101 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6102 javax/print/attribute/standard/PrinterMoreInfo.java,
6103 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6104 javax/print/attribute/standard/PrinterResolution.java,
6105 javax/print/attribute/standard/PrinterState.java,
6106 javax/print/attribute/standard/PrinterStateReason.java,
6107 javax/print/attribute/standard/PrinterStateReasons.java,
6108 javax/print/attribute/standard/PrinterURI.java,
6109 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6110 javax/print/attribute/standard/Severity.java,
6111 javax/print/attribute/standard/SheetCollate.java,
6112 javax/print/attribute/standard/Sides.java:
6113 Added serialVersionUID and removed final keyword where it doenst
6116 2004-05-15 Michael Koch <konqueror@gmx.de>
6118 * javax/print/PrintServiceLookup.java: New file.
6120 2004-05-15 Michael Koch <konqueror@gmx.de>
6122 * javax/print/DocFlavor.java:
6123 Implemented all flavor classes.
6125 2004-05-15 Michael Koch <konqueror@gmx.de>
6127 * javax/print/attribute/standard/ColorSupported.java,
6128 javax/print/attribute/standard/Compression.java,
6129 javax/print/attribute/standard/CopiesSupported.java,
6130 javax/print/attribute/standard/Fidelity.java,
6131 javax/print/attribute/standard/Finishings.java,
6132 javax/print/attribute/standard/JobImpressionsSupported.java,
6133 javax/print/attribute/standard/JobKOctetsSupported.java,
6134 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6135 javax/print/attribute/standard/JobSheets.java,
6136 javax/print/attribute/standard/JobState.java,
6137 javax/print/attribute/standard/JobStateReason.java,
6138 javax/print/attribute/standard/JobStateReasons.java,
6139 javax/print/attribute/standard/Media.java,
6140 javax/print/attribute/standard/MediaSizeName.java,
6141 javax/print/attribute/standard/MultipleDocumentHandling.java,
6142 javax/print/attribute/standard/NumberUpSupported.java,
6143 javax/print/attribute/standard/OrientationRequested.java,
6144 javax/print/attribute/standard/PDLOverrideSupported.java,
6145 javax/print/attribute/standard/PageRanges.java,
6146 javax/print/attribute/standard/PresentationDirection.java,
6147 javax/print/attribute/standard/PrintQuality.java,
6148 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6149 javax/print/attribute/standard/PrinterMoreInfo.java,
6150 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6151 javax/print/attribute/standard/PrinterResolution.java,
6152 javax/print/attribute/standard/PrinterState.java,
6153 javax/print/attribute/standard/PrinterStateReason.java,
6154 javax/print/attribute/standard/PrinterStateReasons.java,
6155 javax/print/attribute/standard/PrinterURI.java,
6156 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6157 javax/print/attribute/standard/Severity.java,
6158 javax/print/attribute/standard/SheetCollate.java,
6159 javax/print/attribute/standard/Sides.java: New files.
6161 2004-05-15 Michael Koch <konqueror@gmx.de>
6163 * javax/print/Doc.java
6164 (getPrintData): Throws IOException.
6165 (getReaderForText): Likewise.
6166 (getStreamForBytes): Likewise.
6167 * javax/print/DocFlavor.java:
6168 Fixed filename in copyright.
6169 (serialVersionUID): New field.
6170 * javax/print/ServiceUIFactory.java:
6171 Made all constants final.
6172 * javax/print/AttributeException.java
6173 javax/print/MultiDoc.java
6174 javax/print/MultiDocPrintJob.java
6175 javax/print/MultiDocPrintService.java
6176 javax/print/StreamPrintService.java
6177 javax/print/URIException.java: New files.
6178 * javax/print/Makefile.am
6179 (EXTRA_DIST): Added all new files.
6181 2004-05-15 Michael Koch <konqueror@gmx.de>
6183 * javax/print/attribute/standard/Copies.java,
6184 javax/print/attribute/standard/DateTimeAtCompleted.java,
6185 javax/print/attribute/standard/DateTimeAtCreation.java,
6186 javax/print/attribute/standard/DateTimeAtProcessing.java,
6187 javax/print/attribute/standard/DocumentName.java,
6188 javax/print/attribute/standard/JobHoldUntil.java,
6189 javax/print/attribute/standard/JobImpressions.java,
6190 javax/print/attribute/standard/JobImpressionsCompleted.java,
6191 javax/print/attribute/standard/JobKOctets.java,
6192 javax/print/attribute/standard/JobKOctetsProcessed.java,
6193 javax/print/attribute/standard/JobMediaSheets.java,
6194 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6195 javax/print/attribute/standard/JobMessageFromOperator.java,
6196 javax/print/attribute/standard/JobName.java,
6197 javax/print/attribute/standard/JobOriginatingUserName.java,
6198 javax/print/attribute/standard/JobPriority.java,
6199 javax/print/attribute/standard/JobPrioritySupported.java,
6200 javax/print/attribute/standard/NumberOfDocuments.java,
6201 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6202 javax/print/attribute/standard/NumberUp.java,
6203 javax/print/attribute/standard/OutputDeviceAssigned.java,
6204 javax/print/attribute/standard/PagesPerMinute.java,
6205 javax/print/attribute/standard/PagesPerMinuteColor.java:
6206 Fixed @return tag all over.
6208 2004-05-15 Michael Koch <konqueror@gmx.de>
6210 * javax/print/attribute/AttributeSetUtilities.java
6211 (verifyCategoryForValue): Fixed typo in javadoc.
6212 * javax/print/attribute/HashAttributeSet.java
6213 (containsKey): Fixed @return tag.
6214 (comtainsValue): Likewise.
6216 * javax/print/attribute/IntegerSyntax.java
6218 * javax/print/attribute/ResolutionSyntax.java
6220 (getCrossFeedResolution): Removed unused code.
6221 (getFeedResolution): Likewise.
6222 * javax/print/attribute/SetOfIntegerSyntax.java
6223 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6224 (equals): Fixed @return tag.
6225 * javax/print/attribute/TextSyntax.java
6226 (TextSyntax): Take locale into account.
6227 (hashCode): Better implementation.
6229 2004-05-15 Michael Koch <konqueror@gmx.de>
6231 * javax/print/CancelablePrintJob.java,
6232 javax/print/Doc.java,
6233 javax/print/DocFlavor.java,
6234 javax/print/DocPrintJob.java,
6235 javax/print/FlavorException.java,
6236 javax/print/PrintException.java,
6237 javax/print/PrintService.java,
6238 javax/print/ServiceUIFactory.java: New files.
6240 2004-05-15 Mark Wielaard <mark@klomp.org>
6242 * gnu/regexp/CharIndexedReader.java: Removed.
6243 * gnu/regexp/REFilterReader.java: Likewise.
6244 * gnu/regexp/RETokenLookAhead.java: Likewise.
6245 * Makefile.am (ordinary_java_source_files): Remove above classes.
6246 * Makefile.in: Regenerated.
6248 2004-05-14 Tom Tromey <tromey@redhat.com>
6250 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6251 not `XGraphicsConfiguration.XOffScreenImage'.
6253 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6255 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6257 2004-05-14 Steven Augart <augart@watson.ibm.com>
6259 * include/jni.h (_Jv_func): Removed.
6260 (struct JNINativeInterface): Use `void *' for reserved slots.
6261 (struct JNIInvokeInterface): Likewise.
6263 2004-05-11 Michael Koch <konqueror@gmx.de>
6265 * gnu/java/net/natPlainSocketImplPosix.cc
6266 (read): Fixed typo in expression.
6268 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6270 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6271 ld_library_additions. Adjust all calls to libjava_invoke to match
6274 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6275 path to cxxflagslist.
6276 Pass path of libstdc++ to libjava_invoke.
6278 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6279 libjava_invoke arguments.
6281 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6283 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6286 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6288 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6289 main binary against the JNI shared library.
6291 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6293 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6294 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6295 (SimpleTimeZone): Tweak docs. Add new variation.
6296 (setStartRule,setEndRule): Add new variations. Use
6297 startTimeMode and endTimeMode.
6299 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6301 * java/util/Calendar.java (getActualMinimum,
6302 getActualMaximum): Remove abstract. Implement.
6304 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6306 Run the jni tests using the interpreter.
6307 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6308 options_cxx to shared lib compile command.
6309 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6310 they are used to link the shared lib, not the main binary.
6311 Use libjava_invoke to run gij.
6313 2004-05-06 Michael Koch <konqueror@gmx.de>
6315 * java/util/logging/Level.java
6316 (parse): Use == instead of String.equals().
6318 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6320 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6321 verify_field_signature and verify_method_signature, not
6322 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6323 (_Jv_ClassReader::handleField): Likewise.
6324 (_Jv_ClassReader::handleMethod): Likewise.
6326 2004-05-06 Michael Koch <konqueror@gmx.de>
6328 * javax/swing/table/TableColumn.java:
6331 2004-05-06 Michael Koch <konqueror@gmx.de>
6333 * javax/imageio/spi/ImageReaderWriterSpi.java
6334 (ImageReaderWriterSpi): Made it public.
6335 * javax/imageio/stream/ImageInputStream.java:
6338 2004-05-06 Michael Koch <konqueror@gmx.de>
6340 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6343 2004-05-06 Michael Koch <konqueror@gmx.de>
6345 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6346 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6348 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6349 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6350 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6351 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6352 their own source file.
6353 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6354 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6355 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6356 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6357 (create): Define variable on top of function.
6358 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6359 (menu_pos): Prototyped.
6360 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6361 (setTitle): Removed.
6362 * jni/gtk-peer/gthread-jni.c
6363 (gdk_threads_wake): Removed.
6364 * Makefile.am (gtk_c_source_files): Added new files
6365 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6366 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6367 * Makefile.in: Regenerated.
6369 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6371 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6374 2004-05-05 Mark Wielaard <mark@klomp.org>
6376 * javax/swing/AbstractButton.java: Replace special HTML entities with
6378 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6379 * javax/swing/DefaultButtonModel.java: Likewise.
6380 * javax/swing/DefaultListModel.java: Likewise.
6381 * javax/swing/JList.java: Likewise.
6382 * javax/swing/JSlider.java: Likewise.
6383 * javax/swing/ListModel.java: Likewise.
6384 * javax/swing/Popup.java: Likewise.
6385 * javax/swing/SwingUtilities.java: Likewise.
6387 2004-05-05 Michael Koch <konqueror@gmx.de>
6389 * javax/swing/AbstractButton.java,
6390 javax/swing/ActionMap.java,
6391 javax/swing/DefaultButtonModel.java,
6392 javax/swing/DefaultListModel.java,
6393 javax/swing/ImageIcon.java,
6394 javax/swing/JComboBox.java,
6395 javax/swing/JComponent.java,
6396 javax/swing/JFrame.java,
6397 javax/swing/JInternalFrame.java,
6398 javax/swing/JMenuBar.java,
6399 javax/swing/JMenuItem.java,
6400 javax/swing/JOptionPane.java,
6401 javax/swing/JProgressBar.java,
6402 javax/swing/JRootPane.java,
6403 javax/swing/JScrollBar.java,
6404 javax/swing/JScrollPane.java,
6405 javax/swing/JSeparator.java,
6406 javax/swing/JSlider.java,
6407 javax/swing/JTabbedPane.java,
6408 javax/swing/JTable.java,
6409 javax/swing/JTextField.java,
6410 javax/swing/JToolBar.java,
6411 javax/swing/JToolTip.java,
6412 javax/swing/JTree.java,
6413 javax/swing/JViewport.java,
6414 javax/swing/JWindow.java,
6415 javax/swing/KeyStroke.java,
6416 javax/swing/LookAndFeel.java,
6417 javax/swing/SwingUtilities.java,
6418 javax/swing/Timer.java,
6419 javax/swing/ToolTipManager.java,
6420 javax/swing/UIDefaults.java,
6421 javax/swing/border/TitledBorder.java,
6422 javax/swing/filechooser/FileSystemView.java,
6423 javax/swing/plaf/basic/BasicButtonListener.java,
6424 javax/swing/plaf/basic/BasicButtonUI.java,
6425 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
6426 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6427 javax/swing/plaf/basic/BasicLabelUI.java,
6428 javax/swing/plaf/basic/BasicMenuItemUI.java,
6429 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6430 javax/swing/plaf/basic/BasicRootPaneUI.java,
6431 javax/swing/plaf/basic/BasicScrollBarUI.java,
6432 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6433 javax/swing/plaf/basic/BasicSliderUI.java,
6434 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6435 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6436 javax/swing/table/JTableHeader.java,
6437 javax/swing/text/AbstractDocument.java,
6438 javax/swing/text/DefaultCaret.java,
6439 javax/swing/text/StyledEditorKit.java,
6440 javax/swing/tree/DefaultTreeCellEditor.java:
6443 2004-05-05 Michael Koch <konqueror@gmx.de>
6445 * java/util/prefs/AbstractPreferences.java
6446 (AbstractPreferences): Added parenthesis for clarity.
6447 Closes classpath bug #7940.
6449 2004-05-05 Tom Tromey <tromey@redhat.com>
6451 * javax/naming/CompoundName.java (endsWith): Look at correct
6452 element of source name.
6454 2004-05-05 Mark Wielaard <mark@klomp.org>
6456 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6457 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6459 2004-05-05 Tom Tromey <tromey@redhat.com>
6461 * java/io/BufferedReader.java (skip): Removed unused
6464 2004-05-05 Michael Koch <konqueror@gmx.de>
6466 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6468 2004-05-05 Dalibor Topic <robilad@kaffe.org>
6470 * java/text/AttributedString.java,
6471 java/text/AttributedStringIterator.java,
6472 java/text/Collator.java,
6473 java/text/DecimalFormatSymbols.java,
6474 java/text/NumberFormat.java,
6475 java/text/RuleBasedCollator.java:
6478 2004-05-05 Tom Tromey <tromey@redhat.com>
6480 * java/text/Format.java: Cleaned up imports.
6481 * java/text/DecimalFormat.java: Cleaned up imports.
6482 * java/security/SecureRandom.java: Cleaned up imports.
6483 (SecureRandom): Removed unused variable.
6484 * java/security/UnresolvedPermission.java: Cleaned up imports.
6485 * java/util/Date.java (parse): Removed unused variable.
6486 * java/util/ResourceBundle.java: Cleaned up imports.
6487 (getBundle): Removed unused variable.
6488 (tryBundle): Likewise.
6489 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6491 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6493 * java/text/SimpleDateFormat.java:
6494 (formatWithAttribute): New method. It implements
6495 the formatting process with attributes.
6496 (format): Use formatWithAttribute.
6497 (formatToCharacterIterator): New method. Use
6498 formatWithAttribute.
6500 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6502 * java/text/MessageFormat.java:
6503 (class Field): New class.
6504 (formatToCharacterIterator): New method.
6505 (format): Use formatInternal now.
6506 (formatInternal): New method. String formatter should
6507 be done here (with attributes). Attributes merging supported.
6508 (parse): More documentation.
6509 (getFormatsByArgumentIndex): New method.
6510 (setFormatByArgumentIndex): New method.
6511 (setFormatsByArgumentIndex): New method.
6513 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6515 * java/text/DecimalFormat.java
6516 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
6517 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
6518 (parse): Fixed handling of exponentiation notation and grouping.
6520 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6522 * java/text/DecimalFormat.java
6523 (scanFix): Build attribute array. Fixed error reporting.
6524 (applyPatternWithSymbols): Store attributes for the prefix and
6526 (formatInternal): New method. Changed the way the string is
6527 computed. Implemented attributes. Cleant up rounding in
6528 exponential notation.
6529 (format): Use formatInternal.
6530 (formatToCharacterIterator): New method.
6531 (exponentRound, negativePrefixRanges, positivePrefixRanges,
6532 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
6533 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
6536 2004-05-04 Dalibor Topic <robilad@kaffe.org>
6538 * java/security/interfaces/DSAKeyPairGenerator.java,
6539 java/security/interfaces/DSAPrivateKey.java,
6540 java/security/interfaces/DSAPublicKey.java,
6541 java/security/interfaces/RSAPrivateKey.java,
6542 java/security/interfaces/RSAPublicKey.java:
6545 2004-05-04 Michael Koch <konqueror@gmx.de>
6547 * java/nio/ByteBuffer.java,
6548 java/nio/CharBuffer.java,
6549 java/nio/DoubleBuffer.java,
6550 java/nio/FloatBuffer.java,
6551 java/nio/IntBuffer.java,
6552 java/nio/LongBuffer.java,
6553 java/nio/ShortBuffer.java:
6554 (compareTo): Fixed bogus implementation in all buffer classes.
6556 2004-05-04 Ingo Proetel <proetel@aicas.com>
6558 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
6559 32 bit pixels not 8 bit pixels.
6560 (isCompatibleRaster): Added javadoc comment.
6562 2004-05-04 Ingo Proetel <proetel@aicas.com>
6564 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
6567 2004-05-04 Ingo Proetel <proetel@aicas.com>
6569 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
6570 (getColorModel): Return the actual color model.
6571 (getRaster): Implemented.
6572 (ColorRaster): New inner class.
6573 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
6575 * java/awt/Color.java (<init>): Make exception more verbose.
6576 (createContext): Use ColorModel when creating a PaintContext.
6578 2004-05-04 Michael Koch <konqueror@gmx.de>
6580 * gnu/java/text/CharacterBreakIterator.java
6581 (previous): Removed unused variable.
6583 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
6585 * gnu/java/text/FormatBuffer.java,
6586 gnu/java/text/AttributedFormatBuffer.java,
6587 gnu/java/text/StringFormatBuffer.java: New classes to implement
6588 attributed iterators in java.text.
6589 * gnu/java/text/FormatCharacterIterator.java: Moved
6590 from java/text as it is an internal class.
6591 * java/text/FormatCharacterIterator.java: Removed.
6592 * java/text/Format.java:
6593 Import gnu.java.text.FormatCharacterIterator.
6594 * Makefile.am (java_source_files): Added new files.
6595 * Makefile.in: Regenerated.
6598 2004-05-04 Mark Wielaard <mark@klomp.org>
6600 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
6602 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
6604 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
6605 * Makefile.in: Rebuilt.
6607 2004-05-03 Mark Wielaard <mark@klomp.org>
6609 * gnu/java/security/der/DERReader.java: Call static methods staticly.
6610 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
6612 (set(String, String, int, String, String, String, String, String)):
6613 Assign this.file to path or path + "?" + query.
6614 * java/util/Arrays.java: Call static methods staticly.
6615 * java/util/zip/ZipEntry.java: Likewise.
6616 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
6617 dir to this.direction.
6618 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
6619 Assign static field only once.
6620 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
6622 2004-05-03 Mark Wielaard <mark@klomp.org>
6624 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
6625 unused variables hScrollbarHeight and vScrollbarWidth.
6626 (preferredSize): Likewise.
6627 * gnu/java/security/provider/DSAParameters.java (engineToString):
6628 Removed unused call to System.getProperty("line.seperator");
6629 * java/security/Security.java (loadProviders): Return result.
6631 2004-05-03 Tom Tromey <tromey@redhat.com>
6633 * java/net/URLStreamHandler.java (toExternalForm): Removed
6636 * java/math/BigDecimal.java (divide): Removed unused variable.
6637 * java/lang/Throwable.java: Cleaned up imports.
6638 * java/lang/ClassLoader.java: Cleaned up imports.
6639 * java/io/FilePermission.java (implies): Removed unused
6641 * java/awt/TextComponent.java: Removed unused import.
6642 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
6643 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
6644 * gnu/java/text/WordBreakIterator.java: Removed unused import.
6645 * gnu/java/text/SentenceBreakIterator.java: Removed unused
6647 * gnu/java/text/LineBreakIterator.java: Removed unused import.
6648 * gnu/java/text/CharacterBreakIterator.java: Removed
6650 * gnu/java/security/provider/DSAKeyPairGenerator.java:
6652 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
6653 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
6655 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
6656 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
6657 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
6658 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
6659 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
6660 (lookupProviders): Removed unused variable.
6661 (loadNextServiceProvider): Likewise.
6662 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
6664 2004-05-03 Michael Koch <konqueror@gmx.de>
6666 Fixes PR libgcj/14695:
6667 * java/net/NetworkInterface.java
6668 (getByName): Return null when no interface was found.
6670 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
6671 Tom Tromey <tromey@redhat.com>
6673 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
6674 additional option "-Wmissing-prototypes" for compiling C sources.
6675 Print actual filename for pass/fail rather than $name.c.
6676 * testsuite/libjava.jni/PR15133.java: New testcase file.
6677 * testsuite/libjava.jni/PR15133.c: Likewise.
6678 * testsuite/libjava.jni/PR15133.out: Likewise.
6680 2004-04-30 Roger Sayle <roger@eyesopen.com>
6682 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
6685 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
6687 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
6688 limit the maximum heap size to avoid unnecessary thrashing.
6690 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
6692 * java/text/CollationElementIterator.java (reset): Reset
6693 lookahead variables.
6695 2004-04-23 Mark Wielaard <mark@klomp.org>
6697 * jni/classpath/jcl.c: Changed C++ comments into C comments.
6699 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6701 * java/sql/DriverManager.java:
6704 2004-04-23 Michael Koch <konqueror@gmx.de>
6707 (hashcode): Don't initialize with default value explicitely.
6708 (getContent): Removed redundant "final" keyword.
6709 (openStream): Likewise.
6710 (getURLStreamHandler): Fixed coding style.
6711 * java/net/URLConnection.java
6712 (defaultAllowUserInteraction): Don't initialize with default value
6714 (connected): Likewise.
6715 (doOutput): Likewise.
6716 (ifModifiedSince): Likewise.
6717 (dateformats_initialized): Likewise.
6718 (setURLStreamHander): Use StreamTokenizer where it belongs to.
6720 2004-04-23 Michael Koch <konqueror@gmx.de>
6722 * gnu/java/nio/channels/FileChannelImpl.java
6723 (SET, CUR): Unused, removed.
6724 (read): Implement here directly.
6725 (implRead): Removed.
6726 (write): Implement here directly.
6727 (implWrite): Removed.
6729 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6731 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
6732 javax/rmi/CORBA/Stub.java,
6733 javax/rmi/CORBA/Util.java,
6734 javax/rmi/CORBA/ValueHandler.java,
6735 javax/rmi/CORBA/ValueHandler.java,
6736 javax/rmi/PortableRemoteObject.java:
6739 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6741 * java/util/jar/JarFile.java,
6742 java/util/jar/JarInputStream.java,
6743 java/util/jar/JarOutputStream.java,
6744 java/util/jar/Manifest.java:
6747 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6749 * java/util/ArrayList.java,
6750 java/util/Calendar.java,
6751 java/util/Currency.java,
6752 java/util/HashMap.java,
6753 java/util/HashSet.java,
6754 java/util/Hashtable.java,
6755 java/util/LinkedList.java,
6756 java/util/Properties.java,
6757 java/util/PropertyPermission.java,
6758 java/util/TimeZone.java,
6759 java/util/TreeMap.java,
6760 java/util/TreeSet.java,
6761 java/util/Vector.java,
6762 java/util/WeakHashMap.java:
6765 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6767 * java/util/logging/FileHandler.java,
6768 java/util/logging/Formatter.java,
6769 java/util/logging/Handler.java,
6770 java/util/logging/Logger.java,
6771 java/util/logging/SimpleFormatter.java,
6772 java/util/logging/XMLFormatter.java:
6775 2004-04-22 Mark Wielaard <mark@klomp.org>
6777 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
6778 -Wno-long-long flags variable.
6779 (gtk_c_files): Use PEDANTIC_CFLAGS.
6780 * Makefile.in: Regenerated.
6782 2004-04-22 Mark Wielaard <mark@klomp.org>
6784 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6785 Changed C++ comments into C comments.
6786 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
6789 2004-04-22 Michael Koch <konqueror@gmx.de>
6791 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6792 Merged copyright year with GNU classpath.
6794 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6796 * javax/security/auth/x500/X500Principal.java:
6799 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6801 * javax/swing/JSlider.java:
6802 Fixed HTML tags in comments.
6804 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6806 * javax/accessibility/AccessibleText.java:
6809 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
6811 * java/net/URLStreamHandler.java
6812 (parseURL): Convert the file path to using '/' instead of native
6815 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
6818 (userInfo): New field.
6819 (URL): Set authority to the right value.
6820 (setURL): Fixed authority and file initialization.
6821 * java/net/URLStreamHandler.java
6822 (parseURL): Take care of the query tag. Build authority.
6823 (toExternalForm): Fixed URL building using authority.
6825 2004-04-22 Michael Koch <konqueror@gmx.de>
6827 * java/net/Socket.java
6828 (impl): Made package-private.
6829 * java/net/ServerSocket.java
6830 (implAccept): Access Socket.impl field directly.
6832 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6834 * java/util/prefs/Preferences.java,
6835 java/util/prefs/InvalidPreferencesFormatException.java,
6836 java/util/prefs/BackingStoreException.java,
6837 java/util/prefs/AbstractPreferences.java:
6840 2004-04-22 Dalibor Topic <robilad@kaffe.org>
6842 * java/util/regex/Matcher.java,
6843 java/util/regex/Pattern.java:
6846 2004-04-22 Michael Koch <konqueror@gmx.de>
6848 * java/nio/charset/IllegalCharsetNameException.java
6849 (charsetName): Made private.
6850 (IllegalCharsetNameException): Added @param tag to javadoc.
6851 (getCharsetName): Added @return tag to javadoc.
6852 * java/nio/charset/MalformedInputException.java
6853 (MalformedInputException): Added @param tag to javadoc.
6854 (getInputLength): Revised method description, added @return tag.
6855 (getMessage): Added @return tag.
6857 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
6859 * java/awt/Font.java (deriveFont): Implement missing variants.
6860 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
6863 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
6865 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
6866 Set method->index values for interface methods to their itable index.
6867 (initializeClass): Call _Jv_LayoutInterfaceMethods.
6869 2004-04-21 Michael Koch <konqueror@gmx.de>
6871 * java/nio/DirectByteBufferImpl.java
6872 (shiftDown): Made static, give address as argument and
6873 provide a convenience method that overwrites shiftDown in
6874 ByteBufferImpl and calls the native shiftDown.
6875 * java/nio/MappedByteBufferImpl.java
6876 (): Use optimized method in DirectByteBufferImpl.
6877 * java/nio/natDirectByteBufferImpl.cc
6878 (shiftDown): Changed method signature. Removed usage of array_offset.
6880 2004-04-21 Michael Koch <konqueror@gmx.de>
6882 * gnu/java/net/natPlainSocketImplPosix.cc
6883 (SocketInputStream::read): Make sure returned data is a byte value.
6885 2004-04-21 Michael Koch <konqueror@gmx.de>
6887 * gnu/classpath/ServiceFactory.java,
6888 gnu/classpath/ServiceProviderLoadingAction.java,
6889 javax/imageio/ImageReader.java,
6890 javax/imageio/ImageTranscoder.java,
6891 javax/imageio/ImageWriter.java,
6892 javax/imageio/package.html,
6893 javax/imageio/spi/IIOServiceProvider.java,
6894 javax/imageio/spi/ImageInputStreamSpi.java,
6895 javax/imageio/spi/ImageOutputStreamSpi.java,
6896 javax/imageio/spi/ImageReaderWriterSpi.java,
6897 javax/imageio/spi/ImageTranscoderSpi.java,
6898 javax/imageio/spi/RegisterableService.java,
6899 javax/imageio/spi/ServiceRegistry.java,
6900 javax/imageio/spi/package.html,
6901 javax/imageio/stream/IIOByteBuffer.java,
6902 javax/imageio/stream/ImageInputStream.java,
6903 javax/imageio/stream/ImageOutputStream.java,
6904 javax/imageio/stream/package.html:
6907 (ordinary_java_source_files): Added
6908 gnu/classpath/ServiceFactory.java and
6909 gnu/classpath/ServiceProviderLoadingAction.java.
6910 (javax_source_files): Added
6911 javax/imageio/ImageReader.java,
6912 javax/imageio/ImageTranscoder.java,
6913 javax/imageio/ImageWriter.java,
6914 javax/imageio/spi/IIOServiceProvider.java,
6915 javax/imageio/spi/ImageInputStreamSpi.java,
6916 javax/imageio/spi/ImageOutputStreamSpi.java,
6917 javax/imageio/spi/ImageReaderWriterSpi.java,
6918 javax/imageio/spi/ImageTranscoderSpi.java,
6919 javax/imageio/spi/RegisterableService.java,
6920 javax/imageio/spi/ServiceRegistry.java,
6921 javax/imageio/stream/IIOByteBuffer.java,
6922 javax/imageio/stream/ImageInputStream.java and
6923 javax/imageio/stream/ImageOutputStream.java.
6924 * Makefile.in: Regenerated.
6926 2004-04-21 Michael Koch <konqueror@gmx.de>
6928 * java/util/Properties.java
6929 (load): Fix wrongly merged fix.
6931 2004-04-21 Mark Wielaard <mark@klomp.org>
6933 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
6934 malloc and free buf.
6936 2004-04-21 Dalibor Topic <robilad@kaffe.org>
6938 * javax/naming/AuthenticationException.java,
6939 javax/naming/AuthenticationNotSupportedException.java,
6940 javax/naming/CannotProceedException.java,
6941 javax/naming/CommunicationException.java,
6942 javax/naming/CompoundName.java,
6943 javax/naming/ConfigurationException.java,
6944 javax/naming/ContextNotEmptyException.java,
6945 javax/naming/InitialContext.java,
6946 javax/naming/InsufficientResourcesException.java,
6947 javax/naming/InterruptedNamingException.java,
6948 javax/naming/LimitExceededException.java,
6949 javax/naming/LinkException.java,
6950 javax/naming/LinkLoopException.java,
6951 javax/naming/LinkRef.java,
6952 javax/naming/MalformedLinkException.java,
6953 javax/naming/Name.java,
6954 javax/naming/NameAlreadyBoundException.java,
6955 javax/naming/NameNotFoundException.java,
6956 javax/naming/NamingSecurityException.java,
6957 javax/naming/NoInitialContextException.java,
6958 javax/naming/NoPermissionException.java,
6959 javax/naming/NotContextException.java,
6960 javax/naming/PartialResultException.java,
6961 javax/naming/ReferralException.java,
6962 javax/naming/ServiceUnavailableException.java,
6963 javax/naming/SizeLimitExceededException.java,
6964 javax/naming/TimeLimitExceededException.java,
6965 javax/naming/directory/Attribute.java,
6966 javax/naming/directory/Attributes.java,
6967 javax/naming/directory/SearchResult.java,
6968 javax/naming/event/NamingExceptionEvent.java,
6969 javax/naming/spi/ResolveResult.java:
6972 2004-04-21 Mark Wielaard <mark@klomp.org>
6974 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6975 Changed C++ comments into C comments. Removed commented out code.
6976 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6978 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
6980 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
6982 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
6984 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6986 * native/jni/gtk-peer/gthread-jni.c:
6989 2004-04-21 Mark Wielaard <mark@klomp.org>
6991 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
6992 static fields defined in interface.
6993 * javax/awt/JDialog.java: Likewise.
6994 (JDialog): Make constructors public.
6995 (getDefaultCloseOperation): Make public.
6996 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
6997 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
6998 * javax/swing/JViewport.java (JViewport): Make constructor public.
7000 2004-04-21 Michael Koch <konqueror@gmx.de>
7002 * java/util/Map.java
7003 (Entry): Removed redundant "static" modifier.
7004 * java/text/AttributedCharacterIterator.java:
7005 Updated copyright year.
7007 2004-04-20 Michael Koch <konqueror@gmx.de>
7009 * javax/naming/directory/SearchControls.java:
7010 Don't explicitely extend java.lang.Object.
7011 * javax/naming/spi/DirStateFactory.java:
7012 Merged copyright year with GNU classpath.
7014 2004-04-20 Michael Koch <konqueror@gmx.de>
7016 * java/nio/channels/Channels.java:
7017 Merged coding style with GNU classpath.
7019 2004-04-20 Michael Koch <konqueror@gmx.de>
7021 * java/net/ServerSocket.java
7022 Merged coding style from GNU classpath.
7024 2004-04-20 Michael Koch <konqueror@gmx.de>
7026 * java/io/BufferedWriter.java:
7027 Reordered variables to be at top of the class.
7028 (localFlush): Removed redundant final keyword.
7030 2004-04-20 Ingo Proetel <proetel@aicas.com>
7032 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7034 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7036 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7037 for percent and permill check.
7039 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7041 * java/text/FieldPosition.java
7042 (FieldPosition) Constructor now behaves as it should according
7043 to the java documentation.
7045 2004-04-20 Mark Wielaard <mark@klomp.org>
7047 * java/util/Properties.java: Use the word umlaut, not ä in api
7050 2004-04-20 Michael Koch <konqueror@gmx.de>
7052 * java/nio/Buffer.java,
7053 java/nio/channels/AlreadyConnectedException.java,
7054 java/nio/channels/AsynchronousCloseException.java,
7055 java/nio/channels/ByteChannel.java,
7056 java/nio/channels/CancelledKeyException.java,
7057 java/nio/channels/Channel.java,
7058 java/nio/channels/Channels.java,
7059 java/nio/channels/ClosedByInterruptException.java,
7060 java/nio/channels/ClosedChannelException.java,
7061 java/nio/channels/ClosedSelectorException.java,
7062 java/nio/channels/ConnectionPendingException.java,
7063 java/nio/channels/DatagramChannel.java,
7064 java/nio/channels/FileChannel.java,
7065 java/nio/channels/FileLock.java,
7066 java/nio/channels/FileLockInterruptionException.java,
7067 java/nio/channels/GatheringByteChannel.java,
7068 java/nio/channels/IllegalBlockingModeException.java,
7069 java/nio/channels/IllegalSelectorException.java,
7070 java/nio/channels/InterruptibleChannel.java,
7071 java/nio/channels/NoConnectionPendingException.java,
7072 java/nio/channels/NonReadableChannelException.java,
7073 java/nio/channels/NonWritableChannelException.java,
7074 java/nio/channels/NotYetBoundException.java,
7075 java/nio/channels/NotYetConnectedException.java,
7076 java/nio/channels/OverlappingFileLockException.java,
7077 java/nio/channels/Pipe.java,
7078 java/nio/channels/ReadableByteChannel.java,
7079 java/nio/channels/ScatteringByteChannel.java,
7080 java/nio/channels/SelectableChannel.java,
7081 java/nio/channels/SelectionKey.java,
7082 java/nio/channels/Selector.java,
7083 java/nio/channels/ServerSocketChannel.java,
7084 java/nio/channels/SocketChannel.java,
7085 java/nio/channels/UnresolvedAddressException.java,
7086 java/nio/channels/UnsupportedAddressTypeException.java,
7087 java/nio/channels/WritableByteChannel.java,
7088 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7089 java/nio/channels/spi/AbstractSelectableChannel.java,
7090 java/nio/channels/spi/AbstractSelectionKey.java,
7091 java/nio/channels/spi/AbstractSelector.java,
7092 java/nio/channels/spi/SelectorProvider.java,
7093 java/nio/charset/spi/CharsetProvider.java:
7094 Fixed javadocs and jalopied all over java.nio.
7096 2004-04-20 Michael Koch <konqueror@gmx.de>
7098 * java/nio/ByteBufferImpl.java,
7099 java/nio/CharBufferImpl.java,
7100 java/nio/DirectByteBufferImpl.java,
7101 java/nio/DoubleBufferImpl.java,
7102 java/nio/DoubleViewBufferImpl.java,
7103 java/nio/FloatBufferImpl.java,
7104 java/nio/FloatViewBufferImpl.java,
7105 java/nio/IntBufferImpl.java,
7106 java/nio/IntViewBufferImpl.java,
7107 java/nio/LongBufferImpl.java,
7108 java/nio/LongViewBufferImpl.java,
7109 java/nio/MappedByteBufferImpl.java,
7110 java/nio/ShortBufferImpl.java,
7111 java/nio/ShortViewBufferImpl.java:
7112 Made sure all classes are final and removed final keyword from all
7115 2004-04-20 Michael Koch <konqueror@gmx.de>
7117 * java/rmi/MarshalledObject.java,
7118 java/rmi/Naming.java,
7119 java/rmi/RemoteException.java,
7120 java/rmi/activation/ActivationException.java,
7121 java/rmi/server/ServerCloneException.java,
7122 java/security/AccessController.java,
7123 java/security/AlgorithmParameterGenerator.java,
7124 java/security/AlgorithmParameters.java,
7125 java/security/CodeSource.java,
7126 java/security/Identity.java,
7127 java/security/IdentityScope.java,
7128 java/security/KeyPairGenerator.java,
7129 java/security/KeyStore.java,
7130 java/security/Security.java,
7131 java/security/Signature.java,
7132 java/security/SignatureSpi.java,
7133 java/security/SignedObject.java,
7134 java/security/spec/DSAParameterSpec.java,
7135 java/security/spec/DSAPrivateKeySpec.java,
7136 java/security/spec/DSAPublicKeySpec.java,
7137 java/sql/Array.java,
7138 java/sql/DatabaseMetaData.java,
7139 java/sql/ResultSet.java,
7140 java/text/ChoiceFormat.java,
7141 java/text/CollationElementIterator.java,
7142 java/text/CollationKey.java,
7143 java/text/Collator.java,
7144 java/text/DateFormat.java,
7145 java/text/DateFormatSymbols.java,
7146 java/text/DecimalFormatSymbols.java,
7147 java/text/Format.java,
7148 java/text/ParsePosition.java,
7149 java/text/RuleBasedCollator.java,
7150 java/text/SimpleDateFormat.java,
7151 java/text/StringCharacterIterator.java,
7152 java/util/Collections.java,
7153 java/util/PropertyResourceBundle.java,
7154 java/util/ResourceBundle.java,
7155 java/util/StringTokenizer.java,
7156 java/util/jar/Attributes.java,
7157 java/util/logging/ConsoleHandler.java,
7158 java/util/logging/LogManager.java,
7159 java/util/logging/MemoryHandler.java,
7160 java/util/logging/SocketHandler.java,
7161 javax/naming/NamingException.java:
7162 Fixed javadoc, coding style and argument names all over.
7164 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7166 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7167 constructor. (valid) Added null check.
7169 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7171 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7172 * java/io/FileOutputStream.java
7173 (FileOutputStream) Reorganized constructors. Constructors now
7174 check whether the given path is directory.
7176 2004-04-20 Michael Koch <konqueror@gmx.de>
7178 * java/net/Authenticator.java,
7179 java/net/BindException.java,
7180 java/net/ConnectException.java,
7181 java/net/ContentHandler.java,
7182 java/net/ContentHandlerFactory.java,
7183 java/net/DatagramPacket.java,
7184 java/net/DatagramSocket.java,
7185 java/net/DatagramSocketImpl.java,
7186 java/net/DatagramSocketImplFactory.java,
7187 java/net/FileNameMap.java,
7188 java/net/HttpURLConnection.java,
7189 java/net/Inet4Address.java,
7190 java/net/Inet6Address.java,
7191 java/net/InetAddress.java,
7192 java/net/InetSocketAddress.java,
7193 java/net/JarURLConnection.java,
7194 java/net/MalformedURLException.java,
7195 java/net/MulticastSocket.java,
7196 java/net/NetPermission.java,
7197 java/net/NetworkInterface.java,
7198 java/net/NoRouteToHostException.java,
7199 java/net/PasswordAuthentication.java,
7200 java/net/PortUnreachableException.java,
7201 java/net/ProtocolException.java,
7202 java/net/ServerSocket.java,
7203 java/net/Socket.java,
7204 java/net/SocketAddress.java,
7205 java/net/SocketException.java,
7206 java/net/SocketImpl.java,
7207 java/net/SocketImplFactory.java,
7208 java/net/SocketOptions.java,
7209 java/net/SocketPermission.java,
7210 java/net/SocketTimeoutException.java,
7212 java/net/URISyntaxException.java,
7214 java/net/URLClassLoader.java,
7215 java/net/URLConnection.java,
7216 java/net/URLDecoder.java,
7217 java/net/URLEncoder.java,
7218 java/net/URLStreamHandler.java,
7219 java/net/URLStreamHandlerFactory.java,
7220 java/net/UnknownHostException.java,
7221 java/net/UnknownServiceException.java:
7222 Fixed javadocs, coding style and argument names all over.
7224 2004-04-20 Michael Koch <konqueror@gmx.de>
7226 * java/lang/Byte.java,
7227 java/lang/CharSequence.java,
7228 java/lang/ClassLoader.java,
7229 java/lang/Compiler.java,
7230 java/lang/Double.java,
7231 java/lang/Float.java,
7232 java/lang/Integer.java,
7233 java/lang/Long.java,
7234 java/lang/Math.java,
7235 java/lang/Number.java,
7236 java/lang/Package.java,
7237 java/lang/Runtime.java,
7238 java/lang/RuntimePermission.java,
7239 java/lang/SecurityManager.java,
7240 java/lang/Short.java,
7241 java/lang/StringBuffer.java,
7242 java/lang/System.java,
7243 java/lang/ThreadGroup.java,
7244 java/lang/Throwable.java,
7245 java/lang/reflect/InvocationHandler.java,
7246 java/lang/reflect/Proxy.java:
7247 Fixed javadocs, coding style and argument names all over.
7249 2004-04-20 Michael Koch <konqueror@gmx.de>
7251 * java/io/BufferedWriter.java,
7252 java/io/ByteArrayInputStream.java,
7253 java/io/CharArrayWriter.java,
7254 java/io/DataInput.java,
7255 java/io/DataInputStream.java,
7257 java/io/FilterInputStream.java,
7258 java/io/InputStream.java,
7259 java/io/InputStreamReader.java,
7260 java/io/ObjectInputStream.java,
7261 java/io/ObjectStreamClass.java,
7262 java/io/PipedInputStream.java,
7263 java/io/PipedReader.java,
7264 java/io/PushbackInputStream.java,
7265 java/io/PushbackReader.java,
7266 java/io/RandomAccessFile.java,
7267 java/io/SerializablePermission.java,
7268 java/io/StreamTokenizer.java,
7269 java/io/StringWriter.java,
7270 java/io/WriteAbortedException.java,
7271 java/io/Writer.java:
7272 Fixed javadocs all over, rename arguments to match javadocs,
7275 2004-04-20 Ingo Proetel <proetel@aicas.com>
7277 * java/awt/FontMetrics.java:
7278 (charsWidth): fixed accumulation of total_width
7279 (getWidth): simple default implementation
7280 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7281 in Rectangle constructor.
7282 * java/awt/image/Raster.java (toString): Added method.
7283 * java/awt/image/SampleModel.java (<init>): Added error cause
7284 information to thrown exception.
7285 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7287 (setDataElements): New method.
7288 (setPixels): New method.
7289 (toString): New method.
7291 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7293 * java/awt/image/ComponentColorModel.java
7294 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7295 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7296 Mauve tests on this method. Improved documentation.
7298 2004-04-20 Michael Koch <konqueror@gmx.de>
7300 * javax/swing/JLayeredPane.java,
7301 javax/swing/plaf/BorderUIResource.java,
7302 javax/swing/plaf/ComponentUI.java,
7303 javax/swing/undo/CompoundEdit.java,
7304 javax/swing/undo/StateEdit.java:
7305 Fixed HTML tags in javadocs all over.
7307 2004-04-20 Michael Koch <konqueror@gmx.de>
7309 * javax/print/attribute/EnumSyntax.java
7310 (getOffset): Made protected.
7311 * javax/print/attribute/HashAttributeSet.java
7312 (HashAttributeSet): Likewise.
7313 * javax/print/attribute/ResolutionSyntax.java
7314 (getFeedResolution): Fixed typo in exception name.
7315 (getCrossFeedResolution): Likewise.
7316 * javax/print/attribute/SetOfIntegerSyntax.java
7317 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7318 * javax/print/attribute/TextSyntax.java
7319 (TextSyntax): Handle locale correctly.
7320 (hashCode): Calc better hashcode value.
7321 (equals): Fixed @return tag.
7322 (toString): New method.
7324 2004-04-20 Michael Koch <konqueror@gmx.de>
7326 * gnu/java/nio/FileLockImpl.java
7327 (static): Removed, not needed anymore.
7328 * gnu/java/nio/channels/FileChannelImpl.java
7329 (FileChannelImpl): Made final.
7330 (mode): Made private.
7331 (READ, WRITE, APPEND): Made public.
7332 (EXCL, SYNC, DSYNC): Likewise.
7333 (static): Load native JNI library, when needed.
7334 (length): Unused, removed.
7335 (available): Made public.
7336 (implPosition): Throws IOException.
7338 (implTruncate): Likewise.
7342 2004-04-20 Michael Koch <konqueror@gmx.de>
7344 * java/awt/AWTPermission.java,
7345 java/awt/Component.java,
7346 java/awt/ComponentOrientation.java,,
7347 java/awt/Dialog.java,
7348 java/awt/FontMetrics.java,
7349 java/awt/Graphics.java,
7350 java/awt/datatransfer/DataFlavor.java,
7351 java/beans/Introspector.java,
7352 java/beans/PropertyEditor.java,
7353 java/beans/PropertyEditorManager.java,
7354 java/beans/beancontext/BeanContextServiceProvider.java:
7355 Fixed HTML tags in javadocs all over.
7357 2004-04-20 Mark Wielaard <mark@klomp.org>
7359 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7360 MissingResourceException is thrown.
7361 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7362 null when a MissingResourceException is thrown. Should never happen.
7364 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7366 * java/awt/image/DataBufferShort.java,
7367 java/awt/image/DataBufferFloat.java,
7368 java/awt/image/DataBufferDouble.java,
7369 java/awt/image/PixelInterleavedSampleModel.java: New files.
7370 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7371 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7373 2004-04-20 Michael Koch <konqueror@gmx.de>
7375 * Makefile.am (java_source_files): Added
7376 java/awt/image/DataBufferDouble.java,
7377 java/awt/image/DataBufferFloat.java,
7378 java/awt/image/DataBufferShort.java and
7379 java/awt/image/PixelInterleavedSampleModel.java.
7380 * Makefile.in: Regenerated.
7382 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7384 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7385 undocumented CNI calls.
7386 * include/java-interp.h (_Jv_InterpClass): No longer
7387 extends java.lang.Class.
7388 * java/lang/Class.h (Class): Add new field `aux_info'.
7389 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7390 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7391 Use Class->aux_info instead.
7392 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7393 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7394 Use Class->aux_info instead.
7395 * java/io/natObjectInputStream.cc (allocateObject): Use
7397 * java/lang/natClass.cc (newInstance): Likewise.
7398 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7399 * java/lang/natObject.cc (clone): Likewise.
7400 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7401 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7402 JvAllocObject. Allocate klass->aux_info here for interpreted
7405 2004-04-17 Mark Wielaard <mark@klomp.org>
7407 * javax/swing/JToggleButton.java (ToggleButtonModel):
7408 Make public static inner class.
7409 * javax/swing/JTabbedPane.java (setComponentAt):
7410 Call Page.setComponent().
7411 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7412 (WRAP_TAB_LAYOUT): Make public, value is 0.
7413 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7414 Make private static inner class.
7416 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7418 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7419 arguments to match new signature. Remove FIXME comments.
7421 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7423 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7425 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7428 2004-04-02 Olga Rodimina <rodimina@redhat.com>
7430 * Makefile.am: Added new file.
7431 * Makefile.in: Regenerate.
7432 * javax/swing/ImageIcon.java:
7433 (ImageIcon(file)): set description of the icon
7435 * javax/swing/JCheckBoxMenuItem.java:
7436 Mostly Implemented. Work in progress.
7437 * javax/swing/JRadioButtonMenuItem.java:
7438 Reimplement constructors to use JToggleButtonModel.
7439 * javax/swing/plaf/basic/BasicIconFactory.java:
7440 (getCheckBoxMenuItemIcon): return check box
7442 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7443 paint menu item selected only when it is armed and
7446 2004-04-02 David Jee <djee@redhat.com>
7448 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7449 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7450 * java/awt/Component.java
7451 (add): Set the parent of the popup as this component.
7452 * java/awt/PopupMenu.java
7453 (addNotify): Create popup menu when peer is null.
7454 (show): Call addNotify() if peer is null.
7455 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7456 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7457 argument for gtk_menu_popup() as zero. This causes the popup menu to
7458 respond to any mouse button.
7460 2004-03-31 Olga Rodimina <rodimina@redhat.com>
7462 * Makefile.am: Added new file.
7463 * Makefile.in: Regenerate.
7464 * javax/swing/JRadioButtonMenuItem.java:
7466 * javax/swing/plaf/basic/BasicIconFactory.java:
7467 (getRadioButtonMenuItemIcon): Return
7469 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7470 (getPreferredSize): Add size of checkIcon if it
7472 (installDefaults): Don't initialize checkIcon.
7473 It's value will be set in subclasses.
7474 (uninstallDefaults): remove uninstallation of
7476 (paint): Moved code to paintMenuItem().
7477 (paintMenuItem): Implemented.
7478 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7479 UI delegate for JRadioButtonMenuItem.
7481 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7483 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7484 Corrected position of the accelerator.
7486 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7488 * Makefile.am: Added new file.
7489 * Makefile.in: Regenerate.
7490 * javax/swing/JMenuItem.java: Partly
7491 implemented. Work in progress
7492 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7493 Changed default value of acceleratorDelimiter.
7494 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7495 New class. Partly implemented.
7497 2004-03-26 Mark Wielaard <mark@klomp.org>
7499 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
7500 (item_activate): Declare label before use.
7501 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7502 (gtkSetFont): Removed unused variable label.
7503 (addExposeFilter): Declare variables before use.
7504 (removeExposeFilter): Likewise.
7505 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
7506 (ok_clicked): Declare str_fileName before use.
7508 2004-03-26 David Jee <djee@redhat.com>
7510 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
7511 (addSeparator): Remove.
7512 * java/awt/Menu.java
7513 (separator): Remove static final MenuItem field.
7514 (separatorLabel): New static final String field.
7515 (addSeparator): Do not use peer method; use add(MenuItem) instead.
7516 Use separatorLabel to denote that it is a separator.
7517 (insertSeparator): Create a new MenuItem with separatorLabel, instead
7518 of reusing the static separator instance, because a MenuItem instance
7519 can't be added more than once without being cloned.
7520 * java/awt/peer/MenuPeer.java
7521 (addSeparator): Remove from interface.
7523 2004-03-26 David Jee <djee@redhat.com>
7525 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7526 (connectSignals): New native method declaration.
7527 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
7528 * java/awt/MenuItem.java
7529 (getActionCommand): Return the label if the action command is not set.
7530 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
7531 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
7532 gtk_menu_shell_append().
7533 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
7534 (item_activate): Fix argument type.
7535 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
7537 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
7539 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7540 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
7541 given. Add the menu widget's top-level GtkWindow to the global window
7542 group, so it can grab the pointer.
7543 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
7544 gtk_menu_shell_append().
7546 2004-03-23 Graydon Hoare <graydon@redhat.com>
7548 * java/text/AttributedString.java
7549 (addAttribute): Fix off-by-one.
7550 (getIterator): Likewise.
7551 * java/text/AttributedStringIterator.java
7552 (getRunLimit): Correct logic.
7553 (getRunStart): Likewise.
7554 (getAttribute): Fix inequality.
7555 (getAttributes): Likewise.
7556 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
7558 2004-03-23 Kim Ho <kho@redhat.com>
7560 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7561 (calculateSizes): Return real width and height.
7563 2004-03-23 Kim Ho <kho@redhat.com>
7565 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
7566 (calculateTabRects): Set the selectedRun before
7567 trying to rotate tabs.
7569 2004-03-23 Kim Ho <kho@redhat.com>
7571 * Makefile.am: New file
7572 * Makefile.in: Regenerate
7573 * java/awt/Graphics.java: (drawRect):
7574 Draw to the correct point.
7575 * javax/swing/DefaultSingleSelectionModel.java
7576 (isSelected): Return true if the selected index
7578 * javax/swing/JLabel.java: Do not change mnemonic
7579 index if text is null.
7580 * javax/swing/JProgressBar.java: Use JComponent's
7582 * javax/swing/JScrollBar.java: Ditto.
7583 * javax/swing/JSlider.java: Ditto.
7584 * javax/swing/JTabbedPane.java: Reimplement.
7585 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7586 Add defaults for TabbedPane.
7587 * javax/swing/plaf/basic/BasicArrowButton.java:
7589 * javax/swing/plaf/basic/BasicProgressBarUI.java:
7590 (paintDeterminate): Don't paint String if it's
7592 (paintIndeterminate): ditto.
7593 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7596 2004-03-19 Michael Koch <konqueror@gmx.de>
7598 * java/awt/image/AffineTransformOp.java
7599 (AffineTransformOp): Made public.
7600 * javax/swing/JComponent.java
7601 (listenerList): Made protected.
7602 (accessibleContext): Likewise.
7603 * javax/swing/JList.java
7604 (valueChanged): Dont use internal fields of ListSelectionEvent.
7605 * javax/swing/JViewport.java
7606 (getView): Dont use internal fields of Component.
7607 (addImpl): Likewise.
7608 * javax/swing/Timer.java
7609 (isRunning): Made public.
7612 * javax/swing/UIDefaults.java
7613 (getInt): Made public.
7614 * javax/swing/plaf/basic/BasicListUI.java
7615 (mousePressed): Dont use internal fields of MouseEvent.
7616 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7617 * javax/swing/plaf/basic/BasicScrollBarUI.java
7618 (arrowIcon): Made static.
7619 * javax/swing/plaf/basic/BasicViewportUI.java
7620 (stateChanged): Dont use internal field on ChangeEvent.
7621 * javax/swing/text/JTextComponent.java
7622 (getUI): Call UIManager.getUI().
7623 (updateUI): Use getUI().
7625 2004-03-19 Graydon Hoare <graydon@redhat.com>
7627 * javax/swing/JComponent.java: Turn off double buffer by default.
7628 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
7629 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
7630 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
7631 Use cairo to copy areas.
7632 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
7633 Initialize and set clip region.
7635 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
7637 * java/applet/Applet.java (preferredSize): Override deprecated
7638 variant of getPreferredSize.
7639 (minimumSize): Override deprecated variant of getMinimumSize.
7641 2004-03-15 Olga Rodimina <rodimina@redhat.com>
7643 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
7644 (drawImage(img,xform,bgcolor,obs)): New Method.
7645 Helper function that every drawImage method will
7647 (drawRaster): Added new parameter, bgcolor. All
7648 transparent pixels are changed to bgcolor before
7650 (drawRenderedImage): Fixed to use changed drawRaster().
7651 (drawImage(image,xform,obs): Fixed to use new helper function
7652 (drawImage(image,op,x,y)): Ditto.
7653 (drawImage (img,x,y,observer)): Ditto.
7654 ((PainterThread) bgcolor): New Field.
7655 ((PainterThread) (setPixels)): Changed all transparent pixels
7657 (drawImage(img,x,y,width,height,bgcolor,observer)):
7658 Fixed FIXME - all the transparent pixels are
7659 changed to the specified bgcolor.
7660 (drawImage(img, x, y, width, height, observer): Changed to
7662 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
7663 Fixed FIXME- changed all transparent pixels to bgcolor.
7664 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
7665 Changed to use function above.
7667 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
7669 * java/applet/Applet.java (dimensions): New field.
7670 (getDimensions): New method.
7671 (getPreferredSize): Call getDimensions.
7672 (getMinimumSize): Likewise.
7674 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
7676 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
7677 * jni/classpath/jnilink.c: Likewise.
7679 * java/applet/Applet.java (getPreferredSize): New method.
7680 (getMinimumSize): New method.
7682 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
7684 * prims.cc (_Jv_AllocObject): Remove `size' argument.
7685 (_Jv_AllocObjectNoFinalizer): Likewise.
7686 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
7687 (_Jv_AllocPtrFreeObject): Likewise.
7688 (_Jv_AllocString): Moved from natString.cc. Call collector interface
7689 directly even in the JVMPI case.
7690 * gcj/cni.h (JvAllocObject): Remove `size' argument from
7691 _Jv_AllocObject calls.
7692 * gcj/javaprims.h: Update prototypes.
7693 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
7694 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
7695 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
7697 2004-04-14 Andrew Haley <aph@redhat.com>
7698 Bryce McKinlay <mckinlay@redhat.com>
7700 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
7701 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
7702 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
7704 * testsuite/libjava.lang/InvokeInterface.java: New file.
7705 * testsuite/libjava.lang/InvokeInterface.out: New file.
7707 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
7709 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
7711 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
7712 StackTraceElement directly.
7713 (newElement): New native helper method to create StackTraceElement
7714 bypassing Java access control.
7715 (createStackTraceElement): Use newElement() instead of directly
7716 calling StackTraceElement's constructor.
7717 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
7719 2004-04-01 Michael Koch <konqueror@gmx.de>
7721 * java/lang/SecurityManager.java
7722 (checkAwtEventQueueAccess): Implemented.
7724 2004-04-01 Gary Benson <gbenson@redhat.com>
7726 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
7727 (_Jv_SearchMethodInClass): Likewise.
7729 2004-03-26 Peter Moon <peterm@miraculum.com>
7731 * java/text/NumberFormat.java: Fix spelling of setCurrency
7734 2004-03-21 Anthony Green <green@redhat.com>
7736 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
7737 recursion when searching for the system ClassLoader.
7739 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
7741 * java/net/ServerSocket.java
7742 (accept): Close the socket when error occured.
7744 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
7746 * java/net/URI.java (parseURI): Added unquoting.
7747 (unquote): New method.
7748 (quoteAuthority): Implemented.
7749 (quote(String,String)): New method.
7750 (quotePath): Implemented.
7751 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
7752 (getSchemeSpecificPart): Removed FIXME comment.
7753 (getRawAuthority): Return new rawAuthority field.
7754 (getAuthority): Removed FIXME comment.
7755 (getRawUserInfo): Return new rawUserInfo field.
7756 (getUserInfo): Removed FIXME comment.
7757 (getRawPath): Return new rawPath field.
7758 (getPath): Removed FIXME comment.
7759 (getRawQuery): Return new rawQuery field.
7760 (getQuery): Removed FIXME comment.
7761 (getRawFragment): Return new rawFragment field.
7762 (getFragment): Removed FIXME comment.
7764 2004-03-20 Michael Koch <konqueror@gmx.de>
7766 * java/net/URLConnection.java: Merged copyright year with classpath.
7768 2004-03-20 Norbert Frese <postfach@nfrese.net>
7770 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
7771 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
7772 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
7774 (getObjectInputStream): Return object reference, throw IOException if null.
7775 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
7776 (getObjectOutputStream): Return object reference, throw IOException if null.
7777 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
7778 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
7779 (UnicastConnectionManager): Throw RemoteException if port is not available.
7780 (getInstance): Throw RemoteException.
7781 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
7782 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
7783 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
7784 Collect Exceptions which are returned by a rmi-call and fix void returns.
7785 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
7786 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
7787 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
7788 (dispatch): Answer ping messages which are sent by other java implementions.
7789 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
7790 for every rmi-message and fix void return problems.
7791 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
7792 (UnicastServerRef): Throw RemoteException.
7793 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
7794 In some situations it is necessary to export a subclass of the class which has the _Stub.
7795 For instance when the class with has the _Stub is abstract.
7796 (findStubSkelClass): New method which looks for the class which has the _Stub.
7797 (getClientHost): Implementated.
7798 * gcc/libjava/java/rmi/server/RemoteServer.java
7799 (getClientHost): Implementated.
7800 * gcc/libjava/Makefile.am (rmi_java_source_files):
7801 Added gnu/java/rmi/server/RMIIncomingThread.java.
7802 * Makefile.in: Regenerated.
7804 2004-03-20 Michael Koch <konqueror@gmx.de>
7806 * java/net/InetAddress.java
7807 (getLocalHostname): Added javadoc.
7809 2004-03-19 Per Bothner <per@bothner.com>
7811 * configure.in: FILE variable overrides FLATFORM when linking
7812 natFileChannelXXX.cc.
7814 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
7815 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
7817 2004-03-19 Per Bothner <per@bothner.com>
7819 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
7820 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
7821 * Makefile.am: Update accordingly.
7822 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
7823 as aliases for UnicodeLittle and UnicodeBig.
7825 2004-03-20 Mark Wielaard <mark@klomp.org>
7827 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
7828 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
7829 Don't access ws when it is null.
7830 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
7833 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
7835 * java/lang/ThreadGroup.java (list): Changed print to println.
7837 2004-03-19 Mark Wielaard <mark@klomp.org>
7839 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
7842 2004-02-10 Randolph Chung <tausq@debian.org>
7844 * configure.in: Build java for hppa target.
7845 * configure: Regenerate.
7846 * libjava/configure.host (hppa-*): Add target.
7847 * libjava/sysdeps/pa/lock.h: New file.
7849 2004-03-19 Mark Wielaard <mark@klomp.org>
7851 Reported by Stephen Crawley
7852 * java/io/FilePermission.java (implies): Use String.length() -1 to
7853 access last char of String.
7855 2004-03-19 Michael Koch <konqueror@gmx.de>
7857 * java/awt/image/AffineTransformOp.java
7858 (AffineTransformOp): Made public.
7859 * javax/swing/JComponent.java
7860 (listenerList): Made protected.
7861 (accessibleContext): Likewise.
7862 * javax/swing/JList.java
7863 (valueChanged): Dont use internal fields of ListSelectionEvent.
7864 * javax/swing/JViewport.java
7865 (getView): Dont use internal fields of Component.
7866 (addImpl): Likewise.
7867 * javax/swing/Timer.java
7868 (isRunning): Made public.
7871 * javax/swing/UIDefaults.java
7872 (getInt): Made public.
7873 * javax/swing/plaf/basic/BasicListUI.java
7874 (mousePressed): Dont use internal fields of MouseEvent.
7875 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7876 * javax/swing/plaf/basic/BasicScrollBarUI.java
7877 (arrowIcon): Made static.
7878 * javax/swing/plaf/basic/BasicViewportUI.java
7879 (stateChanged): Dont use internal field on ChangeEvent.
7880 * javax/swing/text/JTextComponent.java
7881 (getUI): Call UIManager.getUI().
7882 (updateUI): Use getUI().
7884 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7886 * verify.cc: Undef PC.
7888 2004-03-18 Michael Koch <konqueror@gmx.de>
7890 * java/nio/channels/spi/AbstractSelectableChannel.java
7891 (keys): Initialize at declaration.
7892 (locate): keys cant be null.
7894 (addSelectionKey): New method.
7895 (removeSelectionKey): New method.
7896 * java/nio/channels/spi/AbstractSelectionKey.java
7897 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
7898 * java/nio/channels/spi/AbstractSelector.java
7899 (provider): Javadoc added.
7900 (cancelledKeys): Javadoc added.
7901 (cancelKey): Javadoc added, add key to cancelledKeys.
7902 (deregister): Implemented.
7904 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7906 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
7907 MAP_FAILED to void *.
7909 2004-03-12 Graydon Hoare <graydon@redhat.com>
7911 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
7912 * javax/swing/JComponent.java (paint): Use persistent double buffer.
7913 * javax/swing/JList.java (ListListener): Revalidate on changes.
7914 * javax/swing/JScrollPane.java: Reimplement.
7915 * javax/swing/JViewport.java: Reimplement.
7916 * javax/swing/ScrollPaneLayout.java: Reimplement.
7917 * javax/swing/ViewportLayout.java: Tidy up.
7918 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
7919 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
7920 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
7921 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
7924 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
7926 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7927 (window_wm_protocols_filter): New function.
7928 (window_focus_in_cb): Remove function.
7929 (window_focus_out_cb): Likewise.
7930 (window_focus_or_active_state_change_cb): New function.
7931 (create): Add filter that removes WM_TAKE_FOCUS client messages.
7932 (connectSignals): Don't attach handlers to focus-in-event or
7933 focus-out-event signals. Handle notify signal.
7935 2004-03-11 David Jee <djee@redhat.com>
7937 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
7938 (gtkSetLabel): New native method declaration.
7939 (setLabel): Use gtkSetLabel.
7940 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
7941 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
7943 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
7945 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
7946 black when color argument is null.
7948 2004-03-10 Kim Ho <kho@redhat.com>
7950 * java/awt/Container.java: Remove check
7953 2004-03-10 Kim Ho <kho@redhat.com>
7955 * java/awt/Container.java: (visitChild):
7956 Remove candidate clip. Use the component
7958 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
7959 (handleEvent): Use the PaintEvent's clip.
7961 2004-03-10 Kim Ho <kho@redhat.com>
7963 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
7964 (handleEvent): Don't set the clip for the
7967 2004-03-09 Graydon Hoare <graydon@redhat.com>
7969 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
7970 Fix double <-> fixed macros, reset font transform.
7971 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
7974 2004-03-09Â Kim Ho <kho@redhat.com>
7976 * java/awt/Container.java: (visitChild): Move
7977 the x and y coordinate of the component rectangle
7978 to correct position.
7979 (handleEvent): Forward drag events to the pressed
7981 * javax/swing/plaf/basic/BasicScrollBarUI.java:
7983 (ArrowButtonListener::mousePressed): Stop the
7985 (mouseDragged): Implement.
7986 (TrackListener::mousePressed): Only react if
7987 the press doesn't occur on the thumb, otherwise
7988 just set the offset.
7989 (TrackListener::mouseReleased): Unset the isAdjusting
7991 (createIncreaseIcon): Switch icon.
7992 (createDecreaseIcon): Switch icon.
7993 (calculatePreferredSize): Use width.
7994 (getThumbBounds): Use the top as the lower value.
7995 (layoutVScrollBar): Switch the button locations.
7996 (paintIncreaseHighlight): Paint correct side of thumb.
7997 (paintDecreaseHighlight): ditto.
7998 (valueForYPosition): Use top as the lower value.
7999 * javax/swing/plaf/basic/BasicSliderUI.java:
8001 (mouseDragged): Implement.
8002 (mousePressed): Only react when the thumb isn't
8003 pressed, otherwise just set offset.
8004 (mouseReleased): Handle a release of the thumb.
8005 (scrollDueToClickInTrack): Stop the timer first.
8006 * javax/swing/JProgressBar.java:
8007 (setString): Fix change condition.
8008 * javax/swing/JSeparator.java:
8011 2004-03-08 David Jee <djee@redhat.com>
8013 * java/awt/image/AffineTransformOp.java:
8014 (filter): Use Graphics2D interface instead of directly using the
8017 2004-03-05 David Jee <djee@redhat.com>
8019 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8020 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8021 * java/awt/Container.java
8022 (acquireComponentForMouseEvent): Fixed.
8023 (handleEvent): Fixed.
8024 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8025 (state_to_awt_mods_with_button_states): New method.
8026 (pre_event_handler): Fixed mouse event generation.
8028 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8030 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8031 (GdkGraphics2D (BufferedImage)): Initialize
8032 pixmap associated with specified BufferedImage.
8033 (setPaint): Changed implementation of Texture
8034 Paint to use AffineTransformOp.
8035 * java/awt/image/AffineTransformOp.java
8036 (createCompatibleDestRaster): Throw RasterFormatException
8037 if resulting width or height of raster is 0.
8039 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8041 * java/awt/image/AffineTransformOp.java:
8042 Removed unnecessary field interpolationType.
8043 Formatted some of the lines to be consistent with
8045 (AffineTransformOp): Create new RenderingHints
8046 containing specified interpolation type.
8047 (createCompatibleDestImage): Implemented.
8048 (createCompatibleDestRaster): Implemented.
8049 (filter): Implemented.
8050 (getBounds2D(BufferedImage)): Implemented.
8051 (getBounds2D(Raster)): Implemented.
8052 (getInterpolationType): Get interpolation value from
8055 2004-03-04 David Jee <djee@redhat.com>
8057 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8058 (setFont): Check if child peers are null.
8060 2004-03-04 Graydon Hoare <graydon@redhat.com>
8062 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8064 (libjava_arguments): Add new libraries to argument list.
8066 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8068 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8069 * Makefile.in: Re-generated.
8070 * java/awt/image/AffineTransformOp.java: New Class.
8072 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8074 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8075 (setPaint): Interpret correctly TexturePaint's
8077 (drawImage): Fixed scale factors of the affine
8080 2004-02-27 David Jee <djee@redhat.com>
8082 * gnu/java/awt/peer/gtk/GdkGraphics.java
8083 (GdkGraphics(Component)): Inherit font from component.
8084 (drawString): Use font style.
8085 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8086 (gtkSetFont): New native method declaration.
8087 (setFont): New method.
8088 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8089 (gtkSetFont): New native method declaration.
8090 (setFont): Call new native method gtkSetFont.
8091 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8092 (setFont): For all child components who do not their fonts set,
8093 set their peers' fonts with this container's font.
8094 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8095 Move all native method declarations to the top for readability.
8096 (gtkSetFont): New native method declaration.
8097 (setFont): New method.
8098 * java/awt/Component.java
8099 (setFont): Invalidate after setting the font.
8100 * java/awt/Container.java
8101 (invalidateTree): New method.
8102 (setFont): Invalidate the container tree after setting the font.
8103 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8104 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8105 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8106 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8107 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8108 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8109 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8110 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8112 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8114 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8115 (updateBufferedImage): New helper function.
8116 Updates BufferedImage in memory if it was changed.
8117 (draw): changed to update BufferedImage in memory after
8118 this drawing operation
8120 (draw3DRect): Ditto.
8121 (fill3DRect): Ditto.
8123 (drawRaster): Ditto.
8124 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8125 no affine transformation.
8126 (drawGlyphVector): Ditto.
8128 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8130 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8131 (isBufferedImageGraphics): New Helper function.
8132 Returns true if this graphics2d can be used to draw
8133 into buffered image and false otherwise.
8134 (updateImagePixels): New Helper function.
8135 Updates pixels in the BufferedImage.
8136 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8137 (getImagePixels): New function. Returns pixels
8138 of the buffered image associated with
8141 2004-02-26 David Jee <djee@redhat.com>
8143 * java/awt/BorderLayout.java
8144 (layoutContainer): Fix width and height calculations to ensure
8145 that they're non-negative.
8146 * java/awt/Component.java
8147 (setBackground): If c is null, inherit from closest ancestor whose
8148 background color is set.
8150 2004-02-26 Kim Ho <kho@redhat.com>
8152 * Makefile.am: Add new files.
8153 * Makefile.in: Re-generate.
8154 * javax/swing/JProgressBar.java:
8155 (JProgressBar(int, int int)): Throw
8156 IllegalArgumentException if orientation is
8158 (JProgressBar(BoundedRangeModel)): Create
8159 ChangeListener and register it. UpdateUI.
8160 (getChangeListeners): Implement.
8161 (setModel): Reset ChangeListener.
8162 * javax/swing/JScrollBar.java: Implement.
8163 * javax/swing/JSeparator.java: Implement.
8164 * javax/swing/JSlider.java:
8165 (JSlider(int, int, int, int)): Throw
8166 IllegalArgumentException if orientation
8168 (getChangeListeners): Fix method name.
8169 * javax/swing/SwingUtilities.java:
8170 (layoutCompoundLabel): If there is no text,
8171 set the text rectangle dimensions to 0.
8172 * javax/swing/plaf/basic/BasicButtonUI.java:
8173 (paint): If there is no text, don't paint it.
8174 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8176 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8178 * javax/swing/plaf/basic/BasicSliderUI.java:
8179 (propertyChange): If the model changes, change
8180 the listeners accordingly.
8182 2004-02-25 Graydon Hoare <graydon@redhat.com>
8184 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8185 * javax/swing/JList.java: Reimplement.
8186 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8187 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8188 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8189 * javax/swing/ListModel.java: Javadoc.
8190 * javax/swing/ListSelectionModel.java: Add missing methods.
8191 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8192 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8193 * javax/swing/ListModel.java: Javadoc and corrections.
8194 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8196 2004-02-25 David Jee <djee@redhat.com>
8198 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8199 (GtkFontPeer): Change default size to 12.
8200 * gnu/java/awt/peer/gtk/GtkToolkit.java
8201 (getFontPeer): Change default size to 12.
8202 (getClasspathFontPeer): Likewise. Set default name to "Default".
8203 * java/awt/Font.java
8204 (Font(Map)): Call Font(String,Map).
8205 (Font(String,Map)): If attrs is null, initialize it as an empty
8206 HashMap, which will ensure that the Font will get default attributes.
8208 2004-02-25 David Jee <djee@redhat.com>
8210 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8211 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8212 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8213 * gnu/java/awt/peer/gtk/GtkToolkit.java
8214 (getFontPeer(String,int)): Call the new overload method with size 1.
8215 (getFontPeer(String,int,int)): New method. Overloaded with size
8217 (getClasspathFontPeer): Set the size of the font.
8219 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8221 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8222 (bimage): New field.
8223 (GdkGraphics2D): New Constructor. Constructs Graphics
8224 object that can be used to draw into the Buffered Image.
8225 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8226 (GdkGraphicsEnvironment): Fixed to include public
8228 (createGraphics): Implemented.
8229 * gnu/java/awt/peer/gtk/GtkToolkit.java
8230 (getLocalGraphicsEnvironment): Implemented.
8231 * java/awt/GraphicsEnvironment.java:
8232 (getLocalGraphicsEnvironment): Implemented.
8233 * java/awt/image/BufferedImage.java:
8234 (createGraphics): Implemented.
8236 2004-02-24 David Jee <djee@redhat.com>
8238 * java/awt/Component.java
8239 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8240 * java/awt/Container.java
8241 (addNotifyContainerChildren): Fix event enabling.
8243 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8245 * Makefile.am: Added
8246 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8247 * Makefile.in: Re-generated.
8248 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8251 2004-02-19 Kim Ho <kho@redhat.com>
8253 * Makefile.am: Add BasicProgressBarUI
8254 * Makefile.in: Regenerate.
8255 * javax/swing/JProgressBar.java:
8257 * javax/swing/plaf/basic/BasicLookAndFeel.java
8258 Add constants for JProgressBar.
8259 * javax/swing/plaf/basic/BasicProgressBarUI.java
8261 * javax/swing/plaf/basic/BasicSliderUI.java
8263 (calculateGeometry): New method
8264 (paint): Remove unnecessary size calculations.
8266 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8268 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8269 (drawRaster): Fixed small error that caused
8270 imageToUser transformation to be set incorrectly.
8271 (toString): Implemented.
8273 2004-02-18 David Jee <djee@redhat.com>
8275 * java/awt/CardLayout.java
8276 (addLayoutComponent): Show the first component added as the default.
8277 (removeLayoutComponent): After removing, show the next component.
8278 (gotoComponent): If there is only one component, show it and return.
8280 2004-02-18 Kim Ho <kho@redhat.com>
8282 * javax/swing/JSlider.java: Re-order
8284 * javax/swing/JLabel.java: Re-order
8286 * javax/swing/JComponent.java:
8287 (addPropertyChangeListener):
8289 (removePropertyChangeListener):
8291 (firePropertyChangeEvent):
8294 2004-02-17 David Jee <djee@redhat.com>
8296 * java/awt/Component.java
8297 (show): Dispatch ComponentEvent via system event queue.
8301 (reshape): Likewise.
8302 * java/awt/Window.java
8303 (setBoundsCallback): Likewise.
8305 2004-02-17 David Jee <djee@redhat.com>
8307 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8308 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8309 Use gtk_widget_set_size_request() instead of the deprecated
8310 gtk_widget_set_usize().
8312 2004-02-17 Kim Ho <kho@redhat.com>
8314 * javax/swing/JSlider.java: Fix comments and
8315 make property strings constants.
8316 (createStandardLabels): Use the labels
8317 preferred size as bounds.
8318 * javax/swing/plaf/basic/BasicSliderUI.java
8320 (ScrollHandler::actionPerformed): Don't
8321 calculate the timer stop value. Let the
8322 MouseListeners find the stop location.
8323 (getPreferredHorizontalSize): Re-implement.
8324 (getPreferredVerticalSize): ditto.
8325 (getMinimumHorizontalSize): ditto.
8326 (getMinimumVerticalSize): ditto.
8327 (getPreferredSize): ditto.
8328 (getMinimumSize): ditto.
8329 (getMaximumSize): ditto.
8330 (paintTicks): Use doubles to find the
8332 (paintHorizontalLabel):Â Use preferredSize
8333 as initial width and height.
8334 (paintVerticalLabel): ditto.
8336 2004-02-17 Kim Ho <kho@redhat.com>
8338 * javax/swing/JLabel.java: Changed
8339 property strings to constants.
8340 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8342 (setText): Change mnemonic index if
8344 (setDisplayedMnemonicIndex): Fire property
8346 (getDisplayedMnemonicIndex): Remove check
8349 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8351 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8352 (drawImage(img,xform,obs)): Invert xform before
8353 passing the xform to cairo.
8354 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8355 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8357 (drawImage (img,x,y,w,h,obs)): Implemented.
8358 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8359 bgcolor,obs)): Partly implemented.
8360 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8362 * java/awt/image/BufferedImage.java:
8363 (copyData): if dest is null, create raster with same
8364 dimensions as the current image.
8366 2004-02-16 Graydon Hoare <graydon@redhat.com>
8368 * javax/swing/plaf/basic/BasicLabelUI.java
8369 (getPreferredSize): Use layoutCL.
8370 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8371 (getPreferredButtonSize): Start with empty view rect, layout using
8372 component's preferred alignment.
8373 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8376 2004-02-16 David Jee <djee@redhat.com>
8378 * java/awt/Component.java
8379 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8380 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8381 (move): Erase old bounds and repaint new bounds. Dispatch
8382 COMPONENT_MOVED ComponentEvent.
8383 (resize): Erase old bounds and repaint new bounds. Dispatch
8384 COMPONENT_RESIZED ComponentEvent.
8385 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8387 * java/awt/Window.java
8388 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8391 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8393 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8394 (setRenderingHint): Added implementation of
8395 Interpolation rendering hints.
8396 (setRenderingHints): Ditto.
8397 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8398 (drawPixels): fixed to allow user to choose type
8399 of filtering that should be used when displaying images.
8400 (cairoSurfaceSetFilter): New method. Sets filter type for
8401 interpolation of pixel values.
8403 2004-02-16 David Jee <djee@redhat.com>
8405 * java/awt/GridBagLayout.java
8406 (calcCellSizes): Rows or columns with zero sizes should still be
8407 considered for extra space distribution.
8409 2004-02-16 Kim Ho <kho@redhat.com>
8411 * javax/swing/JLabel.java: Re-implement.
8412 * javax/swing/plaf/basic/BasicLabelUI.java
8414 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8417 2004-02-16 Kim Ho <kho@redhat.com>
8419 * javax/swing/JSlider.java: Fix indentation and comments.
8420 (setModel): Remove null check to conform with Sun's.
8421 (setOrientation): Throw exception if not
8422 HORIZONTAL or VERTICAL.
8423 (getInverted): Use private variable instead of
8424 ComponentOrientation.
8425 (setInverted): ditto.
8426 * javax/swing/plaf/basic/BasicSliderUI.java:
8427 Fix indentation and comments.
8428 (propertyChange): Remove check for inverted slider, handle
8430 (getMinimumSize): Return preferred size.
8431 (getMaximumSize): ditto.
8432 (calculateFocusRect): Don't relocate rectangle.
8433 (drawInverted): Return XOR of the slider's inversion and
8434 the component's orientation.
8435 (paint): Update leftToRightCache
8437 2004-02-13 David Jee <djee@redhat.com>
8439 * java/awt/GridBagLayout.java
8440 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
8441 code to helper methods.
8442 (sortBySpan): New helper method.
8443 (distributeSizeAndWeight): Likewise.
8444 (calcCellWeights): Likewise.
8445 (calcCellSizes): Add comments.
8447 2004-02-13 David Jee <djee@redhat.com>
8449 * java/awt/Component.java
8450 (show): Only do something if component is invisible at the moment.
8451 (hide): Only do something if component is visible at the moment.
8452 (reshape): If lightweight, erase old bounds and repaint new bounds.
8454 2004-02-13 Kim Ho <kho@redhat.com>
8456 * Makefile.am: Updated for new file.
8457 * Makefile.in: Regenerated.
8458 * javax/swing/JSlider.java: Reimplement.
8459 * javax/swing/SwingUtilities.java
8460 (layoutCompoundLabel): Use icon height
8462 (paintComponent): Implement.
8463 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8464 Add JSlider defaults.
8465 * javax/swing/plaf/basic/BasicSliderUI.java:
8466 Implement. New file.
8468 2004-03-17 Michael Koch <konqueror@gmx.de>
8470 * gnu/java/net/PlainDatagramSocketImpl.java
8471 (RECEIVE_LOCK): New member field.
8472 (SEND_LOCK): New member field.
8473 (send0): New method.
8474 (send): Synchronize on SEND_LOCK.
8475 (receive0): New method.
8476 (receive): Synchronize on RECEIVE_LOCK.
8477 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
8478 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
8479 gnu/java/net/natPlainDatagramSocketImplWin32.cc
8480 (send0): Renamed from send.
8481 (receive0): Renamed from receive.
8482 2004-03-17 Michael Koch <konqueror@gmx.de>
8484 * gnu/java/net/natPlainSocketImplPosix.cc
8485 (write): Just call write(jbyteArray, offset, len).
8486 (read): Just call read(jbyteArray, offset, len).
8488 2004-03-16 Michael Koch <konqueror@gmx.de>
8490 * javax/swing/JTabbedPane.java
8491 (serialVersionUID): New field.
8493 2004-03-16 Norbert Frese <postfach@nfrese.net>
8495 * java/net/InetAddress.java
8496 (getByName): Handle hostname == "" case.
8498 2004-03-16 Dalibor Topic <robilad@kaffe.org>
8500 Reported by: Adam Heath <doogie@debian.org>
8501 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
8504 2004-03-15 Michael Koch <konqueror@gmx.de>
8506 * java/util/Locale.java: Reverting my last patch
8507 and add a comment why the original version was okay.
8509 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
8511 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
8512 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
8513 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
8514 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
8516 2004-03-12 Michael Koch <konqueror@gmx.de>
8518 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
8520 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8522 * java/net/URI.java (toURL): Implemented.
8524 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8527 (URI_REGEXP) updated to contain scheme specific part.
8528 (SCHEME_SPEC_PART_GROUP) new constant.
8529 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
8530 updated to make room for SCHEME_SPEC_PART_GROUP.
8531 (parseURI) parse scheme specific part.
8532 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
8533 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
8534 getQuery, getFragment) implemented.
8536 2004-03-12 Dalibor Topic <robilad@kaffe.org>
8538 * libraries/javalib/java/net/URI.java
8539 partially implemented using java.util.regex.
8540 (URI_REGEXP) new constant. Used to parse URIs.
8541 (SCHEME_GROUP) new constant representing index of scheme group
8543 (AUTHORITY_GROUP) new constant representing index of authority
8544 group in parsed URI.
8545 (PATH_GROUP) new constant representing index of path group in
8547 (QUERY_GROUP) new constant representing index of query group in
8549 (FRAGMENT_GROUP) new constant representing index of fragment
8550 group in parsed URI.
8551 (getURIGroup) new static utility method.
8552 (parseURI) implemented.
8553 (quote) stub for new static utility method.
8554 (quoteAuthority) stub for new static utility method.
8555 (quoteHost) stub for new static utility method.
8556 (quotePath) stub for new static utility method.
8557 (quoteUserInfo) stub for new static utility method.
8559 (create) don't throw URISyntaxException. Implemented.
8560 (toString) implemented.
8562 2004-03-12 Michael Koch <konqueror@gmx.de>
8564 * java/net/HttpURLConnection.java
8565 (getResponseCode): Fix another typo in javadoc.
8567 2004-03-11 Michael Koch <konqueror@gmx.de>
8569 * java/util/logging/Level.java
8570 (parse): Use String.equals() instead of ==.
8572 2004-03-11 Michael Koch <konqueror@gmx.de>
8574 * gnu/java/net/protocol/jar/Connection.java
8575 (getContentLength): New method.
8577 2004-03-11 Michael Koch <konqueror@gmx.de>
8579 * gnu/java/net/PlainSocketImpl.java:
8580 Reformated to merge better with classpath's version.
8582 2004-03-11 Michael Koch <konqueror@gmx.de>
8584 * java/util/Locale.java
8585 (getISO3Language): Use String.equals() instead of ==.
8586 (getISO3Country): Likewise.
8588 2004-03-11 Dalibor Topic <robilad@kaffe.org>
8590 * java/text/AttributedString.java
8591 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
8592 Use HashMap instead of Hashtable since value can be null, and
8593 you can not store a null value in a Hashtable.
8595 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8597 * java/text/AttributedStringIterator.java
8598 (getAllAttributesKey): Return only keys concerned
8599 by the current iterator.
8600 (getAttributes): Use strict inequality for
8603 2004-03-11 Michael Koch <konqueror@gmx.de>
8605 * java/net/HttpURLConnection.java:
8606 Fixed typo in javadoc.
8608 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8610 * java/io/BufferedInputStream.java (marktarget): New field for max
8612 (CHUNKSIZE): New constant for incremental mark buffer allocation.
8613 (mark): Use new fields.
8615 (read(byte[],int,int)): Likewise.
8619 2004-03-11 Mark Wielaard <mark@klomp.org>
8621 * java/beans/BeanDescriptor.java (BeanDescriptor):
8622 Set the FeatureDescriptor programmatic name.
8624 2004-03-11 Michael Koch <konqueror@gmx.de>
8626 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
8627 This file was was just copied form java/io/natFileDescriptorEcos.cc
8628 and never changed to compile correctly.
8630 2004-03-11 Michael Koch <konqueror@gmx.de>
8632 * gnu/java/nio/PipeImpl.java
8633 (SourceChannelImpl): Made final.
8634 (read): Implemented.
8635 (SinkChannelImpl): Made final.
8636 (write): Implemented.
8638 2004-03-11 Michael Koch <konqueror@gmx.de>
8640 * gnu/java/net/PlainDatagramSocketImpl.java:
8641 Reformated to match classpath's version more.
8643 2004-03-11 Michael Koch <konqueror@gmx.de>
8645 * gnu/java/awt/peer/ClasspathFontPeer.java:
8646 Fixed javadoc to be correct xhtml.
8647 * gnu/java/awt/peer/gtk/GtkArgList.java
8648 (add): Use Boolean.valueOf() instead of new Boolean().
8650 2004-03-09 Michael Koch <konqueror@gmx.de>
8652 * java/lang/Thread.java
8653 (runnable): Moved around.
8654 (daemon): Renamed from daemon_flag.
8655 (contextClassLoader): Renamed from context_class_loader.
8656 (Thread): Reordered constructors.
8657 (activeCount): Use group directly.
8658 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
8659 (holdsLock): Reworked javadoc.
8660 (setDaemon): Reworked.
8661 * java/lang/natThread.cc
8664 2004-03-08 Anthony Green <green@redhat.com>
8666 * Makefile.am: Build property resource files into libgcj.
8667 * Makefile.in: Rebuilt.
8668 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
8669 java/util/regex/PatternSyntaxException.java,
8670 gnu/regexp/CharIndexed.java,
8671 gnu/regexp/CharIndexedCharArray.java,
8672 gnu/regexp/CharIndexedInputStream.java,
8673 gnu/regexp/CharIndexedReader.java,
8674 gnu/regexp/CharIndexedString.java,
8675 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
8676 gnu/regexp/REException.java,
8677 gnu/regexp/REFilterInputStream.java,
8678 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
8679 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
8680 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
8681 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
8682 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
8683 gnu/regexp/RETokenLookAhead.java,
8684 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
8685 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
8686 gnu/regexp/RETokenStart.java,
8687 gnu/regexp/RETokenWordBoundary.java,
8688 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
8690 2004-03-03 Per Bothner <per@bothner.com>
8692 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
8693 Optimize when argument is a FileChannelImpl.
8694 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
8696 * java/nio/channels/natChannels.cc: New file for new native methods.
8697 * Makefile.am: Update accordingly.
8699 2004-03-02 Jan Hubicka <jh@suse.cz>
8701 * configure.host: Pass -fno-omit-frame-pointer for i386.
8702 * configure.in: Likewise.
8703 * configure: Regenerate.
8705 2004-03-01 Per Bothner <per@bothner.com>
8707 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
8709 2004-02-29 Per Bothner <per@bothner.com>
8711 * java/nio/channels/FileChannelImpl.java: Moved to package
8712 gnu/java/nio/channels, since we need to refer to it from java.io.
8713 * java/nio/channels/natFileChannelImpl.cc: Removed file.
8714 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
8715 from java/nio/channels. Don't depend on FileDescriptor.
8716 (in, out, err): New static fields.
8718 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
8719 from FileDescriptor.
8720 (by): Removed MappedByteBuffer field.
8721 (map): New working implementation.
8722 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
8723 some code "ported" from natFileDescriptoPosix.cc.
8724 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
8725 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
8726 * java/io/FileDescriptor.java: Implement on top of FileChannel.
8727 Remove native methods.
8728 * Makefile.am, configure.in: Updated accordingly.
8730 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
8731 (ch): New FileChannelImpl field. Update constructor to match.
8732 (releaseImpl): Remove native method. Instead ...
8733 (release): Call unlock on channel.
8734 * gnu/java/nio/natFileLockImpl.cc: Removed file.
8736 * java/io/natFileDescriptorEcos.cc: Remove file.
8737 * java/io/natFileDescriptorPosix.cc: Remove file.
8738 * java/io/natFileDescriptorWin32.cc: Remove file.
8739 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
8740 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
8741 (<init>(FileChannelImpl)): New package-private constructor.
8742 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
8743 (available, close, read, skip): Implement using FileChannelImpl.
8744 (getFD): Allocate FileDescriptor if needed.
8745 (getChannel): Is now trivial.
8746 * java/io/FileOutputStream.java: Corresponding changes.
8747 * java/io/RandomAccessFile.java: Corresponding changes.
8749 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
8750 unmapImpl): New dummy methods, to be overridden by subclass.
8751 (finalize, isLoaded, load, force): New methods.
8752 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
8753 Now works, at least for read mapping.
8755 * java/lang/natPosixProcess.cc (startProcess): Implement standard
8756 streams using FileChannelImpl, not FileDescriptor.
8757 * java/lang/natWin32Process.cc (startProcess): Likewise.
8759 2004-02-28 Michael Koch <konqueror@gmx.de>
8761 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
8764 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
8766 * java/io/ObjectInputStream.java
8767 (readClassDescriptor): Keep elements of the mapping non null.
8768 (checkTypeConsistency): New method.
8769 (readFields): Fixed main loop and base logic. Small reindentation.
8770 * java/io/ObjectStreamField.java
8771 (lookupField): New method to update the field reference.
8772 (checkFieldType): New method.
8773 * java/io/ObjectStreamClass.java
8774 (setClass, setFields): Call lookupField when building the field
8775 database. Check the real field type.
8777 2004-02-28 Michael Koch <konqueror@gmx.de>
8779 * java/nio/ByteOrder.java
8780 (nativeOrder): Use equals() to compare strings.
8782 2004-02-26 Michael Koch <konqueror@gmx.de>
8784 * gnu/java/nio/FileLockImpl.java
8785 (finalize): Made protected.
8786 * java/nio/channels/FileChannel.java
8787 (MapMode.READ_ONLY): Made final.
8788 (MapMode.READ_WRITE): Made final.
8789 (MapMode.PRIVATE): Made final.
8790 * java/nio/channels/SocketChannel.java
8791 (open): Simplified code.
8792 * java/nio/channels/spi/AbstractSelectableChannel.java
8793 (registered): Unused, removed.
8794 (keyFor): Check channel is open, only locate key
8795 and not add a new one.
8796 (register): Don't delete attachments.
8798 2004-02-26 Michael Koch <konqueror@gmx.de>
8800 * gnu/java/awt/ComponentDataBlitOp.java
8801 (INSTANCE): Made final.
8802 * gnu/java/awt/image/ImageDecoder.java:
8804 (cm): Unused, removed.
8806 2004-02-26 Michael Koch <konqueror@gmx.de>
8808 * gnu/java/nio/DatagramChannelImpl.java
8809 (send): Check if target address is resolved.
8811 2004-02-26 Michael Koch <konqueror@gmx.de>
8813 * Makefile.am: Generate and install headers for inner classes in
8814 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
8815 * Makefile.in: Regenerated.
8817 2004-02-24 Anthony Green <green@redhat.com>
8819 * java/lang/StringBuffer.java: No need to NULL out remainder of
8820 buffer since ensureCapacity_unsynchronized will have done this for
8823 2004-02-20 Michael Koch <konqueror@gmx.de>
8825 * gnu/java/net/protocol/jar/Handler.java
8826 (): Removed unneeded check for file != null. java.net.URL.getFile()
8827 returns an empty string but never null.
8829 2004-02-20 Michael Koch <konqueror@gmx.de>
8831 * gnu/gcj/convert/Convert.java
8832 (main): Use equals() to compare strings.
8834 2004-02-20 Michael Koch <konqueror@gmx.de>
8836 * javax/swing/AbstractButton.java: Made several constants final.
8837 (getRolloverSelectedIcon): Made public.
8838 (getSelectedIcon): Made public.
8840 2004-02-16 Per Bothner <per@bothner.com>
8842 * java/nio/CharBufferImpl.java: Inline super constructor.
8843 * java/nio/DoubleBufferImpl.java: Likewise.
8844 * java/nio/FloatBufferImpl.java: Likewise.
8845 * java/nio/IntBufferImpl.java: Likewise.
8846 * java/nio/LongBufferImpl.java: Likewise.
8847 * java/nio/ShortBufferImpl.java: Likewise.
8848 * java/nio/CharBuffer.java: Remove unused constructor.
8849 * java/nio/DoubleBuffer.java: Likewise.
8850 * java/nio/FloatBuffer.java: Likewise.
8851 * java/nio/IntBuffer.java: Likewise.
8852 * java/nio/LongBuffer.java: Likewise.
8853 * java/nio/ShortBuffer.java: Likewise.
8854 * java/nio/CharViewBufferImpl.java: New convenience constructor.
8855 Fix buggy call to super constructor.
8856 * java/nio/DoubleViewBufferImpl.java: Likewise.
8857 * java/nio/FloatViewBufferImpl.java: Likewise.
8858 * java/nio/IntViewBufferImpl.java: Likewise.
8859 * java/nio/LongViewBufferImpl.java: Likewise.
8860 * java/nio/ShortViewBufferImpl.java: Likewise.
8862 * java/nio/ByteBuffer.java (endian): Make non-private so other
8863 java.nio classes can inherit it.
8864 (<init>): Don't bother clearing array_offset.
8865 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
8866 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
8867 Remove redundant test.
8869 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
8870 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
8871 Use new XxxViewBufferImpl constructors.
8872 * java/nio/MappedByteBufferImpl.java: Likewise.
8873 * java/nio/DirectByteBufferImpl.java: Likewise.
8875 * java/nio/ByteBufferImpl.java: Remove one constructor.
8876 Inline super in remaining constructor.
8877 * java/nio/ByteBuffer.java: Remove unused constructor.
8879 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
8881 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
8882 * java/nio/DirectByteBufferImpl.java (owner): New field.
8883 (offset): Remove unused field.
8884 (<init>): Modify one and add another constructor. Change callers.
8885 (allocateDirect): Removed - not used.
8886 (getImpl, putImpl): Make static and pass address explicitly,
8887 to make them useful for MappedByteBufferImpl.
8888 (get, put): Check for underflow. Modify for new getImpl.
8889 (getImpl): New native method where target is array.
8890 (get(byte[],int,int)): Use the above.
8891 (adjustAddress): New static native method.
8892 (slice, duplicate, asReadOnly): New implementations.
8893 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
8894 adjustAddress): New or updated native methods.
8896 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
8898 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
8899 overflow of fieldmapping.
8901 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
8903 * javax/swing/undo/UndoManager.java: Re-written from scratch.
8905 2004-02-14 Per Bothner <per@bothner.com>
8907 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
8908 Set closed before calling implCloseChannel, as in the spec.
8910 2004-02-09 Graydon Hoare <graydon@redhat.com>
8912 * javax/swing/ToggleButtonModel.java: Remove dead class.
8913 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
8914 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
8915 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
8916 * Makefile.am: Update for new and removed files.
8917 * Makefile.in: Regenerate.
8919 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
8920 * javax/swing/AbstractButton.java
8921 (AbstractButton): Initialize fields correctly in ctor.
8922 * javax/swing/JCheckbox.java
8923 (JCheckBox): Override painting flags.
8924 * javax/swing/DefaultButtonModel.java: Conform to sun.
8925 * javax/swing/JComponent.java (paint): Fill with background color
8927 (processComponentKeyEvent)
8930 (processMouseMotionEvent): Remove event-consuming empty methods.
8931 (getUIClassID): Return "ComponentUI" not "JComponent"
8932 * javax/swing/JFrame.java: Remove some debugging chatter.
8933 (JFrame): Subscribe to window events.
8934 * javax/swing/JRadioButton.java
8935 (JRadioButton): Override painting flags.
8936 * javax/swing/JRootPane.java
8937 (JRootPane): Set background from UIDefaults.
8938 * javax/swing/JToggleButton.java
8939 (ToggleButtonModel): New inner class.
8940 (JToggleButton): Override layout alighment.
8941 * javax/swing/SwingUtilities.java:
8942 (getLocalBounds): Return width and height, not x and y.
8943 (calculateInnerArea): Use local bounds, not bounds.
8944 (layoutCompoundLabel): Provide overridden form.
8945 (layoutCompoundLabel): Correct bugs.
8946 * javax/swing/UIDefaults.java: Correct comment.
8947 * javax/swing/plaf/basic/BasicButtonUI.java:
8948 Move most logic into defaults, external listener.
8949 (paintIcon): Implement icon painting.
8950 (paint): Fix state painting to conform to changes in model.
8951 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
8952 Remove most dead/wrong methods.
8953 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
8954 * javax/swing/plaf/basic/BasicIconFactory.java:
8955 (DummyIcon): New class.
8956 (getMenuItemCheckIcon)
8957 (getMenuItemArrowIcon)
8959 (getCheckBoxMenuItemIcon)
8960 (getRadioButtonMenuItemIcon)
8961 (createEmptyFrameIcon): Return DummyIcons, not null.
8962 (getCheckBoxIcon): Implement an icon that looks like sun's.
8963 (getRadioButtonIcon): Implement an icon that looks like sun's.
8964 * javax/swing/plaf/basic/BasicLookAndFeel.java
8965 (initComponentDefaults): Fix impossible values, add some missing.
8966 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
8967 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
8968 Remove most dead/wrong methods.
8970 (getDefaultIcon): New method.
8971 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
8972 Remove most dead/wrong methods.
8973 * javax/swing/plaf/metal/MetalLookAndFeel.java
8974 (getDefaults): Return super.getDefaults(), not BasicDefaults.
8975 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8976 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
8977 Implement "clearing" as drawing, when on pixmap drawables.
8979 * javax/swing/JButton.java (getUIClassID):
8980 * javax/swing/JCheckBox.java (getUIClassID):
8981 * javax/swing/JEditorPane.java (getUIClassID):
8982 * javax/swing/JLabel.java (getUIClassID):
8983 * javax/swing/JList.java (getUIClassID):
8984 * javax/swing/JOptionPane.java (getUIClassID):
8985 * javax/swing/JPanel.java (getUIClassID):
8986 * javax/swing/JPasswordField.java (uiClassID):
8987 * javax/swing/JRadioButton.java (getUIClassID):
8988 * javax/swing/JRootPane.java (getUIClassID):
8989 * javax/swing/JScrollPane.java (getUIClassID):
8990 * javax/swing/JTabbedPane.java (getUIClassID):
8991 * javax/swing/JToggleButton.java (getUIClassID):
8992 * javax/swing/JTree.java (getUIClassID):
8993 * javax/swing/JViewport.java (getUIClassID):
8994 * javax/swing/text/JTextComponent.java (getUIClassID):
8995 Return "fooUI" not "Jfoo"
8997 2004-02-11 Michael Koch <konqueror@gmx.de>
8999 * java/net/DatagramSocket.java
9000 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9002 (setBroadcast): Likewise.
9003 * java/net/MulticastSocket.java
9004 (setLoopbackMode): Likewise.
9005 * java/net/ServerSocket.java
9006 (setReuseAddress): Likewise.
9007 * java/net/Socket.java
9008 (setTcpNoDelay): Likewise.
9009 (setSoLinger): Likewise.
9010 (setOOBInline): Likewise.
9011 (setKeepAlive): Likewise.
9012 (setReuseAddress): Likewise.
9013 * java/net/URLConnection.java
9014 (setContentHandler): Replace == with equals().
9015 * java/net/URLStreamHandler.java
9016 (hostSEquals): Fix checking host addresses.
9017 (toExternalForm): Dont check protocol for null. We know already its
9020 2004-02-10 David Jee <djee@redhat.com>
9022 * java/awt/BorderLayout.java
9023 (calcCompSize): Invisible components get zero dimensions.
9024 * java/awt/Button.java
9025 (setLabel): Set actionCommand.
9026 * java/awt/Component.java
9027 (show): Invalidate component and parent container.
9030 2004-02-10 David Jee <djee@redhat.com>
9032 * java/awt/GridBagLayout.java
9033 (GridBagLayout): New private field, internalcomptable.
9034 (lookupInternalConstraints): New method.
9035 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9036 (GetLayoutInfo): Reimplement.
9037 (calcCellSizes): Ignore rows/columns with size 0.
9039 2004-02-10 Michael Koch <konqueror@gmx.de>
9041 * gnu/java/awt/EmbeddedWindow.java
9042 (setHandle): Use java.awt.Component.getPeer() instead of
9043 java.awt.Component.peer directly.
9045 2004-02-10 David Jee <djee@redhat.com>
9047 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9048 (gtkSetLabel): New native method definition.
9049 (setLabel): Use gtkSetLabel.
9050 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9051 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9053 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9055 * include/powerpc-signal.h: Revert 2004-01-21 change.
9056 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9057 from syscall for ppc32 versions.
9059 2004-02-08 Per Bothner <per@bothner.com>
9061 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9062 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9063 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9064 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9065 Pass ByteOrder parameter to most methods, since the underlying
9066 ByteBuffer's order isn't always what we should use.
9067 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9068 * java/nio/DirectByteBufferImpl.java: Likewise.
9069 Use ByteBufferHelper methods.
9070 * java/nio/MappedByteBufferImpl.java: Likewise.
9071 (compact): Use shiftDown.
9072 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9073 (get, put): Use ByteBufferHelper.
9074 (compact): Use new shiftDown method.
9075 (duplicate(boolean)): New helper method.
9076 (duplicate, asReadOnlyBuffer): Use it.
9077 (order): Return endian field.
9078 * java/nio/DoubleViewBufferImpl.java: Likewise.
9079 * java/nio/FloatViewBufferImpl.java: Likewise.
9080 * java/nio/IntViewBufferImpl.java: Likewise.
9081 * java/nio/LongViewBufferImpl.java: Likewise.
9082 * java/nio/ShortViewBufferImpl.java: Likewise.
9083 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9084 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9085 (compact): Re-implement using shiftDown.
9087 2004-02-08 Andreas Jaeger <aj@suse.de>
9089 * include/x86_64-signal.h: Fix typo.
9091 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9093 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9095 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9097 2004-02-06 Michael Koch <konqueror@gmx.de>
9099 * java/io/ObjectInputStream.java
9100 (currentClassLoader): Reverted to old version of this method.
9102 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9104 * java/io/ObjectInputStream.java: Made all calls
9105 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9106 use cached info from ObjectStreamClass. (readClassDescriptor):
9107 Cache more information in ObjectStreamClass. (processResolution,
9108 readFields): Use cached info from ObjectStreamClass.
9109 (newObject): Throw exception instead of returning null for failure.
9110 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9111 setCharField, setDoubleField, setFloatField, setIntField,
9112 setLongField, setShortField, setObjectField, readObjectParams):
9113 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9115 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9116 (setClass): Added call to cacheMethods() (findMethod): New method.
9117 (cacheMethods): New method. (ObjectStreamClass): Added call to
9118 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9119 AccessController.doPrivileged to invoke setAccessible.
9120 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9121 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9123 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9124 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9125 isPrimitive): Made safe for cases where type == null.
9126 (setBooleanField, setByteField, setCharField, setShortField,
9127 setIntField, setLongField, setFloatField, setDoubleField,
9128 setObjectField): New methods.
9130 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9132 * java/awt/Component.java (getFont): Return a default font
9135 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9136 (Scrollbar (int, int, int, int, int)): Make default page
9138 (setValues): Only call peer.setValues if one of the values has
9140 (generateName): New method.
9141 (getUniqueLong): New method.
9142 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9143 (range_scrollbar): Remove structure.
9144 (post_adjustment_event): Remove function.
9145 (post_change_event): Accept jobject argument.
9146 (create): Cast jints to gdoubles. Round scrollbar values to the
9147 nearest integer. Clamp min, max and value settings.
9148 (connectJObject): Connect hook to widget->window.
9149 (connectSignals): Remove range_scrollbar structure variables.
9150 Remove "move-slider" connection. Pass global peer reference to
9151 "value-changed" callback.
9152 (setLineIncrement): Cast jint value to gdouble.
9153 (setPageIncrement): Likewise.
9154 (setValues): Likewise. Clamp min, max and value settings.
9156 2004-02-05 Michael Koch <konqueror@gmx.de>
9158 * javax/swing/AbstractCellEditor.java
9159 (getCellEditorValue): Removed.
9160 * javax/swing/Box.java: Reformated.
9161 (serialVersionUID): New field.
9162 * javax/swing/ButtonGroup.java:
9163 Removed some weird whitespace.
9164 * javax/swing/CellEditor.java: Reformated.
9165 * javax/swing/CellRendererPane.java
9166 (serialVersionUID): New field.
9167 (AccessibleCellRendererPaneserialVersionUID): New field.
9168 * javax/swing/DefaultListModel.java
9169 (serialVersionUID): New field.
9170 * javax/swing/JEditorPane.java
9171 (serialVersionUID): New field.
9172 (setPage): Throws IOException.
9173 (addHyperlinkListener): Implemented.
9174 (removeHyperlinkListener): Implemented.
9175 (getHyperlinkListener): New method.
9176 * javax/swing/JFileChooser.java
9177 (serialVersionUID): New field.
9178 (AccessibleJFileChooser.serialVersionUID): New field.
9179 (addActionListener): Implemented.
9180 (removeActionListener): Implemented.
9181 (getActionListeners): New method.
9182 * javax/swing/JFormattedTextField.java
9183 (serialVersionUID): New field.
9184 (AbstractFormatter.serialVersionUID): New field.
9185 (clone): Throws CloneNotSupportedException
9186 (setEditValid): Add missing argument.
9187 (stringToValue): Throws ParseExcpetion.
9188 (valueToString): Throws ParseException.
9189 (commitEdit): Throws ParseException.
9190 * javax/swing/JLabel.java
9191 (serialVersionUID): New field.
9192 * javax/swing/JList.java
9193 (serialVersionUID): New field.
9194 (addListSelectionListener): Reformated.
9195 (removeListSelectionListener): Reformated.
9196 (getListSelectionListeners): New method.
9197 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9199 (serialVersionUID): New field.
9200 * javax/swing/table/AbstractTableModel.java
9201 (getValueAt): Removed.
9202 (getColumnCount): Removed.
9203 (getRowCount): Removed.
9205 2004-02-05 Michael Koch <konqueror@gmx.de>
9207 * java/awt/datatransfer/DataFlavor.java
9208 (imageFlavor): Javadoc added.
9209 (javaJVMLocalObjectType): Fixed.
9211 2004-02-05 Michael Koch <konqueror@gmx.de>
9213 * java/lang/Thread.java
9214 (Thread): Reordered.
9215 (setContextClassLoader): Fixed javadoc comment.
9216 (setPriority): Reordered.
9218 (initialize_native): Reordered.
9219 (gen_name): Reordered.
9221 2004-02-05 Michael Koch <konqueror@gmx.de>
9223 * java/lang/Thread.java: Reordered fields, reformated much code,
9224 no functional changes, some variables renamed, javadoc comments
9227 2004-02-05 Michael Koch <konqueror@gmx.de>
9229 * java/util/zip/Deflater.java,
9230 java/util/zip/DeflaterOutputStream.java,
9231 java/util/zip/GZIPInputStream.java:
9232 Reformated and javadoc comments merged from classpath.
9234 2004-02-05 Michael Koch <konqueror@gmx.de>
9236 * gnu/java/nio/NIOServerSocket.java
9237 (impl): Unused, removed.
9238 * gnu/java/nio/SocketChannelImpl.java
9239 (finnishConnect): Don't throw NoConnectionPendingException if not
9240 connected or no connection pending.
9242 2004-02-02 Graydon Hoare <graydon@redhat.com>
9244 * javax/swing/SwingUtilities.java: Many new functions.
9245 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9246 * javax/swing/basic/BasicGraphicsUtils.java
9247 (getPreferredButtonSize): Start layout from top-left corner.
9249 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9251 * java/awt/geom/AffineTransform.java:
9252 Corrected comments on the field definitions for
9254 (shear): Fixed few errors that caused shear
9255 transformation to be performed incorrectly.
9256 (createInverse): Fixed to return correct
9257 inverse of the given matrix.
9259 2004-02-03 Tom Tromey <tromey@redhat.com>
9261 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9262 PATH or LD_LIBRARY_PATH is not set in parent environment.
9264 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9266 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9267 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9268 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9269 java/awt/Component.java, java/awt/Container.java,
9270 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9271 java/awt/LayoutManager2.java, java/awt/List.java,
9272 java/awt/Menu.java, java/awt/MenuBar.java,
9273 java/awt/MenuItem.java, java/awt/Polygon.java,
9274 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9275 java/awt/Scrollbar.java, java/awt/TextArea.java,
9276 java/awt/TextField.java,
9277 java/awt/image/renderable/RenderContext.java,
9278 javax/swing/JApplet.java: Fix handling of alias methods, where a
9279 method has been deprecated in favour of a new one with the same
9280 funtion but a different name. Put the method implementation in
9281 the deprecated method and have the new method call the
9282 deprecated one. Make all other code call the new method.
9284 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9286 * gnu/java/nio/DatagramChannelImpl.java
9287 (inChannelOperation): New field.
9288 (isInChannelOperation): New accessor.
9289 (setInChannelOperation): New modifier.
9290 (receive): Use capacity() - position() of destination
9291 buffer instead of remaining(). Set and reset our "in
9292 channel operation indicator" before and after delegating
9293 the receive to our datagram socket. Removed testing code.
9294 Update destination buffer's current position if it is
9295 backed by a byte array (hasArray() is true).
9296 (send): Set and reset our "in channel operation indicator"
9297 before and after delegating the send to our datagram socket.
9298 Removed testing code. Update source buffer's current position
9299 if it is backed by a byte array (hasArray() is true).
9300 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9301 Use capacity() - position() of destination buffer instead
9303 * java/net/DatagramSocket.java (receive): Don't throw an
9304 IllegalBlockingModeException if we have a non-blocking
9305 channel which initiated this operation.
9308 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9310 * configure.in: Add pkgconfig check for glib and gthread.
9311 * configure: Regenerate.
9313 2004-02-01 Michael Koch <konqueror@gmx.de>
9315 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9317 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9318 * verify.cc (debug_print): Mark 'fmt' unused.
9320 2004-01-30 Michael Koch <konqueror@gmx.de>
9322 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9323 * configure: Regenerated.
9324 * glib-2.0.m4: Removed.
9325 * gtk-2.0.m4: Removed.
9326 * libart.m4: Removed.
9329 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9331 * gnu/java/net/PlainSocketImpl.java
9332 (inChannelOperation): New field.
9333 (isInChannelOperation): New accessor.
9334 (setInChannelOperation): New modifier.
9335 * gnu/java/nio/ServerSocketChannelImpl.java
9336 (accept): Set and reset our server socket's PlainSocketImpl's
9337 "in channel operation" indicator before and after delegating
9338 the accept to our server socket.
9339 * gnu/java/nio/SocketChannelImpl.java
9340 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9341 operation" indicator before and after delegating the operation to
9345 * java/net/ServerSocket.java (implAccept): Don't throw an
9346 IllegalBlockingModeException if we have a non-blocking
9347 channel which initiated this accept operation.
9348 * java/net/Socket.java (connect): Don't throw an
9349 IllegalBlockingModeException if we have a non-blocking
9350 channel which initiated this connect operation.
9351 * java/nio/channels/spi/AbstractSelectableChannel.java
9352 (configureBlocking): Only call implConfigureBlocking() if
9353 the desired blocking mode is different from our current one.
9355 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9357 * java/io/BufferedReader.java (sbuf): New field.
9358 (readLine): Use String.valueOf instead of new String() as per
9359 Per Bothner's suggestion. Use instance sbuf field instead of a
9360 local StringBuffer instance.
9361 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9362 caller's buffer to refill().
9363 (read(void)): Pass our internal work buffer to refill if our
9364 input queue is empty.
9365 (refill): Changed return type to int. Use the specified buffer
9366 instead of our work buffer as per Bryce McKinlay's suggestion.
9367 Return the number of characters read or -1 for EOF.
9369 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9371 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9373 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9375 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9376 * Makefile.in: Re-generated.
9377 * gnu/awt/xlib/XFontPeer.java: New file.
9378 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9379 (setClip): Commented out debug printout.
9380 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9381 (getFontPeer): Return XFontPeer.
9382 (getLocalGraphicsEnvironment): New method.
9383 (getClasspathFontPeer): New method.
9384 (createFont): New method.
9386 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9388 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9391 2004-01-29 Kim Ho <kho@redhat.com>
9393 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9394 (gtkLayoutSetVisible): New method
9395 (setMenuBar): Hide layout before setting MenuBar
9396 and reshow it after.
9397 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9398 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9400 2004-01-28 Michael Koch <konqueror@gmx.de>
9402 * gnu/java/lang/ClassHelper.java
9403 (getPackagePortion): Removed.
9405 2004-01-28 Michael Koch <konqueror@gmx.de>
9407 * javax/swing/JComponent.java
9408 (listenerList): Initalize globally.
9409 (ancestor_list): Removed.
9410 (veto_list): Removed.
9411 (change_list): Removed.
9412 (get_veto_list): Removed.
9413 (get_change_list): Removed.
9414 (get_ancestor_list): Removed.
9415 (removeAncestorListener): Reimplemented.
9416 (removePropertyChangeListener): Likewise.
9417 (removeVetoableChangeListener): Likewise.
9418 (addAncestorListener): Likewise.
9419 (addPropertyChangeListener): Likewise.
9420 (addVetoableChangeListener): Likewise.
9421 (getListeners): New method.
9422 (getAncestorListeners): Likewise.
9423 (getVetoableChangeListeners): Likewise.
9424 (fireVetoableChange): Throws PropertyVetoException.
9425 * javax/swing/JEditorPane.java
9426 (JEditorPane): Throws IOException.
9428 2004-01-28 David Jee <djee@redhat.com>
9430 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9431 (create): Set the default foreground color to
9432 java.awt.SystemColor.windowText.
9434 2004-01-27 Michael Koch <konqueror@gmx.de>
9436 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
9437 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9438 Reindented to merge with classpath.
9440 2004-01-27 David Jee <djee@redhat.com>
9442 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9443 (addExposeFilter): Handle GtkFramePeer separately.
9444 (removeExposeFilter): Likewise.
9446 2004-01-27 Michael Koch <konqueror@gmx.de>
9448 * gnu/java/net/protocol/http/Connection.java
9449 (getOutputStream): Fixed typo.
9451 2004-01-27 Michael Koch <konqueror@gmx.de>
9453 * java/lang/Class.java
9454 (getConstructor): Removed SecurityException from throws clause.
9455 (_getConstructors): Likewise.
9456 (getConstructors): Likewise.
9457 (getDeclaredConstructor): Likewise.
9458 (getDeclaredClasses): Likewise.
9459 (getDeclaredConstructors): Likewise.
9460 (getDeclaredField): Likewise.
9461 (getDeclaredMethod): Likewise.
9462 (getDeclaredMethods): Likewise.
9463 (getField): Likewise.
9464 (getMethod): Likewise.
9465 (getMethods): Likewise.
9467 2004-01-27 Kim Ho <kho@redhat.com>
9469 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9470 (removeMenuBarPeer): Remove MenuBarPeer argument.
9471 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
9472 (dispose): Call native method.
9473 * java/awt/Frame.java (setMenuBar): Create and remove
9474 MenuBar peers only if the Frame has a peer.
9475 (addNotify): Create the MenuBar peer if one exists.
9476 (removeNotify): Remove MenuBar peer if one exists.
9477 * java/awt/Menu.java: Fix imports.
9478 (addNotify): Don't use full class name.
9479 (removeNotify): Call removeNotify on all children.
9480 * java/awt/MenuBar.java (removeNotify): Call
9481 removeNotify on all children.
9482 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9483 (removeMenuBarPeer): Remove MenuBarPeer argument.
9484 Iterate through children to find the Frame's MenuBar.
9485 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
9487 (dispose): Remove references to the MenuComponent.
9489 2004-01-27 Michael Koch <konqueror@gmx.de>
9491 * javax/swing/AbstractCellEditor.java: Reformated.
9492 * javax/swing/DefaultListSelectionModel.java
9493 (listenerList): Made protected.
9494 (addListSelectionListener): Javadoc added.
9495 (removeListSelectionListener): Likewise.
9496 (getListeners): Likewise.
9497 (getListSelectionListeners): Likewise.
9498 * javax/swing/JComboBox.java: Merged copyright year.
9499 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
9501 2004-01-26 Andrew Haley <aph@redhat.com>
9503 * javax/swing/table/JTableHeader.java: Extend JComponent
9505 2004-01-26 Kim Ho <kho@redhat.com>
9507 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
9510 2004-01-26 Kim Ho <kho@redhat.com>
9512 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
9514 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
9515 height and let the Layout Managers readjust anything that
9517 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9518 (moveLayout): New method. Shift everything in the Gtk
9519 layout in the Y direction by an offset.
9521 2004-01-26 David Jee <djee@redhat.com>
9523 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
9524 (handleEvent): Implemented. Handles PaintEvents.
9525 (paint): Implemented. Use GTK native methods to queue updates
9526 for this heavyweight peer.
9527 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
9528 (handleEvent): Removed.
9529 * java/awt/Component.java
9530 (paint): Implemented. Explictly paint the heavyweight peer.
9531 (update): Clear the background for heavyweight components.
9532 (paintAll): No need to call peer.paint() anymore.
9533 (processEvent): Don't process PaintEvents here. It's now done in
9534 the peer's handleEvent().
9535 (processPaintEvent): Removed.
9536 * java/awt/Container.java
9537 (paint): No need to call super.paint(). Visit heavyweight
9539 (update): Don't clear the background here. It's done in
9541 (visitChildren): Added check to not recurse into Containers.
9542 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9543 (filter_expose_event_handler): New method. Filter unwanted
9544 expose events while painting heavyweight peers.
9545 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
9546 New method. Connect filter and block pre_event_handler.
9547 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
9548 New method. Disconnect filter and unblock pre_event_handler.
9549 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
9550 New method. Invalidate and update given area.
9551 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
9552 (pre_event_handler): Add checks for unwanted expose events.
9554 2004-01-26 David Jee <djee@redhat.com>
9556 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9557 (find_bg_color_widget): For GtkButton, return its child.
9559 2004-01-26 Kim Ho <kho@redhat.com>
9561 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
9563 (setMenuBar): Grab MenuBar height and change insets.
9564 (setBounds): Account for MenuBar height.
9565 (postInsetsChangedEvent): Ditto.
9566 (postSizeAllocateEvent): Remove.
9567 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9568 (menubar_resize_cb): Remove
9569 (setMenuBarPeer): Remove callback.
9570 (getMenuBarHeight): Use size requisition instead of
9573 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9575 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
9576 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
9578 (setColumns): Remove FIXME -- peer will retrieve number of
9579 columns by calling getColumns.
9580 (setRows): Likewise for number of rows.
9581 (next_text_number): New field.
9582 (paramString): Fix param string.
9583 (generateName): New method.
9584 (getUniqueLong): New method.
9586 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9588 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
9589 image observer of image loading status.
9590 (getImage (String)): Start image production.
9591 (getImage (URL)): Likewise.
9593 2004-01-25 Michael Koch <konqueror@gmx.de>
9595 * java/lang/Class.java: Imports reworked, reformated.
9596 (Class): Javadoc added.
9597 (forName): Likewise.
9598 (getClasses): Likewise.
9599 (getClassLoader): Likewise.
9600 (getComponentType): Likewise.
9601 (getConstructor): Likewise.
9602 (getConstructors): Likewise.
9603 (getDeclaredConstructor): Likewise.
9604 (getDeclaredClasses): Likewise.
9605 (getDeclaredConstructors): Likewise.
9606 (getDeclaredField): Likewise.
9607 (getDeclaredMethod): Likewise.
9608 (getDeclaredMethods): Likewise.
9609 (getDeclaringClass): Likewise.
9610 (getField): Likewise.
9611 (getInterfaces): Likewise.
9612 (getMethod): Likewise.
9613 (getMethods): Likewise.
9614 (getModifiers): Likewise.
9615 (getName): Likewise.
9616 (getResource): Likewise.
9617 (getResourceAsStream): Likewise.
9618 (getSigners): Likewise.
9619 (setSigners): Likewise.
9620 (getSuperclass): Likewise.
9621 (isArray): Likewise.
9622 (isAssignableFrom): Likewise.
9623 (isInstance): Likewise.
9624 (isInterface): Likewise.
9625 (isPrimitive): Likewise.
9626 (newInstance): Likewise.
9627 (getProtectionDomain): Likewise.
9628 (toString): Likewise.
9630 (initializeClass): Likewise.
9631 (finalize): Likewise.
9633 2004-01-24 Michael Koch <konqueror@gmx.de>
9635 * gnu/java/net/protocol/jar/Connection.java
9638 (gotHeaders): Removed.
9639 (getHeaderField): Removed.
9640 (getHeaderFields): Removed.
9641 (getHeaderFieldKey): Removed.
9643 (getField): Removed.
9644 (getHeaders): Removed.
9646 2004-01-24 Michael Koch <konqueror@gmx.de>
9648 * Makefile.am: Added library version to gtk peer lib.
9649 * Makefile.in: Regenerated.
9651 2004-01-24 Michael Koch <konqueror@gmx.de>
9653 * java/util/zip/InflaterInputStream.java: Merged class documentation
9656 2004-01-21 Jakub Jelinek <jakub@redhat.com>
9658 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
9659 header. For __powerpc64__ provide the default-signal.h definitions
9661 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
9662 instead of the dummy definitions.
9663 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
9664 (powerpc64*-*): Remove with_libffi_default.
9665 Only add -mminimal-toc for 64-bit compilations.
9666 * configure.in: Use powerpc-signal.h on powerpc64 as well.
9667 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
9668 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
9669 * configure: Rebuilt.
9671 2004-01-23 Michael Koch <konqueror@gmx.de>
9673 * gnu/java/nio/FileLockImpl.java: Compile fixes.
9675 2004-01-23 Michael Koch <konqueror@gmx.de>
9677 * java/lang/VMClassLoader.java: Reworked imports.
9679 2004-01-23 Michael Koch <konqueror@gmx.de>
9681 * javax/swing/AbstractAction.java: Reformated.
9683 2004-01-23 Michael Koch <konqueror@gmx.de>
9685 * java/text/CollationElementIterator.java:
9686 (setText): New method.
9688 2004-01-23 Michael Koch <konqueror@gmx.de>
9690 * gnu/java/nio/FileLockImpl.java:
9691 Fixed filename in copyright.
9692 (released): Removed.
9693 (finalize): New method.
9694 * gnu/java/nio/natFileLockImpl.cc
9695 (releaseImpl): Implemented.
9696 * java/nio/channels/FileChannelImpl.java:
9698 (lock): Implemented.
9699 (lockImpl): New method.
9700 (tryLock): Implemented.
9701 (tryLockImpl): New method.
9702 * java/nio/channels/natFileChannelImpl.cc
9703 (lockImpl): New method.
9704 (tryLockImpl): New method.
9706 2004-01-23 Michael Koch <konqueror@gmx.de>
9708 * java/io/FileDescriptor.java
9710 (tryLock): New method.
9711 (unlock): New method.
9712 * java/io/natFileDescriptorEcos.cc
9714 (tryLock): New method.
9715 (unlock): New method.
9716 * java/io/natFileDescriptorPosix.cc
9718 (tryLock): New method.
9719 (unlock): New method.
9720 * java/io/natFileDescriptorWin32.cc
9722 (tryLock): New method.
9723 (unlock): New method.
9725 2004-01-23 Michael Koch <konqueror@gmx.de>
9727 * java/io/FileDescriptor.java
9728 (sync): Moved around, added javadoc.
9733 (setLength): Likewise.
9735 (getLength): Likewise.
9736 (getFilePointer): Likewise.
9738 (available): Likewise.
9739 (finalize): Likewise.
9741 2004-01-23 Michael Koch <konqueror@gmx.de>
9743 * javax/swing/AbstractAction.java: Reformated.
9744 (getPropertyChangeListeners): New method.
9745 * javax/swing/AbstractCellEditor.java: Reformated.
9746 (getCellEditorListeners): New method.
9747 * javax/swing/DefaultListSelectionModel.java
9748 (listenerList): New field.
9749 (listeners): Removed.
9750 (get_listeners): Removed.
9751 (addListSelectionListener): Rewritten.
9752 (removeListSelectionListener): Rewritten.
9753 (getListSelectionListeners): New method.
9754 (getListeners): New method.
9755 * javax/swing/JComboBox.java: Imports reworked.
9756 (addActionListener): Implemented.
9757 (removeActionListener): Implemented.
9758 (addItemListener): Implemented.
9759 (removeItemListener): Implemented.
9760 (addPopupMenuListener): Implemented.
9761 (removePopupMenuListener): Implemented.
9762 (getActionListeners): New method.
9763 (getItemListeners): New method.
9764 (getPopupMenuListeners): New method.
9766 2004-01-23 Michael Koch <konqueror@gmx.de>
9768 * gnu/java/net/protocol/http/Connection.java
9769 (connect): Don't initialize bufferedOutputStream if not needed.
9770 (sendRequest): Set property for content length if content is present.
9771 Write content only if present.
9772 (getOutputStream): Check if already connected, dont connect,
9773 initalize bufferedOutputStream if needed.
9775 2004-01-23 Michael Koch <konqueror@gmx.de>
9777 * java/io/FileDescriptor.java
9778 (in, out, err): Added javadoc.
9779 (static): Merged loading code.
9780 (fd, position): Moved around.
9782 2004-01-23 Michael Koch <konqueror@gmx.de>
9784 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
9787 2004-01-23 Michael Koch <konqueror@gmx.de>
9789 * java/lang/Class.java,
9790 java/lang/Object.java,
9791 java/lang/Thread.java: Merged copyright with classpath.
9793 2004-01-23 Michael Koch <konqueror@gmx.de>
9795 * java/io/FileDescriptor.java: Merged copyright with classpath to
9796 start merging this class.
9798 2004-01-22 Tom Tromey <tromey@redhat.com>
9801 * testsuite/libjava.lang/pr13107_2.xfail: New file.
9802 * testsuite/libjava.lang/pr13107_3.xfail: New file.
9803 * testsuite/libjava.lang/pr13107_3.java: New file.
9804 * testsuite/libjava.lang/pr13107_3.out: New file.
9805 * testsuite/libjava.lang/pr13107_2.java: New file.
9806 * testsuite/libjava.lang/pr13107_2.out: New file.
9807 * testsuite/libjava.lang/pr13107.java: New file.
9808 * testsuite/libjava.lang/pr13107.out: New file.
9809 * verify.cc (jsr_ptrs): Removed.
9810 (entry_points): Likewise.
9811 (struct subr_info): Likewise.
9812 (struct subr_entry_info): Likewise.
9813 (type_val::unused_by_subroutine_type): Likewise.
9814 (type::merge): Don't handle unused_by_subroutine_type.
9815 (type::print): Likewise.
9816 (state::flags): Removed.
9817 (state::subroutine): Likewise.
9818 (state::seen_subrs): Likewise.
9819 (state::NO_STACK): Likewise.
9820 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
9821 (state): Updated all methods.
9822 (state::clean_subrs): Removed.
9823 (state::state): Removed `ret_semantics' flag.
9824 (state::copy): Likewise.
9825 (state::add_subr): Removed.
9826 (state::enter_subroutine): Likewise.
9827 (type::set_return_address): New method.
9828 (handle_jsr_insn): Set return address on the type. Always
9829 invalidate PC after call.
9830 (check_nonrecursive_call): Removed.
9831 (~_Jv_BytecodeVerifier): Updated.
9832 (branch_prepass): Removed special handling of jsr.
9833 (note_branch_target): Likewise.
9834 (get_subroutine): Removed.
9835 (state::merge): Don't merge subroutines and don't handle
9836 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
9837 (state::note_variable): Removed.
9838 (state::is_unmerged_ret_state): Likewise.
9839 (state::print): Updated.
9840 (set_variable): Likewise.
9841 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
9842 and jsr_semantics arguments. Updated for new reverification
9844 (pop_jump): Rewrote.
9845 (construct_primitive_array_type): Updated.
9846 (state::next): Removed.
9847 (INVALID_STATE): New define.
9848 (state::INVALID): Removed.
9849 (state::NO_NEXT): New value.
9850 (state::pc, state::next): New fields.
9851 (state::get_pc): New method.
9852 (next_verify_pc): Removed.
9853 (next_verify_state): New field.
9854 (verify_instructions_0): Always check for falling off end.
9856 (linked_utf8): Removed.
9857 (states): Changed type.
9858 (type::state_mergeable_p): New method.
9859 (state::state_mergeable_p): Likewise.
9860 (handle_ret_insn): Removed most code.
9861 (state::reverify): New method.
9862 (add_new_state): Likewise.
9863 (state::set_pc): Likewise.
9865 2004-01-22 Jeff Sturm <jsturm@one-point.com>
9868 * testsuite/libjava.compile/PR13733.java: New file.
9869 * testsuite/libjava.compile/PR13733.xfail: New file.
9871 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
9872 Michael Koch <konqueror@gmx.de>
9874 * javax/swing/table/DefaultTableCellRenderer.java
9875 (DefaultTableCellRenderer): Added javadoc for the class and for
9876 the constructor, Border instance, create an EmptyBorder.
9877 (UIResource): Removed the comment at the end of the class
9878 (setForeground): New method.
9879 (setBackground): New method.
9880 (updateUI): New method.
9881 (getTableCellRendererComponent): Rewritten with the help of
9882 dvholten and Stephane Meslin-Weber.
9883 (validate): New method.
9884 (repaint): New method.
9885 (firePropertyChange): New method.
9886 (setValue): New method.
9888 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
9890 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9891 (connectJObject): Replace printf calls with g_assert statements.
9892 Move property-notify-event signal connection to ...
9893 (connectSignals): Connect property-notify-event signal. Iterate
9894 through the vbox's children to find layout.
9896 2004-01-22 Graydon Hoare <graydon@redhat.com>
9898 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
9899 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9900 Predicate static initialization on GtkToolkit.useGraphics2D().
9901 * java/awt/Component.java (processPaintEvent): Consume event.
9902 * javax/swing/AbstractButton.java: Reimplement, document.
9903 * javax/swing/DefaultButtonModel.java: Reimplement, document.
9904 * javax/swing/JComponent.java (paint): Use double buffer.
9905 (listenerList): Enable member.
9906 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
9907 * javax/swing/JToggleButton.java
9908 (JToggleButton): Modify model constructor.
9909 * javax/swing/SwingUtilities.java
9910 (layoutCompoundLabel): Adjust arithmetic.
9911 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
9912 * javax/swing/plaf/basic/BasicGraphicsUtils.java
9913 (getPreferredButtonSize): Include margins in calculation.
9914 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9915 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
9916 Receive up events from subordinate layout component.
9918 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
9920 * java/awt/Component.java (show): Set visible to true before
9923 2004-01-21 Kim Ho <kho@redhat.com>
9925 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
9927 (removeMenuBarPeer): Make package private.
9928 (setMenuBarPeer): Make package private.
9929 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9930 (menubar_resize_cb): Mark attributes unused.
9931 (getMenuBarHeight): ditto.
9933 2004-01-21 David Jee <djee@redhat.com>
9935 * java/awt/Container.java
9936 (LightweightDispatcher.handleEvent): Add an extra check to avoid
9937 dispatching MOUSE_ENTERED event twice. Translate the point for
9938 the mouse event target before dispatching the event.
9940 2004-01-20 Jakub Jelinek <jakub@redhat.com>
9942 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
9943 lib_org_w3c_dom_la_LDFLAGS): New.
9944 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
9945 * Makefile.in: Rebuilt.
9947 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
9949 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
9950 Calculate proper offsets for heavyweight components packed in
9951 lightweight containers.
9953 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
9954 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
9955 (native create): Add width parameter.
9956 (create): Calculate text entry width based on current font's
9957 metrics and number of columns. Set TextField's font if not
9958 already set. Call native create.
9959 (gtkEntryGetBorderWidth): New native method.
9960 (gtkEntryGetSize): Remove method.
9961 (getMinimumSize): Call minimumSize.
9962 (getPreferredSize): Call preferredSize.
9963 (minimumSize): Calculate minimum size based on backing
9964 GtkEntry's borders, font metrics and number of columns.
9965 (preferredSize): Likewise for preferred size.
9966 (get_border_width): New static function.
9968 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
9969 Override GtkWindowPeer's setResizable method to account for menu
9970 bar height when setting the frame's size.
9972 2004-01-19 Matthias Klose <doko@debian.org>
9974 * libtool-version: Increased `current' to 6.
9976 2004-01-19 Kim Ho <kho@redhat.com>
9978 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9979 (connectJObject): Iterate through the vbox's children to find layout.
9981 2004-01-19 Fernando Nasser <fnasser@redhat.com>
9983 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
9984 isDispatchThread method to replace wrong test condition.
9986 2004-01-19 Fernando Nasser <fnasser@redhat.com>
9988 * java/awt/EventQueue.java (pop): Prevent racing condition to add
9989 events to the queue out of order by acquiring locks in the proper
9990 order and not by releasing one before acquiring the other.
9992 2004-01-19 Fernando Nasser <fnasser@redhat.com>
9994 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
9995 visible so that dialog can be reused.
9997 2004-01-19 Fernando Nasser <fnasser@redhat.com>
9999 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10000 events may be handled by any queue in the stack.
10002 2004-01-19 Kim Ho <kho@redhat.com>
10004 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10005 MenuBarPeer parameter.
10006 (removeMenuBarPeer): New native method.
10007 (setMenuBar): Call remove if menu bar is null. Adjust insets
10009 (postSizeAllocateEvent): New method. Called when menu bar size is
10010 allocated. Adjust insets and redo layout.
10011 (GtkFramePeer): Set menu bar during frame creation.
10012 (postConfigureEvent): Adjust position and size to accomodate
10014 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10015 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10016 (addNotify): Create the peer if it doesn't exist and call addNotify
10017 for the menu's items.
10018 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10019 * java/awt/MenuItem.java (addNotify): Create the peer if it
10021 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10022 (removeMenuBarPeer): New method. Remove menu bar on the current
10024 (setMenuBarPeer): Add the menu bar to the current frame and the
10025 callback for size-allocate events on the menu bar.
10026 (getMenuBarHeight): Add menu bar parameter.
10027 (menubar_resize_cb): New callback method for postSizeAllocate events.
10029 Also: Fix indentation on last ChangeLog entry.
10031 2004-01-16 Kim Ho <kho@redhat.com>
10033 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10034 (gtkWidgetGetDimensions): Remove.
10035 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10036 (gtkWidgetGetDimensions): Remove.
10038 2004-01-16 Tom Tromey <tromey@redhat.com>
10040 * java/awt/Container.java: Typo and indentation fixes.
10042 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10043 * java/lang/natVMClassLoader.cc: ...here. New file.
10044 * Makefile.in: Rebuilt.
10045 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10047 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10049 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10050 Discard GDK_ENTER_NOTIFY related to ungrabs.
10052 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10054 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10055 is called for an intermediate queue.
10057 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10059 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10060 (window_property_changed_cb): Set id_set.
10062 2004-01-16 Kim Ho <kho@redhat.com>
10064 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10065 it is a FileDialog and has dimensions of 0 by 0, then the initial
10066 size is set to size request plus insets.
10067 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10068 (gtkWidgetGetDimensions): Override method.
10069 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10070 (gtkWidgetGetDimensions): Override method. Returns size request plus
10073 2004-01-16 Andrew Haley <aph@redhat.com>
10075 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10076 * sysdep/i386/locks.h: Likewise.
10078 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10080 * java/awt/EventDispatchThread.java (run): Stop running when
10082 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10083 Reset the queue after transferring its contents.
10084 (push): Start a new dispatch thread if none is running.
10086 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10088 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10089 (doPolygon): set fill rule of polygon to
10090 WIND_EVEN_ODD by default.
10092 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10094 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10095 Implemented rendering hints related methods.
10096 (getDefaultHints): New helper method. Returns
10097 default rendering hints.
10098 (walkPath): changed to normalize path if
10099 the KEY_STROKE_CONTROL key is in "normalize" mode.
10100 (draw3DRect): changed coordinates of rectangle by +0.5
10101 if in "normalize" mode.
10103 2004-01-15 Tom Tromey <tromey@redhat.com>
10105 * Makefile.in: Rebuilt.
10106 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10107 (%.lo: %.java) Filter out StackTrace.lo.
10109 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10111 * configure.in: Add in AC_PREREQ(2.13)
10112 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10115 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10116 Tom Tromey <tromey@redhat.com>
10119 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10120 array to superclass.
10121 (init): Changed interface; add URLs here.
10122 (initialize): New static method.
10123 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10124 (_Jv_RunMain): ... not here.
10126 2004-01-14 Michael Koch <konqueror@gmx.de>
10128 * java/text/MessageFormat.java:
10129 Added descriptions to exceptions.
10130 This fixes PR libgcj/2429.
10132 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10134 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10135 (push): Make sure push is performed at the top of the thread stack.
10137 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10139 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10140 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10141 (native create): Add width and height parameters. Set text
10142 view's size request according to new parameters.
10143 (create): Calculate text view size based on current font's
10144 metrics and number of rows and columns. Set TextArea's font if
10145 not already set. Call native create.
10146 (getMinimumSize): Call minimumSize.
10147 (getPreferredSize): Call preferredSize.
10148 (getHScrollbarHeight): New method.
10149 (getVScrollbarWidth): New method.
10150 (minimumSize): Calculate minimum size based on scrollbar
10151 visibility, scrollbar sizes, font metrics and number of rows and
10153 (preferredSize): Likewise for preferred size.
10154 (gtkTextGetSize): Remove method.
10156 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10158 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10159 (initializeInsets): Remove method.
10160 (GtkComponentPeer): Initialize insets field. Remove call to
10162 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10164 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10166 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10167 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10168 (latestInsets): Remove field.
10169 (native create): Add insets parameter. Call
10170 window_get_frame_extents. Set the window's default size and
10171 size request based on its frame extents.
10172 (create): Initialize insets.
10173 (postInsetsChangedEvent): New method.
10174 (postConfigureEvent): Remove parameters top, left, bottom,
10175 right. Remove insets-related logic.
10176 (connectJObject): Handle property-notify-event.
10177 (window_get_frame_extents, request_frame_extents,
10178 property_notify_predicate, window_property_changed_cb): New
10180 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10181 (pre_event_handler): Remove insets-related logic for configure
10183 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10184 Update postConfigureEvent signature.
10186 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10188 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10189 to handle Window "Closing" events.
10191 2004-01-13 David Jee <djee@redhat.com>
10193 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10194 (setBackground): New method. Children with no explicitly-set
10195 background will be repainted with the parent container's new
10198 2004-01-13 David Jee <djee@redhat.com>
10200 * Makefile.am: Add BitwiseXORComposite.java.
10201 * Makefile.in: Regenerated.
10202 * gcj/Makefile.in: Regenerated.
10203 * include/Makefile.in: Regenerated.
10204 * testsuite/Makefile.in: Regenerated.
10206 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10208 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10209 not show modal dialogs twice and so that it allows showing a modal
10210 dialog from another modal dialog.
10212 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10214 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10215 and run secondary dispatch thread to process event queue while this
10218 2004-01-12 Graydon Hoare <graydon@redhat.com>
10220 * gnu/java/awt/gtk/GdkGraphics2D.java
10221 (static): Check GtkToolkit before initializing static state.
10222 (Graphics2D): Don't construct transform with 0.5 unit offset.
10224 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10226 * gnu/java/awt/BitwiseXORComposite.java: Add.
10227 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10228 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10229 (BitwiseXORComposite): Remove inner class.
10231 2004-01-11 Michael Koch <konqueror@gmx.de>
10233 * gnu/java/lang/reflect/TypeSignature.java
10234 (getEncodingOfClass): Documentation fixed.
10235 (getClassForEncoding): Give class loader to Class.forName().
10236 Documentation fixed.
10238 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10240 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10242 2004-01-11 Michael Koch <konqueror@gmx.de>
10244 * javax/swing/undo/StateEditable.java
10245 (RCSID): Removed redundant modifiers.
10247 2004-01-10 Michael Koch <konqueror@gmx.de>
10249 * javax/print/attribute/EnumSyntax.java
10250 (getStringTable): Made protected.
10251 (getEnumValueTable): Likewise.
10252 * javax/print/attribute/standard/JobKOctetsProcessed.java
10253 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10254 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10255 (JobMediaSheetsCompleted): Made class final.
10256 * javax/print/attribute/standard/OutputDeviceAssigned.java
10257 (getName): Fixed typo.
10258 * javax/print/attribute/standard/RequestingUserName.java
10259 (serialVersionUID): Fixed value.
10261 2004-01-10 Michael Koch <konqueror@gmx.de>
10263 * javax/swing/plaf/basic/BasicButtonUI.java,
10264 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10265 javax/swing/plaf/basic/BasicListUI.java,
10266 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10267 javax/swing/plaf/basic/BasicPanelUI.java,
10268 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10269 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10270 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10271 javax/swing/plaf/basic/BasicViewportUI.java:
10272 Fixed import statements.
10274 2004-01-10 Michael Koch <konqueror@gmx.de>
10276 * gnu/java/awt/image/ImageDecoder.java
10277 (produce): Made public.
10278 * gnu/java/awt/peer/GLightweightPeer.java,
10279 gnu/java/awt/peer/gtk/GtkToolkit.java:
10282 2004-01-10 Michael Koch <konqueror@gmx.de>
10284 * javax/swing/JRadioButtonMenuItem.java,
10285 javax/swing/JSeparator.java,
10286 javax/swing/JSplitPane.java,
10287 javax/swing/JTextPane.java,
10288 javax/swing/JToolBar.java,
10289 javax/swing/ListCellRenderer.java,
10290 javax/swing/ListModel.java,
10291 javax/swing/MenuElement.java,
10292 javax/swing/OverlayLayout.java,
10293 javax/swing/ProgressMonitor.java,
10294 javax/swing/ProgressMonitorInputStream.java,
10295 javax/swing/Renderer.java,
10296 javax/swing/RootPaneContainer.java,
10297 javax/swing/Scrollable.java,
10298 javax/swing/SingleSelectionModel.java,
10299 javax/swing/ToolTipManager.java,
10300 javax/swing/ViewportLayout.java,
10301 javax/swing/event/DocumentEvent.java,
10302 javax/swing/event/SwingPropertyChangeSupport.java,
10303 javax/swing/event/TreeSelectionEvent.java,
10304 javax/swing/event/UndoableEditEvent.java,
10305 javax/swing/text/AbstractDocument.java,
10306 javax/swing/text/AttributeSet.java,
10307 javax/swing/text/Caret.java,
10308 javax/swing/text/ComponentView.java,
10309 javax/swing/text/DefaultCaret.java,
10310 javax/swing/text/DefaultEditorKit.java,
10311 javax/swing/text/Document.java,
10312 javax/swing/text/EditorKit.java,
10313 javax/swing/text/GapContent.java,
10314 javax/swing/text/Keymap.java,
10315 javax/swing/text/MutableAttributeSet.java,
10316 javax/swing/text/PlainEditorKit.java,
10317 javax/swing/text/Segment.java,
10318 javax/swing/text/Style.java,
10319 javax/swing/text/StyledDocument.java,
10320 javax/swing/text/StyledEditorKit.java,
10321 javax/swing/text/TextAction.java,
10322 javax/swing/text/View.java: Fixed import statements.
10324 2004-01-08 Graydon Hoare <graydon@redhat.com>
10326 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10327 djee@redhat.com's recent inverse ordering of Container elements.
10329 2004-01-09 Michael Koch <konqueror@gmx.de>
10331 * gnu/java/lang/ArrayHelper.java
10332 (equalsArray): Removed.
10334 2004-01-09 Andrew Haley <aph@redhat.com>
10336 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10337 a Utf8Const field before looking at its class.
10339 2004-01-09 Michael Koch <konqueror@gmx.de>
10341 * javax/print/attribute/standard/DocumentName.java,
10342 javax/print/attribute/standard/JobHoldUntil.java,
10343 javax/print/attribute/standard/JobMessageFromOperator.java,
10344 javax/print/attribute/standard/JobName.java,
10345 javax/print/attribute/standard/JobOriginatingUserName.java,
10346 javax/print/attribute/standard/OutputDeviceAssigned.java,
10347 javax/print/attribute/standard/PrinterInfo.java,
10348 javax/print/attribute/standard/PrinterLocation.java,
10349 javax/print/attribute/standard/PrinterMakeAndModel.java,
10350 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10351 javax/print/attribute/standard/PrinterName.java,
10352 javax/print/attribute/standard/RequestingUserName.java: New files.
10353 * Makefile.am (javax_source_files): Added new files.
10354 * Makefile.in: Regenerated.
10356 2004-01-09 Michael Koch <konqueror@gmx.de>
10358 * javax/swing/AbstractAction.java,
10359 javax/swing/AbstractSet.java,
10360 javax/swing/Action.java,
10361 javax/swing/ActionMap.java,
10362 javax/swing/BoundedRangeModel.java,
10363 javax/swing/ButtonModel.java,
10364 javax/swing/CellEditor.java,
10365 javax/swing/CellRendererPane.java,
10366 javax/swing/ComboBoxEditor.java,
10367 javax/swing/DebugGraphics.java,
10368 javax/swing/DefaultCellEditor.java,
10369 javax/swing/DefaultCellRenderer.java,
10370 javax/swing/DefaultComboBoxModel.java,
10371 javax/swing/DefaultDesktopManager.java,
10372 javax/swing/DefaultFocusManager.java,
10373 javax/swing/DefaultListCellRenderer.java,
10374 javax/swing/Icon.java,
10375 javax/swing/JButton.java,
10376 javax/swing/JCheckBoxMenuItem.java,
10377 javax/swing/JDesktopPane.java,
10378 javax/swing/JEditorPane.java,
10379 javax/swing/JMenu.java,
10380 javax/swing/JPanel.java,
10381 javax/swing/JPasswordField.java,
10382 javax/swing/JPopupMenu.java,
10383 javax/swing/JProgressBar.java: Reworked imports.
10385 2004-01-09 Michael Koch <konqueror@gmx.de>
10387 * java/awt/geom/PathIterator.java
10388 (WIND_EVEN_ODD): Removed redundant modifiers.
10389 (WIND_NON_ZERO): Likewise.
10390 (SEG_MOVETO): Likewise.
10391 (SEG_LINETO): Likewise.
10392 (SEG_QUADTO): Likewise.
10393 (SEG_CUBICTO): Likewise.
10394 (SEG_CLOSE): Likewise.
10395 * java/awt/image/SinglePixelPackedSampleModel.java:
10396 Removed redundant semicolon.
10397 * java/io/ObjectInputStream.java
10398 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10399 * java/util/logging/Filter.java
10400 (isLoggable): Removed redundant modifier.
10401 * java/util/logging/LogManager.java:
10402 Removed redundant semicolon.
10403 * java/util/logging/XMLFormatter.java
10404 (format): Removed unused variable "key".
10406 2004-01-08 Fernando Nasser <fnasser@redhat.com>
10408 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
10409 New name for the former setFile native method.
10410 (setFile): New method.
10411 (setDirectory): Implemented.
10412 (connectSignals): New native method.
10413 (setFilenameFilter): Improve comment.
10414 (getGraphics): Comment.
10415 (gtkHideFileDialog): New method.
10416 (gtkDisposeFileDialog): New method.
10417 (gtkSetFilename): New method.
10418 * java/awt/Dialog.java (show): Block on modal dialogs, but only
10419 for FileDialog for now.
10420 (hide): New method.
10421 (dispose): New method.
10422 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
10423 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
10424 deprecated creation functions. Make dialog modal. Add it to the
10426 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
10428 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
10430 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
10432 (window_closed): New function.
10433 (ok_clicked): New function.
10434 (cancel_clicked): New function.
10436 2004-01-08 Michael Koch <konqueror@gmx.de>
10438 * javax/swing/JLayeredPane.java: Revert changes to standard
10439 boilerplate, reworked imports.
10441 2004-01-07 Tom Tromey <tromey@redhat.com>
10444 * verify.cc (state::merge): Copy changed locals out of subroutine
10446 (state::FLAG_CHANGED): New const.
10447 (state::FLAG_UNUSED): Likewise.
10448 (state::local_changed): Removed. Updated all users.
10449 (state::flags): New field.
10450 (state::merge): Added jsr_semantics argument, more logic.
10451 (push_jump_merge): Added jsr_semantics argument.
10452 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
10453 merging through the jsr instruction.
10455 2004-01-07 Tom Tromey <tromey@redhat.com>
10457 * scripts/MakeDefaultMimeTypes.java: Use \n, not
10460 2004-01-07 Graydon Hoare <graydon@redhat.com>
10462 * java/awt/Container.java (LightweightDispatcher): Implement.
10463 (visitChild): Reuse graphics object.
10464 (dispatchEventImpl): Optionally dispatch to lightweight.
10465 (addNotifyContainerChildren): Build LightweightDispatcher.
10467 2004-01-07 David Jee <djee@redhat.com>
10469 * java/awt/Container.java
10470 (update): Clear only the clipped region, instead of clearing the
10472 (visitChildren): Visit children in descending order.
10474 2004-01-07 Michael Koch <konqueror@gmx.de>
10476 * java/lang/reflect/Array.java: Merged documentation with classpath.
10478 2004-01-07 Michael Koch <konqueror@gmx.de>
10480 * java/text/CollationElementIterator.java
10481 (textIndex): Renamed from index.
10482 * java/text/CollationKey.java
10483 (collator): New member.
10484 (CollationKey): New argument for parent collator.
10485 (equals): Check for same collator, source string and key array.
10486 * java/text/RuleBasedCollator.java:
10488 (RuleBasedCollator): Don't re-initialize frenchAccents with default
10490 (getCollationElementIterator): Rewritten.
10491 (getCollationKey): Added new argument to CollationKey constructor.
10493 2004-01-07 Michael Koch <konqueror@gmx.de>
10495 * gnu/java/nio/DatagramChannelImpl.java
10496 (blocking): Removed.
10497 (DatagramChannelImpl): Call configureBlocking().
10498 (implConfigureBlocking): Dont initialize blocking.
10499 * gnu/java/nio/ServerSocketChannelImpl.java
10500 (blocking): Removed.
10501 (ServerSocketChannelImpl): Call configureBlocking().
10502 (implConfigureBlocking): Dont initialize blocking.
10503 * gnu/java/nio/SocketChannelImpl.java
10504 (blocking): Removed.
10505 (SocketChannelImpl): Call configureBlocking().
10506 (implConfigureBlocking): Dont initialize blocking.
10507 (connect): Use isBlocking().
10508 * java/nio/channels/spi/AbstractSelectableChannel.java
10509 (configureBlocking): Use blockingLock() instead of LOCK.
10510 Set blocking after successfully called implConfigureBlocking().
10511 (register): Use blockingLock() instead of LOCK.
10513 2004-01-07 Michael Koch <konqueror@gmx.de>
10515 * java/net/ServerSocket.java (isBound): Fixed documentation.
10517 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
10519 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
10520 (changeEvent): Create event object on demand.
10521 (DefaultBoundedRangeModel, toString, setValue, setExtent,
10522 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
10523 fireStateChanged): Re-written.
10524 * javax/swing/event/EventListenerList.java: Reformatted, document
10526 (toString): Implemented.
10527 (getListeners): Re-written.
10528 (remove): Re-written.
10530 (NO_LISTENERS): New singleton field.
10531 (listenerList): Declare as transient; document.
10532 (serialVersionUID): Document.
10533 (getListenerCount(Class)): More efficient implementation,
10534 also accepts null argument. Improve Javadoc.
10535 (getListenerCount()): Remove unnecessary cast; docfix.
10536 * javax/swing/undo/UndoableEditSupport.java:
10537 Re-format, document.
10538 (UndoableEditSupport): Set realSource field. Improve documentation.
10539 (_postEdit): Iterate over cloned listener vector.
10540 (toString): Don't emit realSource.
10541 (beginUpdate, endUpdate): Support nested updates.
10542 (postEdit): Use compound edit if present.
10544 2004-01-06 Graydon Hoare <graydon@redhat.com>
10546 * java/awt/Container.java (swapComponents): Add forgotten
10547 function, required for JLayeredPane change.
10549 2004-01-06 Michael Koch <konqueror@gmx.de>
10551 * java/text/CollationElementIterator.java: Reformated.
10552 (CollationElementIterator): Changed order of arguments.
10553 * java/text/RuleBasedCollator.java
10554 (RuleBasedCollator): Merged class documentation.
10555 (CollationElement): Added documentation.
10556 (compare): Reformated, renamed arguments.
10557 (equals): Likewise.
10558 (getCollationElementIterator): Likewise.
10559 (getCollationKey): Likewise.
10561 2004-01-06 Graydon Hoare <graydon@redhat.com>
10563 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
10565 2004-01-06 Michael Koch <konqueror@gmx.de>
10567 * gnu/java/net/protocol/file/Connection.java:
10568 Reformated copyright.
10569 (hdrHash): Removed.
10571 (gotHeaders): Removed.
10572 (getHeaderField): Removed.
10573 (getHeaderField): Removed.
10574 (getHeaderFieldKey): Removed.
10576 (getField): Removed.
10577 (getHeaders): Removed.
10579 2004-01-06 Michael Koch <konqueror@gmx.de>
10581 * javax/print/attribute/standard/DateTimeAtCompleted.java,
10582 javax/print/attribute/standard/DateTimeAtCreation.java,
10583 javax/print/attribute/standard/DateTimeAtProcessing.java,
10584 javax/print/attribute/standard/JobImpressionsCompleted.java,
10585 javax/print/attribute/standard/JobKOctets.java,
10586 javax/print/attribute/standard/JobKOctetsProcessed.java,
10587 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
10588 javax/print/attribute/standard/JobPrioritySupported.java: New files.
10589 * Makefile.am (javax_source_files): Added new files.
10590 * Makefile.in: Regenerated.
10592 2004-01-06 Michael Koch <konqueror@gmx.de>
10594 * java/net/URLConnection.java
10595 (contentHandler): Removed.
10597 (getHeaderFields): Return an empty map instead of null.
10598 (getContent): Connect if needed, renamed "cType" to "type" and
10599 "contentHandler" to "ch" and made it a local variable.
10600 (getPermission): Don't use package in class name.
10601 (setDefaultRequestProperty): Fixed typo in documentation.
10602 (initializeDateFormats): Made locale a local variable.
10604 2004-01-06 Michael Koch <konqueror@gmx.de>
10606 * java/lang/Package.java
10607 (getPackage): Get the current class loader directly.
10608 * java/lang/SecurityManager.java
10609 (currentLoadedClass): Dont iterate over class contexts.
10610 (classLoaderDepth): Don't check class loaders if everything is allowed.
10612 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10614 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10615 (pre_event_handler): Set all insets to 0 when a Configure event
10616 is received for a GtkPlug.
10617 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
10618 Make handle long, not int.
10619 (EmbeddedWindow()): New constructor.
10620 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
10622 (setHandle): New method.
10623 (getHandle): Return long, not int.
10624 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
10626 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
10627 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
10628 (create(long)): Take long parameter, not int. Cast gtk_plug_new
10629 argument to GdkNativeWindow.
10630 (construct): New method.
10631 (embed): New method.
10633 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
10634 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
10635 (create(int, int)): New method.
10636 (create): Call new create method.
10637 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
10639 (childResized): Remove native implementation. Implement in
10641 (getHScrollbarHeight, getVScrollbarWidth): Call
10642 gtk_widget_size_request to get scrollbar dimensions.
10643 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
10644 call getVScrollbarWidth and getHScrollbarHeight when vertical
10645 and horizontal scrollbars respectively are needed.
10646 (doLayout): Enlarge child if it is smaller than the viewport.
10648 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10650 * java/awt/Dialog.java (constructor): Accept null title as per spec.
10651 * java/awt/FileDialog.java (constructor): Throw exception on invalid
10652 argument as per spec.
10654 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10656 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
10658 (remove): Ditto. Also, Check for valid argument.
10659 (removeAll): Use peer interface method.
10660 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
10661 native add function.
10662 (nativeRemove): New name for native remove function.
10663 (getHistory): New native function.
10664 (constructor): Generate ItemEvent.
10665 (add): Ditto, if selection is changed.
10666 (remove): Ditto, ditto.
10667 (removeAll): Add implementation.
10668 (handleEvent): Remove. Dead code.
10669 (choicePostItemEvent): Add comment.
10670 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
10671 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
10672 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
10673 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
10674 comments and fix condition to change selection.
10675 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
10676 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
10677 remove all capability.
10678 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
10679 (item_activate): Add cast to remove compiler warning.
10681 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10683 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
10684 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10685 (getPreferredSize): Call preferredSize.
10686 (preferredSize): Call gtkWidgetGetPreferredDimensions.
10687 (getMinimumSize): Call minimumSize.
10688 (minimumSize): Call gtkWidgetGetPreferredDimensions.
10689 (gtkWidgetGetDimensions): Return the peer widget's current size
10691 (gtkWidgetGetPreferredDimensions): Return the peer widget's
10692 natural size request.
10694 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
10696 Thanks to Brian Gough <bjg@network-theory.com>
10697 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
10698 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
10700 2004-01-04 Matthias Klose <doko@debian.org>
10702 * aclocal.m4: Rebuilt using "aclocal -I .".
10703 * configure: Rebuilt.
10705 2004-01-03 Per Bothner <per@bothner.com>
10707 * java/util/Date.java (parse): Fix a number of problems.
10708 (skipParens): Remove no-longer-needed method.