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