1 2004-02-26 Michael Koch <konqueror@gmx.de>
3 * Makefile.am: Generate and install headers for inner classes in
4 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
5 * Makefile.in: Regenerated.
6 2004-02-24 Anthony Green <green@redhat.com>
8 * java/lang/StringBuffer.java: No need to NULL out remainder of
9 buffer since ensureCapacity_unsynchronized will have done this for
12 2004-02-20 Michael Koch <konqueror@gmx.de>
14 * gnu/java/net/protocol/jar/Handler.java
15 (): Removed unneeded check for file != null. java.net.URL.getFile()
16 returns an empty string but never null.
18 2004-02-20 Michael Koch <konqueror@gmx.de>
20 * gnu/gcj/convert/Convert.java
21 (main): Use equals() to compare strings.
23 2004-02-20 Michael Koch <konqueror@gmx.de>
25 * javax/swing/AbstractButton.java: Made several constants final.
26 (getRolloverSelectedIcon): Made public.
27 (getSelectedIcon): Made public.
29 2004-02-16 Per Bothner <per@bothner.com>
31 * java/nio/CharBufferImpl.java: Inline super constructor.
32 * java/nio/DoubleBufferImpl.java: Likewise.
33 * java/nio/FloatBufferImpl.java: Likewise.
34 * java/nio/IntBufferImpl.java: Likewise.
35 * java/nio/LongBufferImpl.java: Likewise.
36 * java/nio/ShortBufferImpl.java: Likewise.
37 * java/nio/CharBuffer.java: Remove unused constructor.
38 * java/nio/DoubleBuffer.java: Likewise.
39 * java/nio/FloatBuffer.java: Likewise.
40 * java/nio/IntBuffer.java: Likewise.
41 * java/nio/LongBuffer.java: Likewise.
42 * java/nio/ShortBuffer.java: Likewise.
43 * java/nio/CharViewBufferImpl.java: New convenience constructor.
44 Fix buggy call to super constructor.
45 * java/nio/DoubleViewBufferImpl.java: Likewise.
46 * java/nio/FloatViewBufferImpl.java: Likewise.
47 * java/nio/IntViewBufferImpl.java: Likewise.
48 * java/nio/LongViewBufferImpl.java: Likewise.
49 * java/nio/ShortViewBufferImpl.java: Likewise.
51 * java/nio/ByteBuffer.java (endian): Make non-private so other
52 java.nio classes can inherit it.
53 (<init>): Don't bother clearing array_offset.
54 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
55 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
56 Remove redundant test.
58 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
59 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
60 Use new XxxViewBufferImpl constructors.
61 * java/nio/MappedByteBufferImpl.java: Likewise.
62 * java/nio/DirectByteBufferImpl.java: Likewise.
64 * java/nio/ByteBufferImpl.java: Remove one constructor.
65 Inline super in remaining constructor.
66 * java/nio/ByteBuffer.java: Remove unused constructor.
68 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
70 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
71 * java/nio/DirectByteBufferImpl.java (owner): New field.
72 (offset): Remove unused field.
73 (<init>): Modify one and add another constructor. Change callers.
74 (allocateDirect): Removed - not used.
75 (getImpl, putImpl): Make static and pass address explicitly,
76 to make them useful for MappedByteBufferImpl.
77 (get, put): Check for underflow. Modify for new getImpl.
78 (getImpl): New native method where target is array.
79 (get(byte[],int,int)): Use the above.
80 (adjustAddress): New static native method.
81 (slice, duplicate, asReadOnly): New implementations.
82 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
83 adjustAddress): New or updated native methods.
85 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
87 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
88 overflow of fieldmapping.
90 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
92 * javax/swing/undo/UndoManager.java: Re-written from scratch.
94 2004-02-14 Per Bothner <per@bothner.com>
96 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
97 Set closed before calling implCloseChannel, as in the spec.
99 2004-02-09 Graydon Hoare <graydon@redhat.com>
101 * javax/swing/ToggleButtonModel.java: Remove dead class.
102 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
103 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
104 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
105 * Makefile.am: Update for new and removed files.
106 * Makefile.in: Regenerate.
108 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
109 * javax/swing/AbstractButton.java
110 (AbstractButton): Initialize fields correctly in ctor.
111 * javax/swing/JCheckbox.java
112 (JCheckBox): Override painting flags.
113 * javax/swing/DefaultButtonModel.java: Conform to sun.
114 * javax/swing/JComponent.java (paint): Fill with background color
116 (processComponentKeyEvent)
119 (processMouseMotionEvent): Remove event-consuming empty methods.
120 (getUIClassID): Return "ComponentUI" not "JComponent"
121 * javax/swing/JFrame.java: Remove some debugging chatter.
122 (JFrame): Subscribe to window events.
123 * javax/swing/JRadioButton.java
124 (JRadioButton): Override painting flags.
125 * javax/swing/JRootPane.java
126 (JRootPane): Set background from UIDefaults.
127 * javax/swing/JToggleButton.java
128 (ToggleButtonModel): New inner class.
129 (JToggleButton): Override layout alighment.
130 * javax/swing/SwingUtilities.java:
131 (getLocalBounds): Return width and height, not x and y.
132 (calculateInnerArea): Use local bounds, not bounds.
133 (layoutCompoundLabel): Provide overridden form.
134 (layoutCompoundLabel): Correct bugs.
135 * javax/swing/UIDefaults.java: Correct comment.
136 * javax/swing/plaf/basic/BasicButtonUI.java:
137 Move most logic into defaults, external listener.
138 (paintIcon): Implement icon painting.
139 (paint): Fix state painting to conform to changes in model.
140 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
141 Remove most dead/wrong methods.
142 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
143 * javax/swing/plaf/basic/BasicIconFactory.java:
144 (DummyIcon): New class.
145 (getMenuItemCheckIcon)
146 (getMenuItemArrowIcon)
148 (getCheckBoxMenuItemIcon)
149 (getRadioButtonMenuItemIcon)
150 (createEmptyFrameIcon): Return DummyIcons, not null.
151 (getCheckBoxIcon): Implement an icon that looks like sun's.
152 (getRadioButtonIcon): Implement an icon that looks like sun's.
153 * javax/swing/plaf/basic/BasicLookAndFeel.java
154 (initComponentDefaults): Fix impossible values, add some missing.
155 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
156 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
157 Remove most dead/wrong methods.
159 (getDefaultIcon): New method.
160 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
161 Remove most dead/wrong methods.
162 * javax/swing/plaf/metal/MetalLookAndFeel.java
163 (getDefaults): Return super.getDefaults(), not BasicDefaults.
164 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
165 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
166 Implement "clearing" as drawing, when on pixmap drawables.
168 * javax/swing/JButton.java (getUIClassID):
169 * javax/swing/JCheckBox.java (getUIClassID):
170 * javax/swing/JEditorPane.java (getUIClassID):
171 * javax/swing/JLabel.java (getUIClassID):
172 * javax/swing/JList.java (getUIClassID):
173 * javax/swing/JOptionPane.java (getUIClassID):
174 * javax/swing/JPanel.java (getUIClassID):
175 * javax/swing/JPasswordField.java (uiClassID):
176 * javax/swing/JRadioButton.java (getUIClassID):
177 * javax/swing/JRootPane.java (getUIClassID):
178 * javax/swing/JScrollPane.java (getUIClassID):
179 * javax/swing/JTabbedPane.java (getUIClassID):
180 * javax/swing/JToggleButton.java (getUIClassID):
181 * javax/swing/JTree.java (getUIClassID):
182 * javax/swing/JViewport.java (getUIClassID):
183 * javax/swing/text/JTextComponent.java (getUIClassID):
184 Return "fooUI" not "Jfoo"
186 2004-02-11 Michael Koch <konqueror@gmx.de>
188 * java/net/DatagramSocket.java
189 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
191 (setBroadcast): Likewise.
192 * java/net/MulticastSocket.java
193 (setLoopbackMode): Likewise.
194 * java/net/ServerSocket.java
195 (setReuseAddress): Likewise.
196 * java/net/Socket.java
197 (setTcpNoDelay): Likewise.
198 (setSoLinger): Likewise.
199 (setOOBInline): Likewise.
200 (setKeepAlive): Likewise.
201 (setReuseAddress): Likewise.
202 * java/net/URLConnection.java
203 (setContentHandler): Replace == with equals().
204 * java/net/URLStreamHandler.java
205 (hostSEquals): Fix checking host addresses.
206 (toExternalForm): Dont check protocol for null. We know already its
209 2004-02-10 David Jee <djee@redhat.com>
211 * java/awt/BorderLayout.java
212 (calcCompSize): Invisible components get zero dimensions.
213 * java/awt/Button.java
214 (setLabel): Set actionCommand.
215 * java/awt/Component.java
216 (show): Invalidate component and parent container.
219 2004-02-10 David Jee <djee@redhat.com>
221 * java/awt/GridBagLayout.java
222 (GridBagLayout): New private field, internalcomptable.
223 (lookupInternalConstraints): New method.
224 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
225 (GetLayoutInfo): Reimplement.
226 (calcCellSizes): Ignore rows/columns with size 0.
228 2004-02-10 Michael Koch <konqueror@gmx.de>
230 * gnu/java/awt/EmbeddedWindow.java
231 (setHandle): Use java.awt.Component.getPeer() instead of
232 java.awt.Component.peer directly.
234 2004-02-10 David Jee <djee@redhat.com>
236 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
237 (gtkSetLabel): New native method definition.
238 (setLabel): Use gtkSetLabel.
239 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
240 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
242 2004-02-10 Alan Modra <amodra@bigpond.net.au>
244 * include/powerpc-signal.h: Revert 2004-01-21 change.
245 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
246 from syscall for ppc32 versions.
248 2004-02-08 Per Bothner <per@bothner.com>
250 * java/nio/ByteBuffer.java (shiftDown): New helper method.
251 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
252 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
253 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
254 Pass ByteOrder parameter to most methods, since the underlying
255 ByteBuffer's order isn't always what we should use.
256 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
257 * java/nio/DirectByteBufferImpl.java: Likewise.
258 Use ByteBufferHelper methods.
259 * java/nio/MappedByteBufferImpl.java: Likewise.
260 (compact): Use shiftDown.
261 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
262 (get, put): Use ByteBufferHelper.
263 (compact): Use new shiftDown method.
264 (duplicate(boolean)): New helper method.
265 (duplicate, asReadOnlyBuffer): Use it.
266 (order): Return endian field.
267 * java/nio/DoubleViewBufferImpl.java: Likewise.
268 * java/nio/FloatViewBufferImpl.java: Likewise.
269 * java/nio/IntViewBufferImpl.java: Likewise.
270 * java/nio/LongViewBufferImpl.java: Likewise.
271 * java/nio/ShortViewBufferImpl.java: Likewise.
272 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
273 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
274 (compact): Re-implement using shiftDown.
276 2004-02-08 Andreas Jaeger <aj@suse.de>
278 * include/x86_64-signal.h: Fix typo.
280 2004-02-08 Diego Novillo <dnovillo@redhat.com>
282 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
284 (HANDLE_DIVIDE_OVERFLOW): Likewise.
286 2004-02-06 Michael Koch <konqueror@gmx.de>
288 * java/io/ObjectInputStream.java
289 (currentClassLoader): Reverted to old version of this method.
291 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
293 * java/io/ObjectInputStream.java: Made all calls
294 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
295 use cached info from ObjectStreamClass. (readClassDescriptor):
296 Cache more information in ObjectStreamClass. (processResolution,
297 readFields): Use cached info from ObjectStreamClass.
298 (newObject): Throw exception instead of returning null for failure.
299 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
300 setCharField, setDoubleField, setFloatField, setIntField,
301 setLongField, setShortField, setObjectField, readObjectParams):
302 Removed. (dumpElement, dumpElementln): Removed dump flag condition
304 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
305 (setClass): Added call to cacheMethods() (findMethod): New method.
306 (cacheMethods): New method. (ObjectStreamClass): Added call to
307 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
308 AccessController.doPrivileged to invoke setAccessible.
309 (readObjectMethod, readResolveMethod, realClassIsSerializable,
310 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
312 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
313 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
314 isPrimitive): Made safe for cases where type == null.
315 (setBooleanField, setByteField, setCharField, setShortField,
316 setIntField, setLongField, setFloatField, setDoubleField,
317 setObjectField): New methods.
319 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
321 * java/awt/Component.java (getFont): Return a default font
324 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
325 (Scrollbar (int, int, int, int, int)): Make default page
327 (setValues): Only call peer.setValues if one of the values has
329 (generateName): New method.
330 (getUniqueLong): New method.
331 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
332 (range_scrollbar): Remove structure.
333 (post_adjustment_event): Remove function.
334 (post_change_event): Accept jobject argument.
335 (create): Cast jints to gdoubles. Round scrollbar values to the
336 nearest integer. Clamp min, max and value settings.
337 (connectJObject): Connect hook to widget->window.
338 (connectSignals): Remove range_scrollbar structure variables.
339 Remove "move-slider" connection. Pass global peer reference to
340 "value-changed" callback.
341 (setLineIncrement): Cast jint value to gdouble.
342 (setPageIncrement): Likewise.
343 (setValues): Likewise. Clamp min, max and value settings.
345 2004-02-05 Michael Koch <konqueror@gmx.de>
347 * javax/swing/AbstractCellEditor.java
348 (getCellEditorValue): Removed.
349 * javax/swing/Box.java: Reformated.
350 (serialVersionUID): New field.
351 * javax/swing/ButtonGroup.java:
352 Removed some weird whitespace.
353 * javax/swing/CellEditor.java: Reformated.
354 * javax/swing/CellRendererPane.java
355 (serialVersionUID): New field.
356 (AccessibleCellRendererPaneserialVersionUID): New field.
357 * javax/swing/DefaultListModel.java
358 (serialVersionUID): New field.
359 * javax/swing/JEditorPane.java
360 (serialVersionUID): New field.
361 (setPage): Throws IOException.
362 (addHyperlinkListener): Implemented.
363 (removeHyperlinkListener): Implemented.
364 (getHyperlinkListener): New method.
365 * javax/swing/JFileChooser.java
366 (serialVersionUID): New field.
367 (AccessibleJFileChooser.serialVersionUID): New field.
368 (addActionListener): Implemented.
369 (removeActionListener): Implemented.
370 (getActionListeners): New method.
371 * javax/swing/JFormattedTextField.java
372 (serialVersionUID): New field.
373 (AbstractFormatter.serialVersionUID): New field.
374 (clone): Throws CloneNotSupportedException
375 (setEditValid): Add missing argument.
376 (stringToValue): Throws ParseExcpetion.
377 (valueToString): Throws ParseException.
378 (commitEdit): Throws ParseException.
379 * javax/swing/JLabel.java
380 (serialVersionUID): New field.
381 * javax/swing/JList.java
382 (serialVersionUID): New field.
383 (addListSelectionListener): Reformated.
384 (removeListSelectionListener): Reformated.
385 (getListSelectionListeners): New method.
386 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
388 (serialVersionUID): New field.
389 * javax/swing/table/AbstractTableModel.java
390 (getValueAt): Removed.
391 (getColumnCount): Removed.
392 (getRowCount): Removed.
394 2004-02-05 Michael Koch <konqueror@gmx.de>
396 * java/awt/datatransfer/DataFlavor.java
397 (imageFlavor): Javadoc added.
398 (javaJVMLocalObjectType): Fixed.
400 2004-02-05 Michael Koch <konqueror@gmx.de>
402 * java/lang/Thread.java
404 (setContextClassLoader): Fixed javadoc comment.
405 (setPriority): Reordered.
407 (initialize_native): Reordered.
408 (gen_name): Reordered.
410 2004-02-05 Michael Koch <konqueror@gmx.de>
412 * java/lang/Thread.java: Reordered fields, reformated much code,
413 no functional changes, some variables renamed, javadoc comments
416 2004-02-05 Michael Koch <konqueror@gmx.de>
418 * java/util/zip/Deflater.java,
419 java/util/zip/DeflaterOutputStream.java,
420 java/util/zip/GZIPInputStream.java:
421 Reformated and javadoc comments merged from classpath.
423 2004-02-05 Michael Koch <konqueror@gmx.de>
425 * gnu/java/nio/NIOServerSocket.java
426 (impl): Unused, removed.
427 * gnu/java/nio/SocketChannelImpl.java
428 (finnishConnect): Don't throw NoConnectionPendingException if not
429 connected or no connection pending.
431 2004-02-02 Graydon Hoare <graydon@redhat.com>
433 * javax/swing/SwingUtilities.java: Many new functions.
434 * java/awt/Container.java (LightweightDispatcher): Reimplement.
435 * javax/swing/basic/BasicGraphicsUtils.java
436 (getPreferredButtonSize): Start layout from top-left corner.
438 2004-02-04 Olga Rodimina <rodimina@redhat.com>
440 * java/awt/geom/AffineTransform.java:
441 Corrected comments on the field definitions for
443 (shear): Fixed few errors that caused shear
444 transformation to be performed incorrectly.
445 (createInverse): Fixed to return correct
446 inverse of the given matrix.
448 2004-02-03 Tom Tromey <tromey@redhat.com>
450 * java/lang/natPosixProcess.cc (startProcess): Handle case where
451 PATH or LD_LIBRARY_PATH is not set in parent environment.
453 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
455 * gnu/java/awt/peer/gtk/GtkListPeer.java,
456 java/awt/BorderLayout.java, java/awt/CardLayout.java,
457 java/awt/CheckboxGroup.java, java/awt/Choice.java,
458 java/awt/Component.java, java/awt/Container.java,
459 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
460 java/awt/LayoutManager2.java, java/awt/List.java,
461 java/awt/Menu.java, java/awt/MenuBar.java,
462 java/awt/MenuItem.java, java/awt/Polygon.java,
463 java/awt/Rectangle.java, java/awt/ScrollPane.java,
464 java/awt/Scrollbar.java, java/awt/TextArea.java,
465 java/awt/TextField.java,
466 java/awt/image/renderable/RenderContext.java,
467 javax/swing/JApplet.java: Fix handling of alias methods, where a
468 method has been deprecated in favour of a new one with the same
469 funtion but a different name. Put the method implementation in
470 the deprecated method and have the new method call the
471 deprecated one. Make all other code call the new method.
473 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
475 * gnu/java/nio/DatagramChannelImpl.java
476 (inChannelOperation): New field.
477 (isInChannelOperation): New accessor.
478 (setInChannelOperation): New modifier.
479 (receive): Use capacity() - position() of destination
480 buffer instead of remaining(). Set and reset our "in
481 channel operation indicator" before and after delegating
482 the receive to our datagram socket. Removed testing code.
483 Update destination buffer's current position if it is
484 backed by a byte array (hasArray() is true).
485 (send): Set and reset our "in channel operation indicator"
486 before and after delegating the send to our datagram socket.
487 Removed testing code. Update source buffer's current position
488 if it is backed by a byte array (hasArray() is true).
489 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
490 Use capacity() - position() of destination buffer instead
492 * java/net/DatagramSocket.java (receive): Don't throw an
493 IllegalBlockingModeException if we have a non-blocking
494 channel which initiated this operation.
497 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
499 * configure.in: Add pkgconfig check for glib and gthread.
500 * configure: Regenerate.
502 2004-02-01 Michael Koch <konqueror@gmx.de>
504 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
506 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
507 * verify.cc (debug_print): Mark 'fmt' unused.
509 2004-01-30 Michael Koch <konqueror@gmx.de>
511 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
512 * configure: Regenerated.
513 * glib-2.0.m4: Removed.
514 * gtk-2.0.m4: Removed.
515 * libart.m4: Removed.
518 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
520 * gnu/java/net/PlainSocketImpl.java
521 (inChannelOperation): New field.
522 (isInChannelOperation): New accessor.
523 (setInChannelOperation): New modifier.
524 * gnu/java/nio/ServerSocketChannelImpl.java
525 (accept): Set and reset our server socket's PlainSocketImpl's
526 "in channel operation" indicator before and after delegating
527 the accept to our server socket.
528 * gnu/java/nio/SocketChannelImpl.java
529 (connect): Set and reset our socket's PlainSocketImpl's "in channel
530 operation" indicator before and after delegating the operation to
534 * java/net/ServerSocket.java (implAccept): Don't throw an
535 IllegalBlockingModeException if we have a non-blocking
536 channel which initiated this accept operation.
537 * java/net/Socket.java (connect): Don't throw an
538 IllegalBlockingModeException if we have a non-blocking
539 channel which initiated this connect operation.
540 * java/nio/channels/spi/AbstractSelectableChannel.java
541 (configureBlocking): Only call implConfigureBlocking() if
542 the desired blocking mode is different from our current one.
544 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
546 * java/io/BufferedReader.java (sbuf): New field.
547 (readLine): Use String.valueOf instead of new String() as per
548 Per Bothner's suggestion. Use instance sbuf field instead of a
549 local StringBuffer instance.
550 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
551 caller's buffer to refill().
552 (read(void)): Pass our internal work buffer to refill if our
553 input queue is empty.
554 (refill): Changed return type to int. Use the specified buffer
555 instead of our work buffer as per Bryce McKinlay's suggestion.
556 Return the number of characters read or -1 for EOF.
558 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
560 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
562 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
564 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
565 * Makefile.in: Re-generated.
566 * gnu/awt/xlib/XFontPeer.java: New file.
567 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
568 (setClip): Commented out debug printout.
569 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
570 (getFontPeer): Return XFontPeer.
571 (getLocalGraphicsEnvironment): New method.
572 (getClasspathFontPeer): New method.
573 (createFont): New method.
575 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
577 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
580 2004-01-29 Kim Ho <kho@redhat.com>
582 * gnu/java/awt/peer/gtk/GtkFramePeer.java
583 (gtkLayoutSetVisible): New method
584 (setMenuBar): Hide layout before setting MenuBar
586 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
587 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
589 2004-01-28 Michael Koch <konqueror@gmx.de>
591 * gnu/java/lang/ClassHelper.java
592 (getPackagePortion): Removed.
594 2004-01-28 Michael Koch <konqueror@gmx.de>
596 * javax/swing/JComponent.java
597 (listenerList): Initalize globally.
598 (ancestor_list): Removed.
599 (veto_list): Removed.
600 (change_list): Removed.
601 (get_veto_list): Removed.
602 (get_change_list): Removed.
603 (get_ancestor_list): Removed.
604 (removeAncestorListener): Reimplemented.
605 (removePropertyChangeListener): Likewise.
606 (removeVetoableChangeListener): Likewise.
607 (addAncestorListener): Likewise.
608 (addPropertyChangeListener): Likewise.
609 (addVetoableChangeListener): Likewise.
610 (getListeners): New method.
611 (getAncestorListeners): Likewise.
612 (getVetoableChangeListeners): Likewise.
613 (fireVetoableChange): Throws PropertyVetoException.
614 * javax/swing/JEditorPane.java
615 (JEditorPane): Throws IOException.
617 2004-01-28 David Jee <djee@redhat.com>
619 * gnu/java/awt/peer/gtk/GtkFramePeer.java
620 (create): Set the default foreground color to
621 java.awt.SystemColor.windowText.
623 2004-01-27 Michael Koch <konqueror@gmx.de>
625 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
626 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
627 Reindented to merge with classpath.
629 2004-01-27 David Jee <djee@redhat.com>
631 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
632 (addExposeFilter): Handle GtkFramePeer separately.
633 (removeExposeFilter): Likewise.
635 2004-01-27 Michael Koch <konqueror@gmx.de>
637 * gnu/java/net/protocol/http/Connection.java
638 (getOutputStream): Fixed typo.
640 2004-01-27 Michael Koch <konqueror@gmx.de>
642 * java/lang/Class.java
643 (getConstructor): Removed SecurityException from throws clause.
644 (_getConstructors): Likewise.
645 (getConstructors): Likewise.
646 (getDeclaredConstructor): Likewise.
647 (getDeclaredClasses): Likewise.
648 (getDeclaredConstructors): Likewise.
649 (getDeclaredField): Likewise.
650 (getDeclaredMethod): Likewise.
651 (getDeclaredMethods): Likewise.
652 (getField): Likewise.
653 (getMethod): Likewise.
654 (getMethods): Likewise.
656 2004-01-27 Kim Ho <kho@redhat.com>
658 * gnu/java/awt/peer/gtk/GtkFramePeer.java
659 (removeMenuBarPeer): Remove MenuBarPeer argument.
660 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
661 (dispose): Call native method.
662 * java/awt/Frame.java (setMenuBar): Create and remove
663 MenuBar peers only if the Frame has a peer.
664 (addNotify): Create the MenuBar peer if one exists.
665 (removeNotify): Remove MenuBar peer if one exists.
666 * java/awt/Menu.java: Fix imports.
667 (addNotify): Don't use full class name.
668 (removeNotify): Call removeNotify on all children.
669 * java/awt/MenuBar.java (removeNotify): Call
670 removeNotify on all children.
671 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
672 (removeMenuBarPeer): Remove MenuBarPeer argument.
673 Iterate through children to find the Frame's MenuBar.
674 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
676 (dispose): Remove references to the MenuComponent.
678 2004-01-27 Michael Koch <konqueror@gmx.de>
680 * javax/swing/AbstractCellEditor.java: Reformated.
681 * javax/swing/DefaultListSelectionModel.java
682 (listenerList): Made protected.
683 (addListSelectionListener): Javadoc added.
684 (removeListSelectionListener): Likewise.
685 (getListeners): Likewise.
686 (getListSelectionListeners): Likewise.
687 * javax/swing/JComboBox.java: Merged copyright year.
688 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
690 2004-01-26 Andrew Haley <aph@redhat.com>
692 * javax/swing/table/JTableHeader.java: Extend JComponent
694 2004-01-26 Kim Ho <kho@redhat.com>
696 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
699 2004-01-26 Kim Ho <kho@redhat.com>
701 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
703 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
704 height and let the Layout Managers readjust anything that
706 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
707 (moveLayout): New method. Shift everything in the Gtk
708 layout in the Y direction by an offset.
710 2004-01-26 David Jee <djee@redhat.com>
712 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
713 (handleEvent): Implemented. Handles PaintEvents.
714 (paint): Implemented. Use GTK native methods to queue updates
715 for this heavyweight peer.
716 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
717 (handleEvent): Removed.
718 * java/awt/Component.java
719 (paint): Implemented. Explictly paint the heavyweight peer.
720 (update): Clear the background for heavyweight components.
721 (paintAll): No need to call peer.paint() anymore.
722 (processEvent): Don't process PaintEvents here. It's now done in
723 the peer's handleEvent().
724 (processPaintEvent): Removed.
725 * java/awt/Container.java
726 (paint): No need to call super.paint(). Visit heavyweight
728 (update): Don't clear the background here. It's done in
730 (visitChildren): Added check to not recurse into Containers.
731 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
732 (filter_expose_event_handler): New method. Filter unwanted
733 expose events while painting heavyweight peers.
734 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
735 New method. Connect filter and block pre_event_handler.
736 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
737 New method. Disconnect filter and unblock pre_event_handler.
738 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
739 New method. Invalidate and update given area.
740 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
741 (pre_event_handler): Add checks for unwanted expose events.
743 2004-01-26 David Jee <djee@redhat.com>
745 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
746 (find_bg_color_widget): For GtkButton, return its child.
748 2004-01-26 Kim Ho <kho@redhat.com>
750 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
752 (setMenuBar): Grab MenuBar height and change insets.
753 (setBounds): Account for MenuBar height.
754 (postInsetsChangedEvent): Ditto.
755 (postSizeAllocateEvent): Remove.
756 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
757 (menubar_resize_cb): Remove
758 (setMenuBarPeer): Remove callback.
759 (getMenuBarHeight): Use size requisition instead of
762 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
764 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
765 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
767 (setColumns): Remove FIXME -- peer will retrieve number of
768 columns by calling getColumns.
769 (setRows): Likewise for number of rows.
770 (next_text_number): New field.
771 (paramString): Fix param string.
772 (generateName): New method.
773 (getUniqueLong): New method.
775 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
777 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
778 image observer of image loading status.
779 (getImage (String)): Start image production.
780 (getImage (URL)): Likewise.
782 2004-01-25 Michael Koch <konqueror@gmx.de>
784 * java/lang/Class.java: Imports reworked, reformated.
785 (Class): Javadoc added.
787 (getClasses): Likewise.
788 (getClassLoader): Likewise.
789 (getComponentType): Likewise.
790 (getConstructor): Likewise.
791 (getConstructors): Likewise.
792 (getDeclaredConstructor): Likewise.
793 (getDeclaredClasses): Likewise.
794 (getDeclaredConstructors): Likewise.
795 (getDeclaredField): Likewise.
796 (getDeclaredMethod): Likewise.
797 (getDeclaredMethods): Likewise.
798 (getDeclaringClass): Likewise.
799 (getField): Likewise.
800 (getInterfaces): Likewise.
801 (getMethod): Likewise.
802 (getMethods): Likewise.
803 (getModifiers): Likewise.
805 (getResource): Likewise.
806 (getResourceAsStream): Likewise.
807 (getSigners): Likewise.
808 (setSigners): Likewise.
809 (getSuperclass): Likewise.
811 (isAssignableFrom): Likewise.
812 (isInstance): Likewise.
813 (isInterface): Likewise.
814 (isPrimitive): Likewise.
815 (newInstance): Likewise.
816 (getProtectionDomain): Likewise.
817 (toString): Likewise.
819 (initializeClass): Likewise.
820 (finalize): Likewise.
822 2004-01-24 Michael Koch <konqueror@gmx.de>
824 * gnu/java/net/protocol/jar/Connection.java
827 (gotHeaders): Removed.
828 (getHeaderField): Removed.
829 (getHeaderFields): Removed.
830 (getHeaderFieldKey): Removed.
833 (getHeaders): Removed.
835 2004-01-24 Michael Koch <konqueror@gmx.de>
837 * Makefile.am: Added library version to gtk peer lib.
838 * Makefile.in: Regenerated.
840 2004-01-24 Michael Koch <konqueror@gmx.de>
842 * java/util/zip/InflaterInputStream.java: Merged class documentation
845 2004-01-21 Jakub Jelinek <jakub@redhat.com>
847 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
848 header. For __powerpc64__ provide the default-signal.h definitions
850 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
851 instead of the dummy definitions.
852 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
853 (powerpc64*-*): Remove with_libffi_default.
854 Only add -mminimal-toc for 64-bit compilations.
855 * configure.in: Use powerpc-signal.h on powerpc64 as well.
856 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
857 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
858 * configure: Rebuilt.
860 2004-01-23 Michael Koch <konqueror@gmx.de>
862 * gnu/java/nio/FileLockImpl.java: Compile fixes.
864 2004-01-23 Michael Koch <konqueror@gmx.de>
866 * java/lang/VMClassLoader.java: Reworked imports.
868 2004-01-23 Michael Koch <konqueror@gmx.de>
870 * javax/swing/AbstractAction.java: Reformated.
872 2004-01-23 Michael Koch <konqueror@gmx.de>
874 * java/text/CollationElementIterator.java:
875 (setText): New method.
877 2004-01-23 Michael Koch <konqueror@gmx.de>
879 * gnu/java/nio/FileLockImpl.java:
880 Fixed filename in copyright.
882 (finalize): New method.
883 * gnu/java/nio/natFileLockImpl.cc
884 (releaseImpl): Implemented.
885 * java/nio/channels/FileChannelImpl.java:
888 (lockImpl): New method.
889 (tryLock): Implemented.
890 (tryLockImpl): New method.
891 * java/nio/channels/natFileChannelImpl.cc
892 (lockImpl): New method.
893 (tryLockImpl): New method.
895 2004-01-23 Michael Koch <konqueror@gmx.de>
897 * java/io/FileDescriptor.java
899 (tryLock): New method.
900 (unlock): New method.
901 * java/io/natFileDescriptorEcos.cc
903 (tryLock): New method.
904 (unlock): New method.
905 * java/io/natFileDescriptorPosix.cc
907 (tryLock): New method.
908 (unlock): New method.
909 * java/io/natFileDescriptorWin32.cc
911 (tryLock): New method.
912 (unlock): New method.
914 2004-01-23 Michael Koch <konqueror@gmx.de>
916 * java/io/FileDescriptor.java
917 (sync): Moved around, added javadoc.
922 (setLength): Likewise.
924 (getLength): Likewise.
925 (getFilePointer): Likewise.
927 (available): Likewise.
928 (finalize): Likewise.
930 2004-01-23 Michael Koch <konqueror@gmx.de>
932 * javax/swing/AbstractAction.java: Reformated.
933 (getPropertyChangeListeners): New method.
934 * javax/swing/AbstractCellEditor.java: Reformated.
935 (getCellEditorListeners): New method.
936 * javax/swing/DefaultListSelectionModel.java
937 (listenerList): New field.
938 (listeners): Removed.
939 (get_listeners): Removed.
940 (addListSelectionListener): Rewritten.
941 (removeListSelectionListener): Rewritten.
942 (getListSelectionListeners): New method.
943 (getListeners): New method.
944 * javax/swing/JComboBox.java: Imports reworked.
945 (addActionListener): Implemented.
946 (removeActionListener): Implemented.
947 (addItemListener): Implemented.
948 (removeItemListener): Implemented.
949 (addPopupMenuListener): Implemented.
950 (removePopupMenuListener): Implemented.
951 (getActionListeners): New method.
952 (getItemListeners): New method.
953 (getPopupMenuListeners): New method.
955 2004-01-23 Michael Koch <konqueror@gmx.de>
957 * gnu/java/net/protocol/http/Connection.java
958 (connect): Don't initialize bufferedOutputStream if not needed.
959 (sendRequest): Set property for content length if content is present.
960 Write content only if present.
961 (getOutputStream): Check if already connected, dont connect,
962 initalize bufferedOutputStream if needed.
964 2004-01-23 Michael Koch <konqueror@gmx.de>
966 * java/io/FileDescriptor.java
967 (in, out, err): Added javadoc.
968 (static): Merged loading code.
969 (fd, position): Moved around.
971 2004-01-23 Michael Koch <konqueror@gmx.de>
973 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
976 2004-01-23 Michael Koch <konqueror@gmx.de>
978 * java/lang/Class.java,
979 java/lang/Object.java,
980 java/lang/Thread.java: Merged copyright with classpath.
982 2004-01-23 Michael Koch <konqueror@gmx.de>
984 * java/io/FileDescriptor.java: Merged copyright with classpath to
985 start merging this class.
987 2004-01-22 Tom Tromey <tromey@redhat.com>
990 * testsuite/libjava.lang/pr13107_2.xfail: New file.
991 * testsuite/libjava.lang/pr13107_3.xfail: New file.
992 * testsuite/libjava.lang/pr13107_3.java: New file.
993 * testsuite/libjava.lang/pr13107_3.out: New file.
994 * testsuite/libjava.lang/pr13107_2.java: New file.
995 * testsuite/libjava.lang/pr13107_2.out: New file.
996 * testsuite/libjava.lang/pr13107.java: New file.
997 * testsuite/libjava.lang/pr13107.out: New file.
998 * verify.cc (jsr_ptrs): Removed.
999 (entry_points): Likewise.
1000 (struct subr_info): Likewise.
1001 (struct subr_entry_info): Likewise.
1002 (type_val::unused_by_subroutine_type): Likewise.
1003 (type::merge): Don't handle unused_by_subroutine_type.
1004 (type::print): Likewise.
1005 (state::flags): Removed.
1006 (state::subroutine): Likewise.
1007 (state::seen_subrs): Likewise.
1008 (state::NO_STACK): Likewise.
1009 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
1010 (state): Updated all methods.
1011 (state::clean_subrs): Removed.
1012 (state::state): Removed `ret_semantics' flag.
1013 (state::copy): Likewise.
1014 (state::add_subr): Removed.
1015 (state::enter_subroutine): Likewise.
1016 (type::set_return_address): New method.
1017 (handle_jsr_insn): Set return address on the type. Always
1018 invalidate PC after call.
1019 (check_nonrecursive_call): Removed.
1020 (~_Jv_BytecodeVerifier): Updated.
1021 (branch_prepass): Removed special handling of jsr.
1022 (note_branch_target): Likewise.
1023 (get_subroutine): Removed.
1024 (state::merge): Don't merge subroutines and don't handle
1025 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
1026 (state::note_variable): Removed.
1027 (state::is_unmerged_ret_state): Likewise.
1028 (state::print): Updated.
1029 (set_variable): Likewise.
1030 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
1031 and jsr_semantics arguments. Updated for new reverification
1033 (pop_jump): Rewrote.
1034 (construct_primitive_array_type): Updated.
1035 (state::next): Removed.
1036 (INVALID_STATE): New define.
1037 (state::INVALID): Removed.
1038 (state::NO_NEXT): New value.
1039 (state::pc, state::next): New fields.
1040 (state::get_pc): New method.
1041 (next_verify_pc): Removed.
1042 (next_verify_state): New field.
1043 (verify_instructions_0): Always check for falling off end.
1045 (linked_utf8): Removed.
1046 (states): Changed type.
1047 (type::state_mergeable_p): New method.
1048 (state::state_mergeable_p): Likewise.
1049 (handle_ret_insn): Removed most code.
1050 (state::reverify): New method.
1051 (add_new_state): Likewise.
1052 (state::set_pc): Likewise.
1054 2004-01-22 Jeff Sturm <jsturm@one-point.com>
1057 * testsuite/libjava.compile/PR13733.java: New file.
1058 * testsuite/libjava.compile/PR13733.xfail: New file.
1060 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
1061 Michael Koch <konqueror@gmx.de>
1063 * javax/swing/table/DefaultTableCellRenderer.java
1064 (DefaultTableCellRenderer): Added javadoc for the class and for
1065 the constructor, Border instance, create an EmptyBorder.
1066 (UIResource): Removed the comment at the end of the class
1067 (setForeground): New method.
1068 (setBackground): New method.
1069 (updateUI): New method.
1070 (getTableCellRendererComponent): Rewritten with the help of
1071 dvholten and Stephane Meslin-Weber.
1072 (validate): New method.
1073 (repaint): New method.
1074 (firePropertyChange): New method.
1075 (setValue): New method.
1077 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
1079 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1080 (connectJObject): Replace printf calls with g_assert statements.
1081 Move property-notify-event signal connection to ...
1082 (connectSignals): Connect property-notify-event signal. Iterate
1083 through the vbox's children to find layout.
1085 2004-01-22 Graydon Hoare <graydon@redhat.com>
1087 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
1088 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
1089 Predicate static initialization on GtkToolkit.useGraphics2D().
1090 * java/awt/Component.java (processPaintEvent): Consume event.
1091 * javax/swing/AbstractButton.java: Reimplement, document.
1092 * javax/swing/DefaultButtonModel.java: Reimplement, document.
1093 * javax/swing/JComponent.java (paint): Use double buffer.
1094 (listenerList): Enable member.
1095 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
1096 * javax/swing/JToggleButton.java
1097 (JToggleButton): Modify model constructor.
1098 * javax/swing/SwingUtilities.java
1099 (layoutCompoundLabel): Adjust arithmetic.
1100 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
1101 * javax/swing/plaf/basic/BasicGraphicsUtils.java
1102 (getPreferredButtonSize): Include margins in calculation.
1103 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1104 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
1105 Receive up events from subordinate layout component.
1107 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1109 * java/awt/Component.java (show): Set visible to true before
1112 2004-01-21 Kim Ho <kho@redhat.com>
1114 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
1116 (removeMenuBarPeer): Make package private.
1117 (setMenuBarPeer): Make package private.
1118 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1119 (menubar_resize_cb): Mark attributes unused.
1120 (getMenuBarHeight): ditto.
1122 2004-01-21 David Jee <djee@redhat.com>
1124 * java/awt/Container.java
1125 (LightweightDispatcher.handleEvent): Add an extra check to avoid
1126 dispatching MOUSE_ENTERED event twice. Translate the point for
1127 the mouse event target before dispatching the event.
1129 2004-01-20 Jakub Jelinek <jakub@redhat.com>
1131 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
1132 lib_org_w3c_dom_la_LDFLAGS): New.
1133 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
1134 * Makefile.in: Rebuilt.
1136 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
1138 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
1139 Calculate proper offsets for heavyweight components packed in
1140 lightweight containers.
1142 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1143 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1144 (native create): Add width parameter.
1145 (create): Calculate text entry width based on current font's
1146 metrics and number of columns. Set TextField's font if not
1147 already set. Call native create.
1148 (gtkEntryGetBorderWidth): New native method.
1149 (gtkEntryGetSize): Remove method.
1150 (getMinimumSize): Call minimumSize.
1151 (getPreferredSize): Call preferredSize.
1152 (minimumSize): Calculate minimum size based on backing
1153 GtkEntry's borders, font metrics and number of columns.
1154 (preferredSize): Likewise for preferred size.
1155 (get_border_width): New static function.
1157 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1158 Override GtkWindowPeer's setResizable method to account for menu
1159 bar height when setting the frame's size.
1161 2004-01-19 Matthias Klose <doko@debian.org>
1163 * libtool-version: Increased `current' to 6.
1165 2004-01-19 Kim Ho <kho@redhat.com>
1167 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1168 (connectJObject): Iterate through the vbox's children to find layout.
1170 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1172 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
1173 isDispatchThread method to replace wrong test condition.
1175 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1177 * java/awt/EventQueue.java (pop): Prevent racing condition to add
1178 events to the queue out of order by acquiring locks in the proper
1179 order and not by releasing one before acquiring the other.
1181 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1183 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
1184 visible so that dialog can be reused.
1186 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1188 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
1189 events may be handled by any queue in the stack.
1191 2004-01-19 Kim Ho <kho@redhat.com>
1193 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
1194 MenuBarPeer parameter.
1195 (removeMenuBarPeer): New native method.
1196 (setMenuBar): Call remove if menu bar is null. Adjust insets
1198 (postSizeAllocateEvent): New method. Called when menu bar size is
1199 allocated. Adjust insets and redo layout.
1200 (GtkFramePeer): Set menu bar during frame creation.
1201 (postConfigureEvent): Adjust position and size to accomodate
1203 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
1204 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
1205 (addNotify): Create the peer if it doesn't exist and call addNotify
1206 for the menu's items.
1207 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
1208 * java/awt/MenuItem.java (addNotify): Create the peer if it
1210 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1211 (removeMenuBarPeer): New method. Remove menu bar on the current
1213 (setMenuBarPeer): Add the menu bar to the current frame and the
1214 callback for size-allocate events on the menu bar.
1215 (getMenuBarHeight): Add menu bar parameter.
1216 (menubar_resize_cb): New callback method for postSizeAllocate events.
1218 Also: Fix indentation on last ChangeLog entry.
1220 2004-01-16 Kim Ho <kho@redhat.com>
1222 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1223 (gtkWidgetGetDimensions): Remove.
1224 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1225 (gtkWidgetGetDimensions): Remove.
1227 2004-01-16 Tom Tromey <tromey@redhat.com>
1229 * java/awt/Container.java: Typo and indentation fixes.
1231 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
1232 * java/lang/natVMClassLoader.cc: ...here. New file.
1233 * Makefile.in: Rebuilt.
1234 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
1236 2004-01-16 Fernando Nasser <fnasser@redhat.com>
1238 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
1239 Discard GDK_ENTER_NOTIFY related to ungrabs.
1241 2004-01-16 Fernando Nasser <fnasser@redhat.com>
1243 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
1244 is called for an intermediate queue.
1246 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
1248 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1249 (window_property_changed_cb): Set id_set.
1251 2004-01-16 Kim Ho <kho@redhat.com>
1253 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
1254 it is a FileDialog and has dimensions of 0 by 0, then the initial
1255 size is set to size request plus insets.
1256 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1257 (gtkWidgetGetDimensions): Override method.
1258 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1259 (gtkWidgetGetDimensions): Override method. Returns size request plus
1262 2004-01-16 Andrew Haley <aph@redhat.com>
1264 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
1265 * sysdep/i386/locks.h: Likewise.
1267 2004-01-16 Fernando Nasser <fnasser@redhat.com>
1269 * java/awt/EventDispatchThread.java (run): Stop running when
1271 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
1272 Reset the queue after transferring its contents.
1273 (push): Start a new dispatch thread if none is running.
1275 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
1277 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1278 (doPolygon): set fill rule of polygon to
1279 WIND_EVEN_ODD by default.
1281 2004-01-15 Olga Rodimina <rodimina@redhat.com>
1283 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1284 Implemented rendering hints related methods.
1285 (getDefaultHints): New helper method. Returns
1286 default rendering hints.
1287 (walkPath): changed to normalize path if
1288 the KEY_STROKE_CONTROL key is in "normalize" mode.
1289 (draw3DRect): changed coordinates of rectangle by +0.5
1290 if in "normalize" mode.
1292 2004-01-15 Tom Tromey <tromey@redhat.com>
1294 * Makefile.in: Rebuilt.
1295 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
1296 (%.lo: %.java) Filter out StackTrace.lo.
1298 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
1300 * configure.in: Add in AC_PREREQ(2.13)
1301 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
1304 2004-01-14 Nathan Bryant <nbryant@optonline.net>
1305 Tom Tromey <tromey@redhat.com>
1308 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
1309 array to superclass.
1310 (init): Changed interface; add URLs here.
1311 (initialize): New static method.
1312 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
1313 (_Jv_RunMain): ... not here.
1315 2004-01-14 Michael Koch <konqueror@gmx.de>
1317 * java/text/MessageFormat.java:
1318 Added descriptions to exceptions.
1319 This fixes PR libgcj/2429.
1321 2004-01-13 Fernando Nasser <fnasser@redhat.com>
1323 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
1324 (push): Make sure push is performed at the top of the thread stack.
1326 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1328 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
1329 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
1330 (native create): Add width and height parameters. Set text
1331 view's size request according to new parameters.
1332 (create): Calculate text view size based on current font's
1333 metrics and number of rows and columns. Set TextArea's font if
1334 not already set. Call native create.
1335 (getMinimumSize): Call minimumSize.
1336 (getPreferredSize): Call preferredSize.
1337 (getHScrollbarHeight): New method.
1338 (getVScrollbarWidth): New method.
1339 (minimumSize): Calculate minimum size based on scrollbar
1340 visibility, scrollbar sizes, font metrics and number of rows and
1342 (preferredSize): Likewise for preferred size.
1343 (gtkTextGetSize): Remove method.
1345 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1347 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1348 (initializeInsets): Remove method.
1349 (GtkComponentPeer): Initialize insets field. Remove call to
1351 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
1353 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
1355 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1356 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
1357 (latestInsets): Remove field.
1358 (native create): Add insets parameter. Call
1359 window_get_frame_extents. Set the window's default size and
1360 size request based on its frame extents.
1361 (create): Initialize insets.
1362 (postInsetsChangedEvent): New method.
1363 (postConfigureEvent): Remove parameters top, left, bottom,
1364 right. Remove insets-related logic.
1365 (connectJObject): Handle property-notify-event.
1366 (window_get_frame_extents, request_frame_extents,
1367 property_notify_predicate, window_property_changed_cb): New
1369 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1370 (pre_event_handler): Remove insets-related logic for configure
1372 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
1373 Update postConfigureEvent signature.
1375 2004-01-13 Fernando Nasser <fnasser@redhat.com>
1377 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
1378 to handle Window "Closing" events.
1380 2004-01-13 David Jee <djee@redhat.com>
1382 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1383 (setBackground): New method. Children with no explicitly-set
1384 background will be repainted with the parent container's new
1387 2004-01-13 David Jee <djee@redhat.com>
1389 * Makefile.am: Add BitwiseXORComposite.java.
1390 * Makefile.in: Regenerated.
1391 * gcj/Makefile.in: Regenerated.
1392 * include/Makefile.in: Regenerated.
1393 * testsuite/Makefile.in: Regenerated.
1395 2004-01-12 Fernando Nasser <fnasser@redhat.com>
1397 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
1398 not show modal dialogs twice and so that it allows showing a modal
1399 dialog from another modal dialog.
1401 2004-01-12 Fernando Nasser <fnasser@redhat.com>
1403 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
1404 and run secondary dispatch thread to process event queue while this
1407 2004-01-12 Graydon Hoare <graydon@redhat.com>
1409 * gnu/java/awt/gtk/GdkGraphics2D.java
1410 (static): Check GtkToolkit before initializing static state.
1411 (Graphics2D): Don't construct transform with 0.5 unit offset.
1413 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
1415 * gnu/java/awt/BitwiseXORComposite.java: Add.
1416 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1417 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
1418 (BitwiseXORComposite): Remove inner class.
1420 2004-01-11 Michael Koch <konqueror@gmx.de>
1422 * gnu/java/lang/reflect/TypeSignature.java
1423 (getEncodingOfClass): Documentation fixed.
1424 (getClassForEncoding): Give class loader to Class.forName().
1425 Documentation fixed.
1427 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
1429 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
1431 2004-01-11 Michael Koch <konqueror@gmx.de>
1433 * javax/swing/undo/StateEditable.java
1434 (RCSID): Removed redundant modifiers.
1436 2004-01-10 Michael Koch <konqueror@gmx.de>
1438 * javax/print/attribute/EnumSyntax.java
1439 (getStringTable): Made protected.
1440 (getEnumValueTable): Likewise.
1441 * javax/print/attribute/standard/JobKOctetsProcessed.java
1442 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
1443 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
1444 (JobMediaSheetsCompleted): Made class final.
1445 * javax/print/attribute/standard/OutputDeviceAssigned.java
1446 (getName): Fixed typo.
1447 * javax/print/attribute/standard/RequestingUserName.java
1448 (serialVersionUID): Fixed value.
1450 2004-01-10 Michael Koch <konqueror@gmx.de>
1452 * javax/swing/plaf/basic/BasicButtonUI.java,
1453 javax/swing/plaf/basic/BasicCheckBoxUI.java,
1454 javax/swing/plaf/basic/BasicListUI.java,
1455 javax/swing/plaf/basic/BasicOptionPaneUI.java,
1456 javax/swing/plaf/basic/BasicPanelUI.java,
1457 javax/swing/plaf/basic/BasicRadioButtonUI.java,
1458 javax/swing/plaf/basic/BasicScrollPaneUI.java,
1459 javax/swing/plaf/basic/BasicToggleButtonUI.java,
1460 javax/swing/plaf/basic/BasicViewportUI.java:
1461 Fixed import statements.
1463 2004-01-10 Michael Koch <konqueror@gmx.de>
1465 * gnu/java/awt/image/ImageDecoder.java
1466 (produce): Made public.
1467 * gnu/java/awt/peer/GLightweightPeer.java,
1468 gnu/java/awt/peer/gtk/GtkToolkit.java:
1471 2004-01-10 Michael Koch <konqueror@gmx.de>
1473 * javax/swing/JRadioButtonMenuItem.java,
1474 javax/swing/JSeparator.java,
1475 javax/swing/JSplitPane.java,
1476 javax/swing/JTextPane.java,
1477 javax/swing/JToolBar.java,
1478 javax/swing/ListCellRenderer.java,
1479 javax/swing/ListModel.java,
1480 javax/swing/MenuElement.java,
1481 javax/swing/OverlayLayout.java,
1482 javax/swing/ProgressMonitor.java,
1483 javax/swing/ProgressMonitorInputStream.java,
1484 javax/swing/Renderer.java,
1485 javax/swing/RootPaneContainer.java,
1486 javax/swing/Scrollable.java,
1487 javax/swing/SingleSelectionModel.java,
1488 javax/swing/ToolTipManager.java,
1489 javax/swing/ViewportLayout.java,
1490 javax/swing/event/DocumentEvent.java,
1491 javax/swing/event/SwingPropertyChangeSupport.java,
1492 javax/swing/event/TreeSelectionEvent.java,
1493 javax/swing/event/UndoableEditEvent.java,
1494 javax/swing/text/AbstractDocument.java,
1495 javax/swing/text/AttributeSet.java,
1496 javax/swing/text/Caret.java,
1497 javax/swing/text/ComponentView.java,
1498 javax/swing/text/DefaultCaret.java,
1499 javax/swing/text/DefaultEditorKit.java,
1500 javax/swing/text/Document.java,
1501 javax/swing/text/EditorKit.java,
1502 javax/swing/text/GapContent.java,
1503 javax/swing/text/Keymap.java,
1504 javax/swing/text/MutableAttributeSet.java,
1505 javax/swing/text/PlainEditorKit.java,
1506 javax/swing/text/Segment.java,
1507 javax/swing/text/Style.java,
1508 javax/swing/text/StyledDocument.java,
1509 javax/swing/text/StyledEditorKit.java,
1510 javax/swing/text/TextAction.java,
1511 javax/swing/text/View.java: Fixed import statements.
1513 2004-01-08 Graydon Hoare <graydon@redhat.com>
1515 * javax/swing/JLayeredPane.java: Rewrite to accomodate
1516 djee@redhat.com's recent inverse ordering of Container elements.
1518 2004-01-09 Michael Koch <konqueror@gmx.de>
1520 * gnu/java/lang/ArrayHelper.java
1521 (equalsArray): Removed.
1523 2004-01-09 Andrew Haley <aph@redhat.com>
1525 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
1526 a Utf8Const field before looking at its class.
1528 2004-01-09 Michael Koch <konqueror@gmx.de>
1530 * javax/print/attribute/standard/DocumentName.java,
1531 javax/print/attribute/standard/JobHoldUntil.java,
1532 javax/print/attribute/standard/JobMessageFromOperator.java,
1533 javax/print/attribute/standard/JobName.java,
1534 javax/print/attribute/standard/JobOriginatingUserName.java,
1535 javax/print/attribute/standard/OutputDeviceAssigned.java,
1536 javax/print/attribute/standard/PrinterInfo.java,
1537 javax/print/attribute/standard/PrinterLocation.java,
1538 javax/print/attribute/standard/PrinterMakeAndModel.java,
1539 javax/print/attribute/standard/PrinterMessageFromOperator.java,
1540 javax/print/attribute/standard/PrinterName.java,
1541 javax/print/attribute/standard/RequestingUserName.java: New files.
1542 * Makefile.am (javax_source_files): Added new files.
1543 * Makefile.in: Regenerated.
1545 2004-01-09 Michael Koch <konqueror@gmx.de>
1547 * javax/swing/AbstractAction.java,
1548 javax/swing/AbstractSet.java,
1549 javax/swing/Action.java,
1550 javax/swing/ActionMap.java,
1551 javax/swing/BoundedRangeModel.java,
1552 javax/swing/ButtonModel.java,
1553 javax/swing/CellEditor.java,
1554 javax/swing/CellRendererPane.java,
1555 javax/swing/ComboBoxEditor.java,
1556 javax/swing/DebugGraphics.java,
1557 javax/swing/DefaultCellEditor.java,
1558 javax/swing/DefaultCellRenderer.java,
1559 javax/swing/DefaultComboBoxModel.java,
1560 javax/swing/DefaultDesktopManager.java,
1561 javax/swing/DefaultFocusManager.java,
1562 javax/swing/DefaultListCellRenderer.java,
1563 javax/swing/Icon.java,
1564 javax/swing/JButton.java,
1565 javax/swing/JCheckBoxMenuItem.java,
1566 javax/swing/JDesktopPane.java,
1567 javax/swing/JEditorPane.java,
1568 javax/swing/JMenu.java,
1569 javax/swing/JPanel.java,
1570 javax/swing/JPasswordField.java,
1571 javax/swing/JPopupMenu.java,
1572 javax/swing/JProgressBar.java: Reworked imports.
1574 2004-01-09 Michael Koch <konqueror@gmx.de>
1576 * java/awt/geom/PathIterator.java
1577 (WIND_EVEN_ODD): Removed redundant modifiers.
1578 (WIND_NON_ZERO): Likewise.
1579 (SEG_MOVETO): Likewise.
1580 (SEG_LINETO): Likewise.
1581 (SEG_QUADTO): Likewise.
1582 (SEG_CUBICTO): Likewise.
1583 (SEG_CLOSE): Likewise.
1584 * java/awt/image/SinglePixelPackedSampleModel.java:
1585 Removed redundant semicolon.
1586 * java/io/ObjectInputStream.java
1587 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
1588 * java/util/logging/Filter.java
1589 (isLoggable): Removed redundant modifier.
1590 * java/util/logging/LogManager.java:
1591 Removed redundant semicolon.
1592 * java/util/logging/XMLFormatter.java
1593 (format): Removed unused variable "key".
1595 2004-01-08 Fernando Nasser <fnasser@redhat.com>
1597 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
1598 New name for the former setFile native method.
1599 (setFile): New method.
1600 (setDirectory): Implemented.
1601 (connectSignals): New native method.
1602 (setFilenameFilter): Improve comment.
1603 (getGraphics): Comment.
1604 (gtkHideFileDialog): New method.
1605 (gtkDisposeFileDialog): New method.
1606 (gtkSetFilename): New method.
1607 * java/awt/Dialog.java (show): Block on modal dialogs, but only
1608 for FileDialog for now.
1610 (dispose): New method.
1611 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1612 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
1613 deprecated creation functions. Make dialog modal. Add it to the
1615 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
1617 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
1619 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
1621 (window_closed): New function.
1622 (ok_clicked): New function.
1623 (cancel_clicked): New function.
1625 2004-01-08 Michael Koch <konqueror@gmx.de>
1627 * javax/swing/JLayeredPane.java: Revert changes to standard
1628 boilerplate, reworked imports.
1630 2004-01-07 Tom Tromey <tromey@redhat.com>
1633 * verify.cc (state::merge): Copy changed locals out of subroutine
1635 (state::FLAG_CHANGED): New const.
1636 (state::FLAG_UNUSED): Likewise.
1637 (state::local_changed): Removed. Updated all users.
1638 (state::flags): New field.
1639 (state::merge): Added jsr_semantics argument, more logic.
1640 (push_jump_merge): Added jsr_semantics argument.
1641 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
1642 merging through the jsr instruction.
1644 2004-01-07 Tom Tromey <tromey@redhat.com>
1646 * scripts/MakeDefaultMimeTypes.java: Use \n, not
1649 2004-01-07 Graydon Hoare <graydon@redhat.com>
1651 * java/awt/Container.java (LightweightDispatcher): Implement.
1652 (visitChild): Reuse graphics object.
1653 (dispatchEventImpl): Optionally dispatch to lightweight.
1654 (addNotifyContainerChildren): Build LightweightDispatcher.
1656 2004-01-07 David Jee <djee@redhat.com>
1658 * java/awt/Container.java
1659 (update): Clear only the clipped region, instead of clearing the
1661 (visitChildren): Visit children in descending order.
1663 2004-01-07 Michael Koch <konqueror@gmx.de>
1665 * java/lang/reflect/Array.java: Merged documentation with classpath.
1667 2004-01-07 Michael Koch <konqueror@gmx.de>
1669 * java/text/CollationElementIterator.java
1670 (textIndex): Renamed from index.
1671 * java/text/CollationKey.java
1672 (collator): New member.
1673 (CollationKey): New argument for parent collator.
1674 (equals): Check for same collator, source string and key array.
1675 * java/text/RuleBasedCollator.java:
1677 (RuleBasedCollator): Don't re-initialize frenchAccents with default
1679 (getCollationElementIterator): Rewritten.
1680 (getCollationKey): Added new argument to CollationKey constructor.
1682 2004-01-07 Michael Koch <konqueror@gmx.de>
1684 * gnu/java/nio/DatagramChannelImpl.java
1685 (blocking): Removed.
1686 (DatagramChannelImpl): Call configureBlocking().
1687 (implConfigureBlocking): Dont initialize blocking.
1688 * gnu/java/nio/ServerSocketChannelImpl.java
1689 (blocking): Removed.
1690 (ServerSocketChannelImpl): Call configureBlocking().
1691 (implConfigureBlocking): Dont initialize blocking.
1692 * gnu/java/nio/SocketChannelImpl.java
1693 (blocking): Removed.
1694 (SocketChannelImpl): Call configureBlocking().
1695 (implConfigureBlocking): Dont initialize blocking.
1696 (connect): Use isBlocking().
1697 * java/nio/channels/spi/AbstractSelectableChannel.java
1698 (configureBlocking): Use blockingLock() instead of LOCK.
1699 Set blocking after successfully called implConfigureBlocking().
1700 (register): Use blockingLock() instead of LOCK.
1702 2004-01-07 Michael Koch <konqueror@gmx.de>
1704 * java/net/ServerSocket.java (isBound): Fixed documentation.
1706 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
1708 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
1709 (changeEvent): Create event object on demand.
1710 (DefaultBoundedRangeModel, toString, setValue, setExtent,
1711 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
1712 fireStateChanged): Re-written.
1713 * javax/swing/event/EventListenerList.java: Reformatted, document
1715 (toString): Implemented.
1716 (getListeners): Re-written.
1717 (remove): Re-written.
1719 (NO_LISTENERS): New singleton field.
1720 (listenerList): Declare as transient; document.
1721 (serialVersionUID): Document.
1722 (getListenerCount(Class)): More efficient implementation,
1723 also accepts null argument. Improve Javadoc.
1724 (getListenerCount()): Remove unnecessary cast; docfix.
1725 * javax/swing/undo/UndoableEditSupport.java:
1726 Re-format, document.
1727 (UndoableEditSupport): Set realSource field. Improve documentation.
1728 (_postEdit): Iterate over cloned listener vector.
1729 (toString): Don't emit realSource.
1730 (beginUpdate, endUpdate): Support nested updates.
1731 (postEdit): Use compound edit if present.
1733 2004-01-06 Graydon Hoare <graydon@redhat.com>
1735 * java/awt/Container.java (swapComponents): Add forgotten
1736 function, required for JLayeredPane change.
1738 2004-01-06 Michael Koch <konqueror@gmx.de>
1740 * java/text/CollationElementIterator.java: Reformated.
1741 (CollationElementIterator): Changed order of arguments.
1742 * java/text/RuleBasedCollator.java
1743 (RuleBasedCollator): Merged class documentation.
1744 (CollationElement): Added documentation.
1745 (compare): Reformated, renamed arguments.
1747 (getCollationElementIterator): Likewise.
1748 (getCollationKey): Likewise.
1750 2004-01-06 Graydon Hoare <graydon@redhat.com>
1752 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
1754 2004-01-06 Michael Koch <konqueror@gmx.de>
1756 * gnu/java/net/protocol/file/Connection.java:
1757 Reformated copyright.
1760 (gotHeaders): Removed.
1761 (getHeaderField): Removed.
1762 (getHeaderField): Removed.
1763 (getHeaderFieldKey): Removed.
1765 (getField): Removed.
1766 (getHeaders): Removed.
1768 2004-01-06 Michael Koch <konqueror@gmx.de>
1770 * javax/print/attribute/standard/DateTimeAtCompleted.java,
1771 javax/print/attribute/standard/DateTimeAtCreation.java,
1772 javax/print/attribute/standard/DateTimeAtProcessing.java,
1773 javax/print/attribute/standard/JobImpressionsCompleted.java,
1774 javax/print/attribute/standard/JobKOctets.java,
1775 javax/print/attribute/standard/JobKOctetsProcessed.java,
1776 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
1777 javax/print/attribute/standard/JobPrioritySupported.java: New files.
1778 * Makefile.am (javax_source_files): Added new files.
1779 * Makefile.in: Regenerated.
1781 2004-01-06 Michael Koch <konqueror@gmx.de>
1783 * java/net/URLConnection.java
1784 (contentHandler): Removed.
1786 (getHeaderFields): Return an empty map instead of null.
1787 (getContent): Connect if needed, renamed "cType" to "type" and
1788 "contentHandler" to "ch" and made it a local variable.
1789 (getPermission): Don't use package in class name.
1790 (setDefaultRequestProperty): Fixed typo in documentation.
1791 (initializeDateFormats): Made locale a local variable.
1793 2004-01-06 Michael Koch <konqueror@gmx.de>
1795 * java/lang/Package.java
1796 (getPackage): Get the current class loader directly.
1797 * java/lang/SecurityManager.java
1798 (currentLoadedClass): Dont iterate over class contexts.
1799 (classLoaderDepth): Don't check class loaders if everything is allowed.
1801 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
1803 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1804 (pre_event_handler): Set all insets to 0 when a Configure event
1805 is received for a GtkPlug.
1806 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
1807 Make handle long, not int.
1808 (EmbeddedWindow()): New constructor.
1809 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
1811 (setHandle): New method.
1812 (getHandle): Return long, not int.
1813 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
1815 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
1816 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
1817 (create(long)): Take long parameter, not int. Cast gtk_plug_new
1818 argument to GdkNativeWindow.
1819 (construct): New method.
1820 (embed): New method.
1822 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
1823 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
1824 (create(int, int)): New method.
1825 (create): Call new create method.
1826 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
1828 (childResized): Remove native implementation. Implement in
1830 (getHScrollbarHeight, getVScrollbarWidth): Call
1831 gtk_widget_size_request to get scrollbar dimensions.
1832 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
1833 call getVScrollbarWidth and getHScrollbarHeight when vertical
1834 and horizontal scrollbars respectively are needed.
1835 (doLayout): Enlarge child if it is smaller than the viewport.
1837 2004-01-05 Fernando Nasser <fnasser@redhat.com>
1839 * java/awt/Dialog.java (constructor): Accept null title as per spec.
1840 * java/awt/FileDialog.java (constructor): Throw exception on invalid
1841 argument as per spec.
1843 2004-01-05 Fernando Nasser <fnasser@redhat.com>
1845 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
1847 (remove): Ditto. Also, Check for valid argument.
1848 (removeAll): Use peer interface method.
1849 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
1850 native add function.
1851 (nativeRemove): New name for native remove function.
1852 (getHistory): New native function.
1853 (constructor): Generate ItemEvent.
1854 (add): Ditto, if selection is changed.
1855 (remove): Ditto, ditto.
1856 (removeAll): Add implementation.
1857 (handleEvent): Remove. Dead code.
1858 (choicePostItemEvent): Add comment.
1859 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1860 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
1861 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
1862 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
1863 comments and fix condition to change selection.
1864 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
1865 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
1866 remove all capability.
1867 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
1868 (item_activate): Add cast to remove compiler warning.
1870 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
1872 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1873 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1874 (getPreferredSize): Call preferredSize.
1875 (preferredSize): Call gtkWidgetGetPreferredDimensions.
1876 (getMinimumSize): Call minimumSize.
1877 (minimumSize): Call gtkWidgetGetPreferredDimensions.
1878 (gtkWidgetGetDimensions): Return the peer widget's current size
1880 (gtkWidgetGetPreferredDimensions): Return the peer widget's
1881 natural size request.
1883 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
1885 Thanks to Brian Gough <bjg@network-theory.com>
1886 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
1887 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
1889 2004-01-04 Matthias Klose <doko@debian.org>
1891 * aclocal.m4: Rebuilt using "aclocal -I .".
1892 * configure: Rebuilt.
1894 2004-01-03 Per Bothner <per@bothner.com>
1896 * java/util/Date.java (parse): Fix a number of problems.
1897 (skipParens): Remove no-longer-needed method.