1 2004-03-11 Michael Koch <konqueror@gmx.de>
3 * gnu/java/net/protocol/jar/Connection.java
4 (getContentLength): New method.
6 2004-03-11 Michael Koch <konqueror@gmx.de>
8 * gnu/java/net/PlainSocketImpl.java:
9 Reformated to merge better with classpath's version.
11 2004-03-11 Michael Koch <konqueror@gmx.de>
13 * java/util/Locale.java
14 (getISO3Language): Use String.equals() instead of ==.
15 (getISO3Country): Likewise.
17 2004-03-11 Dalibor Topic <robilad@kaffe.org>
19 * java/text/AttributedString.java
20 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
21 Use HashMap instead of Hashtable since value can be null, and
22 you can not store a null value in a Hashtable.
24 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
26 * java/text/AttributedStringIterator.java
27 (getAllAttributesKey): Return only keys concerned
28 by the current iterator.
29 (getAttributes): Use strict inequality for
32 2004-03-11 Michael Koch <konqueror@gmx.de>
34 * java/net/HttpURLConnection.java:
35 Fixed typo in javadoc.
37 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
39 * java/io/BufferedInputStream.java (marktarget): New field for max
41 (CHUNKSIZE): New constant for incremental mark buffer allocation.
42 (mark): Use new fields.
44 (read(byte[],int,int)): Likewise.
48 2004-03-11 Mark Wielaard <mark@klomp.org>
50 * java/beans/BeanDescriptor.java (BeanDescriptor):
51 Set the FeatureDescriptor programmatic name.
53 2004-03-11 Michael Koch <konqueror@gmx.de>
55 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
56 This file was was just copied form java/io/natFileDescriptorEcos.cc
57 and never changed to compile correctly.
59 2004-03-11 Michael Koch <konqueror@gmx.de>
61 * gnu/java/nio/PipeImpl.java
62 (SourceChannelImpl): Made final.
64 (SinkChannelImpl): Made final.
67 2004-03-11 Michael Koch <konqueror@gmx.de>
69 * gnu/java/net/PlainDatagramSocketImpl.java:
70 Reformated to match classpath's version more.
72 2004-03-11 Michael Koch <konqueror@gmx.de>
74 * gnu/java/awt/peer/ClasspathFontPeer.java:
75 Fixed javadoc to be correct xhtml.
76 * gnu/java/awt/peer/gtk/GtkArgList.java
77 (add): Use Boolean.valueOf() instead of new Boolean().
79 2004-03-09 Michael Koch <konqueror@gmx.de>
81 * java/lang/Thread.java
82 (runnable): Moved around.
83 (daemon): Renamed from daemon_flag.
84 (contextClassLoader): Renamed from context_class_loader.
85 (Thread): Reordered constructors.
86 (activeCount): Use group directly.
87 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
88 (holdsLock): Reworked javadoc.
89 (setDaemon): Reworked.
90 * java/lang/natThread.cc
92 2004-03-08 Anthony Green <green@redhat.com>
94 * Makefile.am: Build property resource files into libgcj.
95 * Makefile.in: Rebuilt.
96 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
97 java/util/regex/PatternSyntaxException.java,
98 gnu/regexp/CharIndexed.java,
99 gnu/regexp/CharIndexedCharArray.java,
100 gnu/regexp/CharIndexedInputStream.java,
101 gnu/regexp/CharIndexedReader.java,
102 gnu/regexp/CharIndexedString.java,
103 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
104 gnu/regexp/REException.java,
105 gnu/regexp/REFilterInputStream.java,
106 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
107 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
108 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
109 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
110 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
111 gnu/regexp/RETokenLookAhead.java,
112 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
113 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
114 gnu/regexp/RETokenStart.java,
115 gnu/regexp/RETokenWordBoundary.java,
116 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
118 2004-03-03 Per Bothner <per@bothner.com>
120 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
121 Optimize when argument is a FileChannelImpl.
122 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
124 * java/nio/channels/natChannels.cc: New file for new native methods.
125 * Makefile.am: Update accordingly.
127 2004-03-02 Jan Hubicka <jh@suse.cz>
129 * configure.host: Pass -fno-omit-frame-pointer for i386.
130 * configure.in: Likewise.
131 * configure: Regenerate.
133 2004-03-01 Per Bothner <per@bothner.com>
135 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
137 2004-02-29 Per Bothner <per@bothner.com>
139 * java/nio/channels/FileChannelImpl.java: Moved to package
140 gnu/java/nio/channels, since we need to refer to it from java.io.
141 * java/nio/channels/natFileChannelImpl.cc: Removed file.
142 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
143 from java/nio/channels. Don't depend on FileDescriptor.
144 (in, out, err): New static fields.
146 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
148 (by): Removed MappedByteBuffer field.
149 (map): New working implementation.
150 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
151 some code "ported" from natFileDescriptoPosix.cc.
152 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
153 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
154 * java/io/FileDescriptor.java: Implement on top of FileChannel.
155 Remove native methods.
156 * Makefile.am, configure.in: Updated accordingly.
158 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
159 (ch): New FileChannelImpl field. Update constructor to match.
160 (releaseImpl): Remove native method. Instead ...
161 (release): Call unlock on channel.
162 * gnu/java/nio/natFileLockImpl.cc: Removed file.
164 * java/io/natFileDescriptorEcos.cc: Remove file.
165 * java/io/natFileDescriptorPosix.cc: Remove file.
166 * java/io/natFileDescriptorWin32.cc: Remove file.
167 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
168 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
169 (<init>(FileChannelImpl)): New package-private constructor.
170 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
171 (available, close, read, skip): Implement using FileChannelImpl.
172 (getFD): Allocate FileDescriptor if needed.
173 (getChannel): Is now trivial.
174 * java/io/FileOutputStream.java: Corresponding changes.
175 * java/io/RandomAccessFile.java: Corresponding changes.
177 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
178 unmapImpl): New dummy methods, to be overridden by subclass.
179 (finalize, isLoaded, load, force): New methods.
180 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
181 Now works, at least for read mapping.
183 * java/lang/natPosixProcess.cc (startProcess): Implement standard
184 streams using FileChannelImpl, not FileDescriptor.
185 * java/lang/natWin32Process.cc (startProcess): Likewise.
187 2004-02-28 Michael Koch <konqueror@gmx.de>
189 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
192 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
194 * java/io/ObjectInputStream.java
195 (readClassDescriptor): Keep elements of the mapping non null.
196 (checkTypeConsistency): New method.
197 (readFields): Fixed main loop and base logic. Small reindentation.
198 * java/io/ObjectStreamField.java
199 (lookupField): New method to update the field reference.
200 (checkFieldType): New method.
201 * java/io/ObjectStreamClass.java
202 (setClass, setFields): Call lookupField when building the field
203 database. Check the real field type.
205 2004-02-28 Michael Koch <konqueror@gmx.de>
207 * java/nio/ByteOrder.java
208 (nativeOrder): Use equals() to compare strings.
210 2004-02-26 Michael Koch <konqueror@gmx.de>
212 * gnu/java/nio/FileLockImpl.java
213 (finalize): Made protected.
214 * java/nio/channels/FileChannel.java
215 (MapMode.READ_ONLY): Made final.
216 (MapMode.READ_WRITE): Made final.
217 (MapMode.PRIVATE): Made final.
218 * java/nio/channels/SocketChannel.java
219 (open): Simplified code.
220 * java/nio/channels/spi/AbstractSelectableChannel.java
221 (registered): Unused, removed.
222 (keyFor): Check channel is open, only locate key
223 and not add a new one.
224 (register): Don't delete attachments.
226 2004-02-26 Michael Koch <konqueror@gmx.de>
228 * gnu/java/awt/ComponentDataBlitOp.java
229 (INSTANCE): Made final.
230 * gnu/java/awt/image/ImageDecoder.java:
232 (cm): Unused, removed.
234 2004-02-26 Michael Koch <konqueror@gmx.de>
236 * gnu/java/nio/DatagramChannelImpl.java
237 (send): Check if target address is resolved.
239 2004-02-26 Michael Koch <konqueror@gmx.de>
241 * Makefile.am: Generate and install headers for inner classes in
242 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
243 * Makefile.in: Regenerated.
245 2004-02-24 Anthony Green <green@redhat.com>
247 * java/lang/StringBuffer.java: No need to NULL out remainder of
248 buffer since ensureCapacity_unsynchronized will have done this for
251 2004-02-20 Michael Koch <konqueror@gmx.de>
253 * gnu/java/net/protocol/jar/Handler.java
254 (): Removed unneeded check for file != null. java.net.URL.getFile()
255 returns an empty string but never null.
257 2004-02-20 Michael Koch <konqueror@gmx.de>
259 * gnu/gcj/convert/Convert.java
260 (main): Use equals() to compare strings.
262 2004-02-20 Michael Koch <konqueror@gmx.de>
264 * javax/swing/AbstractButton.java: Made several constants final.
265 (getRolloverSelectedIcon): Made public.
266 (getSelectedIcon): Made public.
268 2004-02-16 Per Bothner <per@bothner.com>
270 * java/nio/CharBufferImpl.java: Inline super constructor.
271 * java/nio/DoubleBufferImpl.java: Likewise.
272 * java/nio/FloatBufferImpl.java: Likewise.
273 * java/nio/IntBufferImpl.java: Likewise.
274 * java/nio/LongBufferImpl.java: Likewise.
275 * java/nio/ShortBufferImpl.java: Likewise.
276 * java/nio/CharBuffer.java: Remove unused constructor.
277 * java/nio/DoubleBuffer.java: Likewise.
278 * java/nio/FloatBuffer.java: Likewise.
279 * java/nio/IntBuffer.java: Likewise.
280 * java/nio/LongBuffer.java: Likewise.
281 * java/nio/ShortBuffer.java: Likewise.
282 * java/nio/CharViewBufferImpl.java: New convenience constructor.
283 Fix buggy call to super constructor.
284 * java/nio/DoubleViewBufferImpl.java: Likewise.
285 * java/nio/FloatViewBufferImpl.java: Likewise.
286 * java/nio/IntViewBufferImpl.java: Likewise.
287 * java/nio/LongViewBufferImpl.java: Likewise.
288 * java/nio/ShortViewBufferImpl.java: Likewise.
290 * java/nio/ByteBuffer.java (endian): Make non-private so other
291 java.nio classes can inherit it.
292 (<init>): Don't bother clearing array_offset.
293 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
294 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
295 Remove redundant test.
297 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
298 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
299 Use new XxxViewBufferImpl constructors.
300 * java/nio/MappedByteBufferImpl.java: Likewise.
301 * java/nio/DirectByteBufferImpl.java: Likewise.
303 * java/nio/ByteBufferImpl.java: Remove one constructor.
304 Inline super in remaining constructor.
305 * java/nio/ByteBuffer.java: Remove unused constructor.
307 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
309 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
310 * java/nio/DirectByteBufferImpl.java (owner): New field.
311 (offset): Remove unused field.
312 (<init>): Modify one and add another constructor. Change callers.
313 (allocateDirect): Removed - not used.
314 (getImpl, putImpl): Make static and pass address explicitly,
315 to make them useful for MappedByteBufferImpl.
316 (get, put): Check for underflow. Modify for new getImpl.
317 (getImpl): New native method where target is array.
318 (get(byte[],int,int)): Use the above.
319 (adjustAddress): New static native method.
320 (slice, duplicate, asReadOnly): New implementations.
321 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
322 adjustAddress): New or updated native methods.
324 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
326 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
327 overflow of fieldmapping.
329 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
331 * javax/swing/undo/UndoManager.java: Re-written from scratch.
333 2004-02-14 Per Bothner <per@bothner.com>
335 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
336 Set closed before calling implCloseChannel, as in the spec.
338 2004-02-09 Graydon Hoare <graydon@redhat.com>
340 * javax/swing/ToggleButtonModel.java: Remove dead class.
341 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
342 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
343 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
344 * Makefile.am: Update for new and removed files.
345 * Makefile.in: Regenerate.
347 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
348 * javax/swing/AbstractButton.java
349 (AbstractButton): Initialize fields correctly in ctor.
350 * javax/swing/JCheckbox.java
351 (JCheckBox): Override painting flags.
352 * javax/swing/DefaultButtonModel.java: Conform to sun.
353 * javax/swing/JComponent.java (paint): Fill with background color
355 (processComponentKeyEvent)
358 (processMouseMotionEvent): Remove event-consuming empty methods.
359 (getUIClassID): Return "ComponentUI" not "JComponent"
360 * javax/swing/JFrame.java: Remove some debugging chatter.
361 (JFrame): Subscribe to window events.
362 * javax/swing/JRadioButton.java
363 (JRadioButton): Override painting flags.
364 * javax/swing/JRootPane.java
365 (JRootPane): Set background from UIDefaults.
366 * javax/swing/JToggleButton.java
367 (ToggleButtonModel): New inner class.
368 (JToggleButton): Override layout alighment.
369 * javax/swing/SwingUtilities.java:
370 (getLocalBounds): Return width and height, not x and y.
371 (calculateInnerArea): Use local bounds, not bounds.
372 (layoutCompoundLabel): Provide overridden form.
373 (layoutCompoundLabel): Correct bugs.
374 * javax/swing/UIDefaults.java: Correct comment.
375 * javax/swing/plaf/basic/BasicButtonUI.java:
376 Move most logic into defaults, external listener.
377 (paintIcon): Implement icon painting.
378 (paint): Fix state painting to conform to changes in model.
379 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
380 Remove most dead/wrong methods.
381 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
382 * javax/swing/plaf/basic/BasicIconFactory.java:
383 (DummyIcon): New class.
384 (getMenuItemCheckIcon)
385 (getMenuItemArrowIcon)
387 (getCheckBoxMenuItemIcon)
388 (getRadioButtonMenuItemIcon)
389 (createEmptyFrameIcon): Return DummyIcons, not null.
390 (getCheckBoxIcon): Implement an icon that looks like sun's.
391 (getRadioButtonIcon): Implement an icon that looks like sun's.
392 * javax/swing/plaf/basic/BasicLookAndFeel.java
393 (initComponentDefaults): Fix impossible values, add some missing.
394 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
395 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
396 Remove most dead/wrong methods.
398 (getDefaultIcon): New method.
399 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
400 Remove most dead/wrong methods.
401 * javax/swing/plaf/metal/MetalLookAndFeel.java
402 (getDefaults): Return super.getDefaults(), not BasicDefaults.
403 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
404 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
405 Implement "clearing" as drawing, when on pixmap drawables.
407 * javax/swing/JButton.java (getUIClassID):
408 * javax/swing/JCheckBox.java (getUIClassID):
409 * javax/swing/JEditorPane.java (getUIClassID):
410 * javax/swing/JLabel.java (getUIClassID):
411 * javax/swing/JList.java (getUIClassID):
412 * javax/swing/JOptionPane.java (getUIClassID):
413 * javax/swing/JPanel.java (getUIClassID):
414 * javax/swing/JPasswordField.java (uiClassID):
415 * javax/swing/JRadioButton.java (getUIClassID):
416 * javax/swing/JRootPane.java (getUIClassID):
417 * javax/swing/JScrollPane.java (getUIClassID):
418 * javax/swing/JTabbedPane.java (getUIClassID):
419 * javax/swing/JToggleButton.java (getUIClassID):
420 * javax/swing/JTree.java (getUIClassID):
421 * javax/swing/JViewport.java (getUIClassID):
422 * javax/swing/text/JTextComponent.java (getUIClassID):
423 Return "fooUI" not "Jfoo"
425 2004-02-11 Michael Koch <konqueror@gmx.de>
427 * java/net/DatagramSocket.java
428 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
430 (setBroadcast): Likewise.
431 * java/net/MulticastSocket.java
432 (setLoopbackMode): Likewise.
433 * java/net/ServerSocket.java
434 (setReuseAddress): Likewise.
435 * java/net/Socket.java
436 (setTcpNoDelay): Likewise.
437 (setSoLinger): Likewise.
438 (setOOBInline): Likewise.
439 (setKeepAlive): Likewise.
440 (setReuseAddress): Likewise.
441 * java/net/URLConnection.java
442 (setContentHandler): Replace == with equals().
443 * java/net/URLStreamHandler.java
444 (hostSEquals): Fix checking host addresses.
445 (toExternalForm): Dont check protocol for null. We know already its
448 2004-02-10 David Jee <djee@redhat.com>
450 * java/awt/BorderLayout.java
451 (calcCompSize): Invisible components get zero dimensions.
452 * java/awt/Button.java
453 (setLabel): Set actionCommand.
454 * java/awt/Component.java
455 (show): Invalidate component and parent container.
458 2004-02-10 David Jee <djee@redhat.com>
460 * java/awt/GridBagLayout.java
461 (GridBagLayout): New private field, internalcomptable.
462 (lookupInternalConstraints): New method.
463 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
464 (GetLayoutInfo): Reimplement.
465 (calcCellSizes): Ignore rows/columns with size 0.
467 2004-02-10 Michael Koch <konqueror@gmx.de>
469 * gnu/java/awt/EmbeddedWindow.java
470 (setHandle): Use java.awt.Component.getPeer() instead of
471 java.awt.Component.peer directly.
473 2004-02-10 David Jee <djee@redhat.com>
475 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
476 (gtkSetLabel): New native method definition.
477 (setLabel): Use gtkSetLabel.
478 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
479 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
481 2004-02-10 Alan Modra <amodra@bigpond.net.au>
483 * include/powerpc-signal.h: Revert 2004-01-21 change.
484 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
485 from syscall for ppc32 versions.
487 2004-02-08 Per Bothner <per@bothner.com>
489 * java/nio/ByteBuffer.java (shiftDown): New helper method.
490 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
491 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
492 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
493 Pass ByteOrder parameter to most methods, since the underlying
494 ByteBuffer's order isn't always what we should use.
495 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
496 * java/nio/DirectByteBufferImpl.java: Likewise.
497 Use ByteBufferHelper methods.
498 * java/nio/MappedByteBufferImpl.java: Likewise.
499 (compact): Use shiftDown.
500 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
501 (get, put): Use ByteBufferHelper.
502 (compact): Use new shiftDown method.
503 (duplicate(boolean)): New helper method.
504 (duplicate, asReadOnlyBuffer): Use it.
505 (order): Return endian field.
506 * java/nio/DoubleViewBufferImpl.java: Likewise.
507 * java/nio/FloatViewBufferImpl.java: Likewise.
508 * java/nio/IntViewBufferImpl.java: Likewise.
509 * java/nio/LongViewBufferImpl.java: Likewise.
510 * java/nio/ShortViewBufferImpl.java: Likewise.
511 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
512 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
513 (compact): Re-implement using shiftDown.
515 2004-02-08 Andreas Jaeger <aj@suse.de>
517 * include/x86_64-signal.h: Fix typo.
519 2004-02-08 Diego Novillo <dnovillo@redhat.com>
521 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
523 (HANDLE_DIVIDE_OVERFLOW): Likewise.
525 2004-02-06 Michael Koch <konqueror@gmx.de>
527 * java/io/ObjectInputStream.java
528 (currentClassLoader): Reverted to old version of this method.
530 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
532 * java/io/ObjectInputStream.java: Made all calls
533 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
534 use cached info from ObjectStreamClass. (readClassDescriptor):
535 Cache more information in ObjectStreamClass. (processResolution,
536 readFields): Use cached info from ObjectStreamClass.
537 (newObject): Throw exception instead of returning null for failure.
538 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
539 setCharField, setDoubleField, setFloatField, setIntField,
540 setLongField, setShortField, setObjectField, readObjectParams):
541 Removed. (dumpElement, dumpElementln): Removed dump flag condition
543 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
544 (setClass): Added call to cacheMethods() (findMethod): New method.
545 (cacheMethods): New method. (ObjectStreamClass): Added call to
546 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
547 AccessController.doPrivileged to invoke setAccessible.
548 (readObjectMethod, readResolveMethod, realClassIsSerializable,
549 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
551 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
552 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
553 isPrimitive): Made safe for cases where type == null.
554 (setBooleanField, setByteField, setCharField, setShortField,
555 setIntField, setLongField, setFloatField, setDoubleField,
556 setObjectField): New methods.
558 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
560 * java/awt/Component.java (getFont): Return a default font
563 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
564 (Scrollbar (int, int, int, int, int)): Make default page
566 (setValues): Only call peer.setValues if one of the values has
568 (generateName): New method.
569 (getUniqueLong): New method.
570 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
571 (range_scrollbar): Remove structure.
572 (post_adjustment_event): Remove function.
573 (post_change_event): Accept jobject argument.
574 (create): Cast jints to gdoubles. Round scrollbar values to the
575 nearest integer. Clamp min, max and value settings.
576 (connectJObject): Connect hook to widget->window.
577 (connectSignals): Remove range_scrollbar structure variables.
578 Remove "move-slider" connection. Pass global peer reference to
579 "value-changed" callback.
580 (setLineIncrement): Cast jint value to gdouble.
581 (setPageIncrement): Likewise.
582 (setValues): Likewise. Clamp min, max and value settings.
584 2004-02-05 Michael Koch <konqueror@gmx.de>
586 * javax/swing/AbstractCellEditor.java
587 (getCellEditorValue): Removed.
588 * javax/swing/Box.java: Reformated.
589 (serialVersionUID): New field.
590 * javax/swing/ButtonGroup.java:
591 Removed some weird whitespace.
592 * javax/swing/CellEditor.java: Reformated.
593 * javax/swing/CellRendererPane.java
594 (serialVersionUID): New field.
595 (AccessibleCellRendererPaneserialVersionUID): New field.
596 * javax/swing/DefaultListModel.java
597 (serialVersionUID): New field.
598 * javax/swing/JEditorPane.java
599 (serialVersionUID): New field.
600 (setPage): Throws IOException.
601 (addHyperlinkListener): Implemented.
602 (removeHyperlinkListener): Implemented.
603 (getHyperlinkListener): New method.
604 * javax/swing/JFileChooser.java
605 (serialVersionUID): New field.
606 (AccessibleJFileChooser.serialVersionUID): New field.
607 (addActionListener): Implemented.
608 (removeActionListener): Implemented.
609 (getActionListeners): New method.
610 * javax/swing/JFormattedTextField.java
611 (serialVersionUID): New field.
612 (AbstractFormatter.serialVersionUID): New field.
613 (clone): Throws CloneNotSupportedException
614 (setEditValid): Add missing argument.
615 (stringToValue): Throws ParseExcpetion.
616 (valueToString): Throws ParseException.
617 (commitEdit): Throws ParseException.
618 * javax/swing/JLabel.java
619 (serialVersionUID): New field.
620 * javax/swing/JList.java
621 (serialVersionUID): New field.
622 (addListSelectionListener): Reformated.
623 (removeListSelectionListener): Reformated.
624 (getListSelectionListeners): New method.
625 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
627 (serialVersionUID): New field.
628 * javax/swing/table/AbstractTableModel.java
629 (getValueAt): Removed.
630 (getColumnCount): Removed.
631 (getRowCount): Removed.
633 2004-02-05 Michael Koch <konqueror@gmx.de>
635 * java/awt/datatransfer/DataFlavor.java
636 (imageFlavor): Javadoc added.
637 (javaJVMLocalObjectType): Fixed.
639 2004-02-05 Michael Koch <konqueror@gmx.de>
641 * java/lang/Thread.java
643 (setContextClassLoader): Fixed javadoc comment.
644 (setPriority): Reordered.
646 (initialize_native): Reordered.
647 (gen_name): Reordered.
649 2004-02-05 Michael Koch <konqueror@gmx.de>
651 * java/lang/Thread.java: Reordered fields, reformated much code,
652 no functional changes, some variables renamed, javadoc comments
655 2004-02-05 Michael Koch <konqueror@gmx.de>
657 * java/util/zip/Deflater.java,
658 java/util/zip/DeflaterOutputStream.java,
659 java/util/zip/GZIPInputStream.java:
660 Reformated and javadoc comments merged from classpath.
662 2004-02-05 Michael Koch <konqueror@gmx.de>
664 * gnu/java/nio/NIOServerSocket.java
665 (impl): Unused, removed.
666 * gnu/java/nio/SocketChannelImpl.java
667 (finnishConnect): Don't throw NoConnectionPendingException if not
668 connected or no connection pending.
670 2004-02-02 Graydon Hoare <graydon@redhat.com>
672 * javax/swing/SwingUtilities.java: Many new functions.
673 * java/awt/Container.java (LightweightDispatcher): Reimplement.
674 * javax/swing/basic/BasicGraphicsUtils.java
675 (getPreferredButtonSize): Start layout from top-left corner.
677 2004-02-04 Olga Rodimina <rodimina@redhat.com>
679 * java/awt/geom/AffineTransform.java:
680 Corrected comments on the field definitions for
682 (shear): Fixed few errors that caused shear
683 transformation to be performed incorrectly.
684 (createInverse): Fixed to return correct
685 inverse of the given matrix.
687 2004-02-03 Tom Tromey <tromey@redhat.com>
689 * java/lang/natPosixProcess.cc (startProcess): Handle case where
690 PATH or LD_LIBRARY_PATH is not set in parent environment.
692 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
694 * gnu/java/awt/peer/gtk/GtkListPeer.java,
695 java/awt/BorderLayout.java, java/awt/CardLayout.java,
696 java/awt/CheckboxGroup.java, java/awt/Choice.java,
697 java/awt/Component.java, java/awt/Container.java,
698 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
699 java/awt/LayoutManager2.java, java/awt/List.java,
700 java/awt/Menu.java, java/awt/MenuBar.java,
701 java/awt/MenuItem.java, java/awt/Polygon.java,
702 java/awt/Rectangle.java, java/awt/ScrollPane.java,
703 java/awt/Scrollbar.java, java/awt/TextArea.java,
704 java/awt/TextField.java,
705 java/awt/image/renderable/RenderContext.java,
706 javax/swing/JApplet.java: Fix handling of alias methods, where a
707 method has been deprecated in favour of a new one with the same
708 funtion but a different name. Put the method implementation in
709 the deprecated method and have the new method call the
710 deprecated one. Make all other code call the new method.
712 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
714 * gnu/java/nio/DatagramChannelImpl.java
715 (inChannelOperation): New field.
716 (isInChannelOperation): New accessor.
717 (setInChannelOperation): New modifier.
718 (receive): Use capacity() - position() of destination
719 buffer instead of remaining(). Set and reset our "in
720 channel operation indicator" before and after delegating
721 the receive to our datagram socket. Removed testing code.
722 Update destination buffer's current position if it is
723 backed by a byte array (hasArray() is true).
724 (send): Set and reset our "in channel operation indicator"
725 before and after delegating the send to our datagram socket.
726 Removed testing code. Update source buffer's current position
727 if it is backed by a byte array (hasArray() is true).
728 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
729 Use capacity() - position() of destination buffer instead
731 * java/net/DatagramSocket.java (receive): Don't throw an
732 IllegalBlockingModeException if we have a non-blocking
733 channel which initiated this operation.
736 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
738 * configure.in: Add pkgconfig check for glib and gthread.
739 * configure: Regenerate.
741 2004-02-01 Michael Koch <konqueror@gmx.de>
743 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
745 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
746 * verify.cc (debug_print): Mark 'fmt' unused.
748 2004-01-30 Michael Koch <konqueror@gmx.de>
750 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
751 * configure: Regenerated.
752 * glib-2.0.m4: Removed.
753 * gtk-2.0.m4: Removed.
754 * libart.m4: Removed.
757 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
759 * gnu/java/net/PlainSocketImpl.java
760 (inChannelOperation): New field.
761 (isInChannelOperation): New accessor.
762 (setInChannelOperation): New modifier.
763 * gnu/java/nio/ServerSocketChannelImpl.java
764 (accept): Set and reset our server socket's PlainSocketImpl's
765 "in channel operation" indicator before and after delegating
766 the accept to our server socket.
767 * gnu/java/nio/SocketChannelImpl.java
768 (connect): Set and reset our socket's PlainSocketImpl's "in channel
769 operation" indicator before and after delegating the operation to
773 * java/net/ServerSocket.java (implAccept): Don't throw an
774 IllegalBlockingModeException if we have a non-blocking
775 channel which initiated this accept operation.
776 * java/net/Socket.java (connect): Don't throw an
777 IllegalBlockingModeException if we have a non-blocking
778 channel which initiated this connect operation.
779 * java/nio/channels/spi/AbstractSelectableChannel.java
780 (configureBlocking): Only call implConfigureBlocking() if
781 the desired blocking mode is different from our current one.
783 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
785 * java/io/BufferedReader.java (sbuf): New field.
786 (readLine): Use String.valueOf instead of new String() as per
787 Per Bothner's suggestion. Use instance sbuf field instead of a
788 local StringBuffer instance.
789 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
790 caller's buffer to refill().
791 (read(void)): Pass our internal work buffer to refill if our
792 input queue is empty.
793 (refill): Changed return type to int. Use the specified buffer
794 instead of our work buffer as per Bryce McKinlay's suggestion.
795 Return the number of characters read or -1 for EOF.
797 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
799 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
801 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
803 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
804 * Makefile.in: Re-generated.
805 * gnu/awt/xlib/XFontPeer.java: New file.
806 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
807 (setClip): Commented out debug printout.
808 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
809 (getFontPeer): Return XFontPeer.
810 (getLocalGraphicsEnvironment): New method.
811 (getClasspathFontPeer): New method.
812 (createFont): New method.
814 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
816 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
819 2004-01-29 Kim Ho <kho@redhat.com>
821 * gnu/java/awt/peer/gtk/GtkFramePeer.java
822 (gtkLayoutSetVisible): New method
823 (setMenuBar): Hide layout before setting MenuBar
825 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
826 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
828 2004-01-28 Michael Koch <konqueror@gmx.de>
830 * gnu/java/lang/ClassHelper.java
831 (getPackagePortion): Removed.
833 2004-01-28 Michael Koch <konqueror@gmx.de>
835 * javax/swing/JComponent.java
836 (listenerList): Initalize globally.
837 (ancestor_list): Removed.
838 (veto_list): Removed.
839 (change_list): Removed.
840 (get_veto_list): Removed.
841 (get_change_list): Removed.
842 (get_ancestor_list): Removed.
843 (removeAncestorListener): Reimplemented.
844 (removePropertyChangeListener): Likewise.
845 (removeVetoableChangeListener): Likewise.
846 (addAncestorListener): Likewise.
847 (addPropertyChangeListener): Likewise.
848 (addVetoableChangeListener): Likewise.
849 (getListeners): New method.
850 (getAncestorListeners): Likewise.
851 (getVetoableChangeListeners): Likewise.
852 (fireVetoableChange): Throws PropertyVetoException.
853 * javax/swing/JEditorPane.java
854 (JEditorPane): Throws IOException.
856 2004-01-28 David Jee <djee@redhat.com>
858 * gnu/java/awt/peer/gtk/GtkFramePeer.java
859 (create): Set the default foreground color to
860 java.awt.SystemColor.windowText.
862 2004-01-27 Michael Koch <konqueror@gmx.de>
864 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
865 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
866 Reindented to merge with classpath.
868 2004-01-27 David Jee <djee@redhat.com>
870 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
871 (addExposeFilter): Handle GtkFramePeer separately.
872 (removeExposeFilter): Likewise.
874 2004-01-27 Michael Koch <konqueror@gmx.de>
876 * gnu/java/net/protocol/http/Connection.java
877 (getOutputStream): Fixed typo.
879 2004-01-27 Michael Koch <konqueror@gmx.de>
881 * java/lang/Class.java
882 (getConstructor): Removed SecurityException from throws clause.
883 (_getConstructors): Likewise.
884 (getConstructors): Likewise.
885 (getDeclaredConstructor): Likewise.
886 (getDeclaredClasses): Likewise.
887 (getDeclaredConstructors): Likewise.
888 (getDeclaredField): Likewise.
889 (getDeclaredMethod): Likewise.
890 (getDeclaredMethods): Likewise.
891 (getField): Likewise.
892 (getMethod): Likewise.
893 (getMethods): Likewise.
895 2004-01-27 Kim Ho <kho@redhat.com>
897 * gnu/java/awt/peer/gtk/GtkFramePeer.java
898 (removeMenuBarPeer): Remove MenuBarPeer argument.
899 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
900 (dispose): Call native method.
901 * java/awt/Frame.java (setMenuBar): Create and remove
902 MenuBar peers only if the Frame has a peer.
903 (addNotify): Create the MenuBar peer if one exists.
904 (removeNotify): Remove MenuBar peer if one exists.
905 * java/awt/Menu.java: Fix imports.
906 (addNotify): Don't use full class name.
907 (removeNotify): Call removeNotify on all children.
908 * java/awt/MenuBar.java (removeNotify): Call
909 removeNotify on all children.
910 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
911 (removeMenuBarPeer): Remove MenuBarPeer argument.
912 Iterate through children to find the Frame's MenuBar.
913 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
915 (dispose): Remove references to the MenuComponent.
917 2004-01-27 Michael Koch <konqueror@gmx.de>
919 * javax/swing/AbstractCellEditor.java: Reformated.
920 * javax/swing/DefaultListSelectionModel.java
921 (listenerList): Made protected.
922 (addListSelectionListener): Javadoc added.
923 (removeListSelectionListener): Likewise.
924 (getListeners): Likewise.
925 (getListSelectionListeners): Likewise.
926 * javax/swing/JComboBox.java: Merged copyright year.
927 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
929 2004-01-26 Andrew Haley <aph@redhat.com>
931 * javax/swing/table/JTableHeader.java: Extend JComponent
933 2004-01-26 Kim Ho <kho@redhat.com>
935 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
938 2004-01-26 Kim Ho <kho@redhat.com>
940 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
942 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
943 height and let the Layout Managers readjust anything that
945 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
946 (moveLayout): New method. Shift everything in the Gtk
947 layout in the Y direction by an offset.
949 2004-01-26 David Jee <djee@redhat.com>
951 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
952 (handleEvent): Implemented. Handles PaintEvents.
953 (paint): Implemented. Use GTK native methods to queue updates
954 for this heavyweight peer.
955 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
956 (handleEvent): Removed.
957 * java/awt/Component.java
958 (paint): Implemented. Explictly paint the heavyweight peer.
959 (update): Clear the background for heavyweight components.
960 (paintAll): No need to call peer.paint() anymore.
961 (processEvent): Don't process PaintEvents here. It's now done in
962 the peer's handleEvent().
963 (processPaintEvent): Removed.
964 * java/awt/Container.java
965 (paint): No need to call super.paint(). Visit heavyweight
967 (update): Don't clear the background here. It's done in
969 (visitChildren): Added check to not recurse into Containers.
970 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
971 (filter_expose_event_handler): New method. Filter unwanted
972 expose events while painting heavyweight peers.
973 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
974 New method. Connect filter and block pre_event_handler.
975 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
976 New method. Disconnect filter and unblock pre_event_handler.
977 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
978 New method. Invalidate and update given area.
979 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
980 (pre_event_handler): Add checks for unwanted expose events.
982 2004-01-26 David Jee <djee@redhat.com>
984 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
985 (find_bg_color_widget): For GtkButton, return its child.
987 2004-01-26 Kim Ho <kho@redhat.com>
989 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
991 (setMenuBar): Grab MenuBar height and change insets.
992 (setBounds): Account for MenuBar height.
993 (postInsetsChangedEvent): Ditto.
994 (postSizeAllocateEvent): Remove.
995 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
996 (menubar_resize_cb): Remove
997 (setMenuBarPeer): Remove callback.
998 (getMenuBarHeight): Use size requisition instead of
1001 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
1003 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
1004 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
1006 (setColumns): Remove FIXME -- peer will retrieve number of
1007 columns by calling getColumns.
1008 (setRows): Likewise for number of rows.
1009 (next_text_number): New field.
1010 (paramString): Fix param string.
1011 (generateName): New method.
1012 (getUniqueLong): New method.
1014 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
1016 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
1017 image observer of image loading status.
1018 (getImage (String)): Start image production.
1019 (getImage (URL)): Likewise.
1021 2004-01-25 Michael Koch <konqueror@gmx.de>
1023 * java/lang/Class.java: Imports reworked, reformated.
1024 (Class): Javadoc added.
1025 (forName): Likewise.
1026 (getClasses): Likewise.
1027 (getClassLoader): Likewise.
1028 (getComponentType): Likewise.
1029 (getConstructor): Likewise.
1030 (getConstructors): Likewise.
1031 (getDeclaredConstructor): Likewise.
1032 (getDeclaredClasses): Likewise.
1033 (getDeclaredConstructors): Likewise.
1034 (getDeclaredField): Likewise.
1035 (getDeclaredMethod): Likewise.
1036 (getDeclaredMethods): Likewise.
1037 (getDeclaringClass): Likewise.
1038 (getField): Likewise.
1039 (getInterfaces): Likewise.
1040 (getMethod): Likewise.
1041 (getMethods): Likewise.
1042 (getModifiers): Likewise.
1043 (getName): Likewise.
1044 (getResource): Likewise.
1045 (getResourceAsStream): Likewise.
1046 (getSigners): Likewise.
1047 (setSigners): Likewise.
1048 (getSuperclass): Likewise.
1049 (isArray): Likewise.
1050 (isAssignableFrom): Likewise.
1051 (isInstance): Likewise.
1052 (isInterface): Likewise.
1053 (isPrimitive): Likewise.
1054 (newInstance): Likewise.
1055 (getProtectionDomain): Likewise.
1056 (toString): Likewise.
1058 (initializeClass): Likewise.
1059 (finalize): Likewise.
1061 2004-01-24 Michael Koch <konqueror@gmx.de>
1063 * gnu/java/net/protocol/jar/Connection.java
1066 (gotHeaders): Removed.
1067 (getHeaderField): Removed.
1068 (getHeaderFields): Removed.
1069 (getHeaderFieldKey): Removed.
1071 (getField): Removed.
1072 (getHeaders): Removed.
1074 2004-01-24 Michael Koch <konqueror@gmx.de>
1076 * Makefile.am: Added library version to gtk peer lib.
1077 * Makefile.in: Regenerated.
1079 2004-01-24 Michael Koch <konqueror@gmx.de>
1081 * java/util/zip/InflaterInputStream.java: Merged class documentation
1084 2004-01-21 Jakub Jelinek <jakub@redhat.com>
1086 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
1087 header. For __powerpc64__ provide the default-signal.h definitions
1089 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
1090 instead of the dummy definitions.
1091 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
1092 (powerpc64*-*): Remove with_libffi_default.
1093 Only add -mminimal-toc for 64-bit compilations.
1094 * configure.in: Use powerpc-signal.h on powerpc64 as well.
1095 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
1096 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
1097 * configure: Rebuilt.
1099 2004-01-23 Michael Koch <konqueror@gmx.de>
1101 * gnu/java/nio/FileLockImpl.java: Compile fixes.
1103 2004-01-23 Michael Koch <konqueror@gmx.de>
1105 * java/lang/VMClassLoader.java: Reworked imports.
1107 2004-01-23 Michael Koch <konqueror@gmx.de>
1109 * javax/swing/AbstractAction.java: Reformated.
1111 2004-01-23 Michael Koch <konqueror@gmx.de>
1113 * java/text/CollationElementIterator.java:
1114 (setText): New method.
1116 2004-01-23 Michael Koch <konqueror@gmx.de>
1118 * gnu/java/nio/FileLockImpl.java:
1119 Fixed filename in copyright.
1120 (released): Removed.
1121 (finalize): New method.
1122 * gnu/java/nio/natFileLockImpl.cc
1123 (releaseImpl): Implemented.
1124 * java/nio/channels/FileChannelImpl.java:
1126 (lock): Implemented.
1127 (lockImpl): New method.
1128 (tryLock): Implemented.
1129 (tryLockImpl): New method.
1130 * java/nio/channels/natFileChannelImpl.cc
1131 (lockImpl): New method.
1132 (tryLockImpl): New method.
1134 2004-01-23 Michael Koch <konqueror@gmx.de>
1136 * java/io/FileDescriptor.java
1138 (tryLock): New method.
1139 (unlock): New method.
1140 * java/io/natFileDescriptorEcos.cc
1142 (tryLock): New method.
1143 (unlock): New method.
1144 * java/io/natFileDescriptorPosix.cc
1146 (tryLock): New method.
1147 (unlock): New method.
1148 * java/io/natFileDescriptorWin32.cc
1150 (tryLock): New method.
1151 (unlock): New method.
1153 2004-01-23 Michael Koch <konqueror@gmx.de>
1155 * java/io/FileDescriptor.java
1156 (sync): Moved around, added javadoc.
1161 (setLength): Likewise.
1163 (getLength): Likewise.
1164 (getFilePointer): Likewise.
1166 (available): Likewise.
1167 (finalize): Likewise.
1169 2004-01-23 Michael Koch <konqueror@gmx.de>
1171 * javax/swing/AbstractAction.java: Reformated.
1172 (getPropertyChangeListeners): New method.
1173 * javax/swing/AbstractCellEditor.java: Reformated.
1174 (getCellEditorListeners): New method.
1175 * javax/swing/DefaultListSelectionModel.java
1176 (listenerList): New field.
1177 (listeners): Removed.
1178 (get_listeners): Removed.
1179 (addListSelectionListener): Rewritten.
1180 (removeListSelectionListener): Rewritten.
1181 (getListSelectionListeners): New method.
1182 (getListeners): New method.
1183 * javax/swing/JComboBox.java: Imports reworked.
1184 (addActionListener): Implemented.
1185 (removeActionListener): Implemented.
1186 (addItemListener): Implemented.
1187 (removeItemListener): Implemented.
1188 (addPopupMenuListener): Implemented.
1189 (removePopupMenuListener): Implemented.
1190 (getActionListeners): New method.
1191 (getItemListeners): New method.
1192 (getPopupMenuListeners): New method.
1194 2004-01-23 Michael Koch <konqueror@gmx.de>
1196 * gnu/java/net/protocol/http/Connection.java
1197 (connect): Don't initialize bufferedOutputStream if not needed.
1198 (sendRequest): Set property for content length if content is present.
1199 Write content only if present.
1200 (getOutputStream): Check if already connected, dont connect,
1201 initalize bufferedOutputStream if needed.
1203 2004-01-23 Michael Koch <konqueror@gmx.de>
1205 * java/io/FileDescriptor.java
1206 (in, out, err): Added javadoc.
1207 (static): Merged loading code.
1208 (fd, position): Moved around.
1210 2004-01-23 Michael Koch <konqueror@gmx.de>
1212 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
1215 2004-01-23 Michael Koch <konqueror@gmx.de>
1217 * java/lang/Class.java,
1218 java/lang/Object.java,
1219 java/lang/Thread.java: Merged copyright with classpath.
1221 2004-01-23 Michael Koch <konqueror@gmx.de>
1223 * java/io/FileDescriptor.java: Merged copyright with classpath to
1224 start merging this class.
1226 2004-01-22 Tom Tromey <tromey@redhat.com>
1229 * testsuite/libjava.lang/pr13107_2.xfail: New file.
1230 * testsuite/libjava.lang/pr13107_3.xfail: New file.
1231 * testsuite/libjava.lang/pr13107_3.java: New file.
1232 * testsuite/libjava.lang/pr13107_3.out: New file.
1233 * testsuite/libjava.lang/pr13107_2.java: New file.
1234 * testsuite/libjava.lang/pr13107_2.out: New file.
1235 * testsuite/libjava.lang/pr13107.java: New file.
1236 * testsuite/libjava.lang/pr13107.out: New file.
1237 * verify.cc (jsr_ptrs): Removed.
1238 (entry_points): Likewise.
1239 (struct subr_info): Likewise.
1240 (struct subr_entry_info): Likewise.
1241 (type_val::unused_by_subroutine_type): Likewise.
1242 (type::merge): Don't handle unused_by_subroutine_type.
1243 (type::print): Likewise.
1244 (state::flags): Removed.
1245 (state::subroutine): Likewise.
1246 (state::seen_subrs): Likewise.
1247 (state::NO_STACK): Likewise.
1248 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
1249 (state): Updated all methods.
1250 (state::clean_subrs): Removed.
1251 (state::state): Removed `ret_semantics' flag.
1252 (state::copy): Likewise.
1253 (state::add_subr): Removed.
1254 (state::enter_subroutine): Likewise.
1255 (type::set_return_address): New method.
1256 (handle_jsr_insn): Set return address on the type. Always
1257 invalidate PC after call.
1258 (check_nonrecursive_call): Removed.
1259 (~_Jv_BytecodeVerifier): Updated.
1260 (branch_prepass): Removed special handling of jsr.
1261 (note_branch_target): Likewise.
1262 (get_subroutine): Removed.
1263 (state::merge): Don't merge subroutines and don't handle
1264 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
1265 (state::note_variable): Removed.
1266 (state::is_unmerged_ret_state): Likewise.
1267 (state::print): Updated.
1268 (set_variable): Likewise.
1269 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
1270 and jsr_semantics arguments. Updated for new reverification
1272 (pop_jump): Rewrote.
1273 (construct_primitive_array_type): Updated.
1274 (state::next): Removed.
1275 (INVALID_STATE): New define.
1276 (state::INVALID): Removed.
1277 (state::NO_NEXT): New value.
1278 (state::pc, state::next): New fields.
1279 (state::get_pc): New method.
1280 (next_verify_pc): Removed.
1281 (next_verify_state): New field.
1282 (verify_instructions_0): Always check for falling off end.
1284 (linked_utf8): Removed.
1285 (states): Changed type.
1286 (type::state_mergeable_p): New method.
1287 (state::state_mergeable_p): Likewise.
1288 (handle_ret_insn): Removed most code.
1289 (state::reverify): New method.
1290 (add_new_state): Likewise.
1291 (state::set_pc): Likewise.
1293 2004-01-22 Jeff Sturm <jsturm@one-point.com>
1296 * testsuite/libjava.compile/PR13733.java: New file.
1297 * testsuite/libjava.compile/PR13733.xfail: New file.
1299 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
1300 Michael Koch <konqueror@gmx.de>
1302 * javax/swing/table/DefaultTableCellRenderer.java
1303 (DefaultTableCellRenderer): Added javadoc for the class and for
1304 the constructor, Border instance, create an EmptyBorder.
1305 (UIResource): Removed the comment at the end of the class
1306 (setForeground): New method.
1307 (setBackground): New method.
1308 (updateUI): New method.
1309 (getTableCellRendererComponent): Rewritten with the help of
1310 dvholten and Stephane Meslin-Weber.
1311 (validate): New method.
1312 (repaint): New method.
1313 (firePropertyChange): New method.
1314 (setValue): New method.
1316 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
1318 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1319 (connectJObject): Replace printf calls with g_assert statements.
1320 Move property-notify-event signal connection to ...
1321 (connectSignals): Connect property-notify-event signal. Iterate
1322 through the vbox's children to find layout.
1324 2004-01-22 Graydon Hoare <graydon@redhat.com>
1326 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
1327 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
1328 Predicate static initialization on GtkToolkit.useGraphics2D().
1329 * java/awt/Component.java (processPaintEvent): Consume event.
1330 * javax/swing/AbstractButton.java: Reimplement, document.
1331 * javax/swing/DefaultButtonModel.java: Reimplement, document.
1332 * javax/swing/JComponent.java (paint): Use double buffer.
1333 (listenerList): Enable member.
1334 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
1335 * javax/swing/JToggleButton.java
1336 (JToggleButton): Modify model constructor.
1337 * javax/swing/SwingUtilities.java
1338 (layoutCompoundLabel): Adjust arithmetic.
1339 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
1340 * javax/swing/plaf/basic/BasicGraphicsUtils.java
1341 (getPreferredButtonSize): Include margins in calculation.
1342 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1343 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
1344 Receive up events from subordinate layout component.
1346 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1348 * java/awt/Component.java (show): Set visible to true before
1351 2004-01-21 Kim Ho <kho@redhat.com>
1353 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
1355 (removeMenuBarPeer): Make package private.
1356 (setMenuBarPeer): Make package private.
1357 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1358 (menubar_resize_cb): Mark attributes unused.
1359 (getMenuBarHeight): ditto.
1361 2004-01-21 David Jee <djee@redhat.com>
1363 * java/awt/Container.java
1364 (LightweightDispatcher.handleEvent): Add an extra check to avoid
1365 dispatching MOUSE_ENTERED event twice. Translate the point for
1366 the mouse event target before dispatching the event.
1368 2004-01-20 Jakub Jelinek <jakub@redhat.com>
1370 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
1371 lib_org_w3c_dom_la_LDFLAGS): New.
1372 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
1373 * Makefile.in: Rebuilt.
1375 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
1377 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
1378 Calculate proper offsets for heavyweight components packed in
1379 lightweight containers.
1381 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1382 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1383 (native create): Add width parameter.
1384 (create): Calculate text entry width based on current font's
1385 metrics and number of columns. Set TextField's font if not
1386 already set. Call native create.
1387 (gtkEntryGetBorderWidth): New native method.
1388 (gtkEntryGetSize): Remove method.
1389 (getMinimumSize): Call minimumSize.
1390 (getPreferredSize): Call preferredSize.
1391 (minimumSize): Calculate minimum size based on backing
1392 GtkEntry's borders, font metrics and number of columns.
1393 (preferredSize): Likewise for preferred size.
1394 (get_border_width): New static function.
1396 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1397 Override GtkWindowPeer's setResizable method to account for menu
1398 bar height when setting the frame's size.
1400 2004-01-19 Matthias Klose <doko@debian.org>
1402 * libtool-version: Increased `current' to 6.
1404 2004-01-19 Kim Ho <kho@redhat.com>
1406 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1407 (connectJObject): Iterate through the vbox's children to find layout.
1409 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1411 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
1412 isDispatchThread method to replace wrong test condition.
1414 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1416 * java/awt/EventQueue.java (pop): Prevent racing condition to add
1417 events to the queue out of order by acquiring locks in the proper
1418 order and not by releasing one before acquiring the other.
1420 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1422 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
1423 visible so that dialog can be reused.
1425 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1427 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
1428 events may be handled by any queue in the stack.
1430 2004-01-19 Kim Ho <kho@redhat.com>
1432 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
1433 MenuBarPeer parameter.
1434 (removeMenuBarPeer): New native method.
1435 (setMenuBar): Call remove if menu bar is null. Adjust insets
1437 (postSizeAllocateEvent): New method. Called when menu bar size is
1438 allocated. Adjust insets and redo layout.
1439 (GtkFramePeer): Set menu bar during frame creation.
1440 (postConfigureEvent): Adjust position and size to accomodate
1442 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
1443 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
1444 (addNotify): Create the peer if it doesn't exist and call addNotify
1445 for the menu's items.
1446 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
1447 * java/awt/MenuItem.java (addNotify): Create the peer if it
1449 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1450 (removeMenuBarPeer): New method. Remove menu bar on the current
1452 (setMenuBarPeer): Add the menu bar to the current frame and the
1453 callback for size-allocate events on the menu bar.
1454 (getMenuBarHeight): Add menu bar parameter.
1455 (menubar_resize_cb): New callback method for postSizeAllocate events.
1457 Also: Fix indentation on last ChangeLog entry.
1459 2004-01-16 Kim Ho <kho@redhat.com>
1461 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1462 (gtkWidgetGetDimensions): Remove.
1463 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1464 (gtkWidgetGetDimensions): Remove.
1466 2004-01-16 Tom Tromey <tromey@redhat.com>
1468 * java/awt/Container.java: Typo and indentation fixes.
1470 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
1471 * java/lang/natVMClassLoader.cc: ...here. New file.
1472 * Makefile.in: Rebuilt.
1473 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
1475 2004-01-16 Fernando Nasser <fnasser@redhat.com>
1477 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
1478 Discard GDK_ENTER_NOTIFY related to ungrabs.
1480 2004-01-16 Fernando Nasser <fnasser@redhat.com>
1482 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
1483 is called for an intermediate queue.
1485 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
1487 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1488 (window_property_changed_cb): Set id_set.
1490 2004-01-16 Kim Ho <kho@redhat.com>
1492 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
1493 it is a FileDialog and has dimensions of 0 by 0, then the initial
1494 size is set to size request plus insets.
1495 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1496 (gtkWidgetGetDimensions): Override method.
1497 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1498 (gtkWidgetGetDimensions): Override method. Returns size request plus
1501 2004-01-16 Andrew Haley <aph@redhat.com>
1503 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
1504 * sysdep/i386/locks.h: Likewise.
1506 2004-01-16 Fernando Nasser <fnasser@redhat.com>
1508 * java/awt/EventDispatchThread.java (run): Stop running when
1510 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
1511 Reset the queue after transferring its contents.
1512 (push): Start a new dispatch thread if none is running.
1514 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
1516 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1517 (doPolygon): set fill rule of polygon to
1518 WIND_EVEN_ODD by default.
1520 2004-01-15 Olga Rodimina <rodimina@redhat.com>
1522 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1523 Implemented rendering hints related methods.
1524 (getDefaultHints): New helper method. Returns
1525 default rendering hints.
1526 (walkPath): changed to normalize path if
1527 the KEY_STROKE_CONTROL key is in "normalize" mode.
1528 (draw3DRect): changed coordinates of rectangle by +0.5
1529 if in "normalize" mode.
1531 2004-01-15 Tom Tromey <tromey@redhat.com>
1533 * Makefile.in: Rebuilt.
1534 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
1535 (%.lo: %.java) Filter out StackTrace.lo.
1537 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
1539 * configure.in: Add in AC_PREREQ(2.13)
1540 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
1543 2004-01-14 Nathan Bryant <nbryant@optonline.net>
1544 Tom Tromey <tromey@redhat.com>
1547 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
1548 array to superclass.
1549 (init): Changed interface; add URLs here.
1550 (initialize): New static method.
1551 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
1552 (_Jv_RunMain): ... not here.
1554 2004-01-14 Michael Koch <konqueror@gmx.de>
1556 * java/text/MessageFormat.java:
1557 Added descriptions to exceptions.
1558 This fixes PR libgcj/2429.
1560 2004-01-13 Fernando Nasser <fnasser@redhat.com>
1562 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
1563 (push): Make sure push is performed at the top of the thread stack.
1565 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1567 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
1568 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
1569 (native create): Add width and height parameters. Set text
1570 view's size request according to new parameters.
1571 (create): Calculate text view size based on current font's
1572 metrics and number of rows and columns. Set TextArea's font if
1573 not already set. Call native create.
1574 (getMinimumSize): Call minimumSize.
1575 (getPreferredSize): Call preferredSize.
1576 (getHScrollbarHeight): New method.
1577 (getVScrollbarWidth): New method.
1578 (minimumSize): Calculate minimum size based on scrollbar
1579 visibility, scrollbar sizes, font metrics and number of rows and
1581 (preferredSize): Likewise for preferred size.
1582 (gtkTextGetSize): Remove method.
1584 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1586 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1587 (initializeInsets): Remove method.
1588 (GtkComponentPeer): Initialize insets field. Remove call to
1590 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
1592 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
1594 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1595 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
1596 (latestInsets): Remove field.
1597 (native create): Add insets parameter. Call
1598 window_get_frame_extents. Set the window's default size and
1599 size request based on its frame extents.
1600 (create): Initialize insets.
1601 (postInsetsChangedEvent): New method.
1602 (postConfigureEvent): Remove parameters top, left, bottom,
1603 right. Remove insets-related logic.
1604 (connectJObject): Handle property-notify-event.
1605 (window_get_frame_extents, request_frame_extents,
1606 property_notify_predicate, window_property_changed_cb): New
1608 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1609 (pre_event_handler): Remove insets-related logic for configure
1611 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
1612 Update postConfigureEvent signature.
1614 2004-01-13 Fernando Nasser <fnasser@redhat.com>
1616 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
1617 to handle Window "Closing" events.
1619 2004-01-13 David Jee <djee@redhat.com>
1621 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1622 (setBackground): New method. Children with no explicitly-set
1623 background will be repainted with the parent container's new
1626 2004-01-13 David Jee <djee@redhat.com>
1628 * Makefile.am: Add BitwiseXORComposite.java.
1629 * Makefile.in: Regenerated.
1630 * gcj/Makefile.in: Regenerated.
1631 * include/Makefile.in: Regenerated.
1632 * testsuite/Makefile.in: Regenerated.
1634 2004-01-12 Fernando Nasser <fnasser@redhat.com>
1636 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
1637 not show modal dialogs twice and so that it allows showing a modal
1638 dialog from another modal dialog.
1640 2004-01-12 Fernando Nasser <fnasser@redhat.com>
1642 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
1643 and run secondary dispatch thread to process event queue while this
1646 2004-01-12 Graydon Hoare <graydon@redhat.com>
1648 * gnu/java/awt/gtk/GdkGraphics2D.java
1649 (static): Check GtkToolkit before initializing static state.
1650 (Graphics2D): Don't construct transform with 0.5 unit offset.
1652 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
1654 * gnu/java/awt/BitwiseXORComposite.java: Add.
1655 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1656 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
1657 (BitwiseXORComposite): Remove inner class.
1659 2004-01-11 Michael Koch <konqueror@gmx.de>
1661 * gnu/java/lang/reflect/TypeSignature.java
1662 (getEncodingOfClass): Documentation fixed.
1663 (getClassForEncoding): Give class loader to Class.forName().
1664 Documentation fixed.
1666 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
1668 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
1670 2004-01-11 Michael Koch <konqueror@gmx.de>
1672 * javax/swing/undo/StateEditable.java
1673 (RCSID): Removed redundant modifiers.
1675 2004-01-10 Michael Koch <konqueror@gmx.de>
1677 * javax/print/attribute/EnumSyntax.java
1678 (getStringTable): Made protected.
1679 (getEnumValueTable): Likewise.
1680 * javax/print/attribute/standard/JobKOctetsProcessed.java
1681 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
1682 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
1683 (JobMediaSheetsCompleted): Made class final.
1684 * javax/print/attribute/standard/OutputDeviceAssigned.java
1685 (getName): Fixed typo.
1686 * javax/print/attribute/standard/RequestingUserName.java
1687 (serialVersionUID): Fixed value.
1689 2004-01-10 Michael Koch <konqueror@gmx.de>
1691 * javax/swing/plaf/basic/BasicButtonUI.java,
1692 javax/swing/plaf/basic/BasicCheckBoxUI.java,
1693 javax/swing/plaf/basic/BasicListUI.java,
1694 javax/swing/plaf/basic/BasicOptionPaneUI.java,
1695 javax/swing/plaf/basic/BasicPanelUI.java,
1696 javax/swing/plaf/basic/BasicRadioButtonUI.java,
1697 javax/swing/plaf/basic/BasicScrollPaneUI.java,
1698 javax/swing/plaf/basic/BasicToggleButtonUI.java,
1699 javax/swing/plaf/basic/BasicViewportUI.java:
1700 Fixed import statements.
1702 2004-01-10 Michael Koch <konqueror@gmx.de>
1704 * gnu/java/awt/image/ImageDecoder.java
1705 (produce): Made public.
1706 * gnu/java/awt/peer/GLightweightPeer.java,
1707 gnu/java/awt/peer/gtk/GtkToolkit.java:
1710 2004-01-10 Michael Koch <konqueror@gmx.de>
1712 * javax/swing/JRadioButtonMenuItem.java,
1713 javax/swing/JSeparator.java,
1714 javax/swing/JSplitPane.java,
1715 javax/swing/JTextPane.java,
1716 javax/swing/JToolBar.java,
1717 javax/swing/ListCellRenderer.java,
1718 javax/swing/ListModel.java,
1719 javax/swing/MenuElement.java,
1720 javax/swing/OverlayLayout.java,
1721 javax/swing/ProgressMonitor.java,
1722 javax/swing/ProgressMonitorInputStream.java,
1723 javax/swing/Renderer.java,
1724 javax/swing/RootPaneContainer.java,
1725 javax/swing/Scrollable.java,
1726 javax/swing/SingleSelectionModel.java,
1727 javax/swing/ToolTipManager.java,
1728 javax/swing/ViewportLayout.java,
1729 javax/swing/event/DocumentEvent.java,
1730 javax/swing/event/SwingPropertyChangeSupport.java,
1731 javax/swing/event/TreeSelectionEvent.java,
1732 javax/swing/event/UndoableEditEvent.java,
1733 javax/swing/text/AbstractDocument.java,
1734 javax/swing/text/AttributeSet.java,
1735 javax/swing/text/Caret.java,
1736 javax/swing/text/ComponentView.java,
1737 javax/swing/text/DefaultCaret.java,
1738 javax/swing/text/DefaultEditorKit.java,
1739 javax/swing/text/Document.java,
1740 javax/swing/text/EditorKit.java,
1741 javax/swing/text/GapContent.java,
1742 javax/swing/text/Keymap.java,
1743 javax/swing/text/MutableAttributeSet.java,
1744 javax/swing/text/PlainEditorKit.java,
1745 javax/swing/text/Segment.java,
1746 javax/swing/text/Style.java,
1747 javax/swing/text/StyledDocument.java,
1748 javax/swing/text/StyledEditorKit.java,
1749 javax/swing/text/TextAction.java,
1750 javax/swing/text/View.java: Fixed import statements.
1752 2004-01-08 Graydon Hoare <graydon@redhat.com>
1754 * javax/swing/JLayeredPane.java: Rewrite to accomodate
1755 djee@redhat.com's recent inverse ordering of Container elements.
1757 2004-01-09 Michael Koch <konqueror@gmx.de>
1759 * gnu/java/lang/ArrayHelper.java
1760 (equalsArray): Removed.
1762 2004-01-09 Andrew Haley <aph@redhat.com>
1764 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
1765 a Utf8Const field before looking at its class.
1767 2004-01-09 Michael Koch <konqueror@gmx.de>
1769 * javax/print/attribute/standard/DocumentName.java,
1770 javax/print/attribute/standard/JobHoldUntil.java,
1771 javax/print/attribute/standard/JobMessageFromOperator.java,
1772 javax/print/attribute/standard/JobName.java,
1773 javax/print/attribute/standard/JobOriginatingUserName.java,
1774 javax/print/attribute/standard/OutputDeviceAssigned.java,
1775 javax/print/attribute/standard/PrinterInfo.java,
1776 javax/print/attribute/standard/PrinterLocation.java,
1777 javax/print/attribute/standard/PrinterMakeAndModel.java,
1778 javax/print/attribute/standard/PrinterMessageFromOperator.java,
1779 javax/print/attribute/standard/PrinterName.java,
1780 javax/print/attribute/standard/RequestingUserName.java: New files.
1781 * Makefile.am (javax_source_files): Added new files.
1782 * Makefile.in: Regenerated.
1784 2004-01-09 Michael Koch <konqueror@gmx.de>
1786 * javax/swing/AbstractAction.java,
1787 javax/swing/AbstractSet.java,
1788 javax/swing/Action.java,
1789 javax/swing/ActionMap.java,
1790 javax/swing/BoundedRangeModel.java,
1791 javax/swing/ButtonModel.java,
1792 javax/swing/CellEditor.java,
1793 javax/swing/CellRendererPane.java,
1794 javax/swing/ComboBoxEditor.java,
1795 javax/swing/DebugGraphics.java,
1796 javax/swing/DefaultCellEditor.java,
1797 javax/swing/DefaultCellRenderer.java,
1798 javax/swing/DefaultComboBoxModel.java,
1799 javax/swing/DefaultDesktopManager.java,
1800 javax/swing/DefaultFocusManager.java,
1801 javax/swing/DefaultListCellRenderer.java,
1802 javax/swing/Icon.java,
1803 javax/swing/JButton.java,
1804 javax/swing/JCheckBoxMenuItem.java,
1805 javax/swing/JDesktopPane.java,
1806 javax/swing/JEditorPane.java,
1807 javax/swing/JMenu.java,
1808 javax/swing/JPanel.java,
1809 javax/swing/JPasswordField.java,
1810 javax/swing/JPopupMenu.java,
1811 javax/swing/JProgressBar.java: Reworked imports.
1813 2004-01-09 Michael Koch <konqueror@gmx.de>
1815 * java/awt/geom/PathIterator.java
1816 (WIND_EVEN_ODD): Removed redundant modifiers.
1817 (WIND_NON_ZERO): Likewise.
1818 (SEG_MOVETO): Likewise.
1819 (SEG_LINETO): Likewise.
1820 (SEG_QUADTO): Likewise.
1821 (SEG_CUBICTO): Likewise.
1822 (SEG_CLOSE): Likewise.
1823 * java/awt/image/SinglePixelPackedSampleModel.java:
1824 Removed redundant semicolon.
1825 * java/io/ObjectInputStream.java
1826 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
1827 * java/util/logging/Filter.java
1828 (isLoggable): Removed redundant modifier.
1829 * java/util/logging/LogManager.java:
1830 Removed redundant semicolon.
1831 * java/util/logging/XMLFormatter.java
1832 (format): Removed unused variable "key".
1834 2004-01-08 Fernando Nasser <fnasser@redhat.com>
1836 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
1837 New name for the former setFile native method.
1838 (setFile): New method.
1839 (setDirectory): Implemented.
1840 (connectSignals): New native method.
1841 (setFilenameFilter): Improve comment.
1842 (getGraphics): Comment.
1843 (gtkHideFileDialog): New method.
1844 (gtkDisposeFileDialog): New method.
1845 (gtkSetFilename): New method.
1846 * java/awt/Dialog.java (show): Block on modal dialogs, but only
1847 for FileDialog for now.
1849 (dispose): New method.
1850 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1851 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
1852 deprecated creation functions. Make dialog modal. Add it to the
1854 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
1856 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
1858 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
1860 (window_closed): New function.
1861 (ok_clicked): New function.
1862 (cancel_clicked): New function.
1864 2004-01-08 Michael Koch <konqueror@gmx.de>
1866 * javax/swing/JLayeredPane.java: Revert changes to standard
1867 boilerplate, reworked imports.
1869 2004-01-07 Tom Tromey <tromey@redhat.com>
1872 * verify.cc (state::merge): Copy changed locals out of subroutine
1874 (state::FLAG_CHANGED): New const.
1875 (state::FLAG_UNUSED): Likewise.
1876 (state::local_changed): Removed. Updated all users.
1877 (state::flags): New field.
1878 (state::merge): Added jsr_semantics argument, more logic.
1879 (push_jump_merge): Added jsr_semantics argument.
1880 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
1881 merging through the jsr instruction.
1883 2004-01-07 Tom Tromey <tromey@redhat.com>
1885 * scripts/MakeDefaultMimeTypes.java: Use \n, not
1888 2004-01-07 Graydon Hoare <graydon@redhat.com>
1890 * java/awt/Container.java (LightweightDispatcher): Implement.
1891 (visitChild): Reuse graphics object.
1892 (dispatchEventImpl): Optionally dispatch to lightweight.
1893 (addNotifyContainerChildren): Build LightweightDispatcher.
1895 2004-01-07 David Jee <djee@redhat.com>
1897 * java/awt/Container.java
1898 (update): Clear only the clipped region, instead of clearing the
1900 (visitChildren): Visit children in descending order.
1902 2004-01-07 Michael Koch <konqueror@gmx.de>
1904 * java/lang/reflect/Array.java: Merged documentation with classpath.
1906 2004-01-07 Michael Koch <konqueror@gmx.de>
1908 * java/text/CollationElementIterator.java
1909 (textIndex): Renamed from index.
1910 * java/text/CollationKey.java
1911 (collator): New member.
1912 (CollationKey): New argument for parent collator.
1913 (equals): Check for same collator, source string and key array.
1914 * java/text/RuleBasedCollator.java:
1916 (RuleBasedCollator): Don't re-initialize frenchAccents with default
1918 (getCollationElementIterator): Rewritten.
1919 (getCollationKey): Added new argument to CollationKey constructor.
1921 2004-01-07 Michael Koch <konqueror@gmx.de>
1923 * gnu/java/nio/DatagramChannelImpl.java
1924 (blocking): Removed.
1925 (DatagramChannelImpl): Call configureBlocking().
1926 (implConfigureBlocking): Dont initialize blocking.
1927 * gnu/java/nio/ServerSocketChannelImpl.java
1928 (blocking): Removed.
1929 (ServerSocketChannelImpl): Call configureBlocking().
1930 (implConfigureBlocking): Dont initialize blocking.
1931 * gnu/java/nio/SocketChannelImpl.java
1932 (blocking): Removed.
1933 (SocketChannelImpl): Call configureBlocking().
1934 (implConfigureBlocking): Dont initialize blocking.
1935 (connect): Use isBlocking().
1936 * java/nio/channels/spi/AbstractSelectableChannel.java
1937 (configureBlocking): Use blockingLock() instead of LOCK.
1938 Set blocking after successfully called implConfigureBlocking().
1939 (register): Use blockingLock() instead of LOCK.
1941 2004-01-07 Michael Koch <konqueror@gmx.de>
1943 * java/net/ServerSocket.java (isBound): Fixed documentation.
1945 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
1947 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
1948 (changeEvent): Create event object on demand.
1949 (DefaultBoundedRangeModel, toString, setValue, setExtent,
1950 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
1951 fireStateChanged): Re-written.
1952 * javax/swing/event/EventListenerList.java: Reformatted, document
1954 (toString): Implemented.
1955 (getListeners): Re-written.
1956 (remove): Re-written.
1958 (NO_LISTENERS): New singleton field.
1959 (listenerList): Declare as transient; document.
1960 (serialVersionUID): Document.
1961 (getListenerCount(Class)): More efficient implementation,
1962 also accepts null argument. Improve Javadoc.
1963 (getListenerCount()): Remove unnecessary cast; docfix.
1964 * javax/swing/undo/UndoableEditSupport.java:
1965 Re-format, document.
1966 (UndoableEditSupport): Set realSource field. Improve documentation.
1967 (_postEdit): Iterate over cloned listener vector.
1968 (toString): Don't emit realSource.
1969 (beginUpdate, endUpdate): Support nested updates.
1970 (postEdit): Use compound edit if present.
1972 2004-01-06 Graydon Hoare <graydon@redhat.com>
1974 * java/awt/Container.java (swapComponents): Add forgotten
1975 function, required for JLayeredPane change.
1977 2004-01-06 Michael Koch <konqueror@gmx.de>
1979 * java/text/CollationElementIterator.java: Reformated.
1980 (CollationElementIterator): Changed order of arguments.
1981 * java/text/RuleBasedCollator.java
1982 (RuleBasedCollator): Merged class documentation.
1983 (CollationElement): Added documentation.
1984 (compare): Reformated, renamed arguments.
1986 (getCollationElementIterator): Likewise.
1987 (getCollationKey): Likewise.
1989 2004-01-06 Graydon Hoare <graydon@redhat.com>
1991 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
1993 2004-01-06 Michael Koch <konqueror@gmx.de>
1995 * gnu/java/net/protocol/file/Connection.java:
1996 Reformated copyright.
1999 (gotHeaders): Removed.
2000 (getHeaderField): Removed.
2001 (getHeaderField): Removed.
2002 (getHeaderFieldKey): Removed.
2004 (getField): Removed.
2005 (getHeaders): Removed.
2007 2004-01-06 Michael Koch <konqueror@gmx.de>
2009 * javax/print/attribute/standard/DateTimeAtCompleted.java,
2010 javax/print/attribute/standard/DateTimeAtCreation.java,
2011 javax/print/attribute/standard/DateTimeAtProcessing.java,
2012 javax/print/attribute/standard/JobImpressionsCompleted.java,
2013 javax/print/attribute/standard/JobKOctets.java,
2014 javax/print/attribute/standard/JobKOctetsProcessed.java,
2015 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
2016 javax/print/attribute/standard/JobPrioritySupported.java: New files.
2017 * Makefile.am (javax_source_files): Added new files.
2018 * Makefile.in: Regenerated.
2020 2004-01-06 Michael Koch <konqueror@gmx.de>
2022 * java/net/URLConnection.java
2023 (contentHandler): Removed.
2025 (getHeaderFields): Return an empty map instead of null.
2026 (getContent): Connect if needed, renamed "cType" to "type" and
2027 "contentHandler" to "ch" and made it a local variable.
2028 (getPermission): Don't use package in class name.
2029 (setDefaultRequestProperty): Fixed typo in documentation.
2030 (initializeDateFormats): Made locale a local variable.
2032 2004-01-06 Michael Koch <konqueror@gmx.de>
2034 * java/lang/Package.java
2035 (getPackage): Get the current class loader directly.
2036 * java/lang/SecurityManager.java
2037 (currentLoadedClass): Dont iterate over class contexts.
2038 (classLoaderDepth): Don't check class loaders if everything is allowed.
2040 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
2042 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
2043 (pre_event_handler): Set all insets to 0 when a Configure event
2044 is received for a GtkPlug.
2045 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
2046 Make handle long, not int.
2047 (EmbeddedWindow()): New constructor.
2048 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
2050 (setHandle): New method.
2051 (getHandle): Return long, not int.
2052 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
2054 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
2055 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
2056 (create(long)): Take long parameter, not int. Cast gtk_plug_new
2057 argument to GdkNativeWindow.
2058 (construct): New method.
2059 (embed): New method.
2061 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
2062 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
2063 (create(int, int)): New method.
2064 (create): Call new create method.
2065 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
2067 (childResized): Remove native implementation. Implement in
2069 (getHScrollbarHeight, getVScrollbarWidth): Call
2070 gtk_widget_size_request to get scrollbar dimensions.
2071 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
2072 call getVScrollbarWidth and getHScrollbarHeight when vertical
2073 and horizontal scrollbars respectively are needed.
2074 (doLayout): Enlarge child if it is smaller than the viewport.
2076 2004-01-05 Fernando Nasser <fnasser@redhat.com>
2078 * java/awt/Dialog.java (constructor): Accept null title as per spec.
2079 * java/awt/FileDialog.java (constructor): Throw exception on invalid
2080 argument as per spec.
2082 2004-01-05 Fernando Nasser <fnasser@redhat.com>
2084 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
2086 (remove): Ditto. Also, Check for valid argument.
2087 (removeAll): Use peer interface method.
2088 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
2089 native add function.
2090 (nativeRemove): New name for native remove function.
2091 (getHistory): New native function.
2092 (constructor): Generate ItemEvent.
2093 (add): Ditto, if selection is changed.
2094 (remove): Ditto, ditto.
2095 (removeAll): Add implementation.
2096 (handleEvent): Remove. Dead code.
2097 (choicePostItemEvent): Add comment.
2098 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
2099 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
2100 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
2101 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
2102 comments and fix condition to change selection.
2103 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
2104 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
2105 remove all capability.
2106 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
2107 (item_activate): Add cast to remove compiler warning.
2109 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
2111 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2112 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2113 (getPreferredSize): Call preferredSize.
2114 (preferredSize): Call gtkWidgetGetPreferredDimensions.
2115 (getMinimumSize): Call minimumSize.
2116 (minimumSize): Call gtkWidgetGetPreferredDimensions.
2117 (gtkWidgetGetDimensions): Return the peer widget's current size
2119 (gtkWidgetGetPreferredDimensions): Return the peer widget's
2120 natural size request.
2122 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
2124 Thanks to Brian Gough <bjg@network-theory.com>
2125 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
2126 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
2128 2004-01-04 Matthias Klose <doko@debian.org>
2130 * aclocal.m4: Rebuilt using "aclocal -I .".
2131 * configure: Rebuilt.
2133 2004-01-03 Per Bothner <per@bothner.com>
2135 * java/util/Date.java (parse): Fix a number of problems.
2136 (skipParens): Remove no-longer-needed method.