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