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