1 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
3 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
4 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
6 (DECLARE_PRIM_TYPE): Don't declare array vtables.
7 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
8 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
10 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
12 * Makefile.am: Replace jar, rmic and rmiregistry references with
13 gjar, grmic and grmiregistry.
14 * configure.in: Likewise.
15 * Makefile.in: Regenerate.
16 * configure: Likewise.
17 * gcj/Makefile.in: Likewise.
18 * include/Makefile.in: Likewise.
19 * testsuite/Makefile.in: Likewise.
21 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
23 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
24 for privileged getProperty calls.
25 * java/io/ObjectOutputStream.java (getField): No longer static. Use
26 SetAccessibleAction instead of anonymous class for doPrivileged call.
27 (getMethod): Likewise.
28 (setAccessible): New field. PrivilegedAction object to use when
29 calling setAccessible.
30 * java/io/ObjectStreamClass.java (calculateOffsets): Use
31 SetAccessibleAction instead of anonymous class for diPrivileged call.
32 (setFields): Likewise.
33 (getClassUID): Likewise.
34 (findMethod): Likewise.
35 * gnu/java/security/action/GetPropertyAction.java: New class.
36 * gnu/java/security/action/SetAccessibleAction.java: New class.
38 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
40 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
42 * testsuite/libjava.lang/Serialization.java: New test.
43 * testsuite/libjava.lang/Serialization.out: New.
45 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
47 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
48 missed in last commit.
50 2004-07-23 Mark Wielaard <mark@klomp.org>
52 * java/lang/System.java (static): Set http.agent system property when
54 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
55 from system property inside AccessController.doPrivileged() call.
56 (proxyPort): Made package private.
57 (proxyInUse): Likewise.
58 (proxyHost): Likewise.
59 (userAgent): Likewise.
61 2004-07-23 Mark Wielaard <mark@klomp.org>
63 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
66 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
68 * Makefile.am (ordinary_java_source_files): Add
69 DefaultContentHandlerFactory.java.
70 * Makefile.in: Rebuilt.
71 * java/net/URLConnection.java (defaultFactory): New field.
73 (getContentHandler): Renamed from 'setContentHandler'. Try
74 defaultFactory after user-set factory, if any. Search for content
75 handler implementations in gnu.java.net.content, not gnu.gcj.content.
76 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
78 (getLastModified): Implemented.
79 (getPermission): Create file permission here, instead of in
81 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
83 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
85 (getLastModified): Implemented.
86 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
87 Default implementation.
88 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
89 Implement using GdkPixbufDecoder.
91 2004-07-21 Michael Koch <konqueror@gmx.de>
93 * javax/swing/JTextArea.java
94 (setLineWrap): Fire property change event after new value is set.
95 (setTabSize): Likewise.
97 2004-07-21 Michael Koch <konqueror@gmx.de>
99 * javax/swing/JTable.java
100 (autoCreateColumnsFromModel): New field.
101 (autoResizeMode): Likewise.
102 (cellEditor): Likewise.
103 (cellSelectionEnabled): Likewise.
104 (columnModel): Likewise.
105 (dataModel): Likewise.
106 (defaultEditorsByColumnClass): Likewise.
107 (defaultRenderersByColumnClass): Likewise.
108 (editingColumn): Likewise.
109 (editingRow): Likewise.
110 (gridColor): Likewise.
111 (preferredViewportSize): Likewise.
112 (rowHeight): Likewise.
113 (rowMargin): Likewise.
114 (rowSelectionAllowed): Likewise.
115 (selectionBackground): Likewise.
116 (selectionForeground): Likewise.
117 (selectionModel): Likewise.
118 (showHorizontalLines): Likewise.
119 (showVerticalLines): Likewise.
120 (tableHeader): Likewise.
121 (JTable): Implemented.
122 (getColumnModel): Likewise.
123 (getSelectedRow): Likewise.
124 (getSelectionModel): Likewise.
125 (setModel): Likewise.
126 (setSelectionModel): Likewise.
127 (createScrollPaneForTable): New method.
128 (createDefaultDataModel): Likewise.
129 (createDefaultListSelectionModel): Likewise.
130 (getModel): Likewise.
131 (getTableHeader): Likewise.
132 (setTableHeader): Likewise.
133 (getColumnSelectionAllowed): Likewise.
134 (setColumnSelectionAllowed): Likewise.
135 (getRowSelectionAllowed): Likewise.
136 (setRowSelectionAllowed): Likewise.
137 (getAutoResizeMode): Likewise.
138 (setAutoResizeMode): Likewise.
139 (getColumnCount): Likewise.
140 (getRowCount): Likewise.
141 (getCellRenderer): Likewise.
142 * javax/swing/JTree.java
143 (cellRenderer): New field.
144 (editable): Likewise.
145 (rootVisible): Likewise.
146 (showsRootHandles): Likewise.
147 (getModel): New method.
148 (setModel): Likewise.
149 (isEditable): Likewise.
150 (setEditable): Likewise.
151 (isRootVisbile): Likewise.
152 (setRootVisible): Likewise.
153 (getShowsRootHandles): Likewise.
154 (setShowRootHandles): Likewise.
155 (getCellRenderer): Likewise.
156 (setCellRenderer): Likewise.
158 2004-07-21 Michael Koch <konqueror@gmx.de>
160 * javax/swing/JFormattedTextField.java
161 (setDocument): Implemented.
162 * javax/swing/JRootPane.java:
164 * javax/swing/JTable.java
165 (getDefaultRenderer): New method.
166 * javax/swing/JTextField.java
168 (getPreferredSize): Likewise.
169 * javax/swing/JToggleButton.java
170 (getAccessibleContext): Fix javadoc.
171 * javax/swing/JTree.java:
173 * javax/swing/JViewport.java:
176 2004-07-21 David Jee <djee@redhat.com>
178 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
179 Collect all native method declaration at the top.
180 (create): Set the filename filter if necessary.
181 (setDirectory): Call nativeSetDirectory().
182 (setFilenameFilter): Implement.
183 (filenameFilterCallback): New method.
184 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
185 (create): Configure dialog to show hidden files.
186 (filenameFilterCallback): New function.
187 (nativeSetFilenameFilter): New function.
188 (nativeSetDirectory): New function.
190 2004-07-21 Kim Ho <kho@redhat.com>
192 * javax/swing/plaf/basic/BasicSliderUI.java:
194 (paintTrack): Fill the track before painting
197 2004-07-21 Graydon Hoare <graydon@redhat.com>
199 patch from Roman Kennke <roman@ontographics.com>
200 * javax/swing/Spring.java: New file.
201 * javax/swing/SpringLayout.java: New file.
202 * Makefile.am: Add new files.
203 * Makefile.in: Regenerate.
205 2004-07-21 Graydon Hoare <graydon@redhat.com>
207 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
208 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
209 * javax/swing/ScrollPaneLayout.java: Likewise.
211 2004-07-21 Kim Ho <kho@redhat.com>
213 * javax/swing/DefaultDesktopManager.java:
214 (findMinimum): Removed.
215 (resizeFrame): Trust the UI to pass valid
217 * javax/swing/JOptionPane.java:
218 Implemented showInternalXXXDialog methods.
219 (startModal): New method.
220 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
221 (BorderListener::mouseDragged): Verify that the new
222 bounds are valid before passing them to the DesktopManager.
223 (preferredLayoutSize): Delegate
225 (minimumLayoutSize): Ditto.
226 (getSize): New method.
227 (GlassPaneDispatcher): Reimplemented by copying
228 a stripped down LightweightDispatcher from Container.
229 (getMinimumSize): Call minimumLayoutSize.
230 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
232 (mousePressed): Add ability to properly close
234 * javax/swing/plaf/basic/BasicToolBarUI.java:
235 (DragWindow): Set owner for DragWindow.
237 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
239 * java/awt/image/ShortLookupTable.java: New file.
240 * java/awt/image/ByteLookupTable.java: New file.
241 * Makefile.am: Added new files.
242 * Makefile.in: Regenerated.
244 2004-07-21 David Jee <djee@redhat.com>
246 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
247 (create(GtkContainerPeer)): New native method.
248 (create()): Call native create(), passing in the parent frame
249 as the paramter. Natively set the current file and directory.
250 (setFile): Construct an absolute filename before passing it to
252 (nativeGetDirectory): New method.
253 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
254 (window_closed): Removed.
255 (ok_clicked): Likewise.
256 (cancel_clicked): Likewise.
257 (handle_response): New method.
258 (create): Use GtkFileChooserDialog.
259 (connectSignals): Connect to handle_response.
260 (nativeGetDirectory): New method.
261 (nativeSetFile): Use GtkFileChooserDialog.
263 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
265 * java/awt/image/LookupTable.java: New file.
266 * Makefile.am: Added new file.
267 * Makefile.in: Regenerated.
269 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
271 * java/awt/image/Kernel.java: New file.
272 * Makefile.am: Added new file.
273 * Makefile.in: Regenerated.
275 2004-07-21 Olga Rodimina <rodimina@redhat.com>
277 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
278 * javax/swing/JMenu.java: Likewise.
279 * javax/swing/JMenuBar.java: Likewise.
280 (MARGIN_CHANGED_PROPERTY): New property.
281 (setMargin): Implemented.
282 * javax/swing/JMenuItem.java: Fixed javadocs.
283 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
284 (LABEL_CHANGED_PROPERTY): New property.
285 (add): changed to use createActionComponent.
286 (createActionComponent): Implemented.
287 (setLabel): Fire PropertyChangeEvent if label property
289 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
290 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
291 (ContainerHandler): Repaint if margin property has changed.
292 * javax/swing/plaf/basic/BasicMenuItemUI.java:
293 (installUI): Call installComponents().
294 (uninstallUI): Call uinstallComponents().
295 * javax/swing/plaf/basic/BasicMenuUI.java:
297 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
300 2004-07-21 Kim Ho <kho@redhat.com>
302 * javax/swing/plaf/basic/BasicToolBarUI.java:
303 (DragWindow): Use the right constructor.
305 2004-07-21 Kim Ho <kho@redhat.com>
307 * javax/swing/JToolBar.java:
308 (layoutContainer): Use getComponents.
309 * javax/swing/plaf/basic/BasicToolBarUI.java:
310 (DragWindow): Don't use SwingUtilities'
312 (ToolBarDialog): ditto.
314 2004-07-21 Kim Ho <kho@redhat.com>
316 * javax/swing/JRootPane.java:
318 (layoutContainer): Set the glasspane's size to
319 be the same as the content pane.
320 (createGlassPane): Set opaque property to false.
322 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
324 * java/awt/Component.java (requestFocus()): Don't handle Panels
326 (requestFocus(boolean)): Likewise.
327 (requestFocusInWindow(boolean)): Likewise.
328 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
329 Set GTK_CAN_FOCUS flag.
331 2004-07-21 Kim Ho <kho@redhat.com>
333 * Makefile.am: Added new file.
334 * Makefile.in: Regenerated.
335 * gcj/Makefile.in: Regenerated.
336 * include/Makefile.in: Regenerated.
337 * javax/swing/AbstractButton.java:
338 Add rollOverEnabled property.
339 (setRolloverEnabled): Use new property.
340 (isRolloverEnabled): Use new property.
341 * javax/swing/JTabbedPane.java:
342 (setComponent): Remove useless JTabbedPane.this.
343 * javax/swing/JToolBar.java: Finish implementation.
344 * javax/swing/plaf/basic/BasicArrowButton.java:
345 (paint): Moved border painting to a border.
346 * javax/swing/plaf/basic/BasicLookAndFeel.java:
347 Change JToolBar look and feel defaults.
348 * javax/swing/plaf/basic/BasicOptionPaneUI.java
349 (actionPerformed): Return Integer index instead of name.
350 (addButtonComponents): Check to see if component is
352 (createMessageArea): Don't use components that are not
354 (getIconForType): Use temporary icons.
355 * javax/swing/plaf/basic/BasicSliderUI.java:
356 (mousePressed): Do not return if it's on thumb.
357 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
358 (paintMinorTickForVertSlider): ditto.
359 (paintMajorTickForHorizSlider): ditto.
360 (paintMajorTickForVertSlider): ditto.
361 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
362 Add a border around the SplitPaneDivider.
363 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
365 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
366 New file. Implemented.
367 * javax/swing/plaf/basic/BasicToolBarUI.java:
369 * testsuite/Makefile.in: Regenerated.
371 2004-07-21 Graydon Hoare <graydon@redhat.com>
373 * javax/swing/Timer.java (run): Queue events each time cycle.
375 2004-07-21 David Jee <djee@redhat.com>
377 * gnu/java/awt/peer/gtk/GtkImagePainter.java
378 (imageComplete): Call image.imageComplete().
379 * java/awt/image/MemoryImageSource.java:
380 Reimplement consumers as a Vector instead of a Hashtable. This is
381 because enumeration on a Hashtable is not thread-safe.
382 (addConsumer): Adapt to Vector consumers.
383 (isConsumer): Adapt to Vector consumers.
384 (removeConsumer): Adapt to Vector consumers.
385 (startProduction): Adapt to Vector consumers. Call imageComplete()
386 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
387 (newPixels): Adapt to Vector consumers.
388 (sendPicture): Set the color model of the image consumer.
389 (newPixels(IIII)): Adapt to Vector consumers.
390 (newPixels(IIIIB)): Adapt to Vector consumers.
392 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
394 * java/awt/Component.java (deliverEvent): Implement.
395 (postEvent): Implement.
396 (handleEvent): Implement.
397 (translateEvent): New method.
398 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
399 * java/awt/Container.java (deliverEvent): Implement.
400 * java/awt/Event.java (paramString): Fix formatting.
401 * java/awt/Font.java (toString): Likewise.
402 * java/awt/Window.java (postEvent): Implement.
404 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
406 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
407 Set window's focus owner upon receiving a FOCUS_LOST event.
408 * java/awt/Window.java (Window()): Refocus the previously
409 focused component within the window when the window regains the
411 (setFocusOwner): New method.
412 * java/awt/Component.java (requestFocus): Add FIXME.
414 * libgcj.pc.in: Remove library flags.
416 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
418 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
420 * java/awt/Component.java (requestFocus()): Handle Panel
421 specially. Post FOCUS_LOST event on opposite component.
422 (requestFocus(boolean)): Likewise.
423 (requestFocusInWindow(boolean)): Likewise.
424 (paramString): Reorder dimension fields.
425 * java/awt/Container.java (paramString): Fix string format.
426 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
427 Handle FOCUS_LOST events. Don't handle Windows specially. Only
428 process key events if the focus owner is non-null.
429 (dispatchKeyEvent): Likewise.
430 * java/awt/Frame.java (paramString): Fix formatting.
431 (generateName): New method.
432 (getUniqueLong): Likewise.
433 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
434 the temporary focus owner is null. If so, return the permanent
436 * java/awt/Panel.java (generateName): New method.
437 (getUniqueLong): Likewise.
438 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
439 signal handling to make callbacks more specific.
441 2004-07-21 Michael Koch <konqueror@gmx.de>
443 * javax/swing/text/Position.java
446 2004-07-21 Michael Koch <konqueror@gmx.de>
448 * javax/swing/LookAndFeel.java
449 (provideErrorFeedback): New method.
451 2004-07-21 Michael Koch <konqueror@gmx.de>
453 * javax/swing/JTextArea.java
454 (tabSize): New field.
455 (getTabSize): New method.
456 (setTabSize): Likewise.
458 2004-07-21 Michael Koch <konqueror@gmx.de>
460 * javax/swing/ActionMap.java:
461 Fixed javadocs all over.
462 (serialVersionUID): Made private.
463 (parent): Don't explicitely initialize with default value.
465 (keys): Reimplemented.
467 (convertSet): Removed.
468 * javax/swing/ComponentInputMap.java:
469 Fixed javadocs all over.
470 (ComponentInputMap): Implemented.
474 (SetParent): Likewise.
475 (getComponent): Likewise.
476 * javax/swing/InputMap.java:
477 Fixed javadocs all over.
478 (serialVersionUID): Made private.
479 (parent): Don't explicitely initialize with default value.
481 (keys): Reimplemented.
483 (convertSet): Removed.
485 2004-07-21 Michael Koch <konqueror@gmx.de>
487 * javax/swing/ActionMap.java,
488 javax/swing/ComponentInputMap.java,
489 javax/swing/InputMap.java,
490 javax/swing/table/DefaultTableColumnModel.java,
491 javax/swing/table/TableColumn.java,
492 javax/swing/table/TableColumnModel.java,
493 javax/swing/table/TableModel.java,
494 javax/swing/text/AbstractDocument.java,
495 javax/swing/text/TextAction.java:
498 2004-07-21 Graydon Hoare <graydon@redhat.com>
500 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
501 Make method non-static.
502 * javax/swing/AbstractButton.java:
503 Rename fields to match property names where possible.
504 (iconTextGap): New property.
505 * javax/swing/JCheckBox.java: Match AbstractButton changes.
506 (init) New method, call from after various constructors.
507 * javax/swing/JComponent.java (revalidate):
508 Invalidate before queueing repair.
509 * javax/swing/JList.java (getPreferredScrollableViewportSize):
510 Reimplement in terms of visibleRowCount property.
511 * javax/swing/JMenuButton.java: Match AbstractButton changes.
512 * javax/swing/JScrollPane.java (createScrollListener):
513 Remove tracing chatter.
514 * javax/swing/JToggleButton.java: Match AbstractButton changes.
515 * javax/swing/RepaintManager.java (addInvalidComponent):
517 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
519 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
520 Mimic sun behavior on top left/right positioning.
521 * javax/swing/ViewportLayout.java (preferredLayoutSize):
522 Remove mistaken use of preferredScrollableViewportSize here.
523 (layoutContainer): Use view's preferred size as basis.
524 * javax/swing/plaf/basic/BasicButtonUI.java:
525 Set, get, and use textIconGap property.
526 (paint) Paint text returned from layout (with ellipsis).
527 * javax/swing/plaf/basic/BasicListUI.java:
528 Remove tracing chatter, correct various minor calculations.
529 (getCellBounds): Update layout state before calculating.
530 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
531 Use margin default similar to sun's.
532 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
533 (createIncreaseIcon): Center icon, minimize margins.
534 (createDecreaseIcon): Likewise.
535 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
537 (installUI): Call it.
538 (uninstallDefaults): Implement.
539 (uninstallUI): Call it.
540 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
541 Call existing Window constructor.
542 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
543 Set clip before painting.
545 2004-07-21 Olga Rodimina <rodimina@redhat.com>
547 * javax/swing/JMenuItem.java:
548 (processMouseEvent): Reimplemented to deal with
550 (createMenuDragMouseEvent): New private helper method.
551 Creates MenuDragMouseEvent.
552 * javax/swing/MenuSelectionManager.java
553 (componentForPoint): Implemented.
554 (isComponentPartOfCurrentMenu): Made public.
555 (processMouseEvent): Reimplemented to deal with
557 (setSelectedPath): Corrected small mistake that caused
558 path to be set incorrectly.
559 (getPath): If given component is JMenu then also add this
560 menu's popup menu to the selected path.
561 * javax/swing/plaf/basic/BasicMenuItemUI.java:
563 (getPreferredSize): Call getPreferredMenuItemSize().
564 (getPreferredItemSize): Moved code from getPreferredSize to here.
565 (installListeners): Install MouseMotionListeners.
566 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
567 if mouse wasn't released in the bounds of this menu item.
568 (MenuDragMouseHandler): Implemented.
569 * javax/swing/plaf/basic/BasicMenuUI.java:
570 (installListeners): Install MouseMotionListener and
571 MenuDrageMouseListener.
572 (MenuDragMouseHandler): Implemented.
573 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
574 (uninstallListeners): Implemented.
576 2004-07-21 Michael Koch <konqueror@gmx.de>
578 * javax/swing/JCheckBox.java: Reformated.
579 (JCheckBox): Fixed all constructors.
580 (isBorderPaintedFlat): New method.
581 (setBorderPaintedFlat): New method.
582 * javax/swing/JEditorPane.java
583 (createEditorKitForContentType): Made public.
584 (scrollToReference): Likewise.
585 * javax/swing/JTextArea.java
586 (setLineWrap): Fire property change.
587 * javax/swing/JToggleButton.java
588 (JToggleButton): New constructor.
589 (JToggleButton): Simplified.
590 * javax/swing/text/AttributeSet.java
591 (FontAttribute): Renamed from FontCharacterAttribute.
592 * javax/swing/text/JTextComponent.java
593 (KeyBinBinding): Added javadoc.
594 (JTextComponent): Likewise.
595 (getAccessibleContext): Fixed javadoc.
596 * javax/swing/text/View.java
597 (View): Added javadoc.
598 * javax/swing/text/TabableView.java: New file.
599 * Makefile.am: Added javax/swing/text/TabableView.java.
600 * Makefile.in: Regenerated.
602 2004-07-21 Graydon Hoare <graydon@redhat.com>
604 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
605 * gnu/java/awt/peer/gtk/GtkToolkit.java
606 (GtkErrorImage): New helper class.
607 (bufferedImageOrError): New helper method.
608 (createImage): Use it.
610 2004-07-21 David Jee <djee@redhat.com>
612 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
613 (setCaretPosition): Scroll the text view so the new caret position
614 is visible on screen.
616 2004-07-21 David Jee <djee@redhat.com>
618 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
619 (setBounds): Do not validate awtComponent here.
620 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
621 (getPreferredSize): New method.
622 * java/awt/ScrollPane.java
623 (ScrollPane): Set default size to 100x100.
624 (addNotify): If child is not a Panel, wrap it with a new Panel.
625 (paramString): Implement.
627 2004-07-21 Olga Rodimina <rodimina@redhat.com>
629 * javax/swing/JMenu.java:
630 (setSelected): Display popup menu only if this menu
631 is showing on the screen.
632 * javax/swing/JPopupMenu.java:
633 (processMouseEvent): Added comment.
634 (processKeyEvent): Likewise.
635 * javax/swing/MenuSelectionManager.java:
636 (clearSelectedPath): Only fireStateChanged() after
637 selected path was changed, not before.
638 (setSelectedPath): Likewise.
639 * javax/swing/plaf/basic/BasicMenuItemUI.java:
640 (paintMenuItem): Corrected position of menu item's
642 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
643 (installUI): Correct setDefaultLightWeightPopupEnabled call.
644 (popupMenuCanceled): Reimplemented.
645 (popupMenuWillBecomeVisible): Select first menu item by default
646 when displaying free floating popup menus.
647 (TopWindowListener): Reimplemented.
649 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
651 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
652 Panel from being painted twice when it is first shown.
654 2004-07-21 Olga Rodimina <rodimina@redhat.com>
656 * java/awt/Window.java: Reverted changes from my
657 previous patch for creating window without an owner.
658 * javax/swing/SwingUtilities.java:
659 (SwingUtilities.OwnerFrame): made static.
660 (OwnerFrame.setVisible): New method. Overridden with
661 empty implementation.
662 (OwnerFrame.isShowing): New method. Ovverridden
663 to return always true.
665 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
667 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
668 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
669 (GtkComponentPeer): Remove temporary try/catch block.
670 (setVisible): Call show and hide.
673 (getArgs): Don't add "visible" argument.
674 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
675 (property_notify_predicate): Return Bool instead of int.
676 (find_layout): New function.
677 (connectJObject): Call find_layout.
678 (connectSignals): Likewise.
679 (moveLayout): Likewise.
680 (gtkLayoutSetVisible): Likewise.
682 2004-07-21 Mark Wielaard <mark@klomp.org>
684 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
685 on notifier object before calling notifyAll().
687 2004-07-21 Olga Rodimina <rodimina@redhat.com>
689 * java/awt/Window.java: Changed constructors to use new
690 method that is described below. Constructors call this
691 methods only if newly created window should have an owner.
692 (setWindowOwner): New method. Implementation for
693 this method is moved from this(owner,configuration).
694 * javax/swing/JWindow.java:
695 (JWindow): Reimplement to use SwingUtilities.ownerFrame
697 * javax/swing/SwingUtilities.java:
698 (ownerFrame): Change type of this field to OwnerFrame.
699 (getOwnerFrame): Changed to return object of type OwnerFrame.
700 (SwingUtilities.OwnerFrame): New class. Represents owner
701 of a Window that is not provided with one.
703 2004-07-21 Olga Rodimina <rodimina@redhat.com>
705 * javax/swing/AbstractButton.java:
706 (configurePropertiesFromAction): Set action command
707 to button's text by default if action command is not
708 explicitely specified.
709 * javax/swing/JMenu.java: Remove unnecessary listener
710 and methods relevant to it.
711 (setSelected): Reimplemented.
712 (menuSelectionChanged): Moved most part of implementation to
713 setSelected() and call it instead.
714 * javax/swing/JMenuItem.java:
715 (init): Comment out statement that sets paint_border to false.
716 (configurePropertiesFromAction): Do not set accelerator
718 (menuSelectionChanged): Change selected index in the selection
719 model of menu item's parent.
720 * javax/swing/JPopupMenu.java:
721 (remove): Set constraints.fill field to GridBagConstraints.BOTH
722 instead of GridBagConstraints.HORIZONTAL.
724 (createActionChangeListener): Implemented.
725 (setVisible): Correct location of HeavyWeightMenu and
726 don't firePopupMenuCanceled().
727 (menuSelectionChanged): Implemented.
728 (ActionChangeListener): New Listener. Implemented.
729 * javax/swing/plaf/basic/BasicMenuBarUI.java:
730 (BasicMenuBarUI.ContainerHandler): Implemented.
731 * javax/swing/plaf/basic/BasicMenuItemUI.java:
732 (paintMenuItem): Uncommented out code that paints
733 icon, now that icons are working properly.
734 (PropertyChangeListener): Implemented.
735 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
737 (topWindowListener): New field.
738 (Constructor): initialize topWindowListener.
739 (BasicPopupMenuUI.TopWindowListener): Implemented.
740 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
741 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
744 2004-07-21 Michael Koch <konqueror@gmx.de>
746 * javax/swing/plaf/basic/BasicButtonUI.java
747 (paintFocus): Fixed method signature.
748 (paintButtonPressed): Likewise.
749 (paintButtonNormal): Likewise.
750 (paintText): New method.
751 * javax/swing/plaf/basic/BasicLabelUI.java
752 (paint): Re-indented.
753 * javax/swing/plaf/basic/BasicTextUI.java
754 (installUI): Set parent textComponent to opaque.
755 * javax/swing/text/DefaultHighlighter.java
756 (checkPositions): New helper method.
757 (addHighlight): Throws BadLocationException, check positions.
758 (changeHighlight): Likewise.
759 * javax/swing/text/EditorKit.java
760 (EditorKit): Implements Serializable.
761 * javax/swing/text/JTextComponent.java
762 (getUI): Added javadoc.
764 (upadteUI): Added javadoc, don't revalidate and repaint.
766 2004-07-21 David Jee <djee@redhat.com>
768 * java/awt/GridBagLayout.java
769 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
770 * javax/swing/AbstractButton.java
772 * javax/swing/RepaintManager.java
773 (addInvalidComponent): Find the first ancestor that isValidateRoot().
775 2004-07-21 Michael Koch <konqueror@gmx.de>
777 * javax/swing/JFormattedTextField.java
779 (JFormattedTextField): Implemented.
780 (getValue): Likewise.
781 (setValue): Likewise.
782 * javax/swing/LookAndFeel.java
783 (getSupportsWindowDecorations): New method.
784 * javax/swing/UIDefaults.java:
785 Use java.beans.PropertyChangeSupport instead of doing all ourself.
786 (addPropertyChangeListener): Made public.
787 (addResourceBundle): Likewise.
788 (removeResourceBundle): Likewise.
789 (setDefaultLocale): Likewise.
790 * javax/swing/plaf/basic/BasicRootPaneUI.java
791 (BasicRootPaneUI): Implements PropertyChangeListener.
792 (propertyChange): New method.
793 * javax/swing/plaf/basic/BasicTextUI.java
794 (BasicHighlighter): New inner class.
795 (createHighlighter): New method.
796 * javax/swing/plaf/basic/BasicToolBarUI.java
797 (DragWindow): Extends java.awt.Window.
798 * javax/swing/text/JTextComponent.java
799 (getDocument): Removed debug output.
800 * javax/swing/plaf/basic/BasicTextFieldUI.java,
801 javax/swing/text/DefaultHighlighter.java,
802 javax/swing/text/FieldView.java,
803 javax/swing/text/PlainView.java: New files.
804 * Makefile.am: Added new files.
805 * Makefile.in: Regenerated.
807 2004-07-21 Michael Koch <konqueror@gmx.de>
809 * javax/swing/JEditorPane.java
810 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
811 (createEditorKitForContentType): Likewise.
812 * javax/swing/text/DefaultEditorKit.java
813 (serialVersionUID): Added constant field.
814 (EndOfLineStringPropery): Fixed typo.
815 (DefaultEditorKit): New constructor.
816 * javax/swing/text/Segment.java:
817 Import java.text.CharacterIterator.
818 * javax/swing/text/CharacterIterator.java,
819 javax/swing/text/PlainEditorKit.java: Removed.
820 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
821 javax/swing/text/PlainEditorKit.java.
822 * Makefile.in: Regenerated.
824 2004-07-21 Michael Koch <konqueror@gmx.de>
826 * javax/swing/JButton.java,
827 javax/swing/text/DefaultEditorKit.java,
828 javax/swing/text/EditorKit.java,
829 javax/swing/text/Segment.java,
830 javax/swing/text/StyledEditorKit.java:
833 2004-07-21 Michael Koch <konqueror@gmx.de>
835 * javax/swing/ImageIcon.java
837 (description): Renamed from descr.
838 (ImageIcon): Added missing constructors.
839 (setParent): Removed.
840 (setImageObserver): New method.
841 (getImageObserver): New method.
842 (paintIcon): Handle observer = null.
843 * javax/swing/JButton.java
844 (removeNotify): Fixed javadoc.
845 (updateUI): Simplified.
846 * javax/swing/JRootPane.java
847 (serialVersionUID): New constant field.
848 * javax/swing/UIManager.java:
849 Fixed javadocs all over.
850 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
851 * javax/swing/text/AbstractDocument.java
852 (createPosition): Throws BadLocationException.
855 * javax/swing/text/ComponentView.java
856 (modelToView): Likewise.
857 * javax/swing/text/DefaultEditorKit.java:
858 Made all public methods public.
859 (read): Throws BadLocationException and IOException.
861 * javax/swing/text/EditorKit.java:
862 Made all public methods public.
863 (serialVersionUID): New constant field.
865 (read): Throws BadLocationException and IOException.
867 * javax/swing/text/Segment.java
868 (array): Made public.
871 (Segment): New constructors.
872 (clone): Reimplemented.
873 * javax/swing/text/StyledEditorKit.java
874 (serialVersionUID): New constant field.
876 2004-07-21 Graydon Hoare <graydon@redhat.com>
878 * java/awt/image/BufferedImage.java
879 (getSource): Implement.
880 * javax/swing/ImageIcon.java
881 (ImageIcon): Implement ctor.
882 * javax/swing/ScrollPaneLayout.java
883 (preferredLayoutSize): Be more careful about nulls.
885 2004-07-21 Michael Koch <konqueror@gmx.de>
887 * javax/swing/text/AttributeSet.java
888 (CharacterAttribute): New interface
889 (ColorAttribute): Likewise.
890 (FontCharacterAttribute): Likewise.
891 (ParagraphAttribute): Likewise.
892 * javax/swing/text/DefaultCaret.java
893 (moveCaret): New method.
894 (positionCaret): Likewise.
895 (repaint): Made protected.
896 * javax/swing/text/JTextComponent.java
897 (KeyBinding): Made it static.
898 * javax/swing/text/View.java
899 (getContainer): Honor parent == null.
901 2004-07-21 Michael Koch <konqueror@gmx.de>
903 * javax/swing/text/AbstractDocument.java:
906 2004-07-21 Michael Koch <konqueror@gmx.de>
908 * javax/swing/plaf/basic/BasicRootPaneUI.java:
909 Import javax.swing.UIManager explicitely.
910 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
911 (ScrollingButton): Made it static.
913 2004-07-21 Michael Koch <konqueror@gmx.de>
915 * javax/swing/UIDefaults.java
916 (ActiveValue): Made public.
917 (LazyValue): Likewise.
918 * javax/swing/plaf/basic/BasicTextUI.java
919 (RootView): Reintroduced.
921 (rootView): New field.
922 (installUI): Create document if needed, initialize rootView.
923 (uninstallUI): Hanle rootView.
925 (getRootView): Likewise.
927 * javax/swing/text/DefaultCaret.java:
928 Renamed all "evt" variables to "event".
930 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
932 * libgcj.spec.in: Add -l-java-util-logging.
934 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
936 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
937 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
938 gtk-xft-dpi can no calculate the right value.
939 (dpi_changed_cb): Mark *pspec as unsused.
941 2004-07-21 David Jee <djee@redhat.com>
943 * java/awt/Component.java
944 (move): Delegate to setBounds().
946 (reshape): Fix so it repaints parent and self only when necessary.
948 2004-07-21 David Jee <djee@redhat.com>
950 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
951 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
952 (GtkComponentPeer): Revert previous patch from 2004-06-22.
953 (setVisible): Likewise.
957 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
958 (property_notify_predicate): Likewise.
959 (find_layout): Likewise.
960 (connectJObject): Likewise.
961 (connectSignals): Likewise.
962 (moveLayout): Likewise.
963 (gtkLayoutSetVisible): Likewise.
965 2004-07-21 Graydon Hoare <graydon@redhat.com>
971 (rmiregistry_LDADD): Add lib-java-util-logging.la
972 * Makefile.in: Regenerate.
974 2004-07-21 Michael Koch <konqueror@gmx.de>
976 * javax/swing/text/AbstractDocument.java
977 (replace): Dont use protected method of java.util.Vector directly.
979 2004-07-21 Michael Koch <konqueror@gmx.de>
981 * javax/swing/plaf/basic/BasicTextUI.java
982 (installUI): Call specialized install methods.
983 (installDefaults): New method.
984 (installListeners): Likewise.
985 (installKeyboardActions): Likewise.
986 (uninstallUI): Likewise.
987 (uninstallDefaults): New method.
988 (uninstallListeners): Likewise.
989 (uninstallKeyboardActions): Likewise.
990 (getPropertyPrefix): New abstract method.
991 (paint): Made final, just call paintSafely().
992 (paintSavely): New method.
993 (paintBackground): Likewise.
994 (getVisibleEditorRect): Likewise.
995 * javax/swing/text/LayeredHighlighter.java,
996 javax/swing/text/TabExpander.java: New files.
997 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
998 and javax/swing/text/TabExpander.java.
999 * Makefile.in: Regenerated.
1001 2004-07-21 Michael Koch <konqueror@gmx.de>
1003 * javax/swing/plaf/basic/BasicTextUI.java
1004 (BasicTextUI): Made abstract.
1005 (BasicCaret): New inner class.
1006 (view): Don't explicitely initialize with "null".
1007 (textComponent): New field.
1008 (textColor): Removed.
1009 (disabledTextColor): Removed.
1010 (normalBackgroundColor): Removed.
1011 (RootView): Removed commented out inner class.
1012 (createUI): Removed.
1013 (createCaret): New method.
1014 (getComponent): Likewise.
1015 (installUI): Initialize textComponent only.
1016 (getPreferredSize): Use installed JTextComponent.
1017 (setView): New method.
1019 * javax/swing/text/JTextComponent.java
1020 (highlighter): New field.
1021 (caretColor): Likewise.
1022 (disabledTextColor): Likewise.
1023 (seletedTextColor): Likewise.
1024 (selectionColor): Likewise.
1025 (setUI): New method.
1026 (getCaretColor): Likewise.
1027 (setCaretColor): Likewise.
1028 (getDisabledColor): Likewise.
1029 (setDisabledColor): Likewise.
1030 (getSelectedTextColor): Likewise.
1031 (setSelectedTextColor): Likewise.
1032 (getSelectionColor): Likewise.
1033 (setSelectionColor): Likewise.
1034 (getHighlighter): Likewise.
1035 (setHighlighter): Likewise.
1036 (replaceSelection): Likewise.
1038 2004-07-21 Michael Koch <konqueror@gmx.de>
1040 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1041 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1042 * javax/swing/plaf/basic/BasicToolBarUI.java
1043 (BasicToolBarUI): Implements SwingConstants.
1045 2004-07-21 Michael Koch <konqueror@gmx.de>
1047 * javax/swing/JPopupMenu.java: Removed CVS tags.
1048 * javax/swing/UIDefaults.java: Reformatted.
1049 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1050 Explicitely import used classes.
1052 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1054 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1055 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1056 (GtkComponentPeer): Remove temporary try/catch block.
1057 (setVisible): Call show and hide.
1058 (show): Make native.
1060 (getArgs): Don't add "visible" argument.
1061 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1062 (property_notify_predicate): Return Bool instead of int.
1063 (find_layout): New function.
1064 (connectJObject): Call find_layout.
1065 (connectSignals): Likewise.
1066 (moveLayout): Likewise.
1067 (gtkLayoutSetVisible): Likewise.
1069 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1071 * javax/swing/AbstractButton.java:
1072 (setDisplayedMnemonicIndex): Check if button
1073 text is not null before checking its length.
1074 * javax/swing/JMenuItem.java:
1075 (processMouseEvent): Disarm menu item if mouse has
1077 * javax/swing/plaf/basic/BasicMenuUI.java:
1078 (MouseInputHandler.mouseEntered): Do not raise
1079 popup menu if this menu is already selected.
1080 (MouseInputHandler.mousePressed): Do not fire
1082 (MenuHandler): Implemented.
1084 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1086 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1087 (getSelectedObjects): Implemented.
1088 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1089 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1090 Added javadoc for few methods.
1091 (processMouseEvent): Made public.
1092 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1093 (processMouseEvent): Likewise.
1095 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1097 * javax/swing/AbstractButton.java:
1098 (init): Set display mnemonic index to -1.
1099 (setMnemonic(char)): Use setMnemonic(int).
1100 (setMnemonic(int)): Set display mnemonic index.
1101 (getDisplayedMnemonicIndex): Change method signature
1102 by removing 'index' parameter.
1103 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1104 Added default for Menu.selectionBackground.
1105 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1106 (paintMenuItem): Change background color of the selected
1108 (paintText): Paint differently when menu item is disabled.
1109 Also paint mnemonic if it appears in the menu item's label.
1110 (paintAccelerator): Paint accelerator differently
1111 if menu item is disabled.
1112 * javax/swing/plaf/basic/BasicMenuUI.java:
1113 (installDefaults): Install defaults for
1114 selectionForeground and selectionBackground.
1115 (uninstallDefaults): Uninstall defauls for
1116 selectionForeground and selectionBackground.
1118 2004-07-21 Michael Koch <konqueror@gmx.de>
1120 * javax/swing/text/AbstractDocument.java
1121 (BranchElement): Implemented.
1122 (LeafElement): Implemented.
1123 * javax/swing/text/DefaultCaret.java:
1124 Import used classes.
1125 (serialVersionUID): New constant.
1126 * javax/swing/text/JTextComponent.java
1127 (AccessibleJTextComponent): Removed dead declaration.
1128 (caretPos): Removed.
1129 (setCaret): New method.
1130 * javax/swing/text/PlainDocument.java
1131 (rootElement): New field.
1132 (PlainDocument): Initialize rootElement.
1133 (createDefaultRoot): New method.
1134 (getDefaultRootElement): Implemented.
1135 * javax/swing/text/View.java: Reformatted.
1136 * javax/swing/text/ViewFactory.java
1137 (create): Added javadoc.
1139 2004-07-21 Michael Koch <konqueror@gmx.de>
1141 * javax/swing/ToolTipManager.java: Reformatted.
1143 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1145 * javax/swing/AbstractButton.java
1146 (changeEvent): New field.
1147 (fireItemStateChanged): Change source of the event
1148 to 'this' before firing it to button listeners.
1149 (fireActionPerformed): Likewise.
1150 (fireStateChanged): Likewise.
1151 (createActionListener): Do not set source
1152 of the event to AbstractButton.
1153 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1154 (ContainerHandler.componentAdded): Removed
1155 print out statement.
1156 (ContainerHandler.componentRemoved): Likewise.
1158 2004-07-21 Michael Koch <konqueror@gmx.de>
1160 * javax/swing/text/Highlighter.java: New file.
1161 * Makefile.am: Added javax/swing/text/Highlighter.java.
1162 * Makefile.in: Regenerated.
1164 2004-07-21 Michael Koch <konqueror@gmx.de>
1166 * javax/swing/ToolTipManager.java
1167 (stillInsideTimerAction): Fixed constructor arguments.
1168 (outsideTimerAction): Likewise.
1169 (insideTimerAction): Likewise.
1171 2004-07-21 Michael Koch <konqueror@gmx.de>
1173 * javax/swing/JButton.java: Reformatted.
1174 * javax/swing/JFormattedTextField.java
1175 (getUIClassID): Implemented.
1176 * javax/swing/JRootPane.java
1177 (serialVersionUID): New constant.
1178 * javax/swing/JTextField.java
1180 (JTextField): Simplified.
1181 (getUIClassID): New method.
1182 (getActionListeners): Added @since tag.
1183 (setColumns): Invalidate layout and repaint.
1184 (getHorizontalAlignment): New method.
1185 (setHorizontalAlignment): New method.
1186 (selectAll): Removed.
1187 * javax/swing/SwingUtilities.java
1188 (getAncestorOfClass): Removed redundant @see tag.
1189 (isLeftMouseButton): Fixed implementation.
1190 (isMiddleMouseButton): Likewise.
1191 (isRightMouseButton): Likewise.
1192 * javax/swing/text/AbstractDocument.java
1193 (AttributeContext.addAttribute): New method.
1194 (AttributeContext.addAttributes): New method.
1195 (AttributeContext.getEmptySet): New method.
1196 (AttributeContext.reclaim): New method.
1197 (AttributeContext.removeAttribute): New method.
1198 (AttributeContext.removeAttributes): New method.
1199 * javax/swing/text/Document.java
1200 (createPosition): Throws BadLocationException.
1201 (getText): Likewise.
1203 * javax/swing/text/JTextComponent.java
1204 (getText): Return null if no document is set. Catch
1205 BadLocationException.
1207 (updateUI): Simplified.
1209 2004-07-21 Michael Koch <konqueror@gmx.de>
1211 * javax/swing/JButton.java
1212 (removeNotify): Fixed javadoc.
1213 (updateUI): Simplified.
1215 2004-07-21 David Jee <djee@redhat.com>
1217 * gnu/java/awt/image/ImageDecoder.java
1218 (startProduction): Only add consumer if it's not added yet.
1219 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1220 (GdkPixbufDecoder): Don't call initState() here.
1221 (produce): Call initState() here, to ensure area_prepared and
1222 area_updated signals are properly connected.
1223 * gnu/java/awt/peer/gtk/GtkImage.java
1224 (setColorModel): Use equals() to compare ColorModel objects.
1225 (setPixels): Likewise.
1226 * java/awt/image/ColorModel.java
1227 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1228 * java/awt/image/RGBImageFilter.java
1229 (setColorModel): Set consumer's color model.
1230 (setPixels): Use equals() to compare ColorModel objects.
1232 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1234 * java/net/URLConnection.java (position): New field.
1235 (dateFormat1, dateFormat2, dateFormat3): Removed.
1236 (dateFormats): New field.
1237 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1238 each time instead of re-allocating.
1239 (initializeDateFormats): Initialize 'dateFormats'.
1241 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1244 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1247 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1249 * java/net/Socket.java (getImpl): Now private. Remove comment.
1251 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1253 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1254 of chained Writer when calling super-constructor.
1255 * java/io/FilterWriter.java (FilterWriter): Likewise.
1256 * java/io/PrintWriter.java (PrintWriter): Likewise.
1258 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1260 * prims.cc (process_gcj_properties): Don't increment i within LHS
1263 2004-07-19 Per Bothner <per@bothner.com>
1265 Print -verbose:message on "loading", not initialization.
1266 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1267 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1268 gcj::verbose_class_flag.
1269 * java/lang/natClass.cc (initializeClass): Don't print message here.
1270 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1271 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1272 (_Jv_PrepareCompiledClass): Likewise.
1274 2004-07-18 Matthias Klose <doko@debian.org>
1276 * configure.in: Substitute target_noncanonical.
1277 * configure: Regenerate
1279 2004-07-17 Michael Koch <konqueror@gmx.de>
1281 * java/lang/String.java: Fixed javadocs all over.
1283 2004-07-17 Mark Wielaard <mark@klomp.org>
1285 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1286 when size is smaller.
1287 * java/io/RandomAccessFile.java (setLength): Use truncate for
1288 shrinking the file and seek plus write for expanding the file.
1290 2004-07-17 Michael Koch <konqueror@gmx.de>
1292 * gnu/java/nio/channels/natFileChannelPosix.cc
1293 (implTruncate): Always save current position. Only reposition file
1294 pointer to where we started if not beyond new lenght. Reposition file
1295 pointer to file length if it points beyond the end of file.
1297 2004-07-17 Mark Wielaard <mark@klomp.org>
1299 * javax/swing/Box.java: Put FIXME comment above class declaration.
1300 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1301 * javax/swing/JCheckBox.java: Likewise.
1302 * javax/swing/JDialog.java: Likewise.
1303 * javax/swing/JRadioButton.java: Likewise.
1304 * javax/swing/JToggleButton.java: Likewise.
1305 * javax/swing/UIManager.java: Likewise.
1306 * javax/swing/border/TitledBorder.java: Likewise.
1307 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1308 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1309 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1310 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1311 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1312 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1313 * javax/swing/text/JTextComponent.java: Likewise.
1315 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1317 * java/net/DatagramPacket.java (setAddress): Removed check for
1320 2004-07-17 Michael Koch <konqueror@gmx.de>
1322 * java/net/DatagramSocket.java
1323 (getLocalAddress): Check if socket is bound or not.
1324 * java/net/Socket.java
1325 (getLocalAddrss): Check if socket is bound or not.
1326 (getPort): Return -1 when not connected. Dont check getImpl() for
1328 (setReuseAddress): Check if socket is closed.
1329 (isConnected): Check if getImpl() returns null.
1331 2004-07-17 Mark Wielaard <mark@klomp.org>
1333 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1334 on notifier object before calling notifyAll().
1336 2004-07-17 Michael Koch <konqueror@gmx.de>
1338 * gnu/java/nio/channels/FileChannelImpl.java
1339 (finalize): Added javadoc.
1341 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1343 * java/text/CollationElementIterator.java
1344 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1345 (setText): Use ArrayList instead of Vector.
1347 2004-07-17 Michael Koch <konqueror@gmx.de>
1349 * java/nio/ByteOrder.java
1350 (static): Removed. Not needed.
1351 Thanks to Patrick Reali for noticing.
1352 * java/nio/charset/CharsetDecoder.java
1353 (decode): Fix for classpath bug #9177: Reset state before flipping.
1355 2004-07-17 Michael Koch <konqueror@gmx.de>
1357 * java/security/Security.java: Fixed javadocs all over.
1359 2004-07-17 Michael Koch <konqueror@gmx.de>
1361 * gnu/java/awt/EmbeddedWindow.java
1363 (addNotify): Set peer via reflection.
1364 (setWindowPeer): Removed.
1365 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1366 * Makefile.am (nat_source_files):
1367 Removed gnu/java/awt/natEmbeddedWindow.cc.
1368 * Makefile.in: Regenerated.
1370 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1372 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1374 * configure: Regenerated.
1376 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1378 * configure.in: Use build_noncanonical rather than build_alias.
1379 * configure: Rebuild.
1381 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1382 by logic refactoring. Move default definition of NATIVE closer
1383 to first alternate definition.
1384 * configure: Regenerate.
1386 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1387 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1388 gcj/Makefile.in: Regenerate.
1389 * configure.in: Set ZIP and GCJH. Remove redundant condition
1390 in AM_CONDITIONAL(NATIVE,...)
1391 * configure: Regenerate.
1393 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1395 * configure.in: Use target_noncanonical rather than
1396 target_alias for forward-compatibility with autoconf 2.59.
1397 * configure: Regenerate.
1398 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1399 testsuite/Makefile.am: Substitute target_noncanonical.
1400 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1401 testsuite/Makefile.in: Regenerate.
1403 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1404 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1405 * acinclude.m4: Include acx.m4.
1406 * aclocal.m4: Regenerate.
1407 * configure: Regenerate.
1409 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1412 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1413 (decimalFormat): New static variable.
1415 (getTime): New. Override Date.getTime().
1416 (toString): Synchronize. Use decimalFormat to format nanos value
1417 correctly. Truncate extra zeros.
1418 (before): Compare getNanos() only if getTime() is equal.
1421 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1423 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1424 * configure.in: ...here.
1425 * aclocal.m4: Regenerate.
1426 * configure: Regenerate.
1428 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1429 * configure: Rebuilt with autoconf 2.13.
1430 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1431 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1433 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1436 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1438 * Makefile.in: Rebuilt.
1439 * testsuite/libjava.lang/LargeFile.java: New test case.
1440 * testsuite/libjava.lang/LargeFile.out: New file.
1442 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1444 * java/beans/EventHandler.java: Remove debugging statements.
1446 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1448 * java/beans/EventHandler.java: New file.
1449 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1450 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1451 testsuite/Makefile.in: Regenerate.
1453 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1455 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1456 flag to the gcj_setup.
1457 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1459 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1460 deprecation flag change. 58 XFAILS removed.
1462 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1464 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1465 -fno-use-divide-subroutine.
1466 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1467 (HANDLE_FPE): Define.
1468 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1469 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1470 (HANDLE_DIVIDE_OVERFLOW): Define.
1472 2004-07-14 Michael Koch <konqueror@gmx.de>
1473 Matthias Klose <doko@debian.org>
1475 * java/awt/im/InputContext.java: Initialize in, line.
1477 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1479 * interpret.cc (run): Correctly access libffi return values of
1480 integral smaller-than-int type; these are implicitly promoted.
1482 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1485 * interpret.cc (compile_mutex): New.
1486 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1487 (run): Lock compile_mutex before calling compile() if compilation is
1489 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1490 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1492 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1495 * include/jvm.h (_Jv_value): New union type.
1496 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1497 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1500 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1502 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1503 * gnu/awt/xlib/XOffScreenImage.java
1504 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1505 constructor argument. Add constructor using ImageProducer.
1506 (getSource): Implement.
1507 (imageComplete): New method.
1508 (setColorModel): New method.
1509 (setDimensions): New method.
1510 (setHints): New method.
1511 (setPixels): New method.
1512 (setProperties): New method.
1513 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1514 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1516 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1519 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1520 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1521 (finalizerReady): Now native.
1523 (runFinalizers): Removed.
1524 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1525 a primitive lock, and don't hold it while running the finalizers.
1526 (runFinalizers): Implement. Don't aquire any Java lock.
1527 (finalizerReady): Use lock primitives to signal finalizer thread.
1529 2004-07-11 Mark Wielaard <mark@klomp.org>
1531 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1532 * java/net/URLStreamHandler.java (parseURL): When url file part
1533 doesn't contain a '/' just ignore context.
1535 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1537 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1538 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1539 (MAKE_THROW_FRAME): Do not modify PSW address.
1540 (INIT_SEGV): Install SIGINFO-style signal handler.
1541 (INIT_FPE): Likewise.
1543 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1545 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1546 status. 21 xfail's removed, 1 added.
1548 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1550 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1552 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1554 * java/text/MessageFormat.java
1555 (formatInternal): Append "{n}" if argument n is unavailable.
1556 (format(Object, StringBuffer, FieldPosition)): This
1557 should be equivalent to format(Object[],
1558 StringBuffer, FieldPosition).
1560 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1562 * java.util.Calendar.java (cache): New private static field. Cached
1563 mappings of locales->calendar classes.
1564 (ctorArgTypes): New private static field. Singleton argument for
1565 calendar class constructor lookup.
1566 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1567 Optimize by bypassing reflection instantiation for the
1568 GregorianCalendar case.
1570 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1572 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1573 ResourceBundle.getBundle() calls.
1574 * java/util/GregorianCalendar.java: Likewise.
1575 * java/util/Currency.java: Likewise.
1576 * java/text/BreakIterator.java: Likewise.
1577 * java/text/Collator.java: Likewise.
1578 * java/text/DateFormat.java: Likewise.
1579 * java/text/DateFormatSymbols.java: Likewise.
1580 * java/text/DecimalFormatSymbols.java: Likewise.
1581 * java/text/NumberFormat.java: Likewise.
1582 * java/awt/Window.java: Likewise.
1584 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1586 * java/util/ResourceBundle.java (bundleCache): Renamed from
1587 resourceBundleCache. Update comments.
1588 (getObject): Don't catch MissingResourceException.
1589 (getBundle(String)): Remove 'final'. Use system classloader if
1590 getCallingClassLoader returned null.
1591 (getBundle(String, Locale)): Likewise.
1592 (BundleKey): New private class. HashMap key for bundle cache lookup.
1593 (lookupKey): New. Singleton instance of BundleKey.
1594 (nullEntry): New. Cache entry to represent failed lookups.
1595 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1596 caching strategy, no-allocation lookup, and new tryBundle methods.
1597 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1598 name using given classloader.
1599 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1600 baseName for given Locale and attempt to load bundle.
1602 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1604 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1605 illegal protected method calls.
1607 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1609 Fix or remove some bogus test cases.
1610 * testsuite/libjava.compile/pr10459_2.java: Removed.
1611 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1613 * testsuite/libjava.compile/inner_data.java: Test against its own
1616 2004-07-09 Michael Koch <konqueror@gmx.de>
1618 * scripts/unicode-muncher.pl: Updated to version 2.1
1619 from GNU classpath. Added some clarifications on where to find the
1620 needed files from www.unicode.org.
1621 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1622 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1623 Removed, these can directly be downloaded from www.unicode.org if
1625 * gnu/java/lang/CharData.java: Regenerated.
1626 * include/java-chartables.h: Regenerated.
1627 * Makefile.am (ordinary_java_source_files):
1628 Removed gnu/java/lang/CharData.java.
1629 * Makefile.in: Regenerated.
1631 2004-07-09 Michael Koch <konqueror@gmx.de>
1633 * java/security/AccessControlContext.java,
1634 java/security/SecureClassLoader.java:
1637 2004-07-09 Michael Koch <konqueror@gmx.de>
1639 * java/io/ObjectInputStream.java (readFields): Use long datatype
1640 when shifting byte values more then 24 bits left.
1642 2004-07-09 Michael Koch <konqueror@gmx.de>
1644 * java/util/zip/DeflaterOutputStream.java,
1645 java/util/zip/GZIPInputStream.java,
1646 java/util/zip/GZIPOutputStream.java,
1647 java/util/zip/InflaterInputStream.java:
1648 Reformatted. Added javadocs. Reordered all stuff.
1649 Renamed variables to be more clear.
1651 2004-07-09 Michael Koch <konqueror@gmx.de>
1653 * javax/imageio/IIOException.java,
1654 javax/imageio/event/IIOReadProgressListener.java,
1655 javax/imageio/event/IIOReadUpdateListener.java,
1656 javax/imageio/event/IIOReadWarningListener.java,
1657 javax/imageio/event/IIOWriteProgressListener.java,
1658 javax/imageio/event/IIOWriteWarningListener.java:
1660 * Makefile.am: Added new files.
1661 * Makefile.in: Regenerated.
1663 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1665 * java/text/RuleBasedCollator.java
1666 (mergeRules): Use ArrayList instead of Vector.
1667 (subParseString): likewise.
1668 (parseString): likewise.
1669 (buildCollationVector): likewise.
1670 (getCollationKey): likewise.
1672 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1674 * java/text/DateFormat.java (parse):
1675 Improved javadoc. Improved exception message.
1677 2004-07-09 Mark Wielaard <mark@klomp.org>
1679 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1680 interrupted() method to clear interupt flag of our Thread.
1682 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1684 * java/nio/Buffer.java,
1685 java/nio/ByteBuffer.java,
1686 java/nio/ByteBufferHelper.java,
1687 java/nio/ByteBufferImpl.java,
1688 java/nio/CharBuffer.java,
1689 java/nio/CharBufferImpl.java,
1690 java/nio/CharViewBufferImpl.java,
1691 java/nio/DirectByteBufferImpl.java,
1692 java/nio/DoubleBuffer.java,
1693 java/nio/DoubleBufferImpl.java,
1694 java/nio/DoubleViewBufferImpl.java,
1695 java/nio/FloatBuffer.java,
1696 java/nio/FloatBufferImpl.java,
1697 java/nio/FloatViewBufferImpl.java,
1698 java/nio/IntBuffer.java,
1699 java/nio/IntBufferImpl.java,
1700 java/nio/IntViewBufferImpl.java,
1701 java/nio/LongBuffer.java,
1702 java/nio/LongBufferImpl.java,
1703 java/nio/LongViewBufferImpl.java,
1704 java/nio/MappedByteBufferImpl.java,
1705 java/nio/ShortBuffer.java,
1706 java/nio/ShortBufferImpl.java,
1707 java/nio/ShortViewBufferImpl.java:
1708 Fixed javadocs all over. Improved input error
1711 * java/nio/Buffer.java
1712 (checkForUnderflow, checkForOverflow, checkIndex,
1713 checkIfReadOnly, checkArraySize): New helper methods
1716 * java/nio/ByteBufferHelper.java
1717 (checkRemainingForRead, checkRemainingForWrite,
1718 checkAvailableForRead, checkAvailableForWrite): Removed
1719 no longer needed methods.
1721 2004-07-09 Michael Koch <konqueror@gmx.de>
1723 * gnu/regexp/CharIndexedInputStream.java:
1724 Reordered imports to match classpath.
1726 2004-07-09 Michael Koch <konqueror@gmx.de>
1728 * gnu/java/awt/EmbeddedWindow.java:
1729 Load native library for setWindowPeer method.
1731 2004-07-08 Randolph Chung <tausq@debian.org>
1733 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
1734 * configure: Regenerate.
1735 * configure.host: Set can_unwind_signal for hppa*-linux.
1736 * include/pa-signal.h: New file.
1738 2004-07-07 Per Bothner <per@bothner.com>
1740 * Makefile.am: Add rules to build libgij from just gij.cc.
1742 * include/jvm.h (namespace jcj): Declare verbose_class_flag
1743 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
1744 (initializeClass): If verbose_class_flag, print message.
1745 * gij.cc (main): Handle -verbose:class flag.
1747 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
1749 * configure.host: Enable hash synchronization on Darwin.
1750 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
1751 ';', since this is a comment on Darwin.
1752 (compare_and_swap_release): Likewise.
1754 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
1756 * java/net/URLStreamHandler.java (parseURL): Canonicalize
1757 file portion of URL in addition to spec for file: protocol.
1759 2004-07-05 Anthony Green <green@redhat.com>
1761 * java/io/File.java (toURI): Merge from Classpath.
1763 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1765 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
1766 before passing to URL constructor. Rethrow any MalformedURLException
1767 as a RuntimeException. Catch MalformedURLException specifically, not
1770 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1772 * java/util/Locale.java (readObject): Intern strings read from object
1775 2004-07-04 Michael Koch <konqueror@gmx.de>
1777 * gnu/gcj/runtime/FirstThread.java,
1778 gnu/gcj/runtime/natFirstThread.cc: Removed.
1779 * gnu/java/lang/MainThread.java,
1780 gnu/java/lang/natMainThread.cc: New files.
1781 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
1782 * Makefile.am: Added new files and removed deleted ones.
1783 * Makefile.in: Regenerated.
1785 2004-07-03 Mark Wielaard <mark@klomp.org>
1786 Anthony Green <green@redhat.com>
1788 * java/net/URL.java (getFile): Clarify return value doc.
1789 (getPath): Return null if file is empty - not empty String.
1790 (set): Convert protocol to lower case before doing anything.
1791 Only change the protocol handler if it's different.
1793 2004-07-03 Anthony Green <green@redhat.com>
1795 * java/net/URL.java (URL): Convert protocol to lower case before
1796 doing anything, so we getURLStreamHandler() with the proper value.
1798 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
1800 * java/util/Locale.java (hashcode): Made transient.
1801 (hashCode): No longer synchronized.
1802 (equals): Remove comment.
1803 (writeObject): No longer synchronized. Implement using writeObject
1804 calls instead of tweaking hashCode field. Update doc.
1805 (readObject): Implement using readObject calls.
1807 2004-06-26 Geoffrey Keating <geoffk@apple.com>
1808 Andreas Tobler <a.tobler@schweiz.ch>
1810 * configure.host (powerpc-*-darwin*): New case, define
1812 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
1813 * configure: Regenerate.
1814 * include/darwin-signal.h: New.
1816 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
1818 * java/beans/Statement.java (doExecute): Fix formatting.
1820 2004-06-29 Per Bothner <per@bothner.com>
1822 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
1823 etc etc): Remove needless parenthesis, which causes __stdcall__
1824 attribute on MinGW to get ignored.
1826 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
1828 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
1830 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
1832 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
1834 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
1836 * java/beans/Expression.java: New file.
1837 * java/beans/Statement.java: New file.
1838 * Makefile.am: Added new files.
1839 * Makefile.in: Re-generate.
1841 2004-06-27 Mark Wielaard <mark@klomp.org>
1843 * java/io/FilePermission.java (usingPerms): Removed.
1844 (actionsString): Made final.
1845 (cachePerms): Renamed to checkPerms.
1846 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
1848 (FilePermission): Check arguments, call checkPerms().
1849 (equals): Remove cachePerms() call.
1850 (implies): Likewise.
1852 2004-06-27 Mark Wielaard <mark@klomp.org>
1854 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
1856 (sendRequest): Use new field in user-agent http agent.
1858 2004-06-27 Mark Wielaard <mark@klomp.org>
1860 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1861 when argument is null.
1863 2004-06-26 Mark Wielaard <mark@klomp.org>
1865 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1866 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
1868 (cancel_clicked): Likewise.
1870 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
1872 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1873 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
1874 can not calculate the right value.
1875 (dpi_changed_cb): Likewise. Mark *pspec as unused.
1877 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
1879 * testsuite/libjava.jacks/jacks.xfail: Remove
1880 15.9.1-qualified-concrete-20.
1882 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
1884 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
1885 encoding name to iconv.
1886 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
1888 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
1891 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
1892 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
1893 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
1895 2004-06-21 Andrew Haley <aph@redhat.com>
1897 * java/io/ObjectOutputStream.java: Add DEBUG statements
1899 (dumpElementln): New method.
1901 * java/io/ObjectInputStream.java
1902 (currentClassLoader): Make native.
1903 (callersClassLoader): New field.
1905 (readObject): ENDBLOCKDATA is generated if the class has a write
1906 method, not if it has a read method.
1907 (readObject): Save and restore this.currentObject and
1908 this.currentObjectStreamClass around calls to callReadMethod().
1909 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
1912 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
1914 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
1917 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
1919 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
1920 if desired, before the default class loader is initialised.
1921 Call INIT_SEGV only if HANDLE_SEGV is defined.
1923 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
1925 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
1926 directory only if it actually exists.
1928 2004-06-18 Graydon Hoare <graydon@redhat.com>
1930 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
1931 Fix up non-ansi comments.
1933 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
1935 * javax/swing/text/AbstractDocument.java: Adding missing import
1936 for javax.swing.event.EventListenerList.
1937 * javax/swing/text/DefaultCaret.java: Likewise.
1939 2004-06-17 Michael Koch <konqueror@gmx.de>
1941 * javax/swing/JToolBar.java
1943 (JToolBar): Use Component.setName(String) instead of doing it all
1945 * javax/swing/Timer.java
1946 (queueEvent): Added missing modifier.
1948 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
1950 * Makefile.am: Added new file.
1951 * Makefile.in: Re-generate.
1952 * javax/swing/JMenu.java:
1953 (insertSeparator): Implemented.
1954 * javax/swing/JPopupMenu.java:
1955 (JPopupMenu.Separator): Implemented.
1956 * javax/swing/MenuSelectionManager.java:
1957 (processMouseEvent): Use java.awt.Component
1958 for event source instead of javax.swing.JComponent.
1959 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
1960 New File. Implemented.
1962 2004-06-16 David Jee <djee@redhat.com>
1964 * java/awt/GridBagLayout.java
1965 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
1966 Make sure pos_x and pos_y are never negative.
1968 2004-04-16 Andrew Overholt <overholt@redhat.com>
1970 * Makefile.am: Add new file.
1971 * Makefile.in: Re-generate.
1972 * javax/swing/JToolBar.java
1973 Partially implemented.
1974 * javax/swing/plaf/basic/BasicToolBarUI.java
1975 New file. Partially implemented.
1977 2004-06-16 Graydon Hoare <graydon@redhat.com>
1979 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1980 (setComposite): Accept AlphaComposite arguments.
1981 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1982 (createBufferedImage): Add new overloads.
1983 * gnu/java/awt/peer/gtk/GtkToolkit.java
1984 (createImage): Use GdkPixbufDecoder.createBufferedImage
1985 when useGraphics2D() is true.
1986 (getImage): Delegate to createImage.
1987 * javax/swing/JList.java
1989 (getFirstVisibleIndex):
1990 (getLastVisibleIndex):
1992 (ensureIndexIsVisible): New methods.
1993 * javax/swing/Timer.java: Reimplement.
1995 2004-06-16 Michael Koch <konqueror@gmx.de>
1997 * javax/swing/text/AbstractDocument.java
1998 (AbstracElement): Made public, implements java.io.Serializable.
1999 (AttributeContext): Made public.
2000 (BranchElement): Likewise.
2001 (Content): Likewise.
2002 (DefaultDocumentEvent): Made public, extends
2003 javax.swing.undo.CompoundEdit.
2004 (ElementEdit): Made public, extends
2005 javax.swing.undo.AbstractUndoableEdit.
2006 (LeafElement): Made public.
2007 (LeafElement.LeafElement): Made public.
2009 2004-06-16 Michael Koch <konqueror@gmx.de>
2011 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2012 methods (that were obviously never be intended to get included hi this
2013 class. Added some methods too.
2015 2004-06-16 Michael Koch <konqueror@gmx.de>
2017 * javax/swing/text/PlainDocument.java
2018 (serialVersionUID): New constant.
2019 (lineLimitAttribute): Likewise.
2020 (tabSizeAttribute): Likewise.
2021 (tabSize): New field.
2022 (PlainDocument): Made public.
2023 (PlainDocument): New constructor.
2025 2004-06-16 Michael Koch <konqueror@gmx.de>
2027 * javax/swing/text/AbstractDocument.java
2028 (insertString): Throws BadLocationException.
2029 * javax/swing/text/Document.java
2030 (insertString): Likewise.
2031 * javax/swing/text/JTextComponent.java:
2032 Javadocs and comments cleaned up.
2034 2004-06-16 Michael Koch <konqueror@gmx.de>
2036 * javax/swing/event/UndoableEditListener.java: Reformatted.
2037 * javax/swing/text/AbstractDocument.java
2038 (AbstractDocument): Implements java.io.Serializable.
2039 (doc_list): Removed.
2040 (undo_list): Removed.
2041 (AbstractElement.serialVerionUID): New field.
2042 (BranchElement.serialVerionUID): Likewise.
2043 (DefaultDocumentEvent.serialVerionUID): Likewise.
2044 (ElementEdit.serialVerionUID): Likewise.
2045 (LeafElement.serialVerionUID): Likewise.
2046 (serialVerionUID): Likewise.
2047 (BAD_LOCATION): New constant.
2048 (BidiElementName): Likewise.
2049 (ContentElementName): Likewise.
2050 (ParagraphElementName): Likewise.
2051 (SectionElementName): Likewise.
2052 (ElementNameAttribute): Likewise.
2053 (AbstractDocument): Made protected.
2054 (AbstractDocument): New construtor.
2055 (listenerList): New field.
2056 (fireChangedUpdate): Implemented.
2057 (fireInsertUpdate): Likewise.
2058 (fireRemoveUpdate): Likewise.
2059 (fireUndoableEditUpdate): Likewise.
2060 (getListeners): Likewise.
2061 (addDocumentListener): Likewise.
2062 (removeDocumentListener): Likewise.
2063 (addUndoableEditListener): Likewise.
2064 (removeUndoableEditListener): Likewise.
2065 (getDocumentListeners): New method.
2066 (getUndoableEditListeners): Likewise.
2067 (getAsynchronousLoadPriority): Made public.
2068 (getBidiRootElement): Likewise.
2069 (setAsynchronousLoadPriority): Likewise.
2070 (setDocumentProperties): Likewise.
2071 * javax/swing/text/BadLocationException.java
2072 (serialVerionUID): New field.
2073 * javax/swing/text/DefaultCaret.java
2074 (changeEvent): New field.
2075 (listenerList): Likewise.
2077 (addChangeListener): Reimplemented.
2078 (removeChangeListener): Likewise.
2079 (getListeners): New method.
2080 (getChangeListeners): Likwise.
2081 (getComponent): Likewise.
2082 * javax/swing/text/GapContent.java
2083 (GapContent): Implements java.io.Serializable.
2084 (serialVerionUID): New field.
2086 2004-06-16 Michael Koch <konqueror@gmx.de>
2088 * javax/swing/JTree.java
2089 (treeModel): New field.
2090 (JTree): New constructors, one existing one made public.
2091 (createTreeModel): New method.
2092 (addTreeExpansionListener): Likewise.
2093 (removeTreeExpansionListener): Likewise.
2094 (getTreeExpansionListeners): Likewise.
2095 (fireTreeCollapsed): Likewise.
2096 (fireTreeExpanded): Likewise.
2097 (addTreeSelectionListener): Likewise.
2098 (removeTreeSelectionListener): Likewise.
2099 (getTreeSelectionListeners): Likewise.
2100 (fireValueChanged): Likewise.
2101 (addTreeWillExpandListener): Likewise.
2102 (removeTreeWillExpandListener): Likewise.
2103 (getTreeWillExpandListeners): Likewise.
2104 (fireTreeWillCollapse): Likewise.
2105 (fireTreeWillExpand): Likewise.
2107 2004-06-16 Michael Koch <konqueror@gmx.de>
2109 * javax/swing/JTree.java: Reformatted.
2111 2004-06-16 Michael Koch <konqueror@gmx.de>
2113 * javax/swing/JTextArea.java: New file.
2114 * javax/swing/JTextField.java
2116 (notifyAction): New constant.
2117 (columns): New field.
2118 (JTextField): New constructors.
2119 (createDefaultModel): New method.
2120 (addActionListener): Reimplmemented.
2121 (removeActionListener): Reimplemented.
2122 (getActionListeners): New method.
2123 (fireActionPerformed): New method.
2124 (getColumns): New method.
2125 (setColumne): New method.
2126 * javax/swing/text/JTextComponent.java
2127 (AccessibleJTextComponent.serialVersionUID): New field.
2128 (serialVersionUID): Likewise.
2129 (DEFAULT_KEYMAP): Likewise.
2130 (FOCUS_ACCELERATOR_KEY): Likewise.
2131 (doc): Made private.
2132 (icon_gap): Likewise.
2135 (JTextComponent): Some constructors removed.
2136 (getScrollableTracksViewportHeight): New method.
2137 (getScrollableTracksViewportWidth): Likewise.
2138 * Makefile.am: Added javax/swing/JTextArea.java.
2139 * Makefile.in: Regenerated.
2141 2004-06-15 Graydon Hoare <graydon@redhat.com>
2143 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2144 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2145 * javax/swing/JViewport.java
2146 (getExtentSize): Return size rather than preferred size.
2147 (toViewCoordinates): New methods.
2148 (getViewSize): Return size rather than preferred size.
2149 (setViewSize): Note view size as set.
2150 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2151 * javax/swing/plaf/basic/BasicScrollBarUI.java
2152 (getPreferredSize): Don't redo layout.
2153 * javax/swing/plaf/basic/BasicViewportUI.java
2154 (paint): Translate image properly and eat exceptions.
2156 2004-06-15 Kim Ho <kho@redhat.com>
2158 * javax/swing/JTabbedPane.java
2159 (setComponent): Remove old component and
2161 (setSelectedIndex): Don't operate on the
2162 components if they're null. Don't set index
2163 on the model if the index is the same.
2164 (insertTab): Don't add or hide the component
2165 if it's null. Repaint the container.
2166 * javax/swing/plaf/basic/BasicLookAndFeel.java
2167 Change colors for TabbedPane.
2168 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2169 (mousePressed): Re-layout and paint the component.
2170 (layoutContainer): Don't set location on the view.
2171 (ScrollingViewport::paint): Remove.
2173 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2175 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2176 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2178 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2179 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2180 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2182 (drawLine): Call gdk_flush before leaving GDK critical region.
2183 (fillRect): Likewise.
2184 (drawRect): Likewise.
2185 (copyArea): Likewise.
2186 (copyPixmap): Likewise.
2187 (clearRect): Likewise.
2188 (drawArc): Likewise.
2189 (drawPolyline): Likewise.
2190 (drawPolygon): Likewise.
2191 (fillPolygon): Likewise.
2192 (fillArc): Likewise.
2193 (drawOval): Likewise.
2194 (fillOval): Likewise.
2196 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2198 (GdkFontMetrics): Add style argument to initState call.
2199 (stringWidth(String,int,int,String)): Add style parameter.
2200 (stringWidth(String)): Add style argument to stringWidth call.
2201 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2202 (initState): Set pango font style and weight based on AWT style
2203 parameter. Pass default GTK language to
2204 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2205 simply dividing by PANGO_SCALE.
2206 (stringWidth): Set pango font style and weight based on AWT style
2209 * java/awt/Button.java (next_button_number): New field.
2210 (paramString): Change output.
2211 (generateName): New method.
2212 (getUniqueLong): New method.
2214 2004-06-14 Kim Ho <kho@redhat.com>
2216 * javax/swing/JTabbedPane.java:
2217 (setComponentAt): Set the component, not
2219 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2220 (actionPerformed): Let deiconize catch exception.
2222 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2224 * javax/swing/JPopupMenu.java:
2225 (setVisible): Corrected location of a
2226 heavyweight popup menu.
2228 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2230 * javax/swing/MenuSelectionManager.java:
2231 Ran through jalopy to fix formatting style.
2233 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2235 * javax/swing/JLayeredPane.java:
2236 (remove): Revalidate and repaint layered pane after
2237 the component was removed.
2238 javax/swing/JMenu.java:
2239 (setVisible): Display popup menu at the user location,
2240 if one was set by the user.
2241 (setMenuLocation): Reimplemented. Fixed javadoc.
2242 * javax/swing/JMenuBar.java: Added javadoc.
2243 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2244 (MODEL_CHANGED_PROPERTY): New Property.
2245 (isSelected): Implemented.
2246 (setBorderPainted): Fire PropertyChangeEvent
2247 if paintBorder property changes.
2248 (setSelected): Implemented.
2249 (setSelectionModel): Implemented.
2250 * javax/swing/JPopupMenu.java: Added Javadoc
2251 (pack): Implemented.
2252 (setVisible): Reimplemented.
2253 (show): Fixed location.
2254 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2255 Container instead of JPanel.
2256 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2257 (clearSelectedPath): Reimplemented to clear selectedPath
2259 (processMouseEvent): Reimplemented.
2260 (setSelectedPath): Fire stateChange event indicating that
2261 selected menu path has changed.
2262 (getPath): Change to use ArrayList instead of Vector.
2263 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2264 (installUI): call installKeyboardActions().
2265 (uninstallUI): call uninstallKeyboardActions().
2267 2004-06-13 Michael Koch <konqueror@gmx.de>
2269 * javax/swing/text/DefaultCaret.java,
2270 javax/swing/text/BadLocationException.java:
2273 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2275 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2276 DEFAULT_COLS): New variables.
2277 (create): Don't allow 0 rows or 0 columns. Instead, set the
2278 values to DEFAULT_ROWS or DEFAULT_COLS.
2279 (getMinimumSize): Likewise.
2280 (getPreferredSize): Likewise.
2281 (minimumSize): Likewise.
2282 (preferredSize): Likewise.
2283 (create): Set peer's editable state.
2284 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2285 zero. Update javadocs.
2286 (TextArea(String)): Likewise.
2287 (TextArea(int,int)): Fix javadocs.
2288 (TextArea(String,int,int,int)): Only throw exception if one of
2289 rows or columns is zero. Fix javadocs.
2291 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2293 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2294 addition to Components.
2296 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2297 wasn't consumed by normal processing, send it to the parent
2300 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2301 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2304 2004-06-11 David Jee <djee@redhat.com>
2306 * java/awt/MediaTracker.java
2307 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2308 (addImage(Image,int,int,int)): Likewise.
2310 2004-06-11 Michael Koch <konqueror@gmx.de>
2312 * javax/swing/text/AbstractDocument.java,
2313 javax/swing/text/Document.java,
2314 javax/swing/text/GapContent.java,
2315 javax/swing/text/JTextComponent.java,
2316 javax/swing/text/PlainDocument.java:
2319 2004-06-11 Michael Koch <konqueror@gmx.de>
2321 * javax/swing/JRootPane.java
2322 (AccessibleJRootPane.serialVersionUID): New field.
2323 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2324 (AccessibleJRootPane.getAccessibleRole): New method.
2325 (RootLayout): Implements Serializable.
2326 (RootLayout.serialVersionUID): New field.
2327 (RootLayout.RootLayout): New constructor.
2328 (setJMenuBar): Made public.
2329 (getJMenuBar): Likewise.
2330 (JRootPane): Likewise.
2331 (createContentPane): Likewise.
2332 (createGlassPane): Likewise.
2333 (createLayeredPane): Likewise.
2335 2004-06-11 Michael Koch <konqueror@gmx.de>
2337 * javax/swing/SwingUtilities.java
2338 (isLeftMouseButton): Fixed javadoc.
2339 (isMiddleMouseButton): Likewise.
2340 (isRightMouseButton): Likewise.
2342 2004-06-11 Michael Koch <konqueror@gmx.de>
2344 * javax/swing/JScrollPane.java
2345 (serialVersionUID): New field.
2346 (columnHeader): Made protected.
2347 (rowHeader): Likewise.
2348 (lowerLeft): Likewise.
2349 (lowerRight): Likewise.
2350 (upperLeft): Likewise.
2351 (upperRight): Likewise.
2352 (horizontalScrollBar): Likewise.
2353 (horizontalScrollBarPolicy): Likewise.
2354 (verticalScrollBar): Likewise.
2355 (verticalScrollBarPolicy): Likewise.
2356 (viewport): Likewise.
2358 2004-06-11 Michael Koch <konqueror@gmx.de>
2360 * javax/swing/LookAndFeel.java: Fixed javadocs.
2362 2004-06-11 Michael Koch <konqueror@gmx.de>
2364 * javax/swing/JEditorPane.java: Fixed javadocs.
2365 (JEditorPane): Removed redundant call to to this().
2366 (fireHyperlinkUpdate): Implemented.
2368 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2370 * javax/swing/JMenu.java: Fixed file name
2371 in the file comment.
2373 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2375 * javax/swing/JMenu.java: Added javadoc.
2376 (JMenu): Added MenuChangeListener to listen to
2377 ChangeEvents occuring in menu's model.
2378 (insert): Throw IllegalArgumentException if
2379 index is less than 0
2380 (setSelected): Reimplement.
2381 (setPopupMenuVisible): Call menu's model isEnabled()
2382 (setDelay): Throw IllegalArgumentException if
2383 given amount of delay is less than 0.
2384 (createActionComponent): Implemented.
2385 (createActionChangeListener): Implemented.
2386 (addSeparator): Implemented.
2387 (getItem): Throw IllegalArgumentException if index is
2389 (getItemCount): Implemented.
2390 (fireMenuSelected): Changed to use menuEvent.
2391 (fireMenuDeselected): Likewise.
2392 (fireMenuCanceled): Likewise.
2393 (setAccelerator): Changed to throw an error if this
2395 (doClick): Implemented.
2396 (JMenu.ActionChangedListener): New inner class to handle
2397 PropertyChangeEvents occuring in the actions associated with menu.
2398 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2399 (BasicMenuUI): Added PropertyChangeListener to the menu.
2400 (createChangeListener): Implemented.
2401 (createMenuDragMouseListener): Likewise.
2402 (createMenuKeyListener): Likewise.
2403 (createPropertyChangeListener): Likewise.
2404 (uninstallListeners): Likewise.
2405 (BasicMenuUI.MouseInputHandler): Reimplemented.
2406 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2407 (BasicMenuUI.ChangeHandler): Likewise.
2408 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2409 (BasicMenuUI.MenuKeyHandler): Likewise.
2411 2004-06-10 David Jee <djee@redhat.com>
2413 * java/awt/MediaTracker.java
2414 (imageUpdate): Only do notifyAll() if the image is complete.
2416 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2418 * javax/swing/JApplet.java:
2419 (getJMenuBar): Made public.
2420 (setJMenuBar): Likewise.
2421 * javax/swing/JFrame.java:
2422 (getJMenuBar): Made public.
2423 (setJMenuBar): Likewise.
2424 * javax/swing/JWindow.java:
2425 (getJMenuBar): Removed.
2426 (setJMenuBar): Removed.
2428 2004-06-10 Michael Koch <konqueror@gmx.de>
2430 * javax/swing/JEditorPane.java
2431 (createEditorKitForContentType): Fixed visibility.
2432 (fireHyperlinkUpdate): Likewise.
2433 (getContentType): Likewise.
2434 (getEditorKit): Likewise.
2435 (getEditorKitForContentType): Likewise.
2436 (getPage): Likewise.
2438 (registerEditorKitForContentTyoe): Likewise.
2439 (replaceSelection): Likewise.
2440 (setContentType): Likewise.
2441 (setEditorKit): Likewise.
2442 (setPage): Likewise.
2444 2004-06-10 Michael Koch <konqueror@gmx.de>
2446 * javax/swing/Timer.java
2447 (Timer): New constructor.
2448 * javax/swing/plaf/basic/BasicProgressBarUI.java
2449 (animationTimer): Don't initialize at construction.
2450 (startAnimationTimer): Added since tag.
2451 (stopAnimationTimer): Likewise.
2452 (installUI): Use new Timer constructor.
2453 * javax/swing/plaf/basic/BasicScrollBarUI.java
2454 (installUI): Likewise.
2455 * javax/swing/plaf/basic/BasicSliderUI.java
2456 (installUI): Likewise.
2458 2004-06-10 Michael Koch <konqueror@gmx.de>
2460 * javax/swing/ButtonGroup.java
2461 (serialVersionUID): Made private.
2462 (buttons): Renamed from v, added javadoc.
2463 (sel): Added javadoc.
2464 (ButtonGroup): Likewise.
2467 (getElements): Likewise.
2468 (getSelection): Likewise.
2469 (setSelected): Likewise.
2470 (isSelected): Likewise.
2471 (getButtonCount): Likewise.
2473 2004-06-10 Michael Koch <konqueror@gmx.de>
2475 * javax/swing/ButtonGroup.java,
2476 javax/swing/ImageIcon.java,
2477 javax/swing/JEditorPane.java,
2478 javax/swing/JRootPane.java,
2479 javax/swing/JTextField.java,
2480 javax/swing/LookAndFeel.java,
2481 javax/swing/plaf/basic/BasicTextUI.java:
2484 2004-06-10 Michael Koch <konqueror@gmx.de>
2486 * javax/swing/text/Style.java: Added javadocs.
2488 2004-06-10 Michael Koch <konqueror@gmx.de>
2490 * javax/swing/JComponent.java
2491 (fireVetoableChange): Removed redundant cast.
2492 * javax/swing/JLabel.java
2493 (getDisabledIcon): Save icon for next call.
2495 2004-06-10 Michael Koch <konqueror@gmx.de>
2497 * javax/swing/KeyStroke.java
2498 (getKeyStroke(char,boolean)): Marked deprecated.
2500 2004-06-10 Michael Koch <konqueror@gmx.de>
2502 * javax/swing/DefaultCellEditor.java,
2503 javax/swing/GrayFilter.java,
2504 javax/swing/event/DocumentEvent.java,
2505 javax/swing/text/JTextComponent.java,
2506 javax/swing/text/MutableAttributeSet.java:
2509 2004-06-10 Michael Koch <konqueror@gmx.de>
2511 * javax/swing/plaf/BorderUIResource.java:
2512 Added serialVersionUID all over.
2514 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2516 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2518 2004-06-10 Michael Koch <konqueror@gmx.de>
2520 * javax/swing/table/DefaultTableCellRenderer.java
2521 (noFocusBorder): Initialize directly.
2523 2004-06-10 Michael Koch <konqueror@gmx.de>
2525 * javax/swing/plaf/basic/BasicArrowButton.java
2526 (setDirection): Use method argument.
2528 2004-06-10 Michael Koch <konqueror@gmx.de>
2530 * javax/swing/plaf/BorderUIResource.java,
2531 javax/swing/plaf/ComponentUI.java,
2532 javax/swing/undo/CompoundEdit.java,
2533 javax/swing/undo/StateEdit.java:
2534 Fixed javadocs all over.
2536 2004-06-10 Michael Koch <konqueror@gmx.de>
2538 * javax/swing/DefaultButtonModel.java
2539 (ARMED): Made public final, fixed value.
2540 (ENABLED): Likewise.
2541 (PRESSED): Likewise.
2542 (ROLLOVER): Likewise.
2543 (SELECTED): Likewise.
2544 (stateMask): Initialize directly.
2545 (listenerList): Likewise.
2546 (mnemonic): Likewise.
2547 (fireStateChanged): Removed argument, use changeEvent as event.
2548 All places where this method is called are fixed too.
2549 (getActionCommant): Fixed javadoc.
2550 (setGroup): Fixed javadoc.
2551 (getGroup): New method.
2553 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2555 * javax/swing/AbstractButton.java
2556 (AbstractButton): Use init() to initialize the button.
2557 (init): New Method. Initializes AbstractButton.
2558 * javax/swing/JMenuItem.java: Documented.
2559 (JMenuItem): Reimplemented.
2560 (init): Implemented.
2561 (setEnabled): Changed to call super.setEnabled()
2562 (processMouseEvent): Reimplemented.
2563 (fireMenuKeyPressed): Implemented.
2564 (fireMenuKeyReleased): Implemented.
2565 (fireMenuKeyTyped): Implemented.
2566 (menuSelectionChanged): disarm the model if the menu item was
2568 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2569 (getPath): Change to use ArrayList instead of Vector.
2570 (getPreferredSize): Renamed variable.
2571 (paintMenuItem): Paint margin area of menu item.
2572 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2573 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2574 menu item's bounds before clearing the selection.
2576 2004-06-09 David Jee <djee@redhat.com>
2578 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2579 (GtkTextComponentPeer): Set caret position to 0.
2580 * java/awt/TextComponent.java
2581 (setText): Set caret position to 0.
2582 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2583 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2584 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2585 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2587 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2588 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2591 2004-06-09 Kim Ho <kho@redhat.com>
2593 * Makefile.am: New files
2594 * Makefile.in: Regenerated
2595 * java/awt/Container.java
2596 (getComponentAt): Removed.
2597 * javax/swing/AbstractAction.java
2598 (ENABLED_PROPERTY): New property.
2599 (putValue): Fire PropertyChangeEvents.
2600 (setEnabled): ditto.
2601 (firePropertyChange): Javadoc and implement
2603 * javax/swing/AbstractButton.java
2604 (setAction): Don't create PropertyChangeListener
2605 if new Action is null.
2606 (setIcon): Don't set icon till after comparing
2608 (configurePropertiesFromAction): Check mnemonic
2609 key before calling intValue().
2610 (createActionPropertyChangeListener): Check
2611 properties rather than bulk change.
2612 * javax/swing/DefaultDesktopManager.java:
2614 * javax/swing/DesktopManager.java:
2616 * javax/swing/JComponent.java
2617 (fireVetoableChange): Implement.
2618 (paintImmediately): Use root component.
2619 * javax/swing/JDesktopPane.java: Implement
2620 * javax/swing/JInternalFrame.java: Implement
2621 * javax/swing/JLabel.java
2622 (getDisabledIcon): Return grayscaled icon if
2623 no disabled icon specified.
2624 * javax/swing/JMenuBar.java
2625 (getComponentAtIndex): Use getComponent
2626 * javax/swing/JOptionPane.java
2627 (getDesktopPaneForComponent): Use SwingUtilities'
2629 (getFrameForComponent): ditto.
2630 * javax/swing/JSplitPane.java
2631 (remove): Use getComponent.
2632 * javax/swing/SwingUtilities.java
2633 (convertPoint): Implement.
2634 * javax/swing/plaf/basic/BasicButtonUI.java
2635 (paintButtonNormal): Check opaqueness before
2637 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2639 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2641 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2643 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2645 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2646 Change InternalFrame and Desktop colors.
2648 2004-06-09 David Jee <djee@redhat.com>
2650 * java/awt/Container.java
2651 (remove): Do not set component to invisible.
2653 2004-06-09 Michael Koch <konqueror@gmx.de>
2655 * javax/swing/tree/DefaultMutableTreeNode.java
2656 (getLeafCount): Renamed enum to e.
2658 2004-06-09 Michael Koch <konqueror@gmx.de>
2660 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2661 (positionForMouseEvent): Removed redundant semicolon.
2662 (continueDrag): Use method arguments.
2664 2004-06-09 Michael Koch <konqueror@gmx.de>
2666 * javax/swing/border/TitledBorder.java,
2667 javax/swing/filechooser/FileSystemView.java,
2668 javax/swing/plaf/basic/BasicButtonListener.java,
2669 javax/swing/plaf/basic/BasicGraphicsUtils.java,
2670 javax/swing/plaf/basic/BasicLabelUI.java,
2671 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2672 javax/swing/plaf/basic/BasicScrollBarUI.java,
2673 javax/swing/plaf/basic/BasicScrollPaneUI.java,
2674 javax/swing/plaf/basic/BasicSliderUI.java,
2675 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2676 javax/swing/plaf/basic/BasicToggleButtonUI.java,
2677 javax/swing/table/JTableHeader.java,
2678 javax/swing/text/AbstractDocument.java,
2679 javax/swing/text/DefaultCaret.java,
2680 javax/swing/text/StyledEditorKit.java,
2681 javax/swing/tree/DefaultTreeCellEditor.java:
2682 Reworked import statements.
2684 2004-06-08 Graydon Hoare <graydon@redhat.com>
2686 * javax/swing/Box.java: Temporarily comment out code
2687 broken due to visibility bug.
2689 2004-06-09 Michael Koch <konqueror@gmx.de>
2691 * javax/swing/ImageIcon.java
2692 (ImageIcon): Added missing constructor.
2694 2004-06-08 Michael Koch <konqueror@gmx.de>
2696 * javax/swing/JToggleButton.java
2697 (JToggleButton): New constructor.
2698 (getAccessibleContext): Moved documentation into javadoc.
2699 (getUIClassID): Likewise.
2701 2004-06-08 Michael Koch <konqueror@gmx.de>
2703 * javax/swing/AbstractButton.java
2704 (getDisabledIcon): Create disabled icon if none exists yet.
2706 2004-06-08 Michael Koch <konqueror@gmx.de>
2708 * javax/swing/plaf/basic/BasicLookAndFeel.java
2709 (initClassDefaults): Added FormattedTextFieldUI.
2710 (loadResourceBundle): Renamed enum to e.
2712 2004-06-08 Michael Koch <konqueror@gmx.de>
2714 * javax/swing/plaf/basic/BasicButtonUI.java
2715 (paintIcon): Simplified.
2716 (paintText): Paint disabled button correctly.
2718 2004-06-08 Michael Koch <konqueror@gmx.de>
2720 * javax/swing/JComponent.java
2721 (createToolTip): Use official JToolTip API.
2723 2004-06-08 Michael Koch <konqueror@gmx.de>
2725 * javax/swing/JToolTip.java
2726 (JToolTip): No arguments in API.
2727 (setTipText): New method.
2729 2004-06-08 Michael Koch <konqueror@gmx.de>
2731 * javax/swing/SwingUtilities.java
2732 (isLeftMouseButton): New method.
2733 (isMiddleMouseButton): New method.
2734 (isRightMouseButton): New method.
2736 2004-06-08 Michael Koch <konqueror@gmx.de>
2738 * javax/swing/AbstractButton.java,
2739 javax/swing/CellRendererPane.java,
2740 javax/swing/JCheckBoxMenuItem.java,
2741 javax/swing/JColorChooser.java,
2742 javax/swing/JComboBox.java,
2743 javax/swing/JComponent.java,
2744 javax/swing/JDesktopPane.java,
2745 javax/swing/JFileChooser.java,
2746 javax/swing/JMenu.java,
2747 javax/swing/JMenuItem.java,
2748 javax/swing/JOptionPane.java,
2749 javax/swing/JPasswordField.java,
2750 javax/swing/JPopupMenu.java,
2751 javax/swing/JProgressBar.java,
2752 javax/swing/JRadioButtonMenuItem.java,
2753 javax/swing/JScrollBar.java,
2754 javax/swing/JSeparator.java,
2755 javax/swing/JSlider.java,
2756 javax/swing/JSplitPane.java,
2757 javax/swing/JTabbedPane.java,
2758 javax/swing/JTextField.java,
2759 javax/swing/JToolBar.java,
2760 javax/swing/text/JTextComponent.java:
2761 Fixed all constructors of accessibility classes.
2763 2004-06-08 Michael Koch <konqueror@gmx.de>
2765 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
2768 2004-06-08 Michael Koch <konqueror@gmx.de>
2770 * javax/swing/Box.java
2771 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
2772 (AccessibleBoxFiller.serialVersionUID): New member variable.
2773 * javax/swing/DefaultButtonModel.java
2774 (stateMask): Made protected.
2775 (listenerList): Likewise.
2776 (changeEvent): Likewise.
2778 (mnemonic): Likewise.
2779 (actionCommand): Likewise.
2780 (getListeners): New method.
2781 (getActionListeners): New method.
2782 (getItemListeners): New method.
2783 (getChangeListeners): New method.
2784 (fireItemStateChanged): Simplified.
2785 (fireActionPerformed): Simplified.
2786 (fireStateChanged): Simplified.
2787 * javax/swing/JFrame.java
2788 (JFrame): Implements WindowContants.
2789 (HIDE_ON_CLOSE): Removed.
2790 (EXIT_ON_CLOSE): Removed.
2791 (DISPOSE_ON_CLOSE): Removed.
2792 (DO_NOTHING_ON_CLOSE): Removed.
2793 (processWindowEvent): Exit with code 0.
2794 (setDefaultCloseOperation): Do security check before setting value.
2795 * javax/swing/JOptionPane.java
2796 (message): Initialize only in constructor.
2797 * javax/swing/JToolTip.java: Removed unused imports.
2798 * javax/swing/JViewport.java
2799 (serialVersionUID): New member variable.
2800 (SIMPLE_SCROLL_MODE): Made final, fixed value.
2801 (BLIT_SCROLL_MODE): Likewise.
2802 (BACKINGSTORE_SCROLL_MODE): Likewise.
2803 (scrollUnderway): Made protected.
2804 (isViewSizeSet): Likewise.
2805 * javax/swing/ListModel.java: Fixed javadoc.
2806 * javax/swing/Popup.java: Likewise.
2807 * javax/swing/RepaintManager.java
2808 (paintDirtyRegions): Don't use internal classes of
2809 java.util.AbstractMap.
2810 * javax/swing/ScrollPaneConstants.java: Reindented.
2811 * javax/swing/ScrollPaneLayout.java
2812 (viewport): Made protected.
2813 (verticalScrollBar): Made protected, renamed to vsb.
2814 (horizontalScrollBar): Made protected, renamed to hsb.
2815 (rowHeader): Made protected, renamed to rowHead.
2816 (columnHeader): Made protected, renamed to colHead.
2817 (lowerLeft): Made protected.
2818 (lowerRight): Made protected.
2819 (upperLeft): Made protected.
2820 (upperRight): Made protected.
2821 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
2822 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
2824 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
2826 * java/awt/MediaTracker.java (imageUpdate): Only set status to
2827 LOADING if flags has SOMEBITS set.
2829 2004-06-07 Michael Koch <konqueror@gmx.de>
2831 * javax/swing/AbstractButton.java: Reorganized imports.
2832 * javax/swing/ActionMap.java: Likewise.
2833 * javax/swing/DefaultButtonModel.java: Likewise.
2834 * javax/swing/DefaultListModel.java: Likewise.
2835 * javax/swing/ImageIcon.java: Likewise.
2836 (serialVersionUID): New member variable.
2837 * javax/swing/JComboBox.java: Reorganized imports.
2838 * javax/swing/JComponent.java: Likewise.
2839 (ui): Made protected.
2840 (listenerList): Made protected.
2841 (TOOL_TIP_TEXT_KEY): New constant.
2842 (scrollRectToVisible): Removed redundant null check.
2843 * javax/swing/JFrame.java: Reorganized imports.
2844 * javax/swing/JInternalFrame.java: Reorganized imports.
2845 * javax/swing/JProgressBar.java: Likewise.
2846 * javax/swing/JRootPane.java: Likewise.
2847 * javax/swing/JScrollBar.java: Likewise.
2848 * javax/swing/JSeparator.java: Likewise.
2849 * javax/swing/JSlider.java: Likewise.
2850 * javax/swing/JTabbedPane.java: Likewise.
2851 * javax/swing/JTextField.java: Likewise.
2852 * javax/swing/JToolBar.java: Likewise.
2853 * javax/swing/JTree.java: Likewise.
2854 * javax/swing/JViewport.java: Likewise.
2855 * javax/swing/JWindow.java: Likewise.
2856 * javax/swing/KeyStroke.java: Likewise.
2857 * javax/swing/LookAndFeel.java: Likewise.
2858 * javax/swing/MenuSelectionManager.java: Likewise.
2859 * javax/swing/SwingUtilities.java: Likewise.
2860 * javax/swing/Timer.java: Likewise.
2861 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
2862 * javax/swing/JList.java
2863 (HORIZONTAL_WRAP): Made final, fixed value.
2864 (VERTICAL): Likewise.
2865 (VERTICAL_WRAP): Likewise.
2867 2004-06-07 Michael Koch <konqueror@gmx.de>
2869 * javax/swing/AbstractButton.java
2870 (serialVersionUID): New member variable.
2871 (AccessibleAbstractButton.serialVersionUID): Likewise.
2872 (AbstractButton): Made public.
2873 * javax/swing/Box.java
2874 (AccessibleBox.serialVersionUID): New member variable.
2875 (Filler.serialVersionUID): Likewise.
2876 * javax/swing/DefaultListSelectionModel.java
2877 (serialVersionUID): Likewise.
2878 * javax/swing/JApplet.java
2879 (serialVersionUID): Likewise.
2880 * javax/swing/JCheckBox.java
2881 (serialVersionUID): Likewise.
2882 * javax/swing/JCheckBoxMenuItem.java
2883 (serialVersionUID): Likewise.
2884 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
2885 * javax/swing/JColorChooser.java
2886 (serialVersionUID): Likewise.
2887 (AccessibleJColorChooser.serialVersionUID): Likewise.
2888 * javax/swing/JComponent.java
2889 (serialVersionUID): Made private.
2890 (AccessibleJComponent.serialVersionUID): New member variable.
2891 * javax/swing/JDesktopPane.java
2892 (serialVersionUID): Likewise.
2893 * javax/swing/JDialog.java
2894 (serialVersionUID): Likewise.
2895 * javax/swing/JFormattedTextField.java
2896 (serialVersionUID): Fixed value.
2897 * javax/swing/JFrame.java
2898 (serialVersionUID): New member variable.
2899 (getDefaultCloseOpertation): Made public.
2900 * javax/swing/JLayeredPane.java
2901 (serialVersionUID): Likewise.
2902 (LAYER_PROPERTY): Made final, fixed value.
2903 (JLayeredPane): Made public.
2904 * javax/swing/JMenu.java
2905 (AccessibleJMenu.serialVersionUID): New member variable.
2906 (WinListener.serialVersionUID): Likewise.
2907 * javax/swing/JMenuBar.java
2908 (serialVersionUID): Likewise.
2909 (getComponentAtIndex): Added @deprecated tag.
2910 * javax/swing/JMenuItem.java
2911 (serialVersionUID): New member variable.
2912 (AccessibleJMenuItem.serialVersionUID): Likewise.
2913 * javax/swing/JOptionPane.java
2914 (serialVersionUID): Likewise.
2915 (AccessibleJOptionPane.serialVersionUID): Likewise.
2916 * javax/swing/JPopupMenu.java
2917 (serialVersionUID): Likewise.
2918 (AccessibleJPopupMenu.serialVersionUID): Likewise.
2919 (getPopupMenuListeners): New method.
2920 (getComponentAtIndex): Added @deprecated tag.
2921 * javax/swing/JProgressBar.java
2922 (serialVersionUID): New member variable.
2923 (AccessibleJProgressBar.serialVersionUID): Likewise.
2924 * javax/swing/JRadioButton.java
2925 (serialVersionUID): Likewise.
2926 * javax/swing/JRadioButtonMenuItem.java
2927 (serialVersionUID): Likewise.
2928 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
2929 * javax/swing/JScrollBar.java
2930 (serialVersionUID): Likewise.
2931 (AccessibleJScrollBar.serialVersionUID): Likewise.
2932 * javax/swing/JSeparator.java
2933 (serialVersionUID): Likewise.
2934 (AccessibleJSeparator.serialVersionUID): Likewise.
2935 * javax/swing/JSlider.java: Fixed javadocs.
2936 (AccessibleJSlider.serialVersionUID): New member variable.
2937 * javax/swing/JSplitPane.java: Added copyright statement.
2938 (serialVersionUID): New member variable.
2939 (AccessibleJSplitPane.serialVersionUID): Likewise.
2940 * javax/swing/JTabbedPane.java
2941 (serialVersionUID): Likewise.
2942 (AccessibleJTabbedPane.serialVersionUID): Likewise.
2943 (ModelListener.serialVersionUID): Likewise.
2944 (ModelListener.ModelListener): New constructor.
2945 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
2946 (WRAP_TAB_LAYOUT): Likewise.
2947 * javax/swing/JTable.java
2948 (serialVersionUID): New member variable.
2949 * javax/swing/JToggleButton.java
2950 (serialVersionUID): Likewise.
2951 (ToggleButtonModel): Made static.
2952 (ToggleButtonModel.serialVersionUID): New member variable.
2953 * javax/swing/JToolTip.java
2954 (serialVersionUID): Likewise.
2955 * javax/swing/JTree.java
2956 (serialVersionUID): Likewise.
2957 * javax/swing/JWindow.java
2958 (serialVersionUID): Likewise.
2959 * javax/swing/Timer.java
2960 (serialVersionUID): Likewise.
2962 2004-06-06 Michael Koch <konqueror@gmx.de>
2964 * javax/swing/SwingConstants.java
2965 (NEXT): New constant.
2966 (PREVIOUS): Likewise.
2967 * javax/swing/UIManager.java
2968 (LookAndFeel): Made public.
2969 (LookAndFeel.getClassName): Likewise.
2970 (LookAndFeel.getName): Likewise.
2972 2004-06-02 Olga Rodimina <rodimina@redhat.com>
2974 * javax/swing/JCheckBoxMenuItem.java:
2976 * javax/swing/JMenu.java: Likewise.
2977 * javax/swing/JMenuBar.java: Likewise.
2978 * javax/swing/JMenuItem.java: Likewise.
2979 * javax/swing/JPopupMenu.java: Likewise.
2980 * javax/swing/JRadioButtonMenuItem.java: Likewise.
2981 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
2982 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2983 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
2984 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
2985 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
2986 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
2988 2004-05-31 Olga Rodimina <rodimina@redhat.com>
2990 * javax/swing/plaf/basic/BasicMenuUI.java:
2991 (MouseEntered): Do not call getPath() from MenuSelectionManager.
2992 Call getPath() from super class instead.
2994 2004-05-31 David Jee <djee@redhat.com>
2996 * java/awt/Container.java
2997 (remove): Set component visibility to false after removing it.
2999 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3001 * java/awt/Component.java (getForeground): Return SystemColor if
3003 (getBackground): Likewise.
3005 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3006 (item_highlighted): New function.
3007 (connectSignals): Set item_highlighted as list's select
3010 * java/applet/Applet.java: Revert changes from 2004-04-29,
3011 2004-03-15 and 2004-03-14.
3013 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3014 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3017 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3018 "Dialog" as the default font.
3019 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3021 * java/awt/Component.java (getFont): Return "Dialog" font by
3023 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3024 Multiply size argument to pango_font_description_set_size by the
3025 DPI conversion factor rather than by PANGO_SCALE.
3026 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3027 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3028 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3029 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3030 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3031 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3032 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3033 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3034 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3035 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3036 Divide baseline y coordinate by DPI conversion factor rather
3037 than by PANGO_SCALE.
3038 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3039 (area_prepared): Fix typo.
3040 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3041 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3042 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3043 (dpi_conversion_factor): New global variable.
3044 (init_dpi_conversion_factor): New function to calculate and
3045 track DPI conversion factor.
3046 (dpi_changed_cb): New callback.
3047 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3049 2004-05-27 David Jee <djee@redhat.com>
3051 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3052 (getGraphics): Return a new GdkGraphics instance.
3053 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3054 (getGraphics): Call super.getGraphics().
3056 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3058 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3059 (setNativeBounds): Clamp width and height values to >= 0.
3061 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3062 (find_fg_color_widget): Handle GtkOptionMenu specially.
3064 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3065 (pre_event_handler): Only post configure events to visible
3068 2004-05-26 David Jee <djee@redhat.com>
3070 * java/awt/BorderLayout.java
3071 (layoutContainer): Fix size calculations.
3073 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3075 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3076 (window_wm_protocols_filter): Remove function.
3077 (create): Remove filter that removes WM_TAKE_FOCUS client
3080 2004-06-17 Anthony Green <green@redhat.com>
3082 * java/util/zip/ZipFile.java (getInputStream): Return null if
3085 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3086 directory contents to the class path.
3088 2004-06-15 Andrew Haley <aph@redhat.com>
3090 * java/lang/natSystem.cc (getenv0): Don't assume environment
3091 variable is Latin 1 coded.
3093 2004-06-14 Andreas Jaeger <aj@suse.de>
3095 * configure.in: Support --enable-version-specific-runtime-libs.
3096 * configure: Regenerated.
3098 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3100 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3101 to pass ClassLoader argument.
3102 * java/util/GregorianCalendar.java: Likewise.
3103 * java/util/Currency.java: Likewise.
3104 * java/text/BreakIterator.java: Likewise.
3105 * java/text/Collator.java: Likewise.
3106 * java/text/DateFormat.java: Likewise.
3107 * java/text/DateFormatSymbols.java: Likewise.
3108 * java/text/DecimalFormatSymbols.java: Likewise.
3109 * java/text/NumberFormat.java: Likewise.
3110 * java/awt/Window.java: Likewise.
3112 2004-06-14 Andrew Haley <aph@redhat.com>
3114 * java/lang/System.java: (getenv0): New method.
3115 (getenv): Add security check. Do the right thing.
3116 * java/lang/natSystem.cc (getenv0): New method.
3118 2004-06-12 Mark Wielaard <mark@klomp.org>
3120 * javax/swing/RepaintManager.java
3121 (paintDirtyRegions): Use entrySet(), not values().
3123 2004-06-10 Mark Wielaard <mark@klomp.org>
3125 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3128 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3130 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3131 when we already know the answer.
3132 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3133 (setStartRule,setEndRule): Don't take abs of day number.
3134 (getOffset): Clarify docs. Add argument checks.
3135 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3136 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3139 2004-06-10 Tom Tromey <tromey@redhat.com>
3141 * interpret.cc (run): Handle wide fload.
3143 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3145 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3147 2004-06-05 Michael Koch <konqueror@gmx.de>
3149 * javax/swing/SwingConstants.java
3150 (NEXT): New constant.
3151 (PREVIOUS): Likewise.
3153 2004-06-05 Michael Koch <konqueror@gmx.de>
3155 * javax/swing/UIManager.java
3156 (LookAndFeel): Made public.
3157 (LookAndFeel.getName): Likewise.
3158 (LookAndFeel.getClassName): Likewise.
3160 2004-06-03 Michael Koch <konqueror@gmx.de>
3162 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3163 (requestFocus): Revert last changes.
3164 (gtkRequestFocus): Removed.
3165 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3166 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3168 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3169 Reverted last patch.
3170 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3171 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3172 Reverted comment change.
3174 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3176 * javax/swing/JCheckBoxMenuItem.java:
3178 * javax/swing/JMenu.java: Likewise.
3179 * javax/swing/JMenuBar.java: Likewise.
3180 * javax/swing/JMenuItem.java: Likewise.
3181 * javax/swing/JPopupMenu.java: Likewise.
3182 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3183 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3184 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3185 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3186 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3187 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3188 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3190 2004-06-01 Tom Tromey <tromey@redhat.com>
3192 * java/io/ObjectStreamField.java: Cleaned up imports.
3194 2004-06-01 Michael Koch <konqueror@gmx.de>
3196 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3198 2004-06-01 Mark Wielaard <mark@klomp.org>
3200 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3202 2004-06-01 Michael Koch <konqueror@gmx.de>
3204 * java/security/Security.java
3205 (insertProviderAt): Use equals() instead of ==.
3206 (removeProvicer): Likewise.
3207 (getProvider): Likewise.
3208 * java/security/Signature.java
3209 (sign): Don't set state to UNINITIALIZED.
3212 2004-06-01 Mark Wielaard <mark@klomp.org>
3214 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3215 Implement by calling gtkRequestFocus.
3216 (gtkRequestFocus): New native method.
3217 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3218 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3220 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3222 (filter_expose_event_handler):
3224 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3225 (menu_pos): Mark static.
3227 2004-06-01 Michael Koch <konqueror@gmx.de>
3229 * java/text/CollationElementIterator.java,
3230 java/text/CollationKey.java,
3231 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3232 * testsuite/libjava.mauve/xfails: Removed all
3233 java.text.CollationElementIterator tests.
3235 2004-06-01 Michael Koch <konqueror@gmx.de>
3237 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3239 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3240 Java 1.5 keyword usage.
3242 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3244 * javax/swing/plaf/basic/BasicMenuUI.java:
3245 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3246 Call getPath() from super class instead.
3248 2004-05-31 Michael Koch <konqueror@gmx.de>
3250 * java/io/SequenceInputStream.java:
3251 Rename enum to e because enum is a keyword in Java 1.5.
3253 2004-05-31 Michael Koch <konqueror@gmx.de>
3255 * gnu/java/rmi/rmic/CompilerProcess.java:
3256 Fixed javadoc to by XHTML compliant.
3258 2004-05-30 Mark Wielaard <mark@klomp.org>
3260 * java/awt/Toolkit.java (loadSystemColors): Implement.
3262 2004-05-30 Michael Koch <konqueror@gmx.de>
3264 * java/lang/System.java: Reordered imports.
3266 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3268 * java/text/DecimalFormat.java
3269 (parse): Fixed parsing of decimal strings. Number of maximum
3270 digits to be read should now work.
3271 * java/text/SimpleDateFormat.java
3272 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3273 formatter. This fixes DateFormatTest.
3275 2004-05-30 Michael Koch <konqueror@gmx.de>
3277 * java/nio/Buffer.java
3278 (limit): Fixed off by one error.
3279 * java/nio/CharBuffer.java
3280 (wrap): Fixed arguments, added javadocs.
3282 2004-05-30 Michael Koch <konqueror@gmx.de>
3284 * gnu/java/beans/BeanInfoEmbryo.java,
3285 java/awt/im/InputContext.java,
3286 javax/swing/tree/DefaultMutableTreeNode.java:
3287 Rename enum to e because enum is a keyword in Java 1.5.
3289 2004-05-30 Michael Koch <konqueror@gmx.de>
3291 * gnu/java/math/MPN.java,
3292 java/awt/geom/Arc2D.java:
3293 Fixed javadocs all over.
3295 2004-05-30 Michael Koch <konqueror@gmx.de>
3297 * java/awt/DefaultKeyboardFocusManager.java
3298 (dispatchEvent): Call method to get key event dispatchers.
3299 (dispatchKeyEvent): Call method to get key event post processors.
3300 * javax/swing/JComponent.java
3301 (listenerList): Made protected.
3302 * javax/swing/JOptionPane.java
3303 (message): Don't initialize.
3304 (JOptionPane): Set message text.
3305 * javax/swing/JPopupMenu.java
3306 (show): Fixed typo in argument name.
3307 * javax/swing/RepaintManager.java
3308 (paintDirtyRegions): Use public API of java.util.Map.
3309 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3310 (positionForMouseEvent): Removed redundant ';'.
3311 (continueDrag): Use method arguments.
3313 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3315 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3318 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3320 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3322 * gnu/gcj/RawDataManaged.java: New file.
3323 * java/lang/Thread.java (data): Declare as RawDataManaged.
3324 * java/lang/natThread.cc (init_native): Cast natThread data to
3325 RawDataManaged, not jobject.
3326 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3327 * Makefile.in: Rebuilt.
3329 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3331 * java/util/SimpleTimeZone.java: Reverting my last change until I
3332 can fix it properly.
3334 2004-05-27 Michael Koch <konqueror@gmx.de>
3336 * javax/swing/JPopupMenu.java
3337 (isVisible): Do not use visible directly.
3338 (setVisible): Likewise.
3339 * javax/swing/JWindow.java
3340 (JWindow): call accessible constructor.
3341 * javax/swing/RepaintManager.java
3342 (paintDirtyRegions): Use public methods to obtain iterator.
3344 2004-05-25 David Jee <djee@redhat.com>
3346 * java/awt/Container.java
3347 (remove): Set component's parent to null only after we removed the
3348 component from its parent's layout manager.
3350 2004-05-25 David Jee <djee@redhat.com>
3352 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3353 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3355 * gnu/java/awt/peer/gtk/GtkListPeer.java
3356 (getSize): Change native method declaration.
3357 (minimumSize): Pass visible row count into getSize().
3358 (preferredSize): Likewise.
3359 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3360 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3361 natural size. Use visible row count to determine the final height
3364 2004-05-21 Graydon Hoare <graydon@redhat.com>
3366 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3367 (setClip): Minor correction to order of operations.
3369 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3370 * javax/swing/ScrollPaneLayout.java: Likewise.
3371 * javax/swing/JViewPort.java: Likewise.
3372 * javax/swing/ViewportLayout.java: Likewise.
3374 * javax/swing/JComponent.java: Rewrite.
3375 * javax/swing/RepaintManager.java: Likewise.
3377 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3378 * javax/swing/JList.java
3379 (setSelectedIndices):
3380 (getSelectedIndices):
3381 (getSelectedValues): New functions.
3382 (getPreferredScrollableViewportSize): Return preferred size.
3383 (getScrollableUnitIncrement):
3384 (getScrollableBlockIncrement): Initial implementations.
3385 * javax/swing/JRootPane.java: Clean up slightly.
3390 (isValidateRoot): Add overrides from JComponent.
3391 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3392 * javax/swing/UIManager.java (getDimension): Return the dimension.
3394 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3395 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3396 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3397 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3398 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3399 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3400 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3401 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3402 Likewise, and set background.
3403 * javax/swing/plaf/basic/BasicListUI.java:
3404 Likewise, and improve a bit.
3405 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3406 Likewise, and adjust calculations.
3407 * javax/swing/plaf/basic/BasicViewportUI.java:
3408 Likewise, and improve a bit.
3409 * javax/swing/plaf/basic/BasicLookAndFeel.java
3410 (Button.margin): Shrink.
3412 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3413 Hack to set horizontal always, workaround pango.
3415 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3416 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3417 Synchronize more often, check cairo status after ops,
3418 handle changes to cairo pattern API, check for disposal.
3420 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3422 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3423 (BasicMenuItemUI): Create propertyChangeListener.
3424 (getPath):Implemented.
3425 (installListeners): Add propertyChangeListener to menuItem.
3426 (uninstallListeners): Remove propertyChangeListener from menuItem.
3427 (update): Implemented.
3428 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3429 (mouseEntered): Take insets of popup menu into account when
3430 calculating position of popup menu.
3432 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3434 * Makefile.am: Added new file.
3435 * Makefile.in: Regenerate.
3436 * javax/swing/JMenuBar.java:
3437 Started implementation.
3438 * javax/swing/JPopupMenu.java:
3439 (setVisible): Fixed location of lightweight/mediumweight
3441 (show): Fixed location of PopupMenu.
3442 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3443 New file. UI Delegate for JMenuBar.
3444 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3445 (mouseEntered): Corrected position of the submenu.
3447 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3449 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3450 to _gtk_accel_group_attach.
3451 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3454 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3455 package access. Don't override setFont.
3456 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3457 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3458 gtkWidgetRequestFocus package access.
3459 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3461 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3462 Give gtkWidgetRequestFocus package access.
3463 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3464 gtkWidgetRequestFocus package access. Don't override setFont.
3465 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3467 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3468 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3470 (gtkSetFont): Likewise.
3471 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3473 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3474 (gtkSetFont): Whitespace fix.
3476 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3477 (gtkWidgetSetUsize): Remove method.
3479 2004-05-18 David Jee <djee@redhat.com>
3481 * java/awt/image/MemoryImageSource.java
3482 (newPixels(int,int,int,int,boolean)): Set only the specified
3483 rectangle of pixels.
3484 (newPixels(byte[],ColorModel,int,int)): Implement.
3485 (newPixels(int[],ColorModel,int,int)): Implement.
3487 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3489 * Makefile.am: Added new file.
3490 * Makefile.in: Regenerate.
3491 * javax/swing/JMenu.java: Started
3493 * javax/swing/JPopupMenu.java:
3494 (insert): If specified index is -1, then
3495 add component at the end.
3496 (isPopupTrigger): Reimplemented.
3497 (JPopupMenu.LightWeightPopup): setBounds
3498 of the lightWeightPopup before adding it
3500 (javax/swing/plaf/basic/BasicIconFactory.java):
3501 (getMenuArrowIcon): Implemented.
3502 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3503 (getPreferredSize): Add size of the arrow icon
3504 if this menu item is instance of JMenu.
3505 (paintMenuItem): Paint arrow icon if this
3506 menu item is a submenu.
3507 * javax/swing/plaf/basic/BasicMenuUI.java:
3508 New File. UI Delegate for JMenu.
3510 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3512 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3513 Post KEY_TYPED events.
3514 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3515 (generates_key_typed_event): Remove function.
3517 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3519 * javax/swing/JRootPane.java
3520 (JRootPane.RootLayout): Reimplemented to
3521 set bounds of contentPane and menuBar.
3522 (setJMenuBar): Add menu bar to the layered pane.
3523 (createLayeredPane): Set layout of layeredPane
3525 * javax/swing/JLayeredPane.java:
3526 (addImpl): Calculate index of the component in the
3527 layeredPane according to the specified position within
3530 2004-05-17 David Jee <djee@redhat.com>
3532 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3533 (setPixels): Change color model to the default model after
3535 * java/awt/image/MemoryImageSource.java
3536 (newPixels): Set only the specified rectangle of pixels.
3538 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3540 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3541 -l-java-beans -l-javax-accessibility -l-javax-swing.
3543 * java/awt/AWTEvent.java (toString): Print source's name rather
3544 than the source itself.
3546 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3548 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3550 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3551 (gdk_color_to_java_color): New function.
3552 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3554 2004-05-12 David Jee <djee@redhat.com>
3556 * java/awt/image/RGBImageFilter.java:
3557 Initialize origmodel as null.
3558 (makeColor): Fix pixel component order.
3559 (filterRGBPixels): Fix pixel iteration.
3560 (setPixels): Add extra checks for index color model. Convert pixels
3561 to default color model if necessary.
3562 (convertColorModelToDefault): New override method for byte pixels.
3563 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3564 (makeColorbyDefaultCM): New override method for byte pixels.
3565 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3566 (makeColor): Fix pixel component order.
3568 2004-05-11 Kim Ho <kho@redhat.com>
3570 * javax/swing/Box.java:
3571 Comment out more parts of Box.Filler.
3573 2004-05-11 Kim Ho <kho@redhat.com>
3575 * javax/swing/Box.java:
3576 Remove reference to AccessibleAWTComponent so
3579 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3581 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3582 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3583 implementation of list peer to use GtkTreeView instead of
3584 deprecated GtkCList.
3586 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3588 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3589 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3590 (handleEvent): Remove keyChar argument to
3591 gtkWidgetDispatchKeyEvent calls.
3592 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3594 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3595 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3596 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3599 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3601 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3602 (gtkWidgetRequestFocus): Mark protected.
3603 (GtkComponentPeer): Only set the peer's bounds if its component
3605 * java/awt/Component.java (static): Set the default keyboard
3607 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3608 requestFocusInWindow(temporary)): Don't request focus if the
3609 component is not showing. Get tree lock before traversing
3610 component hierarchy.
3611 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3612 Only set the global focus owner if it is not a Window.
3613 (processKeyEvent): Consume keystrokes associated with the focus
3614 traversal keystroke.
3615 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3616 downFocusCycle): Call requestFocusInWindow instead of
3618 * java/awt/EventDispatchThread.java (run): Move setting of
3619 default keyboard focus manager to Component.java.
3620 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3621 (awt_keycode_to_keysym): New function.
3622 (gtkWidgetDispatchKeyEvent): Finish implementation.
3623 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3624 (pre_event_handler): Add FIXME comment.
3626 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3627 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3628 (gtkWidgetRequestFocus): New method.
3629 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3630 disable Tab and Shift-Tab keystrokes.
3631 (addNotify, appendText, insertText, replaceText): Simplify peer
3633 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3634 (connectSignals): Remove connections to "commit" signals.
3635 Remove C++-style comments.
3637 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3638 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3639 (handleEvent): Activate GTK button when the space bar key is
3641 (gtkActivate): New method.
3643 2004-05-06 David Jee <djee@redhat.com>
3645 * java/awt/image/CropImageFilter.java
3646 (setPixels): Implement for byte array pixels.
3647 * java/awt/image/ReplicateScaleFilter.java
3648 (setPixels): Implement for byte array pixels.
3649 (replicatePixels): Overload for byte array pixels.
3651 2004-05-06 Kim Ho <kho@redhat.com>
3653 * javax/swing/Box.java:
3654 (getAccessibleContext): Return an instance of the
3657 2004-05-05 David Jee <djee@redhat.com>
3659 * gnu/java/awt/peer/gtk/GdkGraphics.java
3660 (drawImage): When component is null, use SystemColor.window as
3661 the default bgcolor.
3662 * gnu/java/awt/peer/gtk/GtkImage.java
3663 (setPixels): We can avoid iterating through the pixel rows only
3665 * java/awt/Image.java
3666 (getScaledInstance): Partially implement.
3667 * java/awt/image/CropImageFilter.java
3668 (setProperties): Fix "filter" property.
3669 (setPixels): Implement.
3670 * java/awt/image/ReplicateScaleFilter.java
3671 (setDimensions): Use scaled dimensions.
3672 (setPixels): Implement.
3673 (replicatePixels): New method.
3675 2004-05-05 David Jee <djee@redhat.com>
3677 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3678 (convertPixels): If either pixels or model is null, return null.
3679 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3680 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3681 is null, do nothing and return.
3683 2004-05-03 Kim Ho <kho@redhat.com>
3685 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3686 (getGraphics): Like GtkFramePeer, the Graphics
3687 object needs to be translate to account for
3689 (postMouseEvent): New method. Account for
3691 (postExposeEvent): ditto.
3692 * javax/swing/Box.java: Stubbed.
3693 * javax/swing/JDialog.java: Ran through jalopy
3695 (JDialog): Call SwingUtilities' getOwnerFrame
3697 (setLayout): Check isRootPaneCheckingEnabled
3698 * javax/swing/JOptionPane.java: Re-implemented.
3699 * javax/swing/SwingUtilities.java:
3700 (getOwnerFrame): Static method to grab a default
3701 owner frame for Dialogs that don't specify owners.
3702 * javax/swing/event/SwingPropertyChangeSupport.java:
3703 (firePropertyChange): Fix early exit condition.
3704 * javax/swing/plaf/basic/BasicLabelUI.java:
3705 (paint): Avoid painting text if it is null
3707 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3710 2004-05-03 Olga Rodimina <rodimina@redhat.com>
3712 * Makefile.am: Added new file.
3713 * Makefile.in: Regenerate.
3714 * javax/swing/JPopupMenu.java:
3715 Started implementation.
3716 * javax/swing/JWindow.java
3717 (JWindow): call super() if parent for window
3719 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3720 New File. UI Delegate for JPopupMenu.
3722 2004-04-30 Olga Rodimina <rodimina@redhat.com>
3724 * javax/swing/JApplet.java: Indicated that JApplet
3725 implements RootPaneContainer and made method of this
3727 * javax/swing/JFrame.java: Ditto.
3728 * javax/swing/JWindow.java: Ditto.
3730 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
3732 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3733 (nativeSetBounds): Call gdk_window_move in addition to
3736 * java/applet/Applet.java (preferredSize): Call parent's
3737 preferredSize if the applet stub is null.
3738 (minimumSize): Likewise for parent's minimumSize.
3740 2004-04-27 Olga Rodimina <rodimina@redhat.com>
3742 * javax/swing/JMenuItem.java
3743 (createActionPropertyChangeListener): Implemented.
3744 (processMouseEvent): Ditto.
3745 (fireMenuDragMouseEntered): Ditto.
3746 (fireMenuDragMouseExited): Ditto.
3747 (fireMenuDragMouseDragged): Ditto.
3748 (fireMenuDragMouseReleased): Ditto.
3749 (menuSelectionChanged): Ditto.
3750 (getSubElements): Ditto.
3751 (getComponent): Ditto.
3752 (addMenuDragMouseListener): Ditto.
3753 (removeMenuDragMouseListener):Ditto.
3754 (addMenuKeyListener): Ditto.
3755 (removeMenuKeyListener): Ditto.
3756 * javax/swing/plaf/basic/BasicMenuItemUI.java
3757 (doClick): Imlemented.
3758 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
3759 Don't handle mouse events here. Pass them to
3760 MenuSelectionManager.
3762 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3763 Used correct version of jalopy configuration
3764 file to fix style in the files below.
3766 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3768 * javax/swing/JCheckBoxMenuItem.java:
3769 Fixed style and removed unnecessary comments.
3770 * javax/swing/JMenuItem.java: Ditto.
3771 * javax/swing/JRadioButtonMenuItem.java: Ditto.
3772 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
3773 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
3774 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
3776 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3778 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
3781 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
3783 * java/awt/ContainerOrderFocusTraversalPolicy.java
3784 (getComponentAfter): Start from current component and work up
3785 the component hierarchy until an acceptable component is found.
3786 Synchronize on tree lock.
3787 (getComponentBefore): Likewise.
3789 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
3791 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
3792 focus-related debugging messages.
3793 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
3794 * java/awt/EventDispatchThread.java: Likewise.
3795 * java/awt/KeyboardFocusManager.java: Likewise.
3796 * java/awt/Window.java: Likewise.
3797 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3798 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3800 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
3801 new C++-style comments to C-style comments.
3802 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3804 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3805 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3806 (handleEvent): Dispatch key press and key release events to
3808 (requestFocus): Post a FOCUS_GAINED event to the event queue.
3809 (gtkWidgetRequestFocus): New method.
3810 (gtkWidgetDispatchKeyEvent): Likewise.
3811 * java/awt/Component.java (requestFocus, requestFocus(boolean),
3812 requestFocusInWindow, requestFocusInWindow(boolean),
3813 getFocusCycleRootAncestor, nextFocus, transferFocus,
3814 transferFocusBackward, transferFocusUpCycle, hasFocus,
3815 isFocusOwner): Implement and document focus-handling methods.
3816 (setFocusTraversalKeys): Inherit focus traversal keys when
3817 keystrokes argument is null. Fix focus-handling documentation
3819 * java/awt/Container.java (setFocusTraversalKeys,
3820 getFocusTraversalKeys, areFocusTraversalKeysSet,
3821 isFocusCycleRoot, setFocusTraversalPolicy,
3822 getFocusTraversalPolicy, isFocusTraversalPolicySet,
3823 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
3824 Implement and document focus-handling methods.
3825 (transferFocusBackward): Remove method.
3826 (readObject, writeObject): Implement and document serialization
3828 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
3830 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
3832 * java/awt/DefaultKeyboardFocusManager.java: Implement and
3834 * java/awt/EventDispatchThread.java (run): Set default keyboard
3835 focus manager. Attempt to dispatch each event to the keyboard
3836 focus manager before normal dispatch.
3837 * java/awt/KeyboardFocusManager.java: Implement and partially
3839 * java/awt/Window.java (Window): Set focusCycleRoot to true.
3840 (show): Focus initial component when window is shown for the
3842 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3843 (pre_event_handler): Replace complex key press and key release
3844 logic with simple callbacks into GtkComponentPeer.
3845 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
3847 2004-04-21 Olga Rodimina <rodimina@redhat.com>
3849 * javax/swing/MenuSelectionManager.java
3850 (componentForPoint): Added new method.
3851 (defaultManager): New Method. Implemented.
3852 (getSelectedPath): Ditto.
3853 (isComponentPartOfCurrentMenu): Ditto.
3854 (processKeyEvent): Added new method.
3855 (processMouseEvent): New Method. Implemented.
3856 (setSelectedPath): Ditto.
3859 2004-04-19 Kim Ho <kho@redhat.com>
3861 * java/awt/Container.java:
3862 (remove): Set the component's parent to null.
3863 (getComponentAt): Implement.
3864 * javax/swing/JComponent.java:
3865 (JComponent): Initialize defaultLocale
3866 (getDefaultLocale): Implement.
3867 (setDefaultLocale): ditto.
3868 * javax/swing/JSlider.java:
3869 (JSlider): Fix calculation of value.
3870 * javax/swing/JSplitPane.java: Implement.
3871 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3872 Change SplitPane's default divider size.
3873 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3874 (paint): Remove unused code.
3875 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
3876 Added comments and ran through jalopy.
3877 (setBasicSplitPaneUI): Get reference to hidden divider
3878 and set up one touch buttons if necessary.
3879 (setBorder): Fire propertyChangeEvent only if
3880 borders are different.
3881 (getPreferredSize): Defer to layout manager.
3882 (propertyChange): Implement.
3883 (oneTouchExpandableChanged): ditto.
3884 (createLeftOneTouchButton): Use BasicArrowButton.
3885 (createRightOneTouchButton): ditto.
3886 (moveDividerTo): New method. Moves the divider
3887 to a set location based on the last divider location.
3888 (BasicSplitPaneDivider::MouseHandler): Implement.
3889 (BasicSplitPaneDivider::OneTouchButton): Removed.
3890 (BasicSplitPaneDivider::DragController): Implement.
3891 (BasicSplitPaneDivider::VerticalDragController):
3893 (BasicSplitPaneDivider::DividerLayout): ditto.
3894 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
3895 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
3896 (calculateLayoutInfo): Don't show component if it's
3898 (paintTab): Fix title paint logic.
3900 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
3903 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3904 (setStartRule,setEndRule): Don't take abs of day number.
3905 (getOffset): Clarify docs. Add argument checks.
3906 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3907 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3909 * testsuite/libjava.mauve/xfails
3910 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
3912 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
3914 Layout interfaces during preparation, not initialization.
3915 * java/lang/natClass.cc (initializeClass): Move
3916 _Jv_LayoutInterfaceMethods call...
3917 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
3919 2004-05-19 Anthony Green <green@localhost.localdomain>
3921 * Makefile.am (awt_java_source_files): Remove javax.rmi and
3923 * Makefile.in: Rebuilt.
3924 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
3925 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
3926 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
3927 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
3928 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
3929 gnu/javax/rmi/CORBA/DelegateFactory.java,
3930 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
3931 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
3932 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
3933 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
3934 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
3935 gnu/javax/rmi/PortableServer.java: Remove files.
3937 2004-05-19 Anthony Green <green@redhat.com>
3939 * Makefile.am: Define JAVA_EXT_DIRS.
3940 * Makefile.in: Rebuilt.
3941 * java/lang/natRuntime.cc (insertSystemProperties): Set
3942 java.ext.dirs property.
3944 2004-05-16 Mark Wielaard <mark@klomp.org>
3946 * java/io/Writer.java (Writer(Object)): Check for null lock object.
3948 2004-05-15 Mark Wielaard <mark@klomp.org>
3950 * doc/cni.sgml: Removed, merged into gcj.texi.
3952 2004-05-15 Mark Wielaard <mark@klomp.org>
3954 * Makefile.am (ordinary_java_source_files): Add new javax.print
3956 * Makefile.in: Regenerated.
3958 2004-05-15 Michael Koch <konqueror@gmx.de>
3960 * javax/print/attribute/standard/DateTimeAtCompleted.java,
3961 javax/print/attribute/standard/DateTimeAtCreation.java,
3962 javax/print/attribute/standard/DateTimeAtProcessing.java,
3963 javax/print/attribute/standard/DocumentName.java,
3964 javax/print/attribute/standard/JobHoldUntil.java,
3965 javax/print/attribute/standard/JobImpressionsCompleted.java,
3966 javax/print/attribute/standard/JobMessageFromOperator.java,
3967 javax/print/attribute/standard/JobName.java,
3968 javax/print/attribute/standard/JobOriginatingUserName.java,
3969 javax/print/attribute/standard/JobPriority.java,
3970 javax/print/attribute/standard/JobPrioritySupported.java,
3971 javax/print/attribute/standard/NumberOfInterveningJobs.java,
3972 javax/print/attribute/standard/OutputDeviceAssigned.java,
3973 javax/print/attribute/standard/PrinterInfo.java,
3974 javax/print/attribute/standard/PrinterLocation.java,
3975 javax/print/attribute/standard/PrinterMakeAndModel.java,
3976 javax/print/attribute/standard/PrinterMessageFromOperator.java,
3977 javax/print/attribute/standard/PrinterName.java,
3978 javax/print/attribute/standard/QueuedJobCount.java,
3979 javax/print/attribute/standard/RequestingUserName.java:
3980 Fixed javadocs all over.
3982 2004-05-15 Michael Koch <konqueror@gmx.de>
3984 * javax/print/DocFlavor.java,
3985 javax/print/attribute/standard/ColorSupported.java,
3986 javax/print/attribute/standard/Compression.java,
3987 javax/print/attribute/standard/CopiesSupported.java,
3988 javax/print/attribute/standard/Fidelity.java,
3989 javax/print/attribute/standard/Finishings.java,
3990 javax/print/attribute/standard/JobImpressionsSupported.java,
3991 javax/print/attribute/standard/JobKOctetsSupported.java,
3992 javax/print/attribute/standard/JobMediaSheetsSupported.java,
3993 javax/print/attribute/standard/JobSheets.java,
3994 javax/print/attribute/standard/JobState.java,
3995 javax/print/attribute/standard/JobStateReason.java,
3996 javax/print/attribute/standard/JobStateReasons.java,
3997 javax/print/attribute/standard/Media.java,
3998 javax/print/attribute/standard/MediaSizeName.java,
3999 javax/print/attribute/standard/MultipleDocumentHandling.java,
4000 javax/print/attribute/standard/NumberUpSupported.java,
4001 javax/print/attribute/standard/OrientationRequested.java,
4002 javax/print/attribute/standard/PDLOverrideSupported.java,
4003 javax/print/attribute/standard/PageRanges.java,
4004 javax/print/attribute/standard/PresentationDirection.java,
4005 javax/print/attribute/standard/PrintQuality.java,
4006 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4007 javax/print/attribute/standard/PrinterMoreInfo.java,
4008 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4009 javax/print/attribute/standard/PrinterResolution.java,
4010 javax/print/attribute/standard/PrinterState.java,
4011 javax/print/attribute/standard/PrinterStateReason.java,
4012 javax/print/attribute/standard/PrinterStateReasons.java,
4013 javax/print/attribute/standard/PrinterURI.java,
4014 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4015 javax/print/attribute/standard/Severity.java,
4016 javax/print/attribute/standard/SheetCollate.java,
4017 javax/print/attribute/standard/Sides.java:
4018 Added serialVersionUID and removed final keyword where it doenst
4021 2004-05-15 Michael Koch <konqueror@gmx.de>
4023 * javax/print/PrintServiceLookup.java: New file.
4025 2004-05-15 Michael Koch <konqueror@gmx.de>
4027 * javax/print/DocFlavor.java:
4028 Implemented all flavor classes.
4030 2004-05-15 Michael Koch <konqueror@gmx.de>
4032 * javax/print/attribute/standard/ColorSupported.java,
4033 javax/print/attribute/standard/Compression.java,
4034 javax/print/attribute/standard/CopiesSupported.java,
4035 javax/print/attribute/standard/Fidelity.java,
4036 javax/print/attribute/standard/Finishings.java,
4037 javax/print/attribute/standard/JobImpressionsSupported.java,
4038 javax/print/attribute/standard/JobKOctetsSupported.java,
4039 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4040 javax/print/attribute/standard/JobSheets.java,
4041 javax/print/attribute/standard/JobState.java,
4042 javax/print/attribute/standard/JobStateReason.java,
4043 javax/print/attribute/standard/JobStateReasons.java,
4044 javax/print/attribute/standard/Media.java,
4045 javax/print/attribute/standard/MediaSizeName.java,
4046 javax/print/attribute/standard/MultipleDocumentHandling.java,
4047 javax/print/attribute/standard/NumberUpSupported.java,
4048 javax/print/attribute/standard/OrientationRequested.java,
4049 javax/print/attribute/standard/PDLOverrideSupported.java,
4050 javax/print/attribute/standard/PageRanges.java,
4051 javax/print/attribute/standard/PresentationDirection.java,
4052 javax/print/attribute/standard/PrintQuality.java,
4053 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4054 javax/print/attribute/standard/PrinterMoreInfo.java,
4055 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4056 javax/print/attribute/standard/PrinterResolution.java,
4057 javax/print/attribute/standard/PrinterState.java,
4058 javax/print/attribute/standard/PrinterStateReason.java,
4059 javax/print/attribute/standard/PrinterStateReasons.java,
4060 javax/print/attribute/standard/PrinterURI.java,
4061 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4062 javax/print/attribute/standard/Severity.java,
4063 javax/print/attribute/standard/SheetCollate.java,
4064 javax/print/attribute/standard/Sides.java: New files.
4066 2004-05-15 Michael Koch <konqueror@gmx.de>
4068 * javax/print/Doc.java
4069 (getPrintData): Throws IOException.
4070 (getReaderForText): Likewise.
4071 (getStreamForBytes): Likewise.
4072 * javax/print/DocFlavor.java:
4073 Fixed filename in copyright.
4074 (serialVersionUID): New field.
4075 * javax/print/ServiceUIFactory.java:
4076 Made all constants final.
4077 * javax/print/AttributeException.java
4078 javax/print/MultiDoc.java
4079 javax/print/MultiDocPrintJob.java
4080 javax/print/MultiDocPrintService.java
4081 javax/print/StreamPrintService.java
4082 javax/print/URIException.java: New files.
4083 * javax/print/Makefile.am
4084 (EXTRA_DIST): Added all new files.
4086 2004-05-15 Michael Koch <konqueror@gmx.de>
4088 * javax/print/attribute/standard/Copies.java,
4089 javax/print/attribute/standard/DateTimeAtCompleted.java,
4090 javax/print/attribute/standard/DateTimeAtCreation.java,
4091 javax/print/attribute/standard/DateTimeAtProcessing.java,
4092 javax/print/attribute/standard/DocumentName.java,
4093 javax/print/attribute/standard/JobHoldUntil.java,
4094 javax/print/attribute/standard/JobImpressions.java,
4095 javax/print/attribute/standard/JobImpressionsCompleted.java,
4096 javax/print/attribute/standard/JobKOctets.java,
4097 javax/print/attribute/standard/JobKOctetsProcessed.java,
4098 javax/print/attribute/standard/JobMediaSheets.java,
4099 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4100 javax/print/attribute/standard/JobMessageFromOperator.java,
4101 javax/print/attribute/standard/JobName.java,
4102 javax/print/attribute/standard/JobOriginatingUserName.java,
4103 javax/print/attribute/standard/JobPriority.java,
4104 javax/print/attribute/standard/JobPrioritySupported.java,
4105 javax/print/attribute/standard/NumberOfDocuments.java,
4106 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4107 javax/print/attribute/standard/NumberUp.java,
4108 javax/print/attribute/standard/OutputDeviceAssigned.java,
4109 javax/print/attribute/standard/PagesPerMinute.java,
4110 javax/print/attribute/standard/PagesPerMinuteColor.java:
4111 Fixed @return tag all over.
4113 2004-05-15 Michael Koch <konqueror@gmx.de>
4115 * javax/print/attribute/AttributeSetUtilities.java
4116 (verifyCategoryForValue): Fixed typo in javadoc.
4117 * javax/print/attribute/HashAttributeSet.java
4118 (containsKey): Fixed @return tag.
4119 (comtainsValue): Likewise.
4121 * javax/print/attribute/IntegerSyntax.java
4123 * javax/print/attribute/ResolutionSyntax.java
4125 (getCrossFeedResolution): Removed unused code.
4126 (getFeedResolution): Likewise.
4127 * javax/print/attribute/SetOfIntegerSyntax.java
4128 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4129 (equals): Fixed @return tag.
4130 * javax/print/attribute/TextSyntax.java
4131 (TextSyntax): Take locale into account.
4132 (hashCode): Better implementation.
4134 2004-05-15 Michael Koch <konqueror@gmx.de>
4136 * javax/print/CancelablePrintJob.java,
4137 javax/print/Doc.java,
4138 javax/print/DocFlavor.java,
4139 javax/print/DocPrintJob.java,
4140 javax/print/FlavorException.java,
4141 javax/print/PrintException.java,
4142 javax/print/PrintService.java,
4143 javax/print/ServiceUIFactory.java: New files.
4145 2004-05-15 Mark Wielaard <mark@klomp.org>
4147 * gnu/regexp/CharIndexedReader.java: Removed.
4148 * gnu/regexp/REFilterReader.java: Likewise.
4149 * gnu/regexp/RETokenLookAhead.java: Likewise.
4150 * Makefile.am (ordinary_java_source_files): Remove above classes.
4151 * Makefile.in: Regenerated.
4153 2004-05-14 Tom Tromey <tromey@redhat.com>
4155 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4156 not `XGraphicsConfiguration.XOffScreenImage'.
4158 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4160 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4162 2004-05-14 Steven Augart <augart@watson.ibm.com>
4164 * include/jni.h (_Jv_func): Removed.
4165 (struct JNINativeInterface): Use `void *' for reserved slots.
4166 (struct JNIInvokeInterface): Likewise.
4168 2004-05-11 Michael Koch <konqueror@gmx.de>
4170 * gnu/java/net/natPlainSocketImplPosix.cc
4171 (read): Fixed typo in expression.
4173 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4175 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4176 ld_library_additions. Adjust all calls to libjava_invoke to match
4179 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4180 path to cxxflagslist.
4181 Pass path of libstdc++ to libjava_invoke.
4183 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4184 libjava_invoke arguments.
4186 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4188 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4191 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4193 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4194 main binary against the JNI shared library.
4196 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4198 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4199 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4200 (SimpleTimeZone): Tweak docs. Add new variation.
4201 (setStartRule,setEndRule): Add new variations. Use
4202 startTimeMode and endTimeMode.
4204 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4206 * java/util/Calendar.java (getActualMinimum,
4207 getActualMaximum): Remove abstract. Implement.
4209 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4211 Run the jni tests using the interpreter.
4212 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4213 options_cxx to shared lib compile command.
4214 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4215 they are used to link the shared lib, not the main binary.
4216 Use libjava_invoke to run gij.
4218 2004-05-06 Michael Koch <konqueror@gmx.de>
4220 * java/util/logging/Level.java
4221 (parse): Use == instead of String.equals().
4223 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4225 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4226 verify_field_signature and verify_method_signature, not
4227 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4228 (_Jv_ClassReader::handleField): Likewise.
4229 (_Jv_ClassReader::handleMethod): Likewise.
4231 2004-05-06 Michael Koch <konqueror@gmx.de>
4233 * javax/swing/table/TableColumn.java:
4236 2004-05-06 Michael Koch <konqueror@gmx.de>
4238 * javax/imageio/spi/ImageReaderWriterSpi.java
4239 (ImageReaderWriterSpi): Made it public.
4240 * javax/imageio/stream/ImageInputStream.java:
4243 2004-05-06 Michael Koch <konqueror@gmx.de>
4245 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4248 2004-05-06 Michael Koch <konqueror@gmx.de>
4250 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4251 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4253 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4254 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4255 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4256 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4257 their own source file.
4258 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4259 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4260 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4261 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4262 (create): Define variable on top of function.
4263 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4264 (menu_pos): Prototyped.
4265 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4266 (setTitle): Removed.
4267 * jni/gtk-peer/gthread-jni.c
4268 (gdk_threads_wake): Removed.
4269 * Makefile.am (gtk_c_source_files): Added new files
4270 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4271 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4272 * Makefile.in: Regenerated.
4274 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4276 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4279 2004-05-05 Mark Wielaard <mark@klomp.org>
4281 * javax/swing/AbstractButton.java: Replace special HTML entities with
4283 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4284 * javax/swing/DefaultButtonModel.java: Likewise.
4285 * javax/swing/DefaultListModel.java: Likewise.
4286 * javax/swing/JList.java: Likewise.
4287 * javax/swing/JSlider.java: Likewise.
4288 * javax/swing/ListModel.java: Likewise.
4289 * javax/swing/Popup.java: Likewise.
4290 * javax/swing/SwingUtilities.java: Likewise.
4292 2004-05-05 Michael Koch <konqueror@gmx.de>
4294 * javax/swing/AbstractButton.java,
4295 javax/swing/ActionMap.java,
4296 javax/swing/DefaultButtonModel.java,
4297 javax/swing/DefaultListModel.java,
4298 javax/swing/ImageIcon.java,
4299 javax/swing/JComboBox.java,
4300 javax/swing/JComponent.java,
4301 javax/swing/JFrame.java,
4302 javax/swing/JInternalFrame.java,
4303 javax/swing/JMenuBar.java,
4304 javax/swing/JMenuItem.java,
4305 javax/swing/JOptionPane.java,
4306 javax/swing/JProgressBar.java,
4307 javax/swing/JRootPane.java,
4308 javax/swing/JScrollBar.java,
4309 javax/swing/JScrollPane.java,
4310 javax/swing/JSeparator.java,
4311 javax/swing/JSlider.java,
4312 javax/swing/JTabbedPane.java,
4313 javax/swing/JTable.java,
4314 javax/swing/JTextField.java,
4315 javax/swing/JToolBar.java,
4316 javax/swing/JToolTip.java,
4317 javax/swing/JTree.java,
4318 javax/swing/JViewport.java,
4319 javax/swing/JWindow.java,
4320 javax/swing/KeyStroke.java,
4321 javax/swing/LookAndFeel.java,
4322 javax/swing/SwingUtilities.java,
4323 javax/swing/Timer.java,
4324 javax/swing/ToolTipManager.java,
4325 javax/swing/UIDefaults.java,
4326 javax/swing/border/TitledBorder.java,
4327 javax/swing/filechooser/FileSystemView.java,
4328 javax/swing/plaf/basic/BasicButtonListener.java,
4329 javax/swing/plaf/basic/BasicButtonUI.java,
4330 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4331 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4332 javax/swing/plaf/basic/BasicLabelUI.java,
4333 javax/swing/plaf/basic/BasicMenuItemUI.java,
4334 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4335 javax/swing/plaf/basic/BasicRootPaneUI.java,
4336 javax/swing/plaf/basic/BasicScrollBarUI.java,
4337 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4338 javax/swing/plaf/basic/BasicSliderUI.java,
4339 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4340 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4341 javax/swing/table/JTableHeader.java,
4342 javax/swing/text/AbstractDocument.java,
4343 javax/swing/text/DefaultCaret.java,
4344 javax/swing/text/StyledEditorKit.java,
4345 javax/swing/tree/DefaultTreeCellEditor.java:
4348 2004-05-05 Michael Koch <konqueror@gmx.de>
4350 * java/util/prefs/AbstractPreferences.java
4351 (AbstractPreferences): Added parenthesis for clarity.
4352 Closes classpath bug #7940.
4354 2004-05-05 Tom Tromey <tromey@redhat.com>
4356 * javax/naming/CompoundName.java (endsWith): Look at correct
4357 element of source name.
4359 2004-05-05 Mark Wielaard <mark@klomp.org>
4361 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4362 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4364 2004-05-05 Tom Tromey <tromey@redhat.com>
4366 * java/io/BufferedReader.java (skip): Removed unused
4369 2004-05-05 Michael Koch <konqueror@gmx.de>
4371 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4373 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4375 * java/text/AttributedString.java,
4376 java/text/AttributedStringIterator.java,
4377 java/text/Collator.java,
4378 java/text/DecimalFormatSymbols.java,
4379 java/text/NumberFormat.java,
4380 java/text/RuleBasedCollator.java:
4383 2004-05-05 Tom Tromey <tromey@redhat.com>
4385 * java/text/Format.java: Cleaned up imports.
4386 * java/text/DecimalFormat.java: Cleaned up imports.
4387 * java/security/SecureRandom.java: Cleaned up imports.
4388 (SecureRandom): Removed unused variable.
4389 * java/security/UnresolvedPermission.java: Cleaned up imports.
4390 * java/util/Date.java (parse): Removed unused variable.
4391 * java/util/ResourceBundle.java: Cleaned up imports.
4392 (getBundle): Removed unused variable.
4393 (tryBundle): Likewise.
4394 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4396 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4398 * java/text/SimpleDateFormat.java:
4399 (formatWithAttribute): New method. It implements
4400 the formatting process with attributes.
4401 (format): Use formatWithAttribute.
4402 (formatToCharacterIterator): New method. Use
4403 formatWithAttribute.
4405 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4407 * java/text/MessageFormat.java:
4408 (class Field): New class.
4409 (formatToCharacterIterator): New method.
4410 (format): Use formatInternal now.
4411 (formatInternal): New method. String formatter should
4412 be done here (with attributes). Attributes merging supported.
4413 (parse): More documentation.
4414 (getFormatsByArgumentIndex): New method.
4415 (setFormatByArgumentIndex): New method.
4416 (setFormatsByArgumentIndex): New method.
4418 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4420 * java/text/DecimalFormat.java
4421 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4422 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4423 (parse): Fixed handling of exponentiation notation and grouping.
4425 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4427 * java/text/DecimalFormat.java
4428 (scanFix): Build attribute array. Fixed error reporting.
4429 (applyPatternWithSymbols): Store attributes for the prefix and
4431 (formatInternal): New method. Changed the way the string is
4432 computed. Implemented attributes. Cleant up rounding in
4433 exponential notation.
4434 (format): Use formatInternal.
4435 (formatToCharacterIterator): New method.
4436 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4437 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4438 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4441 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4443 * java/security/interfaces/DSAKeyPairGenerator.java,
4444 java/security/interfaces/DSAPrivateKey.java,
4445 java/security/interfaces/DSAPublicKey.java,
4446 java/security/interfaces/RSAPrivateKey.java,
4447 java/security/interfaces/RSAPublicKey.java:
4450 2004-05-04 Michael Koch <konqueror@gmx.de>
4452 * java/nio/ByteBuffer.java,
4453 java/nio/CharBuffer.java,
4454 java/nio/DoubleBuffer.java,
4455 java/nio/FloatBuffer.java,
4456 java/nio/IntBuffer.java,
4457 java/nio/LongBuffer.java,
4458 java/nio/ShortBuffer.java:
4459 (compareTo): Fixed bogus implementation in all buffer classes.
4461 2004-05-04 Ingo Proetel <proetel@aicas.com>
4463 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4464 32 bit pixels not 8 bit pixels.
4465 (isCompatibleRaster): Added javadoc comment.
4467 2004-05-04 Ingo Proetel <proetel@aicas.com>
4469 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4472 2004-05-04 Ingo Proetel <proetel@aicas.com>
4474 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4475 (getColorModel): Return the actual color model.
4476 (getRaster): Implemented.
4477 (ColorRaster): New inner class.
4478 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4480 * java/awt/Color.java (<init>): Make exception more verbose.
4481 (createContext): Use ColorModel when creating a PaintContext.
4483 2004-05-04 Michael Koch <konqueror@gmx.de>
4485 * gnu/java/text/CharacterBreakIterator.java
4486 (previous): Removed unused variable.
4488 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4490 * gnu/java/text/FormatBuffer.java,
4491 gnu/java/text/AttributedFormatBuffer.java,
4492 gnu/java/text/StringFormatBuffer.java: New classes to implement
4493 attributed iterators in java.text.
4494 * gnu/java/text/FormatCharacterIterator.java: Moved
4495 from java/text as it is an internal class.
4496 * java/text/FormatCharacterIterator.java: Removed.
4497 * java/text/Format.java:
4498 Import gnu.java.text.FormatCharacterIterator.
4499 * Makefile.am (java_source_files): Added new files.
4500 * Makefile.in: Regenerated.
4503 2004-05-04 Mark Wielaard <mark@klomp.org>
4505 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4507 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4509 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4510 * Makefile.in: Rebuilt.
4512 2004-05-03 Mark Wielaard <mark@klomp.org>
4514 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4515 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4517 (set(String, String, int, String, String, String, String, String)):
4518 Assign this.file to path or path + "?" + query.
4519 * java/util/Arrays.java: Call static methods staticly.
4520 * java/util/zip/ZipEntry.java: Likewise.
4521 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4522 dir to this.direction.
4523 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4524 Assign static field only once.
4525 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4527 2004-05-03 Mark Wielaard <mark@klomp.org>
4529 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4530 unused variables hScrollbarHeight and vScrollbarWidth.
4531 (preferredSize): Likewise.
4532 * gnu/java/security/provider/DSAParameters.java (engineToString):
4533 Removed unused call to System.getProperty("line.seperator");
4534 * java/security/Security.java (loadProviders): Return result.
4536 2004-05-03 Tom Tromey <tromey@redhat.com>
4538 * java/net/URLStreamHandler.java (toExternalForm): Removed
4541 * java/math/BigDecimal.java (divide): Removed unused variable.
4542 * java/lang/Throwable.java: Cleaned up imports.
4543 * java/lang/ClassLoader.java: Cleaned up imports.
4544 * java/io/FilePermission.java (implies): Removed unused
4546 * java/awt/TextComponent.java: Removed unused import.
4547 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4548 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4549 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4550 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4552 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4553 * gnu/java/text/CharacterBreakIterator.java: Removed
4555 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4557 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4558 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4560 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4561 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4562 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4563 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4564 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4565 (lookupProviders): Removed unused variable.
4566 (loadNextServiceProvider): Likewise.
4567 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4569 2004-05-03 Michael Koch <konqueror@gmx.de>
4571 Fixes PR libgcj/14695:
4572 * java/net/NetworkInterface.java
4573 (getByName): Return null when no interface was found.
4575 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4576 Tom Tromey <tromey@redhat.com>
4578 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4579 additional option "-Wmissing-prototypes" for compiling C sources.
4580 Print actual filename for pass/fail rather than $name.c.
4581 * testsuite/libjava.jni/PR15133.java: New testcase file.
4582 * testsuite/libjava.jni/PR15133.c: Likewise.
4583 * testsuite/libjava.jni/PR15133.out: Likewise.
4585 2004-04-30 Roger Sayle <roger@eyesopen.com>
4587 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4590 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4592 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4593 limit the maximum heap size to avoid unnecessary thrashing.
4595 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4597 * java/text/CollationElementIterator.java (reset): Reset
4598 lookahead variables.
4600 2004-04-23 Mark Wielaard <mark@klomp.org>
4602 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4604 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4606 * java/sql/DriverManager.java:
4609 2004-04-23 Michael Koch <konqueror@gmx.de>
4612 (hashcode): Don't initialize with default value explicitely.
4613 (getContent): Removed redundant "final" keyword.
4614 (openStream): Likewise.
4615 (getURLStreamHandler): Fixed coding style.
4616 * java/net/URLConnection.java
4617 (defaultAllowUserInteraction): Don't initialize with default value
4619 (connected): Likewise.
4620 (doOutput): Likewise.
4621 (ifModifiedSince): Likewise.
4622 (dateformats_initialized): Likewise.
4623 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4625 2004-04-23 Michael Koch <konqueror@gmx.de>
4627 * gnu/java/nio/channels/FileChannelImpl.java
4628 (SET, CUR): Unused, removed.
4629 (read): Implement here directly.
4630 (implRead): Removed.
4631 (write): Implement here directly.
4632 (implWrite): Removed.
4634 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4636 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4637 javax/rmi/CORBA/Stub.java,
4638 javax/rmi/CORBA/Util.java,
4639 javax/rmi/CORBA/ValueHandler.java,
4640 javax/rmi/CORBA/ValueHandler.java,
4641 javax/rmi/PortableRemoteObject.java:
4644 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4646 * java/util/jar/JarFile.java,
4647 java/util/jar/JarInputStream.java,
4648 java/util/jar/JarOutputStream.java,
4649 java/util/jar/Manifest.java:
4652 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4654 * java/util/ArrayList.java,
4655 java/util/Calendar.java,
4656 java/util/Currency.java,
4657 java/util/HashMap.java,
4658 java/util/HashSet.java,
4659 java/util/Hashtable.java,
4660 java/util/LinkedList.java,
4661 java/util/Properties.java,
4662 java/util/PropertyPermission.java,
4663 java/util/TimeZone.java,
4664 java/util/TreeMap.java,
4665 java/util/TreeSet.java,
4666 java/util/Vector.java,
4667 java/util/WeakHashMap.java:
4670 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4672 * java/util/logging/FileHandler.java,
4673 java/util/logging/Formatter.java,
4674 java/util/logging/Handler.java,
4675 java/util/logging/Logger.java,
4676 java/util/logging/SimpleFormatter.java,
4677 java/util/logging/XMLFormatter.java:
4680 2004-04-22 Mark Wielaard <mark@klomp.org>
4682 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4683 -Wno-long-long flags variable.
4684 (gtk_c_files): Use PEDANTIC_CFLAGS.
4685 * Makefile.in: Regenerated.
4687 2004-04-22 Mark Wielaard <mark@klomp.org>
4689 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4690 Changed C++ comments into C comments.
4691 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
4694 2004-04-22 Michael Koch <konqueror@gmx.de>
4696 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
4697 Merged copyright year with GNU classpath.
4699 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4701 * javax/security/auth/x500/X500Principal.java:
4704 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4706 * javax/swing/JSlider.java:
4707 Fixed HTML tags in comments.
4709 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4711 * javax/accessibility/AccessibleText.java:
4714 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
4716 * java/net/URLStreamHandler.java
4717 (parseURL): Convert the file path to using '/' instead of native
4720 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
4723 (userInfo): New field.
4724 (URL): Set authority to the right value.
4725 (setURL): Fixed authority and file initialization.
4726 * java/net/URLStreamHandler.java
4727 (parseURL): Take care of the query tag. Build authority.
4728 (toExternalForm): Fixed URL building using authority.
4730 2004-04-22 Michael Koch <konqueror@gmx.de>
4732 * java/net/Socket.java
4733 (impl): Made package-private.
4734 * java/net/ServerSocket.java
4735 (implAccept): Access Socket.impl field directly.
4737 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4739 * java/util/prefs/Preferences.java,
4740 java/util/prefs/InvalidPreferencesFormatException.java,
4741 java/util/prefs/BackingStoreException.java,
4742 java/util/prefs/AbstractPreferences.java:
4745 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4747 * java/util/regex/Matcher.java,
4748 java/util/regex/Pattern.java:
4751 2004-04-22 Michael Koch <konqueror@gmx.de>
4753 * java/nio/charset/IllegalCharsetNameException.java
4754 (charsetName): Made private.
4755 (IllegalCharsetNameException): Added @param tag to javadoc.
4756 (getCharsetName): Added @return tag to javadoc.
4757 * java/nio/charset/MalformedInputException.java
4758 (MalformedInputException): Added @param tag to javadoc.
4759 (getInputLength): Revised method description, added @return tag.
4760 (getMessage): Added @return tag.
4762 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
4764 * java/awt/Font.java (deriveFont): Implement missing variants.
4765 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
4768 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
4770 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
4771 Set method->index values for interface methods to their itable index.
4772 (initializeClass): Call _Jv_LayoutInterfaceMethods.
4774 2004-04-21 Michael Koch <konqueror@gmx.de>
4776 * java/nio/DirectByteBufferImpl.java
4777 (shiftDown): Made static, give address as argument and
4778 provide a convenience method that overwrites shiftDown in
4779 ByteBufferImpl and calls the native shiftDown.
4780 * java/nio/MappedByteBufferImpl.java
4781 (): Use optimized method in DirectByteBufferImpl.
4782 * java/nio/natDirectByteBufferImpl.cc
4783 (shiftDown): Changed method signature. Removed usage of array_offset.
4785 2004-04-21 Michael Koch <konqueror@gmx.de>
4787 * gnu/java/net/natPlainSocketImplPosix.cc
4788 (SocketInputStream::read): Make sure returned data is a byte value.
4790 2004-04-21 Michael Koch <konqueror@gmx.de>
4792 * gnu/classpath/ServiceFactory.java,
4793 gnu/classpath/ServiceProviderLoadingAction.java,
4794 javax/imageio/ImageReader.java,
4795 javax/imageio/ImageTranscoder.java,
4796 javax/imageio/ImageWriter.java,
4797 javax/imageio/package.html,
4798 javax/imageio/spi/IIOServiceProvider.java,
4799 javax/imageio/spi/ImageInputStreamSpi.java,
4800 javax/imageio/spi/ImageOutputStreamSpi.java,
4801 javax/imageio/spi/ImageReaderWriterSpi.java,
4802 javax/imageio/spi/ImageTranscoderSpi.java,
4803 javax/imageio/spi/RegisterableService.java,
4804 javax/imageio/spi/ServiceRegistry.java,
4805 javax/imageio/spi/package.html,
4806 javax/imageio/stream/IIOByteBuffer.java,
4807 javax/imageio/stream/ImageInputStream.java,
4808 javax/imageio/stream/ImageOutputStream.java,
4809 javax/imageio/stream/package.html:
4812 (ordinary_java_source_files): Added
4813 gnu/classpath/ServiceFactory.java and
4814 gnu/classpath/ServiceProviderLoadingAction.java.
4815 (javax_source_files): Added
4816 javax/imageio/ImageReader.java,
4817 javax/imageio/ImageTranscoder.java,
4818 javax/imageio/ImageWriter.java,
4819 javax/imageio/spi/IIOServiceProvider.java,
4820 javax/imageio/spi/ImageInputStreamSpi.java,
4821 javax/imageio/spi/ImageOutputStreamSpi.java,
4822 javax/imageio/spi/ImageReaderWriterSpi.java,
4823 javax/imageio/spi/ImageTranscoderSpi.java,
4824 javax/imageio/spi/RegisterableService.java,
4825 javax/imageio/spi/ServiceRegistry.java,
4826 javax/imageio/stream/IIOByteBuffer.java,
4827 javax/imageio/stream/ImageInputStream.java and
4828 javax/imageio/stream/ImageOutputStream.java.
4829 * Makefile.in: Regenerated.
4831 2004-04-21 Michael Koch <konqueror@gmx.de>
4833 * java/util/Properties.java
4834 (load): Fix wrongly merged fix.
4836 2004-04-21 Mark Wielaard <mark@klomp.org>
4838 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
4839 malloc and free buf.
4841 2004-04-21 Dalibor Topic <robilad@kaffe.org>
4843 * javax/naming/AuthenticationException.java,
4844 javax/naming/AuthenticationNotSupportedException.java,
4845 javax/naming/CannotProceedException.java,
4846 javax/naming/CommunicationException.java,
4847 javax/naming/CompoundName.java,
4848 javax/naming/ConfigurationException.java,
4849 javax/naming/ContextNotEmptyException.java,
4850 javax/naming/InitialContext.java,
4851 javax/naming/InsufficientResourcesException.java,
4852 javax/naming/InterruptedNamingException.java,
4853 javax/naming/LimitExceededException.java,
4854 javax/naming/LinkException.java,
4855 javax/naming/LinkLoopException.java,
4856 javax/naming/LinkRef.java,
4857 javax/naming/MalformedLinkException.java,
4858 javax/naming/Name.java,
4859 javax/naming/NameAlreadyBoundException.java,
4860 javax/naming/NameNotFoundException.java,
4861 javax/naming/NamingSecurityException.java,
4862 javax/naming/NoInitialContextException.java,
4863 javax/naming/NoPermissionException.java,
4864 javax/naming/NotContextException.java,
4865 javax/naming/PartialResultException.java,
4866 javax/naming/ReferralException.java,
4867 javax/naming/ServiceUnavailableException.java,
4868 javax/naming/SizeLimitExceededException.java,
4869 javax/naming/TimeLimitExceededException.java,
4870 javax/naming/directory/Attribute.java,
4871 javax/naming/directory/Attributes.java,
4872 javax/naming/directory/SearchResult.java,
4873 javax/naming/event/NamingExceptionEvent.java,
4874 javax/naming/spi/ResolveResult.java:
4877 2004-04-21 Mark Wielaard <mark@klomp.org>
4879 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4880 Changed C++ comments into C comments. Removed commented out code.
4881 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4883 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
4885 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
4887 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
4889 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
4891 * native/jni/gtk-peer/gthread-jni.c:
4894 2004-04-21 Mark Wielaard <mark@klomp.org>
4896 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
4897 static fields defined in interface.
4898 * javax/awt/JDialog.java: Likewise.
4899 (JDialog): Make constructors public.
4900 (getDefaultCloseOperation): Make public.
4901 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
4902 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
4903 * javax/swing/JViewport.java (JViewport): Make constructor public.
4905 2004-04-21 Michael Koch <konqueror@gmx.de>
4907 * java/util/Map.java
4908 (Entry): Removed redundant "static" modifier.
4909 * java/text/AttributedCharacterIterator.java:
4910 Updated copyright year.
4912 2004-04-20 Michael Koch <konqueror@gmx.de>
4914 * javax/naming/directory/SearchControls.java:
4915 Don't explicitely extend java.lang.Object.
4916 * javax/naming/spi/DirStateFactory.java:
4917 Merged copyright year with GNU classpath.
4919 2004-04-20 Michael Koch <konqueror@gmx.de>
4921 * java/nio/channels/Channels.java:
4922 Merged coding style with GNU classpath.
4924 2004-04-20 Michael Koch <konqueror@gmx.de>
4926 * java/net/ServerSocket.java
4927 Merged coding style from GNU classpath.
4929 2004-04-20 Michael Koch <konqueror@gmx.de>
4931 * java/io/BufferedWriter.java:
4932 Reordered variables to be at top of the class.
4933 (localFlush): Removed redundant final keyword.
4935 2004-04-20 Ingo Proetel <proetel@aicas.com>
4937 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
4939 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
4941 * java/text/DecimalFormat.java (scanFix): Removed suffix check
4942 for percent and permill check.
4944 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
4946 * java/text/FieldPosition.java
4947 (FieldPosition) Constructor now behaves as it should according
4948 to the java documentation.
4950 2004-04-20 Mark Wielaard <mark@klomp.org>
4952 * java/util/Properties.java: Use the word umlaut, not ä in api
4955 2004-04-20 Michael Koch <konqueror@gmx.de>
4957 * java/nio/Buffer.java,
4958 java/nio/channels/AlreadyConnectedException.java,
4959 java/nio/channels/AsynchronousCloseException.java,
4960 java/nio/channels/ByteChannel.java,
4961 java/nio/channels/CancelledKeyException.java,
4962 java/nio/channels/Channel.java,
4963 java/nio/channels/Channels.java,
4964 java/nio/channels/ClosedByInterruptException.java,
4965 java/nio/channels/ClosedChannelException.java,
4966 java/nio/channels/ClosedSelectorException.java,
4967 java/nio/channels/ConnectionPendingException.java,
4968 java/nio/channels/DatagramChannel.java,
4969 java/nio/channels/FileChannel.java,
4970 java/nio/channels/FileLock.java,
4971 java/nio/channels/FileLockInterruptionException.java,
4972 java/nio/channels/GatheringByteChannel.java,
4973 java/nio/channels/IllegalBlockingModeException.java,
4974 java/nio/channels/IllegalSelectorException.java,
4975 java/nio/channels/InterruptibleChannel.java,
4976 java/nio/channels/NoConnectionPendingException.java,
4977 java/nio/channels/NonReadableChannelException.java,
4978 java/nio/channels/NonWritableChannelException.java,
4979 java/nio/channels/NotYetBoundException.java,
4980 java/nio/channels/NotYetConnectedException.java,
4981 java/nio/channels/OverlappingFileLockException.java,
4982 java/nio/channels/Pipe.java,
4983 java/nio/channels/ReadableByteChannel.java,
4984 java/nio/channels/ScatteringByteChannel.java,
4985 java/nio/channels/SelectableChannel.java,
4986 java/nio/channels/SelectionKey.java,
4987 java/nio/channels/Selector.java,
4988 java/nio/channels/ServerSocketChannel.java,
4989 java/nio/channels/SocketChannel.java,
4990 java/nio/channels/UnresolvedAddressException.java,
4991 java/nio/channels/UnsupportedAddressTypeException.java,
4992 java/nio/channels/WritableByteChannel.java,
4993 java/nio/channels/spi/AbstractInterruptibleChannel.java,
4994 java/nio/channels/spi/AbstractSelectableChannel.java,
4995 java/nio/channels/spi/AbstractSelectionKey.java,
4996 java/nio/channels/spi/AbstractSelector.java,
4997 java/nio/channels/spi/SelectorProvider.java,
4998 java/nio/charset/spi/CharsetProvider.java:
4999 Fixed javadocs and jalopied all over java.nio.
5001 2004-04-20 Michael Koch <konqueror@gmx.de>
5003 * java/nio/ByteBufferImpl.java,
5004 java/nio/CharBufferImpl.java,
5005 java/nio/DirectByteBufferImpl.java,
5006 java/nio/DoubleBufferImpl.java,
5007 java/nio/DoubleViewBufferImpl.java,
5008 java/nio/FloatBufferImpl.java,
5009 java/nio/FloatViewBufferImpl.java,
5010 java/nio/IntBufferImpl.java,
5011 java/nio/IntViewBufferImpl.java,
5012 java/nio/LongBufferImpl.java,
5013 java/nio/LongViewBufferImpl.java,
5014 java/nio/MappedByteBufferImpl.java,
5015 java/nio/ShortBufferImpl.java,
5016 java/nio/ShortViewBufferImpl.java:
5017 Made sure all classes are final and removed final keyword from all
5020 2004-04-20 Michael Koch <konqueror@gmx.de>
5022 * java/rmi/MarshalledObject.java,
5023 java/rmi/Naming.java,
5024 java/rmi/RemoteException.java,
5025 java/rmi/activation/ActivationException.java,
5026 java/rmi/server/ServerCloneException.java,
5027 java/security/AccessController.java,
5028 java/security/AlgorithmParameterGenerator.java,
5029 java/security/AlgorithmParameters.java,
5030 java/security/CodeSource.java,
5031 java/security/Identity.java,
5032 java/security/IdentityScope.java,
5033 java/security/KeyPairGenerator.java,
5034 java/security/KeyStore.java,
5035 java/security/Security.java,
5036 java/security/Signature.java,
5037 java/security/SignatureSpi.java,
5038 java/security/SignedObject.java,
5039 java/security/spec/DSAParameterSpec.java,
5040 java/security/spec/DSAPrivateKeySpec.java,
5041 java/security/spec/DSAPublicKeySpec.java,
5042 java/sql/Array.java,
5043 java/sql/DatabaseMetaData.java,
5044 java/sql/ResultSet.java,
5045 java/text/ChoiceFormat.java,
5046 java/text/CollationElementIterator.java,
5047 java/text/CollationKey.java,
5048 java/text/Collator.java,
5049 java/text/DateFormat.java,
5050 java/text/DateFormatSymbols.java,
5051 java/text/DecimalFormatSymbols.java,
5052 java/text/Format.java,
5053 java/text/ParsePosition.java,
5054 java/text/RuleBasedCollator.java,
5055 java/text/SimpleDateFormat.java,
5056 java/text/StringCharacterIterator.java,
5057 java/util/Collections.java,
5058 java/util/PropertyResourceBundle.java,
5059 java/util/ResourceBundle.java,
5060 java/util/StringTokenizer.java,
5061 java/util/jar/Attributes.java,
5062 java/util/logging/ConsoleHandler.java,
5063 java/util/logging/LogManager.java,
5064 java/util/logging/MemoryHandler.java,
5065 java/util/logging/SocketHandler.java,
5066 javax/naming/NamingException.java:
5067 Fixed javadoc, coding style and argument names all over.
5069 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5071 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5072 constructor. (valid) Added null check.
5074 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5076 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5077 * java/io/FileOutputStream.java
5078 (FileOutputStream) Reorganized constructors. Constructors now
5079 check whether the given path is directory.
5081 2004-04-20 Michael Koch <konqueror@gmx.de>
5083 * java/net/Authenticator.java,
5084 java/net/BindException.java,
5085 java/net/ConnectException.java,
5086 java/net/ContentHandler.java,
5087 java/net/ContentHandlerFactory.java,
5088 java/net/DatagramPacket.java,
5089 java/net/DatagramSocket.java,
5090 java/net/DatagramSocketImpl.java,
5091 java/net/DatagramSocketImplFactory.java,
5092 java/net/FileNameMap.java,
5093 java/net/HttpURLConnection.java,
5094 java/net/Inet4Address.java,
5095 java/net/Inet6Address.java,
5096 java/net/InetAddress.java,
5097 java/net/InetSocketAddress.java,
5098 java/net/JarURLConnection.java,
5099 java/net/MalformedURLException.java,
5100 java/net/MulticastSocket.java,
5101 java/net/NetPermission.java,
5102 java/net/NetworkInterface.java,
5103 java/net/NoRouteToHostException.java,
5104 java/net/PasswordAuthentication.java,
5105 java/net/PortUnreachableException.java,
5106 java/net/ProtocolException.java,
5107 java/net/ServerSocket.java,
5108 java/net/Socket.java,
5109 java/net/SocketAddress.java,
5110 java/net/SocketException.java,
5111 java/net/SocketImpl.java,
5112 java/net/SocketImplFactory.java,
5113 java/net/SocketOptions.java,
5114 java/net/SocketPermission.java,
5115 java/net/SocketTimeoutException.java,
5117 java/net/URISyntaxException.java,
5119 java/net/URLClassLoader.java,
5120 java/net/URLConnection.java,
5121 java/net/URLDecoder.java,
5122 java/net/URLEncoder.java,
5123 java/net/URLStreamHandler.java,
5124 java/net/URLStreamHandlerFactory.java,
5125 java/net/UnknownHostException.java,
5126 java/net/UnknownServiceException.java:
5127 Fixed javadocs, coding style and argument names all over.
5129 2004-04-20 Michael Koch <konqueror@gmx.de>
5131 * java/lang/Byte.java,
5132 java/lang/CharSequence.java,
5133 java/lang/ClassLoader.java,
5134 java/lang/Compiler.java,
5135 java/lang/Double.java,
5136 java/lang/Float.java,
5137 java/lang/Integer.java,
5138 java/lang/Long.java,
5139 java/lang/Math.java,
5140 java/lang/Number.java,
5141 java/lang/Package.java,
5142 java/lang/Runtime.java,
5143 java/lang/RuntimePermission.java,
5144 java/lang/SecurityManager.java,
5145 java/lang/Short.java,
5146 java/lang/StringBuffer.java,
5147 java/lang/System.java,
5148 java/lang/ThreadGroup.java,
5149 java/lang/Throwable.java,
5150 java/lang/reflect/InvocationHandler.java,
5151 java/lang/reflect/Proxy.java:
5152 Fixed javadocs, coding style and argument names all over.
5154 2004-04-20 Michael Koch <konqueror@gmx.de>
5156 * java/io/BufferedWriter.java,
5157 java/io/ByteArrayInputStream.java,
5158 java/io/CharArrayWriter.java,
5159 java/io/DataInput.java,
5160 java/io/DataInputStream.java,
5162 java/io/FilterInputStream.java,
5163 java/io/InputStream.java,
5164 java/io/InputStreamReader.java,
5165 java/io/ObjectInputStream.java,
5166 java/io/ObjectStreamClass.java,
5167 java/io/PipedInputStream.java,
5168 java/io/PipedReader.java,
5169 java/io/PushbackInputStream.java,
5170 java/io/PushbackReader.java,
5171 java/io/RandomAccessFile.java,
5172 java/io/SerializablePermission.java,
5173 java/io/StreamTokenizer.java,
5174 java/io/StringWriter.java,
5175 java/io/WriteAbortedException.java,
5176 java/io/Writer.java:
5177 Fixed javadocs all over, rename arguments to match javadocs,
5180 2004-04-20 Ingo Proetel <proetel@aicas.com>
5182 * java/awt/FontMetrics.java:
5183 (charsWidth): fixed accumulation of total_width
5184 (getWidth): simple default implementation
5185 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5186 in Rectangle constructor.
5187 * java/awt/image/Raster.java (toString): Added method.
5188 * java/awt/image/SampleModel.java (<init>): Added error cause
5189 information to thrown exception.
5190 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5192 (setDataElements): New method.
5193 (setPixels): New method.
5194 (toString): New method.
5196 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5198 * java/awt/image/ComponentColorModel.java
5199 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5200 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5201 Mauve tests on this method. Improved documentation.
5203 2004-04-20 Michael Koch <konqueror@gmx.de>
5205 * javax/swing/JLayeredPane.java,
5206 javax/swing/plaf/BorderUIResource.java,
5207 javax/swing/plaf/ComponentUI.java,
5208 javax/swing/undo/CompoundEdit.java,
5209 javax/swing/undo/StateEdit.java:
5210 Fixed HTML tags in javadocs all over.
5212 2004-04-20 Michael Koch <konqueror@gmx.de>
5214 * javax/print/attribute/EnumSyntax.java
5215 (getOffset): Made protected.
5216 * javax/print/attribute/HashAttributeSet.java
5217 (HashAttributeSet): Likewise.
5218 * javax/print/attribute/ResolutionSyntax.java
5219 (getFeedResolution): Fixed typo in exception name.
5220 (getCrossFeedResolution): Likewise.
5221 * javax/print/attribute/SetOfIntegerSyntax.java
5222 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5223 * javax/print/attribute/TextSyntax.java
5224 (TextSyntax): Handle locale correctly.
5225 (hashCode): Calc better hashcode value.
5226 (equals): Fixed @return tag.
5227 (toString): New method.
5229 2004-04-20 Michael Koch <konqueror@gmx.de>
5231 * gnu/java/nio/FileLockImpl.java
5232 (static): Removed, not needed anymore.
5233 * gnu/java/nio/channels/FileChannelImpl.java
5234 (FileChannelImpl): Made final.
5235 (mode): Made private.
5236 (READ, WRITE, APPEND): Made public.
5237 (EXCL, SYNC, DSYNC): Likewise.
5238 (static): Load native JNI library, when needed.
5239 (length): Unused, removed.
5240 (available): Made public.
5241 (implPosition): Throws IOException.
5243 (implTruncate): Likewise.
5247 2004-04-20 Michael Koch <konqueror@gmx.de>
5249 * java/awt/AWTPermission.java,
5250 java/awt/Component.java,
5251 java/awt/ComponentOrientation.java,,
5252 java/awt/Dialog.java,
5253 java/awt/FontMetrics.java,
5254 java/awt/Graphics.java,
5255 java/awt/datatransfer/DataFlavor.java,
5256 java/beans/Introspector.java,
5257 java/beans/PropertyEditor.java,
5258 java/beans/PropertyEditorManager.java,
5259 java/beans/beancontext/BeanContextServiceProvider.java:
5260 Fixed HTML tags in javadocs all over.
5262 2004-04-20 Mark Wielaard <mark@klomp.org>
5264 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5265 MissingResourceException is thrown.
5266 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5267 null when a MissingResourceException is thrown. Should never happen.
5269 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5271 * java/awt/image/DataBufferShort.java,
5272 java/awt/image/DataBufferFloat.java,
5273 java/awt/image/DataBufferDouble.java,
5274 java/awt/image/PixelInterleavedSampleModel.java: New files.
5275 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5276 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5278 2004-04-20 Michael Koch <konqueror@gmx.de>
5280 * Makefile.am (java_source_files): Added
5281 java/awt/image/DataBufferDouble.java,
5282 java/awt/image/DataBufferFloat.java,
5283 java/awt/image/DataBufferShort.java and
5284 java/awt/image/PixelInterleavedSampleModel.java.
5285 * Makefile.in: Regenerated.
5287 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5289 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5290 undocumented CNI calls.
5291 * include/java-interp.h (_Jv_InterpClass): No longer
5292 extends java.lang.Class.
5293 * java/lang/Class.h (Class): Add new field `aux_info'.
5294 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5295 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5296 Use Class->aux_info instead.
5297 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5298 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5299 Use Class->aux_info instead.
5300 * java/io/natObjectInputStream.cc (allocateObject): Use
5302 * java/lang/natClass.cc (newInstance): Likewise.
5303 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5304 * java/lang/natObject.cc (clone): Likewise.
5305 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5306 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5307 JvAllocObject. Allocate klass->aux_info here for interpreted
5310 2004-04-17 Mark Wielaard <mark@klomp.org>
5312 * javax/swing/JToggleButton.java (ToggleButtonModel):
5313 Make public static inner class.
5314 * javax/swing/JTabbedPane.java (setComponentAt):
5315 Call Page.setComponent().
5316 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5317 (WRAP_TAB_LAYOUT): Make public, value is 0.
5318 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5319 Make private static inner class.
5321 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5323 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5324 arguments to match new signature. Remove FIXME comments.
5326 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5328 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5330 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5333 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5335 * Makefile.am: Added new file.
5336 * Makefile.in: Regenerate.
5337 * javax/swing/ImageIcon.java:
5338 (ImageIcon(file)): set description of the icon
5340 * javax/swing/JCheckBoxMenuItem.java:
5341 Mostly Implemented. Work in progress.
5342 * javax/swing/JRadioButtonMenuItem.java:
5343 Reimplement constructors to use JToggleButtonModel.
5344 * javax/swing/plaf/basic/BasicIconFactory.java:
5345 (getCheckBoxMenuItemIcon): return check box
5347 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5348 paint menu item selected only when it is armed and
5351 2004-04-02 David Jee <djee@redhat.com>
5353 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5354 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5355 * java/awt/Component.java
5356 (add): Set the parent of the popup as this component.
5357 * java/awt/PopupMenu.java
5358 (addNotify): Create popup menu when peer is null.
5359 (show): Call addNotify() if peer is null.
5360 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5361 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5362 argument for gtk_menu_popup() as zero. This causes the popup menu to
5363 respond to any mouse button.
5365 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5367 * Makefile.am: Added new file.
5368 * Makefile.in: Regenerate.
5369 * javax/swing/JRadioButtonMenuItem.java:
5371 * javax/swing/plaf/basic/BasicIconFactory.java:
5372 (getRadioButtonMenuItemIcon): Return
5374 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5375 (getPreferredSize): Add size of checkIcon if it
5377 (installDefaults): Don't initialize checkIcon.
5378 It's value will be set in subclasses.
5379 (uninstallDefaults): remove uninstallation of
5381 (paint): Moved code to paintMenuItem().
5382 (paintMenuItem): Implemented.
5383 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5384 UI delegate for JRadioButtonMenuItem.
5386 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5388 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5389 Corrected position of the accelerator.
5391 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5393 * Makefile.am: Added new file.
5394 * Makefile.in: Regenerate.
5395 * javax/swing/JMenuItem.java: Partly
5396 implemented. Work in progress
5397 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5398 Changed default value of acceleratorDelimiter.
5399 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5400 New class. Partly implemented.
5402 2004-03-26 Mark Wielaard <mark@klomp.org>
5404 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5405 (item_activate): Declare label before use.
5406 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5407 (gtkSetFont): Removed unused variable label.
5408 (addExposeFilter): Declare variables before use.
5409 (removeExposeFilter): Likewise.
5410 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5411 (ok_clicked): Declare str_fileName before use.
5413 2004-03-26 David Jee <djee@redhat.com>
5415 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5416 (addSeparator): Remove.
5417 * java/awt/Menu.java
5418 (separator): Remove static final MenuItem field.
5419 (separatorLabel): New static final String field.
5420 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5421 Use separatorLabel to denote that it is a separator.
5422 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5423 of reusing the static separator instance, because a MenuItem instance
5424 can't be added more than once without being cloned.
5425 * java/awt/peer/MenuPeer.java
5426 (addSeparator): Remove from interface.
5428 2004-03-26 David Jee <djee@redhat.com>
5430 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5431 (connectSignals): New native method declaration.
5432 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5433 * java/awt/MenuItem.java
5434 (getActionCommand): Return the label if the action command is not set.
5435 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5436 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5437 gtk_menu_shell_append().
5438 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5439 (item_activate): Fix argument type.
5440 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5442 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5444 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5445 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5446 given. Add the menu widget's top-level GtkWindow to the global window
5447 group, so it can grab the pointer.
5448 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5449 gtk_menu_shell_append().
5451 2004-03-23 Graydon Hoare <graydon@redhat.com>
5453 * java/text/AttributedString.java
5454 (addAttribute): Fix off-by-one.
5455 (getIterator): Likewise.
5456 * java/text/AttributedStringIterator.java
5457 (getRunLimit): Correct logic.
5458 (getRunStart): Likewise.
5459 (getAttribute): Fix inequality.
5460 (getAttributes): Likewise.
5461 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5463 2004-03-23 Kim Ho <kho@redhat.com>
5465 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5466 (calculateSizes): Return real width and height.
5468 2004-03-23 Kim Ho <kho@redhat.com>
5470 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5471 (calculateTabRects): Set the selectedRun before
5472 trying to rotate tabs.
5474 2004-03-23 Kim Ho <kho@redhat.com>
5476 * Makefile.am: New file
5477 * Makefile.in: Regenerate
5478 * java/awt/Graphics.java: (drawRect):
5479 Draw to the correct point.
5480 * javax/swing/DefaultSingleSelectionModel.java
5481 (isSelected): Return true if the selected index
5483 * javax/swing/JLabel.java: Do not change mnemonic
5484 index if text is null.
5485 * javax/swing/JProgressBar.java: Use JComponent's
5487 * javax/swing/JScrollBar.java: Ditto.
5488 * javax/swing/JSlider.java: Ditto.
5489 * javax/swing/JTabbedPane.java: Reimplement.
5490 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5491 Add defaults for TabbedPane.
5492 * javax/swing/plaf/basic/BasicArrowButton.java:
5494 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5495 (paintDeterminate): Don't paint String if it's
5497 (paintIndeterminate): ditto.
5498 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5501 2004-03-19 Michael Koch <konqueror@gmx.de>
5503 * java/awt/image/AffineTransformOp.java
5504 (AffineTransformOp): Made public.
5505 * javax/swing/JComponent.java
5506 (listenerList): Made protected.
5507 (accessibleContext): Likewise.
5508 * javax/swing/JList.java
5509 (valueChanged): Dont use internal fields of ListSelectionEvent.
5510 * javax/swing/JViewport.java
5511 (getView): Dont use internal fields of Component.
5512 (addImpl): Likewise.
5513 * javax/swing/Timer.java
5514 (isRunning): Made public.
5517 * javax/swing/UIDefaults.java
5518 (getInt): Made public.
5519 * javax/swing/plaf/basic/BasicListUI.java
5520 (mousePressed): Dont use internal fields of MouseEvent.
5521 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5522 * javax/swing/plaf/basic/BasicScrollBarUI.java
5523 (arrowIcon): Made static.
5524 * javax/swing/plaf/basic/BasicViewportUI.java
5525 (stateChanged): Dont use internal field on ChangeEvent.
5526 * javax/swing/text/JTextComponent.java
5527 (getUI): Call UIManager.getUI().
5528 (updateUI): Use getUI().
5530 2004-03-19 Graydon Hoare <graydon@redhat.com>
5532 * javax/swing/JComponent.java: Turn off double buffer by default.
5533 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5534 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5535 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5536 Use cairo to copy areas.
5537 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5538 Initialize and set clip region.
5540 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5542 * java/applet/Applet.java (preferredSize): Override deprecated
5543 variant of getPreferredSize.
5544 (minimumSize): Override deprecated variant of getMinimumSize.
5546 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5548 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5549 (drawImage(img,xform,bgcolor,obs)): New Method.
5550 Helper function that every drawImage method will
5552 (drawRaster): Added new parameter, bgcolor. All
5553 transparent pixels are changed to bgcolor before
5555 (drawRenderedImage): Fixed to use changed drawRaster().
5556 (drawImage(image,xform,obs): Fixed to use new helper function
5557 (drawImage(image,op,x,y)): Ditto.
5558 (drawImage (img,x,y,observer)): Ditto.
5559 ((PainterThread) bgcolor): New Field.
5560 ((PainterThread) (setPixels)): Changed all transparent pixels
5562 (drawImage(img,x,y,width,height,bgcolor,observer)):
5563 Fixed FIXME - all the transparent pixels are
5564 changed to the specified bgcolor.
5565 (drawImage(img, x, y, width, height, observer): Changed to
5567 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5568 Fixed FIXME- changed all transparent pixels to bgcolor.
5569 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5570 Changed to use function above.
5572 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5574 * java/applet/Applet.java (dimensions): New field.
5575 (getDimensions): New method.
5576 (getPreferredSize): Call getDimensions.
5577 (getMinimumSize): Likewise.
5579 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5581 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5582 * jni/classpath/jnilink.c: Likewise.
5584 * java/applet/Applet.java (getPreferredSize): New method.
5585 (getMinimumSize): New method.
5587 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5589 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5590 (_Jv_AllocObjectNoFinalizer): Likewise.
5591 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5592 (_Jv_AllocPtrFreeObject): Likewise.
5593 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5594 directly even in the JVMPI case.
5595 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5596 _Jv_AllocObject calls.
5597 * gcj/javaprims.h: Update prototypes.
5598 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5599 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5600 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5602 2004-04-14 Andrew Haley <aph@redhat.com>
5603 Bryce McKinlay <mckinlay@redhat.com>
5605 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5606 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5607 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5609 * testsuite/libjava.lang/InvokeInterface.java: New file.
5610 * testsuite/libjava.lang/InvokeInterface.out: New file.
5612 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5614 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5616 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5617 StackTraceElement directly.
5618 (newElement): New native helper method to create StackTraceElement
5619 bypassing Java access control.
5620 (createStackTraceElement): Use newElement() instead of directly
5621 calling StackTraceElement's constructor.
5622 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5624 2004-04-01 Michael Koch <konqueror@gmx.de>
5626 * java/lang/SecurityManager.java
5627 (checkAwtEventQueueAccess): Implemented.
5629 2004-04-01 Gary Benson <gbenson@redhat.com>
5631 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5632 (_Jv_SearchMethodInClass): Likewise.
5634 2004-03-26 Peter Moon <peterm@miraculum.com>
5636 * java/text/NumberFormat.java: Fix spelling of setCurrency
5639 2004-03-21 Anthony Green <green@redhat.com>
5641 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5642 recursion when searching for the system ClassLoader.
5644 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5646 * java/net/ServerSocket.java
5647 (accept): Close the socket when error occured.
5649 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
5651 * java/net/URI.java (parseURI): Added unquoting.
5652 (unquote): New method.
5653 (quoteAuthority): Implemented.
5654 (quote(String,String)): New method.
5655 (quotePath): Implemented.
5656 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5657 (getSchemeSpecificPart): Removed FIXME comment.
5658 (getRawAuthority): Return new rawAuthority field.
5659 (getAuthority): Removed FIXME comment.
5660 (getRawUserInfo): Return new rawUserInfo field.
5661 (getUserInfo): Removed FIXME comment.
5662 (getRawPath): Return new rawPath field.
5663 (getPath): Removed FIXME comment.
5664 (getRawQuery): Return new rawQuery field.
5665 (getQuery): Removed FIXME comment.
5666 (getRawFragment): Return new rawFragment field.
5667 (getFragment): Removed FIXME comment.
5669 2004-03-20 Michael Koch <konqueror@gmx.de>
5671 * java/net/URLConnection.java: Merged copyright year with classpath.
5673 2004-03-20 Norbert Frese <postfach@nfrese.net>
5675 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5676 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5677 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5679 (getObjectInputStream): Return object reference, throw IOException if null.
5680 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5681 (getObjectOutputStream): Return object reference, throw IOException if null.
5682 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5683 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5684 (UnicastConnectionManager): Throw RemoteException if port is not available.
5685 (getInstance): Throw RemoteException.
5686 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5687 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5688 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5689 Collect Exceptions which are returned by a rmi-call and fix void returns.
5690 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
5691 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5692 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
5693 (dispatch): Answer ping messages which are sent by other java implementions.
5694 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
5695 for every rmi-message and fix void return problems.
5696 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
5697 (UnicastServerRef): Throw RemoteException.
5698 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
5699 In some situations it is necessary to export a subclass of the class which has the _Stub.
5700 For instance when the class with has the _Stub is abstract.
5701 (findStubSkelClass): New method which looks for the class which has the _Stub.
5702 (getClientHost): Implementated.
5703 * gcc/libjava/java/rmi/server/RemoteServer.java
5704 (getClientHost): Implementated.
5705 * gcc/libjava/Makefile.am (rmi_java_source_files):
5706 Added gnu/java/rmi/server/RMIIncomingThread.java.
5707 * Makefile.in: Regenerated.
5709 2004-03-20 Michael Koch <konqueror@gmx.de>
5711 * java/net/InetAddress.java
5712 (getLocalHostname): Added javadoc.
5714 2004-03-19 Per Bothner <per@bothner.com>
5716 * configure.in: FILE variable overrides FLATFORM when linking
5717 natFileChannelXXX.cc.
5719 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
5720 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
5722 2004-03-19 Per Bothner <per@bothner.com>
5724 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
5725 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
5726 * Makefile.am: Update accordingly.
5727 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
5728 as aliases for UnicodeLittle and UnicodeBig.
5730 2004-03-20 Mark Wielaard <mark@klomp.org>
5732 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5733 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
5734 Don't access ws when it is null.
5735 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
5738 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
5740 * java/lang/ThreadGroup.java (list): Changed print to println.
5742 2004-03-19 Mark Wielaard <mark@klomp.org>
5744 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
5747 2004-02-10 Randolph Chung <tausq@debian.org>
5749 * configure.in: Build java for hppa target.
5750 * configure: Regenerate.
5751 * libjava/configure.host (hppa-*): Add target.
5752 * libjava/sysdeps/pa/lock.h: New file.
5754 2004-03-19 Mark Wielaard <mark@klomp.org>
5756 Reported by Stephen Crawley
5757 * java/io/FilePermission.java (implies): Use String.length() -1 to
5758 access last char of String.
5760 2004-03-19 Michael Koch <konqueror@gmx.de>
5762 * java/awt/image/AffineTransformOp.java
5763 (AffineTransformOp): Made public.
5764 * javax/swing/JComponent.java
5765 (listenerList): Made protected.
5766 (accessibleContext): Likewise.
5767 * javax/swing/JList.java
5768 (valueChanged): Dont use internal fields of ListSelectionEvent.
5769 * javax/swing/JViewport.java
5770 (getView): Dont use internal fields of Component.
5771 (addImpl): Likewise.
5772 * javax/swing/Timer.java
5773 (isRunning): Made public.
5776 * javax/swing/UIDefaults.java
5777 (getInt): Made public.
5778 * javax/swing/plaf/basic/BasicListUI.java
5779 (mousePressed): Dont use internal fields of MouseEvent.
5780 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5781 * javax/swing/plaf/basic/BasicScrollBarUI.java
5782 (arrowIcon): Made static.
5783 * javax/swing/plaf/basic/BasicViewportUI.java
5784 (stateChanged): Dont use internal field on ChangeEvent.
5785 * javax/swing/text/JTextComponent.java
5786 (getUI): Call UIManager.getUI().
5787 (updateUI): Use getUI().
5789 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5791 * verify.cc: Undef PC.
5793 2004-03-18 Michael Koch <konqueror@gmx.de>
5795 * java/nio/channels/spi/AbstractSelectableChannel.java
5796 (keys): Initialize at declaration.
5797 (locate): keys cant be null.
5799 (addSelectionKey): New method.
5800 (removeSelectionKey): New method.
5801 * java/nio/channels/spi/AbstractSelectionKey.java
5802 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
5803 * java/nio/channels/spi/AbstractSelector.java
5804 (provider): Javadoc added.
5805 (cancelledKeys): Javadoc added.
5806 (cancelKey): Javadoc added, add key to cancelledKeys.
5807 (deregister): Implemented.
5809 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5811 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
5812 MAP_FAILED to void *.
5814 2004-03-12 Graydon Hoare <graydon@redhat.com>
5816 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
5817 * javax/swing/JComponent.java (paint): Use persistent double buffer.
5818 * javax/swing/JList.java (ListListener): Revalidate on changes.
5819 * javax/swing/JScrollPane.java: Reimplement.
5820 * javax/swing/JViewport.java: Reimplement.
5821 * javax/swing/ScrollPaneLayout.java: Reimplement.
5822 * javax/swing/ViewportLayout.java: Tidy up.
5823 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
5824 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
5825 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
5826 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
5829 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5831 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5832 (window_wm_protocols_filter): New function.
5833 (window_focus_in_cb): Remove function.
5834 (window_focus_out_cb): Likewise.
5835 (window_focus_or_active_state_change_cb): New function.
5836 (create): Add filter that removes WM_TAKE_FOCUS client messages.
5837 (connectSignals): Don't attach handlers to focus-in-event or
5838 focus-out-event signals. Handle notify signal.
5840 2004-03-11 David Jee <djee@redhat.com>
5842 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
5843 (gtkSetLabel): New native method declaration.
5844 (setLabel): Use gtkSetLabel.
5845 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
5846 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
5848 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
5850 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
5851 black when color argument is null.
5853 2004-03-10 Kim Ho <kho@redhat.com>
5855 * java/awt/Container.java: Remove check
5858 2004-03-10 Kim Ho <kho@redhat.com>
5860 * java/awt/Container.java: (visitChild):
5861 Remove candidate clip. Use the component
5863 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
5864 (handleEvent): Use the PaintEvent's clip.
5866 2004-03-10 Kim Ho <kho@redhat.com>
5868 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
5869 (handleEvent): Don't set the clip for the
5872 2004-03-09 Graydon Hoare <graydon@redhat.com>
5874 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5875 Fix double <-> fixed macros, reset font transform.
5876 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
5879 2004-03-09Â Kim Ho <kho@redhat.com>
5881 * java/awt/Container.java: (visitChild): Move
5882 the x and y coordinate of the component rectangle
5883 to correct position.
5884 (handleEvent): Forward drag events to the pressed
5886 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5888 (ArrowButtonListener::mousePressed): Stop the
5890 (mouseDragged): Implement.
5891 (TrackListener::mousePressed): Only react if
5892 the press doesn't occur on the thumb, otherwise
5893 just set the offset.
5894 (TrackListener::mouseReleased): Unset the isAdjusting
5896 (createIncreaseIcon): Switch icon.
5897 (createDecreaseIcon): Switch icon.
5898 (calculatePreferredSize): Use width.
5899 (getThumbBounds): Use the top as the lower value.
5900 (layoutVScrollBar): Switch the button locations.
5901 (paintIncreaseHighlight): Paint correct side of thumb.
5902 (paintDecreaseHighlight): ditto.
5903 (valueForYPosition): Use top as the lower value.
5904 * javax/swing/plaf/basic/BasicSliderUI.java:
5906 (mouseDragged): Implement.
5907 (mousePressed): Only react when the thumb isn't
5908 pressed, otherwise just set offset.
5909 (mouseReleased): Handle a release of the thumb.
5910 (scrollDueToClickInTrack): Stop the timer first.
5911 * javax/swing/JProgressBar.java:
5912 (setString): Fix change condition.
5913 * javax/swing/JSeparator.java:
5916 2004-03-08 David Jee <djee@redhat.com>
5918 * java/awt/image/AffineTransformOp.java:
5919 (filter): Use Graphics2D interface instead of directly using the
5922 2004-03-05 David Jee <djee@redhat.com>
5924 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
5925 (handleEvent): Action events are generated upon MOUSE_RELEASED.
5926 * java/awt/Container.java
5927 (acquireComponentForMouseEvent): Fixed.
5928 (handleEvent): Fixed.
5929 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5930 (state_to_awt_mods_with_button_states): New method.
5931 (pre_event_handler): Fixed mouse event generation.
5933 2004-03-05 Olga Rodimina <rodimina@redhat.com>
5935 gnu/java/awt/peer/gtk/GdkGraphics2D.java
5936 (GdkGraphics2D (BufferedImage)): Initialize
5937 pixmap associated with specified BufferedImage.
5938 (setPaint): Changed implementation of Texture
5939 Paint to use AffineTransformOp.
5940 * java/awt/image/AffineTransformOp.java
5941 (createCompatibleDestRaster): Throw RasterFormatException
5942 if resulting width or height of raster is 0.
5944 2004-03-04 Olga Rodimina <rodimina@redhat.com>
5946 * java/awt/image/AffineTransformOp.java:
5947 Removed unnecessary field interpolationType.
5948 Formatted some of the lines to be consistent with
5950 (AffineTransformOp): Create new RenderingHints
5951 containing specified interpolation type.
5952 (createCompatibleDestImage): Implemented.
5953 (createCompatibleDestRaster): Implemented.
5954 (filter): Implemented.
5955 (getBounds2D(BufferedImage)): Implemented.
5956 (getBounds2D(Raster)): Implemented.
5957 (getInterpolationType): Get interpolation value from
5960 2004-03-04 David Jee <djee@redhat.com>
5962 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5963 (setFont): Check if child peers are null.
5965 2004-03-04 Graydon Hoare <graydon@redhat.com>
5967 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
5969 (libjava_arguments): Add new libraries to argument list.
5971 2004-03-02 Olga Rodimina <rodimina@redhat.com>
5973 * Makefile.am: Added java/awt/image/AffineTransformOp.java
5974 * Makefile.in: Re-generated.
5975 * java/awt/image/AffineTransformOp.java: New Class.
5977 2004-03-01 Olga Rodimina <rodimina@redhat.com>
5979 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5980 (setPaint): Interpret correctly TexturePaint's
5982 (drawImage): Fixed scale factors of the affine
5985 2004-02-27 David Jee <djee@redhat.com>
5987 * gnu/java/awt/peer/gtk/GdkGraphics.java
5988 (GdkGraphics(Component)): Inherit font from component.
5989 (drawString): Use font style.
5990 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
5991 (gtkSetFont): New native method declaration.
5992 (setFont): New method.
5993 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5994 (gtkSetFont): New native method declaration.
5995 (setFont): Call new native method gtkSetFont.
5996 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5997 (setFont): For all child components who do not their fonts set,
5998 set their peers' fonts with this container's font.
5999 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6000 Move all native method declarations to the top for readability.
6001 (gtkSetFont): New native method declaration.
6002 (setFont): New method.
6003 * java/awt/Component.java
6004 (setFont): Invalidate after setting the font.
6005 * java/awt/Container.java
6006 (invalidateTree): New method.
6007 (setFont): Invalidate the container tree after setting the font.
6008 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6009 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6010 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6011 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6012 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6013 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6014 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6015 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6017 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6019 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6020 (updateBufferedImage): New helper function.
6021 Updates BufferedImage in memory if it was changed.
6022 (draw): changed to update BufferedImage in memory after
6023 this drawing operation
6025 (draw3DRect): Ditto.
6026 (fill3DRect): Ditto.
6028 (drawRaster): Ditto.
6029 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6030 no affine transformation.
6031 (drawGlyphVector): Ditto.
6033 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6035 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6036 (isBufferedImageGraphics): New Helper function.
6037 Returns true if this graphics2d can be used to draw
6038 into buffered image and false otherwise.
6039 (updateImagePixels): New Helper function.
6040 Updates pixels in the BufferedImage.
6041 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6042 (getImagePixels): New function. Returns pixels
6043 of the buffered image associated with
6046 2004-02-26 David Jee <djee@redhat.com>
6048 * java/awt/BorderLayout.java
6049 (layoutContainer): Fix width and height calculations to ensure
6050 that they're non-negative.
6051 * java/awt/Component.java
6052 (setBackground): If c is null, inherit from closest ancestor whose
6053 background color is set.
6055 2004-02-26 Kim Ho <kho@redhat.com>
6057 * Makefile.am: Add new files.
6058 * Makefile.in: Re-generate.
6059 * javax/swing/JProgressBar.java:
6060 (JProgressBar(int, int int)): Throw
6061 IllegalArgumentException if orientation is
6063 (JProgressBar(BoundedRangeModel)): Create
6064 ChangeListener and register it. UpdateUI.
6065 (getChangeListeners): Implement.
6066 (setModel): Reset ChangeListener.
6067 * javax/swing/JScrollBar.java: Implement.
6068 * javax/swing/JSeparator.java: Implement.
6069 * javax/swing/JSlider.java:
6070 (JSlider(int, int, int, int)): Throw
6071 IllegalArgumentException if orientation
6073 (getChangeListeners): Fix method name.
6074 * javax/swing/SwingUtilities.java:
6075 (layoutCompoundLabel): If there is no text,
6076 set the text rectangle dimensions to 0.
6077 * javax/swing/plaf/basic/BasicButtonUI.java:
6078 (paint): If there is no text, don't paint it.
6079 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6081 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6083 * javax/swing/plaf/basic/BasicSliderUI.java:
6084 (propertyChange): If the model changes, change
6085 the listeners accordingly.
6087 2004-02-25 Graydon Hoare <graydon@redhat.com>
6089 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6090 * javax/swing/JList.java: Reimplement.
6091 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6092 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6093 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6094 * javax/swing/ListModel.java: Javadoc.
6095 * javax/swing/ListSelectionModel.java: Add missing methods.
6096 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6097 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6098 * javax/swing/ListModel.java: Javadoc and corrections.
6099 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6101 2004-02-25 David Jee <djee@redhat.com>
6103 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6104 (GtkFontPeer): Change default size to 12.
6105 * gnu/java/awt/peer/gtk/GtkToolkit.java
6106 (getFontPeer): Change default size to 12.
6107 (getClasspathFontPeer): Likewise. Set default name to "Default".
6108 * java/awt/Font.java
6109 (Font(Map)): Call Font(String,Map).
6110 (Font(String,Map)): If attrs is null, initialize it as an empty
6111 HashMap, which will ensure that the Font will get default attributes.
6113 2004-02-25 David Jee <djee@redhat.com>
6115 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6116 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6117 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6118 * gnu/java/awt/peer/gtk/GtkToolkit.java
6119 (getFontPeer(String,int)): Call the new overload method with size 1.
6120 (getFontPeer(String,int,int)): New method. Overloaded with size
6122 (getClasspathFontPeer): Set the size of the font.
6124 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6126 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6127 (bimage): New field.
6128 (GdkGraphics2D): New Constructor. Constructs Graphics
6129 object that can be used to draw into the Buffered Image.
6130 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6131 (GdkGraphicsEnvironment): Fixed to include public
6133 (createGraphics): Implemented.
6134 * gnu/java/awt/peer/gtk/GtkToolkit.java
6135 (getLocalGraphicsEnvironment): Implemented.
6136 * java/awt/GraphicsEnvironment.java:
6137 (getLocalGraphicsEnvironment): Implemented.
6138 * java/awt/image/BufferedImage.java:
6139 (createGraphics): Implemented.
6141 2004-02-24 David Jee <djee@redhat.com>
6143 * java/awt/Component.java
6144 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6145 * java/awt/Container.java
6146 (addNotifyContainerChildren): Fix event enabling.
6148 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6150 * Makefile.am: Added
6151 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6152 * Makefile.in: Re-generated.
6153 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6156 2004-02-19 Kim Ho <kho@redhat.com>
6158 * Makefile.am: Add BasicProgressBarUI
6159 * Makefile.in: Regenerate.
6160 * javax/swing/JProgressBar.java:
6162 * javax/swing/plaf/basic/BasicLookAndFeel.java
6163 Add constants for JProgressBar.
6164 * javax/swing/plaf/basic/BasicProgressBarUI.java
6166 * javax/swing/plaf/basic/BasicSliderUI.java
6168 (calculateGeometry): New method
6169 (paint): Remove unnecessary size calculations.
6171 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6173 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6174 (drawRaster): Fixed small error that caused
6175 imageToUser transformation to be set incorrectly.
6176 (toString): Implemented.
6178 2004-02-18 David Jee <djee@redhat.com>
6180 * java/awt/CardLayout.java
6181 (addLayoutComponent): Show the first component added as the default.
6182 (removeLayoutComponent): After removing, show the next component.
6183 (gotoComponent): If there is only one component, show it and return.
6185 2004-02-18 Kim Ho <kho@redhat.com>
6187 * javax/swing/JSlider.java: Re-order
6189 * javax/swing/JLabel.java: Re-order
6191 * javax/swing/JComponent.java:
6192 (addPropertyChangeListener):
6194 (removePropertyChangeListener):
6196 (firePropertyChangeEvent):
6199 2004-02-17 David Jee <djee@redhat.com>
6201 * java/awt/Component.java
6202 (show): Dispatch ComponentEvent via system event queue.
6206 (reshape): Likewise.
6207 * java/awt/Window.java
6208 (setBoundsCallback): Likewise.
6210 2004-02-17 David Jee <djee@redhat.com>
6212 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6213 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6214 Use gtk_widget_set_size_request() instead of the deprecated
6215 gtk_widget_set_usize().
6217 2004-02-17 Kim Ho <kho@redhat.com>
6219 * javax/swing/JSlider.java: Fix comments and
6220 make property strings constants.
6221 (createStandardLabels): Use the labels
6222 preferred size as bounds.
6223 * javax/swing/plaf/basic/BasicSliderUI.java
6225 (ScrollHandler::actionPerformed): Don't
6226 calculate the timer stop value. Let the
6227 MouseListeners find the stop location.
6228 (getPreferredHorizontalSize): Re-implement.
6229 (getPreferredVerticalSize): ditto.
6230 (getMinimumHorizontalSize): ditto.
6231 (getMinimumVerticalSize): ditto.
6232 (getPreferredSize): ditto.
6233 (getMinimumSize): ditto.
6234 (getMaximumSize): ditto.
6235 (paintTicks): Use doubles to find the
6237 (paintHorizontalLabel):Â Use preferredSize
6238 as initial width and height.
6239 (paintVerticalLabel): ditto.
6241 2004-02-17 Kim Ho <kho@redhat.com>
6243 * javax/swing/JLabel.java: Changed
6244 property strings to constants.
6245 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6247 (setText): Change mnemonic index if
6249 (setDisplayedMnemonicIndex): Fire property
6251 (getDisplayedMnemonicIndex): Remove check
6254 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6256 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6257 (drawImage(img,xform,obs)): Invert xform before
6258 passing the xform to cairo.
6259 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6260 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6262 (drawImage (img,x,y,w,h,obs)): Implemented.
6263 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6264 bgcolor,obs)): Partly implemented.
6265 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6267 * java/awt/image/BufferedImage.java:
6268 (copyData): if dest is null, create raster with same
6269 dimensions as the current image.
6271 2004-02-16 Graydon Hoare <graydon@redhat.com>
6273 * javax/swing/plaf/basic/BasicLabelUI.java
6274 (getPreferredSize): Use layoutCL.
6275 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6276 (getPreferredButtonSize): Start with empty view rect, layout using
6277 component's preferred alignment.
6278 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6281 2004-02-16 David Jee <djee@redhat.com>
6283 * java/awt/Component.java
6284 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6285 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6286 (move): Erase old bounds and repaint new bounds. Dispatch
6287 COMPONENT_MOVED ComponentEvent.
6288 (resize): Erase old bounds and repaint new bounds. Dispatch
6289 COMPONENT_RESIZED ComponentEvent.
6290 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6292 * java/awt/Window.java
6293 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6296 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6298 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6299 (setRenderingHint): Added implementation of
6300 Interpolation rendering hints.
6301 (setRenderingHints): Ditto.
6302 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6303 (drawPixels): fixed to allow user to choose type
6304 of filtering that should be used when displaying images.
6305 (cairoSurfaceSetFilter): New method. Sets filter type for
6306 interpolation of pixel values.
6308 2004-02-16 David Jee <djee@redhat.com>
6310 * java/awt/GridBagLayout.java
6311 (calcCellSizes): Rows or columns with zero sizes should still be
6312 considered for extra space distribution.
6314 2004-02-16 Kim Ho <kho@redhat.com>
6316 * javax/swing/JLabel.java: Re-implement.
6317 * javax/swing/plaf/basic/BasicLabelUI.java
6319 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6322 2004-02-16 Kim Ho <kho@redhat.com>
6324 * javax/swing/JSlider.java: Fix indentation and comments.
6325 (setModel): Remove null check to conform with Sun's.
6326 (setOrientation): Throw exception if not
6327 HORIZONTAL or VERTICAL.
6328 (getInverted): Use private variable instead of
6329 ComponentOrientation.
6330 (setInverted): ditto.
6331 * javax/swing/plaf/basic/BasicSliderUI.java:
6332 Fix indentation and comments.
6333 (propertyChange): Remove check for inverted slider, handle
6335 (getMinimumSize): Return preferred size.
6336 (getMaximumSize): ditto.
6337 (calculateFocusRect): Don't relocate rectangle.
6338 (drawInverted): Return XOR of the slider's inversion and
6339 the component's orientation.
6340 (paint): Update leftToRightCache
6342 2004-02-13 David Jee <djee@redhat.com>
6344 * java/awt/GridBagLayout.java
6345 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6346 code to helper methods.
6347 (sortBySpan): New helper method.
6348 (distributeSizeAndWeight): Likewise.
6349 (calcCellWeights): Likewise.
6350 (calcCellSizes): Add comments.
6352 2004-02-13 David Jee <djee@redhat.com>
6354 * java/awt/Component.java
6355 (show): Only do something if component is invisible at the moment.
6356 (hide): Only do something if component is visible at the moment.
6357 (reshape): If lightweight, erase old bounds and repaint new bounds.
6359 2004-02-13 Kim Ho <kho@redhat.com>
6361 * Makefile.am: Updated for new file.
6362 * Makefile.in: Regenerated.
6363 * javax/swing/JSlider.java: Reimplement.
6364 * javax/swing/SwingUtilities.java
6365 (layoutCompoundLabel): Use icon height
6367 (paintComponent): Implement.
6368 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6369 Add JSlider defaults.
6370 * javax/swing/plaf/basic/BasicSliderUI.java:
6371 Implement. New file.
6373 2004-03-17 Michael Koch <konqueror@gmx.de>
6375 * gnu/java/net/PlainDatagramSocketImpl.java
6376 (RECEIVE_LOCK): New member field.
6377 (SEND_LOCK): New member field.
6378 (send0): New method.
6379 (send): Synchronize on SEND_LOCK.
6380 (receive0): New method.
6381 (receive): Synchronize on RECEIVE_LOCK.
6382 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6383 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6384 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6385 (send0): Renamed from send.
6386 (receive0): Renamed from receive.
6387 2004-03-17 Michael Koch <konqueror@gmx.de>
6389 * gnu/java/net/natPlainSocketImplPosix.cc
6390 (write): Just call write(jbyteArray, offset, len).
6391 (read): Just call read(jbyteArray, offset, len).
6393 2004-03-16 Michael Koch <konqueror@gmx.de>
6395 * javax/swing/JTabbedPane.java
6396 (serialVersionUID): New field.
6398 2004-03-16 Norbert Frese <postfach@nfrese.net>
6400 * java/net/InetAddress.java
6401 (getByName): Handle hostname == "" case.
6403 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6405 Reported by: Adam Heath <doogie@debian.org>
6406 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6409 2004-03-15 Michael Koch <konqueror@gmx.de>
6411 * java/util/Locale.java: Reverting my last patch
6412 and add a comment why the original version was okay.
6414 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6416 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6417 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6418 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6419 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6421 2004-03-12 Michael Koch <konqueror@gmx.de>
6423 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6425 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6427 * java/net/URI.java (toURL): Implemented.
6429 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6432 (URI_REGEXP) updated to contain scheme specific part.
6433 (SCHEME_SPEC_PART_GROUP) new constant.
6434 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6435 updated to make room for SCHEME_SPEC_PART_GROUP.
6436 (parseURI) parse scheme specific part.
6437 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6438 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6439 getQuery, getFragment) implemented.
6441 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6443 * libraries/javalib/java/net/URI.java
6444 partially implemented using java.util.regex.
6445 (URI_REGEXP) new constant. Used to parse URIs.
6446 (SCHEME_GROUP) new constant representing index of scheme group
6448 (AUTHORITY_GROUP) new constant representing index of authority
6449 group in parsed URI.
6450 (PATH_GROUP) new constant representing index of path group in
6452 (QUERY_GROUP) new constant representing index of query group in
6454 (FRAGMENT_GROUP) new constant representing index of fragment
6455 group in parsed URI.
6456 (getURIGroup) new static utility method.
6457 (parseURI) implemented.
6458 (quote) stub for new static utility method.
6459 (quoteAuthority) stub for new static utility method.
6460 (quoteHost) stub for new static utility method.
6461 (quotePath) stub for new static utility method.
6462 (quoteUserInfo) stub for new static utility method.
6464 (create) don't throw URISyntaxException. Implemented.
6465 (toString) implemented.
6467 2004-03-12 Michael Koch <konqueror@gmx.de>
6469 * java/net/HttpURLConnection.java
6470 (getResponseCode): Fix another typo in javadoc.
6472 2004-03-11 Michael Koch <konqueror@gmx.de>
6474 * java/util/logging/Level.java
6475 (parse): Use String.equals() instead of ==.
6477 2004-03-11 Michael Koch <konqueror@gmx.de>
6479 * gnu/java/net/protocol/jar/Connection.java
6480 (getContentLength): New method.
6482 2004-03-11 Michael Koch <konqueror@gmx.de>
6484 * gnu/java/net/PlainSocketImpl.java:
6485 Reformated to merge better with classpath's version.
6487 2004-03-11 Michael Koch <konqueror@gmx.de>
6489 * java/util/Locale.java
6490 (getISO3Language): Use String.equals() instead of ==.
6491 (getISO3Country): Likewise.
6493 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6495 * java/text/AttributedString.java
6496 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6497 Use HashMap instead of Hashtable since value can be null, and
6498 you can not store a null value in a Hashtable.
6500 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6502 * java/text/AttributedStringIterator.java
6503 (getAllAttributesKey): Return only keys concerned
6504 by the current iterator.
6505 (getAttributes): Use strict inequality for
6508 2004-03-11 Michael Koch <konqueror@gmx.de>
6510 * java/net/HttpURLConnection.java:
6511 Fixed typo in javadoc.
6513 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6515 * java/io/BufferedInputStream.java (marktarget): New field for max
6517 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6518 (mark): Use new fields.
6520 (read(byte[],int,int)): Likewise.
6524 2004-03-11 Mark Wielaard <mark@klomp.org>
6526 * java/beans/BeanDescriptor.java (BeanDescriptor):
6527 Set the FeatureDescriptor programmatic name.
6529 2004-03-11 Michael Koch <konqueror@gmx.de>
6531 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6532 This file was was just copied form java/io/natFileDescriptorEcos.cc
6533 and never changed to compile correctly.
6535 2004-03-11 Michael Koch <konqueror@gmx.de>
6537 * gnu/java/nio/PipeImpl.java
6538 (SourceChannelImpl): Made final.
6539 (read): Implemented.
6540 (SinkChannelImpl): Made final.
6541 (write): Implemented.
6543 2004-03-11 Michael Koch <konqueror@gmx.de>
6545 * gnu/java/net/PlainDatagramSocketImpl.java:
6546 Reformated to match classpath's version more.
6548 2004-03-11 Michael Koch <konqueror@gmx.de>
6550 * gnu/java/awt/peer/ClasspathFontPeer.java:
6551 Fixed javadoc to be correct xhtml.
6552 * gnu/java/awt/peer/gtk/GtkArgList.java
6553 (add): Use Boolean.valueOf() instead of new Boolean().
6555 2004-03-09 Michael Koch <konqueror@gmx.de>
6557 * java/lang/Thread.java
6558 (runnable): Moved around.
6559 (daemon): Renamed from daemon_flag.
6560 (contextClassLoader): Renamed from context_class_loader.
6561 (Thread): Reordered constructors.
6562 (activeCount): Use group directly.
6563 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6564 (holdsLock): Reworked javadoc.
6565 (setDaemon): Reworked.
6566 * java/lang/natThread.cc
6569 2004-03-08 Anthony Green <green@redhat.com>
6571 * Makefile.am: Build property resource files into libgcj.
6572 * Makefile.in: Rebuilt.
6573 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6574 java/util/regex/PatternSyntaxException.java,
6575 gnu/regexp/CharIndexed.java,
6576 gnu/regexp/CharIndexedCharArray.java,
6577 gnu/regexp/CharIndexedInputStream.java,
6578 gnu/regexp/CharIndexedReader.java,
6579 gnu/regexp/CharIndexedString.java,
6580 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6581 gnu/regexp/REException.java,
6582 gnu/regexp/REFilterInputStream.java,
6583 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6584 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6585 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6586 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6587 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6588 gnu/regexp/RETokenLookAhead.java,
6589 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6590 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6591 gnu/regexp/RETokenStart.java,
6592 gnu/regexp/RETokenWordBoundary.java,
6593 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6595 2004-03-03 Per Bothner <per@bothner.com>
6597 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6598 Optimize when argument is a FileChannelImpl.
6599 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6601 * java/nio/channels/natChannels.cc: New file for new native methods.
6602 * Makefile.am: Update accordingly.
6604 2004-03-02 Jan Hubicka <jh@suse.cz>
6606 * configure.host: Pass -fno-omit-frame-pointer for i386.
6607 * configure.in: Likewise.
6608 * configure: Regenerate.
6610 2004-03-01 Per Bothner <per@bothner.com>
6612 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6614 2004-02-29 Per Bothner <per@bothner.com>
6616 * java/nio/channels/FileChannelImpl.java: Moved to package
6617 gnu/java/nio/channels, since we need to refer to it from java.io.
6618 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6619 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6620 from java/nio/channels. Don't depend on FileDescriptor.
6621 (in, out, err): New static fields.
6623 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6624 from FileDescriptor.
6625 (by): Removed MappedByteBuffer field.
6626 (map): New working implementation.
6627 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6628 some code "ported" from natFileDescriptoPosix.cc.
6629 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6630 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6631 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6632 Remove native methods.
6633 * Makefile.am, configure.in: Updated accordingly.
6635 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6636 (ch): New FileChannelImpl field. Update constructor to match.
6637 (releaseImpl): Remove native method. Instead ...
6638 (release): Call unlock on channel.
6639 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6641 * java/io/natFileDescriptorEcos.cc: Remove file.
6642 * java/io/natFileDescriptorPosix.cc: Remove file.
6643 * java/io/natFileDescriptorWin32.cc: Remove file.
6644 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6645 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6646 (<init>(FileChannelImpl)): New package-private constructor.
6647 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6648 (available, close, read, skip): Implement using FileChannelImpl.
6649 (getFD): Allocate FileDescriptor if needed.
6650 (getChannel): Is now trivial.
6651 * java/io/FileOutputStream.java: Corresponding changes.
6652 * java/io/RandomAccessFile.java: Corresponding changes.
6654 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6655 unmapImpl): New dummy methods, to be overridden by subclass.
6656 (finalize, isLoaded, load, force): New methods.
6657 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
6658 Now works, at least for read mapping.
6660 * java/lang/natPosixProcess.cc (startProcess): Implement standard
6661 streams using FileChannelImpl, not FileDescriptor.
6662 * java/lang/natWin32Process.cc (startProcess): Likewise.
6664 2004-02-28 Michael Koch <konqueror@gmx.de>
6666 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6669 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
6671 * java/io/ObjectInputStream.java
6672 (readClassDescriptor): Keep elements of the mapping non null.
6673 (checkTypeConsistency): New method.
6674 (readFields): Fixed main loop and base logic. Small reindentation.
6675 * java/io/ObjectStreamField.java
6676 (lookupField): New method to update the field reference.
6677 (checkFieldType): New method.
6678 * java/io/ObjectStreamClass.java
6679 (setClass, setFields): Call lookupField when building the field
6680 database. Check the real field type.
6682 2004-02-28 Michael Koch <konqueror@gmx.de>
6684 * java/nio/ByteOrder.java
6685 (nativeOrder): Use equals() to compare strings.
6687 2004-02-26 Michael Koch <konqueror@gmx.de>
6689 * gnu/java/nio/FileLockImpl.java
6690 (finalize): Made protected.
6691 * java/nio/channels/FileChannel.java
6692 (MapMode.READ_ONLY): Made final.
6693 (MapMode.READ_WRITE): Made final.
6694 (MapMode.PRIVATE): Made final.
6695 * java/nio/channels/SocketChannel.java
6696 (open): Simplified code.
6697 * java/nio/channels/spi/AbstractSelectableChannel.java
6698 (registered): Unused, removed.
6699 (keyFor): Check channel is open, only locate key
6700 and not add a new one.
6701 (register): Don't delete attachments.
6703 2004-02-26 Michael Koch <konqueror@gmx.de>
6705 * gnu/java/awt/ComponentDataBlitOp.java
6706 (INSTANCE): Made final.
6707 * gnu/java/awt/image/ImageDecoder.java:
6709 (cm): Unused, removed.
6711 2004-02-26 Michael Koch <konqueror@gmx.de>
6713 * gnu/java/nio/DatagramChannelImpl.java
6714 (send): Check if target address is resolved.
6716 2004-02-26 Michael Koch <konqueror@gmx.de>
6718 * Makefile.am: Generate and install headers for inner classes in
6719 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
6720 * Makefile.in: Regenerated.
6722 2004-02-24 Anthony Green <green@redhat.com>
6724 * java/lang/StringBuffer.java: No need to NULL out remainder of
6725 buffer since ensureCapacity_unsynchronized will have done this for
6728 2004-02-20 Michael Koch <konqueror@gmx.de>
6730 * gnu/java/net/protocol/jar/Handler.java
6731 (): Removed unneeded check for file != null. java.net.URL.getFile()
6732 returns an empty string but never null.
6734 2004-02-20 Michael Koch <konqueror@gmx.de>
6736 * gnu/gcj/convert/Convert.java
6737 (main): Use equals() to compare strings.
6739 2004-02-20 Michael Koch <konqueror@gmx.de>
6741 * javax/swing/AbstractButton.java: Made several constants final.
6742 (getRolloverSelectedIcon): Made public.
6743 (getSelectedIcon): Made public.
6745 2004-02-16 Per Bothner <per@bothner.com>
6747 * java/nio/CharBufferImpl.java: Inline super constructor.
6748 * java/nio/DoubleBufferImpl.java: Likewise.
6749 * java/nio/FloatBufferImpl.java: Likewise.
6750 * java/nio/IntBufferImpl.java: Likewise.
6751 * java/nio/LongBufferImpl.java: Likewise.
6752 * java/nio/ShortBufferImpl.java: Likewise.
6753 * java/nio/CharBuffer.java: Remove unused constructor.
6754 * java/nio/DoubleBuffer.java: Likewise.
6755 * java/nio/FloatBuffer.java: Likewise.
6756 * java/nio/IntBuffer.java: Likewise.
6757 * java/nio/LongBuffer.java: Likewise.
6758 * java/nio/ShortBuffer.java: Likewise.
6759 * java/nio/CharViewBufferImpl.java: New convenience constructor.
6760 Fix buggy call to super constructor.
6761 * java/nio/DoubleViewBufferImpl.java: Likewise.
6762 * java/nio/FloatViewBufferImpl.java: Likewise.
6763 * java/nio/IntViewBufferImpl.java: Likewise.
6764 * java/nio/LongViewBufferImpl.java: Likewise.
6765 * java/nio/ShortViewBufferImpl.java: Likewise.
6767 * java/nio/ByteBuffer.java (endian): Make non-private so other
6768 java.nio classes can inherit it.
6769 (<init>): Don't bother clearing array_offset.
6770 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
6771 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
6772 Remove redundant test.
6774 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
6775 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
6776 Use new XxxViewBufferImpl constructors.
6777 * java/nio/MappedByteBufferImpl.java: Likewise.
6778 * java/nio/DirectByteBufferImpl.java: Likewise.
6780 * java/nio/ByteBufferImpl.java: Remove one constructor.
6781 Inline super in remaining constructor.
6782 * java/nio/ByteBuffer.java: Remove unused constructor.
6784 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
6786 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
6787 * java/nio/DirectByteBufferImpl.java (owner): New field.
6788 (offset): Remove unused field.
6789 (<init>): Modify one and add another constructor. Change callers.
6790 (allocateDirect): Removed - not used.
6791 (getImpl, putImpl): Make static and pass address explicitly,
6792 to make them useful for MappedByteBufferImpl.
6793 (get, put): Check for underflow. Modify for new getImpl.
6794 (getImpl): New native method where target is array.
6795 (get(byte[],int,int)): Use the above.
6796 (adjustAddress): New static native method.
6797 (slice, duplicate, asReadOnly): New implementations.
6798 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
6799 adjustAddress): New or updated native methods.
6801 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
6803 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
6804 overflow of fieldmapping.
6806 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
6808 * javax/swing/undo/UndoManager.java: Re-written from scratch.
6810 2004-02-14 Per Bothner <per@bothner.com>
6812 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
6813 Set closed before calling implCloseChannel, as in the spec.
6815 2004-02-09 Graydon Hoare <graydon@redhat.com>
6817 * javax/swing/ToggleButtonModel.java: Remove dead class.
6818 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
6819 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
6820 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
6821 * Makefile.am: Update for new and removed files.
6822 * Makefile.in: Regenerate.
6824 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
6825 * javax/swing/AbstractButton.java
6826 (AbstractButton): Initialize fields correctly in ctor.
6827 * javax/swing/JCheckbox.java
6828 (JCheckBox): Override painting flags.
6829 * javax/swing/DefaultButtonModel.java: Conform to sun.
6830 * javax/swing/JComponent.java (paint): Fill with background color
6832 (processComponentKeyEvent)
6835 (processMouseMotionEvent): Remove event-consuming empty methods.
6836 (getUIClassID): Return "ComponentUI" not "JComponent"
6837 * javax/swing/JFrame.java: Remove some debugging chatter.
6838 (JFrame): Subscribe to window events.
6839 * javax/swing/JRadioButton.java
6840 (JRadioButton): Override painting flags.
6841 * javax/swing/JRootPane.java
6842 (JRootPane): Set background from UIDefaults.
6843 * javax/swing/JToggleButton.java
6844 (ToggleButtonModel): New inner class.
6845 (JToggleButton): Override layout alighment.
6846 * javax/swing/SwingUtilities.java:
6847 (getLocalBounds): Return width and height, not x and y.
6848 (calculateInnerArea): Use local bounds, not bounds.
6849 (layoutCompoundLabel): Provide overridden form.
6850 (layoutCompoundLabel): Correct bugs.
6851 * javax/swing/UIDefaults.java: Correct comment.
6852 * javax/swing/plaf/basic/BasicButtonUI.java:
6853 Move most logic into defaults, external listener.
6854 (paintIcon): Implement icon painting.
6855 (paint): Fix state painting to conform to changes in model.
6856 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
6857 Remove most dead/wrong methods.
6858 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
6859 * javax/swing/plaf/basic/BasicIconFactory.java:
6860 (DummyIcon): New class.
6861 (getMenuItemCheckIcon)
6862 (getMenuItemArrowIcon)
6864 (getCheckBoxMenuItemIcon)
6865 (getRadioButtonMenuItemIcon)
6866 (createEmptyFrameIcon): Return DummyIcons, not null.
6867 (getCheckBoxIcon): Implement an icon that looks like sun's.
6868 (getRadioButtonIcon): Implement an icon that looks like sun's.
6869 * javax/swing/plaf/basic/BasicLookAndFeel.java
6870 (initComponentDefaults): Fix impossible values, add some missing.
6871 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
6872 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
6873 Remove most dead/wrong methods.
6875 (getDefaultIcon): New method.
6876 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
6877 Remove most dead/wrong methods.
6878 * javax/swing/plaf/metal/MetalLookAndFeel.java
6879 (getDefaults): Return super.getDefaults(), not BasicDefaults.
6880 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6881 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
6882 Implement "clearing" as drawing, when on pixmap drawables.
6884 * javax/swing/JButton.java (getUIClassID):
6885 * javax/swing/JCheckBox.java (getUIClassID):
6886 * javax/swing/JEditorPane.java (getUIClassID):
6887 * javax/swing/JLabel.java (getUIClassID):
6888 * javax/swing/JList.java (getUIClassID):
6889 * javax/swing/JOptionPane.java (getUIClassID):
6890 * javax/swing/JPanel.java (getUIClassID):
6891 * javax/swing/JPasswordField.java (uiClassID):
6892 * javax/swing/JRadioButton.java (getUIClassID):
6893 * javax/swing/JRootPane.java (getUIClassID):
6894 * javax/swing/JScrollPane.java (getUIClassID):
6895 * javax/swing/JTabbedPane.java (getUIClassID):
6896 * javax/swing/JToggleButton.java (getUIClassID):
6897 * javax/swing/JTree.java (getUIClassID):
6898 * javax/swing/JViewport.java (getUIClassID):
6899 * javax/swing/text/JTextComponent.java (getUIClassID):
6900 Return "fooUI" not "Jfoo"
6902 2004-02-11 Michael Koch <konqueror@gmx.de>
6904 * java/net/DatagramSocket.java
6905 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
6907 (setBroadcast): Likewise.
6908 * java/net/MulticastSocket.java
6909 (setLoopbackMode): Likewise.
6910 * java/net/ServerSocket.java
6911 (setReuseAddress): Likewise.
6912 * java/net/Socket.java
6913 (setTcpNoDelay): Likewise.
6914 (setSoLinger): Likewise.
6915 (setOOBInline): Likewise.
6916 (setKeepAlive): Likewise.
6917 (setReuseAddress): Likewise.
6918 * java/net/URLConnection.java
6919 (setContentHandler): Replace == with equals().
6920 * java/net/URLStreamHandler.java
6921 (hostSEquals): Fix checking host addresses.
6922 (toExternalForm): Dont check protocol for null. We know already its
6925 2004-02-10 David Jee <djee@redhat.com>
6927 * java/awt/BorderLayout.java
6928 (calcCompSize): Invisible components get zero dimensions.
6929 * java/awt/Button.java
6930 (setLabel): Set actionCommand.
6931 * java/awt/Component.java
6932 (show): Invalidate component and parent container.
6935 2004-02-10 David Jee <djee@redhat.com>
6937 * java/awt/GridBagLayout.java
6938 (GridBagLayout): New private field, internalcomptable.
6939 (lookupInternalConstraints): New method.
6940 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
6941 (GetLayoutInfo): Reimplement.
6942 (calcCellSizes): Ignore rows/columns with size 0.
6944 2004-02-10 Michael Koch <konqueror@gmx.de>
6946 * gnu/java/awt/EmbeddedWindow.java
6947 (setHandle): Use java.awt.Component.getPeer() instead of
6948 java.awt.Component.peer directly.
6950 2004-02-10 David Jee <djee@redhat.com>
6952 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6953 (gtkSetLabel): New native method definition.
6954 (setLabel): Use gtkSetLabel.
6955 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6956 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
6958 2004-02-10 Alan Modra <amodra@bigpond.net.au>
6960 * include/powerpc-signal.h: Revert 2004-01-21 change.
6961 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
6962 from syscall for ppc32 versions.
6964 2004-02-08 Per Bothner <per@bothner.com>
6966 * java/nio/ByteBuffer.java (shiftDown): New helper method.
6967 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
6968 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
6969 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
6970 Pass ByteOrder parameter to most methods, since the underlying
6971 ByteBuffer's order isn't always what we should use.
6972 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
6973 * java/nio/DirectByteBufferImpl.java: Likewise.
6974 Use ByteBufferHelper methods.
6975 * java/nio/MappedByteBufferImpl.java: Likewise.
6976 (compact): Use shiftDown.
6977 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
6978 (get, put): Use ByteBufferHelper.
6979 (compact): Use new shiftDown method.
6980 (duplicate(boolean)): New helper method.
6981 (duplicate, asReadOnlyBuffer): Use it.
6982 (order): Return endian field.
6983 * java/nio/DoubleViewBufferImpl.java: Likewise.
6984 * java/nio/FloatViewBufferImpl.java: Likewise.
6985 * java/nio/IntViewBufferImpl.java: Likewise.
6986 * java/nio/LongViewBufferImpl.java: Likewise.
6987 * java/nio/ShortViewBufferImpl.java: Likewise.
6988 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
6989 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
6990 (compact): Re-implement using shiftDown.
6992 2004-02-08 Andreas Jaeger <aj@suse.de>
6994 * include/x86_64-signal.h: Fix typo.
6996 2004-02-08 Diego Novillo <dnovillo@redhat.com>
6998 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7000 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7002 2004-02-06 Michael Koch <konqueror@gmx.de>
7004 * java/io/ObjectInputStream.java
7005 (currentClassLoader): Reverted to old version of this method.
7007 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7009 * java/io/ObjectInputStream.java: Made all calls
7010 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7011 use cached info from ObjectStreamClass. (readClassDescriptor):
7012 Cache more information in ObjectStreamClass. (processResolution,
7013 readFields): Use cached info from ObjectStreamClass.
7014 (newObject): Throw exception instead of returning null for failure.
7015 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7016 setCharField, setDoubleField, setFloatField, setIntField,
7017 setLongField, setShortField, setObjectField, readObjectParams):
7018 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7020 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7021 (setClass): Added call to cacheMethods() (findMethod): New method.
7022 (cacheMethods): New method. (ObjectStreamClass): Added call to
7023 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7024 AccessController.doPrivileged to invoke setAccessible.
7025 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7026 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7028 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7029 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7030 isPrimitive): Made safe for cases where type == null.
7031 (setBooleanField, setByteField, setCharField, setShortField,
7032 setIntField, setLongField, setFloatField, setDoubleField,
7033 setObjectField): New methods.
7035 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7037 * java/awt/Component.java (getFont): Return a default font
7040 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7041 (Scrollbar (int, int, int, int, int)): Make default page
7043 (setValues): Only call peer.setValues if one of the values has
7045 (generateName): New method.
7046 (getUniqueLong): New method.
7047 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7048 (range_scrollbar): Remove structure.
7049 (post_adjustment_event): Remove function.
7050 (post_change_event): Accept jobject argument.
7051 (create): Cast jints to gdoubles. Round scrollbar values to the
7052 nearest integer. Clamp min, max and value settings.
7053 (connectJObject): Connect hook to widget->window.
7054 (connectSignals): Remove range_scrollbar structure variables.
7055 Remove "move-slider" connection. Pass global peer reference to
7056 "value-changed" callback.
7057 (setLineIncrement): Cast jint value to gdouble.
7058 (setPageIncrement): Likewise.
7059 (setValues): Likewise. Clamp min, max and value settings.
7061 2004-02-05 Michael Koch <konqueror@gmx.de>
7063 * javax/swing/AbstractCellEditor.java
7064 (getCellEditorValue): Removed.
7065 * javax/swing/Box.java: Reformated.
7066 (serialVersionUID): New field.
7067 * javax/swing/ButtonGroup.java:
7068 Removed some weird whitespace.
7069 * javax/swing/CellEditor.java: Reformated.
7070 * javax/swing/CellRendererPane.java
7071 (serialVersionUID): New field.
7072 (AccessibleCellRendererPaneserialVersionUID): New field.
7073 * javax/swing/DefaultListModel.java
7074 (serialVersionUID): New field.
7075 * javax/swing/JEditorPane.java
7076 (serialVersionUID): New field.
7077 (setPage): Throws IOException.
7078 (addHyperlinkListener): Implemented.
7079 (removeHyperlinkListener): Implemented.
7080 (getHyperlinkListener): New method.
7081 * javax/swing/JFileChooser.java
7082 (serialVersionUID): New field.
7083 (AccessibleJFileChooser.serialVersionUID): New field.
7084 (addActionListener): Implemented.
7085 (removeActionListener): Implemented.
7086 (getActionListeners): New method.
7087 * javax/swing/JFormattedTextField.java
7088 (serialVersionUID): New field.
7089 (AbstractFormatter.serialVersionUID): New field.
7090 (clone): Throws CloneNotSupportedException
7091 (setEditValid): Add missing argument.
7092 (stringToValue): Throws ParseExcpetion.
7093 (valueToString): Throws ParseException.
7094 (commitEdit): Throws ParseException.
7095 * javax/swing/JLabel.java
7096 (serialVersionUID): New field.
7097 * javax/swing/JList.java
7098 (serialVersionUID): New field.
7099 (addListSelectionListener): Reformated.
7100 (removeListSelectionListener): Reformated.
7101 (getListSelectionListeners): New method.
7102 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7104 (serialVersionUID): New field.
7105 * javax/swing/table/AbstractTableModel.java
7106 (getValueAt): Removed.
7107 (getColumnCount): Removed.
7108 (getRowCount): Removed.
7110 2004-02-05 Michael Koch <konqueror@gmx.de>
7112 * java/awt/datatransfer/DataFlavor.java
7113 (imageFlavor): Javadoc added.
7114 (javaJVMLocalObjectType): Fixed.
7116 2004-02-05 Michael Koch <konqueror@gmx.de>
7118 * java/lang/Thread.java
7119 (Thread): Reordered.
7120 (setContextClassLoader): Fixed javadoc comment.
7121 (setPriority): Reordered.
7123 (initialize_native): Reordered.
7124 (gen_name): Reordered.
7126 2004-02-05 Michael Koch <konqueror@gmx.de>
7128 * java/lang/Thread.java: Reordered fields, reformated much code,
7129 no functional changes, some variables renamed, javadoc comments
7132 2004-02-05 Michael Koch <konqueror@gmx.de>
7134 * java/util/zip/Deflater.java,
7135 java/util/zip/DeflaterOutputStream.java,
7136 java/util/zip/GZIPInputStream.java:
7137 Reformated and javadoc comments merged from classpath.
7139 2004-02-05 Michael Koch <konqueror@gmx.de>
7141 * gnu/java/nio/NIOServerSocket.java
7142 (impl): Unused, removed.
7143 * gnu/java/nio/SocketChannelImpl.java
7144 (finnishConnect): Don't throw NoConnectionPendingException if not
7145 connected or no connection pending.
7147 2004-02-02 Graydon Hoare <graydon@redhat.com>
7149 * javax/swing/SwingUtilities.java: Many new functions.
7150 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7151 * javax/swing/basic/BasicGraphicsUtils.java
7152 (getPreferredButtonSize): Start layout from top-left corner.
7154 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7156 * java/awt/geom/AffineTransform.java:
7157 Corrected comments on the field definitions for
7159 (shear): Fixed few errors that caused shear
7160 transformation to be performed incorrectly.
7161 (createInverse): Fixed to return correct
7162 inverse of the given matrix.
7164 2004-02-03 Tom Tromey <tromey@redhat.com>
7166 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7167 PATH or LD_LIBRARY_PATH is not set in parent environment.
7169 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7171 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7172 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7173 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7174 java/awt/Component.java, java/awt/Container.java,
7175 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7176 java/awt/LayoutManager2.java, java/awt/List.java,
7177 java/awt/Menu.java, java/awt/MenuBar.java,
7178 java/awt/MenuItem.java, java/awt/Polygon.java,
7179 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7180 java/awt/Scrollbar.java, java/awt/TextArea.java,
7181 java/awt/TextField.java,
7182 java/awt/image/renderable/RenderContext.java,
7183 javax/swing/JApplet.java: Fix handling of alias methods, where a
7184 method has been deprecated in favour of a new one with the same
7185 funtion but a different name. Put the method implementation in
7186 the deprecated method and have the new method call the
7187 deprecated one. Make all other code call the new method.
7189 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7191 * gnu/java/nio/DatagramChannelImpl.java
7192 (inChannelOperation): New field.
7193 (isInChannelOperation): New accessor.
7194 (setInChannelOperation): New modifier.
7195 (receive): Use capacity() - position() of destination
7196 buffer instead of remaining(). Set and reset our "in
7197 channel operation indicator" before and after delegating
7198 the receive to our datagram socket. Removed testing code.
7199 Update destination buffer's current position if it is
7200 backed by a byte array (hasArray() is true).
7201 (send): Set and reset our "in channel operation indicator"
7202 before and after delegating the send to our datagram socket.
7203 Removed testing code. Update source buffer's current position
7204 if it is backed by a byte array (hasArray() is true).
7205 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7206 Use capacity() - position() of destination buffer instead
7208 * java/net/DatagramSocket.java (receive): Don't throw an
7209 IllegalBlockingModeException if we have a non-blocking
7210 channel which initiated this operation.
7213 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7215 * configure.in: Add pkgconfig check for glib and gthread.
7216 * configure: Regenerate.
7218 2004-02-01 Michael Koch <konqueror@gmx.de>
7220 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7222 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7223 * verify.cc (debug_print): Mark 'fmt' unused.
7225 2004-01-30 Michael Koch <konqueror@gmx.de>
7227 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7228 * configure: Regenerated.
7229 * glib-2.0.m4: Removed.
7230 * gtk-2.0.m4: Removed.
7231 * libart.m4: Removed.
7234 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7236 * gnu/java/net/PlainSocketImpl.java
7237 (inChannelOperation): New field.
7238 (isInChannelOperation): New accessor.
7239 (setInChannelOperation): New modifier.
7240 * gnu/java/nio/ServerSocketChannelImpl.java
7241 (accept): Set and reset our server socket's PlainSocketImpl's
7242 "in channel operation" indicator before and after delegating
7243 the accept to our server socket.
7244 * gnu/java/nio/SocketChannelImpl.java
7245 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7246 operation" indicator before and after delegating the operation to
7250 * java/net/ServerSocket.java (implAccept): Don't throw an
7251 IllegalBlockingModeException if we have a non-blocking
7252 channel which initiated this accept operation.
7253 * java/net/Socket.java (connect): Don't throw an
7254 IllegalBlockingModeException if we have a non-blocking
7255 channel which initiated this connect operation.
7256 * java/nio/channels/spi/AbstractSelectableChannel.java
7257 (configureBlocking): Only call implConfigureBlocking() if
7258 the desired blocking mode is different from our current one.
7260 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7262 * java/io/BufferedReader.java (sbuf): New field.
7263 (readLine): Use String.valueOf instead of new String() as per
7264 Per Bothner's suggestion. Use instance sbuf field instead of a
7265 local StringBuffer instance.
7266 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7267 caller's buffer to refill().
7268 (read(void)): Pass our internal work buffer to refill if our
7269 input queue is empty.
7270 (refill): Changed return type to int. Use the specified buffer
7271 instead of our work buffer as per Bryce McKinlay's suggestion.
7272 Return the number of characters read or -1 for EOF.
7274 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7276 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7278 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7280 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7281 * Makefile.in: Re-generated.
7282 * gnu/awt/xlib/XFontPeer.java: New file.
7283 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7284 (setClip): Commented out debug printout.
7285 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7286 (getFontPeer): Return XFontPeer.
7287 (getLocalGraphicsEnvironment): New method.
7288 (getClasspathFontPeer): New method.
7289 (createFont): New method.
7291 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7293 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7296 2004-01-29 Kim Ho <kho@redhat.com>
7298 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7299 (gtkLayoutSetVisible): New method
7300 (setMenuBar): Hide layout before setting MenuBar
7301 and reshow it after.
7302 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7303 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7305 2004-01-28 Michael Koch <konqueror@gmx.de>
7307 * gnu/java/lang/ClassHelper.java
7308 (getPackagePortion): Removed.
7310 2004-01-28 Michael Koch <konqueror@gmx.de>
7312 * javax/swing/JComponent.java
7313 (listenerList): Initalize globally.
7314 (ancestor_list): Removed.
7315 (veto_list): Removed.
7316 (change_list): Removed.
7317 (get_veto_list): Removed.
7318 (get_change_list): Removed.
7319 (get_ancestor_list): Removed.
7320 (removeAncestorListener): Reimplemented.
7321 (removePropertyChangeListener): Likewise.
7322 (removeVetoableChangeListener): Likewise.
7323 (addAncestorListener): Likewise.
7324 (addPropertyChangeListener): Likewise.
7325 (addVetoableChangeListener): Likewise.
7326 (getListeners): New method.
7327 (getAncestorListeners): Likewise.
7328 (getVetoableChangeListeners): Likewise.
7329 (fireVetoableChange): Throws PropertyVetoException.
7330 * javax/swing/JEditorPane.java
7331 (JEditorPane): Throws IOException.
7333 2004-01-28 David Jee <djee@redhat.com>
7335 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7336 (create): Set the default foreground color to
7337 java.awt.SystemColor.windowText.
7339 2004-01-27 Michael Koch <konqueror@gmx.de>
7341 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7342 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7343 Reindented to merge with classpath.
7345 2004-01-27 David Jee <djee@redhat.com>
7347 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7348 (addExposeFilter): Handle GtkFramePeer separately.
7349 (removeExposeFilter): Likewise.
7351 2004-01-27 Michael Koch <konqueror@gmx.de>
7353 * gnu/java/net/protocol/http/Connection.java
7354 (getOutputStream): Fixed typo.
7356 2004-01-27 Michael Koch <konqueror@gmx.de>
7358 * java/lang/Class.java
7359 (getConstructor): Removed SecurityException from throws clause.
7360 (_getConstructors): Likewise.
7361 (getConstructors): Likewise.
7362 (getDeclaredConstructor): Likewise.
7363 (getDeclaredClasses): Likewise.
7364 (getDeclaredConstructors): Likewise.
7365 (getDeclaredField): Likewise.
7366 (getDeclaredMethod): Likewise.
7367 (getDeclaredMethods): Likewise.
7368 (getField): Likewise.
7369 (getMethod): Likewise.
7370 (getMethods): Likewise.
7372 2004-01-27 Kim Ho <kho@redhat.com>
7374 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7375 (removeMenuBarPeer): Remove MenuBarPeer argument.
7376 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7377 (dispose): Call native method.
7378 * java/awt/Frame.java (setMenuBar): Create and remove
7379 MenuBar peers only if the Frame has a peer.
7380 (addNotify): Create the MenuBar peer if one exists.
7381 (removeNotify): Remove MenuBar peer if one exists.
7382 * java/awt/Menu.java: Fix imports.
7383 (addNotify): Don't use full class name.
7384 (removeNotify): Call removeNotify on all children.
7385 * java/awt/MenuBar.java (removeNotify): Call
7386 removeNotify on all children.
7387 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7388 (removeMenuBarPeer): Remove MenuBarPeer argument.
7389 Iterate through children to find the Frame's MenuBar.
7390 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7392 (dispose): Remove references to the MenuComponent.
7394 2004-01-27 Michael Koch <konqueror@gmx.de>
7396 * javax/swing/AbstractCellEditor.java: Reformated.
7397 * javax/swing/DefaultListSelectionModel.java
7398 (listenerList): Made protected.
7399 (addListSelectionListener): Javadoc added.
7400 (removeListSelectionListener): Likewise.
7401 (getListeners): Likewise.
7402 (getListSelectionListeners): Likewise.
7403 * javax/swing/JComboBox.java: Merged copyright year.
7404 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7406 2004-01-26 Andrew Haley <aph@redhat.com>
7408 * javax/swing/table/JTableHeader.java: Extend JComponent
7410 2004-01-26 Kim Ho <kho@redhat.com>
7412 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7415 2004-01-26 Kim Ho <kho@redhat.com>
7417 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7419 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7420 height and let the Layout Managers readjust anything that
7422 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7423 (moveLayout): New method. Shift everything in the Gtk
7424 layout in the Y direction by an offset.
7426 2004-01-26 David Jee <djee@redhat.com>
7428 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7429 (handleEvent): Implemented. Handles PaintEvents.
7430 (paint): Implemented. Use GTK native methods to queue updates
7431 for this heavyweight peer.
7432 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7433 (handleEvent): Removed.
7434 * java/awt/Component.java
7435 (paint): Implemented. Explictly paint the heavyweight peer.
7436 (update): Clear the background for heavyweight components.
7437 (paintAll): No need to call peer.paint() anymore.
7438 (processEvent): Don't process PaintEvents here. It's now done in
7439 the peer's handleEvent().
7440 (processPaintEvent): Removed.
7441 * java/awt/Container.java
7442 (paint): No need to call super.paint(). Visit heavyweight
7444 (update): Don't clear the background here. It's done in
7446 (visitChildren): Added check to not recurse into Containers.
7447 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7448 (filter_expose_event_handler): New method. Filter unwanted
7449 expose events while painting heavyweight peers.
7450 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7451 New method. Connect filter and block pre_event_handler.
7452 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7453 New method. Disconnect filter and unblock pre_event_handler.
7454 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7455 New method. Invalidate and update given area.
7456 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7457 (pre_event_handler): Add checks for unwanted expose events.
7459 2004-01-26 David Jee <djee@redhat.com>
7461 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7462 (find_bg_color_widget): For GtkButton, return its child.
7464 2004-01-26 Kim Ho <kho@redhat.com>
7466 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7468 (setMenuBar): Grab MenuBar height and change insets.
7469 (setBounds): Account for MenuBar height.
7470 (postInsetsChangedEvent): Ditto.
7471 (postSizeAllocateEvent): Remove.
7472 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7473 (menubar_resize_cb): Remove
7474 (setMenuBarPeer): Remove callback.
7475 (getMenuBarHeight): Use size requisition instead of
7478 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7480 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7481 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7483 (setColumns): Remove FIXME -- peer will retrieve number of
7484 columns by calling getColumns.
7485 (setRows): Likewise for number of rows.
7486 (next_text_number): New field.
7487 (paramString): Fix param string.
7488 (generateName): New method.
7489 (getUniqueLong): New method.
7491 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7493 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7494 image observer of image loading status.
7495 (getImage (String)): Start image production.
7496 (getImage (URL)): Likewise.
7498 2004-01-25 Michael Koch <konqueror@gmx.de>
7500 * java/lang/Class.java: Imports reworked, reformated.
7501 (Class): Javadoc added.
7502 (forName): Likewise.
7503 (getClasses): Likewise.
7504 (getClassLoader): Likewise.
7505 (getComponentType): Likewise.
7506 (getConstructor): Likewise.
7507 (getConstructors): Likewise.
7508 (getDeclaredConstructor): Likewise.
7509 (getDeclaredClasses): Likewise.
7510 (getDeclaredConstructors): Likewise.
7511 (getDeclaredField): Likewise.
7512 (getDeclaredMethod): Likewise.
7513 (getDeclaredMethods): Likewise.
7514 (getDeclaringClass): Likewise.
7515 (getField): Likewise.
7516 (getInterfaces): Likewise.
7517 (getMethod): Likewise.
7518 (getMethods): Likewise.
7519 (getModifiers): Likewise.
7520 (getName): Likewise.
7521 (getResource): Likewise.
7522 (getResourceAsStream): Likewise.
7523 (getSigners): Likewise.
7524 (setSigners): Likewise.
7525 (getSuperclass): Likewise.
7526 (isArray): Likewise.
7527 (isAssignableFrom): Likewise.
7528 (isInstance): Likewise.
7529 (isInterface): Likewise.
7530 (isPrimitive): Likewise.
7531 (newInstance): Likewise.
7532 (getProtectionDomain): Likewise.
7533 (toString): Likewise.
7535 (initializeClass): Likewise.
7536 (finalize): Likewise.
7538 2004-01-24 Michael Koch <konqueror@gmx.de>
7540 * gnu/java/net/protocol/jar/Connection.java
7543 (gotHeaders): Removed.
7544 (getHeaderField): Removed.
7545 (getHeaderFields): Removed.
7546 (getHeaderFieldKey): Removed.
7548 (getField): Removed.
7549 (getHeaders): Removed.
7551 2004-01-24 Michael Koch <konqueror@gmx.de>
7553 * Makefile.am: Added library version to gtk peer lib.
7554 * Makefile.in: Regenerated.
7556 2004-01-24 Michael Koch <konqueror@gmx.de>
7558 * java/util/zip/InflaterInputStream.java: Merged class documentation
7561 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7563 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7564 header. For __powerpc64__ provide the default-signal.h definitions
7566 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7567 instead of the dummy definitions.
7568 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7569 (powerpc64*-*): Remove with_libffi_default.
7570 Only add -mminimal-toc for 64-bit compilations.
7571 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7572 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7573 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7574 * configure: Rebuilt.
7576 2004-01-23 Michael Koch <konqueror@gmx.de>
7578 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7580 2004-01-23 Michael Koch <konqueror@gmx.de>
7582 * java/lang/VMClassLoader.java: Reworked imports.
7584 2004-01-23 Michael Koch <konqueror@gmx.de>
7586 * javax/swing/AbstractAction.java: Reformated.
7588 2004-01-23 Michael Koch <konqueror@gmx.de>
7590 * java/text/CollationElementIterator.java:
7591 (setText): New method.
7593 2004-01-23 Michael Koch <konqueror@gmx.de>
7595 * gnu/java/nio/FileLockImpl.java:
7596 Fixed filename in copyright.
7597 (released): Removed.
7598 (finalize): New method.
7599 * gnu/java/nio/natFileLockImpl.cc
7600 (releaseImpl): Implemented.
7601 * java/nio/channels/FileChannelImpl.java:
7603 (lock): Implemented.
7604 (lockImpl): New method.
7605 (tryLock): Implemented.
7606 (tryLockImpl): New method.
7607 * java/nio/channels/natFileChannelImpl.cc
7608 (lockImpl): New method.
7609 (tryLockImpl): New method.
7611 2004-01-23 Michael Koch <konqueror@gmx.de>
7613 * java/io/FileDescriptor.java
7615 (tryLock): New method.
7616 (unlock): New method.
7617 * java/io/natFileDescriptorEcos.cc
7619 (tryLock): New method.
7620 (unlock): New method.
7621 * java/io/natFileDescriptorPosix.cc
7623 (tryLock): New method.
7624 (unlock): New method.
7625 * java/io/natFileDescriptorWin32.cc
7627 (tryLock): New method.
7628 (unlock): New method.
7630 2004-01-23 Michael Koch <konqueror@gmx.de>
7632 * java/io/FileDescriptor.java
7633 (sync): Moved around, added javadoc.
7638 (setLength): Likewise.
7640 (getLength): Likewise.
7641 (getFilePointer): Likewise.
7643 (available): Likewise.
7644 (finalize): Likewise.
7646 2004-01-23 Michael Koch <konqueror@gmx.de>
7648 * javax/swing/AbstractAction.java: Reformated.
7649 (getPropertyChangeListeners): New method.
7650 * javax/swing/AbstractCellEditor.java: Reformated.
7651 (getCellEditorListeners): New method.
7652 * javax/swing/DefaultListSelectionModel.java
7653 (listenerList): New field.
7654 (listeners): Removed.
7655 (get_listeners): Removed.
7656 (addListSelectionListener): Rewritten.
7657 (removeListSelectionListener): Rewritten.
7658 (getListSelectionListeners): New method.
7659 (getListeners): New method.
7660 * javax/swing/JComboBox.java: Imports reworked.
7661 (addActionListener): Implemented.
7662 (removeActionListener): Implemented.
7663 (addItemListener): Implemented.
7664 (removeItemListener): Implemented.
7665 (addPopupMenuListener): Implemented.
7666 (removePopupMenuListener): Implemented.
7667 (getActionListeners): New method.
7668 (getItemListeners): New method.
7669 (getPopupMenuListeners): New method.
7671 2004-01-23 Michael Koch <konqueror@gmx.de>
7673 * gnu/java/net/protocol/http/Connection.java
7674 (connect): Don't initialize bufferedOutputStream if not needed.
7675 (sendRequest): Set property for content length if content is present.
7676 Write content only if present.
7677 (getOutputStream): Check if already connected, dont connect,
7678 initalize bufferedOutputStream if needed.
7680 2004-01-23 Michael Koch <konqueror@gmx.de>
7682 * java/io/FileDescriptor.java
7683 (in, out, err): Added javadoc.
7684 (static): Merged loading code.
7685 (fd, position): Moved around.
7687 2004-01-23 Michael Koch <konqueror@gmx.de>
7689 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
7692 2004-01-23 Michael Koch <konqueror@gmx.de>
7694 * java/lang/Class.java,
7695 java/lang/Object.java,
7696 java/lang/Thread.java: Merged copyright with classpath.
7698 2004-01-23 Michael Koch <konqueror@gmx.de>
7700 * java/io/FileDescriptor.java: Merged copyright with classpath to
7701 start merging this class.
7703 2004-01-22 Tom Tromey <tromey@redhat.com>
7706 * testsuite/libjava.lang/pr13107_2.xfail: New file.
7707 * testsuite/libjava.lang/pr13107_3.xfail: New file.
7708 * testsuite/libjava.lang/pr13107_3.java: New file.
7709 * testsuite/libjava.lang/pr13107_3.out: New file.
7710 * testsuite/libjava.lang/pr13107_2.java: New file.
7711 * testsuite/libjava.lang/pr13107_2.out: New file.
7712 * testsuite/libjava.lang/pr13107.java: New file.
7713 * testsuite/libjava.lang/pr13107.out: New file.
7714 * verify.cc (jsr_ptrs): Removed.
7715 (entry_points): Likewise.
7716 (struct subr_info): Likewise.
7717 (struct subr_entry_info): Likewise.
7718 (type_val::unused_by_subroutine_type): Likewise.
7719 (type::merge): Don't handle unused_by_subroutine_type.
7720 (type::print): Likewise.
7721 (state::flags): Removed.
7722 (state::subroutine): Likewise.
7723 (state::seen_subrs): Likewise.
7724 (state::NO_STACK): Likewise.
7725 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
7726 (state): Updated all methods.
7727 (state::clean_subrs): Removed.
7728 (state::state): Removed `ret_semantics' flag.
7729 (state::copy): Likewise.
7730 (state::add_subr): Removed.
7731 (state::enter_subroutine): Likewise.
7732 (type::set_return_address): New method.
7733 (handle_jsr_insn): Set return address on the type. Always
7734 invalidate PC after call.
7735 (check_nonrecursive_call): Removed.
7736 (~_Jv_BytecodeVerifier): Updated.
7737 (branch_prepass): Removed special handling of jsr.
7738 (note_branch_target): Likewise.
7739 (get_subroutine): Removed.
7740 (state::merge): Don't merge subroutines and don't handle
7741 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
7742 (state::note_variable): Removed.
7743 (state::is_unmerged_ret_state): Likewise.
7744 (state::print): Updated.
7745 (set_variable): Likewise.
7746 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
7747 and jsr_semantics arguments. Updated for new reverification
7749 (pop_jump): Rewrote.
7750 (construct_primitive_array_type): Updated.
7751 (state::next): Removed.
7752 (INVALID_STATE): New define.
7753 (state::INVALID): Removed.
7754 (state::NO_NEXT): New value.
7755 (state::pc, state::next): New fields.
7756 (state::get_pc): New method.
7757 (next_verify_pc): Removed.
7758 (next_verify_state): New field.
7759 (verify_instructions_0): Always check for falling off end.
7761 (linked_utf8): Removed.
7762 (states): Changed type.
7763 (type::state_mergeable_p): New method.
7764 (state::state_mergeable_p): Likewise.
7765 (handle_ret_insn): Removed most code.
7766 (state::reverify): New method.
7767 (add_new_state): Likewise.
7768 (state::set_pc): Likewise.
7770 2004-01-22 Jeff Sturm <jsturm@one-point.com>
7773 * testsuite/libjava.compile/PR13733.java: New file.
7774 * testsuite/libjava.compile/PR13733.xfail: New file.
7776 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
7777 Michael Koch <konqueror@gmx.de>
7779 * javax/swing/table/DefaultTableCellRenderer.java
7780 (DefaultTableCellRenderer): Added javadoc for the class and for
7781 the constructor, Border instance, create an EmptyBorder.
7782 (UIResource): Removed the comment at the end of the class
7783 (setForeground): New method.
7784 (setBackground): New method.
7785 (updateUI): New method.
7786 (getTableCellRendererComponent): Rewritten with the help of
7787 dvholten and Stephane Meslin-Weber.
7788 (validate): New method.
7789 (repaint): New method.
7790 (firePropertyChange): New method.
7791 (setValue): New method.
7793 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7795 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7796 (connectJObject): Replace printf calls with g_assert statements.
7797 Move property-notify-event signal connection to ...
7798 (connectSignals): Connect property-notify-event signal. Iterate
7799 through the vbox's children to find layout.
7801 2004-01-22 Graydon Hoare <graydon@redhat.com>
7803 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
7804 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7805 Predicate static initialization on GtkToolkit.useGraphics2D().
7806 * java/awt/Component.java (processPaintEvent): Consume event.
7807 * javax/swing/AbstractButton.java: Reimplement, document.
7808 * javax/swing/DefaultButtonModel.java: Reimplement, document.
7809 * javax/swing/JComponent.java (paint): Use double buffer.
7810 (listenerList): Enable member.
7811 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
7812 * javax/swing/JToggleButton.java
7813 (JToggleButton): Modify model constructor.
7814 * javax/swing/SwingUtilities.java
7815 (layoutCompoundLabel): Adjust arithmetic.
7816 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
7817 * javax/swing/plaf/basic/BasicGraphicsUtils.java
7818 (getPreferredButtonSize): Include margins in calculation.
7819 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7820 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
7821 Receive up events from subordinate layout component.
7823 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
7825 * java/awt/Component.java (show): Set visible to true before
7828 2004-01-21 Kim Ho <kho@redhat.com>
7830 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
7832 (removeMenuBarPeer): Make package private.
7833 (setMenuBarPeer): Make package private.
7834 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7835 (menubar_resize_cb): Mark attributes unused.
7836 (getMenuBarHeight): ditto.
7838 2004-01-21 David Jee <djee@redhat.com>
7840 * java/awt/Container.java
7841 (LightweightDispatcher.handleEvent): Add an extra check to avoid
7842 dispatching MOUSE_ENTERED event twice. Translate the point for
7843 the mouse event target before dispatching the event.
7845 2004-01-20 Jakub Jelinek <jakub@redhat.com>
7847 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
7848 lib_org_w3c_dom_la_LDFLAGS): New.
7849 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
7850 * Makefile.in: Rebuilt.
7852 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
7854 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
7855 Calculate proper offsets for heavyweight components packed in
7856 lightweight containers.
7858 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
7859 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
7860 (native create): Add width parameter.
7861 (create): Calculate text entry width based on current font's
7862 metrics and number of columns. Set TextField's font if not
7863 already set. Call native create.
7864 (gtkEntryGetBorderWidth): New native method.
7865 (gtkEntryGetSize): Remove method.
7866 (getMinimumSize): Call minimumSize.
7867 (getPreferredSize): Call preferredSize.
7868 (minimumSize): Calculate minimum size based on backing
7869 GtkEntry's borders, font metrics and number of columns.
7870 (preferredSize): Likewise for preferred size.
7871 (get_border_width): New static function.
7873 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
7874 Override GtkWindowPeer's setResizable method to account for menu
7875 bar height when setting the frame's size.
7877 2004-01-19 Matthias Klose <doko@debian.org>
7879 * libtool-version: Increased `current' to 6.
7881 2004-01-19 Kim Ho <kho@redhat.com>
7883 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7884 (connectJObject): Iterate through the vbox's children to find layout.
7886 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7888 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
7889 isDispatchThread method to replace wrong test condition.
7891 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7893 * java/awt/EventQueue.java (pop): Prevent racing condition to add
7894 events to the queue out of order by acquiring locks in the proper
7895 order and not by releasing one before acquiring the other.
7897 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7899 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
7900 visible so that dialog can be reused.
7902 2004-01-19 Fernando Nasser <fnasser@redhat.com>
7904 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
7905 events may be handled by any queue in the stack.
7907 2004-01-19 Kim Ho <kho@redhat.com>
7909 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
7910 MenuBarPeer parameter.
7911 (removeMenuBarPeer): New native method.
7912 (setMenuBar): Call remove if menu bar is null. Adjust insets
7914 (postSizeAllocateEvent): New method. Called when menu bar size is
7915 allocated. Adjust insets and redo layout.
7916 (GtkFramePeer): Set menu bar during frame creation.
7917 (postConfigureEvent): Adjust position and size to accomodate
7919 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
7920 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
7921 (addNotify): Create the peer if it doesn't exist and call addNotify
7922 for the menu's items.
7923 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
7924 * java/awt/MenuItem.java (addNotify): Create the peer if it
7926 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7927 (removeMenuBarPeer): New method. Remove menu bar on the current
7929 (setMenuBarPeer): Add the menu bar to the current frame and the
7930 callback for size-allocate events on the menu bar.
7931 (getMenuBarHeight): Add menu bar parameter.
7932 (menubar_resize_cb): New callback method for postSizeAllocate events.
7934 Also: Fix indentation on last ChangeLog entry.
7936 2004-01-16 Kim Ho <kho@redhat.com>
7938 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
7939 (gtkWidgetGetDimensions): Remove.
7940 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7941 (gtkWidgetGetDimensions): Remove.
7943 2004-01-16 Tom Tromey <tromey@redhat.com>
7945 * java/awt/Container.java: Typo and indentation fixes.
7947 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
7948 * java/lang/natVMClassLoader.cc: ...here. New file.
7949 * Makefile.in: Rebuilt.
7950 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
7952 2004-01-16 Fernando Nasser <fnasser@redhat.com>
7954 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
7955 Discard GDK_ENTER_NOTIFY related to ungrabs.
7957 2004-01-16 Fernando Nasser <fnasser@redhat.com>
7959 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
7960 is called for an intermediate queue.
7962 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
7964 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7965 (window_property_changed_cb): Set id_set.
7967 2004-01-16 Kim Ho <kho@redhat.com>
7969 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
7970 it is a FileDialog and has dimensions of 0 by 0, then the initial
7971 size is set to size request plus insets.
7972 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
7973 (gtkWidgetGetDimensions): Override method.
7974 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7975 (gtkWidgetGetDimensions): Override method. Returns size request plus
7978 2004-01-16 Andrew Haley <aph@redhat.com>
7980 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
7981 * sysdep/i386/locks.h: Likewise.
7983 2004-01-16 Fernando Nasser <fnasser@redhat.com>
7985 * java/awt/EventDispatchThread.java (run): Stop running when
7987 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
7988 Reset the queue after transferring its contents.
7989 (push): Start a new dispatch thread if none is running.
7991 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
7993 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
7994 (doPolygon): set fill rule of polygon to
7995 WIND_EVEN_ODD by default.
7997 2004-01-15 Olga Rodimina <rodimina@redhat.com>
7999 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8000 Implemented rendering hints related methods.
8001 (getDefaultHints): New helper method. Returns
8002 default rendering hints.
8003 (walkPath): changed to normalize path if
8004 the KEY_STROKE_CONTROL key is in "normalize" mode.
8005 (draw3DRect): changed coordinates of rectangle by +0.5
8006 if in "normalize" mode.
8008 2004-01-15 Tom Tromey <tromey@redhat.com>
8010 * Makefile.in: Rebuilt.
8011 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8012 (%.lo: %.java) Filter out StackTrace.lo.
8014 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8016 * configure.in: Add in AC_PREREQ(2.13)
8017 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8020 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8021 Tom Tromey <tromey@redhat.com>
8024 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8025 array to superclass.
8026 (init): Changed interface; add URLs here.
8027 (initialize): New static method.
8028 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8029 (_Jv_RunMain): ... not here.
8031 2004-01-14 Michael Koch <konqueror@gmx.de>
8033 * java/text/MessageFormat.java:
8034 Added descriptions to exceptions.
8035 This fixes PR libgcj/2429.
8037 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8039 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8040 (push): Make sure push is performed at the top of the thread stack.
8042 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8044 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8045 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8046 (native create): Add width and height parameters. Set text
8047 view's size request according to new parameters.
8048 (create): Calculate text view size based on current font's
8049 metrics and number of rows and columns. Set TextArea's font if
8050 not already set. Call native create.
8051 (getMinimumSize): Call minimumSize.
8052 (getPreferredSize): Call preferredSize.
8053 (getHScrollbarHeight): New method.
8054 (getVScrollbarWidth): New method.
8055 (minimumSize): Calculate minimum size based on scrollbar
8056 visibility, scrollbar sizes, font metrics and number of rows and
8058 (preferredSize): Likewise for preferred size.
8059 (gtkTextGetSize): Remove method.
8061 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8063 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8064 (initializeInsets): Remove method.
8065 (GtkComponentPeer): Initialize insets field. Remove call to
8067 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8069 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8071 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8072 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8073 (latestInsets): Remove field.
8074 (native create): Add insets parameter. Call
8075 window_get_frame_extents. Set the window's default size and
8076 size request based on its frame extents.
8077 (create): Initialize insets.
8078 (postInsetsChangedEvent): New method.
8079 (postConfigureEvent): Remove parameters top, left, bottom,
8080 right. Remove insets-related logic.
8081 (connectJObject): Handle property-notify-event.
8082 (window_get_frame_extents, request_frame_extents,
8083 property_notify_predicate, window_property_changed_cb): New
8085 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8086 (pre_event_handler): Remove insets-related logic for configure
8088 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8089 Update postConfigureEvent signature.
8091 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8093 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8094 to handle Window "Closing" events.
8096 2004-01-13 David Jee <djee@redhat.com>
8098 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8099 (setBackground): New method. Children with no explicitly-set
8100 background will be repainted with the parent container's new
8103 2004-01-13 David Jee <djee@redhat.com>
8105 * Makefile.am: Add BitwiseXORComposite.java.
8106 * Makefile.in: Regenerated.
8107 * gcj/Makefile.in: Regenerated.
8108 * include/Makefile.in: Regenerated.
8109 * testsuite/Makefile.in: Regenerated.
8111 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8113 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8114 not show modal dialogs twice and so that it allows showing a modal
8115 dialog from another modal dialog.
8117 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8119 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8120 and run secondary dispatch thread to process event queue while this
8123 2004-01-12 Graydon Hoare <graydon@redhat.com>
8125 * gnu/java/awt/gtk/GdkGraphics2D.java
8126 (static): Check GtkToolkit before initializing static state.
8127 (Graphics2D): Don't construct transform with 0.5 unit offset.
8129 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8131 * gnu/java/awt/BitwiseXORComposite.java: Add.
8132 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8133 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8134 (BitwiseXORComposite): Remove inner class.
8136 2004-01-11 Michael Koch <konqueror@gmx.de>
8138 * gnu/java/lang/reflect/TypeSignature.java
8139 (getEncodingOfClass): Documentation fixed.
8140 (getClassForEncoding): Give class loader to Class.forName().
8141 Documentation fixed.
8143 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8145 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8147 2004-01-11 Michael Koch <konqueror@gmx.de>
8149 * javax/swing/undo/StateEditable.java
8150 (RCSID): Removed redundant modifiers.
8152 2004-01-10 Michael Koch <konqueror@gmx.de>
8154 * javax/print/attribute/EnumSyntax.java
8155 (getStringTable): Made protected.
8156 (getEnumValueTable): Likewise.
8157 * javax/print/attribute/standard/JobKOctetsProcessed.java
8158 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8159 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8160 (JobMediaSheetsCompleted): Made class final.
8161 * javax/print/attribute/standard/OutputDeviceAssigned.java
8162 (getName): Fixed typo.
8163 * javax/print/attribute/standard/RequestingUserName.java
8164 (serialVersionUID): Fixed value.
8166 2004-01-10 Michael Koch <konqueror@gmx.de>
8168 * javax/swing/plaf/basic/BasicButtonUI.java,
8169 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8170 javax/swing/plaf/basic/BasicListUI.java,
8171 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8172 javax/swing/plaf/basic/BasicPanelUI.java,
8173 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8174 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8175 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8176 javax/swing/plaf/basic/BasicViewportUI.java:
8177 Fixed import statements.
8179 2004-01-10 Michael Koch <konqueror@gmx.de>
8181 * gnu/java/awt/image/ImageDecoder.java
8182 (produce): Made public.
8183 * gnu/java/awt/peer/GLightweightPeer.java,
8184 gnu/java/awt/peer/gtk/GtkToolkit.java:
8187 2004-01-10 Michael Koch <konqueror@gmx.de>
8189 * javax/swing/JRadioButtonMenuItem.java,
8190 javax/swing/JSeparator.java,
8191 javax/swing/JSplitPane.java,
8192 javax/swing/JTextPane.java,
8193 javax/swing/JToolBar.java,
8194 javax/swing/ListCellRenderer.java,
8195 javax/swing/ListModel.java,
8196 javax/swing/MenuElement.java,
8197 javax/swing/OverlayLayout.java,
8198 javax/swing/ProgressMonitor.java,
8199 javax/swing/ProgressMonitorInputStream.java,
8200 javax/swing/Renderer.java,
8201 javax/swing/RootPaneContainer.java,
8202 javax/swing/Scrollable.java,
8203 javax/swing/SingleSelectionModel.java,
8204 javax/swing/ToolTipManager.java,
8205 javax/swing/ViewportLayout.java,
8206 javax/swing/event/DocumentEvent.java,
8207 javax/swing/event/SwingPropertyChangeSupport.java,
8208 javax/swing/event/TreeSelectionEvent.java,
8209 javax/swing/event/UndoableEditEvent.java,
8210 javax/swing/text/AbstractDocument.java,
8211 javax/swing/text/AttributeSet.java,
8212 javax/swing/text/Caret.java,
8213 javax/swing/text/ComponentView.java,
8214 javax/swing/text/DefaultCaret.java,
8215 javax/swing/text/DefaultEditorKit.java,
8216 javax/swing/text/Document.java,
8217 javax/swing/text/EditorKit.java,
8218 javax/swing/text/GapContent.java,
8219 javax/swing/text/Keymap.java,
8220 javax/swing/text/MutableAttributeSet.java,
8221 javax/swing/text/PlainEditorKit.java,
8222 javax/swing/text/Segment.java,
8223 javax/swing/text/Style.java,
8224 javax/swing/text/StyledDocument.java,
8225 javax/swing/text/StyledEditorKit.java,
8226 javax/swing/text/TextAction.java,
8227 javax/swing/text/View.java: Fixed import statements.
8229 2004-01-08 Graydon Hoare <graydon@redhat.com>
8231 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8232 djee@redhat.com's recent inverse ordering of Container elements.
8234 2004-01-09 Michael Koch <konqueror@gmx.de>
8236 * gnu/java/lang/ArrayHelper.java
8237 (equalsArray): Removed.
8239 2004-01-09 Andrew Haley <aph@redhat.com>
8241 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8242 a Utf8Const field before looking at its class.
8244 2004-01-09 Michael Koch <konqueror@gmx.de>
8246 * javax/print/attribute/standard/DocumentName.java,
8247 javax/print/attribute/standard/JobHoldUntil.java,
8248 javax/print/attribute/standard/JobMessageFromOperator.java,
8249 javax/print/attribute/standard/JobName.java,
8250 javax/print/attribute/standard/JobOriginatingUserName.java,
8251 javax/print/attribute/standard/OutputDeviceAssigned.java,
8252 javax/print/attribute/standard/PrinterInfo.java,
8253 javax/print/attribute/standard/PrinterLocation.java,
8254 javax/print/attribute/standard/PrinterMakeAndModel.java,
8255 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8256 javax/print/attribute/standard/PrinterName.java,
8257 javax/print/attribute/standard/RequestingUserName.java: New files.
8258 * Makefile.am (javax_source_files): Added new files.
8259 * Makefile.in: Regenerated.
8261 2004-01-09 Michael Koch <konqueror@gmx.de>
8263 * javax/swing/AbstractAction.java,
8264 javax/swing/AbstractSet.java,
8265 javax/swing/Action.java,
8266 javax/swing/ActionMap.java,
8267 javax/swing/BoundedRangeModel.java,
8268 javax/swing/ButtonModel.java,
8269 javax/swing/CellEditor.java,
8270 javax/swing/CellRendererPane.java,
8271 javax/swing/ComboBoxEditor.java,
8272 javax/swing/DebugGraphics.java,
8273 javax/swing/DefaultCellEditor.java,
8274 javax/swing/DefaultCellRenderer.java,
8275 javax/swing/DefaultComboBoxModel.java,
8276 javax/swing/DefaultDesktopManager.java,
8277 javax/swing/DefaultFocusManager.java,
8278 javax/swing/DefaultListCellRenderer.java,
8279 javax/swing/Icon.java,
8280 javax/swing/JButton.java,
8281 javax/swing/JCheckBoxMenuItem.java,
8282 javax/swing/JDesktopPane.java,
8283 javax/swing/JEditorPane.java,
8284 javax/swing/JMenu.java,
8285 javax/swing/JPanel.java,
8286 javax/swing/JPasswordField.java,
8287 javax/swing/JPopupMenu.java,
8288 javax/swing/JProgressBar.java: Reworked imports.
8290 2004-01-09 Michael Koch <konqueror@gmx.de>
8292 * java/awt/geom/PathIterator.java
8293 (WIND_EVEN_ODD): Removed redundant modifiers.
8294 (WIND_NON_ZERO): Likewise.
8295 (SEG_MOVETO): Likewise.
8296 (SEG_LINETO): Likewise.
8297 (SEG_QUADTO): Likewise.
8298 (SEG_CUBICTO): Likewise.
8299 (SEG_CLOSE): Likewise.
8300 * java/awt/image/SinglePixelPackedSampleModel.java:
8301 Removed redundant semicolon.
8302 * java/io/ObjectInputStream.java
8303 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8304 * java/util/logging/Filter.java
8305 (isLoggable): Removed redundant modifier.
8306 * java/util/logging/LogManager.java:
8307 Removed redundant semicolon.
8308 * java/util/logging/XMLFormatter.java
8309 (format): Removed unused variable "key".
8311 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8313 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8314 New name for the former setFile native method.
8315 (setFile): New method.
8316 (setDirectory): Implemented.
8317 (connectSignals): New native method.
8318 (setFilenameFilter): Improve comment.
8319 (getGraphics): Comment.
8320 (gtkHideFileDialog): New method.
8321 (gtkDisposeFileDialog): New method.
8322 (gtkSetFilename): New method.
8323 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8324 for FileDialog for now.
8326 (dispose): New method.
8327 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8328 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8329 deprecated creation functions. Make dialog modal. Add it to the
8331 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8333 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8335 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8337 (window_closed): New function.
8338 (ok_clicked): New function.
8339 (cancel_clicked): New function.
8341 2004-01-08 Michael Koch <konqueror@gmx.de>
8343 * javax/swing/JLayeredPane.java: Revert changes to standard
8344 boilerplate, reworked imports.
8346 2004-01-07 Tom Tromey <tromey@redhat.com>
8349 * verify.cc (state::merge): Copy changed locals out of subroutine
8351 (state::FLAG_CHANGED): New const.
8352 (state::FLAG_UNUSED): Likewise.
8353 (state::local_changed): Removed. Updated all users.
8354 (state::flags): New field.
8355 (state::merge): Added jsr_semantics argument, more logic.
8356 (push_jump_merge): Added jsr_semantics argument.
8357 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8358 merging through the jsr instruction.
8360 2004-01-07 Tom Tromey <tromey@redhat.com>
8362 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8365 2004-01-07 Graydon Hoare <graydon@redhat.com>
8367 * java/awt/Container.java (LightweightDispatcher): Implement.
8368 (visitChild): Reuse graphics object.
8369 (dispatchEventImpl): Optionally dispatch to lightweight.
8370 (addNotifyContainerChildren): Build LightweightDispatcher.
8372 2004-01-07 David Jee <djee@redhat.com>
8374 * java/awt/Container.java
8375 (update): Clear only the clipped region, instead of clearing the
8377 (visitChildren): Visit children in descending order.
8379 2004-01-07 Michael Koch <konqueror@gmx.de>
8381 * java/lang/reflect/Array.java: Merged documentation with classpath.
8383 2004-01-07 Michael Koch <konqueror@gmx.de>
8385 * java/text/CollationElementIterator.java
8386 (textIndex): Renamed from index.
8387 * java/text/CollationKey.java
8388 (collator): New member.
8389 (CollationKey): New argument for parent collator.
8390 (equals): Check for same collator, source string and key array.
8391 * java/text/RuleBasedCollator.java:
8393 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8395 (getCollationElementIterator): Rewritten.
8396 (getCollationKey): Added new argument to CollationKey constructor.
8398 2004-01-07 Michael Koch <konqueror@gmx.de>
8400 * gnu/java/nio/DatagramChannelImpl.java
8401 (blocking): Removed.
8402 (DatagramChannelImpl): Call configureBlocking().
8403 (implConfigureBlocking): Dont initialize blocking.
8404 * gnu/java/nio/ServerSocketChannelImpl.java
8405 (blocking): Removed.
8406 (ServerSocketChannelImpl): Call configureBlocking().
8407 (implConfigureBlocking): Dont initialize blocking.
8408 * gnu/java/nio/SocketChannelImpl.java
8409 (blocking): Removed.
8410 (SocketChannelImpl): Call configureBlocking().
8411 (implConfigureBlocking): Dont initialize blocking.
8412 (connect): Use isBlocking().
8413 * java/nio/channels/spi/AbstractSelectableChannel.java
8414 (configureBlocking): Use blockingLock() instead of LOCK.
8415 Set blocking after successfully called implConfigureBlocking().
8416 (register): Use blockingLock() instead of LOCK.
8418 2004-01-07 Michael Koch <konqueror@gmx.de>
8420 * java/net/ServerSocket.java (isBound): Fixed documentation.
8422 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8424 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8425 (changeEvent): Create event object on demand.
8426 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8427 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8428 fireStateChanged): Re-written.
8429 * javax/swing/event/EventListenerList.java: Reformatted, document
8431 (toString): Implemented.
8432 (getListeners): Re-written.
8433 (remove): Re-written.
8435 (NO_LISTENERS): New singleton field.
8436 (listenerList): Declare as transient; document.
8437 (serialVersionUID): Document.
8438 (getListenerCount(Class)): More efficient implementation,
8439 also accepts null argument. Improve Javadoc.
8440 (getListenerCount()): Remove unnecessary cast; docfix.
8441 * javax/swing/undo/UndoableEditSupport.java:
8442 Re-format, document.
8443 (UndoableEditSupport): Set realSource field. Improve documentation.
8444 (_postEdit): Iterate over cloned listener vector.
8445 (toString): Don't emit realSource.
8446 (beginUpdate, endUpdate): Support nested updates.
8447 (postEdit): Use compound edit if present.
8449 2004-01-06 Graydon Hoare <graydon@redhat.com>
8451 * java/awt/Container.java (swapComponents): Add forgotten
8452 function, required for JLayeredPane change.
8454 2004-01-06 Michael Koch <konqueror@gmx.de>
8456 * java/text/CollationElementIterator.java: Reformated.
8457 (CollationElementIterator): Changed order of arguments.
8458 * java/text/RuleBasedCollator.java
8459 (RuleBasedCollator): Merged class documentation.
8460 (CollationElement): Added documentation.
8461 (compare): Reformated, renamed arguments.
8463 (getCollationElementIterator): Likewise.
8464 (getCollationKey): Likewise.
8466 2004-01-06 Graydon Hoare <graydon@redhat.com>
8468 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8470 2004-01-06 Michael Koch <konqueror@gmx.de>
8472 * gnu/java/net/protocol/file/Connection.java:
8473 Reformated copyright.
8476 (gotHeaders): Removed.
8477 (getHeaderField): Removed.
8478 (getHeaderField): Removed.
8479 (getHeaderFieldKey): Removed.
8481 (getField): Removed.
8482 (getHeaders): Removed.
8484 2004-01-06 Michael Koch <konqueror@gmx.de>
8486 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8487 javax/print/attribute/standard/DateTimeAtCreation.java,
8488 javax/print/attribute/standard/DateTimeAtProcessing.java,
8489 javax/print/attribute/standard/JobImpressionsCompleted.java,
8490 javax/print/attribute/standard/JobKOctets.java,
8491 javax/print/attribute/standard/JobKOctetsProcessed.java,
8492 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8493 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8494 * Makefile.am (javax_source_files): Added new files.
8495 * Makefile.in: Regenerated.
8497 2004-01-06 Michael Koch <konqueror@gmx.de>
8499 * java/net/URLConnection.java
8500 (contentHandler): Removed.
8502 (getHeaderFields): Return an empty map instead of null.
8503 (getContent): Connect if needed, renamed "cType" to "type" and
8504 "contentHandler" to "ch" and made it a local variable.
8505 (getPermission): Don't use package in class name.
8506 (setDefaultRequestProperty): Fixed typo in documentation.
8507 (initializeDateFormats): Made locale a local variable.
8509 2004-01-06 Michael Koch <konqueror@gmx.de>
8511 * java/lang/Package.java
8512 (getPackage): Get the current class loader directly.
8513 * java/lang/SecurityManager.java
8514 (currentLoadedClass): Dont iterate over class contexts.
8515 (classLoaderDepth): Don't check class loaders if everything is allowed.
8517 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8519 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8520 (pre_event_handler): Set all insets to 0 when a Configure event
8521 is received for a GtkPlug.
8522 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8523 Make handle long, not int.
8524 (EmbeddedWindow()): New constructor.
8525 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8527 (setHandle): New method.
8528 (getHandle): Return long, not int.
8529 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8531 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8532 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8533 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8534 argument to GdkNativeWindow.
8535 (construct): New method.
8536 (embed): New method.
8538 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8539 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8540 (create(int, int)): New method.
8541 (create): Call new create method.
8542 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8544 (childResized): Remove native implementation. Implement in
8546 (getHScrollbarHeight, getVScrollbarWidth): Call
8547 gtk_widget_size_request to get scrollbar dimensions.
8548 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8549 call getVScrollbarWidth and getHScrollbarHeight when vertical
8550 and horizontal scrollbars respectively are needed.
8551 (doLayout): Enlarge child if it is smaller than the viewport.
8553 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8555 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8556 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8557 argument as per spec.
8559 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8561 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8563 (remove): Ditto. Also, Check for valid argument.
8564 (removeAll): Use peer interface method.
8565 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8566 native add function.
8567 (nativeRemove): New name for native remove function.
8568 (getHistory): New native function.
8569 (constructor): Generate ItemEvent.
8570 (add): Ditto, if selection is changed.
8571 (remove): Ditto, ditto.
8572 (removeAll): Add implementation.
8573 (handleEvent): Remove. Dead code.
8574 (choicePostItemEvent): Add comment.
8575 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8576 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8577 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8578 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8579 comments and fix condition to change selection.
8580 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8581 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8582 remove all capability.
8583 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8584 (item_activate): Add cast to remove compiler warning.
8586 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8588 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8589 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8590 (getPreferredSize): Call preferredSize.
8591 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8592 (getMinimumSize): Call minimumSize.
8593 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8594 (gtkWidgetGetDimensions): Return the peer widget's current size
8596 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8597 natural size request.
8599 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8601 Thanks to Brian Gough <bjg@network-theory.com>
8602 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8603 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8605 2004-01-04 Matthias Klose <doko@debian.org>
8607 * aclocal.m4: Rebuilt using "aclocal -I .".
8608 * configure: Rebuilt.
8610 2004-01-03 Per Bothner <per@bothner.com>
8612 * java/util/Date.java (parse): Fix a number of problems.
8613 (skipParens): Remove no-longer-needed method.