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