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