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