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