OSDN Git Service

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