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