OSDN Git Service

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