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