1 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
3 * gnu/java/security/action/GetPropertyAction.java (setParameters):
4 Renamed from 'setName'. New 2-argument form with default value.
5 (run): Pass default 'value' parameter to System.getProperty().
6 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
8 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
11 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
13 * configure.in: Check for minimum GTK version 2.4 requirement.
16 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
18 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
19 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
21 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
23 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
24 address. Reduce sleep times. Synchronize with target threads before
25 attempting to interrupt them. Don't try to calibrate yeild count,
26 instead, always loop for a fixed time.
27 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
28 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
29 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
30 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
31 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
32 * testsuite/libjava.lang/pr179.java: Likewise.
33 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
34 time. Remove upper bounds check on sleep time.
36 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
38 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
39 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
41 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
43 * java/io/File.java (toURI): Throw RuntimeException, not
45 * java/lang/Runtime.java (exit): Qualify static sleep() call with
46 class name, not instance.
48 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
50 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
51 and gnu/java/security/action/SetAccessibleAction.java.
52 * Makefile.in: Rebuilt.
54 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
56 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
57 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
59 (DECLARE_PRIM_TYPE): Don't declare array vtables.
60 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
61 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
63 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
65 * Makefile.am: Replace jar, rmic and rmiregistry references with
66 gjar, grmic and grmiregistry.
67 * configure.in: Likewise.
68 * Makefile.in: Regenerate.
69 * configure: Likewise.
70 * gcj/Makefile.in: Likewise.
71 * include/Makefile.in: Likewise.
72 * testsuite/Makefile.in: Likewise.
74 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
76 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
77 for privileged getProperty calls.
78 * java/io/ObjectOutputStream.java (getField): No longer static. Use
79 SetAccessibleAction instead of anonymous class for doPrivileged call.
80 (getMethod): Likewise.
81 (setAccessible): New field. PrivilegedAction object to use when
82 calling setAccessible.
83 * java/io/ObjectStreamClass.java (calculateOffsets): Use
84 SetAccessibleAction instead of anonymous class for diPrivileged call.
85 (setFields): Likewise.
86 (getClassUID): Likewise.
87 (findMethod): Likewise.
88 * gnu/java/security/action/GetPropertyAction.java: New class.
89 * gnu/java/security/action/SetAccessibleAction.java: New class.
91 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
93 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
95 * testsuite/libjava.lang/Serialization.java: New test.
96 * testsuite/libjava.lang/Serialization.out: New.
98 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
100 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
101 missed in last commit.
103 2004-07-23 Mark Wielaard <mark@klomp.org>
105 * java/lang/System.java (static): Set http.agent system property when
107 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
108 from system property inside AccessController.doPrivileged() call.
109 (proxyPort): Made package private.
110 (proxyInUse): Likewise.
111 (proxyHost): Likewise.
112 (userAgent): Likewise.
114 2004-07-23 Mark Wielaard <mark@klomp.org>
116 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
119 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
121 * Makefile.am (ordinary_java_source_files): Add
122 DefaultContentHandlerFactory.java.
123 * Makefile.in: Rebuilt.
124 * java/net/URLConnection.java (defaultFactory): New field.
126 (getContentHandler): Renamed from 'setContentHandler'. Try
127 defaultFactory after user-set factory, if any. Search for content
128 handler implementations in gnu.java.net.content, not gnu.gcj.content.
129 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
131 (getLastModified): Implemented.
132 (getPermission): Create file permission here, instead of in
134 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
136 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
138 (getLastModified): Implemented.
139 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
140 Default implementation.
141 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
142 Implement using GdkPixbufDecoder.
144 2004-07-21 Michael Koch <konqueror@gmx.de>
146 * javax/swing/JTextArea.java
147 (setLineWrap): Fire property change event after new value is set.
148 (setTabSize): Likewise.
150 2004-07-21 Michael Koch <konqueror@gmx.de>
152 * javax/swing/JTable.java
153 (autoCreateColumnsFromModel): New field.
154 (autoResizeMode): Likewise.
155 (cellEditor): Likewise.
156 (cellSelectionEnabled): Likewise.
157 (columnModel): Likewise.
158 (dataModel): Likewise.
159 (defaultEditorsByColumnClass): Likewise.
160 (defaultRenderersByColumnClass): Likewise.
161 (editingColumn): Likewise.
162 (editingRow): Likewise.
163 (gridColor): Likewise.
164 (preferredViewportSize): Likewise.
165 (rowHeight): Likewise.
166 (rowMargin): Likewise.
167 (rowSelectionAllowed): Likewise.
168 (selectionBackground): Likewise.
169 (selectionForeground): Likewise.
170 (selectionModel): Likewise.
171 (showHorizontalLines): Likewise.
172 (showVerticalLines): Likewise.
173 (tableHeader): Likewise.
174 (JTable): Implemented.
175 (getColumnModel): Likewise.
176 (getSelectedRow): Likewise.
177 (getSelectionModel): Likewise.
178 (setModel): Likewise.
179 (setSelectionModel): Likewise.
180 (createScrollPaneForTable): New method.
181 (createDefaultDataModel): Likewise.
182 (createDefaultListSelectionModel): Likewise.
183 (getModel): Likewise.
184 (getTableHeader): Likewise.
185 (setTableHeader): Likewise.
186 (getColumnSelectionAllowed): Likewise.
187 (setColumnSelectionAllowed): Likewise.
188 (getRowSelectionAllowed): Likewise.
189 (setRowSelectionAllowed): Likewise.
190 (getAutoResizeMode): Likewise.
191 (setAutoResizeMode): Likewise.
192 (getColumnCount): Likewise.
193 (getRowCount): Likewise.
194 (getCellRenderer): Likewise.
195 * javax/swing/JTree.java
196 (cellRenderer): New field.
197 (editable): Likewise.
198 (rootVisible): Likewise.
199 (showsRootHandles): Likewise.
200 (getModel): New method.
201 (setModel): Likewise.
202 (isEditable): Likewise.
203 (setEditable): Likewise.
204 (isRootVisbile): Likewise.
205 (setRootVisible): Likewise.
206 (getShowsRootHandles): Likewise.
207 (setShowRootHandles): Likewise.
208 (getCellRenderer): Likewise.
209 (setCellRenderer): Likewise.
211 2004-07-21 Michael Koch <konqueror@gmx.de>
213 * javax/swing/JFormattedTextField.java
214 (setDocument): Implemented.
215 * javax/swing/JRootPane.java:
217 * javax/swing/JTable.java
218 (getDefaultRenderer): New method.
219 * javax/swing/JTextField.java
221 (getPreferredSize): Likewise.
222 * javax/swing/JToggleButton.java
223 (getAccessibleContext): Fix javadoc.
224 * javax/swing/JTree.java:
226 * javax/swing/JViewport.java:
229 2004-07-21 David Jee <djee@redhat.com>
231 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
232 Collect all native method declaration at the top.
233 (create): Set the filename filter if necessary.
234 (setDirectory): Call nativeSetDirectory().
235 (setFilenameFilter): Implement.
236 (filenameFilterCallback): New method.
237 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
238 (create): Configure dialog to show hidden files.
239 (filenameFilterCallback): New function.
240 (nativeSetFilenameFilter): New function.
241 (nativeSetDirectory): New function.
243 2004-07-21 Kim Ho <kho@redhat.com>
245 * javax/swing/plaf/basic/BasicSliderUI.java:
247 (paintTrack): Fill the track before painting
250 2004-07-21 Graydon Hoare <graydon@redhat.com>
252 patch from Roman Kennke <roman@ontographics.com>
253 * javax/swing/Spring.java: New file.
254 * javax/swing/SpringLayout.java: New file.
255 * Makefile.am: Add new files.
256 * Makefile.in: Regenerate.
258 2004-07-21 Graydon Hoare <graydon@redhat.com>
260 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
261 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
262 * javax/swing/ScrollPaneLayout.java: Likewise.
264 2004-07-21 Kim Ho <kho@redhat.com>
266 * javax/swing/DefaultDesktopManager.java:
267 (findMinimum): Removed.
268 (resizeFrame): Trust the UI to pass valid
270 * javax/swing/JOptionPane.java:
271 Implemented showInternalXXXDialog methods.
272 (startModal): New method.
273 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
274 (BorderListener::mouseDragged): Verify that the new
275 bounds are valid before passing them to the DesktopManager.
276 (preferredLayoutSize): Delegate
278 (minimumLayoutSize): Ditto.
279 (getSize): New method.
280 (GlassPaneDispatcher): Reimplemented by copying
281 a stripped down LightweightDispatcher from Container.
282 (getMinimumSize): Call minimumLayoutSize.
283 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
285 (mousePressed): Add ability to properly close
287 * javax/swing/plaf/basic/BasicToolBarUI.java:
288 (DragWindow): Set owner for DragWindow.
290 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
292 * java/awt/image/ShortLookupTable.java: New file.
293 * java/awt/image/ByteLookupTable.java: New file.
294 * Makefile.am: Added new files.
295 * Makefile.in: Regenerated.
297 2004-07-21 David Jee <djee@redhat.com>
299 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
300 (create(GtkContainerPeer)): New native method.
301 (create()): Call native create(), passing in the parent frame
302 as the paramter. Natively set the current file and directory.
303 (setFile): Construct an absolute filename before passing it to
305 (nativeGetDirectory): New method.
306 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
307 (window_closed): Removed.
308 (ok_clicked): Likewise.
309 (cancel_clicked): Likewise.
310 (handle_response): New method.
311 (create): Use GtkFileChooserDialog.
312 (connectSignals): Connect to handle_response.
313 (nativeGetDirectory): New method.
314 (nativeSetFile): Use GtkFileChooserDialog.
316 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
318 * java/awt/image/LookupTable.java: New file.
319 * Makefile.am: Added new file.
320 * Makefile.in: Regenerated.
322 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
324 * java/awt/image/Kernel.java: New file.
325 * Makefile.am: Added new file.
326 * Makefile.in: Regenerated.
328 2004-07-21 Olga Rodimina <rodimina@redhat.com>
330 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
331 * javax/swing/JMenu.java: Likewise.
332 * javax/swing/JMenuBar.java: Likewise.
333 (MARGIN_CHANGED_PROPERTY): New property.
334 (setMargin): Implemented.
335 * javax/swing/JMenuItem.java: Fixed javadocs.
336 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
337 (LABEL_CHANGED_PROPERTY): New property.
338 (add): changed to use createActionComponent.
339 (createActionComponent): Implemented.
340 (setLabel): Fire PropertyChangeEvent if label property
342 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
343 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
344 (ContainerHandler): Repaint if margin property has changed.
345 * javax/swing/plaf/basic/BasicMenuItemUI.java:
346 (installUI): Call installComponents().
347 (uninstallUI): Call uinstallComponents().
348 * javax/swing/plaf/basic/BasicMenuUI.java:
350 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
353 2004-07-21 Kim Ho <kho@redhat.com>
355 * javax/swing/plaf/basic/BasicToolBarUI.java:
356 (DragWindow): Use the right constructor.
358 2004-07-21 Kim Ho <kho@redhat.com>
360 * javax/swing/JToolBar.java:
361 (layoutContainer): Use getComponents.
362 * javax/swing/plaf/basic/BasicToolBarUI.java:
363 (DragWindow): Don't use SwingUtilities'
365 (ToolBarDialog): ditto.
367 2004-07-21 Kim Ho <kho@redhat.com>
369 * javax/swing/JRootPane.java:
371 (layoutContainer): Set the glasspane's size to
372 be the same as the content pane.
373 (createGlassPane): Set opaque property to false.
375 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
377 * java/awt/Component.java (requestFocus()): Don't handle Panels
379 (requestFocus(boolean)): Likewise.
380 (requestFocusInWindow(boolean)): Likewise.
381 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
382 Set GTK_CAN_FOCUS flag.
384 2004-07-21 Kim Ho <kho@redhat.com>
386 * Makefile.am: Added new file.
387 * Makefile.in: Regenerated.
388 * gcj/Makefile.in: Regenerated.
389 * include/Makefile.in: Regenerated.
390 * javax/swing/AbstractButton.java:
391 Add rollOverEnabled property.
392 (setRolloverEnabled): Use new property.
393 (isRolloverEnabled): Use new property.
394 * javax/swing/JTabbedPane.java:
395 (setComponent): Remove useless JTabbedPane.this.
396 * javax/swing/JToolBar.java: Finish implementation.
397 * javax/swing/plaf/basic/BasicArrowButton.java:
398 (paint): Moved border painting to a border.
399 * javax/swing/plaf/basic/BasicLookAndFeel.java:
400 Change JToolBar look and feel defaults.
401 * javax/swing/plaf/basic/BasicOptionPaneUI.java
402 (actionPerformed): Return Integer index instead of name.
403 (addButtonComponents): Check to see if component is
405 (createMessageArea): Don't use components that are not
407 (getIconForType): Use temporary icons.
408 * javax/swing/plaf/basic/BasicSliderUI.java:
409 (mousePressed): Do not return if it's on thumb.
410 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
411 (paintMinorTickForVertSlider): ditto.
412 (paintMajorTickForHorizSlider): ditto.
413 (paintMajorTickForVertSlider): ditto.
414 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
415 Add a border around the SplitPaneDivider.
416 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
418 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
419 New file. Implemented.
420 * javax/swing/plaf/basic/BasicToolBarUI.java:
422 * testsuite/Makefile.in: Regenerated.
424 2004-07-21 Graydon Hoare <graydon@redhat.com>
426 * javax/swing/Timer.java (run): Queue events each time cycle.
428 2004-07-21 David Jee <djee@redhat.com>
430 * gnu/java/awt/peer/gtk/GtkImagePainter.java
431 (imageComplete): Call image.imageComplete().
432 * java/awt/image/MemoryImageSource.java:
433 Reimplement consumers as a Vector instead of a Hashtable. This is
434 because enumeration on a Hashtable is not thread-safe.
435 (addConsumer): Adapt to Vector consumers.
436 (isConsumer): Adapt to Vector consumers.
437 (removeConsumer): Adapt to Vector consumers.
438 (startProduction): Adapt to Vector consumers. Call imageComplete()
439 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
440 (newPixels): Adapt to Vector consumers.
441 (sendPicture): Set the color model of the image consumer.
442 (newPixels(IIII)): Adapt to Vector consumers.
443 (newPixels(IIIIB)): Adapt to Vector consumers.
445 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
447 * java/awt/Component.java (deliverEvent): Implement.
448 (postEvent): Implement.
449 (handleEvent): Implement.
450 (translateEvent): New method.
451 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
452 * java/awt/Container.java (deliverEvent): Implement.
453 * java/awt/Event.java (paramString): Fix formatting.
454 * java/awt/Font.java (toString): Likewise.
455 * java/awt/Window.java (postEvent): Implement.
457 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
459 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
460 Set window's focus owner upon receiving a FOCUS_LOST event.
461 * java/awt/Window.java (Window()): Refocus the previously
462 focused component within the window when the window regains the
464 (setFocusOwner): New method.
465 * java/awt/Component.java (requestFocus): Add FIXME.
467 * libgcj.pc.in: Remove library flags.
469 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
471 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
473 * java/awt/Component.java (requestFocus()): Handle Panel
474 specially. Post FOCUS_LOST event on opposite component.
475 (requestFocus(boolean)): Likewise.
476 (requestFocusInWindow(boolean)): Likewise.
477 (paramString): Reorder dimension fields.
478 * java/awt/Container.java (paramString): Fix string format.
479 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
480 Handle FOCUS_LOST events. Don't handle Windows specially. Only
481 process key events if the focus owner is non-null.
482 (dispatchKeyEvent): Likewise.
483 * java/awt/Frame.java (paramString): Fix formatting.
484 (generateName): New method.
485 (getUniqueLong): Likewise.
486 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
487 the temporary focus owner is null. If so, return the permanent
489 * java/awt/Panel.java (generateName): New method.
490 (getUniqueLong): Likewise.
491 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
492 signal handling to make callbacks more specific.
494 2004-07-21 Michael Koch <konqueror@gmx.de>
496 * javax/swing/text/Position.java
499 2004-07-21 Michael Koch <konqueror@gmx.de>
501 * javax/swing/LookAndFeel.java
502 (provideErrorFeedback): New method.
504 2004-07-21 Michael Koch <konqueror@gmx.de>
506 * javax/swing/JTextArea.java
507 (tabSize): New field.
508 (getTabSize): New method.
509 (setTabSize): Likewise.
511 2004-07-21 Michael Koch <konqueror@gmx.de>
513 * javax/swing/ActionMap.java:
514 Fixed javadocs all over.
515 (serialVersionUID): Made private.
516 (parent): Don't explicitely initialize with default value.
518 (keys): Reimplemented.
520 (convertSet): Removed.
521 * javax/swing/ComponentInputMap.java:
522 Fixed javadocs all over.
523 (ComponentInputMap): Implemented.
527 (SetParent): Likewise.
528 (getComponent): Likewise.
529 * javax/swing/InputMap.java:
530 Fixed javadocs all over.
531 (serialVersionUID): Made private.
532 (parent): Don't explicitely initialize with default value.
534 (keys): Reimplemented.
536 (convertSet): Removed.
538 2004-07-21 Michael Koch <konqueror@gmx.de>
540 * javax/swing/ActionMap.java,
541 javax/swing/ComponentInputMap.java,
542 javax/swing/InputMap.java,
543 javax/swing/table/DefaultTableColumnModel.java,
544 javax/swing/table/TableColumn.java,
545 javax/swing/table/TableColumnModel.java,
546 javax/swing/table/TableModel.java,
547 javax/swing/text/AbstractDocument.java,
548 javax/swing/text/TextAction.java:
551 2004-07-21 Graydon Hoare <graydon@redhat.com>
553 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
554 Make method non-static.
555 * javax/swing/AbstractButton.java:
556 Rename fields to match property names where possible.
557 (iconTextGap): New property.
558 * javax/swing/JCheckBox.java: Match AbstractButton changes.
559 (init) New method, call from after various constructors.
560 * javax/swing/JComponent.java (revalidate):
561 Invalidate before queueing repair.
562 * javax/swing/JList.java (getPreferredScrollableViewportSize):
563 Reimplement in terms of visibleRowCount property.
564 * javax/swing/JMenuButton.java: Match AbstractButton changes.
565 * javax/swing/JScrollPane.java (createScrollListener):
566 Remove tracing chatter.
567 * javax/swing/JToggleButton.java: Match AbstractButton changes.
568 * javax/swing/RepaintManager.java (addInvalidComponent):
570 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
572 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
573 Mimic sun behavior on top left/right positioning.
574 * javax/swing/ViewportLayout.java (preferredLayoutSize):
575 Remove mistaken use of preferredScrollableViewportSize here.
576 (layoutContainer): Use view's preferred size as basis.
577 * javax/swing/plaf/basic/BasicButtonUI.java:
578 Set, get, and use textIconGap property.
579 (paint) Paint text returned from layout (with ellipsis).
580 * javax/swing/plaf/basic/BasicListUI.java:
581 Remove tracing chatter, correct various minor calculations.
582 (getCellBounds): Update layout state before calculating.
583 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
584 Use margin default similar to sun's.
585 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
586 (createIncreaseIcon): Center icon, minimize margins.
587 (createDecreaseIcon): Likewise.
588 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
590 (installUI): Call it.
591 (uninstallDefaults): Implement.
592 (uninstallUI): Call it.
593 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
594 Call existing Window constructor.
595 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
596 Set clip before painting.
598 2004-07-21 Olga Rodimina <rodimina@redhat.com>
600 * javax/swing/JMenuItem.java:
601 (processMouseEvent): Reimplemented to deal with
603 (createMenuDragMouseEvent): New private helper method.
604 Creates MenuDragMouseEvent.
605 * javax/swing/MenuSelectionManager.java
606 (componentForPoint): Implemented.
607 (isComponentPartOfCurrentMenu): Made public.
608 (processMouseEvent): Reimplemented to deal with
610 (setSelectedPath): Corrected small mistake that caused
611 path to be set incorrectly.
612 (getPath): If given component is JMenu then also add this
613 menu's popup menu to the selected path.
614 * javax/swing/plaf/basic/BasicMenuItemUI.java:
616 (getPreferredSize): Call getPreferredMenuItemSize().
617 (getPreferredItemSize): Moved code from getPreferredSize to here.
618 (installListeners): Install MouseMotionListeners.
619 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
620 if mouse wasn't released in the bounds of this menu item.
621 (MenuDragMouseHandler): Implemented.
622 * javax/swing/plaf/basic/BasicMenuUI.java:
623 (installListeners): Install MouseMotionListener and
624 MenuDrageMouseListener.
625 (MenuDragMouseHandler): Implemented.
626 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
627 (uninstallListeners): Implemented.
629 2004-07-21 Michael Koch <konqueror@gmx.de>
631 * javax/swing/JCheckBox.java: Reformated.
632 (JCheckBox): Fixed all constructors.
633 (isBorderPaintedFlat): New method.
634 (setBorderPaintedFlat): New method.
635 * javax/swing/JEditorPane.java
636 (createEditorKitForContentType): Made public.
637 (scrollToReference): Likewise.
638 * javax/swing/JTextArea.java
639 (setLineWrap): Fire property change.
640 * javax/swing/JToggleButton.java
641 (JToggleButton): New constructor.
642 (JToggleButton): Simplified.
643 * javax/swing/text/AttributeSet.java
644 (FontAttribute): Renamed from FontCharacterAttribute.
645 * javax/swing/text/JTextComponent.java
646 (KeyBinBinding): Added javadoc.
647 (JTextComponent): Likewise.
648 (getAccessibleContext): Fixed javadoc.
649 * javax/swing/text/View.java
650 (View): Added javadoc.
651 * javax/swing/text/TabableView.java: New file.
652 * Makefile.am: Added javax/swing/text/TabableView.java.
653 * Makefile.in: Regenerated.
655 2004-07-21 Graydon Hoare <graydon@redhat.com>
657 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
658 * gnu/java/awt/peer/gtk/GtkToolkit.java
659 (GtkErrorImage): New helper class.
660 (bufferedImageOrError): New helper method.
661 (createImage): Use it.
663 2004-07-21 David Jee <djee@redhat.com>
665 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
666 (setCaretPosition): Scroll the text view so the new caret position
667 is visible on screen.
669 2004-07-21 David Jee <djee@redhat.com>
671 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
672 (setBounds): Do not validate awtComponent here.
673 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
674 (getPreferredSize): New method.
675 * java/awt/ScrollPane.java
676 (ScrollPane): Set default size to 100x100.
677 (addNotify): If child is not a Panel, wrap it with a new Panel.
678 (paramString): Implement.
680 2004-07-21 Olga Rodimina <rodimina@redhat.com>
682 * javax/swing/JMenu.java:
683 (setSelected): Display popup menu only if this menu
684 is showing on the screen.
685 * javax/swing/JPopupMenu.java:
686 (processMouseEvent): Added comment.
687 (processKeyEvent): Likewise.
688 * javax/swing/MenuSelectionManager.java:
689 (clearSelectedPath): Only fireStateChanged() after
690 selected path was changed, not before.
691 (setSelectedPath): Likewise.
692 * javax/swing/plaf/basic/BasicMenuItemUI.java:
693 (paintMenuItem): Corrected position of menu item's
695 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
696 (installUI): Correct setDefaultLightWeightPopupEnabled call.
697 (popupMenuCanceled): Reimplemented.
698 (popupMenuWillBecomeVisible): Select first menu item by default
699 when displaying free floating popup menus.
700 (TopWindowListener): Reimplemented.
702 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
704 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
705 Panel from being painted twice when it is first shown.
707 2004-07-21 Olga Rodimina <rodimina@redhat.com>
709 * java/awt/Window.java: Reverted changes from my
710 previous patch for creating window without an owner.
711 * javax/swing/SwingUtilities.java:
712 (SwingUtilities.OwnerFrame): made static.
713 (OwnerFrame.setVisible): New method. Overridden with
714 empty implementation.
715 (OwnerFrame.isShowing): New method. Ovverridden
716 to return always true.
718 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
720 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
721 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
722 (GtkComponentPeer): Remove temporary try/catch block.
723 (setVisible): Call show and hide.
726 (getArgs): Don't add "visible" argument.
727 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
728 (property_notify_predicate): Return Bool instead of int.
729 (find_layout): New function.
730 (connectJObject): Call find_layout.
731 (connectSignals): Likewise.
732 (moveLayout): Likewise.
733 (gtkLayoutSetVisible): Likewise.
735 2004-07-21 Mark Wielaard <mark@klomp.org>
737 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
738 on notifier object before calling notifyAll().
740 2004-07-21 Olga Rodimina <rodimina@redhat.com>
742 * java/awt/Window.java: Changed constructors to use new
743 method that is described below. Constructors call this
744 methods only if newly created window should have an owner.
745 (setWindowOwner): New method. Implementation for
746 this method is moved from this(owner,configuration).
747 * javax/swing/JWindow.java:
748 (JWindow): Reimplement to use SwingUtilities.ownerFrame
750 * javax/swing/SwingUtilities.java:
751 (ownerFrame): Change type of this field to OwnerFrame.
752 (getOwnerFrame): Changed to return object of type OwnerFrame.
753 (SwingUtilities.OwnerFrame): New class. Represents owner
754 of a Window that is not provided with one.
756 2004-07-21 Olga Rodimina <rodimina@redhat.com>
758 * javax/swing/AbstractButton.java:
759 (configurePropertiesFromAction): Set action command
760 to button's text by default if action command is not
761 explicitely specified.
762 * javax/swing/JMenu.java: Remove unnecessary listener
763 and methods relevant to it.
764 (setSelected): Reimplemented.
765 (menuSelectionChanged): Moved most part of implementation to
766 setSelected() and call it instead.
767 * javax/swing/JMenuItem.java:
768 (init): Comment out statement that sets paint_border to false.
769 (configurePropertiesFromAction): Do not set accelerator
771 (menuSelectionChanged): Change selected index in the selection
772 model of menu item's parent.
773 * javax/swing/JPopupMenu.java:
774 (remove): Set constraints.fill field to GridBagConstraints.BOTH
775 instead of GridBagConstraints.HORIZONTAL.
777 (createActionChangeListener): Implemented.
778 (setVisible): Correct location of HeavyWeightMenu and
779 don't firePopupMenuCanceled().
780 (menuSelectionChanged): Implemented.
781 (ActionChangeListener): New Listener. Implemented.
782 * javax/swing/plaf/basic/BasicMenuBarUI.java:
783 (BasicMenuBarUI.ContainerHandler): Implemented.
784 * javax/swing/plaf/basic/BasicMenuItemUI.java:
785 (paintMenuItem): Uncommented out code that paints
786 icon, now that icons are working properly.
787 (PropertyChangeListener): Implemented.
788 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
790 (topWindowListener): New field.
791 (Constructor): initialize topWindowListener.
792 (BasicPopupMenuUI.TopWindowListener): Implemented.
793 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
794 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
797 2004-07-21 Michael Koch <konqueror@gmx.de>
799 * javax/swing/plaf/basic/BasicButtonUI.java
800 (paintFocus): Fixed method signature.
801 (paintButtonPressed): Likewise.
802 (paintButtonNormal): Likewise.
803 (paintText): New method.
804 * javax/swing/plaf/basic/BasicLabelUI.java
805 (paint): Re-indented.
806 * javax/swing/plaf/basic/BasicTextUI.java
807 (installUI): Set parent textComponent to opaque.
808 * javax/swing/text/DefaultHighlighter.java
809 (checkPositions): New helper method.
810 (addHighlight): Throws BadLocationException, check positions.
811 (changeHighlight): Likewise.
812 * javax/swing/text/EditorKit.java
813 (EditorKit): Implements Serializable.
814 * javax/swing/text/JTextComponent.java
815 (getUI): Added javadoc.
817 (upadteUI): Added javadoc, don't revalidate and repaint.
819 2004-07-21 David Jee <djee@redhat.com>
821 * java/awt/GridBagLayout.java
822 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
823 * javax/swing/AbstractButton.java
825 * javax/swing/RepaintManager.java
826 (addInvalidComponent): Find the first ancestor that isValidateRoot().
828 2004-07-21 Michael Koch <konqueror@gmx.de>
830 * javax/swing/JFormattedTextField.java
832 (JFormattedTextField): Implemented.
833 (getValue): Likewise.
834 (setValue): Likewise.
835 * javax/swing/LookAndFeel.java
836 (getSupportsWindowDecorations): New method.
837 * javax/swing/UIDefaults.java:
838 Use java.beans.PropertyChangeSupport instead of doing all ourself.
839 (addPropertyChangeListener): Made public.
840 (addResourceBundle): Likewise.
841 (removeResourceBundle): Likewise.
842 (setDefaultLocale): Likewise.
843 * javax/swing/plaf/basic/BasicRootPaneUI.java
844 (BasicRootPaneUI): Implements PropertyChangeListener.
845 (propertyChange): New method.
846 * javax/swing/plaf/basic/BasicTextUI.java
847 (BasicHighlighter): New inner class.
848 (createHighlighter): New method.
849 * javax/swing/plaf/basic/BasicToolBarUI.java
850 (DragWindow): Extends java.awt.Window.
851 * javax/swing/text/JTextComponent.java
852 (getDocument): Removed debug output.
853 * javax/swing/plaf/basic/BasicTextFieldUI.java,
854 javax/swing/text/DefaultHighlighter.java,
855 javax/swing/text/FieldView.java,
856 javax/swing/text/PlainView.java: New files.
857 * Makefile.am: Added new files.
858 * Makefile.in: Regenerated.
860 2004-07-21 Michael Koch <konqueror@gmx.de>
862 * javax/swing/JEditorPane.java
863 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
864 (createEditorKitForContentType): Likewise.
865 * javax/swing/text/DefaultEditorKit.java
866 (serialVersionUID): Added constant field.
867 (EndOfLineStringPropery): Fixed typo.
868 (DefaultEditorKit): New constructor.
869 * javax/swing/text/Segment.java:
870 Import java.text.CharacterIterator.
871 * javax/swing/text/CharacterIterator.java,
872 javax/swing/text/PlainEditorKit.java: Removed.
873 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
874 javax/swing/text/PlainEditorKit.java.
875 * Makefile.in: Regenerated.
877 2004-07-21 Michael Koch <konqueror@gmx.de>
879 * javax/swing/JButton.java,
880 javax/swing/text/DefaultEditorKit.java,
881 javax/swing/text/EditorKit.java,
882 javax/swing/text/Segment.java,
883 javax/swing/text/StyledEditorKit.java:
886 2004-07-21 Michael Koch <konqueror@gmx.de>
888 * javax/swing/ImageIcon.java
890 (description): Renamed from descr.
891 (ImageIcon): Added missing constructors.
892 (setParent): Removed.
893 (setImageObserver): New method.
894 (getImageObserver): New method.
895 (paintIcon): Handle observer = null.
896 * javax/swing/JButton.java
897 (removeNotify): Fixed javadoc.
898 (updateUI): Simplified.
899 * javax/swing/JRootPane.java
900 (serialVersionUID): New constant field.
901 * javax/swing/UIManager.java:
902 Fixed javadocs all over.
903 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
904 * javax/swing/text/AbstractDocument.java
905 (createPosition): Throws BadLocationException.
908 * javax/swing/text/ComponentView.java
909 (modelToView): Likewise.
910 * javax/swing/text/DefaultEditorKit.java:
911 Made all public methods public.
912 (read): Throws BadLocationException and IOException.
914 * javax/swing/text/EditorKit.java:
915 Made all public methods public.
916 (serialVersionUID): New constant field.
918 (read): Throws BadLocationException and IOException.
920 * javax/swing/text/Segment.java
921 (array): Made public.
924 (Segment): New constructors.
925 (clone): Reimplemented.
926 * javax/swing/text/StyledEditorKit.java
927 (serialVersionUID): New constant field.
929 2004-07-21 Graydon Hoare <graydon@redhat.com>
931 * java/awt/image/BufferedImage.java
932 (getSource): Implement.
933 * javax/swing/ImageIcon.java
934 (ImageIcon): Implement ctor.
935 * javax/swing/ScrollPaneLayout.java
936 (preferredLayoutSize): Be more careful about nulls.
938 2004-07-21 Michael Koch <konqueror@gmx.de>
940 * javax/swing/text/AttributeSet.java
941 (CharacterAttribute): New interface
942 (ColorAttribute): Likewise.
943 (FontCharacterAttribute): Likewise.
944 (ParagraphAttribute): Likewise.
945 * javax/swing/text/DefaultCaret.java
946 (moveCaret): New method.
947 (positionCaret): Likewise.
948 (repaint): Made protected.
949 * javax/swing/text/JTextComponent.java
950 (KeyBinding): Made it static.
951 * javax/swing/text/View.java
952 (getContainer): Honor parent == null.
954 2004-07-21 Michael Koch <konqueror@gmx.de>
956 * javax/swing/text/AbstractDocument.java:
959 2004-07-21 Michael Koch <konqueror@gmx.de>
961 * javax/swing/plaf/basic/BasicRootPaneUI.java:
962 Import javax.swing.UIManager explicitely.
963 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
964 (ScrollingButton): Made it static.
966 2004-07-21 Michael Koch <konqueror@gmx.de>
968 * javax/swing/UIDefaults.java
969 (ActiveValue): Made public.
970 (LazyValue): Likewise.
971 * javax/swing/plaf/basic/BasicTextUI.java
972 (RootView): Reintroduced.
974 (rootView): New field.
975 (installUI): Create document if needed, initialize rootView.
976 (uninstallUI): Hanle rootView.
978 (getRootView): Likewise.
980 * javax/swing/text/DefaultCaret.java:
981 Renamed all "evt" variables to "event".
983 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
985 * libgcj.spec.in: Add -l-java-util-logging.
987 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
989 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
990 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
991 gtk-xft-dpi can no calculate the right value.
992 (dpi_changed_cb): Mark *pspec as unsused.
994 2004-07-21 David Jee <djee@redhat.com>
996 * java/awt/Component.java
997 (move): Delegate to setBounds().
999 (reshape): Fix so it repaints parent and self only when necessary.
1001 2004-07-21 David Jee <djee@redhat.com>
1003 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1004 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1005 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1006 (setVisible): Likewise.
1009 (getArgs): Likewise.
1010 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1011 (property_notify_predicate): Likewise.
1012 (find_layout): Likewise.
1013 (connectJObject): Likewise.
1014 (connectSignals): Likewise.
1015 (moveLayout): Likewise.
1016 (gtkLayoutSetVisible): Likewise.
1018 2004-07-21 Graydon Hoare <graydon@redhat.com>
1024 (rmiregistry_LDADD): Add lib-java-util-logging.la
1025 * Makefile.in: Regenerate.
1027 2004-07-21 Michael Koch <konqueror@gmx.de>
1029 * javax/swing/text/AbstractDocument.java
1030 (replace): Dont use protected method of java.util.Vector directly.
1032 2004-07-21 Michael Koch <konqueror@gmx.de>
1034 * javax/swing/plaf/basic/BasicTextUI.java
1035 (installUI): Call specialized install methods.
1036 (installDefaults): New method.
1037 (installListeners): Likewise.
1038 (installKeyboardActions): Likewise.
1039 (uninstallUI): Likewise.
1040 (uninstallDefaults): New method.
1041 (uninstallListeners): Likewise.
1042 (uninstallKeyboardActions): Likewise.
1043 (getPropertyPrefix): New abstract method.
1044 (paint): Made final, just call paintSafely().
1045 (paintSavely): New method.
1046 (paintBackground): Likewise.
1047 (getVisibleEditorRect): Likewise.
1048 * javax/swing/text/LayeredHighlighter.java,
1049 javax/swing/text/TabExpander.java: New files.
1050 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1051 and javax/swing/text/TabExpander.java.
1052 * Makefile.in: Regenerated.
1054 2004-07-21 Michael Koch <konqueror@gmx.de>
1056 * javax/swing/plaf/basic/BasicTextUI.java
1057 (BasicTextUI): Made abstract.
1058 (BasicCaret): New inner class.
1059 (view): Don't explicitely initialize with "null".
1060 (textComponent): New field.
1061 (textColor): Removed.
1062 (disabledTextColor): Removed.
1063 (normalBackgroundColor): Removed.
1064 (RootView): Removed commented out inner class.
1065 (createUI): Removed.
1066 (createCaret): New method.
1067 (getComponent): Likewise.
1068 (installUI): Initialize textComponent only.
1069 (getPreferredSize): Use installed JTextComponent.
1070 (setView): New method.
1072 * javax/swing/text/JTextComponent.java
1073 (highlighter): New field.
1074 (caretColor): Likewise.
1075 (disabledTextColor): Likewise.
1076 (seletedTextColor): Likewise.
1077 (selectionColor): Likewise.
1078 (setUI): New method.
1079 (getCaretColor): Likewise.
1080 (setCaretColor): Likewise.
1081 (getDisabledColor): Likewise.
1082 (setDisabledColor): Likewise.
1083 (getSelectedTextColor): Likewise.
1084 (setSelectedTextColor): Likewise.
1085 (getSelectionColor): Likewise.
1086 (setSelectionColor): Likewise.
1087 (getHighlighter): Likewise.
1088 (setHighlighter): Likewise.
1089 (replaceSelection): Likewise.
1091 2004-07-21 Michael Koch <konqueror@gmx.de>
1093 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1094 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1095 * javax/swing/plaf/basic/BasicToolBarUI.java
1096 (BasicToolBarUI): Implements SwingConstants.
1098 2004-07-21 Michael Koch <konqueror@gmx.de>
1100 * javax/swing/JPopupMenu.java: Removed CVS tags.
1101 * javax/swing/UIDefaults.java: Reformatted.
1102 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1103 Explicitely import used classes.
1105 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1107 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1108 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1109 (GtkComponentPeer): Remove temporary try/catch block.
1110 (setVisible): Call show and hide.
1111 (show): Make native.
1113 (getArgs): Don't add "visible" argument.
1114 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1115 (property_notify_predicate): Return Bool instead of int.
1116 (find_layout): New function.
1117 (connectJObject): Call find_layout.
1118 (connectSignals): Likewise.
1119 (moveLayout): Likewise.
1120 (gtkLayoutSetVisible): Likewise.
1122 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1124 * javax/swing/AbstractButton.java:
1125 (setDisplayedMnemonicIndex): Check if button
1126 text is not null before checking its length.
1127 * javax/swing/JMenuItem.java:
1128 (processMouseEvent): Disarm menu item if mouse has
1130 * javax/swing/plaf/basic/BasicMenuUI.java:
1131 (MouseInputHandler.mouseEntered): Do not raise
1132 popup menu if this menu is already selected.
1133 (MouseInputHandler.mousePressed): Do not fire
1135 (MenuHandler): Implemented.
1137 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1139 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1140 (getSelectedObjects): Implemented.
1141 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1142 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1143 Added javadoc for few methods.
1144 (processMouseEvent): Made public.
1145 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1146 (processMouseEvent): Likewise.
1148 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1150 * javax/swing/AbstractButton.java:
1151 (init): Set display mnemonic index to -1.
1152 (setMnemonic(char)): Use setMnemonic(int).
1153 (setMnemonic(int)): Set display mnemonic index.
1154 (getDisplayedMnemonicIndex): Change method signature
1155 by removing 'index' parameter.
1156 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1157 Added default for Menu.selectionBackground.
1158 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1159 (paintMenuItem): Change background color of the selected
1161 (paintText): Paint differently when menu item is disabled.
1162 Also paint mnemonic if it appears in the menu item's label.
1163 (paintAccelerator): Paint accelerator differently
1164 if menu item is disabled.
1165 * javax/swing/plaf/basic/BasicMenuUI.java:
1166 (installDefaults): Install defaults for
1167 selectionForeground and selectionBackground.
1168 (uninstallDefaults): Uninstall defauls for
1169 selectionForeground and selectionBackground.
1171 2004-07-21 Michael Koch <konqueror@gmx.de>
1173 * javax/swing/text/AbstractDocument.java
1174 (BranchElement): Implemented.
1175 (LeafElement): Implemented.
1176 * javax/swing/text/DefaultCaret.java:
1177 Import used classes.
1178 (serialVersionUID): New constant.
1179 * javax/swing/text/JTextComponent.java
1180 (AccessibleJTextComponent): Removed dead declaration.
1181 (caretPos): Removed.
1182 (setCaret): New method.
1183 * javax/swing/text/PlainDocument.java
1184 (rootElement): New field.
1185 (PlainDocument): Initialize rootElement.
1186 (createDefaultRoot): New method.
1187 (getDefaultRootElement): Implemented.
1188 * javax/swing/text/View.java: Reformatted.
1189 * javax/swing/text/ViewFactory.java
1190 (create): Added javadoc.
1192 2004-07-21 Michael Koch <konqueror@gmx.de>
1194 * javax/swing/ToolTipManager.java: Reformatted.
1196 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1198 * javax/swing/AbstractButton.java
1199 (changeEvent): New field.
1200 (fireItemStateChanged): Change source of the event
1201 to 'this' before firing it to button listeners.
1202 (fireActionPerformed): Likewise.
1203 (fireStateChanged): Likewise.
1204 (createActionListener): Do not set source
1205 of the event to AbstractButton.
1206 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1207 (ContainerHandler.componentAdded): Removed
1208 print out statement.
1209 (ContainerHandler.componentRemoved): Likewise.
1211 2004-07-21 Michael Koch <konqueror@gmx.de>
1213 * javax/swing/text/Highlighter.java: New file.
1214 * Makefile.am: Added javax/swing/text/Highlighter.java.
1215 * Makefile.in: Regenerated.
1217 2004-07-21 Michael Koch <konqueror@gmx.de>
1219 * javax/swing/ToolTipManager.java
1220 (stillInsideTimerAction): Fixed constructor arguments.
1221 (outsideTimerAction): Likewise.
1222 (insideTimerAction): Likewise.
1224 2004-07-21 Michael Koch <konqueror@gmx.de>
1226 * javax/swing/JButton.java: Reformatted.
1227 * javax/swing/JFormattedTextField.java
1228 (getUIClassID): Implemented.
1229 * javax/swing/JRootPane.java
1230 (serialVersionUID): New constant.
1231 * javax/swing/JTextField.java
1233 (JTextField): Simplified.
1234 (getUIClassID): New method.
1235 (getActionListeners): Added @since tag.
1236 (setColumns): Invalidate layout and repaint.
1237 (getHorizontalAlignment): New method.
1238 (setHorizontalAlignment): New method.
1239 (selectAll): Removed.
1240 * javax/swing/SwingUtilities.java
1241 (getAncestorOfClass): Removed redundant @see tag.
1242 (isLeftMouseButton): Fixed implementation.
1243 (isMiddleMouseButton): Likewise.
1244 (isRightMouseButton): Likewise.
1245 * javax/swing/text/AbstractDocument.java
1246 (AttributeContext.addAttribute): New method.
1247 (AttributeContext.addAttributes): New method.
1248 (AttributeContext.getEmptySet): New method.
1249 (AttributeContext.reclaim): New method.
1250 (AttributeContext.removeAttribute): New method.
1251 (AttributeContext.removeAttributes): New method.
1252 * javax/swing/text/Document.java
1253 (createPosition): Throws BadLocationException.
1254 (getText): Likewise.
1256 * javax/swing/text/JTextComponent.java
1257 (getText): Return null if no document is set. Catch
1258 BadLocationException.
1260 (updateUI): Simplified.
1262 2004-07-21 Michael Koch <konqueror@gmx.de>
1264 * javax/swing/JButton.java
1265 (removeNotify): Fixed javadoc.
1266 (updateUI): Simplified.
1268 2004-07-21 David Jee <djee@redhat.com>
1270 * gnu/java/awt/image/ImageDecoder.java
1271 (startProduction): Only add consumer if it's not added yet.
1272 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1273 (GdkPixbufDecoder): Don't call initState() here.
1274 (produce): Call initState() here, to ensure area_prepared and
1275 area_updated signals are properly connected.
1276 * gnu/java/awt/peer/gtk/GtkImage.java
1277 (setColorModel): Use equals() to compare ColorModel objects.
1278 (setPixels): Likewise.
1279 * java/awt/image/ColorModel.java
1280 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1281 * java/awt/image/RGBImageFilter.java
1282 (setColorModel): Set consumer's color model.
1283 (setPixels): Use equals() to compare ColorModel objects.
1285 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1287 * java/net/URLConnection.java (position): New field.
1288 (dateFormat1, dateFormat2, dateFormat3): Removed.
1289 (dateFormats): New field.
1290 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1291 each time instead of re-allocating.
1292 (initializeDateFormats): Initialize 'dateFormats'.
1294 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1297 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1300 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1302 * java/net/Socket.java (getImpl): Now private. Remove comment.
1304 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1306 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1307 of chained Writer when calling super-constructor.
1308 * java/io/FilterWriter.java (FilterWriter): Likewise.
1309 * java/io/PrintWriter.java (PrintWriter): Likewise.
1311 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1313 * prims.cc (process_gcj_properties): Don't increment i within LHS
1316 2004-07-19 Per Bothner <per@bothner.com>
1318 Print -verbose:message on "loading", not initialization.
1319 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1320 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1321 gcj::verbose_class_flag.
1322 * java/lang/natClass.cc (initializeClass): Don't print message here.
1323 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1324 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1325 (_Jv_PrepareCompiledClass): Likewise.
1327 2004-07-18 Matthias Klose <doko@debian.org>
1329 * configure.in: Substitute target_noncanonical.
1330 * configure: Regenerate
1332 2004-07-17 Michael Koch <konqueror@gmx.de>
1334 * java/lang/String.java: Fixed javadocs all over.
1336 2004-07-17 Mark Wielaard <mark@klomp.org>
1338 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1339 when size is smaller.
1340 * java/io/RandomAccessFile.java (setLength): Use truncate for
1341 shrinking the file and seek plus write for expanding the file.
1343 2004-07-17 Michael Koch <konqueror@gmx.de>
1345 * gnu/java/nio/channels/natFileChannelPosix.cc
1346 (implTruncate): Always save current position. Only reposition file
1347 pointer to where we started if not beyond new lenght. Reposition file
1348 pointer to file length if it points beyond the end of file.
1350 2004-07-17 Mark Wielaard <mark@klomp.org>
1352 * javax/swing/Box.java: Put FIXME comment above class declaration.
1353 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1354 * javax/swing/JCheckBox.java: Likewise.
1355 * javax/swing/JDialog.java: Likewise.
1356 * javax/swing/JRadioButton.java: Likewise.
1357 * javax/swing/JToggleButton.java: Likewise.
1358 * javax/swing/UIManager.java: Likewise.
1359 * javax/swing/border/TitledBorder.java: Likewise.
1360 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1361 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1362 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1363 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1364 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1365 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1366 * javax/swing/text/JTextComponent.java: Likewise.
1368 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1370 * java/net/DatagramPacket.java (setAddress): Removed check for
1373 2004-07-17 Michael Koch <konqueror@gmx.de>
1375 * java/net/DatagramSocket.java
1376 (getLocalAddress): Check if socket is bound or not.
1377 * java/net/Socket.java
1378 (getLocalAddrss): Check if socket is bound or not.
1379 (getPort): Return -1 when not connected. Dont check getImpl() for
1381 (setReuseAddress): Check if socket is closed.
1382 (isConnected): Check if getImpl() returns null.
1384 2004-07-17 Mark Wielaard <mark@klomp.org>
1386 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1387 on notifier object before calling notifyAll().
1389 2004-07-17 Michael Koch <konqueror@gmx.de>
1391 * gnu/java/nio/channels/FileChannelImpl.java
1392 (finalize): Added javadoc.
1394 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1396 * java/text/CollationElementIterator.java
1397 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1398 (setText): Use ArrayList instead of Vector.
1400 2004-07-17 Michael Koch <konqueror@gmx.de>
1402 * java/nio/ByteOrder.java
1403 (static): Removed. Not needed.
1404 Thanks to Patrick Reali for noticing.
1405 * java/nio/charset/CharsetDecoder.java
1406 (decode): Fix for classpath bug #9177: Reset state before flipping.
1408 2004-07-17 Michael Koch <konqueror@gmx.de>
1410 * java/security/Security.java: Fixed javadocs all over.
1412 2004-07-17 Michael Koch <konqueror@gmx.de>
1414 * gnu/java/awt/EmbeddedWindow.java
1416 (addNotify): Set peer via reflection.
1417 (setWindowPeer): Removed.
1418 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1419 * Makefile.am (nat_source_files):
1420 Removed gnu/java/awt/natEmbeddedWindow.cc.
1421 * Makefile.in: Regenerated.
1423 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1425 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1427 * configure: Regenerated.
1429 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1431 * configure.in: Use build_noncanonical rather than build_alias.
1432 * configure: Rebuild.
1434 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1435 by logic refactoring. Move default definition of NATIVE closer
1436 to first alternate definition.
1437 * configure: Regenerate.
1439 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1440 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1441 gcj/Makefile.in: Regenerate.
1442 * configure.in: Set ZIP and GCJH. Remove redundant condition
1443 in AM_CONDITIONAL(NATIVE,...)
1444 * configure: Regenerate.
1446 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1448 * configure.in: Use target_noncanonical rather than
1449 target_alias for forward-compatibility with autoconf 2.59.
1450 * configure: Regenerate.
1451 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1452 testsuite/Makefile.am: Substitute target_noncanonical.
1453 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1454 testsuite/Makefile.in: Regenerate.
1456 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1457 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1458 * acinclude.m4: Include acx.m4.
1459 * aclocal.m4: Regenerate.
1460 * configure: Regenerate.
1462 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1465 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1466 (decimalFormat): New static variable.
1468 (getTime): New. Override Date.getTime().
1469 (toString): Synchronize. Use decimalFormat to format nanos value
1470 correctly. Truncate extra zeros.
1471 (before): Compare getNanos() only if getTime() is equal.
1474 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1476 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1477 * configure.in: ...here.
1478 * aclocal.m4: Regenerate.
1479 * configure: Regenerate.
1481 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1482 * configure: Rebuilt with autoconf 2.13.
1483 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1484 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1486 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1489 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1491 * Makefile.in: Rebuilt.
1492 * testsuite/libjava.lang/LargeFile.java: New test case.
1493 * testsuite/libjava.lang/LargeFile.out: New file.
1495 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1497 * java/beans/EventHandler.java: Remove debugging statements.
1499 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1501 * java/beans/EventHandler.java: New file.
1502 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1503 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1504 testsuite/Makefile.in: Regenerate.
1506 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1508 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1509 flag to the gcj_setup.
1510 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1512 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1513 deprecation flag change. 58 XFAILS removed.
1515 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1517 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1518 -fno-use-divide-subroutine.
1519 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1520 (HANDLE_FPE): Define.
1521 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1522 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1523 (HANDLE_DIVIDE_OVERFLOW): Define.
1525 2004-07-14 Michael Koch <konqueror@gmx.de>
1526 Matthias Klose <doko@debian.org>
1528 * java/awt/im/InputContext.java: Initialize in, line.
1530 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1532 * interpret.cc (run): Correctly access libffi return values of
1533 integral smaller-than-int type; these are implicitly promoted.
1535 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1538 * interpret.cc (compile_mutex): New.
1539 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1540 (run): Lock compile_mutex before calling compile() if compilation is
1542 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1543 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1545 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1548 * include/jvm.h (_Jv_value): New union type.
1549 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1550 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1553 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1555 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1556 * gnu/awt/xlib/XOffScreenImage.java
1557 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1558 constructor argument. Add constructor using ImageProducer.
1559 (getSource): Implement.
1560 (imageComplete): New method.
1561 (setColorModel): New method.
1562 (setDimensions): New method.
1563 (setHints): New method.
1564 (setPixels): New method.
1565 (setProperties): New method.
1566 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1567 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1569 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1572 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1573 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1574 (finalizerReady): Now native.
1576 (runFinalizers): Removed.
1577 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1578 a primitive lock, and don't hold it while running the finalizers.
1579 (runFinalizers): Implement. Don't aquire any Java lock.
1580 (finalizerReady): Use lock primitives to signal finalizer thread.
1582 2004-07-11 Mark Wielaard <mark@klomp.org>
1584 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1585 * java/net/URLStreamHandler.java (parseURL): When url file part
1586 doesn't contain a '/' just ignore context.
1588 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1590 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1591 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1592 (MAKE_THROW_FRAME): Do not modify PSW address.
1593 (INIT_SEGV): Install SIGINFO-style signal handler.
1594 (INIT_FPE): Likewise.
1596 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1598 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1599 status. 21 xfail's removed, 1 added.
1601 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1603 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1605 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1607 * java/text/MessageFormat.java
1608 (formatInternal): Append "{n}" if argument n is unavailable.
1609 (format(Object, StringBuffer, FieldPosition)): This
1610 should be equivalent to format(Object[],
1611 StringBuffer, FieldPosition).
1613 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1615 * java.util.Calendar.java (cache): New private static field. Cached
1616 mappings of locales->calendar classes.
1617 (ctorArgTypes): New private static field. Singleton argument for
1618 calendar class constructor lookup.
1619 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1620 Optimize by bypassing reflection instantiation for the
1621 GregorianCalendar case.
1623 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1625 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1626 ResourceBundle.getBundle() calls.
1627 * java/util/GregorianCalendar.java: Likewise.
1628 * java/util/Currency.java: Likewise.
1629 * java/text/BreakIterator.java: Likewise.
1630 * java/text/Collator.java: Likewise.
1631 * java/text/DateFormat.java: Likewise.
1632 * java/text/DateFormatSymbols.java: Likewise.
1633 * java/text/DecimalFormatSymbols.java: Likewise.
1634 * java/text/NumberFormat.java: Likewise.
1635 * java/awt/Window.java: Likewise.
1637 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1639 * java/util/ResourceBundle.java (bundleCache): Renamed from
1640 resourceBundleCache. Update comments.
1641 (getObject): Don't catch MissingResourceException.
1642 (getBundle(String)): Remove 'final'. Use system classloader if
1643 getCallingClassLoader returned null.
1644 (getBundle(String, Locale)): Likewise.
1645 (BundleKey): New private class. HashMap key for bundle cache lookup.
1646 (lookupKey): New. Singleton instance of BundleKey.
1647 (nullEntry): New. Cache entry to represent failed lookups.
1648 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1649 caching strategy, no-allocation lookup, and new tryBundle methods.
1650 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1651 name using given classloader.
1652 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1653 baseName for given Locale and attempt to load bundle.
1655 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1657 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1658 illegal protected method calls.
1660 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1662 Fix or remove some bogus test cases.
1663 * testsuite/libjava.compile/pr10459_2.java: Removed.
1664 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1666 * testsuite/libjava.compile/inner_data.java: Test against its own
1669 2004-07-09 Michael Koch <konqueror@gmx.de>
1671 * scripts/unicode-muncher.pl: Updated to version 2.1
1672 from GNU classpath. Added some clarifications on where to find the
1673 needed files from www.unicode.org.
1674 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1675 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1676 Removed, these can directly be downloaded from www.unicode.org if
1678 * gnu/java/lang/CharData.java: Regenerated.
1679 * include/java-chartables.h: Regenerated.
1680 * Makefile.am (ordinary_java_source_files):
1681 Removed gnu/java/lang/CharData.java.
1682 * Makefile.in: Regenerated.
1684 2004-07-09 Michael Koch <konqueror@gmx.de>
1686 * java/security/AccessControlContext.java,
1687 java/security/SecureClassLoader.java:
1690 2004-07-09 Michael Koch <konqueror@gmx.de>
1692 * java/io/ObjectInputStream.java (readFields): Use long datatype
1693 when shifting byte values more then 24 bits left.
1695 2004-07-09 Michael Koch <konqueror@gmx.de>
1697 * java/util/zip/DeflaterOutputStream.java,
1698 java/util/zip/GZIPInputStream.java,
1699 java/util/zip/GZIPOutputStream.java,
1700 java/util/zip/InflaterInputStream.java:
1701 Reformatted. Added javadocs. Reordered all stuff.
1702 Renamed variables to be more clear.
1704 2004-07-09 Michael Koch <konqueror@gmx.de>
1706 * javax/imageio/IIOException.java,
1707 javax/imageio/event/IIOReadProgressListener.java,
1708 javax/imageio/event/IIOReadUpdateListener.java,
1709 javax/imageio/event/IIOReadWarningListener.java,
1710 javax/imageio/event/IIOWriteProgressListener.java,
1711 javax/imageio/event/IIOWriteWarningListener.java:
1713 * Makefile.am: Added new files.
1714 * Makefile.in: Regenerated.
1716 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1718 * java/text/RuleBasedCollator.java
1719 (mergeRules): Use ArrayList instead of Vector.
1720 (subParseString): likewise.
1721 (parseString): likewise.
1722 (buildCollationVector): likewise.
1723 (getCollationKey): likewise.
1725 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1727 * java/text/DateFormat.java (parse):
1728 Improved javadoc. Improved exception message.
1730 2004-07-09 Mark Wielaard <mark@klomp.org>
1732 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1733 interrupted() method to clear interupt flag of our Thread.
1735 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1737 * java/nio/Buffer.java,
1738 java/nio/ByteBuffer.java,
1739 java/nio/ByteBufferHelper.java,
1740 java/nio/ByteBufferImpl.java,
1741 java/nio/CharBuffer.java,
1742 java/nio/CharBufferImpl.java,
1743 java/nio/CharViewBufferImpl.java,
1744 java/nio/DirectByteBufferImpl.java,
1745 java/nio/DoubleBuffer.java,
1746 java/nio/DoubleBufferImpl.java,
1747 java/nio/DoubleViewBufferImpl.java,
1748 java/nio/FloatBuffer.java,
1749 java/nio/FloatBufferImpl.java,
1750 java/nio/FloatViewBufferImpl.java,
1751 java/nio/IntBuffer.java,
1752 java/nio/IntBufferImpl.java,
1753 java/nio/IntViewBufferImpl.java,
1754 java/nio/LongBuffer.java,
1755 java/nio/LongBufferImpl.java,
1756 java/nio/LongViewBufferImpl.java,
1757 java/nio/MappedByteBufferImpl.java,
1758 java/nio/ShortBuffer.java,
1759 java/nio/ShortBufferImpl.java,
1760 java/nio/ShortViewBufferImpl.java:
1761 Fixed javadocs all over. Improved input error
1764 * java/nio/Buffer.java
1765 (checkForUnderflow, checkForOverflow, checkIndex,
1766 checkIfReadOnly, checkArraySize): New helper methods
1769 * java/nio/ByteBufferHelper.java
1770 (checkRemainingForRead, checkRemainingForWrite,
1771 checkAvailableForRead, checkAvailableForWrite): Removed
1772 no longer needed methods.
1774 2004-07-09 Michael Koch <konqueror@gmx.de>
1776 * gnu/regexp/CharIndexedInputStream.java:
1777 Reordered imports to match classpath.
1779 2004-07-09 Michael Koch <konqueror@gmx.de>
1781 * gnu/java/awt/EmbeddedWindow.java:
1782 Load native library for setWindowPeer method.
1784 2004-07-08 Randolph Chung <tausq@debian.org>
1786 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
1787 * configure: Regenerate.
1788 * configure.host: Set can_unwind_signal for hppa*-linux.
1789 * include/pa-signal.h: New file.
1791 2004-07-07 Per Bothner <per@bothner.com>
1793 * Makefile.am: Add rules to build libgij from just gij.cc.
1795 * include/jvm.h (namespace jcj): Declare verbose_class_flag
1796 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
1797 (initializeClass): If verbose_class_flag, print message.
1798 * gij.cc (main): Handle -verbose:class flag.
1800 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
1802 * configure.host: Enable hash synchronization on Darwin.
1803 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
1804 ';', since this is a comment on Darwin.
1805 (compare_and_swap_release): Likewise.
1807 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
1809 * java/net/URLStreamHandler.java (parseURL): Canonicalize
1810 file portion of URL in addition to spec for file: protocol.
1812 2004-07-05 Anthony Green <green@redhat.com>
1814 * java/io/File.java (toURI): Merge from Classpath.
1816 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1818 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
1819 before passing to URL constructor. Rethrow any MalformedURLException
1820 as a RuntimeException. Catch MalformedURLException specifically, not
1823 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1825 * java/util/Locale.java (readObject): Intern strings read from object
1828 2004-07-04 Michael Koch <konqueror@gmx.de>
1830 * gnu/gcj/runtime/FirstThread.java,
1831 gnu/gcj/runtime/natFirstThread.cc: Removed.
1832 * gnu/java/lang/MainThread.java,
1833 gnu/java/lang/natMainThread.cc: New files.
1834 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
1835 * Makefile.am: Added new files and removed deleted ones.
1836 * Makefile.in: Regenerated.
1838 2004-07-03 Mark Wielaard <mark@klomp.org>
1839 Anthony Green <green@redhat.com>
1841 * java/net/URL.java (getFile): Clarify return value doc.
1842 (getPath): Return null if file is empty - not empty String.
1843 (set): Convert protocol to lower case before doing anything.
1844 Only change the protocol handler if it's different.
1846 2004-07-03 Anthony Green <green@redhat.com>
1848 * java/net/URL.java (URL): Convert protocol to lower case before
1849 doing anything, so we getURLStreamHandler() with the proper value.
1851 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
1853 * java/util/Locale.java (hashcode): Made transient.
1854 (hashCode): No longer synchronized.
1855 (equals): Remove comment.
1856 (writeObject): No longer synchronized. Implement using writeObject
1857 calls instead of tweaking hashCode field. Update doc.
1858 (readObject): Implement using readObject calls.
1860 2004-06-26 Geoffrey Keating <geoffk@apple.com>
1861 Andreas Tobler <a.tobler@schweiz.ch>
1863 * configure.host (powerpc-*-darwin*): New case, define
1865 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
1866 * configure: Regenerate.
1867 * include/darwin-signal.h: New.
1869 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
1871 * java/beans/Statement.java (doExecute): Fix formatting.
1873 2004-06-29 Per Bothner <per@bothner.com>
1875 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
1876 etc etc): Remove needless parenthesis, which causes __stdcall__
1877 attribute on MinGW to get ignored.
1879 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
1881 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
1883 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
1885 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
1887 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
1889 * java/beans/Expression.java: New file.
1890 * java/beans/Statement.java: New file.
1891 * Makefile.am: Added new files.
1892 * Makefile.in: Re-generate.
1894 2004-06-27 Mark Wielaard <mark@klomp.org>
1896 * java/io/FilePermission.java (usingPerms): Removed.
1897 (actionsString): Made final.
1898 (cachePerms): Renamed to checkPerms.
1899 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
1901 (FilePermission): Check arguments, call checkPerms().
1902 (equals): Remove cachePerms() call.
1903 (implies): Likewise.
1905 2004-06-27 Mark Wielaard <mark@klomp.org>
1907 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
1909 (sendRequest): Use new field in user-agent http agent.
1911 2004-06-27 Mark Wielaard <mark@klomp.org>
1913 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1914 when argument is null.
1916 2004-06-26 Mark Wielaard <mark@klomp.org>
1918 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1919 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
1921 (cancel_clicked): Likewise.
1923 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
1925 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1926 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
1927 can not calculate the right value.
1928 (dpi_changed_cb): Likewise. Mark *pspec as unused.
1930 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
1932 * testsuite/libjava.jacks/jacks.xfail: Remove
1933 15.9.1-qualified-concrete-20.
1935 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
1937 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
1938 encoding name to iconv.
1939 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
1941 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
1944 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
1945 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
1946 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
1948 2004-06-21 Andrew Haley <aph@redhat.com>
1950 * java/io/ObjectOutputStream.java: Add DEBUG statements
1952 (dumpElementln): New method.
1954 * java/io/ObjectInputStream.java
1955 (currentClassLoader): Make native.
1956 (callersClassLoader): New field.
1958 (readObject): ENDBLOCKDATA is generated if the class has a write
1959 method, not if it has a read method.
1960 (readObject): Save and restore this.currentObject and
1961 this.currentObjectStreamClass around calls to callReadMethod().
1962 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
1965 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
1967 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
1970 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
1972 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
1973 if desired, before the default class loader is initialised.
1974 Call INIT_SEGV only if HANDLE_SEGV is defined.
1976 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
1978 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
1979 directory only if it actually exists.
1981 2004-06-18 Graydon Hoare <graydon@redhat.com>
1983 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
1984 Fix up non-ansi comments.
1986 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
1988 * javax/swing/text/AbstractDocument.java: Adding missing import
1989 for javax.swing.event.EventListenerList.
1990 * javax/swing/text/DefaultCaret.java: Likewise.
1992 2004-06-17 Michael Koch <konqueror@gmx.de>
1994 * javax/swing/JToolBar.java
1996 (JToolBar): Use Component.setName(String) instead of doing it all
1998 * javax/swing/Timer.java
1999 (queueEvent): Added missing modifier.
2001 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2003 * Makefile.am: Added new file.
2004 * Makefile.in: Re-generate.
2005 * javax/swing/JMenu.java:
2006 (insertSeparator): Implemented.
2007 * javax/swing/JPopupMenu.java:
2008 (JPopupMenu.Separator): Implemented.
2009 * javax/swing/MenuSelectionManager.java:
2010 (processMouseEvent): Use java.awt.Component
2011 for event source instead of javax.swing.JComponent.
2012 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2013 New File. Implemented.
2015 2004-06-16 David Jee <djee@redhat.com>
2017 * java/awt/GridBagLayout.java
2018 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2019 Make sure pos_x and pos_y are never negative.
2021 2004-04-16 Andrew Overholt <overholt@redhat.com>
2023 * Makefile.am: Add new file.
2024 * Makefile.in: Re-generate.
2025 * javax/swing/JToolBar.java
2026 Partially implemented.
2027 * javax/swing/plaf/basic/BasicToolBarUI.java
2028 New file. Partially implemented.
2030 2004-06-16 Graydon Hoare <graydon@redhat.com>
2032 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2033 (setComposite): Accept AlphaComposite arguments.
2034 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2035 (createBufferedImage): Add new overloads.
2036 * gnu/java/awt/peer/gtk/GtkToolkit.java
2037 (createImage): Use GdkPixbufDecoder.createBufferedImage
2038 when useGraphics2D() is true.
2039 (getImage): Delegate to createImage.
2040 * javax/swing/JList.java
2042 (getFirstVisibleIndex):
2043 (getLastVisibleIndex):
2045 (ensureIndexIsVisible): New methods.
2046 * javax/swing/Timer.java: Reimplement.
2048 2004-06-16 Michael Koch <konqueror@gmx.de>
2050 * javax/swing/text/AbstractDocument.java
2051 (AbstracElement): Made public, implements java.io.Serializable.
2052 (AttributeContext): Made public.
2053 (BranchElement): Likewise.
2054 (Content): Likewise.
2055 (DefaultDocumentEvent): Made public, extends
2056 javax.swing.undo.CompoundEdit.
2057 (ElementEdit): Made public, extends
2058 javax.swing.undo.AbstractUndoableEdit.
2059 (LeafElement): Made public.
2060 (LeafElement.LeafElement): Made public.
2062 2004-06-16 Michael Koch <konqueror@gmx.de>
2064 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2065 methods (that were obviously never be intended to get included hi this
2066 class. Added some methods too.
2068 2004-06-16 Michael Koch <konqueror@gmx.de>
2070 * javax/swing/text/PlainDocument.java
2071 (serialVersionUID): New constant.
2072 (lineLimitAttribute): Likewise.
2073 (tabSizeAttribute): Likewise.
2074 (tabSize): New field.
2075 (PlainDocument): Made public.
2076 (PlainDocument): New constructor.
2078 2004-06-16 Michael Koch <konqueror@gmx.de>
2080 * javax/swing/text/AbstractDocument.java
2081 (insertString): Throws BadLocationException.
2082 * javax/swing/text/Document.java
2083 (insertString): Likewise.
2084 * javax/swing/text/JTextComponent.java:
2085 Javadocs and comments cleaned up.
2087 2004-06-16 Michael Koch <konqueror@gmx.de>
2089 * javax/swing/event/UndoableEditListener.java: Reformatted.
2090 * javax/swing/text/AbstractDocument.java
2091 (AbstractDocument): Implements java.io.Serializable.
2092 (doc_list): Removed.
2093 (undo_list): Removed.
2094 (AbstractElement.serialVerionUID): New field.
2095 (BranchElement.serialVerionUID): Likewise.
2096 (DefaultDocumentEvent.serialVerionUID): Likewise.
2097 (ElementEdit.serialVerionUID): Likewise.
2098 (LeafElement.serialVerionUID): Likewise.
2099 (serialVerionUID): Likewise.
2100 (BAD_LOCATION): New constant.
2101 (BidiElementName): Likewise.
2102 (ContentElementName): Likewise.
2103 (ParagraphElementName): Likewise.
2104 (SectionElementName): Likewise.
2105 (ElementNameAttribute): Likewise.
2106 (AbstractDocument): Made protected.
2107 (AbstractDocument): New construtor.
2108 (listenerList): New field.
2109 (fireChangedUpdate): Implemented.
2110 (fireInsertUpdate): Likewise.
2111 (fireRemoveUpdate): Likewise.
2112 (fireUndoableEditUpdate): Likewise.
2113 (getListeners): Likewise.
2114 (addDocumentListener): Likewise.
2115 (removeDocumentListener): Likewise.
2116 (addUndoableEditListener): Likewise.
2117 (removeUndoableEditListener): Likewise.
2118 (getDocumentListeners): New method.
2119 (getUndoableEditListeners): Likewise.
2120 (getAsynchronousLoadPriority): Made public.
2121 (getBidiRootElement): Likewise.
2122 (setAsynchronousLoadPriority): Likewise.
2123 (setDocumentProperties): Likewise.
2124 * javax/swing/text/BadLocationException.java
2125 (serialVerionUID): New field.
2126 * javax/swing/text/DefaultCaret.java
2127 (changeEvent): New field.
2128 (listenerList): Likewise.
2130 (addChangeListener): Reimplemented.
2131 (removeChangeListener): Likewise.
2132 (getListeners): New method.
2133 (getChangeListeners): Likwise.
2134 (getComponent): Likewise.
2135 * javax/swing/text/GapContent.java
2136 (GapContent): Implements java.io.Serializable.
2137 (serialVerionUID): New field.
2139 2004-06-16 Michael Koch <konqueror@gmx.de>
2141 * javax/swing/JTree.java
2142 (treeModel): New field.
2143 (JTree): New constructors, one existing one made public.
2144 (createTreeModel): New method.
2145 (addTreeExpansionListener): Likewise.
2146 (removeTreeExpansionListener): Likewise.
2147 (getTreeExpansionListeners): Likewise.
2148 (fireTreeCollapsed): Likewise.
2149 (fireTreeExpanded): Likewise.
2150 (addTreeSelectionListener): Likewise.
2151 (removeTreeSelectionListener): Likewise.
2152 (getTreeSelectionListeners): Likewise.
2153 (fireValueChanged): Likewise.
2154 (addTreeWillExpandListener): Likewise.
2155 (removeTreeWillExpandListener): Likewise.
2156 (getTreeWillExpandListeners): Likewise.
2157 (fireTreeWillCollapse): Likewise.
2158 (fireTreeWillExpand): Likewise.
2160 2004-06-16 Michael Koch <konqueror@gmx.de>
2162 * javax/swing/JTree.java: Reformatted.
2164 2004-06-16 Michael Koch <konqueror@gmx.de>
2166 * javax/swing/JTextArea.java: New file.
2167 * javax/swing/JTextField.java
2169 (notifyAction): New constant.
2170 (columns): New field.
2171 (JTextField): New constructors.
2172 (createDefaultModel): New method.
2173 (addActionListener): Reimplmemented.
2174 (removeActionListener): Reimplemented.
2175 (getActionListeners): New method.
2176 (fireActionPerformed): New method.
2177 (getColumns): New method.
2178 (setColumne): New method.
2179 * javax/swing/text/JTextComponent.java
2180 (AccessibleJTextComponent.serialVersionUID): New field.
2181 (serialVersionUID): Likewise.
2182 (DEFAULT_KEYMAP): Likewise.
2183 (FOCUS_ACCELERATOR_KEY): Likewise.
2184 (doc): Made private.
2185 (icon_gap): Likewise.
2188 (JTextComponent): Some constructors removed.
2189 (getScrollableTracksViewportHeight): New method.
2190 (getScrollableTracksViewportWidth): Likewise.
2191 * Makefile.am: Added javax/swing/JTextArea.java.
2192 * Makefile.in: Regenerated.
2194 2004-06-15 Graydon Hoare <graydon@redhat.com>
2196 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2197 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2198 * javax/swing/JViewport.java
2199 (getExtentSize): Return size rather than preferred size.
2200 (toViewCoordinates): New methods.
2201 (getViewSize): Return size rather than preferred size.
2202 (setViewSize): Note view size as set.
2203 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2204 * javax/swing/plaf/basic/BasicScrollBarUI.java
2205 (getPreferredSize): Don't redo layout.
2206 * javax/swing/plaf/basic/BasicViewportUI.java
2207 (paint): Translate image properly and eat exceptions.
2209 2004-06-15 Kim Ho <kho@redhat.com>
2211 * javax/swing/JTabbedPane.java
2212 (setComponent): Remove old component and
2214 (setSelectedIndex): Don't operate on the
2215 components if they're null. Don't set index
2216 on the model if the index is the same.
2217 (insertTab): Don't add or hide the component
2218 if it's null. Repaint the container.
2219 * javax/swing/plaf/basic/BasicLookAndFeel.java
2220 Change colors for TabbedPane.
2221 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2222 (mousePressed): Re-layout and paint the component.
2223 (layoutContainer): Don't set location on the view.
2224 (ScrollingViewport::paint): Remove.
2226 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2228 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2229 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2231 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2232 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2233 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2235 (drawLine): Call gdk_flush before leaving GDK critical region.
2236 (fillRect): Likewise.
2237 (drawRect): Likewise.
2238 (copyArea): Likewise.
2239 (copyPixmap): Likewise.
2240 (clearRect): Likewise.
2241 (drawArc): Likewise.
2242 (drawPolyline): Likewise.
2243 (drawPolygon): Likewise.
2244 (fillPolygon): Likewise.
2245 (fillArc): Likewise.
2246 (drawOval): Likewise.
2247 (fillOval): Likewise.
2249 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2251 (GdkFontMetrics): Add style argument to initState call.
2252 (stringWidth(String,int,int,String)): Add style parameter.
2253 (stringWidth(String)): Add style argument to stringWidth call.
2254 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2255 (initState): Set pango font style and weight based on AWT style
2256 parameter. Pass default GTK language to
2257 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2258 simply dividing by PANGO_SCALE.
2259 (stringWidth): Set pango font style and weight based on AWT style
2262 * java/awt/Button.java (next_button_number): New field.
2263 (paramString): Change output.
2264 (generateName): New method.
2265 (getUniqueLong): New method.
2267 2004-06-14 Kim Ho <kho@redhat.com>
2269 * javax/swing/JTabbedPane.java:
2270 (setComponentAt): Set the component, not
2272 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2273 (actionPerformed): Let deiconize catch exception.
2275 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2277 * javax/swing/JPopupMenu.java:
2278 (setVisible): Corrected location of a
2279 heavyweight popup menu.
2281 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2283 * javax/swing/MenuSelectionManager.java:
2284 Ran through jalopy to fix formatting style.
2286 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2288 * javax/swing/JLayeredPane.java:
2289 (remove): Revalidate and repaint layered pane after
2290 the component was removed.
2291 javax/swing/JMenu.java:
2292 (setVisible): Display popup menu at the user location,
2293 if one was set by the user.
2294 (setMenuLocation): Reimplemented. Fixed javadoc.
2295 * javax/swing/JMenuBar.java: Added javadoc.
2296 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2297 (MODEL_CHANGED_PROPERTY): New Property.
2298 (isSelected): Implemented.
2299 (setBorderPainted): Fire PropertyChangeEvent
2300 if paintBorder property changes.
2301 (setSelected): Implemented.
2302 (setSelectionModel): Implemented.
2303 * javax/swing/JPopupMenu.java: Added Javadoc
2304 (pack): Implemented.
2305 (setVisible): Reimplemented.
2306 (show): Fixed location.
2307 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2308 Container instead of JPanel.
2309 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2310 (clearSelectedPath): Reimplemented to clear selectedPath
2312 (processMouseEvent): Reimplemented.
2313 (setSelectedPath): Fire stateChange event indicating that
2314 selected menu path has changed.
2315 (getPath): Change to use ArrayList instead of Vector.
2316 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2317 (installUI): call installKeyboardActions().
2318 (uninstallUI): call uninstallKeyboardActions().
2320 2004-06-13 Michael Koch <konqueror@gmx.de>
2322 * javax/swing/text/DefaultCaret.java,
2323 javax/swing/text/BadLocationException.java:
2326 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2328 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2329 DEFAULT_COLS): New variables.
2330 (create): Don't allow 0 rows or 0 columns. Instead, set the
2331 values to DEFAULT_ROWS or DEFAULT_COLS.
2332 (getMinimumSize): Likewise.
2333 (getPreferredSize): Likewise.
2334 (minimumSize): Likewise.
2335 (preferredSize): Likewise.
2336 (create): Set peer's editable state.
2337 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2338 zero. Update javadocs.
2339 (TextArea(String)): Likewise.
2340 (TextArea(int,int)): Fix javadocs.
2341 (TextArea(String,int,int,int)): Only throw exception if one of
2342 rows or columns is zero. Fix javadocs.
2344 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2346 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2347 addition to Components.
2349 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2350 wasn't consumed by normal processing, send it to the parent
2353 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2354 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2357 2004-06-11 David Jee <djee@redhat.com>
2359 * java/awt/MediaTracker.java
2360 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2361 (addImage(Image,int,int,int)): Likewise.
2363 2004-06-11 Michael Koch <konqueror@gmx.de>
2365 * javax/swing/text/AbstractDocument.java,
2366 javax/swing/text/Document.java,
2367 javax/swing/text/GapContent.java,
2368 javax/swing/text/JTextComponent.java,
2369 javax/swing/text/PlainDocument.java:
2372 2004-06-11 Michael Koch <konqueror@gmx.de>
2374 * javax/swing/JRootPane.java
2375 (AccessibleJRootPane.serialVersionUID): New field.
2376 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2377 (AccessibleJRootPane.getAccessibleRole): New method.
2378 (RootLayout): Implements Serializable.
2379 (RootLayout.serialVersionUID): New field.
2380 (RootLayout.RootLayout): New constructor.
2381 (setJMenuBar): Made public.
2382 (getJMenuBar): Likewise.
2383 (JRootPane): Likewise.
2384 (createContentPane): Likewise.
2385 (createGlassPane): Likewise.
2386 (createLayeredPane): Likewise.
2388 2004-06-11 Michael Koch <konqueror@gmx.de>
2390 * javax/swing/SwingUtilities.java
2391 (isLeftMouseButton): Fixed javadoc.
2392 (isMiddleMouseButton): Likewise.
2393 (isRightMouseButton): Likewise.
2395 2004-06-11 Michael Koch <konqueror@gmx.de>
2397 * javax/swing/JScrollPane.java
2398 (serialVersionUID): New field.
2399 (columnHeader): Made protected.
2400 (rowHeader): Likewise.
2401 (lowerLeft): Likewise.
2402 (lowerRight): Likewise.
2403 (upperLeft): Likewise.
2404 (upperRight): Likewise.
2405 (horizontalScrollBar): Likewise.
2406 (horizontalScrollBarPolicy): Likewise.
2407 (verticalScrollBar): Likewise.
2408 (verticalScrollBarPolicy): Likewise.
2409 (viewport): Likewise.
2411 2004-06-11 Michael Koch <konqueror@gmx.de>
2413 * javax/swing/LookAndFeel.java: Fixed javadocs.
2415 2004-06-11 Michael Koch <konqueror@gmx.de>
2417 * javax/swing/JEditorPane.java: Fixed javadocs.
2418 (JEditorPane): Removed redundant call to to this().
2419 (fireHyperlinkUpdate): Implemented.
2421 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2423 * javax/swing/JMenu.java: Fixed file name
2424 in the file comment.
2426 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2428 * javax/swing/JMenu.java: Added javadoc.
2429 (JMenu): Added MenuChangeListener to listen to
2430 ChangeEvents occuring in menu's model.
2431 (insert): Throw IllegalArgumentException if
2432 index is less than 0
2433 (setSelected): Reimplement.
2434 (setPopupMenuVisible): Call menu's model isEnabled()
2435 (setDelay): Throw IllegalArgumentException if
2436 given amount of delay is less than 0.
2437 (createActionComponent): Implemented.
2438 (createActionChangeListener): Implemented.
2439 (addSeparator): Implemented.
2440 (getItem): Throw IllegalArgumentException if index is
2442 (getItemCount): Implemented.
2443 (fireMenuSelected): Changed to use menuEvent.
2444 (fireMenuDeselected): Likewise.
2445 (fireMenuCanceled): Likewise.
2446 (setAccelerator): Changed to throw an error if this
2448 (doClick): Implemented.
2449 (JMenu.ActionChangedListener): New inner class to handle
2450 PropertyChangeEvents occuring in the actions associated with menu.
2451 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2452 (BasicMenuUI): Added PropertyChangeListener to the menu.
2453 (createChangeListener): Implemented.
2454 (createMenuDragMouseListener): Likewise.
2455 (createMenuKeyListener): Likewise.
2456 (createPropertyChangeListener): Likewise.
2457 (uninstallListeners): Likewise.
2458 (BasicMenuUI.MouseInputHandler): Reimplemented.
2459 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2460 (BasicMenuUI.ChangeHandler): Likewise.
2461 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2462 (BasicMenuUI.MenuKeyHandler): Likewise.
2464 2004-06-10 David Jee <djee@redhat.com>
2466 * java/awt/MediaTracker.java
2467 (imageUpdate): Only do notifyAll() if the image is complete.
2469 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2471 * javax/swing/JApplet.java:
2472 (getJMenuBar): Made public.
2473 (setJMenuBar): Likewise.
2474 * javax/swing/JFrame.java:
2475 (getJMenuBar): Made public.
2476 (setJMenuBar): Likewise.
2477 * javax/swing/JWindow.java:
2478 (getJMenuBar): Removed.
2479 (setJMenuBar): Removed.
2481 2004-06-10 Michael Koch <konqueror@gmx.de>
2483 * javax/swing/JEditorPane.java
2484 (createEditorKitForContentType): Fixed visibility.
2485 (fireHyperlinkUpdate): Likewise.
2486 (getContentType): Likewise.
2487 (getEditorKit): Likewise.
2488 (getEditorKitForContentType): Likewise.
2489 (getPage): Likewise.
2491 (registerEditorKitForContentTyoe): Likewise.
2492 (replaceSelection): Likewise.
2493 (setContentType): Likewise.
2494 (setEditorKit): Likewise.
2495 (setPage): Likewise.
2497 2004-06-10 Michael Koch <konqueror@gmx.de>
2499 * javax/swing/Timer.java
2500 (Timer): New constructor.
2501 * javax/swing/plaf/basic/BasicProgressBarUI.java
2502 (animationTimer): Don't initialize at construction.
2503 (startAnimationTimer): Added since tag.
2504 (stopAnimationTimer): Likewise.
2505 (installUI): Use new Timer constructor.
2506 * javax/swing/plaf/basic/BasicScrollBarUI.java
2507 (installUI): Likewise.
2508 * javax/swing/plaf/basic/BasicSliderUI.java
2509 (installUI): Likewise.
2511 2004-06-10 Michael Koch <konqueror@gmx.de>
2513 * javax/swing/ButtonGroup.java
2514 (serialVersionUID): Made private.
2515 (buttons): Renamed from v, added javadoc.
2516 (sel): Added javadoc.
2517 (ButtonGroup): Likewise.
2520 (getElements): Likewise.
2521 (getSelection): Likewise.
2522 (setSelected): Likewise.
2523 (isSelected): Likewise.
2524 (getButtonCount): Likewise.
2526 2004-06-10 Michael Koch <konqueror@gmx.de>
2528 * javax/swing/ButtonGroup.java,
2529 javax/swing/ImageIcon.java,
2530 javax/swing/JEditorPane.java,
2531 javax/swing/JRootPane.java,
2532 javax/swing/JTextField.java,
2533 javax/swing/LookAndFeel.java,
2534 javax/swing/plaf/basic/BasicTextUI.java:
2537 2004-06-10 Michael Koch <konqueror@gmx.de>
2539 * javax/swing/text/Style.java: Added javadocs.
2541 2004-06-10 Michael Koch <konqueror@gmx.de>
2543 * javax/swing/JComponent.java
2544 (fireVetoableChange): Removed redundant cast.
2545 * javax/swing/JLabel.java
2546 (getDisabledIcon): Save icon for next call.
2548 2004-06-10 Michael Koch <konqueror@gmx.de>
2550 * javax/swing/KeyStroke.java
2551 (getKeyStroke(char,boolean)): Marked deprecated.
2553 2004-06-10 Michael Koch <konqueror@gmx.de>
2555 * javax/swing/DefaultCellEditor.java,
2556 javax/swing/GrayFilter.java,
2557 javax/swing/event/DocumentEvent.java,
2558 javax/swing/text/JTextComponent.java,
2559 javax/swing/text/MutableAttributeSet.java:
2562 2004-06-10 Michael Koch <konqueror@gmx.de>
2564 * javax/swing/plaf/BorderUIResource.java:
2565 Added serialVersionUID all over.
2567 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2569 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2571 2004-06-10 Michael Koch <konqueror@gmx.de>
2573 * javax/swing/table/DefaultTableCellRenderer.java
2574 (noFocusBorder): Initialize directly.
2576 2004-06-10 Michael Koch <konqueror@gmx.de>
2578 * javax/swing/plaf/basic/BasicArrowButton.java
2579 (setDirection): Use method argument.
2581 2004-06-10 Michael Koch <konqueror@gmx.de>
2583 * javax/swing/plaf/BorderUIResource.java,
2584 javax/swing/plaf/ComponentUI.java,
2585 javax/swing/undo/CompoundEdit.java,
2586 javax/swing/undo/StateEdit.java:
2587 Fixed javadocs all over.
2589 2004-06-10 Michael Koch <konqueror@gmx.de>
2591 * javax/swing/DefaultButtonModel.java
2592 (ARMED): Made public final, fixed value.
2593 (ENABLED): Likewise.
2594 (PRESSED): Likewise.
2595 (ROLLOVER): Likewise.
2596 (SELECTED): Likewise.
2597 (stateMask): Initialize directly.
2598 (listenerList): Likewise.
2599 (mnemonic): Likewise.
2600 (fireStateChanged): Removed argument, use changeEvent as event.
2601 All places where this method is called are fixed too.
2602 (getActionCommant): Fixed javadoc.
2603 (setGroup): Fixed javadoc.
2604 (getGroup): New method.
2606 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2608 * javax/swing/AbstractButton.java
2609 (AbstractButton): Use init() to initialize the button.
2610 (init): New Method. Initializes AbstractButton.
2611 * javax/swing/JMenuItem.java: Documented.
2612 (JMenuItem): Reimplemented.
2613 (init): Implemented.
2614 (setEnabled): Changed to call super.setEnabled()
2615 (processMouseEvent): Reimplemented.
2616 (fireMenuKeyPressed): Implemented.
2617 (fireMenuKeyReleased): Implemented.
2618 (fireMenuKeyTyped): Implemented.
2619 (menuSelectionChanged): disarm the model if the menu item was
2621 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2622 (getPath): Change to use ArrayList instead of Vector.
2623 (getPreferredSize): Renamed variable.
2624 (paintMenuItem): Paint margin area of menu item.
2625 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2626 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2627 menu item's bounds before clearing the selection.
2629 2004-06-09 David Jee <djee@redhat.com>
2631 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2632 (GtkTextComponentPeer): Set caret position to 0.
2633 * java/awt/TextComponent.java
2634 (setText): Set caret position to 0.
2635 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2636 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2637 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2638 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2640 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2641 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2644 2004-06-09 Kim Ho <kho@redhat.com>
2646 * Makefile.am: New files
2647 * Makefile.in: Regenerated
2648 * java/awt/Container.java
2649 (getComponentAt): Removed.
2650 * javax/swing/AbstractAction.java
2651 (ENABLED_PROPERTY): New property.
2652 (putValue): Fire PropertyChangeEvents.
2653 (setEnabled): ditto.
2654 (firePropertyChange): Javadoc and implement
2656 * javax/swing/AbstractButton.java
2657 (setAction): Don't create PropertyChangeListener
2658 if new Action is null.
2659 (setIcon): Don't set icon till after comparing
2661 (configurePropertiesFromAction): Check mnemonic
2662 key before calling intValue().
2663 (createActionPropertyChangeListener): Check
2664 properties rather than bulk change.
2665 * javax/swing/DefaultDesktopManager.java:
2667 * javax/swing/DesktopManager.java:
2669 * javax/swing/JComponent.java
2670 (fireVetoableChange): Implement.
2671 (paintImmediately): Use root component.
2672 * javax/swing/JDesktopPane.java: Implement
2673 * javax/swing/JInternalFrame.java: Implement
2674 * javax/swing/JLabel.java
2675 (getDisabledIcon): Return grayscaled icon if
2676 no disabled icon specified.
2677 * javax/swing/JMenuBar.java
2678 (getComponentAtIndex): Use getComponent
2679 * javax/swing/JOptionPane.java
2680 (getDesktopPaneForComponent): Use SwingUtilities'
2682 (getFrameForComponent): ditto.
2683 * javax/swing/JSplitPane.java
2684 (remove): Use getComponent.
2685 * javax/swing/SwingUtilities.java
2686 (convertPoint): Implement.
2687 * javax/swing/plaf/basic/BasicButtonUI.java
2688 (paintButtonNormal): Check opaqueness before
2690 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2692 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2694 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2696 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2698 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2699 Change InternalFrame and Desktop colors.
2701 2004-06-09 David Jee <djee@redhat.com>
2703 * java/awt/Container.java
2704 (remove): Do not set component to invisible.
2706 2004-06-09 Michael Koch <konqueror@gmx.de>
2708 * javax/swing/tree/DefaultMutableTreeNode.java
2709 (getLeafCount): Renamed enum to e.
2711 2004-06-09 Michael Koch <konqueror@gmx.de>
2713 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2714 (positionForMouseEvent): Removed redundant semicolon.
2715 (continueDrag): Use method arguments.
2717 2004-06-09 Michael Koch <konqueror@gmx.de>
2719 * javax/swing/border/TitledBorder.java,
2720 javax/swing/filechooser/FileSystemView.java,
2721 javax/swing/plaf/basic/BasicButtonListener.java,
2722 javax/swing/plaf/basic/BasicGraphicsUtils.java,
2723 javax/swing/plaf/basic/BasicLabelUI.java,
2724 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2725 javax/swing/plaf/basic/BasicScrollBarUI.java,
2726 javax/swing/plaf/basic/BasicScrollPaneUI.java,
2727 javax/swing/plaf/basic/BasicSliderUI.java,
2728 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2729 javax/swing/plaf/basic/BasicToggleButtonUI.java,
2730 javax/swing/table/JTableHeader.java,
2731 javax/swing/text/AbstractDocument.java,
2732 javax/swing/text/DefaultCaret.java,
2733 javax/swing/text/StyledEditorKit.java,
2734 javax/swing/tree/DefaultTreeCellEditor.java:
2735 Reworked import statements.
2737 2004-06-08 Graydon Hoare <graydon@redhat.com>
2739 * javax/swing/Box.java: Temporarily comment out code
2740 broken due to visibility bug.
2742 2004-06-09 Michael Koch <konqueror@gmx.de>
2744 * javax/swing/ImageIcon.java
2745 (ImageIcon): Added missing constructor.
2747 2004-06-08 Michael Koch <konqueror@gmx.de>
2749 * javax/swing/JToggleButton.java
2750 (JToggleButton): New constructor.
2751 (getAccessibleContext): Moved documentation into javadoc.
2752 (getUIClassID): Likewise.
2754 2004-06-08 Michael Koch <konqueror@gmx.de>
2756 * javax/swing/AbstractButton.java
2757 (getDisabledIcon): Create disabled icon if none exists yet.
2759 2004-06-08 Michael Koch <konqueror@gmx.de>
2761 * javax/swing/plaf/basic/BasicLookAndFeel.java
2762 (initClassDefaults): Added FormattedTextFieldUI.
2763 (loadResourceBundle): Renamed enum to e.
2765 2004-06-08 Michael Koch <konqueror@gmx.de>
2767 * javax/swing/plaf/basic/BasicButtonUI.java
2768 (paintIcon): Simplified.
2769 (paintText): Paint disabled button correctly.
2771 2004-06-08 Michael Koch <konqueror@gmx.de>
2773 * javax/swing/JComponent.java
2774 (createToolTip): Use official JToolTip API.
2776 2004-06-08 Michael Koch <konqueror@gmx.de>
2778 * javax/swing/JToolTip.java
2779 (JToolTip): No arguments in API.
2780 (setTipText): New method.
2782 2004-06-08 Michael Koch <konqueror@gmx.de>
2784 * javax/swing/SwingUtilities.java
2785 (isLeftMouseButton): New method.
2786 (isMiddleMouseButton): New method.
2787 (isRightMouseButton): New method.
2789 2004-06-08 Michael Koch <konqueror@gmx.de>
2791 * javax/swing/AbstractButton.java,
2792 javax/swing/CellRendererPane.java,
2793 javax/swing/JCheckBoxMenuItem.java,
2794 javax/swing/JColorChooser.java,
2795 javax/swing/JComboBox.java,
2796 javax/swing/JComponent.java,
2797 javax/swing/JDesktopPane.java,
2798 javax/swing/JFileChooser.java,
2799 javax/swing/JMenu.java,
2800 javax/swing/JMenuItem.java,
2801 javax/swing/JOptionPane.java,
2802 javax/swing/JPasswordField.java,
2803 javax/swing/JPopupMenu.java,
2804 javax/swing/JProgressBar.java,
2805 javax/swing/JRadioButtonMenuItem.java,
2806 javax/swing/JScrollBar.java,
2807 javax/swing/JSeparator.java,
2808 javax/swing/JSlider.java,
2809 javax/swing/JSplitPane.java,
2810 javax/swing/JTabbedPane.java,
2811 javax/swing/JTextField.java,
2812 javax/swing/JToolBar.java,
2813 javax/swing/text/JTextComponent.java:
2814 Fixed all constructors of accessibility classes.
2816 2004-06-08 Michael Koch <konqueror@gmx.de>
2818 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
2821 2004-06-08 Michael Koch <konqueror@gmx.de>
2823 * javax/swing/Box.java
2824 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
2825 (AccessibleBoxFiller.serialVersionUID): New member variable.
2826 * javax/swing/DefaultButtonModel.java
2827 (stateMask): Made protected.
2828 (listenerList): Likewise.
2829 (changeEvent): Likewise.
2831 (mnemonic): Likewise.
2832 (actionCommand): Likewise.
2833 (getListeners): New method.
2834 (getActionListeners): New method.
2835 (getItemListeners): New method.
2836 (getChangeListeners): New method.
2837 (fireItemStateChanged): Simplified.
2838 (fireActionPerformed): Simplified.
2839 (fireStateChanged): Simplified.
2840 * javax/swing/JFrame.java
2841 (JFrame): Implements WindowContants.
2842 (HIDE_ON_CLOSE): Removed.
2843 (EXIT_ON_CLOSE): Removed.
2844 (DISPOSE_ON_CLOSE): Removed.
2845 (DO_NOTHING_ON_CLOSE): Removed.
2846 (processWindowEvent): Exit with code 0.
2847 (setDefaultCloseOperation): Do security check before setting value.
2848 * javax/swing/JOptionPane.java
2849 (message): Initialize only in constructor.
2850 * javax/swing/JToolTip.java: Removed unused imports.
2851 * javax/swing/JViewport.java
2852 (serialVersionUID): New member variable.
2853 (SIMPLE_SCROLL_MODE): Made final, fixed value.
2854 (BLIT_SCROLL_MODE): Likewise.
2855 (BACKINGSTORE_SCROLL_MODE): Likewise.
2856 (scrollUnderway): Made protected.
2857 (isViewSizeSet): Likewise.
2858 * javax/swing/ListModel.java: Fixed javadoc.
2859 * javax/swing/Popup.java: Likewise.
2860 * javax/swing/RepaintManager.java
2861 (paintDirtyRegions): Don't use internal classes of
2862 java.util.AbstractMap.
2863 * javax/swing/ScrollPaneConstants.java: Reindented.
2864 * javax/swing/ScrollPaneLayout.java
2865 (viewport): Made protected.
2866 (verticalScrollBar): Made protected, renamed to vsb.
2867 (horizontalScrollBar): Made protected, renamed to hsb.
2868 (rowHeader): Made protected, renamed to rowHead.
2869 (columnHeader): Made protected, renamed to colHead.
2870 (lowerLeft): Made protected.
2871 (lowerRight): Made protected.
2872 (upperLeft): Made protected.
2873 (upperRight): Made protected.
2874 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
2875 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
2877 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
2879 * java/awt/MediaTracker.java (imageUpdate): Only set status to
2880 LOADING if flags has SOMEBITS set.
2882 2004-06-07 Michael Koch <konqueror@gmx.de>
2884 * javax/swing/AbstractButton.java: Reorganized imports.
2885 * javax/swing/ActionMap.java: Likewise.
2886 * javax/swing/DefaultButtonModel.java: Likewise.
2887 * javax/swing/DefaultListModel.java: Likewise.
2888 * javax/swing/ImageIcon.java: Likewise.
2889 (serialVersionUID): New member variable.
2890 * javax/swing/JComboBox.java: Reorganized imports.
2891 * javax/swing/JComponent.java: Likewise.
2892 (ui): Made protected.
2893 (listenerList): Made protected.
2894 (TOOL_TIP_TEXT_KEY): New constant.
2895 (scrollRectToVisible): Removed redundant null check.
2896 * javax/swing/JFrame.java: Reorganized imports.
2897 * javax/swing/JInternalFrame.java: Reorganized imports.
2898 * javax/swing/JProgressBar.java: Likewise.
2899 * javax/swing/JRootPane.java: Likewise.
2900 * javax/swing/JScrollBar.java: Likewise.
2901 * javax/swing/JSeparator.java: Likewise.
2902 * javax/swing/JSlider.java: Likewise.
2903 * javax/swing/JTabbedPane.java: Likewise.
2904 * javax/swing/JTextField.java: Likewise.
2905 * javax/swing/JToolBar.java: Likewise.
2906 * javax/swing/JTree.java: Likewise.
2907 * javax/swing/JViewport.java: Likewise.
2908 * javax/swing/JWindow.java: Likewise.
2909 * javax/swing/KeyStroke.java: Likewise.
2910 * javax/swing/LookAndFeel.java: Likewise.
2911 * javax/swing/MenuSelectionManager.java: Likewise.
2912 * javax/swing/SwingUtilities.java: Likewise.
2913 * javax/swing/Timer.java: Likewise.
2914 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
2915 * javax/swing/JList.java
2916 (HORIZONTAL_WRAP): Made final, fixed value.
2917 (VERTICAL): Likewise.
2918 (VERTICAL_WRAP): Likewise.
2920 2004-06-07 Michael Koch <konqueror@gmx.de>
2922 * javax/swing/AbstractButton.java
2923 (serialVersionUID): New member variable.
2924 (AccessibleAbstractButton.serialVersionUID): Likewise.
2925 (AbstractButton): Made public.
2926 * javax/swing/Box.java
2927 (AccessibleBox.serialVersionUID): New member variable.
2928 (Filler.serialVersionUID): Likewise.
2929 * javax/swing/DefaultListSelectionModel.java
2930 (serialVersionUID): Likewise.
2931 * javax/swing/JApplet.java
2932 (serialVersionUID): Likewise.
2933 * javax/swing/JCheckBox.java
2934 (serialVersionUID): Likewise.
2935 * javax/swing/JCheckBoxMenuItem.java
2936 (serialVersionUID): Likewise.
2937 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
2938 * javax/swing/JColorChooser.java
2939 (serialVersionUID): Likewise.
2940 (AccessibleJColorChooser.serialVersionUID): Likewise.
2941 * javax/swing/JComponent.java
2942 (serialVersionUID): Made private.
2943 (AccessibleJComponent.serialVersionUID): New member variable.
2944 * javax/swing/JDesktopPane.java
2945 (serialVersionUID): Likewise.
2946 * javax/swing/JDialog.java
2947 (serialVersionUID): Likewise.
2948 * javax/swing/JFormattedTextField.java
2949 (serialVersionUID): Fixed value.
2950 * javax/swing/JFrame.java
2951 (serialVersionUID): New member variable.
2952 (getDefaultCloseOpertation): Made public.
2953 * javax/swing/JLayeredPane.java
2954 (serialVersionUID): Likewise.
2955 (LAYER_PROPERTY): Made final, fixed value.
2956 (JLayeredPane): Made public.
2957 * javax/swing/JMenu.java
2958 (AccessibleJMenu.serialVersionUID): New member variable.
2959 (WinListener.serialVersionUID): Likewise.
2960 * javax/swing/JMenuBar.java
2961 (serialVersionUID): Likewise.
2962 (getComponentAtIndex): Added @deprecated tag.
2963 * javax/swing/JMenuItem.java
2964 (serialVersionUID): New member variable.
2965 (AccessibleJMenuItem.serialVersionUID): Likewise.
2966 * javax/swing/JOptionPane.java
2967 (serialVersionUID): Likewise.
2968 (AccessibleJOptionPane.serialVersionUID): Likewise.
2969 * javax/swing/JPopupMenu.java
2970 (serialVersionUID): Likewise.
2971 (AccessibleJPopupMenu.serialVersionUID): Likewise.
2972 (getPopupMenuListeners): New method.
2973 (getComponentAtIndex): Added @deprecated tag.
2974 * javax/swing/JProgressBar.java
2975 (serialVersionUID): New member variable.
2976 (AccessibleJProgressBar.serialVersionUID): Likewise.
2977 * javax/swing/JRadioButton.java
2978 (serialVersionUID): Likewise.
2979 * javax/swing/JRadioButtonMenuItem.java
2980 (serialVersionUID): Likewise.
2981 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
2982 * javax/swing/JScrollBar.java
2983 (serialVersionUID): Likewise.
2984 (AccessibleJScrollBar.serialVersionUID): Likewise.
2985 * javax/swing/JSeparator.java
2986 (serialVersionUID): Likewise.
2987 (AccessibleJSeparator.serialVersionUID): Likewise.
2988 * javax/swing/JSlider.java: Fixed javadocs.
2989 (AccessibleJSlider.serialVersionUID): New member variable.
2990 * javax/swing/JSplitPane.java: Added copyright statement.
2991 (serialVersionUID): New member variable.
2992 (AccessibleJSplitPane.serialVersionUID): Likewise.
2993 * javax/swing/JTabbedPane.java
2994 (serialVersionUID): Likewise.
2995 (AccessibleJTabbedPane.serialVersionUID): Likewise.
2996 (ModelListener.serialVersionUID): Likewise.
2997 (ModelListener.ModelListener): New constructor.
2998 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
2999 (WRAP_TAB_LAYOUT): Likewise.
3000 * javax/swing/JTable.java
3001 (serialVersionUID): New member variable.
3002 * javax/swing/JToggleButton.java
3003 (serialVersionUID): Likewise.
3004 (ToggleButtonModel): Made static.
3005 (ToggleButtonModel.serialVersionUID): New member variable.
3006 * javax/swing/JToolTip.java
3007 (serialVersionUID): Likewise.
3008 * javax/swing/JTree.java
3009 (serialVersionUID): Likewise.
3010 * javax/swing/JWindow.java
3011 (serialVersionUID): Likewise.
3012 * javax/swing/Timer.java
3013 (serialVersionUID): Likewise.
3015 2004-06-06 Michael Koch <konqueror@gmx.de>
3017 * javax/swing/SwingConstants.java
3018 (NEXT): New constant.
3019 (PREVIOUS): Likewise.
3020 * javax/swing/UIManager.java
3021 (LookAndFeel): Made public.
3022 (LookAndFeel.getClassName): Likewise.
3023 (LookAndFeel.getName): Likewise.
3025 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3027 * javax/swing/JCheckBoxMenuItem.java:
3029 * javax/swing/JMenu.java: Likewise.
3030 * javax/swing/JMenuBar.java: Likewise.
3031 * javax/swing/JMenuItem.java: Likewise.
3032 * javax/swing/JPopupMenu.java: Likewise.
3033 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3034 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3035 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3036 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3037 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3038 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3039 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3041 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3043 * javax/swing/plaf/basic/BasicMenuUI.java:
3044 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3045 Call getPath() from super class instead.
3047 2004-05-31 David Jee <djee@redhat.com>
3049 * java/awt/Container.java
3050 (remove): Set component visibility to false after removing it.
3052 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3054 * java/awt/Component.java (getForeground): Return SystemColor if
3056 (getBackground): Likewise.
3058 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3059 (item_highlighted): New function.
3060 (connectSignals): Set item_highlighted as list's select
3063 * java/applet/Applet.java: Revert changes from 2004-04-29,
3064 2004-03-15 and 2004-03-14.
3066 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3067 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3070 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3071 "Dialog" as the default font.
3072 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3074 * java/awt/Component.java (getFont): Return "Dialog" font by
3076 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3077 Multiply size argument to pango_font_description_set_size by the
3078 DPI conversion factor rather than by PANGO_SCALE.
3079 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3080 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3081 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3082 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3083 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3084 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3085 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3086 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3087 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3088 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3089 Divide baseline y coordinate by DPI conversion factor rather
3090 than by PANGO_SCALE.
3091 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3092 (area_prepared): Fix typo.
3093 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3094 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3095 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3096 (dpi_conversion_factor): New global variable.
3097 (init_dpi_conversion_factor): New function to calculate and
3098 track DPI conversion factor.
3099 (dpi_changed_cb): New callback.
3100 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3102 2004-05-27 David Jee <djee@redhat.com>
3104 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3105 (getGraphics): Return a new GdkGraphics instance.
3106 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3107 (getGraphics): Call super.getGraphics().
3109 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3111 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3112 (setNativeBounds): Clamp width and height values to >= 0.
3114 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3115 (find_fg_color_widget): Handle GtkOptionMenu specially.
3117 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3118 (pre_event_handler): Only post configure events to visible
3121 2004-05-26 David Jee <djee@redhat.com>
3123 * java/awt/BorderLayout.java
3124 (layoutContainer): Fix size calculations.
3126 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3128 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3129 (window_wm_protocols_filter): Remove function.
3130 (create): Remove filter that removes WM_TAKE_FOCUS client
3133 2004-06-17 Anthony Green <green@redhat.com>
3135 * java/util/zip/ZipFile.java (getInputStream): Return null if
3138 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3139 directory contents to the class path.
3141 2004-06-15 Andrew Haley <aph@redhat.com>
3143 * java/lang/natSystem.cc (getenv0): Don't assume environment
3144 variable is Latin 1 coded.
3146 2004-06-14 Andreas Jaeger <aj@suse.de>
3148 * configure.in: Support --enable-version-specific-runtime-libs.
3149 * configure: Regenerated.
3151 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3153 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3154 to pass ClassLoader argument.
3155 * java/util/GregorianCalendar.java: Likewise.
3156 * java/util/Currency.java: Likewise.
3157 * java/text/BreakIterator.java: Likewise.
3158 * java/text/Collator.java: Likewise.
3159 * java/text/DateFormat.java: Likewise.
3160 * java/text/DateFormatSymbols.java: Likewise.
3161 * java/text/DecimalFormatSymbols.java: Likewise.
3162 * java/text/NumberFormat.java: Likewise.
3163 * java/awt/Window.java: Likewise.
3165 2004-06-14 Andrew Haley <aph@redhat.com>
3167 * java/lang/System.java: (getenv0): New method.
3168 (getenv): Add security check. Do the right thing.
3169 * java/lang/natSystem.cc (getenv0): New method.
3171 2004-06-12 Mark Wielaard <mark@klomp.org>
3173 * javax/swing/RepaintManager.java
3174 (paintDirtyRegions): Use entrySet(), not values().
3176 2004-06-10 Mark Wielaard <mark@klomp.org>
3178 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3181 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3183 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3184 when we already know the answer.
3185 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3186 (setStartRule,setEndRule): Don't take abs of day number.
3187 (getOffset): Clarify docs. Add argument checks.
3188 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3189 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3192 2004-06-10 Tom Tromey <tromey@redhat.com>
3194 * interpret.cc (run): Handle wide fload.
3196 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3198 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3200 2004-06-05 Michael Koch <konqueror@gmx.de>
3202 * javax/swing/SwingConstants.java
3203 (NEXT): New constant.
3204 (PREVIOUS): Likewise.
3206 2004-06-05 Michael Koch <konqueror@gmx.de>
3208 * javax/swing/UIManager.java
3209 (LookAndFeel): Made public.
3210 (LookAndFeel.getName): Likewise.
3211 (LookAndFeel.getClassName): Likewise.
3213 2004-06-03 Michael Koch <konqueror@gmx.de>
3215 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3216 (requestFocus): Revert last changes.
3217 (gtkRequestFocus): Removed.
3218 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3219 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3221 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3222 Reverted last patch.
3223 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3224 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3225 Reverted comment change.
3227 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3229 * javax/swing/JCheckBoxMenuItem.java:
3231 * javax/swing/JMenu.java: Likewise.
3232 * javax/swing/JMenuBar.java: Likewise.
3233 * javax/swing/JMenuItem.java: Likewise.
3234 * javax/swing/JPopupMenu.java: Likewise.
3235 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3236 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3237 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3238 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3239 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3240 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3241 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3243 2004-06-01 Tom Tromey <tromey@redhat.com>
3245 * java/io/ObjectStreamField.java: Cleaned up imports.
3247 2004-06-01 Michael Koch <konqueror@gmx.de>
3249 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3251 2004-06-01 Mark Wielaard <mark@klomp.org>
3253 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3255 2004-06-01 Michael Koch <konqueror@gmx.de>
3257 * java/security/Security.java
3258 (insertProviderAt): Use equals() instead of ==.
3259 (removeProvicer): Likewise.
3260 (getProvider): Likewise.
3261 * java/security/Signature.java
3262 (sign): Don't set state to UNINITIALIZED.
3265 2004-06-01 Mark Wielaard <mark@klomp.org>
3267 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3268 Implement by calling gtkRequestFocus.
3269 (gtkRequestFocus): New native method.
3270 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3271 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3273 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3275 (filter_expose_event_handler):
3277 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3278 (menu_pos): Mark static.
3280 2004-06-01 Michael Koch <konqueror@gmx.de>
3282 * java/text/CollationElementIterator.java,
3283 java/text/CollationKey.java,
3284 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3285 * testsuite/libjava.mauve/xfails: Removed all
3286 java.text.CollationElementIterator tests.
3288 2004-06-01 Michael Koch <konqueror@gmx.de>
3290 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3292 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3293 Java 1.5 keyword usage.
3295 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3297 * javax/swing/plaf/basic/BasicMenuUI.java:
3298 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3299 Call getPath() from super class instead.
3301 2004-05-31 Michael Koch <konqueror@gmx.de>
3303 * java/io/SequenceInputStream.java:
3304 Rename enum to e because enum is a keyword in Java 1.5.
3306 2004-05-31 Michael Koch <konqueror@gmx.de>
3308 * gnu/java/rmi/rmic/CompilerProcess.java:
3309 Fixed javadoc to by XHTML compliant.
3311 2004-05-30 Mark Wielaard <mark@klomp.org>
3313 * java/awt/Toolkit.java (loadSystemColors): Implement.
3315 2004-05-30 Michael Koch <konqueror@gmx.de>
3317 * java/lang/System.java: Reordered imports.
3319 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3321 * java/text/DecimalFormat.java
3322 (parse): Fixed parsing of decimal strings. Number of maximum
3323 digits to be read should now work.
3324 * java/text/SimpleDateFormat.java
3325 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3326 formatter. This fixes DateFormatTest.
3328 2004-05-30 Michael Koch <konqueror@gmx.de>
3330 * java/nio/Buffer.java
3331 (limit): Fixed off by one error.
3332 * java/nio/CharBuffer.java
3333 (wrap): Fixed arguments, added javadocs.
3335 2004-05-30 Michael Koch <konqueror@gmx.de>
3337 * gnu/java/beans/BeanInfoEmbryo.java,
3338 java/awt/im/InputContext.java,
3339 javax/swing/tree/DefaultMutableTreeNode.java:
3340 Rename enum to e because enum is a keyword in Java 1.5.
3342 2004-05-30 Michael Koch <konqueror@gmx.de>
3344 * gnu/java/math/MPN.java,
3345 java/awt/geom/Arc2D.java:
3346 Fixed javadocs all over.
3348 2004-05-30 Michael Koch <konqueror@gmx.de>
3350 * java/awt/DefaultKeyboardFocusManager.java
3351 (dispatchEvent): Call method to get key event dispatchers.
3352 (dispatchKeyEvent): Call method to get key event post processors.
3353 * javax/swing/JComponent.java
3354 (listenerList): Made protected.
3355 * javax/swing/JOptionPane.java
3356 (message): Don't initialize.
3357 (JOptionPane): Set message text.
3358 * javax/swing/JPopupMenu.java
3359 (show): Fixed typo in argument name.
3360 * javax/swing/RepaintManager.java
3361 (paintDirtyRegions): Use public API of java.util.Map.
3362 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3363 (positionForMouseEvent): Removed redundant ';'.
3364 (continueDrag): Use method arguments.
3366 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3368 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3371 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3373 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3375 * gnu/gcj/RawDataManaged.java: New file.
3376 * java/lang/Thread.java (data): Declare as RawDataManaged.
3377 * java/lang/natThread.cc (init_native): Cast natThread data to
3378 RawDataManaged, not jobject.
3379 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3380 * Makefile.in: Rebuilt.
3382 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3384 * java/util/SimpleTimeZone.java: Reverting my last change until I
3385 can fix it properly.
3387 2004-05-27 Michael Koch <konqueror@gmx.de>
3389 * javax/swing/JPopupMenu.java
3390 (isVisible): Do not use visible directly.
3391 (setVisible): Likewise.
3392 * javax/swing/JWindow.java
3393 (JWindow): call accessible constructor.
3394 * javax/swing/RepaintManager.java
3395 (paintDirtyRegions): Use public methods to obtain iterator.
3397 2004-05-25 David Jee <djee@redhat.com>
3399 * java/awt/Container.java
3400 (remove): Set component's parent to null only after we removed the
3401 component from its parent's layout manager.
3403 2004-05-25 David Jee <djee@redhat.com>
3405 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3406 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3408 * gnu/java/awt/peer/gtk/GtkListPeer.java
3409 (getSize): Change native method declaration.
3410 (minimumSize): Pass visible row count into getSize().
3411 (preferredSize): Likewise.
3412 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3413 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3414 natural size. Use visible row count to determine the final height
3417 2004-05-21 Graydon Hoare <graydon@redhat.com>
3419 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3420 (setClip): Minor correction to order of operations.
3422 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3423 * javax/swing/ScrollPaneLayout.java: Likewise.
3424 * javax/swing/JViewPort.java: Likewise.
3425 * javax/swing/ViewportLayout.java: Likewise.
3427 * javax/swing/JComponent.java: Rewrite.
3428 * javax/swing/RepaintManager.java: Likewise.
3430 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3431 * javax/swing/JList.java
3432 (setSelectedIndices):
3433 (getSelectedIndices):
3434 (getSelectedValues): New functions.
3435 (getPreferredScrollableViewportSize): Return preferred size.
3436 (getScrollableUnitIncrement):
3437 (getScrollableBlockIncrement): Initial implementations.
3438 * javax/swing/JRootPane.java: Clean up slightly.
3443 (isValidateRoot): Add overrides from JComponent.
3444 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3445 * javax/swing/UIManager.java (getDimension): Return the dimension.
3447 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3448 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3449 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3450 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3451 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3452 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3453 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3454 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3455 Likewise, and set background.
3456 * javax/swing/plaf/basic/BasicListUI.java:
3457 Likewise, and improve a bit.
3458 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3459 Likewise, and adjust calculations.
3460 * javax/swing/plaf/basic/BasicViewportUI.java:
3461 Likewise, and improve a bit.
3462 * javax/swing/plaf/basic/BasicLookAndFeel.java
3463 (Button.margin): Shrink.
3465 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3466 Hack to set horizontal always, workaround pango.
3468 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3469 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3470 Synchronize more often, check cairo status after ops,
3471 handle changes to cairo pattern API, check for disposal.
3473 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3475 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3476 (BasicMenuItemUI): Create propertyChangeListener.
3477 (getPath):Implemented.
3478 (installListeners): Add propertyChangeListener to menuItem.
3479 (uninstallListeners): Remove propertyChangeListener from menuItem.
3480 (update): Implemented.
3481 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3482 (mouseEntered): Take insets of popup menu into account when
3483 calculating position of popup menu.
3485 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3487 * Makefile.am: Added new file.
3488 * Makefile.in: Regenerate.
3489 * javax/swing/JMenuBar.java:
3490 Started implementation.
3491 * javax/swing/JPopupMenu.java:
3492 (setVisible): Fixed location of lightweight/mediumweight
3494 (show): Fixed location of PopupMenu.
3495 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3496 New file. UI Delegate for JMenuBar.
3497 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3498 (mouseEntered): Corrected position of the submenu.
3500 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3502 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3503 to _gtk_accel_group_attach.
3504 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3507 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3508 package access. Don't override setFont.
3509 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3510 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3511 gtkWidgetRequestFocus package access.
3512 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3514 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3515 Give gtkWidgetRequestFocus package access.
3516 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3517 gtkWidgetRequestFocus package access. Don't override setFont.
3518 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3520 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3521 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3523 (gtkSetFont): Likewise.
3524 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3526 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3527 (gtkSetFont): Whitespace fix.
3529 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3530 (gtkWidgetSetUsize): Remove method.
3532 2004-05-18 David Jee <djee@redhat.com>
3534 * java/awt/image/MemoryImageSource.java
3535 (newPixels(int,int,int,int,boolean)): Set only the specified
3536 rectangle of pixels.
3537 (newPixels(byte[],ColorModel,int,int)): Implement.
3538 (newPixels(int[],ColorModel,int,int)): Implement.
3540 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3542 * Makefile.am: Added new file.
3543 * Makefile.in: Regenerate.
3544 * javax/swing/JMenu.java: Started
3546 * javax/swing/JPopupMenu.java:
3547 (insert): If specified index is -1, then
3548 add component at the end.
3549 (isPopupTrigger): Reimplemented.
3550 (JPopupMenu.LightWeightPopup): setBounds
3551 of the lightWeightPopup before adding it
3553 (javax/swing/plaf/basic/BasicIconFactory.java):
3554 (getMenuArrowIcon): Implemented.
3555 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3556 (getPreferredSize): Add size of the arrow icon
3557 if this menu item is instance of JMenu.
3558 (paintMenuItem): Paint arrow icon if this
3559 menu item is a submenu.
3560 * javax/swing/plaf/basic/BasicMenuUI.java:
3561 New File. UI Delegate for JMenu.
3563 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3565 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3566 Post KEY_TYPED events.
3567 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3568 (generates_key_typed_event): Remove function.
3570 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3572 * javax/swing/JRootPane.java
3573 (JRootPane.RootLayout): Reimplemented to
3574 set bounds of contentPane and menuBar.
3575 (setJMenuBar): Add menu bar to the layered pane.
3576 (createLayeredPane): Set layout of layeredPane
3578 * javax/swing/JLayeredPane.java:
3579 (addImpl): Calculate index of the component in the
3580 layeredPane according to the specified position within
3583 2004-05-17 David Jee <djee@redhat.com>
3585 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3586 (setPixels): Change color model to the default model after
3588 * java/awt/image/MemoryImageSource.java
3589 (newPixels): Set only the specified rectangle of pixels.
3591 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3593 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3594 -l-java-beans -l-javax-accessibility -l-javax-swing.
3596 * java/awt/AWTEvent.java (toString): Print source's name rather
3597 than the source itself.
3599 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3601 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3604 (gdk_color_to_java_color): New function.
3605 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3607 2004-05-12 David Jee <djee@redhat.com>
3609 * java/awt/image/RGBImageFilter.java:
3610 Initialize origmodel as null.
3611 (makeColor): Fix pixel component order.
3612 (filterRGBPixels): Fix pixel iteration.
3613 (setPixels): Add extra checks for index color model. Convert pixels
3614 to default color model if necessary.
3615 (convertColorModelToDefault): New override method for byte pixels.
3616 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3617 (makeColorbyDefaultCM): New override method for byte pixels.
3618 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3619 (makeColor): Fix pixel component order.
3621 2004-05-11 Kim Ho <kho@redhat.com>
3623 * javax/swing/Box.java:
3624 Comment out more parts of Box.Filler.
3626 2004-05-11 Kim Ho <kho@redhat.com>
3628 * javax/swing/Box.java:
3629 Remove reference to AccessibleAWTComponent so
3632 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3634 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3635 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3636 implementation of list peer to use GtkTreeView instead of
3637 deprecated GtkCList.
3639 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3641 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3642 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3643 (handleEvent): Remove keyChar argument to
3644 gtkWidgetDispatchKeyEvent calls.
3645 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3647 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3648 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3649 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3652 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3654 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3655 (gtkWidgetRequestFocus): Mark protected.
3656 (GtkComponentPeer): Only set the peer's bounds if its component
3658 * java/awt/Component.java (static): Set the default keyboard
3660 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3661 requestFocusInWindow(temporary)): Don't request focus if the
3662 component is not showing. Get tree lock before traversing
3663 component hierarchy.
3664 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3665 Only set the global focus owner if it is not a Window.
3666 (processKeyEvent): Consume keystrokes associated with the focus
3667 traversal keystroke.
3668 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3669 downFocusCycle): Call requestFocusInWindow instead of
3671 * java/awt/EventDispatchThread.java (run): Move setting of
3672 default keyboard focus manager to Component.java.
3673 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3674 (awt_keycode_to_keysym): New function.
3675 (gtkWidgetDispatchKeyEvent): Finish implementation.
3676 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3677 (pre_event_handler): Add FIXME comment.
3679 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3680 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3681 (gtkWidgetRequestFocus): New method.
3682 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3683 disable Tab and Shift-Tab keystrokes.
3684 (addNotify, appendText, insertText, replaceText): Simplify peer
3686 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3687 (connectSignals): Remove connections to "commit" signals.
3688 Remove C++-style comments.
3690 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3691 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3692 (handleEvent): Activate GTK button when the space bar key is
3694 (gtkActivate): New method.
3696 2004-05-06 David Jee <djee@redhat.com>
3698 * java/awt/image/CropImageFilter.java
3699 (setPixels): Implement for byte array pixels.
3700 * java/awt/image/ReplicateScaleFilter.java
3701 (setPixels): Implement for byte array pixels.
3702 (replicatePixels): Overload for byte array pixels.
3704 2004-05-06 Kim Ho <kho@redhat.com>
3706 * javax/swing/Box.java:
3707 (getAccessibleContext): Return an instance of the
3710 2004-05-05 David Jee <djee@redhat.com>
3712 * gnu/java/awt/peer/gtk/GdkGraphics.java
3713 (drawImage): When component is null, use SystemColor.window as
3714 the default bgcolor.
3715 * gnu/java/awt/peer/gtk/GtkImage.java
3716 (setPixels): We can avoid iterating through the pixel rows only
3718 * java/awt/Image.java
3719 (getScaledInstance): Partially implement.
3720 * java/awt/image/CropImageFilter.java
3721 (setProperties): Fix "filter" property.
3722 (setPixels): Implement.
3723 * java/awt/image/ReplicateScaleFilter.java
3724 (setDimensions): Use scaled dimensions.
3725 (setPixels): Implement.
3726 (replicatePixels): New method.
3728 2004-05-05 David Jee <djee@redhat.com>
3730 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3731 (convertPixels): If either pixels or model is null, return null.
3732 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3733 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3734 is null, do nothing and return.
3736 2004-05-03 Kim Ho <kho@redhat.com>
3738 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3739 (getGraphics): Like GtkFramePeer, the Graphics
3740 object needs to be translate to account for
3742 (postMouseEvent): New method. Account for
3744 (postExposeEvent): ditto.
3745 * javax/swing/Box.java: Stubbed.
3746 * javax/swing/JDialog.java: Ran through jalopy
3748 (JDialog): Call SwingUtilities' getOwnerFrame
3750 (setLayout): Check isRootPaneCheckingEnabled
3751 * javax/swing/JOptionPane.java: Re-implemented.
3752 * javax/swing/SwingUtilities.java:
3753 (getOwnerFrame): Static method to grab a default
3754 owner frame for Dialogs that don't specify owners.
3755 * javax/swing/event/SwingPropertyChangeSupport.java:
3756 (firePropertyChange): Fix early exit condition.
3757 * javax/swing/plaf/basic/BasicLabelUI.java:
3758 (paint): Avoid painting text if it is null
3760 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3763 2004-05-03 Olga Rodimina <rodimina@redhat.com>
3765 * Makefile.am: Added new file.
3766 * Makefile.in: Regenerate.
3767 * javax/swing/JPopupMenu.java:
3768 Started implementation.
3769 * javax/swing/JWindow.java
3770 (JWindow): call super() if parent for window
3772 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3773 New File. UI Delegate for JPopupMenu.
3775 2004-04-30 Olga Rodimina <rodimina@redhat.com>
3777 * javax/swing/JApplet.java: Indicated that JApplet
3778 implements RootPaneContainer and made method of this
3780 * javax/swing/JFrame.java: Ditto.
3781 * javax/swing/JWindow.java: Ditto.
3783 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
3785 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3786 (nativeSetBounds): Call gdk_window_move in addition to
3789 * java/applet/Applet.java (preferredSize): Call parent's
3790 preferredSize if the applet stub is null.
3791 (minimumSize): Likewise for parent's minimumSize.
3793 2004-04-27 Olga Rodimina <rodimina@redhat.com>
3795 * javax/swing/JMenuItem.java
3796 (createActionPropertyChangeListener): Implemented.
3797 (processMouseEvent): Ditto.
3798 (fireMenuDragMouseEntered): Ditto.
3799 (fireMenuDragMouseExited): Ditto.
3800 (fireMenuDragMouseDragged): Ditto.
3801 (fireMenuDragMouseReleased): Ditto.
3802 (menuSelectionChanged): Ditto.
3803 (getSubElements): Ditto.
3804 (getComponent): Ditto.
3805 (addMenuDragMouseListener): Ditto.
3806 (removeMenuDragMouseListener):Ditto.
3807 (addMenuKeyListener): Ditto.
3808 (removeMenuKeyListener): Ditto.
3809 * javax/swing/plaf/basic/BasicMenuItemUI.java
3810 (doClick): Imlemented.
3811 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
3812 Don't handle mouse events here. Pass them to
3813 MenuSelectionManager.
3815 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3816 Used correct version of jalopy configuration
3817 file to fix style in the files below.
3819 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3821 * javax/swing/JCheckBoxMenuItem.java:
3822 Fixed style and removed unnecessary comments.
3823 * javax/swing/JMenuItem.java: Ditto.
3824 * javax/swing/JRadioButtonMenuItem.java: Ditto.
3825 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
3826 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
3827 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
3829 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3831 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
3834 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
3836 * java/awt/ContainerOrderFocusTraversalPolicy.java
3837 (getComponentAfter): Start from current component and work up
3838 the component hierarchy until an acceptable component is found.
3839 Synchronize on tree lock.
3840 (getComponentBefore): Likewise.
3842 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
3844 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
3845 focus-related debugging messages.
3846 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
3847 * java/awt/EventDispatchThread.java: Likewise.
3848 * java/awt/KeyboardFocusManager.java: Likewise.
3849 * java/awt/Window.java: Likewise.
3850 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3851 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3853 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
3854 new C++-style comments to C-style comments.
3855 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3857 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3858 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3859 (handleEvent): Dispatch key press and key release events to
3861 (requestFocus): Post a FOCUS_GAINED event to the event queue.
3862 (gtkWidgetRequestFocus): New method.
3863 (gtkWidgetDispatchKeyEvent): Likewise.
3864 * java/awt/Component.java (requestFocus, requestFocus(boolean),
3865 requestFocusInWindow, requestFocusInWindow(boolean),
3866 getFocusCycleRootAncestor, nextFocus, transferFocus,
3867 transferFocusBackward, transferFocusUpCycle, hasFocus,
3868 isFocusOwner): Implement and document focus-handling methods.
3869 (setFocusTraversalKeys): Inherit focus traversal keys when
3870 keystrokes argument is null. Fix focus-handling documentation
3872 * java/awt/Container.java (setFocusTraversalKeys,
3873 getFocusTraversalKeys, areFocusTraversalKeysSet,
3874 isFocusCycleRoot, setFocusTraversalPolicy,
3875 getFocusTraversalPolicy, isFocusTraversalPolicySet,
3876 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
3877 Implement and document focus-handling methods.
3878 (transferFocusBackward): Remove method.
3879 (readObject, writeObject): Implement and document serialization
3881 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
3883 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
3885 * java/awt/DefaultKeyboardFocusManager.java: Implement and
3887 * java/awt/EventDispatchThread.java (run): Set default keyboard
3888 focus manager. Attempt to dispatch each event to the keyboard
3889 focus manager before normal dispatch.
3890 * java/awt/KeyboardFocusManager.java: Implement and partially
3892 * java/awt/Window.java (Window): Set focusCycleRoot to true.
3893 (show): Focus initial component when window is shown for the
3895 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3896 (pre_event_handler): Replace complex key press and key release
3897 logic with simple callbacks into GtkComponentPeer.
3898 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
3900 2004-04-21 Olga Rodimina <rodimina@redhat.com>
3902 * javax/swing/MenuSelectionManager.java
3903 (componentForPoint): Added new method.
3904 (defaultManager): New Method. Implemented.
3905 (getSelectedPath): Ditto.
3906 (isComponentPartOfCurrentMenu): Ditto.
3907 (processKeyEvent): Added new method.
3908 (processMouseEvent): New Method. Implemented.
3909 (setSelectedPath): Ditto.
3912 2004-04-19 Kim Ho <kho@redhat.com>
3914 * java/awt/Container.java:
3915 (remove): Set the component's parent to null.
3916 (getComponentAt): Implement.
3917 * javax/swing/JComponent.java:
3918 (JComponent): Initialize defaultLocale
3919 (getDefaultLocale): Implement.
3920 (setDefaultLocale): ditto.
3921 * javax/swing/JSlider.java:
3922 (JSlider): Fix calculation of value.
3923 * javax/swing/JSplitPane.java: Implement.
3924 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3925 Change SplitPane's default divider size.
3926 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3927 (paint): Remove unused code.
3928 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
3929 Added comments and ran through jalopy.
3930 (setBasicSplitPaneUI): Get reference to hidden divider
3931 and set up one touch buttons if necessary.
3932 (setBorder): Fire propertyChangeEvent only if
3933 borders are different.
3934 (getPreferredSize): Defer to layout manager.
3935 (propertyChange): Implement.
3936 (oneTouchExpandableChanged): ditto.
3937 (createLeftOneTouchButton): Use BasicArrowButton.
3938 (createRightOneTouchButton): ditto.
3939 (moveDividerTo): New method. Moves the divider
3940 to a set location based on the last divider location.
3941 (BasicSplitPaneDivider::MouseHandler): Implement.
3942 (BasicSplitPaneDivider::OneTouchButton): Removed.
3943 (BasicSplitPaneDivider::DragController): Implement.
3944 (BasicSplitPaneDivider::VerticalDragController):
3946 (BasicSplitPaneDivider::DividerLayout): ditto.
3947 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
3948 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
3949 (calculateLayoutInfo): Don't show component if it's
3951 (paintTab): Fix title paint logic.
3953 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
3956 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3957 (setStartRule,setEndRule): Don't take abs of day number.
3958 (getOffset): Clarify docs. Add argument checks.
3959 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3960 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3962 * testsuite/libjava.mauve/xfails
3963 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
3965 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
3967 Layout interfaces during preparation, not initialization.
3968 * java/lang/natClass.cc (initializeClass): Move
3969 _Jv_LayoutInterfaceMethods call...
3970 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
3972 2004-05-19 Anthony Green <green@localhost.localdomain>
3974 * Makefile.am (awt_java_source_files): Remove javax.rmi and
3976 * Makefile.in: Rebuilt.
3977 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
3978 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
3979 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
3980 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
3981 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
3982 gnu/javax/rmi/CORBA/DelegateFactory.java,
3983 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
3984 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
3985 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
3986 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
3987 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
3988 gnu/javax/rmi/PortableServer.java: Remove files.
3990 2004-05-19 Anthony Green <green@redhat.com>
3992 * Makefile.am: Define JAVA_EXT_DIRS.
3993 * Makefile.in: Rebuilt.
3994 * java/lang/natRuntime.cc (insertSystemProperties): Set
3995 java.ext.dirs property.
3997 2004-05-16 Mark Wielaard <mark@klomp.org>
3999 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4001 2004-05-15 Mark Wielaard <mark@klomp.org>
4003 * doc/cni.sgml: Removed, merged into gcj.texi.
4005 2004-05-15 Mark Wielaard <mark@klomp.org>
4007 * Makefile.am (ordinary_java_source_files): Add new javax.print
4009 * Makefile.in: Regenerated.
4011 2004-05-15 Michael Koch <konqueror@gmx.de>
4013 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4014 javax/print/attribute/standard/DateTimeAtCreation.java,
4015 javax/print/attribute/standard/DateTimeAtProcessing.java,
4016 javax/print/attribute/standard/DocumentName.java,
4017 javax/print/attribute/standard/JobHoldUntil.java,
4018 javax/print/attribute/standard/JobImpressionsCompleted.java,
4019 javax/print/attribute/standard/JobMessageFromOperator.java,
4020 javax/print/attribute/standard/JobName.java,
4021 javax/print/attribute/standard/JobOriginatingUserName.java,
4022 javax/print/attribute/standard/JobPriority.java,
4023 javax/print/attribute/standard/JobPrioritySupported.java,
4024 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4025 javax/print/attribute/standard/OutputDeviceAssigned.java,
4026 javax/print/attribute/standard/PrinterInfo.java,
4027 javax/print/attribute/standard/PrinterLocation.java,
4028 javax/print/attribute/standard/PrinterMakeAndModel.java,
4029 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4030 javax/print/attribute/standard/PrinterName.java,
4031 javax/print/attribute/standard/QueuedJobCount.java,
4032 javax/print/attribute/standard/RequestingUserName.java:
4033 Fixed javadocs all over.
4035 2004-05-15 Michael Koch <konqueror@gmx.de>
4037 * javax/print/DocFlavor.java,
4038 javax/print/attribute/standard/ColorSupported.java,
4039 javax/print/attribute/standard/Compression.java,
4040 javax/print/attribute/standard/CopiesSupported.java,
4041 javax/print/attribute/standard/Fidelity.java,
4042 javax/print/attribute/standard/Finishings.java,
4043 javax/print/attribute/standard/JobImpressionsSupported.java,
4044 javax/print/attribute/standard/JobKOctetsSupported.java,
4045 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4046 javax/print/attribute/standard/JobSheets.java,
4047 javax/print/attribute/standard/JobState.java,
4048 javax/print/attribute/standard/JobStateReason.java,
4049 javax/print/attribute/standard/JobStateReasons.java,
4050 javax/print/attribute/standard/Media.java,
4051 javax/print/attribute/standard/MediaSizeName.java,
4052 javax/print/attribute/standard/MultipleDocumentHandling.java,
4053 javax/print/attribute/standard/NumberUpSupported.java,
4054 javax/print/attribute/standard/OrientationRequested.java,
4055 javax/print/attribute/standard/PDLOverrideSupported.java,
4056 javax/print/attribute/standard/PageRanges.java,
4057 javax/print/attribute/standard/PresentationDirection.java,
4058 javax/print/attribute/standard/PrintQuality.java,
4059 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4060 javax/print/attribute/standard/PrinterMoreInfo.java,
4061 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4062 javax/print/attribute/standard/PrinterResolution.java,
4063 javax/print/attribute/standard/PrinterState.java,
4064 javax/print/attribute/standard/PrinterStateReason.java,
4065 javax/print/attribute/standard/PrinterStateReasons.java,
4066 javax/print/attribute/standard/PrinterURI.java,
4067 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4068 javax/print/attribute/standard/Severity.java,
4069 javax/print/attribute/standard/SheetCollate.java,
4070 javax/print/attribute/standard/Sides.java:
4071 Added serialVersionUID and removed final keyword where it doenst
4074 2004-05-15 Michael Koch <konqueror@gmx.de>
4076 * javax/print/PrintServiceLookup.java: New file.
4078 2004-05-15 Michael Koch <konqueror@gmx.de>
4080 * javax/print/DocFlavor.java:
4081 Implemented all flavor classes.
4083 2004-05-15 Michael Koch <konqueror@gmx.de>
4085 * javax/print/attribute/standard/ColorSupported.java,
4086 javax/print/attribute/standard/Compression.java,
4087 javax/print/attribute/standard/CopiesSupported.java,
4088 javax/print/attribute/standard/Fidelity.java,
4089 javax/print/attribute/standard/Finishings.java,
4090 javax/print/attribute/standard/JobImpressionsSupported.java,
4091 javax/print/attribute/standard/JobKOctetsSupported.java,
4092 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4093 javax/print/attribute/standard/JobSheets.java,
4094 javax/print/attribute/standard/JobState.java,
4095 javax/print/attribute/standard/JobStateReason.java,
4096 javax/print/attribute/standard/JobStateReasons.java,
4097 javax/print/attribute/standard/Media.java,
4098 javax/print/attribute/standard/MediaSizeName.java,
4099 javax/print/attribute/standard/MultipleDocumentHandling.java,
4100 javax/print/attribute/standard/NumberUpSupported.java,
4101 javax/print/attribute/standard/OrientationRequested.java,
4102 javax/print/attribute/standard/PDLOverrideSupported.java,
4103 javax/print/attribute/standard/PageRanges.java,
4104 javax/print/attribute/standard/PresentationDirection.java,
4105 javax/print/attribute/standard/PrintQuality.java,
4106 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4107 javax/print/attribute/standard/PrinterMoreInfo.java,
4108 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4109 javax/print/attribute/standard/PrinterResolution.java,
4110 javax/print/attribute/standard/PrinterState.java,
4111 javax/print/attribute/standard/PrinterStateReason.java,
4112 javax/print/attribute/standard/PrinterStateReasons.java,
4113 javax/print/attribute/standard/PrinterURI.java,
4114 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4115 javax/print/attribute/standard/Severity.java,
4116 javax/print/attribute/standard/SheetCollate.java,
4117 javax/print/attribute/standard/Sides.java: New files.
4119 2004-05-15 Michael Koch <konqueror@gmx.de>
4121 * javax/print/Doc.java
4122 (getPrintData): Throws IOException.
4123 (getReaderForText): Likewise.
4124 (getStreamForBytes): Likewise.
4125 * javax/print/DocFlavor.java:
4126 Fixed filename in copyright.
4127 (serialVersionUID): New field.
4128 * javax/print/ServiceUIFactory.java:
4129 Made all constants final.
4130 * javax/print/AttributeException.java
4131 javax/print/MultiDoc.java
4132 javax/print/MultiDocPrintJob.java
4133 javax/print/MultiDocPrintService.java
4134 javax/print/StreamPrintService.java
4135 javax/print/URIException.java: New files.
4136 * javax/print/Makefile.am
4137 (EXTRA_DIST): Added all new files.
4139 2004-05-15 Michael Koch <konqueror@gmx.de>
4141 * javax/print/attribute/standard/Copies.java,
4142 javax/print/attribute/standard/DateTimeAtCompleted.java,
4143 javax/print/attribute/standard/DateTimeAtCreation.java,
4144 javax/print/attribute/standard/DateTimeAtProcessing.java,
4145 javax/print/attribute/standard/DocumentName.java,
4146 javax/print/attribute/standard/JobHoldUntil.java,
4147 javax/print/attribute/standard/JobImpressions.java,
4148 javax/print/attribute/standard/JobImpressionsCompleted.java,
4149 javax/print/attribute/standard/JobKOctets.java,
4150 javax/print/attribute/standard/JobKOctetsProcessed.java,
4151 javax/print/attribute/standard/JobMediaSheets.java,
4152 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4153 javax/print/attribute/standard/JobMessageFromOperator.java,
4154 javax/print/attribute/standard/JobName.java,
4155 javax/print/attribute/standard/JobOriginatingUserName.java,
4156 javax/print/attribute/standard/JobPriority.java,
4157 javax/print/attribute/standard/JobPrioritySupported.java,
4158 javax/print/attribute/standard/NumberOfDocuments.java,
4159 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4160 javax/print/attribute/standard/NumberUp.java,
4161 javax/print/attribute/standard/OutputDeviceAssigned.java,
4162 javax/print/attribute/standard/PagesPerMinute.java,
4163 javax/print/attribute/standard/PagesPerMinuteColor.java:
4164 Fixed @return tag all over.
4166 2004-05-15 Michael Koch <konqueror@gmx.de>
4168 * javax/print/attribute/AttributeSetUtilities.java
4169 (verifyCategoryForValue): Fixed typo in javadoc.
4170 * javax/print/attribute/HashAttributeSet.java
4171 (containsKey): Fixed @return tag.
4172 (comtainsValue): Likewise.
4174 * javax/print/attribute/IntegerSyntax.java
4176 * javax/print/attribute/ResolutionSyntax.java
4178 (getCrossFeedResolution): Removed unused code.
4179 (getFeedResolution): Likewise.
4180 * javax/print/attribute/SetOfIntegerSyntax.java
4181 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4182 (equals): Fixed @return tag.
4183 * javax/print/attribute/TextSyntax.java
4184 (TextSyntax): Take locale into account.
4185 (hashCode): Better implementation.
4187 2004-05-15 Michael Koch <konqueror@gmx.de>
4189 * javax/print/CancelablePrintJob.java,
4190 javax/print/Doc.java,
4191 javax/print/DocFlavor.java,
4192 javax/print/DocPrintJob.java,
4193 javax/print/FlavorException.java,
4194 javax/print/PrintException.java,
4195 javax/print/PrintService.java,
4196 javax/print/ServiceUIFactory.java: New files.
4198 2004-05-15 Mark Wielaard <mark@klomp.org>
4200 * gnu/regexp/CharIndexedReader.java: Removed.
4201 * gnu/regexp/REFilterReader.java: Likewise.
4202 * gnu/regexp/RETokenLookAhead.java: Likewise.
4203 * Makefile.am (ordinary_java_source_files): Remove above classes.
4204 * Makefile.in: Regenerated.
4206 2004-05-14 Tom Tromey <tromey@redhat.com>
4208 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4209 not `XGraphicsConfiguration.XOffScreenImage'.
4211 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4213 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4215 2004-05-14 Steven Augart <augart@watson.ibm.com>
4217 * include/jni.h (_Jv_func): Removed.
4218 (struct JNINativeInterface): Use `void *' for reserved slots.
4219 (struct JNIInvokeInterface): Likewise.
4221 2004-05-11 Michael Koch <konqueror@gmx.de>
4223 * gnu/java/net/natPlainSocketImplPosix.cc
4224 (read): Fixed typo in expression.
4226 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4228 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4229 ld_library_additions. Adjust all calls to libjava_invoke to match
4232 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4233 path to cxxflagslist.
4234 Pass path of libstdc++ to libjava_invoke.
4236 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4237 libjava_invoke arguments.
4239 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4241 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4244 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4246 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4247 main binary against the JNI shared library.
4249 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4251 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4252 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4253 (SimpleTimeZone): Tweak docs. Add new variation.
4254 (setStartRule,setEndRule): Add new variations. Use
4255 startTimeMode and endTimeMode.
4257 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4259 * java/util/Calendar.java (getActualMinimum,
4260 getActualMaximum): Remove abstract. Implement.
4262 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4264 Run the jni tests using the interpreter.
4265 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4266 options_cxx to shared lib compile command.
4267 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4268 they are used to link the shared lib, not the main binary.
4269 Use libjava_invoke to run gij.
4271 2004-05-06 Michael Koch <konqueror@gmx.de>
4273 * java/util/logging/Level.java
4274 (parse): Use == instead of String.equals().
4276 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4278 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4279 verify_field_signature and verify_method_signature, not
4280 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4281 (_Jv_ClassReader::handleField): Likewise.
4282 (_Jv_ClassReader::handleMethod): Likewise.
4284 2004-05-06 Michael Koch <konqueror@gmx.de>
4286 * javax/swing/table/TableColumn.java:
4289 2004-05-06 Michael Koch <konqueror@gmx.de>
4291 * javax/imageio/spi/ImageReaderWriterSpi.java
4292 (ImageReaderWriterSpi): Made it public.
4293 * javax/imageio/stream/ImageInputStream.java:
4296 2004-05-06 Michael Koch <konqueror@gmx.de>
4298 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4301 2004-05-06 Michael Koch <konqueror@gmx.de>
4303 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4304 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4306 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4307 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4308 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4309 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4310 their own source file.
4311 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4312 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4313 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4314 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4315 (create): Define variable on top of function.
4316 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4317 (menu_pos): Prototyped.
4318 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4319 (setTitle): Removed.
4320 * jni/gtk-peer/gthread-jni.c
4321 (gdk_threads_wake): Removed.
4322 * Makefile.am (gtk_c_source_files): Added new files
4323 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4324 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4325 * Makefile.in: Regenerated.
4327 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4329 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4332 2004-05-05 Mark Wielaard <mark@klomp.org>
4334 * javax/swing/AbstractButton.java: Replace special HTML entities with
4336 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4337 * javax/swing/DefaultButtonModel.java: Likewise.
4338 * javax/swing/DefaultListModel.java: Likewise.
4339 * javax/swing/JList.java: Likewise.
4340 * javax/swing/JSlider.java: Likewise.
4341 * javax/swing/ListModel.java: Likewise.
4342 * javax/swing/Popup.java: Likewise.
4343 * javax/swing/SwingUtilities.java: Likewise.
4345 2004-05-05 Michael Koch <konqueror@gmx.de>
4347 * javax/swing/AbstractButton.java,
4348 javax/swing/ActionMap.java,
4349 javax/swing/DefaultButtonModel.java,
4350 javax/swing/DefaultListModel.java,
4351 javax/swing/ImageIcon.java,
4352 javax/swing/JComboBox.java,
4353 javax/swing/JComponent.java,
4354 javax/swing/JFrame.java,
4355 javax/swing/JInternalFrame.java,
4356 javax/swing/JMenuBar.java,
4357 javax/swing/JMenuItem.java,
4358 javax/swing/JOptionPane.java,
4359 javax/swing/JProgressBar.java,
4360 javax/swing/JRootPane.java,
4361 javax/swing/JScrollBar.java,
4362 javax/swing/JScrollPane.java,
4363 javax/swing/JSeparator.java,
4364 javax/swing/JSlider.java,
4365 javax/swing/JTabbedPane.java,
4366 javax/swing/JTable.java,
4367 javax/swing/JTextField.java,
4368 javax/swing/JToolBar.java,
4369 javax/swing/JToolTip.java,
4370 javax/swing/JTree.java,
4371 javax/swing/JViewport.java,
4372 javax/swing/JWindow.java,
4373 javax/swing/KeyStroke.java,
4374 javax/swing/LookAndFeel.java,
4375 javax/swing/SwingUtilities.java,
4376 javax/swing/Timer.java,
4377 javax/swing/ToolTipManager.java,
4378 javax/swing/UIDefaults.java,
4379 javax/swing/border/TitledBorder.java,
4380 javax/swing/filechooser/FileSystemView.java,
4381 javax/swing/plaf/basic/BasicButtonListener.java,
4382 javax/swing/plaf/basic/BasicButtonUI.java,
4383 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4384 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4385 javax/swing/plaf/basic/BasicLabelUI.java,
4386 javax/swing/plaf/basic/BasicMenuItemUI.java,
4387 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4388 javax/swing/plaf/basic/BasicRootPaneUI.java,
4389 javax/swing/plaf/basic/BasicScrollBarUI.java,
4390 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4391 javax/swing/plaf/basic/BasicSliderUI.java,
4392 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4393 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4394 javax/swing/table/JTableHeader.java,
4395 javax/swing/text/AbstractDocument.java,
4396 javax/swing/text/DefaultCaret.java,
4397 javax/swing/text/StyledEditorKit.java,
4398 javax/swing/tree/DefaultTreeCellEditor.java:
4401 2004-05-05 Michael Koch <konqueror@gmx.de>
4403 * java/util/prefs/AbstractPreferences.java
4404 (AbstractPreferences): Added parenthesis for clarity.
4405 Closes classpath bug #7940.
4407 2004-05-05 Tom Tromey <tromey@redhat.com>
4409 * javax/naming/CompoundName.java (endsWith): Look at correct
4410 element of source name.
4412 2004-05-05 Mark Wielaard <mark@klomp.org>
4414 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4415 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4417 2004-05-05 Tom Tromey <tromey@redhat.com>
4419 * java/io/BufferedReader.java (skip): Removed unused
4422 2004-05-05 Michael Koch <konqueror@gmx.de>
4424 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4426 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4428 * java/text/AttributedString.java,
4429 java/text/AttributedStringIterator.java,
4430 java/text/Collator.java,
4431 java/text/DecimalFormatSymbols.java,
4432 java/text/NumberFormat.java,
4433 java/text/RuleBasedCollator.java:
4436 2004-05-05 Tom Tromey <tromey@redhat.com>
4438 * java/text/Format.java: Cleaned up imports.
4439 * java/text/DecimalFormat.java: Cleaned up imports.
4440 * java/security/SecureRandom.java: Cleaned up imports.
4441 (SecureRandom): Removed unused variable.
4442 * java/security/UnresolvedPermission.java: Cleaned up imports.
4443 * java/util/Date.java (parse): Removed unused variable.
4444 * java/util/ResourceBundle.java: Cleaned up imports.
4445 (getBundle): Removed unused variable.
4446 (tryBundle): Likewise.
4447 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4449 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4451 * java/text/SimpleDateFormat.java:
4452 (formatWithAttribute): New method. It implements
4453 the formatting process with attributes.
4454 (format): Use formatWithAttribute.
4455 (formatToCharacterIterator): New method. Use
4456 formatWithAttribute.
4458 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4460 * java/text/MessageFormat.java:
4461 (class Field): New class.
4462 (formatToCharacterIterator): New method.
4463 (format): Use formatInternal now.
4464 (formatInternal): New method. String formatter should
4465 be done here (with attributes). Attributes merging supported.
4466 (parse): More documentation.
4467 (getFormatsByArgumentIndex): New method.
4468 (setFormatByArgumentIndex): New method.
4469 (setFormatsByArgumentIndex): New method.
4471 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4473 * java/text/DecimalFormat.java
4474 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4475 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4476 (parse): Fixed handling of exponentiation notation and grouping.
4478 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4480 * java/text/DecimalFormat.java
4481 (scanFix): Build attribute array. Fixed error reporting.
4482 (applyPatternWithSymbols): Store attributes for the prefix and
4484 (formatInternal): New method. Changed the way the string is
4485 computed. Implemented attributes. Cleant up rounding in
4486 exponential notation.
4487 (format): Use formatInternal.
4488 (formatToCharacterIterator): New method.
4489 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4490 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4491 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4494 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4496 * java/security/interfaces/DSAKeyPairGenerator.java,
4497 java/security/interfaces/DSAPrivateKey.java,
4498 java/security/interfaces/DSAPublicKey.java,
4499 java/security/interfaces/RSAPrivateKey.java,
4500 java/security/interfaces/RSAPublicKey.java:
4503 2004-05-04 Michael Koch <konqueror@gmx.de>
4505 * java/nio/ByteBuffer.java,
4506 java/nio/CharBuffer.java,
4507 java/nio/DoubleBuffer.java,
4508 java/nio/FloatBuffer.java,
4509 java/nio/IntBuffer.java,
4510 java/nio/LongBuffer.java,
4511 java/nio/ShortBuffer.java:
4512 (compareTo): Fixed bogus implementation in all buffer classes.
4514 2004-05-04 Ingo Proetel <proetel@aicas.com>
4516 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4517 32 bit pixels not 8 bit pixels.
4518 (isCompatibleRaster): Added javadoc comment.
4520 2004-05-04 Ingo Proetel <proetel@aicas.com>
4522 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4525 2004-05-04 Ingo Proetel <proetel@aicas.com>
4527 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4528 (getColorModel): Return the actual color model.
4529 (getRaster): Implemented.
4530 (ColorRaster): New inner class.
4531 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4533 * java/awt/Color.java (<init>): Make exception more verbose.
4534 (createContext): Use ColorModel when creating a PaintContext.
4536 2004-05-04 Michael Koch <konqueror@gmx.de>
4538 * gnu/java/text/CharacterBreakIterator.java
4539 (previous): Removed unused variable.
4541 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4543 * gnu/java/text/FormatBuffer.java,
4544 gnu/java/text/AttributedFormatBuffer.java,
4545 gnu/java/text/StringFormatBuffer.java: New classes to implement
4546 attributed iterators in java.text.
4547 * gnu/java/text/FormatCharacterIterator.java: Moved
4548 from java/text as it is an internal class.
4549 * java/text/FormatCharacterIterator.java: Removed.
4550 * java/text/Format.java:
4551 Import gnu.java.text.FormatCharacterIterator.
4552 * Makefile.am (java_source_files): Added new files.
4553 * Makefile.in: Regenerated.
4556 2004-05-04 Mark Wielaard <mark@klomp.org>
4558 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4560 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4562 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4563 * Makefile.in: Rebuilt.
4565 2004-05-03 Mark Wielaard <mark@klomp.org>
4567 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4568 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4570 (set(String, String, int, String, String, String, String, String)):
4571 Assign this.file to path or path + "?" + query.
4572 * java/util/Arrays.java: Call static methods staticly.
4573 * java/util/zip/ZipEntry.java: Likewise.
4574 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4575 dir to this.direction.
4576 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4577 Assign static field only once.
4578 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4580 2004-05-03 Mark Wielaard <mark@klomp.org>
4582 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4583 unused variables hScrollbarHeight and vScrollbarWidth.
4584 (preferredSize): Likewise.
4585 * gnu/java/security/provider/DSAParameters.java (engineToString):
4586 Removed unused call to System.getProperty("line.seperator");
4587 * java/security/Security.java (loadProviders): Return result.
4589 2004-05-03 Tom Tromey <tromey@redhat.com>
4591 * java/net/URLStreamHandler.java (toExternalForm): Removed
4594 * java/math/BigDecimal.java (divide): Removed unused variable.
4595 * java/lang/Throwable.java: Cleaned up imports.
4596 * java/lang/ClassLoader.java: Cleaned up imports.
4597 * java/io/FilePermission.java (implies): Removed unused
4599 * java/awt/TextComponent.java: Removed unused import.
4600 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4601 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4602 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4603 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4605 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4606 * gnu/java/text/CharacterBreakIterator.java: Removed
4608 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4610 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4611 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4613 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4614 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4615 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4616 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4617 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4618 (lookupProviders): Removed unused variable.
4619 (loadNextServiceProvider): Likewise.
4620 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4622 2004-05-03 Michael Koch <konqueror@gmx.de>
4624 Fixes PR libgcj/14695:
4625 * java/net/NetworkInterface.java
4626 (getByName): Return null when no interface was found.
4628 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4629 Tom Tromey <tromey@redhat.com>
4631 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4632 additional option "-Wmissing-prototypes" for compiling C sources.
4633 Print actual filename for pass/fail rather than $name.c.
4634 * testsuite/libjava.jni/PR15133.java: New testcase file.
4635 * testsuite/libjava.jni/PR15133.c: Likewise.
4636 * testsuite/libjava.jni/PR15133.out: Likewise.
4638 2004-04-30 Roger Sayle <roger@eyesopen.com>
4640 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4643 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4645 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4646 limit the maximum heap size to avoid unnecessary thrashing.
4648 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4650 * java/text/CollationElementIterator.java (reset): Reset
4651 lookahead variables.
4653 2004-04-23 Mark Wielaard <mark@klomp.org>
4655 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4657 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4659 * java/sql/DriverManager.java:
4662 2004-04-23 Michael Koch <konqueror@gmx.de>
4665 (hashcode): Don't initialize with default value explicitely.
4666 (getContent): Removed redundant "final" keyword.
4667 (openStream): Likewise.
4668 (getURLStreamHandler): Fixed coding style.
4669 * java/net/URLConnection.java
4670 (defaultAllowUserInteraction): Don't initialize with default value
4672 (connected): Likewise.
4673 (doOutput): Likewise.
4674 (ifModifiedSince): Likewise.
4675 (dateformats_initialized): Likewise.
4676 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4678 2004-04-23 Michael Koch <konqueror@gmx.de>
4680 * gnu/java/nio/channels/FileChannelImpl.java
4681 (SET, CUR): Unused, removed.
4682 (read): Implement here directly.
4683 (implRead): Removed.
4684 (write): Implement here directly.
4685 (implWrite): Removed.
4687 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4689 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4690 javax/rmi/CORBA/Stub.java,
4691 javax/rmi/CORBA/Util.java,
4692 javax/rmi/CORBA/ValueHandler.java,
4693 javax/rmi/CORBA/ValueHandler.java,
4694 javax/rmi/PortableRemoteObject.java:
4697 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4699 * java/util/jar/JarFile.java,
4700 java/util/jar/JarInputStream.java,
4701 java/util/jar/JarOutputStream.java,
4702 java/util/jar/Manifest.java:
4705 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4707 * java/util/ArrayList.java,
4708 java/util/Calendar.java,
4709 java/util/Currency.java,
4710 java/util/HashMap.java,
4711 java/util/HashSet.java,
4712 java/util/Hashtable.java,
4713 java/util/LinkedList.java,
4714 java/util/Properties.java,
4715 java/util/PropertyPermission.java,
4716 java/util/TimeZone.java,
4717 java/util/TreeMap.java,
4718 java/util/TreeSet.java,
4719 java/util/Vector.java,
4720 java/util/WeakHashMap.java:
4723 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4725 * java/util/logging/FileHandler.java,
4726 java/util/logging/Formatter.java,
4727 java/util/logging/Handler.java,
4728 java/util/logging/Logger.java,
4729 java/util/logging/SimpleFormatter.java,
4730 java/util/logging/XMLFormatter.java:
4733 2004-04-22 Mark Wielaard <mark@klomp.org>
4735 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4736 -Wno-long-long flags variable.
4737 (gtk_c_files): Use PEDANTIC_CFLAGS.
4738 * Makefile.in: Regenerated.
4740 2004-04-22 Mark Wielaard <mark@klomp.org>
4742 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4743 Changed C++ comments into C comments.
4744 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
4747 2004-04-22 Michael Koch <konqueror@gmx.de>
4749 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
4750 Merged copyright year with GNU classpath.
4752 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4754 * javax/security/auth/x500/X500Principal.java:
4757 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4759 * javax/swing/JSlider.java:
4760 Fixed HTML tags in comments.
4762 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4764 * javax/accessibility/AccessibleText.java:
4767 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
4769 * java/net/URLStreamHandler.java
4770 (parseURL): Convert the file path to using '/' instead of native
4773 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
4776 (userInfo): New field.
4777 (URL): Set authority to the right value.
4778 (setURL): Fixed authority and file initialization.
4779 * java/net/URLStreamHandler.java
4780 (parseURL): Take care of the query tag. Build authority.
4781 (toExternalForm): Fixed URL building using authority.
4783 2004-04-22 Michael Koch <konqueror@gmx.de>
4785 * java/net/Socket.java
4786 (impl): Made package-private.
4787 * java/net/ServerSocket.java
4788 (implAccept): Access Socket.impl field directly.
4790 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4792 * java/util/prefs/Preferences.java,
4793 java/util/prefs/InvalidPreferencesFormatException.java,
4794 java/util/prefs/BackingStoreException.java,
4795 java/util/prefs/AbstractPreferences.java:
4798 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4800 * java/util/regex/Matcher.java,
4801 java/util/regex/Pattern.java:
4804 2004-04-22 Michael Koch <konqueror@gmx.de>
4806 * java/nio/charset/IllegalCharsetNameException.java
4807 (charsetName): Made private.
4808 (IllegalCharsetNameException): Added @param tag to javadoc.
4809 (getCharsetName): Added @return tag to javadoc.
4810 * java/nio/charset/MalformedInputException.java
4811 (MalformedInputException): Added @param tag to javadoc.
4812 (getInputLength): Revised method description, added @return tag.
4813 (getMessage): Added @return tag.
4815 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
4817 * java/awt/Font.java (deriveFont): Implement missing variants.
4818 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
4821 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
4823 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
4824 Set method->index values for interface methods to their itable index.
4825 (initializeClass): Call _Jv_LayoutInterfaceMethods.
4827 2004-04-21 Michael Koch <konqueror@gmx.de>
4829 * java/nio/DirectByteBufferImpl.java
4830 (shiftDown): Made static, give address as argument and
4831 provide a convenience method that overwrites shiftDown in
4832 ByteBufferImpl and calls the native shiftDown.
4833 * java/nio/MappedByteBufferImpl.java
4834 (): Use optimized method in DirectByteBufferImpl.
4835 * java/nio/natDirectByteBufferImpl.cc
4836 (shiftDown): Changed method signature. Removed usage of array_offset.
4838 2004-04-21 Michael Koch <konqueror@gmx.de>
4840 * gnu/java/net/natPlainSocketImplPosix.cc
4841 (SocketInputStream::read): Make sure returned data is a byte value.
4843 2004-04-21 Michael Koch <konqueror@gmx.de>
4845 * gnu/classpath/ServiceFactory.java,
4846 gnu/classpath/ServiceProviderLoadingAction.java,
4847 javax/imageio/ImageReader.java,
4848 javax/imageio/ImageTranscoder.java,
4849 javax/imageio/ImageWriter.java,
4850 javax/imageio/package.html,
4851 javax/imageio/spi/IIOServiceProvider.java,
4852 javax/imageio/spi/ImageInputStreamSpi.java,
4853 javax/imageio/spi/ImageOutputStreamSpi.java,
4854 javax/imageio/spi/ImageReaderWriterSpi.java,
4855 javax/imageio/spi/ImageTranscoderSpi.java,
4856 javax/imageio/spi/RegisterableService.java,
4857 javax/imageio/spi/ServiceRegistry.java,
4858 javax/imageio/spi/package.html,
4859 javax/imageio/stream/IIOByteBuffer.java,
4860 javax/imageio/stream/ImageInputStream.java,
4861 javax/imageio/stream/ImageOutputStream.java,
4862 javax/imageio/stream/package.html:
4865 (ordinary_java_source_files): Added
4866 gnu/classpath/ServiceFactory.java and
4867 gnu/classpath/ServiceProviderLoadingAction.java.
4868 (javax_source_files): Added
4869 javax/imageio/ImageReader.java,
4870 javax/imageio/ImageTranscoder.java,
4871 javax/imageio/ImageWriter.java,
4872 javax/imageio/spi/IIOServiceProvider.java,
4873 javax/imageio/spi/ImageInputStreamSpi.java,
4874 javax/imageio/spi/ImageOutputStreamSpi.java,
4875 javax/imageio/spi/ImageReaderWriterSpi.java,
4876 javax/imageio/spi/ImageTranscoderSpi.java,
4877 javax/imageio/spi/RegisterableService.java,
4878 javax/imageio/spi/ServiceRegistry.java,
4879 javax/imageio/stream/IIOByteBuffer.java,
4880 javax/imageio/stream/ImageInputStream.java and
4881 javax/imageio/stream/ImageOutputStream.java.
4882 * Makefile.in: Regenerated.
4884 2004-04-21 Michael Koch <konqueror@gmx.de>
4886 * java/util/Properties.java
4887 (load): Fix wrongly merged fix.
4889 2004-04-21 Mark Wielaard <mark@klomp.org>
4891 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
4892 malloc and free buf.
4894 2004-04-21 Dalibor Topic <robilad@kaffe.org>
4896 * javax/naming/AuthenticationException.java,
4897 javax/naming/AuthenticationNotSupportedException.java,
4898 javax/naming/CannotProceedException.java,
4899 javax/naming/CommunicationException.java,
4900 javax/naming/CompoundName.java,
4901 javax/naming/ConfigurationException.java,
4902 javax/naming/ContextNotEmptyException.java,
4903 javax/naming/InitialContext.java,
4904 javax/naming/InsufficientResourcesException.java,
4905 javax/naming/InterruptedNamingException.java,
4906 javax/naming/LimitExceededException.java,
4907 javax/naming/LinkException.java,
4908 javax/naming/LinkLoopException.java,
4909 javax/naming/LinkRef.java,
4910 javax/naming/MalformedLinkException.java,
4911 javax/naming/Name.java,
4912 javax/naming/NameAlreadyBoundException.java,
4913 javax/naming/NameNotFoundException.java,
4914 javax/naming/NamingSecurityException.java,
4915 javax/naming/NoInitialContextException.java,
4916 javax/naming/NoPermissionException.java,
4917 javax/naming/NotContextException.java,
4918 javax/naming/PartialResultException.java,
4919 javax/naming/ReferralException.java,
4920 javax/naming/ServiceUnavailableException.java,
4921 javax/naming/SizeLimitExceededException.java,
4922 javax/naming/TimeLimitExceededException.java,
4923 javax/naming/directory/Attribute.java,
4924 javax/naming/directory/Attributes.java,
4925 javax/naming/directory/SearchResult.java,
4926 javax/naming/event/NamingExceptionEvent.java,
4927 javax/naming/spi/ResolveResult.java:
4930 2004-04-21 Mark Wielaard <mark@klomp.org>
4932 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4933 Changed C++ comments into C comments. Removed commented out code.
4934 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4936 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
4938 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
4940 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
4942 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
4944 * native/jni/gtk-peer/gthread-jni.c:
4947 2004-04-21 Mark Wielaard <mark@klomp.org>
4949 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
4950 static fields defined in interface.
4951 * javax/awt/JDialog.java: Likewise.
4952 (JDialog): Make constructors public.
4953 (getDefaultCloseOperation): Make public.
4954 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
4955 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
4956 * javax/swing/JViewport.java (JViewport): Make constructor public.
4958 2004-04-21 Michael Koch <konqueror@gmx.de>
4960 * java/util/Map.java
4961 (Entry): Removed redundant "static" modifier.
4962 * java/text/AttributedCharacterIterator.java:
4963 Updated copyright year.
4965 2004-04-20 Michael Koch <konqueror@gmx.de>
4967 * javax/naming/directory/SearchControls.java:
4968 Don't explicitely extend java.lang.Object.
4969 * javax/naming/spi/DirStateFactory.java:
4970 Merged copyright year with GNU classpath.
4972 2004-04-20 Michael Koch <konqueror@gmx.de>
4974 * java/nio/channels/Channels.java:
4975 Merged coding style with GNU classpath.
4977 2004-04-20 Michael Koch <konqueror@gmx.de>
4979 * java/net/ServerSocket.java
4980 Merged coding style from GNU classpath.
4982 2004-04-20 Michael Koch <konqueror@gmx.de>
4984 * java/io/BufferedWriter.java:
4985 Reordered variables to be at top of the class.
4986 (localFlush): Removed redundant final keyword.
4988 2004-04-20 Ingo Proetel <proetel@aicas.com>
4990 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
4992 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
4994 * java/text/DecimalFormat.java (scanFix): Removed suffix check
4995 for percent and permill check.
4997 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
4999 * java/text/FieldPosition.java
5000 (FieldPosition) Constructor now behaves as it should according
5001 to the java documentation.
5003 2004-04-20 Mark Wielaard <mark@klomp.org>
5005 * java/util/Properties.java: Use the word umlaut, not ä in api
5008 2004-04-20 Michael Koch <konqueror@gmx.de>
5010 * java/nio/Buffer.java,
5011 java/nio/channels/AlreadyConnectedException.java,
5012 java/nio/channels/AsynchronousCloseException.java,
5013 java/nio/channels/ByteChannel.java,
5014 java/nio/channels/CancelledKeyException.java,
5015 java/nio/channels/Channel.java,
5016 java/nio/channels/Channels.java,
5017 java/nio/channels/ClosedByInterruptException.java,
5018 java/nio/channels/ClosedChannelException.java,
5019 java/nio/channels/ClosedSelectorException.java,
5020 java/nio/channels/ConnectionPendingException.java,
5021 java/nio/channels/DatagramChannel.java,
5022 java/nio/channels/FileChannel.java,
5023 java/nio/channels/FileLock.java,
5024 java/nio/channels/FileLockInterruptionException.java,
5025 java/nio/channels/GatheringByteChannel.java,
5026 java/nio/channels/IllegalBlockingModeException.java,
5027 java/nio/channels/IllegalSelectorException.java,
5028 java/nio/channels/InterruptibleChannel.java,
5029 java/nio/channels/NoConnectionPendingException.java,
5030 java/nio/channels/NonReadableChannelException.java,
5031 java/nio/channels/NonWritableChannelException.java,
5032 java/nio/channels/NotYetBoundException.java,
5033 java/nio/channels/NotYetConnectedException.java,
5034 java/nio/channels/OverlappingFileLockException.java,
5035 java/nio/channels/Pipe.java,
5036 java/nio/channels/ReadableByteChannel.java,
5037 java/nio/channels/ScatteringByteChannel.java,
5038 java/nio/channels/SelectableChannel.java,
5039 java/nio/channels/SelectionKey.java,
5040 java/nio/channels/Selector.java,
5041 java/nio/channels/ServerSocketChannel.java,
5042 java/nio/channels/SocketChannel.java,
5043 java/nio/channels/UnresolvedAddressException.java,
5044 java/nio/channels/UnsupportedAddressTypeException.java,
5045 java/nio/channels/WritableByteChannel.java,
5046 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5047 java/nio/channels/spi/AbstractSelectableChannel.java,
5048 java/nio/channels/spi/AbstractSelectionKey.java,
5049 java/nio/channels/spi/AbstractSelector.java,
5050 java/nio/channels/spi/SelectorProvider.java,
5051 java/nio/charset/spi/CharsetProvider.java:
5052 Fixed javadocs and jalopied all over java.nio.
5054 2004-04-20 Michael Koch <konqueror@gmx.de>
5056 * java/nio/ByteBufferImpl.java,
5057 java/nio/CharBufferImpl.java,
5058 java/nio/DirectByteBufferImpl.java,
5059 java/nio/DoubleBufferImpl.java,
5060 java/nio/DoubleViewBufferImpl.java,
5061 java/nio/FloatBufferImpl.java,
5062 java/nio/FloatViewBufferImpl.java,
5063 java/nio/IntBufferImpl.java,
5064 java/nio/IntViewBufferImpl.java,
5065 java/nio/LongBufferImpl.java,
5066 java/nio/LongViewBufferImpl.java,
5067 java/nio/MappedByteBufferImpl.java,
5068 java/nio/ShortBufferImpl.java,
5069 java/nio/ShortViewBufferImpl.java:
5070 Made sure all classes are final and removed final keyword from all
5073 2004-04-20 Michael Koch <konqueror@gmx.de>
5075 * java/rmi/MarshalledObject.java,
5076 java/rmi/Naming.java,
5077 java/rmi/RemoteException.java,
5078 java/rmi/activation/ActivationException.java,
5079 java/rmi/server/ServerCloneException.java,
5080 java/security/AccessController.java,
5081 java/security/AlgorithmParameterGenerator.java,
5082 java/security/AlgorithmParameters.java,
5083 java/security/CodeSource.java,
5084 java/security/Identity.java,
5085 java/security/IdentityScope.java,
5086 java/security/KeyPairGenerator.java,
5087 java/security/KeyStore.java,
5088 java/security/Security.java,
5089 java/security/Signature.java,
5090 java/security/SignatureSpi.java,
5091 java/security/SignedObject.java,
5092 java/security/spec/DSAParameterSpec.java,
5093 java/security/spec/DSAPrivateKeySpec.java,
5094 java/security/spec/DSAPublicKeySpec.java,
5095 java/sql/Array.java,
5096 java/sql/DatabaseMetaData.java,
5097 java/sql/ResultSet.java,
5098 java/text/ChoiceFormat.java,
5099 java/text/CollationElementIterator.java,
5100 java/text/CollationKey.java,
5101 java/text/Collator.java,
5102 java/text/DateFormat.java,
5103 java/text/DateFormatSymbols.java,
5104 java/text/DecimalFormatSymbols.java,
5105 java/text/Format.java,
5106 java/text/ParsePosition.java,
5107 java/text/RuleBasedCollator.java,
5108 java/text/SimpleDateFormat.java,
5109 java/text/StringCharacterIterator.java,
5110 java/util/Collections.java,
5111 java/util/PropertyResourceBundle.java,
5112 java/util/ResourceBundle.java,
5113 java/util/StringTokenizer.java,
5114 java/util/jar/Attributes.java,
5115 java/util/logging/ConsoleHandler.java,
5116 java/util/logging/LogManager.java,
5117 java/util/logging/MemoryHandler.java,
5118 java/util/logging/SocketHandler.java,
5119 javax/naming/NamingException.java:
5120 Fixed javadoc, coding style and argument names all over.
5122 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5124 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5125 constructor. (valid) Added null check.
5127 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5129 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5130 * java/io/FileOutputStream.java
5131 (FileOutputStream) Reorganized constructors. Constructors now
5132 check whether the given path is directory.
5134 2004-04-20 Michael Koch <konqueror@gmx.de>
5136 * java/net/Authenticator.java,
5137 java/net/BindException.java,
5138 java/net/ConnectException.java,
5139 java/net/ContentHandler.java,
5140 java/net/ContentHandlerFactory.java,
5141 java/net/DatagramPacket.java,
5142 java/net/DatagramSocket.java,
5143 java/net/DatagramSocketImpl.java,
5144 java/net/DatagramSocketImplFactory.java,
5145 java/net/FileNameMap.java,
5146 java/net/HttpURLConnection.java,
5147 java/net/Inet4Address.java,
5148 java/net/Inet6Address.java,
5149 java/net/InetAddress.java,
5150 java/net/InetSocketAddress.java,
5151 java/net/JarURLConnection.java,
5152 java/net/MalformedURLException.java,
5153 java/net/MulticastSocket.java,
5154 java/net/NetPermission.java,
5155 java/net/NetworkInterface.java,
5156 java/net/NoRouteToHostException.java,
5157 java/net/PasswordAuthentication.java,
5158 java/net/PortUnreachableException.java,
5159 java/net/ProtocolException.java,
5160 java/net/ServerSocket.java,
5161 java/net/Socket.java,
5162 java/net/SocketAddress.java,
5163 java/net/SocketException.java,
5164 java/net/SocketImpl.java,
5165 java/net/SocketImplFactory.java,
5166 java/net/SocketOptions.java,
5167 java/net/SocketPermission.java,
5168 java/net/SocketTimeoutException.java,
5170 java/net/URISyntaxException.java,
5172 java/net/URLClassLoader.java,
5173 java/net/URLConnection.java,
5174 java/net/URLDecoder.java,
5175 java/net/URLEncoder.java,
5176 java/net/URLStreamHandler.java,
5177 java/net/URLStreamHandlerFactory.java,
5178 java/net/UnknownHostException.java,
5179 java/net/UnknownServiceException.java:
5180 Fixed javadocs, coding style and argument names all over.
5182 2004-04-20 Michael Koch <konqueror@gmx.de>
5184 * java/lang/Byte.java,
5185 java/lang/CharSequence.java,
5186 java/lang/ClassLoader.java,
5187 java/lang/Compiler.java,
5188 java/lang/Double.java,
5189 java/lang/Float.java,
5190 java/lang/Integer.java,
5191 java/lang/Long.java,
5192 java/lang/Math.java,
5193 java/lang/Number.java,
5194 java/lang/Package.java,
5195 java/lang/Runtime.java,
5196 java/lang/RuntimePermission.java,
5197 java/lang/SecurityManager.java,
5198 java/lang/Short.java,
5199 java/lang/StringBuffer.java,
5200 java/lang/System.java,
5201 java/lang/ThreadGroup.java,
5202 java/lang/Throwable.java,
5203 java/lang/reflect/InvocationHandler.java,
5204 java/lang/reflect/Proxy.java:
5205 Fixed javadocs, coding style and argument names all over.
5207 2004-04-20 Michael Koch <konqueror@gmx.de>
5209 * java/io/BufferedWriter.java,
5210 java/io/ByteArrayInputStream.java,
5211 java/io/CharArrayWriter.java,
5212 java/io/DataInput.java,
5213 java/io/DataInputStream.java,
5215 java/io/FilterInputStream.java,
5216 java/io/InputStream.java,
5217 java/io/InputStreamReader.java,
5218 java/io/ObjectInputStream.java,
5219 java/io/ObjectStreamClass.java,
5220 java/io/PipedInputStream.java,
5221 java/io/PipedReader.java,
5222 java/io/PushbackInputStream.java,
5223 java/io/PushbackReader.java,
5224 java/io/RandomAccessFile.java,
5225 java/io/SerializablePermission.java,
5226 java/io/StreamTokenizer.java,
5227 java/io/StringWriter.java,
5228 java/io/WriteAbortedException.java,
5229 java/io/Writer.java:
5230 Fixed javadocs all over, rename arguments to match javadocs,
5233 2004-04-20 Ingo Proetel <proetel@aicas.com>
5235 * java/awt/FontMetrics.java:
5236 (charsWidth): fixed accumulation of total_width
5237 (getWidth): simple default implementation
5238 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5239 in Rectangle constructor.
5240 * java/awt/image/Raster.java (toString): Added method.
5241 * java/awt/image/SampleModel.java (<init>): Added error cause
5242 information to thrown exception.
5243 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5245 (setDataElements): New method.
5246 (setPixels): New method.
5247 (toString): New method.
5249 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5251 * java/awt/image/ComponentColorModel.java
5252 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5253 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5254 Mauve tests on this method. Improved documentation.
5256 2004-04-20 Michael Koch <konqueror@gmx.de>
5258 * javax/swing/JLayeredPane.java,
5259 javax/swing/plaf/BorderUIResource.java,
5260 javax/swing/plaf/ComponentUI.java,
5261 javax/swing/undo/CompoundEdit.java,
5262 javax/swing/undo/StateEdit.java:
5263 Fixed HTML tags in javadocs all over.
5265 2004-04-20 Michael Koch <konqueror@gmx.de>
5267 * javax/print/attribute/EnumSyntax.java
5268 (getOffset): Made protected.
5269 * javax/print/attribute/HashAttributeSet.java
5270 (HashAttributeSet): Likewise.
5271 * javax/print/attribute/ResolutionSyntax.java
5272 (getFeedResolution): Fixed typo in exception name.
5273 (getCrossFeedResolution): Likewise.
5274 * javax/print/attribute/SetOfIntegerSyntax.java
5275 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5276 * javax/print/attribute/TextSyntax.java
5277 (TextSyntax): Handle locale correctly.
5278 (hashCode): Calc better hashcode value.
5279 (equals): Fixed @return tag.
5280 (toString): New method.
5282 2004-04-20 Michael Koch <konqueror@gmx.de>
5284 * gnu/java/nio/FileLockImpl.java
5285 (static): Removed, not needed anymore.
5286 * gnu/java/nio/channels/FileChannelImpl.java
5287 (FileChannelImpl): Made final.
5288 (mode): Made private.
5289 (READ, WRITE, APPEND): Made public.
5290 (EXCL, SYNC, DSYNC): Likewise.
5291 (static): Load native JNI library, when needed.
5292 (length): Unused, removed.
5293 (available): Made public.
5294 (implPosition): Throws IOException.
5296 (implTruncate): Likewise.
5300 2004-04-20 Michael Koch <konqueror@gmx.de>
5302 * java/awt/AWTPermission.java,
5303 java/awt/Component.java,
5304 java/awt/ComponentOrientation.java,,
5305 java/awt/Dialog.java,
5306 java/awt/FontMetrics.java,
5307 java/awt/Graphics.java,
5308 java/awt/datatransfer/DataFlavor.java,
5309 java/beans/Introspector.java,
5310 java/beans/PropertyEditor.java,
5311 java/beans/PropertyEditorManager.java,
5312 java/beans/beancontext/BeanContextServiceProvider.java:
5313 Fixed HTML tags in javadocs all over.
5315 2004-04-20 Mark Wielaard <mark@klomp.org>
5317 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5318 MissingResourceException is thrown.
5319 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5320 null when a MissingResourceException is thrown. Should never happen.
5322 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5324 * java/awt/image/DataBufferShort.java,
5325 java/awt/image/DataBufferFloat.java,
5326 java/awt/image/DataBufferDouble.java,
5327 java/awt/image/PixelInterleavedSampleModel.java: New files.
5328 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5329 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5331 2004-04-20 Michael Koch <konqueror@gmx.de>
5333 * Makefile.am (java_source_files): Added
5334 java/awt/image/DataBufferDouble.java,
5335 java/awt/image/DataBufferFloat.java,
5336 java/awt/image/DataBufferShort.java and
5337 java/awt/image/PixelInterleavedSampleModel.java.
5338 * Makefile.in: Regenerated.
5340 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5342 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5343 undocumented CNI calls.
5344 * include/java-interp.h (_Jv_InterpClass): No longer
5345 extends java.lang.Class.
5346 * java/lang/Class.h (Class): Add new field `aux_info'.
5347 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5348 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5349 Use Class->aux_info instead.
5350 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5351 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5352 Use Class->aux_info instead.
5353 * java/io/natObjectInputStream.cc (allocateObject): Use
5355 * java/lang/natClass.cc (newInstance): Likewise.
5356 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5357 * java/lang/natObject.cc (clone): Likewise.
5358 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5359 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5360 JvAllocObject. Allocate klass->aux_info here for interpreted
5363 2004-04-17 Mark Wielaard <mark@klomp.org>
5365 * javax/swing/JToggleButton.java (ToggleButtonModel):
5366 Make public static inner class.
5367 * javax/swing/JTabbedPane.java (setComponentAt):
5368 Call Page.setComponent().
5369 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5370 (WRAP_TAB_LAYOUT): Make public, value is 0.
5371 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5372 Make private static inner class.
5374 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5376 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5377 arguments to match new signature. Remove FIXME comments.
5379 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5381 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5383 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5386 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5388 * Makefile.am: Added new file.
5389 * Makefile.in: Regenerate.
5390 * javax/swing/ImageIcon.java:
5391 (ImageIcon(file)): set description of the icon
5393 * javax/swing/JCheckBoxMenuItem.java:
5394 Mostly Implemented. Work in progress.
5395 * javax/swing/JRadioButtonMenuItem.java:
5396 Reimplement constructors to use JToggleButtonModel.
5397 * javax/swing/plaf/basic/BasicIconFactory.java:
5398 (getCheckBoxMenuItemIcon): return check box
5400 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5401 paint menu item selected only when it is armed and
5404 2004-04-02 David Jee <djee@redhat.com>
5406 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5407 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5408 * java/awt/Component.java
5409 (add): Set the parent of the popup as this component.
5410 * java/awt/PopupMenu.java
5411 (addNotify): Create popup menu when peer is null.
5412 (show): Call addNotify() if peer is null.
5413 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5414 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5415 argument for gtk_menu_popup() as zero. This causes the popup menu to
5416 respond to any mouse button.
5418 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5420 * Makefile.am: Added new file.
5421 * Makefile.in: Regenerate.
5422 * javax/swing/JRadioButtonMenuItem.java:
5424 * javax/swing/plaf/basic/BasicIconFactory.java:
5425 (getRadioButtonMenuItemIcon): Return
5427 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5428 (getPreferredSize): Add size of checkIcon if it
5430 (installDefaults): Don't initialize checkIcon.
5431 It's value will be set in subclasses.
5432 (uninstallDefaults): remove uninstallation of
5434 (paint): Moved code to paintMenuItem().
5435 (paintMenuItem): Implemented.
5436 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5437 UI delegate for JRadioButtonMenuItem.
5439 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5441 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5442 Corrected position of the accelerator.
5444 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5446 * Makefile.am: Added new file.
5447 * Makefile.in: Regenerate.
5448 * javax/swing/JMenuItem.java: Partly
5449 implemented. Work in progress
5450 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5451 Changed default value of acceleratorDelimiter.
5452 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5453 New class. Partly implemented.
5455 2004-03-26 Mark Wielaard <mark@klomp.org>
5457 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5458 (item_activate): Declare label before use.
5459 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5460 (gtkSetFont): Removed unused variable label.
5461 (addExposeFilter): Declare variables before use.
5462 (removeExposeFilter): Likewise.
5463 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5464 (ok_clicked): Declare str_fileName before use.
5466 2004-03-26 David Jee <djee@redhat.com>
5468 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5469 (addSeparator): Remove.
5470 * java/awt/Menu.java
5471 (separator): Remove static final MenuItem field.
5472 (separatorLabel): New static final String field.
5473 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5474 Use separatorLabel to denote that it is a separator.
5475 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5476 of reusing the static separator instance, because a MenuItem instance
5477 can't be added more than once without being cloned.
5478 * java/awt/peer/MenuPeer.java
5479 (addSeparator): Remove from interface.
5481 2004-03-26 David Jee <djee@redhat.com>
5483 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5484 (connectSignals): New native method declaration.
5485 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5486 * java/awt/MenuItem.java
5487 (getActionCommand): Return the label if the action command is not set.
5488 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5489 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5490 gtk_menu_shell_append().
5491 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5492 (item_activate): Fix argument type.
5493 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5495 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5497 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5498 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5499 given. Add the menu widget's top-level GtkWindow to the global window
5500 group, so it can grab the pointer.
5501 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5502 gtk_menu_shell_append().
5504 2004-03-23 Graydon Hoare <graydon@redhat.com>
5506 * java/text/AttributedString.java
5507 (addAttribute): Fix off-by-one.
5508 (getIterator): Likewise.
5509 * java/text/AttributedStringIterator.java
5510 (getRunLimit): Correct logic.
5511 (getRunStart): Likewise.
5512 (getAttribute): Fix inequality.
5513 (getAttributes): Likewise.
5514 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5516 2004-03-23 Kim Ho <kho@redhat.com>
5518 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5519 (calculateSizes): Return real width and height.
5521 2004-03-23 Kim Ho <kho@redhat.com>
5523 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5524 (calculateTabRects): Set the selectedRun before
5525 trying to rotate tabs.
5527 2004-03-23 Kim Ho <kho@redhat.com>
5529 * Makefile.am: New file
5530 * Makefile.in: Regenerate
5531 * java/awt/Graphics.java: (drawRect):
5532 Draw to the correct point.
5533 * javax/swing/DefaultSingleSelectionModel.java
5534 (isSelected): Return true if the selected index
5536 * javax/swing/JLabel.java: Do not change mnemonic
5537 index if text is null.
5538 * javax/swing/JProgressBar.java: Use JComponent's
5540 * javax/swing/JScrollBar.java: Ditto.
5541 * javax/swing/JSlider.java: Ditto.
5542 * javax/swing/JTabbedPane.java: Reimplement.
5543 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5544 Add defaults for TabbedPane.
5545 * javax/swing/plaf/basic/BasicArrowButton.java:
5547 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5548 (paintDeterminate): Don't paint String if it's
5550 (paintIndeterminate): ditto.
5551 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5554 2004-03-19 Michael Koch <konqueror@gmx.de>
5556 * java/awt/image/AffineTransformOp.java
5557 (AffineTransformOp): Made public.
5558 * javax/swing/JComponent.java
5559 (listenerList): Made protected.
5560 (accessibleContext): Likewise.
5561 * javax/swing/JList.java
5562 (valueChanged): Dont use internal fields of ListSelectionEvent.
5563 * javax/swing/JViewport.java
5564 (getView): Dont use internal fields of Component.
5565 (addImpl): Likewise.
5566 * javax/swing/Timer.java
5567 (isRunning): Made public.
5570 * javax/swing/UIDefaults.java
5571 (getInt): Made public.
5572 * javax/swing/plaf/basic/BasicListUI.java
5573 (mousePressed): Dont use internal fields of MouseEvent.
5574 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5575 * javax/swing/plaf/basic/BasicScrollBarUI.java
5576 (arrowIcon): Made static.
5577 * javax/swing/plaf/basic/BasicViewportUI.java
5578 (stateChanged): Dont use internal field on ChangeEvent.
5579 * javax/swing/text/JTextComponent.java
5580 (getUI): Call UIManager.getUI().
5581 (updateUI): Use getUI().
5583 2004-03-19 Graydon Hoare <graydon@redhat.com>
5585 * javax/swing/JComponent.java: Turn off double buffer by default.
5586 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5587 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5588 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5589 Use cairo to copy areas.
5590 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5591 Initialize and set clip region.
5593 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5595 * java/applet/Applet.java (preferredSize): Override deprecated
5596 variant of getPreferredSize.
5597 (minimumSize): Override deprecated variant of getMinimumSize.
5599 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5601 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5602 (drawImage(img,xform,bgcolor,obs)): New Method.
5603 Helper function that every drawImage method will
5605 (drawRaster): Added new parameter, bgcolor. All
5606 transparent pixels are changed to bgcolor before
5608 (drawRenderedImage): Fixed to use changed drawRaster().
5609 (drawImage(image,xform,obs): Fixed to use new helper function
5610 (drawImage(image,op,x,y)): Ditto.
5611 (drawImage (img,x,y,observer)): Ditto.
5612 ((PainterThread) bgcolor): New Field.
5613 ((PainterThread) (setPixels)): Changed all transparent pixels
5615 (drawImage(img,x,y,width,height,bgcolor,observer)):
5616 Fixed FIXME - all the transparent pixels are
5617 changed to the specified bgcolor.
5618 (drawImage(img, x, y, width, height, observer): Changed to
5620 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5621 Fixed FIXME- changed all transparent pixels to bgcolor.
5622 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5623 Changed to use function above.
5625 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5627 * java/applet/Applet.java (dimensions): New field.
5628 (getDimensions): New method.
5629 (getPreferredSize): Call getDimensions.
5630 (getMinimumSize): Likewise.
5632 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5634 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5635 * jni/classpath/jnilink.c: Likewise.
5637 * java/applet/Applet.java (getPreferredSize): New method.
5638 (getMinimumSize): New method.
5640 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5642 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5643 (_Jv_AllocObjectNoFinalizer): Likewise.
5644 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5645 (_Jv_AllocPtrFreeObject): Likewise.
5646 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5647 directly even in the JVMPI case.
5648 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5649 _Jv_AllocObject calls.
5650 * gcj/javaprims.h: Update prototypes.
5651 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5652 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5653 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5655 2004-04-14 Andrew Haley <aph@redhat.com>
5656 Bryce McKinlay <mckinlay@redhat.com>
5658 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5659 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5660 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5662 * testsuite/libjava.lang/InvokeInterface.java: New file.
5663 * testsuite/libjava.lang/InvokeInterface.out: New file.
5665 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5667 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5669 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5670 StackTraceElement directly.
5671 (newElement): New native helper method to create StackTraceElement
5672 bypassing Java access control.
5673 (createStackTraceElement): Use newElement() instead of directly
5674 calling StackTraceElement's constructor.
5675 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5677 2004-04-01 Michael Koch <konqueror@gmx.de>
5679 * java/lang/SecurityManager.java
5680 (checkAwtEventQueueAccess): Implemented.
5682 2004-04-01 Gary Benson <gbenson@redhat.com>
5684 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5685 (_Jv_SearchMethodInClass): Likewise.
5687 2004-03-26 Peter Moon <peterm@miraculum.com>
5689 * java/text/NumberFormat.java: Fix spelling of setCurrency
5692 2004-03-21 Anthony Green <green@redhat.com>
5694 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5695 recursion when searching for the system ClassLoader.
5697 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5699 * java/net/ServerSocket.java
5700 (accept): Close the socket when error occured.
5702 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
5704 * java/net/URI.java (parseURI): Added unquoting.
5705 (unquote): New method.
5706 (quoteAuthority): Implemented.
5707 (quote(String,String)): New method.
5708 (quotePath): Implemented.
5709 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5710 (getSchemeSpecificPart): Removed FIXME comment.
5711 (getRawAuthority): Return new rawAuthority field.
5712 (getAuthority): Removed FIXME comment.
5713 (getRawUserInfo): Return new rawUserInfo field.
5714 (getUserInfo): Removed FIXME comment.
5715 (getRawPath): Return new rawPath field.
5716 (getPath): Removed FIXME comment.
5717 (getRawQuery): Return new rawQuery field.
5718 (getQuery): Removed FIXME comment.
5719 (getRawFragment): Return new rawFragment field.
5720 (getFragment): Removed FIXME comment.
5722 2004-03-20 Michael Koch <konqueror@gmx.de>
5724 * java/net/URLConnection.java: Merged copyright year with classpath.
5726 2004-03-20 Norbert Frese <postfach@nfrese.net>
5728 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5729 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5730 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5732 (getObjectInputStream): Return object reference, throw IOException if null.
5733 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5734 (getObjectOutputStream): Return object reference, throw IOException if null.
5735 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5736 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5737 (UnicastConnectionManager): Throw RemoteException if port is not available.
5738 (getInstance): Throw RemoteException.
5739 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5740 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5741 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5742 Collect Exceptions which are returned by a rmi-call and fix void returns.
5743 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
5744 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5745 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
5746 (dispatch): Answer ping messages which are sent by other java implementions.
5747 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
5748 for every rmi-message and fix void return problems.
5749 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
5750 (UnicastServerRef): Throw RemoteException.
5751 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
5752 In some situations it is necessary to export a subclass of the class which has the _Stub.
5753 For instance when the class with has the _Stub is abstract.
5754 (findStubSkelClass): New method which looks for the class which has the _Stub.
5755 (getClientHost): Implementated.
5756 * gcc/libjava/java/rmi/server/RemoteServer.java
5757 (getClientHost): Implementated.
5758 * gcc/libjava/Makefile.am (rmi_java_source_files):
5759 Added gnu/java/rmi/server/RMIIncomingThread.java.
5760 * Makefile.in: Regenerated.
5762 2004-03-20 Michael Koch <konqueror@gmx.de>
5764 * java/net/InetAddress.java
5765 (getLocalHostname): Added javadoc.
5767 2004-03-19 Per Bothner <per@bothner.com>
5769 * configure.in: FILE variable overrides FLATFORM when linking
5770 natFileChannelXXX.cc.
5772 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
5773 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
5775 2004-03-19 Per Bothner <per@bothner.com>
5777 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
5778 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
5779 * Makefile.am: Update accordingly.
5780 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
5781 as aliases for UnicodeLittle and UnicodeBig.
5783 2004-03-20 Mark Wielaard <mark@klomp.org>
5785 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5786 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
5787 Don't access ws when it is null.
5788 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
5791 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
5793 * java/lang/ThreadGroup.java (list): Changed print to println.
5795 2004-03-19 Mark Wielaard <mark@klomp.org>
5797 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
5800 2004-02-10 Randolph Chung <tausq@debian.org>
5802 * configure.in: Build java for hppa target.
5803 * configure: Regenerate.
5804 * libjava/configure.host (hppa-*): Add target.
5805 * libjava/sysdeps/pa/lock.h: New file.
5807 2004-03-19 Mark Wielaard <mark@klomp.org>
5809 Reported by Stephen Crawley
5810 * java/io/FilePermission.java (implies): Use String.length() -1 to
5811 access last char of String.
5813 2004-03-19 Michael Koch <konqueror@gmx.de>
5815 * java/awt/image/AffineTransformOp.java
5816 (AffineTransformOp): Made public.
5817 * javax/swing/JComponent.java
5818 (listenerList): Made protected.
5819 (accessibleContext): Likewise.
5820 * javax/swing/JList.java
5821 (valueChanged): Dont use internal fields of ListSelectionEvent.
5822 * javax/swing/JViewport.java
5823 (getView): Dont use internal fields of Component.
5824 (addImpl): Likewise.
5825 * javax/swing/Timer.java
5826 (isRunning): Made public.
5829 * javax/swing/UIDefaults.java
5830 (getInt): Made public.
5831 * javax/swing/plaf/basic/BasicListUI.java
5832 (mousePressed): Dont use internal fields of MouseEvent.
5833 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5834 * javax/swing/plaf/basic/BasicScrollBarUI.java
5835 (arrowIcon): Made static.
5836 * javax/swing/plaf/basic/BasicViewportUI.java
5837 (stateChanged): Dont use internal field on ChangeEvent.
5838 * javax/swing/text/JTextComponent.java
5839 (getUI): Call UIManager.getUI().
5840 (updateUI): Use getUI().
5842 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5844 * verify.cc: Undef PC.
5846 2004-03-18 Michael Koch <konqueror@gmx.de>
5848 * java/nio/channels/spi/AbstractSelectableChannel.java
5849 (keys): Initialize at declaration.
5850 (locate): keys cant be null.
5852 (addSelectionKey): New method.
5853 (removeSelectionKey): New method.
5854 * java/nio/channels/spi/AbstractSelectionKey.java
5855 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
5856 * java/nio/channels/spi/AbstractSelector.java
5857 (provider): Javadoc added.
5858 (cancelledKeys): Javadoc added.
5859 (cancelKey): Javadoc added, add key to cancelledKeys.
5860 (deregister): Implemented.
5862 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5864 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
5865 MAP_FAILED to void *.
5867 2004-03-12 Graydon Hoare <graydon@redhat.com>
5869 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
5870 * javax/swing/JComponent.java (paint): Use persistent double buffer.
5871 * javax/swing/JList.java (ListListener): Revalidate on changes.
5872 * javax/swing/JScrollPane.java: Reimplement.
5873 * javax/swing/JViewport.java: Reimplement.
5874 * javax/swing/ScrollPaneLayout.java: Reimplement.
5875 * javax/swing/ViewportLayout.java: Tidy up.
5876 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
5877 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
5878 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
5879 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
5882 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5884 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5885 (window_wm_protocols_filter): New function.
5886 (window_focus_in_cb): Remove function.
5887 (window_focus_out_cb): Likewise.
5888 (window_focus_or_active_state_change_cb): New function.
5889 (create): Add filter that removes WM_TAKE_FOCUS client messages.
5890 (connectSignals): Don't attach handlers to focus-in-event or
5891 focus-out-event signals. Handle notify signal.
5893 2004-03-11 David Jee <djee@redhat.com>
5895 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
5896 (gtkSetLabel): New native method declaration.
5897 (setLabel): Use gtkSetLabel.
5898 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
5899 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
5901 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
5903 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
5904 black when color argument is null.
5906 2004-03-10 Kim Ho <kho@redhat.com>
5908 * java/awt/Container.java: Remove check
5911 2004-03-10 Kim Ho <kho@redhat.com>
5913 * java/awt/Container.java: (visitChild):
5914 Remove candidate clip. Use the component
5916 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
5917 (handleEvent): Use the PaintEvent's clip.
5919 2004-03-10 Kim Ho <kho@redhat.com>
5921 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
5922 (handleEvent): Don't set the clip for the
5925 2004-03-09 Graydon Hoare <graydon@redhat.com>
5927 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5928 Fix double <-> fixed macros, reset font transform.
5929 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
5932 2004-03-09Â Kim Ho <kho@redhat.com>
5934 * java/awt/Container.java: (visitChild): Move
5935 the x and y coordinate of the component rectangle
5936 to correct position.
5937 (handleEvent): Forward drag events to the pressed
5939 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5941 (ArrowButtonListener::mousePressed): Stop the
5943 (mouseDragged): Implement.
5944 (TrackListener::mousePressed): Only react if
5945 the press doesn't occur on the thumb, otherwise
5946 just set the offset.
5947 (TrackListener::mouseReleased): Unset the isAdjusting
5949 (createIncreaseIcon): Switch icon.
5950 (createDecreaseIcon): Switch icon.
5951 (calculatePreferredSize): Use width.
5952 (getThumbBounds): Use the top as the lower value.
5953 (layoutVScrollBar): Switch the button locations.
5954 (paintIncreaseHighlight): Paint correct side of thumb.
5955 (paintDecreaseHighlight): ditto.
5956 (valueForYPosition): Use top as the lower value.
5957 * javax/swing/plaf/basic/BasicSliderUI.java:
5959 (mouseDragged): Implement.
5960 (mousePressed): Only react when the thumb isn't
5961 pressed, otherwise just set offset.
5962 (mouseReleased): Handle a release of the thumb.
5963 (scrollDueToClickInTrack): Stop the timer first.
5964 * javax/swing/JProgressBar.java:
5965 (setString): Fix change condition.
5966 * javax/swing/JSeparator.java:
5969 2004-03-08 David Jee <djee@redhat.com>
5971 * java/awt/image/AffineTransformOp.java:
5972 (filter): Use Graphics2D interface instead of directly using the
5975 2004-03-05 David Jee <djee@redhat.com>
5977 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
5978 (handleEvent): Action events are generated upon MOUSE_RELEASED.
5979 * java/awt/Container.java
5980 (acquireComponentForMouseEvent): Fixed.
5981 (handleEvent): Fixed.
5982 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5983 (state_to_awt_mods_with_button_states): New method.
5984 (pre_event_handler): Fixed mouse event generation.
5986 2004-03-05 Olga Rodimina <rodimina@redhat.com>
5988 gnu/java/awt/peer/gtk/GdkGraphics2D.java
5989 (GdkGraphics2D (BufferedImage)): Initialize
5990 pixmap associated with specified BufferedImage.
5991 (setPaint): Changed implementation of Texture
5992 Paint to use AffineTransformOp.
5993 * java/awt/image/AffineTransformOp.java
5994 (createCompatibleDestRaster): Throw RasterFormatException
5995 if resulting width or height of raster is 0.
5997 2004-03-04 Olga Rodimina <rodimina@redhat.com>
5999 * java/awt/image/AffineTransformOp.java:
6000 Removed unnecessary field interpolationType.
6001 Formatted some of the lines to be consistent with
6003 (AffineTransformOp): Create new RenderingHints
6004 containing specified interpolation type.
6005 (createCompatibleDestImage): Implemented.
6006 (createCompatibleDestRaster): Implemented.
6007 (filter): Implemented.
6008 (getBounds2D(BufferedImage)): Implemented.
6009 (getBounds2D(Raster)): Implemented.
6010 (getInterpolationType): Get interpolation value from
6013 2004-03-04 David Jee <djee@redhat.com>
6015 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6016 (setFont): Check if child peers are null.
6018 2004-03-04 Graydon Hoare <graydon@redhat.com>
6020 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6022 (libjava_arguments): Add new libraries to argument list.
6024 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6026 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6027 * Makefile.in: Re-generated.
6028 * java/awt/image/AffineTransformOp.java: New Class.
6030 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6032 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6033 (setPaint): Interpret correctly TexturePaint's
6035 (drawImage): Fixed scale factors of the affine
6038 2004-02-27 David Jee <djee@redhat.com>
6040 * gnu/java/awt/peer/gtk/GdkGraphics.java
6041 (GdkGraphics(Component)): Inherit font from component.
6042 (drawString): Use font style.
6043 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6044 (gtkSetFont): New native method declaration.
6045 (setFont): New method.
6046 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6047 (gtkSetFont): New native method declaration.
6048 (setFont): Call new native method gtkSetFont.
6049 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6050 (setFont): For all child components who do not their fonts set,
6051 set their peers' fonts with this container's font.
6052 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6053 Move all native method declarations to the top for readability.
6054 (gtkSetFont): New native method declaration.
6055 (setFont): New method.
6056 * java/awt/Component.java
6057 (setFont): Invalidate after setting the font.
6058 * java/awt/Container.java
6059 (invalidateTree): New method.
6060 (setFont): Invalidate the container tree after setting the font.
6061 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6062 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6063 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6064 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6065 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6066 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6067 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6068 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6070 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6072 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6073 (updateBufferedImage): New helper function.
6074 Updates BufferedImage in memory if it was changed.
6075 (draw): changed to update BufferedImage in memory after
6076 this drawing operation
6078 (draw3DRect): Ditto.
6079 (fill3DRect): Ditto.
6081 (drawRaster): Ditto.
6082 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6083 no affine transformation.
6084 (drawGlyphVector): Ditto.
6086 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6088 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6089 (isBufferedImageGraphics): New Helper function.
6090 Returns true if this graphics2d can be used to draw
6091 into buffered image and false otherwise.
6092 (updateImagePixels): New Helper function.
6093 Updates pixels in the BufferedImage.
6094 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6095 (getImagePixels): New function. Returns pixels
6096 of the buffered image associated with
6099 2004-02-26 David Jee <djee@redhat.com>
6101 * java/awt/BorderLayout.java
6102 (layoutContainer): Fix width and height calculations to ensure
6103 that they're non-negative.
6104 * java/awt/Component.java
6105 (setBackground): If c is null, inherit from closest ancestor whose
6106 background color is set.
6108 2004-02-26 Kim Ho <kho@redhat.com>
6110 * Makefile.am: Add new files.
6111 * Makefile.in: Re-generate.
6112 * javax/swing/JProgressBar.java:
6113 (JProgressBar(int, int int)): Throw
6114 IllegalArgumentException if orientation is
6116 (JProgressBar(BoundedRangeModel)): Create
6117 ChangeListener and register it. UpdateUI.
6118 (getChangeListeners): Implement.
6119 (setModel): Reset ChangeListener.
6120 * javax/swing/JScrollBar.java: Implement.
6121 * javax/swing/JSeparator.java: Implement.
6122 * javax/swing/JSlider.java:
6123 (JSlider(int, int, int, int)): Throw
6124 IllegalArgumentException if orientation
6126 (getChangeListeners): Fix method name.
6127 * javax/swing/SwingUtilities.java:
6128 (layoutCompoundLabel): If there is no text,
6129 set the text rectangle dimensions to 0.
6130 * javax/swing/plaf/basic/BasicButtonUI.java:
6131 (paint): If there is no text, don't paint it.
6132 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6134 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6136 * javax/swing/plaf/basic/BasicSliderUI.java:
6137 (propertyChange): If the model changes, change
6138 the listeners accordingly.
6140 2004-02-25 Graydon Hoare <graydon@redhat.com>
6142 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6143 * javax/swing/JList.java: Reimplement.
6144 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6145 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6146 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6147 * javax/swing/ListModel.java: Javadoc.
6148 * javax/swing/ListSelectionModel.java: Add missing methods.
6149 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6150 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6151 * javax/swing/ListModel.java: Javadoc and corrections.
6152 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6154 2004-02-25 David Jee <djee@redhat.com>
6156 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6157 (GtkFontPeer): Change default size to 12.
6158 * gnu/java/awt/peer/gtk/GtkToolkit.java
6159 (getFontPeer): Change default size to 12.
6160 (getClasspathFontPeer): Likewise. Set default name to "Default".
6161 * java/awt/Font.java
6162 (Font(Map)): Call Font(String,Map).
6163 (Font(String,Map)): If attrs is null, initialize it as an empty
6164 HashMap, which will ensure that the Font will get default attributes.
6166 2004-02-25 David Jee <djee@redhat.com>
6168 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6169 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6170 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6171 * gnu/java/awt/peer/gtk/GtkToolkit.java
6172 (getFontPeer(String,int)): Call the new overload method with size 1.
6173 (getFontPeer(String,int,int)): New method. Overloaded with size
6175 (getClasspathFontPeer): Set the size of the font.
6177 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6179 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6180 (bimage): New field.
6181 (GdkGraphics2D): New Constructor. Constructs Graphics
6182 object that can be used to draw into the Buffered Image.
6183 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6184 (GdkGraphicsEnvironment): Fixed to include public
6186 (createGraphics): Implemented.
6187 * gnu/java/awt/peer/gtk/GtkToolkit.java
6188 (getLocalGraphicsEnvironment): Implemented.
6189 * java/awt/GraphicsEnvironment.java:
6190 (getLocalGraphicsEnvironment): Implemented.
6191 * java/awt/image/BufferedImage.java:
6192 (createGraphics): Implemented.
6194 2004-02-24 David Jee <djee@redhat.com>
6196 * java/awt/Component.java
6197 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6198 * java/awt/Container.java
6199 (addNotifyContainerChildren): Fix event enabling.
6201 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6203 * Makefile.am: Added
6204 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6205 * Makefile.in: Re-generated.
6206 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6209 2004-02-19 Kim Ho <kho@redhat.com>
6211 * Makefile.am: Add BasicProgressBarUI
6212 * Makefile.in: Regenerate.
6213 * javax/swing/JProgressBar.java:
6215 * javax/swing/plaf/basic/BasicLookAndFeel.java
6216 Add constants for JProgressBar.
6217 * javax/swing/plaf/basic/BasicProgressBarUI.java
6219 * javax/swing/plaf/basic/BasicSliderUI.java
6221 (calculateGeometry): New method
6222 (paint): Remove unnecessary size calculations.
6224 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6226 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6227 (drawRaster): Fixed small error that caused
6228 imageToUser transformation to be set incorrectly.
6229 (toString): Implemented.
6231 2004-02-18 David Jee <djee@redhat.com>
6233 * java/awt/CardLayout.java
6234 (addLayoutComponent): Show the first component added as the default.
6235 (removeLayoutComponent): After removing, show the next component.
6236 (gotoComponent): If there is only one component, show it and return.
6238 2004-02-18 Kim Ho <kho@redhat.com>
6240 * javax/swing/JSlider.java: Re-order
6242 * javax/swing/JLabel.java: Re-order
6244 * javax/swing/JComponent.java:
6245 (addPropertyChangeListener):
6247 (removePropertyChangeListener):
6249 (firePropertyChangeEvent):
6252 2004-02-17 David Jee <djee@redhat.com>
6254 * java/awt/Component.java
6255 (show): Dispatch ComponentEvent via system event queue.
6259 (reshape): Likewise.
6260 * java/awt/Window.java
6261 (setBoundsCallback): Likewise.
6263 2004-02-17 David Jee <djee@redhat.com>
6265 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6266 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6267 Use gtk_widget_set_size_request() instead of the deprecated
6268 gtk_widget_set_usize().
6270 2004-02-17 Kim Ho <kho@redhat.com>
6272 * javax/swing/JSlider.java: Fix comments and
6273 make property strings constants.
6274 (createStandardLabels): Use the labels
6275 preferred size as bounds.
6276 * javax/swing/plaf/basic/BasicSliderUI.java
6278 (ScrollHandler::actionPerformed): Don't
6279 calculate the timer stop value. Let the
6280 MouseListeners find the stop location.
6281 (getPreferredHorizontalSize): Re-implement.
6282 (getPreferredVerticalSize): ditto.
6283 (getMinimumHorizontalSize): ditto.
6284 (getMinimumVerticalSize): ditto.
6285 (getPreferredSize): ditto.
6286 (getMinimumSize): ditto.
6287 (getMaximumSize): ditto.
6288 (paintTicks): Use doubles to find the
6290 (paintHorizontalLabel):Â Use preferredSize
6291 as initial width and height.
6292 (paintVerticalLabel): ditto.
6294 2004-02-17 Kim Ho <kho@redhat.com>
6296 * javax/swing/JLabel.java: Changed
6297 property strings to constants.
6298 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6300 (setText): Change mnemonic index if
6302 (setDisplayedMnemonicIndex): Fire property
6304 (getDisplayedMnemonicIndex): Remove check
6307 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6309 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6310 (drawImage(img,xform,obs)): Invert xform before
6311 passing the xform to cairo.
6312 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6313 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6315 (drawImage (img,x,y,w,h,obs)): Implemented.
6316 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6317 bgcolor,obs)): Partly implemented.
6318 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6320 * java/awt/image/BufferedImage.java:
6321 (copyData): if dest is null, create raster with same
6322 dimensions as the current image.
6324 2004-02-16 Graydon Hoare <graydon@redhat.com>
6326 * javax/swing/plaf/basic/BasicLabelUI.java
6327 (getPreferredSize): Use layoutCL.
6328 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6329 (getPreferredButtonSize): Start with empty view rect, layout using
6330 component's preferred alignment.
6331 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6334 2004-02-16 David Jee <djee@redhat.com>
6336 * java/awt/Component.java
6337 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6338 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6339 (move): Erase old bounds and repaint new bounds. Dispatch
6340 COMPONENT_MOVED ComponentEvent.
6341 (resize): Erase old bounds and repaint new bounds. Dispatch
6342 COMPONENT_RESIZED ComponentEvent.
6343 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6345 * java/awt/Window.java
6346 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6349 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6351 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6352 (setRenderingHint): Added implementation of
6353 Interpolation rendering hints.
6354 (setRenderingHints): Ditto.
6355 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6356 (drawPixels): fixed to allow user to choose type
6357 of filtering that should be used when displaying images.
6358 (cairoSurfaceSetFilter): New method. Sets filter type for
6359 interpolation of pixel values.
6361 2004-02-16 David Jee <djee@redhat.com>
6363 * java/awt/GridBagLayout.java
6364 (calcCellSizes): Rows or columns with zero sizes should still be
6365 considered for extra space distribution.
6367 2004-02-16 Kim Ho <kho@redhat.com>
6369 * javax/swing/JLabel.java: Re-implement.
6370 * javax/swing/plaf/basic/BasicLabelUI.java
6372 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6375 2004-02-16 Kim Ho <kho@redhat.com>
6377 * javax/swing/JSlider.java: Fix indentation and comments.
6378 (setModel): Remove null check to conform with Sun's.
6379 (setOrientation): Throw exception if not
6380 HORIZONTAL or VERTICAL.
6381 (getInverted): Use private variable instead of
6382 ComponentOrientation.
6383 (setInverted): ditto.
6384 * javax/swing/plaf/basic/BasicSliderUI.java:
6385 Fix indentation and comments.
6386 (propertyChange): Remove check for inverted slider, handle
6388 (getMinimumSize): Return preferred size.
6389 (getMaximumSize): ditto.
6390 (calculateFocusRect): Don't relocate rectangle.
6391 (drawInverted): Return XOR of the slider's inversion and
6392 the component's orientation.
6393 (paint): Update leftToRightCache
6395 2004-02-13 David Jee <djee@redhat.com>
6397 * java/awt/GridBagLayout.java
6398 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6399 code to helper methods.
6400 (sortBySpan): New helper method.
6401 (distributeSizeAndWeight): Likewise.
6402 (calcCellWeights): Likewise.
6403 (calcCellSizes): Add comments.
6405 2004-02-13 David Jee <djee@redhat.com>
6407 * java/awt/Component.java
6408 (show): Only do something if component is invisible at the moment.
6409 (hide): Only do something if component is visible at the moment.
6410 (reshape): If lightweight, erase old bounds and repaint new bounds.
6412 2004-02-13 Kim Ho <kho@redhat.com>
6414 * Makefile.am: Updated for new file.
6415 * Makefile.in: Regenerated.
6416 * javax/swing/JSlider.java: Reimplement.
6417 * javax/swing/SwingUtilities.java
6418 (layoutCompoundLabel): Use icon height
6420 (paintComponent): Implement.
6421 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6422 Add JSlider defaults.
6423 * javax/swing/plaf/basic/BasicSliderUI.java:
6424 Implement. New file.
6426 2004-03-17 Michael Koch <konqueror@gmx.de>
6428 * gnu/java/net/PlainDatagramSocketImpl.java
6429 (RECEIVE_LOCK): New member field.
6430 (SEND_LOCK): New member field.
6431 (send0): New method.
6432 (send): Synchronize on SEND_LOCK.
6433 (receive0): New method.
6434 (receive): Synchronize on RECEIVE_LOCK.
6435 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6436 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6437 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6438 (send0): Renamed from send.
6439 (receive0): Renamed from receive.
6440 2004-03-17 Michael Koch <konqueror@gmx.de>
6442 * gnu/java/net/natPlainSocketImplPosix.cc
6443 (write): Just call write(jbyteArray, offset, len).
6444 (read): Just call read(jbyteArray, offset, len).
6446 2004-03-16 Michael Koch <konqueror@gmx.de>
6448 * javax/swing/JTabbedPane.java
6449 (serialVersionUID): New field.
6451 2004-03-16 Norbert Frese <postfach@nfrese.net>
6453 * java/net/InetAddress.java
6454 (getByName): Handle hostname == "" case.
6456 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6458 Reported by: Adam Heath <doogie@debian.org>
6459 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6462 2004-03-15 Michael Koch <konqueror@gmx.de>
6464 * java/util/Locale.java: Reverting my last patch
6465 and add a comment why the original version was okay.
6467 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6469 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6470 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6471 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6472 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6474 2004-03-12 Michael Koch <konqueror@gmx.de>
6476 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6478 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6480 * java/net/URI.java (toURL): Implemented.
6482 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6485 (URI_REGEXP) updated to contain scheme specific part.
6486 (SCHEME_SPEC_PART_GROUP) new constant.
6487 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6488 updated to make room for SCHEME_SPEC_PART_GROUP.
6489 (parseURI) parse scheme specific part.
6490 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6491 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6492 getQuery, getFragment) implemented.
6494 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6496 * libraries/javalib/java/net/URI.java
6497 partially implemented using java.util.regex.
6498 (URI_REGEXP) new constant. Used to parse URIs.
6499 (SCHEME_GROUP) new constant representing index of scheme group
6501 (AUTHORITY_GROUP) new constant representing index of authority
6502 group in parsed URI.
6503 (PATH_GROUP) new constant representing index of path group in
6505 (QUERY_GROUP) new constant representing index of query group in
6507 (FRAGMENT_GROUP) new constant representing index of fragment
6508 group in parsed URI.
6509 (getURIGroup) new static utility method.
6510 (parseURI) implemented.
6511 (quote) stub for new static utility method.
6512 (quoteAuthority) stub for new static utility method.
6513 (quoteHost) stub for new static utility method.
6514 (quotePath) stub for new static utility method.
6515 (quoteUserInfo) stub for new static utility method.
6517 (create) don't throw URISyntaxException. Implemented.
6518 (toString) implemented.
6520 2004-03-12 Michael Koch <konqueror@gmx.de>
6522 * java/net/HttpURLConnection.java
6523 (getResponseCode): Fix another typo in javadoc.
6525 2004-03-11 Michael Koch <konqueror@gmx.de>
6527 * java/util/logging/Level.java
6528 (parse): Use String.equals() instead of ==.
6530 2004-03-11 Michael Koch <konqueror@gmx.de>
6532 * gnu/java/net/protocol/jar/Connection.java
6533 (getContentLength): New method.
6535 2004-03-11 Michael Koch <konqueror@gmx.de>
6537 * gnu/java/net/PlainSocketImpl.java:
6538 Reformated to merge better with classpath's version.
6540 2004-03-11 Michael Koch <konqueror@gmx.de>
6542 * java/util/Locale.java
6543 (getISO3Language): Use String.equals() instead of ==.
6544 (getISO3Country): Likewise.
6546 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6548 * java/text/AttributedString.java
6549 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6550 Use HashMap instead of Hashtable since value can be null, and
6551 you can not store a null value in a Hashtable.
6553 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6555 * java/text/AttributedStringIterator.java
6556 (getAllAttributesKey): Return only keys concerned
6557 by the current iterator.
6558 (getAttributes): Use strict inequality for
6561 2004-03-11 Michael Koch <konqueror@gmx.de>
6563 * java/net/HttpURLConnection.java:
6564 Fixed typo in javadoc.
6566 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6568 * java/io/BufferedInputStream.java (marktarget): New field for max
6570 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6571 (mark): Use new fields.
6573 (read(byte[],int,int)): Likewise.
6577 2004-03-11 Mark Wielaard <mark@klomp.org>
6579 * java/beans/BeanDescriptor.java (BeanDescriptor):
6580 Set the FeatureDescriptor programmatic name.
6582 2004-03-11 Michael Koch <konqueror@gmx.de>
6584 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6585 This file was was just copied form java/io/natFileDescriptorEcos.cc
6586 and never changed to compile correctly.
6588 2004-03-11 Michael Koch <konqueror@gmx.de>
6590 * gnu/java/nio/PipeImpl.java
6591 (SourceChannelImpl): Made final.
6592 (read): Implemented.
6593 (SinkChannelImpl): Made final.
6594 (write): Implemented.
6596 2004-03-11 Michael Koch <konqueror@gmx.de>
6598 * gnu/java/net/PlainDatagramSocketImpl.java:
6599 Reformated to match classpath's version more.
6601 2004-03-11 Michael Koch <konqueror@gmx.de>
6603 * gnu/java/awt/peer/ClasspathFontPeer.java:
6604 Fixed javadoc to be correct xhtml.
6605 * gnu/java/awt/peer/gtk/GtkArgList.java
6606 (add): Use Boolean.valueOf() instead of new Boolean().
6608 2004-03-09 Michael Koch <konqueror@gmx.de>
6610 * java/lang/Thread.java
6611 (runnable): Moved around.
6612 (daemon): Renamed from daemon_flag.
6613 (contextClassLoader): Renamed from context_class_loader.
6614 (Thread): Reordered constructors.
6615 (activeCount): Use group directly.
6616 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6617 (holdsLock): Reworked javadoc.
6618 (setDaemon): Reworked.
6619 * java/lang/natThread.cc
6622 2004-03-08 Anthony Green <green@redhat.com>
6624 * Makefile.am: Build property resource files into libgcj.
6625 * Makefile.in: Rebuilt.
6626 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6627 java/util/regex/PatternSyntaxException.java,
6628 gnu/regexp/CharIndexed.java,
6629 gnu/regexp/CharIndexedCharArray.java,
6630 gnu/regexp/CharIndexedInputStream.java,
6631 gnu/regexp/CharIndexedReader.java,
6632 gnu/regexp/CharIndexedString.java,
6633 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6634 gnu/regexp/REException.java,
6635 gnu/regexp/REFilterInputStream.java,
6636 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6637 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6638 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6639 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6640 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6641 gnu/regexp/RETokenLookAhead.java,
6642 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6643 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6644 gnu/regexp/RETokenStart.java,
6645 gnu/regexp/RETokenWordBoundary.java,
6646 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6648 2004-03-03 Per Bothner <per@bothner.com>
6650 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6651 Optimize when argument is a FileChannelImpl.
6652 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6654 * java/nio/channels/natChannels.cc: New file for new native methods.
6655 * Makefile.am: Update accordingly.
6657 2004-03-02 Jan Hubicka <jh@suse.cz>
6659 * configure.host: Pass -fno-omit-frame-pointer for i386.
6660 * configure.in: Likewise.
6661 * configure: Regenerate.
6663 2004-03-01 Per Bothner <per@bothner.com>
6665 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6667 2004-02-29 Per Bothner <per@bothner.com>
6669 * java/nio/channels/FileChannelImpl.java: Moved to package
6670 gnu/java/nio/channels, since we need to refer to it from java.io.
6671 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6672 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6673 from java/nio/channels. Don't depend on FileDescriptor.
6674 (in, out, err): New static fields.
6676 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6677 from FileDescriptor.
6678 (by): Removed MappedByteBuffer field.
6679 (map): New working implementation.
6680 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6681 some code "ported" from natFileDescriptoPosix.cc.
6682 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6683 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6684 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6685 Remove native methods.
6686 * Makefile.am, configure.in: Updated accordingly.
6688 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6689 (ch): New FileChannelImpl field. Update constructor to match.
6690 (releaseImpl): Remove native method. Instead ...
6691 (release): Call unlock on channel.
6692 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6694 * java/io/natFileDescriptorEcos.cc: Remove file.
6695 * java/io/natFileDescriptorPosix.cc: Remove file.
6696 * java/io/natFileDescriptorWin32.cc: Remove file.
6697 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6698 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6699 (<init>(FileChannelImpl)): New package-private constructor.
6700 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6701 (available, close, read, skip): Implement using FileChannelImpl.
6702 (getFD): Allocate FileDescriptor if needed.
6703 (getChannel): Is now trivial.
6704 * java/io/FileOutputStream.java: Corresponding changes.
6705 * java/io/RandomAccessFile.java: Corresponding changes.
6707 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6708 unmapImpl): New dummy methods, to be overridden by subclass.
6709 (finalize, isLoaded, load, force): New methods.
6710 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
6711 Now works, at least for read mapping.
6713 * java/lang/natPosixProcess.cc (startProcess): Implement standard
6714 streams using FileChannelImpl, not FileDescriptor.
6715 * java/lang/natWin32Process.cc (startProcess): Likewise.
6717 2004-02-28 Michael Koch <konqueror@gmx.de>
6719 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6722 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
6724 * java/io/ObjectInputStream.java
6725 (readClassDescriptor): Keep elements of the mapping non null.
6726 (checkTypeConsistency): New method.
6727 (readFields): Fixed main loop and base logic. Small reindentation.
6728 * java/io/ObjectStreamField.java
6729 (lookupField): New method to update the field reference.
6730 (checkFieldType): New method.
6731 * java/io/ObjectStreamClass.java
6732 (setClass, setFields): Call lookupField when building the field
6733 database. Check the real field type.
6735 2004-02-28 Michael Koch <konqueror@gmx.de>
6737 * java/nio/ByteOrder.java
6738 (nativeOrder): Use equals() to compare strings.
6740 2004-02-26 Michael Koch <konqueror@gmx.de>
6742 * gnu/java/nio/FileLockImpl.java
6743 (finalize): Made protected.
6744 * java/nio/channels/FileChannel.java
6745 (MapMode.READ_ONLY): Made final.
6746 (MapMode.READ_WRITE): Made final.
6747 (MapMode.PRIVATE): Made final.
6748 * java/nio/channels/SocketChannel.java
6749 (open): Simplified code.
6750 * java/nio/channels/spi/AbstractSelectableChannel.java
6751 (registered): Unused, removed.
6752 (keyFor): Check channel is open, only locate key
6753 and not add a new one.
6754 (register): Don't delete attachments.
6756 2004-02-26 Michael Koch <konqueror@gmx.de>
6758 * gnu/java/awt/ComponentDataBlitOp.java
6759 (INSTANCE): Made final.
6760 * gnu/java/awt/image/ImageDecoder.java:
6762 (cm): Unused, removed.
6764 2004-02-26 Michael Koch <konqueror@gmx.de>
6766 * gnu/java/nio/DatagramChannelImpl.java
6767 (send): Check if target address is resolved.
6769 2004-02-26 Michael Koch <konqueror@gmx.de>
6771 * Makefile.am: Generate and install headers for inner classes in
6772 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
6773 * Makefile.in: Regenerated.
6775 2004-02-24 Anthony Green <green@redhat.com>
6777 * java/lang/StringBuffer.java: No need to NULL out remainder of
6778 buffer since ensureCapacity_unsynchronized will have done this for
6781 2004-02-20 Michael Koch <konqueror@gmx.de>
6783 * gnu/java/net/protocol/jar/Handler.java
6784 (): Removed unneeded check for file != null. java.net.URL.getFile()
6785 returns an empty string but never null.
6787 2004-02-20 Michael Koch <konqueror@gmx.de>
6789 * gnu/gcj/convert/Convert.java
6790 (main): Use equals() to compare strings.
6792 2004-02-20 Michael Koch <konqueror@gmx.de>
6794 * javax/swing/AbstractButton.java: Made several constants final.
6795 (getRolloverSelectedIcon): Made public.
6796 (getSelectedIcon): Made public.
6798 2004-02-16 Per Bothner <per@bothner.com>
6800 * java/nio/CharBufferImpl.java: Inline super constructor.
6801 * java/nio/DoubleBufferImpl.java: Likewise.
6802 * java/nio/FloatBufferImpl.java: Likewise.
6803 * java/nio/IntBufferImpl.java: Likewise.
6804 * java/nio/LongBufferImpl.java: Likewise.
6805 * java/nio/ShortBufferImpl.java: Likewise.
6806 * java/nio/CharBuffer.java: Remove unused constructor.
6807 * java/nio/DoubleBuffer.java: Likewise.
6808 * java/nio/FloatBuffer.java: Likewise.
6809 * java/nio/IntBuffer.java: Likewise.
6810 * java/nio/LongBuffer.java: Likewise.
6811 * java/nio/ShortBuffer.java: Likewise.
6812 * java/nio/CharViewBufferImpl.java: New convenience constructor.
6813 Fix buggy call to super constructor.
6814 * java/nio/DoubleViewBufferImpl.java: Likewise.
6815 * java/nio/FloatViewBufferImpl.java: Likewise.
6816 * java/nio/IntViewBufferImpl.java: Likewise.
6817 * java/nio/LongViewBufferImpl.java: Likewise.
6818 * java/nio/ShortViewBufferImpl.java: Likewise.
6820 * java/nio/ByteBuffer.java (endian): Make non-private so other
6821 java.nio classes can inherit it.
6822 (<init>): Don't bother clearing array_offset.
6823 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
6824 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
6825 Remove redundant test.
6827 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
6828 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
6829 Use new XxxViewBufferImpl constructors.
6830 * java/nio/MappedByteBufferImpl.java: Likewise.
6831 * java/nio/DirectByteBufferImpl.java: Likewise.
6833 * java/nio/ByteBufferImpl.java: Remove one constructor.
6834 Inline super in remaining constructor.
6835 * java/nio/ByteBuffer.java: Remove unused constructor.
6837 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
6839 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
6840 * java/nio/DirectByteBufferImpl.java (owner): New field.
6841 (offset): Remove unused field.
6842 (<init>): Modify one and add another constructor. Change callers.
6843 (allocateDirect): Removed - not used.
6844 (getImpl, putImpl): Make static and pass address explicitly,
6845 to make them useful for MappedByteBufferImpl.
6846 (get, put): Check for underflow. Modify for new getImpl.
6847 (getImpl): New native method where target is array.
6848 (get(byte[],int,int)): Use the above.
6849 (adjustAddress): New static native method.
6850 (slice, duplicate, asReadOnly): New implementations.
6851 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
6852 adjustAddress): New or updated native methods.
6854 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
6856 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
6857 overflow of fieldmapping.
6859 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
6861 * javax/swing/undo/UndoManager.java: Re-written from scratch.
6863 2004-02-14 Per Bothner <per@bothner.com>
6865 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
6866 Set closed before calling implCloseChannel, as in the spec.
6868 2004-02-09 Graydon Hoare <graydon@redhat.com>
6870 * javax/swing/ToggleButtonModel.java: Remove dead class.
6871 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
6872 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
6873 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
6874 * Makefile.am: Update for new and removed files.
6875 * Makefile.in: Regenerate.
6877 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
6878 * javax/swing/AbstractButton.java
6879 (AbstractButton): Initialize fields correctly in ctor.
6880 * javax/swing/JCheckbox.java
6881 (JCheckBox): Override painting flags.
6882 * javax/swing/DefaultButtonModel.java: Conform to sun.
6883 * javax/swing/JComponent.java (paint): Fill with background color
6885 (processComponentKeyEvent)
6888 (processMouseMotionEvent): Remove event-consuming empty methods.
6889 (getUIClassID): Return "ComponentUI" not "JComponent"
6890 * javax/swing/JFrame.java: Remove some debugging chatter.
6891 (JFrame): Subscribe to window events.
6892 * javax/swing/JRadioButton.java
6893 (JRadioButton): Override painting flags.
6894 * javax/swing/JRootPane.java
6895 (JRootPane): Set background from UIDefaults.
6896 * javax/swing/JToggleButton.java
6897 (ToggleButtonModel): New inner class.
6898 (JToggleButton): Override layout alighment.
6899 * javax/swing/SwingUtilities.java:
6900 (getLocalBounds): Return width and height, not x and y.
6901 (calculateInnerArea): Use local bounds, not bounds.
6902 (layoutCompoundLabel): Provide overridden form.
6903 (layoutCompoundLabel): Correct bugs.
6904 * javax/swing/UIDefaults.java: Correct comment.
6905 * javax/swing/plaf/basic/BasicButtonUI.java:
6906 Move most logic into defaults, external listener.
6907 (paintIcon): Implement icon painting.
6908 (paint): Fix state painting to conform to changes in model.
6909 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
6910 Remove most dead/wrong methods.
6911 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
6912 * javax/swing/plaf/basic/BasicIconFactory.java:
6913 (DummyIcon): New class.
6914 (getMenuItemCheckIcon)
6915 (getMenuItemArrowIcon)
6917 (getCheckBoxMenuItemIcon)
6918 (getRadioButtonMenuItemIcon)
6919 (createEmptyFrameIcon): Return DummyIcons, not null.
6920 (getCheckBoxIcon): Implement an icon that looks like sun's.
6921 (getRadioButtonIcon): Implement an icon that looks like sun's.
6922 * javax/swing/plaf/basic/BasicLookAndFeel.java
6923 (initComponentDefaults): Fix impossible values, add some missing.
6924 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
6925 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
6926 Remove most dead/wrong methods.
6928 (getDefaultIcon): New method.
6929 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
6930 Remove most dead/wrong methods.
6931 * javax/swing/plaf/metal/MetalLookAndFeel.java
6932 (getDefaults): Return super.getDefaults(), not BasicDefaults.
6933 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6934 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
6935 Implement "clearing" as drawing, when on pixmap drawables.
6937 * javax/swing/JButton.java (getUIClassID):
6938 * javax/swing/JCheckBox.java (getUIClassID):
6939 * javax/swing/JEditorPane.java (getUIClassID):
6940 * javax/swing/JLabel.java (getUIClassID):
6941 * javax/swing/JList.java (getUIClassID):
6942 * javax/swing/JOptionPane.java (getUIClassID):
6943 * javax/swing/JPanel.java (getUIClassID):
6944 * javax/swing/JPasswordField.java (uiClassID):
6945 * javax/swing/JRadioButton.java (getUIClassID):
6946 * javax/swing/JRootPane.java (getUIClassID):
6947 * javax/swing/JScrollPane.java (getUIClassID):
6948 * javax/swing/JTabbedPane.java (getUIClassID):
6949 * javax/swing/JToggleButton.java (getUIClassID):
6950 * javax/swing/JTree.java (getUIClassID):
6951 * javax/swing/JViewport.java (getUIClassID):
6952 * javax/swing/text/JTextComponent.java (getUIClassID):
6953 Return "fooUI" not "Jfoo"
6955 2004-02-11 Michael Koch <konqueror@gmx.de>
6957 * java/net/DatagramSocket.java
6958 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
6960 (setBroadcast): Likewise.
6961 * java/net/MulticastSocket.java
6962 (setLoopbackMode): Likewise.
6963 * java/net/ServerSocket.java
6964 (setReuseAddress): Likewise.
6965 * java/net/Socket.java
6966 (setTcpNoDelay): Likewise.
6967 (setSoLinger): Likewise.
6968 (setOOBInline): Likewise.
6969 (setKeepAlive): Likewise.
6970 (setReuseAddress): Likewise.
6971 * java/net/URLConnection.java
6972 (setContentHandler): Replace == with equals().
6973 * java/net/URLStreamHandler.java
6974 (hostSEquals): Fix checking host addresses.
6975 (toExternalForm): Dont check protocol for null. We know already its
6978 2004-02-10 David Jee <djee@redhat.com>
6980 * java/awt/BorderLayout.java
6981 (calcCompSize): Invisible components get zero dimensions.
6982 * java/awt/Button.java
6983 (setLabel): Set actionCommand.
6984 * java/awt/Component.java
6985 (show): Invalidate component and parent container.
6988 2004-02-10 David Jee <djee@redhat.com>
6990 * java/awt/GridBagLayout.java
6991 (GridBagLayout): New private field, internalcomptable.
6992 (lookupInternalConstraints): New method.
6993 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
6994 (GetLayoutInfo): Reimplement.
6995 (calcCellSizes): Ignore rows/columns with size 0.
6997 2004-02-10 Michael Koch <konqueror@gmx.de>
6999 * gnu/java/awt/EmbeddedWindow.java
7000 (setHandle): Use java.awt.Component.getPeer() instead of
7001 java.awt.Component.peer directly.
7003 2004-02-10 David Jee <djee@redhat.com>
7005 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7006 (gtkSetLabel): New native method definition.
7007 (setLabel): Use gtkSetLabel.
7008 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7009 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7011 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7013 * include/powerpc-signal.h: Revert 2004-01-21 change.
7014 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7015 from syscall for ppc32 versions.
7017 2004-02-08 Per Bothner <per@bothner.com>
7019 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7020 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7021 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7022 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7023 Pass ByteOrder parameter to most methods, since the underlying
7024 ByteBuffer's order isn't always what we should use.
7025 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7026 * java/nio/DirectByteBufferImpl.java: Likewise.
7027 Use ByteBufferHelper methods.
7028 * java/nio/MappedByteBufferImpl.java: Likewise.
7029 (compact): Use shiftDown.
7030 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7031 (get, put): Use ByteBufferHelper.
7032 (compact): Use new shiftDown method.
7033 (duplicate(boolean)): New helper method.
7034 (duplicate, asReadOnlyBuffer): Use it.
7035 (order): Return endian field.
7036 * java/nio/DoubleViewBufferImpl.java: Likewise.
7037 * java/nio/FloatViewBufferImpl.java: Likewise.
7038 * java/nio/IntViewBufferImpl.java: Likewise.
7039 * java/nio/LongViewBufferImpl.java: Likewise.
7040 * java/nio/ShortViewBufferImpl.java: Likewise.
7041 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7042 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7043 (compact): Re-implement using shiftDown.
7045 2004-02-08 Andreas Jaeger <aj@suse.de>
7047 * include/x86_64-signal.h: Fix typo.
7049 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7051 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7053 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7055 2004-02-06 Michael Koch <konqueror@gmx.de>
7057 * java/io/ObjectInputStream.java
7058 (currentClassLoader): Reverted to old version of this method.
7060 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7062 * java/io/ObjectInputStream.java: Made all calls
7063 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7064 use cached info from ObjectStreamClass. (readClassDescriptor):
7065 Cache more information in ObjectStreamClass. (processResolution,
7066 readFields): Use cached info from ObjectStreamClass.
7067 (newObject): Throw exception instead of returning null for failure.
7068 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7069 setCharField, setDoubleField, setFloatField, setIntField,
7070 setLongField, setShortField, setObjectField, readObjectParams):
7071 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7073 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7074 (setClass): Added call to cacheMethods() (findMethod): New method.
7075 (cacheMethods): New method. (ObjectStreamClass): Added call to
7076 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7077 AccessController.doPrivileged to invoke setAccessible.
7078 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7079 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7081 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7082 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7083 isPrimitive): Made safe for cases where type == null.
7084 (setBooleanField, setByteField, setCharField, setShortField,
7085 setIntField, setLongField, setFloatField, setDoubleField,
7086 setObjectField): New methods.
7088 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7090 * java/awt/Component.java (getFont): Return a default font
7093 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7094 (Scrollbar (int, int, int, int, int)): Make default page
7096 (setValues): Only call peer.setValues if one of the values has
7098 (generateName): New method.
7099 (getUniqueLong): New method.
7100 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7101 (range_scrollbar): Remove structure.
7102 (post_adjustment_event): Remove function.
7103 (post_change_event): Accept jobject argument.
7104 (create): Cast jints to gdoubles. Round scrollbar values to the
7105 nearest integer. Clamp min, max and value settings.
7106 (connectJObject): Connect hook to widget->window.
7107 (connectSignals): Remove range_scrollbar structure variables.
7108 Remove "move-slider" connection. Pass global peer reference to
7109 "value-changed" callback.
7110 (setLineIncrement): Cast jint value to gdouble.
7111 (setPageIncrement): Likewise.
7112 (setValues): Likewise. Clamp min, max and value settings.
7114 2004-02-05 Michael Koch <konqueror@gmx.de>
7116 * javax/swing/AbstractCellEditor.java
7117 (getCellEditorValue): Removed.
7118 * javax/swing/Box.java: Reformated.
7119 (serialVersionUID): New field.
7120 * javax/swing/ButtonGroup.java:
7121 Removed some weird whitespace.
7122 * javax/swing/CellEditor.java: Reformated.
7123 * javax/swing/CellRendererPane.java
7124 (serialVersionUID): New field.
7125 (AccessibleCellRendererPaneserialVersionUID): New field.
7126 * javax/swing/DefaultListModel.java
7127 (serialVersionUID): New field.
7128 * javax/swing/JEditorPane.java
7129 (serialVersionUID): New field.
7130 (setPage): Throws IOException.
7131 (addHyperlinkListener): Implemented.
7132 (removeHyperlinkListener): Implemented.
7133 (getHyperlinkListener): New method.
7134 * javax/swing/JFileChooser.java
7135 (serialVersionUID): New field.
7136 (AccessibleJFileChooser.serialVersionUID): New field.
7137 (addActionListener): Implemented.
7138 (removeActionListener): Implemented.
7139 (getActionListeners): New method.
7140 * javax/swing/JFormattedTextField.java
7141 (serialVersionUID): New field.
7142 (AbstractFormatter.serialVersionUID): New field.
7143 (clone): Throws CloneNotSupportedException
7144 (setEditValid): Add missing argument.
7145 (stringToValue): Throws ParseExcpetion.
7146 (valueToString): Throws ParseException.
7147 (commitEdit): Throws ParseException.
7148 * javax/swing/JLabel.java
7149 (serialVersionUID): New field.
7150 * javax/swing/JList.java
7151 (serialVersionUID): New field.
7152 (addListSelectionListener): Reformated.
7153 (removeListSelectionListener): Reformated.
7154 (getListSelectionListeners): New method.
7155 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7157 (serialVersionUID): New field.
7158 * javax/swing/table/AbstractTableModel.java
7159 (getValueAt): Removed.
7160 (getColumnCount): Removed.
7161 (getRowCount): Removed.
7163 2004-02-05 Michael Koch <konqueror@gmx.de>
7165 * java/awt/datatransfer/DataFlavor.java
7166 (imageFlavor): Javadoc added.
7167 (javaJVMLocalObjectType): Fixed.
7169 2004-02-05 Michael Koch <konqueror@gmx.de>
7171 * java/lang/Thread.java
7172 (Thread): Reordered.
7173 (setContextClassLoader): Fixed javadoc comment.
7174 (setPriority): Reordered.
7176 (initialize_native): Reordered.
7177 (gen_name): Reordered.
7179 2004-02-05 Michael Koch <konqueror@gmx.de>
7181 * java/lang/Thread.java: Reordered fields, reformated much code,
7182 no functional changes, some variables renamed, javadoc comments
7185 2004-02-05 Michael Koch <konqueror@gmx.de>
7187 * java/util/zip/Deflater.java,
7188 java/util/zip/DeflaterOutputStream.java,
7189 java/util/zip/GZIPInputStream.java:
7190 Reformated and javadoc comments merged from classpath.
7192 2004-02-05 Michael Koch <konqueror@gmx.de>
7194 * gnu/java/nio/NIOServerSocket.java
7195 (impl): Unused, removed.
7196 * gnu/java/nio/SocketChannelImpl.java
7197 (finnishConnect): Don't throw NoConnectionPendingException if not
7198 connected or no connection pending.
7200 2004-02-02 Graydon Hoare <graydon@redhat.com>
7202 * javax/swing/SwingUtilities.java: Many new functions.
7203 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7204 * javax/swing/basic/BasicGraphicsUtils.java
7205 (getPreferredButtonSize): Start layout from top-left corner.
7207 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7209 * java/awt/geom/AffineTransform.java:
7210 Corrected comments on the field definitions for
7212 (shear): Fixed few errors that caused shear
7213 transformation to be performed incorrectly.
7214 (createInverse): Fixed to return correct
7215 inverse of the given matrix.
7217 2004-02-03 Tom Tromey <tromey@redhat.com>
7219 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7220 PATH or LD_LIBRARY_PATH is not set in parent environment.
7222 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7224 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7225 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7226 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7227 java/awt/Component.java, java/awt/Container.java,
7228 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7229 java/awt/LayoutManager2.java, java/awt/List.java,
7230 java/awt/Menu.java, java/awt/MenuBar.java,
7231 java/awt/MenuItem.java, java/awt/Polygon.java,
7232 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7233 java/awt/Scrollbar.java, java/awt/TextArea.java,
7234 java/awt/TextField.java,
7235 java/awt/image/renderable/RenderContext.java,
7236 javax/swing/JApplet.java: Fix handling of alias methods, where a
7237 method has been deprecated in favour of a new one with the same
7238 funtion but a different name. Put the method implementation in
7239 the deprecated method and have the new method call the
7240 deprecated one. Make all other code call the new method.
7242 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7244 * gnu/java/nio/DatagramChannelImpl.java
7245 (inChannelOperation): New field.
7246 (isInChannelOperation): New accessor.
7247 (setInChannelOperation): New modifier.
7248 (receive): Use capacity() - position() of destination
7249 buffer instead of remaining(). Set and reset our "in
7250 channel operation indicator" before and after delegating
7251 the receive to our datagram socket. Removed testing code.
7252 Update destination buffer's current position if it is
7253 backed by a byte array (hasArray() is true).
7254 (send): Set and reset our "in channel operation indicator"
7255 before and after delegating the send to our datagram socket.
7256 Removed testing code. Update source buffer's current position
7257 if it is backed by a byte array (hasArray() is true).
7258 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7259 Use capacity() - position() of destination buffer instead
7261 * java/net/DatagramSocket.java (receive): Don't throw an
7262 IllegalBlockingModeException if we have a non-blocking
7263 channel which initiated this operation.
7266 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7268 * configure.in: Add pkgconfig check for glib and gthread.
7269 * configure: Regenerate.
7271 2004-02-01 Michael Koch <konqueror@gmx.de>
7273 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7275 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7276 * verify.cc (debug_print): Mark 'fmt' unused.
7278 2004-01-30 Michael Koch <konqueror@gmx.de>
7280 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7281 * configure: Regenerated.
7282 * glib-2.0.m4: Removed.
7283 * gtk-2.0.m4: Removed.
7284 * libart.m4: Removed.
7287 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7289 * gnu/java/net/PlainSocketImpl.java
7290 (inChannelOperation): New field.
7291 (isInChannelOperation): New accessor.
7292 (setInChannelOperation): New modifier.
7293 * gnu/java/nio/ServerSocketChannelImpl.java
7294 (accept): Set and reset our server socket's PlainSocketImpl's
7295 "in channel operation" indicator before and after delegating
7296 the accept to our server socket.
7297 * gnu/java/nio/SocketChannelImpl.java
7298 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7299 operation" indicator before and after delegating the operation to
7303 * java/net/ServerSocket.java (implAccept): Don't throw an
7304 IllegalBlockingModeException if we have a non-blocking
7305 channel which initiated this accept operation.
7306 * java/net/Socket.java (connect): Don't throw an
7307 IllegalBlockingModeException if we have a non-blocking
7308 channel which initiated this connect operation.
7309 * java/nio/channels/spi/AbstractSelectableChannel.java
7310 (configureBlocking): Only call implConfigureBlocking() if
7311 the desired blocking mode is different from our current one.
7313 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7315 * java/io/BufferedReader.java (sbuf): New field.
7316 (readLine): Use String.valueOf instead of new String() as per
7317 Per Bothner's suggestion. Use instance sbuf field instead of a
7318 local StringBuffer instance.
7319 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7320 caller's buffer to refill().
7321 (read(void)): Pass our internal work buffer to refill if our
7322 input queue is empty.
7323 (refill): Changed return type to int. Use the specified buffer
7324 instead of our work buffer as per Bryce McKinlay's suggestion.
7325 Return the number of characters read or -1 for EOF.
7327 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7329 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7331 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7333 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7334 * Makefile.in: Re-generated.
7335 * gnu/awt/xlib/XFontPeer.java: New file.
7336 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7337 (setClip): Commented out debug printout.
7338 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7339 (getFontPeer): Return XFontPeer.
7340 (getLocalGraphicsEnvironment): New method.
7341 (getClasspathFontPeer): New method.
7342 (createFont): New method.
7344 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7346 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7349 2004-01-29 Kim Ho <kho@redhat.com>
7351 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7352 (gtkLayoutSetVisible): New method
7353 (setMenuBar): Hide layout before setting MenuBar
7354 and reshow it after.
7355 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7356 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7358 2004-01-28 Michael Koch <konqueror@gmx.de>
7360 * gnu/java/lang/ClassHelper.java
7361 (getPackagePortion): Removed.
7363 2004-01-28 Michael Koch <konqueror@gmx.de>
7365 * javax/swing/JComponent.java
7366 (listenerList): Initalize globally.
7367 (ancestor_list): Removed.
7368 (veto_list): Removed.
7369 (change_list): Removed.
7370 (get_veto_list): Removed.
7371 (get_change_list): Removed.
7372 (get_ancestor_list): Removed.
7373 (removeAncestorListener): Reimplemented.
7374 (removePropertyChangeListener): Likewise.
7375 (removeVetoableChangeListener): Likewise.
7376 (addAncestorListener): Likewise.
7377 (addPropertyChangeListener): Likewise.
7378 (addVetoableChangeListener): Likewise.
7379 (getListeners): New method.
7380 (getAncestorListeners): Likewise.
7381 (getVetoableChangeListeners): Likewise.
7382 (fireVetoableChange): Throws PropertyVetoException.
7383 * javax/swing/JEditorPane.java
7384 (JEditorPane): Throws IOException.
7386 2004-01-28 David Jee <djee@redhat.com>
7388 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7389 (create): Set the default foreground color to
7390 java.awt.SystemColor.windowText.
7392 2004-01-27 Michael Koch <konqueror@gmx.de>
7394 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7395 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7396 Reindented to merge with classpath.
7398 2004-01-27 David Jee <djee@redhat.com>
7400 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7401 (addExposeFilter): Handle GtkFramePeer separately.
7402 (removeExposeFilter): Likewise.
7404 2004-01-27 Michael Koch <konqueror@gmx.de>
7406 * gnu/java/net/protocol/http/Connection.java
7407 (getOutputStream): Fixed typo.
7409 2004-01-27 Michael Koch <konqueror@gmx.de>
7411 * java/lang/Class.java
7412 (getConstructor): Removed SecurityException from throws clause.
7413 (_getConstructors): Likewise.
7414 (getConstructors): Likewise.
7415 (getDeclaredConstructor): Likewise.
7416 (getDeclaredClasses): Likewise.
7417 (getDeclaredConstructors): Likewise.
7418 (getDeclaredField): Likewise.
7419 (getDeclaredMethod): Likewise.
7420 (getDeclaredMethods): Likewise.
7421 (getField): Likewise.
7422 (getMethod): Likewise.
7423 (getMethods): Likewise.
7425 2004-01-27 Kim Ho <kho@redhat.com>
7427 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7428 (removeMenuBarPeer): Remove MenuBarPeer argument.
7429 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7430 (dispose): Call native method.
7431 * java/awt/Frame.java (setMenuBar): Create and remove
7432 MenuBar peers only if the Frame has a peer.
7433 (addNotify): Create the MenuBar peer if one exists.
7434 (removeNotify): Remove MenuBar peer if one exists.
7435 * java/awt/Menu.java: Fix imports.
7436 (addNotify): Don't use full class name.
7437 (removeNotify): Call removeNotify on all children.
7438 * java/awt/MenuBar.java (removeNotify): Call
7439 removeNotify on all children.
7440 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7441 (removeMenuBarPeer): Remove MenuBarPeer argument.
7442 Iterate through children to find the Frame's MenuBar.
7443 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7445 (dispose): Remove references to the MenuComponent.
7447 2004-01-27 Michael Koch <konqueror@gmx.de>
7449 * javax/swing/AbstractCellEditor.java: Reformated.
7450 * javax/swing/DefaultListSelectionModel.java
7451 (listenerList): Made protected.
7452 (addListSelectionListener): Javadoc added.
7453 (removeListSelectionListener): Likewise.
7454 (getListeners): Likewise.
7455 (getListSelectionListeners): Likewise.
7456 * javax/swing/JComboBox.java: Merged copyright year.
7457 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7459 2004-01-26 Andrew Haley <aph@redhat.com>
7461 * javax/swing/table/JTableHeader.java: Extend JComponent
7463 2004-01-26 Kim Ho <kho@redhat.com>
7465 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7468 2004-01-26 Kim Ho <kho@redhat.com>
7470 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7472 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7473 height and let the Layout Managers readjust anything that
7475 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7476 (moveLayout): New method. Shift everything in the Gtk
7477 layout in the Y direction by an offset.
7479 2004-01-26 David Jee <djee@redhat.com>
7481 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7482 (handleEvent): Implemented. Handles PaintEvents.
7483 (paint): Implemented. Use GTK native methods to queue updates
7484 for this heavyweight peer.
7485 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7486 (handleEvent): Removed.
7487 * java/awt/Component.java
7488 (paint): Implemented. Explictly paint the heavyweight peer.
7489 (update): Clear the background for heavyweight components.
7490 (paintAll): No need to call peer.paint() anymore.
7491 (processEvent): Don't process PaintEvents here. It's now done in
7492 the peer's handleEvent().
7493 (processPaintEvent): Removed.
7494 * java/awt/Container.java
7495 (paint): No need to call super.paint(). Visit heavyweight
7497 (update): Don't clear the background here. It's done in
7499 (visitChildren): Added check to not recurse into Containers.
7500 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7501 (filter_expose_event_handler): New method. Filter unwanted
7502 expose events while painting heavyweight peers.
7503 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7504 New method. Connect filter and block pre_event_handler.
7505 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7506 New method. Disconnect filter and unblock pre_event_handler.
7507 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7508 New method. Invalidate and update given area.
7509 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7510 (pre_event_handler): Add checks for unwanted expose events.
7512 2004-01-26 David Jee <djee@redhat.com>
7514 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7515 (find_bg_color_widget): For GtkButton, return its child.
7517 2004-01-26 Kim Ho <kho@redhat.com>
7519 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7521 (setMenuBar): Grab MenuBar height and change insets.
7522 (setBounds): Account for MenuBar height.
7523 (postInsetsChangedEvent): Ditto.
7524 (postSizeAllocateEvent): Remove.
7525 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7526 (menubar_resize_cb): Remove
7527 (setMenuBarPeer): Remove callback.
7528 (getMenuBarHeight): Use size requisition instead of
7531 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7533 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7534 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7536 (setColumns): Remove FIXME -- peer will retrieve number of
7537 columns by calling getColumns.
7538 (setRows): Likewise for number of rows.
7539 (next_text_number): New field.
7540 (paramString): Fix param string.
7541 (generateName): New method.
7542 (getUniqueLong): New method.
7544 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7546 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7547 image observer of image loading status.
7548 (getImage (String)): Start image production.
7549 (getImage (URL)): Likewise.
7551 2004-01-25 Michael Koch <konqueror@gmx.de>
7553 * java/lang/Class.java: Imports reworked, reformated.
7554 (Class): Javadoc added.
7555 (forName): Likewise.
7556 (getClasses): Likewise.
7557 (getClassLoader): Likewise.
7558 (getComponentType): Likewise.
7559 (getConstructor): Likewise.
7560 (getConstructors): Likewise.
7561 (getDeclaredConstructor): Likewise.
7562 (getDeclaredClasses): Likewise.
7563 (getDeclaredConstructors): Likewise.
7564 (getDeclaredField): Likewise.
7565 (getDeclaredMethod): Likewise.
7566 (getDeclaredMethods): Likewise.
7567 (getDeclaringClass): Likewise.
7568 (getField): Likewise.
7569 (getInterfaces): Likewise.
7570 (getMethod): Likewise.
7571 (getMethods): Likewise.
7572 (getModifiers): Likewise.
7573 (getName): Likewise.
7574 (getResource): Likewise.
7575 (getResourceAsStream): Likewise.
7576 (getSigners): Likewise.
7577 (setSigners): Likewise.
7578 (getSuperclass): Likewise.
7579 (isArray): Likewise.
7580 (isAssignableFrom): Likewise.
7581 (isInstance): Likewise.
7582 (isInterface): Likewise.
7583 (isPrimitive): Likewise.
7584 (newInstance): Likewise.
7585 (getProtectionDomain): Likewise.
7586 (toString): Likewise.
7588 (initializeClass): Likewise.
7589 (finalize): Likewise.
7591 2004-01-24 Michael Koch <konqueror@gmx.de>
7593 * gnu/java/net/protocol/jar/Connection.java
7596 (gotHeaders): Removed.
7597 (getHeaderField): Removed.
7598 (getHeaderFields): Removed.
7599 (getHeaderFieldKey): Removed.
7601 (getField): Removed.
7602 (getHeaders): Removed.
7604 2004-01-24 Michael Koch <konqueror@gmx.de>
7606 * Makefile.am: Added library version to gtk peer lib.
7607 * Makefile.in: Regenerated.
7609 2004-01-24 Michael Koch <konqueror@gmx.de>
7611 * java/util/zip/InflaterInputStream.java: Merged class documentation
7614 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7616 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7617 header. For __powerpc64__ provide the default-signal.h definitions
7619 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7620 instead of the dummy definitions.
7621 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7622 (powerpc64*-*): Remove with_libffi_default.
7623 Only add -mminimal-toc for 64-bit compilations.
7624 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7625 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7626 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7627 * configure: Rebuilt.
7629 2004-01-23 Michael Koch <konqueror@gmx.de>
7631 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7633 2004-01-23 Michael Koch <konqueror@gmx.de>
7635 * java/lang/VMClassLoader.java: Reworked imports.
7637 2004-01-23 Michael Koch <konqueror@gmx.de>
7639 * javax/swing/AbstractAction.java: Reformated.
7641 2004-01-23 Michael Koch <konqueror@gmx.de>
7643 * java/text/CollationElementIterator.java:
7644 (setText): New method.
7646 2004-01-23 Michael Koch <konqueror@gmx.de>
7648 * gnu/java/nio/FileLockImpl.java:
7649 Fixed filename in copyright.
7650 (released): Removed.
7651 (finalize): New method.
7652 * gnu/java/nio/natFileLockImpl.cc
7653 (releaseImpl): Implemented.
7654 * java/nio/channels/FileChannelImpl.java:
7656 (lock): Implemented.
7657 (lockImpl): New method.
7658 (tryLock): Implemented.
7659 (tryLockImpl): New method.
7660 * java/nio/channels/natFileChannelImpl.cc
7661 (lockImpl): New method.
7662 (tryLockImpl): New method.
7664 2004-01-23 Michael Koch <konqueror@gmx.de>
7666 * java/io/FileDescriptor.java
7668 (tryLock): New method.
7669 (unlock): New method.
7670 * java/io/natFileDescriptorEcos.cc
7672 (tryLock): New method.
7673 (unlock): New method.
7674 * java/io/natFileDescriptorPosix.cc
7676 (tryLock): New method.
7677 (unlock): New method.
7678 * java/io/natFileDescriptorWin32.cc
7680 (tryLock): New method.
7681 (unlock): New method.
7683 2004-01-23 Michael Koch <konqueror@gmx.de>
7685 * java/io/FileDescriptor.java
7686 (sync): Moved around, added javadoc.
7691 (setLength): Likewise.
7693 (getLength): Likewise.
7694 (getFilePointer): Likewise.
7696 (available): Likewise.
7697 (finalize): Likewise.
7699 2004-01-23 Michael Koch <konqueror@gmx.de>
7701 * javax/swing/AbstractAction.java: Reformated.
7702 (getPropertyChangeListeners): New method.
7703 * javax/swing/AbstractCellEditor.java: Reformated.
7704 (getCellEditorListeners): New method.
7705 * javax/swing/DefaultListSelectionModel.java
7706 (listenerList): New field.
7707 (listeners): Removed.
7708 (get_listeners): Removed.
7709 (addListSelectionListener): Rewritten.
7710 (removeListSelectionListener): Rewritten.
7711 (getListSelectionListeners): New method.
7712 (getListeners): New method.
7713 * javax/swing/JComboBox.java: Imports reworked.
7714 (addActionListener): Implemented.
7715 (removeActionListener): Implemented.
7716 (addItemListener): Implemented.
7717 (removeItemListener): Implemented.
7718 (addPopupMenuListener): Implemented.
7719 (removePopupMenuListener): Implemented.
7720 (getActionListeners): New method.
7721 (getItemListeners): New method.
7722 (getPopupMenuListeners): New method.
7724 2004-01-23 Michael Koch <konqueror@gmx.de>
7726 * gnu/java/net/protocol/http/Connection.java
7727 (connect): Don't initialize bufferedOutputStream if not needed.
7728 (sendRequest): Set property for content length if content is present.
7729 Write content only if present.
7730 (getOutputStream): Check if already connected, dont connect,
7731 initalize bufferedOutputStream if needed.
7733 2004-01-23 Michael Koch <konqueror@gmx.de>
7735 * java/io/FileDescriptor.java
7736 (in, out, err): Added javadoc.
7737 (static): Merged loading code.
7738 (fd, position): Moved around.
7740 2004-01-23 Michael Koch <konqueror@gmx.de>
7742 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
7745 2004-01-23 Michael Koch <konqueror@gmx.de>
7747 * java/lang/Class.java,
7748 java/lang/Object.java,
7749 java/lang/Thread.java: Merged copyright with classpath.
7751 2004-01-23 Michael Koch <konqueror@gmx.de>
7753 * java/io/FileDescriptor.java: Merged copyright with classpath to
7754 start merging this class.
7756 2004-01-22 Tom Tromey <tromey@redhat.com>
7759 * testsuite/libjava.lang/pr13107_2.xfail: New file.
7760 * testsuite/libjava.lang/pr13107_3.xfail: New file.
7761 * testsuite/libjava.lang/pr13107_3.java: New file.
7762 * testsuite/libjava.lang/pr13107_3.out: New file.
7763 * testsuite/libjava.lang/pr13107_2.java: New file.
7764 * testsuite/libjava.lang/pr13107_2.out: New file.
7765 * testsuite/libjava.lang/pr13107.java: New file.
7766 * testsuite/libjava.lang/pr13107.out: New file.
7767 * verify.cc (jsr_ptrs): Removed.
7768 (entry_points): Likewise.
7769 (struct subr_info): Likewise.
7770 (struct subr_entry_info): Likewise.
7771 (type_val::unused_by_subroutine_type): Likewise.
7772 (type::merge): Don't handle unused_by_subroutine_type.
7773 (type::print): Likewise.
7774 (state::flags): Removed.
7775 (state::subroutine): Likewise.
7776 (state::seen_subrs): Likewise.
7777 (state::NO_STACK): Likewise.
7778 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
7779 (state): Updated all methods.
7780 (state::clean_subrs): Removed.
7781 (state::state): Removed `ret_semantics' flag.
7782 (state::copy): Likewise.
7783 (state::add_subr): Removed.
7784 (state::enter_subroutine): Likewise.
7785 (type::set_return_address): New method.
7786 (handle_jsr_insn): Set return address on the type. Always
7787 invalidate PC after call.
7788 (check_nonrecursive_call): Removed.
7789 (~_Jv_BytecodeVerifier): Updated.
7790 (branch_prepass): Removed special handling of jsr.
7791 (note_branch_target): Likewise.
7792 (get_subroutine): Removed.
7793 (state::merge): Don't merge subroutines and don't handle
7794 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
7795 (state::note_variable): Removed.
7796 (state::is_unmerged_ret_state): Likewise.
7797 (state::print): Updated.
7798 (set_variable): Likewise.
7799 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
7800 and jsr_semantics arguments. Updated for new reverification
7802 (pop_jump): Rewrote.
7803 (construct_primitive_array_type): Updated.
7804 (state::next): Removed.
7805 (INVALID_STATE): New define.
7806 (state::INVALID): Removed.
7807 (state::NO_NEXT): New value.
7808 (state::pc, state::next): New fields.
7809 (state::get_pc): New method.
7810 (next_verify_pc): Removed.
7811 (next_verify_state): New field.
7812 (verify_instructions_0): Always check for falling off end.
7814 (linked_utf8): Removed.
7815 (states): Changed type.
7816 (type::state_mergeable_p): New method.
7817 (state::state_mergeable_p): Likewise.
7818 (handle_ret_insn): Removed most code.
7819 (state::reverify): New method.
7820 (add_new_state): Likewise.
7821 (state::set_pc): Likewise.
7823 2004-01-22 Jeff Sturm <jsturm@one-point.com>
7826 * testsuite/libjava.compile/PR13733.java: New file.
7827 * testsuite/libjava.compile/PR13733.xfail: New file.
7829 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
7830 Michael Koch <konqueror@gmx.de>
7832 * javax/swing/table/DefaultTableCellRenderer.java
7833 (DefaultTableCellRenderer): Added javadoc for the class and for
7834 the constructor, Border instance, create an EmptyBorder.
7835 (UIResource): Removed the comment at the end of the class
7836 (setForeground): New method.
7837 (setBackground): New method.
7838 (updateUI): New method.
7839 (getTableCellRendererComponent): Rewritten with the help of
7840 dvholten and Stephane Meslin-Weber.
7841 (validate): New method.
7842 (repaint): New method.
7843 (firePropertyChange): New method.
7844 (setValue): New method.
7846 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7848 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7849 (connectJObject): Replace printf calls with g_assert statements.
7850 Move property-notify-event signal connection to ...
7851 (connectSignals): Connect property-notify-event signal. Iterate
7852 through the vbox's children to find layout.
7854 2004-01-22 Graydon Hoare <graydon@redhat.com>
7856 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
7857 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7858 Predicate static initialization on GtkToolkit.useGraphics2D().
7859 * java/awt/Component.java (processPaintEvent): Consume event.
7860 * javax/swing/AbstractButton.java: Reimplement, document.
7861 * javax/swing/DefaultButtonModel.java: Reimplement, document.
7862 * javax/swing/JComponent.java (paint): Use double buffer.
7863 (listenerList): Enable member.
7864 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
7865 * javax/swing/JToggleButton.java
7866 (JToggleButton): Modify model constructor.
7867 * javax/swing/SwingUtilities.java
7868 (layoutCompoundLabel): Adjust arithmetic.
7869 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
7870 * javax/swing/plaf/basic/BasicGraphicsUtils.java
7871 (getPreferredButtonSize): Include margins in calculation.
7872 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7873 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
7874 Receive up events from subordinate layout component.
7876 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
7878 * java/awt/Component.java (show): Set visible to true before
7881 2004-01-21 Kim Ho <kho@redhat.com>
7883 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
7885 (removeMenuBarPeer): Make package private.
7886 (setMenuBarPeer): Make package private.
7887 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7888 (menubar_resize_cb): Mark attributes unused.
7889 (getMenuBarHeight): ditto.
7891 2004-01-21 David Jee <djee@redhat.com>
7893 * java/awt/Container.java
7894 (LightweightDispatcher.handleEvent): Add an extra check to avoid
7895 dispatching MOUSE_ENTERED event twice. Translate the point for
7896 the mouse event target before dispatching the event.
7898 2004-01-20 Jakub Jelinek <jakub@redhat.com>
7900 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
7901 lib_org_w3c_dom_la_LDFLAGS): New.
7902 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
7903 * Makefile.in: Rebuilt.
7905 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
7907 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
7908 Calculate proper offsets for heavyweight components packed in
7909 lightweight containers.
7911 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
7912 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
7913 (native create): Add width parameter.
7914 (create): Calculate text entry width based on current font's
7915 metrics and number of columns. Set TextField's font if not
7916 already set. Call native create.
7917 (gtkEntryGetBorderWidth): New native method.
7918 (gtkEntryGetSize): Remove method.
7919 (getMinimumSize): Call minimumSize.
7920 (getPreferredSize): Call preferredSize.
7921 (minimumSize): Calculate minimum size based on backing
7922 GtkEntry's borders, font metrics and number of columns.
7923 (preferredSize): Likewise for preferred size.
7924 (get_border_width): New static function.
7926 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
7927 Override GtkWindowPeer's setResizable method to account for menu
7928 bar height when setting the frame's size.
7930 2004-01-19 Matthias Klose <doko@debian.org>
7932 * libtool-version: Increased `current' to 6.
7934 2004-01-19 Kim Ho <kho@redhat.com>
7936 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7937 (connectJObject): Iterate through the vbox's children to find layout.
7939 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7941 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
7942 isDispatchThread method to replace wrong test condition.
7944 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7946 * java/awt/EventQueue.java (pop): Prevent racing condition to add
7947 events to the queue out of order by acquiring locks in the proper
7948 order and not by releasing one before acquiring the other.
7950 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7952 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
7953 visible so that dialog can be reused.
7955 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7957 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
7958 events may be handled by any queue in the stack.
7960 2004-01-19 Kim Ho <kho@redhat.com>
7962 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
7963 MenuBarPeer parameter.
7964 (removeMenuBarPeer): New native method.
7965 (setMenuBar): Call remove if menu bar is null. Adjust insets
7967 (postSizeAllocateEvent): New method. Called when menu bar size is
7968 allocated. Adjust insets and redo layout.
7969 (GtkFramePeer): Set menu bar during frame creation.
7970 (postConfigureEvent): Adjust position and size to accomodate
7972 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
7973 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
7974 (addNotify): Create the peer if it doesn't exist and call addNotify
7975 for the menu's items.
7976 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
7977 * java/awt/MenuItem.java (addNotify): Create the peer if it
7979 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7980 (removeMenuBarPeer): New method. Remove menu bar on the current
7982 (setMenuBarPeer): Add the menu bar to the current frame and the
7983 callback for size-allocate events on the menu bar.
7984 (getMenuBarHeight): Add menu bar parameter.
7985 (menubar_resize_cb): New callback method for postSizeAllocate events.
7987 Also: Fix indentation on last ChangeLog entry.
7989 2004-01-16 Kim Ho <kho@redhat.com>
7991 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
7992 (gtkWidgetGetDimensions): Remove.
7993 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7994 (gtkWidgetGetDimensions): Remove.
7996 2004-01-16 Tom Tromey <tromey@redhat.com>
7998 * java/awt/Container.java: Typo and indentation fixes.
8000 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8001 * java/lang/natVMClassLoader.cc: ...here. New file.
8002 * Makefile.in: Rebuilt.
8003 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8005 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8007 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8008 Discard GDK_ENTER_NOTIFY related to ungrabs.
8010 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8012 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8013 is called for an intermediate queue.
8015 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8017 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8018 (window_property_changed_cb): Set id_set.
8020 2004-01-16 Kim Ho <kho@redhat.com>
8022 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8023 it is a FileDialog and has dimensions of 0 by 0, then the initial
8024 size is set to size request plus insets.
8025 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8026 (gtkWidgetGetDimensions): Override method.
8027 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8028 (gtkWidgetGetDimensions): Override method. Returns size request plus
8031 2004-01-16 Andrew Haley <aph@redhat.com>
8033 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8034 * sysdep/i386/locks.h: Likewise.
8036 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8038 * java/awt/EventDispatchThread.java (run): Stop running when
8040 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8041 Reset the queue after transferring its contents.
8042 (push): Start a new dispatch thread if none is running.
8044 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8046 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8047 (doPolygon): set fill rule of polygon to
8048 WIND_EVEN_ODD by default.
8050 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8052 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8053 Implemented rendering hints related methods.
8054 (getDefaultHints): New helper method. Returns
8055 default rendering hints.
8056 (walkPath): changed to normalize path if
8057 the KEY_STROKE_CONTROL key is in "normalize" mode.
8058 (draw3DRect): changed coordinates of rectangle by +0.5
8059 if in "normalize" mode.
8061 2004-01-15 Tom Tromey <tromey@redhat.com>
8063 * Makefile.in: Rebuilt.
8064 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8065 (%.lo: %.java) Filter out StackTrace.lo.
8067 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8069 * configure.in: Add in AC_PREREQ(2.13)
8070 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8073 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8074 Tom Tromey <tromey@redhat.com>
8077 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8078 array to superclass.
8079 (init): Changed interface; add URLs here.
8080 (initialize): New static method.
8081 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8082 (_Jv_RunMain): ... not here.
8084 2004-01-14 Michael Koch <konqueror@gmx.de>
8086 * java/text/MessageFormat.java:
8087 Added descriptions to exceptions.
8088 This fixes PR libgcj/2429.
8090 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8092 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8093 (push): Make sure push is performed at the top of the thread stack.
8095 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8097 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8098 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8099 (native create): Add width and height parameters. Set text
8100 view's size request according to new parameters.
8101 (create): Calculate text view size based on current font's
8102 metrics and number of rows and columns. Set TextArea's font if
8103 not already set. Call native create.
8104 (getMinimumSize): Call minimumSize.
8105 (getPreferredSize): Call preferredSize.
8106 (getHScrollbarHeight): New method.
8107 (getVScrollbarWidth): New method.
8108 (minimumSize): Calculate minimum size based on scrollbar
8109 visibility, scrollbar sizes, font metrics and number of rows and
8111 (preferredSize): Likewise for preferred size.
8112 (gtkTextGetSize): Remove method.
8114 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8116 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8117 (initializeInsets): Remove method.
8118 (GtkComponentPeer): Initialize insets field. Remove call to
8120 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8122 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8124 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8125 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8126 (latestInsets): Remove field.
8127 (native create): Add insets parameter. Call
8128 window_get_frame_extents. Set the window's default size and
8129 size request based on its frame extents.
8130 (create): Initialize insets.
8131 (postInsetsChangedEvent): New method.
8132 (postConfigureEvent): Remove parameters top, left, bottom,
8133 right. Remove insets-related logic.
8134 (connectJObject): Handle property-notify-event.
8135 (window_get_frame_extents, request_frame_extents,
8136 property_notify_predicate, window_property_changed_cb): New
8138 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8139 (pre_event_handler): Remove insets-related logic for configure
8141 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8142 Update postConfigureEvent signature.
8144 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8146 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8147 to handle Window "Closing" events.
8149 2004-01-13 David Jee <djee@redhat.com>
8151 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8152 (setBackground): New method. Children with no explicitly-set
8153 background will be repainted with the parent container's new
8156 2004-01-13 David Jee <djee@redhat.com>
8158 * Makefile.am: Add BitwiseXORComposite.java.
8159 * Makefile.in: Regenerated.
8160 * gcj/Makefile.in: Regenerated.
8161 * include/Makefile.in: Regenerated.
8162 * testsuite/Makefile.in: Regenerated.
8164 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8166 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8167 not show modal dialogs twice and so that it allows showing a modal
8168 dialog from another modal dialog.
8170 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8172 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8173 and run secondary dispatch thread to process event queue while this
8176 2004-01-12 Graydon Hoare <graydon@redhat.com>
8178 * gnu/java/awt/gtk/GdkGraphics2D.java
8179 (static): Check GtkToolkit before initializing static state.
8180 (Graphics2D): Don't construct transform with 0.5 unit offset.
8182 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8184 * gnu/java/awt/BitwiseXORComposite.java: Add.
8185 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8186 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8187 (BitwiseXORComposite): Remove inner class.
8189 2004-01-11 Michael Koch <konqueror@gmx.de>
8191 * gnu/java/lang/reflect/TypeSignature.java
8192 (getEncodingOfClass): Documentation fixed.
8193 (getClassForEncoding): Give class loader to Class.forName().
8194 Documentation fixed.
8196 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8198 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8200 2004-01-11 Michael Koch <konqueror@gmx.de>
8202 * javax/swing/undo/StateEditable.java
8203 (RCSID): Removed redundant modifiers.
8205 2004-01-10 Michael Koch <konqueror@gmx.de>
8207 * javax/print/attribute/EnumSyntax.java
8208 (getStringTable): Made protected.
8209 (getEnumValueTable): Likewise.
8210 * javax/print/attribute/standard/JobKOctetsProcessed.java
8211 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8212 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8213 (JobMediaSheetsCompleted): Made class final.
8214 * javax/print/attribute/standard/OutputDeviceAssigned.java
8215 (getName): Fixed typo.
8216 * javax/print/attribute/standard/RequestingUserName.java
8217 (serialVersionUID): Fixed value.
8219 2004-01-10 Michael Koch <konqueror@gmx.de>
8221 * javax/swing/plaf/basic/BasicButtonUI.java,
8222 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8223 javax/swing/plaf/basic/BasicListUI.java,
8224 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8225 javax/swing/plaf/basic/BasicPanelUI.java,
8226 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8227 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8228 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8229 javax/swing/plaf/basic/BasicViewportUI.java:
8230 Fixed import statements.
8232 2004-01-10 Michael Koch <konqueror@gmx.de>
8234 * gnu/java/awt/image/ImageDecoder.java
8235 (produce): Made public.
8236 * gnu/java/awt/peer/GLightweightPeer.java,
8237 gnu/java/awt/peer/gtk/GtkToolkit.java:
8240 2004-01-10 Michael Koch <konqueror@gmx.de>
8242 * javax/swing/JRadioButtonMenuItem.java,
8243 javax/swing/JSeparator.java,
8244 javax/swing/JSplitPane.java,
8245 javax/swing/JTextPane.java,
8246 javax/swing/JToolBar.java,
8247 javax/swing/ListCellRenderer.java,
8248 javax/swing/ListModel.java,
8249 javax/swing/MenuElement.java,
8250 javax/swing/OverlayLayout.java,
8251 javax/swing/ProgressMonitor.java,
8252 javax/swing/ProgressMonitorInputStream.java,
8253 javax/swing/Renderer.java,
8254 javax/swing/RootPaneContainer.java,
8255 javax/swing/Scrollable.java,
8256 javax/swing/SingleSelectionModel.java,
8257 javax/swing/ToolTipManager.java,
8258 javax/swing/ViewportLayout.java,
8259 javax/swing/event/DocumentEvent.java,
8260 javax/swing/event/SwingPropertyChangeSupport.java,
8261 javax/swing/event/TreeSelectionEvent.java,
8262 javax/swing/event/UndoableEditEvent.java,
8263 javax/swing/text/AbstractDocument.java,
8264 javax/swing/text/AttributeSet.java,
8265 javax/swing/text/Caret.java,
8266 javax/swing/text/ComponentView.java,
8267 javax/swing/text/DefaultCaret.java,
8268 javax/swing/text/DefaultEditorKit.java,
8269 javax/swing/text/Document.java,
8270 javax/swing/text/EditorKit.java,
8271 javax/swing/text/GapContent.java,
8272 javax/swing/text/Keymap.java,
8273 javax/swing/text/MutableAttributeSet.java,
8274 javax/swing/text/PlainEditorKit.java,
8275 javax/swing/text/Segment.java,
8276 javax/swing/text/Style.java,
8277 javax/swing/text/StyledDocument.java,
8278 javax/swing/text/StyledEditorKit.java,
8279 javax/swing/text/TextAction.java,
8280 javax/swing/text/View.java: Fixed import statements.
8282 2004-01-08 Graydon Hoare <graydon@redhat.com>
8284 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8285 djee@redhat.com's recent inverse ordering of Container elements.
8287 2004-01-09 Michael Koch <konqueror@gmx.de>
8289 * gnu/java/lang/ArrayHelper.java
8290 (equalsArray): Removed.
8292 2004-01-09 Andrew Haley <aph@redhat.com>
8294 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8295 a Utf8Const field before looking at its class.
8297 2004-01-09 Michael Koch <konqueror@gmx.de>
8299 * javax/print/attribute/standard/DocumentName.java,
8300 javax/print/attribute/standard/JobHoldUntil.java,
8301 javax/print/attribute/standard/JobMessageFromOperator.java,
8302 javax/print/attribute/standard/JobName.java,
8303 javax/print/attribute/standard/JobOriginatingUserName.java,
8304 javax/print/attribute/standard/OutputDeviceAssigned.java,
8305 javax/print/attribute/standard/PrinterInfo.java,
8306 javax/print/attribute/standard/PrinterLocation.java,
8307 javax/print/attribute/standard/PrinterMakeAndModel.java,
8308 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8309 javax/print/attribute/standard/PrinterName.java,
8310 javax/print/attribute/standard/RequestingUserName.java: New files.
8311 * Makefile.am (javax_source_files): Added new files.
8312 * Makefile.in: Regenerated.
8314 2004-01-09 Michael Koch <konqueror@gmx.de>
8316 * javax/swing/AbstractAction.java,
8317 javax/swing/AbstractSet.java,
8318 javax/swing/Action.java,
8319 javax/swing/ActionMap.java,
8320 javax/swing/BoundedRangeModel.java,
8321 javax/swing/ButtonModel.java,
8322 javax/swing/CellEditor.java,
8323 javax/swing/CellRendererPane.java,
8324 javax/swing/ComboBoxEditor.java,
8325 javax/swing/DebugGraphics.java,
8326 javax/swing/DefaultCellEditor.java,
8327 javax/swing/DefaultCellRenderer.java,
8328 javax/swing/DefaultComboBoxModel.java,
8329 javax/swing/DefaultDesktopManager.java,
8330 javax/swing/DefaultFocusManager.java,
8331 javax/swing/DefaultListCellRenderer.java,
8332 javax/swing/Icon.java,
8333 javax/swing/JButton.java,
8334 javax/swing/JCheckBoxMenuItem.java,
8335 javax/swing/JDesktopPane.java,
8336 javax/swing/JEditorPane.java,
8337 javax/swing/JMenu.java,
8338 javax/swing/JPanel.java,
8339 javax/swing/JPasswordField.java,
8340 javax/swing/JPopupMenu.java,
8341 javax/swing/JProgressBar.java: Reworked imports.
8343 2004-01-09 Michael Koch <konqueror@gmx.de>
8345 * java/awt/geom/PathIterator.java
8346 (WIND_EVEN_ODD): Removed redundant modifiers.
8347 (WIND_NON_ZERO): Likewise.
8348 (SEG_MOVETO): Likewise.
8349 (SEG_LINETO): Likewise.
8350 (SEG_QUADTO): Likewise.
8351 (SEG_CUBICTO): Likewise.
8352 (SEG_CLOSE): Likewise.
8353 * java/awt/image/SinglePixelPackedSampleModel.java:
8354 Removed redundant semicolon.
8355 * java/io/ObjectInputStream.java
8356 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8357 * java/util/logging/Filter.java
8358 (isLoggable): Removed redundant modifier.
8359 * java/util/logging/LogManager.java:
8360 Removed redundant semicolon.
8361 * java/util/logging/XMLFormatter.java
8362 (format): Removed unused variable "key".
8364 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8366 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8367 New name for the former setFile native method.
8368 (setFile): New method.
8369 (setDirectory): Implemented.
8370 (connectSignals): New native method.
8371 (setFilenameFilter): Improve comment.
8372 (getGraphics): Comment.
8373 (gtkHideFileDialog): New method.
8374 (gtkDisposeFileDialog): New method.
8375 (gtkSetFilename): New method.
8376 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8377 for FileDialog for now.
8379 (dispose): New method.
8380 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8381 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8382 deprecated creation functions. Make dialog modal. Add it to the
8384 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8386 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8388 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8390 (window_closed): New function.
8391 (ok_clicked): New function.
8392 (cancel_clicked): New function.
8394 2004-01-08 Michael Koch <konqueror@gmx.de>
8396 * javax/swing/JLayeredPane.java: Revert changes to standard
8397 boilerplate, reworked imports.
8399 2004-01-07 Tom Tromey <tromey@redhat.com>
8402 * verify.cc (state::merge): Copy changed locals out of subroutine
8404 (state::FLAG_CHANGED): New const.
8405 (state::FLAG_UNUSED): Likewise.
8406 (state::local_changed): Removed. Updated all users.
8407 (state::flags): New field.
8408 (state::merge): Added jsr_semantics argument, more logic.
8409 (push_jump_merge): Added jsr_semantics argument.
8410 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8411 merging through the jsr instruction.
8413 2004-01-07 Tom Tromey <tromey@redhat.com>
8415 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8418 2004-01-07 Graydon Hoare <graydon@redhat.com>
8420 * java/awt/Container.java (LightweightDispatcher): Implement.
8421 (visitChild): Reuse graphics object.
8422 (dispatchEventImpl): Optionally dispatch to lightweight.
8423 (addNotifyContainerChildren): Build LightweightDispatcher.
8425 2004-01-07 David Jee <djee@redhat.com>
8427 * java/awt/Container.java
8428 (update): Clear only the clipped region, instead of clearing the
8430 (visitChildren): Visit children in descending order.
8432 2004-01-07 Michael Koch <konqueror@gmx.de>
8434 * java/lang/reflect/Array.java: Merged documentation with classpath.
8436 2004-01-07 Michael Koch <konqueror@gmx.de>
8438 * java/text/CollationElementIterator.java
8439 (textIndex): Renamed from index.
8440 * java/text/CollationKey.java
8441 (collator): New member.
8442 (CollationKey): New argument for parent collator.
8443 (equals): Check for same collator, source string and key array.
8444 * java/text/RuleBasedCollator.java:
8446 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8448 (getCollationElementIterator): Rewritten.
8449 (getCollationKey): Added new argument to CollationKey constructor.
8451 2004-01-07 Michael Koch <konqueror@gmx.de>
8453 * gnu/java/nio/DatagramChannelImpl.java
8454 (blocking): Removed.
8455 (DatagramChannelImpl): Call configureBlocking().
8456 (implConfigureBlocking): Dont initialize blocking.
8457 * gnu/java/nio/ServerSocketChannelImpl.java
8458 (blocking): Removed.
8459 (ServerSocketChannelImpl): Call configureBlocking().
8460 (implConfigureBlocking): Dont initialize blocking.
8461 * gnu/java/nio/SocketChannelImpl.java
8462 (blocking): Removed.
8463 (SocketChannelImpl): Call configureBlocking().
8464 (implConfigureBlocking): Dont initialize blocking.
8465 (connect): Use isBlocking().
8466 * java/nio/channels/spi/AbstractSelectableChannel.java
8467 (configureBlocking): Use blockingLock() instead of LOCK.
8468 Set blocking after successfully called implConfigureBlocking().
8469 (register): Use blockingLock() instead of LOCK.
8471 2004-01-07 Michael Koch <konqueror@gmx.de>
8473 * java/net/ServerSocket.java (isBound): Fixed documentation.
8475 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8477 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8478 (changeEvent): Create event object on demand.
8479 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8480 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8481 fireStateChanged): Re-written.
8482 * javax/swing/event/EventListenerList.java: Reformatted, document
8484 (toString): Implemented.
8485 (getListeners): Re-written.
8486 (remove): Re-written.
8488 (NO_LISTENERS): New singleton field.
8489 (listenerList): Declare as transient; document.
8490 (serialVersionUID): Document.
8491 (getListenerCount(Class)): More efficient implementation,
8492 also accepts null argument. Improve Javadoc.
8493 (getListenerCount()): Remove unnecessary cast; docfix.
8494 * javax/swing/undo/UndoableEditSupport.java:
8495 Re-format, document.
8496 (UndoableEditSupport): Set realSource field. Improve documentation.
8497 (_postEdit): Iterate over cloned listener vector.
8498 (toString): Don't emit realSource.
8499 (beginUpdate, endUpdate): Support nested updates.
8500 (postEdit): Use compound edit if present.
8502 2004-01-06 Graydon Hoare <graydon@redhat.com>
8504 * java/awt/Container.java (swapComponents): Add forgotten
8505 function, required for JLayeredPane change.
8507 2004-01-06 Michael Koch <konqueror@gmx.de>
8509 * java/text/CollationElementIterator.java: Reformated.
8510 (CollationElementIterator): Changed order of arguments.
8511 * java/text/RuleBasedCollator.java
8512 (RuleBasedCollator): Merged class documentation.
8513 (CollationElement): Added documentation.
8514 (compare): Reformated, renamed arguments.
8516 (getCollationElementIterator): Likewise.
8517 (getCollationKey): Likewise.
8519 2004-01-06 Graydon Hoare <graydon@redhat.com>
8521 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8523 2004-01-06 Michael Koch <konqueror@gmx.de>
8525 * gnu/java/net/protocol/file/Connection.java:
8526 Reformated copyright.
8529 (gotHeaders): Removed.
8530 (getHeaderField): Removed.
8531 (getHeaderField): Removed.
8532 (getHeaderFieldKey): Removed.
8534 (getField): Removed.
8535 (getHeaders): Removed.
8537 2004-01-06 Michael Koch <konqueror@gmx.de>
8539 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8540 javax/print/attribute/standard/DateTimeAtCreation.java,
8541 javax/print/attribute/standard/DateTimeAtProcessing.java,
8542 javax/print/attribute/standard/JobImpressionsCompleted.java,
8543 javax/print/attribute/standard/JobKOctets.java,
8544 javax/print/attribute/standard/JobKOctetsProcessed.java,
8545 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8546 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8547 * Makefile.am (javax_source_files): Added new files.
8548 * Makefile.in: Regenerated.
8550 2004-01-06 Michael Koch <konqueror@gmx.de>
8552 * java/net/URLConnection.java
8553 (contentHandler): Removed.
8555 (getHeaderFields): Return an empty map instead of null.
8556 (getContent): Connect if needed, renamed "cType" to "type" and
8557 "contentHandler" to "ch" and made it a local variable.
8558 (getPermission): Don't use package in class name.
8559 (setDefaultRequestProperty): Fixed typo in documentation.
8560 (initializeDateFormats): Made locale a local variable.
8562 2004-01-06 Michael Koch <konqueror@gmx.de>
8564 * java/lang/Package.java
8565 (getPackage): Get the current class loader directly.
8566 * java/lang/SecurityManager.java
8567 (currentLoadedClass): Dont iterate over class contexts.
8568 (classLoaderDepth): Don't check class loaders if everything is allowed.
8570 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8572 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8573 (pre_event_handler): Set all insets to 0 when a Configure event
8574 is received for a GtkPlug.
8575 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8576 Make handle long, not int.
8577 (EmbeddedWindow()): New constructor.
8578 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8580 (setHandle): New method.
8581 (getHandle): Return long, not int.
8582 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8584 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8585 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8586 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8587 argument to GdkNativeWindow.
8588 (construct): New method.
8589 (embed): New method.
8591 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8592 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8593 (create(int, int)): New method.
8594 (create): Call new create method.
8595 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8597 (childResized): Remove native implementation. Implement in
8599 (getHScrollbarHeight, getVScrollbarWidth): Call
8600 gtk_widget_size_request to get scrollbar dimensions.
8601 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8602 call getVScrollbarWidth and getHScrollbarHeight when vertical
8603 and horizontal scrollbars respectively are needed.
8604 (doLayout): Enlarge child if it is smaller than the viewport.
8606 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8608 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8609 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8610 argument as per spec.
8612 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8614 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8616 (remove): Ditto. Also, Check for valid argument.
8617 (removeAll): Use peer interface method.
8618 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8619 native add function.
8620 (nativeRemove): New name for native remove function.
8621 (getHistory): New native function.
8622 (constructor): Generate ItemEvent.
8623 (add): Ditto, if selection is changed.
8624 (remove): Ditto, ditto.
8625 (removeAll): Add implementation.
8626 (handleEvent): Remove. Dead code.
8627 (choicePostItemEvent): Add comment.
8628 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8629 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8630 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8631 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8632 comments and fix condition to change selection.
8633 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8634 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8635 remove all capability.
8636 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8637 (item_activate): Add cast to remove compiler warning.
8639 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8641 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8642 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8643 (getPreferredSize): Call preferredSize.
8644 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8645 (getMinimumSize): Call minimumSize.
8646 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8647 (gtkWidgetGetDimensions): Return the peer widget's current size
8649 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8650 natural size request.
8652 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8654 Thanks to Brian Gough <bjg@network-theory.com>
8655 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8656 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8658 2004-01-04 Matthias Klose <doko@debian.org>
8660 * aclocal.m4: Rebuilt using "aclocal -I .".
8661 * configure: Rebuilt.
8663 2004-01-03 Per Bothner <per@bothner.com>
8665 * java/util/Date.java (parse): Fix a number of problems.
8666 (skipParens): Remove no-longer-needed method.