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