OSDN Git Service

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