OSDN Git Service

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