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