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