OSDN Git Service

2004-05-07 Jerry Quinn <jlquinn@optonline.net>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2004-05-07  Jerry Quinn  <jlquinn@optonline.net>
2
3         * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4         WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
5         (SimpleTimeZone): Tweak docs.  Add new variation.
6         (setStartRule,setEndRule): Add new variations.  Use
7         startTimeMode and endTimeMode.
8
9 2004-05-07  Jerry Quinn  <jlquinn@optonline.net>
10
11         * java/util/Calendar.java (getActualMinimum,
12         getActualMaximum):  Remove abstract.  Implement.
13
14 2004-05-06  Bryce McKinlay  <mckinlay@redhat.com>
15
16         Run the jni tests using the interpreter.
17         * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
18         options_cxx to shared lib compile command.
19         (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
20         they are used to link the shared lib, not the main binary.
21         Use libjava_invoke to run gij.
22
23 2004-05-06  Michael Koch  <konqueror@gmx.de>
24
25         * java/util/logging/Level.java
26         (parse): Use == instead of String.equals().
27
28 2004-05-06  Bryce McKinlay  <mckinlay@redhat.com>
29
30         * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use 
31         verify_field_signature and verify_method_signature, not 
32         _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
33         (_Jv_ClassReader::handleField): Likewise.
34         (_Jv_ClassReader::handleMethod): Likewise.
35
36 2004-05-06  Michael Koch  <konqueror@gmx.de>
37
38         * javax/swing/table/TableColumn.java:
39         Reformated.
40
41 2004-05-06  Michael Koch  <konqueror@gmx.de>
42
43         * javax/imageio/spi/ImageReaderWriterSpi.java
44         (ImageReaderWriterSpi): Made it public.
45         * javax/imageio/stream/ImageInputStream.java:
46         Clean up imports.
47
48 2004-05-06  Michael Koch  <konqueror@gmx.de>
49
50         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
51         Removed empty line.
52
53 2004-05-06  Michael Koch  <konqueror@gmx.de>
54
55         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
56         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
57         New files.
58         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
59         Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
60         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
61         Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
62         their own source file.
63         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
64         Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
65         their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
66         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
67         (create): Define variable on top of function.
68         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
69         (menu_pos): Prototyped.
70         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
71         (setTitle): Removed.
72         * jni/gtk-peer/gthread-jni.c
73         (gdk_threads_wake): Removed.
74         * Makefile.am (gtk_c_source_files): Added new files
75         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
76         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
77         * Makefile.in: Regenerated.
78
79 2004-05-05  Bryce McKinlay  <mckinlay@redhat.com>
80
81         * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
82         call.
83
84 2004-05-05  Mark Wielaard  <mark@klomp.org>
85
86         * javax/swing/AbstractButton.java: Replace special HTML entities with
87         ASCII equivalent.
88         * javax/swing/DefaultBoundedRangeModel.java: Likewise.
89         * javax/swing/DefaultButtonModel.java: Likewise.
90         * javax/swing/DefaultListModel.java: Likewise.
91         * javax/swing/JList.java: Likewise.
92         * javax/swing/JSlider.java: Likewise.
93         * javax/swing/ListModel.java: Likewise.
94         * javax/swing/Popup.java: Likewise.
95         * javax/swing/SwingUtilities.java: Likewise.
96
97 2004-05-05  Michael Koch  <konqueror@gmx.de>
98
99         * javax/swing/AbstractButton.java,
100         javax/swing/ActionMap.java,
101         javax/swing/DefaultButtonModel.java,
102         javax/swing/DefaultListModel.java,
103         javax/swing/ImageIcon.java,
104         javax/swing/JComboBox.java,
105         javax/swing/JComponent.java,
106         javax/swing/JFrame.java,
107         javax/swing/JInternalFrame.java,
108         javax/swing/JMenuBar.java,
109         javax/swing/JMenuItem.java,
110         javax/swing/JOptionPane.java,
111         javax/swing/JProgressBar.java,
112         javax/swing/JRootPane.java,
113         javax/swing/JScrollBar.java,
114         javax/swing/JScrollPane.java,
115         javax/swing/JSeparator.java,
116         javax/swing/JSlider.java,
117         javax/swing/JTabbedPane.java,
118         javax/swing/JTable.java,
119         javax/swing/JTextField.java,
120         javax/swing/JToolBar.java,
121         javax/swing/JToolTip.java,
122         javax/swing/JTree.java,
123         javax/swing/JViewport.java,
124         javax/swing/JWindow.java,
125         javax/swing/KeyStroke.java,
126         javax/swing/LookAndFeel.java,
127         javax/swing/SwingUtilities.java,
128         javax/swing/Timer.java,
129         javax/swing/ToolTipManager.java,
130         javax/swing/UIDefaults.java,
131         javax/swing/border/TitledBorder.java,
132         javax/swing/filechooser/FileSystemView.java,
133         javax/swing/plaf/basic/BasicButtonListener.java,
134         javax/swing/plaf/basic/BasicButtonUI.java,
135         javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
136         javax/swing/plaf/basic/BasicGraphicsUtils.java,
137         javax/swing/plaf/basic/BasicLabelUI.java,
138         javax/swing/plaf/basic/BasicMenuItemUI.java,
139         javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
140         javax/swing/plaf/basic/BasicRootPaneUI.java,
141         javax/swing/plaf/basic/BasicScrollBarUI.java,
142         javax/swing/plaf/basic/BasicScrollPaneUI.java,
143         javax/swing/plaf/basic/BasicSliderUI.java,
144         javax/swing/plaf/basic/BasicTabbedPaneUI.java,
145         javax/swing/plaf/basic/BasicToggleButtonUI.java,
146         javax/swing/table/JTableHeader.java,
147         javax/swing/text/AbstractDocument.java,
148         javax/swing/text/DefaultCaret.java,
149         javax/swing/text/StyledEditorKit.java,
150         javax/swing/tree/DefaultTreeCellEditor.java:
151         Cleaned up imports.
152
153 2004-05-05  Michael Koch  <konqueror@gmx.de>
154
155         * java/util/prefs/AbstractPreferences.java
156         (AbstractPreferences): Added parenthesis for clarity.
157         Closes classpath bug #7940.
158
159 2004-05-05  Tom Tromey  <tromey@redhat.com>
160
161         * javax/naming/CompoundName.java (endsWith): Look at correct
162         element of source name.
163
164 2004-05-05  Mark Wielaard  <mark@klomp.org>
165
166         Reported by f.haeglsperger@gmx.de [classpath patch #2485]
167         * java/util/HashMap.java (rehash): Add entry at start of bucket.
168
169 2004-05-05  Tom Tromey  <tromey@redhat.com>
170
171         * java/io/BufferedReader.java (skip): Removed unused
172         variable.
173
174 2004-05-05  Michael Koch  <konqueror@gmx.de>
175
176         * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
177
178 2004-05-05  Dalibor Topic  <robilad@kaffe.org>
179
180         * java/text/AttributedString.java,
181         java/text/AttributedStringIterator.java,
182         java/text/Collator.java,
183         java/text/DecimalFormatSymbols.java,
184         java/text/NumberFormat.java,
185         java/text/RuleBasedCollator.java:
186         Cleaned up imports.
187
188 2004-05-05  Tom Tromey  <tromey@redhat.com>
189
190         * java/text/Format.java: Cleaned up imports.
191         * java/text/DecimalFormat.java: Cleaned up imports.
192         * java/security/SecureRandom.java: Cleaned up imports.
193         (SecureRandom): Removed unused variable.
194         * java/security/UnresolvedPermission.java: Cleaned up imports.
195         * java/util/Date.java (parse): Removed unused variable.
196         * java/util/ResourceBundle.java: Cleaned up imports.
197         (getBundle): Removed unused variable.
198         (tryBundle): Likewise.
199         * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
200
201 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
202
203         * java/text/SimpleDateFormat.java:
204         (formatWithAttribute): New method. It implements
205         the formatting process with attributes.
206         (format): Use formatWithAttribute.
207         (formatToCharacterIterator): New method. Use
208         formatWithAttribute.
209
210 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
211
212         * java/text/MessageFormat.java:
213         (class Field): New class.
214         (formatToCharacterIterator): New method.
215         (format): Use formatInternal now.
216         (formatInternal): New method. String formatter should
217         be done here (with attributes). Attributes merging supported.
218         (parse): More documentation.
219         (getFormatsByArgumentIndex): New method.
220         (setFormatByArgumentIndex): New method.
221         (setFormatsByArgumentIndex): New method.
222
223 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
224
225         * java/text/DecimalFormat.java
226         (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
227         (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
228         (parse): Fixed handling of exponentiation notation and grouping.
229
230 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
231
232         * java/text/DecimalFormat.java
233         (scanFix): Build attribute array. Fixed error reporting.
234         (applyPatternWithSymbols): Store attributes for the prefix and
235         suffix.
236         (formatInternal): New method. Changed the way the string is
237         computed. Implemented attributes. Cleant up rounding in
238         exponential notation.
239         (format): Use formatInternal.
240         (formatToCharacterIterator): New method.
241         (exponentRound, negativePrefixRanges, positivePrefixRanges,
242         negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
243         positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
244         New fields.
245
246 2004-05-04  Dalibor Topic  <robilad@kaffe.org>
247
248         * java/security/interfaces/DSAKeyPairGenerator.java,
249         java/security/interfaces/DSAPrivateKey.java,
250         java/security/interfaces/DSAPublicKey.java,
251         java/security/interfaces/RSAPrivateKey.java,
252         java/security/interfaces/RSAPublicKey.java:
253         Cleaned up imports.
254
255 2004-05-04  Michael Koch  <konqueror@gmx.de>
256
257         * java/nio/ByteBuffer.java,
258         java/nio/CharBuffer.java,
259         java/nio/DoubleBuffer.java,
260         java/nio/FloatBuffer.java,
261         java/nio/IntBuffer.java,
262         java/nio/LongBuffer.java,
263         java/nio/ShortBuffer.java:
264         (compareTo): Fixed bogus implementation in all buffer classes.
265
266 2004-05-04  Ingo Proetel  <proetel@aicas.com>
267
268         * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
269         32 bit pixels not 8 bit pixels.
270         (isCompatibleRaster): Added javadoc comment.
271
272 2004-05-04  Ingo Proetel  <proetel@aicas.com>
273
274         * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
275         scanline stride.
276
277 2004-05-04  Ingo Proetel  <proetel@aicas.com>
278
279         * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
280         (getColorModel): Return the actual color model.
281         (getRaster): Implemented.
282         (ColorRaster): New inner class.
283         * java/awt/SystemColor.java (createContext): Use ColorModel when creating
284         a PaintContext.
285         * java/awt/Color.java (<init>): Make exception more verbose.
286         (createContext): Use ColorModel when creating a PaintContext.
287
288 2004-05-04  Michael Koch  <konqueror@gmx.de>
289
290         * gnu/java/text/CharacterBreakIterator.java
291         (previous): Removed unused variable.
292
293 2004-05-04  Guilhem Lavaux <guilhem@kaffe.org>
294
295         * gnu/java/text/FormatBuffer.java,
296         gnu/java/text/AttributedFormatBuffer.java,
297         gnu/java/text/StringFormatBuffer.java: New classes to implement
298         attributed iterators in java.text.
299         * gnu/java/text/FormatCharacterIterator.java: Moved 
300         from java/text as it is an internal class.
301         * java/text/FormatCharacterIterator.java: Removed.
302         * java/text/Format.java:
303         Import gnu.java.text.FormatCharacterIterator.
304         * Makefile.am (java_source_files): Added new files.
305         * Makefile.in: Regenerated.
306         
307
308 2004-05-04  Mark Wielaard  <mark@klomp.org>
309
310         * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
311
312 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
313
314         * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
315         * Makefile.in: Rebuilt.
316
317 2004-05-03  Mark Wielaard  <mark@klomp.org>
318
319         * gnu/java/security/der/DERReader.java: Call static methods staticly.
320         * java/awt/TextComponent.java (select): Use selectionEnd parameter.
321         * java/net/URL.java
322         (set(String, String, int, String, String, String, String, String)):
323         Assign this.file to path or path + "?" + query.
324         * java/util/Arrays.java: Call static methods staticly.
325         * java/util/zip/ZipEntry.java: Likewise.
326         * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
327         dir to this.direction.
328         * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
329         Assign static field only once.
330         (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
331
332 2004-05-03  Mark Wielaard  <mark@klomp.org>
333
334         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
335         unused variables hScrollbarHeight and vScrollbarWidth.
336         (preferredSize): Likewise.
337         * gnu/java/security/provider/DSAParameters.java (engineToString):
338         Removed unused call to System.getProperty("line.seperator");
339         * java/security/Security.java (loadProviders): Return result.
340
341 2004-05-03  Tom Tromey  <tromey@redhat.com>
342
343         * java/net/URLStreamHandler.java (toExternalForm): Removed
344         unused variables.
345         unused constructor.
346         * java/math/BigDecimal.java (divide): Removed unused variable.
347         * java/lang/Throwable.java: Cleaned up imports.
348         * java/lang/ClassLoader.java: Cleaned up imports.
349         * java/io/FilePermission.java (implies): Removed unused
350         variable.
351         * java/awt/TextComponent.java: Removed unused import.
352         * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
353         * gnu/java/util/DoubleEnumeration.java: Removed unused import.
354         * gnu/java/text/WordBreakIterator.java: Removed unused import.
355         * gnu/java/text/SentenceBreakIterator.java: Removed unused
356         import.
357         * gnu/java/text/LineBreakIterator.java: Removed unused import.
358         * gnu/java/text/CharacterBreakIterator.java: Removed
359         unused import.
360         * gnu/java/security/provider/DSAKeyPairGenerator.java:
361         Cleaned up imports.
362         * gnu/java/security/der/DERWriter.java: Cleaned up imports.
363         * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
364         unused method.
365         * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
366         * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
367         * gnu/java/io/Base64InputStream.java: Cleaned up imports.
368         * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
369         * gnu/classpath/ServiceFactory.java: Cleaned up imports.
370         (lookupProviders): Removed unused variable.
371         (loadNextServiceProvider): Likewise.
372         * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
373
374 2004-05-03  Michael Koch  <konqueror@gmx.de>
375
376         Fixes PR libgcj/14695:
377         * java/net/NetworkInterface.java
378         (getByName): Return null when no interface was found.
379
380 2004-04-30  Ranjit Mathew  <rmathew@hotmail.com>
381             Tom Tromey  <tromey@redhat.com>
382
383         * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
384         additional option "-Wmissing-prototypes" for compiling C sources.
385         Print actual filename for pass/fail rather than $name.c.
386         * testsuite/libjava.jni/PR15133.java: New testcase file.
387         * testsuite/libjava.jni/PR15133.c: Likewise.
388         * testsuite/libjava.jni/PR15133.out: Likewise.
389
390 2004-04-30  Roger Sayle  <roger@eyesopen.com>
391
392         * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
393         ceil and floor.
394
395 2004-04-25  Ranjit Mathew  <rmathew@hotmail.com>
396         
397         * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
398         limit the maximum heap size to avoid unnecessary thrashing.
399
400 2004-04-24  Jerry Quinn  <jlquinn@optonline.net>
401
402         * java/text/CollationElementIterator.java (reset): Reset
403         lookahead variables.
404
405 2004-04-23  Mark Wielaard  <mark@klomp.org>
406
407         * jni/classpath/jcl.c: Changed C++ comments into C comments.
408
409 2004-04-23 Dalibor Topic <robilad@kaffe.org>
410
411         * java/sql/DriverManager.java:
412         Cleaned up imports.
413
414 2004-04-23  Michael Koch  <konqueror@gmx.de>
415
416         * java/net/URL.java
417         (hashcode): Don't initialize with default value explicitely.
418         (getContent): Removed redundant "final" keyword.
419         (openStream): Likewise.
420         (getURLStreamHandler): Fixed coding style.
421         * java/net/URLConnection.java
422         (defaultAllowUserInteraction): Don't initialize with default value
423         explicitely.
424         (connected): Likewise.
425         (doOutput): Likewise.
426         (ifModifiedSince): Likewise.
427         (dateformats_initialized): Likewise.
428         (setURLStreamHander): Use StreamTokenizer where it belongs to.
429
430 2004-04-23  Michael Koch  <konqueror@gmx.de>
431
432         * gnu/java/nio/channels/FileChannelImpl.java
433         (SET, CUR): Unused, removed.
434         (read): Implement here directly.
435         (implRead): Removed.
436         (write): Implement here directly.
437         (implWrite): Removed.
438
439 2004-04-23  Dalibor Topic  <robilad@kaffe.org>
440
441         * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
442         javax/rmi/CORBA/Stub.java,
443         javax/rmi/CORBA/Util.java,
444         javax/rmi/CORBA/ValueHandler.java,
445         javax/rmi/CORBA/ValueHandler.java,
446         javax/rmi/PortableRemoteObject.java:
447         Cleaned up imports.
448
449 2004-04-23 Dalibor Topic <robilad@kaffe.org>
450
451         * java/util/jar/JarFile.java,
452         java/util/jar/JarInputStream.java,
453         java/util/jar/JarOutputStream.java,
454         java/util/jar/Manifest.java:
455         Cleaned up imports.
456
457 2004-04-23 Dalibor Topic <robilad@kaffe.org>
458
459         * java/util/ArrayList.java,
460         java/util/Calendar.java,
461         java/util/Currency.java,
462         java/util/HashMap.java,
463         java/util/HashSet.java,
464         java/util/Hashtable.java,
465         java/util/LinkedList.java,
466         java/util/Properties.java,
467         java/util/PropertyPermission.java,
468         java/util/TimeZone.java,
469         java/util/TreeMap.java,
470         java/util/TreeSet.java,
471         java/util/Vector.java,
472         java/util/WeakHashMap.java:
473         Cleaned up imports.
474
475 2004-04-23  Dalibor Topic  <robilad@kaffe.org>
476
477         * java/util/logging/FileHandler.java,
478         java/util/logging/Formatter.java,
479         java/util/logging/Handler.java,
480         java/util/logging/Logger.java,
481         java/util/logging/SimpleFormatter.java,
482         java/util/logging/XMLFormatter.java:
483         Cleaned up imports.
484
485 2004-04-22  Mark Wielaard  <mark@klomp.org>
486
487         * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
488         -Wno-long-long flags variable.
489         (gtk_c_files): Use PEDANTIC_CFLAGS.
490         * Makefile.in: Regenerated.
491
492 2004-04-22  Mark Wielaard  <mark@klomp.org>
493
494         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
495         Changed C++ comments into C comments.
496         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
497         Likewise.
498
499 2004-04-22  Michael Koch  <konqueror@gmx.de>
500
501         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
502         Merged copyright year with GNU classpath.
503
504 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
505
506         * javax/security/auth/x500/X500Principal.java:
507         Cleaned up imports.
508
509 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
510
511         * javax/swing/JSlider.java:
512         Fixed HTML tags in comments.
513
514 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
515
516         * javax/accessibility/AccessibleText.java:
517         Cleaned up imports.
518
519 2004-04-22  Jeroen Frijters <jeroen@sumatra.nl>
520
521         * java/net/URLStreamHandler.java
522         (parseURL): Convert the file path to using '/' instead of native
523         file separator.
524
525 2004-04-22  Guilhem Lavaux <guilhem@kaffe.org>
526
527         * java/net/URL.java
528         (userInfo): New field.
529         (URL): Set authority to the right value.
530         (setURL): Fixed authority and file initialization.
531         * java/net/URLStreamHandler.java
532         (parseURL): Take care of the query tag. Build authority.
533         (toExternalForm): Fixed URL building using authority.
534
535 2004-04-22  Michael Koch  <konqueror@gmx.de>
536
537         * java/net/Socket.java
538         (impl): Made package-private.
539         * java/net/ServerSocket.java
540         (implAccept): Access Socket.impl field directly.
541
542 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
543
544         * java/util/prefs/Preferences.java,
545         java/util/prefs/InvalidPreferencesFormatException.java,
546         java/util/prefs/BackingStoreException.java,
547         java/util/prefs/AbstractPreferences.java:
548         Cleaned up imports.
549
550 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
551
552         * java/util/regex/Matcher.java,
553         java/util/regex/Pattern.java:
554         Cleaned up imports.
555
556 2004-04-22  Michael Koch  <konqueror@gmx.de>
557
558         * java/nio/charset/IllegalCharsetNameException.java
559         (charsetName): Made private.
560         (IllegalCharsetNameException): Added @param tag to javadoc.
561         (getCharsetName): Added @return tag to javadoc.
562         * java/nio/charset/MalformedInputException.java
563         (MalformedInputException): Added @param tag to javadoc.
564         (getInputLength): Revised method description, added @return tag.
565         (getMessage): Added @return tag.
566
567 2004-04-22  Jerry Quinn  <jlquinn@optonline.net>
568
569         * java/awt/Font.java (deriveFont): Implement missing variants.
570         * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
571         missing variants.
572
573 2004-04-21  Bryce McKinlay  <mckinlay@redhat.com>
574
575         * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
576         Set method->index values for interface methods to their itable index.
577         (initializeClass): Call _Jv_LayoutInterfaceMethods.
578
579 2004-04-21  Michael Koch  <konqueror@gmx.de>
580
581         * java/nio/DirectByteBufferImpl.java
582         (shiftDown): Made static, give address as argument and
583         provide a convenience method that overwrites shiftDown in
584         ByteBufferImpl and calls the native shiftDown.
585         * java/nio/MappedByteBufferImpl.java
586         (): Use optimized method in DirectByteBufferImpl.
587         * java/nio/natDirectByteBufferImpl.cc
588         (shiftDown): Changed method signature. Removed usage of array_offset.
589
590 2004-04-21  Michael Koch  <konqueror@gmx.de>
591
592         * gnu/java/net/natPlainSocketImplPosix.cc
593         (SocketInputStream::read): Make sure returned data is a byte value.
594
595 2004-04-21  Michael Koch  <konqueror@gmx.de>
596
597         * gnu/classpath/ServiceFactory.java,
598         gnu/classpath/ServiceProviderLoadingAction.java,
599         javax/imageio/ImageReader.java,
600         javax/imageio/ImageTranscoder.java,
601         javax/imageio/ImageWriter.java,
602         javax/imageio/package.html,
603         javax/imageio/spi/IIOServiceProvider.java,
604         javax/imageio/spi/ImageInputStreamSpi.java,
605         javax/imageio/spi/ImageOutputStreamSpi.java,
606         javax/imageio/spi/ImageReaderWriterSpi.java,
607         javax/imageio/spi/ImageTranscoderSpi.java,
608         javax/imageio/spi/RegisterableService.java,
609         javax/imageio/spi/ServiceRegistry.java,
610         javax/imageio/spi/package.html,
611         javax/imageio/stream/IIOByteBuffer.java,
612         javax/imageio/stream/ImageInputStream.java,
613         javax/imageio/stream/ImageOutputStream.java,
614         javax/imageio/stream/package.html:
615         New files.
616         * Makefile.am
617         (ordinary_java_source_files): Added
618         gnu/classpath/ServiceFactory.java and
619         gnu/classpath/ServiceProviderLoadingAction.java.
620         (javax_source_files): Added
621         javax/imageio/ImageReader.java,
622         javax/imageio/ImageTranscoder.java,
623         javax/imageio/ImageWriter.java,
624         javax/imageio/spi/IIOServiceProvider.java,
625         javax/imageio/spi/ImageInputStreamSpi.java,
626         javax/imageio/spi/ImageOutputStreamSpi.java,
627         javax/imageio/spi/ImageReaderWriterSpi.java,
628         javax/imageio/spi/ImageTranscoderSpi.java,
629         javax/imageio/spi/RegisterableService.java,
630         javax/imageio/spi/ServiceRegistry.java,
631         javax/imageio/stream/IIOByteBuffer.java,
632         javax/imageio/stream/ImageInputStream.java and
633         javax/imageio/stream/ImageOutputStream.java.
634         * Makefile.in: Regenerated.
635
636 2004-04-21  Michael Koch  <konqueror@gmx.de>
637
638         * java/util/Properties.java
639         (load): Fix wrongly merged fix.
640
641 2004-04-21  Mark Wielaard  <mark@klomp.org>
642
643         * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
644         malloc and free buf.
645
646 2004-04-21  Dalibor Topic  <robilad@kaffe.org>
647
648         * javax/naming/AuthenticationException.java,
649         javax/naming/AuthenticationNotSupportedException.java,
650         javax/naming/CannotProceedException.java,
651         javax/naming/CommunicationException.java,
652         javax/naming/CompoundName.java,
653         javax/naming/ConfigurationException.java,
654         javax/naming/ContextNotEmptyException.java,
655         javax/naming/InitialContext.java,
656         javax/naming/InsufficientResourcesException.java,
657         javax/naming/InterruptedNamingException.java,
658         javax/naming/LimitExceededException.java,
659         javax/naming/LinkException.java,
660         javax/naming/LinkLoopException.java,
661         javax/naming/LinkRef.java,
662         javax/naming/MalformedLinkException.java,
663         javax/naming/Name.java,
664         javax/naming/NameAlreadyBoundException.java,
665         javax/naming/NameNotFoundException.java,
666         javax/naming/NamingSecurityException.java,
667         javax/naming/NoInitialContextException.java,
668         javax/naming/NoPermissionException.java,
669         javax/naming/NotContextException.java,
670         javax/naming/PartialResultException.java,
671         javax/naming/ReferralException.java,
672         javax/naming/ServiceUnavailableException.java,
673         javax/naming/SizeLimitExceededException.java,
674         javax/naming/TimeLimitExceededException.java,
675         javax/naming/directory/Attribute.java,
676         javax/naming/directory/Attributes.java,
677         javax/naming/directory/SearchResult.java,
678         javax/naming/event/NamingExceptionEvent.java,
679         javax/naming/spi/ResolveResult.java:
680         Cleaned up imports.
681
682 2004-04-21  Mark Wielaard  <mark@klomp.org>
683
684         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
685         Changed C++ comments into C comments. Removed commented out code.
686         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
687         Likewise.
688         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
689         Likewise.
690         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
691         Likewise.
692         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
693         Likewise.
694         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
695         Likewise.
696         * native/jni/gtk-peer/gthread-jni.c:
697         Likewise.
698
699 2004-04-21  Mark Wielaard  <mark@klomp.org>
700
701         * javax/awt/JFrame.java: Implement WindowConstants. Remove final
702         static fields defined in interface.
703         * javax/awt/JDialog.java: Likewise.
704         (JDialog): Make constructors public.
705         (getDefaultCloseOperation): Make public.
706         (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
707         (setDefaultCloseOperation): Make public. Check argument. Add API doc.
708         * javax/swing/JViewport.java (JViewport): Make constructor public.
709
710 2004-04-21  Michael Koch  <konqueror@gmx.de>
711
712         * java/util/Map.java
713         (Entry): Removed redundant "static" modifier.
714         * java/text/AttributedCharacterIterator.java:
715         Updated copyright year.
716
717 2004-04-20  Michael Koch  <konqueror@gmx.de>
718
719         * javax/naming/directory/SearchControls.java:
720         Don't explicitely extend java.lang.Object.
721         * javax/naming/spi/DirStateFactory.java:
722         Merged copyright year with GNU classpath.
723
724 2004-04-20  Michael Koch  <konqueror@gmx.de>
725
726         * java/nio/channels/Channels.java:
727         Merged coding style with GNU classpath.
728
729 2004-04-20  Michael Koch  <konqueror@gmx.de>
730
731         * java/net/ServerSocket.java
732         Merged coding style from GNU classpath.
733
734 2004-04-20  Michael Koch  <konqueror@gmx.de>
735
736         * java/io/BufferedWriter.java:
737         Reordered variables to be at top of the class.
738         (localFlush): Removed redundant final keyword.
739
740 2004-04-20  Ingo Proetel  <proetel@aicas.com>
741
742         * java/awt/event/MouseEvent.java (<init>): fixed field assignment 
743
744 2004-04-20  Jeroen Frijters  <jeroen@frijters.net>
745
746         * java/text/DecimalFormat.java (scanFix): Removed suffix check
747         for percent and permill check.
748
749 2004-04-20  Guilhem Lavaux <guilhem@kaffe.org>
750
751         * java/text/FieldPosition.java
752         (FieldPosition) Constructor now behaves as it should according
753         to the java documentation.
754
755 2004-04-20  Mark Wielaard  <mark@klomp.org>
756
757         * java/util/Properties.java: Use the word umlaut, not &auml; in api
758         documentation.
759
760 2004-04-20  Michael Koch  <konqueror@gmx.de>
761
762         * java/nio/Buffer.java,
763         java/nio/channels/AlreadyConnectedException.java,
764         java/nio/channels/AsynchronousCloseException.java,
765         java/nio/channels/ByteChannel.java,
766         java/nio/channels/CancelledKeyException.java,
767         java/nio/channels/Channel.java,
768         java/nio/channels/Channels.java,
769         java/nio/channels/ClosedByInterruptException.java,
770         java/nio/channels/ClosedChannelException.java,
771         java/nio/channels/ClosedSelectorException.java,
772         java/nio/channels/ConnectionPendingException.java,
773         java/nio/channels/DatagramChannel.java,
774         java/nio/channels/FileChannel.java,
775         java/nio/channels/FileLock.java,
776         java/nio/channels/FileLockInterruptionException.java,
777         java/nio/channels/GatheringByteChannel.java,
778         java/nio/channels/IllegalBlockingModeException.java,
779         java/nio/channels/IllegalSelectorException.java,
780         java/nio/channels/InterruptibleChannel.java,
781         java/nio/channels/NoConnectionPendingException.java,
782         java/nio/channels/NonReadableChannelException.java,
783         java/nio/channels/NonWritableChannelException.java,
784         java/nio/channels/NotYetBoundException.java,
785         java/nio/channels/NotYetConnectedException.java,
786         java/nio/channels/OverlappingFileLockException.java,
787         java/nio/channels/Pipe.java,
788         java/nio/channels/ReadableByteChannel.java,
789         java/nio/channels/ScatteringByteChannel.java,
790         java/nio/channels/SelectableChannel.java,
791         java/nio/channels/SelectionKey.java,
792         java/nio/channels/Selector.java,
793         java/nio/channels/ServerSocketChannel.java,
794         java/nio/channels/SocketChannel.java,
795         java/nio/channels/UnresolvedAddressException.java,
796         java/nio/channels/UnsupportedAddressTypeException.java,
797         java/nio/channels/WritableByteChannel.java,
798         java/nio/channels/spi/AbstractInterruptibleChannel.java,
799         java/nio/channels/spi/AbstractSelectableChannel.java,
800         java/nio/channels/spi/AbstractSelectionKey.java,
801         java/nio/channels/spi/AbstractSelector.java,
802         java/nio/channels/spi/SelectorProvider.java,
803         java/nio/charset/spi/CharsetProvider.java:
804         Fixed javadocs and jalopied all over java.nio.
805
806 2004-04-20  Michael Koch  <konqueror@gmx.de>
807
808         * java/nio/ByteBufferImpl.java,
809         java/nio/CharBufferImpl.java,
810         java/nio/DirectByteBufferImpl.java,
811         java/nio/DoubleBufferImpl.java,
812         java/nio/DoubleViewBufferImpl.java,
813         java/nio/FloatBufferImpl.java,
814         java/nio/FloatViewBufferImpl.java,
815         java/nio/IntBufferImpl.java,
816         java/nio/IntViewBufferImpl.java,
817         java/nio/LongBufferImpl.java,
818         java/nio/LongViewBufferImpl.java,
819         java/nio/MappedByteBufferImpl.java,
820         java/nio/ShortBufferImpl.java,
821         java/nio/ShortViewBufferImpl.java:
822         Made sure all classes are final and removed final keyword from all
823         methods.
824
825 2004-04-20  Michael Koch  <konqueror@gmx.de>
826
827         * java/rmi/MarshalledObject.java,
828         java/rmi/Naming.java,
829         java/rmi/RemoteException.java,
830         java/rmi/activation/ActivationException.java,
831         java/rmi/server/ServerCloneException.java,
832         java/security/AccessController.java,
833         java/security/AlgorithmParameterGenerator.java,
834         java/security/AlgorithmParameters.java,
835         java/security/CodeSource.java,
836         java/security/Identity.java,
837         java/security/IdentityScope.java,
838         java/security/KeyPairGenerator.java,
839         java/security/KeyStore.java,
840         java/security/Security.java,
841         java/security/Signature.java,
842         java/security/SignatureSpi.java,
843         java/security/SignedObject.java,
844         java/security/spec/DSAParameterSpec.java,
845         java/security/spec/DSAPrivateKeySpec.java,
846         java/security/spec/DSAPublicKeySpec.java,
847         java/sql/Array.java,
848         java/sql/DatabaseMetaData.java,
849         java/sql/ResultSet.java,
850         java/text/ChoiceFormat.java,
851         java/text/CollationElementIterator.java,
852         java/text/CollationKey.java,
853         java/text/Collator.java,
854         java/text/DateFormat.java,
855         java/text/DateFormatSymbols.java,
856         java/text/DecimalFormatSymbols.java,
857         java/text/Format.java,
858         java/text/ParsePosition.java,
859         java/text/RuleBasedCollator.java,
860         java/text/SimpleDateFormat.java,
861         java/text/StringCharacterIterator.java,
862         java/util/Collections.java,
863         java/util/PropertyResourceBundle.java,
864         java/util/ResourceBundle.java,
865         java/util/StringTokenizer.java,
866         java/util/jar/Attributes.java,
867         java/util/logging/ConsoleHandler.java,
868         java/util/logging/LogManager.java,
869         java/util/logging/MemoryHandler.java,
870         java/util/logging/SocketHandler.java,
871         javax/naming/NamingException.java:
872         Fixed javadoc, coding style and argument names all over.
873
874 2004-04-20  Jeroen Frijters  <jeroen@frijters.net>
875
876         * java/io/FileDescriptor.java: (FileDescriptor) Added public
877         constructor. (valid) Added null check.
878
879 2004-04-20  Guilhem Lavaux <guilhem@kaffe.org>
880
881         Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
882         * java/io/FileOutputStream.java
883         (FileOutputStream) Reorganized constructors. Constructors now
884         check whether the given path is directory.
885
886 2004-04-20  Michael Koch  <konqueror@gmx.de>
887
888         * java/net/Authenticator.java,
889         java/net/BindException.java,
890         java/net/ConnectException.java,
891         java/net/ContentHandler.java,
892         java/net/ContentHandlerFactory.java,
893         java/net/DatagramPacket.java,
894         java/net/DatagramSocket.java,
895         java/net/DatagramSocketImpl.java,
896         java/net/DatagramSocketImplFactory.java,
897         java/net/FileNameMap.java,
898         java/net/HttpURLConnection.java,
899         java/net/Inet4Address.java,
900         java/net/Inet6Address.java,
901         java/net/InetAddress.java,
902         java/net/InetSocketAddress.java,
903         java/net/JarURLConnection.java,
904         java/net/MalformedURLException.java,
905         java/net/MulticastSocket.java,
906         java/net/NetPermission.java,
907         java/net/NetworkInterface.java,
908         java/net/NoRouteToHostException.java,
909         java/net/PasswordAuthentication.java,
910         java/net/PortUnreachableException.java,
911         java/net/ProtocolException.java,
912         java/net/ServerSocket.java,
913         java/net/Socket.java,
914         java/net/SocketAddress.java,
915         java/net/SocketException.java,
916         java/net/SocketImpl.java,
917         java/net/SocketImplFactory.java,
918         java/net/SocketOptions.java,
919         java/net/SocketPermission.java,
920         java/net/SocketTimeoutException.java,
921         java/net/URI.java,
922         java/net/URISyntaxException.java,
923         java/net/URL.java,
924         java/net/URLClassLoader.java,
925         java/net/URLConnection.java,
926         java/net/URLDecoder.java,
927         java/net/URLEncoder.java,
928         java/net/URLStreamHandler.java,
929         java/net/URLStreamHandlerFactory.java,
930         java/net/UnknownHostException.java,
931         java/net/UnknownServiceException.java:
932         Fixed javadocs, coding style and argument names all over.
933
934 2004-04-20  Michael Koch  <konqueror@gmx.de>
935
936         * java/lang/Byte.java,
937         java/lang/CharSequence.java,
938         java/lang/ClassLoader.java,
939         java/lang/Compiler.java,
940         java/lang/Double.java,
941         java/lang/Float.java,
942         java/lang/Integer.java,
943         java/lang/Long.java,
944         java/lang/Math.java,
945         java/lang/Number.java,
946         java/lang/Package.java,
947         java/lang/Runtime.java,
948         java/lang/RuntimePermission.java,
949         java/lang/SecurityManager.java,
950         java/lang/Short.java,
951         java/lang/StringBuffer.java,
952         java/lang/System.java,
953         java/lang/ThreadGroup.java,
954         java/lang/Throwable.java,
955         java/lang/reflect/InvocationHandler.java,
956         java/lang/reflect/Proxy.java:
957         Fixed javadocs, coding style and argument names all over.
958
959 2004-04-20  Michael Koch  <konqueror@gmx.de>
960
961         * java/io/BufferedWriter.java,
962         java/io/ByteArrayInputStream.java,
963         java/io/CharArrayWriter.java,
964         java/io/DataInput.java,
965         java/io/DataInputStream.java,
966         java/io/File.java,
967         java/io/FilterInputStream.java,
968         java/io/InputStream.java,
969         java/io/InputStreamReader.java,
970         java/io/ObjectInputStream.java,
971         java/io/ObjectStreamClass.java,
972         java/io/PipedInputStream.java,
973         java/io/PipedReader.java,
974         java/io/PushbackInputStream.java,
975         java/io/PushbackReader.java,
976         java/io/RandomAccessFile.java,
977         java/io/SerializablePermission.java,
978         java/io/StreamTokenizer.java,
979         java/io/StringWriter.java,
980         java/io/WriteAbortedException.java,
981         java/io/Writer.java:
982         Fixed javadocs all over, rename arguments to match javadocs,
983         fixed coding style.
984
985 2004-04-20  Ingo Proetel  <proetel@aicas.com>
986
987         * java/awt/FontMetrics.java:
988         (charsWidth): fixed accumulation of total_width
989         (getWidth): simple default implementation
990         * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
991         in Rectangle constructor.
992         * java/awt/image/Raster.java (toString): Added method. 
993         * java/awt/image/SampleModel.java (<init>): Added error cause
994         information to thrown exception.
995         * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
996         New method.
997         (setDataElements): New method.
998         (setPixels): New method.
999         (toString): New method.
1000
1001 2004-04-20  Sascha Brawer  <brawer@dandelis.ch>
1002
1003         * java/awt/image/ComponentColorModel.java
1004         (createCompatibleSampleModel): Return PixelInterleavedSampleModel
1005         for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
1006         Mauve tests on this method. Improved documentation.
1007
1008 2004-04-20  Michael Koch  <konqueror@gmx.de>
1009
1010         * javax/swing/JLayeredPane.java,
1011         javax/swing/plaf/BorderUIResource.java,
1012         javax/swing/plaf/ComponentUI.java,
1013         javax/swing/undo/CompoundEdit.java,
1014         javax/swing/undo/StateEdit.java:
1015         Fixed HTML tags in javadocs all over.
1016
1017 2004-04-20  Michael Koch  <konqueror@gmx.de>
1018
1019         * javax/print/attribute/EnumSyntax.java
1020         (getOffset): Made protected.
1021         * javax/print/attribute/HashAttributeSet.java
1022         (HashAttributeSet): Likewise.
1023         * javax/print/attribute/ResolutionSyntax.java
1024         (getFeedResolution): Fixed typo in exception name.
1025         (getCrossFeedResolution): Likewise.
1026         * javax/print/attribute/SetOfIntegerSyntax.java
1027         (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
1028         * javax/print/attribute/TextSyntax.java
1029         (TextSyntax): Handle locale correctly.
1030         (hashCode): Calc better hashcode value.
1031         (equals): Fixed @return tag.
1032         (toString): New method.
1033
1034 2004-04-20  Michael Koch  <konqueror@gmx.de>
1035
1036         * gnu/java/nio/FileLockImpl.java
1037         (static): Removed, not needed anymore.
1038         * gnu/java/nio/channels/FileChannelImpl.java
1039         (FileChannelImpl): Made final.
1040         (mode): Made private.
1041         (READ, WRITE, APPEND): Made public.
1042         (EXCL, SYNC, DSYNC): Likewise.
1043         (static): Load native JNI library, when needed.
1044         (length): Unused, removed.
1045         (available): Made public.
1046         (implPosition): Throws IOException.
1047         (seek): Likewise.
1048         (implTruncate): Likewise.
1049         (unlock): Likewise.
1050         (lock): Likewise.
1051
1052 2004-04-20  Michael Koch  <konqueror@gmx.de>
1053
1054         * java/awt/AWTPermission.java,
1055         java/awt/Component.java,
1056         java/awt/ComponentOrientation.java,,
1057         java/awt/Dialog.java,
1058         java/awt/FontMetrics.java,
1059         java/awt/Graphics.java,
1060         java/awt/datatransfer/DataFlavor.java,
1061         java/beans/Introspector.java,
1062         java/beans/PropertyEditor.java,
1063         java/beans/PropertyEditorManager.java,
1064         java/beans/beancontext/BeanContextServiceProvider.java:
1065         Fixed HTML tags in javadocs all over.
1066
1067 2004-04-20  Mark Wielaard  <mark@klomp.org>
1068
1069         * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
1070         MissingResourceException is thrown.
1071         * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1072         null when a MissingResourceException is thrown. Should never happen.
1073
1074 2004-04-20  Sascha Brawer  <brawer@dandelis.ch>
1075
1076         * java/awt/image/DataBufferShort.java,
1077         java/awt/image/DataBufferFloat.java,
1078         java/awt/image/DataBufferDouble.java,
1079         java/awt/image/PixelInterleavedSampleModel.java: New files.
1080         * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
1081         getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
1082
1083 2004-04-20  Michael Koch  <konqueror@gmx.de>
1084
1085         * Makefile.am (java_source_files): Added
1086         java/awt/image/DataBufferDouble.java,
1087         java/awt/image/DataBufferFloat.java,
1088         java/awt/image/DataBufferShort.java and
1089         java/awt/image/PixelInterleavedSampleModel.java.
1090         * Makefile.in: Regenerated.
1091
1092 2004-04-19  Bryce McKinlay  <mckinlay@redhat.com>
1093  
1094         * gcj/cni.h (JvAllocObject): Remove these obsolete, 
1095         undocumented CNI calls.
1096         * include/java-interp.h (_Jv_InterpClass): No longer
1097         extends java.lang.Class.
1098         * java/lang/Class.h (Class): Add new field `aux_info'.
1099         * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
1100         * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
1101         Use Class->aux_info instead.
1102         * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
1103         * resolve.cc: Remove Class<->_Jv_InterpClass casts.
1104         Use Class->aux_info instead.
1105         * java/io/natObjectInputStream.cc (allocateObject): Use
1106         _Jv_AllocObject.
1107         * java/lang/natClass.cc (newInstance): Likewise.
1108         * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
1109         * java/lang/natObject.cc (clone): Likewise.
1110         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
1111         * java/lang/natVMClassLoader.cc (defineClass): Don't use
1112         JvAllocObject. Allocate klass->aux_info here for interpreted
1113         class.
1114         
1115 2004-04-17  Mark Wielaard  <mark@klomp.org>
1116
1117         * javax/swing/JToggleButton.java (ToggleButtonModel):
1118         Make public static inner class.
1119         * javax/swing/JTabbedPane.java (setComponentAt):
1120         Call Page.setComponent().
1121         (SCROLL_TAB_LAYOUT): Make public, value is 1.
1122         (WRAP_TAB_LAYOUT): Make public, value is 0.
1123         * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
1124         Make private static inner class.
1125
1126 2004-04-16  Bryce McKinlay  <mckinlay@redhat.com>
1127
1128         * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
1129         arguments to match new signature. Remove FIXME comments.
1130
1131 2004-04-09  Thomas Fitzsimmons  <fitzsim@redhat.com>
1132
1133         * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
1134         Remove method.
1135         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
1136         unused code.
1137
1138 2004-04-02  Olga Rodimina  <rodimina@redhat.com>
1139
1140         * Makefile.am: Added new file.
1141         * Makefile.in: Regenerate.
1142         * javax/swing/ImageIcon.java: 
1143         (ImageIcon(file)): set description of the icon 
1144         to the file name
1145         * javax/swing/JCheckBoxMenuItem.java:
1146         Mostly Implemented. Work in progress.
1147         * javax/swing/JRadioButtonMenuItem.java:
1148         Reimplement constructors to use JToggleButtonModel.
1149         * javax/swing/plaf/basic/BasicIconFactory.java:
1150         (getCheckBoxMenuItemIcon): return check box
1151         icon.
1152         * javax/swing/plaf/basic/BasicMenuItemUI.java:
1153         paint menu item selected only when it is armed and 
1154         pressed. 
1155  
1156 2004-04-02  David Jee  <djee@redhat.com>
1157
1158         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1159         (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
1160         * java/awt/Component.java
1161         (add): Set the parent of the popup as this component.
1162         * java/awt/PopupMenu.java
1163         (addNotify): Create popup menu when peer is null.
1164         (show): Call addNotify() if peer is null.
1165         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
1166         (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
1167         argument for gtk_menu_popup() as zero. This causes the popup menu to
1168         respond to any mouse button.
1169
1170 2004-03-31  Olga Rodimina  <rodimina@redhat.com>
1171
1172         * Makefile.am: Added new file.
1173         * Makefile.in: Regenerate.
1174         * javax/swing/JRadioButtonMenuItem.java:
1175         Implemented.
1176         * javax/swing/plaf/basic/BasicIconFactory.java:
1177         (getRadioButtonMenuItemIcon): Return
1178         radio button icon.
1179         * javax/swing/plaf/basic/BasicMenuItemUI.java:
1180         (getPreferredSize): Add size of checkIcon if it
1181         exists.
1182         (installDefaults): Don't initialize checkIcon.
1183         It's value will be set in subclasses. 
1184         (uninstallDefaults): remove uninstallation of 
1185         checkIcon.
1186         (paint): Moved code to paintMenuItem().
1187         (paintMenuItem): Implemented.
1188         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
1189         UI delegate for JRadioButtonMenuItem.
1190         
1191 2004-03-29  Olga Rodimina  <rodimina@redhat.com>
1192
1193         * javax/swing/plaf/basic/BasicMenuItemUI.java:
1194         Corrected position of the accelerator.
1195
1196 2004-03-29  Olga Rodimina  <rodimina@redhat.com>
1197
1198         * Makefile.am: Added new file. 
1199         * Makefile.in: Regenerate.
1200         * javax/swing/JMenuItem.java: Partly 
1201         implemented. Work in progress
1202         * javax/swing/plaf/basic/BasicLookAndFeel.java:
1203         Changed default value of acceleratorDelimiter.
1204         * javax/swing/plaf/basic/BasicMenuItemUI.java:
1205         New class. Partly implemented.
1206                 
1207 2004-03-26  Mark Wielaard  <mark@klomp.org>
1208
1209         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1210         (item_activate): Declare label before use.
1211         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1212         (gtkSetFont): Removed unused variable label.
1213         (addExposeFilter): Declare variables before use.
1214         (removeExposeFilter): Likewise.
1215         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1216         (ok_clicked): Declare str_fileName before use.
1217
1218 2004-03-26  David Jee  <djee@redhat.com>
1219
1220         * gnu/java/awt/peer/gtk/GtkMenuPeer.java
1221         (addSeparator): Remove.
1222         * java/awt/Menu.java
1223         (separator): Remove static final MenuItem field.
1224         (separatorLabel): New static final String field.
1225         (addSeparator): Do not use peer method; use add(MenuItem) instead.
1226         Use separatorLabel to denote that it is a separator.
1227         (insertSeparator): Create a new MenuItem with separatorLabel, instead
1228         of reusing the static separator instance, because a MenuItem instance
1229         can't be added more than once without being cloned.
1230         * java/awt/peer/MenuPeer.java
1231         (addSeparator): Remove from interface.
1232
1233 2004-03-26  David Jee  <djee@redhat.com>
1234
1235         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1236         (connectSignals): New native method declaration.
1237         (GtkMenuItemPeer): Connect signals if the parent is a Menu.
1238         * java/awt/MenuItem.java
1239         (getActionCommand): Return the label if the action command is not set.
1240         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1241         (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
1242         gtk_menu_shell_append().
1243         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1244         (item_activate): Fix argument type.
1245         (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
1246         signal here.
1247         (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
1248         method.
1249         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1250         (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
1251         given. Add the menu widget's top-level GtkWindow to the global window
1252         group, so it can grab the pointer.
1253         (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
1254         gtk_menu_shell_append().
1255
1256 2004-03-23  Graydon Hoare  <graydon@redhat.com>
1257
1258         * java/text/AttributedString.java 
1259         (addAttribute): Fix off-by-one.
1260         (getIterator): Likewise.        
1261         * java/text/AttributedStringIterator.java 
1262         (getRunLimit): Correct logic.
1263         (getRunStart): Likewise.
1264         (getAttribute): Fix inequality.
1265         (getAttributes): Likewise.
1266         * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
1267
1268 2004-03-23  Kim Ho  <kho@redhat.com>
1269
1270         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
1271         (calculateSizes): Return real width and height.
1272
1273 2004-03-23  Kim Ho  <kho@redhat.com>
1274
1275         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1276         (calculateTabRects): Set the selectedRun before
1277         trying to rotate tabs.
1278
1279 2004-03-23  Kim Ho  <kho@redhat.com>
1280
1281         * Makefile.am: New file
1282         * Makefile.in: Regenerate
1283         * java/awt/Graphics.java: (drawRect):
1284         Draw to the correct point.
1285         * javax/swing/DefaultSingleSelectionModel.java
1286         (isSelected): Return true if the selected index
1287         is not -1.
1288         * javax/swing/JLabel.java: Do not change mnemonic
1289         index if text is null.
1290         * javax/swing/JProgressBar.java: Use JComponent's
1291         EventListenerList.
1292         * javax/swing/JScrollBar.java: Ditto.
1293         * javax/swing/JSlider.java: Ditto.
1294         * javax/swing/JTabbedPane.java: Reimplement.
1295         * javax/swing/plaf/basic/BasicLookAndFeel.java:
1296         Add defaults for TabbedPane.
1297         * javax/swing/plaf/basic/BasicArrowButton.java:
1298         Implement
1299         * javax/swing/plaf/basic/BasicProgressBarUI.java:
1300         (paintDeterminate): Don't paint String if it's
1301         empty.
1302         (paintIndeterminate): ditto.
1303         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
1304         Reimplement.
1305
1306 2004-03-19  Michael Koch  <konqueror@gmx.de>
1307
1308         * java/awt/image/AffineTransformOp.java
1309         (AffineTransformOp): Made public.
1310         * javax/swing/JComponent.java
1311         (listenerList): Made protected.
1312         (accessibleContext): Likewise.
1313         * javax/swing/JList.java
1314         (valueChanged): Dont use internal fields of ListSelectionEvent.
1315         * javax/swing/JViewport.java
1316         (getView): Dont use internal fields of Component.
1317         (addImpl): Likewise.
1318         * javax/swing/Timer.java
1319         (isRunning): Made public.
1320         (start): Likewise.
1321         (stop): Likewise.
1322         * javax/swing/UIDefaults.java
1323         (getInt): Made public.
1324         * javax/swing/plaf/basic/BasicListUI.java
1325         (mousePressed): Dont use internal fields of MouseEvent.
1326         (propertyChanged): Dont use internal fields of PropertyChangeEvent.
1327         * javax/swing/plaf/basic/BasicScrollBarUI.java
1328         (arrowIcon): Made static.
1329         * javax/swing/plaf/basic/BasicViewportUI.java
1330         (stateChanged): Dont use internal field on ChangeEvent.
1331         * javax/swing/text/JTextComponent.java
1332         (getUI): Call UIManager.getUI().
1333         (updateUI): Use getUI().
1334
1335 2004-03-19  Graydon Hoare  <graydon@redhat.com>
1336
1337         * javax/swing/JComponent.java: Turn off double buffer by default.
1338         * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
1339         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1340         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable): 
1341         Use cairo to copy areas.
1342         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
1343         Initialize and set clip region.
1344
1345 2004-03-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
1346
1347         * java/applet/Applet.java (preferredSize): Override deprecated
1348         variant of getPreferredSize.
1349         (minimumSize): Override deprecated variant of getMinimumSize.
1350
1351 2004-03-15  Olga Rodimina  <rodimina@redhat.com>
1352
1353         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1354         (drawImage(img,xform,bgcolor,obs)): New Method.
1355         Helper function that every drawImage method will
1356         use.
1357         (drawRaster): Added new parameter, bgcolor. All
1358         transparent pixels are changed to bgcolor before 
1359         image is drawn.
1360         (drawRenderedImage): Fixed to use changed drawRaster().
1361         (drawImage(image,xform,obs): Fixed to use new helper function 
1362         (drawImage(image,op,x,y)): Ditto.
1363         (drawImage (img,x,y,observer)): Ditto.
1364         ((PainterThread) bgcolor): New Field.
1365         ((PainterThread) (setPixels)): Changed all transparent pixels 
1366         to bgcolor.     
1367         (drawImage(img,x,y,width,height,bgcolor,observer)): 
1368         Fixed FIXME - all the transparent pixels are 
1369         changed to the specified bgcolor. 
1370         (drawImage(img, x, y, width, height, observer): Changed to 
1371         use function above.
1372         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)): 
1373         Fixed FIXME- changed all transparent pixels to bgcolor.
1374         (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
1375         Changed to use function above. 
1376
1377 2004-03-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
1378
1379         * java/applet/Applet.java (dimensions): New field.
1380         (getDimensions): New method.
1381         (getPreferredSize): Call getDimensions.
1382         (getMinimumSize): Likewise.
1383
1384 2004-03-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
1385
1386         * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
1387         * jni/classpath/jnilink.c: Likewise.
1388
1389         * java/applet/Applet.java (getPreferredSize): New method.
1390         (getMinimumSize): New method.
1391
1392 2004-04-15  Bryce McKinlay  <mckinlay@redhat.com>
1393
1394         * prims.cc (_Jv_AllocObject): Remove `size' argument.
1395         (_Jv_AllocObjectNoFinalizer): Likewise.
1396         (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
1397         (_Jv_AllocPtrFreeObject): Likewise.
1398         (_Jv_AllocString): Moved from natString.cc. Call collector interface
1399         directly even in the JVMPI case.        
1400         * gcj/cni.h (JvAllocObject): Remove `size' argument from 
1401         _Jv_AllocObject calls.
1402         * gcj/javaprims.h: Update prototypes.
1403         * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
1404         * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
1405         * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
1406
1407 2004-04-14  Andrew Haley  <aph@redhat.com>
1408             Bryce McKinlay  <mckinlay@redhat.com>
1409
1410         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
1411         _Jv_LookupInterfaceMethodIdx for calls to interfaces.
1412         * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
1413
1414         * testsuite/libjava.lang/InvokeInterface.java: New file.
1415         * testsuite/libjava.lang/InvokeInterface.out: New file.
1416
1417 2004-04-09  Ranjit Mathew  <rmathew@hotmail.com>
1418         
1419         * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
1420         modified lookup().
1421         * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
1422         StackTraceElement directly.
1423         (newElement): New native helper method to create StackTraceElement
1424         bypassing Java access control.
1425         (createStackTraceElement): Use newElement() instead of directly
1426         calling StackTraceElement's constructor.
1427         * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
1428
1429 2004-04-01  Michael Koch  <konqueror@gmx.de>
1430
1431         * java/lang/SecurityManager.java
1432         (checkAwtEventQueueAccess): Implemented.
1433
1434 2004-04-01  Gary Benson  <gbenson@redhat.com>
1435
1436         * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
1437         (_Jv_SearchMethodInClass): Likewise.
1438
1439 2004-03-26  Peter Moon  <peterm@miraculum.com>
1440
1441         * java/text/NumberFormat.java: Fix spelling of setCurrency
1442         method.
1443
1444 2004-03-21  Anthony Green  <green@redhat.com>
1445
1446         * java/lang/natClass.cc (getClassLoader): Circumvent infinite
1447         recursion when searching for the system ClassLoader.
1448
1449 2004-03-21  Ito Kazumitsu <kaz@maczuka.gcd.org>
1450
1451         * java/net/ServerSocket.java
1452         (accept): Close the socket when error occured.
1453
1454 2004-03-21  Jeroen Frijters  <jeroen@frijters.net>
1455
1456         * java/net/URI.java (parseURI): Added unquoting.
1457         (unquote): New method.
1458         (quoteAuthority): Implemented.
1459         (quote(String,String)): New method.
1460         (quotePath): Implemented.
1461         (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
1462         (getSchemeSpecificPart): Removed FIXME comment.
1463         (getRawAuthority): Return new rawAuthority field.
1464         (getAuthority): Removed FIXME comment.
1465         (getRawUserInfo): Return new rawUserInfo field.
1466         (getUserInfo): Removed FIXME comment.
1467         (getRawPath): Return new rawPath field.
1468         (getPath): Removed FIXME comment.
1469         (getRawQuery): Return new rawQuery field.
1470         (getQuery): Removed FIXME comment.
1471         (getRawFragment): Return new rawFragment field.
1472         (getFragment): Removed FIXME comment.
1473
1474 2004-03-20  Michael Koch  <konqueror@gmx.de>
1475
1476         * java/net/URLConnection.java: Merged copyright year with classpath.
1477
1478 2004-03-20  Norbert Frese  <postfach@nfrese.net>
1479
1480         * gnu/java/rmi/server/RMIIncomingThread.java: New file.
1481         * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
1482         Create a new RMIObjectOuputStream/RMIObjectInputStream for every
1483         rmi-message.
1484         (getObjectInputStream): Return object reference, throw IOException if null.
1485         (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
1486         (getObjectOutputStream): Return object reference, throw IOException if null.
1487         (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
1488         * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
1489         (UnicastConnectionManager): Throw RemoteException if port is not available.
1490         (getInstance): Throw RemoteException.
1491         (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
1492         * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
1493         Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
1494         Collect Exceptions which are returned by a rmi-call and fix void returns.
1495         * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
1496         Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
1497         * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
1498         (dispatch): Answer ping messages which are sent by other java implementions.
1499         (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
1500         for every rmi-message and fix void return problems.
1501         * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
1502         (UnicastServerRef): Throw RemoteException.
1503         (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
1504         In some situations it is necessary to export a subclass of the class which has the _Stub.
1505         For instance when the class with has the _Stub is abstract.
1506         (findStubSkelClass): New method which looks for the class which has the _Stub.
1507         (getClientHost): Implementated.
1508         * gcc/libjava/java/rmi/server/RemoteServer.java
1509         (getClientHost): Implementated.
1510         * gcc/libjava/Makefile.am (rmi_java_source_files):
1511         Added gnu/java/rmi/server/RMIIncomingThread.java.
1512         * Makefile.in: Regenerated.
1513
1514 2004-03-20  Michael Koch  <konqueror@gmx.de>
1515
1516         * java/net/InetAddress.java
1517         (getLocalHostname): Added javadoc.
1518
1519 2004-03-19  Per Bothner  <per@bothner.com>
1520
1521         * configure.in: FILE variable  overrides FLATFORM when linking
1522         natFileChannelXXX.cc.
1523
1524         * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write):  Restored.
1525         (write):  Call diag_write, as in old natFileDescriptorEcos.cc.
1526
1527 2004-03-19  Per Bothner  <per@bothner.com>
1528
1529         * gnu/gcj/convert/Input_UnicodeBig.java:  New class..
1530         * gnu/gcj/convert/Input_UnicodeLittle.java:  New class.
1531         * Makefile.am:  Update accordingly.
1532         * gnu/gcj/convert/IOConverter.java:  Define "utf-16le" and "utf16be"
1533         as aliases for UnicodeLittle and UnicodeBig.
1534
1535 2004-03-20  Mark Wielaard  <mark@klomp.org>
1536
1537         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
1538         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
1539         Don't access ws when it is null.
1540         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
1541         Likewise.
1542
1543 2004-03-19  Jeroen Frijters  <jeroen@frijters.net>
1544
1545         * java/lang/ThreadGroup.java (list): Changed print to println.
1546
1547 2004-03-19  Mark Wielaard  <mark@klomp.org>
1548
1549         * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
1550         happy.
1551
1552 2004-02-10  Randolph Chung  <tausq@debian.org>
1553  
1554         * configure.in: Build java for hppa target.
1555         * configure: Regenerate.
1556         * libjava/configure.host (hppa-*): Add target.
1557         * libjava/sysdeps/pa/lock.h: New file.
1558
1559 2004-03-19  Mark Wielaard  <mark@klomp.org>
1560
1561         Reported by Stephen Crawley
1562         * java/io/FilePermission.java (implies): Use String.length() -1 to
1563         access last char of String.
1564
1565 2004-03-19  Michael Koch  <konqueror@gmx.de>
1566
1567         * java/awt/image/AffineTransformOp.java
1568         (AffineTransformOp): Made public.
1569         * javax/swing/JComponent.java
1570         (listenerList): Made protected.
1571         (accessibleContext): Likewise.
1572         * javax/swing/JList.java
1573         (valueChanged): Dont use internal fields of ListSelectionEvent.
1574         * javax/swing/JViewport.java
1575         (getView): Dont use internal fields of Component.
1576         (addImpl): Likewise.
1577         * javax/swing/Timer.java
1578         (isRunning): Made public.
1579         (start): Likewise.
1580         (stop): Likewise.
1581         * javax/swing/UIDefaults.java
1582         (getInt): Made public.
1583         * javax/swing/plaf/basic/BasicListUI.java
1584         (mousePressed): Dont use internal fields of MouseEvent.
1585         (propertyChanged): Dont use internal fields of PropertyChangeEvent.
1586         * javax/swing/plaf/basic/BasicScrollBarUI.java
1587         (arrowIcon): Made static.
1588         * javax/swing/plaf/basic/BasicViewportUI.java
1589         (stateChanged): Dont use internal field on ChangeEvent.
1590         * javax/swing/text/JTextComponent.java
1591         (getUI): Call UIManager.getUI().
1592         (updateUI): Use getUI().
1593
1594 2004-03-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1595
1596         * verify.cc: Undef PC.
1597
1598 2004-03-18  Michael Koch  <konqueror@gmx.de>
1599
1600         * java/nio/channels/spi/AbstractSelectableChannel.java
1601         (keys): Initialize at declaration.
1602         (locate): keys cant be null.
1603         (add): Removed.
1604         (addSelectionKey): New method.
1605         (removeSelectionKey): New method.
1606         * java/nio/channels/spi/AbstractSelectionKey.java
1607         (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
1608         * java/nio/channels/spi/AbstractSelector.java
1609         (provider): Javadoc added.
1610         (cancelledKeys): Javadoc added.
1611         (cancelKey): Javadoc added, add key to cancelledKeys.
1612         (deregister): Implemented.
1613
1614 2004-03-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1615
1616         * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
1617         MAP_FAILED to void *.
1618
1619 2004-03-12  Graydon Hoare  <graydon@redhat.com>
1620
1621         * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
1622         * javax/swing/JComponent.java (paint): Use persistent double buffer. 
1623         * javax/swing/JList.java (ListListener): Revalidate on changes.
1624         * javax/swing/JScrollPane.java: Reimplement.
1625         * javax/swing/JViewport.java: Reimplement.
1626         * javax/swing/ScrollPaneLayout.java: Reimplement.
1627         * javax/swing/ViewportLayout.java: Tidy up.
1628         * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
1629         * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
1630         * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
1631         * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
1632         backing store only.
1633
1634 2004-03-11  Thomas Fitzsimmons  <fitzsim@redhat.com>
1635
1636         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1637         (window_wm_protocols_filter): New function.
1638         (window_focus_in_cb): Remove function.
1639         (window_focus_out_cb): Likewise.
1640         (window_focus_or_active_state_change_cb): New function.
1641         (create): Add filter that removes WM_TAKE_FOCUS client messages.
1642         (connectSignals): Don't attach handlers to focus-in-event or
1643         focus-out-event signals.  Handle notify signal.
1644
1645 2004-03-11  David Jee  <djee@redhat.com>
1646
1647         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
1648         (gtkSetLabel): New native method declaration.
1649         (setLabel): Use gtkSetLabel.
1650         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1651         (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
1652
1653 2004-03-10  Thomas Fitzsimmons  <fitzsim@redhat.com>
1654
1655         * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
1656         black when color argument is null.
1657
1658 2004-03-10  Kim Ho  <kho@redhat.com>
1659
1660         * java/awt/Container.java: Remove check
1661         for drag events.
1662
1663 2004-03-10  Kim Ho  <kho@redhat.com>
1664
1665         * java/awt/Container.java: (visitChild):
1666         Remove candidate clip. Use the component
1667         clip to intersect.
1668         * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
1669         (handleEvent): Use the PaintEvent's clip.
1670
1671 2004-03-10  Kim Ho  <kho@redhat.com>
1672
1673         * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
1674         (handleEvent): Don't set the clip for the
1675         Graphics object.
1676
1677 2004-03-09  Graydon Hoare  <graydon@redhat.com>
1678
1679         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c: 
1680         Fix double <-> fixed macros, reset font transform.
1681         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1682         Likewise.
1683
1684 2004-03-09  Kim Ho  <kho@redhat.com>
1685
1686         * java/awt/Container.java: (visitChild): Move
1687         the x and y coordinate of the component rectangle
1688         to correct position.
1689         (handleEvent): Forward drag events to the pressed
1690         component.
1691         * javax/swing/plaf/basic/BasicScrollBarUI.java:
1692         Fix comments.
1693         (ArrowButtonListener::mousePressed): Stop the
1694         existing timer.
1695         (mouseDragged): Implement.
1696         (TrackListener::mousePressed): Only react if
1697         the press doesn't occur on the thumb, otherwise
1698         just set the offset.
1699         (TrackListener::mouseReleased): Unset the isAdjusting
1700         value.
1701         (createIncreaseIcon): Switch icon.
1702         (createDecreaseIcon): Switch icon.
1703         (calculatePreferredSize): Use width.
1704         (getThumbBounds): Use the top as the lower value.
1705         (layoutVScrollBar): Switch the button locations.
1706         (paintIncreaseHighlight): Paint correct side of thumb.
1707         (paintDecreaseHighlight): ditto.
1708         (valueForYPosition): Use top as the lower value.
1709         * javax/swing/plaf/basic/BasicSliderUI.java:
1710         Fix comments.
1711         (mouseDragged): Implement.
1712         (mousePressed): Only react when the thumb isn't
1713         pressed, otherwise just set offset.
1714         (mouseReleased): Handle a release of the thumb.
1715         (scrollDueToClickInTrack): Stop the timer first.
1716         * javax/swing/JProgressBar.java:
1717         (setString): Fix change condition.
1718         * javax/swing/JSeparator.java:
1719         Remove println's.
1720
1721 2004-03-08  David Jee  <djee@redhat.com>
1722
1723         * java/awt/image/AffineTransformOp.java:
1724         (filter): Use Graphics2D interface instead of directly using the
1725         GdkGraphics2D peer.
1726
1727 2004-03-05  David Jee  <djee@redhat.com>
1728
1729         * gnu/java/awt/peer/gtk/GtkButtonPeer.java
1730         (handleEvent): Action events are generated upon MOUSE_RELEASED.
1731         * java/awt/Container.java
1732         (acquireComponentForMouseEvent): Fixed.
1733         (handleEvent): Fixed.
1734         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1735         (state_to_awt_mods_with_button_states): New method.
1736         (pre_event_handler): Fixed mouse event generation.
1737
1738 2004-03-05  Olga Rodimina  <rodimina@redhat.com>
1739
1740         gnu/java/awt/peer/gtk/GdkGraphics2D.java
1741         (GdkGraphics2D (BufferedImage)): Initialize
1742         pixmap associated with specified BufferedImage.
1743         (setPaint): Changed implementation of Texture
1744         Paint to use AffineTransformOp.
1745         * java/awt/image/AffineTransformOp.java
1746         (createCompatibleDestRaster): Throw RasterFormatException 
1747         if resulting width or height of raster is 0.
1748
1749 2004-03-04  Olga Rodimina  <rodimina@redhat.com>
1750
1751         * java/awt/image/AffineTransformOp.java:
1752         Removed unnecessary field interpolationType.
1753         Formatted some of the lines to be consistent with 
1754         the GNU style.
1755         (AffineTransformOp): Create new RenderingHints 
1756         containing specified interpolation type.
1757         (createCompatibleDestImage): Implemented.
1758         (createCompatibleDestRaster): Implemented.
1759         (filter): Implemented.
1760         (getBounds2D(BufferedImage)): Implemented.
1761         (getBounds2D(Raster)): Implemented.
1762         (getInterpolationType): Get interpolation value from 
1763         rendering hints.
1764
1765 2004-03-04  David Jee  <djee@redhat.com>
1766
1767         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1768         (setFont): Check if child peers are null.
1769
1770 2004-03-04  Graydon Hoare  <graydon@redhat.com>
1771
1772         * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
1773         .libs in -L option.
1774         (libjava_arguments): Add new libraries to argument list.
1775
1776 2004-03-02  Olga Rodimina  <rodimina@redhat.com>
1777
1778         * Makefile.am: Added java/awt/image/AffineTransformOp.java
1779         * Makefile.in: Re-generated.
1780         * java/awt/image/AffineTransformOp.java: New Class.
1781
1782 2004-03-01  Olga Rodimina  <rodimina@redhat.com>
1783
1784         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1785         (setPaint): Interpret correctly TexturePaint's
1786         anchor rectangle.
1787         (drawImage): Fixed scale factors of the affine
1788         transform.
1789
1790 2004-02-27  David Jee  <djee@redhat.com>
1791
1792         * gnu/java/awt/peer/gtk/GdkGraphics.java
1793         (GdkGraphics(Component)): Inherit font from component.
1794         (drawString): Use font style.
1795         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
1796         (gtkSetFont): New native method declaration.
1797         (setFont): New method.
1798         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1799         (gtkSetFont): New native method declaration.
1800         (setFont): Call new native method gtkSetFont.
1801         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1802         (setFont): For all child components who do not their fonts set,
1803         set their peers' fonts with this container's font.
1804         * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
1805         Move all native method declarations to the top for readability.
1806         (gtkSetFont): New native method declaration.
1807         (setFont): New method.
1808         * java/awt/Component.java
1809         (setFont): Invalidate after setting the font.
1810         * java/awt/Container.java
1811         (invalidateTree): New method.
1812         (setFont): Invalidate the container tree after setting the font.
1813         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1814         (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
1815         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1816         (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
1817         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1818         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
1819         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
1820         (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
1821
1822 2004-02-27  Olga Rodimina <rodimina@redhat.com>
1823
1824         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1825         (updateBufferedImage): New helper function.
1826         Updates BufferedImage in memory if it was changed.
1827         (draw): changed to update BufferedImage in memory after
1828         this drawing operation
1829         (fill): Ditto.
1830         (draw3DRect): Ditto.
1831         (fill3DRect): Ditto.
1832         (clearRect): Ditto.
1833         (drawRaster): Ditto.
1834         (drawImage) : Ditto. Update only in case of GtkOffScreenImage with 
1835         no affine transformation.
1836         (drawGlyphVector): Ditto.
1837
1838 2004-02-26  Olga Rodimina <rodimina@redhat.com>
1839
1840         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1841         (isBufferedImageGraphics): New Helper function. 
1842         Returns true if this graphics2d can be used to draw 
1843         into buffered image and false otherwise.
1844         (updateImagePixels): New Helper function. 
1845         Updates pixels in the BufferedImage.
1846         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1847         (getImagePixels): New function. Returns pixels
1848         of the buffered image associated with 
1849         this Graphics2D.
1850
1851 2004-02-26  David Jee  <djee@redhat.com>
1852
1853         * java/awt/BorderLayout.java
1854         (layoutContainer): Fix width and height calculations to ensure
1855         that they're non-negative.
1856         * java/awt/Component.java
1857         (setBackground): If c is null, inherit from closest ancestor whose
1858         background color is set.
1859
1860 2004-02-26  Kim Ho  <kho@redhat.com>
1861
1862         * Makefile.am: Add new files.
1863         * Makefile.in: Re-generate.
1864         * javax/swing/JProgressBar.java: 
1865         (JProgressBar(int, int int)): Throw
1866         IllegalArgumentException if orientation is
1867         invalid.
1868         (JProgressBar(BoundedRangeModel)): Create
1869         ChangeListener and register it. UpdateUI.
1870         (getChangeListeners): Implement.
1871         (setModel): Reset ChangeListener.
1872         * javax/swing/JScrollBar.java: Implement.
1873         * javax/swing/JSeparator.java: Implement.
1874         * javax/swing/JSlider.java:
1875         (JSlider(int, int, int, int)): Throw 
1876         IllegalArgumentException if orientation
1877         is invalid.
1878         (getChangeListeners): Fix method name.
1879         * javax/swing/SwingUtilities.java:
1880         (layoutCompoundLabel): If there is no text,
1881         set the text rectangle dimensions to 0.
1882         * javax/swing/plaf/basic/BasicButtonUI.java:
1883         (paint): If there is no text, don't paint it.
1884         * javax/swing/plaf/basic/BasicScrollBarUI.java:
1885         Implement.
1886         * javax/swing/plaf/basic/BasicSeparatorUI.java:
1887         Implement.
1888         * javax/swing/plaf/basic/BasicSliderUI.java: 
1889         (propertyChange): If the model changes, change
1890         the listeners accordingly.
1891
1892 2004-02-25  Graydon Hoare  <graydon@redhat.com>
1893
1894         * javax/swing/AbstractButton.java: Add "final" qualifiers.
1895         * javax/swing/JList.java: Reimplement.
1896         * javax/swing/DefaultListSelectionModel.java: Reimplement.
1897         * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
1898         * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
1899         * javax/swing/ListModel.java: Javadoc.
1900         * javax/swing/ListSelectionModel.java: Add missing methods.
1901         * javax/swing/AbstractListModel.java: Javadoc and corrections.
1902         * javax/swing/DefaultListModel.java: Javadoc and corrections.
1903         * javax/swing/ListModel.java: Javadoc and corrections.
1904         * javax/swing/DefaultListCellRenderer.java: Minor tidying.
1905
1906 2004-02-25  David Jee  <djee@redhat.com>
1907
1908         * gnu/java/awt/peer/gtk/GtkFontPeer.java
1909         (GtkFontPeer): Change default size to 12.
1910         * gnu/java/awt/peer/gtk/GtkToolkit.java
1911         (getFontPeer): Change default size to 12.
1912         (getClasspathFontPeer): Likewise. Set default name to "Default".
1913         * java/awt/Font.java
1914         (Font(Map)): Call Font(String,Map).
1915         (Font(String,Map)): If attrs is null, initialize it as an empty
1916         HashMap, which will ensure that the Font will get default attributes.
1917
1918 2004-02-25  David Jee  <djee@redhat.com>
1919
1920         * gnu/java/awt/peer/gtk/GtkFontPeer.java
1921         (GtkFontPeer(String,int)): Call the new constructor with size 1.
1922         (GtkFontPeer(String,int,int)): New constructor with size attribute.
1923         * gnu/java/awt/peer/gtk/GtkToolkit.java
1924         (getFontPeer(String,int)): Call the new overload method with size 1.
1925         (getFontPeer(String,int,int)): New method. Overloaded with size
1926         attribute.
1927         (getClasspathFontPeer): Set the size of the font.
1928
1929 2004-02-24  Olga Rodimina  <rodimina@redhat.com>
1930
1931         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1932         (bimage): New field.
1933         (GdkGraphics2D): New Constructor. Constructs Graphics
1934         object that can be used to draw into the Buffered Image.
1935         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
1936         (GdkGraphicsEnvironment): Fixed to include public 
1937         keyword.
1938         (createGraphics): Implemented.
1939         * gnu/java/awt/peer/gtk/GtkToolkit.java
1940         (getLocalGraphicsEnvironment): Implemented.
1941         * java/awt/GraphicsEnvironment.java:
1942         (getLocalGraphicsEnvironment): Implemented.
1943         * java/awt/image/BufferedImage.java:
1944         (createGraphics): Implemented.
1945                 
1946 2004-02-24  David Jee  <djee@redhat.com>
1947
1948         * java/awt/Component.java
1949         (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
1950         * java/awt/Container.java
1951         (addNotifyContainerChildren): Fix event enabling.
1952
1953 2004-02-23  Olga Rodimina  <rodimina@redhat.com>
1954
1955         * Makefile.am: Added 
1956         gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
1957         * Makefile.in: Re-generated.
1958         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
1959         New Class. 
1960         
1961 2004-02-19  Kim Ho  <kho@redhat.com>
1962
1963         * Makefile.am: Add BasicProgressBarUI
1964         * Makefile.in: Regenerate.
1965         * javax/swing/JProgressBar.java: 
1966         Re-implement.
1967         * javax/swing/plaf/basic/BasicLookAndFeel.java
1968         Add constants for JProgressBar.
1969         * javax/swing/plaf/basic/BasicProgressBarUI.java
1970         Implement.
1971         * javax/swing/plaf/basic/BasicSliderUI.java
1972         Change comments.
1973         (calculateGeometry): New method
1974         (paint): Remove unnecessary size calculations.
1975
1976 2004-02-18  Olga Rodimina  <rodimina@redhat.com>
1977
1978         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1979         (drawRaster): Fixed small error that caused
1980         imageToUser transformation to be set incorrectly.
1981         (toString): Implemented.
1982
1983 2004-02-18  David Jee  <djee@redhat.com>
1984
1985         * java/awt/CardLayout.java
1986         (addLayoutComponent): Show the first component added as the default.
1987         (removeLayoutComponent): After removing, show the next component.
1988         (gotoComponent): If there is only one component, show it and return.
1989
1990 2004-02-18  Kim Ho  <kho@redhat.com>
1991
1992         * javax/swing/JSlider.java: Re-order
1993         modifiers.
1994         * javax/swing/JLabel.java: Re-order
1995         modifiers.
1996         * javax/swing/JComponent.java: 
1997         (addPropertyChangeListener):
1998         Implement.
1999         (removePropertyChangeListener):
2000         ditto.
2001         (firePropertyChangeEvent):
2002         ditto.
2003
2004 2004-02-17  David Jee  <djee@redhat.com>
2005
2006         * java/awt/Component.java
2007         (show): Dispatch ComponentEvent via system event queue.
2008         (hide): Likewise.
2009         (move): Likewise.
2010         (resize): Likewise.
2011         (reshape): Likewise.
2012         * java/awt/Window.java
2013         (setBoundsCallback): Likewise.
2014
2015 2004-02-17  David Jee  <djee@redhat.com>
2016
2017         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2018         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
2019         Use gtk_widget_set_size_request() instead of the deprecated
2020         gtk_widget_set_usize().
2021
2022 2004-02-17  Kim Ho  <kho@redhat.com>
2023
2024         * javax/swing/JSlider.java: Fix comments and
2025         make property strings constants.
2026         (createStandardLabels): Use the labels
2027         preferred size as bounds.
2028         * javax/swing/plaf/basic/BasicSliderUI.java
2029         Fix comments.
2030         (ScrollHandler::actionPerformed): Don't
2031         calculate the timer stop value. Let the
2032         MouseListeners find the stop location.
2033         (getPreferredHorizontalSize): Re-implement.
2034         (getPreferredVerticalSize): ditto.
2035         (getMinimumHorizontalSize): ditto.
2036         (getMinimumVerticalSize): ditto.
2037         (getPreferredSize): ditto.
2038         (getMinimumSize): ditto.
2039         (getMaximumSize): ditto.
2040         (paintTicks): Use doubles to find the
2041         tick location.
2042         (paintHorizontalLabel):  Use preferredSize
2043         as initial width and height.
2044         (paintVerticalLabel): ditto.
2045
2046 2004-02-17  Kim Ho  <kho@redhat.com>
2047
2048         * javax/swing/JLabel.java: Changed 
2049         property strings to constants.
2050         (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
2051         New property.
2052         (setText): Change mnemonic index if
2053         text is too short.
2054         (setDisplayedMnemonicIndex): Fire property
2055         change event.
2056         (getDisplayedMnemonicIndex): Remove check
2057         against short text.
2058
2059 2004-02-17 Olga Rodimina <rodimina@redhat.com>
2060
2061         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
2062         (drawImage(img,xform,obs)): Invert xform before
2063         passing the xform to cairo.
2064         (drawImage(img,x,y,bgcolor,obs)): Implemented.
2065         (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
2066         implemented.
2067         (drawImage (img,x,y,w,h,obs)): Implemented.
2068         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
2069         bgcolor,obs)): Partly implemented.
2070         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
2071         Implemented.
2072         * java/awt/image/BufferedImage.java:
2073         (copyData): if dest is null, create raster with same
2074         dimensions as the current image.
2075
2076 2004-02-16  Graydon Hoare  <graydon@redhat.com>
2077
2078         * javax/swing/plaf/basic/BasicLabelUI.java 
2079         (getPreferredSize): Use layoutCL.
2080         * javax/swing/plaf/basic/BasicGraphicsUtils.java 
2081         (getPreferredButtonSize): Start with empty view rect, layout using
2082         component's preferred alignment.
2083         * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
2084         List defaults.
2085
2086 2004-02-16  David Jee  <djee@redhat.com>
2087
2088         * java/awt/Component.java
2089         (show): Dispatch COMPONENT_SHOWN ComponentEvent.
2090         (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
2091         (move): Erase old bounds and repaint new bounds. Dispatch
2092         COMPONENT_MOVED ComponentEvent.
2093         (resize): Erase old bounds and repaint new bounds. Dispatch
2094         COMPONENT_RESIZED ComponentEvent.
2095         (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
2096         ComponentEvents.
2097         * java/awt/Window.java
2098         (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
2099         ComponentEvents.
2100
2101 2004-02-16  Olga Rodimina  <rodimina@redhat.com>
2102
2103         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
2104         (setRenderingHint): Added implementation of 
2105         Interpolation rendering hints.
2106         (setRenderingHints): Ditto.
2107         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
2108         (drawPixels): fixed to allow user to choose type 
2109         of filtering that should be used when displaying images.
2110         (cairoSurfaceSetFilter): New method. Sets filter type for 
2111         interpolation of pixel values.
2112
2113 2004-02-16  David Jee  <djee@redhat.com>
2114
2115         * java/awt/GridBagLayout.java
2116         (calcCellSizes): Rows or columns with zero sizes should still be
2117         considered for extra space distribution.
2118
2119 2004-02-16  Kim Ho  <kho@redhat.com>
2120
2121         * javax/swing/JLabel.java: Re-implement.
2122         * javax/swing/plaf/basic/BasicLabelUI.java
2123         Re-implement.
2124         * javax/swing/plaf/basic/BasicLookAndFeel.java:
2125         Added constant.
2126
2127 2004-02-16  Kim Ho  <kho@redhat.com>
2128
2129         * javax/swing/JSlider.java: Fix indentation and comments.
2130         (setModel): Remove null check to conform with Sun's.
2131         (setOrientation): Throw exception if not
2132         HORIZONTAL or VERTICAL.
2133         (getInverted): Use private variable instead of 
2134         ComponentOrientation.
2135         (setInverted): ditto.
2136         * javax/swing/plaf/basic/BasicSliderUI.java:
2137         Fix indentation and comments.
2138         (propertyChange): Remove check for inverted slider, handle
2139         in main paint.
2140         (getMinimumSize): Return preferred size.
2141         (getMaximumSize): ditto.
2142         (calculateFocusRect): Don't relocate rectangle.
2143         (drawInverted): Return XOR of the slider's inversion and 
2144         the component's orientation.
2145         (paint): Update leftToRightCache
2146
2147 2004-02-13  David Jee  <djee@redhat.com>
2148
2149         * java/awt/GridBagLayout.java
2150         (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
2151         code to helper methods.
2152         (sortBySpan): New helper method.
2153         (distributeSizeAndWeight): Likewise.
2154         (calcCellWeights): Likewise.
2155         (calcCellSizes): Add comments.
2156
2157 2004-02-13  David Jee  <djee@redhat.com>
2158
2159         * java/awt/Component.java
2160         (show): Only do something if component is invisible at the moment.
2161         (hide): Only do something if component is visible at the moment.
2162         (reshape): If lightweight, erase old bounds and repaint new bounds.
2163
2164 2004-02-13  Kim Ho  <kho@redhat.com>
2165
2166         * Makefile.am: Updated for new file.
2167         * Makefile.in: Regenerated.
2168         * javax/swing/JSlider.java: Reimplement.
2169         * javax/swing/SwingUtilities.java
2170         (layoutCompoundLabel): Use icon height
2171         instead of width.
2172         (paintComponent): Implement.
2173         * javax/swing/plaf/basic/BasicLookAndFeel.java:
2174         Add JSlider defaults.
2175         * javax/swing/plaf/basic/BasicSliderUI.java:
2176         Implement. New file.
2177
2178 2004-03-17  Michael Koch  <konqueror@gmx.de>
2179
2180         * gnu/java/net/PlainDatagramSocketImpl.java
2181         (RECEIVE_LOCK): New member field.
2182         (SEND_LOCK): New member field.
2183         (send0): New method.
2184         (send): Synchronize on SEND_LOCK.
2185         (receive0): New method.
2186         (receive): Synchronize on RECEIVE_LOCK.
2187         * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
2188         gnu/java/net/natPlainDatagramSocketImplPosix.cc,
2189         gnu/java/net/natPlainDatagramSocketImplWin32.cc
2190         (send0): Renamed from send.
2191         (receive0): Renamed from receive.
2192 2004-03-17  Michael Koch  <konqueror@gmx.de>
2193
2194         * gnu/java/net/natPlainSocketImplPosix.cc
2195         (write): Just call write(jbyteArray, offset, len).
2196         (read): Just call read(jbyteArray, offset, len).
2197
2198 2004-03-16  Michael Koch  <konqueror@gmx.de>
2199
2200         * javax/swing/JTabbedPane.java
2201         (serialVersionUID): New field.
2202
2203 2004-03-16  Norbert Frese  <postfach@nfrese.net>
2204
2205         * java/net/InetAddress.java
2206         (getByName): Handle hostname == "" case.
2207
2208 2004-03-16  Dalibor Topic  <robilad@kaffe.org>
2209
2210         Reported by: Adam Heath <doogie@debian.org>
2211         * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
2212         class loader.
2213
2214 2004-03-15  Michael Koch  <konqueror@gmx.de>
2215
2216         * java/util/Locale.java: Reverting my last patch
2217         and add a comment why the original version was okay.
2218
2219 2004-03-14  Andreas Tobler <a.tobler@schweiz.ch>
2220
2221         * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
2222         munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
2223         (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
2224         (MappedByteBufferImpl::forceImpl): Use msync_adptor.
2225
2226 2004-03-12  Michael Koch  <konqueror@gmx.de>
2227
2228         * java/text/DateFormatSymbols.java: Fixed file name in copyright.
2229
2230 2004-03-12  Ito Kazumitsu  <ito.kazumitsu@hitachi-cable.co.jp>
2231
2232         * java/net/URI.java (toURL): Implemented.
2233
2234 2004-03-12  Ito Kazumitsu  <ito.kazumitsu@hitachi-cable.co.jp>
2235
2236         * java/net/URI.java
2237         (URI_REGEXP) updated to contain scheme specific part.
2238         (SCHEME_SPEC_PART_GROUP) new constant.
2239         (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
2240         updated to make room for SCHEME_SPEC_PART_GROUP.
2241         (parseURI) parse scheme specific part.
2242         (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
2243         getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
2244         getQuery, getFragment) implemented.
2245
2246 2004-03-12  Dalibor Topic  <robilad@kaffe.org>
2247
2248         * libraries/javalib/java/net/URI.java
2249         partially implemented using java.util.regex.
2250         (URI_REGEXP) new constant. Used to parse URIs.
2251         (SCHEME_GROUP) new constant representing index of scheme group
2252         in parsed URI.
2253         (AUTHORITY_GROUP) new constant representing index of authority
2254         group in parsed URI.
2255         (PATH_GROUP) new constant representing index of path group in
2256         parsed URI.
2257         (QUERY_GROUP) new constant representing index of query group in
2258         parsed URI.
2259         (FRAGMENT_GROUP) new constant representing index of fragment
2260         group in parsed URI.
2261         (getURIGroup) new static utility method.
2262         (parseURI) implemented.
2263         (quote) stub for new static utility method.
2264         (quoteAuthority) stub for new static utility method.
2265         (quoteHost) stub for new static utility method.
2266         (quotePath) stub for new static utility method.
2267         (quoteUserInfo) stub for new static utility method.
2268         (URI) implemented.
2269         (create) don't throw URISyntaxException. Implemented.
2270         (toString) implemented.
2271
2272 2004-03-12  Michael Koch  <konqueror@gmx.de>
2273
2274         * java/net/HttpURLConnection.java
2275         (getResponseCode): Fix another typo in javadoc.
2276
2277 2004-03-11  Michael Koch  <konqueror@gmx.de>
2278
2279         * java/util/logging/Level.java
2280         (parse): Use String.equals() instead of ==.
2281
2282 2004-03-11  Michael Koch  <konqueror@gmx.de>
2283
2284         * gnu/java/net/protocol/jar/Connection.java
2285         (getContentLength): New method.
2286
2287 2004-03-11  Michael Koch  <konqueror@gmx.de>
2288
2289         * gnu/java/net/PlainSocketImpl.java:
2290         Reformated to merge better with classpath's version.
2291
2292 2004-03-11  Michael Koch  <konqueror@gmx.de>
2293
2294         * java/util/Locale.java
2295         (getISO3Language): Use String.equals() instead of ==.
2296         (getISO3Country): Likewise.
2297
2298 2004-03-11  Dalibor Topic  <robilad@kaffe.org>
2299
2300         * java/text/AttributedString.java
2301         (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
2302         Use HashMap instead of Hashtable since value can be null, and
2303         you can not store a null value in a Hashtable.
2304
2305 2004-03-11  Guilhem Lavaux <guilhem@kaffe.org>
2306
2307         * java/text/AttributedStringIterator.java
2308         (getAllAttributesKey): Return only keys concerned
2309         by the current iterator.
2310         (getAttributes): Use strict inequality for
2311         end_index. 
2312
2313 2004-03-11  Michael Koch  <konqueror@gmx.de>
2314
2315         * java/net/HttpURLConnection.java:
2316         Fixed typo in javadoc.
2317
2318 2004-03-11  Guilhem Lavaux  <guilhem@kaffe.org>
2319
2320         * java/io/BufferedInputStream.java (marktarget): New field for max
2321         mark limit.
2322         (CHUNKSIZE): New constant for incremental mark buffer allocation.
2323         (mark): Use new fields.
2324         (read): Likewise.
2325         (read(byte[],int,int)): Likewise.
2326         (skip): Likewise.
2327         (refill): Likewise.
2328
2329 2004-03-11  Mark Wielaard  <mark@klomp.org>
2330
2331         * java/beans/BeanDescriptor.java (BeanDescriptor):
2332         Set the FeatureDescriptor programmatic name.
2333
2334 2004-03-11  Michael Koch  <konqueror@gmx.de>
2335
2336         * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
2337         This file was was just copied form java/io/natFileDescriptorEcos.cc
2338         and never changed to compile correctly.
2339
2340 2004-03-11  Michael Koch  <konqueror@gmx.de>
2341
2342         * gnu/java/nio/PipeImpl.java
2343         (SourceChannelImpl): Made final.
2344         (read): Implemented.
2345         (SinkChannelImpl): Made final.
2346         (write): Implemented.
2347
2348 2004-03-11  Michael Koch  <konqueror@gmx.de>
2349
2350         * gnu/java/net/PlainDatagramSocketImpl.java:
2351         Reformated to match classpath's version more.
2352
2353 2004-03-11  Michael Koch  <konqueror@gmx.de>
2354
2355         * gnu/java/awt/peer/ClasspathFontPeer.java:
2356         Fixed javadoc to be correct xhtml.
2357         * gnu/java/awt/peer/gtk/GtkArgList.java
2358         (add): Use Boolean.valueOf() instead of new Boolean().
2359
2360 2004-03-09  Michael Koch  <konqueror@gmx.de>
2361
2362         * java/lang/Thread.java
2363         (runnable): Moved around.
2364         (daemon): Renamed from daemon_flag.
2365         (contextClassLoader): Renamed from context_class_loader.
2366         (Thread): Reordered constructors.
2367         (activeCount): Use group directly.
2368         (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
2369         (holdsLock): Reworked javadoc.
2370         (setDaemon): Reworked.
2371         * java/lang/natThread.cc
2372         (destroy): Removed.
2373
2374 2004-03-08  Anthony Green  <green@redhat.com>
2375
2376         * Makefile.am: Build property resource files into libgcj.
2377         * Makefile.in: Rebuilt.
2378         * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
2379         java/util/regex/PatternSyntaxException.java,
2380         gnu/regexp/CharIndexed.java,
2381         gnu/regexp/CharIndexedCharArray.java,
2382         gnu/regexp/CharIndexedInputStream.java,
2383         gnu/regexp/CharIndexedReader.java,
2384         gnu/regexp/CharIndexedString.java,
2385         gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
2386         gnu/regexp/REException.java,
2387         gnu/regexp/REFilterInputStream.java,
2388         gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
2389         gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
2390         gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
2391         gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
2392         gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
2393         gnu/regexp/RETokenLookAhead.java,
2394         gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
2395         gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
2396         gnu/regexp/RETokenStart.java,
2397         gnu/regexp/RETokenWordBoundary.java,
2398         gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
2399
2400 2004-03-03  Per Bothner  <per@bothner.com>
2401
2402         * java/nio/channels/Channels.java (newInputStream, newOutputStream):
2403         Optimize when argument is a FileChannelImpl.
2404         (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
2405         New native methods.
2406         * java/nio/channels/natChannels.cc:  New file for new native methods.
2407         * Makefile.am:  Update accordingly.
2408
2409 2004-03-02  Jan Hubicka  <jh@suse.cz>
2410
2411         * configure.host: Pass -fno-omit-frame-pointer for i386.
2412         * configure.in: Likewise.
2413         * configure: Regenerate.
2414
2415 2004-03-01  Per Bothner  <per@bothner.com>
2416
2417         * java/lang/natPosixProcess.cc (startProcess):  Fix thinko.
2418
2419 2004-02-29  Per Bothner  <per@bothner.com>
2420
2421         * java/nio/channels/FileChannelImpl.java:  Moved to package
2422         gnu/java/nio/channels, since we need to refer to it from java.io.
2423         * java/nio/channels/natFileChannelImpl.cc:  Removed file.
2424         * gnu/java/nio/channels/FileChannelImpl.java:  New class, renamed
2425         from java/nio/channels.  Don't depend on FileDescriptor.
2426         (in, out, err):  New static fields.
2427         (mode):  New field.
2428         (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC):  Moved constants
2429         from FileDescriptor.
2430         (by):  Removed MappedByteBuffer field.
2431         (map):  New working implementation.
2432         * gnu/java/nio/channels/natFileChannelPosix.cc:  New file, though
2433         some code "ported" from natFileDescriptoPosix.cc.
2434         * gnu/java/nio/channels/natFileChannelEcos.cc:  Likewise.
2435         * gnu/java/nio/channels/natFileChannelWin32.cc  Likewise.
2436         * java/io/FileDescriptor.java:  Implement on top of FileChannel.
2437         Remove native methods.
2438         * Makefile.am, configure.in:  Updated accordingly.
2439
2440         * gnu/java/nio/FileLockImpl.java (fd):  Remove field, replacing it by:
2441         (ch):  New FileChannelImpl field.  Update constructor to match.
2442         (releaseImpl):  Remove native method.  Instead ...
2443         (release):  Call unlock on channel.
2444         * gnu/java/nio/natFileLockImpl.cc:  Removed file.
2445
2446         * java/io/natFileDescriptorEcos.cc:  Remove file.
2447         * java/io/natFileDescriptorPosix.cc:  Remove file.
2448         * java/io/natFileDescriptorWin32.cc:  Remove file.
2449         * java/io/FileInputStream.java (ch):  Change type to FileChannelImpl.
2450         (<init>(File)):  Allocate a FileChannelImpl, not a FileDescriptor.
2451         (<init>(FileChannelImpl)):  New package-private constructor.
2452         (<init>(FileDescriptor)):  Extract FileChannelImpl from arg.
2453         (available, close, read, skip):  Implement using FileChannelImpl.
2454         (getFD):  Allocate FileDescriptor if needed.
2455         (getChannel):  Is now trivial.
2456         * java/io/FileOutputStream.java:  Corresponding changes.
2457         * java/io/RandomAccessFile.java:  Corresponding changes.
2458
2459         * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
2460         unmapImpl):  New dummy methods, to be overridden by subclass.
2461         (finalize, isLoaded, load, force):  New methods.
2462         * java/nio/MappedByteBufferImpl.java:  More-or-less rewrite.
2463         Now works, at least for read mapping.
2464
2465         * java/lang/natPosixProcess.cc (startProcess):  Implement standard
2466         streams using FileChannelImpl, not FileDescriptor.
2467         * java/lang/natWin32Process.cc (startProcess):  Likewise.
2468
2469 2004-02-28  Michael Koch  <konqueror@gmx.de>
2470
2471         * java/io/ObjectInputStream.java: Compile fix, damn I commited the
2472         wrong code.
2473
2474 2004-02-28  Guilhem Lavaux <guilhem@kaffe.org>
2475
2476         * java/io/ObjectInputStream.java
2477         (readClassDescriptor): Keep elements of the mapping non null.
2478         (checkTypeConsistency): New method.
2479         (readFields): Fixed main loop and base logic. Small reindentation.
2480         * java/io/ObjectStreamField.java
2481         (lookupField): New method to update the field reference.
2482         (checkFieldType): New method.
2483         * java/io/ObjectStreamClass.java
2484         (setClass, setFields): Call lookupField when building the field
2485         database. Check the real field type.
2486
2487 2004-02-28  Michael Koch  <konqueror@gmx.de>
2488
2489         * java/nio/ByteOrder.java
2490         (nativeOrder): Use equals() to compare strings.
2491
2492 2004-02-26  Michael Koch  <konqueror@gmx.de>
2493
2494         * gnu/java/nio/FileLockImpl.java
2495         (finalize): Made protected.
2496         * java/nio/channels/FileChannel.java
2497         (MapMode.READ_ONLY): Made final.
2498         (MapMode.READ_WRITE): Made final.
2499         (MapMode.PRIVATE): Made final.
2500         * java/nio/channels/SocketChannel.java
2501         (open): Simplified code.
2502         * java/nio/channels/spi/AbstractSelectableChannel.java
2503         (registered): Unused, removed.
2504         (keyFor): Check channel is open, only locate key
2505         and not add a new one.
2506         (register): Don't delete attachments.
2507
2508 2004-02-26  Michael Koch  <konqueror@gmx.de>
2509
2510         * gnu/java/awt/ComponentDataBlitOp.java
2511         (INSTANCE): Made final.
2512         * gnu/java/awt/image/ImageDecoder.java:
2513         Reworked imports.
2514         (cm): Unused, removed.
2515
2516 2004-02-26  Michael Koch  <konqueror@gmx.de>
2517
2518         * gnu/java/nio/DatagramChannelImpl.java
2519         (send): Check if target address is resolved.
2520
2521 2004-02-26  Michael Koch  <konqueror@gmx.de>
2522
2523         * Makefile.am: Generate and install headers for inner classes in
2524         java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
2525         * Makefile.in: Regenerated.
2526
2527 2004-02-24  Anthony Green  <green@redhat.com>
2528
2529         * java/lang/StringBuffer.java: No need to NULL out remainder of
2530         buffer since ensureCapacity_unsynchronized will have done this for
2531         us.
2532
2533 2004-02-20  Michael Koch  <konqueror@gmx.de>
2534
2535         * gnu/java/net/protocol/jar/Handler.java
2536         (): Removed unneeded check for file != null. java.net.URL.getFile()
2537         returns an empty string but never null.
2538
2539 2004-02-20  Michael Koch  <konqueror@gmx.de>
2540
2541         * gnu/gcj/convert/Convert.java
2542         (main): Use equals() to compare strings.
2543
2544 2004-02-20  Michael Koch  <konqueror@gmx.de>
2545
2546         * javax/swing/AbstractButton.java: Made several constants final.
2547         (getRolloverSelectedIcon): Made public.
2548         (getSelectedIcon): Made public.
2549
2550 2004-02-16  Per Bothner  <per@bothner.com>
2551
2552         * java/nio/CharBufferImpl.java:  Inline super constructor.
2553         * java/nio/DoubleBufferImpl.java:  Likewise.
2554         * java/nio/FloatBufferImpl.java:  Likewise.
2555         * java/nio/IntBufferImpl.java:  Likewise.
2556         * java/nio/LongBufferImpl.java:  Likewise.
2557         * java/nio/ShortBufferImpl.java:  Likewise.
2558         * java/nio/CharBuffer.java:  Remove unused constructor.
2559         * java/nio/DoubleBuffer.java:  Likewise.
2560         * java/nio/FloatBuffer.java:  Likewise.
2561         * java/nio/IntBuffer.java:  Likewise.
2562         * java/nio/LongBuffer.java:  Likewise.
2563         * java/nio/ShortBuffer.java:  Likewise.
2564         * java/nio/CharViewBufferImpl.java:  New convenience constructor.
2565         Fix buggy call to super constructor.
2566         * java/nio/DoubleViewBufferImpl.java:  Likewise.
2567         * java/nio/FloatViewBufferImpl.java:  Likewise.
2568         * java/nio/IntViewBufferImpl.java:  Likewise.
2569         * java/nio/LongViewBufferImpl.java:  Likewise.
2570         * java/nio/ShortViewBufferImpl.java:  Likewise.
2571         
2572         * java/nio/ByteBuffer.java (endian):  Make non-private so other
2573         java.nio classes can inherit it.
2574         (<init>):  Don't bother clearing array_offset.
2575         * java/nio/ByteBuffer.java (allocate):  Re-implement using wrap.
2576         * java/nio/ByteBuffer.java (get(byte[],int,int)):  Check underflow.
2577         Remove redundant test.
2578
2579         * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
2580         asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
2581         Use new XxxViewBufferImpl constructors.
2582         * java/nio/MappedByteBufferImpl.java:  Likewise.
2583         * java/nio/DirectByteBufferImpl.java:  Likewise.
2584
2585         * java/nio/ByteBufferImpl.java:  Remove one constructor.
2586         Inline super in remaining constructor.
2587         * java/nio/ByteBuffer.java:  Remove unused constructor.
2588
2589         * java/nio/ByteBufferImpl.java (shiftDown):  New optimized method.
2590
2591         * java/nio/ByteBufferImpl.java (get, put):  Add array_offset.
2592         * java/nio/DirectByteBufferImpl.java (owner):  New field.
2593         (offset):  Remove unused field.
2594         (<init>):  Modify one and add another constructor.  Change callers.
2595         (allocateDirect):  Removed - not used.
2596         (getImpl, putImpl):  Make static and pass address explicitly,
2597         to make them useful for MappedByteBufferImpl.
2598         (get, put):  Check for underflow.  Modify for new getImpl.
2599         (getImpl):  New native method where target is array.
2600         (get(byte[],int,int)):  Use the above.
2601         (adjustAddress):  New static native method.
2602         (slice, duplicate, asReadOnly):  New implementations.
2603         * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
2604         adjustAddress):  New or updated native methods.
2605
2606 2004-02-15  Ito Kazumitsu  <kaz@maczuka.gcd.org>
2607
2608         * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
2609         overflow of fieldmapping.
2610
2611 2004-02-14  Sascha Brawer  <brawer@dandelis.ch>
2612
2613         * javax/swing/undo/UndoManager.java: Re-written from scratch.
2614
2615 2004-02-14  Per Bothner  <per@bothner.com>
2616
2617         * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
2618         Set closed before calling implCloseChannel, as in the spec.
2619
2620 2004-02-09  Graydon Hoare  <graydon@redhat.com>
2621
2622         * javax/swing/ToggleButtonModel.java: Remove dead class.
2623         * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
2624         * javax/swing/plaf/basic/BasicButtonListener.java: New class.
2625         * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
2626         * Makefile.am: Update for new and removed files.
2627         * Makefile.in: Regenerate.
2628
2629         * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
2630         * javax/swing/AbstractButton.java 
2631         (AbstractButton): Initialize fields correctly in ctor.
2632         * javax/swing/JCheckbox.java 
2633         (JCheckBox): Override painting flags.
2634         * javax/swing/DefaultButtonModel.java: Conform to sun.
2635         * javax/swing/JComponent.java (paint): Fill with background color
2636         if available.
2637         (processComponentKeyEvent)
2638         (processFocusEvent)
2639         (processKeyEvent)
2640         (processMouseMotionEvent): Remove event-consuming empty methods.
2641         (getUIClassID): Return "ComponentUI" not "JComponent"
2642         * javax/swing/JFrame.java: Remove some debugging chatter.
2643         (JFrame): Subscribe to window events.
2644         * javax/swing/JRadioButton.java 
2645         (JRadioButton): Override painting flags.
2646         * javax/swing/JRootPane.java 
2647         (JRootPane): Set background from UIDefaults.
2648         * javax/swing/JToggleButton.java 
2649         (ToggleButtonModel): New inner class.
2650         (JToggleButton): Override layout alighment.
2651         * javax/swing/SwingUtilities.java:
2652         (getLocalBounds): Return width and height, not x and y.
2653         (calculateInnerArea): Use local bounds, not bounds.
2654         (layoutCompoundLabel): Provide overridden form.
2655         (layoutCompoundLabel): Correct bugs.
2656         * javax/swing/UIDefaults.java: Correct comment.
2657         * javax/swing/plaf/basic/BasicButtonUI.java: 
2658         Move most logic into defaults, external listener.
2659         (paintIcon): Implement icon painting.
2660         (paint): Fix state painting to conform to changes in model.
2661         * javax/swing/plaf/basic/BasicCheckBoxUI.java:
2662         Remove most dead/wrong methods.
2663         (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
2664         * javax/swing/plaf/basic/BasicIconFactory.java:
2665         (DummyIcon): New class.
2666         (getMenuItemCheckIcon)
2667         (getMenuItemArrowIcon) 
2668         (getMenuArrowIcon)
2669         (getCheckBoxMenuItemIcon)
2670         (getRadioButtonMenuItemIcon)
2671         (createEmptyFrameIcon): Return DummyIcons, not null.
2672         (getCheckBoxIcon): Implement an icon that looks like sun's.
2673         (getRadioButtonIcon): Implement an icon that looks like sun's.
2674         * javax/swing/plaf/basic/BasicLookAndFeel.java 
2675         (initComponentDefaults): Fix impossible values, add some missing.
2676         * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
2677         * javax/swing/plaf/basic/BasicRadioButtonUI.java:
2678         Remove most dead/wrong methods.
2679         (icon): New field.
2680         (getDefaultIcon): New method.
2681         * javax/swing/plaf/basic/BasicToggleButtonUI.java:
2682         Remove most dead/wrong methods.
2683         * javax/swing/plaf/metal/MetalLookAndFeel.java
2684         (getDefaults): Return super.getDefaults(), not BasicDefaults.
2685         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
2686         (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
2687         Implement "clearing" as drawing, when on pixmap drawables.
2688
2689         * javax/swing/JButton.java (getUIClassID): 
2690         * javax/swing/JCheckBox.java (getUIClassID):
2691         * javax/swing/JEditorPane.java (getUIClassID):
2692         * javax/swing/JLabel.java (getUIClassID): 
2693         * javax/swing/JList.java (getUIClassID): 
2694         * javax/swing/JOptionPane.java (getUIClassID): 
2695         * javax/swing/JPanel.java (getUIClassID): 
2696         * javax/swing/JPasswordField.java (uiClassID): 
2697         * javax/swing/JRadioButton.java (getUIClassID): 
2698         * javax/swing/JRootPane.java (getUIClassID): 
2699         * javax/swing/JScrollPane.java (getUIClassID): 
2700         * javax/swing/JTabbedPane.java (getUIClassID): 
2701         * javax/swing/JToggleButton.java (getUIClassID): 
2702         * javax/swing/JTree.java (getUIClassID): 
2703         * javax/swing/JViewport.java (getUIClassID): 
2704         * javax/swing/text/JTextComponent.java (getUIClassID):
2705         Return "fooUI" not "Jfoo"
2706
2707 2004-02-11  Michael Koch  <konqueror@gmx.de>
2708
2709         * java/net/DatagramSocket.java
2710         (setReuseAddress): Use Boolean.valueOf() instead of creating a new
2711         Boolean object.
2712         (setBroadcast): Likewise.
2713         * java/net/MulticastSocket.java
2714         (setLoopbackMode): Likewise.
2715         * java/net/ServerSocket.java
2716         (setReuseAddress): Likewise.
2717         * java/net/Socket.java
2718         (setTcpNoDelay): Likewise.
2719         (setSoLinger): Likewise.
2720         (setOOBInline): Likewise.
2721         (setKeepAlive): Likewise.
2722         (setReuseAddress): Likewise.
2723         * java/net/URLConnection.java
2724         (setContentHandler): Replace == with equals().
2725         * java/net/URLStreamHandler.java
2726         (hostSEquals): Fix checking host addresses.
2727         (toExternalForm): Dont check protocol for null. We know already its
2728         not null.
2729
2730 2004-02-10  David Jee  <djee@redhat.com>
2731
2732         * java/awt/BorderLayout.java
2733         (calcCompSize): Invisible components get zero dimensions.
2734         * java/awt/Button.java
2735         (setLabel): Set actionCommand.
2736         * java/awt/Component.java
2737         (show): Invalidate component and parent container.
2738         (hide): Likewise.
2739
2740 2004-02-10  David Jee  <djee@redhat.com>
2741
2742         * java/awt/GridBagLayout.java
2743         (GridBagLayout): New private field, internalcomptable.
2744         (lookupInternalConstraints): New method.
2745         (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
2746         (GetLayoutInfo): Reimplement.
2747         (calcCellSizes): Ignore rows/columns with size 0.
2748
2749 2004-02-10  Michael Koch  <konqueror@gmx.de>
2750
2751         * gnu/java/awt/EmbeddedWindow.java
2752         (setHandle): Use java.awt.Component.getPeer() instead of
2753         java.awt.Component.peer directly.
2754
2755 2004-02-10  David Jee  <djee@redhat.com>
2756
2757         * gnu/java/awt/peer/gtk/GtkButtonPeer.java
2758         (gtkSetLabel): New native method definition.
2759         (setLabel): Use gtkSetLabel.
2760         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
2761         (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
2762
2763 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
2764
2765         * include/powerpc-signal.h: Revert 2004-01-21 change.
2766         (INIT_SEGV, INIT_FPE): Provide powerpc64 versions.  Check return
2767         from syscall for ppc32 versions.
2768
2769 2004-02-08  Per Bothner  <per@bothner.com>
2770
2771         * java/nio/ByteBuffer.java (shiftDown):  New helper method.
2772         * java/nio/natDirectByteBufferImpl.cc (shiftDown):  New implementation.
2773         * java/nio/ByteBufferImpl.java (compact):  Use new shiftDown method.
2774         * sava/nio/ByteBufferHelper.java:  Remove redundant 'final' specifiers.
2775         Pass ByteOrder parameter to most methods, since the underlying
2776         ByteBuffer's order isn't always what we should use.
2777         * java/nio/ByteBufferImpl.java:  Pass byte-order various places.
2778         * java/nio/DirectByteBufferImpl.java:  Likewise.
2779         Use ByteBufferHelper methods.
2780         * java/nio/MappedByteBufferImpl.java:  Likewise.
2781         (compact):  Use shiftDown.
2782         * java/nio/CharViewBufferImpl.java (<init>):  Pass byte-order.
2783         (get, put):  Use ByteBufferHelper.
2784         (compact):  Use new shiftDown method.
2785         (duplicate(boolean)):  New helper method.
2786         (duplicate, asReadOnlyBuffer):  Use it.
2787         (order):  Return endian field.
2788         * java/nio/DoubleViewBufferImpl.java:  Likewise.
2789         * java/nio/FloatViewBufferImpl.java:  Likewise.
2790         * java/nio/IntViewBufferImpl.java:  Likewise.
2791         * java/nio/LongViewBufferImpl.java:  Likewise.
2792         * java/nio/ShortViewBufferImpl.java:  Likewise.
2793         * java/nio/CharViewBufferImpl.java (subsequence):  Redundant test.
2794         * java/nio/DirectByteBufferImpl.java (shiftDown):  New native method.
2795         (compact):  Re-implement using shiftDown.
2796
2797 2004-02-08  Andreas Jaeger  <aj@suse.de>
2798
2799         * include/x86_64-signal.h: Fix typo.
2800
2801 2004-02-08  Diego Novillo  <dnovillo@redhat.com>
2802
2803         * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
2804         qualifier to _regs.
2805         (HANDLE_DIVIDE_OVERFLOW): Likewise.
2806
2807 2004-02-06  Michael Koch  <konqueror@gmx.de>
2808
2809         * java/io/ObjectInputStream.java
2810         (currentClassLoader): Reverted to old version of this method.
2811
2812 2004-02-06  Jeroen Frijters  <jeroen@frijters.net>
2813
2814         * java/io/ObjectInputStream.java: Made all calls
2815         to dumpElement[ln] conditional on dump flag. (readObject): Changed to
2816         use cached info from ObjectStreamClass. (readClassDescriptor):
2817         Cache more information in ObjectStreamClass. (processResolution,
2818         readFields): Use cached info from ObjectStreamClass.
2819         (newObject): Throw exception instead of returning null for failure.
2820         (getField, getMethod, callReadMethod, setBooleanField, setByteField,
2821         setCharField, setDoubleField, setFloatField, setIntField,
2822         setLongField, setShortField, setObjectField, readObjectParams):
2823         Removed. (dumpElement, dumpElementln): Removed dump flag condition
2824         check.
2825         * java/io/ObjectStreamField.java (hasReadMethod): Removed.
2826         (setClass): Added call to cacheMethods() (findMethod): New method.
2827         (cacheMethods): New method. (ObjectStreamClass): Added call to
2828         cacheMethods(). (setFields): Cache fields. (getClassUID): Use
2829         AccessController.doPrivileged to invoke setAccessible.
2830         (readObjectMethod, readResolveMethod, realClassIsSerializable,
2831         realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
2832         New fields.
2833         * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
2834         (ObjectStreamField): Removed FIXME workaround. (getTypeString,
2835         isPrimitive): Made safe for cases where type == null.
2836         (setBooleanField, setByteField, setCharField, setShortField,
2837         setIntField, setLongField, setFloatField, setDoubleField,
2838         setObjectField): New methods.
2839
2840 2004-02-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
2841
2842         * java/awt/Component.java (getFont): Return a default font
2843         instead of null.
2844
2845         * java/awt/Scrollbar.java (next_scrollbar_number): New field.
2846         (Scrollbar (int, int, int, int, int)): Make default page
2847         increment 10.
2848         (setValues): Only call peer.setValues if one of the values has
2849         changed.
2850         (generateName): New method.
2851         (getUniqueLong): New method.
2852         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
2853         (range_scrollbar): Remove structure.
2854         (post_adjustment_event): Remove function.
2855         (post_change_event): Accept jobject argument.
2856         (create): Cast jints to gdoubles.  Round scrollbar values to the
2857         nearest integer.  Clamp min, max and value settings.
2858         (connectJObject): Connect hook to widget->window.
2859         (connectSignals): Remove range_scrollbar structure variables.
2860         Remove "move-slider" connection.  Pass global peer reference to
2861         "value-changed" callback.
2862         (setLineIncrement): Cast jint value to gdouble.
2863         (setPageIncrement): Likewise.
2864         (setValues): Likewise.  Clamp min, max and value settings.
2865
2866 2004-02-05  Michael Koch  <konqueror@gmx.de>
2867
2868         * javax/swing/AbstractCellEditor.java
2869         (getCellEditorValue): Removed.
2870         * javax/swing/Box.java: Reformated.
2871         (serialVersionUID): New field.
2872         * javax/swing/ButtonGroup.java:
2873         Removed some weird whitespace.
2874         * javax/swing/CellEditor.java: Reformated.
2875         * javax/swing/CellRendererPane.java
2876         (serialVersionUID): New field.
2877         (AccessibleCellRendererPaneserialVersionUID): New field.
2878         * javax/swing/DefaultListModel.java
2879         (serialVersionUID): New field.
2880         * javax/swing/JEditorPane.java
2881         (serialVersionUID): New field.
2882         (setPage): Throws IOException.
2883         (addHyperlinkListener): Implemented.
2884         (removeHyperlinkListener): Implemented.
2885         (getHyperlinkListener): New method.
2886         * javax/swing/JFileChooser.java
2887         (serialVersionUID): New field.
2888         (AccessibleJFileChooser.serialVersionUID): New field.
2889         (addActionListener): Implemented.
2890         (removeActionListener): Implemented.
2891         (getActionListeners): New method.
2892         * javax/swing/JFormattedTextField.java
2893         (serialVersionUID): New field.
2894         (AbstractFormatter.serialVersionUID): New field.
2895         (clone): Throws CloneNotSupportedException
2896         (setEditValid): Add missing argument.
2897         (stringToValue): Throws ParseExcpetion.
2898         (valueToString): Throws ParseException.
2899         (commitEdit): Throws ParseException.
2900         * javax/swing/JLabel.java
2901         (serialVersionUID): New field.
2902         * javax/swing/JList.java
2903         (serialVersionUID): New field.
2904         (addListSelectionListener): Reformated.
2905         (removeListSelectionListener): Reformated.
2906         (getListSelectionListeners): New method.
2907         * javax/swing/colorchooser/AbstractColorChooserPanel.java:
2908         Reformated.
2909         (serialVersionUID): New field.
2910         * javax/swing/table/AbstractTableModel.java
2911         (getValueAt): Removed.
2912         (getColumnCount): Removed.
2913         (getRowCount): Removed.
2914
2915 2004-02-05  Michael Koch  <konqueror@gmx.de>
2916
2917         * java/awt/datatransfer/DataFlavor.java
2918         (imageFlavor): Javadoc added.
2919         (javaJVMLocalObjectType): Fixed.
2920
2921 2004-02-05  Michael Koch  <konqueror@gmx.de>
2922
2923         * java/lang/Thread.java
2924         (Thread): Reordered.
2925         (setContextClassLoader): Fixed javadoc comment.
2926         (setPriority): Reordered.
2927         (yield): Reordered.
2928         (initialize_native): Reordered.
2929         (gen_name): Reordered.
2930
2931 2004-02-05  Michael Koch  <konqueror@gmx.de>
2932
2933         * java/lang/Thread.java: Reordered fields, reformated much code,
2934         no functional changes, some variables renamed, javadoc comments
2935         merged.
2936
2937 2004-02-05  Michael Koch  <konqueror@gmx.de>
2938
2939         * java/util/zip/Deflater.java,
2940         java/util/zip/DeflaterOutputStream.java,
2941         java/util/zip/GZIPInputStream.java:
2942         Reformated and javadoc comments merged from classpath.
2943
2944 2004-02-05  Michael Koch  <konqueror@gmx.de>
2945
2946         * gnu/java/nio/NIOServerSocket.java
2947         (impl): Unused, removed.
2948         * gnu/java/nio/SocketChannelImpl.java
2949         (finnishConnect): Don't throw NoConnectionPendingException if not
2950         connected or no connection pending.
2951
2952 2004-02-02  Graydon Hoare  <graydon@redhat.com>
2953
2954         * javax/swing/SwingUtilities.java: Many new functions.
2955         * java/awt/Container.java (LightweightDispatcher): Reimplement.
2956         * javax/swing/basic/BasicGraphicsUtils.java 
2957         (getPreferredButtonSize): Start layout from top-left corner.
2958
2959 2004-02-04  Olga Rodimina  <rodimina@redhat.com>
2960
2961         * java/awt/geom/AffineTransform.java: 
2962         Corrected comments on the field definitions for
2963         m11 and m10.
2964         (shear): Fixed few errors that caused shear
2965         transformation to be performed incorrectly.
2966         (createInverse): Fixed to return correct
2967         inverse of the given matrix.
2968
2969 2004-02-03  Tom Tromey  <tromey@redhat.com>
2970
2971         * java/lang/natPosixProcess.cc (startProcess): Handle case where
2972         PATH or LD_LIBRARY_PATH is not set in parent environment.
2973
2974 2004-02-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
2975
2976         * gnu/java/awt/peer/gtk/GtkListPeer.java,
2977         java/awt/BorderLayout.java, java/awt/CardLayout.java,
2978         java/awt/CheckboxGroup.java, java/awt/Choice.java,
2979         java/awt/Component.java, java/awt/Container.java,
2980         java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
2981         java/awt/LayoutManager2.java, java/awt/List.java,
2982         java/awt/Menu.java, java/awt/MenuBar.java,
2983         java/awt/MenuItem.java, java/awt/Polygon.java,
2984         java/awt/Rectangle.java, java/awt/ScrollPane.java,
2985         java/awt/Scrollbar.java, java/awt/TextArea.java,
2986         java/awt/TextField.java,
2987         java/awt/image/renderable/RenderContext.java,
2988         javax/swing/JApplet.java: Fix handling of alias methods, where a
2989         method has been deprecated in favour of a new one with the same
2990         funtion but a different name.  Put the method implementation in
2991         the deprecated method and have the new method call the
2992         deprecated one.  Make all other code call the new method.
2993
2994 2004-02-03  Mohan Embar  <gnustuff@thisiscool.com>
2995
2996         * gnu/java/nio/DatagramChannelImpl.java
2997         (inChannelOperation): New field.
2998         (isInChannelOperation): New accessor.
2999         (setInChannelOperation): New modifier.
3000         (receive): Use capacity() - position() of destination
3001         buffer instead of remaining(). Set and reset our "in
3002         channel operation indicator" before and after delegating
3003         the receive to our datagram socket. Removed testing code.
3004         Update destination buffer's current position if it is
3005         backed by a byte array (hasArray() is true).
3006         (send): Set and reset our "in channel operation indicator"
3007         before and after delegating the send to our datagram socket.
3008         Removed testing code. Update source buffer's current position
3009         if it is backed by a byte array (hasArray() is true).
3010         * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
3011         Use capacity() - position() of destination buffer instead
3012         of remaining().
3013         * java/net/DatagramSocket.java (receive): Don't throw an
3014         IllegalBlockingModeException if we have a non-blocking
3015         channel which initiated this operation.
3016         (send): Likewise.
3017
3018 2004-02-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
3019
3020         * configure.in: Add pkgconfig check for glib and gthread.
3021         * configure: Regenerate.
3022
3023 2004-02-01  Michael Koch  <konqueror@gmx.de>
3024
3025         * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
3026         arguments.
3027         * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
3028         * verify.cc (debug_print): Mark 'fmt' unused.
3029
3030 2004-01-30  Michael Koch  <konqueror@gmx.de>
3031
3032         * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
3033         * configure: Regenerated.
3034         * glib-2.0.m4: Removed.
3035         * gtk-2.0.m4: Removed.
3036         * libart.m4: Removed.
3037         * pkg.m4: New file.
3038
3039 2004-01-30  Mohan Embar  <gnustuff@thisiscool.com>
3040
3041         * gnu/java/net/PlainSocketImpl.java 
3042         (inChannelOperation): New field.
3043         (isInChannelOperation): New accessor.
3044         (setInChannelOperation): New modifier.
3045         * gnu/java/nio/ServerSocketChannelImpl.java
3046         (accept): Set and reset our server socket's PlainSocketImpl's
3047         "in channel operation" indicator before and after delegating
3048         the accept to our server socket.
3049         * gnu/java/nio/SocketChannelImpl.java
3050         (connect): Set and reset our socket's PlainSocketImpl's "in channel
3051         operation" indicator before and after delegating the operation to
3052         our socket.
3053         (read): Likewise.
3054         (write): Likewise.
3055         * java/net/ServerSocket.java (implAccept): Don't throw an
3056         IllegalBlockingModeException if we have a non-blocking
3057         channel which initiated this accept operation.
3058         * java/net/Socket.java (connect): Don't throw an
3059         IllegalBlockingModeException if we have a non-blocking
3060         channel which initiated this connect operation.
3061         * java/nio/channels/spi/AbstractSelectableChannel.java
3062         (configureBlocking): Only call implConfigureBlocking() if
3063         the desired blocking mode is different from our current one.
3064
3065 2004-01-29  Mohan Embar  <gnustuff@thisiscool.com>
3066
3067         * java/io/BufferedReader.java (sbuf): New field.
3068         (readLine): Use String.valueOf instead of new String() as per
3069         Per Bothner's suggestion. Use instance sbuf field instead of a
3070         local StringBuffer instance.
3071         * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
3072         caller's buffer to refill().
3073         (read(void)): Pass our internal work buffer to refill if our
3074         input queue is empty.
3075         (refill): Changed return type to int. Use the specified buffer
3076         instead of our work buffer as per Bryce McKinlay's suggestion.
3077         Return the number of characters read or -1 for EOF.
3078
3079 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
3080
3081         * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
3082
3083 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
3084
3085         * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
3086         * Makefile.in: Re-generated.
3087         * gnu/awt/xlib/XFontPeer.java: New file.
3088         * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
3089         (setClip): Commented out debug printout.
3090         * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
3091         (getFontPeer): Return XFontPeer.
3092         (getLocalGraphicsEnvironment): New method.
3093         (getClasspathFontPeer): New method.
3094         (createFont): New method.
3095
3096 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
3097
3098         * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
3099         return null. 
3100
3101 2004-01-29  Kim Ho  <kho@redhat.com>
3102
3103         * gnu/java/awt/peer/gtk/GtkFramePeer.java
3104         (gtkLayoutSetVisible): New method
3105         (setMenuBar): Hide layout before setting MenuBar
3106         and reshow it after.
3107         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3108         (gtkLayoutSetVisible): Hide or show the Gtk Layout.
3109
3110 2004-01-28  Michael Koch  <konqueror@gmx.de>
3111
3112         * gnu/java/lang/ClassHelper.java
3113         (getPackagePortion): Removed.
3114
3115 2004-01-28  Michael Koch  <konqueror@gmx.de>
3116
3117         * javax/swing/JComponent.java
3118         (listenerList): Initalize globally.
3119         (ancestor_list): Removed.
3120         (veto_list): Removed.
3121         (change_list): Removed.
3122         (get_veto_list): Removed.
3123         (get_change_list): Removed.
3124         (get_ancestor_list): Removed.
3125         (removeAncestorListener): Reimplemented.
3126         (removePropertyChangeListener): Likewise.
3127         (removeVetoableChangeListener): Likewise.
3128         (addAncestorListener): Likewise.
3129         (addPropertyChangeListener): Likewise.
3130         (addVetoableChangeListener): Likewise.
3131         (getListeners): New method.
3132         (getAncestorListeners): Likewise.
3133         (getVetoableChangeListeners): Likewise.
3134         (fireVetoableChange): Throws PropertyVetoException.
3135         * javax/swing/JEditorPane.java
3136         (JEditorPane): Throws IOException.
3137
3138 2004-01-28  David Jee  <djee@redhat.com>
3139
3140         * gnu/java/awt/peer/gtk/GtkFramePeer.java
3141         (create): Set the default foreground color to
3142         java.awt.SystemColor.windowText.
3143
3144 2004-01-27  Michael Koch  <konqueror@gmx.de>
3145
3146         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
3147         * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
3148         Reindented to merge with classpath.
3149
3150 2004-01-27  David Jee  <djee@redhat.com>
3151
3152         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3153         (addExposeFilter): Handle GtkFramePeer separately.
3154         (removeExposeFilter): Likewise.
3155
3156 2004-01-27  Michael Koch  <konqueror@gmx.de>
3157
3158         * gnu/java/net/protocol/http/Connection.java
3159         (getOutputStream): Fixed typo.
3160
3161 2004-01-27  Michael Koch  <konqueror@gmx.de>
3162
3163         * java/lang/Class.java
3164         (getConstructor): Removed SecurityException from throws clause.
3165         (_getConstructors): Likewise.
3166         (getConstructors): Likewise.
3167         (getDeclaredConstructor): Likewise.
3168         (getDeclaredClasses): Likewise.
3169         (getDeclaredConstructors): Likewise.
3170         (getDeclaredField): Likewise.
3171         (getDeclaredMethod): Likewise.
3172         (getDeclaredMethods): Likewise.
3173         (getField): Likewise.
3174         (getMethod): Likewise.
3175         (getMethods): Likewise.
3176
3177 2004-01-27  Kim Ho  <kho@redhat.com>
3178
3179         * gnu/java/awt/peer/gtk/GtkFramePeer.java
3180         (removeMenuBarPeer): Remove MenuBarPeer argument.
3181         * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
3182         (dispose): Call native method.
3183         * java/awt/Frame.java (setMenuBar): Create and remove
3184         MenuBar peers only if the Frame has a peer.
3185         (addNotify): Create the MenuBar peer if one exists.
3186         (removeNotify): Remove MenuBar peer if one exists.
3187         * java/awt/Menu.java: Fix imports.
3188         (addNotify): Don't use full class name.
3189         (removeNotify): Call removeNotify on all children.
3190         * java/awt/MenuBar.java (removeNotify): Call
3191         removeNotify on all children.
3192         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3193         (removeMenuBarPeer): Remove MenuBarPeer argument.
3194         Iterate through children to find the Frame's MenuBar.
3195         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
3196         New file.
3197         (dispose): Remove references to the MenuComponent.
3198
3199 2004-01-27  Michael Koch  <konqueror@gmx.de>
3200
3201         * javax/swing/AbstractCellEditor.java: Reformated.
3202         * javax/swing/DefaultListSelectionModel.java
3203         (listenerList): Made protected.
3204         (addListSelectionListener): Javadoc added.
3205         (removeListSelectionListener): Likewise.
3206         (getListeners): Likewise.
3207         (getListSelectionListeners): Likewise.
3208         * javax/swing/JComboBox.java: Merged copyright year.
3209         * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
3210
3211 2004-01-26  Andrew Haley  <aph@redhat.com>
3212
3213         * javax/swing/table/JTableHeader.java: Extend JComponent
3214
3215 2004-01-26  Kim Ho  <kho@redhat.com>
3216
3217         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
3218         Fix spacing.
3219
3220 2004-01-26  Kim Ho  <kho@redhat.com>
3221
3222         * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
3223         method.
3224         (setMenuBar): Shift the Gtk layout up/down by the MenuBar
3225         height and let the Layout Managers readjust anything that
3226         needs to move.
3227         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3228         (moveLayout): New method. Shift everything in the Gtk
3229         layout in the Y direction by an offset.
3230
3231 2004-01-26  David Jee  <djee@redhat.com>
3232
3233         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3234         (handleEvent): Implemented. Handles PaintEvents.
3235         (paint): Implemented. Use GTK native methods to queue updates
3236         for this heavyweight peer.
3237         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3238         (handleEvent): Removed.
3239         * java/awt/Component.java
3240         (paint): Implemented. Explictly paint the heavyweight peer.
3241         (update): Clear the background for heavyweight components.
3242         (paintAll): No need to call peer.paint() anymore.
3243         (processEvent): Don't process PaintEvents here. It's now done in
3244         the peer's handleEvent().
3245         (processPaintEvent): Removed.
3246         * java/awt/Container.java
3247         (paint): No need to call super.paint(). Visit heavyweight
3248         children as well.
3249         (update): Don't clear the background here.  It's done in
3250         Component.update().
3251         (visitChildren): Added check to not recurse into Containers.
3252         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3253         (filter_expose_event_handler): New method.  Filter unwanted
3254         expose events while painting heavyweight peers.
3255         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
3256         New method. Connect filter and block pre_event_handler.
3257         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
3258         New method. Disconnect filter and unblock pre_event_handler.
3259         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
3260         New method. Invalidate and update given area.
3261         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3262         (pre_event_handler): Add checks for unwanted expose events.
3263
3264 2004-01-26  David Jee  <djee@redhat.com>
3265
3266         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3267         (find_bg_color_widget): For GtkButton, return its child.
3268
3269 2004-01-26  Kim Ho  <kho@redhat.com>
3270
3271         * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
3272         private.
3273         (setMenuBar): Grab MenuBar height and change insets.
3274         (setBounds): Account for MenuBar height.
3275         (postInsetsChangedEvent): Ditto.
3276         (postSizeAllocateEvent): Remove.
3277         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3278         (menubar_resize_cb): Remove
3279         (setMenuBarPeer): Remove callback.
3280         (getMenuBarHeight): Use size requisition instead of
3281         allocation.
3282
3283 2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
3284
3285         * java/awt/TextArea.java: Fix indentation.  Flesh out javadocs.
3286         (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
3287         when peer is null.
3288         (setColumns): Remove FIXME -- peer will retrieve number of
3289         columns by calling getColumns.
3290         (setRows): Likewise for number of rows.
3291         (next_text_number): New field.
3292         (paramString): Fix param string.
3293         (generateName): New method.
3294         (getUniqueLong): New method.
3295
3296 2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
3297
3298         * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
3299         image observer of image loading status.
3300         (getImage (String)): Start image production.
3301         (getImage (URL)): Likewise.
3302
3303 2004-01-25  Michael Koch  <konqueror@gmx.de>
3304
3305         * java/lang/Class.java: Imports reworked, reformated.
3306         (Class): Javadoc added.
3307         (forName): Likewise.
3308         (getClasses): Likewise.
3309         (getClassLoader): Likewise.
3310         (getComponentType): Likewise.
3311         (getConstructor): Likewise.
3312         (getConstructors): Likewise.
3313         (getDeclaredConstructor): Likewise.
3314         (getDeclaredClasses): Likewise.
3315         (getDeclaredConstructors): Likewise.
3316         (getDeclaredField): Likewise.
3317         (getDeclaredMethod): Likewise.
3318         (getDeclaredMethods): Likewise.
3319         (getDeclaringClass): Likewise.
3320         (getField): Likewise.
3321         (getInterfaces): Likewise.
3322         (getMethod): Likewise.
3323         (getMethods): Likewise.
3324         (getModifiers): Likewise.
3325         (getName): Likewise.
3326         (getResource): Likewise.
3327         (getResourceAsStream): Likewise.
3328         (getSigners): Likewise.
3329         (setSigners): Likewise.
3330         (getSuperclass): Likewise.
3331         (isArray): Likewise.
3332         (isAssignableFrom): Likewise.
3333         (isInstance): Likewise.
3334         (isInterface): Likewise.
3335         (isPrimitive): Likewise.
3336         (newInstance): Likewise.
3337         (getProtectionDomain): Likewise.
3338         (toString): Likewise.
3339         (Class): Moved.
3340         (initializeClass): Likewise.
3341         (finalize): Likewise.
3342
3343 2004-01-24  Michael Koch  <konqueror@gmx.de>
3344
3345         * gnu/java/net/protocol/jar/Connection.java
3346         (hdrHash): Removed.
3347         (hdrVec): Removed.
3348         (gotHeaders): Removed.
3349         (getHeaderField): Removed.
3350         (getHeaderFields): Removed.
3351         (getHeaderFieldKey): Removed.
3352         (getKey): Removed.
3353         (getField): Removed.
3354         (getHeaders): Removed.
3355
3356 2004-01-24  Michael Koch  <konqueror@gmx.de>
3357
3358         * Makefile.am: Added library version to gtk peer lib.
3359         * Makefile.in: Regenerated.
3360
3361 2004-01-24  Michael Koch  <konqueror@gmx.de>
3362
3363         * java/util/zip/InflaterInputStream.java: Merged class documentation
3364         with classpath.
3365
3366 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
3367
3368         * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
3369         header.  For __powerpc64__ provide the default-signal.h definitions
3370         for now.
3371         * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
3372         instead of the dummy definitions.
3373         * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
3374         (powerpc64*-*): Remove with_libffi_default.
3375         Only add -mminimal-toc for 64-bit compilations.
3376         * configure.in: Use powerpc-signal.h on powerpc64 as well.
3377         (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
3378         Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
3379         * configure: Rebuilt.
3380
3381 2004-01-23  Michael Koch  <konqueror@gmx.de>
3382
3383         * gnu/java/nio/FileLockImpl.java: Compile fixes.
3384
3385 2004-01-23  Michael Koch  <konqueror@gmx.de>
3386
3387         * java/lang/VMClassLoader.java: Reworked imports.
3388         
3389 2004-01-23  Michael Koch  <konqueror@gmx.de>
3390
3391         * javax/swing/AbstractAction.java: Reformated.
3392
3393 2004-01-23  Michael Koch  <konqueror@gmx.de>
3394
3395         * java/text/CollationElementIterator.java:
3396         (setText): New method.
3397
3398 2004-01-23  Michael Koch  <konqueror@gmx.de>
3399
3400         * gnu/java/nio/FileLockImpl.java:
3401         Fixed filename in copyright.
3402         (released): Removed.
3403         (finalize): New method.
3404         * gnu/java/nio/natFileLockImpl.cc
3405         (releaseImpl): Implemented.
3406         * java/nio/channels/FileChannelImpl.java:
3407         Reworked imports.
3408         (lock): Implemented.
3409         (lockImpl): New method.
3410         (tryLock): Implemented.
3411         (tryLockImpl): New method.
3412         * java/nio/channels/natFileChannelImpl.cc
3413         (lockImpl): New method.
3414         (tryLockImpl): New method.
3415
3416 2004-01-23  Michael Koch  <konqueror@gmx.de>
3417
3418         * java/io/FileDescriptor.java
3419         (lock): New method.
3420         (tryLock): New method.
3421         (unlock): New method.
3422         * java/io/natFileDescriptorEcos.cc
3423         (lock): New method.
3424         (tryLock): New method.
3425         (unlock): New method.
3426         * java/io/natFileDescriptorPosix.cc
3427         (lock): New method.
3428         (tryLock): New method.
3429         (unlock): New method.
3430         * java/io/natFileDescriptorWin32.cc
3431         (lock): New method.
3432         (tryLock): New method.
3433         (unlock): New method.
3434
3435 2004-01-23  Michael Koch  <konqueror@gmx.de>
3436
3437         * java/io/FileDescriptor.java
3438         (sync): Moved around, added javadoc.
3439         (valid): Likewise.
3440         (open): Likewise.
3441         (write): Likewise.
3442         (close): Likewise.
3443         (setLength): Likewise.
3444         (seek): Likewise.
3445         (getLength): Likewise.
3446         (getFilePointer): Likewise.
3447         (read): Likewise.
3448         (available): Likewise.
3449         (finalize): Likewise.
3450
3451 2004-01-23  Michael Koch  <konqueror@gmx.de>
3452
3453         * javax/swing/AbstractAction.java: Reformated.
3454         (getPropertyChangeListeners): New method.
3455         * javax/swing/AbstractCellEditor.java: Reformated.
3456         (getCellEditorListeners): New method.
3457         * javax/swing/DefaultListSelectionModel.java
3458         (listenerList): New field.
3459         (listeners): Removed.
3460         (get_listeners): Removed.
3461         (addListSelectionListener): Rewritten.
3462         (removeListSelectionListener): Rewritten.
3463         (getListSelectionListeners): New method.
3464         (getListeners): New method.
3465         * javax/swing/JComboBox.java: Imports reworked.
3466         (addActionListener): Implemented.
3467         (removeActionListener): Implemented.
3468         (addItemListener): Implemented.
3469         (removeItemListener): Implemented.
3470         (addPopupMenuListener): Implemented.
3471         (removePopupMenuListener): Implemented.
3472         (getActionListeners): New method.
3473         (getItemListeners): New method.
3474         (getPopupMenuListeners): New method.
3475
3476 2004-01-23  Michael Koch  <konqueror@gmx.de>
3477
3478         * gnu/java/net/protocol/http/Connection.java
3479         (connect): Don't initialize bufferedOutputStream if not needed.
3480         (sendRequest): Set property for content length if content is present.
3481         Write content only if present.
3482         (getOutputStream): Check if already connected, dont connect,
3483         initalize bufferedOutputStream if needed.
3484
3485 2004-01-23  Michael Koch  <konqueror@gmx.de>
3486
3487         * java/io/FileDescriptor.java
3488         (in, out, err): Added javadoc.
3489         (static): Merged loading code.
3490         (fd, position): Moved around.
3491
3492 2004-01-23  Michael Koch  <konqueror@gmx.de>
3493
3494         * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
3495         New file.
3496
3497 2004-01-23  Michael Koch  <konqueror@gmx.de>
3498
3499         * java/lang/Class.java,
3500         java/lang/Object.java,
3501         java/lang/Thread.java: Merged copyright with classpath.
3502
3503 2004-01-23  Michael Koch  <konqueror@gmx.de>
3504
3505         * java/io/FileDescriptor.java: Merged copyright with classpath to
3506         start merging this class.
3507
3508 2004-01-22  Tom Tromey  <tromey@redhat.com>
3509
3510         PR libgcj/13107:
3511         * testsuite/libjava.lang/pr13107_2.xfail: New file.
3512         * testsuite/libjava.lang/pr13107_3.xfail: New file.
3513         * testsuite/libjava.lang/pr13107_3.java: New file.
3514         * testsuite/libjava.lang/pr13107_3.out: New file.
3515         * testsuite/libjava.lang/pr13107_2.java: New file.
3516         * testsuite/libjava.lang/pr13107_2.out: New file.
3517         * testsuite/libjava.lang/pr13107.java: New file.
3518         * testsuite/libjava.lang/pr13107.out: New file.
3519         * verify.cc (jsr_ptrs): Removed.
3520         (entry_points): Likewise.
3521         (struct subr_info): Likewise.
3522         (struct subr_entry_info): Likewise.
3523         (type_val::unused_by_subroutine_type): Likewise.
3524         (type::merge): Don't handle unused_by_subroutine_type.
3525         (type::print): Likewise.
3526         (state::flags): Removed.
3527         (state::subroutine): Likewise.
3528         (state::seen_subrs): Likewise.
3529         (state::NO_STACK): Likewise.
3530         (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
3531         (state): Updated all methods.
3532         (state::clean_subrs): Removed.
3533         (state::state): Removed `ret_semantics' flag.
3534         (state::copy): Likewise.
3535         (state::add_subr): Removed.
3536         (state::enter_subroutine): Likewise.
3537         (type::set_return_address): New method.
3538         (handle_jsr_insn): Set return address on the type.  Always
3539         invalidate PC after call.
3540         (check_nonrecursive_call): Removed.
3541         (~_Jv_BytecodeVerifier): Updated.
3542         (branch_prepass): Removed special handling of jsr.
3543         (note_branch_target): Likewise.
3544         (get_subroutine): Removed.
3545         (state::merge): Don't merge subroutines and don't handle
3546         NO_STACK.  Removed ret_semantics and jsr_semantics arguments.
3547         (state::note_variable): Removed.
3548         (state::is_unmerged_ret_state): Likewise.
3549         (state::print): Updated.
3550         (set_variable): Likewise.
3551         (merge_into): Renamed from push_jump_merge.  Removed ret_semantics
3552         and jsr_semantics arguments.  Updated for new reverification
3553         list.
3554         (pop_jump): Rewrote.
3555         (construct_primitive_array_type): Updated.
3556         (state::next): Removed.
3557         (INVALID_STATE): New define.
3558         (state::INVALID): Removed.
3559         (state::NO_NEXT): New value.
3560         (state::pc, state::next): New fields.
3561         (state::get_pc): New method.
3562         (next_verify_pc): Removed.
3563         (next_verify_state): New field.
3564         (verify_instructions_0): Always check for falling off end.
3565         (linked): New type.
3566         (linked_utf8): Removed.
3567         (states): Changed type.
3568         (type::state_mergeable_p): New method.
3569         (state::state_mergeable_p): Likewise.
3570         (handle_ret_insn): Removed most code.
3571         (state::reverify): New method.
3572         (add_new_state): Likewise.
3573         (state::set_pc): Likewise.
3574
3575 2004-01-22  Jeff Sturm  <jsturm@one-point.com>
3576
3577         PR java/13733
3578         * testsuite/libjava.compile/PR13733.java: New file.
3579         * testsuite/libjava.compile/PR13733.xfail: New file.
3580
3581 2004-01-22  Arnaud Vandyck  <arnaud.vandyck@ulg.ac.be>
3582             Michael Koch  <konqueror@gmx.de>
3583
3584         * javax/swing/table/DefaultTableCellRenderer.java
3585         (DefaultTableCellRenderer): Added javadoc for the class and for
3586         the constructor, Border instance, create an EmptyBorder.
3587         (UIResource): Removed the comment at the end of the class
3588         (setForeground): New method.
3589         (setBackground): New method.
3590         (updateUI): New method.
3591         (getTableCellRendererComponent): Rewritten with the help of
3592         dvholten and Stephane Meslin-Weber.
3593         (validate): New method.
3594         (repaint): New method.
3595         (firePropertyChange): New method.
3596         (setValue): New method.
3597
3598 2004-01-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
3599
3600         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3601         (connectJObject): Replace printf calls with g_assert statements.
3602         Move property-notify-event signal connection to ...
3603         (connectSignals): Connect property-notify-event signal.  Iterate
3604         through the vbox's children to find layout.
3605
3606 2004-01-22  Graydon Hoare  <graydon@redhat.com>
3607         
3608         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java: 
3609         * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
3610         Predicate static initialization on GtkToolkit.useGraphics2D().
3611         * java/awt/Component.java (processPaintEvent): Consume event.
3612         * javax/swing/AbstractButton.java: Reimplement, document.
3613         * javax/swing/DefaultButtonModel.java: Reimplement, document.
3614         * javax/swing/JComponent.java (paint): Use double buffer.
3615         (listenerList): Enable member.
3616         * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
3617         * javax/swing/JToggleButton.java 
3618         (JToggleButton): Modify model constructor.
3619         * javax/swing/SwingUtilities.java 
3620         (layoutCompoundLabel): Adjust arithmetic.
3621         * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
3622         * javax/swing/plaf/basic/BasicGraphicsUtils.java 
3623         (getPreferredButtonSize): Include margins in calculation.
3624         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3625         (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
3626         Receive up events from subordinate layout component.
3627
3628 2004-01-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
3629
3630         * java/awt/Component.java (show): Set visible to true before
3631         showing the peer.
3632
3633 2004-01-21  Kim Ho  <kho@redhat.com>
3634
3635         * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
3636         Fix comments.
3637         (removeMenuBarPeer): Make package private.
3638         (setMenuBarPeer): Make package private.
3639         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3640         (menubar_resize_cb): Mark attributes unused.
3641         (getMenuBarHeight): ditto.
3642
3643 2004-01-21  David Jee  <djee@redhat.com>
3644
3645         * java/awt/Container.java
3646         (LightweightDispatcher.handleEvent): Add an extra check to avoid
3647         dispatching MOUSE_ENTERED event twice. Translate the point for
3648         the mouse event target before dispatching the event.
3649
3650 2004-01-20  Jakub Jelinek  <jakub@redhat.com>
3651
3652         * Makefile.am (lib_org_w3c_dom_la_LIBADD,
3653         lib_org_w3c_dom_la_LDFLAGS): New.
3654         (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
3655         * Makefile.in: Rebuilt.
3656
3657 2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
3658
3659         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
3660         Calculate proper offsets for heavyweight components packed in
3661         lightweight containers.
3662
3663         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
3664         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
3665         (native create): Add width parameter.
3666         (create): Calculate text entry width based on current font's
3667         metrics and number of columns.  Set TextField's font if not
3668         already set.  Call native create.
3669         (gtkEntryGetBorderWidth): New native method.
3670         (gtkEntryGetSize): Remove method.
3671         (getMinimumSize): Call minimumSize.
3672         (getPreferredSize): Call preferredSize.
3673         (minimumSize): Calculate minimum size based on backing
3674         GtkEntry's borders, font metrics and number of columns.
3675         (preferredSize): Likewise for preferred size.
3676         (get_border_width): New static function.
3677
3678         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
3679         Override GtkWindowPeer's setResizable method to account for menu
3680         bar height when setting the frame's size.
3681
3682 2004-01-19  Matthias Klose  <doko@debian.org>
3683
3684         * libtool-version: Increased `current' to 6.
3685
3686 2004-01-19  Kim Ho  <kho@redhat.com>
3687
3688         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3689         (connectJObject): Iterate through the vbox's children to find layout.
3690
3691 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
3692
3693         * java/awt/EventQueue.java (invokeAndWait): Use list-aware
3694         isDispatchThread method to replace wrong test condition.
3695
3696 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
3697
3698         * java/awt/EventQueue.java (pop): Prevent racing condition to add
3699         events to the queue out of order by acquiring locks in the proper
3700         order and not by releasing one before acquiring the other.
3701
3702 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
3703
3704         * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
3705         visible so that dialog can be reused.
3706
3707 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
3708
3709         * java/awt/EventQueue.java (getCurrentEvent): Consider that system
3710         events may be handled by any queue in the stack.
3711
3712 2004-01-19  Kim Ho  <kho@redhat.com>
3713
3714         * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
3715         MenuBarPeer parameter.
3716         (removeMenuBarPeer): New native method.
3717         (setMenuBar): Call remove if menu bar is null. Adjust insets
3718         appropriately.
3719         (postSizeAllocateEvent): New method. Called when menu bar size is
3720         allocated. Adjust insets and redo layout.
3721         (GtkFramePeer): Set menu bar during frame creation.
3722         (postConfigureEvent): Adjust position and size to accomodate
3723         menu bar.
3724         * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
3725         * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
3726         (addNotify): Create the peer if it doesn't exist and call addNotify
3727         for the menu's items.
3728         * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
3729         * java/awt/MenuItem.java (addNotify): Create the peer if it
3730         doesn't exist.
3731         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3732         (removeMenuBarPeer): New method. Remove menu bar on the current
3733         frame.
3734         (setMenuBarPeer): Add the menu bar to the current frame and the
3735         callback for size-allocate events on the menu bar.
3736         (getMenuBarHeight): Add menu bar parameter.
3737         (menubar_resize_cb): New callback method for postSizeAllocate events.
3738
3739         Also: Fix indentation on last ChangeLog entry.
3740
3741 2004-01-16  Kim Ho  <kho@redhat.com>
3742
3743         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
3744         (gtkWidgetGetDimensions): Remove.
3745         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3746         (gtkWidgetGetDimensions): Remove.
3747
3748 2004-01-16  Tom Tromey  <tromey@redhat.com>
3749
3750         * java/awt/Container.java: Typo and indentation fixes.
3751
3752         * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
3753         * java/lang/natVMClassLoader.cc: ...here.  New file.
3754         * Makefile.in: Rebuilt.
3755         * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
3756
3757 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
3758
3759         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
3760         Discard GDK_ENTER_NOTIFY related to ungrabs.
3761
3762 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
3763
3764         * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
3765         is called for an intermediate queue.
3766
3767 2004-01-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
3768
3769         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3770         (window_property_changed_cb): Set id_set.
3771
3772 2004-01-16  Kim Ho  <kho@redhat.com>
3773
3774         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
3775         it is a FileDialog and has dimensions of 0 by 0, then the initial
3776         size is set to size request plus insets.
3777         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
3778         (gtkWidgetGetDimensions): Override method.
3779         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3780         (gtkWidgetGetDimensions): Override method. Returns size request plus
3781         insets.
3782
3783 2004-01-16  Andrew Haley  <aph@redhat.com>
3784
3785         * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
3786         * sysdep/i386/locks.h: Likewise.
3787
3788 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
3789
3790         * java/awt/EventDispatchThread.java (run): Stop running when
3791         interrupted.
3792         * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
3793         Reset the queue after transferring its contents.
3794         (push): Start a new dispatch thread if none is running.
3795
3796 2004-01-16  Olga Rodimina <rodimina@redhat.com>
3797
3798         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
3799         (doPolygon): set fill rule of polygon to 
3800         WIND_EVEN_ODD by default.
3801
3802 2004-01-15  Olga Rodimina <rodimina@redhat.com>
3803
3804         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
3805         Implemented rendering hints related methods.
3806         (getDefaultHints): New helper method. Returns
3807         default rendering hints.
3808         (walkPath): changed to normalize path if
3809         the KEY_STROKE_CONTROL key is in "normalize" mode.
3810         (draw3DRect): changed coordinates of rectangle by +0.5
3811         if in "normalize" mode.
3812
3813 2004-01-15  Tom Tromey  <tromey@redhat.com>
3814
3815         * Makefile.in: Rebuilt.
3816         * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
3817         (%.lo: %.java) Filter out StackTrace.lo.
3818
3819 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
3820
3821         * configure.in: Add in AC_PREREQ(2.13)
3822         * libltdl/configure.ac: Update to AC_PREREQ(2.57).  Delete 
3823         FIXME comment.
3824
3825 2004-01-14  Nathan Bryant  <nbryant@optonline.net>
3826             Tom Tromey  <tromey@redhat.com>
3827
3828         PR libgcj/12001:
3829         * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
3830         array to superclass.
3831         (init): Changed interface; add URLs here.
3832         (initialize): New static method.
3833         * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
3834         (_Jv_RunMain): ... not here.
3835
3836 2004-01-14  Michael Koch  <konqueror@gmx.de>
3837
3838         * java/text/MessageFormat.java:
3839         Added descriptions to exceptions.
3840         This fixes PR libgcj/2429.
3841
3842 2004-01-13  Fernando Nasser  <fnasser@redhat.com>
3843
3844         * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
3845         (push): Make sure push is performed at the top of the thread stack.
3846
3847 2004-01-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
3848
3849         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3850         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3851         (native create): Add width and height parameters.  Set text
3852         view's size request according to new parameters.
3853         (create): Calculate text view size based on current font's
3854         metrics and number of rows and columns.  Set TextArea's font if
3855         not already set.  Call native create.
3856         (getMinimumSize): Call minimumSize.
3857         (getPreferredSize): Call preferredSize.
3858         (getHScrollbarHeight): New method.
3859         (getVScrollbarWidth): New method.
3860         (minimumSize): Calculate minimum size based on scrollbar
3861         visibility, scrollbar sizes, font metrics and number of rows and
3862         columns.
3863         (preferredSize): Likewise for preferred size.
3864         (gtkTextGetSize): Remove method.
3865
3866 2004-01-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
3867
3868         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3869         (initializeInsets): Remove method.
3870         (GtkComponentPeer): Initialize insets field.  Remove call to
3871         initializeInsets.
3872         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
3873         Remove method.
3874         * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
3875         Remove method.
3876         * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
3877         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
3878         (latestInsets): Remove field.
3879         (native create): Add insets parameter.  Call
3880         window_get_frame_extents.  Set the window's default size and
3881         size request based on its frame extents.
3882         (create): Initialize insets.
3883         (postInsetsChangedEvent): New method.
3884         (postConfigureEvent): Remove parameters top, left, bottom,
3885         right.  Remove insets-related logic.
3886         (connectJObject): Handle property-notify-event.
3887         (window_get_frame_extents, request_frame_extents,
3888         property_notify_predicate, window_property_changed_cb): New
3889         static functions.
3890         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3891         (pre_event_handler): Remove insets-related logic for configure
3892         events.
3893         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
3894         Update postConfigureEvent signature.
3895
3896 2004-01-13  Fernando Nasser  <fnasser@redhat.com>
3897  
3898         * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
3899         to handle Window "Closing" events.
3900  
3901 2004-01-13  David Jee  <djee@redhat.com>
3902
3903         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3904         (setBackground): New method. Children with no explicitly-set
3905         background will be repainted with the parent container's new
3906         background color.
3907
3908 2004-01-13  David Jee  <djee@redhat.com>
3909
3910         * Makefile.am: Add BitwiseXORComposite.java.
3911         * Makefile.in: Regenerated.
3912         * gcj/Makefile.in: Regenerated.
3913         * include/Makefile.in: Regenerated.
3914         * testsuite/Makefile.in: Regenerated.
3915
3916 2004-01-12  Fernando Nasser  <fnasser@redhat.com>
3917
3918         * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
3919         not show modal dialogs twice and so that it allows showing a modal
3920         dialog from another modal dialog.
3921
3922 2004-01-12  Fernando Nasser  <fnasser@redhat.com>
3923
3924         * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
3925         and run secondary dispatch thread to process event queue while this
3926         thread is blocked.
3927
3928 2004-01-12  Graydon Hoare  <graydon@redhat.com>
3929
3930         * gnu/java/awt/gtk/GdkGraphics2D.java
3931         (static): Check GtkToolkit before initializing static state.
3932         (Graphics2D): Don't construct transform with 0.5 unit offset.
3933
3934 2003-11-06  Sascha Brawer  <brawer@dandelis.ch>
3935
3936         * gnu/java/awt/BitwiseXORComposite.java: Add.
3937         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3938         (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
3939         (BitwiseXORComposite): Remove inner class.
3940
3941 2004-01-11  Michael Koch  <konqueror@gmx.de>
3942
3943         * gnu/java/lang/reflect/TypeSignature.java
3944         (getEncodingOfClass): Documentation fixed.
3945         (getClassForEncoding): Give class loader to Class.forName().
3946         Documentation fixed.
3947
3948 2004-01-11  Sascha Brawer  <brawer@dandelis.ch>
3949
3950         * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
3951
3952 2004-01-11  Michael Koch  <konqueror@gmx.de>
3953
3954         * javax/swing/undo/StateEditable.java
3955         (RCSID): Removed redundant modifiers.
3956
3957 2004-01-10  Michael Koch  <konqueror@gmx.de>
3958
3959         * javax/print/attribute/EnumSyntax.java
3960         (getStringTable): Made protected.
3961         (getEnumValueTable): Likewise.
3962         * javax/print/attribute/standard/JobKOctetsProcessed.java
3963         (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
3964         * javax/print/attribute/standard/JobMediaSheetsCompleted.java
3965         (JobMediaSheetsCompleted): Made class final.
3966         * javax/print/attribute/standard/OutputDeviceAssigned.java
3967         (getName): Fixed typo.
3968         * javax/print/attribute/standard/RequestingUserName.java
3969         (serialVersionUID): Fixed value.
3970
3971 2004-01-10  Michael Koch  <konqueror@gmx.de>
3972
3973         * javax/swing/plaf/basic/BasicButtonUI.java,
3974         javax/swing/plaf/basic/BasicCheckBoxUI.java,
3975         javax/swing/plaf/basic/BasicListUI.java,
3976         javax/swing/plaf/basic/BasicOptionPaneUI.java,
3977         javax/swing/plaf/basic/BasicPanelUI.java,
3978         javax/swing/plaf/basic/BasicRadioButtonUI.java,
3979         javax/swing/plaf/basic/BasicScrollPaneUI.java,
3980         javax/swing/plaf/basic/BasicToggleButtonUI.java,
3981         javax/swing/plaf/basic/BasicViewportUI.java:
3982         Fixed import statements.
3983
3984 2004-01-10  Michael Koch  <konqueror@gmx.de>
3985
3986         * gnu/java/awt/image/ImageDecoder.java
3987         (produce): Made public.
3988         * gnu/java/awt/peer/GLightweightPeer.java,
3989         gnu/java/awt/peer/gtk/GtkToolkit.java:
3990         Reformated.
3991
3992 2004-01-10  Michael Koch  <konqueror@gmx.de>
3993
3994         * javax/swing/JRadioButtonMenuItem.java,
3995         javax/swing/JSeparator.java,
3996         javax/swing/JSplitPane.java,
3997         javax/swing/JTextPane.java,
3998         javax/swing/JToolBar.java,
3999         javax/swing/ListCellRenderer.java,
4000         javax/swing/ListModel.java,
4001         javax/swing/MenuElement.java,
4002         javax/swing/OverlayLayout.java,
4003         javax/swing/ProgressMonitor.java,
4004         javax/swing/ProgressMonitorInputStream.java,
4005         javax/swing/Renderer.java,
4006         javax/swing/RootPaneContainer.java,
4007         javax/swing/Scrollable.java,
4008         javax/swing/SingleSelectionModel.java,
4009         javax/swing/ToolTipManager.java,
4010         javax/swing/ViewportLayout.java,
4011         javax/swing/event/DocumentEvent.java,
4012         javax/swing/event/SwingPropertyChangeSupport.java,
4013         javax/swing/event/TreeSelectionEvent.java,
4014         javax/swing/event/UndoableEditEvent.java,
4015         javax/swing/text/AbstractDocument.java,
4016         javax/swing/text/AttributeSet.java,
4017         javax/swing/text/Caret.java,
4018         javax/swing/text/ComponentView.java,
4019         javax/swing/text/DefaultCaret.java,
4020         javax/swing/text/DefaultEditorKit.java,
4021         javax/swing/text/Document.java,
4022         javax/swing/text/EditorKit.java,
4023         javax/swing/text/GapContent.java,
4024         javax/swing/text/Keymap.java,
4025         javax/swing/text/MutableAttributeSet.java,
4026         javax/swing/text/PlainEditorKit.java,
4027         javax/swing/text/Segment.java,
4028         javax/swing/text/Style.java,
4029         javax/swing/text/StyledDocument.java,
4030         javax/swing/text/StyledEditorKit.java,
4031         javax/swing/text/TextAction.java,
4032         javax/swing/text/View.java: Fixed import statements.
4033
4034 2004-01-08  Graydon Hoare  <graydon@redhat.com>
4035
4036         * javax/swing/JLayeredPane.java: Rewrite to accomodate
4037         djee@redhat.com's recent inverse ordering of Container elements.
4038
4039 2004-01-09  Michael Koch  <konqueror@gmx.de>
4040
4041         * gnu/java/lang/ArrayHelper.java
4042         (equalsArray): Removed.
4043
4044 2004-01-09  Andrew Haley  <aph@redhat.com>
4045
4046         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
4047         a Utf8Const field before looking at its class.
4048
4049 2004-01-09  Michael Koch  <konqueror@gmx.de>
4050
4051         * javax/print/attribute/standard/DocumentName.java,
4052         javax/print/attribute/standard/JobHoldUntil.java,
4053         javax/print/attribute/standard/JobMessageFromOperator.java,
4054         javax/print/attribute/standard/JobName.java,
4055         javax/print/attribute/standard/JobOriginatingUserName.java,
4056         javax/print/attribute/standard/OutputDeviceAssigned.java,
4057         javax/print/attribute/standard/PrinterInfo.java,
4058         javax/print/attribute/standard/PrinterLocation.java,
4059         javax/print/attribute/standard/PrinterMakeAndModel.java,
4060         javax/print/attribute/standard/PrinterMessageFromOperator.java,
4061         javax/print/attribute/standard/PrinterName.java,
4062         javax/print/attribute/standard/RequestingUserName.java: New files.
4063         * Makefile.am (javax_source_files): Added new files.
4064         * Makefile.in: Regenerated.
4065
4066 2004-01-09  Michael Koch  <konqueror@gmx.de>
4067
4068         * javax/swing/AbstractAction.java,
4069         javax/swing/AbstractSet.java,
4070         javax/swing/Action.java,
4071         javax/swing/ActionMap.java,
4072         javax/swing/BoundedRangeModel.java,
4073         javax/swing/ButtonModel.java,
4074         javax/swing/CellEditor.java,
4075         javax/swing/CellRendererPane.java,
4076         javax/swing/ComboBoxEditor.java,
4077         javax/swing/DebugGraphics.java,
4078         javax/swing/DefaultCellEditor.java,
4079         javax/swing/DefaultCellRenderer.java,
4080         javax/swing/DefaultComboBoxModel.java,
4081         javax/swing/DefaultDesktopManager.java,
4082         javax/swing/DefaultFocusManager.java,
4083         javax/swing/DefaultListCellRenderer.java,
4084         javax/swing/Icon.java,
4085         javax/swing/JButton.java,
4086         javax/swing/JCheckBoxMenuItem.java,
4087         javax/swing/JDesktopPane.java,
4088         javax/swing/JEditorPane.java,
4089         javax/swing/JMenu.java,
4090         javax/swing/JPanel.java,
4091         javax/swing/JPasswordField.java,
4092         javax/swing/JPopupMenu.java,
4093         javax/swing/JProgressBar.java: Reworked imports.
4094
4095 2004-01-09  Michael Koch  <konqueror@gmx.de>
4096
4097         * java/awt/geom/PathIterator.java
4098         (WIND_EVEN_ODD): Removed redundant modifiers.
4099         (WIND_NON_ZERO): Likewise.
4100         (SEG_MOVETO): Likewise.
4101         (SEG_LINETO): Likewise.
4102         (SEG_QUADTO): Likewise.
4103         (SEG_CUBICTO): Likewise.
4104         (SEG_CLOSE): Likewise.
4105         * java/awt/image/SinglePixelPackedSampleModel.java:
4106         Removed redundant semicolon.
4107         * java/io/ObjectInputStream.java
4108         (inputGetObjectStreamClasses): Removed unused variable "ret_val".
4109         * java/util/logging/Filter.java
4110         (isLoggable): Removed redundant modifier.
4111         * java/util/logging/LogManager.java:
4112         Removed redundant semicolon.
4113         * java/util/logging/XMLFormatter.java
4114         (format): Removed unused variable "key".
4115
4116 2004-01-08  Fernando Nasser  <fnasser@redhat.com>
4117
4118         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
4119         New name for the former setFile native method.
4120         (setFile): New method.
4121         (setDirectory): Implemented.
4122         (connectSignals): New native method.
4123         (setFilenameFilter): Improve comment.
4124         (getGraphics): Comment.
4125         (gtkHideFileDialog): New method.
4126         (gtkDisposeFileDialog): New method.
4127         (gtkSetFilename): New method.
4128         * java/awt/Dialog.java (show): Block on modal dialogs, but only
4129         for FileDialog for now.
4130         (hide): New method.
4131         (dispose): New method.
4132         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4133         (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
4134         deprecated creation functions.  Make dialog modal.  Add it to the
4135         window group.
4136         (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
4137         function.
4138         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
4139         Rename to...
4140         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
4141         name.
4142         (window_closed): New function.
4143         (ok_clicked): New function.
4144         (cancel_clicked): New function.
4145
4146 2004-01-08  Michael Koch  <konqueror@gmx.de>
4147
4148         * javax/swing/JLayeredPane.java: Revert changes to standard
4149         boilerplate, reworked imports.
4150
4151 2004-01-07  Tom Tromey  <tromey@redhat.com>
4152
4153         PR libgcj/13439:
4154         * verify.cc (state::merge): Copy changed locals out of subroutine
4155         in NO_STACK case.
4156         (state::FLAG_CHANGED): New const.
4157         (state::FLAG_UNUSED): Likewise.
4158         (state::local_changed): Removed.  Updated all users.
4159         (state::flags): New field.
4160         (state::merge): Added jsr_semantics argument, more logic.
4161         (push_jump_merge): Added jsr_semantics argument.
4162         (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
4163         merging through the jsr instruction.
4164
4165 2004-01-07  Tom Tromey  <tromey@redhat.com>
4166
4167         * scripts/MakeDefaultMimeTypes.java: Use \n, not
4168         backslash-newline.
4169
4170 2004-01-07  Graydon Hoare  <graydon@redhat.com>
4171
4172         * java/awt/Container.java (LightweightDispatcher): Implement.
4173         (visitChild): Reuse graphics object.
4174         (dispatchEventImpl): Optionally dispatch to lightweight.
4175         (addNotifyContainerChildren): Build LightweightDispatcher.
4176
4177 2004-01-07  David Jee  <djee@redhat.com>
4178
4179         * java/awt/Container.java
4180         (update): Clear only the clipped region, instead of clearing the
4181         entire Container.
4182         (visitChildren): Visit children in descending order.
4183
4184 2004-01-07  Michael Koch  <konqueror@gmx.de>
4185
4186         * java/lang/reflect/Array.java: Merged documentation with classpath.
4187
4188 2004-01-07  Michael Koch  <konqueror@gmx.de>
4189
4190         * java/text/CollationElementIterator.java
4191         (textIndex): Renamed from index.
4192         * java/text/CollationKey.java
4193         (collator): New member.
4194         (CollationKey): New argument for parent collator.
4195         (equals): Check for same collator, source string and key array.
4196         * java/text/RuleBasedCollator.java:
4197         Reformated.
4198         (RuleBasedCollator): Don't re-initialize frenchAccents with default
4199         value.
4200         (getCollationElementIterator): Rewritten.
4201         (getCollationKey): Added new argument to CollationKey constructor.
4202
4203 2004-01-07  Michael Koch  <konqueror@gmx.de>
4204
4205         * gnu/java/nio/DatagramChannelImpl.java
4206         (blocking): Removed.
4207         (DatagramChannelImpl): Call configureBlocking().
4208         (implConfigureBlocking): Dont initialize blocking.
4209         * gnu/java/nio/ServerSocketChannelImpl.java
4210         (blocking): Removed.
4211         (ServerSocketChannelImpl): Call configureBlocking().
4212         (implConfigureBlocking): Dont initialize blocking.
4213         * gnu/java/nio/SocketChannelImpl.java
4214         (blocking): Removed.
4215         (SocketChannelImpl): Call configureBlocking().
4216         (implConfigureBlocking): Dont initialize blocking.
4217         (connect): Use isBlocking().
4218         * java/nio/channels/spi/AbstractSelectableChannel.java
4219         (configureBlocking): Use blockingLock() instead of LOCK.
4220         Set blocking after successfully called implConfigureBlocking().
4221         (register): Use blockingLock() instead of LOCK.
4222
4223 2004-01-07  Michael Koch  <konqueror@gmx.de>
4224
4225         * java/net/ServerSocket.java (isBound): Fixed documentation.
4226
4227 2004-01-07  Sascha Brawer  <brawer@dandelis.ch>
4228
4229         * javax/swing/DefaultBoundedRangeModel.java: Documented API.
4230         (changeEvent): Create event object on demand.
4231         (DefaultBoundedRangeModel, toString, setValue, setExtent,
4232         setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
4233         fireStateChanged): Re-written.
4234         * javax/swing/event/EventListenerList.java: Reformatted, document
4235         typical usage.
4236         (toString): Implemented.
4237         (getListeners): Re-written.
4238         (remove): Re-written.
4239         (add): Re-written.
4240         (NO_LISTENERS): New singleton field.
4241         (listenerList): Declare as transient; document.
4242         (serialVersionUID): Document.
4243         (getListenerCount(Class)): More efficient implementation,
4244         also accepts null argument.  Improve Javadoc.
4245         (getListenerCount()): Remove unnecessary cast; docfix.
4246         * javax/swing/undo/UndoableEditSupport.java:
4247         Re-format, document.
4248         (UndoableEditSupport): Set realSource field. Improve documentation.
4249         (_postEdit): Iterate over cloned listener vector.
4250         (toString): Don't emit realSource.
4251         (beginUpdate, endUpdate): Support nested updates.
4252         (postEdit): Use compound edit if present.
4253
4254 2004-01-06  Graydon Hoare  <graydon@redhat.com>
4255
4256         * java/awt/Container.java (swapComponents): Add forgotten
4257         function, required for JLayeredPane change.
4258
4259 2004-01-06  Michael Koch  <konqueror@gmx.de>
4260
4261         * java/text/CollationElementIterator.java: Reformated.
4262         (CollationElementIterator): Changed order of arguments.
4263         * java/text/RuleBasedCollator.java
4264         (RuleBasedCollator): Merged class documentation.
4265         (CollationElement): Added documentation.
4266         (compare): Reformated, renamed arguments.
4267         (equals): Likewise.
4268         (getCollationElementIterator): Likewise.
4269         (getCollationKey): Likewise.
4270
4271 2004-01-06  Graydon Hoare  <graydon@redhat.com>
4272
4273         * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
4274
4275 2004-01-06  Michael Koch  <konqueror@gmx.de>
4276
4277         * gnu/java/net/protocol/file/Connection.java:
4278         Reformated copyright.
4279         (hdrHash): Removed.
4280         (hdrVec): Removed.
4281         (gotHeaders): Removed.
4282         (getHeaderField): Removed.
4283         (getHeaderField): Removed.
4284         (getHeaderFieldKey): Removed.
4285         (getKey): Removed.
4286         (getField): Removed.
4287         (getHeaders): Removed.
4288
4289 2004-01-06  Michael Koch  <konqueror@gmx.de>
4290
4291         * javax/print/attribute/standard/DateTimeAtCompleted.java,
4292         javax/print/attribute/standard/DateTimeAtCreation.java,
4293         javax/print/attribute/standard/DateTimeAtProcessing.java,
4294         javax/print/attribute/standard/JobImpressionsCompleted.java,
4295         javax/print/attribute/standard/JobKOctets.java,
4296         javax/print/attribute/standard/JobKOctetsProcessed.java,
4297         javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4298         javax/print/attribute/standard/JobPrioritySupported.java: New files.
4299         * Makefile.am (javax_source_files): Added new files.
4300         * Makefile.in: Regenerated.
4301
4302 2004-01-06  Michael Koch  <konqueror@gmx.de>
4303
4304         * java/net/URLConnection.java
4305         (contentHandler): Removed.
4306         (locale): Removed.
4307         (getHeaderFields): Return an empty map instead of null.
4308         (getContent): Connect if needed, renamed "cType" to "type" and
4309         "contentHandler" to "ch" and made it a local variable.
4310         (getPermission): Don't use package in class name.
4311         (setDefaultRequestProperty): Fixed typo in documentation.
4312         (initializeDateFormats): Made locale a local variable.
4313
4314 2004-01-06  Michael Koch  <konqueror@gmx.de>
4315
4316         * java/lang/Package.java
4317         (getPackage): Get the current class loader directly.
4318         * java/lang/SecurityManager.java
4319         (currentLoadedClass): Dont iterate over class contexts.
4320         (classLoaderDepth): Don't check class loaders if everything is allowed.
4321
4322 2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
4323
4324         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4325         (pre_event_handler): Set all insets to 0 when a Configure event
4326         is received for a GtkPlug.
4327         * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
4328         Make handle long, not int.
4329         (EmbeddedWindow()): New constructor.
4330         (EmbeddedWindow(int)): Rename window_id to handle.  Make handle
4331         long, not int.
4332         (setHandle): New method.
4333         (getHandle): Return long, not int.
4334         * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
4335         declaration.
4336         * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
4337         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
4338         (create(long)): Take long parameter, not int.  Cast gtk_plug_new
4339         argument to GdkNativeWindow.
4340         (construct): New method.
4341         (embed): New method.
4342
4343         * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
4344         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
4345         (create(int, int)): New method.
4346         (create): Call new create method.
4347         (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
4348         methods.
4349         (childResized): Remove native implementation.  Implement in
4350         Java.
4351         (getHScrollbarHeight, getVScrollbarWidth): Call
4352         gtk_widget_size_request to get scrollbar dimensions.
4353         * java/awt/ScrollPane.java (getViewportSize): Reimplement.  Only
4354         call getVScrollbarWidth and getHScrollbarHeight when vertical
4355         and horizontal scrollbars respectively are needed.
4356         (doLayout): Enlarge child if it is smaller than the viewport.
4357
4358 2004-01-05  Fernando Nasser  <fnasser@redhat.com>
4359
4360         * java/awt/Dialog.java (constructor): Accept null title as per spec.
4361         * java/awt/FileDialog.java (constructor): Throw exception on invalid
4362         argument as per spec.
4363
4364 2004-01-05  Fernando Nasser  <fnasser@redhat.com>
4365
4366         * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
4367         (insert): Ditto.
4368         (remove): Ditto.  Also, Check for valid argument.
4369         (removeAll): Use peer interface method.
4370         * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
4371         native add function.
4372         (nativeRemove): New name for native remove function.
4373         (getHistory): New native function.
4374         (constructor): Generate ItemEvent.
4375         (add): Ditto, if selection is changed.
4376         (remove): Ditto, ditto.
4377         (removeAll): Add implementation.
4378         (handleEvent): Remove.  Dead code.
4379         (choicePostItemEvent): Add comment.
4380         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
4381         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
4382         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
4383         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name.  Add
4384         comments and fix condition to change selection.
4385         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
4386         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name.  Add
4387         remove all capability.
4388         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
4389         (item_activate): Add cast to remove compiler warning.
4390
4391 2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
4392
4393         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4394         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4395         (getPreferredSize): Call preferredSize.
4396         (preferredSize): Call gtkWidgetGetPreferredDimensions.
4397         (getMinimumSize): Call minimumSize.
4398         (minimumSize): Call gtkWidgetGetPreferredDimensions.
4399         (gtkWidgetGetDimensions): Return the peer widget's current size
4400         request.
4401         (gtkWidgetGetPreferredDimensions): Return the peer widget's
4402         natural size request.
4403
4404 2004-01-05  Sascha Brawer  <brawer@dandelis.ch>
4405
4406         Thanks to Brian Gough <bjg@network-theory.com>
4407         * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
4408         * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
4409
4410 2004-01-04  Matthias Klose  <doko@debian.org>
4411
4412         * aclocal.m4: Rebuilt using "aclocal -I .".
4413         * configure: Rebuilt.
4414
4415 2004-01-03  Per Bothner  <per@bothner.com>
4416
4417         * java/util/Date.java (parse):  Fix a number of problems.
4418         (skipParens):  Remove no-longer-needed method.
4419