OSDN Git Service

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