OSDN Git Service

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