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