OSDN Git Service

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