OSDN Git Service

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