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