OSDN Git Service

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