OSDN Git Service

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