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