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