OSDN Git Service

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