1 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3 * Makefile.am: Replace jar, rmic and rmiregistry references with
4 gjar, grmic and grmiregistry.
5 * configure.in: Likewise.
6 * Makefile.in: Regenerate.
8 * gcj/Makefile.in: Likewise.
9 * include/Makefile.in: Likewise.
10 * testsuite/Makefile.in: Likewise.
12 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
14 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
15 for privileged getProperty calls.
16 * java/io/ObjectOutputStream.java (getField): No longer static. Use
17 SetAccessibleAction instead of anonymous class for doPrivileged call.
18 (getMethod): Likewise.
19 (setAccessible): New field. PrivilegedAction object to use when
20 calling setAccessible.
21 * java/io/ObjectStreamClass.java (calculateOffsets): Use
22 SetAccessibleAction instead of anonymous class for diPrivileged call.
23 (setFields): Likewise.
24 (getClassUID): Likewise.
25 (findMethod): Likewise.
26 * gnu/java/security/action/GetPropertyAction.java: New class.
27 * gnu/java/security/action/SetAccessibleAction.java: New class.
29 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
31 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
33 * testsuite/libjava.lang/Serialization.java: New test.
34 * testsuite/libjava.lang/Serialization.out: New.
36 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
38 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
39 missed in last commit.
41 2004-07-23 Mark Wielaard <mark@klomp.org>
43 * java/lang/System.java (static): Set http.agent system property when
45 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
46 from system property inside AccessController.doPrivileged() call.
47 (proxyPort): Made package private.
48 (proxyInUse): Likewise.
49 (proxyHost): Likewise.
50 (userAgent): Likewise.
52 2004-07-23 Mark Wielaard <mark@klomp.org>
54 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
57 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
59 * Makefile.am (ordinary_java_source_files): Add
60 DefaultContentHandlerFactory.java.
61 * Makefile.in: Rebuilt.
62 * java/net/URLConnection.java (defaultFactory): New field.
64 (getContentHandler): Renamed from 'setContentHandler'. Try
65 defaultFactory after user-set factory, if any. Search for content
66 handler implementations in gnu.java.net.content, not gnu.gcj.content.
67 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
69 (getLastModified): Implemented.
70 (getPermission): Create file permission here, instead of in
72 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
74 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
76 (getLastModified): Implemented.
77 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
78 Default implementation.
79 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
80 Implement using GdkPixbufDecoder.
82 2004-07-21 Michael Koch <konqueror@gmx.de>
84 * javax/swing/JTextArea.java
85 (setLineWrap): Fire property change event after new value is set.
86 (setTabSize): Likewise.
88 2004-07-21 Michael Koch <konqueror@gmx.de>
90 * javax/swing/JTable.java
91 (autoCreateColumnsFromModel): New field.
92 (autoResizeMode): Likewise.
93 (cellEditor): Likewise.
94 (cellSelectionEnabled): Likewise.
95 (columnModel): Likewise.
96 (dataModel): Likewise.
97 (defaultEditorsByColumnClass): Likewise.
98 (defaultRenderersByColumnClass): Likewise.
99 (editingColumn): Likewise.
100 (editingRow): Likewise.
101 (gridColor): Likewise.
102 (preferredViewportSize): Likewise.
103 (rowHeight): Likewise.
104 (rowMargin): Likewise.
105 (rowSelectionAllowed): Likewise.
106 (selectionBackground): Likewise.
107 (selectionForeground): Likewise.
108 (selectionModel): Likewise.
109 (showHorizontalLines): Likewise.
110 (showVerticalLines): Likewise.
111 (tableHeader): Likewise.
112 (JTable): Implemented.
113 (getColumnModel): Likewise.
114 (getSelectedRow): Likewise.
115 (getSelectionModel): Likewise.
116 (setModel): Likewise.
117 (setSelectionModel): Likewise.
118 (createScrollPaneForTable): New method.
119 (createDefaultDataModel): Likewise.
120 (createDefaultListSelectionModel): Likewise.
121 (getModel): Likewise.
122 (getTableHeader): Likewise.
123 (setTableHeader): Likewise.
124 (getColumnSelectionAllowed): Likewise.
125 (setColumnSelectionAllowed): Likewise.
126 (getRowSelectionAllowed): Likewise.
127 (setRowSelectionAllowed): Likewise.
128 (getAutoResizeMode): Likewise.
129 (setAutoResizeMode): Likewise.
130 (getColumnCount): Likewise.
131 (getRowCount): Likewise.
132 (getCellRenderer): Likewise.
133 * javax/swing/JTree.java
134 (cellRenderer): New field.
135 (editable): Likewise.
136 (rootVisible): Likewise.
137 (showsRootHandles): Likewise.
138 (getModel): New method.
139 (setModel): Likewise.
140 (isEditable): Likewise.
141 (setEditable): Likewise.
142 (isRootVisbile): Likewise.
143 (setRootVisible): Likewise.
144 (getShowsRootHandles): Likewise.
145 (setShowRootHandles): Likewise.
146 (getCellRenderer): Likewise.
147 (setCellRenderer): Likewise.
149 2004-07-21 Michael Koch <konqueror@gmx.de>
151 * javax/swing/JFormattedTextField.java
152 (setDocument): Implemented.
153 * javax/swing/JRootPane.java:
155 * javax/swing/JTable.java
156 (getDefaultRenderer): New method.
157 * javax/swing/JTextField.java
159 (getPreferredSize): Likewise.
160 * javax/swing/JToggleButton.java
161 (getAccessibleContext): Fix javadoc.
162 * javax/swing/JTree.java:
164 * javax/swing/JViewport.java:
167 2004-07-21 David Jee <djee@redhat.com>
169 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
170 Collect all native method declaration at the top.
171 (create): Set the filename filter if necessary.
172 (setDirectory): Call nativeSetDirectory().
173 (setFilenameFilter): Implement.
174 (filenameFilterCallback): New method.
175 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
176 (create): Configure dialog to show hidden files.
177 (filenameFilterCallback): New function.
178 (nativeSetFilenameFilter): New function.
179 (nativeSetDirectory): New function.
181 2004-07-21 Kim Ho <kho@redhat.com>
183 * javax/swing/plaf/basic/BasicSliderUI.java:
185 (paintTrack): Fill the track before painting
188 2004-07-21 Graydon Hoare <graydon@redhat.com>
190 patch from Roman Kennke <roman@ontographics.com>
191 * javax/swing/Spring.java: New file.
192 * javax/swing/SpringLayout.java: New file.
193 * Makefile.am: Add new files.
194 * Makefile.in: Regenerate.
196 2004-07-21 Graydon Hoare <graydon@redhat.com>
198 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
199 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
200 * javax/swing/ScrollPaneLayout.java: Likewise.
202 2004-07-21 Kim Ho <kho@redhat.com>
204 * javax/swing/DefaultDesktopManager.java:
205 (findMinimum): Removed.
206 (resizeFrame): Trust the UI to pass valid
208 * javax/swing/JOptionPane.java:
209 Implemented showInternalXXXDialog methods.
210 (startModal): New method.
211 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
212 (BorderListener::mouseDragged): Verify that the new
213 bounds are valid before passing them to the DesktopManager.
214 (preferredLayoutSize): Delegate
216 (minimumLayoutSize): Ditto.
217 (getSize): New method.
218 (GlassPaneDispatcher): Reimplemented by copying
219 a stripped down LightweightDispatcher from Container.
220 (getMinimumSize): Call minimumLayoutSize.
221 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
223 (mousePressed): Add ability to properly close
225 * javax/swing/plaf/basic/BasicToolBarUI.java:
226 (DragWindow): Set owner for DragWindow.
228 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
230 * java/awt/image/ShortLookupTable.java: New file.
231 * java/awt/image/ByteLookupTable.java: New file.
232 * Makefile.am: Added new files.
233 * Makefile.in: Regenerated.
235 2004-07-21 David Jee <djee@redhat.com>
237 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
238 (create(GtkContainerPeer)): New native method.
239 (create()): Call native create(), passing in the parent frame
240 as the paramter. Natively set the current file and directory.
241 (setFile): Construct an absolute filename before passing it to
243 (nativeGetDirectory): New method.
244 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
245 (window_closed): Removed.
246 (ok_clicked): Likewise.
247 (cancel_clicked): Likewise.
248 (handle_response): New method.
249 (create): Use GtkFileChooserDialog.
250 (connectSignals): Connect to handle_response.
251 (nativeGetDirectory): New method.
252 (nativeSetFile): Use GtkFileChooserDialog.
254 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
256 * java/awt/image/LookupTable.java: New file.
257 * Makefile.am: Added new file.
258 * Makefile.in: Regenerated.
260 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
262 * java/awt/image/Kernel.java: New file.
263 * Makefile.am: Added new file.
264 * Makefile.in: Regenerated.
266 2004-07-21 Olga Rodimina <rodimina@redhat.com>
268 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
269 * javax/swing/JMenu.java: Likewise.
270 * javax/swing/JMenuBar.java: Likewise.
271 (MARGIN_CHANGED_PROPERTY): New property.
272 (setMargin): Implemented.
273 * javax/swing/JMenuItem.java: Fixed javadocs.
274 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
275 (LABEL_CHANGED_PROPERTY): New property.
276 (add): changed to use createActionComponent.
277 (createActionComponent): Implemented.
278 (setLabel): Fire PropertyChangeEvent if label property
280 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
281 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
282 (ContainerHandler): Repaint if margin property has changed.
283 * javax/swing/plaf/basic/BasicMenuItemUI.java:
284 (installUI): Call installComponents().
285 (uninstallUI): Call uinstallComponents().
286 * javax/swing/plaf/basic/BasicMenuUI.java:
288 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
291 2004-07-21 Kim Ho <kho@redhat.com>
293 * javax/swing/plaf/basic/BasicToolBarUI.java:
294 (DragWindow): Use the right constructor.
296 2004-07-21 Kim Ho <kho@redhat.com>
298 * javax/swing/JToolBar.java:
299 (layoutContainer): Use getComponents.
300 * javax/swing/plaf/basic/BasicToolBarUI.java:
301 (DragWindow): Don't use SwingUtilities'
303 (ToolBarDialog): ditto.
305 2004-07-21 Kim Ho <kho@redhat.com>
307 * javax/swing/JRootPane.java:
309 (layoutContainer): Set the glasspane's size to
310 be the same as the content pane.
311 (createGlassPane): Set opaque property to false.
313 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
315 * java/awt/Component.java (requestFocus()): Don't handle Panels
317 (requestFocus(boolean)): Likewise.
318 (requestFocusInWindow(boolean)): Likewise.
319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
320 Set GTK_CAN_FOCUS flag.
322 2004-07-21 Kim Ho <kho@redhat.com>
324 * Makefile.am: Added new file.
325 * Makefile.in: Regenerated.
326 * gcj/Makefile.in: Regenerated.
327 * include/Makefile.in: Regenerated.
328 * javax/swing/AbstractButton.java:
329 Add rollOverEnabled property.
330 (setRolloverEnabled): Use new property.
331 (isRolloverEnabled): Use new property.
332 * javax/swing/JTabbedPane.java:
333 (setComponent): Remove useless JTabbedPane.this.
334 * javax/swing/JToolBar.java: Finish implementation.
335 * javax/swing/plaf/basic/BasicArrowButton.java:
336 (paint): Moved border painting to a border.
337 * javax/swing/plaf/basic/BasicLookAndFeel.java:
338 Change JToolBar look and feel defaults.
339 * javax/swing/plaf/basic/BasicOptionPaneUI.java
340 (actionPerformed): Return Integer index instead of name.
341 (addButtonComponents): Check to see if component is
343 (createMessageArea): Don't use components that are not
345 (getIconForType): Use temporary icons.
346 * javax/swing/plaf/basic/BasicSliderUI.java:
347 (mousePressed): Do not return if it's on thumb.
348 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
349 (paintMinorTickForVertSlider): ditto.
350 (paintMajorTickForHorizSlider): ditto.
351 (paintMajorTickForVertSlider): ditto.
352 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
353 Add a border around the SplitPaneDivider.
354 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
356 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
357 New file. Implemented.
358 * javax/swing/plaf/basic/BasicToolBarUI.java:
360 * testsuite/Makefile.in: Regenerated.
362 2004-07-21 Graydon Hoare <graydon@redhat.com>
364 * javax/swing/Timer.java (run): Queue events each time cycle.
366 2004-07-21 David Jee <djee@redhat.com>
368 * gnu/java/awt/peer/gtk/GtkImagePainter.java
369 (imageComplete): Call image.imageComplete().
370 * java/awt/image/MemoryImageSource.java:
371 Reimplement consumers as a Vector instead of a Hashtable. This is
372 because enumeration on a Hashtable is not thread-safe.
373 (addConsumer): Adapt to Vector consumers.
374 (isConsumer): Adapt to Vector consumers.
375 (removeConsumer): Adapt to Vector consumers.
376 (startProduction): Adapt to Vector consumers. Call imageComplete()
377 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
378 (newPixels): Adapt to Vector consumers.
379 (sendPicture): Set the color model of the image consumer.
380 (newPixels(IIII)): Adapt to Vector consumers.
381 (newPixels(IIIIB)): Adapt to Vector consumers.
383 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
385 * java/awt/Component.java (deliverEvent): Implement.
386 (postEvent): Implement.
387 (handleEvent): Implement.
388 (translateEvent): New method.
389 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
390 * java/awt/Container.java (deliverEvent): Implement.
391 * java/awt/Event.java (paramString): Fix formatting.
392 * java/awt/Font.java (toString): Likewise.
393 * java/awt/Window.java (postEvent): Implement.
395 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
397 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
398 Set window's focus owner upon receiving a FOCUS_LOST event.
399 * java/awt/Window.java (Window()): Refocus the previously
400 focused component within the window when the window regains the
402 (setFocusOwner): New method.
403 * java/awt/Component.java (requestFocus): Add FIXME.
405 * libgcj.pc.in: Remove library flags.
407 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
409 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
411 * java/awt/Component.java (requestFocus()): Handle Panel
412 specially. Post FOCUS_LOST event on opposite component.
413 (requestFocus(boolean)): Likewise.
414 (requestFocusInWindow(boolean)): Likewise.
415 (paramString): Reorder dimension fields.
416 * java/awt/Container.java (paramString): Fix string format.
417 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
418 Handle FOCUS_LOST events. Don't handle Windows specially. Only
419 process key events if the focus owner is non-null.
420 (dispatchKeyEvent): Likewise.
421 * java/awt/Frame.java (paramString): Fix formatting.
422 (generateName): New method.
423 (getUniqueLong): Likewise.
424 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
425 the temporary focus owner is null. If so, return the permanent
427 * java/awt/Panel.java (generateName): New method.
428 (getUniqueLong): Likewise.
429 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
430 signal handling to make callbacks more specific.
432 2004-07-21 Michael Koch <konqueror@gmx.de>
434 * javax/swing/text/Position.java
437 2004-07-21 Michael Koch <konqueror@gmx.de>
439 * javax/swing/LookAndFeel.java
440 (provideErrorFeedback): New method.
442 2004-07-21 Michael Koch <konqueror@gmx.de>
444 * javax/swing/JTextArea.java
445 (tabSize): New field.
446 (getTabSize): New method.
447 (setTabSize): Likewise.
449 2004-07-21 Michael Koch <konqueror@gmx.de>
451 * javax/swing/ActionMap.java:
452 Fixed javadocs all over.
453 (serialVersionUID): Made private.
454 (parent): Don't explicitely initialize with default value.
456 (keys): Reimplemented.
458 (convertSet): Removed.
459 * javax/swing/ComponentInputMap.java:
460 Fixed javadocs all over.
461 (ComponentInputMap): Implemented.
465 (SetParent): Likewise.
466 (getComponent): Likewise.
467 * javax/swing/InputMap.java:
468 Fixed javadocs all over.
469 (serialVersionUID): Made private.
470 (parent): Don't explicitely initialize with default value.
472 (keys): Reimplemented.
474 (convertSet): Removed.
476 2004-07-21 Michael Koch <konqueror@gmx.de>
478 * javax/swing/ActionMap.java,
479 javax/swing/ComponentInputMap.java,
480 javax/swing/InputMap.java,
481 javax/swing/table/DefaultTableColumnModel.java,
482 javax/swing/table/TableColumn.java,
483 javax/swing/table/TableColumnModel.java,
484 javax/swing/table/TableModel.java,
485 javax/swing/text/AbstractDocument.java,
486 javax/swing/text/TextAction.java:
489 2004-07-21 Graydon Hoare <graydon@redhat.com>
491 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
492 Make method non-static.
493 * javax/swing/AbstractButton.java:
494 Rename fields to match property names where possible.
495 (iconTextGap): New property.
496 * javax/swing/JCheckBox.java: Match AbstractButton changes.
497 (init) New method, call from after various constructors.
498 * javax/swing/JComponent.java (revalidate):
499 Invalidate before queueing repair.
500 * javax/swing/JList.java (getPreferredScrollableViewportSize):
501 Reimplement in terms of visibleRowCount property.
502 * javax/swing/JMenuButton.java: Match AbstractButton changes.
503 * javax/swing/JScrollPane.java (createScrollListener):
504 Remove tracing chatter.
505 * javax/swing/JToggleButton.java: Match AbstractButton changes.
506 * javax/swing/RepaintManager.java (addInvalidComponent):
508 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
510 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
511 Mimic sun behavior on top left/right positioning.
512 * javax/swing/ViewportLayout.java (preferredLayoutSize):
513 Remove mistaken use of preferredScrollableViewportSize here.
514 (layoutContainer): Use view's preferred size as basis.
515 * javax/swing/plaf/basic/BasicButtonUI.java:
516 Set, get, and use textIconGap property.
517 (paint) Paint text returned from layout (with ellipsis).
518 * javax/swing/plaf/basic/BasicListUI.java:
519 Remove tracing chatter, correct various minor calculations.
520 (getCellBounds): Update layout state before calculating.
521 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
522 Use margin default similar to sun's.
523 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
524 (createIncreaseIcon): Center icon, minimize margins.
525 (createDecreaseIcon): Likewise.
526 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
528 (installUI): Call it.
529 (uninstallDefaults): Implement.
530 (uninstallUI): Call it.
531 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
532 Call existing Window constructor.
533 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
534 Set clip before painting.
536 2004-07-21 Olga Rodimina <rodimina@redhat.com>
538 * javax/swing/JMenuItem.java:
539 (processMouseEvent): Reimplemented to deal with
541 (createMenuDragMouseEvent): New private helper method.
542 Creates MenuDragMouseEvent.
543 * javax/swing/MenuSelectionManager.java
544 (componentForPoint): Implemented.
545 (isComponentPartOfCurrentMenu): Made public.
546 (processMouseEvent): Reimplemented to deal with
548 (setSelectedPath): Corrected small mistake that caused
549 path to be set incorrectly.
550 (getPath): If given component is JMenu then also add this
551 menu's popup menu to the selected path.
552 * javax/swing/plaf/basic/BasicMenuItemUI.java:
554 (getPreferredSize): Call getPreferredMenuItemSize().
555 (getPreferredItemSize): Moved code from getPreferredSize to here.
556 (installListeners): Install MouseMotionListeners.
557 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
558 if mouse wasn't released in the bounds of this menu item.
559 (MenuDragMouseHandler): Implemented.
560 * javax/swing/plaf/basic/BasicMenuUI.java:
561 (installListeners): Install MouseMotionListener and
562 MenuDrageMouseListener.
563 (MenuDragMouseHandler): Implemented.
564 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
565 (uninstallListeners): Implemented.
567 2004-07-21 Michael Koch <konqueror@gmx.de>
569 * javax/swing/JCheckBox.java: Reformated.
570 (JCheckBox): Fixed all constructors.
571 (isBorderPaintedFlat): New method.
572 (setBorderPaintedFlat): New method.
573 * javax/swing/JEditorPane.java
574 (createEditorKitForContentType): Made public.
575 (scrollToReference): Likewise.
576 * javax/swing/JTextArea.java
577 (setLineWrap): Fire property change.
578 * javax/swing/JToggleButton.java
579 (JToggleButton): New constructor.
580 (JToggleButton): Simplified.
581 * javax/swing/text/AttributeSet.java
582 (FontAttribute): Renamed from FontCharacterAttribute.
583 * javax/swing/text/JTextComponent.java
584 (KeyBinBinding): Added javadoc.
585 (JTextComponent): Likewise.
586 (getAccessibleContext): Fixed javadoc.
587 * javax/swing/text/View.java
588 (View): Added javadoc.
589 * javax/swing/text/TabableView.java: New file.
590 * Makefile.am: Added javax/swing/text/TabableView.java.
591 * Makefile.in: Regenerated.
593 2004-07-21 Graydon Hoare <graydon@redhat.com>
595 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
596 * gnu/java/awt/peer/gtk/GtkToolkit.java
597 (GtkErrorImage): New helper class.
598 (bufferedImageOrError): New helper method.
599 (createImage): Use it.
601 2004-07-21 David Jee <djee@redhat.com>
603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
604 (setCaretPosition): Scroll the text view so the new caret position
605 is visible on screen.
607 2004-07-21 David Jee <djee@redhat.com>
609 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
610 (setBounds): Do not validate awtComponent here.
611 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
612 (getPreferredSize): New method.
613 * java/awt/ScrollPane.java
614 (ScrollPane): Set default size to 100x100.
615 (addNotify): If child is not a Panel, wrap it with a new Panel.
616 (paramString): Implement.
618 2004-07-21 Olga Rodimina <rodimina@redhat.com>
620 * javax/swing/JMenu.java:
621 (setSelected): Display popup menu only if this menu
622 is showing on the screen.
623 * javax/swing/JPopupMenu.java:
624 (processMouseEvent): Added comment.
625 (processKeyEvent): Likewise.
626 * javax/swing/MenuSelectionManager.java:
627 (clearSelectedPath): Only fireStateChanged() after
628 selected path was changed, not before.
629 (setSelectedPath): Likewise.
630 * javax/swing/plaf/basic/BasicMenuItemUI.java:
631 (paintMenuItem): Corrected position of menu item's
633 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
634 (installUI): Correct setDefaultLightWeightPopupEnabled call.
635 (popupMenuCanceled): Reimplemented.
636 (popupMenuWillBecomeVisible): Select first menu item by default
637 when displaying free floating popup menus.
638 (TopWindowListener): Reimplemented.
640 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
642 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
643 Panel from being painted twice when it is first shown.
645 2004-07-21 Olga Rodimina <rodimina@redhat.com>
647 * java/awt/Window.java: Reverted changes from my
648 previous patch for creating window without an owner.
649 * javax/swing/SwingUtilities.java:
650 (SwingUtilities.OwnerFrame): made static.
651 (OwnerFrame.setVisible): New method. Overridden with
652 empty implementation.
653 (OwnerFrame.isShowing): New method. Ovverridden
654 to return always true.
656 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
658 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
659 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
660 (GtkComponentPeer): Remove temporary try/catch block.
661 (setVisible): Call show and hide.
664 (getArgs): Don't add "visible" argument.
665 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
666 (property_notify_predicate): Return Bool instead of int.
667 (find_layout): New function.
668 (connectJObject): Call find_layout.
669 (connectSignals): Likewise.
670 (moveLayout): Likewise.
671 (gtkLayoutSetVisible): Likewise.
673 2004-07-21 Mark Wielaard <mark@klomp.org>
675 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
676 on notifier object before calling notifyAll().
678 2004-07-21 Olga Rodimina <rodimina@redhat.com>
680 * java/awt/Window.java: Changed constructors to use new
681 method that is described below. Constructors call this
682 methods only if newly created window should have an owner.
683 (setWindowOwner): New method. Implementation for
684 this method is moved from this(owner,configuration).
685 * javax/swing/JWindow.java:
686 (JWindow): Reimplement to use SwingUtilities.ownerFrame
688 * javax/swing/SwingUtilities.java:
689 (ownerFrame): Change type of this field to OwnerFrame.
690 (getOwnerFrame): Changed to return object of type OwnerFrame.
691 (SwingUtilities.OwnerFrame): New class. Represents owner
692 of a Window that is not provided with one.
694 2004-07-21 Olga Rodimina <rodimina@redhat.com>
696 * javax/swing/AbstractButton.java:
697 (configurePropertiesFromAction): Set action command
698 to button's text by default if action command is not
699 explicitely specified.
700 * javax/swing/JMenu.java: Remove unnecessary listener
701 and methods relevant to it.
702 (setSelected): Reimplemented.
703 (menuSelectionChanged): Moved most part of implementation to
704 setSelected() and call it instead.
705 * javax/swing/JMenuItem.java:
706 (init): Comment out statement that sets paint_border to false.
707 (configurePropertiesFromAction): Do not set accelerator
709 (menuSelectionChanged): Change selected index in the selection
710 model of menu item's parent.
711 * javax/swing/JPopupMenu.java:
712 (remove): Set constraints.fill field to GridBagConstraints.BOTH
713 instead of GridBagConstraints.HORIZONTAL.
715 (createActionChangeListener): Implemented.
716 (setVisible): Correct location of HeavyWeightMenu and
717 don't firePopupMenuCanceled().
718 (menuSelectionChanged): Implemented.
719 (ActionChangeListener): New Listener. Implemented.
720 * javax/swing/plaf/basic/BasicMenuBarUI.java:
721 (BasicMenuBarUI.ContainerHandler): Implemented.
722 * javax/swing/plaf/basic/BasicMenuItemUI.java:
723 (paintMenuItem): Uncommented out code that paints
724 icon, now that icons are working properly.
725 (PropertyChangeListener): Implemented.
726 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
728 (topWindowListener): New field.
729 (Constructor): initialize topWindowListener.
730 (BasicPopupMenuUI.TopWindowListener): Implemented.
731 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
732 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
735 2004-07-21 Michael Koch <konqueror@gmx.de>
737 * javax/swing/plaf/basic/BasicButtonUI.java
738 (paintFocus): Fixed method signature.
739 (paintButtonPressed): Likewise.
740 (paintButtonNormal): Likewise.
741 (paintText): New method.
742 * javax/swing/plaf/basic/BasicLabelUI.java
743 (paint): Re-indented.
744 * javax/swing/plaf/basic/BasicTextUI.java
745 (installUI): Set parent textComponent to opaque.
746 * javax/swing/text/DefaultHighlighter.java
747 (checkPositions): New helper method.
748 (addHighlight): Throws BadLocationException, check positions.
749 (changeHighlight): Likewise.
750 * javax/swing/text/EditorKit.java
751 (EditorKit): Implements Serializable.
752 * javax/swing/text/JTextComponent.java
753 (getUI): Added javadoc.
755 (upadteUI): Added javadoc, don't revalidate and repaint.
757 2004-07-21 David Jee <djee@redhat.com>
759 * java/awt/GridBagLayout.java
760 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
761 * javax/swing/AbstractButton.java
763 * javax/swing/RepaintManager.java
764 (addInvalidComponent): Find the first ancestor that isValidateRoot().
766 2004-07-21 Michael Koch <konqueror@gmx.de>
768 * javax/swing/JFormattedTextField.java
770 (JFormattedTextField): Implemented.
771 (getValue): Likewise.
772 (setValue): Likewise.
773 * javax/swing/LookAndFeel.java
774 (getSupportsWindowDecorations): New method.
775 * javax/swing/UIDefaults.java:
776 Use java.beans.PropertyChangeSupport instead of doing all ourself.
777 (addPropertyChangeListener): Made public.
778 (addResourceBundle): Likewise.
779 (removeResourceBundle): Likewise.
780 (setDefaultLocale): Likewise.
781 * javax/swing/plaf/basic/BasicRootPaneUI.java
782 (BasicRootPaneUI): Implements PropertyChangeListener.
783 (propertyChange): New method.
784 * javax/swing/plaf/basic/BasicTextUI.java
785 (BasicHighlighter): New inner class.
786 (createHighlighter): New method.
787 * javax/swing/plaf/basic/BasicToolBarUI.java
788 (DragWindow): Extends java.awt.Window.
789 * javax/swing/text/JTextComponent.java
790 (getDocument): Removed debug output.
791 * javax/swing/plaf/basic/BasicTextFieldUI.java,
792 javax/swing/text/DefaultHighlighter.java,
793 javax/swing/text/FieldView.java,
794 javax/swing/text/PlainView.java: New files.
795 * Makefile.am: Added new files.
796 * Makefile.in: Regenerated.
798 2004-07-21 Michael Koch <konqueror@gmx.de>
800 * javax/swing/JEditorPane.java
801 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
802 (createEditorKitForContentType): Likewise.
803 * javax/swing/text/DefaultEditorKit.java
804 (serialVersionUID): Added constant field.
805 (EndOfLineStringPropery): Fixed typo.
806 (DefaultEditorKit): New constructor.
807 * javax/swing/text/Segment.java:
808 Import java.text.CharacterIterator.
809 * javax/swing/text/CharacterIterator.java,
810 javax/swing/text/PlainEditorKit.java: Removed.
811 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
812 javax/swing/text/PlainEditorKit.java.
813 * Makefile.in: Regenerated.
815 2004-07-21 Michael Koch <konqueror@gmx.de>
817 * javax/swing/JButton.java,
818 javax/swing/text/DefaultEditorKit.java,
819 javax/swing/text/EditorKit.java,
820 javax/swing/text/Segment.java,
821 javax/swing/text/StyledEditorKit.java:
824 2004-07-21 Michael Koch <konqueror@gmx.de>
826 * javax/swing/ImageIcon.java
828 (description): Renamed from descr.
829 (ImageIcon): Added missing constructors.
830 (setParent): Removed.
831 (setImageObserver): New method.
832 (getImageObserver): New method.
833 (paintIcon): Handle observer = null.
834 * javax/swing/JButton.java
835 (removeNotify): Fixed javadoc.
836 (updateUI): Simplified.
837 * javax/swing/JRootPane.java
838 (serialVersionUID): New constant field.
839 * javax/swing/UIManager.java:
840 Fixed javadocs all over.
841 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
842 * javax/swing/text/AbstractDocument.java
843 (createPosition): Throws BadLocationException.
846 * javax/swing/text/ComponentView.java
847 (modelToView): Likewise.
848 * javax/swing/text/DefaultEditorKit.java:
849 Made all public methods public.
850 (read): Throws BadLocationException and IOException.
852 * javax/swing/text/EditorKit.java:
853 Made all public methods public.
854 (serialVersionUID): New constant field.
856 (read): Throws BadLocationException and IOException.
858 * javax/swing/text/Segment.java
859 (array): Made public.
862 (Segment): New constructors.
863 (clone): Reimplemented.
864 * javax/swing/text/StyledEditorKit.java
865 (serialVersionUID): New constant field.
867 2004-07-21 Graydon Hoare <graydon@redhat.com>
869 * java/awt/image/BufferedImage.java
870 (getSource): Implement.
871 * javax/swing/ImageIcon.java
872 (ImageIcon): Implement ctor.
873 * javax/swing/ScrollPaneLayout.java
874 (preferredLayoutSize): Be more careful about nulls.
876 2004-07-21 Michael Koch <konqueror@gmx.de>
878 * javax/swing/text/AttributeSet.java
879 (CharacterAttribute): New interface
880 (ColorAttribute): Likewise.
881 (FontCharacterAttribute): Likewise.
882 (ParagraphAttribute): Likewise.
883 * javax/swing/text/DefaultCaret.java
884 (moveCaret): New method.
885 (positionCaret): Likewise.
886 (repaint): Made protected.
887 * javax/swing/text/JTextComponent.java
888 (KeyBinding): Made it static.
889 * javax/swing/text/View.java
890 (getContainer): Honor parent == null.
892 2004-07-21 Michael Koch <konqueror@gmx.de>
894 * javax/swing/text/AbstractDocument.java:
897 2004-07-21 Michael Koch <konqueror@gmx.de>
899 * javax/swing/plaf/basic/BasicRootPaneUI.java:
900 Import javax.swing.UIManager explicitely.
901 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
902 (ScrollingButton): Made it static.
904 2004-07-21 Michael Koch <konqueror@gmx.de>
906 * javax/swing/UIDefaults.java
907 (ActiveValue): Made public.
908 (LazyValue): Likewise.
909 * javax/swing/plaf/basic/BasicTextUI.java
910 (RootView): Reintroduced.
912 (rootView): New field.
913 (installUI): Create document if needed, initialize rootView.
914 (uninstallUI): Hanle rootView.
916 (getRootView): Likewise.
918 * javax/swing/text/DefaultCaret.java:
919 Renamed all "evt" variables to "event".
921 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
923 * libgcj.spec.in: Add -l-java-util-logging.
925 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
927 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
928 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
929 gtk-xft-dpi can no calculate the right value.
930 (dpi_changed_cb): Mark *pspec as unsused.
932 2004-07-21 David Jee <djee@redhat.com>
934 * java/awt/Component.java
935 (move): Delegate to setBounds().
937 (reshape): Fix so it repaints parent and self only when necessary.
939 2004-07-21 David Jee <djee@redhat.com>
941 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
942 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
943 (GtkComponentPeer): Revert previous patch from 2004-06-22.
944 (setVisible): Likewise.
948 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
949 (property_notify_predicate): Likewise.
950 (find_layout): Likewise.
951 (connectJObject): Likewise.
952 (connectSignals): Likewise.
953 (moveLayout): Likewise.
954 (gtkLayoutSetVisible): Likewise.
956 2004-07-21 Graydon Hoare <graydon@redhat.com>
962 (rmiregistry_LDADD): Add lib-java-util-logging.la
963 * Makefile.in: Regenerate.
965 2004-07-21 Michael Koch <konqueror@gmx.de>
967 * javax/swing/text/AbstractDocument.java
968 (replace): Dont use protected method of java.util.Vector directly.
970 2004-07-21 Michael Koch <konqueror@gmx.de>
972 * javax/swing/plaf/basic/BasicTextUI.java
973 (installUI): Call specialized install methods.
974 (installDefaults): New method.
975 (installListeners): Likewise.
976 (installKeyboardActions): Likewise.
977 (uninstallUI): Likewise.
978 (uninstallDefaults): New method.
979 (uninstallListeners): Likewise.
980 (uninstallKeyboardActions): Likewise.
981 (getPropertyPrefix): New abstract method.
982 (paint): Made final, just call paintSafely().
983 (paintSavely): New method.
984 (paintBackground): Likewise.
985 (getVisibleEditorRect): Likewise.
986 * javax/swing/text/LayeredHighlighter.java,
987 javax/swing/text/TabExpander.java: New files.
988 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
989 and javax/swing/text/TabExpander.java.
990 * Makefile.in: Regenerated.
992 2004-07-21 Michael Koch <konqueror@gmx.de>
994 * javax/swing/plaf/basic/BasicTextUI.java
995 (BasicTextUI): Made abstract.
996 (BasicCaret): New inner class.
997 (view): Don't explicitely initialize with "null".
998 (textComponent): New field.
999 (textColor): Removed.
1000 (disabledTextColor): Removed.
1001 (normalBackgroundColor): Removed.
1002 (RootView): Removed commented out inner class.
1003 (createUI): Removed.
1004 (createCaret): New method.
1005 (getComponent): Likewise.
1006 (installUI): Initialize textComponent only.
1007 (getPreferredSize): Use installed JTextComponent.
1008 (setView): New method.
1010 * javax/swing/text/JTextComponent.java
1011 (highlighter): New field.
1012 (caretColor): Likewise.
1013 (disabledTextColor): Likewise.
1014 (seletedTextColor): Likewise.
1015 (selectionColor): Likewise.
1016 (setUI): New method.
1017 (getCaretColor): Likewise.
1018 (setCaretColor): Likewise.
1019 (getDisabledColor): Likewise.
1020 (setDisabledColor): Likewise.
1021 (getSelectedTextColor): Likewise.
1022 (setSelectedTextColor): Likewise.
1023 (getSelectionColor): Likewise.
1024 (setSelectionColor): Likewise.
1025 (getHighlighter): Likewise.
1026 (setHighlighter): Likewise.
1027 (replaceSelection): Likewise.
1029 2004-07-21 Michael Koch <konqueror@gmx.de>
1031 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1032 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1033 * javax/swing/plaf/basic/BasicToolBarUI.java
1034 (BasicToolBarUI): Implements SwingConstants.
1036 2004-07-21 Michael Koch <konqueror@gmx.de>
1038 * javax/swing/JPopupMenu.java: Removed CVS tags.
1039 * javax/swing/UIDefaults.java: Reformatted.
1040 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1041 Explicitely import used classes.
1043 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1045 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1046 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1047 (GtkComponentPeer): Remove temporary try/catch block.
1048 (setVisible): Call show and hide.
1049 (show): Make native.
1051 (getArgs): Don't add "visible" argument.
1052 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1053 (property_notify_predicate): Return Bool instead of int.
1054 (find_layout): New function.
1055 (connectJObject): Call find_layout.
1056 (connectSignals): Likewise.
1057 (moveLayout): Likewise.
1058 (gtkLayoutSetVisible): Likewise.
1060 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1062 * javax/swing/AbstractButton.java:
1063 (setDisplayedMnemonicIndex): Check if button
1064 text is not null before checking its length.
1065 * javax/swing/JMenuItem.java:
1066 (processMouseEvent): Disarm menu item if mouse has
1068 * javax/swing/plaf/basic/BasicMenuUI.java:
1069 (MouseInputHandler.mouseEntered): Do not raise
1070 popup menu if this menu is already selected.
1071 (MouseInputHandler.mousePressed): Do not fire
1073 (MenuHandler): Implemented.
1075 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1077 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1078 (getSelectedObjects): Implemented.
1079 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1080 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1081 Added javadoc for few methods.
1082 (processMouseEvent): Made public.
1083 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1084 (processMouseEvent): Likewise.
1086 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1088 * javax/swing/AbstractButton.java:
1089 (init): Set display mnemonic index to -1.
1090 (setMnemonic(char)): Use setMnemonic(int).
1091 (setMnemonic(int)): Set display mnemonic index.
1092 (getDisplayedMnemonicIndex): Change method signature
1093 by removing 'index' parameter.
1094 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1095 Added default for Menu.selectionBackground.
1096 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1097 (paintMenuItem): Change background color of the selected
1099 (paintText): Paint differently when menu item is disabled.
1100 Also paint mnemonic if it appears in the menu item's label.
1101 (paintAccelerator): Paint accelerator differently
1102 if menu item is disabled.
1103 * javax/swing/plaf/basic/BasicMenuUI.java:
1104 (installDefaults): Install defaults for
1105 selectionForeground and selectionBackground.
1106 (uninstallDefaults): Uninstall defauls for
1107 selectionForeground and selectionBackground.
1109 2004-07-21 Michael Koch <konqueror@gmx.de>
1111 * javax/swing/text/AbstractDocument.java
1112 (BranchElement): Implemented.
1113 (LeafElement): Implemented.
1114 * javax/swing/text/DefaultCaret.java:
1115 Import used classes.
1116 (serialVersionUID): New constant.
1117 * javax/swing/text/JTextComponent.java
1118 (AccessibleJTextComponent): Removed dead declaration.
1119 (caretPos): Removed.
1120 (setCaret): New method.
1121 * javax/swing/text/PlainDocument.java
1122 (rootElement): New field.
1123 (PlainDocument): Initialize rootElement.
1124 (createDefaultRoot): New method.
1125 (getDefaultRootElement): Implemented.
1126 * javax/swing/text/View.java: Reformatted.
1127 * javax/swing/text/ViewFactory.java
1128 (create): Added javadoc.
1130 2004-07-21 Michael Koch <konqueror@gmx.de>
1132 * javax/swing/ToolTipManager.java: Reformatted.
1134 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1136 * javax/swing/AbstractButton.java
1137 (changeEvent): New field.
1138 (fireItemStateChanged): Change source of the event
1139 to 'this' before firing it to button listeners.
1140 (fireActionPerformed): Likewise.
1141 (fireStateChanged): Likewise.
1142 (createActionListener): Do not set source
1143 of the event to AbstractButton.
1144 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1145 (ContainerHandler.componentAdded): Removed
1146 print out statement.
1147 (ContainerHandler.componentRemoved): Likewise.
1149 2004-07-21 Michael Koch <konqueror@gmx.de>
1151 * javax/swing/text/Highlighter.java: New file.
1152 * Makefile.am: Added javax/swing/text/Highlighter.java.
1153 * Makefile.in: Regenerated.
1155 2004-07-21 Michael Koch <konqueror@gmx.de>
1157 * javax/swing/ToolTipManager.java
1158 (stillInsideTimerAction): Fixed constructor arguments.
1159 (outsideTimerAction): Likewise.
1160 (insideTimerAction): Likewise.
1162 2004-07-21 Michael Koch <konqueror@gmx.de>
1164 * javax/swing/JButton.java: Reformatted.
1165 * javax/swing/JFormattedTextField.java
1166 (getUIClassID): Implemented.
1167 * javax/swing/JRootPane.java
1168 (serialVersionUID): New constant.
1169 * javax/swing/JTextField.java
1171 (JTextField): Simplified.
1172 (getUIClassID): New method.
1173 (getActionListeners): Added @since tag.
1174 (setColumns): Invalidate layout and repaint.
1175 (getHorizontalAlignment): New method.
1176 (setHorizontalAlignment): New method.
1177 (selectAll): Removed.
1178 * javax/swing/SwingUtilities.java
1179 (getAncestorOfClass): Removed redundant @see tag.
1180 (isLeftMouseButton): Fixed implementation.
1181 (isMiddleMouseButton): Likewise.
1182 (isRightMouseButton): Likewise.
1183 * javax/swing/text/AbstractDocument.java
1184 (AttributeContext.addAttribute): New method.
1185 (AttributeContext.addAttributes): New method.
1186 (AttributeContext.getEmptySet): New method.
1187 (AttributeContext.reclaim): New method.
1188 (AttributeContext.removeAttribute): New method.
1189 (AttributeContext.removeAttributes): New method.
1190 * javax/swing/text/Document.java
1191 (createPosition): Throws BadLocationException.
1192 (getText): Likewise.
1194 * javax/swing/text/JTextComponent.java
1195 (getText): Return null if no document is set. Catch
1196 BadLocationException.
1198 (updateUI): Simplified.
1200 2004-07-21 Michael Koch <konqueror@gmx.de>
1202 * javax/swing/JButton.java
1203 (removeNotify): Fixed javadoc.
1204 (updateUI): Simplified.
1206 2004-07-21 David Jee <djee@redhat.com>
1208 * gnu/java/awt/image/ImageDecoder.java
1209 (startProduction): Only add consumer if it's not added yet.
1210 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1211 (GdkPixbufDecoder): Don't call initState() here.
1212 (produce): Call initState() here, to ensure area_prepared and
1213 area_updated signals are properly connected.
1214 * gnu/java/awt/peer/gtk/GtkImage.java
1215 (setColorModel): Use equals() to compare ColorModel objects.
1216 (setPixels): Likewise.
1217 * java/awt/image/ColorModel.java
1218 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1219 * java/awt/image/RGBImageFilter.java
1220 (setColorModel): Set consumer's color model.
1221 (setPixels): Use equals() to compare ColorModel objects.
1223 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1225 * java/net/URLConnection.java (position): New field.
1226 (dateFormat1, dateFormat2, dateFormat3): Removed.
1227 (dateFormats): New field.
1228 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1229 each time instead of re-allocating.
1230 (initializeDateFormats): Initialize 'dateFormats'.
1232 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1235 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1238 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1240 * java/net/Socket.java (getImpl): Now private. Remove comment.
1242 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1244 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1245 of chained Writer when calling super-constructor.
1246 * java/io/FilterWriter.java (FilterWriter): Likewise.
1247 * java/io/PrintWriter.java (PrintWriter): Likewise.
1249 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1251 * prims.cc (process_gcj_properties): Don't increment i within LHS
1254 2004-07-19 Per Bothner <per@bothner.com>
1256 Print -verbose:message on "loading", not initialization.
1257 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1258 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1259 gcj::verbose_class_flag.
1260 * java/lang/natClass.cc (initializeClass): Don't print message here.
1261 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1262 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1263 (_Jv_PrepareCompiledClass): Likewise.
1265 2004-07-18 Matthias Klose <doko@debian.org>
1267 * configure.in: Substitute target_noncanonical.
1268 * configure: Regenerate
1270 2004-07-17 Michael Koch <konqueror@gmx.de>
1272 * java/lang/String.java: Fixed javadocs all over.
1274 2004-07-17 Mark Wielaard <mark@klomp.org>
1276 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1277 when size is smaller.
1278 * java/io/RandomAccessFile.java (setLength): Use truncate for
1279 shrinking the file and seek plus write for expanding the file.
1281 2004-07-17 Michael Koch <konqueror@gmx.de>
1283 * gnu/java/nio/channels/natFileChannelPosix.cc
1284 (implTruncate): Always save current position. Only reposition file
1285 pointer to where we started if not beyond new lenght. Reposition file
1286 pointer to file length if it points beyond the end of file.
1288 2004-07-17 Mark Wielaard <mark@klomp.org>
1290 * javax/swing/Box.java: Put FIXME comment above class declaration.
1291 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1292 * javax/swing/JCheckBox.java: Likewise.
1293 * javax/swing/JDialog.java: Likewise.
1294 * javax/swing/JRadioButton.java: Likewise.
1295 * javax/swing/JToggleButton.java: Likewise.
1296 * javax/swing/UIManager.java: Likewise.
1297 * javax/swing/border/TitledBorder.java: Likewise.
1298 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1299 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1300 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1301 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1302 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1303 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1304 * javax/swing/text/JTextComponent.java: Likewise.
1306 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1308 * java/net/DatagramPacket.java (setAddress): Removed check for
1311 2004-07-17 Michael Koch <konqueror@gmx.de>
1313 * java/net/DatagramSocket.java
1314 (getLocalAddress): Check if socket is bound or not.
1315 * java/net/Socket.java
1316 (getLocalAddrss): Check if socket is bound or not.
1317 (getPort): Return -1 when not connected. Dont check getImpl() for
1319 (setReuseAddress): Check if socket is closed.
1320 (isConnected): Check if getImpl() returns null.
1322 2004-07-17 Mark Wielaard <mark@klomp.org>
1324 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1325 on notifier object before calling notifyAll().
1327 2004-07-17 Michael Koch <konqueror@gmx.de>
1329 * gnu/java/nio/channels/FileChannelImpl.java
1330 (finalize): Added javadoc.
1332 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1334 * java/text/CollationElementIterator.java
1335 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1336 (setText): Use ArrayList instead of Vector.
1338 2004-07-17 Michael Koch <konqueror@gmx.de>
1340 * java/nio/ByteOrder.java
1341 (static): Removed. Not needed.
1342 Thanks to Patrick Reali for noticing.
1343 * java/nio/charset/CharsetDecoder.java
1344 (decode): Fix for classpath bug #9177: Reset state before flipping.
1346 2004-07-17 Michael Koch <konqueror@gmx.de>
1348 * java/security/Security.java: Fixed javadocs all over.
1350 2004-07-17 Michael Koch <konqueror@gmx.de>
1352 * gnu/java/awt/EmbeddedWindow.java
1354 (addNotify): Set peer via reflection.
1355 (setWindowPeer): Removed.
1356 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1357 * Makefile.am (nat_source_files):
1358 Removed gnu/java/awt/natEmbeddedWindow.cc.
1359 * Makefile.in: Regenerated.
1361 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1363 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1365 * configure: Regenerated.
1367 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1369 * configure.in: Use build_noncanonical rather than build_alias.
1370 * configure: Rebuild.
1372 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1373 by logic refactoring. Move default definition of NATIVE closer
1374 to first alternate definition.
1375 * configure: Regenerate.
1377 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1378 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1379 gcj/Makefile.in: Regenerate.
1380 * configure.in: Set ZIP and GCJH. Remove redundant condition
1381 in AM_CONDITIONAL(NATIVE,...)
1382 * configure: Regenerate.
1384 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1386 * configure.in: Use target_noncanonical rather than
1387 target_alias for forward-compatibility with autoconf 2.59.
1388 * configure: Regenerate.
1389 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1390 testsuite/Makefile.am: Substitute target_noncanonical.
1391 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1392 testsuite/Makefile.in: Regenerate.
1394 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1395 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1396 * acinclude.m4: Include acx.m4.
1397 * aclocal.m4: Regenerate.
1398 * configure: Regenerate.
1400 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1403 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1404 (decimalFormat): New static variable.
1406 (getTime): New. Override Date.getTime().
1407 (toString): Synchronize. Use decimalFormat to format nanos value
1408 correctly. Truncate extra zeros.
1409 (before): Compare getNanos() only if getTime() is equal.
1412 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1414 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1415 * configure.in: ...here.
1416 * aclocal.m4: Regenerate.
1417 * configure: Regenerate.
1419 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1420 * configure: Rebuilt with autoconf 2.13.
1421 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1422 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1424 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1427 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1429 * Makefile.in: Rebuilt.
1430 * testsuite/libjava.lang/LargeFile.java: New test case.
1431 * testsuite/libjava.lang/LargeFile.out: New file.
1433 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1435 * java/beans/EventHandler.java: Remove debugging statements.
1437 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1439 * java/beans/EventHandler.java: New file.
1440 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1441 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1442 testsuite/Makefile.in: Regenerate.
1444 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1446 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1447 flag to the gcj_setup.
1448 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1450 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1451 deprecation flag change. 58 XFAILS removed.
1453 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1455 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1456 -fno-use-divide-subroutine.
1457 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1458 (HANDLE_FPE): Define.
1459 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1460 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1461 (HANDLE_DIVIDE_OVERFLOW): Define.
1463 2004-07-14 Michael Koch <konqueror@gmx.de>
1464 Matthias Klose <doko@debian.org>
1466 * java/awt/im/InputContext.java: Initialize in, line.
1468 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1470 * interpret.cc (run): Correctly access libffi return values of
1471 integral smaller-than-int type; these are implicitly promoted.
1473 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1476 * interpret.cc (compile_mutex): New.
1477 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1478 (run): Lock compile_mutex before calling compile() if compilation is
1480 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1481 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1483 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1486 * include/jvm.h (_Jv_value): New union type.
1487 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1488 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1491 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1493 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1494 * gnu/awt/xlib/XOffScreenImage.java
1495 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1496 constructor argument. Add constructor using ImageProducer.
1497 (getSource): Implement.
1498 (imageComplete): New method.
1499 (setColorModel): New method.
1500 (setDimensions): New method.
1501 (setHints): New method.
1502 (setPixels): New method.
1503 (setProperties): New method.
1504 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1505 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1507 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1510 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1511 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1512 (finalizerReady): Now native.
1514 (runFinalizers): Removed.
1515 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1516 a primitive lock, and don't hold it while running the finalizers.
1517 (runFinalizers): Implement. Don't aquire any Java lock.
1518 (finalizerReady): Use lock primitives to signal finalizer thread.
1520 2004-07-11 Mark Wielaard <mark@klomp.org>
1522 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1523 * java/net/URLStreamHandler.java (parseURL): When url file part
1524 doesn't contain a '/' just ignore context.
1526 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1528 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1529 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1530 (MAKE_THROW_FRAME): Do not modify PSW address.
1531 (INIT_SEGV): Install SIGINFO-style signal handler.
1532 (INIT_FPE): Likewise.
1534 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1536 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1537 status. 21 xfail's removed, 1 added.
1539 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1541 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1543 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1545 * java/text/MessageFormat.java
1546 (formatInternal): Append "{n}" if argument n is unavailable.
1547 (format(Object, StringBuffer, FieldPosition)): This
1548 should be equivalent to format(Object[],
1549 StringBuffer, FieldPosition).
1551 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1553 * java.util.Calendar.java (cache): New private static field. Cached
1554 mappings of locales->calendar classes.
1555 (ctorArgTypes): New private static field. Singleton argument for
1556 calendar class constructor lookup.
1557 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1558 Optimize by bypassing reflection instantiation for the
1559 GregorianCalendar case.
1561 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1563 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1564 ResourceBundle.getBundle() calls.
1565 * java/util/GregorianCalendar.java: Likewise.
1566 * java/util/Currency.java: Likewise.
1567 * java/text/BreakIterator.java: Likewise.
1568 * java/text/Collator.java: Likewise.
1569 * java/text/DateFormat.java: Likewise.
1570 * java/text/DateFormatSymbols.java: Likewise.
1571 * java/text/DecimalFormatSymbols.java: Likewise.
1572 * java/text/NumberFormat.java: Likewise.
1573 * java/awt/Window.java: Likewise.
1575 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1577 * java/util/ResourceBundle.java (bundleCache): Renamed from
1578 resourceBundleCache. Update comments.
1579 (getObject): Don't catch MissingResourceException.
1580 (getBundle(String)): Remove 'final'. Use system classloader if
1581 getCallingClassLoader returned null.
1582 (getBundle(String, Locale)): Likewise.
1583 (BundleKey): New private class. HashMap key for bundle cache lookup.
1584 (lookupKey): New. Singleton instance of BundleKey.
1585 (nullEntry): New. Cache entry to represent failed lookups.
1586 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1587 caching strategy, no-allocation lookup, and new tryBundle methods.
1588 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1589 name using given classloader.
1590 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1591 baseName for given Locale and attempt to load bundle.
1593 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1595 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1596 illegal protected method calls.
1598 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1600 Fix or remove some bogus test cases.
1601 * testsuite/libjava.compile/pr10459_2.java: Removed.
1602 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1604 * testsuite/libjava.compile/inner_data.java: Test against its own
1607 2004-07-09 Michael Koch <konqueror@gmx.de>
1609 * scripts/unicode-muncher.pl: Updated to version 2.1
1610 from GNU classpath. Added some clarifications on where to find the
1611 needed files from www.unicode.org.
1612 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1613 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1614 Removed, these can directly be downloaded from www.unicode.org if
1616 * gnu/java/lang/CharData.java: Regenerated.
1617 * include/java-chartables.h: Regenerated.
1618 * Makefile.am (ordinary_java_source_files):
1619 Removed gnu/java/lang/CharData.java.
1620 * Makefile.in: Regenerated.
1622 2004-07-09 Michael Koch <konqueror@gmx.de>
1624 * java/security/AccessControlContext.java,
1625 java/security/SecureClassLoader.java:
1628 2004-07-09 Michael Koch <konqueror@gmx.de>
1630 * java/io/ObjectInputStream.java (readFields): Use long datatype
1631 when shifting byte values more then 24 bits left.
1633 2004-07-09 Michael Koch <konqueror@gmx.de>
1635 * java/util/zip/DeflaterOutputStream.java,
1636 java/util/zip/GZIPInputStream.java,
1637 java/util/zip/GZIPOutputStream.java,
1638 java/util/zip/InflaterInputStream.java:
1639 Reformatted. Added javadocs. Reordered all stuff.
1640 Renamed variables to be more clear.
1642 2004-07-09 Michael Koch <konqueror@gmx.de>
1644 * javax/imageio/IIOException.java,
1645 javax/imageio/event/IIOReadProgressListener.java,
1646 javax/imageio/event/IIOReadUpdateListener.java,
1647 javax/imageio/event/IIOReadWarningListener.java,
1648 javax/imageio/event/IIOWriteProgressListener.java,
1649 javax/imageio/event/IIOWriteWarningListener.java:
1651 * Makefile.am: Added new files.
1652 * Makefile.in: Regenerated.
1654 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1656 * java/text/RuleBasedCollator.java
1657 (mergeRules): Use ArrayList instead of Vector.
1658 (subParseString): likewise.
1659 (parseString): likewise.
1660 (buildCollationVector): likewise.
1661 (getCollationKey): likewise.
1663 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1665 * java/text/DateFormat.java (parse):
1666 Improved javadoc. Improved exception message.
1668 2004-07-09 Mark Wielaard <mark@klomp.org>
1670 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1671 interrupted() method to clear interupt flag of our Thread.
1673 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1675 * java/nio/Buffer.java,
1676 java/nio/ByteBuffer.java,
1677 java/nio/ByteBufferHelper.java,
1678 java/nio/ByteBufferImpl.java,
1679 java/nio/CharBuffer.java,
1680 java/nio/CharBufferImpl.java,
1681 java/nio/CharViewBufferImpl.java,
1682 java/nio/DirectByteBufferImpl.java,
1683 java/nio/DoubleBuffer.java,
1684 java/nio/DoubleBufferImpl.java,
1685 java/nio/DoubleViewBufferImpl.java,
1686 java/nio/FloatBuffer.java,
1687 java/nio/FloatBufferImpl.java,
1688 java/nio/FloatViewBufferImpl.java,
1689 java/nio/IntBuffer.java,
1690 java/nio/IntBufferImpl.java,
1691 java/nio/IntViewBufferImpl.java,
1692 java/nio/LongBuffer.java,
1693 java/nio/LongBufferImpl.java,
1694 java/nio/LongViewBufferImpl.java,
1695 java/nio/MappedByteBufferImpl.java,
1696 java/nio/ShortBuffer.java,
1697 java/nio/ShortBufferImpl.java,
1698 java/nio/ShortViewBufferImpl.java:
1699 Fixed javadocs all over. Improved input error
1702 * java/nio/Buffer.java
1703 (checkForUnderflow, checkForOverflow, checkIndex,
1704 checkIfReadOnly, checkArraySize): New helper methods
1707 * java/nio/ByteBufferHelper.java
1708 (checkRemainingForRead, checkRemainingForWrite,
1709 checkAvailableForRead, checkAvailableForWrite): Removed
1710 no longer needed methods.
1712 2004-07-09 Michael Koch <konqueror@gmx.de>
1714 * gnu/regexp/CharIndexedInputStream.java:
1715 Reordered imports to match classpath.
1717 2004-07-09 Michael Koch <konqueror@gmx.de>
1719 * gnu/java/awt/EmbeddedWindow.java:
1720 Load native library for setWindowPeer method.
1722 2004-07-08 Randolph Chung <tausq@debian.org>
1724 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
1725 * configure: Regenerate.
1726 * configure.host: Set can_unwind_signal for hppa*-linux.
1727 * include/pa-signal.h: New file.
1729 2004-07-07 Per Bothner <per@bothner.com>
1731 * Makefile.am: Add rules to build libgij from just gij.cc.
1733 * include/jvm.h (namespace jcj): Declare verbose_class_flag
1734 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
1735 (initializeClass): If verbose_class_flag, print message.
1736 * gij.cc (main): Handle -verbose:class flag.
1738 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
1740 * configure.host: Enable hash synchronization on Darwin.
1741 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
1742 ';', since this is a comment on Darwin.
1743 (compare_and_swap_release): Likewise.
1745 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
1747 * java/net/URLStreamHandler.java (parseURL): Canonicalize
1748 file portion of URL in addition to spec for file: protocol.
1750 2004-07-05 Anthony Green <green@redhat.com>
1752 * java/io/File.java (toURI): Merge from Classpath.
1754 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1756 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
1757 before passing to URL constructor. Rethrow any MalformedURLException
1758 as a RuntimeException. Catch MalformedURLException specifically, not
1761 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1763 * java/util/Locale.java (readObject): Intern strings read from object
1766 2004-07-04 Michael Koch <konqueror@gmx.de>
1768 * gnu/gcj/runtime/FirstThread.java,
1769 gnu/gcj/runtime/natFirstThread.cc: Removed.
1770 * gnu/java/lang/MainThread.java,
1771 gnu/java/lang/natMainThread.cc: New files.
1772 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
1773 * Makefile.am: Added new files and removed deleted ones.
1774 * Makefile.in: Regenerated.
1776 2004-07-03 Mark Wielaard <mark@klomp.org>
1777 Anthony Green <green@redhat.com>
1779 * java/net/URL.java (getFile): Clarify return value doc.
1780 (getPath): Return null if file is empty - not empty String.
1781 (set): Convert protocol to lower case before doing anything.
1782 Only change the protocol handler if it's different.
1784 2004-07-03 Anthony Green <green@redhat.com>
1786 * java/net/URL.java (URL): Convert protocol to lower case before
1787 doing anything, so we getURLStreamHandler() with the proper value.
1789 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
1791 * java/util/Locale.java (hashcode): Made transient.
1792 (hashCode): No longer synchronized.
1793 (equals): Remove comment.
1794 (writeObject): No longer synchronized. Implement using writeObject
1795 calls instead of tweaking hashCode field. Update doc.
1796 (readObject): Implement using readObject calls.
1798 2004-06-26 Geoffrey Keating <geoffk@apple.com>
1799 Andreas Tobler <a.tobler@schweiz.ch>
1801 * configure.host (powerpc-*-darwin*): New case, define
1803 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
1804 * configure: Regenerate.
1805 * include/darwin-signal.h: New.
1807 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
1809 * java/beans/Statement.java (doExecute): Fix formatting.
1811 2004-06-29 Per Bothner <per@bothner.com>
1813 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
1814 etc etc): Remove needless parenthesis, which causes __stdcall__
1815 attribute on MinGW to get ignored.
1817 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
1819 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
1821 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
1823 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
1825 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
1827 * java/beans/Expression.java: New file.
1828 * java/beans/Statement.java: New file.
1829 * Makefile.am: Added new files.
1830 * Makefile.in: Re-generate.
1832 2004-06-27 Mark Wielaard <mark@klomp.org>
1834 * java/io/FilePermission.java (usingPerms): Removed.
1835 (actionsString): Made final.
1836 (cachePerms): Renamed to checkPerms.
1837 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
1839 (FilePermission): Check arguments, call checkPerms().
1840 (equals): Remove cachePerms() call.
1841 (implies): Likewise.
1843 2004-06-27 Mark Wielaard <mark@klomp.org>
1845 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
1847 (sendRequest): Use new field in user-agent http agent.
1849 2004-06-27 Mark Wielaard <mark@klomp.org>
1851 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1852 when argument is null.
1854 2004-06-26 Mark Wielaard <mark@klomp.org>
1856 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1857 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
1859 (cancel_clicked): Likewise.
1861 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
1863 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1864 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
1865 can not calculate the right value.
1866 (dpi_changed_cb): Likewise. Mark *pspec as unused.
1868 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
1870 * testsuite/libjava.jacks/jacks.xfail: Remove
1871 15.9.1-qualified-concrete-20.
1873 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
1875 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
1876 encoding name to iconv.
1877 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
1879 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
1882 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
1883 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
1884 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
1886 2004-06-21 Andrew Haley <aph@redhat.com>
1888 * java/io/ObjectOutputStream.java: Add DEBUG statements
1890 (dumpElementln): New method.
1892 * java/io/ObjectInputStream.java
1893 (currentClassLoader): Make native.
1894 (callersClassLoader): New field.
1896 (readObject): ENDBLOCKDATA is generated if the class has a write
1897 method, not if it has a read method.
1898 (readObject): Save and restore this.currentObject and
1899 this.currentObjectStreamClass around calls to callReadMethod().
1900 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
1903 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
1905 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
1908 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
1910 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
1911 if desired, before the default class loader is initialised.
1912 Call INIT_SEGV only if HANDLE_SEGV is defined.
1914 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
1916 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
1917 directory only if it actually exists.
1919 2004-06-18 Graydon Hoare <graydon@redhat.com>
1921 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
1922 Fix up non-ansi comments.
1924 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
1926 * javax/swing/text/AbstractDocument.java: Adding missing import
1927 for javax.swing.event.EventListenerList.
1928 * javax/swing/text/DefaultCaret.java: Likewise.
1930 2004-06-17 Michael Koch <konqueror@gmx.de>
1932 * javax/swing/JToolBar.java
1934 (JToolBar): Use Component.setName(String) instead of doing it all
1936 * javax/swing/Timer.java
1937 (queueEvent): Added missing modifier.
1939 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
1941 * Makefile.am: Added new file.
1942 * Makefile.in: Re-generate.
1943 * javax/swing/JMenu.java:
1944 (insertSeparator): Implemented.
1945 * javax/swing/JPopupMenu.java:
1946 (JPopupMenu.Separator): Implemented.
1947 * javax/swing/MenuSelectionManager.java:
1948 (processMouseEvent): Use java.awt.Component
1949 for event source instead of javax.swing.JComponent.
1950 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
1951 New File. Implemented.
1953 2004-06-16 David Jee <djee@redhat.com>
1955 * java/awt/GridBagLayout.java
1956 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
1957 Make sure pos_x and pos_y are never negative.
1959 2004-04-16 Andrew Overholt <overholt@redhat.com>
1961 * Makefile.am: Add new file.
1962 * Makefile.in: Re-generate.
1963 * javax/swing/JToolBar.java
1964 Partially implemented.
1965 * javax/swing/plaf/basic/BasicToolBarUI.java
1966 New file. Partially implemented.
1968 2004-06-16 Graydon Hoare <graydon@redhat.com>
1970 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1971 (setComposite): Accept AlphaComposite arguments.
1972 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1973 (createBufferedImage): Add new overloads.
1974 * gnu/java/awt/peer/gtk/GtkToolkit.java
1975 (createImage): Use GdkPixbufDecoder.createBufferedImage
1976 when useGraphics2D() is true.
1977 (getImage): Delegate to createImage.
1978 * javax/swing/JList.java
1980 (getFirstVisibleIndex):
1981 (getLastVisibleIndex):
1983 (ensureIndexIsVisible): New methods.
1984 * javax/swing/Timer.java: Reimplement.
1986 2004-06-16 Michael Koch <konqueror@gmx.de>
1988 * javax/swing/text/AbstractDocument.java
1989 (AbstracElement): Made public, implements java.io.Serializable.
1990 (AttributeContext): Made public.
1991 (BranchElement): Likewise.
1992 (Content): Likewise.
1993 (DefaultDocumentEvent): Made public, extends
1994 javax.swing.undo.CompoundEdit.
1995 (ElementEdit): Made public, extends
1996 javax.swing.undo.AbstractUndoableEdit.
1997 (LeafElement): Made public.
1998 (LeafElement.LeafElement): Made public.
2000 2004-06-16 Michael Koch <konqueror@gmx.de>
2002 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2003 methods (that were obviously never be intended to get included hi this
2004 class. Added some methods too.
2006 2004-06-16 Michael Koch <konqueror@gmx.de>
2008 * javax/swing/text/PlainDocument.java
2009 (serialVersionUID): New constant.
2010 (lineLimitAttribute): Likewise.
2011 (tabSizeAttribute): Likewise.
2012 (tabSize): New field.
2013 (PlainDocument): Made public.
2014 (PlainDocument): New constructor.
2016 2004-06-16 Michael Koch <konqueror@gmx.de>
2018 * javax/swing/text/AbstractDocument.java
2019 (insertString): Throws BadLocationException.
2020 * javax/swing/text/Document.java
2021 (insertString): Likewise.
2022 * javax/swing/text/JTextComponent.java:
2023 Javadocs and comments cleaned up.
2025 2004-06-16 Michael Koch <konqueror@gmx.de>
2027 * javax/swing/event/UndoableEditListener.java: Reformatted.
2028 * javax/swing/text/AbstractDocument.java
2029 (AbstractDocument): Implements java.io.Serializable.
2030 (doc_list): Removed.
2031 (undo_list): Removed.
2032 (AbstractElement.serialVerionUID): New field.
2033 (BranchElement.serialVerionUID): Likewise.
2034 (DefaultDocumentEvent.serialVerionUID): Likewise.
2035 (ElementEdit.serialVerionUID): Likewise.
2036 (LeafElement.serialVerionUID): Likewise.
2037 (serialVerionUID): Likewise.
2038 (BAD_LOCATION): New constant.
2039 (BidiElementName): Likewise.
2040 (ContentElementName): Likewise.
2041 (ParagraphElementName): Likewise.
2042 (SectionElementName): Likewise.
2043 (ElementNameAttribute): Likewise.
2044 (AbstractDocument): Made protected.
2045 (AbstractDocument): New construtor.
2046 (listenerList): New field.
2047 (fireChangedUpdate): Implemented.
2048 (fireInsertUpdate): Likewise.
2049 (fireRemoveUpdate): Likewise.
2050 (fireUndoableEditUpdate): Likewise.
2051 (getListeners): Likewise.
2052 (addDocumentListener): Likewise.
2053 (removeDocumentListener): Likewise.
2054 (addUndoableEditListener): Likewise.
2055 (removeUndoableEditListener): Likewise.
2056 (getDocumentListeners): New method.
2057 (getUndoableEditListeners): Likewise.
2058 (getAsynchronousLoadPriority): Made public.
2059 (getBidiRootElement): Likewise.
2060 (setAsynchronousLoadPriority): Likewise.
2061 (setDocumentProperties): Likewise.
2062 * javax/swing/text/BadLocationException.java
2063 (serialVerionUID): New field.
2064 * javax/swing/text/DefaultCaret.java
2065 (changeEvent): New field.
2066 (listenerList): Likewise.
2068 (addChangeListener): Reimplemented.
2069 (removeChangeListener): Likewise.
2070 (getListeners): New method.
2071 (getChangeListeners): Likwise.
2072 (getComponent): Likewise.
2073 * javax/swing/text/GapContent.java
2074 (GapContent): Implements java.io.Serializable.
2075 (serialVerionUID): New field.
2077 2004-06-16 Michael Koch <konqueror@gmx.de>
2079 * javax/swing/JTree.java
2080 (treeModel): New field.
2081 (JTree): New constructors, one existing one made public.
2082 (createTreeModel): New method.
2083 (addTreeExpansionListener): Likewise.
2084 (removeTreeExpansionListener): Likewise.
2085 (getTreeExpansionListeners): Likewise.
2086 (fireTreeCollapsed): Likewise.
2087 (fireTreeExpanded): Likewise.
2088 (addTreeSelectionListener): Likewise.
2089 (removeTreeSelectionListener): Likewise.
2090 (getTreeSelectionListeners): Likewise.
2091 (fireValueChanged): Likewise.
2092 (addTreeWillExpandListener): Likewise.
2093 (removeTreeWillExpandListener): Likewise.
2094 (getTreeWillExpandListeners): Likewise.
2095 (fireTreeWillCollapse): Likewise.
2096 (fireTreeWillExpand): Likewise.
2098 2004-06-16 Michael Koch <konqueror@gmx.de>
2100 * javax/swing/JTree.java: Reformatted.
2102 2004-06-16 Michael Koch <konqueror@gmx.de>
2104 * javax/swing/JTextArea.java: New file.
2105 * javax/swing/JTextField.java
2107 (notifyAction): New constant.
2108 (columns): New field.
2109 (JTextField): New constructors.
2110 (createDefaultModel): New method.
2111 (addActionListener): Reimplmemented.
2112 (removeActionListener): Reimplemented.
2113 (getActionListeners): New method.
2114 (fireActionPerformed): New method.
2115 (getColumns): New method.
2116 (setColumne): New method.
2117 * javax/swing/text/JTextComponent.java
2118 (AccessibleJTextComponent.serialVersionUID): New field.
2119 (serialVersionUID): Likewise.
2120 (DEFAULT_KEYMAP): Likewise.
2121 (FOCUS_ACCELERATOR_KEY): Likewise.
2122 (doc): Made private.
2123 (icon_gap): Likewise.
2126 (JTextComponent): Some constructors removed.
2127 (getScrollableTracksViewportHeight): New method.
2128 (getScrollableTracksViewportWidth): Likewise.
2129 * Makefile.am: Added javax/swing/JTextArea.java.
2130 * Makefile.in: Regenerated.
2132 2004-06-15 Graydon Hoare <graydon@redhat.com>
2134 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2135 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2136 * javax/swing/JViewport.java
2137 (getExtentSize): Return size rather than preferred size.
2138 (toViewCoordinates): New methods.
2139 (getViewSize): Return size rather than preferred size.
2140 (setViewSize): Note view size as set.
2141 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2142 * javax/swing/plaf/basic/BasicScrollBarUI.java
2143 (getPreferredSize): Don't redo layout.
2144 * javax/swing/plaf/basic/BasicViewportUI.java
2145 (paint): Translate image properly and eat exceptions.
2147 2004-06-15 Kim Ho <kho@redhat.com>
2149 * javax/swing/JTabbedPane.java
2150 (setComponent): Remove old component and
2152 (setSelectedIndex): Don't operate on the
2153 components if they're null. Don't set index
2154 on the model if the index is the same.
2155 (insertTab): Don't add or hide the component
2156 if it's null. Repaint the container.
2157 * javax/swing/plaf/basic/BasicLookAndFeel.java
2158 Change colors for TabbedPane.
2159 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2160 (mousePressed): Re-layout and paint the component.
2161 (layoutContainer): Don't set location on the view.
2162 (ScrollingViewport::paint): Remove.
2164 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2166 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2167 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2169 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2170 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2171 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2173 (drawLine): Call gdk_flush before leaving GDK critical region.
2174 (fillRect): Likewise.
2175 (drawRect): Likewise.
2176 (copyArea): Likewise.
2177 (copyPixmap): Likewise.
2178 (clearRect): Likewise.
2179 (drawArc): Likewise.
2180 (drawPolyline): Likewise.
2181 (drawPolygon): Likewise.
2182 (fillPolygon): Likewise.
2183 (fillArc): Likewise.
2184 (drawOval): Likewise.
2185 (fillOval): Likewise.
2187 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2189 (GdkFontMetrics): Add style argument to initState call.
2190 (stringWidth(String,int,int,String)): Add style parameter.
2191 (stringWidth(String)): Add style argument to stringWidth call.
2192 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2193 (initState): Set pango font style and weight based on AWT style
2194 parameter. Pass default GTK language to
2195 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2196 simply dividing by PANGO_SCALE.
2197 (stringWidth): Set pango font style and weight based on AWT style
2200 * java/awt/Button.java (next_button_number): New field.
2201 (paramString): Change output.
2202 (generateName): New method.
2203 (getUniqueLong): New method.
2205 2004-06-14 Kim Ho <kho@redhat.com>
2207 * javax/swing/JTabbedPane.java:
2208 (setComponentAt): Set the component, not
2210 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2211 (actionPerformed): Let deiconize catch exception.
2213 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2215 * javax/swing/JPopupMenu.java:
2216 (setVisible): Corrected location of a
2217 heavyweight popup menu.
2219 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2221 * javax/swing/MenuSelectionManager.java:
2222 Ran through jalopy to fix formatting style.
2224 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2226 * javax/swing/JLayeredPane.java:
2227 (remove): Revalidate and repaint layered pane after
2228 the component was removed.
2229 javax/swing/JMenu.java:
2230 (setVisible): Display popup menu at the user location,
2231 if one was set by the user.
2232 (setMenuLocation): Reimplemented. Fixed javadoc.
2233 * javax/swing/JMenuBar.java: Added javadoc.
2234 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2235 (MODEL_CHANGED_PROPERTY): New Property.
2236 (isSelected): Implemented.
2237 (setBorderPainted): Fire PropertyChangeEvent
2238 if paintBorder property changes.
2239 (setSelected): Implemented.
2240 (setSelectionModel): Implemented.
2241 * javax/swing/JPopupMenu.java: Added Javadoc
2242 (pack): Implemented.
2243 (setVisible): Reimplemented.
2244 (show): Fixed location.
2245 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2246 Container instead of JPanel.
2247 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2248 (clearSelectedPath): Reimplemented to clear selectedPath
2250 (processMouseEvent): Reimplemented.
2251 (setSelectedPath): Fire stateChange event indicating that
2252 selected menu path has changed.
2253 (getPath): Change to use ArrayList instead of Vector.
2254 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2255 (installUI): call installKeyboardActions().
2256 (uninstallUI): call uninstallKeyboardActions().
2258 2004-06-13 Michael Koch <konqueror@gmx.de>
2260 * javax/swing/text/DefaultCaret.java,
2261 javax/swing/text/BadLocationException.java:
2264 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2266 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2267 DEFAULT_COLS): New variables.
2268 (create): Don't allow 0 rows or 0 columns. Instead, set the
2269 values to DEFAULT_ROWS or DEFAULT_COLS.
2270 (getMinimumSize): Likewise.
2271 (getPreferredSize): Likewise.
2272 (minimumSize): Likewise.
2273 (preferredSize): Likewise.
2274 (create): Set peer's editable state.
2275 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2276 zero. Update javadocs.
2277 (TextArea(String)): Likewise.
2278 (TextArea(int,int)): Fix javadocs.
2279 (TextArea(String,int,int,int)): Only throw exception if one of
2280 rows or columns is zero. Fix javadocs.
2282 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2284 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2285 addition to Components.
2287 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2288 wasn't consumed by normal processing, send it to the parent
2291 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2292 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2295 2004-06-11 David Jee <djee@redhat.com>
2297 * java/awt/MediaTracker.java
2298 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2299 (addImage(Image,int,int,int)): Likewise.
2301 2004-06-11 Michael Koch <konqueror@gmx.de>
2303 * javax/swing/text/AbstractDocument.java,
2304 javax/swing/text/Document.java,
2305 javax/swing/text/GapContent.java,
2306 javax/swing/text/JTextComponent.java,
2307 javax/swing/text/PlainDocument.java:
2310 2004-06-11 Michael Koch <konqueror@gmx.de>
2312 * javax/swing/JRootPane.java
2313 (AccessibleJRootPane.serialVersionUID): New field.
2314 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2315 (AccessibleJRootPane.getAccessibleRole): New method.
2316 (RootLayout): Implements Serializable.
2317 (RootLayout.serialVersionUID): New field.
2318 (RootLayout.RootLayout): New constructor.
2319 (setJMenuBar): Made public.
2320 (getJMenuBar): Likewise.
2321 (JRootPane): Likewise.
2322 (createContentPane): Likewise.
2323 (createGlassPane): Likewise.
2324 (createLayeredPane): Likewise.
2326 2004-06-11 Michael Koch <konqueror@gmx.de>
2328 * javax/swing/SwingUtilities.java
2329 (isLeftMouseButton): Fixed javadoc.
2330 (isMiddleMouseButton): Likewise.
2331 (isRightMouseButton): Likewise.
2333 2004-06-11 Michael Koch <konqueror@gmx.de>
2335 * javax/swing/JScrollPane.java
2336 (serialVersionUID): New field.
2337 (columnHeader): Made protected.
2338 (rowHeader): Likewise.
2339 (lowerLeft): Likewise.
2340 (lowerRight): Likewise.
2341 (upperLeft): Likewise.
2342 (upperRight): Likewise.
2343 (horizontalScrollBar): Likewise.
2344 (horizontalScrollBarPolicy): Likewise.
2345 (verticalScrollBar): Likewise.
2346 (verticalScrollBarPolicy): Likewise.
2347 (viewport): Likewise.
2349 2004-06-11 Michael Koch <konqueror@gmx.de>
2351 * javax/swing/LookAndFeel.java: Fixed javadocs.
2353 2004-06-11 Michael Koch <konqueror@gmx.de>
2355 * javax/swing/JEditorPane.java: Fixed javadocs.
2356 (JEditorPane): Removed redundant call to to this().
2357 (fireHyperlinkUpdate): Implemented.
2359 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2361 * javax/swing/JMenu.java: Fixed file name
2362 in the file comment.
2364 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2366 * javax/swing/JMenu.java: Added javadoc.
2367 (JMenu): Added MenuChangeListener to listen to
2368 ChangeEvents occuring in menu's model.
2369 (insert): Throw IllegalArgumentException if
2370 index is less than 0
2371 (setSelected): Reimplement.
2372 (setPopupMenuVisible): Call menu's model isEnabled()
2373 (setDelay): Throw IllegalArgumentException if
2374 given amount of delay is less than 0.
2375 (createActionComponent): Implemented.
2376 (createActionChangeListener): Implemented.
2377 (addSeparator): Implemented.
2378 (getItem): Throw IllegalArgumentException if index is
2380 (getItemCount): Implemented.
2381 (fireMenuSelected): Changed to use menuEvent.
2382 (fireMenuDeselected): Likewise.
2383 (fireMenuCanceled): Likewise.
2384 (setAccelerator): Changed to throw an error if this
2386 (doClick): Implemented.
2387 (JMenu.ActionChangedListener): New inner class to handle
2388 PropertyChangeEvents occuring in the actions associated with menu.
2389 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2390 (BasicMenuUI): Added PropertyChangeListener to the menu.
2391 (createChangeListener): Implemented.
2392 (createMenuDragMouseListener): Likewise.
2393 (createMenuKeyListener): Likewise.
2394 (createPropertyChangeListener): Likewise.
2395 (uninstallListeners): Likewise.
2396 (BasicMenuUI.MouseInputHandler): Reimplemented.
2397 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2398 (BasicMenuUI.ChangeHandler): Likewise.
2399 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2400 (BasicMenuUI.MenuKeyHandler): Likewise.
2402 2004-06-10 David Jee <djee@redhat.com>
2404 * java/awt/MediaTracker.java
2405 (imageUpdate): Only do notifyAll() if the image is complete.
2407 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2409 * javax/swing/JApplet.java:
2410 (getJMenuBar): Made public.
2411 (setJMenuBar): Likewise.
2412 * javax/swing/JFrame.java:
2413 (getJMenuBar): Made public.
2414 (setJMenuBar): Likewise.
2415 * javax/swing/JWindow.java:
2416 (getJMenuBar): Removed.
2417 (setJMenuBar): Removed.
2419 2004-06-10 Michael Koch <konqueror@gmx.de>
2421 * javax/swing/JEditorPane.java
2422 (createEditorKitForContentType): Fixed visibility.
2423 (fireHyperlinkUpdate): Likewise.
2424 (getContentType): Likewise.
2425 (getEditorKit): Likewise.
2426 (getEditorKitForContentType): Likewise.
2427 (getPage): Likewise.
2429 (registerEditorKitForContentTyoe): Likewise.
2430 (replaceSelection): Likewise.
2431 (setContentType): Likewise.
2432 (setEditorKit): Likewise.
2433 (setPage): Likewise.
2435 2004-06-10 Michael Koch <konqueror@gmx.de>
2437 * javax/swing/Timer.java
2438 (Timer): New constructor.
2439 * javax/swing/plaf/basic/BasicProgressBarUI.java
2440 (animationTimer): Don't initialize at construction.
2441 (startAnimationTimer): Added since tag.
2442 (stopAnimationTimer): Likewise.
2443 (installUI): Use new Timer constructor.
2444 * javax/swing/plaf/basic/BasicScrollBarUI.java
2445 (installUI): Likewise.
2446 * javax/swing/plaf/basic/BasicSliderUI.java
2447 (installUI): Likewise.
2449 2004-06-10 Michael Koch <konqueror@gmx.de>
2451 * javax/swing/ButtonGroup.java
2452 (serialVersionUID): Made private.
2453 (buttons): Renamed from v, added javadoc.
2454 (sel): Added javadoc.
2455 (ButtonGroup): Likewise.
2458 (getElements): Likewise.
2459 (getSelection): Likewise.
2460 (setSelected): Likewise.
2461 (isSelected): Likewise.
2462 (getButtonCount): Likewise.
2464 2004-06-10 Michael Koch <konqueror@gmx.de>
2466 * javax/swing/ButtonGroup.java,
2467 javax/swing/ImageIcon.java,
2468 javax/swing/JEditorPane.java,
2469 javax/swing/JRootPane.java,
2470 javax/swing/JTextField.java,
2471 javax/swing/LookAndFeel.java,
2472 javax/swing/plaf/basic/BasicTextUI.java:
2475 2004-06-10 Michael Koch <konqueror@gmx.de>
2477 * javax/swing/text/Style.java: Added javadocs.
2479 2004-06-10 Michael Koch <konqueror@gmx.de>
2481 * javax/swing/JComponent.java
2482 (fireVetoableChange): Removed redundant cast.
2483 * javax/swing/JLabel.java
2484 (getDisabledIcon): Save icon for next call.
2486 2004-06-10 Michael Koch <konqueror@gmx.de>
2488 * javax/swing/KeyStroke.java
2489 (getKeyStroke(char,boolean)): Marked deprecated.
2491 2004-06-10 Michael Koch <konqueror@gmx.de>
2493 * javax/swing/DefaultCellEditor.java,
2494 javax/swing/GrayFilter.java,
2495 javax/swing/event/DocumentEvent.java,
2496 javax/swing/text/JTextComponent.java,
2497 javax/swing/text/MutableAttributeSet.java:
2500 2004-06-10 Michael Koch <konqueror@gmx.de>
2502 * javax/swing/plaf/BorderUIResource.java:
2503 Added serialVersionUID all over.
2505 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2507 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2509 2004-06-10 Michael Koch <konqueror@gmx.de>
2511 * javax/swing/table/DefaultTableCellRenderer.java
2512 (noFocusBorder): Initialize directly.
2514 2004-06-10 Michael Koch <konqueror@gmx.de>
2516 * javax/swing/plaf/basic/BasicArrowButton.java
2517 (setDirection): Use method argument.
2519 2004-06-10 Michael Koch <konqueror@gmx.de>
2521 * javax/swing/plaf/BorderUIResource.java,
2522 javax/swing/plaf/ComponentUI.java,
2523 javax/swing/undo/CompoundEdit.java,
2524 javax/swing/undo/StateEdit.java:
2525 Fixed javadocs all over.
2527 2004-06-10 Michael Koch <konqueror@gmx.de>
2529 * javax/swing/DefaultButtonModel.java
2530 (ARMED): Made public final, fixed value.
2531 (ENABLED): Likewise.
2532 (PRESSED): Likewise.
2533 (ROLLOVER): Likewise.
2534 (SELECTED): Likewise.
2535 (stateMask): Initialize directly.
2536 (listenerList): Likewise.
2537 (mnemonic): Likewise.
2538 (fireStateChanged): Removed argument, use changeEvent as event.
2539 All places where this method is called are fixed too.
2540 (getActionCommant): Fixed javadoc.
2541 (setGroup): Fixed javadoc.
2542 (getGroup): New method.
2544 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2546 * javax/swing/AbstractButton.java
2547 (AbstractButton): Use init() to initialize the button.
2548 (init): New Method. Initializes AbstractButton.
2549 * javax/swing/JMenuItem.java: Documented.
2550 (JMenuItem): Reimplemented.
2551 (init): Implemented.
2552 (setEnabled): Changed to call super.setEnabled()
2553 (processMouseEvent): Reimplemented.
2554 (fireMenuKeyPressed): Implemented.
2555 (fireMenuKeyReleased): Implemented.
2556 (fireMenuKeyTyped): Implemented.
2557 (menuSelectionChanged): disarm the model if the menu item was
2559 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2560 (getPath): Change to use ArrayList instead of Vector.
2561 (getPreferredSize): Renamed variable.
2562 (paintMenuItem): Paint margin area of menu item.
2563 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2564 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2565 menu item's bounds before clearing the selection.
2567 2004-06-09 David Jee <djee@redhat.com>
2569 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2570 (GtkTextComponentPeer): Set caret position to 0.
2571 * java/awt/TextComponent.java
2572 (setText): Set caret position to 0.
2573 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2574 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2575 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2576 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2578 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2579 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2582 2004-06-09 Kim Ho <kho@redhat.com>
2584 * Makefile.am: New files
2585 * Makefile.in: Regenerated
2586 * java/awt/Container.java
2587 (getComponentAt): Removed.
2588 * javax/swing/AbstractAction.java
2589 (ENABLED_PROPERTY): New property.
2590 (putValue): Fire PropertyChangeEvents.
2591 (setEnabled): ditto.
2592 (firePropertyChange): Javadoc and implement
2594 * javax/swing/AbstractButton.java
2595 (setAction): Don't create PropertyChangeListener
2596 if new Action is null.
2597 (setIcon): Don't set icon till after comparing
2599 (configurePropertiesFromAction): Check mnemonic
2600 key before calling intValue().
2601 (createActionPropertyChangeListener): Check
2602 properties rather than bulk change.
2603 * javax/swing/DefaultDesktopManager.java:
2605 * javax/swing/DesktopManager.java:
2607 * javax/swing/JComponent.java
2608 (fireVetoableChange): Implement.
2609 (paintImmediately): Use root component.
2610 * javax/swing/JDesktopPane.java: Implement
2611 * javax/swing/JInternalFrame.java: Implement
2612 * javax/swing/JLabel.java
2613 (getDisabledIcon): Return grayscaled icon if
2614 no disabled icon specified.
2615 * javax/swing/JMenuBar.java
2616 (getComponentAtIndex): Use getComponent
2617 * javax/swing/JOptionPane.java
2618 (getDesktopPaneForComponent): Use SwingUtilities'
2620 (getFrameForComponent): ditto.
2621 * javax/swing/JSplitPane.java
2622 (remove): Use getComponent.
2623 * javax/swing/SwingUtilities.java
2624 (convertPoint): Implement.
2625 * javax/swing/plaf/basic/BasicButtonUI.java
2626 (paintButtonNormal): Check opaqueness before
2628 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2630 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2632 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2634 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2636 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2637 Change InternalFrame and Desktop colors.
2639 2004-06-09 David Jee <djee@redhat.com>
2641 * java/awt/Container.java
2642 (remove): Do not set component to invisible.
2644 2004-06-09 Michael Koch <konqueror@gmx.de>
2646 * javax/swing/tree/DefaultMutableTreeNode.java
2647 (getLeafCount): Renamed enum to e.
2649 2004-06-09 Michael Koch <konqueror@gmx.de>
2651 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2652 (positionForMouseEvent): Removed redundant semicolon.
2653 (continueDrag): Use method arguments.
2655 2004-06-09 Michael Koch <konqueror@gmx.de>
2657 * javax/swing/border/TitledBorder.java,
2658 javax/swing/filechooser/FileSystemView.java,
2659 javax/swing/plaf/basic/BasicButtonListener.java,
2660 javax/swing/plaf/basic/BasicGraphicsUtils.java,
2661 javax/swing/plaf/basic/BasicLabelUI.java,
2662 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2663 javax/swing/plaf/basic/BasicScrollBarUI.java,
2664 javax/swing/plaf/basic/BasicScrollPaneUI.java,
2665 javax/swing/plaf/basic/BasicSliderUI.java,
2666 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2667 javax/swing/plaf/basic/BasicToggleButtonUI.java,
2668 javax/swing/table/JTableHeader.java,
2669 javax/swing/text/AbstractDocument.java,
2670 javax/swing/text/DefaultCaret.java,
2671 javax/swing/text/StyledEditorKit.java,
2672 javax/swing/tree/DefaultTreeCellEditor.java:
2673 Reworked import statements.
2675 2004-06-08 Graydon Hoare <graydon@redhat.com>
2677 * javax/swing/Box.java: Temporarily comment out code
2678 broken due to visibility bug.
2680 2004-06-09 Michael Koch <konqueror@gmx.de>
2682 * javax/swing/ImageIcon.java
2683 (ImageIcon): Added missing constructor.
2685 2004-06-08 Michael Koch <konqueror@gmx.de>
2687 * javax/swing/JToggleButton.java
2688 (JToggleButton): New constructor.
2689 (getAccessibleContext): Moved documentation into javadoc.
2690 (getUIClassID): Likewise.
2692 2004-06-08 Michael Koch <konqueror@gmx.de>
2694 * javax/swing/AbstractButton.java
2695 (getDisabledIcon): Create disabled icon if none exists yet.
2697 2004-06-08 Michael Koch <konqueror@gmx.de>
2699 * javax/swing/plaf/basic/BasicLookAndFeel.java
2700 (initClassDefaults): Added FormattedTextFieldUI.
2701 (loadResourceBundle): Renamed enum to e.
2703 2004-06-08 Michael Koch <konqueror@gmx.de>
2705 * javax/swing/plaf/basic/BasicButtonUI.java
2706 (paintIcon): Simplified.
2707 (paintText): Paint disabled button correctly.
2709 2004-06-08 Michael Koch <konqueror@gmx.de>
2711 * javax/swing/JComponent.java
2712 (createToolTip): Use official JToolTip API.
2714 2004-06-08 Michael Koch <konqueror@gmx.de>
2716 * javax/swing/JToolTip.java
2717 (JToolTip): No arguments in API.
2718 (setTipText): New method.
2720 2004-06-08 Michael Koch <konqueror@gmx.de>
2722 * javax/swing/SwingUtilities.java
2723 (isLeftMouseButton): New method.
2724 (isMiddleMouseButton): New method.
2725 (isRightMouseButton): New method.
2727 2004-06-08 Michael Koch <konqueror@gmx.de>
2729 * javax/swing/AbstractButton.java,
2730 javax/swing/CellRendererPane.java,
2731 javax/swing/JCheckBoxMenuItem.java,
2732 javax/swing/JColorChooser.java,
2733 javax/swing/JComboBox.java,
2734 javax/swing/JComponent.java,
2735 javax/swing/JDesktopPane.java,
2736 javax/swing/JFileChooser.java,
2737 javax/swing/JMenu.java,
2738 javax/swing/JMenuItem.java,
2739 javax/swing/JOptionPane.java,
2740 javax/swing/JPasswordField.java,
2741 javax/swing/JPopupMenu.java,
2742 javax/swing/JProgressBar.java,
2743 javax/swing/JRadioButtonMenuItem.java,
2744 javax/swing/JScrollBar.java,
2745 javax/swing/JSeparator.java,
2746 javax/swing/JSlider.java,
2747 javax/swing/JSplitPane.java,
2748 javax/swing/JTabbedPane.java,
2749 javax/swing/JTextField.java,
2750 javax/swing/JToolBar.java,
2751 javax/swing/text/JTextComponent.java:
2752 Fixed all constructors of accessibility classes.
2754 2004-06-08 Michael Koch <konqueror@gmx.de>
2756 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
2759 2004-06-08 Michael Koch <konqueror@gmx.de>
2761 * javax/swing/Box.java
2762 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
2763 (AccessibleBoxFiller.serialVersionUID): New member variable.
2764 * javax/swing/DefaultButtonModel.java
2765 (stateMask): Made protected.
2766 (listenerList): Likewise.
2767 (changeEvent): Likewise.
2769 (mnemonic): Likewise.
2770 (actionCommand): Likewise.
2771 (getListeners): New method.
2772 (getActionListeners): New method.
2773 (getItemListeners): New method.
2774 (getChangeListeners): New method.
2775 (fireItemStateChanged): Simplified.
2776 (fireActionPerformed): Simplified.
2777 (fireStateChanged): Simplified.
2778 * javax/swing/JFrame.java
2779 (JFrame): Implements WindowContants.
2780 (HIDE_ON_CLOSE): Removed.
2781 (EXIT_ON_CLOSE): Removed.
2782 (DISPOSE_ON_CLOSE): Removed.
2783 (DO_NOTHING_ON_CLOSE): Removed.
2784 (processWindowEvent): Exit with code 0.
2785 (setDefaultCloseOperation): Do security check before setting value.
2786 * javax/swing/JOptionPane.java
2787 (message): Initialize only in constructor.
2788 * javax/swing/JToolTip.java: Removed unused imports.
2789 * javax/swing/JViewport.java
2790 (serialVersionUID): New member variable.
2791 (SIMPLE_SCROLL_MODE): Made final, fixed value.
2792 (BLIT_SCROLL_MODE): Likewise.
2793 (BACKINGSTORE_SCROLL_MODE): Likewise.
2794 (scrollUnderway): Made protected.
2795 (isViewSizeSet): Likewise.
2796 * javax/swing/ListModel.java: Fixed javadoc.
2797 * javax/swing/Popup.java: Likewise.
2798 * javax/swing/RepaintManager.java
2799 (paintDirtyRegions): Don't use internal classes of
2800 java.util.AbstractMap.
2801 * javax/swing/ScrollPaneConstants.java: Reindented.
2802 * javax/swing/ScrollPaneLayout.java
2803 (viewport): Made protected.
2804 (verticalScrollBar): Made protected, renamed to vsb.
2805 (horizontalScrollBar): Made protected, renamed to hsb.
2806 (rowHeader): Made protected, renamed to rowHead.
2807 (columnHeader): Made protected, renamed to colHead.
2808 (lowerLeft): Made protected.
2809 (lowerRight): Made protected.
2810 (upperLeft): Made protected.
2811 (upperRight): Made protected.
2812 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
2813 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
2815 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
2817 * java/awt/MediaTracker.java (imageUpdate): Only set status to
2818 LOADING if flags has SOMEBITS set.
2820 2004-06-07 Michael Koch <konqueror@gmx.de>
2822 * javax/swing/AbstractButton.java: Reorganized imports.
2823 * javax/swing/ActionMap.java: Likewise.
2824 * javax/swing/DefaultButtonModel.java: Likewise.
2825 * javax/swing/DefaultListModel.java: Likewise.
2826 * javax/swing/ImageIcon.java: Likewise.
2827 (serialVersionUID): New member variable.
2828 * javax/swing/JComboBox.java: Reorganized imports.
2829 * javax/swing/JComponent.java: Likewise.
2830 (ui): Made protected.
2831 (listenerList): Made protected.
2832 (TOOL_TIP_TEXT_KEY): New constant.
2833 (scrollRectToVisible): Removed redundant null check.
2834 * javax/swing/JFrame.java: Reorganized imports.
2835 * javax/swing/JInternalFrame.java: Reorganized imports.
2836 * javax/swing/JProgressBar.java: Likewise.
2837 * javax/swing/JRootPane.java: Likewise.
2838 * javax/swing/JScrollBar.java: Likewise.
2839 * javax/swing/JSeparator.java: Likewise.
2840 * javax/swing/JSlider.java: Likewise.
2841 * javax/swing/JTabbedPane.java: Likewise.
2842 * javax/swing/JTextField.java: Likewise.
2843 * javax/swing/JToolBar.java: Likewise.
2844 * javax/swing/JTree.java: Likewise.
2845 * javax/swing/JViewport.java: Likewise.
2846 * javax/swing/JWindow.java: Likewise.
2847 * javax/swing/KeyStroke.java: Likewise.
2848 * javax/swing/LookAndFeel.java: Likewise.
2849 * javax/swing/MenuSelectionManager.java: Likewise.
2850 * javax/swing/SwingUtilities.java: Likewise.
2851 * javax/swing/Timer.java: Likewise.
2852 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
2853 * javax/swing/JList.java
2854 (HORIZONTAL_WRAP): Made final, fixed value.
2855 (VERTICAL): Likewise.
2856 (VERTICAL_WRAP): Likewise.
2858 2004-06-07 Michael Koch <konqueror@gmx.de>
2860 * javax/swing/AbstractButton.java
2861 (serialVersionUID): New member variable.
2862 (AccessibleAbstractButton.serialVersionUID): Likewise.
2863 (AbstractButton): Made public.
2864 * javax/swing/Box.java
2865 (AccessibleBox.serialVersionUID): New member variable.
2866 (Filler.serialVersionUID): Likewise.
2867 * javax/swing/DefaultListSelectionModel.java
2868 (serialVersionUID): Likewise.
2869 * javax/swing/JApplet.java
2870 (serialVersionUID): Likewise.
2871 * javax/swing/JCheckBox.java
2872 (serialVersionUID): Likewise.
2873 * javax/swing/JCheckBoxMenuItem.java
2874 (serialVersionUID): Likewise.
2875 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
2876 * javax/swing/JColorChooser.java
2877 (serialVersionUID): Likewise.
2878 (AccessibleJColorChooser.serialVersionUID): Likewise.
2879 * javax/swing/JComponent.java
2880 (serialVersionUID): Made private.
2881 (AccessibleJComponent.serialVersionUID): New member variable.
2882 * javax/swing/JDesktopPane.java
2883 (serialVersionUID): Likewise.
2884 * javax/swing/JDialog.java
2885 (serialVersionUID): Likewise.
2886 * javax/swing/JFormattedTextField.java
2887 (serialVersionUID): Fixed value.
2888 * javax/swing/JFrame.java
2889 (serialVersionUID): New member variable.
2890 (getDefaultCloseOpertation): Made public.
2891 * javax/swing/JLayeredPane.java
2892 (serialVersionUID): Likewise.
2893 (LAYER_PROPERTY): Made final, fixed value.
2894 (JLayeredPane): Made public.
2895 * javax/swing/JMenu.java
2896 (AccessibleJMenu.serialVersionUID): New member variable.
2897 (WinListener.serialVersionUID): Likewise.
2898 * javax/swing/JMenuBar.java
2899 (serialVersionUID): Likewise.
2900 (getComponentAtIndex): Added @deprecated tag.
2901 * javax/swing/JMenuItem.java
2902 (serialVersionUID): New member variable.
2903 (AccessibleJMenuItem.serialVersionUID): Likewise.
2904 * javax/swing/JOptionPane.java
2905 (serialVersionUID): Likewise.
2906 (AccessibleJOptionPane.serialVersionUID): Likewise.
2907 * javax/swing/JPopupMenu.java
2908 (serialVersionUID): Likewise.
2909 (AccessibleJPopupMenu.serialVersionUID): Likewise.
2910 (getPopupMenuListeners): New method.
2911 (getComponentAtIndex): Added @deprecated tag.
2912 * javax/swing/JProgressBar.java
2913 (serialVersionUID): New member variable.
2914 (AccessibleJProgressBar.serialVersionUID): Likewise.
2915 * javax/swing/JRadioButton.java
2916 (serialVersionUID): Likewise.
2917 * javax/swing/JRadioButtonMenuItem.java
2918 (serialVersionUID): Likewise.
2919 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
2920 * javax/swing/JScrollBar.java
2921 (serialVersionUID): Likewise.
2922 (AccessibleJScrollBar.serialVersionUID): Likewise.
2923 * javax/swing/JSeparator.java
2924 (serialVersionUID): Likewise.
2925 (AccessibleJSeparator.serialVersionUID): Likewise.
2926 * javax/swing/JSlider.java: Fixed javadocs.
2927 (AccessibleJSlider.serialVersionUID): New member variable.
2928 * javax/swing/JSplitPane.java: Added copyright statement.
2929 (serialVersionUID): New member variable.
2930 (AccessibleJSplitPane.serialVersionUID): Likewise.
2931 * javax/swing/JTabbedPane.java
2932 (serialVersionUID): Likewise.
2933 (AccessibleJTabbedPane.serialVersionUID): Likewise.
2934 (ModelListener.serialVersionUID): Likewise.
2935 (ModelListener.ModelListener): New constructor.
2936 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
2937 (WRAP_TAB_LAYOUT): Likewise.
2938 * javax/swing/JTable.java
2939 (serialVersionUID): New member variable.
2940 * javax/swing/JToggleButton.java
2941 (serialVersionUID): Likewise.
2942 (ToggleButtonModel): Made static.
2943 (ToggleButtonModel.serialVersionUID): New member variable.
2944 * javax/swing/JToolTip.java
2945 (serialVersionUID): Likewise.
2946 * javax/swing/JTree.java
2947 (serialVersionUID): Likewise.
2948 * javax/swing/JWindow.java
2949 (serialVersionUID): Likewise.
2950 * javax/swing/Timer.java
2951 (serialVersionUID): Likewise.
2953 2004-06-06 Michael Koch <konqueror@gmx.de>
2955 * javax/swing/SwingConstants.java
2956 (NEXT): New constant.
2957 (PREVIOUS): Likewise.
2958 * javax/swing/UIManager.java
2959 (LookAndFeel): Made public.
2960 (LookAndFeel.getClassName): Likewise.
2961 (LookAndFeel.getName): Likewise.
2963 2004-06-02 Olga Rodimina <rodimina@redhat.com>
2965 * javax/swing/JCheckBoxMenuItem.java:
2967 * javax/swing/JMenu.java: Likewise.
2968 * javax/swing/JMenuBar.java: Likewise.
2969 * javax/swing/JMenuItem.java: Likewise.
2970 * javax/swing/JPopupMenu.java: Likewise.
2971 * javax/swing/JRadioButtonMenuItem.java: Likewise.
2972 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
2973 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2974 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
2975 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
2976 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
2977 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
2979 2004-05-31 Olga Rodimina <rodimina@redhat.com>
2981 * javax/swing/plaf/basic/BasicMenuUI.java:
2982 (MouseEntered): Do not call getPath() from MenuSelectionManager.
2983 Call getPath() from super class instead.
2985 2004-05-31 David Jee <djee@redhat.com>
2987 * java/awt/Container.java
2988 (remove): Set component visibility to false after removing it.
2990 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
2992 * java/awt/Component.java (getForeground): Return SystemColor if
2994 (getBackground): Likewise.
2996 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
2997 (item_highlighted): New function.
2998 (connectSignals): Set item_highlighted as list's select
3001 * java/applet/Applet.java: Revert changes from 2004-04-29,
3002 2004-03-15 and 2004-03-14.
3004 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3005 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3008 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3009 "Dialog" as the default font.
3010 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3012 * java/awt/Component.java (getFont): Return "Dialog" font by
3014 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3015 Multiply size argument to pango_font_description_set_size by the
3016 DPI conversion factor rather than by PANGO_SCALE.
3017 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3018 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3019 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3020 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3021 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3022 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3023 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3024 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3025 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3026 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3027 Divide baseline y coordinate by DPI conversion factor rather
3028 than by PANGO_SCALE.
3029 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3030 (area_prepared): Fix typo.
3031 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3032 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3033 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3034 (dpi_conversion_factor): New global variable.
3035 (init_dpi_conversion_factor): New function to calculate and
3036 track DPI conversion factor.
3037 (dpi_changed_cb): New callback.
3038 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3040 2004-05-27 David Jee <djee@redhat.com>
3042 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3043 (getGraphics): Return a new GdkGraphics instance.
3044 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3045 (getGraphics): Call super.getGraphics().
3047 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3049 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3050 (setNativeBounds): Clamp width and height values to >= 0.
3052 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3053 (find_fg_color_widget): Handle GtkOptionMenu specially.
3055 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3056 (pre_event_handler): Only post configure events to visible
3059 2004-05-26 David Jee <djee@redhat.com>
3061 * java/awt/BorderLayout.java
3062 (layoutContainer): Fix size calculations.
3064 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3066 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3067 (window_wm_protocols_filter): Remove function.
3068 (create): Remove filter that removes WM_TAKE_FOCUS client
3071 2004-06-17 Anthony Green <green@redhat.com>
3073 * java/util/zip/ZipFile.java (getInputStream): Return null if
3076 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3077 directory contents to the class path.
3079 2004-06-15 Andrew Haley <aph@redhat.com>
3081 * java/lang/natSystem.cc (getenv0): Don't assume environment
3082 variable is Latin 1 coded.
3084 2004-06-14 Andreas Jaeger <aj@suse.de>
3086 * configure.in: Support --enable-version-specific-runtime-libs.
3087 * configure: Regenerated.
3089 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3091 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3092 to pass ClassLoader argument.
3093 * java/util/GregorianCalendar.java: Likewise.
3094 * java/util/Currency.java: Likewise.
3095 * java/text/BreakIterator.java: Likewise.
3096 * java/text/Collator.java: Likewise.
3097 * java/text/DateFormat.java: Likewise.
3098 * java/text/DateFormatSymbols.java: Likewise.
3099 * java/text/DecimalFormatSymbols.java: Likewise.
3100 * java/text/NumberFormat.java: Likewise.
3101 * java/awt/Window.java: Likewise.
3103 2004-06-14 Andrew Haley <aph@redhat.com>
3105 * java/lang/System.java: (getenv0): New method.
3106 (getenv): Add security check. Do the right thing.
3107 * java/lang/natSystem.cc (getenv0): New method.
3109 2004-06-12 Mark Wielaard <mark@klomp.org>
3111 * javax/swing/RepaintManager.java
3112 (paintDirtyRegions): Use entrySet(), not values().
3114 2004-06-10 Mark Wielaard <mark@klomp.org>
3116 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3119 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3121 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3122 when we already know the answer.
3123 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3124 (setStartRule,setEndRule): Don't take abs of day number.
3125 (getOffset): Clarify docs. Add argument checks.
3126 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3127 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3130 2004-06-10 Tom Tromey <tromey@redhat.com>
3132 * interpret.cc (run): Handle wide fload.
3134 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3136 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3138 2004-06-05 Michael Koch <konqueror@gmx.de>
3140 * javax/swing/SwingConstants.java
3141 (NEXT): New constant.
3142 (PREVIOUS): Likewise.
3144 2004-06-05 Michael Koch <konqueror@gmx.de>
3146 * javax/swing/UIManager.java
3147 (LookAndFeel): Made public.
3148 (LookAndFeel.getName): Likewise.
3149 (LookAndFeel.getClassName): Likewise.
3151 2004-06-03 Michael Koch <konqueror@gmx.de>
3153 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3154 (requestFocus): Revert last changes.
3155 (gtkRequestFocus): Removed.
3156 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3157 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3159 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3160 Reverted last patch.
3161 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3162 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3163 Reverted comment change.
3165 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3167 * javax/swing/JCheckBoxMenuItem.java:
3169 * javax/swing/JMenu.java: Likewise.
3170 * javax/swing/JMenuBar.java: Likewise.
3171 * javax/swing/JMenuItem.java: Likewise.
3172 * javax/swing/JPopupMenu.java: Likewise.
3173 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3174 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3175 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3176 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3177 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3178 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3179 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3181 2004-06-01 Tom Tromey <tromey@redhat.com>
3183 * java/io/ObjectStreamField.java: Cleaned up imports.
3185 2004-06-01 Michael Koch <konqueror@gmx.de>
3187 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3189 2004-06-01 Mark Wielaard <mark@klomp.org>
3191 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3193 2004-06-01 Michael Koch <konqueror@gmx.de>
3195 * java/security/Security.java
3196 (insertProviderAt): Use equals() instead of ==.
3197 (removeProvicer): Likewise.
3198 (getProvider): Likewise.
3199 * java/security/Signature.java
3200 (sign): Don't set state to UNINITIALIZED.
3203 2004-06-01 Mark Wielaard <mark@klomp.org>
3205 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3206 Implement by calling gtkRequestFocus.
3207 (gtkRequestFocus): New native method.
3208 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3209 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3211 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3213 (filter_expose_event_handler):
3215 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3216 (menu_pos): Mark static.
3218 2004-06-01 Michael Koch <konqueror@gmx.de>
3220 * java/text/CollationElementIterator.java,
3221 java/text/CollationKey.java,
3222 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3223 * testsuite/libjava.mauve/xfails: Removed all
3224 java.text.CollationElementIterator tests.
3226 2004-06-01 Michael Koch <konqueror@gmx.de>
3228 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3230 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3231 Java 1.5 keyword usage.
3233 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3235 * javax/swing/plaf/basic/BasicMenuUI.java:
3236 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3237 Call getPath() from super class instead.
3239 2004-05-31 Michael Koch <konqueror@gmx.de>
3241 * java/io/SequenceInputStream.java:
3242 Rename enum to e because enum is a keyword in Java 1.5.
3244 2004-05-31 Michael Koch <konqueror@gmx.de>
3246 * gnu/java/rmi/rmic/CompilerProcess.java:
3247 Fixed javadoc to by XHTML compliant.
3249 2004-05-30 Mark Wielaard <mark@klomp.org>
3251 * java/awt/Toolkit.java (loadSystemColors): Implement.
3253 2004-05-30 Michael Koch <konqueror@gmx.de>
3255 * java/lang/System.java: Reordered imports.
3257 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3259 * java/text/DecimalFormat.java
3260 (parse): Fixed parsing of decimal strings. Number of maximum
3261 digits to be read should now work.
3262 * java/text/SimpleDateFormat.java
3263 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3264 formatter. This fixes DateFormatTest.
3266 2004-05-30 Michael Koch <konqueror@gmx.de>
3268 * java/nio/Buffer.java
3269 (limit): Fixed off by one error.
3270 * java/nio/CharBuffer.java
3271 (wrap): Fixed arguments, added javadocs.
3273 2004-05-30 Michael Koch <konqueror@gmx.de>
3275 * gnu/java/beans/BeanInfoEmbryo.java,
3276 java/awt/im/InputContext.java,
3277 javax/swing/tree/DefaultMutableTreeNode.java:
3278 Rename enum to e because enum is a keyword in Java 1.5.
3280 2004-05-30 Michael Koch <konqueror@gmx.de>
3282 * gnu/java/math/MPN.java,
3283 java/awt/geom/Arc2D.java:
3284 Fixed javadocs all over.
3286 2004-05-30 Michael Koch <konqueror@gmx.de>
3288 * java/awt/DefaultKeyboardFocusManager.java
3289 (dispatchEvent): Call method to get key event dispatchers.
3290 (dispatchKeyEvent): Call method to get key event post processors.
3291 * javax/swing/JComponent.java
3292 (listenerList): Made protected.
3293 * javax/swing/JOptionPane.java
3294 (message): Don't initialize.
3295 (JOptionPane): Set message text.
3296 * javax/swing/JPopupMenu.java
3297 (show): Fixed typo in argument name.
3298 * javax/swing/RepaintManager.java
3299 (paintDirtyRegions): Use public API of java.util.Map.
3300 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3301 (positionForMouseEvent): Removed redundant ';'.
3302 (continueDrag): Use method arguments.
3304 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3306 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3309 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3311 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3313 * gnu/gcj/RawDataManaged.java: New file.
3314 * java/lang/Thread.java (data): Declare as RawDataManaged.
3315 * java/lang/natThread.cc (init_native): Cast natThread data to
3316 RawDataManaged, not jobject.
3317 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3318 * Makefile.in: Rebuilt.
3320 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3322 * java/util/SimpleTimeZone.java: Reverting my last change until I
3323 can fix it properly.
3325 2004-05-27 Michael Koch <konqueror@gmx.de>
3327 * javax/swing/JPopupMenu.java
3328 (isVisible): Do not use visible directly.
3329 (setVisible): Likewise.
3330 * javax/swing/JWindow.java
3331 (JWindow): call accessible constructor.
3332 * javax/swing/RepaintManager.java
3333 (paintDirtyRegions): Use public methods to obtain iterator.
3335 2004-05-25 David Jee <djee@redhat.com>
3337 * java/awt/Container.java
3338 (remove): Set component's parent to null only after we removed the
3339 component from its parent's layout manager.
3341 2004-05-25 David Jee <djee@redhat.com>
3343 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3344 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3346 * gnu/java/awt/peer/gtk/GtkListPeer.java
3347 (getSize): Change native method declaration.
3348 (minimumSize): Pass visible row count into getSize().
3349 (preferredSize): Likewise.
3350 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3351 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3352 natural size. Use visible row count to determine the final height
3355 2004-05-21 Graydon Hoare <graydon@redhat.com>
3357 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3358 (setClip): Minor correction to order of operations.
3360 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3361 * javax/swing/ScrollPaneLayout.java: Likewise.
3362 * javax/swing/JViewPort.java: Likewise.
3363 * javax/swing/ViewportLayout.java: Likewise.
3365 * javax/swing/JComponent.java: Rewrite.
3366 * javax/swing/RepaintManager.java: Likewise.
3368 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3369 * javax/swing/JList.java
3370 (setSelectedIndices):
3371 (getSelectedIndices):
3372 (getSelectedValues): New functions.
3373 (getPreferredScrollableViewportSize): Return preferred size.
3374 (getScrollableUnitIncrement):
3375 (getScrollableBlockIncrement): Initial implementations.
3376 * javax/swing/JRootPane.java: Clean up slightly.
3381 (isValidateRoot): Add overrides from JComponent.
3382 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3383 * javax/swing/UIManager.java (getDimension): Return the dimension.
3385 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3386 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3387 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3388 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3389 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3390 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3391 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3392 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3393 Likewise, and set background.
3394 * javax/swing/plaf/basic/BasicListUI.java:
3395 Likewise, and improve a bit.
3396 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3397 Likewise, and adjust calculations.
3398 * javax/swing/plaf/basic/BasicViewportUI.java:
3399 Likewise, and improve a bit.
3400 * javax/swing/plaf/basic/BasicLookAndFeel.java
3401 (Button.margin): Shrink.
3403 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3404 Hack to set horizontal always, workaround pango.
3406 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3407 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3408 Synchronize more often, check cairo status after ops,
3409 handle changes to cairo pattern API, check for disposal.
3411 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3413 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3414 (BasicMenuItemUI): Create propertyChangeListener.
3415 (getPath):Implemented.
3416 (installListeners): Add propertyChangeListener to menuItem.
3417 (uninstallListeners): Remove propertyChangeListener from menuItem.
3418 (update): Implemented.
3419 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3420 (mouseEntered): Take insets of popup menu into account when
3421 calculating position of popup menu.
3423 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3425 * Makefile.am: Added new file.
3426 * Makefile.in: Regenerate.
3427 * javax/swing/JMenuBar.java:
3428 Started implementation.
3429 * javax/swing/JPopupMenu.java:
3430 (setVisible): Fixed location of lightweight/mediumweight
3432 (show): Fixed location of PopupMenu.
3433 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3434 New file. UI Delegate for JMenuBar.
3435 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3436 (mouseEntered): Corrected position of the submenu.
3438 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3440 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3441 to _gtk_accel_group_attach.
3442 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3445 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3446 package access. Don't override setFont.
3447 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3448 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3449 gtkWidgetRequestFocus package access.
3450 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3452 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3453 Give gtkWidgetRequestFocus package access.
3454 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3455 gtkWidgetRequestFocus package access. Don't override setFont.
3456 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3458 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3459 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3461 (gtkSetFont): Likewise.
3462 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3464 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3465 (gtkSetFont): Whitespace fix.
3467 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3468 (gtkWidgetSetUsize): Remove method.
3470 2004-05-18 David Jee <djee@redhat.com>
3472 * java/awt/image/MemoryImageSource.java
3473 (newPixels(int,int,int,int,boolean)): Set only the specified
3474 rectangle of pixels.
3475 (newPixels(byte[],ColorModel,int,int)): Implement.
3476 (newPixels(int[],ColorModel,int,int)): Implement.
3478 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3480 * Makefile.am: Added new file.
3481 * Makefile.in: Regenerate.
3482 * javax/swing/JMenu.java: Started
3484 * javax/swing/JPopupMenu.java:
3485 (insert): If specified index is -1, then
3486 add component at the end.
3487 (isPopupTrigger): Reimplemented.
3488 (JPopupMenu.LightWeightPopup): setBounds
3489 of the lightWeightPopup before adding it
3491 (javax/swing/plaf/basic/BasicIconFactory.java):
3492 (getMenuArrowIcon): Implemented.
3493 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3494 (getPreferredSize): Add size of the arrow icon
3495 if this menu item is instance of JMenu.
3496 (paintMenuItem): Paint arrow icon if this
3497 menu item is a submenu.
3498 * javax/swing/plaf/basic/BasicMenuUI.java:
3499 New File. UI Delegate for JMenu.
3501 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3503 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3504 Post KEY_TYPED events.
3505 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3506 (generates_key_typed_event): Remove function.
3508 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3510 * javax/swing/JRootPane.java
3511 (JRootPane.RootLayout): Reimplemented to
3512 set bounds of contentPane and menuBar.
3513 (setJMenuBar): Add menu bar to the layered pane.
3514 (createLayeredPane): Set layout of layeredPane
3516 * javax/swing/JLayeredPane.java:
3517 (addImpl): Calculate index of the component in the
3518 layeredPane according to the specified position within
3521 2004-05-17 David Jee <djee@redhat.com>
3523 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3524 (setPixels): Change color model to the default model after
3526 * java/awt/image/MemoryImageSource.java
3527 (newPixels): Set only the specified rectangle of pixels.
3529 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3531 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3532 -l-java-beans -l-javax-accessibility -l-javax-swing.
3534 * java/awt/AWTEvent.java (toString): Print source's name rather
3535 than the source itself.
3537 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3539 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3541 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3542 (gdk_color_to_java_color): New function.
3543 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3545 2004-05-12 David Jee <djee@redhat.com>
3547 * java/awt/image/RGBImageFilter.java:
3548 Initialize origmodel as null.
3549 (makeColor): Fix pixel component order.
3550 (filterRGBPixels): Fix pixel iteration.
3551 (setPixels): Add extra checks for index color model. Convert pixels
3552 to default color model if necessary.
3553 (convertColorModelToDefault): New override method for byte pixels.
3554 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3555 (makeColorbyDefaultCM): New override method for byte pixels.
3556 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3557 (makeColor): Fix pixel component order.
3559 2004-05-11 Kim Ho <kho@redhat.com>
3561 * javax/swing/Box.java:
3562 Comment out more parts of Box.Filler.
3564 2004-05-11 Kim Ho <kho@redhat.com>
3566 * javax/swing/Box.java:
3567 Remove reference to AccessibleAWTComponent so
3570 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3572 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3573 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3574 implementation of list peer to use GtkTreeView instead of
3575 deprecated GtkCList.
3577 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3579 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3580 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3581 (handleEvent): Remove keyChar argument to
3582 gtkWidgetDispatchKeyEvent calls.
3583 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3585 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3586 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3587 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3590 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3592 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3593 (gtkWidgetRequestFocus): Mark protected.
3594 (GtkComponentPeer): Only set the peer's bounds if its component
3596 * java/awt/Component.java (static): Set the default keyboard
3598 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3599 requestFocusInWindow(temporary)): Don't request focus if the
3600 component is not showing. Get tree lock before traversing
3601 component hierarchy.
3602 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3603 Only set the global focus owner if it is not a Window.
3604 (processKeyEvent): Consume keystrokes associated with the focus
3605 traversal keystroke.
3606 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3607 downFocusCycle): Call requestFocusInWindow instead of
3609 * java/awt/EventDispatchThread.java (run): Move setting of
3610 default keyboard focus manager to Component.java.
3611 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3612 (awt_keycode_to_keysym): New function.
3613 (gtkWidgetDispatchKeyEvent): Finish implementation.
3614 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3615 (pre_event_handler): Add FIXME comment.
3617 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3618 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3619 (gtkWidgetRequestFocus): New method.
3620 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3621 disable Tab and Shift-Tab keystrokes.
3622 (addNotify, appendText, insertText, replaceText): Simplify peer
3624 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3625 (connectSignals): Remove connections to "commit" signals.
3626 Remove C++-style comments.
3628 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3629 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3630 (handleEvent): Activate GTK button when the space bar key is
3632 (gtkActivate): New method.
3634 2004-05-06 David Jee <djee@redhat.com>
3636 * java/awt/image/CropImageFilter.java
3637 (setPixels): Implement for byte array pixels.
3638 * java/awt/image/ReplicateScaleFilter.java
3639 (setPixels): Implement for byte array pixels.
3640 (replicatePixels): Overload for byte array pixels.
3642 2004-05-06 Kim Ho <kho@redhat.com>
3644 * javax/swing/Box.java:
3645 (getAccessibleContext): Return an instance of the
3648 2004-05-05 David Jee <djee@redhat.com>
3650 * gnu/java/awt/peer/gtk/GdkGraphics.java
3651 (drawImage): When component is null, use SystemColor.window as
3652 the default bgcolor.
3653 * gnu/java/awt/peer/gtk/GtkImage.java
3654 (setPixels): We can avoid iterating through the pixel rows only
3656 * java/awt/Image.java
3657 (getScaledInstance): Partially implement.
3658 * java/awt/image/CropImageFilter.java
3659 (setProperties): Fix "filter" property.
3660 (setPixels): Implement.
3661 * java/awt/image/ReplicateScaleFilter.java
3662 (setDimensions): Use scaled dimensions.
3663 (setPixels): Implement.
3664 (replicatePixels): New method.
3666 2004-05-05 David Jee <djee@redhat.com>
3668 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3669 (convertPixels): If either pixels or model is null, return null.
3670 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3671 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3672 is null, do nothing and return.
3674 2004-05-03 Kim Ho <kho@redhat.com>
3676 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3677 (getGraphics): Like GtkFramePeer, the Graphics
3678 object needs to be translate to account for
3680 (postMouseEvent): New method. Account for
3682 (postExposeEvent): ditto.
3683 * javax/swing/Box.java: Stubbed.
3684 * javax/swing/JDialog.java: Ran through jalopy
3686 (JDialog): Call SwingUtilities' getOwnerFrame
3688 (setLayout): Check isRootPaneCheckingEnabled
3689 * javax/swing/JOptionPane.java: Re-implemented.
3690 * javax/swing/SwingUtilities.java:
3691 (getOwnerFrame): Static method to grab a default
3692 owner frame for Dialogs that don't specify owners.
3693 * javax/swing/event/SwingPropertyChangeSupport.java:
3694 (firePropertyChange): Fix early exit condition.
3695 * javax/swing/plaf/basic/BasicLabelUI.java:
3696 (paint): Avoid painting text if it is null
3698 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3701 2004-05-03 Olga Rodimina <rodimina@redhat.com>
3703 * Makefile.am: Added new file.
3704 * Makefile.in: Regenerate.
3705 * javax/swing/JPopupMenu.java:
3706 Started implementation.
3707 * javax/swing/JWindow.java
3708 (JWindow): call super() if parent for window
3710 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3711 New File. UI Delegate for JPopupMenu.
3713 2004-04-30 Olga Rodimina <rodimina@redhat.com>
3715 * javax/swing/JApplet.java: Indicated that JApplet
3716 implements RootPaneContainer and made method of this
3718 * javax/swing/JFrame.java: Ditto.
3719 * javax/swing/JWindow.java: Ditto.
3721 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
3723 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3724 (nativeSetBounds): Call gdk_window_move in addition to
3727 * java/applet/Applet.java (preferredSize): Call parent's
3728 preferredSize if the applet stub is null.
3729 (minimumSize): Likewise for parent's minimumSize.
3731 2004-04-27 Olga Rodimina <rodimina@redhat.com>
3733 * javax/swing/JMenuItem.java
3734 (createActionPropertyChangeListener): Implemented.
3735 (processMouseEvent): Ditto.
3736 (fireMenuDragMouseEntered): Ditto.
3737 (fireMenuDragMouseExited): Ditto.
3738 (fireMenuDragMouseDragged): Ditto.
3739 (fireMenuDragMouseReleased): Ditto.
3740 (menuSelectionChanged): Ditto.
3741 (getSubElements): Ditto.
3742 (getComponent): Ditto.
3743 (addMenuDragMouseListener): Ditto.
3744 (removeMenuDragMouseListener):Ditto.
3745 (addMenuKeyListener): Ditto.
3746 (removeMenuKeyListener): Ditto.
3747 * javax/swing/plaf/basic/BasicMenuItemUI.java
3748 (doClick): Imlemented.
3749 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
3750 Don't handle mouse events here. Pass them to
3751 MenuSelectionManager.
3753 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3754 Used correct version of jalopy configuration
3755 file to fix style in the files below.
3757 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3759 * javax/swing/JCheckBoxMenuItem.java:
3760 Fixed style and removed unnecessary comments.
3761 * javax/swing/JMenuItem.java: Ditto.
3762 * javax/swing/JRadioButtonMenuItem.java: Ditto.
3763 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
3764 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
3765 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
3767 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3769 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
3772 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
3774 * java/awt/ContainerOrderFocusTraversalPolicy.java
3775 (getComponentAfter): Start from current component and work up
3776 the component hierarchy until an acceptable component is found.
3777 Synchronize on tree lock.
3778 (getComponentBefore): Likewise.
3780 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
3782 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
3783 focus-related debugging messages.
3784 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
3785 * java/awt/EventDispatchThread.java: Likewise.
3786 * java/awt/KeyboardFocusManager.java: Likewise.
3787 * java/awt/Window.java: Likewise.
3788 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3789 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3791 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
3792 new C++-style comments to C-style comments.
3793 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3795 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3796 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3797 (handleEvent): Dispatch key press and key release events to
3799 (requestFocus): Post a FOCUS_GAINED event to the event queue.
3800 (gtkWidgetRequestFocus): New method.
3801 (gtkWidgetDispatchKeyEvent): Likewise.
3802 * java/awt/Component.java (requestFocus, requestFocus(boolean),
3803 requestFocusInWindow, requestFocusInWindow(boolean),
3804 getFocusCycleRootAncestor, nextFocus, transferFocus,
3805 transferFocusBackward, transferFocusUpCycle, hasFocus,
3806 isFocusOwner): Implement and document focus-handling methods.
3807 (setFocusTraversalKeys): Inherit focus traversal keys when
3808 keystrokes argument is null. Fix focus-handling documentation
3810 * java/awt/Container.java (setFocusTraversalKeys,
3811 getFocusTraversalKeys, areFocusTraversalKeysSet,
3812 isFocusCycleRoot, setFocusTraversalPolicy,
3813 getFocusTraversalPolicy, isFocusTraversalPolicySet,
3814 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
3815 Implement and document focus-handling methods.
3816 (transferFocusBackward): Remove method.
3817 (readObject, writeObject): Implement and document serialization
3819 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
3821 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
3823 * java/awt/DefaultKeyboardFocusManager.java: Implement and
3825 * java/awt/EventDispatchThread.java (run): Set default keyboard
3826 focus manager. Attempt to dispatch each event to the keyboard
3827 focus manager before normal dispatch.
3828 * java/awt/KeyboardFocusManager.java: Implement and partially
3830 * java/awt/Window.java (Window): Set focusCycleRoot to true.
3831 (show): Focus initial component when window is shown for the
3833 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3834 (pre_event_handler): Replace complex key press and key release
3835 logic with simple callbacks into GtkComponentPeer.
3836 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
3838 2004-04-21 Olga Rodimina <rodimina@redhat.com>
3840 * javax/swing/MenuSelectionManager.java
3841 (componentForPoint): Added new method.
3842 (defaultManager): New Method. Implemented.
3843 (getSelectedPath): Ditto.
3844 (isComponentPartOfCurrentMenu): Ditto.
3845 (processKeyEvent): Added new method.
3846 (processMouseEvent): New Method. Implemented.
3847 (setSelectedPath): Ditto.
3850 2004-04-19 Kim Ho <kho@redhat.com>
3852 * java/awt/Container.java:
3853 (remove): Set the component's parent to null.
3854 (getComponentAt): Implement.
3855 * javax/swing/JComponent.java:
3856 (JComponent): Initialize defaultLocale
3857 (getDefaultLocale): Implement.
3858 (setDefaultLocale): ditto.
3859 * javax/swing/JSlider.java:
3860 (JSlider): Fix calculation of value.
3861 * javax/swing/JSplitPane.java: Implement.
3862 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3863 Change SplitPane's default divider size.
3864 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3865 (paint): Remove unused code.
3866 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
3867 Added comments and ran through jalopy.
3868 (setBasicSplitPaneUI): Get reference to hidden divider
3869 and set up one touch buttons if necessary.
3870 (setBorder): Fire propertyChangeEvent only if
3871 borders are different.
3872 (getPreferredSize): Defer to layout manager.
3873 (propertyChange): Implement.
3874 (oneTouchExpandableChanged): ditto.
3875 (createLeftOneTouchButton): Use BasicArrowButton.
3876 (createRightOneTouchButton): ditto.
3877 (moveDividerTo): New method. Moves the divider
3878 to a set location based on the last divider location.
3879 (BasicSplitPaneDivider::MouseHandler): Implement.
3880 (BasicSplitPaneDivider::OneTouchButton): Removed.
3881 (BasicSplitPaneDivider::DragController): Implement.
3882 (BasicSplitPaneDivider::VerticalDragController):
3884 (BasicSplitPaneDivider::DividerLayout): ditto.
3885 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
3886 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
3887 (calculateLayoutInfo): Don't show component if it's
3889 (paintTab): Fix title paint logic.
3891 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
3894 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3895 (setStartRule,setEndRule): Don't take abs of day number.
3896 (getOffset): Clarify docs. Add argument checks.
3897 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3898 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3900 * testsuite/libjava.mauve/xfails
3901 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
3903 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
3905 Layout interfaces during preparation, not initialization.
3906 * java/lang/natClass.cc (initializeClass): Move
3907 _Jv_LayoutInterfaceMethods call...
3908 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
3910 2004-05-19 Anthony Green <green@localhost.localdomain>
3912 * Makefile.am (awt_java_source_files): Remove javax.rmi and
3914 * Makefile.in: Rebuilt.
3915 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
3916 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
3917 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
3918 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
3919 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
3920 gnu/javax/rmi/CORBA/DelegateFactory.java,
3921 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
3922 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
3923 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
3924 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
3925 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
3926 gnu/javax/rmi/PortableServer.java: Remove files.
3928 2004-05-19 Anthony Green <green@redhat.com>
3930 * Makefile.am: Define JAVA_EXT_DIRS.
3931 * Makefile.in: Rebuilt.
3932 * java/lang/natRuntime.cc (insertSystemProperties): Set
3933 java.ext.dirs property.
3935 2004-05-16 Mark Wielaard <mark@klomp.org>
3937 * java/io/Writer.java (Writer(Object)): Check for null lock object.
3939 2004-05-15 Mark Wielaard <mark@klomp.org>
3941 * doc/cni.sgml: Removed, merged into gcj.texi.
3943 2004-05-15 Mark Wielaard <mark@klomp.org>
3945 * Makefile.am (ordinary_java_source_files): Add new javax.print
3947 * Makefile.in: Regenerated.
3949 2004-05-15 Michael Koch <konqueror@gmx.de>
3951 * javax/print/attribute/standard/DateTimeAtCompleted.java,
3952 javax/print/attribute/standard/DateTimeAtCreation.java,
3953 javax/print/attribute/standard/DateTimeAtProcessing.java,
3954 javax/print/attribute/standard/DocumentName.java,
3955 javax/print/attribute/standard/JobHoldUntil.java,
3956 javax/print/attribute/standard/JobImpressionsCompleted.java,
3957 javax/print/attribute/standard/JobMessageFromOperator.java,
3958 javax/print/attribute/standard/JobName.java,
3959 javax/print/attribute/standard/JobOriginatingUserName.java,
3960 javax/print/attribute/standard/JobPriority.java,
3961 javax/print/attribute/standard/JobPrioritySupported.java,
3962 javax/print/attribute/standard/NumberOfInterveningJobs.java,
3963 javax/print/attribute/standard/OutputDeviceAssigned.java,
3964 javax/print/attribute/standard/PrinterInfo.java,
3965 javax/print/attribute/standard/PrinterLocation.java,
3966 javax/print/attribute/standard/PrinterMakeAndModel.java,
3967 javax/print/attribute/standard/PrinterMessageFromOperator.java,
3968 javax/print/attribute/standard/PrinterName.java,
3969 javax/print/attribute/standard/QueuedJobCount.java,
3970 javax/print/attribute/standard/RequestingUserName.java:
3971 Fixed javadocs all over.
3973 2004-05-15 Michael Koch <konqueror@gmx.de>
3975 * javax/print/DocFlavor.java,
3976 javax/print/attribute/standard/ColorSupported.java,
3977 javax/print/attribute/standard/Compression.java,
3978 javax/print/attribute/standard/CopiesSupported.java,
3979 javax/print/attribute/standard/Fidelity.java,
3980 javax/print/attribute/standard/Finishings.java,
3981 javax/print/attribute/standard/JobImpressionsSupported.java,
3982 javax/print/attribute/standard/JobKOctetsSupported.java,
3983 javax/print/attribute/standard/JobMediaSheetsSupported.java,
3984 javax/print/attribute/standard/JobSheets.java,
3985 javax/print/attribute/standard/JobState.java,
3986 javax/print/attribute/standard/JobStateReason.java,
3987 javax/print/attribute/standard/JobStateReasons.java,
3988 javax/print/attribute/standard/Media.java,
3989 javax/print/attribute/standard/MediaSizeName.java,
3990 javax/print/attribute/standard/MultipleDocumentHandling.java,
3991 javax/print/attribute/standard/NumberUpSupported.java,
3992 javax/print/attribute/standard/OrientationRequested.java,
3993 javax/print/attribute/standard/PDLOverrideSupported.java,
3994 javax/print/attribute/standard/PageRanges.java,
3995 javax/print/attribute/standard/PresentationDirection.java,
3996 javax/print/attribute/standard/PrintQuality.java,
3997 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
3998 javax/print/attribute/standard/PrinterMoreInfo.java,
3999 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4000 javax/print/attribute/standard/PrinterResolution.java,
4001 javax/print/attribute/standard/PrinterState.java,
4002 javax/print/attribute/standard/PrinterStateReason.java,
4003 javax/print/attribute/standard/PrinterStateReasons.java,
4004 javax/print/attribute/standard/PrinterURI.java,
4005 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4006 javax/print/attribute/standard/Severity.java,
4007 javax/print/attribute/standard/SheetCollate.java,
4008 javax/print/attribute/standard/Sides.java:
4009 Added serialVersionUID and removed final keyword where it doenst
4012 2004-05-15 Michael Koch <konqueror@gmx.de>
4014 * javax/print/PrintServiceLookup.java: New file.
4016 2004-05-15 Michael Koch <konqueror@gmx.de>
4018 * javax/print/DocFlavor.java:
4019 Implemented all flavor classes.
4021 2004-05-15 Michael Koch <konqueror@gmx.de>
4023 * javax/print/attribute/standard/ColorSupported.java,
4024 javax/print/attribute/standard/Compression.java,
4025 javax/print/attribute/standard/CopiesSupported.java,
4026 javax/print/attribute/standard/Fidelity.java,
4027 javax/print/attribute/standard/Finishings.java,
4028 javax/print/attribute/standard/JobImpressionsSupported.java,
4029 javax/print/attribute/standard/JobKOctetsSupported.java,
4030 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4031 javax/print/attribute/standard/JobSheets.java,
4032 javax/print/attribute/standard/JobState.java,
4033 javax/print/attribute/standard/JobStateReason.java,
4034 javax/print/attribute/standard/JobStateReasons.java,
4035 javax/print/attribute/standard/Media.java,
4036 javax/print/attribute/standard/MediaSizeName.java,
4037 javax/print/attribute/standard/MultipleDocumentHandling.java,
4038 javax/print/attribute/standard/NumberUpSupported.java,
4039 javax/print/attribute/standard/OrientationRequested.java,
4040 javax/print/attribute/standard/PDLOverrideSupported.java,
4041 javax/print/attribute/standard/PageRanges.java,
4042 javax/print/attribute/standard/PresentationDirection.java,
4043 javax/print/attribute/standard/PrintQuality.java,
4044 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4045 javax/print/attribute/standard/PrinterMoreInfo.java,
4046 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4047 javax/print/attribute/standard/PrinterResolution.java,
4048 javax/print/attribute/standard/PrinterState.java,
4049 javax/print/attribute/standard/PrinterStateReason.java,
4050 javax/print/attribute/standard/PrinterStateReasons.java,
4051 javax/print/attribute/standard/PrinterURI.java,
4052 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4053 javax/print/attribute/standard/Severity.java,
4054 javax/print/attribute/standard/SheetCollate.java,
4055 javax/print/attribute/standard/Sides.java: New files.
4057 2004-05-15 Michael Koch <konqueror@gmx.de>
4059 * javax/print/Doc.java
4060 (getPrintData): Throws IOException.
4061 (getReaderForText): Likewise.
4062 (getStreamForBytes): Likewise.
4063 * javax/print/DocFlavor.java:
4064 Fixed filename in copyright.
4065 (serialVersionUID): New field.
4066 * javax/print/ServiceUIFactory.java:
4067 Made all constants final.
4068 * javax/print/AttributeException.java
4069 javax/print/MultiDoc.java
4070 javax/print/MultiDocPrintJob.java
4071 javax/print/MultiDocPrintService.java
4072 javax/print/StreamPrintService.java
4073 javax/print/URIException.java: New files.
4074 * javax/print/Makefile.am
4075 (EXTRA_DIST): Added all new files.
4077 2004-05-15 Michael Koch <konqueror@gmx.de>
4079 * javax/print/attribute/standard/Copies.java,
4080 javax/print/attribute/standard/DateTimeAtCompleted.java,
4081 javax/print/attribute/standard/DateTimeAtCreation.java,
4082 javax/print/attribute/standard/DateTimeAtProcessing.java,
4083 javax/print/attribute/standard/DocumentName.java,
4084 javax/print/attribute/standard/JobHoldUntil.java,
4085 javax/print/attribute/standard/JobImpressions.java,
4086 javax/print/attribute/standard/JobImpressionsCompleted.java,
4087 javax/print/attribute/standard/JobKOctets.java,
4088 javax/print/attribute/standard/JobKOctetsProcessed.java,
4089 javax/print/attribute/standard/JobMediaSheets.java,
4090 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4091 javax/print/attribute/standard/JobMessageFromOperator.java,
4092 javax/print/attribute/standard/JobName.java,
4093 javax/print/attribute/standard/JobOriginatingUserName.java,
4094 javax/print/attribute/standard/JobPriority.java,
4095 javax/print/attribute/standard/JobPrioritySupported.java,
4096 javax/print/attribute/standard/NumberOfDocuments.java,
4097 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4098 javax/print/attribute/standard/NumberUp.java,
4099 javax/print/attribute/standard/OutputDeviceAssigned.java,
4100 javax/print/attribute/standard/PagesPerMinute.java,
4101 javax/print/attribute/standard/PagesPerMinuteColor.java:
4102 Fixed @return tag all over.
4104 2004-05-15 Michael Koch <konqueror@gmx.de>
4106 * javax/print/attribute/AttributeSetUtilities.java
4107 (verifyCategoryForValue): Fixed typo in javadoc.
4108 * javax/print/attribute/HashAttributeSet.java
4109 (containsKey): Fixed @return tag.
4110 (comtainsValue): Likewise.
4112 * javax/print/attribute/IntegerSyntax.java
4114 * javax/print/attribute/ResolutionSyntax.java
4116 (getCrossFeedResolution): Removed unused code.
4117 (getFeedResolution): Likewise.
4118 * javax/print/attribute/SetOfIntegerSyntax.java
4119 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4120 (equals): Fixed @return tag.
4121 * javax/print/attribute/TextSyntax.java
4122 (TextSyntax): Take locale into account.
4123 (hashCode): Better implementation.
4125 2004-05-15 Michael Koch <konqueror@gmx.de>
4127 * javax/print/CancelablePrintJob.java,
4128 javax/print/Doc.java,
4129 javax/print/DocFlavor.java,
4130 javax/print/DocPrintJob.java,
4131 javax/print/FlavorException.java,
4132 javax/print/PrintException.java,
4133 javax/print/PrintService.java,
4134 javax/print/ServiceUIFactory.java: New files.
4136 2004-05-15 Mark Wielaard <mark@klomp.org>
4138 * gnu/regexp/CharIndexedReader.java: Removed.
4139 * gnu/regexp/REFilterReader.java: Likewise.
4140 * gnu/regexp/RETokenLookAhead.java: Likewise.
4141 * Makefile.am (ordinary_java_source_files): Remove above classes.
4142 * Makefile.in: Regenerated.
4144 2004-05-14 Tom Tromey <tromey@redhat.com>
4146 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4147 not `XGraphicsConfiguration.XOffScreenImage'.
4149 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4151 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4153 2004-05-14 Steven Augart <augart@watson.ibm.com>
4155 * include/jni.h (_Jv_func): Removed.
4156 (struct JNINativeInterface): Use `void *' for reserved slots.
4157 (struct JNIInvokeInterface): Likewise.
4159 2004-05-11 Michael Koch <konqueror@gmx.de>
4161 * gnu/java/net/natPlainSocketImplPosix.cc
4162 (read): Fixed typo in expression.
4164 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4166 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4167 ld_library_additions. Adjust all calls to libjava_invoke to match
4170 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4171 path to cxxflagslist.
4172 Pass path of libstdc++ to libjava_invoke.
4174 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4175 libjava_invoke arguments.
4177 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4179 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4182 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4184 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4185 main binary against the JNI shared library.
4187 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4189 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4190 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4191 (SimpleTimeZone): Tweak docs. Add new variation.
4192 (setStartRule,setEndRule): Add new variations. Use
4193 startTimeMode and endTimeMode.
4195 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4197 * java/util/Calendar.java (getActualMinimum,
4198 getActualMaximum): Remove abstract. Implement.
4200 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4202 Run the jni tests using the interpreter.
4203 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4204 options_cxx to shared lib compile command.
4205 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4206 they are used to link the shared lib, not the main binary.
4207 Use libjava_invoke to run gij.
4209 2004-05-06 Michael Koch <konqueror@gmx.de>
4211 * java/util/logging/Level.java
4212 (parse): Use == instead of String.equals().
4214 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4216 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4217 verify_field_signature and verify_method_signature, not
4218 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4219 (_Jv_ClassReader::handleField): Likewise.
4220 (_Jv_ClassReader::handleMethod): Likewise.
4222 2004-05-06 Michael Koch <konqueror@gmx.de>
4224 * javax/swing/table/TableColumn.java:
4227 2004-05-06 Michael Koch <konqueror@gmx.de>
4229 * javax/imageio/spi/ImageReaderWriterSpi.java
4230 (ImageReaderWriterSpi): Made it public.
4231 * javax/imageio/stream/ImageInputStream.java:
4234 2004-05-06 Michael Koch <konqueror@gmx.de>
4236 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4239 2004-05-06 Michael Koch <konqueror@gmx.de>
4241 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4242 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4244 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4245 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4246 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4247 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4248 their own source file.
4249 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4250 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4251 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4252 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4253 (create): Define variable on top of function.
4254 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4255 (menu_pos): Prototyped.
4256 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4257 (setTitle): Removed.
4258 * jni/gtk-peer/gthread-jni.c
4259 (gdk_threads_wake): Removed.
4260 * Makefile.am (gtk_c_source_files): Added new files
4261 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4262 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4263 * Makefile.in: Regenerated.
4265 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4267 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4270 2004-05-05 Mark Wielaard <mark@klomp.org>
4272 * javax/swing/AbstractButton.java: Replace special HTML entities with
4274 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4275 * javax/swing/DefaultButtonModel.java: Likewise.
4276 * javax/swing/DefaultListModel.java: Likewise.
4277 * javax/swing/JList.java: Likewise.
4278 * javax/swing/JSlider.java: Likewise.
4279 * javax/swing/ListModel.java: Likewise.
4280 * javax/swing/Popup.java: Likewise.
4281 * javax/swing/SwingUtilities.java: Likewise.
4283 2004-05-05 Michael Koch <konqueror@gmx.de>
4285 * javax/swing/AbstractButton.java,
4286 javax/swing/ActionMap.java,
4287 javax/swing/DefaultButtonModel.java,
4288 javax/swing/DefaultListModel.java,
4289 javax/swing/ImageIcon.java,
4290 javax/swing/JComboBox.java,
4291 javax/swing/JComponent.java,
4292 javax/swing/JFrame.java,
4293 javax/swing/JInternalFrame.java,
4294 javax/swing/JMenuBar.java,
4295 javax/swing/JMenuItem.java,
4296 javax/swing/JOptionPane.java,
4297 javax/swing/JProgressBar.java,
4298 javax/swing/JRootPane.java,
4299 javax/swing/JScrollBar.java,
4300 javax/swing/JScrollPane.java,
4301 javax/swing/JSeparator.java,
4302 javax/swing/JSlider.java,
4303 javax/swing/JTabbedPane.java,
4304 javax/swing/JTable.java,
4305 javax/swing/JTextField.java,
4306 javax/swing/JToolBar.java,
4307 javax/swing/JToolTip.java,
4308 javax/swing/JTree.java,
4309 javax/swing/JViewport.java,
4310 javax/swing/JWindow.java,
4311 javax/swing/KeyStroke.java,
4312 javax/swing/LookAndFeel.java,
4313 javax/swing/SwingUtilities.java,
4314 javax/swing/Timer.java,
4315 javax/swing/ToolTipManager.java,
4316 javax/swing/UIDefaults.java,
4317 javax/swing/border/TitledBorder.java,
4318 javax/swing/filechooser/FileSystemView.java,
4319 javax/swing/plaf/basic/BasicButtonListener.java,
4320 javax/swing/plaf/basic/BasicButtonUI.java,
4321 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4322 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4323 javax/swing/plaf/basic/BasicLabelUI.java,
4324 javax/swing/plaf/basic/BasicMenuItemUI.java,
4325 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4326 javax/swing/plaf/basic/BasicRootPaneUI.java,
4327 javax/swing/plaf/basic/BasicScrollBarUI.java,
4328 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4329 javax/swing/plaf/basic/BasicSliderUI.java,
4330 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4331 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4332 javax/swing/table/JTableHeader.java,
4333 javax/swing/text/AbstractDocument.java,
4334 javax/swing/text/DefaultCaret.java,
4335 javax/swing/text/StyledEditorKit.java,
4336 javax/swing/tree/DefaultTreeCellEditor.java:
4339 2004-05-05 Michael Koch <konqueror@gmx.de>
4341 * java/util/prefs/AbstractPreferences.java
4342 (AbstractPreferences): Added parenthesis for clarity.
4343 Closes classpath bug #7940.
4345 2004-05-05 Tom Tromey <tromey@redhat.com>
4347 * javax/naming/CompoundName.java (endsWith): Look at correct
4348 element of source name.
4350 2004-05-05 Mark Wielaard <mark@klomp.org>
4352 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4353 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4355 2004-05-05 Tom Tromey <tromey@redhat.com>
4357 * java/io/BufferedReader.java (skip): Removed unused
4360 2004-05-05 Michael Koch <konqueror@gmx.de>
4362 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4364 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4366 * java/text/AttributedString.java,
4367 java/text/AttributedStringIterator.java,
4368 java/text/Collator.java,
4369 java/text/DecimalFormatSymbols.java,
4370 java/text/NumberFormat.java,
4371 java/text/RuleBasedCollator.java:
4374 2004-05-05 Tom Tromey <tromey@redhat.com>
4376 * java/text/Format.java: Cleaned up imports.
4377 * java/text/DecimalFormat.java: Cleaned up imports.
4378 * java/security/SecureRandom.java: Cleaned up imports.
4379 (SecureRandom): Removed unused variable.
4380 * java/security/UnresolvedPermission.java: Cleaned up imports.
4381 * java/util/Date.java (parse): Removed unused variable.
4382 * java/util/ResourceBundle.java: Cleaned up imports.
4383 (getBundle): Removed unused variable.
4384 (tryBundle): Likewise.
4385 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4387 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4389 * java/text/SimpleDateFormat.java:
4390 (formatWithAttribute): New method. It implements
4391 the formatting process with attributes.
4392 (format): Use formatWithAttribute.
4393 (formatToCharacterIterator): New method. Use
4394 formatWithAttribute.
4396 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4398 * java/text/MessageFormat.java:
4399 (class Field): New class.
4400 (formatToCharacterIterator): New method.
4401 (format): Use formatInternal now.
4402 (formatInternal): New method. String formatter should
4403 be done here (with attributes). Attributes merging supported.
4404 (parse): More documentation.
4405 (getFormatsByArgumentIndex): New method.
4406 (setFormatByArgumentIndex): New method.
4407 (setFormatsByArgumentIndex): New method.
4409 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4411 * java/text/DecimalFormat.java
4412 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4413 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4414 (parse): Fixed handling of exponentiation notation and grouping.
4416 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4418 * java/text/DecimalFormat.java
4419 (scanFix): Build attribute array. Fixed error reporting.
4420 (applyPatternWithSymbols): Store attributes for the prefix and
4422 (formatInternal): New method. Changed the way the string is
4423 computed. Implemented attributes. Cleant up rounding in
4424 exponential notation.
4425 (format): Use formatInternal.
4426 (formatToCharacterIterator): New method.
4427 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4428 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4429 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4432 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4434 * java/security/interfaces/DSAKeyPairGenerator.java,
4435 java/security/interfaces/DSAPrivateKey.java,
4436 java/security/interfaces/DSAPublicKey.java,
4437 java/security/interfaces/RSAPrivateKey.java,
4438 java/security/interfaces/RSAPublicKey.java:
4441 2004-05-04 Michael Koch <konqueror@gmx.de>
4443 * java/nio/ByteBuffer.java,
4444 java/nio/CharBuffer.java,
4445 java/nio/DoubleBuffer.java,
4446 java/nio/FloatBuffer.java,
4447 java/nio/IntBuffer.java,
4448 java/nio/LongBuffer.java,
4449 java/nio/ShortBuffer.java:
4450 (compareTo): Fixed bogus implementation in all buffer classes.
4452 2004-05-04 Ingo Proetel <proetel@aicas.com>
4454 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4455 32 bit pixels not 8 bit pixels.
4456 (isCompatibleRaster): Added javadoc comment.
4458 2004-05-04 Ingo Proetel <proetel@aicas.com>
4460 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4463 2004-05-04 Ingo Proetel <proetel@aicas.com>
4465 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4466 (getColorModel): Return the actual color model.
4467 (getRaster): Implemented.
4468 (ColorRaster): New inner class.
4469 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4471 * java/awt/Color.java (<init>): Make exception more verbose.
4472 (createContext): Use ColorModel when creating a PaintContext.
4474 2004-05-04 Michael Koch <konqueror@gmx.de>
4476 * gnu/java/text/CharacterBreakIterator.java
4477 (previous): Removed unused variable.
4479 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4481 * gnu/java/text/FormatBuffer.java,
4482 gnu/java/text/AttributedFormatBuffer.java,
4483 gnu/java/text/StringFormatBuffer.java: New classes to implement
4484 attributed iterators in java.text.
4485 * gnu/java/text/FormatCharacterIterator.java: Moved
4486 from java/text as it is an internal class.
4487 * java/text/FormatCharacterIterator.java: Removed.
4488 * java/text/Format.java:
4489 Import gnu.java.text.FormatCharacterIterator.
4490 * Makefile.am (java_source_files): Added new files.
4491 * Makefile.in: Regenerated.
4494 2004-05-04 Mark Wielaard <mark@klomp.org>
4496 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4498 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4500 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4501 * Makefile.in: Rebuilt.
4503 2004-05-03 Mark Wielaard <mark@klomp.org>
4505 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4506 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4508 (set(String, String, int, String, String, String, String, String)):
4509 Assign this.file to path or path + "?" + query.
4510 * java/util/Arrays.java: Call static methods staticly.
4511 * java/util/zip/ZipEntry.java: Likewise.
4512 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4513 dir to this.direction.
4514 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4515 Assign static field only once.
4516 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4518 2004-05-03 Mark Wielaard <mark@klomp.org>
4520 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4521 unused variables hScrollbarHeight and vScrollbarWidth.
4522 (preferredSize): Likewise.
4523 * gnu/java/security/provider/DSAParameters.java (engineToString):
4524 Removed unused call to System.getProperty("line.seperator");
4525 * java/security/Security.java (loadProviders): Return result.
4527 2004-05-03 Tom Tromey <tromey@redhat.com>
4529 * java/net/URLStreamHandler.java (toExternalForm): Removed
4532 * java/math/BigDecimal.java (divide): Removed unused variable.
4533 * java/lang/Throwable.java: Cleaned up imports.
4534 * java/lang/ClassLoader.java: Cleaned up imports.
4535 * java/io/FilePermission.java (implies): Removed unused
4537 * java/awt/TextComponent.java: Removed unused import.
4538 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4539 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4540 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4541 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4543 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4544 * gnu/java/text/CharacterBreakIterator.java: Removed
4546 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4548 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4549 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4551 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4552 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4553 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4554 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4555 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4556 (lookupProviders): Removed unused variable.
4557 (loadNextServiceProvider): Likewise.
4558 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4560 2004-05-03 Michael Koch <konqueror@gmx.de>
4562 Fixes PR libgcj/14695:
4563 * java/net/NetworkInterface.java
4564 (getByName): Return null when no interface was found.
4566 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4567 Tom Tromey <tromey@redhat.com>
4569 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4570 additional option "-Wmissing-prototypes" for compiling C sources.
4571 Print actual filename for pass/fail rather than $name.c.
4572 * testsuite/libjava.jni/PR15133.java: New testcase file.
4573 * testsuite/libjava.jni/PR15133.c: Likewise.
4574 * testsuite/libjava.jni/PR15133.out: Likewise.
4576 2004-04-30 Roger Sayle <roger@eyesopen.com>
4578 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4581 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4583 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4584 limit the maximum heap size to avoid unnecessary thrashing.
4586 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4588 * java/text/CollationElementIterator.java (reset): Reset
4589 lookahead variables.
4591 2004-04-23 Mark Wielaard <mark@klomp.org>
4593 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4595 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4597 * java/sql/DriverManager.java:
4600 2004-04-23 Michael Koch <konqueror@gmx.de>
4603 (hashcode): Don't initialize with default value explicitely.
4604 (getContent): Removed redundant "final" keyword.
4605 (openStream): Likewise.
4606 (getURLStreamHandler): Fixed coding style.
4607 * java/net/URLConnection.java
4608 (defaultAllowUserInteraction): Don't initialize with default value
4610 (connected): Likewise.
4611 (doOutput): Likewise.
4612 (ifModifiedSince): Likewise.
4613 (dateformats_initialized): Likewise.
4614 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4616 2004-04-23 Michael Koch <konqueror@gmx.de>
4618 * gnu/java/nio/channels/FileChannelImpl.java
4619 (SET, CUR): Unused, removed.
4620 (read): Implement here directly.
4621 (implRead): Removed.
4622 (write): Implement here directly.
4623 (implWrite): Removed.
4625 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4627 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4628 javax/rmi/CORBA/Stub.java,
4629 javax/rmi/CORBA/Util.java,
4630 javax/rmi/CORBA/ValueHandler.java,
4631 javax/rmi/CORBA/ValueHandler.java,
4632 javax/rmi/PortableRemoteObject.java:
4635 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4637 * java/util/jar/JarFile.java,
4638 java/util/jar/JarInputStream.java,
4639 java/util/jar/JarOutputStream.java,
4640 java/util/jar/Manifest.java:
4643 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4645 * java/util/ArrayList.java,
4646 java/util/Calendar.java,
4647 java/util/Currency.java,
4648 java/util/HashMap.java,
4649 java/util/HashSet.java,
4650 java/util/Hashtable.java,
4651 java/util/LinkedList.java,
4652 java/util/Properties.java,
4653 java/util/PropertyPermission.java,
4654 java/util/TimeZone.java,
4655 java/util/TreeMap.java,
4656 java/util/TreeSet.java,
4657 java/util/Vector.java,
4658 java/util/WeakHashMap.java:
4661 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4663 * java/util/logging/FileHandler.java,
4664 java/util/logging/Formatter.java,
4665 java/util/logging/Handler.java,
4666 java/util/logging/Logger.java,
4667 java/util/logging/SimpleFormatter.java,
4668 java/util/logging/XMLFormatter.java:
4671 2004-04-22 Mark Wielaard <mark@klomp.org>
4673 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4674 -Wno-long-long flags variable.
4675 (gtk_c_files): Use PEDANTIC_CFLAGS.
4676 * Makefile.in: Regenerated.
4678 2004-04-22 Mark Wielaard <mark@klomp.org>
4680 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4681 Changed C++ comments into C comments.
4682 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
4685 2004-04-22 Michael Koch <konqueror@gmx.de>
4687 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
4688 Merged copyright year with GNU classpath.
4690 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4692 * javax/security/auth/x500/X500Principal.java:
4695 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4697 * javax/swing/JSlider.java:
4698 Fixed HTML tags in comments.
4700 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4702 * javax/accessibility/AccessibleText.java:
4705 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
4707 * java/net/URLStreamHandler.java
4708 (parseURL): Convert the file path to using '/' instead of native
4711 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
4714 (userInfo): New field.
4715 (URL): Set authority to the right value.
4716 (setURL): Fixed authority and file initialization.
4717 * java/net/URLStreamHandler.java
4718 (parseURL): Take care of the query tag. Build authority.
4719 (toExternalForm): Fixed URL building using authority.
4721 2004-04-22 Michael Koch <konqueror@gmx.de>
4723 * java/net/Socket.java
4724 (impl): Made package-private.
4725 * java/net/ServerSocket.java
4726 (implAccept): Access Socket.impl field directly.
4728 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4730 * java/util/prefs/Preferences.java,
4731 java/util/prefs/InvalidPreferencesFormatException.java,
4732 java/util/prefs/BackingStoreException.java,
4733 java/util/prefs/AbstractPreferences.java:
4736 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4738 * java/util/regex/Matcher.java,
4739 java/util/regex/Pattern.java:
4742 2004-04-22 Michael Koch <konqueror@gmx.de>
4744 * java/nio/charset/IllegalCharsetNameException.java
4745 (charsetName): Made private.
4746 (IllegalCharsetNameException): Added @param tag to javadoc.
4747 (getCharsetName): Added @return tag to javadoc.
4748 * java/nio/charset/MalformedInputException.java
4749 (MalformedInputException): Added @param tag to javadoc.
4750 (getInputLength): Revised method description, added @return tag.
4751 (getMessage): Added @return tag.
4753 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
4755 * java/awt/Font.java (deriveFont): Implement missing variants.
4756 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
4759 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
4761 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
4762 Set method->index values for interface methods to their itable index.
4763 (initializeClass): Call _Jv_LayoutInterfaceMethods.
4765 2004-04-21 Michael Koch <konqueror@gmx.de>
4767 * java/nio/DirectByteBufferImpl.java
4768 (shiftDown): Made static, give address as argument and
4769 provide a convenience method that overwrites shiftDown in
4770 ByteBufferImpl and calls the native shiftDown.
4771 * java/nio/MappedByteBufferImpl.java
4772 (): Use optimized method in DirectByteBufferImpl.
4773 * java/nio/natDirectByteBufferImpl.cc
4774 (shiftDown): Changed method signature. Removed usage of array_offset.
4776 2004-04-21 Michael Koch <konqueror@gmx.de>
4778 * gnu/java/net/natPlainSocketImplPosix.cc
4779 (SocketInputStream::read): Make sure returned data is a byte value.
4781 2004-04-21 Michael Koch <konqueror@gmx.de>
4783 * gnu/classpath/ServiceFactory.java,
4784 gnu/classpath/ServiceProviderLoadingAction.java,
4785 javax/imageio/ImageReader.java,
4786 javax/imageio/ImageTranscoder.java,
4787 javax/imageio/ImageWriter.java,
4788 javax/imageio/package.html,
4789 javax/imageio/spi/IIOServiceProvider.java,
4790 javax/imageio/spi/ImageInputStreamSpi.java,
4791 javax/imageio/spi/ImageOutputStreamSpi.java,
4792 javax/imageio/spi/ImageReaderWriterSpi.java,
4793 javax/imageio/spi/ImageTranscoderSpi.java,
4794 javax/imageio/spi/RegisterableService.java,
4795 javax/imageio/spi/ServiceRegistry.java,
4796 javax/imageio/spi/package.html,
4797 javax/imageio/stream/IIOByteBuffer.java,
4798 javax/imageio/stream/ImageInputStream.java,
4799 javax/imageio/stream/ImageOutputStream.java,
4800 javax/imageio/stream/package.html:
4803 (ordinary_java_source_files): Added
4804 gnu/classpath/ServiceFactory.java and
4805 gnu/classpath/ServiceProviderLoadingAction.java.
4806 (javax_source_files): Added
4807 javax/imageio/ImageReader.java,
4808 javax/imageio/ImageTranscoder.java,
4809 javax/imageio/ImageWriter.java,
4810 javax/imageio/spi/IIOServiceProvider.java,
4811 javax/imageio/spi/ImageInputStreamSpi.java,
4812 javax/imageio/spi/ImageOutputStreamSpi.java,
4813 javax/imageio/spi/ImageReaderWriterSpi.java,
4814 javax/imageio/spi/ImageTranscoderSpi.java,
4815 javax/imageio/spi/RegisterableService.java,
4816 javax/imageio/spi/ServiceRegistry.java,
4817 javax/imageio/stream/IIOByteBuffer.java,
4818 javax/imageio/stream/ImageInputStream.java and
4819 javax/imageio/stream/ImageOutputStream.java.
4820 * Makefile.in: Regenerated.
4822 2004-04-21 Michael Koch <konqueror@gmx.de>
4824 * java/util/Properties.java
4825 (load): Fix wrongly merged fix.
4827 2004-04-21 Mark Wielaard <mark@klomp.org>
4829 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
4830 malloc and free buf.
4832 2004-04-21 Dalibor Topic <robilad@kaffe.org>
4834 * javax/naming/AuthenticationException.java,
4835 javax/naming/AuthenticationNotSupportedException.java,
4836 javax/naming/CannotProceedException.java,
4837 javax/naming/CommunicationException.java,
4838 javax/naming/CompoundName.java,
4839 javax/naming/ConfigurationException.java,
4840 javax/naming/ContextNotEmptyException.java,
4841 javax/naming/InitialContext.java,
4842 javax/naming/InsufficientResourcesException.java,
4843 javax/naming/InterruptedNamingException.java,
4844 javax/naming/LimitExceededException.java,
4845 javax/naming/LinkException.java,
4846 javax/naming/LinkLoopException.java,
4847 javax/naming/LinkRef.java,
4848 javax/naming/MalformedLinkException.java,
4849 javax/naming/Name.java,
4850 javax/naming/NameAlreadyBoundException.java,
4851 javax/naming/NameNotFoundException.java,
4852 javax/naming/NamingSecurityException.java,
4853 javax/naming/NoInitialContextException.java,
4854 javax/naming/NoPermissionException.java,
4855 javax/naming/NotContextException.java,
4856 javax/naming/PartialResultException.java,
4857 javax/naming/ReferralException.java,
4858 javax/naming/ServiceUnavailableException.java,
4859 javax/naming/SizeLimitExceededException.java,
4860 javax/naming/TimeLimitExceededException.java,
4861 javax/naming/directory/Attribute.java,
4862 javax/naming/directory/Attributes.java,
4863 javax/naming/directory/SearchResult.java,
4864 javax/naming/event/NamingExceptionEvent.java,
4865 javax/naming/spi/ResolveResult.java:
4868 2004-04-21 Mark Wielaard <mark@klomp.org>
4870 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4871 Changed C++ comments into C comments. Removed commented out code.
4872 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4874 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
4876 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
4878 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
4880 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
4882 * native/jni/gtk-peer/gthread-jni.c:
4885 2004-04-21 Mark Wielaard <mark@klomp.org>
4887 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
4888 static fields defined in interface.
4889 * javax/awt/JDialog.java: Likewise.
4890 (JDialog): Make constructors public.
4891 (getDefaultCloseOperation): Make public.
4892 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
4893 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
4894 * javax/swing/JViewport.java (JViewport): Make constructor public.
4896 2004-04-21 Michael Koch <konqueror@gmx.de>
4898 * java/util/Map.java
4899 (Entry): Removed redundant "static" modifier.
4900 * java/text/AttributedCharacterIterator.java:
4901 Updated copyright year.
4903 2004-04-20 Michael Koch <konqueror@gmx.de>
4905 * javax/naming/directory/SearchControls.java:
4906 Don't explicitely extend java.lang.Object.
4907 * javax/naming/spi/DirStateFactory.java:
4908 Merged copyright year with GNU classpath.
4910 2004-04-20 Michael Koch <konqueror@gmx.de>
4912 * java/nio/channels/Channels.java:
4913 Merged coding style with GNU classpath.
4915 2004-04-20 Michael Koch <konqueror@gmx.de>
4917 * java/net/ServerSocket.java
4918 Merged coding style from GNU classpath.
4920 2004-04-20 Michael Koch <konqueror@gmx.de>
4922 * java/io/BufferedWriter.java:
4923 Reordered variables to be at top of the class.
4924 (localFlush): Removed redundant final keyword.
4926 2004-04-20 Ingo Proetel <proetel@aicas.com>
4928 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
4930 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
4932 * java/text/DecimalFormat.java (scanFix): Removed suffix check
4933 for percent and permill check.
4935 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
4937 * java/text/FieldPosition.java
4938 (FieldPosition) Constructor now behaves as it should according
4939 to the java documentation.
4941 2004-04-20 Mark Wielaard <mark@klomp.org>
4943 * java/util/Properties.java: Use the word umlaut, not ä in api
4946 2004-04-20 Michael Koch <konqueror@gmx.de>
4948 * java/nio/Buffer.java,
4949 java/nio/channels/AlreadyConnectedException.java,
4950 java/nio/channels/AsynchronousCloseException.java,
4951 java/nio/channels/ByteChannel.java,
4952 java/nio/channels/CancelledKeyException.java,
4953 java/nio/channels/Channel.java,
4954 java/nio/channels/Channels.java,
4955 java/nio/channels/ClosedByInterruptException.java,
4956 java/nio/channels/ClosedChannelException.java,
4957 java/nio/channels/ClosedSelectorException.java,
4958 java/nio/channels/ConnectionPendingException.java,
4959 java/nio/channels/DatagramChannel.java,
4960 java/nio/channels/FileChannel.java,
4961 java/nio/channels/FileLock.java,
4962 java/nio/channels/FileLockInterruptionException.java,
4963 java/nio/channels/GatheringByteChannel.java,
4964 java/nio/channels/IllegalBlockingModeException.java,
4965 java/nio/channels/IllegalSelectorException.java,
4966 java/nio/channels/InterruptibleChannel.java,
4967 java/nio/channels/NoConnectionPendingException.java,
4968 java/nio/channels/NonReadableChannelException.java,
4969 java/nio/channels/NonWritableChannelException.java,
4970 java/nio/channels/NotYetBoundException.java,
4971 java/nio/channels/NotYetConnectedException.java,
4972 java/nio/channels/OverlappingFileLockException.java,
4973 java/nio/channels/Pipe.java,
4974 java/nio/channels/ReadableByteChannel.java,
4975 java/nio/channels/ScatteringByteChannel.java,
4976 java/nio/channels/SelectableChannel.java,
4977 java/nio/channels/SelectionKey.java,
4978 java/nio/channels/Selector.java,
4979 java/nio/channels/ServerSocketChannel.java,
4980 java/nio/channels/SocketChannel.java,
4981 java/nio/channels/UnresolvedAddressException.java,
4982 java/nio/channels/UnsupportedAddressTypeException.java,
4983 java/nio/channels/WritableByteChannel.java,
4984 java/nio/channels/spi/AbstractInterruptibleChannel.java,
4985 java/nio/channels/spi/AbstractSelectableChannel.java,
4986 java/nio/channels/spi/AbstractSelectionKey.java,
4987 java/nio/channels/spi/AbstractSelector.java,
4988 java/nio/channels/spi/SelectorProvider.java,
4989 java/nio/charset/spi/CharsetProvider.java:
4990 Fixed javadocs and jalopied all over java.nio.
4992 2004-04-20 Michael Koch <konqueror@gmx.de>
4994 * java/nio/ByteBufferImpl.java,
4995 java/nio/CharBufferImpl.java,
4996 java/nio/DirectByteBufferImpl.java,
4997 java/nio/DoubleBufferImpl.java,
4998 java/nio/DoubleViewBufferImpl.java,
4999 java/nio/FloatBufferImpl.java,
5000 java/nio/FloatViewBufferImpl.java,
5001 java/nio/IntBufferImpl.java,
5002 java/nio/IntViewBufferImpl.java,
5003 java/nio/LongBufferImpl.java,
5004 java/nio/LongViewBufferImpl.java,
5005 java/nio/MappedByteBufferImpl.java,
5006 java/nio/ShortBufferImpl.java,
5007 java/nio/ShortViewBufferImpl.java:
5008 Made sure all classes are final and removed final keyword from all
5011 2004-04-20 Michael Koch <konqueror@gmx.de>
5013 * java/rmi/MarshalledObject.java,
5014 java/rmi/Naming.java,
5015 java/rmi/RemoteException.java,
5016 java/rmi/activation/ActivationException.java,
5017 java/rmi/server/ServerCloneException.java,
5018 java/security/AccessController.java,
5019 java/security/AlgorithmParameterGenerator.java,
5020 java/security/AlgorithmParameters.java,
5021 java/security/CodeSource.java,
5022 java/security/Identity.java,
5023 java/security/IdentityScope.java,
5024 java/security/KeyPairGenerator.java,
5025 java/security/KeyStore.java,
5026 java/security/Security.java,
5027 java/security/Signature.java,
5028 java/security/SignatureSpi.java,
5029 java/security/SignedObject.java,
5030 java/security/spec/DSAParameterSpec.java,
5031 java/security/spec/DSAPrivateKeySpec.java,
5032 java/security/spec/DSAPublicKeySpec.java,
5033 java/sql/Array.java,
5034 java/sql/DatabaseMetaData.java,
5035 java/sql/ResultSet.java,
5036 java/text/ChoiceFormat.java,
5037 java/text/CollationElementIterator.java,
5038 java/text/CollationKey.java,
5039 java/text/Collator.java,
5040 java/text/DateFormat.java,
5041 java/text/DateFormatSymbols.java,
5042 java/text/DecimalFormatSymbols.java,
5043 java/text/Format.java,
5044 java/text/ParsePosition.java,
5045 java/text/RuleBasedCollator.java,
5046 java/text/SimpleDateFormat.java,
5047 java/text/StringCharacterIterator.java,
5048 java/util/Collections.java,
5049 java/util/PropertyResourceBundle.java,
5050 java/util/ResourceBundle.java,
5051 java/util/StringTokenizer.java,
5052 java/util/jar/Attributes.java,
5053 java/util/logging/ConsoleHandler.java,
5054 java/util/logging/LogManager.java,
5055 java/util/logging/MemoryHandler.java,
5056 java/util/logging/SocketHandler.java,
5057 javax/naming/NamingException.java:
5058 Fixed javadoc, coding style and argument names all over.
5060 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5062 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5063 constructor. (valid) Added null check.
5065 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5067 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5068 * java/io/FileOutputStream.java
5069 (FileOutputStream) Reorganized constructors. Constructors now
5070 check whether the given path is directory.
5072 2004-04-20 Michael Koch <konqueror@gmx.de>
5074 * java/net/Authenticator.java,
5075 java/net/BindException.java,
5076 java/net/ConnectException.java,
5077 java/net/ContentHandler.java,
5078 java/net/ContentHandlerFactory.java,
5079 java/net/DatagramPacket.java,
5080 java/net/DatagramSocket.java,
5081 java/net/DatagramSocketImpl.java,
5082 java/net/DatagramSocketImplFactory.java,
5083 java/net/FileNameMap.java,
5084 java/net/HttpURLConnection.java,
5085 java/net/Inet4Address.java,
5086 java/net/Inet6Address.java,
5087 java/net/InetAddress.java,
5088 java/net/InetSocketAddress.java,
5089 java/net/JarURLConnection.java,
5090 java/net/MalformedURLException.java,
5091 java/net/MulticastSocket.java,
5092 java/net/NetPermission.java,
5093 java/net/NetworkInterface.java,
5094 java/net/NoRouteToHostException.java,
5095 java/net/PasswordAuthentication.java,
5096 java/net/PortUnreachableException.java,
5097 java/net/ProtocolException.java,
5098 java/net/ServerSocket.java,
5099 java/net/Socket.java,
5100 java/net/SocketAddress.java,
5101 java/net/SocketException.java,
5102 java/net/SocketImpl.java,
5103 java/net/SocketImplFactory.java,
5104 java/net/SocketOptions.java,
5105 java/net/SocketPermission.java,
5106 java/net/SocketTimeoutException.java,
5108 java/net/URISyntaxException.java,
5110 java/net/URLClassLoader.java,
5111 java/net/URLConnection.java,
5112 java/net/URLDecoder.java,
5113 java/net/URLEncoder.java,
5114 java/net/URLStreamHandler.java,
5115 java/net/URLStreamHandlerFactory.java,
5116 java/net/UnknownHostException.java,
5117 java/net/UnknownServiceException.java:
5118 Fixed javadocs, coding style and argument names all over.
5120 2004-04-20 Michael Koch <konqueror@gmx.de>
5122 * java/lang/Byte.java,
5123 java/lang/CharSequence.java,
5124 java/lang/ClassLoader.java,
5125 java/lang/Compiler.java,
5126 java/lang/Double.java,
5127 java/lang/Float.java,
5128 java/lang/Integer.java,
5129 java/lang/Long.java,
5130 java/lang/Math.java,
5131 java/lang/Number.java,
5132 java/lang/Package.java,
5133 java/lang/Runtime.java,
5134 java/lang/RuntimePermission.java,
5135 java/lang/SecurityManager.java,
5136 java/lang/Short.java,
5137 java/lang/StringBuffer.java,
5138 java/lang/System.java,
5139 java/lang/ThreadGroup.java,
5140 java/lang/Throwable.java,
5141 java/lang/reflect/InvocationHandler.java,
5142 java/lang/reflect/Proxy.java:
5143 Fixed javadocs, coding style and argument names all over.
5145 2004-04-20 Michael Koch <konqueror@gmx.de>
5147 * java/io/BufferedWriter.java,
5148 java/io/ByteArrayInputStream.java,
5149 java/io/CharArrayWriter.java,
5150 java/io/DataInput.java,
5151 java/io/DataInputStream.java,
5153 java/io/FilterInputStream.java,
5154 java/io/InputStream.java,
5155 java/io/InputStreamReader.java,
5156 java/io/ObjectInputStream.java,
5157 java/io/ObjectStreamClass.java,
5158 java/io/PipedInputStream.java,
5159 java/io/PipedReader.java,
5160 java/io/PushbackInputStream.java,
5161 java/io/PushbackReader.java,
5162 java/io/RandomAccessFile.java,
5163 java/io/SerializablePermission.java,
5164 java/io/StreamTokenizer.java,
5165 java/io/StringWriter.java,
5166 java/io/WriteAbortedException.java,
5167 java/io/Writer.java:
5168 Fixed javadocs all over, rename arguments to match javadocs,
5171 2004-04-20 Ingo Proetel <proetel@aicas.com>
5173 * java/awt/FontMetrics.java:
5174 (charsWidth): fixed accumulation of total_width
5175 (getWidth): simple default implementation
5176 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5177 in Rectangle constructor.
5178 * java/awt/image/Raster.java (toString): Added method.
5179 * java/awt/image/SampleModel.java (<init>): Added error cause
5180 information to thrown exception.
5181 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5183 (setDataElements): New method.
5184 (setPixels): New method.
5185 (toString): New method.
5187 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5189 * java/awt/image/ComponentColorModel.java
5190 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5191 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5192 Mauve tests on this method. Improved documentation.
5194 2004-04-20 Michael Koch <konqueror@gmx.de>
5196 * javax/swing/JLayeredPane.java,
5197 javax/swing/plaf/BorderUIResource.java,
5198 javax/swing/plaf/ComponentUI.java,
5199 javax/swing/undo/CompoundEdit.java,
5200 javax/swing/undo/StateEdit.java:
5201 Fixed HTML tags in javadocs all over.
5203 2004-04-20 Michael Koch <konqueror@gmx.de>
5205 * javax/print/attribute/EnumSyntax.java
5206 (getOffset): Made protected.
5207 * javax/print/attribute/HashAttributeSet.java
5208 (HashAttributeSet): Likewise.
5209 * javax/print/attribute/ResolutionSyntax.java
5210 (getFeedResolution): Fixed typo in exception name.
5211 (getCrossFeedResolution): Likewise.
5212 * javax/print/attribute/SetOfIntegerSyntax.java
5213 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5214 * javax/print/attribute/TextSyntax.java
5215 (TextSyntax): Handle locale correctly.
5216 (hashCode): Calc better hashcode value.
5217 (equals): Fixed @return tag.
5218 (toString): New method.
5220 2004-04-20 Michael Koch <konqueror@gmx.de>
5222 * gnu/java/nio/FileLockImpl.java
5223 (static): Removed, not needed anymore.
5224 * gnu/java/nio/channels/FileChannelImpl.java
5225 (FileChannelImpl): Made final.
5226 (mode): Made private.
5227 (READ, WRITE, APPEND): Made public.
5228 (EXCL, SYNC, DSYNC): Likewise.
5229 (static): Load native JNI library, when needed.
5230 (length): Unused, removed.
5231 (available): Made public.
5232 (implPosition): Throws IOException.
5234 (implTruncate): Likewise.
5238 2004-04-20 Michael Koch <konqueror@gmx.de>
5240 * java/awt/AWTPermission.java,
5241 java/awt/Component.java,
5242 java/awt/ComponentOrientation.java,,
5243 java/awt/Dialog.java,
5244 java/awt/FontMetrics.java,
5245 java/awt/Graphics.java,
5246 java/awt/datatransfer/DataFlavor.java,
5247 java/beans/Introspector.java,
5248 java/beans/PropertyEditor.java,
5249 java/beans/PropertyEditorManager.java,
5250 java/beans/beancontext/BeanContextServiceProvider.java:
5251 Fixed HTML tags in javadocs all over.
5253 2004-04-20 Mark Wielaard <mark@klomp.org>
5255 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5256 MissingResourceException is thrown.
5257 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5258 null when a MissingResourceException is thrown. Should never happen.
5260 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5262 * java/awt/image/DataBufferShort.java,
5263 java/awt/image/DataBufferFloat.java,
5264 java/awt/image/DataBufferDouble.java,
5265 java/awt/image/PixelInterleavedSampleModel.java: New files.
5266 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5267 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5269 2004-04-20 Michael Koch <konqueror@gmx.de>
5271 * Makefile.am (java_source_files): Added
5272 java/awt/image/DataBufferDouble.java,
5273 java/awt/image/DataBufferFloat.java,
5274 java/awt/image/DataBufferShort.java and
5275 java/awt/image/PixelInterleavedSampleModel.java.
5276 * Makefile.in: Regenerated.
5278 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5280 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5281 undocumented CNI calls.
5282 * include/java-interp.h (_Jv_InterpClass): No longer
5283 extends java.lang.Class.
5284 * java/lang/Class.h (Class): Add new field `aux_info'.
5285 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5286 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5287 Use Class->aux_info instead.
5288 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5289 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5290 Use Class->aux_info instead.
5291 * java/io/natObjectInputStream.cc (allocateObject): Use
5293 * java/lang/natClass.cc (newInstance): Likewise.
5294 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5295 * java/lang/natObject.cc (clone): Likewise.
5296 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5297 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5298 JvAllocObject. Allocate klass->aux_info here for interpreted
5301 2004-04-17 Mark Wielaard <mark@klomp.org>
5303 * javax/swing/JToggleButton.java (ToggleButtonModel):
5304 Make public static inner class.
5305 * javax/swing/JTabbedPane.java (setComponentAt):
5306 Call Page.setComponent().
5307 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5308 (WRAP_TAB_LAYOUT): Make public, value is 0.
5309 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5310 Make private static inner class.
5312 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5314 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5315 arguments to match new signature. Remove FIXME comments.
5317 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5319 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5321 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5324 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5326 * Makefile.am: Added new file.
5327 * Makefile.in: Regenerate.
5328 * javax/swing/ImageIcon.java:
5329 (ImageIcon(file)): set description of the icon
5331 * javax/swing/JCheckBoxMenuItem.java:
5332 Mostly Implemented. Work in progress.
5333 * javax/swing/JRadioButtonMenuItem.java:
5334 Reimplement constructors to use JToggleButtonModel.
5335 * javax/swing/plaf/basic/BasicIconFactory.java:
5336 (getCheckBoxMenuItemIcon): return check box
5338 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5339 paint menu item selected only when it is armed and
5342 2004-04-02 David Jee <djee@redhat.com>
5344 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5345 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5346 * java/awt/Component.java
5347 (add): Set the parent of the popup as this component.
5348 * java/awt/PopupMenu.java
5349 (addNotify): Create popup menu when peer is null.
5350 (show): Call addNotify() if peer is null.
5351 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5352 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5353 argument for gtk_menu_popup() as zero. This causes the popup menu to
5354 respond to any mouse button.
5356 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5358 * Makefile.am: Added new file.
5359 * Makefile.in: Regenerate.
5360 * javax/swing/JRadioButtonMenuItem.java:
5362 * javax/swing/plaf/basic/BasicIconFactory.java:
5363 (getRadioButtonMenuItemIcon): Return
5365 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5366 (getPreferredSize): Add size of checkIcon if it
5368 (installDefaults): Don't initialize checkIcon.
5369 It's value will be set in subclasses.
5370 (uninstallDefaults): remove uninstallation of
5372 (paint): Moved code to paintMenuItem().
5373 (paintMenuItem): Implemented.
5374 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5375 UI delegate for JRadioButtonMenuItem.
5377 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5379 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5380 Corrected position of the accelerator.
5382 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5384 * Makefile.am: Added new file.
5385 * Makefile.in: Regenerate.
5386 * javax/swing/JMenuItem.java: Partly
5387 implemented. Work in progress
5388 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5389 Changed default value of acceleratorDelimiter.
5390 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5391 New class. Partly implemented.
5393 2004-03-26 Mark Wielaard <mark@klomp.org>
5395 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5396 (item_activate): Declare label before use.
5397 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5398 (gtkSetFont): Removed unused variable label.
5399 (addExposeFilter): Declare variables before use.
5400 (removeExposeFilter): Likewise.
5401 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5402 (ok_clicked): Declare str_fileName before use.
5404 2004-03-26 David Jee <djee@redhat.com>
5406 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5407 (addSeparator): Remove.
5408 * java/awt/Menu.java
5409 (separator): Remove static final MenuItem field.
5410 (separatorLabel): New static final String field.
5411 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5412 Use separatorLabel to denote that it is a separator.
5413 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5414 of reusing the static separator instance, because a MenuItem instance
5415 can't be added more than once without being cloned.
5416 * java/awt/peer/MenuPeer.java
5417 (addSeparator): Remove from interface.
5419 2004-03-26 David Jee <djee@redhat.com>
5421 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5422 (connectSignals): New native method declaration.
5423 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5424 * java/awt/MenuItem.java
5425 (getActionCommand): Return the label if the action command is not set.
5426 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5427 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5428 gtk_menu_shell_append().
5429 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5430 (item_activate): Fix argument type.
5431 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5433 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5435 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5436 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5437 given. Add the menu widget's top-level GtkWindow to the global window
5438 group, so it can grab the pointer.
5439 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5440 gtk_menu_shell_append().
5442 2004-03-23 Graydon Hoare <graydon@redhat.com>
5444 * java/text/AttributedString.java
5445 (addAttribute): Fix off-by-one.
5446 (getIterator): Likewise.
5447 * java/text/AttributedStringIterator.java
5448 (getRunLimit): Correct logic.
5449 (getRunStart): Likewise.
5450 (getAttribute): Fix inequality.
5451 (getAttributes): Likewise.
5452 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5454 2004-03-23 Kim Ho <kho@redhat.com>
5456 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5457 (calculateSizes): Return real width and height.
5459 2004-03-23 Kim Ho <kho@redhat.com>
5461 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5462 (calculateTabRects): Set the selectedRun before
5463 trying to rotate tabs.
5465 2004-03-23 Kim Ho <kho@redhat.com>
5467 * Makefile.am: New file
5468 * Makefile.in: Regenerate
5469 * java/awt/Graphics.java: (drawRect):
5470 Draw to the correct point.
5471 * javax/swing/DefaultSingleSelectionModel.java
5472 (isSelected): Return true if the selected index
5474 * javax/swing/JLabel.java: Do not change mnemonic
5475 index if text is null.
5476 * javax/swing/JProgressBar.java: Use JComponent's
5478 * javax/swing/JScrollBar.java: Ditto.
5479 * javax/swing/JSlider.java: Ditto.
5480 * javax/swing/JTabbedPane.java: Reimplement.
5481 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5482 Add defaults for TabbedPane.
5483 * javax/swing/plaf/basic/BasicArrowButton.java:
5485 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5486 (paintDeterminate): Don't paint String if it's
5488 (paintIndeterminate): ditto.
5489 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5492 2004-03-19 Michael Koch <konqueror@gmx.de>
5494 * java/awt/image/AffineTransformOp.java
5495 (AffineTransformOp): Made public.
5496 * javax/swing/JComponent.java
5497 (listenerList): Made protected.
5498 (accessibleContext): Likewise.
5499 * javax/swing/JList.java
5500 (valueChanged): Dont use internal fields of ListSelectionEvent.
5501 * javax/swing/JViewport.java
5502 (getView): Dont use internal fields of Component.
5503 (addImpl): Likewise.
5504 * javax/swing/Timer.java
5505 (isRunning): Made public.
5508 * javax/swing/UIDefaults.java
5509 (getInt): Made public.
5510 * javax/swing/plaf/basic/BasicListUI.java
5511 (mousePressed): Dont use internal fields of MouseEvent.
5512 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5513 * javax/swing/plaf/basic/BasicScrollBarUI.java
5514 (arrowIcon): Made static.
5515 * javax/swing/plaf/basic/BasicViewportUI.java
5516 (stateChanged): Dont use internal field on ChangeEvent.
5517 * javax/swing/text/JTextComponent.java
5518 (getUI): Call UIManager.getUI().
5519 (updateUI): Use getUI().
5521 2004-03-19 Graydon Hoare <graydon@redhat.com>
5523 * javax/swing/JComponent.java: Turn off double buffer by default.
5524 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5525 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5526 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5527 Use cairo to copy areas.
5528 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5529 Initialize and set clip region.
5531 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5533 * java/applet/Applet.java (preferredSize): Override deprecated
5534 variant of getPreferredSize.
5535 (minimumSize): Override deprecated variant of getMinimumSize.
5537 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5539 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5540 (drawImage(img,xform,bgcolor,obs)): New Method.
5541 Helper function that every drawImage method will
5543 (drawRaster): Added new parameter, bgcolor. All
5544 transparent pixels are changed to bgcolor before
5546 (drawRenderedImage): Fixed to use changed drawRaster().
5547 (drawImage(image,xform,obs): Fixed to use new helper function
5548 (drawImage(image,op,x,y)): Ditto.
5549 (drawImage (img,x,y,observer)): Ditto.
5550 ((PainterThread) bgcolor): New Field.
5551 ((PainterThread) (setPixels)): Changed all transparent pixels
5553 (drawImage(img,x,y,width,height,bgcolor,observer)):
5554 Fixed FIXME - all the transparent pixels are
5555 changed to the specified bgcolor.
5556 (drawImage(img, x, y, width, height, observer): Changed to
5558 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5559 Fixed FIXME- changed all transparent pixels to bgcolor.
5560 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5561 Changed to use function above.
5563 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5565 * java/applet/Applet.java (dimensions): New field.
5566 (getDimensions): New method.
5567 (getPreferredSize): Call getDimensions.
5568 (getMinimumSize): Likewise.
5570 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5572 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5573 * jni/classpath/jnilink.c: Likewise.
5575 * java/applet/Applet.java (getPreferredSize): New method.
5576 (getMinimumSize): New method.
5578 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5580 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5581 (_Jv_AllocObjectNoFinalizer): Likewise.
5582 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5583 (_Jv_AllocPtrFreeObject): Likewise.
5584 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5585 directly even in the JVMPI case.
5586 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5587 _Jv_AllocObject calls.
5588 * gcj/javaprims.h: Update prototypes.
5589 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5590 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5591 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5593 2004-04-14 Andrew Haley <aph@redhat.com>
5594 Bryce McKinlay <mckinlay@redhat.com>
5596 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5597 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5598 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5600 * testsuite/libjava.lang/InvokeInterface.java: New file.
5601 * testsuite/libjava.lang/InvokeInterface.out: New file.
5603 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5605 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5607 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5608 StackTraceElement directly.
5609 (newElement): New native helper method to create StackTraceElement
5610 bypassing Java access control.
5611 (createStackTraceElement): Use newElement() instead of directly
5612 calling StackTraceElement's constructor.
5613 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5615 2004-04-01 Michael Koch <konqueror@gmx.de>
5617 * java/lang/SecurityManager.java
5618 (checkAwtEventQueueAccess): Implemented.
5620 2004-04-01 Gary Benson <gbenson@redhat.com>
5622 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5623 (_Jv_SearchMethodInClass): Likewise.
5625 2004-03-26 Peter Moon <peterm@miraculum.com>
5627 * java/text/NumberFormat.java: Fix spelling of setCurrency
5630 2004-03-21 Anthony Green <green@redhat.com>
5632 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5633 recursion when searching for the system ClassLoader.
5635 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5637 * java/net/ServerSocket.java
5638 (accept): Close the socket when error occured.
5640 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
5642 * java/net/URI.java (parseURI): Added unquoting.
5643 (unquote): New method.
5644 (quoteAuthority): Implemented.
5645 (quote(String,String)): New method.
5646 (quotePath): Implemented.
5647 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5648 (getSchemeSpecificPart): Removed FIXME comment.
5649 (getRawAuthority): Return new rawAuthority field.
5650 (getAuthority): Removed FIXME comment.
5651 (getRawUserInfo): Return new rawUserInfo field.
5652 (getUserInfo): Removed FIXME comment.
5653 (getRawPath): Return new rawPath field.
5654 (getPath): Removed FIXME comment.
5655 (getRawQuery): Return new rawQuery field.
5656 (getQuery): Removed FIXME comment.
5657 (getRawFragment): Return new rawFragment field.
5658 (getFragment): Removed FIXME comment.
5660 2004-03-20 Michael Koch <konqueror@gmx.de>
5662 * java/net/URLConnection.java: Merged copyright year with classpath.
5664 2004-03-20 Norbert Frese <postfach@nfrese.net>
5666 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5667 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5668 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5670 (getObjectInputStream): Return object reference, throw IOException if null.
5671 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5672 (getObjectOutputStream): Return object reference, throw IOException if null.
5673 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5674 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5675 (UnicastConnectionManager): Throw RemoteException if port is not available.
5676 (getInstance): Throw RemoteException.
5677 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5678 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5679 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5680 Collect Exceptions which are returned by a rmi-call and fix void returns.
5681 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
5682 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5683 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
5684 (dispatch): Answer ping messages which are sent by other java implementions.
5685 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
5686 for every rmi-message and fix void return problems.
5687 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
5688 (UnicastServerRef): Throw RemoteException.
5689 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
5690 In some situations it is necessary to export a subclass of the class which has the _Stub.
5691 For instance when the class with has the _Stub is abstract.
5692 (findStubSkelClass): New method which looks for the class which has the _Stub.
5693 (getClientHost): Implementated.
5694 * gcc/libjava/java/rmi/server/RemoteServer.java
5695 (getClientHost): Implementated.
5696 * gcc/libjava/Makefile.am (rmi_java_source_files):
5697 Added gnu/java/rmi/server/RMIIncomingThread.java.
5698 * Makefile.in: Regenerated.
5700 2004-03-20 Michael Koch <konqueror@gmx.de>
5702 * java/net/InetAddress.java
5703 (getLocalHostname): Added javadoc.
5705 2004-03-19 Per Bothner <per@bothner.com>
5707 * configure.in: FILE variable overrides FLATFORM when linking
5708 natFileChannelXXX.cc.
5710 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
5711 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
5713 2004-03-19 Per Bothner <per@bothner.com>
5715 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
5716 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
5717 * Makefile.am: Update accordingly.
5718 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
5719 as aliases for UnicodeLittle and UnicodeBig.
5721 2004-03-20 Mark Wielaard <mark@klomp.org>
5723 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5724 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
5725 Don't access ws when it is null.
5726 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
5729 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
5731 * java/lang/ThreadGroup.java (list): Changed print to println.
5733 2004-03-19 Mark Wielaard <mark@klomp.org>
5735 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
5738 2004-02-10 Randolph Chung <tausq@debian.org>
5740 * configure.in: Build java for hppa target.
5741 * configure: Regenerate.
5742 * libjava/configure.host (hppa-*): Add target.
5743 * libjava/sysdeps/pa/lock.h: New file.
5745 2004-03-19 Mark Wielaard <mark@klomp.org>
5747 Reported by Stephen Crawley
5748 * java/io/FilePermission.java (implies): Use String.length() -1 to
5749 access last char of String.
5751 2004-03-19 Michael Koch <konqueror@gmx.de>
5753 * java/awt/image/AffineTransformOp.java
5754 (AffineTransformOp): Made public.
5755 * javax/swing/JComponent.java
5756 (listenerList): Made protected.
5757 (accessibleContext): Likewise.
5758 * javax/swing/JList.java
5759 (valueChanged): Dont use internal fields of ListSelectionEvent.
5760 * javax/swing/JViewport.java
5761 (getView): Dont use internal fields of Component.
5762 (addImpl): Likewise.
5763 * javax/swing/Timer.java
5764 (isRunning): Made public.
5767 * javax/swing/UIDefaults.java
5768 (getInt): Made public.
5769 * javax/swing/plaf/basic/BasicListUI.java
5770 (mousePressed): Dont use internal fields of MouseEvent.
5771 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5772 * javax/swing/plaf/basic/BasicScrollBarUI.java
5773 (arrowIcon): Made static.
5774 * javax/swing/plaf/basic/BasicViewportUI.java
5775 (stateChanged): Dont use internal field on ChangeEvent.
5776 * javax/swing/text/JTextComponent.java
5777 (getUI): Call UIManager.getUI().
5778 (updateUI): Use getUI().
5780 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5782 * verify.cc: Undef PC.
5784 2004-03-18 Michael Koch <konqueror@gmx.de>
5786 * java/nio/channels/spi/AbstractSelectableChannel.java
5787 (keys): Initialize at declaration.
5788 (locate): keys cant be null.
5790 (addSelectionKey): New method.
5791 (removeSelectionKey): New method.
5792 * java/nio/channels/spi/AbstractSelectionKey.java
5793 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
5794 * java/nio/channels/spi/AbstractSelector.java
5795 (provider): Javadoc added.
5796 (cancelledKeys): Javadoc added.
5797 (cancelKey): Javadoc added, add key to cancelledKeys.
5798 (deregister): Implemented.
5800 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5802 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
5803 MAP_FAILED to void *.
5805 2004-03-12 Graydon Hoare <graydon@redhat.com>
5807 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
5808 * javax/swing/JComponent.java (paint): Use persistent double buffer.
5809 * javax/swing/JList.java (ListListener): Revalidate on changes.
5810 * javax/swing/JScrollPane.java: Reimplement.
5811 * javax/swing/JViewport.java: Reimplement.
5812 * javax/swing/ScrollPaneLayout.java: Reimplement.
5813 * javax/swing/ViewportLayout.java: Tidy up.
5814 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
5815 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
5816 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
5817 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
5820 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5822 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5823 (window_wm_protocols_filter): New function.
5824 (window_focus_in_cb): Remove function.
5825 (window_focus_out_cb): Likewise.
5826 (window_focus_or_active_state_change_cb): New function.
5827 (create): Add filter that removes WM_TAKE_FOCUS client messages.
5828 (connectSignals): Don't attach handlers to focus-in-event or
5829 focus-out-event signals. Handle notify signal.
5831 2004-03-11 David Jee <djee@redhat.com>
5833 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
5834 (gtkSetLabel): New native method declaration.
5835 (setLabel): Use gtkSetLabel.
5836 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
5837 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
5839 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
5841 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
5842 black when color argument is null.
5844 2004-03-10 Kim Ho <kho@redhat.com>
5846 * java/awt/Container.java: Remove check
5849 2004-03-10 Kim Ho <kho@redhat.com>
5851 * java/awt/Container.java: (visitChild):
5852 Remove candidate clip. Use the component
5854 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
5855 (handleEvent): Use the PaintEvent's clip.
5857 2004-03-10 Kim Ho <kho@redhat.com>
5859 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
5860 (handleEvent): Don't set the clip for the
5863 2004-03-09 Graydon Hoare <graydon@redhat.com>
5865 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5866 Fix double <-> fixed macros, reset font transform.
5867 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
5870 2004-03-09Â Kim Ho <kho@redhat.com>
5872 * java/awt/Container.java: (visitChild): Move
5873 the x and y coordinate of the component rectangle
5874 to correct position.
5875 (handleEvent): Forward drag events to the pressed
5877 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5879 (ArrowButtonListener::mousePressed): Stop the
5881 (mouseDragged): Implement.
5882 (TrackListener::mousePressed): Only react if
5883 the press doesn't occur on the thumb, otherwise
5884 just set the offset.
5885 (TrackListener::mouseReleased): Unset the isAdjusting
5887 (createIncreaseIcon): Switch icon.
5888 (createDecreaseIcon): Switch icon.
5889 (calculatePreferredSize): Use width.
5890 (getThumbBounds): Use the top as the lower value.
5891 (layoutVScrollBar): Switch the button locations.
5892 (paintIncreaseHighlight): Paint correct side of thumb.
5893 (paintDecreaseHighlight): ditto.
5894 (valueForYPosition): Use top as the lower value.
5895 * javax/swing/plaf/basic/BasicSliderUI.java:
5897 (mouseDragged): Implement.
5898 (mousePressed): Only react when the thumb isn't
5899 pressed, otherwise just set offset.
5900 (mouseReleased): Handle a release of the thumb.
5901 (scrollDueToClickInTrack): Stop the timer first.
5902 * javax/swing/JProgressBar.java:
5903 (setString): Fix change condition.
5904 * javax/swing/JSeparator.java:
5907 2004-03-08 David Jee <djee@redhat.com>
5909 * java/awt/image/AffineTransformOp.java:
5910 (filter): Use Graphics2D interface instead of directly using the
5913 2004-03-05 David Jee <djee@redhat.com>
5915 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
5916 (handleEvent): Action events are generated upon MOUSE_RELEASED.
5917 * java/awt/Container.java
5918 (acquireComponentForMouseEvent): Fixed.
5919 (handleEvent): Fixed.
5920 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5921 (state_to_awt_mods_with_button_states): New method.
5922 (pre_event_handler): Fixed mouse event generation.
5924 2004-03-05 Olga Rodimina <rodimina@redhat.com>
5926 gnu/java/awt/peer/gtk/GdkGraphics2D.java
5927 (GdkGraphics2D (BufferedImage)): Initialize
5928 pixmap associated with specified BufferedImage.
5929 (setPaint): Changed implementation of Texture
5930 Paint to use AffineTransformOp.
5931 * java/awt/image/AffineTransformOp.java
5932 (createCompatibleDestRaster): Throw RasterFormatException
5933 if resulting width or height of raster is 0.
5935 2004-03-04 Olga Rodimina <rodimina@redhat.com>
5937 * java/awt/image/AffineTransformOp.java:
5938 Removed unnecessary field interpolationType.
5939 Formatted some of the lines to be consistent with
5941 (AffineTransformOp): Create new RenderingHints
5942 containing specified interpolation type.
5943 (createCompatibleDestImage): Implemented.
5944 (createCompatibleDestRaster): Implemented.
5945 (filter): Implemented.
5946 (getBounds2D(BufferedImage)): Implemented.
5947 (getBounds2D(Raster)): Implemented.
5948 (getInterpolationType): Get interpolation value from
5951 2004-03-04 David Jee <djee@redhat.com>
5953 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5954 (setFont): Check if child peers are null.
5956 2004-03-04 Graydon Hoare <graydon@redhat.com>
5958 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
5960 (libjava_arguments): Add new libraries to argument list.
5962 2004-03-02 Olga Rodimina <rodimina@redhat.com>
5964 * Makefile.am: Added java/awt/image/AffineTransformOp.java
5965 * Makefile.in: Re-generated.
5966 * java/awt/image/AffineTransformOp.java: New Class.
5968 2004-03-01 Olga Rodimina <rodimina@redhat.com>
5970 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5971 (setPaint): Interpret correctly TexturePaint's
5973 (drawImage): Fixed scale factors of the affine
5976 2004-02-27 David Jee <djee@redhat.com>
5978 * gnu/java/awt/peer/gtk/GdkGraphics.java
5979 (GdkGraphics(Component)): Inherit font from component.
5980 (drawString): Use font style.
5981 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
5982 (gtkSetFont): New native method declaration.
5983 (setFont): New method.
5984 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5985 (gtkSetFont): New native method declaration.
5986 (setFont): Call new native method gtkSetFont.
5987 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5988 (setFont): For all child components who do not their fonts set,
5989 set their peers' fonts with this container's font.
5990 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
5991 Move all native method declarations to the top for readability.
5992 (gtkSetFont): New native method declaration.
5993 (setFont): New method.
5994 * java/awt/Component.java
5995 (setFont): Invalidate after setting the font.
5996 * java/awt/Container.java
5997 (invalidateTree): New method.
5998 (setFont): Invalidate the container tree after setting the font.
5999 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6000 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6001 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6002 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6003 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6004 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6005 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6006 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6008 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6010 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6011 (updateBufferedImage): New helper function.
6012 Updates BufferedImage in memory if it was changed.
6013 (draw): changed to update BufferedImage in memory after
6014 this drawing operation
6016 (draw3DRect): Ditto.
6017 (fill3DRect): Ditto.
6019 (drawRaster): Ditto.
6020 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6021 no affine transformation.
6022 (drawGlyphVector): Ditto.
6024 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6026 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6027 (isBufferedImageGraphics): New Helper function.
6028 Returns true if this graphics2d can be used to draw
6029 into buffered image and false otherwise.
6030 (updateImagePixels): New Helper function.
6031 Updates pixels in the BufferedImage.
6032 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6033 (getImagePixels): New function. Returns pixels
6034 of the buffered image associated with
6037 2004-02-26 David Jee <djee@redhat.com>
6039 * java/awt/BorderLayout.java
6040 (layoutContainer): Fix width and height calculations to ensure
6041 that they're non-negative.
6042 * java/awt/Component.java
6043 (setBackground): If c is null, inherit from closest ancestor whose
6044 background color is set.
6046 2004-02-26 Kim Ho <kho@redhat.com>
6048 * Makefile.am: Add new files.
6049 * Makefile.in: Re-generate.
6050 * javax/swing/JProgressBar.java:
6051 (JProgressBar(int, int int)): Throw
6052 IllegalArgumentException if orientation is
6054 (JProgressBar(BoundedRangeModel)): Create
6055 ChangeListener and register it. UpdateUI.
6056 (getChangeListeners): Implement.
6057 (setModel): Reset ChangeListener.
6058 * javax/swing/JScrollBar.java: Implement.
6059 * javax/swing/JSeparator.java: Implement.
6060 * javax/swing/JSlider.java:
6061 (JSlider(int, int, int, int)): Throw
6062 IllegalArgumentException if orientation
6064 (getChangeListeners): Fix method name.
6065 * javax/swing/SwingUtilities.java:
6066 (layoutCompoundLabel): If there is no text,
6067 set the text rectangle dimensions to 0.
6068 * javax/swing/plaf/basic/BasicButtonUI.java:
6069 (paint): If there is no text, don't paint it.
6070 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6072 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6074 * javax/swing/plaf/basic/BasicSliderUI.java:
6075 (propertyChange): If the model changes, change
6076 the listeners accordingly.
6078 2004-02-25 Graydon Hoare <graydon@redhat.com>
6080 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6081 * javax/swing/JList.java: Reimplement.
6082 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6083 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6084 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6085 * javax/swing/ListModel.java: Javadoc.
6086 * javax/swing/ListSelectionModel.java: Add missing methods.
6087 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6088 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6089 * javax/swing/ListModel.java: Javadoc and corrections.
6090 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6092 2004-02-25 David Jee <djee@redhat.com>
6094 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6095 (GtkFontPeer): Change default size to 12.
6096 * gnu/java/awt/peer/gtk/GtkToolkit.java
6097 (getFontPeer): Change default size to 12.
6098 (getClasspathFontPeer): Likewise. Set default name to "Default".
6099 * java/awt/Font.java
6100 (Font(Map)): Call Font(String,Map).
6101 (Font(String,Map)): If attrs is null, initialize it as an empty
6102 HashMap, which will ensure that the Font will get default attributes.
6104 2004-02-25 David Jee <djee@redhat.com>
6106 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6107 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6108 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6109 * gnu/java/awt/peer/gtk/GtkToolkit.java
6110 (getFontPeer(String,int)): Call the new overload method with size 1.
6111 (getFontPeer(String,int,int)): New method. Overloaded with size
6113 (getClasspathFontPeer): Set the size of the font.
6115 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6117 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6118 (bimage): New field.
6119 (GdkGraphics2D): New Constructor. Constructs Graphics
6120 object that can be used to draw into the Buffered Image.
6121 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6122 (GdkGraphicsEnvironment): Fixed to include public
6124 (createGraphics): Implemented.
6125 * gnu/java/awt/peer/gtk/GtkToolkit.java
6126 (getLocalGraphicsEnvironment): Implemented.
6127 * java/awt/GraphicsEnvironment.java:
6128 (getLocalGraphicsEnvironment): Implemented.
6129 * java/awt/image/BufferedImage.java:
6130 (createGraphics): Implemented.
6132 2004-02-24 David Jee <djee@redhat.com>
6134 * java/awt/Component.java
6135 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6136 * java/awt/Container.java
6137 (addNotifyContainerChildren): Fix event enabling.
6139 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6141 * Makefile.am: Added
6142 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6143 * Makefile.in: Re-generated.
6144 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6147 2004-02-19 Kim Ho <kho@redhat.com>
6149 * Makefile.am: Add BasicProgressBarUI
6150 * Makefile.in: Regenerate.
6151 * javax/swing/JProgressBar.java:
6153 * javax/swing/plaf/basic/BasicLookAndFeel.java
6154 Add constants for JProgressBar.
6155 * javax/swing/plaf/basic/BasicProgressBarUI.java
6157 * javax/swing/plaf/basic/BasicSliderUI.java
6159 (calculateGeometry): New method
6160 (paint): Remove unnecessary size calculations.
6162 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6164 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6165 (drawRaster): Fixed small error that caused
6166 imageToUser transformation to be set incorrectly.
6167 (toString): Implemented.
6169 2004-02-18 David Jee <djee@redhat.com>
6171 * java/awt/CardLayout.java
6172 (addLayoutComponent): Show the first component added as the default.
6173 (removeLayoutComponent): After removing, show the next component.
6174 (gotoComponent): If there is only one component, show it and return.
6176 2004-02-18 Kim Ho <kho@redhat.com>
6178 * javax/swing/JSlider.java: Re-order
6180 * javax/swing/JLabel.java: Re-order
6182 * javax/swing/JComponent.java:
6183 (addPropertyChangeListener):
6185 (removePropertyChangeListener):
6187 (firePropertyChangeEvent):
6190 2004-02-17 David Jee <djee@redhat.com>
6192 * java/awt/Component.java
6193 (show): Dispatch ComponentEvent via system event queue.
6197 (reshape): Likewise.
6198 * java/awt/Window.java
6199 (setBoundsCallback): Likewise.
6201 2004-02-17 David Jee <djee@redhat.com>
6203 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6204 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6205 Use gtk_widget_set_size_request() instead of the deprecated
6206 gtk_widget_set_usize().
6208 2004-02-17 Kim Ho <kho@redhat.com>
6210 * javax/swing/JSlider.java: Fix comments and
6211 make property strings constants.
6212 (createStandardLabels): Use the labels
6213 preferred size as bounds.
6214 * javax/swing/plaf/basic/BasicSliderUI.java
6216 (ScrollHandler::actionPerformed): Don't
6217 calculate the timer stop value. Let the
6218 MouseListeners find the stop location.
6219 (getPreferredHorizontalSize): Re-implement.
6220 (getPreferredVerticalSize): ditto.
6221 (getMinimumHorizontalSize): ditto.
6222 (getMinimumVerticalSize): ditto.
6223 (getPreferredSize): ditto.
6224 (getMinimumSize): ditto.
6225 (getMaximumSize): ditto.
6226 (paintTicks): Use doubles to find the
6228 (paintHorizontalLabel):Â Use preferredSize
6229 as initial width and height.
6230 (paintVerticalLabel): ditto.
6232 2004-02-17 Kim Ho <kho@redhat.com>
6234 * javax/swing/JLabel.java: Changed
6235 property strings to constants.
6236 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6238 (setText): Change mnemonic index if
6240 (setDisplayedMnemonicIndex): Fire property
6242 (getDisplayedMnemonicIndex): Remove check
6245 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6247 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6248 (drawImage(img,xform,obs)): Invert xform before
6249 passing the xform to cairo.
6250 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6251 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6253 (drawImage (img,x,y,w,h,obs)): Implemented.
6254 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6255 bgcolor,obs)): Partly implemented.
6256 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6258 * java/awt/image/BufferedImage.java:
6259 (copyData): if dest is null, create raster with same
6260 dimensions as the current image.
6262 2004-02-16 Graydon Hoare <graydon@redhat.com>
6264 * javax/swing/plaf/basic/BasicLabelUI.java
6265 (getPreferredSize): Use layoutCL.
6266 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6267 (getPreferredButtonSize): Start with empty view rect, layout using
6268 component's preferred alignment.
6269 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6272 2004-02-16 David Jee <djee@redhat.com>
6274 * java/awt/Component.java
6275 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6276 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6277 (move): Erase old bounds and repaint new bounds. Dispatch
6278 COMPONENT_MOVED ComponentEvent.
6279 (resize): Erase old bounds and repaint new bounds. Dispatch
6280 COMPONENT_RESIZED ComponentEvent.
6281 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6283 * java/awt/Window.java
6284 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6287 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6289 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6290 (setRenderingHint): Added implementation of
6291 Interpolation rendering hints.
6292 (setRenderingHints): Ditto.
6293 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6294 (drawPixels): fixed to allow user to choose type
6295 of filtering that should be used when displaying images.
6296 (cairoSurfaceSetFilter): New method. Sets filter type for
6297 interpolation of pixel values.
6299 2004-02-16 David Jee <djee@redhat.com>
6301 * java/awt/GridBagLayout.java
6302 (calcCellSizes): Rows or columns with zero sizes should still be
6303 considered for extra space distribution.
6305 2004-02-16 Kim Ho <kho@redhat.com>
6307 * javax/swing/JLabel.java: Re-implement.
6308 * javax/swing/plaf/basic/BasicLabelUI.java
6310 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6313 2004-02-16 Kim Ho <kho@redhat.com>
6315 * javax/swing/JSlider.java: Fix indentation and comments.
6316 (setModel): Remove null check to conform with Sun's.
6317 (setOrientation): Throw exception if not
6318 HORIZONTAL or VERTICAL.
6319 (getInverted): Use private variable instead of
6320 ComponentOrientation.
6321 (setInverted): ditto.
6322 * javax/swing/plaf/basic/BasicSliderUI.java:
6323 Fix indentation and comments.
6324 (propertyChange): Remove check for inverted slider, handle
6326 (getMinimumSize): Return preferred size.
6327 (getMaximumSize): ditto.
6328 (calculateFocusRect): Don't relocate rectangle.
6329 (drawInverted): Return XOR of the slider's inversion and
6330 the component's orientation.
6331 (paint): Update leftToRightCache
6333 2004-02-13 David Jee <djee@redhat.com>
6335 * java/awt/GridBagLayout.java
6336 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6337 code to helper methods.
6338 (sortBySpan): New helper method.
6339 (distributeSizeAndWeight): Likewise.
6340 (calcCellWeights): Likewise.
6341 (calcCellSizes): Add comments.
6343 2004-02-13 David Jee <djee@redhat.com>
6345 * java/awt/Component.java
6346 (show): Only do something if component is invisible at the moment.
6347 (hide): Only do something if component is visible at the moment.
6348 (reshape): If lightweight, erase old bounds and repaint new bounds.
6350 2004-02-13 Kim Ho <kho@redhat.com>
6352 * Makefile.am: Updated for new file.
6353 * Makefile.in: Regenerated.
6354 * javax/swing/JSlider.java: Reimplement.
6355 * javax/swing/SwingUtilities.java
6356 (layoutCompoundLabel): Use icon height
6358 (paintComponent): Implement.
6359 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6360 Add JSlider defaults.
6361 * javax/swing/plaf/basic/BasicSliderUI.java:
6362 Implement. New file.
6364 2004-03-17 Michael Koch <konqueror@gmx.de>
6366 * gnu/java/net/PlainDatagramSocketImpl.java
6367 (RECEIVE_LOCK): New member field.
6368 (SEND_LOCK): New member field.
6369 (send0): New method.
6370 (send): Synchronize on SEND_LOCK.
6371 (receive0): New method.
6372 (receive): Synchronize on RECEIVE_LOCK.
6373 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6374 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6375 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6376 (send0): Renamed from send.
6377 (receive0): Renamed from receive.
6378 2004-03-17 Michael Koch <konqueror@gmx.de>
6380 * gnu/java/net/natPlainSocketImplPosix.cc
6381 (write): Just call write(jbyteArray, offset, len).
6382 (read): Just call read(jbyteArray, offset, len).
6384 2004-03-16 Michael Koch <konqueror@gmx.de>
6386 * javax/swing/JTabbedPane.java
6387 (serialVersionUID): New field.
6389 2004-03-16 Norbert Frese <postfach@nfrese.net>
6391 * java/net/InetAddress.java
6392 (getByName): Handle hostname == "" case.
6394 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6396 Reported by: Adam Heath <doogie@debian.org>
6397 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6400 2004-03-15 Michael Koch <konqueror@gmx.de>
6402 * java/util/Locale.java: Reverting my last patch
6403 and add a comment why the original version was okay.
6405 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6407 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6408 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6409 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6410 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6412 2004-03-12 Michael Koch <konqueror@gmx.de>
6414 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6416 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6418 * java/net/URI.java (toURL): Implemented.
6420 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6423 (URI_REGEXP) updated to contain scheme specific part.
6424 (SCHEME_SPEC_PART_GROUP) new constant.
6425 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6426 updated to make room for SCHEME_SPEC_PART_GROUP.
6427 (parseURI) parse scheme specific part.
6428 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6429 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6430 getQuery, getFragment) implemented.
6432 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6434 * libraries/javalib/java/net/URI.java
6435 partially implemented using java.util.regex.
6436 (URI_REGEXP) new constant. Used to parse URIs.
6437 (SCHEME_GROUP) new constant representing index of scheme group
6439 (AUTHORITY_GROUP) new constant representing index of authority
6440 group in parsed URI.
6441 (PATH_GROUP) new constant representing index of path group in
6443 (QUERY_GROUP) new constant representing index of query group in
6445 (FRAGMENT_GROUP) new constant representing index of fragment
6446 group in parsed URI.
6447 (getURIGroup) new static utility method.
6448 (parseURI) implemented.
6449 (quote) stub for new static utility method.
6450 (quoteAuthority) stub for new static utility method.
6451 (quoteHost) stub for new static utility method.
6452 (quotePath) stub for new static utility method.
6453 (quoteUserInfo) stub for new static utility method.
6455 (create) don't throw URISyntaxException. Implemented.
6456 (toString) implemented.
6458 2004-03-12 Michael Koch <konqueror@gmx.de>
6460 * java/net/HttpURLConnection.java
6461 (getResponseCode): Fix another typo in javadoc.
6463 2004-03-11 Michael Koch <konqueror@gmx.de>
6465 * java/util/logging/Level.java
6466 (parse): Use String.equals() instead of ==.
6468 2004-03-11 Michael Koch <konqueror@gmx.de>
6470 * gnu/java/net/protocol/jar/Connection.java
6471 (getContentLength): New method.
6473 2004-03-11 Michael Koch <konqueror@gmx.de>
6475 * gnu/java/net/PlainSocketImpl.java:
6476 Reformated to merge better with classpath's version.
6478 2004-03-11 Michael Koch <konqueror@gmx.de>
6480 * java/util/Locale.java
6481 (getISO3Language): Use String.equals() instead of ==.
6482 (getISO3Country): Likewise.
6484 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6486 * java/text/AttributedString.java
6487 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6488 Use HashMap instead of Hashtable since value can be null, and
6489 you can not store a null value in a Hashtable.
6491 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6493 * java/text/AttributedStringIterator.java
6494 (getAllAttributesKey): Return only keys concerned
6495 by the current iterator.
6496 (getAttributes): Use strict inequality for
6499 2004-03-11 Michael Koch <konqueror@gmx.de>
6501 * java/net/HttpURLConnection.java:
6502 Fixed typo in javadoc.
6504 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6506 * java/io/BufferedInputStream.java (marktarget): New field for max
6508 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6509 (mark): Use new fields.
6511 (read(byte[],int,int)): Likewise.
6515 2004-03-11 Mark Wielaard <mark@klomp.org>
6517 * java/beans/BeanDescriptor.java (BeanDescriptor):
6518 Set the FeatureDescriptor programmatic name.
6520 2004-03-11 Michael Koch <konqueror@gmx.de>
6522 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6523 This file was was just copied form java/io/natFileDescriptorEcos.cc
6524 and never changed to compile correctly.
6526 2004-03-11 Michael Koch <konqueror@gmx.de>
6528 * gnu/java/nio/PipeImpl.java
6529 (SourceChannelImpl): Made final.
6530 (read): Implemented.
6531 (SinkChannelImpl): Made final.
6532 (write): Implemented.
6534 2004-03-11 Michael Koch <konqueror@gmx.de>
6536 * gnu/java/net/PlainDatagramSocketImpl.java:
6537 Reformated to match classpath's version more.
6539 2004-03-11 Michael Koch <konqueror@gmx.de>
6541 * gnu/java/awt/peer/ClasspathFontPeer.java:
6542 Fixed javadoc to be correct xhtml.
6543 * gnu/java/awt/peer/gtk/GtkArgList.java
6544 (add): Use Boolean.valueOf() instead of new Boolean().
6546 2004-03-09 Michael Koch <konqueror@gmx.de>
6548 * java/lang/Thread.java
6549 (runnable): Moved around.
6550 (daemon): Renamed from daemon_flag.
6551 (contextClassLoader): Renamed from context_class_loader.
6552 (Thread): Reordered constructors.
6553 (activeCount): Use group directly.
6554 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6555 (holdsLock): Reworked javadoc.
6556 (setDaemon): Reworked.
6557 * java/lang/natThread.cc
6560 2004-03-08 Anthony Green <green@redhat.com>
6562 * Makefile.am: Build property resource files into libgcj.
6563 * Makefile.in: Rebuilt.
6564 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6565 java/util/regex/PatternSyntaxException.java,
6566 gnu/regexp/CharIndexed.java,
6567 gnu/regexp/CharIndexedCharArray.java,
6568 gnu/regexp/CharIndexedInputStream.java,
6569 gnu/regexp/CharIndexedReader.java,
6570 gnu/regexp/CharIndexedString.java,
6571 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6572 gnu/regexp/REException.java,
6573 gnu/regexp/REFilterInputStream.java,
6574 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6575 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6576 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6577 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6578 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6579 gnu/regexp/RETokenLookAhead.java,
6580 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6581 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6582 gnu/regexp/RETokenStart.java,
6583 gnu/regexp/RETokenWordBoundary.java,
6584 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6586 2004-03-03 Per Bothner <per@bothner.com>
6588 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6589 Optimize when argument is a FileChannelImpl.
6590 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6592 * java/nio/channels/natChannels.cc: New file for new native methods.
6593 * Makefile.am: Update accordingly.
6595 2004-03-02 Jan Hubicka <jh@suse.cz>
6597 * configure.host: Pass -fno-omit-frame-pointer for i386.
6598 * configure.in: Likewise.
6599 * configure: Regenerate.
6601 2004-03-01 Per Bothner <per@bothner.com>
6603 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6605 2004-02-29 Per Bothner <per@bothner.com>
6607 * java/nio/channels/FileChannelImpl.java: Moved to package
6608 gnu/java/nio/channels, since we need to refer to it from java.io.
6609 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6610 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6611 from java/nio/channels. Don't depend on FileDescriptor.
6612 (in, out, err): New static fields.
6614 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6615 from FileDescriptor.
6616 (by): Removed MappedByteBuffer field.
6617 (map): New working implementation.
6618 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6619 some code "ported" from natFileDescriptoPosix.cc.
6620 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6621 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6622 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6623 Remove native methods.
6624 * Makefile.am, configure.in: Updated accordingly.
6626 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6627 (ch): New FileChannelImpl field. Update constructor to match.
6628 (releaseImpl): Remove native method. Instead ...
6629 (release): Call unlock on channel.
6630 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6632 * java/io/natFileDescriptorEcos.cc: Remove file.
6633 * java/io/natFileDescriptorPosix.cc: Remove file.
6634 * java/io/natFileDescriptorWin32.cc: Remove file.
6635 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6636 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6637 (<init>(FileChannelImpl)): New package-private constructor.
6638 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6639 (available, close, read, skip): Implement using FileChannelImpl.
6640 (getFD): Allocate FileDescriptor if needed.
6641 (getChannel): Is now trivial.
6642 * java/io/FileOutputStream.java: Corresponding changes.
6643 * java/io/RandomAccessFile.java: Corresponding changes.
6645 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6646 unmapImpl): New dummy methods, to be overridden by subclass.
6647 (finalize, isLoaded, load, force): New methods.
6648 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
6649 Now works, at least for read mapping.
6651 * java/lang/natPosixProcess.cc (startProcess): Implement standard
6652 streams using FileChannelImpl, not FileDescriptor.
6653 * java/lang/natWin32Process.cc (startProcess): Likewise.
6655 2004-02-28 Michael Koch <konqueror@gmx.de>
6657 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6660 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
6662 * java/io/ObjectInputStream.java
6663 (readClassDescriptor): Keep elements of the mapping non null.
6664 (checkTypeConsistency): New method.
6665 (readFields): Fixed main loop and base logic. Small reindentation.
6666 * java/io/ObjectStreamField.java
6667 (lookupField): New method to update the field reference.
6668 (checkFieldType): New method.
6669 * java/io/ObjectStreamClass.java
6670 (setClass, setFields): Call lookupField when building the field
6671 database. Check the real field type.
6673 2004-02-28 Michael Koch <konqueror@gmx.de>
6675 * java/nio/ByteOrder.java
6676 (nativeOrder): Use equals() to compare strings.
6678 2004-02-26 Michael Koch <konqueror@gmx.de>
6680 * gnu/java/nio/FileLockImpl.java
6681 (finalize): Made protected.
6682 * java/nio/channels/FileChannel.java
6683 (MapMode.READ_ONLY): Made final.
6684 (MapMode.READ_WRITE): Made final.
6685 (MapMode.PRIVATE): Made final.
6686 * java/nio/channels/SocketChannel.java
6687 (open): Simplified code.
6688 * java/nio/channels/spi/AbstractSelectableChannel.java
6689 (registered): Unused, removed.
6690 (keyFor): Check channel is open, only locate key
6691 and not add a new one.
6692 (register): Don't delete attachments.
6694 2004-02-26 Michael Koch <konqueror@gmx.de>
6696 * gnu/java/awt/ComponentDataBlitOp.java
6697 (INSTANCE): Made final.
6698 * gnu/java/awt/image/ImageDecoder.java:
6700 (cm): Unused, removed.
6702 2004-02-26 Michael Koch <konqueror@gmx.de>
6704 * gnu/java/nio/DatagramChannelImpl.java
6705 (send): Check if target address is resolved.
6707 2004-02-26 Michael Koch <konqueror@gmx.de>
6709 * Makefile.am: Generate and install headers for inner classes in
6710 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
6711 * Makefile.in: Regenerated.
6713 2004-02-24 Anthony Green <green@redhat.com>
6715 * java/lang/StringBuffer.java: No need to NULL out remainder of
6716 buffer since ensureCapacity_unsynchronized will have done this for
6719 2004-02-20 Michael Koch <konqueror@gmx.de>
6721 * gnu/java/net/protocol/jar/Handler.java
6722 (): Removed unneeded check for file != null. java.net.URL.getFile()
6723 returns an empty string but never null.
6725 2004-02-20 Michael Koch <konqueror@gmx.de>
6727 * gnu/gcj/convert/Convert.java
6728 (main): Use equals() to compare strings.
6730 2004-02-20 Michael Koch <konqueror@gmx.de>
6732 * javax/swing/AbstractButton.java: Made several constants final.
6733 (getRolloverSelectedIcon): Made public.
6734 (getSelectedIcon): Made public.
6736 2004-02-16 Per Bothner <per@bothner.com>
6738 * java/nio/CharBufferImpl.java: Inline super constructor.
6739 * java/nio/DoubleBufferImpl.java: Likewise.
6740 * java/nio/FloatBufferImpl.java: Likewise.
6741 * java/nio/IntBufferImpl.java: Likewise.
6742 * java/nio/LongBufferImpl.java: Likewise.
6743 * java/nio/ShortBufferImpl.java: Likewise.
6744 * java/nio/CharBuffer.java: Remove unused constructor.
6745 * java/nio/DoubleBuffer.java: Likewise.
6746 * java/nio/FloatBuffer.java: Likewise.
6747 * java/nio/IntBuffer.java: Likewise.
6748 * java/nio/LongBuffer.java: Likewise.
6749 * java/nio/ShortBuffer.java: Likewise.
6750 * java/nio/CharViewBufferImpl.java: New convenience constructor.
6751 Fix buggy call to super constructor.
6752 * java/nio/DoubleViewBufferImpl.java: Likewise.
6753 * java/nio/FloatViewBufferImpl.java: Likewise.
6754 * java/nio/IntViewBufferImpl.java: Likewise.
6755 * java/nio/LongViewBufferImpl.java: Likewise.
6756 * java/nio/ShortViewBufferImpl.java: Likewise.
6758 * java/nio/ByteBuffer.java (endian): Make non-private so other
6759 java.nio classes can inherit it.
6760 (<init>): Don't bother clearing array_offset.
6761 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
6762 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
6763 Remove redundant test.
6765 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
6766 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
6767 Use new XxxViewBufferImpl constructors.
6768 * java/nio/MappedByteBufferImpl.java: Likewise.
6769 * java/nio/DirectByteBufferImpl.java: Likewise.
6771 * java/nio/ByteBufferImpl.java: Remove one constructor.
6772 Inline super in remaining constructor.
6773 * java/nio/ByteBuffer.java: Remove unused constructor.
6775 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
6777 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
6778 * java/nio/DirectByteBufferImpl.java (owner): New field.
6779 (offset): Remove unused field.
6780 (<init>): Modify one and add another constructor. Change callers.
6781 (allocateDirect): Removed - not used.
6782 (getImpl, putImpl): Make static and pass address explicitly,
6783 to make them useful for MappedByteBufferImpl.
6784 (get, put): Check for underflow. Modify for new getImpl.
6785 (getImpl): New native method where target is array.
6786 (get(byte[],int,int)): Use the above.
6787 (adjustAddress): New static native method.
6788 (slice, duplicate, asReadOnly): New implementations.
6789 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
6790 adjustAddress): New or updated native methods.
6792 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
6794 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
6795 overflow of fieldmapping.
6797 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
6799 * javax/swing/undo/UndoManager.java: Re-written from scratch.
6801 2004-02-14 Per Bothner <per@bothner.com>
6803 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
6804 Set closed before calling implCloseChannel, as in the spec.
6806 2004-02-09 Graydon Hoare <graydon@redhat.com>
6808 * javax/swing/ToggleButtonModel.java: Remove dead class.
6809 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
6810 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
6811 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
6812 * Makefile.am: Update for new and removed files.
6813 * Makefile.in: Regenerate.
6815 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
6816 * javax/swing/AbstractButton.java
6817 (AbstractButton): Initialize fields correctly in ctor.
6818 * javax/swing/JCheckbox.java
6819 (JCheckBox): Override painting flags.
6820 * javax/swing/DefaultButtonModel.java: Conform to sun.
6821 * javax/swing/JComponent.java (paint): Fill with background color
6823 (processComponentKeyEvent)
6826 (processMouseMotionEvent): Remove event-consuming empty methods.
6827 (getUIClassID): Return "ComponentUI" not "JComponent"
6828 * javax/swing/JFrame.java: Remove some debugging chatter.
6829 (JFrame): Subscribe to window events.
6830 * javax/swing/JRadioButton.java
6831 (JRadioButton): Override painting flags.
6832 * javax/swing/JRootPane.java
6833 (JRootPane): Set background from UIDefaults.
6834 * javax/swing/JToggleButton.java
6835 (ToggleButtonModel): New inner class.
6836 (JToggleButton): Override layout alighment.
6837 * javax/swing/SwingUtilities.java:
6838 (getLocalBounds): Return width and height, not x and y.
6839 (calculateInnerArea): Use local bounds, not bounds.
6840 (layoutCompoundLabel): Provide overridden form.
6841 (layoutCompoundLabel): Correct bugs.
6842 * javax/swing/UIDefaults.java: Correct comment.
6843 * javax/swing/plaf/basic/BasicButtonUI.java:
6844 Move most logic into defaults, external listener.
6845 (paintIcon): Implement icon painting.
6846 (paint): Fix state painting to conform to changes in model.
6847 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
6848 Remove most dead/wrong methods.
6849 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
6850 * javax/swing/plaf/basic/BasicIconFactory.java:
6851 (DummyIcon): New class.
6852 (getMenuItemCheckIcon)
6853 (getMenuItemArrowIcon)
6855 (getCheckBoxMenuItemIcon)
6856 (getRadioButtonMenuItemIcon)
6857 (createEmptyFrameIcon): Return DummyIcons, not null.
6858 (getCheckBoxIcon): Implement an icon that looks like sun's.
6859 (getRadioButtonIcon): Implement an icon that looks like sun's.
6860 * javax/swing/plaf/basic/BasicLookAndFeel.java
6861 (initComponentDefaults): Fix impossible values, add some missing.
6862 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
6863 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
6864 Remove most dead/wrong methods.
6866 (getDefaultIcon): New method.
6867 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
6868 Remove most dead/wrong methods.
6869 * javax/swing/plaf/metal/MetalLookAndFeel.java
6870 (getDefaults): Return super.getDefaults(), not BasicDefaults.
6871 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6872 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
6873 Implement "clearing" as drawing, when on pixmap drawables.
6875 * javax/swing/JButton.java (getUIClassID):
6876 * javax/swing/JCheckBox.java (getUIClassID):
6877 * javax/swing/JEditorPane.java (getUIClassID):
6878 * javax/swing/JLabel.java (getUIClassID):
6879 * javax/swing/JList.java (getUIClassID):
6880 * javax/swing/JOptionPane.java (getUIClassID):
6881 * javax/swing/JPanel.java (getUIClassID):
6882 * javax/swing/JPasswordField.java (uiClassID):
6883 * javax/swing/JRadioButton.java (getUIClassID):
6884 * javax/swing/JRootPane.java (getUIClassID):
6885 * javax/swing/JScrollPane.java (getUIClassID):
6886 * javax/swing/JTabbedPane.java (getUIClassID):
6887 * javax/swing/JToggleButton.java (getUIClassID):
6888 * javax/swing/JTree.java (getUIClassID):
6889 * javax/swing/JViewport.java (getUIClassID):
6890 * javax/swing/text/JTextComponent.java (getUIClassID):
6891 Return "fooUI" not "Jfoo"
6893 2004-02-11 Michael Koch <konqueror@gmx.de>
6895 * java/net/DatagramSocket.java
6896 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
6898 (setBroadcast): Likewise.
6899 * java/net/MulticastSocket.java
6900 (setLoopbackMode): Likewise.
6901 * java/net/ServerSocket.java
6902 (setReuseAddress): Likewise.
6903 * java/net/Socket.java
6904 (setTcpNoDelay): Likewise.
6905 (setSoLinger): Likewise.
6906 (setOOBInline): Likewise.
6907 (setKeepAlive): Likewise.
6908 (setReuseAddress): Likewise.
6909 * java/net/URLConnection.java
6910 (setContentHandler): Replace == with equals().
6911 * java/net/URLStreamHandler.java
6912 (hostSEquals): Fix checking host addresses.
6913 (toExternalForm): Dont check protocol for null. We know already its
6916 2004-02-10 David Jee <djee@redhat.com>
6918 * java/awt/BorderLayout.java
6919 (calcCompSize): Invisible components get zero dimensions.
6920 * java/awt/Button.java
6921 (setLabel): Set actionCommand.
6922 * java/awt/Component.java
6923 (show): Invalidate component and parent container.
6926 2004-02-10 David Jee <djee@redhat.com>
6928 * java/awt/GridBagLayout.java
6929 (GridBagLayout): New private field, internalcomptable.
6930 (lookupInternalConstraints): New method.
6931 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
6932 (GetLayoutInfo): Reimplement.
6933 (calcCellSizes): Ignore rows/columns with size 0.
6935 2004-02-10 Michael Koch <konqueror@gmx.de>
6937 * gnu/java/awt/EmbeddedWindow.java
6938 (setHandle): Use java.awt.Component.getPeer() instead of
6939 java.awt.Component.peer directly.
6941 2004-02-10 David Jee <djee@redhat.com>
6943 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6944 (gtkSetLabel): New native method definition.
6945 (setLabel): Use gtkSetLabel.
6946 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6947 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
6949 2004-02-10 Alan Modra <amodra@bigpond.net.au>
6951 * include/powerpc-signal.h: Revert 2004-01-21 change.
6952 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
6953 from syscall for ppc32 versions.
6955 2004-02-08 Per Bothner <per@bothner.com>
6957 * java/nio/ByteBuffer.java (shiftDown): New helper method.
6958 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
6959 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
6960 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
6961 Pass ByteOrder parameter to most methods, since the underlying
6962 ByteBuffer's order isn't always what we should use.
6963 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
6964 * java/nio/DirectByteBufferImpl.java: Likewise.
6965 Use ByteBufferHelper methods.
6966 * java/nio/MappedByteBufferImpl.java: Likewise.
6967 (compact): Use shiftDown.
6968 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
6969 (get, put): Use ByteBufferHelper.
6970 (compact): Use new shiftDown method.
6971 (duplicate(boolean)): New helper method.
6972 (duplicate, asReadOnlyBuffer): Use it.
6973 (order): Return endian field.
6974 * java/nio/DoubleViewBufferImpl.java: Likewise.
6975 * java/nio/FloatViewBufferImpl.java: Likewise.
6976 * java/nio/IntViewBufferImpl.java: Likewise.
6977 * java/nio/LongViewBufferImpl.java: Likewise.
6978 * java/nio/ShortViewBufferImpl.java: Likewise.
6979 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
6980 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
6981 (compact): Re-implement using shiftDown.
6983 2004-02-08 Andreas Jaeger <aj@suse.de>
6985 * include/x86_64-signal.h: Fix typo.
6987 2004-02-08 Diego Novillo <dnovillo@redhat.com>
6989 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
6991 (HANDLE_DIVIDE_OVERFLOW): Likewise.
6993 2004-02-06 Michael Koch <konqueror@gmx.de>
6995 * java/io/ObjectInputStream.java
6996 (currentClassLoader): Reverted to old version of this method.
6998 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7000 * java/io/ObjectInputStream.java: Made all calls
7001 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7002 use cached info from ObjectStreamClass. (readClassDescriptor):
7003 Cache more information in ObjectStreamClass. (processResolution,
7004 readFields): Use cached info from ObjectStreamClass.
7005 (newObject): Throw exception instead of returning null for failure.
7006 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7007 setCharField, setDoubleField, setFloatField, setIntField,
7008 setLongField, setShortField, setObjectField, readObjectParams):
7009 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7011 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7012 (setClass): Added call to cacheMethods() (findMethod): New method.
7013 (cacheMethods): New method. (ObjectStreamClass): Added call to
7014 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7015 AccessController.doPrivileged to invoke setAccessible.
7016 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7017 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7019 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7020 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7021 isPrimitive): Made safe for cases where type == null.
7022 (setBooleanField, setByteField, setCharField, setShortField,
7023 setIntField, setLongField, setFloatField, setDoubleField,
7024 setObjectField): New methods.
7026 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7028 * java/awt/Component.java (getFont): Return a default font
7031 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7032 (Scrollbar (int, int, int, int, int)): Make default page
7034 (setValues): Only call peer.setValues if one of the values has
7036 (generateName): New method.
7037 (getUniqueLong): New method.
7038 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7039 (range_scrollbar): Remove structure.
7040 (post_adjustment_event): Remove function.
7041 (post_change_event): Accept jobject argument.
7042 (create): Cast jints to gdoubles. Round scrollbar values to the
7043 nearest integer. Clamp min, max and value settings.
7044 (connectJObject): Connect hook to widget->window.
7045 (connectSignals): Remove range_scrollbar structure variables.
7046 Remove "move-slider" connection. Pass global peer reference to
7047 "value-changed" callback.
7048 (setLineIncrement): Cast jint value to gdouble.
7049 (setPageIncrement): Likewise.
7050 (setValues): Likewise. Clamp min, max and value settings.
7052 2004-02-05 Michael Koch <konqueror@gmx.de>
7054 * javax/swing/AbstractCellEditor.java
7055 (getCellEditorValue): Removed.
7056 * javax/swing/Box.java: Reformated.
7057 (serialVersionUID): New field.
7058 * javax/swing/ButtonGroup.java:
7059 Removed some weird whitespace.
7060 * javax/swing/CellEditor.java: Reformated.
7061 * javax/swing/CellRendererPane.java
7062 (serialVersionUID): New field.
7063 (AccessibleCellRendererPaneserialVersionUID): New field.
7064 * javax/swing/DefaultListModel.java
7065 (serialVersionUID): New field.
7066 * javax/swing/JEditorPane.java
7067 (serialVersionUID): New field.
7068 (setPage): Throws IOException.
7069 (addHyperlinkListener): Implemented.
7070 (removeHyperlinkListener): Implemented.
7071 (getHyperlinkListener): New method.
7072 * javax/swing/JFileChooser.java
7073 (serialVersionUID): New field.
7074 (AccessibleJFileChooser.serialVersionUID): New field.
7075 (addActionListener): Implemented.
7076 (removeActionListener): Implemented.
7077 (getActionListeners): New method.
7078 * javax/swing/JFormattedTextField.java
7079 (serialVersionUID): New field.
7080 (AbstractFormatter.serialVersionUID): New field.
7081 (clone): Throws CloneNotSupportedException
7082 (setEditValid): Add missing argument.
7083 (stringToValue): Throws ParseExcpetion.
7084 (valueToString): Throws ParseException.
7085 (commitEdit): Throws ParseException.
7086 * javax/swing/JLabel.java
7087 (serialVersionUID): New field.
7088 * javax/swing/JList.java
7089 (serialVersionUID): New field.
7090 (addListSelectionListener): Reformated.
7091 (removeListSelectionListener): Reformated.
7092 (getListSelectionListeners): New method.
7093 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7095 (serialVersionUID): New field.
7096 * javax/swing/table/AbstractTableModel.java
7097 (getValueAt): Removed.
7098 (getColumnCount): Removed.
7099 (getRowCount): Removed.
7101 2004-02-05 Michael Koch <konqueror@gmx.de>
7103 * java/awt/datatransfer/DataFlavor.java
7104 (imageFlavor): Javadoc added.
7105 (javaJVMLocalObjectType): Fixed.
7107 2004-02-05 Michael Koch <konqueror@gmx.de>
7109 * java/lang/Thread.java
7110 (Thread): Reordered.
7111 (setContextClassLoader): Fixed javadoc comment.
7112 (setPriority): Reordered.
7114 (initialize_native): Reordered.
7115 (gen_name): Reordered.
7117 2004-02-05 Michael Koch <konqueror@gmx.de>
7119 * java/lang/Thread.java: Reordered fields, reformated much code,
7120 no functional changes, some variables renamed, javadoc comments
7123 2004-02-05 Michael Koch <konqueror@gmx.de>
7125 * java/util/zip/Deflater.java,
7126 java/util/zip/DeflaterOutputStream.java,
7127 java/util/zip/GZIPInputStream.java:
7128 Reformated and javadoc comments merged from classpath.
7130 2004-02-05 Michael Koch <konqueror@gmx.de>
7132 * gnu/java/nio/NIOServerSocket.java
7133 (impl): Unused, removed.
7134 * gnu/java/nio/SocketChannelImpl.java
7135 (finnishConnect): Don't throw NoConnectionPendingException if not
7136 connected or no connection pending.
7138 2004-02-02 Graydon Hoare <graydon@redhat.com>
7140 * javax/swing/SwingUtilities.java: Many new functions.
7141 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7142 * javax/swing/basic/BasicGraphicsUtils.java
7143 (getPreferredButtonSize): Start layout from top-left corner.
7145 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7147 * java/awt/geom/AffineTransform.java:
7148 Corrected comments on the field definitions for
7150 (shear): Fixed few errors that caused shear
7151 transformation to be performed incorrectly.
7152 (createInverse): Fixed to return correct
7153 inverse of the given matrix.
7155 2004-02-03 Tom Tromey <tromey@redhat.com>
7157 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7158 PATH or LD_LIBRARY_PATH is not set in parent environment.
7160 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7162 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7163 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7164 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7165 java/awt/Component.java, java/awt/Container.java,
7166 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7167 java/awt/LayoutManager2.java, java/awt/List.java,
7168 java/awt/Menu.java, java/awt/MenuBar.java,
7169 java/awt/MenuItem.java, java/awt/Polygon.java,
7170 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7171 java/awt/Scrollbar.java, java/awt/TextArea.java,
7172 java/awt/TextField.java,
7173 java/awt/image/renderable/RenderContext.java,
7174 javax/swing/JApplet.java: Fix handling of alias methods, where a
7175 method has been deprecated in favour of a new one with the same
7176 funtion but a different name. Put the method implementation in
7177 the deprecated method and have the new method call the
7178 deprecated one. Make all other code call the new method.
7180 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7182 * gnu/java/nio/DatagramChannelImpl.java
7183 (inChannelOperation): New field.
7184 (isInChannelOperation): New accessor.
7185 (setInChannelOperation): New modifier.
7186 (receive): Use capacity() - position() of destination
7187 buffer instead of remaining(). Set and reset our "in
7188 channel operation indicator" before and after delegating
7189 the receive to our datagram socket. Removed testing code.
7190 Update destination buffer's current position if it is
7191 backed by a byte array (hasArray() is true).
7192 (send): Set and reset our "in channel operation indicator"
7193 before and after delegating the send to our datagram socket.
7194 Removed testing code. Update source buffer's current position
7195 if it is backed by a byte array (hasArray() is true).
7196 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7197 Use capacity() - position() of destination buffer instead
7199 * java/net/DatagramSocket.java (receive): Don't throw an
7200 IllegalBlockingModeException if we have a non-blocking
7201 channel which initiated this operation.
7204 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7206 * configure.in: Add pkgconfig check for glib and gthread.
7207 * configure: Regenerate.
7209 2004-02-01 Michael Koch <konqueror@gmx.de>
7211 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7213 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7214 * verify.cc (debug_print): Mark 'fmt' unused.
7216 2004-01-30 Michael Koch <konqueror@gmx.de>
7218 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7219 * configure: Regenerated.
7220 * glib-2.0.m4: Removed.
7221 * gtk-2.0.m4: Removed.
7222 * libart.m4: Removed.
7225 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7227 * gnu/java/net/PlainSocketImpl.java
7228 (inChannelOperation): New field.
7229 (isInChannelOperation): New accessor.
7230 (setInChannelOperation): New modifier.
7231 * gnu/java/nio/ServerSocketChannelImpl.java
7232 (accept): Set and reset our server socket's PlainSocketImpl's
7233 "in channel operation" indicator before and after delegating
7234 the accept to our server socket.
7235 * gnu/java/nio/SocketChannelImpl.java
7236 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7237 operation" indicator before and after delegating the operation to
7241 * java/net/ServerSocket.java (implAccept): Don't throw an
7242 IllegalBlockingModeException if we have a non-blocking
7243 channel which initiated this accept operation.
7244 * java/net/Socket.java (connect): Don't throw an
7245 IllegalBlockingModeException if we have a non-blocking
7246 channel which initiated this connect operation.
7247 * java/nio/channels/spi/AbstractSelectableChannel.java
7248 (configureBlocking): Only call implConfigureBlocking() if
7249 the desired blocking mode is different from our current one.
7251 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7253 * java/io/BufferedReader.java (sbuf): New field.
7254 (readLine): Use String.valueOf instead of new String() as per
7255 Per Bothner's suggestion. Use instance sbuf field instead of a
7256 local StringBuffer instance.
7257 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7258 caller's buffer to refill().
7259 (read(void)): Pass our internal work buffer to refill if our
7260 input queue is empty.
7261 (refill): Changed return type to int. Use the specified buffer
7262 instead of our work buffer as per Bryce McKinlay's suggestion.
7263 Return the number of characters read or -1 for EOF.
7265 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7267 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7269 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7271 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7272 * Makefile.in: Re-generated.
7273 * gnu/awt/xlib/XFontPeer.java: New file.
7274 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7275 (setClip): Commented out debug printout.
7276 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7277 (getFontPeer): Return XFontPeer.
7278 (getLocalGraphicsEnvironment): New method.
7279 (getClasspathFontPeer): New method.
7280 (createFont): New method.
7282 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7284 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7287 2004-01-29 Kim Ho <kho@redhat.com>
7289 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7290 (gtkLayoutSetVisible): New method
7291 (setMenuBar): Hide layout before setting MenuBar
7292 and reshow it after.
7293 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7294 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7296 2004-01-28 Michael Koch <konqueror@gmx.de>
7298 * gnu/java/lang/ClassHelper.java
7299 (getPackagePortion): Removed.
7301 2004-01-28 Michael Koch <konqueror@gmx.de>
7303 * javax/swing/JComponent.java
7304 (listenerList): Initalize globally.
7305 (ancestor_list): Removed.
7306 (veto_list): Removed.
7307 (change_list): Removed.
7308 (get_veto_list): Removed.
7309 (get_change_list): Removed.
7310 (get_ancestor_list): Removed.
7311 (removeAncestorListener): Reimplemented.
7312 (removePropertyChangeListener): Likewise.
7313 (removeVetoableChangeListener): Likewise.
7314 (addAncestorListener): Likewise.
7315 (addPropertyChangeListener): Likewise.
7316 (addVetoableChangeListener): Likewise.
7317 (getListeners): New method.
7318 (getAncestorListeners): Likewise.
7319 (getVetoableChangeListeners): Likewise.
7320 (fireVetoableChange): Throws PropertyVetoException.
7321 * javax/swing/JEditorPane.java
7322 (JEditorPane): Throws IOException.
7324 2004-01-28 David Jee <djee@redhat.com>
7326 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7327 (create): Set the default foreground color to
7328 java.awt.SystemColor.windowText.
7330 2004-01-27 Michael Koch <konqueror@gmx.de>
7332 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7333 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7334 Reindented to merge with classpath.
7336 2004-01-27 David Jee <djee@redhat.com>
7338 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7339 (addExposeFilter): Handle GtkFramePeer separately.
7340 (removeExposeFilter): Likewise.
7342 2004-01-27 Michael Koch <konqueror@gmx.de>
7344 * gnu/java/net/protocol/http/Connection.java
7345 (getOutputStream): Fixed typo.
7347 2004-01-27 Michael Koch <konqueror@gmx.de>
7349 * java/lang/Class.java
7350 (getConstructor): Removed SecurityException from throws clause.
7351 (_getConstructors): Likewise.
7352 (getConstructors): Likewise.
7353 (getDeclaredConstructor): Likewise.
7354 (getDeclaredClasses): Likewise.
7355 (getDeclaredConstructors): Likewise.
7356 (getDeclaredField): Likewise.
7357 (getDeclaredMethod): Likewise.
7358 (getDeclaredMethods): Likewise.
7359 (getField): Likewise.
7360 (getMethod): Likewise.
7361 (getMethods): Likewise.
7363 2004-01-27 Kim Ho <kho@redhat.com>
7365 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7366 (removeMenuBarPeer): Remove MenuBarPeer argument.
7367 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7368 (dispose): Call native method.
7369 * java/awt/Frame.java (setMenuBar): Create and remove
7370 MenuBar peers only if the Frame has a peer.
7371 (addNotify): Create the MenuBar peer if one exists.
7372 (removeNotify): Remove MenuBar peer if one exists.
7373 * java/awt/Menu.java: Fix imports.
7374 (addNotify): Don't use full class name.
7375 (removeNotify): Call removeNotify on all children.
7376 * java/awt/MenuBar.java (removeNotify): Call
7377 removeNotify on all children.
7378 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7379 (removeMenuBarPeer): Remove MenuBarPeer argument.
7380 Iterate through children to find the Frame's MenuBar.
7381 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7383 (dispose): Remove references to the MenuComponent.
7385 2004-01-27 Michael Koch <konqueror@gmx.de>
7387 * javax/swing/AbstractCellEditor.java: Reformated.
7388 * javax/swing/DefaultListSelectionModel.java
7389 (listenerList): Made protected.
7390 (addListSelectionListener): Javadoc added.
7391 (removeListSelectionListener): Likewise.
7392 (getListeners): Likewise.
7393 (getListSelectionListeners): Likewise.
7394 * javax/swing/JComboBox.java: Merged copyright year.
7395 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7397 2004-01-26 Andrew Haley <aph@redhat.com>
7399 * javax/swing/table/JTableHeader.java: Extend JComponent
7401 2004-01-26 Kim Ho <kho@redhat.com>
7403 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7406 2004-01-26 Kim Ho <kho@redhat.com>
7408 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7410 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7411 height and let the Layout Managers readjust anything that
7413 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7414 (moveLayout): New method. Shift everything in the Gtk
7415 layout in the Y direction by an offset.
7417 2004-01-26 David Jee <djee@redhat.com>
7419 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7420 (handleEvent): Implemented. Handles PaintEvents.
7421 (paint): Implemented. Use GTK native methods to queue updates
7422 for this heavyweight peer.
7423 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7424 (handleEvent): Removed.
7425 * java/awt/Component.java
7426 (paint): Implemented. Explictly paint the heavyweight peer.
7427 (update): Clear the background for heavyweight components.
7428 (paintAll): No need to call peer.paint() anymore.
7429 (processEvent): Don't process PaintEvents here. It's now done in
7430 the peer's handleEvent().
7431 (processPaintEvent): Removed.
7432 * java/awt/Container.java
7433 (paint): No need to call super.paint(). Visit heavyweight
7435 (update): Don't clear the background here. It's done in
7437 (visitChildren): Added check to not recurse into Containers.
7438 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7439 (filter_expose_event_handler): New method. Filter unwanted
7440 expose events while painting heavyweight peers.
7441 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7442 New method. Connect filter and block pre_event_handler.
7443 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7444 New method. Disconnect filter and unblock pre_event_handler.
7445 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7446 New method. Invalidate and update given area.
7447 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7448 (pre_event_handler): Add checks for unwanted expose events.
7450 2004-01-26 David Jee <djee@redhat.com>
7452 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7453 (find_bg_color_widget): For GtkButton, return its child.
7455 2004-01-26 Kim Ho <kho@redhat.com>
7457 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7459 (setMenuBar): Grab MenuBar height and change insets.
7460 (setBounds): Account for MenuBar height.
7461 (postInsetsChangedEvent): Ditto.
7462 (postSizeAllocateEvent): Remove.
7463 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7464 (menubar_resize_cb): Remove
7465 (setMenuBarPeer): Remove callback.
7466 (getMenuBarHeight): Use size requisition instead of
7469 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7471 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7472 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7474 (setColumns): Remove FIXME -- peer will retrieve number of
7475 columns by calling getColumns.
7476 (setRows): Likewise for number of rows.
7477 (next_text_number): New field.
7478 (paramString): Fix param string.
7479 (generateName): New method.
7480 (getUniqueLong): New method.
7482 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7484 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7485 image observer of image loading status.
7486 (getImage (String)): Start image production.
7487 (getImage (URL)): Likewise.
7489 2004-01-25 Michael Koch <konqueror@gmx.de>
7491 * java/lang/Class.java: Imports reworked, reformated.
7492 (Class): Javadoc added.
7493 (forName): Likewise.
7494 (getClasses): Likewise.
7495 (getClassLoader): Likewise.
7496 (getComponentType): Likewise.
7497 (getConstructor): Likewise.
7498 (getConstructors): Likewise.
7499 (getDeclaredConstructor): Likewise.
7500 (getDeclaredClasses): Likewise.
7501 (getDeclaredConstructors): Likewise.
7502 (getDeclaredField): Likewise.
7503 (getDeclaredMethod): Likewise.
7504 (getDeclaredMethods): Likewise.
7505 (getDeclaringClass): Likewise.
7506 (getField): Likewise.
7507 (getInterfaces): Likewise.
7508 (getMethod): Likewise.
7509 (getMethods): Likewise.
7510 (getModifiers): Likewise.
7511 (getName): Likewise.
7512 (getResource): Likewise.
7513 (getResourceAsStream): Likewise.
7514 (getSigners): Likewise.
7515 (setSigners): Likewise.
7516 (getSuperclass): Likewise.
7517 (isArray): Likewise.
7518 (isAssignableFrom): Likewise.
7519 (isInstance): Likewise.
7520 (isInterface): Likewise.
7521 (isPrimitive): Likewise.
7522 (newInstance): Likewise.
7523 (getProtectionDomain): Likewise.
7524 (toString): Likewise.
7526 (initializeClass): Likewise.
7527 (finalize): Likewise.
7529 2004-01-24 Michael Koch <konqueror@gmx.de>
7531 * gnu/java/net/protocol/jar/Connection.java
7534 (gotHeaders): Removed.
7535 (getHeaderField): Removed.
7536 (getHeaderFields): Removed.
7537 (getHeaderFieldKey): Removed.
7539 (getField): Removed.
7540 (getHeaders): Removed.
7542 2004-01-24 Michael Koch <konqueror@gmx.de>
7544 * Makefile.am: Added library version to gtk peer lib.
7545 * Makefile.in: Regenerated.
7547 2004-01-24 Michael Koch <konqueror@gmx.de>
7549 * java/util/zip/InflaterInputStream.java: Merged class documentation
7552 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7554 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7555 header. For __powerpc64__ provide the default-signal.h definitions
7557 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7558 instead of the dummy definitions.
7559 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7560 (powerpc64*-*): Remove with_libffi_default.
7561 Only add -mminimal-toc for 64-bit compilations.
7562 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7563 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7564 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7565 * configure: Rebuilt.
7567 2004-01-23 Michael Koch <konqueror@gmx.de>
7569 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7571 2004-01-23 Michael Koch <konqueror@gmx.de>
7573 * java/lang/VMClassLoader.java: Reworked imports.
7575 2004-01-23 Michael Koch <konqueror@gmx.de>
7577 * javax/swing/AbstractAction.java: Reformated.
7579 2004-01-23 Michael Koch <konqueror@gmx.de>
7581 * java/text/CollationElementIterator.java:
7582 (setText): New method.
7584 2004-01-23 Michael Koch <konqueror@gmx.de>
7586 * gnu/java/nio/FileLockImpl.java:
7587 Fixed filename in copyright.
7588 (released): Removed.
7589 (finalize): New method.
7590 * gnu/java/nio/natFileLockImpl.cc
7591 (releaseImpl): Implemented.
7592 * java/nio/channels/FileChannelImpl.java:
7594 (lock): Implemented.
7595 (lockImpl): New method.
7596 (tryLock): Implemented.
7597 (tryLockImpl): New method.
7598 * java/nio/channels/natFileChannelImpl.cc
7599 (lockImpl): New method.
7600 (tryLockImpl): New method.
7602 2004-01-23 Michael Koch <konqueror@gmx.de>
7604 * java/io/FileDescriptor.java
7606 (tryLock): New method.
7607 (unlock): New method.
7608 * java/io/natFileDescriptorEcos.cc
7610 (tryLock): New method.
7611 (unlock): New method.
7612 * java/io/natFileDescriptorPosix.cc
7614 (tryLock): New method.
7615 (unlock): New method.
7616 * java/io/natFileDescriptorWin32.cc
7618 (tryLock): New method.
7619 (unlock): New method.
7621 2004-01-23 Michael Koch <konqueror@gmx.de>
7623 * java/io/FileDescriptor.java
7624 (sync): Moved around, added javadoc.
7629 (setLength): Likewise.
7631 (getLength): Likewise.
7632 (getFilePointer): Likewise.
7634 (available): Likewise.
7635 (finalize): Likewise.
7637 2004-01-23 Michael Koch <konqueror@gmx.de>
7639 * javax/swing/AbstractAction.java: Reformated.
7640 (getPropertyChangeListeners): New method.
7641 * javax/swing/AbstractCellEditor.java: Reformated.
7642 (getCellEditorListeners): New method.
7643 * javax/swing/DefaultListSelectionModel.java
7644 (listenerList): New field.
7645 (listeners): Removed.
7646 (get_listeners): Removed.
7647 (addListSelectionListener): Rewritten.
7648 (removeListSelectionListener): Rewritten.
7649 (getListSelectionListeners): New method.
7650 (getListeners): New method.
7651 * javax/swing/JComboBox.java: Imports reworked.
7652 (addActionListener): Implemented.
7653 (removeActionListener): Implemented.
7654 (addItemListener): Implemented.
7655 (removeItemListener): Implemented.
7656 (addPopupMenuListener): Implemented.
7657 (removePopupMenuListener): Implemented.
7658 (getActionListeners): New method.
7659 (getItemListeners): New method.
7660 (getPopupMenuListeners): New method.
7662 2004-01-23 Michael Koch <konqueror@gmx.de>
7664 * gnu/java/net/protocol/http/Connection.java
7665 (connect): Don't initialize bufferedOutputStream if not needed.
7666 (sendRequest): Set property for content length if content is present.
7667 Write content only if present.
7668 (getOutputStream): Check if already connected, dont connect,
7669 initalize bufferedOutputStream if needed.
7671 2004-01-23 Michael Koch <konqueror@gmx.de>
7673 * java/io/FileDescriptor.java
7674 (in, out, err): Added javadoc.
7675 (static): Merged loading code.
7676 (fd, position): Moved around.
7678 2004-01-23 Michael Koch <konqueror@gmx.de>
7680 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
7683 2004-01-23 Michael Koch <konqueror@gmx.de>
7685 * java/lang/Class.java,
7686 java/lang/Object.java,
7687 java/lang/Thread.java: Merged copyright with classpath.
7689 2004-01-23 Michael Koch <konqueror@gmx.de>
7691 * java/io/FileDescriptor.java: Merged copyright with classpath to
7692 start merging this class.
7694 2004-01-22 Tom Tromey <tromey@redhat.com>
7697 * testsuite/libjava.lang/pr13107_2.xfail: New file.
7698 * testsuite/libjava.lang/pr13107_3.xfail: New file.
7699 * testsuite/libjava.lang/pr13107_3.java: New file.
7700 * testsuite/libjava.lang/pr13107_3.out: New file.
7701 * testsuite/libjava.lang/pr13107_2.java: New file.
7702 * testsuite/libjava.lang/pr13107_2.out: New file.
7703 * testsuite/libjava.lang/pr13107.java: New file.
7704 * testsuite/libjava.lang/pr13107.out: New file.
7705 * verify.cc (jsr_ptrs): Removed.
7706 (entry_points): Likewise.
7707 (struct subr_info): Likewise.
7708 (struct subr_entry_info): Likewise.
7709 (type_val::unused_by_subroutine_type): Likewise.
7710 (type::merge): Don't handle unused_by_subroutine_type.
7711 (type::print): Likewise.
7712 (state::flags): Removed.
7713 (state::subroutine): Likewise.
7714 (state::seen_subrs): Likewise.
7715 (state::NO_STACK): Likewise.
7716 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
7717 (state): Updated all methods.
7718 (state::clean_subrs): Removed.
7719 (state::state): Removed `ret_semantics' flag.
7720 (state::copy): Likewise.
7721 (state::add_subr): Removed.
7722 (state::enter_subroutine): Likewise.
7723 (type::set_return_address): New method.
7724 (handle_jsr_insn): Set return address on the type. Always
7725 invalidate PC after call.
7726 (check_nonrecursive_call): Removed.
7727 (~_Jv_BytecodeVerifier): Updated.
7728 (branch_prepass): Removed special handling of jsr.
7729 (note_branch_target): Likewise.
7730 (get_subroutine): Removed.
7731 (state::merge): Don't merge subroutines and don't handle
7732 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
7733 (state::note_variable): Removed.
7734 (state::is_unmerged_ret_state): Likewise.
7735 (state::print): Updated.
7736 (set_variable): Likewise.
7737 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
7738 and jsr_semantics arguments. Updated for new reverification
7740 (pop_jump): Rewrote.
7741 (construct_primitive_array_type): Updated.
7742 (state::next): Removed.
7743 (INVALID_STATE): New define.
7744 (state::INVALID): Removed.
7745 (state::NO_NEXT): New value.
7746 (state::pc, state::next): New fields.
7747 (state::get_pc): New method.
7748 (next_verify_pc): Removed.
7749 (next_verify_state): New field.
7750 (verify_instructions_0): Always check for falling off end.
7752 (linked_utf8): Removed.
7753 (states): Changed type.
7754 (type::state_mergeable_p): New method.
7755 (state::state_mergeable_p): Likewise.
7756 (handle_ret_insn): Removed most code.
7757 (state::reverify): New method.
7758 (add_new_state): Likewise.
7759 (state::set_pc): Likewise.
7761 2004-01-22 Jeff Sturm <jsturm@one-point.com>
7764 * testsuite/libjava.compile/PR13733.java: New file.
7765 * testsuite/libjava.compile/PR13733.xfail: New file.
7767 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
7768 Michael Koch <konqueror@gmx.de>
7770 * javax/swing/table/DefaultTableCellRenderer.java
7771 (DefaultTableCellRenderer): Added javadoc for the class and for
7772 the constructor, Border instance, create an EmptyBorder.
7773 (UIResource): Removed the comment at the end of the class
7774 (setForeground): New method.
7775 (setBackground): New method.
7776 (updateUI): New method.
7777 (getTableCellRendererComponent): Rewritten with the help of
7778 dvholten and Stephane Meslin-Weber.
7779 (validate): New method.
7780 (repaint): New method.
7781 (firePropertyChange): New method.
7782 (setValue): New method.
7784 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7786 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7787 (connectJObject): Replace printf calls with g_assert statements.
7788 Move property-notify-event signal connection to ...
7789 (connectSignals): Connect property-notify-event signal. Iterate
7790 through the vbox's children to find layout.
7792 2004-01-22 Graydon Hoare <graydon@redhat.com>
7794 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
7795 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7796 Predicate static initialization on GtkToolkit.useGraphics2D().
7797 * java/awt/Component.java (processPaintEvent): Consume event.
7798 * javax/swing/AbstractButton.java: Reimplement, document.
7799 * javax/swing/DefaultButtonModel.java: Reimplement, document.
7800 * javax/swing/JComponent.java (paint): Use double buffer.
7801 (listenerList): Enable member.
7802 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
7803 * javax/swing/JToggleButton.java
7804 (JToggleButton): Modify model constructor.
7805 * javax/swing/SwingUtilities.java
7806 (layoutCompoundLabel): Adjust arithmetic.
7807 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
7808 * javax/swing/plaf/basic/BasicGraphicsUtils.java
7809 (getPreferredButtonSize): Include margins in calculation.
7810 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7811 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
7812 Receive up events from subordinate layout component.
7814 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
7816 * java/awt/Component.java (show): Set visible to true before
7819 2004-01-21 Kim Ho <kho@redhat.com>
7821 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
7823 (removeMenuBarPeer): Make package private.
7824 (setMenuBarPeer): Make package private.
7825 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7826 (menubar_resize_cb): Mark attributes unused.
7827 (getMenuBarHeight): ditto.
7829 2004-01-21 David Jee <djee@redhat.com>
7831 * java/awt/Container.java
7832 (LightweightDispatcher.handleEvent): Add an extra check to avoid
7833 dispatching MOUSE_ENTERED event twice. Translate the point for
7834 the mouse event target before dispatching the event.
7836 2004-01-20 Jakub Jelinek <jakub@redhat.com>
7838 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
7839 lib_org_w3c_dom_la_LDFLAGS): New.
7840 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
7841 * Makefile.in: Rebuilt.
7843 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
7845 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
7846 Calculate proper offsets for heavyweight components packed in
7847 lightweight containers.
7849 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
7850 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
7851 (native create): Add width parameter.
7852 (create): Calculate text entry width based on current font's
7853 metrics and number of columns. Set TextField's font if not
7854 already set. Call native create.
7855 (gtkEntryGetBorderWidth): New native method.
7856 (gtkEntryGetSize): Remove method.
7857 (getMinimumSize): Call minimumSize.
7858 (getPreferredSize): Call preferredSize.
7859 (minimumSize): Calculate minimum size based on backing
7860 GtkEntry's borders, font metrics and number of columns.
7861 (preferredSize): Likewise for preferred size.
7862 (get_border_width): New static function.
7864 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
7865 Override GtkWindowPeer's setResizable method to account for menu
7866 bar height when setting the frame's size.
7868 2004-01-19 Matthias Klose <doko@debian.org>
7870 * libtool-version: Increased `current' to 6.
7872 2004-01-19 Kim Ho <kho@redhat.com>
7874 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7875 (connectJObject): Iterate through the vbox's children to find layout.
7877 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7879 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
7880 isDispatchThread method to replace wrong test condition.
7882 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7884 * java/awt/EventQueue.java (pop): Prevent racing condition to add
7885 events to the queue out of order by acquiring locks in the proper
7886 order and not by releasing one before acquiring the other.
7888 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7890 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
7891 visible so that dialog can be reused.
7893 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7895 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
7896 events may be handled by any queue in the stack.
7898 2004-01-19 Kim Ho <kho@redhat.com>
7900 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
7901 MenuBarPeer parameter.
7902 (removeMenuBarPeer): New native method.
7903 (setMenuBar): Call remove if menu bar is null. Adjust insets
7905 (postSizeAllocateEvent): New method. Called when menu bar size is
7906 allocated. Adjust insets and redo layout.
7907 (GtkFramePeer): Set menu bar during frame creation.
7908 (postConfigureEvent): Adjust position and size to accomodate
7910 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
7911 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
7912 (addNotify): Create the peer if it doesn't exist and call addNotify
7913 for the menu's items.
7914 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
7915 * java/awt/MenuItem.java (addNotify): Create the peer if it
7917 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7918 (removeMenuBarPeer): New method. Remove menu bar on the current
7920 (setMenuBarPeer): Add the menu bar to the current frame and the
7921 callback for size-allocate events on the menu bar.
7922 (getMenuBarHeight): Add menu bar parameter.
7923 (menubar_resize_cb): New callback method for postSizeAllocate events.
7925 Also: Fix indentation on last ChangeLog entry.
7927 2004-01-16 Kim Ho <kho@redhat.com>
7929 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
7930 (gtkWidgetGetDimensions): Remove.
7931 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7932 (gtkWidgetGetDimensions): Remove.
7934 2004-01-16 Tom Tromey <tromey@redhat.com>
7936 * java/awt/Container.java: Typo and indentation fixes.
7938 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
7939 * java/lang/natVMClassLoader.cc: ...here. New file.
7940 * Makefile.in: Rebuilt.
7941 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
7943 2004-01-16 Fernando Nasser <fnasser@redhat.com>
7945 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
7946 Discard GDK_ENTER_NOTIFY related to ungrabs.
7948 2004-01-16 Fernando Nasser <fnasser@redhat.com>
7950 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
7951 is called for an intermediate queue.
7953 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
7955 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7956 (window_property_changed_cb): Set id_set.
7958 2004-01-16 Kim Ho <kho@redhat.com>
7960 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
7961 it is a FileDialog and has dimensions of 0 by 0, then the initial
7962 size is set to size request plus insets.
7963 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
7964 (gtkWidgetGetDimensions): Override method.
7965 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7966 (gtkWidgetGetDimensions): Override method. Returns size request plus
7969 2004-01-16 Andrew Haley <aph@redhat.com>
7971 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
7972 * sysdep/i386/locks.h: Likewise.
7974 2004-01-16 Fernando Nasser <fnasser@redhat.com>
7976 * java/awt/EventDispatchThread.java (run): Stop running when
7978 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
7979 Reset the queue after transferring its contents.
7980 (push): Start a new dispatch thread if none is running.
7982 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
7984 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
7985 (doPolygon): set fill rule of polygon to
7986 WIND_EVEN_ODD by default.
7988 2004-01-15 Olga Rodimina <rodimina@redhat.com>
7990 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
7991 Implemented rendering hints related methods.
7992 (getDefaultHints): New helper method. Returns
7993 default rendering hints.
7994 (walkPath): changed to normalize path if
7995 the KEY_STROKE_CONTROL key is in "normalize" mode.
7996 (draw3DRect): changed coordinates of rectangle by +0.5
7997 if in "normalize" mode.
7999 2004-01-15 Tom Tromey <tromey@redhat.com>
8001 * Makefile.in: Rebuilt.
8002 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8003 (%.lo: %.java) Filter out StackTrace.lo.
8005 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8007 * configure.in: Add in AC_PREREQ(2.13)
8008 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8011 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8012 Tom Tromey <tromey@redhat.com>
8015 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8016 array to superclass.
8017 (init): Changed interface; add URLs here.
8018 (initialize): New static method.
8019 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8020 (_Jv_RunMain): ... not here.
8022 2004-01-14 Michael Koch <konqueror@gmx.de>
8024 * java/text/MessageFormat.java:
8025 Added descriptions to exceptions.
8026 This fixes PR libgcj/2429.
8028 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8030 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8031 (push): Make sure push is performed at the top of the thread stack.
8033 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8035 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8036 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8037 (native create): Add width and height parameters. Set text
8038 view's size request according to new parameters.
8039 (create): Calculate text view size based on current font's
8040 metrics and number of rows and columns. Set TextArea's font if
8041 not already set. Call native create.
8042 (getMinimumSize): Call minimumSize.
8043 (getPreferredSize): Call preferredSize.
8044 (getHScrollbarHeight): New method.
8045 (getVScrollbarWidth): New method.
8046 (minimumSize): Calculate minimum size based on scrollbar
8047 visibility, scrollbar sizes, font metrics and number of rows and
8049 (preferredSize): Likewise for preferred size.
8050 (gtkTextGetSize): Remove method.
8052 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8054 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8055 (initializeInsets): Remove method.
8056 (GtkComponentPeer): Initialize insets field. Remove call to
8058 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8060 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8062 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8063 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8064 (latestInsets): Remove field.
8065 (native create): Add insets parameter. Call
8066 window_get_frame_extents. Set the window's default size and
8067 size request based on its frame extents.
8068 (create): Initialize insets.
8069 (postInsetsChangedEvent): New method.
8070 (postConfigureEvent): Remove parameters top, left, bottom,
8071 right. Remove insets-related logic.
8072 (connectJObject): Handle property-notify-event.
8073 (window_get_frame_extents, request_frame_extents,
8074 property_notify_predicate, window_property_changed_cb): New
8076 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8077 (pre_event_handler): Remove insets-related logic for configure
8079 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8080 Update postConfigureEvent signature.
8082 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8084 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8085 to handle Window "Closing" events.
8087 2004-01-13 David Jee <djee@redhat.com>
8089 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8090 (setBackground): New method. Children with no explicitly-set
8091 background will be repainted with the parent container's new
8094 2004-01-13 David Jee <djee@redhat.com>
8096 * Makefile.am: Add BitwiseXORComposite.java.
8097 * Makefile.in: Regenerated.
8098 * gcj/Makefile.in: Regenerated.
8099 * include/Makefile.in: Regenerated.
8100 * testsuite/Makefile.in: Regenerated.
8102 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8104 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8105 not show modal dialogs twice and so that it allows showing a modal
8106 dialog from another modal dialog.
8108 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8110 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8111 and run secondary dispatch thread to process event queue while this
8114 2004-01-12 Graydon Hoare <graydon@redhat.com>
8116 * gnu/java/awt/gtk/GdkGraphics2D.java
8117 (static): Check GtkToolkit before initializing static state.
8118 (Graphics2D): Don't construct transform with 0.5 unit offset.
8120 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8122 * gnu/java/awt/BitwiseXORComposite.java: Add.
8123 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8124 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8125 (BitwiseXORComposite): Remove inner class.
8127 2004-01-11 Michael Koch <konqueror@gmx.de>
8129 * gnu/java/lang/reflect/TypeSignature.java
8130 (getEncodingOfClass): Documentation fixed.
8131 (getClassForEncoding): Give class loader to Class.forName().
8132 Documentation fixed.
8134 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8136 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8138 2004-01-11 Michael Koch <konqueror@gmx.de>
8140 * javax/swing/undo/StateEditable.java
8141 (RCSID): Removed redundant modifiers.
8143 2004-01-10 Michael Koch <konqueror@gmx.de>
8145 * javax/print/attribute/EnumSyntax.java
8146 (getStringTable): Made protected.
8147 (getEnumValueTable): Likewise.
8148 * javax/print/attribute/standard/JobKOctetsProcessed.java
8149 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8150 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8151 (JobMediaSheetsCompleted): Made class final.
8152 * javax/print/attribute/standard/OutputDeviceAssigned.java
8153 (getName): Fixed typo.
8154 * javax/print/attribute/standard/RequestingUserName.java
8155 (serialVersionUID): Fixed value.
8157 2004-01-10 Michael Koch <konqueror@gmx.de>
8159 * javax/swing/plaf/basic/BasicButtonUI.java,
8160 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8161 javax/swing/plaf/basic/BasicListUI.java,
8162 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8163 javax/swing/plaf/basic/BasicPanelUI.java,
8164 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8165 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8166 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8167 javax/swing/plaf/basic/BasicViewportUI.java:
8168 Fixed import statements.
8170 2004-01-10 Michael Koch <konqueror@gmx.de>
8172 * gnu/java/awt/image/ImageDecoder.java
8173 (produce): Made public.
8174 * gnu/java/awt/peer/GLightweightPeer.java,
8175 gnu/java/awt/peer/gtk/GtkToolkit.java:
8178 2004-01-10 Michael Koch <konqueror@gmx.de>
8180 * javax/swing/JRadioButtonMenuItem.java,
8181 javax/swing/JSeparator.java,
8182 javax/swing/JSplitPane.java,
8183 javax/swing/JTextPane.java,
8184 javax/swing/JToolBar.java,
8185 javax/swing/ListCellRenderer.java,
8186 javax/swing/ListModel.java,
8187 javax/swing/MenuElement.java,
8188 javax/swing/OverlayLayout.java,
8189 javax/swing/ProgressMonitor.java,
8190 javax/swing/ProgressMonitorInputStream.java,
8191 javax/swing/Renderer.java,
8192 javax/swing/RootPaneContainer.java,
8193 javax/swing/Scrollable.java,
8194 javax/swing/SingleSelectionModel.java,
8195 javax/swing/ToolTipManager.java,
8196 javax/swing/ViewportLayout.java,
8197 javax/swing/event/DocumentEvent.java,
8198 javax/swing/event/SwingPropertyChangeSupport.java,
8199 javax/swing/event/TreeSelectionEvent.java,
8200 javax/swing/event/UndoableEditEvent.java,
8201 javax/swing/text/AbstractDocument.java,
8202 javax/swing/text/AttributeSet.java,
8203 javax/swing/text/Caret.java,
8204 javax/swing/text/ComponentView.java,
8205 javax/swing/text/DefaultCaret.java,
8206 javax/swing/text/DefaultEditorKit.java,
8207 javax/swing/text/Document.java,
8208 javax/swing/text/EditorKit.java,
8209 javax/swing/text/GapContent.java,
8210 javax/swing/text/Keymap.java,
8211 javax/swing/text/MutableAttributeSet.java,
8212 javax/swing/text/PlainEditorKit.java,
8213 javax/swing/text/Segment.java,
8214 javax/swing/text/Style.java,
8215 javax/swing/text/StyledDocument.java,
8216 javax/swing/text/StyledEditorKit.java,
8217 javax/swing/text/TextAction.java,
8218 javax/swing/text/View.java: Fixed import statements.
8220 2004-01-08 Graydon Hoare <graydon@redhat.com>
8222 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8223 djee@redhat.com's recent inverse ordering of Container elements.
8225 2004-01-09 Michael Koch <konqueror@gmx.de>
8227 * gnu/java/lang/ArrayHelper.java
8228 (equalsArray): Removed.
8230 2004-01-09 Andrew Haley <aph@redhat.com>
8232 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8233 a Utf8Const field before looking at its class.
8235 2004-01-09 Michael Koch <konqueror@gmx.de>
8237 * javax/print/attribute/standard/DocumentName.java,
8238 javax/print/attribute/standard/JobHoldUntil.java,
8239 javax/print/attribute/standard/JobMessageFromOperator.java,
8240 javax/print/attribute/standard/JobName.java,
8241 javax/print/attribute/standard/JobOriginatingUserName.java,
8242 javax/print/attribute/standard/OutputDeviceAssigned.java,
8243 javax/print/attribute/standard/PrinterInfo.java,
8244 javax/print/attribute/standard/PrinterLocation.java,
8245 javax/print/attribute/standard/PrinterMakeAndModel.java,
8246 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8247 javax/print/attribute/standard/PrinterName.java,
8248 javax/print/attribute/standard/RequestingUserName.java: New files.
8249 * Makefile.am (javax_source_files): Added new files.
8250 * Makefile.in: Regenerated.
8252 2004-01-09 Michael Koch <konqueror@gmx.de>
8254 * javax/swing/AbstractAction.java,
8255 javax/swing/AbstractSet.java,
8256 javax/swing/Action.java,
8257 javax/swing/ActionMap.java,
8258 javax/swing/BoundedRangeModel.java,
8259 javax/swing/ButtonModel.java,
8260 javax/swing/CellEditor.java,
8261 javax/swing/CellRendererPane.java,
8262 javax/swing/ComboBoxEditor.java,
8263 javax/swing/DebugGraphics.java,
8264 javax/swing/DefaultCellEditor.java,
8265 javax/swing/DefaultCellRenderer.java,
8266 javax/swing/DefaultComboBoxModel.java,
8267 javax/swing/DefaultDesktopManager.java,
8268 javax/swing/DefaultFocusManager.java,
8269 javax/swing/DefaultListCellRenderer.java,
8270 javax/swing/Icon.java,
8271 javax/swing/JButton.java,
8272 javax/swing/JCheckBoxMenuItem.java,
8273 javax/swing/JDesktopPane.java,
8274 javax/swing/JEditorPane.java,
8275 javax/swing/JMenu.java,
8276 javax/swing/JPanel.java,
8277 javax/swing/JPasswordField.java,
8278 javax/swing/JPopupMenu.java,
8279 javax/swing/JProgressBar.java: Reworked imports.
8281 2004-01-09 Michael Koch <konqueror@gmx.de>
8283 * java/awt/geom/PathIterator.java
8284 (WIND_EVEN_ODD): Removed redundant modifiers.
8285 (WIND_NON_ZERO): Likewise.
8286 (SEG_MOVETO): Likewise.
8287 (SEG_LINETO): Likewise.
8288 (SEG_QUADTO): Likewise.
8289 (SEG_CUBICTO): Likewise.
8290 (SEG_CLOSE): Likewise.
8291 * java/awt/image/SinglePixelPackedSampleModel.java:
8292 Removed redundant semicolon.
8293 * java/io/ObjectInputStream.java
8294 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8295 * java/util/logging/Filter.java
8296 (isLoggable): Removed redundant modifier.
8297 * java/util/logging/LogManager.java:
8298 Removed redundant semicolon.
8299 * java/util/logging/XMLFormatter.java
8300 (format): Removed unused variable "key".
8302 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8304 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8305 New name for the former setFile native method.
8306 (setFile): New method.
8307 (setDirectory): Implemented.
8308 (connectSignals): New native method.
8309 (setFilenameFilter): Improve comment.
8310 (getGraphics): Comment.
8311 (gtkHideFileDialog): New method.
8312 (gtkDisposeFileDialog): New method.
8313 (gtkSetFilename): New method.
8314 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8315 for FileDialog for now.
8317 (dispose): New method.
8318 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8319 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8320 deprecated creation functions. Make dialog modal. Add it to the
8322 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8324 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8326 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8328 (window_closed): New function.
8329 (ok_clicked): New function.
8330 (cancel_clicked): New function.
8332 2004-01-08 Michael Koch <konqueror@gmx.de>
8334 * javax/swing/JLayeredPane.java: Revert changes to standard
8335 boilerplate, reworked imports.
8337 2004-01-07 Tom Tromey <tromey@redhat.com>
8340 * verify.cc (state::merge): Copy changed locals out of subroutine
8342 (state::FLAG_CHANGED): New const.
8343 (state::FLAG_UNUSED): Likewise.
8344 (state::local_changed): Removed. Updated all users.
8345 (state::flags): New field.
8346 (state::merge): Added jsr_semantics argument, more logic.
8347 (push_jump_merge): Added jsr_semantics argument.
8348 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8349 merging through the jsr instruction.
8351 2004-01-07 Tom Tromey <tromey@redhat.com>
8353 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8356 2004-01-07 Graydon Hoare <graydon@redhat.com>
8358 * java/awt/Container.java (LightweightDispatcher): Implement.
8359 (visitChild): Reuse graphics object.
8360 (dispatchEventImpl): Optionally dispatch to lightweight.
8361 (addNotifyContainerChildren): Build LightweightDispatcher.
8363 2004-01-07 David Jee <djee@redhat.com>
8365 * java/awt/Container.java
8366 (update): Clear only the clipped region, instead of clearing the
8368 (visitChildren): Visit children in descending order.
8370 2004-01-07 Michael Koch <konqueror@gmx.de>
8372 * java/lang/reflect/Array.java: Merged documentation with classpath.
8374 2004-01-07 Michael Koch <konqueror@gmx.de>
8376 * java/text/CollationElementIterator.java
8377 (textIndex): Renamed from index.
8378 * java/text/CollationKey.java
8379 (collator): New member.
8380 (CollationKey): New argument for parent collator.
8381 (equals): Check for same collator, source string and key array.
8382 * java/text/RuleBasedCollator.java:
8384 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8386 (getCollationElementIterator): Rewritten.
8387 (getCollationKey): Added new argument to CollationKey constructor.
8389 2004-01-07 Michael Koch <konqueror@gmx.de>
8391 * gnu/java/nio/DatagramChannelImpl.java
8392 (blocking): Removed.
8393 (DatagramChannelImpl): Call configureBlocking().
8394 (implConfigureBlocking): Dont initialize blocking.
8395 * gnu/java/nio/ServerSocketChannelImpl.java
8396 (blocking): Removed.
8397 (ServerSocketChannelImpl): Call configureBlocking().
8398 (implConfigureBlocking): Dont initialize blocking.
8399 * gnu/java/nio/SocketChannelImpl.java
8400 (blocking): Removed.
8401 (SocketChannelImpl): Call configureBlocking().
8402 (implConfigureBlocking): Dont initialize blocking.
8403 (connect): Use isBlocking().
8404 * java/nio/channels/spi/AbstractSelectableChannel.java
8405 (configureBlocking): Use blockingLock() instead of LOCK.
8406 Set blocking after successfully called implConfigureBlocking().
8407 (register): Use blockingLock() instead of LOCK.
8409 2004-01-07 Michael Koch <konqueror@gmx.de>
8411 * java/net/ServerSocket.java (isBound): Fixed documentation.
8413 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8415 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8416 (changeEvent): Create event object on demand.
8417 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8418 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8419 fireStateChanged): Re-written.
8420 * javax/swing/event/EventListenerList.java: Reformatted, document
8422 (toString): Implemented.
8423 (getListeners): Re-written.
8424 (remove): Re-written.
8426 (NO_LISTENERS): New singleton field.
8427 (listenerList): Declare as transient; document.
8428 (serialVersionUID): Document.
8429 (getListenerCount(Class)): More efficient implementation,
8430 also accepts null argument. Improve Javadoc.
8431 (getListenerCount()): Remove unnecessary cast; docfix.
8432 * javax/swing/undo/UndoableEditSupport.java:
8433 Re-format, document.
8434 (UndoableEditSupport): Set realSource field. Improve documentation.
8435 (_postEdit): Iterate over cloned listener vector.
8436 (toString): Don't emit realSource.
8437 (beginUpdate, endUpdate): Support nested updates.
8438 (postEdit): Use compound edit if present.
8440 2004-01-06 Graydon Hoare <graydon@redhat.com>
8442 * java/awt/Container.java (swapComponents): Add forgotten
8443 function, required for JLayeredPane change.
8445 2004-01-06 Michael Koch <konqueror@gmx.de>
8447 * java/text/CollationElementIterator.java: Reformated.
8448 (CollationElementIterator): Changed order of arguments.
8449 * java/text/RuleBasedCollator.java
8450 (RuleBasedCollator): Merged class documentation.
8451 (CollationElement): Added documentation.
8452 (compare): Reformated, renamed arguments.
8454 (getCollationElementIterator): Likewise.
8455 (getCollationKey): Likewise.
8457 2004-01-06 Graydon Hoare <graydon@redhat.com>
8459 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8461 2004-01-06 Michael Koch <konqueror@gmx.de>
8463 * gnu/java/net/protocol/file/Connection.java:
8464 Reformated copyright.
8467 (gotHeaders): Removed.
8468 (getHeaderField): Removed.
8469 (getHeaderField): Removed.
8470 (getHeaderFieldKey): Removed.
8472 (getField): Removed.
8473 (getHeaders): Removed.
8475 2004-01-06 Michael Koch <konqueror@gmx.de>
8477 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8478 javax/print/attribute/standard/DateTimeAtCreation.java,
8479 javax/print/attribute/standard/DateTimeAtProcessing.java,
8480 javax/print/attribute/standard/JobImpressionsCompleted.java,
8481 javax/print/attribute/standard/JobKOctets.java,
8482 javax/print/attribute/standard/JobKOctetsProcessed.java,
8483 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8484 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8485 * Makefile.am (javax_source_files): Added new files.
8486 * Makefile.in: Regenerated.
8488 2004-01-06 Michael Koch <konqueror@gmx.de>
8490 * java/net/URLConnection.java
8491 (contentHandler): Removed.
8493 (getHeaderFields): Return an empty map instead of null.
8494 (getContent): Connect if needed, renamed "cType" to "type" and
8495 "contentHandler" to "ch" and made it a local variable.
8496 (getPermission): Don't use package in class name.
8497 (setDefaultRequestProperty): Fixed typo in documentation.
8498 (initializeDateFormats): Made locale a local variable.
8500 2004-01-06 Michael Koch <konqueror@gmx.de>
8502 * java/lang/Package.java
8503 (getPackage): Get the current class loader directly.
8504 * java/lang/SecurityManager.java
8505 (currentLoadedClass): Dont iterate over class contexts.
8506 (classLoaderDepth): Don't check class loaders if everything is allowed.
8508 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8510 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8511 (pre_event_handler): Set all insets to 0 when a Configure event
8512 is received for a GtkPlug.
8513 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8514 Make handle long, not int.
8515 (EmbeddedWindow()): New constructor.
8516 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8518 (setHandle): New method.
8519 (getHandle): Return long, not int.
8520 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8522 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8523 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8524 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8525 argument to GdkNativeWindow.
8526 (construct): New method.
8527 (embed): New method.
8529 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8530 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8531 (create(int, int)): New method.
8532 (create): Call new create method.
8533 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8535 (childResized): Remove native implementation. Implement in
8537 (getHScrollbarHeight, getVScrollbarWidth): Call
8538 gtk_widget_size_request to get scrollbar dimensions.
8539 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8540 call getVScrollbarWidth and getHScrollbarHeight when vertical
8541 and horizontal scrollbars respectively are needed.
8542 (doLayout): Enlarge child if it is smaller than the viewport.
8544 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8546 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8547 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8548 argument as per spec.
8550 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8552 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8554 (remove): Ditto. Also, Check for valid argument.
8555 (removeAll): Use peer interface method.
8556 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8557 native add function.
8558 (nativeRemove): New name for native remove function.
8559 (getHistory): New native function.
8560 (constructor): Generate ItemEvent.
8561 (add): Ditto, if selection is changed.
8562 (remove): Ditto, ditto.
8563 (removeAll): Add implementation.
8564 (handleEvent): Remove. Dead code.
8565 (choicePostItemEvent): Add comment.
8566 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8567 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8568 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8569 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8570 comments and fix condition to change selection.
8571 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8572 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8573 remove all capability.
8574 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8575 (item_activate): Add cast to remove compiler warning.
8577 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8579 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8580 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8581 (getPreferredSize): Call preferredSize.
8582 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8583 (getMinimumSize): Call minimumSize.
8584 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8585 (gtkWidgetGetDimensions): Return the peer widget's current size
8587 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8588 natural size request.
8590 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8592 Thanks to Brian Gough <bjg@network-theory.com>
8593 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8594 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8596 2004-01-04 Matthias Klose <doko@debian.org>
8598 * aclocal.m4: Rebuilt using "aclocal -I .".
8599 * configure: Rebuilt.
8601 2004-01-03 Per Bothner <per@bothner.com>
8603 * java/util/Date.java (parse): Fix a number of problems.
8604 (skipParens): Remove no-longer-needed method.