1 2004-08-03 Tom Tromey <tromey@redhat.com>
5 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
7 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
9 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
11 * testsuite/libjava.compile/PR16701.java: New test.
13 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
15 * java/util/Collection.java, java/util/List.java,
16 java/util/Map.java, java/util/Set.java,
17 java/util/SortedMap.java, java/util/SortedSet.java:
18 Added additional exceptions to documentation.
20 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
23 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
24 * configure. Regenerate.
25 * include/win32.h: Explicitly include winsock2.h
26 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
29 2004-07-30 Michael Koch <konqueror@gmx.de>
31 * java/util/zip/GZIPInputStream.java
32 (GZIPInputStream): Increase buffer size to 4k.
33 * java/util/zip/GZIPOutputStream.java
34 (GZIPOutputStream): Likewise.
35 * java/util/zip/Inflater.java
36 (setInput): Merged formating with GNU classpath.
37 * java/util/zip/InflaterInputStream.java
38 (InflaterInputStream): Increase buffer size to 4k.
39 (fill): Throw exception if stream ends early.
40 (read): Merged endless-loop with GNU classpath.
41 (skip): Increase buffer size to 2k.
43 2004-07-30 Michael Koch <konqueror@gmx.de>
45 * gnu/java/awt/EmbeddedWindow.java
46 (addNotify): Use AccessController to allow execution of privileged
49 2004-07-29 Michael Koch <konqueror@gmx.de>
51 * gnu/java/lang/MainThread.java:
52 Explicitely import used classes.
53 (args): Make it type String[].
55 2004-07-29 Dalibor Topic <robilad@kaffe.org>
57 * gnu/java/awt/ComponentDataBlitOp.java,
58 gnu/java/beans/ExplicitBeanInfo.java,
59 gnu/java/beans/IntrospectionIncubator.java,
60 gnu/java/beans/editors/ColorEditor.java,
61 gnu/java/beans/editors/FontEditor.java,
62 gnu/java/beans/editors/NativeBooleanEditor.java,
63 gnu/java/beans/editors/NativeByteEditor.java,
64 gnu/java/beans/editors/NativeDoubleEditor.java,
65 gnu/java/beans/editors/NativeFloatEditor.java,
66 gnu/java/beans/editors/NativeIntEditor.java,
67 gnu/java/beans/editors/NativeLongEditor.java,
68 gnu/java/beans/editors/NativeShortEditor.java,
69 gnu/java/beans/editors/StringEditor.java,
70 gnu/java/io/ClassLoaderObjectInputStream.java,
71 gnu/java/io/decode/Decoder.java,
72 gnu/java/io/encode/Encoder.java,
73 gnu/java/lang/ClassHelper.java,
74 gnu/java/locale/Calendar.java,
75 gnu/java/locale/Calendar_de.java,
76 gnu/java/locale/Calendar_en.java,
77 gnu/java/locale/Calendar_nl.java,
78 gnu/java/locale/LocaleInformation_de.java,
79 gnu/java/locale/LocaleInformation_en.java,
80 gnu/java/locale/LocaleInformation_nl.java:
83 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
85 * README: Remove obsolete info. Update bug URL.
87 * NEWS: Updated with news up to GCC 3.4 release.
89 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
91 * gnu/java/security/action/GetPropertyAction.java (setParameters):
92 Renamed from 'setName'. New 2-argument form with default value.
93 (run): Pass default 'value' parameter to System.getProperty().
94 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
96 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
99 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
101 * configure.in: Check for minimum GTK version 2.4 requirement.
102 * configure: Rebuilt.
104 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
106 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
107 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
109 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
111 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
112 address. Reduce sleep times. Synchronize with target threads before
113 attempting to interrupt them. Don't try to calibrate yeild count,
114 instead, always loop for a fixed time.
115 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
116 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
117 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
118 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
119 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
120 * testsuite/libjava.lang/pr179.java: Likewise.
121 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
122 time. Remove upper bounds check on sleep time.
124 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
126 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
127 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
129 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
131 * java/io/File.java (toURI): Throw RuntimeException, not
133 * java/lang/Runtime.java (exit): Qualify static sleep() call with
134 class name, not instance.
136 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
138 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
139 and gnu/java/security/action/SetAccessibleAction.java.
140 * Makefile.in: Rebuilt.
142 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
144 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
145 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
147 (DECLARE_PRIM_TYPE): Don't declare array vtables.
148 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
149 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
151 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
153 * Makefile.am: Replace jar, rmic and rmiregistry references with
154 gjar, grmic and grmiregistry.
155 * configure.in: Likewise.
156 * Makefile.in: Regenerate.
157 * configure: Likewise.
158 * gcj/Makefile.in: Likewise.
159 * include/Makefile.in: Likewise.
160 * testsuite/Makefile.in: Likewise.
162 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
164 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
165 for privileged getProperty calls.
166 * java/io/ObjectOutputStream.java (getField): No longer static. Use
167 SetAccessibleAction instead of anonymous class for doPrivileged call.
168 (getMethod): Likewise.
169 (setAccessible): New field. PrivilegedAction object to use when
170 calling setAccessible.
171 * java/io/ObjectStreamClass.java (calculateOffsets): Use
172 SetAccessibleAction instead of anonymous class for diPrivileged call.
173 (setFields): Likewise.
174 (getClassUID): Likewise.
175 (findMethod): Likewise.
176 * gnu/java/security/action/GetPropertyAction.java: New class.
177 * gnu/java/security/action/SetAccessibleAction.java: New class.
179 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
181 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
183 * testsuite/libjava.lang/Serialization.java: New test.
184 * testsuite/libjava.lang/Serialization.out: New.
186 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
188 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
189 missed in last commit.
191 2004-07-23 Mark Wielaard <mark@klomp.org>
193 * java/lang/System.java (static): Set http.agent system property when
195 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
196 from system property inside AccessController.doPrivileged() call.
197 (proxyPort): Made package private.
198 (proxyInUse): Likewise.
199 (proxyHost): Likewise.
200 (userAgent): Likewise.
202 2004-07-23 Mark Wielaard <mark@klomp.org>
204 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
207 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
209 * Makefile.am (ordinary_java_source_files): Add
210 DefaultContentHandlerFactory.java.
211 * Makefile.in: Rebuilt.
212 * java/net/URLConnection.java (defaultFactory): New field.
214 (getContentHandler): Renamed from 'setContentHandler'. Try
215 defaultFactory after user-set factory, if any. Search for content
216 handler implementations in gnu.java.net.content, not gnu.gcj.content.
217 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
219 (getLastModified): Implemented.
220 (getPermission): Create file permission here, instead of in
222 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
224 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
226 (getLastModified): Implemented.
227 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
228 Default implementation.
229 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
230 Implement using GdkPixbufDecoder.
232 2004-07-21 Michael Koch <konqueror@gmx.de>
234 * javax/swing/JTextArea.java
235 (setLineWrap): Fire property change event after new value is set.
236 (setTabSize): Likewise.
238 2004-07-21 Michael Koch <konqueror@gmx.de>
240 * javax/swing/JTable.java
241 (autoCreateColumnsFromModel): New field.
242 (autoResizeMode): Likewise.
243 (cellEditor): Likewise.
244 (cellSelectionEnabled): Likewise.
245 (columnModel): Likewise.
246 (dataModel): Likewise.
247 (defaultEditorsByColumnClass): Likewise.
248 (defaultRenderersByColumnClass): Likewise.
249 (editingColumn): Likewise.
250 (editingRow): Likewise.
251 (gridColor): Likewise.
252 (preferredViewportSize): Likewise.
253 (rowHeight): Likewise.
254 (rowMargin): Likewise.
255 (rowSelectionAllowed): Likewise.
256 (selectionBackground): Likewise.
257 (selectionForeground): Likewise.
258 (selectionModel): Likewise.
259 (showHorizontalLines): Likewise.
260 (showVerticalLines): Likewise.
261 (tableHeader): Likewise.
262 (JTable): Implemented.
263 (getColumnModel): Likewise.
264 (getSelectedRow): Likewise.
265 (getSelectionModel): Likewise.
266 (setModel): Likewise.
267 (setSelectionModel): Likewise.
268 (createScrollPaneForTable): New method.
269 (createDefaultDataModel): Likewise.
270 (createDefaultListSelectionModel): Likewise.
271 (getModel): Likewise.
272 (getTableHeader): Likewise.
273 (setTableHeader): Likewise.
274 (getColumnSelectionAllowed): Likewise.
275 (setColumnSelectionAllowed): Likewise.
276 (getRowSelectionAllowed): Likewise.
277 (setRowSelectionAllowed): Likewise.
278 (getAutoResizeMode): Likewise.
279 (setAutoResizeMode): Likewise.
280 (getColumnCount): Likewise.
281 (getRowCount): Likewise.
282 (getCellRenderer): Likewise.
283 * javax/swing/JTree.java
284 (cellRenderer): New field.
285 (editable): Likewise.
286 (rootVisible): Likewise.
287 (showsRootHandles): Likewise.
288 (getModel): New method.
289 (setModel): Likewise.
290 (isEditable): Likewise.
291 (setEditable): Likewise.
292 (isRootVisbile): Likewise.
293 (setRootVisible): Likewise.
294 (getShowsRootHandles): Likewise.
295 (setShowRootHandles): Likewise.
296 (getCellRenderer): Likewise.
297 (setCellRenderer): Likewise.
299 2004-07-21 Michael Koch <konqueror@gmx.de>
301 * javax/swing/JFormattedTextField.java
302 (setDocument): Implemented.
303 * javax/swing/JRootPane.java:
305 * javax/swing/JTable.java
306 (getDefaultRenderer): New method.
307 * javax/swing/JTextField.java
309 (getPreferredSize): Likewise.
310 * javax/swing/JToggleButton.java
311 (getAccessibleContext): Fix javadoc.
312 * javax/swing/JTree.java:
314 * javax/swing/JViewport.java:
317 2004-07-21 David Jee <djee@redhat.com>
319 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
320 Collect all native method declaration at the top.
321 (create): Set the filename filter if necessary.
322 (setDirectory): Call nativeSetDirectory().
323 (setFilenameFilter): Implement.
324 (filenameFilterCallback): New method.
325 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
326 (create): Configure dialog to show hidden files.
327 (filenameFilterCallback): New function.
328 (nativeSetFilenameFilter): New function.
329 (nativeSetDirectory): New function.
331 2004-07-21 Kim Ho <kho@redhat.com>
333 * javax/swing/plaf/basic/BasicSliderUI.java:
335 (paintTrack): Fill the track before painting
338 2004-07-21 Graydon Hoare <graydon@redhat.com>
340 patch from Roman Kennke <roman@ontographics.com>
341 * javax/swing/Spring.java: New file.
342 * javax/swing/SpringLayout.java: New file.
343 * Makefile.am: Add new files.
344 * Makefile.in: Regenerate.
346 2004-07-21 Graydon Hoare <graydon@redhat.com>
348 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
349 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
350 * javax/swing/ScrollPaneLayout.java: Likewise.
352 2004-07-21 Kim Ho <kho@redhat.com>
354 * javax/swing/DefaultDesktopManager.java:
355 (findMinimum): Removed.
356 (resizeFrame): Trust the UI to pass valid
358 * javax/swing/JOptionPane.java:
359 Implemented showInternalXXXDialog methods.
360 (startModal): New method.
361 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
362 (BorderListener::mouseDragged): Verify that the new
363 bounds are valid before passing them to the DesktopManager.
364 (preferredLayoutSize): Delegate
366 (minimumLayoutSize): Ditto.
367 (getSize): New method.
368 (GlassPaneDispatcher): Reimplemented by copying
369 a stripped down LightweightDispatcher from Container.
370 (getMinimumSize): Call minimumLayoutSize.
371 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
373 (mousePressed): Add ability to properly close
375 * javax/swing/plaf/basic/BasicToolBarUI.java:
376 (DragWindow): Set owner for DragWindow.
378 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
380 * java/awt/image/ShortLookupTable.java: New file.
381 * java/awt/image/ByteLookupTable.java: New file.
382 * Makefile.am: Added new files.
383 * Makefile.in: Regenerated.
385 2004-07-21 David Jee <djee@redhat.com>
387 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
388 (create(GtkContainerPeer)): New native method.
389 (create()): Call native create(), passing in the parent frame
390 as the paramter. Natively set the current file and directory.
391 (setFile): Construct an absolute filename before passing it to
393 (nativeGetDirectory): New method.
394 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
395 (window_closed): Removed.
396 (ok_clicked): Likewise.
397 (cancel_clicked): Likewise.
398 (handle_response): New method.
399 (create): Use GtkFileChooserDialog.
400 (connectSignals): Connect to handle_response.
401 (nativeGetDirectory): New method.
402 (nativeSetFile): Use GtkFileChooserDialog.
404 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
406 * java/awt/image/LookupTable.java: New file.
407 * Makefile.am: Added new file.
408 * Makefile.in: Regenerated.
410 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
412 * java/awt/image/Kernel.java: New file.
413 * Makefile.am: Added new file.
414 * Makefile.in: Regenerated.
416 2004-07-21 Olga Rodimina <rodimina@redhat.com>
418 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
419 * javax/swing/JMenu.java: Likewise.
420 * javax/swing/JMenuBar.java: Likewise.
421 (MARGIN_CHANGED_PROPERTY): New property.
422 (setMargin): Implemented.
423 * javax/swing/JMenuItem.java: Fixed javadocs.
424 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
425 (LABEL_CHANGED_PROPERTY): New property.
426 (add): changed to use createActionComponent.
427 (createActionComponent): Implemented.
428 (setLabel): Fire PropertyChangeEvent if label property
430 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
431 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
432 (ContainerHandler): Repaint if margin property has changed.
433 * javax/swing/plaf/basic/BasicMenuItemUI.java:
434 (installUI): Call installComponents().
435 (uninstallUI): Call uinstallComponents().
436 * javax/swing/plaf/basic/BasicMenuUI.java:
438 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
441 2004-07-21 Kim Ho <kho@redhat.com>
443 * javax/swing/plaf/basic/BasicToolBarUI.java:
444 (DragWindow): Use the right constructor.
446 2004-07-21 Kim Ho <kho@redhat.com>
448 * javax/swing/JToolBar.java:
449 (layoutContainer): Use getComponents.
450 * javax/swing/plaf/basic/BasicToolBarUI.java:
451 (DragWindow): Don't use SwingUtilities'
453 (ToolBarDialog): ditto.
455 2004-07-21 Kim Ho <kho@redhat.com>
457 * javax/swing/JRootPane.java:
459 (layoutContainer): Set the glasspane's size to
460 be the same as the content pane.
461 (createGlassPane): Set opaque property to false.
463 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
465 * java/awt/Component.java (requestFocus()): Don't handle Panels
467 (requestFocus(boolean)): Likewise.
468 (requestFocusInWindow(boolean)): Likewise.
469 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
470 Set GTK_CAN_FOCUS flag.
472 2004-07-21 Kim Ho <kho@redhat.com>
474 * Makefile.am: Added new file.
475 * Makefile.in: Regenerated.
476 * gcj/Makefile.in: Regenerated.
477 * include/Makefile.in: Regenerated.
478 * javax/swing/AbstractButton.java:
479 Add rollOverEnabled property.
480 (setRolloverEnabled): Use new property.
481 (isRolloverEnabled): Use new property.
482 * javax/swing/JTabbedPane.java:
483 (setComponent): Remove useless JTabbedPane.this.
484 * javax/swing/JToolBar.java: Finish implementation.
485 * javax/swing/plaf/basic/BasicArrowButton.java:
486 (paint): Moved border painting to a border.
487 * javax/swing/plaf/basic/BasicLookAndFeel.java:
488 Change JToolBar look and feel defaults.
489 * javax/swing/plaf/basic/BasicOptionPaneUI.java
490 (actionPerformed): Return Integer index instead of name.
491 (addButtonComponents): Check to see if component is
493 (createMessageArea): Don't use components that are not
495 (getIconForType): Use temporary icons.
496 * javax/swing/plaf/basic/BasicSliderUI.java:
497 (mousePressed): Do not return if it's on thumb.
498 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
499 (paintMinorTickForVertSlider): ditto.
500 (paintMajorTickForHorizSlider): ditto.
501 (paintMajorTickForVertSlider): ditto.
502 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
503 Add a border around the SplitPaneDivider.
504 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
506 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
507 New file. Implemented.
508 * javax/swing/plaf/basic/BasicToolBarUI.java:
510 * testsuite/Makefile.in: Regenerated.
512 2004-07-21 Graydon Hoare <graydon@redhat.com>
514 * javax/swing/Timer.java (run): Queue events each time cycle.
516 2004-07-21 David Jee <djee@redhat.com>
518 * gnu/java/awt/peer/gtk/GtkImagePainter.java
519 (imageComplete): Call image.imageComplete().
520 * java/awt/image/MemoryImageSource.java:
521 Reimplement consumers as a Vector instead of a Hashtable. This is
522 because enumeration on a Hashtable is not thread-safe.
523 (addConsumer): Adapt to Vector consumers.
524 (isConsumer): Adapt to Vector consumers.
525 (removeConsumer): Adapt to Vector consumers.
526 (startProduction): Adapt to Vector consumers. Call imageComplete()
527 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
528 (newPixels): Adapt to Vector consumers.
529 (sendPicture): Set the color model of the image consumer.
530 (newPixels(IIII)): Adapt to Vector consumers.
531 (newPixels(IIIIB)): Adapt to Vector consumers.
533 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
535 * java/awt/Component.java (deliverEvent): Implement.
536 (postEvent): Implement.
537 (handleEvent): Implement.
538 (translateEvent): New method.
539 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
540 * java/awt/Container.java (deliverEvent): Implement.
541 * java/awt/Event.java (paramString): Fix formatting.
542 * java/awt/Font.java (toString): Likewise.
543 * java/awt/Window.java (postEvent): Implement.
545 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
547 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
548 Set window's focus owner upon receiving a FOCUS_LOST event.
549 * java/awt/Window.java (Window()): Refocus the previously
550 focused component within the window when the window regains the
552 (setFocusOwner): New method.
553 * java/awt/Component.java (requestFocus): Add FIXME.
555 * libgcj.pc.in: Remove library flags.
557 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
559 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
561 * java/awt/Component.java (requestFocus()): Handle Panel
562 specially. Post FOCUS_LOST event on opposite component.
563 (requestFocus(boolean)): Likewise.
564 (requestFocusInWindow(boolean)): Likewise.
565 (paramString): Reorder dimension fields.
566 * java/awt/Container.java (paramString): Fix string format.
567 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
568 Handle FOCUS_LOST events. Don't handle Windows specially. Only
569 process key events if the focus owner is non-null.
570 (dispatchKeyEvent): Likewise.
571 * java/awt/Frame.java (paramString): Fix formatting.
572 (generateName): New method.
573 (getUniqueLong): Likewise.
574 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
575 the temporary focus owner is null. If so, return the permanent
577 * java/awt/Panel.java (generateName): New method.
578 (getUniqueLong): Likewise.
579 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
580 signal handling to make callbacks more specific.
582 2004-07-21 Michael Koch <konqueror@gmx.de>
584 * javax/swing/text/Position.java
587 2004-07-21 Michael Koch <konqueror@gmx.de>
589 * javax/swing/LookAndFeel.java
590 (provideErrorFeedback): New method.
592 2004-07-21 Michael Koch <konqueror@gmx.de>
594 * javax/swing/JTextArea.java
595 (tabSize): New field.
596 (getTabSize): New method.
597 (setTabSize): Likewise.
599 2004-07-21 Michael Koch <konqueror@gmx.de>
601 * javax/swing/ActionMap.java:
602 Fixed javadocs all over.
603 (serialVersionUID): Made private.
604 (parent): Don't explicitely initialize with default value.
606 (keys): Reimplemented.
608 (convertSet): Removed.
609 * javax/swing/ComponentInputMap.java:
610 Fixed javadocs all over.
611 (ComponentInputMap): Implemented.
615 (SetParent): Likewise.
616 (getComponent): Likewise.
617 * javax/swing/InputMap.java:
618 Fixed javadocs all over.
619 (serialVersionUID): Made private.
620 (parent): Don't explicitely initialize with default value.
622 (keys): Reimplemented.
624 (convertSet): Removed.
626 2004-07-21 Michael Koch <konqueror@gmx.de>
628 * javax/swing/ActionMap.java,
629 javax/swing/ComponentInputMap.java,
630 javax/swing/InputMap.java,
631 javax/swing/table/DefaultTableColumnModel.java,
632 javax/swing/table/TableColumn.java,
633 javax/swing/table/TableColumnModel.java,
634 javax/swing/table/TableModel.java,
635 javax/swing/text/AbstractDocument.java,
636 javax/swing/text/TextAction.java:
639 2004-07-21 Graydon Hoare <graydon@redhat.com>
641 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
642 Make method non-static.
643 * javax/swing/AbstractButton.java:
644 Rename fields to match property names where possible.
645 (iconTextGap): New property.
646 * javax/swing/JCheckBox.java: Match AbstractButton changes.
647 (init) New method, call from after various constructors.
648 * javax/swing/JComponent.java (revalidate):
649 Invalidate before queueing repair.
650 * javax/swing/JList.java (getPreferredScrollableViewportSize):
651 Reimplement in terms of visibleRowCount property.
652 * javax/swing/JMenuButton.java: Match AbstractButton changes.
653 * javax/swing/JScrollPane.java (createScrollListener):
654 Remove tracing chatter.
655 * javax/swing/JToggleButton.java: Match AbstractButton changes.
656 * javax/swing/RepaintManager.java (addInvalidComponent):
658 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
660 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
661 Mimic sun behavior on top left/right positioning.
662 * javax/swing/ViewportLayout.java (preferredLayoutSize):
663 Remove mistaken use of preferredScrollableViewportSize here.
664 (layoutContainer): Use view's preferred size as basis.
665 * javax/swing/plaf/basic/BasicButtonUI.java:
666 Set, get, and use textIconGap property.
667 (paint) Paint text returned from layout (with ellipsis).
668 * javax/swing/plaf/basic/BasicListUI.java:
669 Remove tracing chatter, correct various minor calculations.
670 (getCellBounds): Update layout state before calculating.
671 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
672 Use margin default similar to sun's.
673 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
674 (createIncreaseIcon): Center icon, minimize margins.
675 (createDecreaseIcon): Likewise.
676 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
678 (installUI): Call it.
679 (uninstallDefaults): Implement.
680 (uninstallUI): Call it.
681 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
682 Call existing Window constructor.
683 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
684 Set clip before painting.
686 2004-07-21 Olga Rodimina <rodimina@redhat.com>
688 * javax/swing/JMenuItem.java:
689 (processMouseEvent): Reimplemented to deal with
691 (createMenuDragMouseEvent): New private helper method.
692 Creates MenuDragMouseEvent.
693 * javax/swing/MenuSelectionManager.java
694 (componentForPoint): Implemented.
695 (isComponentPartOfCurrentMenu): Made public.
696 (processMouseEvent): Reimplemented to deal with
698 (setSelectedPath): Corrected small mistake that caused
699 path to be set incorrectly.
700 (getPath): If given component is JMenu then also add this
701 menu's popup menu to the selected path.
702 * javax/swing/plaf/basic/BasicMenuItemUI.java:
704 (getPreferredSize): Call getPreferredMenuItemSize().
705 (getPreferredItemSize): Moved code from getPreferredSize to here.
706 (installListeners): Install MouseMotionListeners.
707 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
708 if mouse wasn't released in the bounds of this menu item.
709 (MenuDragMouseHandler): Implemented.
710 * javax/swing/plaf/basic/BasicMenuUI.java:
711 (installListeners): Install MouseMotionListener and
712 MenuDrageMouseListener.
713 (MenuDragMouseHandler): Implemented.
714 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
715 (uninstallListeners): Implemented.
717 2004-07-21 Michael Koch <konqueror@gmx.de>
719 * javax/swing/JCheckBox.java: Reformated.
720 (JCheckBox): Fixed all constructors.
721 (isBorderPaintedFlat): New method.
722 (setBorderPaintedFlat): New method.
723 * javax/swing/JEditorPane.java
724 (createEditorKitForContentType): Made public.
725 (scrollToReference): Likewise.
726 * javax/swing/JTextArea.java
727 (setLineWrap): Fire property change.
728 * javax/swing/JToggleButton.java
729 (JToggleButton): New constructor.
730 (JToggleButton): Simplified.
731 * javax/swing/text/AttributeSet.java
732 (FontAttribute): Renamed from FontCharacterAttribute.
733 * javax/swing/text/JTextComponent.java
734 (KeyBinBinding): Added javadoc.
735 (JTextComponent): Likewise.
736 (getAccessibleContext): Fixed javadoc.
737 * javax/swing/text/View.java
738 (View): Added javadoc.
739 * javax/swing/text/TabableView.java: New file.
740 * Makefile.am: Added javax/swing/text/TabableView.java.
741 * Makefile.in: Regenerated.
743 2004-07-21 Graydon Hoare <graydon@redhat.com>
745 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
746 * gnu/java/awt/peer/gtk/GtkToolkit.java
747 (GtkErrorImage): New helper class.
748 (bufferedImageOrError): New helper method.
749 (createImage): Use it.
751 2004-07-21 David Jee <djee@redhat.com>
753 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
754 (setCaretPosition): Scroll the text view so the new caret position
755 is visible on screen.
757 2004-07-21 David Jee <djee@redhat.com>
759 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
760 (setBounds): Do not validate awtComponent here.
761 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
762 (getPreferredSize): New method.
763 * java/awt/ScrollPane.java
764 (ScrollPane): Set default size to 100x100.
765 (addNotify): If child is not a Panel, wrap it with a new Panel.
766 (paramString): Implement.
768 2004-07-21 Olga Rodimina <rodimina@redhat.com>
770 * javax/swing/JMenu.java:
771 (setSelected): Display popup menu only if this menu
772 is showing on the screen.
773 * javax/swing/JPopupMenu.java:
774 (processMouseEvent): Added comment.
775 (processKeyEvent): Likewise.
776 * javax/swing/MenuSelectionManager.java:
777 (clearSelectedPath): Only fireStateChanged() after
778 selected path was changed, not before.
779 (setSelectedPath): Likewise.
780 * javax/swing/plaf/basic/BasicMenuItemUI.java:
781 (paintMenuItem): Corrected position of menu item's
783 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
784 (installUI): Correct setDefaultLightWeightPopupEnabled call.
785 (popupMenuCanceled): Reimplemented.
786 (popupMenuWillBecomeVisible): Select first menu item by default
787 when displaying free floating popup menus.
788 (TopWindowListener): Reimplemented.
790 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
792 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
793 Panel from being painted twice when it is first shown.
795 2004-07-21 Olga Rodimina <rodimina@redhat.com>
797 * java/awt/Window.java: Reverted changes from my
798 previous patch for creating window without an owner.
799 * javax/swing/SwingUtilities.java:
800 (SwingUtilities.OwnerFrame): made static.
801 (OwnerFrame.setVisible): New method. Overridden with
802 empty implementation.
803 (OwnerFrame.isShowing): New method. Ovverridden
804 to return always true.
806 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
808 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
809 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
810 (GtkComponentPeer): Remove temporary try/catch block.
811 (setVisible): Call show and hide.
814 (getArgs): Don't add "visible" argument.
815 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
816 (property_notify_predicate): Return Bool instead of int.
817 (find_layout): New function.
818 (connectJObject): Call find_layout.
819 (connectSignals): Likewise.
820 (moveLayout): Likewise.
821 (gtkLayoutSetVisible): Likewise.
823 2004-07-21 Mark Wielaard <mark@klomp.org>
825 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
826 on notifier object before calling notifyAll().
828 2004-07-21 Olga Rodimina <rodimina@redhat.com>
830 * java/awt/Window.java: Changed constructors to use new
831 method that is described below. Constructors call this
832 methods only if newly created window should have an owner.
833 (setWindowOwner): New method. Implementation for
834 this method is moved from this(owner,configuration).
835 * javax/swing/JWindow.java:
836 (JWindow): Reimplement to use SwingUtilities.ownerFrame
838 * javax/swing/SwingUtilities.java:
839 (ownerFrame): Change type of this field to OwnerFrame.
840 (getOwnerFrame): Changed to return object of type OwnerFrame.
841 (SwingUtilities.OwnerFrame): New class. Represents owner
842 of a Window that is not provided with one.
844 2004-07-21 Olga Rodimina <rodimina@redhat.com>
846 * javax/swing/AbstractButton.java:
847 (configurePropertiesFromAction): Set action command
848 to button's text by default if action command is not
849 explicitely specified.
850 * javax/swing/JMenu.java: Remove unnecessary listener
851 and methods relevant to it.
852 (setSelected): Reimplemented.
853 (menuSelectionChanged): Moved most part of implementation to
854 setSelected() and call it instead.
855 * javax/swing/JMenuItem.java:
856 (init): Comment out statement that sets paint_border to false.
857 (configurePropertiesFromAction): Do not set accelerator
859 (menuSelectionChanged): Change selected index in the selection
860 model of menu item's parent.
861 * javax/swing/JPopupMenu.java:
862 (remove): Set constraints.fill field to GridBagConstraints.BOTH
863 instead of GridBagConstraints.HORIZONTAL.
865 (createActionChangeListener): Implemented.
866 (setVisible): Correct location of HeavyWeightMenu and
867 don't firePopupMenuCanceled().
868 (menuSelectionChanged): Implemented.
869 (ActionChangeListener): New Listener. Implemented.
870 * javax/swing/plaf/basic/BasicMenuBarUI.java:
871 (BasicMenuBarUI.ContainerHandler): Implemented.
872 * javax/swing/plaf/basic/BasicMenuItemUI.java:
873 (paintMenuItem): Uncommented out code that paints
874 icon, now that icons are working properly.
875 (PropertyChangeListener): Implemented.
876 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
878 (topWindowListener): New field.
879 (Constructor): initialize topWindowListener.
880 (BasicPopupMenuUI.TopWindowListener): Implemented.
881 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
882 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
885 2004-07-21 Michael Koch <konqueror@gmx.de>
887 * javax/swing/plaf/basic/BasicButtonUI.java
888 (paintFocus): Fixed method signature.
889 (paintButtonPressed): Likewise.
890 (paintButtonNormal): Likewise.
891 (paintText): New method.
892 * javax/swing/plaf/basic/BasicLabelUI.java
893 (paint): Re-indented.
894 * javax/swing/plaf/basic/BasicTextUI.java
895 (installUI): Set parent textComponent to opaque.
896 * javax/swing/text/DefaultHighlighter.java
897 (checkPositions): New helper method.
898 (addHighlight): Throws BadLocationException, check positions.
899 (changeHighlight): Likewise.
900 * javax/swing/text/EditorKit.java
901 (EditorKit): Implements Serializable.
902 * javax/swing/text/JTextComponent.java
903 (getUI): Added javadoc.
905 (upadteUI): Added javadoc, don't revalidate and repaint.
907 2004-07-21 David Jee <djee@redhat.com>
909 * java/awt/GridBagLayout.java
910 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
911 * javax/swing/AbstractButton.java
913 * javax/swing/RepaintManager.java
914 (addInvalidComponent): Find the first ancestor that isValidateRoot().
916 2004-07-21 Michael Koch <konqueror@gmx.de>
918 * javax/swing/JFormattedTextField.java
920 (JFormattedTextField): Implemented.
921 (getValue): Likewise.
922 (setValue): Likewise.
923 * javax/swing/LookAndFeel.java
924 (getSupportsWindowDecorations): New method.
925 * javax/swing/UIDefaults.java:
926 Use java.beans.PropertyChangeSupport instead of doing all ourself.
927 (addPropertyChangeListener): Made public.
928 (addResourceBundle): Likewise.
929 (removeResourceBundle): Likewise.
930 (setDefaultLocale): Likewise.
931 * javax/swing/plaf/basic/BasicRootPaneUI.java
932 (BasicRootPaneUI): Implements PropertyChangeListener.
933 (propertyChange): New method.
934 * javax/swing/plaf/basic/BasicTextUI.java
935 (BasicHighlighter): New inner class.
936 (createHighlighter): New method.
937 * javax/swing/plaf/basic/BasicToolBarUI.java
938 (DragWindow): Extends java.awt.Window.
939 * javax/swing/text/JTextComponent.java
940 (getDocument): Removed debug output.
941 * javax/swing/plaf/basic/BasicTextFieldUI.java,
942 javax/swing/text/DefaultHighlighter.java,
943 javax/swing/text/FieldView.java,
944 javax/swing/text/PlainView.java: New files.
945 * Makefile.am: Added new files.
946 * Makefile.in: Regenerated.
948 2004-07-21 Michael Koch <konqueror@gmx.de>
950 * javax/swing/JEditorPane.java
951 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
952 (createEditorKitForContentType): Likewise.
953 * javax/swing/text/DefaultEditorKit.java
954 (serialVersionUID): Added constant field.
955 (EndOfLineStringPropery): Fixed typo.
956 (DefaultEditorKit): New constructor.
957 * javax/swing/text/Segment.java:
958 Import java.text.CharacterIterator.
959 * javax/swing/text/CharacterIterator.java,
960 javax/swing/text/PlainEditorKit.java: Removed.
961 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
962 javax/swing/text/PlainEditorKit.java.
963 * Makefile.in: Regenerated.
965 2004-07-21 Michael Koch <konqueror@gmx.de>
967 * javax/swing/JButton.java,
968 javax/swing/text/DefaultEditorKit.java,
969 javax/swing/text/EditorKit.java,
970 javax/swing/text/Segment.java,
971 javax/swing/text/StyledEditorKit.java:
974 2004-07-21 Michael Koch <konqueror@gmx.de>
976 * javax/swing/ImageIcon.java
978 (description): Renamed from descr.
979 (ImageIcon): Added missing constructors.
980 (setParent): Removed.
981 (setImageObserver): New method.
982 (getImageObserver): New method.
983 (paintIcon): Handle observer = null.
984 * javax/swing/JButton.java
985 (removeNotify): Fixed javadoc.
986 (updateUI): Simplified.
987 * javax/swing/JRootPane.java
988 (serialVersionUID): New constant field.
989 * javax/swing/UIManager.java:
990 Fixed javadocs all over.
991 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
992 * javax/swing/text/AbstractDocument.java
993 (createPosition): Throws BadLocationException.
996 * javax/swing/text/ComponentView.java
997 (modelToView): Likewise.
998 * javax/swing/text/DefaultEditorKit.java:
999 Made all public methods public.
1000 (read): Throws BadLocationException and IOException.
1002 * javax/swing/text/EditorKit.java:
1003 Made all public methods public.
1004 (serialVersionUID): New constant field.
1005 (clone): New method.
1006 (read): Throws BadLocationException and IOException.
1008 * javax/swing/text/Segment.java
1009 (array): Made public.
1012 (Segment): New constructors.
1013 (clone): Reimplemented.
1014 * javax/swing/text/StyledEditorKit.java
1015 (serialVersionUID): New constant field.
1017 2004-07-21 Graydon Hoare <graydon@redhat.com>
1019 * java/awt/image/BufferedImage.java
1020 (getSource): Implement.
1021 * javax/swing/ImageIcon.java
1022 (ImageIcon): Implement ctor.
1023 * javax/swing/ScrollPaneLayout.java
1024 (preferredLayoutSize): Be more careful about nulls.
1026 2004-07-21 Michael Koch <konqueror@gmx.de>
1028 * javax/swing/text/AttributeSet.java
1029 (CharacterAttribute): New interface
1030 (ColorAttribute): Likewise.
1031 (FontCharacterAttribute): Likewise.
1032 (ParagraphAttribute): Likewise.
1033 * javax/swing/text/DefaultCaret.java
1034 (moveCaret): New method.
1035 (positionCaret): Likewise.
1036 (repaint): Made protected.
1037 * javax/swing/text/JTextComponent.java
1038 (KeyBinding): Made it static.
1039 * javax/swing/text/View.java
1040 (getContainer): Honor parent == null.
1042 2004-07-21 Michael Koch <konqueror@gmx.de>
1044 * javax/swing/text/AbstractDocument.java:
1047 2004-07-21 Michael Koch <konqueror@gmx.de>
1049 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1050 Import javax.swing.UIManager explicitely.
1051 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1052 (ScrollingButton): Made it static.
1054 2004-07-21 Michael Koch <konqueror@gmx.de>
1056 * javax/swing/UIDefaults.java
1057 (ActiveValue): Made public.
1058 (LazyValue): Likewise.
1059 * javax/swing/plaf/basic/BasicTextUI.java
1060 (RootView): Reintroduced.
1062 (rootView): New field.
1063 (installUI): Create document if needed, initialize rootView.
1064 (uninstallUI): Hanle rootView.
1066 (getRootView): Likewise.
1067 (setView): Likewise.
1068 * javax/swing/text/DefaultCaret.java:
1069 Renamed all "evt" variables to "event".
1071 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1073 * libgcj.spec.in: Add -l-java-util-logging.
1075 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1077 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1078 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1079 gtk-xft-dpi can no calculate the right value.
1080 (dpi_changed_cb): Mark *pspec as unsused.
1082 2004-07-21 David Jee <djee@redhat.com>
1084 * java/awt/Component.java
1085 (move): Delegate to setBounds().
1087 (reshape): Fix so it repaints parent and self only when necessary.
1089 2004-07-21 David Jee <djee@redhat.com>
1091 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1092 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1093 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1094 (setVisible): Likewise.
1097 (getArgs): Likewise.
1098 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1099 (property_notify_predicate): Likewise.
1100 (find_layout): Likewise.
1101 (connectJObject): Likewise.
1102 (connectSignals): Likewise.
1103 (moveLayout): Likewise.
1104 (gtkLayoutSetVisible): Likewise.
1106 2004-07-21 Graydon Hoare <graydon@redhat.com>
1112 (rmiregistry_LDADD): Add lib-java-util-logging.la
1113 * Makefile.in: Regenerate.
1115 2004-07-21 Michael Koch <konqueror@gmx.de>
1117 * javax/swing/text/AbstractDocument.java
1118 (replace): Dont use protected method of java.util.Vector directly.
1120 2004-07-21 Michael Koch <konqueror@gmx.de>
1122 * javax/swing/plaf/basic/BasicTextUI.java
1123 (installUI): Call specialized install methods.
1124 (installDefaults): New method.
1125 (installListeners): Likewise.
1126 (installKeyboardActions): Likewise.
1127 (uninstallUI): Likewise.
1128 (uninstallDefaults): New method.
1129 (uninstallListeners): Likewise.
1130 (uninstallKeyboardActions): Likewise.
1131 (getPropertyPrefix): New abstract method.
1132 (paint): Made final, just call paintSafely().
1133 (paintSavely): New method.
1134 (paintBackground): Likewise.
1135 (getVisibleEditorRect): Likewise.
1136 * javax/swing/text/LayeredHighlighter.java,
1137 javax/swing/text/TabExpander.java: New files.
1138 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1139 and javax/swing/text/TabExpander.java.
1140 * Makefile.in: Regenerated.
1142 2004-07-21 Michael Koch <konqueror@gmx.de>
1144 * javax/swing/plaf/basic/BasicTextUI.java
1145 (BasicTextUI): Made abstract.
1146 (BasicCaret): New inner class.
1147 (view): Don't explicitely initialize with "null".
1148 (textComponent): New field.
1149 (textColor): Removed.
1150 (disabledTextColor): Removed.
1151 (normalBackgroundColor): Removed.
1152 (RootView): Removed commented out inner class.
1153 (createUI): Removed.
1154 (createCaret): New method.
1155 (getComponent): Likewise.
1156 (installUI): Initialize textComponent only.
1157 (getPreferredSize): Use installed JTextComponent.
1158 (setView): New method.
1160 * javax/swing/text/JTextComponent.java
1161 (highlighter): New field.
1162 (caretColor): Likewise.
1163 (disabledTextColor): Likewise.
1164 (seletedTextColor): Likewise.
1165 (selectionColor): Likewise.
1166 (setUI): New method.
1167 (getCaretColor): Likewise.
1168 (setCaretColor): Likewise.
1169 (getDisabledColor): Likewise.
1170 (setDisabledColor): Likewise.
1171 (getSelectedTextColor): Likewise.
1172 (setSelectedTextColor): Likewise.
1173 (getSelectionColor): Likewise.
1174 (setSelectionColor): Likewise.
1175 (getHighlighter): Likewise.
1176 (setHighlighter): Likewise.
1177 (replaceSelection): Likewise.
1179 2004-07-21 Michael Koch <konqueror@gmx.de>
1181 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1182 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1183 * javax/swing/plaf/basic/BasicToolBarUI.java
1184 (BasicToolBarUI): Implements SwingConstants.
1186 2004-07-21 Michael Koch <konqueror@gmx.de>
1188 * javax/swing/JPopupMenu.java: Removed CVS tags.
1189 * javax/swing/UIDefaults.java: Reformatted.
1190 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1191 Explicitely import used classes.
1193 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1195 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1196 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1197 (GtkComponentPeer): Remove temporary try/catch block.
1198 (setVisible): Call show and hide.
1199 (show): Make native.
1201 (getArgs): Don't add "visible" argument.
1202 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1203 (property_notify_predicate): Return Bool instead of int.
1204 (find_layout): New function.
1205 (connectJObject): Call find_layout.
1206 (connectSignals): Likewise.
1207 (moveLayout): Likewise.
1208 (gtkLayoutSetVisible): Likewise.
1210 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1212 * javax/swing/AbstractButton.java:
1213 (setDisplayedMnemonicIndex): Check if button
1214 text is not null before checking its length.
1215 * javax/swing/JMenuItem.java:
1216 (processMouseEvent): Disarm menu item if mouse has
1218 * javax/swing/plaf/basic/BasicMenuUI.java:
1219 (MouseInputHandler.mouseEntered): Do not raise
1220 popup menu if this menu is already selected.
1221 (MouseInputHandler.mousePressed): Do not fire
1223 (MenuHandler): Implemented.
1225 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1227 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1228 (getSelectedObjects): Implemented.
1229 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1230 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1231 Added javadoc for few methods.
1232 (processMouseEvent): Made public.
1233 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1234 (processMouseEvent): Likewise.
1236 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1238 * javax/swing/AbstractButton.java:
1239 (init): Set display mnemonic index to -1.
1240 (setMnemonic(char)): Use setMnemonic(int).
1241 (setMnemonic(int)): Set display mnemonic index.
1242 (getDisplayedMnemonicIndex): Change method signature
1243 by removing 'index' parameter.
1244 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1245 Added default for Menu.selectionBackground.
1246 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1247 (paintMenuItem): Change background color of the selected
1249 (paintText): Paint differently when menu item is disabled.
1250 Also paint mnemonic if it appears in the menu item's label.
1251 (paintAccelerator): Paint accelerator differently
1252 if menu item is disabled.
1253 * javax/swing/plaf/basic/BasicMenuUI.java:
1254 (installDefaults): Install defaults for
1255 selectionForeground and selectionBackground.
1256 (uninstallDefaults): Uninstall defauls for
1257 selectionForeground and selectionBackground.
1259 2004-07-21 Michael Koch <konqueror@gmx.de>
1261 * javax/swing/text/AbstractDocument.java
1262 (BranchElement): Implemented.
1263 (LeafElement): Implemented.
1264 * javax/swing/text/DefaultCaret.java:
1265 Import used classes.
1266 (serialVersionUID): New constant.
1267 * javax/swing/text/JTextComponent.java
1268 (AccessibleJTextComponent): Removed dead declaration.
1269 (caretPos): Removed.
1270 (setCaret): New method.
1271 * javax/swing/text/PlainDocument.java
1272 (rootElement): New field.
1273 (PlainDocument): Initialize rootElement.
1274 (createDefaultRoot): New method.
1275 (getDefaultRootElement): Implemented.
1276 * javax/swing/text/View.java: Reformatted.
1277 * javax/swing/text/ViewFactory.java
1278 (create): Added javadoc.
1280 2004-07-21 Michael Koch <konqueror@gmx.de>
1282 * javax/swing/ToolTipManager.java: Reformatted.
1284 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1286 * javax/swing/AbstractButton.java
1287 (changeEvent): New field.
1288 (fireItemStateChanged): Change source of the event
1289 to 'this' before firing it to button listeners.
1290 (fireActionPerformed): Likewise.
1291 (fireStateChanged): Likewise.
1292 (createActionListener): Do not set source
1293 of the event to AbstractButton.
1294 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1295 (ContainerHandler.componentAdded): Removed
1296 print out statement.
1297 (ContainerHandler.componentRemoved): Likewise.
1299 2004-07-21 Michael Koch <konqueror@gmx.de>
1301 * javax/swing/text/Highlighter.java: New file.
1302 * Makefile.am: Added javax/swing/text/Highlighter.java.
1303 * Makefile.in: Regenerated.
1305 2004-07-21 Michael Koch <konqueror@gmx.de>
1307 * javax/swing/ToolTipManager.java
1308 (stillInsideTimerAction): Fixed constructor arguments.
1309 (outsideTimerAction): Likewise.
1310 (insideTimerAction): Likewise.
1312 2004-07-21 Michael Koch <konqueror@gmx.de>
1314 * javax/swing/JButton.java: Reformatted.
1315 * javax/swing/JFormattedTextField.java
1316 (getUIClassID): Implemented.
1317 * javax/swing/JRootPane.java
1318 (serialVersionUID): New constant.
1319 * javax/swing/JTextField.java
1321 (JTextField): Simplified.
1322 (getUIClassID): New method.
1323 (getActionListeners): Added @since tag.
1324 (setColumns): Invalidate layout and repaint.
1325 (getHorizontalAlignment): New method.
1326 (setHorizontalAlignment): New method.
1327 (selectAll): Removed.
1328 * javax/swing/SwingUtilities.java
1329 (getAncestorOfClass): Removed redundant @see tag.
1330 (isLeftMouseButton): Fixed implementation.
1331 (isMiddleMouseButton): Likewise.
1332 (isRightMouseButton): Likewise.
1333 * javax/swing/text/AbstractDocument.java
1334 (AttributeContext.addAttribute): New method.
1335 (AttributeContext.addAttributes): New method.
1336 (AttributeContext.getEmptySet): New method.
1337 (AttributeContext.reclaim): New method.
1338 (AttributeContext.removeAttribute): New method.
1339 (AttributeContext.removeAttributes): New method.
1340 * javax/swing/text/Document.java
1341 (createPosition): Throws BadLocationException.
1342 (getText): Likewise.
1344 * javax/swing/text/JTextComponent.java
1345 (getText): Return null if no document is set. Catch
1346 BadLocationException.
1348 (updateUI): Simplified.
1350 2004-07-21 Michael Koch <konqueror@gmx.de>
1352 * javax/swing/JButton.java
1353 (removeNotify): Fixed javadoc.
1354 (updateUI): Simplified.
1356 2004-07-21 David Jee <djee@redhat.com>
1358 * gnu/java/awt/image/ImageDecoder.java
1359 (startProduction): Only add consumer if it's not added yet.
1360 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1361 (GdkPixbufDecoder): Don't call initState() here.
1362 (produce): Call initState() here, to ensure area_prepared and
1363 area_updated signals are properly connected.
1364 * gnu/java/awt/peer/gtk/GtkImage.java
1365 (setColorModel): Use equals() to compare ColorModel objects.
1366 (setPixels): Likewise.
1367 * java/awt/image/ColorModel.java
1368 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1369 * java/awt/image/RGBImageFilter.java
1370 (setColorModel): Set consumer's color model.
1371 (setPixels): Use equals() to compare ColorModel objects.
1373 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1375 * java/net/URLConnection.java (position): New field.
1376 (dateFormat1, dateFormat2, dateFormat3): Removed.
1377 (dateFormats): New field.
1378 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1379 each time instead of re-allocating.
1380 (initializeDateFormats): Initialize 'dateFormats'.
1382 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1385 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1388 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1390 * java/net/Socket.java (getImpl): Now private. Remove comment.
1392 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1394 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1395 of chained Writer when calling super-constructor.
1396 * java/io/FilterWriter.java (FilterWriter): Likewise.
1397 * java/io/PrintWriter.java (PrintWriter): Likewise.
1399 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1401 * prims.cc (process_gcj_properties): Don't increment i within LHS
1404 2004-07-19 Per Bothner <per@bothner.com>
1406 Print -verbose:message on "loading", not initialization.
1407 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1408 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1409 gcj::verbose_class_flag.
1410 * java/lang/natClass.cc (initializeClass): Don't print message here.
1411 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1412 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1413 (_Jv_PrepareCompiledClass): Likewise.
1415 2004-07-18 Matthias Klose <doko@debian.org>
1417 * configure.in: Substitute target_noncanonical.
1418 * configure: Regenerate
1420 2004-07-17 Michael Koch <konqueror@gmx.de>
1422 * java/lang/String.java: Fixed javadocs all over.
1424 2004-07-17 Mark Wielaard <mark@klomp.org>
1426 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1427 when size is smaller.
1428 * java/io/RandomAccessFile.java (setLength): Use truncate for
1429 shrinking the file and seek plus write for expanding the file.
1431 2004-07-17 Michael Koch <konqueror@gmx.de>
1433 * gnu/java/nio/channels/natFileChannelPosix.cc
1434 (implTruncate): Always save current position. Only reposition file
1435 pointer to where we started if not beyond new lenght. Reposition file
1436 pointer to file length if it points beyond the end of file.
1438 2004-07-17 Mark Wielaard <mark@klomp.org>
1440 * javax/swing/Box.java: Put FIXME comment above class declaration.
1441 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1442 * javax/swing/JCheckBox.java: Likewise.
1443 * javax/swing/JDialog.java: Likewise.
1444 * javax/swing/JRadioButton.java: Likewise.
1445 * javax/swing/JToggleButton.java: Likewise.
1446 * javax/swing/UIManager.java: Likewise.
1447 * javax/swing/border/TitledBorder.java: Likewise.
1448 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1449 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1450 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1451 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1452 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1453 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1454 * javax/swing/text/JTextComponent.java: Likewise.
1456 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1458 * java/net/DatagramPacket.java (setAddress): Removed check for
1461 2004-07-17 Michael Koch <konqueror@gmx.de>
1463 * java/net/DatagramSocket.java
1464 (getLocalAddress): Check if socket is bound or not.
1465 * java/net/Socket.java
1466 (getLocalAddrss): Check if socket is bound or not.
1467 (getPort): Return -1 when not connected. Dont check getImpl() for
1469 (setReuseAddress): Check if socket is closed.
1470 (isConnected): Check if getImpl() returns null.
1472 2004-07-17 Mark Wielaard <mark@klomp.org>
1474 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1475 on notifier object before calling notifyAll().
1477 2004-07-17 Michael Koch <konqueror@gmx.de>
1479 * gnu/java/nio/channels/FileChannelImpl.java
1480 (finalize): Added javadoc.
1482 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1484 * java/text/CollationElementIterator.java
1485 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1486 (setText): Use ArrayList instead of Vector.
1488 2004-07-17 Michael Koch <konqueror@gmx.de>
1490 * java/nio/ByteOrder.java
1491 (static): Removed. Not needed.
1492 Thanks to Patrick Reali for noticing.
1493 * java/nio/charset/CharsetDecoder.java
1494 (decode): Fix for classpath bug #9177: Reset state before flipping.
1496 2004-07-17 Michael Koch <konqueror@gmx.de>
1498 * java/security/Security.java: Fixed javadocs all over.
1500 2004-07-17 Michael Koch <konqueror@gmx.de>
1502 * gnu/java/awt/EmbeddedWindow.java
1504 (addNotify): Set peer via reflection.
1505 (setWindowPeer): Removed.
1506 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1507 * Makefile.am (nat_source_files):
1508 Removed gnu/java/awt/natEmbeddedWindow.cc.
1509 * Makefile.in: Regenerated.
1511 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1513 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1515 * configure: Regenerated.
1517 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1519 * configure.in: Use build_noncanonical rather than build_alias.
1520 * configure: Rebuild.
1522 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1523 by logic refactoring. Move default definition of NATIVE closer
1524 to first alternate definition.
1525 * configure: Regenerate.
1527 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1528 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1529 gcj/Makefile.in: Regenerate.
1530 * configure.in: Set ZIP and GCJH. Remove redundant condition
1531 in AM_CONDITIONAL(NATIVE,...)
1532 * configure: Regenerate.
1534 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1536 * configure.in: Use target_noncanonical rather than
1537 target_alias for forward-compatibility with autoconf 2.59.
1538 * configure: Regenerate.
1539 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1540 testsuite/Makefile.am: Substitute target_noncanonical.
1541 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1542 testsuite/Makefile.in: Regenerate.
1544 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1545 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1546 * acinclude.m4: Include acx.m4.
1547 * aclocal.m4: Regenerate.
1548 * configure: Regenerate.
1550 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1553 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1554 (decimalFormat): New static variable.
1556 (getTime): New. Override Date.getTime().
1557 (toString): Synchronize. Use decimalFormat to format nanos value
1558 correctly. Truncate extra zeros.
1559 (before): Compare getNanos() only if getTime() is equal.
1562 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1564 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1565 * configure.in: ...here.
1566 * aclocal.m4: Regenerate.
1567 * configure: Regenerate.
1569 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1570 * configure: Rebuilt with autoconf 2.13.
1571 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1572 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1574 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1577 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1579 * Makefile.in: Rebuilt.
1580 * testsuite/libjava.lang/LargeFile.java: New test case.
1581 * testsuite/libjava.lang/LargeFile.out: New file.
1583 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1585 * java/beans/EventHandler.java: Remove debugging statements.
1587 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1589 * java/beans/EventHandler.java: New file.
1590 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1591 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1592 testsuite/Makefile.in: Regenerate.
1594 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1596 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1597 flag to the gcj_setup.
1598 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1600 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1601 deprecation flag change. 58 XFAILS removed.
1603 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1605 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1606 -fno-use-divide-subroutine.
1607 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1608 (HANDLE_FPE): Define.
1609 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1610 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1611 (HANDLE_DIVIDE_OVERFLOW): Define.
1613 2004-07-14 Michael Koch <konqueror@gmx.de>
1614 Matthias Klose <doko@debian.org>
1616 * java/awt/im/InputContext.java: Initialize in, line.
1618 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1620 * interpret.cc (run): Correctly access libffi return values of
1621 integral smaller-than-int type; these are implicitly promoted.
1623 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1626 * interpret.cc (compile_mutex): New.
1627 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1628 (run): Lock compile_mutex before calling compile() if compilation is
1630 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1631 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1633 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1636 * include/jvm.h (_Jv_value): New union type.
1637 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1638 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1641 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1643 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1644 * gnu/awt/xlib/XOffScreenImage.java
1645 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1646 constructor argument. Add constructor using ImageProducer.
1647 (getSource): Implement.
1648 (imageComplete): New method.
1649 (setColorModel): New method.
1650 (setDimensions): New method.
1651 (setHints): New method.
1652 (setPixels): New method.
1653 (setProperties): New method.
1654 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1655 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1657 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1660 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1661 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1662 (finalizerReady): Now native.
1664 (runFinalizers): Removed.
1665 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1666 a primitive lock, and don't hold it while running the finalizers.
1667 (runFinalizers): Implement. Don't aquire any Java lock.
1668 (finalizerReady): Use lock primitives to signal finalizer thread.
1670 2004-07-11 Mark Wielaard <mark@klomp.org>
1672 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1673 * java/net/URLStreamHandler.java (parseURL): When url file part
1674 doesn't contain a '/' just ignore context.
1676 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1678 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1679 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1680 (MAKE_THROW_FRAME): Do not modify PSW address.
1681 (INIT_SEGV): Install SIGINFO-style signal handler.
1682 (INIT_FPE): Likewise.
1684 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1686 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1687 status. 21 xfail's removed, 1 added.
1689 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1691 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1693 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1695 * java/text/MessageFormat.java
1696 (formatInternal): Append "{n}" if argument n is unavailable.
1697 (format(Object, StringBuffer, FieldPosition)): This
1698 should be equivalent to format(Object[],
1699 StringBuffer, FieldPosition).
1701 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1703 * java.util.Calendar.java (cache): New private static field. Cached
1704 mappings of locales->calendar classes.
1705 (ctorArgTypes): New private static field. Singleton argument for
1706 calendar class constructor lookup.
1707 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1708 Optimize by bypassing reflection instantiation for the
1709 GregorianCalendar case.
1711 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1713 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1714 ResourceBundle.getBundle() calls.
1715 * java/util/GregorianCalendar.java: Likewise.
1716 * java/util/Currency.java: Likewise.
1717 * java/text/BreakIterator.java: Likewise.
1718 * java/text/Collator.java: Likewise.
1719 * java/text/DateFormat.java: Likewise.
1720 * java/text/DateFormatSymbols.java: Likewise.
1721 * java/text/DecimalFormatSymbols.java: Likewise.
1722 * java/text/NumberFormat.java: Likewise.
1723 * java/awt/Window.java: Likewise.
1725 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1727 * java/util/ResourceBundle.java (bundleCache): Renamed from
1728 resourceBundleCache. Update comments.
1729 (getObject): Don't catch MissingResourceException.
1730 (getBundle(String)): Remove 'final'. Use system classloader if
1731 getCallingClassLoader returned null.
1732 (getBundle(String, Locale)): Likewise.
1733 (BundleKey): New private class. HashMap key for bundle cache lookup.
1734 (lookupKey): New. Singleton instance of BundleKey.
1735 (nullEntry): New. Cache entry to represent failed lookups.
1736 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1737 caching strategy, no-allocation lookup, and new tryBundle methods.
1738 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1739 name using given classloader.
1740 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1741 baseName for given Locale and attempt to load bundle.
1743 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1745 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1746 illegal protected method calls.
1748 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1750 Fix or remove some bogus test cases.
1751 * testsuite/libjava.compile/pr10459_2.java: Removed.
1752 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1754 * testsuite/libjava.compile/inner_data.java: Test against its own
1757 2004-07-09 Michael Koch <konqueror@gmx.de>
1759 * scripts/unicode-muncher.pl: Updated to version 2.1
1760 from GNU classpath. Added some clarifications on where to find the
1761 needed files from www.unicode.org.
1762 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1763 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1764 Removed, these can directly be downloaded from www.unicode.org if
1766 * gnu/java/lang/CharData.java: Regenerated.
1767 * include/java-chartables.h: Regenerated.
1768 * Makefile.am (ordinary_java_source_files):
1769 Removed gnu/java/lang/CharData.java.
1770 * Makefile.in: Regenerated.
1772 2004-07-09 Michael Koch <konqueror@gmx.de>
1774 * java/security/AccessControlContext.java,
1775 java/security/SecureClassLoader.java:
1778 2004-07-09 Michael Koch <konqueror@gmx.de>
1780 * java/io/ObjectInputStream.java (readFields): Use long datatype
1781 when shifting byte values more then 24 bits left.
1783 2004-07-09 Michael Koch <konqueror@gmx.de>
1785 * java/util/zip/DeflaterOutputStream.java,
1786 java/util/zip/GZIPInputStream.java,
1787 java/util/zip/GZIPOutputStream.java,
1788 java/util/zip/InflaterInputStream.java:
1789 Reformatted. Added javadocs. Reordered all stuff.
1790 Renamed variables to be more clear.
1792 2004-07-09 Michael Koch <konqueror@gmx.de>
1794 * javax/imageio/IIOException.java,
1795 javax/imageio/event/IIOReadProgressListener.java,
1796 javax/imageio/event/IIOReadUpdateListener.java,
1797 javax/imageio/event/IIOReadWarningListener.java,
1798 javax/imageio/event/IIOWriteProgressListener.java,
1799 javax/imageio/event/IIOWriteWarningListener.java:
1801 * Makefile.am: Added new files.
1802 * Makefile.in: Regenerated.
1804 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1806 * java/text/RuleBasedCollator.java
1807 (mergeRules): Use ArrayList instead of Vector.
1808 (subParseString): likewise.
1809 (parseString): likewise.
1810 (buildCollationVector): likewise.
1811 (getCollationKey): likewise.
1813 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1815 * java/text/DateFormat.java (parse):
1816 Improved javadoc. Improved exception message.
1818 2004-07-09 Mark Wielaard <mark@klomp.org>
1820 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1821 interrupted() method to clear interupt flag of our Thread.
1823 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1825 * java/nio/Buffer.java,
1826 java/nio/ByteBuffer.java,
1827 java/nio/ByteBufferHelper.java,
1828 java/nio/ByteBufferImpl.java,
1829 java/nio/CharBuffer.java,
1830 java/nio/CharBufferImpl.java,
1831 java/nio/CharViewBufferImpl.java,
1832 java/nio/DirectByteBufferImpl.java,
1833 java/nio/DoubleBuffer.java,
1834 java/nio/DoubleBufferImpl.java,
1835 java/nio/DoubleViewBufferImpl.java,
1836 java/nio/FloatBuffer.java,
1837 java/nio/FloatBufferImpl.java,
1838 java/nio/FloatViewBufferImpl.java,
1839 java/nio/IntBuffer.java,
1840 java/nio/IntBufferImpl.java,
1841 java/nio/IntViewBufferImpl.java,
1842 java/nio/LongBuffer.java,
1843 java/nio/LongBufferImpl.java,
1844 java/nio/LongViewBufferImpl.java,
1845 java/nio/MappedByteBufferImpl.java,
1846 java/nio/ShortBuffer.java,
1847 java/nio/ShortBufferImpl.java,
1848 java/nio/ShortViewBufferImpl.java:
1849 Fixed javadocs all over. Improved input error
1852 * java/nio/Buffer.java
1853 (checkForUnderflow, checkForOverflow, checkIndex,
1854 checkIfReadOnly, checkArraySize): New helper methods
1857 * java/nio/ByteBufferHelper.java
1858 (checkRemainingForRead, checkRemainingForWrite,
1859 checkAvailableForRead, checkAvailableForWrite): Removed
1860 no longer needed methods.
1862 2004-07-09 Michael Koch <konqueror@gmx.de>
1864 * gnu/regexp/CharIndexedInputStream.java:
1865 Reordered imports to match classpath.
1867 2004-07-09 Michael Koch <konqueror@gmx.de>
1869 * gnu/java/awt/EmbeddedWindow.java:
1870 Load native library for setWindowPeer method.
1872 2004-07-08 Randolph Chung <tausq@debian.org>
1874 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
1875 * configure: Regenerate.
1876 * configure.host: Set can_unwind_signal for hppa*-linux.
1877 * include/pa-signal.h: New file.
1879 2004-07-07 Per Bothner <per@bothner.com>
1881 * Makefile.am: Add rules to build libgij from just gij.cc.
1883 * include/jvm.h (namespace jcj): Declare verbose_class_flag
1884 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
1885 (initializeClass): If verbose_class_flag, print message.
1886 * gij.cc (main): Handle -verbose:class flag.
1888 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
1890 * configure.host: Enable hash synchronization on Darwin.
1891 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
1892 ';', since this is a comment on Darwin.
1893 (compare_and_swap_release): Likewise.
1895 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
1897 * java/net/URLStreamHandler.java (parseURL): Canonicalize
1898 file portion of URL in addition to spec for file: protocol.
1900 2004-07-05 Anthony Green <green@redhat.com>
1902 * java/io/File.java (toURI): Merge from Classpath.
1904 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1906 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
1907 before passing to URL constructor. Rethrow any MalformedURLException
1908 as a RuntimeException. Catch MalformedURLException specifically, not
1911 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1913 * java/util/Locale.java (readObject): Intern strings read from object
1916 2004-07-04 Michael Koch <konqueror@gmx.de>
1918 * gnu/gcj/runtime/FirstThread.java,
1919 gnu/gcj/runtime/natFirstThread.cc: Removed.
1920 * gnu/java/lang/MainThread.java,
1921 gnu/java/lang/natMainThread.cc: New files.
1922 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
1923 * Makefile.am: Added new files and removed deleted ones.
1924 * Makefile.in: Regenerated.
1926 2004-07-03 Mark Wielaard <mark@klomp.org>
1927 Anthony Green <green@redhat.com>
1929 * java/net/URL.java (getFile): Clarify return value doc.
1930 (getPath): Return null if file is empty - not empty String.
1931 (set): Convert protocol to lower case before doing anything.
1932 Only change the protocol handler if it's different.
1934 2004-07-03 Anthony Green <green@redhat.com>
1936 * java/net/URL.java (URL): Convert protocol to lower case before
1937 doing anything, so we getURLStreamHandler() with the proper value.
1939 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
1941 * java/util/Locale.java (hashcode): Made transient.
1942 (hashCode): No longer synchronized.
1943 (equals): Remove comment.
1944 (writeObject): No longer synchronized. Implement using writeObject
1945 calls instead of tweaking hashCode field. Update doc.
1946 (readObject): Implement using readObject calls.
1948 2004-06-26 Geoffrey Keating <geoffk@apple.com>
1949 Andreas Tobler <a.tobler@schweiz.ch>
1951 * configure.host (powerpc-*-darwin*): New case, define
1953 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
1954 * configure: Regenerate.
1955 * include/darwin-signal.h: New.
1957 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
1959 * java/beans/Statement.java (doExecute): Fix formatting.
1961 2004-06-29 Per Bothner <per@bothner.com>
1963 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
1964 etc etc): Remove needless parenthesis, which causes __stdcall__
1965 attribute on MinGW to get ignored.
1967 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
1969 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
1971 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
1973 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
1975 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
1977 * java/beans/Expression.java: New file.
1978 * java/beans/Statement.java: New file.
1979 * Makefile.am: Added new files.
1980 * Makefile.in: Re-generate.
1982 2004-06-27 Mark Wielaard <mark@klomp.org>
1984 * java/io/FilePermission.java (usingPerms): Removed.
1985 (actionsString): Made final.
1986 (cachePerms): Renamed to checkPerms.
1987 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
1989 (FilePermission): Check arguments, call checkPerms().
1990 (equals): Remove cachePerms() call.
1991 (implies): Likewise.
1993 2004-06-27 Mark Wielaard <mark@klomp.org>
1995 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
1997 (sendRequest): Use new field in user-agent http agent.
1999 2004-06-27 Mark Wielaard <mark@klomp.org>
2001 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2002 when argument is null.
2004 2004-06-26 Mark Wielaard <mark@klomp.org>
2006 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2007 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2009 (cancel_clicked): Likewise.
2011 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2013 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2014 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2015 can not calculate the right value.
2016 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2018 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2020 * testsuite/libjava.jacks/jacks.xfail: Remove
2021 15.9.1-qualified-concrete-20.
2023 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2025 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2026 encoding name to iconv.
2027 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2029 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2032 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2033 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2034 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2036 2004-06-21 Andrew Haley <aph@redhat.com>
2038 * java/io/ObjectOutputStream.java: Add DEBUG statements
2040 (dumpElementln): New method.
2042 * java/io/ObjectInputStream.java
2043 (currentClassLoader): Make native.
2044 (callersClassLoader): New field.
2046 (readObject): ENDBLOCKDATA is generated if the class has a write
2047 method, not if it has a read method.
2048 (readObject): Save and restore this.currentObject and
2049 this.currentObjectStreamClass around calls to callReadMethod().
2050 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2053 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2055 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2058 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2060 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2061 if desired, before the default class loader is initialised.
2062 Call INIT_SEGV only if HANDLE_SEGV is defined.
2064 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2066 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2067 directory only if it actually exists.
2069 2004-06-18 Graydon Hoare <graydon@redhat.com>
2071 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2072 Fix up non-ansi comments.
2074 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2076 * javax/swing/text/AbstractDocument.java: Adding missing import
2077 for javax.swing.event.EventListenerList.
2078 * javax/swing/text/DefaultCaret.java: Likewise.
2080 2004-06-17 Michael Koch <konqueror@gmx.de>
2082 * javax/swing/JToolBar.java
2084 (JToolBar): Use Component.setName(String) instead of doing it all
2086 * javax/swing/Timer.java
2087 (queueEvent): Added missing modifier.
2089 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2091 * Makefile.am: Added new file.
2092 * Makefile.in: Re-generate.
2093 * javax/swing/JMenu.java:
2094 (insertSeparator): Implemented.
2095 * javax/swing/JPopupMenu.java:
2096 (JPopupMenu.Separator): Implemented.
2097 * javax/swing/MenuSelectionManager.java:
2098 (processMouseEvent): Use java.awt.Component
2099 for event source instead of javax.swing.JComponent.
2100 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2101 New File. Implemented.
2103 2004-06-16 David Jee <djee@redhat.com>
2105 * java/awt/GridBagLayout.java
2106 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2107 Make sure pos_x and pos_y are never negative.
2109 2004-04-16 Andrew Overholt <overholt@redhat.com>
2111 * Makefile.am: Add new file.
2112 * Makefile.in: Re-generate.
2113 * javax/swing/JToolBar.java
2114 Partially implemented.
2115 * javax/swing/plaf/basic/BasicToolBarUI.java
2116 New file. Partially implemented.
2118 2004-06-16 Graydon Hoare <graydon@redhat.com>
2120 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2121 (setComposite): Accept AlphaComposite arguments.
2122 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2123 (createBufferedImage): Add new overloads.
2124 * gnu/java/awt/peer/gtk/GtkToolkit.java
2125 (createImage): Use GdkPixbufDecoder.createBufferedImage
2126 when useGraphics2D() is true.
2127 (getImage): Delegate to createImage.
2128 * javax/swing/JList.java
2130 (getFirstVisibleIndex):
2131 (getLastVisibleIndex):
2133 (ensureIndexIsVisible): New methods.
2134 * javax/swing/Timer.java: Reimplement.
2136 2004-06-16 Michael Koch <konqueror@gmx.de>
2138 * javax/swing/text/AbstractDocument.java
2139 (AbstracElement): Made public, implements java.io.Serializable.
2140 (AttributeContext): Made public.
2141 (BranchElement): Likewise.
2142 (Content): Likewise.
2143 (DefaultDocumentEvent): Made public, extends
2144 javax.swing.undo.CompoundEdit.
2145 (ElementEdit): Made public, extends
2146 javax.swing.undo.AbstractUndoableEdit.
2147 (LeafElement): Made public.
2148 (LeafElement.LeafElement): Made public.
2150 2004-06-16 Michael Koch <konqueror@gmx.de>
2152 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2153 methods (that were obviously never be intended to get included hi this
2154 class. Added some methods too.
2156 2004-06-16 Michael Koch <konqueror@gmx.de>
2158 * javax/swing/text/PlainDocument.java
2159 (serialVersionUID): New constant.
2160 (lineLimitAttribute): Likewise.
2161 (tabSizeAttribute): Likewise.
2162 (tabSize): New field.
2163 (PlainDocument): Made public.
2164 (PlainDocument): New constructor.
2166 2004-06-16 Michael Koch <konqueror@gmx.de>
2168 * javax/swing/text/AbstractDocument.java
2169 (insertString): Throws BadLocationException.
2170 * javax/swing/text/Document.java
2171 (insertString): Likewise.
2172 * javax/swing/text/JTextComponent.java:
2173 Javadocs and comments cleaned up.
2175 2004-06-16 Michael Koch <konqueror@gmx.de>
2177 * javax/swing/event/UndoableEditListener.java: Reformatted.
2178 * javax/swing/text/AbstractDocument.java
2179 (AbstractDocument): Implements java.io.Serializable.
2180 (doc_list): Removed.
2181 (undo_list): Removed.
2182 (AbstractElement.serialVerionUID): New field.
2183 (BranchElement.serialVerionUID): Likewise.
2184 (DefaultDocumentEvent.serialVerionUID): Likewise.
2185 (ElementEdit.serialVerionUID): Likewise.
2186 (LeafElement.serialVerionUID): Likewise.
2187 (serialVerionUID): Likewise.
2188 (BAD_LOCATION): New constant.
2189 (BidiElementName): Likewise.
2190 (ContentElementName): Likewise.
2191 (ParagraphElementName): Likewise.
2192 (SectionElementName): Likewise.
2193 (ElementNameAttribute): Likewise.
2194 (AbstractDocument): Made protected.
2195 (AbstractDocument): New construtor.
2196 (listenerList): New field.
2197 (fireChangedUpdate): Implemented.
2198 (fireInsertUpdate): Likewise.
2199 (fireRemoveUpdate): Likewise.
2200 (fireUndoableEditUpdate): Likewise.
2201 (getListeners): Likewise.
2202 (addDocumentListener): Likewise.
2203 (removeDocumentListener): Likewise.
2204 (addUndoableEditListener): Likewise.
2205 (removeUndoableEditListener): Likewise.
2206 (getDocumentListeners): New method.
2207 (getUndoableEditListeners): Likewise.
2208 (getAsynchronousLoadPriority): Made public.
2209 (getBidiRootElement): Likewise.
2210 (setAsynchronousLoadPriority): Likewise.
2211 (setDocumentProperties): Likewise.
2212 * javax/swing/text/BadLocationException.java
2213 (serialVerionUID): New field.
2214 * javax/swing/text/DefaultCaret.java
2215 (changeEvent): New field.
2216 (listenerList): Likewise.
2218 (addChangeListener): Reimplemented.
2219 (removeChangeListener): Likewise.
2220 (getListeners): New method.
2221 (getChangeListeners): Likwise.
2222 (getComponent): Likewise.
2223 * javax/swing/text/GapContent.java
2224 (GapContent): Implements java.io.Serializable.
2225 (serialVerionUID): New field.
2227 2004-06-16 Michael Koch <konqueror@gmx.de>
2229 * javax/swing/JTree.java
2230 (treeModel): New field.
2231 (JTree): New constructors, one existing one made public.
2232 (createTreeModel): New method.
2233 (addTreeExpansionListener): Likewise.
2234 (removeTreeExpansionListener): Likewise.
2235 (getTreeExpansionListeners): Likewise.
2236 (fireTreeCollapsed): Likewise.
2237 (fireTreeExpanded): Likewise.
2238 (addTreeSelectionListener): Likewise.
2239 (removeTreeSelectionListener): Likewise.
2240 (getTreeSelectionListeners): Likewise.
2241 (fireValueChanged): Likewise.
2242 (addTreeWillExpandListener): Likewise.
2243 (removeTreeWillExpandListener): Likewise.
2244 (getTreeWillExpandListeners): Likewise.
2245 (fireTreeWillCollapse): Likewise.
2246 (fireTreeWillExpand): Likewise.
2248 2004-06-16 Michael Koch <konqueror@gmx.de>
2250 * javax/swing/JTree.java: Reformatted.
2252 2004-06-16 Michael Koch <konqueror@gmx.de>
2254 * javax/swing/JTextArea.java: New file.
2255 * javax/swing/JTextField.java
2257 (notifyAction): New constant.
2258 (columns): New field.
2259 (JTextField): New constructors.
2260 (createDefaultModel): New method.
2261 (addActionListener): Reimplmemented.
2262 (removeActionListener): Reimplemented.
2263 (getActionListeners): New method.
2264 (fireActionPerformed): New method.
2265 (getColumns): New method.
2266 (setColumne): New method.
2267 * javax/swing/text/JTextComponent.java
2268 (AccessibleJTextComponent.serialVersionUID): New field.
2269 (serialVersionUID): Likewise.
2270 (DEFAULT_KEYMAP): Likewise.
2271 (FOCUS_ACCELERATOR_KEY): Likewise.
2272 (doc): Made private.
2273 (icon_gap): Likewise.
2276 (JTextComponent): Some constructors removed.
2277 (getScrollableTracksViewportHeight): New method.
2278 (getScrollableTracksViewportWidth): Likewise.
2279 * Makefile.am: Added javax/swing/JTextArea.java.
2280 * Makefile.in: Regenerated.
2282 2004-06-15 Graydon Hoare <graydon@redhat.com>
2284 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2285 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2286 * javax/swing/JViewport.java
2287 (getExtentSize): Return size rather than preferred size.
2288 (toViewCoordinates): New methods.
2289 (getViewSize): Return size rather than preferred size.
2290 (setViewSize): Note view size as set.
2291 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2292 * javax/swing/plaf/basic/BasicScrollBarUI.java
2293 (getPreferredSize): Don't redo layout.
2294 * javax/swing/plaf/basic/BasicViewportUI.java
2295 (paint): Translate image properly and eat exceptions.
2297 2004-06-15 Kim Ho <kho@redhat.com>
2299 * javax/swing/JTabbedPane.java
2300 (setComponent): Remove old component and
2302 (setSelectedIndex): Don't operate on the
2303 components if they're null. Don't set index
2304 on the model if the index is the same.
2305 (insertTab): Don't add or hide the component
2306 if it's null. Repaint the container.
2307 * javax/swing/plaf/basic/BasicLookAndFeel.java
2308 Change colors for TabbedPane.
2309 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2310 (mousePressed): Re-layout and paint the component.
2311 (layoutContainer): Don't set location on the view.
2312 (ScrollingViewport::paint): Remove.
2314 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2316 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2317 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2320 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2321 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2323 (drawLine): Call gdk_flush before leaving GDK critical region.
2324 (fillRect): Likewise.
2325 (drawRect): Likewise.
2326 (copyArea): Likewise.
2327 (copyPixmap): Likewise.
2328 (clearRect): Likewise.
2329 (drawArc): Likewise.
2330 (drawPolyline): Likewise.
2331 (drawPolygon): Likewise.
2332 (fillPolygon): Likewise.
2333 (fillArc): Likewise.
2334 (drawOval): Likewise.
2335 (fillOval): Likewise.
2337 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2339 (GdkFontMetrics): Add style argument to initState call.
2340 (stringWidth(String,int,int,String)): Add style parameter.
2341 (stringWidth(String)): Add style argument to stringWidth call.
2342 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2343 (initState): Set pango font style and weight based on AWT style
2344 parameter. Pass default GTK language to
2345 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2346 simply dividing by PANGO_SCALE.
2347 (stringWidth): Set pango font style and weight based on AWT style
2350 * java/awt/Button.java (next_button_number): New field.
2351 (paramString): Change output.
2352 (generateName): New method.
2353 (getUniqueLong): New method.
2355 2004-06-14 Kim Ho <kho@redhat.com>
2357 * javax/swing/JTabbedPane.java:
2358 (setComponentAt): Set the component, not
2360 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2361 (actionPerformed): Let deiconize catch exception.
2363 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2365 * javax/swing/JPopupMenu.java:
2366 (setVisible): Corrected location of a
2367 heavyweight popup menu.
2369 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2371 * javax/swing/MenuSelectionManager.java:
2372 Ran through jalopy to fix formatting style.
2374 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2376 * javax/swing/JLayeredPane.java:
2377 (remove): Revalidate and repaint layered pane after
2378 the component was removed.
2379 javax/swing/JMenu.java:
2380 (setVisible): Display popup menu at the user location,
2381 if one was set by the user.
2382 (setMenuLocation): Reimplemented. Fixed javadoc.
2383 * javax/swing/JMenuBar.java: Added javadoc.
2384 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2385 (MODEL_CHANGED_PROPERTY): New Property.
2386 (isSelected): Implemented.
2387 (setBorderPainted): Fire PropertyChangeEvent
2388 if paintBorder property changes.
2389 (setSelected): Implemented.
2390 (setSelectionModel): Implemented.
2391 * javax/swing/JPopupMenu.java: Added Javadoc
2392 (pack): Implemented.
2393 (setVisible): Reimplemented.
2394 (show): Fixed location.
2395 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2396 Container instead of JPanel.
2397 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2398 (clearSelectedPath): Reimplemented to clear selectedPath
2400 (processMouseEvent): Reimplemented.
2401 (setSelectedPath): Fire stateChange event indicating that
2402 selected menu path has changed.
2403 (getPath): Change to use ArrayList instead of Vector.
2404 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2405 (installUI): call installKeyboardActions().
2406 (uninstallUI): call uninstallKeyboardActions().
2408 2004-06-13 Michael Koch <konqueror@gmx.de>
2410 * javax/swing/text/DefaultCaret.java,
2411 javax/swing/text/BadLocationException.java:
2414 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2416 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2417 DEFAULT_COLS): New variables.
2418 (create): Don't allow 0 rows or 0 columns. Instead, set the
2419 values to DEFAULT_ROWS or DEFAULT_COLS.
2420 (getMinimumSize): Likewise.
2421 (getPreferredSize): Likewise.
2422 (minimumSize): Likewise.
2423 (preferredSize): Likewise.
2424 (create): Set peer's editable state.
2425 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2426 zero. Update javadocs.
2427 (TextArea(String)): Likewise.
2428 (TextArea(int,int)): Fix javadocs.
2429 (TextArea(String,int,int,int)): Only throw exception if one of
2430 rows or columns is zero. Fix javadocs.
2432 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2434 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2435 addition to Components.
2437 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2438 wasn't consumed by normal processing, send it to the parent
2441 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2442 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2445 2004-06-11 David Jee <djee@redhat.com>
2447 * java/awt/MediaTracker.java
2448 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2449 (addImage(Image,int,int,int)): Likewise.
2451 2004-06-11 Michael Koch <konqueror@gmx.de>
2453 * javax/swing/text/AbstractDocument.java,
2454 javax/swing/text/Document.java,
2455 javax/swing/text/GapContent.java,
2456 javax/swing/text/JTextComponent.java,
2457 javax/swing/text/PlainDocument.java:
2460 2004-06-11 Michael Koch <konqueror@gmx.de>
2462 * javax/swing/JRootPane.java
2463 (AccessibleJRootPane.serialVersionUID): New field.
2464 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2465 (AccessibleJRootPane.getAccessibleRole): New method.
2466 (RootLayout): Implements Serializable.
2467 (RootLayout.serialVersionUID): New field.
2468 (RootLayout.RootLayout): New constructor.
2469 (setJMenuBar): Made public.
2470 (getJMenuBar): Likewise.
2471 (JRootPane): Likewise.
2472 (createContentPane): Likewise.
2473 (createGlassPane): Likewise.
2474 (createLayeredPane): Likewise.
2476 2004-06-11 Michael Koch <konqueror@gmx.de>
2478 * javax/swing/SwingUtilities.java
2479 (isLeftMouseButton): Fixed javadoc.
2480 (isMiddleMouseButton): Likewise.
2481 (isRightMouseButton): Likewise.
2483 2004-06-11 Michael Koch <konqueror@gmx.de>
2485 * javax/swing/JScrollPane.java
2486 (serialVersionUID): New field.
2487 (columnHeader): Made protected.
2488 (rowHeader): Likewise.
2489 (lowerLeft): Likewise.
2490 (lowerRight): Likewise.
2491 (upperLeft): Likewise.
2492 (upperRight): Likewise.
2493 (horizontalScrollBar): Likewise.
2494 (horizontalScrollBarPolicy): Likewise.
2495 (verticalScrollBar): Likewise.
2496 (verticalScrollBarPolicy): Likewise.
2497 (viewport): Likewise.
2499 2004-06-11 Michael Koch <konqueror@gmx.de>
2501 * javax/swing/LookAndFeel.java: Fixed javadocs.
2503 2004-06-11 Michael Koch <konqueror@gmx.de>
2505 * javax/swing/JEditorPane.java: Fixed javadocs.
2506 (JEditorPane): Removed redundant call to to this().
2507 (fireHyperlinkUpdate): Implemented.
2509 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2511 * javax/swing/JMenu.java: Fixed file name
2512 in the file comment.
2514 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2516 * javax/swing/JMenu.java: Added javadoc.
2517 (JMenu): Added MenuChangeListener to listen to
2518 ChangeEvents occuring in menu's model.
2519 (insert): Throw IllegalArgumentException if
2520 index is less than 0
2521 (setSelected): Reimplement.
2522 (setPopupMenuVisible): Call menu's model isEnabled()
2523 (setDelay): Throw IllegalArgumentException if
2524 given amount of delay is less than 0.
2525 (createActionComponent): Implemented.
2526 (createActionChangeListener): Implemented.
2527 (addSeparator): Implemented.
2528 (getItem): Throw IllegalArgumentException if index is
2530 (getItemCount): Implemented.
2531 (fireMenuSelected): Changed to use menuEvent.
2532 (fireMenuDeselected): Likewise.
2533 (fireMenuCanceled): Likewise.
2534 (setAccelerator): Changed to throw an error if this
2536 (doClick): Implemented.
2537 (JMenu.ActionChangedListener): New inner class to handle
2538 PropertyChangeEvents occuring in the actions associated with menu.
2539 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2540 (BasicMenuUI): Added PropertyChangeListener to the menu.
2541 (createChangeListener): Implemented.
2542 (createMenuDragMouseListener): Likewise.
2543 (createMenuKeyListener): Likewise.
2544 (createPropertyChangeListener): Likewise.
2545 (uninstallListeners): Likewise.
2546 (BasicMenuUI.MouseInputHandler): Reimplemented.
2547 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2548 (BasicMenuUI.ChangeHandler): Likewise.
2549 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2550 (BasicMenuUI.MenuKeyHandler): Likewise.
2552 2004-06-10 David Jee <djee@redhat.com>
2554 * java/awt/MediaTracker.java
2555 (imageUpdate): Only do notifyAll() if the image is complete.
2557 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2559 * javax/swing/JApplet.java:
2560 (getJMenuBar): Made public.
2561 (setJMenuBar): Likewise.
2562 * javax/swing/JFrame.java:
2563 (getJMenuBar): Made public.
2564 (setJMenuBar): Likewise.
2565 * javax/swing/JWindow.java:
2566 (getJMenuBar): Removed.
2567 (setJMenuBar): Removed.
2569 2004-06-10 Michael Koch <konqueror@gmx.de>
2571 * javax/swing/JEditorPane.java
2572 (createEditorKitForContentType): Fixed visibility.
2573 (fireHyperlinkUpdate): Likewise.
2574 (getContentType): Likewise.
2575 (getEditorKit): Likewise.
2576 (getEditorKitForContentType): Likewise.
2577 (getPage): Likewise.
2579 (registerEditorKitForContentTyoe): Likewise.
2580 (replaceSelection): Likewise.
2581 (setContentType): Likewise.
2582 (setEditorKit): Likewise.
2583 (setPage): Likewise.
2585 2004-06-10 Michael Koch <konqueror@gmx.de>
2587 * javax/swing/Timer.java
2588 (Timer): New constructor.
2589 * javax/swing/plaf/basic/BasicProgressBarUI.java
2590 (animationTimer): Don't initialize at construction.
2591 (startAnimationTimer): Added since tag.
2592 (stopAnimationTimer): Likewise.
2593 (installUI): Use new Timer constructor.
2594 * javax/swing/plaf/basic/BasicScrollBarUI.java
2595 (installUI): Likewise.
2596 * javax/swing/plaf/basic/BasicSliderUI.java
2597 (installUI): Likewise.
2599 2004-06-10 Michael Koch <konqueror@gmx.de>
2601 * javax/swing/ButtonGroup.java
2602 (serialVersionUID): Made private.
2603 (buttons): Renamed from v, added javadoc.
2604 (sel): Added javadoc.
2605 (ButtonGroup): Likewise.
2608 (getElements): Likewise.
2609 (getSelection): Likewise.
2610 (setSelected): Likewise.
2611 (isSelected): Likewise.
2612 (getButtonCount): Likewise.
2614 2004-06-10 Michael Koch <konqueror@gmx.de>
2616 * javax/swing/ButtonGroup.java,
2617 javax/swing/ImageIcon.java,
2618 javax/swing/JEditorPane.java,
2619 javax/swing/JRootPane.java,
2620 javax/swing/JTextField.java,
2621 javax/swing/LookAndFeel.java,
2622 javax/swing/plaf/basic/BasicTextUI.java:
2625 2004-06-10 Michael Koch <konqueror@gmx.de>
2627 * javax/swing/text/Style.java: Added javadocs.
2629 2004-06-10 Michael Koch <konqueror@gmx.de>
2631 * javax/swing/JComponent.java
2632 (fireVetoableChange): Removed redundant cast.
2633 * javax/swing/JLabel.java
2634 (getDisabledIcon): Save icon for next call.
2636 2004-06-10 Michael Koch <konqueror@gmx.de>
2638 * javax/swing/KeyStroke.java
2639 (getKeyStroke(char,boolean)): Marked deprecated.
2641 2004-06-10 Michael Koch <konqueror@gmx.de>
2643 * javax/swing/DefaultCellEditor.java,
2644 javax/swing/GrayFilter.java,
2645 javax/swing/event/DocumentEvent.java,
2646 javax/swing/text/JTextComponent.java,
2647 javax/swing/text/MutableAttributeSet.java:
2650 2004-06-10 Michael Koch <konqueror@gmx.de>
2652 * javax/swing/plaf/BorderUIResource.java:
2653 Added serialVersionUID all over.
2655 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2657 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2659 2004-06-10 Michael Koch <konqueror@gmx.de>
2661 * javax/swing/table/DefaultTableCellRenderer.java
2662 (noFocusBorder): Initialize directly.
2664 2004-06-10 Michael Koch <konqueror@gmx.de>
2666 * javax/swing/plaf/basic/BasicArrowButton.java
2667 (setDirection): Use method argument.
2669 2004-06-10 Michael Koch <konqueror@gmx.de>
2671 * javax/swing/plaf/BorderUIResource.java,
2672 javax/swing/plaf/ComponentUI.java,
2673 javax/swing/undo/CompoundEdit.java,
2674 javax/swing/undo/StateEdit.java:
2675 Fixed javadocs all over.
2677 2004-06-10 Michael Koch <konqueror@gmx.de>
2679 * javax/swing/DefaultButtonModel.java
2680 (ARMED): Made public final, fixed value.
2681 (ENABLED): Likewise.
2682 (PRESSED): Likewise.
2683 (ROLLOVER): Likewise.
2684 (SELECTED): Likewise.
2685 (stateMask): Initialize directly.
2686 (listenerList): Likewise.
2687 (mnemonic): Likewise.
2688 (fireStateChanged): Removed argument, use changeEvent as event.
2689 All places where this method is called are fixed too.
2690 (getActionCommant): Fixed javadoc.
2691 (setGroup): Fixed javadoc.
2692 (getGroup): New method.
2694 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2696 * javax/swing/AbstractButton.java
2697 (AbstractButton): Use init() to initialize the button.
2698 (init): New Method. Initializes AbstractButton.
2699 * javax/swing/JMenuItem.java: Documented.
2700 (JMenuItem): Reimplemented.
2701 (init): Implemented.
2702 (setEnabled): Changed to call super.setEnabled()
2703 (processMouseEvent): Reimplemented.
2704 (fireMenuKeyPressed): Implemented.
2705 (fireMenuKeyReleased): Implemented.
2706 (fireMenuKeyTyped): Implemented.
2707 (menuSelectionChanged): disarm the model if the menu item was
2709 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2710 (getPath): Change to use ArrayList instead of Vector.
2711 (getPreferredSize): Renamed variable.
2712 (paintMenuItem): Paint margin area of menu item.
2713 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2714 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2715 menu item's bounds before clearing the selection.
2717 2004-06-09 David Jee <djee@redhat.com>
2719 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2720 (GtkTextComponentPeer): Set caret position to 0.
2721 * java/awt/TextComponent.java
2722 (setText): Set caret position to 0.
2723 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2724 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2725 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2726 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2728 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2729 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2732 2004-06-09 Kim Ho <kho@redhat.com>
2734 * Makefile.am: New files
2735 * Makefile.in: Regenerated
2736 * java/awt/Container.java
2737 (getComponentAt): Removed.
2738 * javax/swing/AbstractAction.java
2739 (ENABLED_PROPERTY): New property.
2740 (putValue): Fire PropertyChangeEvents.
2741 (setEnabled): ditto.
2742 (firePropertyChange): Javadoc and implement
2744 * javax/swing/AbstractButton.java
2745 (setAction): Don't create PropertyChangeListener
2746 if new Action is null.
2747 (setIcon): Don't set icon till after comparing
2749 (configurePropertiesFromAction): Check mnemonic
2750 key before calling intValue().
2751 (createActionPropertyChangeListener): Check
2752 properties rather than bulk change.
2753 * javax/swing/DefaultDesktopManager.java:
2755 * javax/swing/DesktopManager.java:
2757 * javax/swing/JComponent.java
2758 (fireVetoableChange): Implement.
2759 (paintImmediately): Use root component.
2760 * javax/swing/JDesktopPane.java: Implement
2761 * javax/swing/JInternalFrame.java: Implement
2762 * javax/swing/JLabel.java
2763 (getDisabledIcon): Return grayscaled icon if
2764 no disabled icon specified.
2765 * javax/swing/JMenuBar.java
2766 (getComponentAtIndex): Use getComponent
2767 * javax/swing/JOptionPane.java
2768 (getDesktopPaneForComponent): Use SwingUtilities'
2770 (getFrameForComponent): ditto.
2771 * javax/swing/JSplitPane.java
2772 (remove): Use getComponent.
2773 * javax/swing/SwingUtilities.java
2774 (convertPoint): Implement.
2775 * javax/swing/plaf/basic/BasicButtonUI.java
2776 (paintButtonNormal): Check opaqueness before
2778 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2780 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2782 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2784 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2786 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2787 Change InternalFrame and Desktop colors.
2789 2004-06-09 David Jee <djee@redhat.com>
2791 * java/awt/Container.java
2792 (remove): Do not set component to invisible.
2794 2004-06-09 Michael Koch <konqueror@gmx.de>
2796 * javax/swing/tree/DefaultMutableTreeNode.java
2797 (getLeafCount): Renamed enum to e.
2799 2004-06-09 Michael Koch <konqueror@gmx.de>
2801 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2802 (positionForMouseEvent): Removed redundant semicolon.
2803 (continueDrag): Use method arguments.
2805 2004-06-09 Michael Koch <konqueror@gmx.de>
2807 * javax/swing/border/TitledBorder.java,
2808 javax/swing/filechooser/FileSystemView.java,
2809 javax/swing/plaf/basic/BasicButtonListener.java,
2810 javax/swing/plaf/basic/BasicGraphicsUtils.java,
2811 javax/swing/plaf/basic/BasicLabelUI.java,
2812 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2813 javax/swing/plaf/basic/BasicScrollBarUI.java,
2814 javax/swing/plaf/basic/BasicScrollPaneUI.java,
2815 javax/swing/plaf/basic/BasicSliderUI.java,
2816 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2817 javax/swing/plaf/basic/BasicToggleButtonUI.java,
2818 javax/swing/table/JTableHeader.java,
2819 javax/swing/text/AbstractDocument.java,
2820 javax/swing/text/DefaultCaret.java,
2821 javax/swing/text/StyledEditorKit.java,
2822 javax/swing/tree/DefaultTreeCellEditor.java:
2823 Reworked import statements.
2825 2004-06-08 Graydon Hoare <graydon@redhat.com>
2827 * javax/swing/Box.java: Temporarily comment out code
2828 broken due to visibility bug.
2830 2004-06-09 Michael Koch <konqueror@gmx.de>
2832 * javax/swing/ImageIcon.java
2833 (ImageIcon): Added missing constructor.
2835 2004-06-08 Michael Koch <konqueror@gmx.de>
2837 * javax/swing/JToggleButton.java
2838 (JToggleButton): New constructor.
2839 (getAccessibleContext): Moved documentation into javadoc.
2840 (getUIClassID): Likewise.
2842 2004-06-08 Michael Koch <konqueror@gmx.de>
2844 * javax/swing/AbstractButton.java
2845 (getDisabledIcon): Create disabled icon if none exists yet.
2847 2004-06-08 Michael Koch <konqueror@gmx.de>
2849 * javax/swing/plaf/basic/BasicLookAndFeel.java
2850 (initClassDefaults): Added FormattedTextFieldUI.
2851 (loadResourceBundle): Renamed enum to e.
2853 2004-06-08 Michael Koch <konqueror@gmx.de>
2855 * javax/swing/plaf/basic/BasicButtonUI.java
2856 (paintIcon): Simplified.
2857 (paintText): Paint disabled button correctly.
2859 2004-06-08 Michael Koch <konqueror@gmx.de>
2861 * javax/swing/JComponent.java
2862 (createToolTip): Use official JToolTip API.
2864 2004-06-08 Michael Koch <konqueror@gmx.de>
2866 * javax/swing/JToolTip.java
2867 (JToolTip): No arguments in API.
2868 (setTipText): New method.
2870 2004-06-08 Michael Koch <konqueror@gmx.de>
2872 * javax/swing/SwingUtilities.java
2873 (isLeftMouseButton): New method.
2874 (isMiddleMouseButton): New method.
2875 (isRightMouseButton): New method.
2877 2004-06-08 Michael Koch <konqueror@gmx.de>
2879 * javax/swing/AbstractButton.java,
2880 javax/swing/CellRendererPane.java,
2881 javax/swing/JCheckBoxMenuItem.java,
2882 javax/swing/JColorChooser.java,
2883 javax/swing/JComboBox.java,
2884 javax/swing/JComponent.java,
2885 javax/swing/JDesktopPane.java,
2886 javax/swing/JFileChooser.java,
2887 javax/swing/JMenu.java,
2888 javax/swing/JMenuItem.java,
2889 javax/swing/JOptionPane.java,
2890 javax/swing/JPasswordField.java,
2891 javax/swing/JPopupMenu.java,
2892 javax/swing/JProgressBar.java,
2893 javax/swing/JRadioButtonMenuItem.java,
2894 javax/swing/JScrollBar.java,
2895 javax/swing/JSeparator.java,
2896 javax/swing/JSlider.java,
2897 javax/swing/JSplitPane.java,
2898 javax/swing/JTabbedPane.java,
2899 javax/swing/JTextField.java,
2900 javax/swing/JToolBar.java,
2901 javax/swing/text/JTextComponent.java:
2902 Fixed all constructors of accessibility classes.
2904 2004-06-08 Michael Koch <konqueror@gmx.de>
2906 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
2909 2004-06-08 Michael Koch <konqueror@gmx.de>
2911 * javax/swing/Box.java
2912 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
2913 (AccessibleBoxFiller.serialVersionUID): New member variable.
2914 * javax/swing/DefaultButtonModel.java
2915 (stateMask): Made protected.
2916 (listenerList): Likewise.
2917 (changeEvent): Likewise.
2919 (mnemonic): Likewise.
2920 (actionCommand): Likewise.
2921 (getListeners): New method.
2922 (getActionListeners): New method.
2923 (getItemListeners): New method.
2924 (getChangeListeners): New method.
2925 (fireItemStateChanged): Simplified.
2926 (fireActionPerformed): Simplified.
2927 (fireStateChanged): Simplified.
2928 * javax/swing/JFrame.java
2929 (JFrame): Implements WindowContants.
2930 (HIDE_ON_CLOSE): Removed.
2931 (EXIT_ON_CLOSE): Removed.
2932 (DISPOSE_ON_CLOSE): Removed.
2933 (DO_NOTHING_ON_CLOSE): Removed.
2934 (processWindowEvent): Exit with code 0.
2935 (setDefaultCloseOperation): Do security check before setting value.
2936 * javax/swing/JOptionPane.java
2937 (message): Initialize only in constructor.
2938 * javax/swing/JToolTip.java: Removed unused imports.
2939 * javax/swing/JViewport.java
2940 (serialVersionUID): New member variable.
2941 (SIMPLE_SCROLL_MODE): Made final, fixed value.
2942 (BLIT_SCROLL_MODE): Likewise.
2943 (BACKINGSTORE_SCROLL_MODE): Likewise.
2944 (scrollUnderway): Made protected.
2945 (isViewSizeSet): Likewise.
2946 * javax/swing/ListModel.java: Fixed javadoc.
2947 * javax/swing/Popup.java: Likewise.
2948 * javax/swing/RepaintManager.java
2949 (paintDirtyRegions): Don't use internal classes of
2950 java.util.AbstractMap.
2951 * javax/swing/ScrollPaneConstants.java: Reindented.
2952 * javax/swing/ScrollPaneLayout.java
2953 (viewport): Made protected.
2954 (verticalScrollBar): Made protected, renamed to vsb.
2955 (horizontalScrollBar): Made protected, renamed to hsb.
2956 (rowHeader): Made protected, renamed to rowHead.
2957 (columnHeader): Made protected, renamed to colHead.
2958 (lowerLeft): Made protected.
2959 (lowerRight): Made protected.
2960 (upperLeft): Made protected.
2961 (upperRight): Made protected.
2962 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
2963 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
2965 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
2967 * java/awt/MediaTracker.java (imageUpdate): Only set status to
2968 LOADING if flags has SOMEBITS set.
2970 2004-06-07 Michael Koch <konqueror@gmx.de>
2972 * javax/swing/AbstractButton.java: Reorganized imports.
2973 * javax/swing/ActionMap.java: Likewise.
2974 * javax/swing/DefaultButtonModel.java: Likewise.
2975 * javax/swing/DefaultListModel.java: Likewise.
2976 * javax/swing/ImageIcon.java: Likewise.
2977 (serialVersionUID): New member variable.
2978 * javax/swing/JComboBox.java: Reorganized imports.
2979 * javax/swing/JComponent.java: Likewise.
2980 (ui): Made protected.
2981 (listenerList): Made protected.
2982 (TOOL_TIP_TEXT_KEY): New constant.
2983 (scrollRectToVisible): Removed redundant null check.
2984 * javax/swing/JFrame.java: Reorganized imports.
2985 * javax/swing/JInternalFrame.java: Reorganized imports.
2986 * javax/swing/JProgressBar.java: Likewise.
2987 * javax/swing/JRootPane.java: Likewise.
2988 * javax/swing/JScrollBar.java: Likewise.
2989 * javax/swing/JSeparator.java: Likewise.
2990 * javax/swing/JSlider.java: Likewise.
2991 * javax/swing/JTabbedPane.java: Likewise.
2992 * javax/swing/JTextField.java: Likewise.
2993 * javax/swing/JToolBar.java: Likewise.
2994 * javax/swing/JTree.java: Likewise.
2995 * javax/swing/JViewport.java: Likewise.
2996 * javax/swing/JWindow.java: Likewise.
2997 * javax/swing/KeyStroke.java: Likewise.
2998 * javax/swing/LookAndFeel.java: Likewise.
2999 * javax/swing/MenuSelectionManager.java: Likewise.
3000 * javax/swing/SwingUtilities.java: Likewise.
3001 * javax/swing/Timer.java: Likewise.
3002 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3003 * javax/swing/JList.java
3004 (HORIZONTAL_WRAP): Made final, fixed value.
3005 (VERTICAL): Likewise.
3006 (VERTICAL_WRAP): Likewise.
3008 2004-06-07 Michael Koch <konqueror@gmx.de>
3010 * javax/swing/AbstractButton.java
3011 (serialVersionUID): New member variable.
3012 (AccessibleAbstractButton.serialVersionUID): Likewise.
3013 (AbstractButton): Made public.
3014 * javax/swing/Box.java
3015 (AccessibleBox.serialVersionUID): New member variable.
3016 (Filler.serialVersionUID): Likewise.
3017 * javax/swing/DefaultListSelectionModel.java
3018 (serialVersionUID): Likewise.
3019 * javax/swing/JApplet.java
3020 (serialVersionUID): Likewise.
3021 * javax/swing/JCheckBox.java
3022 (serialVersionUID): Likewise.
3023 * javax/swing/JCheckBoxMenuItem.java
3024 (serialVersionUID): Likewise.
3025 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3026 * javax/swing/JColorChooser.java
3027 (serialVersionUID): Likewise.
3028 (AccessibleJColorChooser.serialVersionUID): Likewise.
3029 * javax/swing/JComponent.java
3030 (serialVersionUID): Made private.
3031 (AccessibleJComponent.serialVersionUID): New member variable.
3032 * javax/swing/JDesktopPane.java
3033 (serialVersionUID): Likewise.
3034 * javax/swing/JDialog.java
3035 (serialVersionUID): Likewise.
3036 * javax/swing/JFormattedTextField.java
3037 (serialVersionUID): Fixed value.
3038 * javax/swing/JFrame.java
3039 (serialVersionUID): New member variable.
3040 (getDefaultCloseOpertation): Made public.
3041 * javax/swing/JLayeredPane.java
3042 (serialVersionUID): Likewise.
3043 (LAYER_PROPERTY): Made final, fixed value.
3044 (JLayeredPane): Made public.
3045 * javax/swing/JMenu.java
3046 (AccessibleJMenu.serialVersionUID): New member variable.
3047 (WinListener.serialVersionUID): Likewise.
3048 * javax/swing/JMenuBar.java
3049 (serialVersionUID): Likewise.
3050 (getComponentAtIndex): Added @deprecated tag.
3051 * javax/swing/JMenuItem.java
3052 (serialVersionUID): New member variable.
3053 (AccessibleJMenuItem.serialVersionUID): Likewise.
3054 * javax/swing/JOptionPane.java
3055 (serialVersionUID): Likewise.
3056 (AccessibleJOptionPane.serialVersionUID): Likewise.
3057 * javax/swing/JPopupMenu.java
3058 (serialVersionUID): Likewise.
3059 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3060 (getPopupMenuListeners): New method.
3061 (getComponentAtIndex): Added @deprecated tag.
3062 * javax/swing/JProgressBar.java
3063 (serialVersionUID): New member variable.
3064 (AccessibleJProgressBar.serialVersionUID): Likewise.
3065 * javax/swing/JRadioButton.java
3066 (serialVersionUID): Likewise.
3067 * javax/swing/JRadioButtonMenuItem.java
3068 (serialVersionUID): Likewise.
3069 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3070 * javax/swing/JScrollBar.java
3071 (serialVersionUID): Likewise.
3072 (AccessibleJScrollBar.serialVersionUID): Likewise.
3073 * javax/swing/JSeparator.java
3074 (serialVersionUID): Likewise.
3075 (AccessibleJSeparator.serialVersionUID): Likewise.
3076 * javax/swing/JSlider.java: Fixed javadocs.
3077 (AccessibleJSlider.serialVersionUID): New member variable.
3078 * javax/swing/JSplitPane.java: Added copyright statement.
3079 (serialVersionUID): New member variable.
3080 (AccessibleJSplitPane.serialVersionUID): Likewise.
3081 * javax/swing/JTabbedPane.java
3082 (serialVersionUID): Likewise.
3083 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3084 (ModelListener.serialVersionUID): Likewise.
3085 (ModelListener.ModelListener): New constructor.
3086 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3087 (WRAP_TAB_LAYOUT): Likewise.
3088 * javax/swing/JTable.java
3089 (serialVersionUID): New member variable.
3090 * javax/swing/JToggleButton.java
3091 (serialVersionUID): Likewise.
3092 (ToggleButtonModel): Made static.
3093 (ToggleButtonModel.serialVersionUID): New member variable.
3094 * javax/swing/JToolTip.java
3095 (serialVersionUID): Likewise.
3096 * javax/swing/JTree.java
3097 (serialVersionUID): Likewise.
3098 * javax/swing/JWindow.java
3099 (serialVersionUID): Likewise.
3100 * javax/swing/Timer.java
3101 (serialVersionUID): Likewise.
3103 2004-06-06 Michael Koch <konqueror@gmx.de>
3105 * javax/swing/SwingConstants.java
3106 (NEXT): New constant.
3107 (PREVIOUS): Likewise.
3108 * javax/swing/UIManager.java
3109 (LookAndFeel): Made public.
3110 (LookAndFeel.getClassName): Likewise.
3111 (LookAndFeel.getName): Likewise.
3113 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3115 * javax/swing/JCheckBoxMenuItem.java:
3117 * javax/swing/JMenu.java: Likewise.
3118 * javax/swing/JMenuBar.java: Likewise.
3119 * javax/swing/JMenuItem.java: Likewise.
3120 * javax/swing/JPopupMenu.java: Likewise.
3121 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3122 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3123 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3124 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3125 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3126 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3127 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3129 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3131 * javax/swing/plaf/basic/BasicMenuUI.java:
3132 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3133 Call getPath() from super class instead.
3135 2004-05-31 David Jee <djee@redhat.com>
3137 * java/awt/Container.java
3138 (remove): Set component visibility to false after removing it.
3140 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3142 * java/awt/Component.java (getForeground): Return SystemColor if
3144 (getBackground): Likewise.
3146 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3147 (item_highlighted): New function.
3148 (connectSignals): Set item_highlighted as list's select
3151 * java/applet/Applet.java: Revert changes from 2004-04-29,
3152 2004-03-15 and 2004-03-14.
3154 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3155 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3158 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3159 "Dialog" as the default font.
3160 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3162 * java/awt/Component.java (getFont): Return "Dialog" font by
3164 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3165 Multiply size argument to pango_font_description_set_size by the
3166 DPI conversion factor rather than by PANGO_SCALE.
3167 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3168 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3169 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3170 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3171 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3172 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3173 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3175 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3176 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3177 Divide baseline y coordinate by DPI conversion factor rather
3178 than by PANGO_SCALE.
3179 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3180 (area_prepared): Fix typo.
3181 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3182 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3183 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3184 (dpi_conversion_factor): New global variable.
3185 (init_dpi_conversion_factor): New function to calculate and
3186 track DPI conversion factor.
3187 (dpi_changed_cb): New callback.
3188 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3190 2004-05-27 David Jee <djee@redhat.com>
3192 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3193 (getGraphics): Return a new GdkGraphics instance.
3194 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3195 (getGraphics): Call super.getGraphics().
3197 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3199 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3200 (setNativeBounds): Clamp width and height values to >= 0.
3202 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3203 (find_fg_color_widget): Handle GtkOptionMenu specially.
3205 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3206 (pre_event_handler): Only post configure events to visible
3209 2004-05-26 David Jee <djee@redhat.com>
3211 * java/awt/BorderLayout.java
3212 (layoutContainer): Fix size calculations.
3214 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3216 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3217 (window_wm_protocols_filter): Remove function.
3218 (create): Remove filter that removes WM_TAKE_FOCUS client
3221 2004-06-17 Anthony Green <green@redhat.com>
3223 * java/util/zip/ZipFile.java (getInputStream): Return null if
3226 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3227 directory contents to the class path.
3229 2004-06-15 Andrew Haley <aph@redhat.com>
3231 * java/lang/natSystem.cc (getenv0): Don't assume environment
3232 variable is Latin 1 coded.
3234 2004-06-14 Andreas Jaeger <aj@suse.de>
3236 * configure.in: Support --enable-version-specific-runtime-libs.
3237 * configure: Regenerated.
3239 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3241 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3242 to pass ClassLoader argument.
3243 * java/util/GregorianCalendar.java: Likewise.
3244 * java/util/Currency.java: Likewise.
3245 * java/text/BreakIterator.java: Likewise.
3246 * java/text/Collator.java: Likewise.
3247 * java/text/DateFormat.java: Likewise.
3248 * java/text/DateFormatSymbols.java: Likewise.
3249 * java/text/DecimalFormatSymbols.java: Likewise.
3250 * java/text/NumberFormat.java: Likewise.
3251 * java/awt/Window.java: Likewise.
3253 2004-06-14 Andrew Haley <aph@redhat.com>
3255 * java/lang/System.java: (getenv0): New method.
3256 (getenv): Add security check. Do the right thing.
3257 * java/lang/natSystem.cc (getenv0): New method.
3259 2004-06-12 Mark Wielaard <mark@klomp.org>
3261 * javax/swing/RepaintManager.java
3262 (paintDirtyRegions): Use entrySet(), not values().
3264 2004-06-10 Mark Wielaard <mark@klomp.org>
3266 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3269 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3271 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3272 when we already know the answer.
3273 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3274 (setStartRule,setEndRule): Don't take abs of day number.
3275 (getOffset): Clarify docs. Add argument checks.
3276 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3277 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3280 2004-06-10 Tom Tromey <tromey@redhat.com>
3282 * interpret.cc (run): Handle wide fload.
3284 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3286 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3288 2004-06-05 Michael Koch <konqueror@gmx.de>
3290 * javax/swing/SwingConstants.java
3291 (NEXT): New constant.
3292 (PREVIOUS): Likewise.
3294 2004-06-05 Michael Koch <konqueror@gmx.de>
3296 * javax/swing/UIManager.java
3297 (LookAndFeel): Made public.
3298 (LookAndFeel.getName): Likewise.
3299 (LookAndFeel.getClassName): Likewise.
3301 2004-06-03 Michael Koch <konqueror@gmx.de>
3303 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3304 (requestFocus): Revert last changes.
3305 (gtkRequestFocus): Removed.
3306 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3307 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3309 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3310 Reverted last patch.
3311 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3312 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3313 Reverted comment change.
3315 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3317 * javax/swing/JCheckBoxMenuItem.java:
3319 * javax/swing/JMenu.java: Likewise.
3320 * javax/swing/JMenuBar.java: Likewise.
3321 * javax/swing/JMenuItem.java: Likewise.
3322 * javax/swing/JPopupMenu.java: Likewise.
3323 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3324 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3325 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3326 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3327 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3328 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3329 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3331 2004-06-01 Tom Tromey <tromey@redhat.com>
3333 * java/io/ObjectStreamField.java: Cleaned up imports.
3335 2004-06-01 Michael Koch <konqueror@gmx.de>
3337 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3339 2004-06-01 Mark Wielaard <mark@klomp.org>
3341 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3343 2004-06-01 Michael Koch <konqueror@gmx.de>
3345 * java/security/Security.java
3346 (insertProviderAt): Use equals() instead of ==.
3347 (removeProvicer): Likewise.
3348 (getProvider): Likewise.
3349 * java/security/Signature.java
3350 (sign): Don't set state to UNINITIALIZED.
3353 2004-06-01 Mark Wielaard <mark@klomp.org>
3355 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3356 Implement by calling gtkRequestFocus.
3357 (gtkRequestFocus): New native method.
3358 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3359 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3361 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3363 (filter_expose_event_handler):
3365 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3366 (menu_pos): Mark static.
3368 2004-06-01 Michael Koch <konqueror@gmx.de>
3370 * java/text/CollationElementIterator.java,
3371 java/text/CollationKey.java,
3372 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3373 * testsuite/libjava.mauve/xfails: Removed all
3374 java.text.CollationElementIterator tests.
3376 2004-06-01 Michael Koch <konqueror@gmx.de>
3378 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3380 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3381 Java 1.5 keyword usage.
3383 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3385 * javax/swing/plaf/basic/BasicMenuUI.java:
3386 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3387 Call getPath() from super class instead.
3389 2004-05-31 Michael Koch <konqueror@gmx.de>
3391 * java/io/SequenceInputStream.java:
3392 Rename enum to e because enum is a keyword in Java 1.5.
3394 2004-05-31 Michael Koch <konqueror@gmx.de>
3396 * gnu/java/rmi/rmic/CompilerProcess.java:
3397 Fixed javadoc to by XHTML compliant.
3399 2004-05-30 Mark Wielaard <mark@klomp.org>
3401 * java/awt/Toolkit.java (loadSystemColors): Implement.
3403 2004-05-30 Michael Koch <konqueror@gmx.de>
3405 * java/lang/System.java: Reordered imports.
3407 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3409 * java/text/DecimalFormat.java
3410 (parse): Fixed parsing of decimal strings. Number of maximum
3411 digits to be read should now work.
3412 * java/text/SimpleDateFormat.java
3413 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3414 formatter. This fixes DateFormatTest.
3416 2004-05-30 Michael Koch <konqueror@gmx.de>
3418 * java/nio/Buffer.java
3419 (limit): Fixed off by one error.
3420 * java/nio/CharBuffer.java
3421 (wrap): Fixed arguments, added javadocs.
3423 2004-05-30 Michael Koch <konqueror@gmx.de>
3425 * gnu/java/beans/BeanInfoEmbryo.java,
3426 java/awt/im/InputContext.java,
3427 javax/swing/tree/DefaultMutableTreeNode.java:
3428 Rename enum to e because enum is a keyword in Java 1.5.
3430 2004-05-30 Michael Koch <konqueror@gmx.de>
3432 * gnu/java/math/MPN.java,
3433 java/awt/geom/Arc2D.java:
3434 Fixed javadocs all over.
3436 2004-05-30 Michael Koch <konqueror@gmx.de>
3438 * java/awt/DefaultKeyboardFocusManager.java
3439 (dispatchEvent): Call method to get key event dispatchers.
3440 (dispatchKeyEvent): Call method to get key event post processors.
3441 * javax/swing/JComponent.java
3442 (listenerList): Made protected.
3443 * javax/swing/JOptionPane.java
3444 (message): Don't initialize.
3445 (JOptionPane): Set message text.
3446 * javax/swing/JPopupMenu.java
3447 (show): Fixed typo in argument name.
3448 * javax/swing/RepaintManager.java
3449 (paintDirtyRegions): Use public API of java.util.Map.
3450 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3451 (positionForMouseEvent): Removed redundant ';'.
3452 (continueDrag): Use method arguments.
3454 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3456 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3459 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3461 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3463 * gnu/gcj/RawDataManaged.java: New file.
3464 * java/lang/Thread.java (data): Declare as RawDataManaged.
3465 * java/lang/natThread.cc (init_native): Cast natThread data to
3466 RawDataManaged, not jobject.
3467 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3468 * Makefile.in: Rebuilt.
3470 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3472 * java/util/SimpleTimeZone.java: Reverting my last change until I
3473 can fix it properly.
3475 2004-05-27 Michael Koch <konqueror@gmx.de>
3477 * javax/swing/JPopupMenu.java
3478 (isVisible): Do not use visible directly.
3479 (setVisible): Likewise.
3480 * javax/swing/JWindow.java
3481 (JWindow): call accessible constructor.
3482 * javax/swing/RepaintManager.java
3483 (paintDirtyRegions): Use public methods to obtain iterator.
3485 2004-05-25 David Jee <djee@redhat.com>
3487 * java/awt/Container.java
3488 (remove): Set component's parent to null only after we removed the
3489 component from its parent's layout manager.
3491 2004-05-25 David Jee <djee@redhat.com>
3493 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3494 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3496 * gnu/java/awt/peer/gtk/GtkListPeer.java
3497 (getSize): Change native method declaration.
3498 (minimumSize): Pass visible row count into getSize().
3499 (preferredSize): Likewise.
3500 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3501 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3502 natural size. Use visible row count to determine the final height
3505 2004-05-21 Graydon Hoare <graydon@redhat.com>
3507 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3508 (setClip): Minor correction to order of operations.
3510 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3511 * javax/swing/ScrollPaneLayout.java: Likewise.
3512 * javax/swing/JViewPort.java: Likewise.
3513 * javax/swing/ViewportLayout.java: Likewise.
3515 * javax/swing/JComponent.java: Rewrite.
3516 * javax/swing/RepaintManager.java: Likewise.
3518 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3519 * javax/swing/JList.java
3520 (setSelectedIndices):
3521 (getSelectedIndices):
3522 (getSelectedValues): New functions.
3523 (getPreferredScrollableViewportSize): Return preferred size.
3524 (getScrollableUnitIncrement):
3525 (getScrollableBlockIncrement): Initial implementations.
3526 * javax/swing/JRootPane.java: Clean up slightly.
3531 (isValidateRoot): Add overrides from JComponent.
3532 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3533 * javax/swing/UIManager.java (getDimension): Return the dimension.
3535 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3536 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3537 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3538 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3539 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3540 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3541 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3542 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3543 Likewise, and set background.
3544 * javax/swing/plaf/basic/BasicListUI.java:
3545 Likewise, and improve a bit.
3546 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3547 Likewise, and adjust calculations.
3548 * javax/swing/plaf/basic/BasicViewportUI.java:
3549 Likewise, and improve a bit.
3550 * javax/swing/plaf/basic/BasicLookAndFeel.java
3551 (Button.margin): Shrink.
3553 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3554 Hack to set horizontal always, workaround pango.
3556 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3557 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3558 Synchronize more often, check cairo status after ops,
3559 handle changes to cairo pattern API, check for disposal.
3561 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3563 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3564 (BasicMenuItemUI): Create propertyChangeListener.
3565 (getPath):Implemented.
3566 (installListeners): Add propertyChangeListener to menuItem.
3567 (uninstallListeners): Remove propertyChangeListener from menuItem.
3568 (update): Implemented.
3569 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3570 (mouseEntered): Take insets of popup menu into account when
3571 calculating position of popup menu.
3573 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3575 * Makefile.am: Added new file.
3576 * Makefile.in: Regenerate.
3577 * javax/swing/JMenuBar.java:
3578 Started implementation.
3579 * javax/swing/JPopupMenu.java:
3580 (setVisible): Fixed location of lightweight/mediumweight
3582 (show): Fixed location of PopupMenu.
3583 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3584 New file. UI Delegate for JMenuBar.
3585 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3586 (mouseEntered): Corrected position of the submenu.
3588 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3590 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3591 to _gtk_accel_group_attach.
3592 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3595 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3596 package access. Don't override setFont.
3597 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3598 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3599 gtkWidgetRequestFocus package access.
3600 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3602 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3603 Give gtkWidgetRequestFocus package access.
3604 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3605 gtkWidgetRequestFocus package access. Don't override setFont.
3606 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3608 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3609 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3611 (gtkSetFont): Likewise.
3612 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3614 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3615 (gtkSetFont): Whitespace fix.
3617 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3618 (gtkWidgetSetUsize): Remove method.
3620 2004-05-18 David Jee <djee@redhat.com>
3622 * java/awt/image/MemoryImageSource.java
3623 (newPixels(int,int,int,int,boolean)): Set only the specified
3624 rectangle of pixels.
3625 (newPixels(byte[],ColorModel,int,int)): Implement.
3626 (newPixels(int[],ColorModel,int,int)): Implement.
3628 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3630 * Makefile.am: Added new file.
3631 * Makefile.in: Regenerate.
3632 * javax/swing/JMenu.java: Started
3634 * javax/swing/JPopupMenu.java:
3635 (insert): If specified index is -1, then
3636 add component at the end.
3637 (isPopupTrigger): Reimplemented.
3638 (JPopupMenu.LightWeightPopup): setBounds
3639 of the lightWeightPopup before adding it
3641 (javax/swing/plaf/basic/BasicIconFactory.java):
3642 (getMenuArrowIcon): Implemented.
3643 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3644 (getPreferredSize): Add size of the arrow icon
3645 if this menu item is instance of JMenu.
3646 (paintMenuItem): Paint arrow icon if this
3647 menu item is a submenu.
3648 * javax/swing/plaf/basic/BasicMenuUI.java:
3649 New File. UI Delegate for JMenu.
3651 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3653 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3654 Post KEY_TYPED events.
3655 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3656 (generates_key_typed_event): Remove function.
3658 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3660 * javax/swing/JRootPane.java
3661 (JRootPane.RootLayout): Reimplemented to
3662 set bounds of contentPane and menuBar.
3663 (setJMenuBar): Add menu bar to the layered pane.
3664 (createLayeredPane): Set layout of layeredPane
3666 * javax/swing/JLayeredPane.java:
3667 (addImpl): Calculate index of the component in the
3668 layeredPane according to the specified position within
3671 2004-05-17 David Jee <djee@redhat.com>
3673 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3674 (setPixels): Change color model to the default model after
3676 * java/awt/image/MemoryImageSource.java
3677 (newPixels): Set only the specified rectangle of pixels.
3679 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3681 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3682 -l-java-beans -l-javax-accessibility -l-javax-swing.
3684 * java/awt/AWTEvent.java (toString): Print source's name rather
3685 than the source itself.
3687 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3689 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3691 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3692 (gdk_color_to_java_color): New function.
3693 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3695 2004-05-12 David Jee <djee@redhat.com>
3697 * java/awt/image/RGBImageFilter.java:
3698 Initialize origmodel as null.
3699 (makeColor): Fix pixel component order.
3700 (filterRGBPixels): Fix pixel iteration.
3701 (setPixels): Add extra checks for index color model. Convert pixels
3702 to default color model if necessary.
3703 (convertColorModelToDefault): New override method for byte pixels.
3704 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3705 (makeColorbyDefaultCM): New override method for byte pixels.
3706 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3707 (makeColor): Fix pixel component order.
3709 2004-05-11 Kim Ho <kho@redhat.com>
3711 * javax/swing/Box.java:
3712 Comment out more parts of Box.Filler.
3714 2004-05-11 Kim Ho <kho@redhat.com>
3716 * javax/swing/Box.java:
3717 Remove reference to AccessibleAWTComponent so
3720 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3722 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3723 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3724 implementation of list peer to use GtkTreeView instead of
3725 deprecated GtkCList.
3727 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3729 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3730 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3731 (handleEvent): Remove keyChar argument to
3732 gtkWidgetDispatchKeyEvent calls.
3733 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3735 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3736 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3737 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3740 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3742 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3743 (gtkWidgetRequestFocus): Mark protected.
3744 (GtkComponentPeer): Only set the peer's bounds if its component
3746 * java/awt/Component.java (static): Set the default keyboard
3748 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3749 requestFocusInWindow(temporary)): Don't request focus if the
3750 component is not showing. Get tree lock before traversing
3751 component hierarchy.
3752 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3753 Only set the global focus owner if it is not a Window.
3754 (processKeyEvent): Consume keystrokes associated with the focus
3755 traversal keystroke.
3756 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3757 downFocusCycle): Call requestFocusInWindow instead of
3759 * java/awt/EventDispatchThread.java (run): Move setting of
3760 default keyboard focus manager to Component.java.
3761 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3762 (awt_keycode_to_keysym): New function.
3763 (gtkWidgetDispatchKeyEvent): Finish implementation.
3764 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3765 (pre_event_handler): Add FIXME comment.
3767 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3768 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3769 (gtkWidgetRequestFocus): New method.
3770 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3771 disable Tab and Shift-Tab keystrokes.
3772 (addNotify, appendText, insertText, replaceText): Simplify peer
3774 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3775 (connectSignals): Remove connections to "commit" signals.
3776 Remove C++-style comments.
3778 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3779 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3780 (handleEvent): Activate GTK button when the space bar key is
3782 (gtkActivate): New method.
3784 2004-05-06 David Jee <djee@redhat.com>
3786 * java/awt/image/CropImageFilter.java
3787 (setPixels): Implement for byte array pixels.
3788 * java/awt/image/ReplicateScaleFilter.java
3789 (setPixels): Implement for byte array pixels.
3790 (replicatePixels): Overload for byte array pixels.
3792 2004-05-06 Kim Ho <kho@redhat.com>
3794 * javax/swing/Box.java:
3795 (getAccessibleContext): Return an instance of the
3798 2004-05-05 David Jee <djee@redhat.com>
3800 * gnu/java/awt/peer/gtk/GdkGraphics.java
3801 (drawImage): When component is null, use SystemColor.window as
3802 the default bgcolor.
3803 * gnu/java/awt/peer/gtk/GtkImage.java
3804 (setPixels): We can avoid iterating through the pixel rows only
3806 * java/awt/Image.java
3807 (getScaledInstance): Partially implement.
3808 * java/awt/image/CropImageFilter.java
3809 (setProperties): Fix "filter" property.
3810 (setPixels): Implement.
3811 * java/awt/image/ReplicateScaleFilter.java
3812 (setDimensions): Use scaled dimensions.
3813 (setPixels): Implement.
3814 (replicatePixels): New method.
3816 2004-05-05 David Jee <djee@redhat.com>
3818 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3819 (convertPixels): If either pixels or model is null, return null.
3820 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3821 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3822 is null, do nothing and return.
3824 2004-05-03 Kim Ho <kho@redhat.com>
3826 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3827 (getGraphics): Like GtkFramePeer, the Graphics
3828 object needs to be translate to account for
3830 (postMouseEvent): New method. Account for
3832 (postExposeEvent): ditto.
3833 * javax/swing/Box.java: Stubbed.
3834 * javax/swing/JDialog.java: Ran through jalopy
3836 (JDialog): Call SwingUtilities' getOwnerFrame
3838 (setLayout): Check isRootPaneCheckingEnabled
3839 * javax/swing/JOptionPane.java: Re-implemented.
3840 * javax/swing/SwingUtilities.java:
3841 (getOwnerFrame): Static method to grab a default
3842 owner frame for Dialogs that don't specify owners.
3843 * javax/swing/event/SwingPropertyChangeSupport.java:
3844 (firePropertyChange): Fix early exit condition.
3845 * javax/swing/plaf/basic/BasicLabelUI.java:
3846 (paint): Avoid painting text if it is null
3848 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3851 2004-05-03 Olga Rodimina <rodimina@redhat.com>
3853 * Makefile.am: Added new file.
3854 * Makefile.in: Regenerate.
3855 * javax/swing/JPopupMenu.java:
3856 Started implementation.
3857 * javax/swing/JWindow.java
3858 (JWindow): call super() if parent for window
3860 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3861 New File. UI Delegate for JPopupMenu.
3863 2004-04-30 Olga Rodimina <rodimina@redhat.com>
3865 * javax/swing/JApplet.java: Indicated that JApplet
3866 implements RootPaneContainer and made method of this
3868 * javax/swing/JFrame.java: Ditto.
3869 * javax/swing/JWindow.java: Ditto.
3871 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
3873 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3874 (nativeSetBounds): Call gdk_window_move in addition to
3877 * java/applet/Applet.java (preferredSize): Call parent's
3878 preferredSize if the applet stub is null.
3879 (minimumSize): Likewise for parent's minimumSize.
3881 2004-04-27 Olga Rodimina <rodimina@redhat.com>
3883 * javax/swing/JMenuItem.java
3884 (createActionPropertyChangeListener): Implemented.
3885 (processMouseEvent): Ditto.
3886 (fireMenuDragMouseEntered): Ditto.
3887 (fireMenuDragMouseExited): Ditto.
3888 (fireMenuDragMouseDragged): Ditto.
3889 (fireMenuDragMouseReleased): Ditto.
3890 (menuSelectionChanged): Ditto.
3891 (getSubElements): Ditto.
3892 (getComponent): Ditto.
3893 (addMenuDragMouseListener): Ditto.
3894 (removeMenuDragMouseListener):Ditto.
3895 (addMenuKeyListener): Ditto.
3896 (removeMenuKeyListener): Ditto.
3897 * javax/swing/plaf/basic/BasicMenuItemUI.java
3898 (doClick): Imlemented.
3899 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
3900 Don't handle mouse events here. Pass them to
3901 MenuSelectionManager.
3903 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3904 Used correct version of jalopy configuration
3905 file to fix style in the files below.
3907 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3909 * javax/swing/JCheckBoxMenuItem.java:
3910 Fixed style and removed unnecessary comments.
3911 * javax/swing/JMenuItem.java: Ditto.
3912 * javax/swing/JRadioButtonMenuItem.java: Ditto.
3913 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
3914 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
3915 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
3917 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3919 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
3922 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
3924 * java/awt/ContainerOrderFocusTraversalPolicy.java
3925 (getComponentAfter): Start from current component and work up
3926 the component hierarchy until an acceptable component is found.
3927 Synchronize on tree lock.
3928 (getComponentBefore): Likewise.
3930 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
3932 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
3933 focus-related debugging messages.
3934 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
3935 * java/awt/EventDispatchThread.java: Likewise.
3936 * java/awt/KeyboardFocusManager.java: Likewise.
3937 * java/awt/Window.java: Likewise.
3938 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3939 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3941 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
3942 new C++-style comments to C-style comments.
3943 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3945 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3946 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3947 (handleEvent): Dispatch key press and key release events to
3949 (requestFocus): Post a FOCUS_GAINED event to the event queue.
3950 (gtkWidgetRequestFocus): New method.
3951 (gtkWidgetDispatchKeyEvent): Likewise.
3952 * java/awt/Component.java (requestFocus, requestFocus(boolean),
3953 requestFocusInWindow, requestFocusInWindow(boolean),
3954 getFocusCycleRootAncestor, nextFocus, transferFocus,
3955 transferFocusBackward, transferFocusUpCycle, hasFocus,
3956 isFocusOwner): Implement and document focus-handling methods.
3957 (setFocusTraversalKeys): Inherit focus traversal keys when
3958 keystrokes argument is null. Fix focus-handling documentation
3960 * java/awt/Container.java (setFocusTraversalKeys,
3961 getFocusTraversalKeys, areFocusTraversalKeysSet,
3962 isFocusCycleRoot, setFocusTraversalPolicy,
3963 getFocusTraversalPolicy, isFocusTraversalPolicySet,
3964 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
3965 Implement and document focus-handling methods.
3966 (transferFocusBackward): Remove method.
3967 (readObject, writeObject): Implement and document serialization
3969 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
3971 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
3973 * java/awt/DefaultKeyboardFocusManager.java: Implement and
3975 * java/awt/EventDispatchThread.java (run): Set default keyboard
3976 focus manager. Attempt to dispatch each event to the keyboard
3977 focus manager before normal dispatch.
3978 * java/awt/KeyboardFocusManager.java: Implement and partially
3980 * java/awt/Window.java (Window): Set focusCycleRoot to true.
3981 (show): Focus initial component when window is shown for the
3983 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3984 (pre_event_handler): Replace complex key press and key release
3985 logic with simple callbacks into GtkComponentPeer.
3986 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
3988 2004-04-21 Olga Rodimina <rodimina@redhat.com>
3990 * javax/swing/MenuSelectionManager.java
3991 (componentForPoint): Added new method.
3992 (defaultManager): New Method. Implemented.
3993 (getSelectedPath): Ditto.
3994 (isComponentPartOfCurrentMenu): Ditto.
3995 (processKeyEvent): Added new method.
3996 (processMouseEvent): New Method. Implemented.
3997 (setSelectedPath): Ditto.
4000 2004-04-19 Kim Ho <kho@redhat.com>
4002 * java/awt/Container.java:
4003 (remove): Set the component's parent to null.
4004 (getComponentAt): Implement.
4005 * javax/swing/JComponent.java:
4006 (JComponent): Initialize defaultLocale
4007 (getDefaultLocale): Implement.
4008 (setDefaultLocale): ditto.
4009 * javax/swing/JSlider.java:
4010 (JSlider): Fix calculation of value.
4011 * javax/swing/JSplitPane.java: Implement.
4012 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4013 Change SplitPane's default divider size.
4014 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4015 (paint): Remove unused code.
4016 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4017 Added comments and ran through jalopy.
4018 (setBasicSplitPaneUI): Get reference to hidden divider
4019 and set up one touch buttons if necessary.
4020 (setBorder): Fire propertyChangeEvent only if
4021 borders are different.
4022 (getPreferredSize): Defer to layout manager.
4023 (propertyChange): Implement.
4024 (oneTouchExpandableChanged): ditto.
4025 (createLeftOneTouchButton): Use BasicArrowButton.
4026 (createRightOneTouchButton): ditto.
4027 (moveDividerTo): New method. Moves the divider
4028 to a set location based on the last divider location.
4029 (BasicSplitPaneDivider::MouseHandler): Implement.
4030 (BasicSplitPaneDivider::OneTouchButton): Removed.
4031 (BasicSplitPaneDivider::DragController): Implement.
4032 (BasicSplitPaneDivider::VerticalDragController):
4034 (BasicSplitPaneDivider::DividerLayout): ditto.
4035 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4036 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4037 (calculateLayoutInfo): Don't show component if it's
4039 (paintTab): Fix title paint logic.
4041 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
4044 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4045 (setStartRule,setEndRule): Don't take abs of day number.
4046 (getOffset): Clarify docs. Add argument checks.
4047 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4048 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4050 * testsuite/libjava.mauve/xfails
4051 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4053 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4055 Layout interfaces during preparation, not initialization.
4056 * java/lang/natClass.cc (initializeClass): Move
4057 _Jv_LayoutInterfaceMethods call...
4058 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4060 2004-05-19 Anthony Green <green@localhost.localdomain>
4062 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4064 * Makefile.in: Rebuilt.
4065 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4066 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4067 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4068 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4069 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4070 gnu/javax/rmi/CORBA/DelegateFactory.java,
4071 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4072 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4073 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4074 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4075 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4076 gnu/javax/rmi/PortableServer.java: Remove files.
4078 2004-05-19 Anthony Green <green@redhat.com>
4080 * Makefile.am: Define JAVA_EXT_DIRS.
4081 * Makefile.in: Rebuilt.
4082 * java/lang/natRuntime.cc (insertSystemProperties): Set
4083 java.ext.dirs property.
4085 2004-05-16 Mark Wielaard <mark@klomp.org>
4087 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4089 2004-05-15 Mark Wielaard <mark@klomp.org>
4091 * doc/cni.sgml: Removed, merged into gcj.texi.
4093 2004-05-15 Mark Wielaard <mark@klomp.org>
4095 * Makefile.am (ordinary_java_source_files): Add new javax.print
4097 * Makefile.in: Regenerated.
4099 2004-05-15 Michael Koch <konqueror@gmx.de>
4101 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4102 javax/print/attribute/standard/DateTimeAtCreation.java,
4103 javax/print/attribute/standard/DateTimeAtProcessing.java,
4104 javax/print/attribute/standard/DocumentName.java,
4105 javax/print/attribute/standard/JobHoldUntil.java,
4106 javax/print/attribute/standard/JobImpressionsCompleted.java,
4107 javax/print/attribute/standard/JobMessageFromOperator.java,
4108 javax/print/attribute/standard/JobName.java,
4109 javax/print/attribute/standard/JobOriginatingUserName.java,
4110 javax/print/attribute/standard/JobPriority.java,
4111 javax/print/attribute/standard/JobPrioritySupported.java,
4112 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4113 javax/print/attribute/standard/OutputDeviceAssigned.java,
4114 javax/print/attribute/standard/PrinterInfo.java,
4115 javax/print/attribute/standard/PrinterLocation.java,
4116 javax/print/attribute/standard/PrinterMakeAndModel.java,
4117 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4118 javax/print/attribute/standard/PrinterName.java,
4119 javax/print/attribute/standard/QueuedJobCount.java,
4120 javax/print/attribute/standard/RequestingUserName.java:
4121 Fixed javadocs all over.
4123 2004-05-15 Michael Koch <konqueror@gmx.de>
4125 * javax/print/DocFlavor.java,
4126 javax/print/attribute/standard/ColorSupported.java,
4127 javax/print/attribute/standard/Compression.java,
4128 javax/print/attribute/standard/CopiesSupported.java,
4129 javax/print/attribute/standard/Fidelity.java,
4130 javax/print/attribute/standard/Finishings.java,
4131 javax/print/attribute/standard/JobImpressionsSupported.java,
4132 javax/print/attribute/standard/JobKOctetsSupported.java,
4133 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4134 javax/print/attribute/standard/JobSheets.java,
4135 javax/print/attribute/standard/JobState.java,
4136 javax/print/attribute/standard/JobStateReason.java,
4137 javax/print/attribute/standard/JobStateReasons.java,
4138 javax/print/attribute/standard/Media.java,
4139 javax/print/attribute/standard/MediaSizeName.java,
4140 javax/print/attribute/standard/MultipleDocumentHandling.java,
4141 javax/print/attribute/standard/NumberUpSupported.java,
4142 javax/print/attribute/standard/OrientationRequested.java,
4143 javax/print/attribute/standard/PDLOverrideSupported.java,
4144 javax/print/attribute/standard/PageRanges.java,
4145 javax/print/attribute/standard/PresentationDirection.java,
4146 javax/print/attribute/standard/PrintQuality.java,
4147 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4148 javax/print/attribute/standard/PrinterMoreInfo.java,
4149 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4150 javax/print/attribute/standard/PrinterResolution.java,
4151 javax/print/attribute/standard/PrinterState.java,
4152 javax/print/attribute/standard/PrinterStateReason.java,
4153 javax/print/attribute/standard/PrinterStateReasons.java,
4154 javax/print/attribute/standard/PrinterURI.java,
4155 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4156 javax/print/attribute/standard/Severity.java,
4157 javax/print/attribute/standard/SheetCollate.java,
4158 javax/print/attribute/standard/Sides.java:
4159 Added serialVersionUID and removed final keyword where it doenst
4162 2004-05-15 Michael Koch <konqueror@gmx.de>
4164 * javax/print/PrintServiceLookup.java: New file.
4166 2004-05-15 Michael Koch <konqueror@gmx.de>
4168 * javax/print/DocFlavor.java:
4169 Implemented all flavor classes.
4171 2004-05-15 Michael Koch <konqueror@gmx.de>
4173 * javax/print/attribute/standard/ColorSupported.java,
4174 javax/print/attribute/standard/Compression.java,
4175 javax/print/attribute/standard/CopiesSupported.java,
4176 javax/print/attribute/standard/Fidelity.java,
4177 javax/print/attribute/standard/Finishings.java,
4178 javax/print/attribute/standard/JobImpressionsSupported.java,
4179 javax/print/attribute/standard/JobKOctetsSupported.java,
4180 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4181 javax/print/attribute/standard/JobSheets.java,
4182 javax/print/attribute/standard/JobState.java,
4183 javax/print/attribute/standard/JobStateReason.java,
4184 javax/print/attribute/standard/JobStateReasons.java,
4185 javax/print/attribute/standard/Media.java,
4186 javax/print/attribute/standard/MediaSizeName.java,
4187 javax/print/attribute/standard/MultipleDocumentHandling.java,
4188 javax/print/attribute/standard/NumberUpSupported.java,
4189 javax/print/attribute/standard/OrientationRequested.java,
4190 javax/print/attribute/standard/PDLOverrideSupported.java,
4191 javax/print/attribute/standard/PageRanges.java,
4192 javax/print/attribute/standard/PresentationDirection.java,
4193 javax/print/attribute/standard/PrintQuality.java,
4194 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4195 javax/print/attribute/standard/PrinterMoreInfo.java,
4196 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4197 javax/print/attribute/standard/PrinterResolution.java,
4198 javax/print/attribute/standard/PrinterState.java,
4199 javax/print/attribute/standard/PrinterStateReason.java,
4200 javax/print/attribute/standard/PrinterStateReasons.java,
4201 javax/print/attribute/standard/PrinterURI.java,
4202 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4203 javax/print/attribute/standard/Severity.java,
4204 javax/print/attribute/standard/SheetCollate.java,
4205 javax/print/attribute/standard/Sides.java: New files.
4207 2004-05-15 Michael Koch <konqueror@gmx.de>
4209 * javax/print/Doc.java
4210 (getPrintData): Throws IOException.
4211 (getReaderForText): Likewise.
4212 (getStreamForBytes): Likewise.
4213 * javax/print/DocFlavor.java:
4214 Fixed filename in copyright.
4215 (serialVersionUID): New field.
4216 * javax/print/ServiceUIFactory.java:
4217 Made all constants final.
4218 * javax/print/AttributeException.java
4219 javax/print/MultiDoc.java
4220 javax/print/MultiDocPrintJob.java
4221 javax/print/MultiDocPrintService.java
4222 javax/print/StreamPrintService.java
4223 javax/print/URIException.java: New files.
4224 * javax/print/Makefile.am
4225 (EXTRA_DIST): Added all new files.
4227 2004-05-15 Michael Koch <konqueror@gmx.de>
4229 * javax/print/attribute/standard/Copies.java,
4230 javax/print/attribute/standard/DateTimeAtCompleted.java,
4231 javax/print/attribute/standard/DateTimeAtCreation.java,
4232 javax/print/attribute/standard/DateTimeAtProcessing.java,
4233 javax/print/attribute/standard/DocumentName.java,
4234 javax/print/attribute/standard/JobHoldUntil.java,
4235 javax/print/attribute/standard/JobImpressions.java,
4236 javax/print/attribute/standard/JobImpressionsCompleted.java,
4237 javax/print/attribute/standard/JobKOctets.java,
4238 javax/print/attribute/standard/JobKOctetsProcessed.java,
4239 javax/print/attribute/standard/JobMediaSheets.java,
4240 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4241 javax/print/attribute/standard/JobMessageFromOperator.java,
4242 javax/print/attribute/standard/JobName.java,
4243 javax/print/attribute/standard/JobOriginatingUserName.java,
4244 javax/print/attribute/standard/JobPriority.java,
4245 javax/print/attribute/standard/JobPrioritySupported.java,
4246 javax/print/attribute/standard/NumberOfDocuments.java,
4247 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4248 javax/print/attribute/standard/NumberUp.java,
4249 javax/print/attribute/standard/OutputDeviceAssigned.java,
4250 javax/print/attribute/standard/PagesPerMinute.java,
4251 javax/print/attribute/standard/PagesPerMinuteColor.java:
4252 Fixed @return tag all over.
4254 2004-05-15 Michael Koch <konqueror@gmx.de>
4256 * javax/print/attribute/AttributeSetUtilities.java
4257 (verifyCategoryForValue): Fixed typo in javadoc.
4258 * javax/print/attribute/HashAttributeSet.java
4259 (containsKey): Fixed @return tag.
4260 (comtainsValue): Likewise.
4262 * javax/print/attribute/IntegerSyntax.java
4264 * javax/print/attribute/ResolutionSyntax.java
4266 (getCrossFeedResolution): Removed unused code.
4267 (getFeedResolution): Likewise.
4268 * javax/print/attribute/SetOfIntegerSyntax.java
4269 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4270 (equals): Fixed @return tag.
4271 * javax/print/attribute/TextSyntax.java
4272 (TextSyntax): Take locale into account.
4273 (hashCode): Better implementation.
4275 2004-05-15 Michael Koch <konqueror@gmx.de>
4277 * javax/print/CancelablePrintJob.java,
4278 javax/print/Doc.java,
4279 javax/print/DocFlavor.java,
4280 javax/print/DocPrintJob.java,
4281 javax/print/FlavorException.java,
4282 javax/print/PrintException.java,
4283 javax/print/PrintService.java,
4284 javax/print/ServiceUIFactory.java: New files.
4286 2004-05-15 Mark Wielaard <mark@klomp.org>
4288 * gnu/regexp/CharIndexedReader.java: Removed.
4289 * gnu/regexp/REFilterReader.java: Likewise.
4290 * gnu/regexp/RETokenLookAhead.java: Likewise.
4291 * Makefile.am (ordinary_java_source_files): Remove above classes.
4292 * Makefile.in: Regenerated.
4294 2004-05-14 Tom Tromey <tromey@redhat.com>
4296 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4297 not `XGraphicsConfiguration.XOffScreenImage'.
4299 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4301 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4303 2004-05-14 Steven Augart <augart@watson.ibm.com>
4305 * include/jni.h (_Jv_func): Removed.
4306 (struct JNINativeInterface): Use `void *' for reserved slots.
4307 (struct JNIInvokeInterface): Likewise.
4309 2004-05-11 Michael Koch <konqueror@gmx.de>
4311 * gnu/java/net/natPlainSocketImplPosix.cc
4312 (read): Fixed typo in expression.
4314 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4316 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4317 ld_library_additions. Adjust all calls to libjava_invoke to match
4320 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4321 path to cxxflagslist.
4322 Pass path of libstdc++ to libjava_invoke.
4324 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4325 libjava_invoke arguments.
4327 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4329 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4332 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4334 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4335 main binary against the JNI shared library.
4337 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4339 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4340 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4341 (SimpleTimeZone): Tweak docs. Add new variation.
4342 (setStartRule,setEndRule): Add new variations. Use
4343 startTimeMode and endTimeMode.
4345 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4347 * java/util/Calendar.java (getActualMinimum,
4348 getActualMaximum): Remove abstract. Implement.
4350 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4352 Run the jni tests using the interpreter.
4353 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4354 options_cxx to shared lib compile command.
4355 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4356 they are used to link the shared lib, not the main binary.
4357 Use libjava_invoke to run gij.
4359 2004-05-06 Michael Koch <konqueror@gmx.de>
4361 * java/util/logging/Level.java
4362 (parse): Use == instead of String.equals().
4364 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4366 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4367 verify_field_signature and verify_method_signature, not
4368 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4369 (_Jv_ClassReader::handleField): Likewise.
4370 (_Jv_ClassReader::handleMethod): Likewise.
4372 2004-05-06 Michael Koch <konqueror@gmx.de>
4374 * javax/swing/table/TableColumn.java:
4377 2004-05-06 Michael Koch <konqueror@gmx.de>
4379 * javax/imageio/spi/ImageReaderWriterSpi.java
4380 (ImageReaderWriterSpi): Made it public.
4381 * javax/imageio/stream/ImageInputStream.java:
4384 2004-05-06 Michael Koch <konqueror@gmx.de>
4386 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4389 2004-05-06 Michael Koch <konqueror@gmx.de>
4391 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4392 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4394 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4395 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4396 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4397 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4398 their own source file.
4399 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4400 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4401 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4402 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4403 (create): Define variable on top of function.
4404 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4405 (menu_pos): Prototyped.
4406 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4407 (setTitle): Removed.
4408 * jni/gtk-peer/gthread-jni.c
4409 (gdk_threads_wake): Removed.
4410 * Makefile.am (gtk_c_source_files): Added new files
4411 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4412 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4413 * Makefile.in: Regenerated.
4415 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4417 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4420 2004-05-05 Mark Wielaard <mark@klomp.org>
4422 * javax/swing/AbstractButton.java: Replace special HTML entities with
4424 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4425 * javax/swing/DefaultButtonModel.java: Likewise.
4426 * javax/swing/DefaultListModel.java: Likewise.
4427 * javax/swing/JList.java: Likewise.
4428 * javax/swing/JSlider.java: Likewise.
4429 * javax/swing/ListModel.java: Likewise.
4430 * javax/swing/Popup.java: Likewise.
4431 * javax/swing/SwingUtilities.java: Likewise.
4433 2004-05-05 Michael Koch <konqueror@gmx.de>
4435 * javax/swing/AbstractButton.java,
4436 javax/swing/ActionMap.java,
4437 javax/swing/DefaultButtonModel.java,
4438 javax/swing/DefaultListModel.java,
4439 javax/swing/ImageIcon.java,
4440 javax/swing/JComboBox.java,
4441 javax/swing/JComponent.java,
4442 javax/swing/JFrame.java,
4443 javax/swing/JInternalFrame.java,
4444 javax/swing/JMenuBar.java,
4445 javax/swing/JMenuItem.java,
4446 javax/swing/JOptionPane.java,
4447 javax/swing/JProgressBar.java,
4448 javax/swing/JRootPane.java,
4449 javax/swing/JScrollBar.java,
4450 javax/swing/JScrollPane.java,
4451 javax/swing/JSeparator.java,
4452 javax/swing/JSlider.java,
4453 javax/swing/JTabbedPane.java,
4454 javax/swing/JTable.java,
4455 javax/swing/JTextField.java,
4456 javax/swing/JToolBar.java,
4457 javax/swing/JToolTip.java,
4458 javax/swing/JTree.java,
4459 javax/swing/JViewport.java,
4460 javax/swing/JWindow.java,
4461 javax/swing/KeyStroke.java,
4462 javax/swing/LookAndFeel.java,
4463 javax/swing/SwingUtilities.java,
4464 javax/swing/Timer.java,
4465 javax/swing/ToolTipManager.java,
4466 javax/swing/UIDefaults.java,
4467 javax/swing/border/TitledBorder.java,
4468 javax/swing/filechooser/FileSystemView.java,
4469 javax/swing/plaf/basic/BasicButtonListener.java,
4470 javax/swing/plaf/basic/BasicButtonUI.java,
4471 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4472 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4473 javax/swing/plaf/basic/BasicLabelUI.java,
4474 javax/swing/plaf/basic/BasicMenuItemUI.java,
4475 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4476 javax/swing/plaf/basic/BasicRootPaneUI.java,
4477 javax/swing/plaf/basic/BasicScrollBarUI.java,
4478 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4479 javax/swing/plaf/basic/BasicSliderUI.java,
4480 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4481 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4482 javax/swing/table/JTableHeader.java,
4483 javax/swing/text/AbstractDocument.java,
4484 javax/swing/text/DefaultCaret.java,
4485 javax/swing/text/StyledEditorKit.java,
4486 javax/swing/tree/DefaultTreeCellEditor.java:
4489 2004-05-05 Michael Koch <konqueror@gmx.de>
4491 * java/util/prefs/AbstractPreferences.java
4492 (AbstractPreferences): Added parenthesis for clarity.
4493 Closes classpath bug #7940.
4495 2004-05-05 Tom Tromey <tromey@redhat.com>
4497 * javax/naming/CompoundName.java (endsWith): Look at correct
4498 element of source name.
4500 2004-05-05 Mark Wielaard <mark@klomp.org>
4502 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4503 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4505 2004-05-05 Tom Tromey <tromey@redhat.com>
4507 * java/io/BufferedReader.java (skip): Removed unused
4510 2004-05-05 Michael Koch <konqueror@gmx.de>
4512 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4514 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4516 * java/text/AttributedString.java,
4517 java/text/AttributedStringIterator.java,
4518 java/text/Collator.java,
4519 java/text/DecimalFormatSymbols.java,
4520 java/text/NumberFormat.java,
4521 java/text/RuleBasedCollator.java:
4524 2004-05-05 Tom Tromey <tromey@redhat.com>
4526 * java/text/Format.java: Cleaned up imports.
4527 * java/text/DecimalFormat.java: Cleaned up imports.
4528 * java/security/SecureRandom.java: Cleaned up imports.
4529 (SecureRandom): Removed unused variable.
4530 * java/security/UnresolvedPermission.java: Cleaned up imports.
4531 * java/util/Date.java (parse): Removed unused variable.
4532 * java/util/ResourceBundle.java: Cleaned up imports.
4533 (getBundle): Removed unused variable.
4534 (tryBundle): Likewise.
4535 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4537 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4539 * java/text/SimpleDateFormat.java:
4540 (formatWithAttribute): New method. It implements
4541 the formatting process with attributes.
4542 (format): Use formatWithAttribute.
4543 (formatToCharacterIterator): New method. Use
4544 formatWithAttribute.
4546 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4548 * java/text/MessageFormat.java:
4549 (class Field): New class.
4550 (formatToCharacterIterator): New method.
4551 (format): Use formatInternal now.
4552 (formatInternal): New method. String formatter should
4553 be done here (with attributes). Attributes merging supported.
4554 (parse): More documentation.
4555 (getFormatsByArgumentIndex): New method.
4556 (setFormatByArgumentIndex): New method.
4557 (setFormatsByArgumentIndex): New method.
4559 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4561 * java/text/DecimalFormat.java
4562 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4563 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4564 (parse): Fixed handling of exponentiation notation and grouping.
4566 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4568 * java/text/DecimalFormat.java
4569 (scanFix): Build attribute array. Fixed error reporting.
4570 (applyPatternWithSymbols): Store attributes for the prefix and
4572 (formatInternal): New method. Changed the way the string is
4573 computed. Implemented attributes. Cleant up rounding in
4574 exponential notation.
4575 (format): Use formatInternal.
4576 (formatToCharacterIterator): New method.
4577 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4578 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4579 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4582 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4584 * java/security/interfaces/DSAKeyPairGenerator.java,
4585 java/security/interfaces/DSAPrivateKey.java,
4586 java/security/interfaces/DSAPublicKey.java,
4587 java/security/interfaces/RSAPrivateKey.java,
4588 java/security/interfaces/RSAPublicKey.java:
4591 2004-05-04 Michael Koch <konqueror@gmx.de>
4593 * java/nio/ByteBuffer.java,
4594 java/nio/CharBuffer.java,
4595 java/nio/DoubleBuffer.java,
4596 java/nio/FloatBuffer.java,
4597 java/nio/IntBuffer.java,
4598 java/nio/LongBuffer.java,
4599 java/nio/ShortBuffer.java:
4600 (compareTo): Fixed bogus implementation in all buffer classes.
4602 2004-05-04 Ingo Proetel <proetel@aicas.com>
4604 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4605 32 bit pixels not 8 bit pixels.
4606 (isCompatibleRaster): Added javadoc comment.
4608 2004-05-04 Ingo Proetel <proetel@aicas.com>
4610 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4613 2004-05-04 Ingo Proetel <proetel@aicas.com>
4615 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4616 (getColorModel): Return the actual color model.
4617 (getRaster): Implemented.
4618 (ColorRaster): New inner class.
4619 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4621 * java/awt/Color.java (<init>): Make exception more verbose.
4622 (createContext): Use ColorModel when creating a PaintContext.
4624 2004-05-04 Michael Koch <konqueror@gmx.de>
4626 * gnu/java/text/CharacterBreakIterator.java
4627 (previous): Removed unused variable.
4629 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4631 * gnu/java/text/FormatBuffer.java,
4632 gnu/java/text/AttributedFormatBuffer.java,
4633 gnu/java/text/StringFormatBuffer.java: New classes to implement
4634 attributed iterators in java.text.
4635 * gnu/java/text/FormatCharacterIterator.java: Moved
4636 from java/text as it is an internal class.
4637 * java/text/FormatCharacterIterator.java: Removed.
4638 * java/text/Format.java:
4639 Import gnu.java.text.FormatCharacterIterator.
4640 * Makefile.am (java_source_files): Added new files.
4641 * Makefile.in: Regenerated.
4644 2004-05-04 Mark Wielaard <mark@klomp.org>
4646 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4648 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4650 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4651 * Makefile.in: Rebuilt.
4653 2004-05-03 Mark Wielaard <mark@klomp.org>
4655 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4656 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4658 (set(String, String, int, String, String, String, String, String)):
4659 Assign this.file to path or path + "?" + query.
4660 * java/util/Arrays.java: Call static methods staticly.
4661 * java/util/zip/ZipEntry.java: Likewise.
4662 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4663 dir to this.direction.
4664 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4665 Assign static field only once.
4666 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4668 2004-05-03 Mark Wielaard <mark@klomp.org>
4670 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4671 unused variables hScrollbarHeight and vScrollbarWidth.
4672 (preferredSize): Likewise.
4673 * gnu/java/security/provider/DSAParameters.java (engineToString):
4674 Removed unused call to System.getProperty("line.seperator");
4675 * java/security/Security.java (loadProviders): Return result.
4677 2004-05-03 Tom Tromey <tromey@redhat.com>
4679 * java/net/URLStreamHandler.java (toExternalForm): Removed
4682 * java/math/BigDecimal.java (divide): Removed unused variable.
4683 * java/lang/Throwable.java: Cleaned up imports.
4684 * java/lang/ClassLoader.java: Cleaned up imports.
4685 * java/io/FilePermission.java (implies): Removed unused
4687 * java/awt/TextComponent.java: Removed unused import.
4688 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4689 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4690 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4691 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4693 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4694 * gnu/java/text/CharacterBreakIterator.java: Removed
4696 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4698 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4699 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4701 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4702 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4703 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4704 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4705 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4706 (lookupProviders): Removed unused variable.
4707 (loadNextServiceProvider): Likewise.
4708 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4710 2004-05-03 Michael Koch <konqueror@gmx.de>
4712 Fixes PR libgcj/14695:
4713 * java/net/NetworkInterface.java
4714 (getByName): Return null when no interface was found.
4716 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4717 Tom Tromey <tromey@redhat.com>
4719 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4720 additional option "-Wmissing-prototypes" for compiling C sources.
4721 Print actual filename for pass/fail rather than $name.c.
4722 * testsuite/libjava.jni/PR15133.java: New testcase file.
4723 * testsuite/libjava.jni/PR15133.c: Likewise.
4724 * testsuite/libjava.jni/PR15133.out: Likewise.
4726 2004-04-30 Roger Sayle <roger@eyesopen.com>
4728 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4731 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4733 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4734 limit the maximum heap size to avoid unnecessary thrashing.
4736 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4738 * java/text/CollationElementIterator.java (reset): Reset
4739 lookahead variables.
4741 2004-04-23 Mark Wielaard <mark@klomp.org>
4743 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4745 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4747 * java/sql/DriverManager.java:
4750 2004-04-23 Michael Koch <konqueror@gmx.de>
4753 (hashcode): Don't initialize with default value explicitely.
4754 (getContent): Removed redundant "final" keyword.
4755 (openStream): Likewise.
4756 (getURLStreamHandler): Fixed coding style.
4757 * java/net/URLConnection.java
4758 (defaultAllowUserInteraction): Don't initialize with default value
4760 (connected): Likewise.
4761 (doOutput): Likewise.
4762 (ifModifiedSince): Likewise.
4763 (dateformats_initialized): Likewise.
4764 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4766 2004-04-23 Michael Koch <konqueror@gmx.de>
4768 * gnu/java/nio/channels/FileChannelImpl.java
4769 (SET, CUR): Unused, removed.
4770 (read): Implement here directly.
4771 (implRead): Removed.
4772 (write): Implement here directly.
4773 (implWrite): Removed.
4775 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4777 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4778 javax/rmi/CORBA/Stub.java,
4779 javax/rmi/CORBA/Util.java,
4780 javax/rmi/CORBA/ValueHandler.java,
4781 javax/rmi/CORBA/ValueHandler.java,
4782 javax/rmi/PortableRemoteObject.java:
4785 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4787 * java/util/jar/JarFile.java,
4788 java/util/jar/JarInputStream.java,
4789 java/util/jar/JarOutputStream.java,
4790 java/util/jar/Manifest.java:
4793 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4795 * java/util/ArrayList.java,
4796 java/util/Calendar.java,
4797 java/util/Currency.java,
4798 java/util/HashMap.java,
4799 java/util/HashSet.java,
4800 java/util/Hashtable.java,
4801 java/util/LinkedList.java,
4802 java/util/Properties.java,
4803 java/util/PropertyPermission.java,
4804 java/util/TimeZone.java,
4805 java/util/TreeMap.java,
4806 java/util/TreeSet.java,
4807 java/util/Vector.java,
4808 java/util/WeakHashMap.java:
4811 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4813 * java/util/logging/FileHandler.java,
4814 java/util/logging/Formatter.java,
4815 java/util/logging/Handler.java,
4816 java/util/logging/Logger.java,
4817 java/util/logging/SimpleFormatter.java,
4818 java/util/logging/XMLFormatter.java:
4821 2004-04-22 Mark Wielaard <mark@klomp.org>
4823 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4824 -Wno-long-long flags variable.
4825 (gtk_c_files): Use PEDANTIC_CFLAGS.
4826 * Makefile.in: Regenerated.
4828 2004-04-22 Mark Wielaard <mark@klomp.org>
4830 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4831 Changed C++ comments into C comments.
4832 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
4835 2004-04-22 Michael Koch <konqueror@gmx.de>
4837 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
4838 Merged copyright year with GNU classpath.
4840 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4842 * javax/security/auth/x500/X500Principal.java:
4845 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4847 * javax/swing/JSlider.java:
4848 Fixed HTML tags in comments.
4850 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4852 * javax/accessibility/AccessibleText.java:
4855 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
4857 * java/net/URLStreamHandler.java
4858 (parseURL): Convert the file path to using '/' instead of native
4861 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
4864 (userInfo): New field.
4865 (URL): Set authority to the right value.
4866 (setURL): Fixed authority and file initialization.
4867 * java/net/URLStreamHandler.java
4868 (parseURL): Take care of the query tag. Build authority.
4869 (toExternalForm): Fixed URL building using authority.
4871 2004-04-22 Michael Koch <konqueror@gmx.de>
4873 * java/net/Socket.java
4874 (impl): Made package-private.
4875 * java/net/ServerSocket.java
4876 (implAccept): Access Socket.impl field directly.
4878 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4880 * java/util/prefs/Preferences.java,
4881 java/util/prefs/InvalidPreferencesFormatException.java,
4882 java/util/prefs/BackingStoreException.java,
4883 java/util/prefs/AbstractPreferences.java:
4886 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4888 * java/util/regex/Matcher.java,
4889 java/util/regex/Pattern.java:
4892 2004-04-22 Michael Koch <konqueror@gmx.de>
4894 * java/nio/charset/IllegalCharsetNameException.java
4895 (charsetName): Made private.
4896 (IllegalCharsetNameException): Added @param tag to javadoc.
4897 (getCharsetName): Added @return tag to javadoc.
4898 * java/nio/charset/MalformedInputException.java
4899 (MalformedInputException): Added @param tag to javadoc.
4900 (getInputLength): Revised method description, added @return tag.
4901 (getMessage): Added @return tag.
4903 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
4905 * java/awt/Font.java (deriveFont): Implement missing variants.
4906 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
4909 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
4911 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
4912 Set method->index values for interface methods to their itable index.
4913 (initializeClass): Call _Jv_LayoutInterfaceMethods.
4915 2004-04-21 Michael Koch <konqueror@gmx.de>
4917 * java/nio/DirectByteBufferImpl.java
4918 (shiftDown): Made static, give address as argument and
4919 provide a convenience method that overwrites shiftDown in
4920 ByteBufferImpl and calls the native shiftDown.
4921 * java/nio/MappedByteBufferImpl.java
4922 (): Use optimized method in DirectByteBufferImpl.
4923 * java/nio/natDirectByteBufferImpl.cc
4924 (shiftDown): Changed method signature. Removed usage of array_offset.
4926 2004-04-21 Michael Koch <konqueror@gmx.de>
4928 * gnu/java/net/natPlainSocketImplPosix.cc
4929 (SocketInputStream::read): Make sure returned data is a byte value.
4931 2004-04-21 Michael Koch <konqueror@gmx.de>
4933 * gnu/classpath/ServiceFactory.java,
4934 gnu/classpath/ServiceProviderLoadingAction.java,
4935 javax/imageio/ImageReader.java,
4936 javax/imageio/ImageTranscoder.java,
4937 javax/imageio/ImageWriter.java,
4938 javax/imageio/package.html,
4939 javax/imageio/spi/IIOServiceProvider.java,
4940 javax/imageio/spi/ImageInputStreamSpi.java,
4941 javax/imageio/spi/ImageOutputStreamSpi.java,
4942 javax/imageio/spi/ImageReaderWriterSpi.java,
4943 javax/imageio/spi/ImageTranscoderSpi.java,
4944 javax/imageio/spi/RegisterableService.java,
4945 javax/imageio/spi/ServiceRegistry.java,
4946 javax/imageio/spi/package.html,
4947 javax/imageio/stream/IIOByteBuffer.java,
4948 javax/imageio/stream/ImageInputStream.java,
4949 javax/imageio/stream/ImageOutputStream.java,
4950 javax/imageio/stream/package.html:
4953 (ordinary_java_source_files): Added
4954 gnu/classpath/ServiceFactory.java and
4955 gnu/classpath/ServiceProviderLoadingAction.java.
4956 (javax_source_files): Added
4957 javax/imageio/ImageReader.java,
4958 javax/imageio/ImageTranscoder.java,
4959 javax/imageio/ImageWriter.java,
4960 javax/imageio/spi/IIOServiceProvider.java,
4961 javax/imageio/spi/ImageInputStreamSpi.java,
4962 javax/imageio/spi/ImageOutputStreamSpi.java,
4963 javax/imageio/spi/ImageReaderWriterSpi.java,
4964 javax/imageio/spi/ImageTranscoderSpi.java,
4965 javax/imageio/spi/RegisterableService.java,
4966 javax/imageio/spi/ServiceRegistry.java,
4967 javax/imageio/stream/IIOByteBuffer.java,
4968 javax/imageio/stream/ImageInputStream.java and
4969 javax/imageio/stream/ImageOutputStream.java.
4970 * Makefile.in: Regenerated.
4972 2004-04-21 Michael Koch <konqueror@gmx.de>
4974 * java/util/Properties.java
4975 (load): Fix wrongly merged fix.
4977 2004-04-21 Mark Wielaard <mark@klomp.org>
4979 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
4980 malloc and free buf.
4982 2004-04-21 Dalibor Topic <robilad@kaffe.org>
4984 * javax/naming/AuthenticationException.java,
4985 javax/naming/AuthenticationNotSupportedException.java,
4986 javax/naming/CannotProceedException.java,
4987 javax/naming/CommunicationException.java,
4988 javax/naming/CompoundName.java,
4989 javax/naming/ConfigurationException.java,
4990 javax/naming/ContextNotEmptyException.java,
4991 javax/naming/InitialContext.java,
4992 javax/naming/InsufficientResourcesException.java,
4993 javax/naming/InterruptedNamingException.java,
4994 javax/naming/LimitExceededException.java,
4995 javax/naming/LinkException.java,
4996 javax/naming/LinkLoopException.java,
4997 javax/naming/LinkRef.java,
4998 javax/naming/MalformedLinkException.java,
4999 javax/naming/Name.java,
5000 javax/naming/NameAlreadyBoundException.java,
5001 javax/naming/NameNotFoundException.java,
5002 javax/naming/NamingSecurityException.java,
5003 javax/naming/NoInitialContextException.java,
5004 javax/naming/NoPermissionException.java,
5005 javax/naming/NotContextException.java,
5006 javax/naming/PartialResultException.java,
5007 javax/naming/ReferralException.java,
5008 javax/naming/ServiceUnavailableException.java,
5009 javax/naming/SizeLimitExceededException.java,
5010 javax/naming/TimeLimitExceededException.java,
5011 javax/naming/directory/Attribute.java,
5012 javax/naming/directory/Attributes.java,
5013 javax/naming/directory/SearchResult.java,
5014 javax/naming/event/NamingExceptionEvent.java,
5015 javax/naming/spi/ResolveResult.java:
5018 2004-04-21 Mark Wielaard <mark@klomp.org>
5020 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5021 Changed C++ comments into C comments. Removed commented out code.
5022 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5024 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5026 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5028 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5030 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5032 * native/jni/gtk-peer/gthread-jni.c:
5035 2004-04-21 Mark Wielaard <mark@klomp.org>
5037 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5038 static fields defined in interface.
5039 * javax/awt/JDialog.java: Likewise.
5040 (JDialog): Make constructors public.
5041 (getDefaultCloseOperation): Make public.
5042 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5043 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5044 * javax/swing/JViewport.java (JViewport): Make constructor public.
5046 2004-04-21 Michael Koch <konqueror@gmx.de>
5048 * java/util/Map.java
5049 (Entry): Removed redundant "static" modifier.
5050 * java/text/AttributedCharacterIterator.java:
5051 Updated copyright year.
5053 2004-04-20 Michael Koch <konqueror@gmx.de>
5055 * javax/naming/directory/SearchControls.java:
5056 Don't explicitely extend java.lang.Object.
5057 * javax/naming/spi/DirStateFactory.java:
5058 Merged copyright year with GNU classpath.
5060 2004-04-20 Michael Koch <konqueror@gmx.de>
5062 * java/nio/channels/Channels.java:
5063 Merged coding style with GNU classpath.
5065 2004-04-20 Michael Koch <konqueror@gmx.de>
5067 * java/net/ServerSocket.java
5068 Merged coding style from GNU classpath.
5070 2004-04-20 Michael Koch <konqueror@gmx.de>
5072 * java/io/BufferedWriter.java:
5073 Reordered variables to be at top of the class.
5074 (localFlush): Removed redundant final keyword.
5076 2004-04-20 Ingo Proetel <proetel@aicas.com>
5078 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5080 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5082 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5083 for percent and permill check.
5085 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5087 * java/text/FieldPosition.java
5088 (FieldPosition) Constructor now behaves as it should according
5089 to the java documentation.
5091 2004-04-20 Mark Wielaard <mark@klomp.org>
5093 * java/util/Properties.java: Use the word umlaut, not ä in api
5096 2004-04-20 Michael Koch <konqueror@gmx.de>
5098 * java/nio/Buffer.java,
5099 java/nio/channels/AlreadyConnectedException.java,
5100 java/nio/channels/AsynchronousCloseException.java,
5101 java/nio/channels/ByteChannel.java,
5102 java/nio/channels/CancelledKeyException.java,
5103 java/nio/channels/Channel.java,
5104 java/nio/channels/Channels.java,
5105 java/nio/channels/ClosedByInterruptException.java,
5106 java/nio/channels/ClosedChannelException.java,
5107 java/nio/channels/ClosedSelectorException.java,
5108 java/nio/channels/ConnectionPendingException.java,
5109 java/nio/channels/DatagramChannel.java,
5110 java/nio/channels/FileChannel.java,
5111 java/nio/channels/FileLock.java,
5112 java/nio/channels/FileLockInterruptionException.java,
5113 java/nio/channels/GatheringByteChannel.java,
5114 java/nio/channels/IllegalBlockingModeException.java,
5115 java/nio/channels/IllegalSelectorException.java,
5116 java/nio/channels/InterruptibleChannel.java,
5117 java/nio/channels/NoConnectionPendingException.java,
5118 java/nio/channels/NonReadableChannelException.java,
5119 java/nio/channels/NonWritableChannelException.java,
5120 java/nio/channels/NotYetBoundException.java,
5121 java/nio/channels/NotYetConnectedException.java,
5122 java/nio/channels/OverlappingFileLockException.java,
5123 java/nio/channels/Pipe.java,
5124 java/nio/channels/ReadableByteChannel.java,
5125 java/nio/channels/ScatteringByteChannel.java,
5126 java/nio/channels/SelectableChannel.java,
5127 java/nio/channels/SelectionKey.java,
5128 java/nio/channels/Selector.java,
5129 java/nio/channels/ServerSocketChannel.java,
5130 java/nio/channels/SocketChannel.java,
5131 java/nio/channels/UnresolvedAddressException.java,
5132 java/nio/channels/UnsupportedAddressTypeException.java,
5133 java/nio/channels/WritableByteChannel.java,
5134 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5135 java/nio/channels/spi/AbstractSelectableChannel.java,
5136 java/nio/channels/spi/AbstractSelectionKey.java,
5137 java/nio/channels/spi/AbstractSelector.java,
5138 java/nio/channels/spi/SelectorProvider.java,
5139 java/nio/charset/spi/CharsetProvider.java:
5140 Fixed javadocs and jalopied all over java.nio.
5142 2004-04-20 Michael Koch <konqueror@gmx.de>
5144 * java/nio/ByteBufferImpl.java,
5145 java/nio/CharBufferImpl.java,
5146 java/nio/DirectByteBufferImpl.java,
5147 java/nio/DoubleBufferImpl.java,
5148 java/nio/DoubleViewBufferImpl.java,
5149 java/nio/FloatBufferImpl.java,
5150 java/nio/FloatViewBufferImpl.java,
5151 java/nio/IntBufferImpl.java,
5152 java/nio/IntViewBufferImpl.java,
5153 java/nio/LongBufferImpl.java,
5154 java/nio/LongViewBufferImpl.java,
5155 java/nio/MappedByteBufferImpl.java,
5156 java/nio/ShortBufferImpl.java,
5157 java/nio/ShortViewBufferImpl.java:
5158 Made sure all classes are final and removed final keyword from all
5161 2004-04-20 Michael Koch <konqueror@gmx.de>
5163 * java/rmi/MarshalledObject.java,
5164 java/rmi/Naming.java,
5165 java/rmi/RemoteException.java,
5166 java/rmi/activation/ActivationException.java,
5167 java/rmi/server/ServerCloneException.java,
5168 java/security/AccessController.java,
5169 java/security/AlgorithmParameterGenerator.java,
5170 java/security/AlgorithmParameters.java,
5171 java/security/CodeSource.java,
5172 java/security/Identity.java,
5173 java/security/IdentityScope.java,
5174 java/security/KeyPairGenerator.java,
5175 java/security/KeyStore.java,
5176 java/security/Security.java,
5177 java/security/Signature.java,
5178 java/security/SignatureSpi.java,
5179 java/security/SignedObject.java,
5180 java/security/spec/DSAParameterSpec.java,
5181 java/security/spec/DSAPrivateKeySpec.java,
5182 java/security/spec/DSAPublicKeySpec.java,
5183 java/sql/Array.java,
5184 java/sql/DatabaseMetaData.java,
5185 java/sql/ResultSet.java,
5186 java/text/ChoiceFormat.java,
5187 java/text/CollationElementIterator.java,
5188 java/text/CollationKey.java,
5189 java/text/Collator.java,
5190 java/text/DateFormat.java,
5191 java/text/DateFormatSymbols.java,
5192 java/text/DecimalFormatSymbols.java,
5193 java/text/Format.java,
5194 java/text/ParsePosition.java,
5195 java/text/RuleBasedCollator.java,
5196 java/text/SimpleDateFormat.java,
5197 java/text/StringCharacterIterator.java,
5198 java/util/Collections.java,
5199 java/util/PropertyResourceBundle.java,
5200 java/util/ResourceBundle.java,
5201 java/util/StringTokenizer.java,
5202 java/util/jar/Attributes.java,
5203 java/util/logging/ConsoleHandler.java,
5204 java/util/logging/LogManager.java,
5205 java/util/logging/MemoryHandler.java,
5206 java/util/logging/SocketHandler.java,
5207 javax/naming/NamingException.java:
5208 Fixed javadoc, coding style and argument names all over.
5210 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5212 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5213 constructor. (valid) Added null check.
5215 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5217 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5218 * java/io/FileOutputStream.java
5219 (FileOutputStream) Reorganized constructors. Constructors now
5220 check whether the given path is directory.
5222 2004-04-20 Michael Koch <konqueror@gmx.de>
5224 * java/net/Authenticator.java,
5225 java/net/BindException.java,
5226 java/net/ConnectException.java,
5227 java/net/ContentHandler.java,
5228 java/net/ContentHandlerFactory.java,
5229 java/net/DatagramPacket.java,
5230 java/net/DatagramSocket.java,
5231 java/net/DatagramSocketImpl.java,
5232 java/net/DatagramSocketImplFactory.java,
5233 java/net/FileNameMap.java,
5234 java/net/HttpURLConnection.java,
5235 java/net/Inet4Address.java,
5236 java/net/Inet6Address.java,
5237 java/net/InetAddress.java,
5238 java/net/InetSocketAddress.java,
5239 java/net/JarURLConnection.java,
5240 java/net/MalformedURLException.java,
5241 java/net/MulticastSocket.java,
5242 java/net/NetPermission.java,
5243 java/net/NetworkInterface.java,
5244 java/net/NoRouteToHostException.java,
5245 java/net/PasswordAuthentication.java,
5246 java/net/PortUnreachableException.java,
5247 java/net/ProtocolException.java,
5248 java/net/ServerSocket.java,
5249 java/net/Socket.java,
5250 java/net/SocketAddress.java,
5251 java/net/SocketException.java,
5252 java/net/SocketImpl.java,
5253 java/net/SocketImplFactory.java,
5254 java/net/SocketOptions.java,
5255 java/net/SocketPermission.java,
5256 java/net/SocketTimeoutException.java,
5258 java/net/URISyntaxException.java,
5260 java/net/URLClassLoader.java,
5261 java/net/URLConnection.java,
5262 java/net/URLDecoder.java,
5263 java/net/URLEncoder.java,
5264 java/net/URLStreamHandler.java,
5265 java/net/URLStreamHandlerFactory.java,
5266 java/net/UnknownHostException.java,
5267 java/net/UnknownServiceException.java:
5268 Fixed javadocs, coding style and argument names all over.
5270 2004-04-20 Michael Koch <konqueror@gmx.de>
5272 * java/lang/Byte.java,
5273 java/lang/CharSequence.java,
5274 java/lang/ClassLoader.java,
5275 java/lang/Compiler.java,
5276 java/lang/Double.java,
5277 java/lang/Float.java,
5278 java/lang/Integer.java,
5279 java/lang/Long.java,
5280 java/lang/Math.java,
5281 java/lang/Number.java,
5282 java/lang/Package.java,
5283 java/lang/Runtime.java,
5284 java/lang/RuntimePermission.java,
5285 java/lang/SecurityManager.java,
5286 java/lang/Short.java,
5287 java/lang/StringBuffer.java,
5288 java/lang/System.java,
5289 java/lang/ThreadGroup.java,
5290 java/lang/Throwable.java,
5291 java/lang/reflect/InvocationHandler.java,
5292 java/lang/reflect/Proxy.java:
5293 Fixed javadocs, coding style and argument names all over.
5295 2004-04-20 Michael Koch <konqueror@gmx.de>
5297 * java/io/BufferedWriter.java,
5298 java/io/ByteArrayInputStream.java,
5299 java/io/CharArrayWriter.java,
5300 java/io/DataInput.java,
5301 java/io/DataInputStream.java,
5303 java/io/FilterInputStream.java,
5304 java/io/InputStream.java,
5305 java/io/InputStreamReader.java,
5306 java/io/ObjectInputStream.java,
5307 java/io/ObjectStreamClass.java,
5308 java/io/PipedInputStream.java,
5309 java/io/PipedReader.java,
5310 java/io/PushbackInputStream.java,
5311 java/io/PushbackReader.java,
5312 java/io/RandomAccessFile.java,
5313 java/io/SerializablePermission.java,
5314 java/io/StreamTokenizer.java,
5315 java/io/StringWriter.java,
5316 java/io/WriteAbortedException.java,
5317 java/io/Writer.java:
5318 Fixed javadocs all over, rename arguments to match javadocs,
5321 2004-04-20 Ingo Proetel <proetel@aicas.com>
5323 * java/awt/FontMetrics.java:
5324 (charsWidth): fixed accumulation of total_width
5325 (getWidth): simple default implementation
5326 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5327 in Rectangle constructor.
5328 * java/awt/image/Raster.java (toString): Added method.
5329 * java/awt/image/SampleModel.java (<init>): Added error cause
5330 information to thrown exception.
5331 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5333 (setDataElements): New method.
5334 (setPixels): New method.
5335 (toString): New method.
5337 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5339 * java/awt/image/ComponentColorModel.java
5340 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5341 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5342 Mauve tests on this method. Improved documentation.
5344 2004-04-20 Michael Koch <konqueror@gmx.de>
5346 * javax/swing/JLayeredPane.java,
5347 javax/swing/plaf/BorderUIResource.java,
5348 javax/swing/plaf/ComponentUI.java,
5349 javax/swing/undo/CompoundEdit.java,
5350 javax/swing/undo/StateEdit.java:
5351 Fixed HTML tags in javadocs all over.
5353 2004-04-20 Michael Koch <konqueror@gmx.de>
5355 * javax/print/attribute/EnumSyntax.java
5356 (getOffset): Made protected.
5357 * javax/print/attribute/HashAttributeSet.java
5358 (HashAttributeSet): Likewise.
5359 * javax/print/attribute/ResolutionSyntax.java
5360 (getFeedResolution): Fixed typo in exception name.
5361 (getCrossFeedResolution): Likewise.
5362 * javax/print/attribute/SetOfIntegerSyntax.java
5363 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5364 * javax/print/attribute/TextSyntax.java
5365 (TextSyntax): Handle locale correctly.
5366 (hashCode): Calc better hashcode value.
5367 (equals): Fixed @return tag.
5368 (toString): New method.
5370 2004-04-20 Michael Koch <konqueror@gmx.de>
5372 * gnu/java/nio/FileLockImpl.java
5373 (static): Removed, not needed anymore.
5374 * gnu/java/nio/channels/FileChannelImpl.java
5375 (FileChannelImpl): Made final.
5376 (mode): Made private.
5377 (READ, WRITE, APPEND): Made public.
5378 (EXCL, SYNC, DSYNC): Likewise.
5379 (static): Load native JNI library, when needed.
5380 (length): Unused, removed.
5381 (available): Made public.
5382 (implPosition): Throws IOException.
5384 (implTruncate): Likewise.
5388 2004-04-20 Michael Koch <konqueror@gmx.de>
5390 * java/awt/AWTPermission.java,
5391 java/awt/Component.java,
5392 java/awt/ComponentOrientation.java,,
5393 java/awt/Dialog.java,
5394 java/awt/FontMetrics.java,
5395 java/awt/Graphics.java,
5396 java/awt/datatransfer/DataFlavor.java,
5397 java/beans/Introspector.java,
5398 java/beans/PropertyEditor.java,
5399 java/beans/PropertyEditorManager.java,
5400 java/beans/beancontext/BeanContextServiceProvider.java:
5401 Fixed HTML tags in javadocs all over.
5403 2004-04-20 Mark Wielaard <mark@klomp.org>
5405 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5406 MissingResourceException is thrown.
5407 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5408 null when a MissingResourceException is thrown. Should never happen.
5410 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5412 * java/awt/image/DataBufferShort.java,
5413 java/awt/image/DataBufferFloat.java,
5414 java/awt/image/DataBufferDouble.java,
5415 java/awt/image/PixelInterleavedSampleModel.java: New files.
5416 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5417 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5419 2004-04-20 Michael Koch <konqueror@gmx.de>
5421 * Makefile.am (java_source_files): Added
5422 java/awt/image/DataBufferDouble.java,
5423 java/awt/image/DataBufferFloat.java,
5424 java/awt/image/DataBufferShort.java and
5425 java/awt/image/PixelInterleavedSampleModel.java.
5426 * Makefile.in: Regenerated.
5428 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5430 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5431 undocumented CNI calls.
5432 * include/java-interp.h (_Jv_InterpClass): No longer
5433 extends java.lang.Class.
5434 * java/lang/Class.h (Class): Add new field `aux_info'.
5435 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5436 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5437 Use Class->aux_info instead.
5438 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5439 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5440 Use Class->aux_info instead.
5441 * java/io/natObjectInputStream.cc (allocateObject): Use
5443 * java/lang/natClass.cc (newInstance): Likewise.
5444 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5445 * java/lang/natObject.cc (clone): Likewise.
5446 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5447 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5448 JvAllocObject. Allocate klass->aux_info here for interpreted
5451 2004-04-17 Mark Wielaard <mark@klomp.org>
5453 * javax/swing/JToggleButton.java (ToggleButtonModel):
5454 Make public static inner class.
5455 * javax/swing/JTabbedPane.java (setComponentAt):
5456 Call Page.setComponent().
5457 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5458 (WRAP_TAB_LAYOUT): Make public, value is 0.
5459 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5460 Make private static inner class.
5462 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5464 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5465 arguments to match new signature. Remove FIXME comments.
5467 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5469 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5471 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5474 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5476 * Makefile.am: Added new file.
5477 * Makefile.in: Regenerate.
5478 * javax/swing/ImageIcon.java:
5479 (ImageIcon(file)): set description of the icon
5481 * javax/swing/JCheckBoxMenuItem.java:
5482 Mostly Implemented. Work in progress.
5483 * javax/swing/JRadioButtonMenuItem.java:
5484 Reimplement constructors to use JToggleButtonModel.
5485 * javax/swing/plaf/basic/BasicIconFactory.java:
5486 (getCheckBoxMenuItemIcon): return check box
5488 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5489 paint menu item selected only when it is armed and
5492 2004-04-02 David Jee <djee@redhat.com>
5494 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5495 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5496 * java/awt/Component.java
5497 (add): Set the parent of the popup as this component.
5498 * java/awt/PopupMenu.java
5499 (addNotify): Create popup menu when peer is null.
5500 (show): Call addNotify() if peer is null.
5501 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5502 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5503 argument for gtk_menu_popup() as zero. This causes the popup menu to
5504 respond to any mouse button.
5506 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5508 * Makefile.am: Added new file.
5509 * Makefile.in: Regenerate.
5510 * javax/swing/JRadioButtonMenuItem.java:
5512 * javax/swing/plaf/basic/BasicIconFactory.java:
5513 (getRadioButtonMenuItemIcon): Return
5515 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5516 (getPreferredSize): Add size of checkIcon if it
5518 (installDefaults): Don't initialize checkIcon.
5519 It's value will be set in subclasses.
5520 (uninstallDefaults): remove uninstallation of
5522 (paint): Moved code to paintMenuItem().
5523 (paintMenuItem): Implemented.
5524 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5525 UI delegate for JRadioButtonMenuItem.
5527 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5529 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5530 Corrected position of the accelerator.
5532 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5534 * Makefile.am: Added new file.
5535 * Makefile.in: Regenerate.
5536 * javax/swing/JMenuItem.java: Partly
5537 implemented. Work in progress
5538 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5539 Changed default value of acceleratorDelimiter.
5540 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5541 New class. Partly implemented.
5543 2004-03-26 Mark Wielaard <mark@klomp.org>
5545 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5546 (item_activate): Declare label before use.
5547 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5548 (gtkSetFont): Removed unused variable label.
5549 (addExposeFilter): Declare variables before use.
5550 (removeExposeFilter): Likewise.
5551 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5552 (ok_clicked): Declare str_fileName before use.
5554 2004-03-26 David Jee <djee@redhat.com>
5556 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5557 (addSeparator): Remove.
5558 * java/awt/Menu.java
5559 (separator): Remove static final MenuItem field.
5560 (separatorLabel): New static final String field.
5561 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5562 Use separatorLabel to denote that it is a separator.
5563 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5564 of reusing the static separator instance, because a MenuItem instance
5565 can't be added more than once without being cloned.
5566 * java/awt/peer/MenuPeer.java
5567 (addSeparator): Remove from interface.
5569 2004-03-26 David Jee <djee@redhat.com>
5571 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5572 (connectSignals): New native method declaration.
5573 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5574 * java/awt/MenuItem.java
5575 (getActionCommand): Return the label if the action command is not set.
5576 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5577 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5578 gtk_menu_shell_append().
5579 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5580 (item_activate): Fix argument type.
5581 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5583 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5585 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5586 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5587 given. Add the menu widget's top-level GtkWindow to the global window
5588 group, so it can grab the pointer.
5589 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5590 gtk_menu_shell_append().
5592 2004-03-23 Graydon Hoare <graydon@redhat.com>
5594 * java/text/AttributedString.java
5595 (addAttribute): Fix off-by-one.
5596 (getIterator): Likewise.
5597 * java/text/AttributedStringIterator.java
5598 (getRunLimit): Correct logic.
5599 (getRunStart): Likewise.
5600 (getAttribute): Fix inequality.
5601 (getAttributes): Likewise.
5602 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5604 2004-03-23 Kim Ho <kho@redhat.com>
5606 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5607 (calculateSizes): Return real width and height.
5609 2004-03-23 Kim Ho <kho@redhat.com>
5611 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5612 (calculateTabRects): Set the selectedRun before
5613 trying to rotate tabs.
5615 2004-03-23 Kim Ho <kho@redhat.com>
5617 * Makefile.am: New file
5618 * Makefile.in: Regenerate
5619 * java/awt/Graphics.java: (drawRect):
5620 Draw to the correct point.
5621 * javax/swing/DefaultSingleSelectionModel.java
5622 (isSelected): Return true if the selected index
5624 * javax/swing/JLabel.java: Do not change mnemonic
5625 index if text is null.
5626 * javax/swing/JProgressBar.java: Use JComponent's
5628 * javax/swing/JScrollBar.java: Ditto.
5629 * javax/swing/JSlider.java: Ditto.
5630 * javax/swing/JTabbedPane.java: Reimplement.
5631 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5632 Add defaults for TabbedPane.
5633 * javax/swing/plaf/basic/BasicArrowButton.java:
5635 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5636 (paintDeterminate): Don't paint String if it's
5638 (paintIndeterminate): ditto.
5639 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5642 2004-03-19 Michael Koch <konqueror@gmx.de>
5644 * java/awt/image/AffineTransformOp.java
5645 (AffineTransformOp): Made public.
5646 * javax/swing/JComponent.java
5647 (listenerList): Made protected.
5648 (accessibleContext): Likewise.
5649 * javax/swing/JList.java
5650 (valueChanged): Dont use internal fields of ListSelectionEvent.
5651 * javax/swing/JViewport.java
5652 (getView): Dont use internal fields of Component.
5653 (addImpl): Likewise.
5654 * javax/swing/Timer.java
5655 (isRunning): Made public.
5658 * javax/swing/UIDefaults.java
5659 (getInt): Made public.
5660 * javax/swing/plaf/basic/BasicListUI.java
5661 (mousePressed): Dont use internal fields of MouseEvent.
5662 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5663 * javax/swing/plaf/basic/BasicScrollBarUI.java
5664 (arrowIcon): Made static.
5665 * javax/swing/plaf/basic/BasicViewportUI.java
5666 (stateChanged): Dont use internal field on ChangeEvent.
5667 * javax/swing/text/JTextComponent.java
5668 (getUI): Call UIManager.getUI().
5669 (updateUI): Use getUI().
5671 2004-03-19 Graydon Hoare <graydon@redhat.com>
5673 * javax/swing/JComponent.java: Turn off double buffer by default.
5674 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5675 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5676 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5677 Use cairo to copy areas.
5678 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5679 Initialize and set clip region.
5681 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5683 * java/applet/Applet.java (preferredSize): Override deprecated
5684 variant of getPreferredSize.
5685 (minimumSize): Override deprecated variant of getMinimumSize.
5687 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5689 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5690 (drawImage(img,xform,bgcolor,obs)): New Method.
5691 Helper function that every drawImage method will
5693 (drawRaster): Added new parameter, bgcolor. All
5694 transparent pixels are changed to bgcolor before
5696 (drawRenderedImage): Fixed to use changed drawRaster().
5697 (drawImage(image,xform,obs): Fixed to use new helper function
5698 (drawImage(image,op,x,y)): Ditto.
5699 (drawImage (img,x,y,observer)): Ditto.
5700 ((PainterThread) bgcolor): New Field.
5701 ((PainterThread) (setPixels)): Changed all transparent pixels
5703 (drawImage(img,x,y,width,height,bgcolor,observer)):
5704 Fixed FIXME - all the transparent pixels are
5705 changed to the specified bgcolor.
5706 (drawImage(img, x, y, width, height, observer): Changed to
5708 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5709 Fixed FIXME- changed all transparent pixels to bgcolor.
5710 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5711 Changed to use function above.
5713 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5715 * java/applet/Applet.java (dimensions): New field.
5716 (getDimensions): New method.
5717 (getPreferredSize): Call getDimensions.
5718 (getMinimumSize): Likewise.
5720 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5722 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5723 * jni/classpath/jnilink.c: Likewise.
5725 * java/applet/Applet.java (getPreferredSize): New method.
5726 (getMinimumSize): New method.
5728 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5730 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5731 (_Jv_AllocObjectNoFinalizer): Likewise.
5732 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5733 (_Jv_AllocPtrFreeObject): Likewise.
5734 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5735 directly even in the JVMPI case.
5736 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5737 _Jv_AllocObject calls.
5738 * gcj/javaprims.h: Update prototypes.
5739 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5740 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5741 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5743 2004-04-14 Andrew Haley <aph@redhat.com>
5744 Bryce McKinlay <mckinlay@redhat.com>
5746 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5747 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5748 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5750 * testsuite/libjava.lang/InvokeInterface.java: New file.
5751 * testsuite/libjava.lang/InvokeInterface.out: New file.
5753 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5755 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5757 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5758 StackTraceElement directly.
5759 (newElement): New native helper method to create StackTraceElement
5760 bypassing Java access control.
5761 (createStackTraceElement): Use newElement() instead of directly
5762 calling StackTraceElement's constructor.
5763 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5765 2004-04-01 Michael Koch <konqueror@gmx.de>
5767 * java/lang/SecurityManager.java
5768 (checkAwtEventQueueAccess): Implemented.
5770 2004-04-01 Gary Benson <gbenson@redhat.com>
5772 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5773 (_Jv_SearchMethodInClass): Likewise.
5775 2004-03-26 Peter Moon <peterm@miraculum.com>
5777 * java/text/NumberFormat.java: Fix spelling of setCurrency
5780 2004-03-21 Anthony Green <green@redhat.com>
5782 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5783 recursion when searching for the system ClassLoader.
5785 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5787 * java/net/ServerSocket.java
5788 (accept): Close the socket when error occured.
5790 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
5792 * java/net/URI.java (parseURI): Added unquoting.
5793 (unquote): New method.
5794 (quoteAuthority): Implemented.
5795 (quote(String,String)): New method.
5796 (quotePath): Implemented.
5797 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5798 (getSchemeSpecificPart): Removed FIXME comment.
5799 (getRawAuthority): Return new rawAuthority field.
5800 (getAuthority): Removed FIXME comment.
5801 (getRawUserInfo): Return new rawUserInfo field.
5802 (getUserInfo): Removed FIXME comment.
5803 (getRawPath): Return new rawPath field.
5804 (getPath): Removed FIXME comment.
5805 (getRawQuery): Return new rawQuery field.
5806 (getQuery): Removed FIXME comment.
5807 (getRawFragment): Return new rawFragment field.
5808 (getFragment): Removed FIXME comment.
5810 2004-03-20 Michael Koch <konqueror@gmx.de>
5812 * java/net/URLConnection.java: Merged copyright year with classpath.
5814 2004-03-20 Norbert Frese <postfach@nfrese.net>
5816 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5817 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5818 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5820 (getObjectInputStream): Return object reference, throw IOException if null.
5821 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5822 (getObjectOutputStream): Return object reference, throw IOException if null.
5823 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5824 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5825 (UnicastConnectionManager): Throw RemoteException if port is not available.
5826 (getInstance): Throw RemoteException.
5827 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5828 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5829 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5830 Collect Exceptions which are returned by a rmi-call and fix void returns.
5831 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
5832 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5833 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
5834 (dispatch): Answer ping messages which are sent by other java implementions.
5835 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
5836 for every rmi-message and fix void return problems.
5837 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
5838 (UnicastServerRef): Throw RemoteException.
5839 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
5840 In some situations it is necessary to export a subclass of the class which has the _Stub.
5841 For instance when the class with has the _Stub is abstract.
5842 (findStubSkelClass): New method which looks for the class which has the _Stub.
5843 (getClientHost): Implementated.
5844 * gcc/libjava/java/rmi/server/RemoteServer.java
5845 (getClientHost): Implementated.
5846 * gcc/libjava/Makefile.am (rmi_java_source_files):
5847 Added gnu/java/rmi/server/RMIIncomingThread.java.
5848 * Makefile.in: Regenerated.
5850 2004-03-20 Michael Koch <konqueror@gmx.de>
5852 * java/net/InetAddress.java
5853 (getLocalHostname): Added javadoc.
5855 2004-03-19 Per Bothner <per@bothner.com>
5857 * configure.in: FILE variable overrides FLATFORM when linking
5858 natFileChannelXXX.cc.
5860 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
5861 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
5863 2004-03-19 Per Bothner <per@bothner.com>
5865 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
5866 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
5867 * Makefile.am: Update accordingly.
5868 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
5869 as aliases for UnicodeLittle and UnicodeBig.
5871 2004-03-20 Mark Wielaard <mark@klomp.org>
5873 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5874 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
5875 Don't access ws when it is null.
5876 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
5879 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
5881 * java/lang/ThreadGroup.java (list): Changed print to println.
5883 2004-03-19 Mark Wielaard <mark@klomp.org>
5885 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
5888 2004-02-10 Randolph Chung <tausq@debian.org>
5890 * configure.in: Build java for hppa target.
5891 * configure: Regenerate.
5892 * libjava/configure.host (hppa-*): Add target.
5893 * libjava/sysdeps/pa/lock.h: New file.
5895 2004-03-19 Mark Wielaard <mark@klomp.org>
5897 Reported by Stephen Crawley
5898 * java/io/FilePermission.java (implies): Use String.length() -1 to
5899 access last char of String.
5901 2004-03-19 Michael Koch <konqueror@gmx.de>
5903 * java/awt/image/AffineTransformOp.java
5904 (AffineTransformOp): Made public.
5905 * javax/swing/JComponent.java
5906 (listenerList): Made protected.
5907 (accessibleContext): Likewise.
5908 * javax/swing/JList.java
5909 (valueChanged): Dont use internal fields of ListSelectionEvent.
5910 * javax/swing/JViewport.java
5911 (getView): Dont use internal fields of Component.
5912 (addImpl): Likewise.
5913 * javax/swing/Timer.java
5914 (isRunning): Made public.
5917 * javax/swing/UIDefaults.java
5918 (getInt): Made public.
5919 * javax/swing/plaf/basic/BasicListUI.java
5920 (mousePressed): Dont use internal fields of MouseEvent.
5921 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5922 * javax/swing/plaf/basic/BasicScrollBarUI.java
5923 (arrowIcon): Made static.
5924 * javax/swing/plaf/basic/BasicViewportUI.java
5925 (stateChanged): Dont use internal field on ChangeEvent.
5926 * javax/swing/text/JTextComponent.java
5927 (getUI): Call UIManager.getUI().
5928 (updateUI): Use getUI().
5930 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5932 * verify.cc: Undef PC.
5934 2004-03-18 Michael Koch <konqueror@gmx.de>
5936 * java/nio/channels/spi/AbstractSelectableChannel.java
5937 (keys): Initialize at declaration.
5938 (locate): keys cant be null.
5940 (addSelectionKey): New method.
5941 (removeSelectionKey): New method.
5942 * java/nio/channels/spi/AbstractSelectionKey.java
5943 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
5944 * java/nio/channels/spi/AbstractSelector.java
5945 (provider): Javadoc added.
5946 (cancelledKeys): Javadoc added.
5947 (cancelKey): Javadoc added, add key to cancelledKeys.
5948 (deregister): Implemented.
5950 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5952 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
5953 MAP_FAILED to void *.
5955 2004-03-12 Graydon Hoare <graydon@redhat.com>
5957 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
5958 * javax/swing/JComponent.java (paint): Use persistent double buffer.
5959 * javax/swing/JList.java (ListListener): Revalidate on changes.
5960 * javax/swing/JScrollPane.java: Reimplement.
5961 * javax/swing/JViewport.java: Reimplement.
5962 * javax/swing/ScrollPaneLayout.java: Reimplement.
5963 * javax/swing/ViewportLayout.java: Tidy up.
5964 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
5965 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
5966 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
5967 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
5970 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5972 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5973 (window_wm_protocols_filter): New function.
5974 (window_focus_in_cb): Remove function.
5975 (window_focus_out_cb): Likewise.
5976 (window_focus_or_active_state_change_cb): New function.
5977 (create): Add filter that removes WM_TAKE_FOCUS client messages.
5978 (connectSignals): Don't attach handlers to focus-in-event or
5979 focus-out-event signals. Handle notify signal.
5981 2004-03-11 David Jee <djee@redhat.com>
5983 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
5984 (gtkSetLabel): New native method declaration.
5985 (setLabel): Use gtkSetLabel.
5986 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
5987 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
5989 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
5991 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
5992 black when color argument is null.
5994 2004-03-10 Kim Ho <kho@redhat.com>
5996 * java/awt/Container.java: Remove check
5999 2004-03-10 Kim Ho <kho@redhat.com>
6001 * java/awt/Container.java: (visitChild):
6002 Remove candidate clip. Use the component
6004 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6005 (handleEvent): Use the PaintEvent's clip.
6007 2004-03-10 Kim Ho <kho@redhat.com>
6009 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6010 (handleEvent): Don't set the clip for the
6013 2004-03-09 Graydon Hoare <graydon@redhat.com>
6015 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6016 Fix double <-> fixed macros, reset font transform.
6017 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6020 2004-03-09Â Kim Ho <kho@redhat.com>
6022 * java/awt/Container.java: (visitChild): Move
6023 the x and y coordinate of the component rectangle
6024 to correct position.
6025 (handleEvent): Forward drag events to the pressed
6027 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6029 (ArrowButtonListener::mousePressed): Stop the
6031 (mouseDragged): Implement.
6032 (TrackListener::mousePressed): Only react if
6033 the press doesn't occur on the thumb, otherwise
6034 just set the offset.
6035 (TrackListener::mouseReleased): Unset the isAdjusting
6037 (createIncreaseIcon): Switch icon.
6038 (createDecreaseIcon): Switch icon.
6039 (calculatePreferredSize): Use width.
6040 (getThumbBounds): Use the top as the lower value.
6041 (layoutVScrollBar): Switch the button locations.
6042 (paintIncreaseHighlight): Paint correct side of thumb.
6043 (paintDecreaseHighlight): ditto.
6044 (valueForYPosition): Use top as the lower value.
6045 * javax/swing/plaf/basic/BasicSliderUI.java:
6047 (mouseDragged): Implement.
6048 (mousePressed): Only react when the thumb isn't
6049 pressed, otherwise just set offset.
6050 (mouseReleased): Handle a release of the thumb.
6051 (scrollDueToClickInTrack): Stop the timer first.
6052 * javax/swing/JProgressBar.java:
6053 (setString): Fix change condition.
6054 * javax/swing/JSeparator.java:
6057 2004-03-08 David Jee <djee@redhat.com>
6059 * java/awt/image/AffineTransformOp.java:
6060 (filter): Use Graphics2D interface instead of directly using the
6063 2004-03-05 David Jee <djee@redhat.com>
6065 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6066 (handleEvent): Action events are generated upon MOUSE_RELEASED.
6067 * java/awt/Container.java
6068 (acquireComponentForMouseEvent): Fixed.
6069 (handleEvent): Fixed.
6070 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6071 (state_to_awt_mods_with_button_states): New method.
6072 (pre_event_handler): Fixed mouse event generation.
6074 2004-03-05 Olga Rodimina <rodimina@redhat.com>
6076 gnu/java/awt/peer/gtk/GdkGraphics2D.java
6077 (GdkGraphics2D (BufferedImage)): Initialize
6078 pixmap associated with specified BufferedImage.
6079 (setPaint): Changed implementation of Texture
6080 Paint to use AffineTransformOp.
6081 * java/awt/image/AffineTransformOp.java
6082 (createCompatibleDestRaster): Throw RasterFormatException
6083 if resulting width or height of raster is 0.
6085 2004-03-04 Olga Rodimina <rodimina@redhat.com>
6087 * java/awt/image/AffineTransformOp.java:
6088 Removed unnecessary field interpolationType.
6089 Formatted some of the lines to be consistent with
6091 (AffineTransformOp): Create new RenderingHints
6092 containing specified interpolation type.
6093 (createCompatibleDestImage): Implemented.
6094 (createCompatibleDestRaster): Implemented.
6095 (filter): Implemented.
6096 (getBounds2D(BufferedImage)): Implemented.
6097 (getBounds2D(Raster)): Implemented.
6098 (getInterpolationType): Get interpolation value from
6101 2004-03-04 David Jee <djee@redhat.com>
6103 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6104 (setFont): Check if child peers are null.
6106 2004-03-04 Graydon Hoare <graydon@redhat.com>
6108 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6110 (libjava_arguments): Add new libraries to argument list.
6112 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6114 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6115 * Makefile.in: Re-generated.
6116 * java/awt/image/AffineTransformOp.java: New Class.
6118 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6120 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6121 (setPaint): Interpret correctly TexturePaint's
6123 (drawImage): Fixed scale factors of the affine
6126 2004-02-27 David Jee <djee@redhat.com>
6128 * gnu/java/awt/peer/gtk/GdkGraphics.java
6129 (GdkGraphics(Component)): Inherit font from component.
6130 (drawString): Use font style.
6131 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6132 (gtkSetFont): New native method declaration.
6133 (setFont): New method.
6134 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6135 (gtkSetFont): New native method declaration.
6136 (setFont): Call new native method gtkSetFont.
6137 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6138 (setFont): For all child components who do not their fonts set,
6139 set their peers' fonts with this container's font.
6140 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6141 Move all native method declarations to the top for readability.
6142 (gtkSetFont): New native method declaration.
6143 (setFont): New method.
6144 * java/awt/Component.java
6145 (setFont): Invalidate after setting the font.
6146 * java/awt/Container.java
6147 (invalidateTree): New method.
6148 (setFont): Invalidate the container tree after setting the font.
6149 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6150 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6151 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6152 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6153 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6154 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6155 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6156 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6158 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6160 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6161 (updateBufferedImage): New helper function.
6162 Updates BufferedImage in memory if it was changed.
6163 (draw): changed to update BufferedImage in memory after
6164 this drawing operation
6166 (draw3DRect): Ditto.
6167 (fill3DRect): Ditto.
6169 (drawRaster): Ditto.
6170 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6171 no affine transformation.
6172 (drawGlyphVector): Ditto.
6174 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6176 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6177 (isBufferedImageGraphics): New Helper function.
6178 Returns true if this graphics2d can be used to draw
6179 into buffered image and false otherwise.
6180 (updateImagePixels): New Helper function.
6181 Updates pixels in the BufferedImage.
6182 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6183 (getImagePixels): New function. Returns pixels
6184 of the buffered image associated with
6187 2004-02-26 David Jee <djee@redhat.com>
6189 * java/awt/BorderLayout.java
6190 (layoutContainer): Fix width and height calculations to ensure
6191 that they're non-negative.
6192 * java/awt/Component.java
6193 (setBackground): If c is null, inherit from closest ancestor whose
6194 background color is set.
6196 2004-02-26 Kim Ho <kho@redhat.com>
6198 * Makefile.am: Add new files.
6199 * Makefile.in: Re-generate.
6200 * javax/swing/JProgressBar.java:
6201 (JProgressBar(int, int int)): Throw
6202 IllegalArgumentException if orientation is
6204 (JProgressBar(BoundedRangeModel)): Create
6205 ChangeListener and register it. UpdateUI.
6206 (getChangeListeners): Implement.
6207 (setModel): Reset ChangeListener.
6208 * javax/swing/JScrollBar.java: Implement.
6209 * javax/swing/JSeparator.java: Implement.
6210 * javax/swing/JSlider.java:
6211 (JSlider(int, int, int, int)): Throw
6212 IllegalArgumentException if orientation
6214 (getChangeListeners): Fix method name.
6215 * javax/swing/SwingUtilities.java:
6216 (layoutCompoundLabel): If there is no text,
6217 set the text rectangle dimensions to 0.
6218 * javax/swing/plaf/basic/BasicButtonUI.java:
6219 (paint): If there is no text, don't paint it.
6220 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6222 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6224 * javax/swing/plaf/basic/BasicSliderUI.java:
6225 (propertyChange): If the model changes, change
6226 the listeners accordingly.
6228 2004-02-25 Graydon Hoare <graydon@redhat.com>
6230 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6231 * javax/swing/JList.java: Reimplement.
6232 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6233 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6234 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6235 * javax/swing/ListModel.java: Javadoc.
6236 * javax/swing/ListSelectionModel.java: Add missing methods.
6237 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6238 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6239 * javax/swing/ListModel.java: Javadoc and corrections.
6240 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6242 2004-02-25 David Jee <djee@redhat.com>
6244 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6245 (GtkFontPeer): Change default size to 12.
6246 * gnu/java/awt/peer/gtk/GtkToolkit.java
6247 (getFontPeer): Change default size to 12.
6248 (getClasspathFontPeer): Likewise. Set default name to "Default".
6249 * java/awt/Font.java
6250 (Font(Map)): Call Font(String,Map).
6251 (Font(String,Map)): If attrs is null, initialize it as an empty
6252 HashMap, which will ensure that the Font will get default attributes.
6254 2004-02-25 David Jee <djee@redhat.com>
6256 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6257 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6258 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6259 * gnu/java/awt/peer/gtk/GtkToolkit.java
6260 (getFontPeer(String,int)): Call the new overload method with size 1.
6261 (getFontPeer(String,int,int)): New method. Overloaded with size
6263 (getClasspathFontPeer): Set the size of the font.
6265 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6267 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6268 (bimage): New field.
6269 (GdkGraphics2D): New Constructor. Constructs Graphics
6270 object that can be used to draw into the Buffered Image.
6271 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6272 (GdkGraphicsEnvironment): Fixed to include public
6274 (createGraphics): Implemented.
6275 * gnu/java/awt/peer/gtk/GtkToolkit.java
6276 (getLocalGraphicsEnvironment): Implemented.
6277 * java/awt/GraphicsEnvironment.java:
6278 (getLocalGraphicsEnvironment): Implemented.
6279 * java/awt/image/BufferedImage.java:
6280 (createGraphics): Implemented.
6282 2004-02-24 David Jee <djee@redhat.com>
6284 * java/awt/Component.java
6285 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6286 * java/awt/Container.java
6287 (addNotifyContainerChildren): Fix event enabling.
6289 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6291 * Makefile.am: Added
6292 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6293 * Makefile.in: Re-generated.
6294 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6297 2004-02-19 Kim Ho <kho@redhat.com>
6299 * Makefile.am: Add BasicProgressBarUI
6300 * Makefile.in: Regenerate.
6301 * javax/swing/JProgressBar.java:
6303 * javax/swing/plaf/basic/BasicLookAndFeel.java
6304 Add constants for JProgressBar.
6305 * javax/swing/plaf/basic/BasicProgressBarUI.java
6307 * javax/swing/plaf/basic/BasicSliderUI.java
6309 (calculateGeometry): New method
6310 (paint): Remove unnecessary size calculations.
6312 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6314 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6315 (drawRaster): Fixed small error that caused
6316 imageToUser transformation to be set incorrectly.
6317 (toString): Implemented.
6319 2004-02-18 David Jee <djee@redhat.com>
6321 * java/awt/CardLayout.java
6322 (addLayoutComponent): Show the first component added as the default.
6323 (removeLayoutComponent): After removing, show the next component.
6324 (gotoComponent): If there is only one component, show it and return.
6326 2004-02-18 Kim Ho <kho@redhat.com>
6328 * javax/swing/JSlider.java: Re-order
6330 * javax/swing/JLabel.java: Re-order
6332 * javax/swing/JComponent.java:
6333 (addPropertyChangeListener):
6335 (removePropertyChangeListener):
6337 (firePropertyChangeEvent):
6340 2004-02-17 David Jee <djee@redhat.com>
6342 * java/awt/Component.java
6343 (show): Dispatch ComponentEvent via system event queue.
6347 (reshape): Likewise.
6348 * java/awt/Window.java
6349 (setBoundsCallback): Likewise.
6351 2004-02-17 David Jee <djee@redhat.com>
6353 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6354 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6355 Use gtk_widget_set_size_request() instead of the deprecated
6356 gtk_widget_set_usize().
6358 2004-02-17 Kim Ho <kho@redhat.com>
6360 * javax/swing/JSlider.java: Fix comments and
6361 make property strings constants.
6362 (createStandardLabels): Use the labels
6363 preferred size as bounds.
6364 * javax/swing/plaf/basic/BasicSliderUI.java
6366 (ScrollHandler::actionPerformed): Don't
6367 calculate the timer stop value. Let the
6368 MouseListeners find the stop location.
6369 (getPreferredHorizontalSize): Re-implement.
6370 (getPreferredVerticalSize): ditto.
6371 (getMinimumHorizontalSize): ditto.
6372 (getMinimumVerticalSize): ditto.
6373 (getPreferredSize): ditto.
6374 (getMinimumSize): ditto.
6375 (getMaximumSize): ditto.
6376 (paintTicks): Use doubles to find the
6378 (paintHorizontalLabel):Â Use preferredSize
6379 as initial width and height.
6380 (paintVerticalLabel): ditto.
6382 2004-02-17 Kim Ho <kho@redhat.com>
6384 * javax/swing/JLabel.java: Changed
6385 property strings to constants.
6386 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6388 (setText): Change mnemonic index if
6390 (setDisplayedMnemonicIndex): Fire property
6392 (getDisplayedMnemonicIndex): Remove check
6395 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6397 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6398 (drawImage(img,xform,obs)): Invert xform before
6399 passing the xform to cairo.
6400 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6401 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6403 (drawImage (img,x,y,w,h,obs)): Implemented.
6404 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6405 bgcolor,obs)): Partly implemented.
6406 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6408 * java/awt/image/BufferedImage.java:
6409 (copyData): if dest is null, create raster with same
6410 dimensions as the current image.
6412 2004-02-16 Graydon Hoare <graydon@redhat.com>
6414 * javax/swing/plaf/basic/BasicLabelUI.java
6415 (getPreferredSize): Use layoutCL.
6416 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6417 (getPreferredButtonSize): Start with empty view rect, layout using
6418 component's preferred alignment.
6419 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6422 2004-02-16 David Jee <djee@redhat.com>
6424 * java/awt/Component.java
6425 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6426 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6427 (move): Erase old bounds and repaint new bounds. Dispatch
6428 COMPONENT_MOVED ComponentEvent.
6429 (resize): Erase old bounds and repaint new bounds. Dispatch
6430 COMPONENT_RESIZED ComponentEvent.
6431 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6433 * java/awt/Window.java
6434 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6437 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6439 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6440 (setRenderingHint): Added implementation of
6441 Interpolation rendering hints.
6442 (setRenderingHints): Ditto.
6443 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6444 (drawPixels): fixed to allow user to choose type
6445 of filtering that should be used when displaying images.
6446 (cairoSurfaceSetFilter): New method. Sets filter type for
6447 interpolation of pixel values.
6449 2004-02-16 David Jee <djee@redhat.com>
6451 * java/awt/GridBagLayout.java
6452 (calcCellSizes): Rows or columns with zero sizes should still be
6453 considered for extra space distribution.
6455 2004-02-16 Kim Ho <kho@redhat.com>
6457 * javax/swing/JLabel.java: Re-implement.
6458 * javax/swing/plaf/basic/BasicLabelUI.java
6460 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6463 2004-02-16 Kim Ho <kho@redhat.com>
6465 * javax/swing/JSlider.java: Fix indentation and comments.
6466 (setModel): Remove null check to conform with Sun's.
6467 (setOrientation): Throw exception if not
6468 HORIZONTAL or VERTICAL.
6469 (getInverted): Use private variable instead of
6470 ComponentOrientation.
6471 (setInverted): ditto.
6472 * javax/swing/plaf/basic/BasicSliderUI.java:
6473 Fix indentation and comments.
6474 (propertyChange): Remove check for inverted slider, handle
6476 (getMinimumSize): Return preferred size.
6477 (getMaximumSize): ditto.
6478 (calculateFocusRect): Don't relocate rectangle.
6479 (drawInverted): Return XOR of the slider's inversion and
6480 the component's orientation.
6481 (paint): Update leftToRightCache
6483 2004-02-13 David Jee <djee@redhat.com>
6485 * java/awt/GridBagLayout.java
6486 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6487 code to helper methods.
6488 (sortBySpan): New helper method.
6489 (distributeSizeAndWeight): Likewise.
6490 (calcCellWeights): Likewise.
6491 (calcCellSizes): Add comments.
6493 2004-02-13 David Jee <djee@redhat.com>
6495 * java/awt/Component.java
6496 (show): Only do something if component is invisible at the moment.
6497 (hide): Only do something if component is visible at the moment.
6498 (reshape): If lightweight, erase old bounds and repaint new bounds.
6500 2004-02-13 Kim Ho <kho@redhat.com>
6502 * Makefile.am: Updated for new file.
6503 * Makefile.in: Regenerated.
6504 * javax/swing/JSlider.java: Reimplement.
6505 * javax/swing/SwingUtilities.java
6506 (layoutCompoundLabel): Use icon height
6508 (paintComponent): Implement.
6509 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6510 Add JSlider defaults.
6511 * javax/swing/plaf/basic/BasicSliderUI.java:
6512 Implement. New file.
6514 2004-03-17 Michael Koch <konqueror@gmx.de>
6516 * gnu/java/net/PlainDatagramSocketImpl.java
6517 (RECEIVE_LOCK): New member field.
6518 (SEND_LOCK): New member field.
6519 (send0): New method.
6520 (send): Synchronize on SEND_LOCK.
6521 (receive0): New method.
6522 (receive): Synchronize on RECEIVE_LOCK.
6523 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6524 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6525 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6526 (send0): Renamed from send.
6527 (receive0): Renamed from receive.
6528 2004-03-17 Michael Koch <konqueror@gmx.de>
6530 * gnu/java/net/natPlainSocketImplPosix.cc
6531 (write): Just call write(jbyteArray, offset, len).
6532 (read): Just call read(jbyteArray, offset, len).
6534 2004-03-16 Michael Koch <konqueror@gmx.de>
6536 * javax/swing/JTabbedPane.java
6537 (serialVersionUID): New field.
6539 2004-03-16 Norbert Frese <postfach@nfrese.net>
6541 * java/net/InetAddress.java
6542 (getByName): Handle hostname == "" case.
6544 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6546 Reported by: Adam Heath <doogie@debian.org>
6547 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6550 2004-03-15 Michael Koch <konqueror@gmx.de>
6552 * java/util/Locale.java: Reverting my last patch
6553 and add a comment why the original version was okay.
6555 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6557 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6558 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6559 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6560 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6562 2004-03-12 Michael Koch <konqueror@gmx.de>
6564 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6566 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6568 * java/net/URI.java (toURL): Implemented.
6570 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6573 (URI_REGEXP) updated to contain scheme specific part.
6574 (SCHEME_SPEC_PART_GROUP) new constant.
6575 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6576 updated to make room for SCHEME_SPEC_PART_GROUP.
6577 (parseURI) parse scheme specific part.
6578 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6579 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6580 getQuery, getFragment) implemented.
6582 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6584 * libraries/javalib/java/net/URI.java
6585 partially implemented using java.util.regex.
6586 (URI_REGEXP) new constant. Used to parse URIs.
6587 (SCHEME_GROUP) new constant representing index of scheme group
6589 (AUTHORITY_GROUP) new constant representing index of authority
6590 group in parsed URI.
6591 (PATH_GROUP) new constant representing index of path group in
6593 (QUERY_GROUP) new constant representing index of query group in
6595 (FRAGMENT_GROUP) new constant representing index of fragment
6596 group in parsed URI.
6597 (getURIGroup) new static utility method.
6598 (parseURI) implemented.
6599 (quote) stub for new static utility method.
6600 (quoteAuthority) stub for new static utility method.
6601 (quoteHost) stub for new static utility method.
6602 (quotePath) stub for new static utility method.
6603 (quoteUserInfo) stub for new static utility method.
6605 (create) don't throw URISyntaxException. Implemented.
6606 (toString) implemented.
6608 2004-03-12 Michael Koch <konqueror@gmx.de>
6610 * java/net/HttpURLConnection.java
6611 (getResponseCode): Fix another typo in javadoc.
6613 2004-03-11 Michael Koch <konqueror@gmx.de>
6615 * java/util/logging/Level.java
6616 (parse): Use String.equals() instead of ==.
6618 2004-03-11 Michael Koch <konqueror@gmx.de>
6620 * gnu/java/net/protocol/jar/Connection.java
6621 (getContentLength): New method.
6623 2004-03-11 Michael Koch <konqueror@gmx.de>
6625 * gnu/java/net/PlainSocketImpl.java:
6626 Reformated to merge better with classpath's version.
6628 2004-03-11 Michael Koch <konqueror@gmx.de>
6630 * java/util/Locale.java
6631 (getISO3Language): Use String.equals() instead of ==.
6632 (getISO3Country): Likewise.
6634 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6636 * java/text/AttributedString.java
6637 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6638 Use HashMap instead of Hashtable since value can be null, and
6639 you can not store a null value in a Hashtable.
6641 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6643 * java/text/AttributedStringIterator.java
6644 (getAllAttributesKey): Return only keys concerned
6645 by the current iterator.
6646 (getAttributes): Use strict inequality for
6649 2004-03-11 Michael Koch <konqueror@gmx.de>
6651 * java/net/HttpURLConnection.java:
6652 Fixed typo in javadoc.
6654 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6656 * java/io/BufferedInputStream.java (marktarget): New field for max
6658 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6659 (mark): Use new fields.
6661 (read(byte[],int,int)): Likewise.
6665 2004-03-11 Mark Wielaard <mark@klomp.org>
6667 * java/beans/BeanDescriptor.java (BeanDescriptor):
6668 Set the FeatureDescriptor programmatic name.
6670 2004-03-11 Michael Koch <konqueror@gmx.de>
6672 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6673 This file was was just copied form java/io/natFileDescriptorEcos.cc
6674 and never changed to compile correctly.
6676 2004-03-11 Michael Koch <konqueror@gmx.de>
6678 * gnu/java/nio/PipeImpl.java
6679 (SourceChannelImpl): Made final.
6680 (read): Implemented.
6681 (SinkChannelImpl): Made final.
6682 (write): Implemented.
6684 2004-03-11 Michael Koch <konqueror@gmx.de>
6686 * gnu/java/net/PlainDatagramSocketImpl.java:
6687 Reformated to match classpath's version more.
6689 2004-03-11 Michael Koch <konqueror@gmx.de>
6691 * gnu/java/awt/peer/ClasspathFontPeer.java:
6692 Fixed javadoc to be correct xhtml.
6693 * gnu/java/awt/peer/gtk/GtkArgList.java
6694 (add): Use Boolean.valueOf() instead of new Boolean().
6696 2004-03-09 Michael Koch <konqueror@gmx.de>
6698 * java/lang/Thread.java
6699 (runnable): Moved around.
6700 (daemon): Renamed from daemon_flag.
6701 (contextClassLoader): Renamed from context_class_loader.
6702 (Thread): Reordered constructors.
6703 (activeCount): Use group directly.
6704 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6705 (holdsLock): Reworked javadoc.
6706 (setDaemon): Reworked.
6707 * java/lang/natThread.cc
6710 2004-03-08 Anthony Green <green@redhat.com>
6712 * Makefile.am: Build property resource files into libgcj.
6713 * Makefile.in: Rebuilt.
6714 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6715 java/util/regex/PatternSyntaxException.java,
6716 gnu/regexp/CharIndexed.java,
6717 gnu/regexp/CharIndexedCharArray.java,
6718 gnu/regexp/CharIndexedInputStream.java,
6719 gnu/regexp/CharIndexedReader.java,
6720 gnu/regexp/CharIndexedString.java,
6721 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6722 gnu/regexp/REException.java,
6723 gnu/regexp/REFilterInputStream.java,
6724 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6725 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6726 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6727 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6728 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6729 gnu/regexp/RETokenLookAhead.java,
6730 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6731 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6732 gnu/regexp/RETokenStart.java,
6733 gnu/regexp/RETokenWordBoundary.java,
6734 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6736 2004-03-03 Per Bothner <per@bothner.com>
6738 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6739 Optimize when argument is a FileChannelImpl.
6740 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6742 * java/nio/channels/natChannels.cc: New file for new native methods.
6743 * Makefile.am: Update accordingly.
6745 2004-03-02 Jan Hubicka <jh@suse.cz>
6747 * configure.host: Pass -fno-omit-frame-pointer for i386.
6748 * configure.in: Likewise.
6749 * configure: Regenerate.
6751 2004-03-01 Per Bothner <per@bothner.com>
6753 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6755 2004-02-29 Per Bothner <per@bothner.com>
6757 * java/nio/channels/FileChannelImpl.java: Moved to package
6758 gnu/java/nio/channels, since we need to refer to it from java.io.
6759 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6760 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6761 from java/nio/channels. Don't depend on FileDescriptor.
6762 (in, out, err): New static fields.
6764 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6765 from FileDescriptor.
6766 (by): Removed MappedByteBuffer field.
6767 (map): New working implementation.
6768 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6769 some code "ported" from natFileDescriptoPosix.cc.
6770 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6771 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6772 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6773 Remove native methods.
6774 * Makefile.am, configure.in: Updated accordingly.
6776 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6777 (ch): New FileChannelImpl field. Update constructor to match.
6778 (releaseImpl): Remove native method. Instead ...
6779 (release): Call unlock on channel.
6780 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6782 * java/io/natFileDescriptorEcos.cc: Remove file.
6783 * java/io/natFileDescriptorPosix.cc: Remove file.
6784 * java/io/natFileDescriptorWin32.cc: Remove file.
6785 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6786 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6787 (<init>(FileChannelImpl)): New package-private constructor.
6788 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6789 (available, close, read, skip): Implement using FileChannelImpl.
6790 (getFD): Allocate FileDescriptor if needed.
6791 (getChannel): Is now trivial.
6792 * java/io/FileOutputStream.java: Corresponding changes.
6793 * java/io/RandomAccessFile.java: Corresponding changes.
6795 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6796 unmapImpl): New dummy methods, to be overridden by subclass.
6797 (finalize, isLoaded, load, force): New methods.
6798 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
6799 Now works, at least for read mapping.
6801 * java/lang/natPosixProcess.cc (startProcess): Implement standard
6802 streams using FileChannelImpl, not FileDescriptor.
6803 * java/lang/natWin32Process.cc (startProcess): Likewise.
6805 2004-02-28 Michael Koch <konqueror@gmx.de>
6807 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6810 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
6812 * java/io/ObjectInputStream.java
6813 (readClassDescriptor): Keep elements of the mapping non null.
6814 (checkTypeConsistency): New method.
6815 (readFields): Fixed main loop and base logic. Small reindentation.
6816 * java/io/ObjectStreamField.java
6817 (lookupField): New method to update the field reference.
6818 (checkFieldType): New method.
6819 * java/io/ObjectStreamClass.java
6820 (setClass, setFields): Call lookupField when building the field
6821 database. Check the real field type.
6823 2004-02-28 Michael Koch <konqueror@gmx.de>
6825 * java/nio/ByteOrder.java
6826 (nativeOrder): Use equals() to compare strings.
6828 2004-02-26 Michael Koch <konqueror@gmx.de>
6830 * gnu/java/nio/FileLockImpl.java
6831 (finalize): Made protected.
6832 * java/nio/channels/FileChannel.java
6833 (MapMode.READ_ONLY): Made final.
6834 (MapMode.READ_WRITE): Made final.
6835 (MapMode.PRIVATE): Made final.
6836 * java/nio/channels/SocketChannel.java
6837 (open): Simplified code.
6838 * java/nio/channels/spi/AbstractSelectableChannel.java
6839 (registered): Unused, removed.
6840 (keyFor): Check channel is open, only locate key
6841 and not add a new one.
6842 (register): Don't delete attachments.
6844 2004-02-26 Michael Koch <konqueror@gmx.de>
6846 * gnu/java/awt/ComponentDataBlitOp.java
6847 (INSTANCE): Made final.
6848 * gnu/java/awt/image/ImageDecoder.java:
6850 (cm): Unused, removed.
6852 2004-02-26 Michael Koch <konqueror@gmx.de>
6854 * gnu/java/nio/DatagramChannelImpl.java
6855 (send): Check if target address is resolved.
6857 2004-02-26 Michael Koch <konqueror@gmx.de>
6859 * Makefile.am: Generate and install headers for inner classes in
6860 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
6861 * Makefile.in: Regenerated.
6863 2004-02-24 Anthony Green <green@redhat.com>
6865 * java/lang/StringBuffer.java: No need to NULL out remainder of
6866 buffer since ensureCapacity_unsynchronized will have done this for
6869 2004-02-20 Michael Koch <konqueror@gmx.de>
6871 * gnu/java/net/protocol/jar/Handler.java
6872 (): Removed unneeded check for file != null. java.net.URL.getFile()
6873 returns an empty string but never null.
6875 2004-02-20 Michael Koch <konqueror@gmx.de>
6877 * gnu/gcj/convert/Convert.java
6878 (main): Use equals() to compare strings.
6880 2004-02-20 Michael Koch <konqueror@gmx.de>
6882 * javax/swing/AbstractButton.java: Made several constants final.
6883 (getRolloverSelectedIcon): Made public.
6884 (getSelectedIcon): Made public.
6886 2004-02-16 Per Bothner <per@bothner.com>
6888 * java/nio/CharBufferImpl.java: Inline super constructor.
6889 * java/nio/DoubleBufferImpl.java: Likewise.
6890 * java/nio/FloatBufferImpl.java: Likewise.
6891 * java/nio/IntBufferImpl.java: Likewise.
6892 * java/nio/LongBufferImpl.java: Likewise.
6893 * java/nio/ShortBufferImpl.java: Likewise.
6894 * java/nio/CharBuffer.java: Remove unused constructor.
6895 * java/nio/DoubleBuffer.java: Likewise.
6896 * java/nio/FloatBuffer.java: Likewise.
6897 * java/nio/IntBuffer.java: Likewise.
6898 * java/nio/LongBuffer.java: Likewise.
6899 * java/nio/ShortBuffer.java: Likewise.
6900 * java/nio/CharViewBufferImpl.java: New convenience constructor.
6901 Fix buggy call to super constructor.
6902 * java/nio/DoubleViewBufferImpl.java: Likewise.
6903 * java/nio/FloatViewBufferImpl.java: Likewise.
6904 * java/nio/IntViewBufferImpl.java: Likewise.
6905 * java/nio/LongViewBufferImpl.java: Likewise.
6906 * java/nio/ShortViewBufferImpl.java: Likewise.
6908 * java/nio/ByteBuffer.java (endian): Make non-private so other
6909 java.nio classes can inherit it.
6910 (<init>): Don't bother clearing array_offset.
6911 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
6912 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
6913 Remove redundant test.
6915 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
6916 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
6917 Use new XxxViewBufferImpl constructors.
6918 * java/nio/MappedByteBufferImpl.java: Likewise.
6919 * java/nio/DirectByteBufferImpl.java: Likewise.
6921 * java/nio/ByteBufferImpl.java: Remove one constructor.
6922 Inline super in remaining constructor.
6923 * java/nio/ByteBuffer.java: Remove unused constructor.
6925 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
6927 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
6928 * java/nio/DirectByteBufferImpl.java (owner): New field.
6929 (offset): Remove unused field.
6930 (<init>): Modify one and add another constructor. Change callers.
6931 (allocateDirect): Removed - not used.
6932 (getImpl, putImpl): Make static and pass address explicitly,
6933 to make them useful for MappedByteBufferImpl.
6934 (get, put): Check for underflow. Modify for new getImpl.
6935 (getImpl): New native method where target is array.
6936 (get(byte[],int,int)): Use the above.
6937 (adjustAddress): New static native method.
6938 (slice, duplicate, asReadOnly): New implementations.
6939 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
6940 adjustAddress): New or updated native methods.
6942 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
6944 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
6945 overflow of fieldmapping.
6947 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
6949 * javax/swing/undo/UndoManager.java: Re-written from scratch.
6951 2004-02-14 Per Bothner <per@bothner.com>
6953 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
6954 Set closed before calling implCloseChannel, as in the spec.
6956 2004-02-09 Graydon Hoare <graydon@redhat.com>
6958 * javax/swing/ToggleButtonModel.java: Remove dead class.
6959 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
6960 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
6961 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
6962 * Makefile.am: Update for new and removed files.
6963 * Makefile.in: Regenerate.
6965 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
6966 * javax/swing/AbstractButton.java
6967 (AbstractButton): Initialize fields correctly in ctor.
6968 * javax/swing/JCheckbox.java
6969 (JCheckBox): Override painting flags.
6970 * javax/swing/DefaultButtonModel.java: Conform to sun.
6971 * javax/swing/JComponent.java (paint): Fill with background color
6973 (processComponentKeyEvent)
6976 (processMouseMotionEvent): Remove event-consuming empty methods.
6977 (getUIClassID): Return "ComponentUI" not "JComponent"
6978 * javax/swing/JFrame.java: Remove some debugging chatter.
6979 (JFrame): Subscribe to window events.
6980 * javax/swing/JRadioButton.java
6981 (JRadioButton): Override painting flags.
6982 * javax/swing/JRootPane.java
6983 (JRootPane): Set background from UIDefaults.
6984 * javax/swing/JToggleButton.java
6985 (ToggleButtonModel): New inner class.
6986 (JToggleButton): Override layout alighment.
6987 * javax/swing/SwingUtilities.java:
6988 (getLocalBounds): Return width and height, not x and y.
6989 (calculateInnerArea): Use local bounds, not bounds.
6990 (layoutCompoundLabel): Provide overridden form.
6991 (layoutCompoundLabel): Correct bugs.
6992 * javax/swing/UIDefaults.java: Correct comment.
6993 * javax/swing/plaf/basic/BasicButtonUI.java:
6994 Move most logic into defaults, external listener.
6995 (paintIcon): Implement icon painting.
6996 (paint): Fix state painting to conform to changes in model.
6997 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
6998 Remove most dead/wrong methods.
6999 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7000 * javax/swing/plaf/basic/BasicIconFactory.java:
7001 (DummyIcon): New class.
7002 (getMenuItemCheckIcon)
7003 (getMenuItemArrowIcon)
7005 (getCheckBoxMenuItemIcon)
7006 (getRadioButtonMenuItemIcon)
7007 (createEmptyFrameIcon): Return DummyIcons, not null.
7008 (getCheckBoxIcon): Implement an icon that looks like sun's.
7009 (getRadioButtonIcon): Implement an icon that looks like sun's.
7010 * javax/swing/plaf/basic/BasicLookAndFeel.java
7011 (initComponentDefaults): Fix impossible values, add some missing.
7012 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7013 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7014 Remove most dead/wrong methods.
7016 (getDefaultIcon): New method.
7017 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7018 Remove most dead/wrong methods.
7019 * javax/swing/plaf/metal/MetalLookAndFeel.java
7020 (getDefaults): Return super.getDefaults(), not BasicDefaults.
7021 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7022 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7023 Implement "clearing" as drawing, when on pixmap drawables.
7025 * javax/swing/JButton.java (getUIClassID):
7026 * javax/swing/JCheckBox.java (getUIClassID):
7027 * javax/swing/JEditorPane.java (getUIClassID):
7028 * javax/swing/JLabel.java (getUIClassID):
7029 * javax/swing/JList.java (getUIClassID):
7030 * javax/swing/JOptionPane.java (getUIClassID):
7031 * javax/swing/JPanel.java (getUIClassID):
7032 * javax/swing/JPasswordField.java (uiClassID):
7033 * javax/swing/JRadioButton.java (getUIClassID):
7034 * javax/swing/JRootPane.java (getUIClassID):
7035 * javax/swing/JScrollPane.java (getUIClassID):
7036 * javax/swing/JTabbedPane.java (getUIClassID):
7037 * javax/swing/JToggleButton.java (getUIClassID):
7038 * javax/swing/JTree.java (getUIClassID):
7039 * javax/swing/JViewport.java (getUIClassID):
7040 * javax/swing/text/JTextComponent.java (getUIClassID):
7041 Return "fooUI" not "Jfoo"
7043 2004-02-11 Michael Koch <konqueror@gmx.de>
7045 * java/net/DatagramSocket.java
7046 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7048 (setBroadcast): Likewise.
7049 * java/net/MulticastSocket.java
7050 (setLoopbackMode): Likewise.
7051 * java/net/ServerSocket.java
7052 (setReuseAddress): Likewise.
7053 * java/net/Socket.java
7054 (setTcpNoDelay): Likewise.
7055 (setSoLinger): Likewise.
7056 (setOOBInline): Likewise.
7057 (setKeepAlive): Likewise.
7058 (setReuseAddress): Likewise.
7059 * java/net/URLConnection.java
7060 (setContentHandler): Replace == with equals().
7061 * java/net/URLStreamHandler.java
7062 (hostSEquals): Fix checking host addresses.
7063 (toExternalForm): Dont check protocol for null. We know already its
7066 2004-02-10 David Jee <djee@redhat.com>
7068 * java/awt/BorderLayout.java
7069 (calcCompSize): Invisible components get zero dimensions.
7070 * java/awt/Button.java
7071 (setLabel): Set actionCommand.
7072 * java/awt/Component.java
7073 (show): Invalidate component and parent container.
7076 2004-02-10 David Jee <djee@redhat.com>
7078 * java/awt/GridBagLayout.java
7079 (GridBagLayout): New private field, internalcomptable.
7080 (lookupInternalConstraints): New method.
7081 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7082 (GetLayoutInfo): Reimplement.
7083 (calcCellSizes): Ignore rows/columns with size 0.
7085 2004-02-10 Michael Koch <konqueror@gmx.de>
7087 * gnu/java/awt/EmbeddedWindow.java
7088 (setHandle): Use java.awt.Component.getPeer() instead of
7089 java.awt.Component.peer directly.
7091 2004-02-10 David Jee <djee@redhat.com>
7093 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7094 (gtkSetLabel): New native method definition.
7095 (setLabel): Use gtkSetLabel.
7096 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7097 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7099 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7101 * include/powerpc-signal.h: Revert 2004-01-21 change.
7102 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7103 from syscall for ppc32 versions.
7105 2004-02-08 Per Bothner <per@bothner.com>
7107 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7108 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7109 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7110 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7111 Pass ByteOrder parameter to most methods, since the underlying
7112 ByteBuffer's order isn't always what we should use.
7113 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7114 * java/nio/DirectByteBufferImpl.java: Likewise.
7115 Use ByteBufferHelper methods.
7116 * java/nio/MappedByteBufferImpl.java: Likewise.
7117 (compact): Use shiftDown.
7118 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7119 (get, put): Use ByteBufferHelper.
7120 (compact): Use new shiftDown method.
7121 (duplicate(boolean)): New helper method.
7122 (duplicate, asReadOnlyBuffer): Use it.
7123 (order): Return endian field.
7124 * java/nio/DoubleViewBufferImpl.java: Likewise.
7125 * java/nio/FloatViewBufferImpl.java: Likewise.
7126 * java/nio/IntViewBufferImpl.java: Likewise.
7127 * java/nio/LongViewBufferImpl.java: Likewise.
7128 * java/nio/ShortViewBufferImpl.java: Likewise.
7129 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7130 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7131 (compact): Re-implement using shiftDown.
7133 2004-02-08 Andreas Jaeger <aj@suse.de>
7135 * include/x86_64-signal.h: Fix typo.
7137 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7139 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7141 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7143 2004-02-06 Michael Koch <konqueror@gmx.de>
7145 * java/io/ObjectInputStream.java
7146 (currentClassLoader): Reverted to old version of this method.
7148 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7150 * java/io/ObjectInputStream.java: Made all calls
7151 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7152 use cached info from ObjectStreamClass. (readClassDescriptor):
7153 Cache more information in ObjectStreamClass. (processResolution,
7154 readFields): Use cached info from ObjectStreamClass.
7155 (newObject): Throw exception instead of returning null for failure.
7156 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7157 setCharField, setDoubleField, setFloatField, setIntField,
7158 setLongField, setShortField, setObjectField, readObjectParams):
7159 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7161 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7162 (setClass): Added call to cacheMethods() (findMethod): New method.
7163 (cacheMethods): New method. (ObjectStreamClass): Added call to
7164 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7165 AccessController.doPrivileged to invoke setAccessible.
7166 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7167 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7169 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7170 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7171 isPrimitive): Made safe for cases where type == null.
7172 (setBooleanField, setByteField, setCharField, setShortField,
7173 setIntField, setLongField, setFloatField, setDoubleField,
7174 setObjectField): New methods.
7176 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7178 * java/awt/Component.java (getFont): Return a default font
7181 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7182 (Scrollbar (int, int, int, int, int)): Make default page
7184 (setValues): Only call peer.setValues if one of the values has
7186 (generateName): New method.
7187 (getUniqueLong): New method.
7188 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7189 (range_scrollbar): Remove structure.
7190 (post_adjustment_event): Remove function.
7191 (post_change_event): Accept jobject argument.
7192 (create): Cast jints to gdoubles. Round scrollbar values to the
7193 nearest integer. Clamp min, max and value settings.
7194 (connectJObject): Connect hook to widget->window.
7195 (connectSignals): Remove range_scrollbar structure variables.
7196 Remove "move-slider" connection. Pass global peer reference to
7197 "value-changed" callback.
7198 (setLineIncrement): Cast jint value to gdouble.
7199 (setPageIncrement): Likewise.
7200 (setValues): Likewise. Clamp min, max and value settings.
7202 2004-02-05 Michael Koch <konqueror@gmx.de>
7204 * javax/swing/AbstractCellEditor.java
7205 (getCellEditorValue): Removed.
7206 * javax/swing/Box.java: Reformated.
7207 (serialVersionUID): New field.
7208 * javax/swing/ButtonGroup.java:
7209 Removed some weird whitespace.
7210 * javax/swing/CellEditor.java: Reformated.
7211 * javax/swing/CellRendererPane.java
7212 (serialVersionUID): New field.
7213 (AccessibleCellRendererPaneserialVersionUID): New field.
7214 * javax/swing/DefaultListModel.java
7215 (serialVersionUID): New field.
7216 * javax/swing/JEditorPane.java
7217 (serialVersionUID): New field.
7218 (setPage): Throws IOException.
7219 (addHyperlinkListener): Implemented.
7220 (removeHyperlinkListener): Implemented.
7221 (getHyperlinkListener): New method.
7222 * javax/swing/JFileChooser.java
7223 (serialVersionUID): New field.
7224 (AccessibleJFileChooser.serialVersionUID): New field.
7225 (addActionListener): Implemented.
7226 (removeActionListener): Implemented.
7227 (getActionListeners): New method.
7228 * javax/swing/JFormattedTextField.java
7229 (serialVersionUID): New field.
7230 (AbstractFormatter.serialVersionUID): New field.
7231 (clone): Throws CloneNotSupportedException
7232 (setEditValid): Add missing argument.
7233 (stringToValue): Throws ParseExcpetion.
7234 (valueToString): Throws ParseException.
7235 (commitEdit): Throws ParseException.
7236 * javax/swing/JLabel.java
7237 (serialVersionUID): New field.
7238 * javax/swing/JList.java
7239 (serialVersionUID): New field.
7240 (addListSelectionListener): Reformated.
7241 (removeListSelectionListener): Reformated.
7242 (getListSelectionListeners): New method.
7243 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7245 (serialVersionUID): New field.
7246 * javax/swing/table/AbstractTableModel.java
7247 (getValueAt): Removed.
7248 (getColumnCount): Removed.
7249 (getRowCount): Removed.
7251 2004-02-05 Michael Koch <konqueror@gmx.de>
7253 * java/awt/datatransfer/DataFlavor.java
7254 (imageFlavor): Javadoc added.
7255 (javaJVMLocalObjectType): Fixed.
7257 2004-02-05 Michael Koch <konqueror@gmx.de>
7259 * java/lang/Thread.java
7260 (Thread): Reordered.
7261 (setContextClassLoader): Fixed javadoc comment.
7262 (setPriority): Reordered.
7264 (initialize_native): Reordered.
7265 (gen_name): Reordered.
7267 2004-02-05 Michael Koch <konqueror@gmx.de>
7269 * java/lang/Thread.java: Reordered fields, reformated much code,
7270 no functional changes, some variables renamed, javadoc comments
7273 2004-02-05 Michael Koch <konqueror@gmx.de>
7275 * java/util/zip/Deflater.java,
7276 java/util/zip/DeflaterOutputStream.java,
7277 java/util/zip/GZIPInputStream.java:
7278 Reformated and javadoc comments merged from classpath.
7280 2004-02-05 Michael Koch <konqueror@gmx.de>
7282 * gnu/java/nio/NIOServerSocket.java
7283 (impl): Unused, removed.
7284 * gnu/java/nio/SocketChannelImpl.java
7285 (finnishConnect): Don't throw NoConnectionPendingException if not
7286 connected or no connection pending.
7288 2004-02-02 Graydon Hoare <graydon@redhat.com>
7290 * javax/swing/SwingUtilities.java: Many new functions.
7291 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7292 * javax/swing/basic/BasicGraphicsUtils.java
7293 (getPreferredButtonSize): Start layout from top-left corner.
7295 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7297 * java/awt/geom/AffineTransform.java:
7298 Corrected comments on the field definitions for
7300 (shear): Fixed few errors that caused shear
7301 transformation to be performed incorrectly.
7302 (createInverse): Fixed to return correct
7303 inverse of the given matrix.
7305 2004-02-03 Tom Tromey <tromey@redhat.com>
7307 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7308 PATH or LD_LIBRARY_PATH is not set in parent environment.
7310 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7312 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7313 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7314 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7315 java/awt/Component.java, java/awt/Container.java,
7316 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7317 java/awt/LayoutManager2.java, java/awt/List.java,
7318 java/awt/Menu.java, java/awt/MenuBar.java,
7319 java/awt/MenuItem.java, java/awt/Polygon.java,
7320 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7321 java/awt/Scrollbar.java, java/awt/TextArea.java,
7322 java/awt/TextField.java,
7323 java/awt/image/renderable/RenderContext.java,
7324 javax/swing/JApplet.java: Fix handling of alias methods, where a
7325 method has been deprecated in favour of a new one with the same
7326 funtion but a different name. Put the method implementation in
7327 the deprecated method and have the new method call the
7328 deprecated one. Make all other code call the new method.
7330 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7332 * gnu/java/nio/DatagramChannelImpl.java
7333 (inChannelOperation): New field.
7334 (isInChannelOperation): New accessor.
7335 (setInChannelOperation): New modifier.
7336 (receive): Use capacity() - position() of destination
7337 buffer instead of remaining(). Set and reset our "in
7338 channel operation indicator" before and after delegating
7339 the receive to our datagram socket. Removed testing code.
7340 Update destination buffer's current position if it is
7341 backed by a byte array (hasArray() is true).
7342 (send): Set and reset our "in channel operation indicator"
7343 before and after delegating the send to our datagram socket.
7344 Removed testing code. Update source buffer's current position
7345 if it is backed by a byte array (hasArray() is true).
7346 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7347 Use capacity() - position() of destination buffer instead
7349 * java/net/DatagramSocket.java (receive): Don't throw an
7350 IllegalBlockingModeException if we have a non-blocking
7351 channel which initiated this operation.
7354 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7356 * configure.in: Add pkgconfig check for glib and gthread.
7357 * configure: Regenerate.
7359 2004-02-01 Michael Koch <konqueror@gmx.de>
7361 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7363 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7364 * verify.cc (debug_print): Mark 'fmt' unused.
7366 2004-01-30 Michael Koch <konqueror@gmx.de>
7368 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7369 * configure: Regenerated.
7370 * glib-2.0.m4: Removed.
7371 * gtk-2.0.m4: Removed.
7372 * libart.m4: Removed.
7375 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7377 * gnu/java/net/PlainSocketImpl.java
7378 (inChannelOperation): New field.
7379 (isInChannelOperation): New accessor.
7380 (setInChannelOperation): New modifier.
7381 * gnu/java/nio/ServerSocketChannelImpl.java
7382 (accept): Set and reset our server socket's PlainSocketImpl's
7383 "in channel operation" indicator before and after delegating
7384 the accept to our server socket.
7385 * gnu/java/nio/SocketChannelImpl.java
7386 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7387 operation" indicator before and after delegating the operation to
7391 * java/net/ServerSocket.java (implAccept): Don't throw an
7392 IllegalBlockingModeException if we have a non-blocking
7393 channel which initiated this accept operation.
7394 * java/net/Socket.java (connect): Don't throw an
7395 IllegalBlockingModeException if we have a non-blocking
7396 channel which initiated this connect operation.
7397 * java/nio/channels/spi/AbstractSelectableChannel.java
7398 (configureBlocking): Only call implConfigureBlocking() if
7399 the desired blocking mode is different from our current one.
7401 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7403 * java/io/BufferedReader.java (sbuf): New field.
7404 (readLine): Use String.valueOf instead of new String() as per
7405 Per Bothner's suggestion. Use instance sbuf field instead of a
7406 local StringBuffer instance.
7407 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7408 caller's buffer to refill().
7409 (read(void)): Pass our internal work buffer to refill if our
7410 input queue is empty.
7411 (refill): Changed return type to int. Use the specified buffer
7412 instead of our work buffer as per Bryce McKinlay's suggestion.
7413 Return the number of characters read or -1 for EOF.
7415 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7417 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7419 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7421 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7422 * Makefile.in: Re-generated.
7423 * gnu/awt/xlib/XFontPeer.java: New file.
7424 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7425 (setClip): Commented out debug printout.
7426 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7427 (getFontPeer): Return XFontPeer.
7428 (getLocalGraphicsEnvironment): New method.
7429 (getClasspathFontPeer): New method.
7430 (createFont): New method.
7432 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7434 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7437 2004-01-29 Kim Ho <kho@redhat.com>
7439 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7440 (gtkLayoutSetVisible): New method
7441 (setMenuBar): Hide layout before setting MenuBar
7442 and reshow it after.
7443 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7444 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7446 2004-01-28 Michael Koch <konqueror@gmx.de>
7448 * gnu/java/lang/ClassHelper.java
7449 (getPackagePortion): Removed.
7451 2004-01-28 Michael Koch <konqueror@gmx.de>
7453 * javax/swing/JComponent.java
7454 (listenerList): Initalize globally.
7455 (ancestor_list): Removed.
7456 (veto_list): Removed.
7457 (change_list): Removed.
7458 (get_veto_list): Removed.
7459 (get_change_list): Removed.
7460 (get_ancestor_list): Removed.
7461 (removeAncestorListener): Reimplemented.
7462 (removePropertyChangeListener): Likewise.
7463 (removeVetoableChangeListener): Likewise.
7464 (addAncestorListener): Likewise.
7465 (addPropertyChangeListener): Likewise.
7466 (addVetoableChangeListener): Likewise.
7467 (getListeners): New method.
7468 (getAncestorListeners): Likewise.
7469 (getVetoableChangeListeners): Likewise.
7470 (fireVetoableChange): Throws PropertyVetoException.
7471 * javax/swing/JEditorPane.java
7472 (JEditorPane): Throws IOException.
7474 2004-01-28 David Jee <djee@redhat.com>
7476 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7477 (create): Set the default foreground color to
7478 java.awt.SystemColor.windowText.
7480 2004-01-27 Michael Koch <konqueror@gmx.de>
7482 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7483 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7484 Reindented to merge with classpath.
7486 2004-01-27 David Jee <djee@redhat.com>
7488 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7489 (addExposeFilter): Handle GtkFramePeer separately.
7490 (removeExposeFilter): Likewise.
7492 2004-01-27 Michael Koch <konqueror@gmx.de>
7494 * gnu/java/net/protocol/http/Connection.java
7495 (getOutputStream): Fixed typo.
7497 2004-01-27 Michael Koch <konqueror@gmx.de>
7499 * java/lang/Class.java
7500 (getConstructor): Removed SecurityException from throws clause.
7501 (_getConstructors): Likewise.
7502 (getConstructors): Likewise.
7503 (getDeclaredConstructor): Likewise.
7504 (getDeclaredClasses): Likewise.
7505 (getDeclaredConstructors): Likewise.
7506 (getDeclaredField): Likewise.
7507 (getDeclaredMethod): Likewise.
7508 (getDeclaredMethods): Likewise.
7509 (getField): Likewise.
7510 (getMethod): Likewise.
7511 (getMethods): Likewise.
7513 2004-01-27 Kim Ho <kho@redhat.com>
7515 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7516 (removeMenuBarPeer): Remove MenuBarPeer argument.
7517 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7518 (dispose): Call native method.
7519 * java/awt/Frame.java (setMenuBar): Create and remove
7520 MenuBar peers only if the Frame has a peer.
7521 (addNotify): Create the MenuBar peer if one exists.
7522 (removeNotify): Remove MenuBar peer if one exists.
7523 * java/awt/Menu.java: Fix imports.
7524 (addNotify): Don't use full class name.
7525 (removeNotify): Call removeNotify on all children.
7526 * java/awt/MenuBar.java (removeNotify): Call
7527 removeNotify on all children.
7528 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7529 (removeMenuBarPeer): Remove MenuBarPeer argument.
7530 Iterate through children to find the Frame's MenuBar.
7531 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7533 (dispose): Remove references to the MenuComponent.
7535 2004-01-27 Michael Koch <konqueror@gmx.de>
7537 * javax/swing/AbstractCellEditor.java: Reformated.
7538 * javax/swing/DefaultListSelectionModel.java
7539 (listenerList): Made protected.
7540 (addListSelectionListener): Javadoc added.
7541 (removeListSelectionListener): Likewise.
7542 (getListeners): Likewise.
7543 (getListSelectionListeners): Likewise.
7544 * javax/swing/JComboBox.java: Merged copyright year.
7545 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7547 2004-01-26 Andrew Haley <aph@redhat.com>
7549 * javax/swing/table/JTableHeader.java: Extend JComponent
7551 2004-01-26 Kim Ho <kho@redhat.com>
7553 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7556 2004-01-26 Kim Ho <kho@redhat.com>
7558 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7560 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7561 height and let the Layout Managers readjust anything that
7563 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7564 (moveLayout): New method. Shift everything in the Gtk
7565 layout in the Y direction by an offset.
7567 2004-01-26 David Jee <djee@redhat.com>
7569 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7570 (handleEvent): Implemented. Handles PaintEvents.
7571 (paint): Implemented. Use GTK native methods to queue updates
7572 for this heavyweight peer.
7573 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7574 (handleEvent): Removed.
7575 * java/awt/Component.java
7576 (paint): Implemented. Explictly paint the heavyweight peer.
7577 (update): Clear the background for heavyweight components.
7578 (paintAll): No need to call peer.paint() anymore.
7579 (processEvent): Don't process PaintEvents here. It's now done in
7580 the peer's handleEvent().
7581 (processPaintEvent): Removed.
7582 * java/awt/Container.java
7583 (paint): No need to call super.paint(). Visit heavyweight
7585 (update): Don't clear the background here. It's done in
7587 (visitChildren): Added check to not recurse into Containers.
7588 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7589 (filter_expose_event_handler): New method. Filter unwanted
7590 expose events while painting heavyweight peers.
7591 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7592 New method. Connect filter and block pre_event_handler.
7593 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7594 New method. Disconnect filter and unblock pre_event_handler.
7595 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7596 New method. Invalidate and update given area.
7597 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7598 (pre_event_handler): Add checks for unwanted expose events.
7600 2004-01-26 David Jee <djee@redhat.com>
7602 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7603 (find_bg_color_widget): For GtkButton, return its child.
7605 2004-01-26 Kim Ho <kho@redhat.com>
7607 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7609 (setMenuBar): Grab MenuBar height and change insets.
7610 (setBounds): Account for MenuBar height.
7611 (postInsetsChangedEvent): Ditto.
7612 (postSizeAllocateEvent): Remove.
7613 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7614 (menubar_resize_cb): Remove
7615 (setMenuBarPeer): Remove callback.
7616 (getMenuBarHeight): Use size requisition instead of
7619 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7621 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7622 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7624 (setColumns): Remove FIXME -- peer will retrieve number of
7625 columns by calling getColumns.
7626 (setRows): Likewise for number of rows.
7627 (next_text_number): New field.
7628 (paramString): Fix param string.
7629 (generateName): New method.
7630 (getUniqueLong): New method.
7632 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7634 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7635 image observer of image loading status.
7636 (getImage (String)): Start image production.
7637 (getImage (URL)): Likewise.
7639 2004-01-25 Michael Koch <konqueror@gmx.de>
7641 * java/lang/Class.java: Imports reworked, reformated.
7642 (Class): Javadoc added.
7643 (forName): Likewise.
7644 (getClasses): Likewise.
7645 (getClassLoader): Likewise.
7646 (getComponentType): Likewise.
7647 (getConstructor): Likewise.
7648 (getConstructors): Likewise.
7649 (getDeclaredConstructor): Likewise.
7650 (getDeclaredClasses): Likewise.
7651 (getDeclaredConstructors): Likewise.
7652 (getDeclaredField): Likewise.
7653 (getDeclaredMethod): Likewise.
7654 (getDeclaredMethods): Likewise.
7655 (getDeclaringClass): Likewise.
7656 (getField): Likewise.
7657 (getInterfaces): Likewise.
7658 (getMethod): Likewise.
7659 (getMethods): Likewise.
7660 (getModifiers): Likewise.
7661 (getName): Likewise.
7662 (getResource): Likewise.
7663 (getResourceAsStream): Likewise.
7664 (getSigners): Likewise.
7665 (setSigners): Likewise.
7666 (getSuperclass): Likewise.
7667 (isArray): Likewise.
7668 (isAssignableFrom): Likewise.
7669 (isInstance): Likewise.
7670 (isInterface): Likewise.
7671 (isPrimitive): Likewise.
7672 (newInstance): Likewise.
7673 (getProtectionDomain): Likewise.
7674 (toString): Likewise.
7676 (initializeClass): Likewise.
7677 (finalize): Likewise.
7679 2004-01-24 Michael Koch <konqueror@gmx.de>
7681 * gnu/java/net/protocol/jar/Connection.java
7684 (gotHeaders): Removed.
7685 (getHeaderField): Removed.
7686 (getHeaderFields): Removed.
7687 (getHeaderFieldKey): Removed.
7689 (getField): Removed.
7690 (getHeaders): Removed.
7692 2004-01-24 Michael Koch <konqueror@gmx.de>
7694 * Makefile.am: Added library version to gtk peer lib.
7695 * Makefile.in: Regenerated.
7697 2004-01-24 Michael Koch <konqueror@gmx.de>
7699 * java/util/zip/InflaterInputStream.java: Merged class documentation
7702 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7704 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7705 header. For __powerpc64__ provide the default-signal.h definitions
7707 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7708 instead of the dummy definitions.
7709 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7710 (powerpc64*-*): Remove with_libffi_default.
7711 Only add -mminimal-toc for 64-bit compilations.
7712 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7713 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7714 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7715 * configure: Rebuilt.
7717 2004-01-23 Michael Koch <konqueror@gmx.de>
7719 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7721 2004-01-23 Michael Koch <konqueror@gmx.de>
7723 * java/lang/VMClassLoader.java: Reworked imports.
7725 2004-01-23 Michael Koch <konqueror@gmx.de>
7727 * javax/swing/AbstractAction.java: Reformated.
7729 2004-01-23 Michael Koch <konqueror@gmx.de>
7731 * java/text/CollationElementIterator.java:
7732 (setText): New method.
7734 2004-01-23 Michael Koch <konqueror@gmx.de>
7736 * gnu/java/nio/FileLockImpl.java:
7737 Fixed filename in copyright.
7738 (released): Removed.
7739 (finalize): New method.
7740 * gnu/java/nio/natFileLockImpl.cc
7741 (releaseImpl): Implemented.
7742 * java/nio/channels/FileChannelImpl.java:
7744 (lock): Implemented.
7745 (lockImpl): New method.
7746 (tryLock): Implemented.
7747 (tryLockImpl): New method.
7748 * java/nio/channels/natFileChannelImpl.cc
7749 (lockImpl): New method.
7750 (tryLockImpl): New method.
7752 2004-01-23 Michael Koch <konqueror@gmx.de>
7754 * java/io/FileDescriptor.java
7756 (tryLock): New method.
7757 (unlock): New method.
7758 * java/io/natFileDescriptorEcos.cc
7760 (tryLock): New method.
7761 (unlock): New method.
7762 * java/io/natFileDescriptorPosix.cc
7764 (tryLock): New method.
7765 (unlock): New method.
7766 * java/io/natFileDescriptorWin32.cc
7768 (tryLock): New method.
7769 (unlock): New method.
7771 2004-01-23 Michael Koch <konqueror@gmx.de>
7773 * java/io/FileDescriptor.java
7774 (sync): Moved around, added javadoc.
7779 (setLength): Likewise.
7781 (getLength): Likewise.
7782 (getFilePointer): Likewise.
7784 (available): Likewise.
7785 (finalize): Likewise.
7787 2004-01-23 Michael Koch <konqueror@gmx.de>
7789 * javax/swing/AbstractAction.java: Reformated.
7790 (getPropertyChangeListeners): New method.
7791 * javax/swing/AbstractCellEditor.java: Reformated.
7792 (getCellEditorListeners): New method.
7793 * javax/swing/DefaultListSelectionModel.java
7794 (listenerList): New field.
7795 (listeners): Removed.
7796 (get_listeners): Removed.
7797 (addListSelectionListener): Rewritten.
7798 (removeListSelectionListener): Rewritten.
7799 (getListSelectionListeners): New method.
7800 (getListeners): New method.
7801 * javax/swing/JComboBox.java: Imports reworked.
7802 (addActionListener): Implemented.
7803 (removeActionListener): Implemented.
7804 (addItemListener): Implemented.
7805 (removeItemListener): Implemented.
7806 (addPopupMenuListener): Implemented.
7807 (removePopupMenuListener): Implemented.
7808 (getActionListeners): New method.
7809 (getItemListeners): New method.
7810 (getPopupMenuListeners): New method.
7812 2004-01-23 Michael Koch <konqueror@gmx.de>
7814 * gnu/java/net/protocol/http/Connection.java
7815 (connect): Don't initialize bufferedOutputStream if not needed.
7816 (sendRequest): Set property for content length if content is present.
7817 Write content only if present.
7818 (getOutputStream): Check if already connected, dont connect,
7819 initalize bufferedOutputStream if needed.
7821 2004-01-23 Michael Koch <konqueror@gmx.de>
7823 * java/io/FileDescriptor.java
7824 (in, out, err): Added javadoc.
7825 (static): Merged loading code.
7826 (fd, position): Moved around.
7828 2004-01-23 Michael Koch <konqueror@gmx.de>
7830 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
7833 2004-01-23 Michael Koch <konqueror@gmx.de>
7835 * java/lang/Class.java,
7836 java/lang/Object.java,
7837 java/lang/Thread.java: Merged copyright with classpath.
7839 2004-01-23 Michael Koch <konqueror@gmx.de>
7841 * java/io/FileDescriptor.java: Merged copyright with classpath to
7842 start merging this class.
7844 2004-01-22 Tom Tromey <tromey@redhat.com>
7847 * testsuite/libjava.lang/pr13107_2.xfail: New file.
7848 * testsuite/libjava.lang/pr13107_3.xfail: New file.
7849 * testsuite/libjava.lang/pr13107_3.java: New file.
7850 * testsuite/libjava.lang/pr13107_3.out: New file.
7851 * testsuite/libjava.lang/pr13107_2.java: New file.
7852 * testsuite/libjava.lang/pr13107_2.out: New file.
7853 * testsuite/libjava.lang/pr13107.java: New file.
7854 * testsuite/libjava.lang/pr13107.out: New file.
7855 * verify.cc (jsr_ptrs): Removed.
7856 (entry_points): Likewise.
7857 (struct subr_info): Likewise.
7858 (struct subr_entry_info): Likewise.
7859 (type_val::unused_by_subroutine_type): Likewise.
7860 (type::merge): Don't handle unused_by_subroutine_type.
7861 (type::print): Likewise.
7862 (state::flags): Removed.
7863 (state::subroutine): Likewise.
7864 (state::seen_subrs): Likewise.
7865 (state::NO_STACK): Likewise.
7866 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
7867 (state): Updated all methods.
7868 (state::clean_subrs): Removed.
7869 (state::state): Removed `ret_semantics' flag.
7870 (state::copy): Likewise.
7871 (state::add_subr): Removed.
7872 (state::enter_subroutine): Likewise.
7873 (type::set_return_address): New method.
7874 (handle_jsr_insn): Set return address on the type. Always
7875 invalidate PC after call.
7876 (check_nonrecursive_call): Removed.
7877 (~_Jv_BytecodeVerifier): Updated.
7878 (branch_prepass): Removed special handling of jsr.
7879 (note_branch_target): Likewise.
7880 (get_subroutine): Removed.
7881 (state::merge): Don't merge subroutines and don't handle
7882 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
7883 (state::note_variable): Removed.
7884 (state::is_unmerged_ret_state): Likewise.
7885 (state::print): Updated.
7886 (set_variable): Likewise.
7887 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
7888 and jsr_semantics arguments. Updated for new reverification
7890 (pop_jump): Rewrote.
7891 (construct_primitive_array_type): Updated.
7892 (state::next): Removed.
7893 (INVALID_STATE): New define.
7894 (state::INVALID): Removed.
7895 (state::NO_NEXT): New value.
7896 (state::pc, state::next): New fields.
7897 (state::get_pc): New method.
7898 (next_verify_pc): Removed.
7899 (next_verify_state): New field.
7900 (verify_instructions_0): Always check for falling off end.
7902 (linked_utf8): Removed.
7903 (states): Changed type.
7904 (type::state_mergeable_p): New method.
7905 (state::state_mergeable_p): Likewise.
7906 (handle_ret_insn): Removed most code.
7907 (state::reverify): New method.
7908 (add_new_state): Likewise.
7909 (state::set_pc): Likewise.
7911 2004-01-22 Jeff Sturm <jsturm@one-point.com>
7914 * testsuite/libjava.compile/PR13733.java: New file.
7915 * testsuite/libjava.compile/PR13733.xfail: New file.
7917 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
7918 Michael Koch <konqueror@gmx.de>
7920 * javax/swing/table/DefaultTableCellRenderer.java
7921 (DefaultTableCellRenderer): Added javadoc for the class and for
7922 the constructor, Border instance, create an EmptyBorder.
7923 (UIResource): Removed the comment at the end of the class
7924 (setForeground): New method.
7925 (setBackground): New method.
7926 (updateUI): New method.
7927 (getTableCellRendererComponent): Rewritten with the help of
7928 dvholten and Stephane Meslin-Weber.
7929 (validate): New method.
7930 (repaint): New method.
7931 (firePropertyChange): New method.
7932 (setValue): New method.
7934 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7936 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7937 (connectJObject): Replace printf calls with g_assert statements.
7938 Move property-notify-event signal connection to ...
7939 (connectSignals): Connect property-notify-event signal. Iterate
7940 through the vbox's children to find layout.
7942 2004-01-22 Graydon Hoare <graydon@redhat.com>
7944 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
7945 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7946 Predicate static initialization on GtkToolkit.useGraphics2D().
7947 * java/awt/Component.java (processPaintEvent): Consume event.
7948 * javax/swing/AbstractButton.java: Reimplement, document.
7949 * javax/swing/DefaultButtonModel.java: Reimplement, document.
7950 * javax/swing/JComponent.java (paint): Use double buffer.
7951 (listenerList): Enable member.
7952 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
7953 * javax/swing/JToggleButton.java
7954 (JToggleButton): Modify model constructor.
7955 * javax/swing/SwingUtilities.java
7956 (layoutCompoundLabel): Adjust arithmetic.
7957 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
7958 * javax/swing/plaf/basic/BasicGraphicsUtils.java
7959 (getPreferredButtonSize): Include margins in calculation.
7960 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7961 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
7962 Receive up events from subordinate layout component.
7964 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
7966 * java/awt/Component.java (show): Set visible to true before
7969 2004-01-21 Kim Ho <kho@redhat.com>
7971 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
7973 (removeMenuBarPeer): Make package private.
7974 (setMenuBarPeer): Make package private.
7975 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7976 (menubar_resize_cb): Mark attributes unused.
7977 (getMenuBarHeight): ditto.
7979 2004-01-21 David Jee <djee@redhat.com>
7981 * java/awt/Container.java
7982 (LightweightDispatcher.handleEvent): Add an extra check to avoid
7983 dispatching MOUSE_ENTERED event twice. Translate the point for
7984 the mouse event target before dispatching the event.
7986 2004-01-20 Jakub Jelinek <jakub@redhat.com>
7988 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
7989 lib_org_w3c_dom_la_LDFLAGS): New.
7990 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
7991 * Makefile.in: Rebuilt.
7993 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
7995 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
7996 Calculate proper offsets for heavyweight components packed in
7997 lightweight containers.
7999 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8000 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8001 (native create): Add width parameter.
8002 (create): Calculate text entry width based on current font's
8003 metrics and number of columns. Set TextField's font if not
8004 already set. Call native create.
8005 (gtkEntryGetBorderWidth): New native method.
8006 (gtkEntryGetSize): Remove method.
8007 (getMinimumSize): Call minimumSize.
8008 (getPreferredSize): Call preferredSize.
8009 (minimumSize): Calculate minimum size based on backing
8010 GtkEntry's borders, font metrics and number of columns.
8011 (preferredSize): Likewise for preferred size.
8012 (get_border_width): New static function.
8014 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8015 Override GtkWindowPeer's setResizable method to account for menu
8016 bar height when setting the frame's size.
8018 2004-01-19 Matthias Klose <doko@debian.org>
8020 * libtool-version: Increased `current' to 6.
8022 2004-01-19 Kim Ho <kho@redhat.com>
8024 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8025 (connectJObject): Iterate through the vbox's children to find layout.
8027 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8029 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8030 isDispatchThread method to replace wrong test condition.
8032 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8034 * java/awt/EventQueue.java (pop): Prevent racing condition to add
8035 events to the queue out of order by acquiring locks in the proper
8036 order and not by releasing one before acquiring the other.
8038 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8040 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8041 visible so that dialog can be reused.
8043 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8045 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8046 events may be handled by any queue in the stack.
8048 2004-01-19 Kim Ho <kho@redhat.com>
8050 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8051 MenuBarPeer parameter.
8052 (removeMenuBarPeer): New native method.
8053 (setMenuBar): Call remove if menu bar is null. Adjust insets
8055 (postSizeAllocateEvent): New method. Called when menu bar size is
8056 allocated. Adjust insets and redo layout.
8057 (GtkFramePeer): Set menu bar during frame creation.
8058 (postConfigureEvent): Adjust position and size to accomodate
8060 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8061 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8062 (addNotify): Create the peer if it doesn't exist and call addNotify
8063 for the menu's items.
8064 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8065 * java/awt/MenuItem.java (addNotify): Create the peer if it
8067 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8068 (removeMenuBarPeer): New method. Remove menu bar on the current
8070 (setMenuBarPeer): Add the menu bar to the current frame and the
8071 callback for size-allocate events on the menu bar.
8072 (getMenuBarHeight): Add menu bar parameter.
8073 (menubar_resize_cb): New callback method for postSizeAllocate events.
8075 Also: Fix indentation on last ChangeLog entry.
8077 2004-01-16 Kim Ho <kho@redhat.com>
8079 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8080 (gtkWidgetGetDimensions): Remove.
8081 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8082 (gtkWidgetGetDimensions): Remove.
8084 2004-01-16 Tom Tromey <tromey@redhat.com>
8086 * java/awt/Container.java: Typo and indentation fixes.
8088 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8089 * java/lang/natVMClassLoader.cc: ...here. New file.
8090 * Makefile.in: Rebuilt.
8091 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8093 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8095 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8096 Discard GDK_ENTER_NOTIFY related to ungrabs.
8098 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8100 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8101 is called for an intermediate queue.
8103 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8105 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8106 (window_property_changed_cb): Set id_set.
8108 2004-01-16 Kim Ho <kho@redhat.com>
8110 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8111 it is a FileDialog and has dimensions of 0 by 0, then the initial
8112 size is set to size request plus insets.
8113 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8114 (gtkWidgetGetDimensions): Override method.
8115 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8116 (gtkWidgetGetDimensions): Override method. Returns size request plus
8119 2004-01-16 Andrew Haley <aph@redhat.com>
8121 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8122 * sysdep/i386/locks.h: Likewise.
8124 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8126 * java/awt/EventDispatchThread.java (run): Stop running when
8128 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8129 Reset the queue after transferring its contents.
8130 (push): Start a new dispatch thread if none is running.
8132 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8134 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8135 (doPolygon): set fill rule of polygon to
8136 WIND_EVEN_ODD by default.
8138 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8140 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8141 Implemented rendering hints related methods.
8142 (getDefaultHints): New helper method. Returns
8143 default rendering hints.
8144 (walkPath): changed to normalize path if
8145 the KEY_STROKE_CONTROL key is in "normalize" mode.
8146 (draw3DRect): changed coordinates of rectangle by +0.5
8147 if in "normalize" mode.
8149 2004-01-15 Tom Tromey <tromey@redhat.com>
8151 * Makefile.in: Rebuilt.
8152 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8153 (%.lo: %.java) Filter out StackTrace.lo.
8155 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8157 * configure.in: Add in AC_PREREQ(2.13)
8158 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8161 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8162 Tom Tromey <tromey@redhat.com>
8165 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8166 array to superclass.
8167 (init): Changed interface; add URLs here.
8168 (initialize): New static method.
8169 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8170 (_Jv_RunMain): ... not here.
8172 2004-01-14 Michael Koch <konqueror@gmx.de>
8174 * java/text/MessageFormat.java:
8175 Added descriptions to exceptions.
8176 This fixes PR libgcj/2429.
8178 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8180 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8181 (push): Make sure push is performed at the top of the thread stack.
8183 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8185 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8186 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8187 (native create): Add width and height parameters. Set text
8188 view's size request according to new parameters.
8189 (create): Calculate text view size based on current font's
8190 metrics and number of rows and columns. Set TextArea's font if
8191 not already set. Call native create.
8192 (getMinimumSize): Call minimumSize.
8193 (getPreferredSize): Call preferredSize.
8194 (getHScrollbarHeight): New method.
8195 (getVScrollbarWidth): New method.
8196 (minimumSize): Calculate minimum size based on scrollbar
8197 visibility, scrollbar sizes, font metrics and number of rows and
8199 (preferredSize): Likewise for preferred size.
8200 (gtkTextGetSize): Remove method.
8202 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8204 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8205 (initializeInsets): Remove method.
8206 (GtkComponentPeer): Initialize insets field. Remove call to
8208 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8210 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8212 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8213 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8214 (latestInsets): Remove field.
8215 (native create): Add insets parameter. Call
8216 window_get_frame_extents. Set the window's default size and
8217 size request based on its frame extents.
8218 (create): Initialize insets.
8219 (postInsetsChangedEvent): New method.
8220 (postConfigureEvent): Remove parameters top, left, bottom,
8221 right. Remove insets-related logic.
8222 (connectJObject): Handle property-notify-event.
8223 (window_get_frame_extents, request_frame_extents,
8224 property_notify_predicate, window_property_changed_cb): New
8226 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8227 (pre_event_handler): Remove insets-related logic for configure
8229 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8230 Update postConfigureEvent signature.
8232 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8234 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8235 to handle Window "Closing" events.
8237 2004-01-13 David Jee <djee@redhat.com>
8239 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8240 (setBackground): New method. Children with no explicitly-set
8241 background will be repainted with the parent container's new
8244 2004-01-13 David Jee <djee@redhat.com>
8246 * Makefile.am: Add BitwiseXORComposite.java.
8247 * Makefile.in: Regenerated.
8248 * gcj/Makefile.in: Regenerated.
8249 * include/Makefile.in: Regenerated.
8250 * testsuite/Makefile.in: Regenerated.
8252 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8254 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8255 not show modal dialogs twice and so that it allows showing a modal
8256 dialog from another modal dialog.
8258 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8260 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8261 and run secondary dispatch thread to process event queue while this
8264 2004-01-12 Graydon Hoare <graydon@redhat.com>
8266 * gnu/java/awt/gtk/GdkGraphics2D.java
8267 (static): Check GtkToolkit before initializing static state.
8268 (Graphics2D): Don't construct transform with 0.5 unit offset.
8270 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8272 * gnu/java/awt/BitwiseXORComposite.java: Add.
8273 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8274 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8275 (BitwiseXORComposite): Remove inner class.
8277 2004-01-11 Michael Koch <konqueror@gmx.de>
8279 * gnu/java/lang/reflect/TypeSignature.java
8280 (getEncodingOfClass): Documentation fixed.
8281 (getClassForEncoding): Give class loader to Class.forName().
8282 Documentation fixed.
8284 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8286 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8288 2004-01-11 Michael Koch <konqueror@gmx.de>
8290 * javax/swing/undo/StateEditable.java
8291 (RCSID): Removed redundant modifiers.
8293 2004-01-10 Michael Koch <konqueror@gmx.de>
8295 * javax/print/attribute/EnumSyntax.java
8296 (getStringTable): Made protected.
8297 (getEnumValueTable): Likewise.
8298 * javax/print/attribute/standard/JobKOctetsProcessed.java
8299 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8300 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8301 (JobMediaSheetsCompleted): Made class final.
8302 * javax/print/attribute/standard/OutputDeviceAssigned.java
8303 (getName): Fixed typo.
8304 * javax/print/attribute/standard/RequestingUserName.java
8305 (serialVersionUID): Fixed value.
8307 2004-01-10 Michael Koch <konqueror@gmx.de>
8309 * javax/swing/plaf/basic/BasicButtonUI.java,
8310 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8311 javax/swing/plaf/basic/BasicListUI.java,
8312 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8313 javax/swing/plaf/basic/BasicPanelUI.java,
8314 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8315 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8316 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8317 javax/swing/plaf/basic/BasicViewportUI.java:
8318 Fixed import statements.
8320 2004-01-10 Michael Koch <konqueror@gmx.de>
8322 * gnu/java/awt/image/ImageDecoder.java
8323 (produce): Made public.
8324 * gnu/java/awt/peer/GLightweightPeer.java,
8325 gnu/java/awt/peer/gtk/GtkToolkit.java:
8328 2004-01-10 Michael Koch <konqueror@gmx.de>
8330 * javax/swing/JRadioButtonMenuItem.java,
8331 javax/swing/JSeparator.java,
8332 javax/swing/JSplitPane.java,
8333 javax/swing/JTextPane.java,
8334 javax/swing/JToolBar.java,
8335 javax/swing/ListCellRenderer.java,
8336 javax/swing/ListModel.java,
8337 javax/swing/MenuElement.java,
8338 javax/swing/OverlayLayout.java,
8339 javax/swing/ProgressMonitor.java,
8340 javax/swing/ProgressMonitorInputStream.java,
8341 javax/swing/Renderer.java,
8342 javax/swing/RootPaneContainer.java,
8343 javax/swing/Scrollable.java,
8344 javax/swing/SingleSelectionModel.java,
8345 javax/swing/ToolTipManager.java,
8346 javax/swing/ViewportLayout.java,
8347 javax/swing/event/DocumentEvent.java,
8348 javax/swing/event/SwingPropertyChangeSupport.java,
8349 javax/swing/event/TreeSelectionEvent.java,
8350 javax/swing/event/UndoableEditEvent.java,
8351 javax/swing/text/AbstractDocument.java,
8352 javax/swing/text/AttributeSet.java,
8353 javax/swing/text/Caret.java,
8354 javax/swing/text/ComponentView.java,
8355 javax/swing/text/DefaultCaret.java,
8356 javax/swing/text/DefaultEditorKit.java,
8357 javax/swing/text/Document.java,
8358 javax/swing/text/EditorKit.java,
8359 javax/swing/text/GapContent.java,
8360 javax/swing/text/Keymap.java,
8361 javax/swing/text/MutableAttributeSet.java,
8362 javax/swing/text/PlainEditorKit.java,
8363 javax/swing/text/Segment.java,
8364 javax/swing/text/Style.java,
8365 javax/swing/text/StyledDocument.java,
8366 javax/swing/text/StyledEditorKit.java,
8367 javax/swing/text/TextAction.java,
8368 javax/swing/text/View.java: Fixed import statements.
8370 2004-01-08 Graydon Hoare <graydon@redhat.com>
8372 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8373 djee@redhat.com's recent inverse ordering of Container elements.
8375 2004-01-09 Michael Koch <konqueror@gmx.de>
8377 * gnu/java/lang/ArrayHelper.java
8378 (equalsArray): Removed.
8380 2004-01-09 Andrew Haley <aph@redhat.com>
8382 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8383 a Utf8Const field before looking at its class.
8385 2004-01-09 Michael Koch <konqueror@gmx.de>
8387 * javax/print/attribute/standard/DocumentName.java,
8388 javax/print/attribute/standard/JobHoldUntil.java,
8389 javax/print/attribute/standard/JobMessageFromOperator.java,
8390 javax/print/attribute/standard/JobName.java,
8391 javax/print/attribute/standard/JobOriginatingUserName.java,
8392 javax/print/attribute/standard/OutputDeviceAssigned.java,
8393 javax/print/attribute/standard/PrinterInfo.java,
8394 javax/print/attribute/standard/PrinterLocation.java,
8395 javax/print/attribute/standard/PrinterMakeAndModel.java,
8396 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8397 javax/print/attribute/standard/PrinterName.java,
8398 javax/print/attribute/standard/RequestingUserName.java: New files.
8399 * Makefile.am (javax_source_files): Added new files.
8400 * Makefile.in: Regenerated.
8402 2004-01-09 Michael Koch <konqueror@gmx.de>
8404 * javax/swing/AbstractAction.java,
8405 javax/swing/AbstractSet.java,
8406 javax/swing/Action.java,
8407 javax/swing/ActionMap.java,
8408 javax/swing/BoundedRangeModel.java,
8409 javax/swing/ButtonModel.java,
8410 javax/swing/CellEditor.java,
8411 javax/swing/CellRendererPane.java,
8412 javax/swing/ComboBoxEditor.java,
8413 javax/swing/DebugGraphics.java,
8414 javax/swing/DefaultCellEditor.java,
8415 javax/swing/DefaultCellRenderer.java,
8416 javax/swing/DefaultComboBoxModel.java,
8417 javax/swing/DefaultDesktopManager.java,
8418 javax/swing/DefaultFocusManager.java,
8419 javax/swing/DefaultListCellRenderer.java,
8420 javax/swing/Icon.java,
8421 javax/swing/JButton.java,
8422 javax/swing/JCheckBoxMenuItem.java,
8423 javax/swing/JDesktopPane.java,
8424 javax/swing/JEditorPane.java,
8425 javax/swing/JMenu.java,
8426 javax/swing/JPanel.java,
8427 javax/swing/JPasswordField.java,
8428 javax/swing/JPopupMenu.java,
8429 javax/swing/JProgressBar.java: Reworked imports.
8431 2004-01-09 Michael Koch <konqueror@gmx.de>
8433 * java/awt/geom/PathIterator.java
8434 (WIND_EVEN_ODD): Removed redundant modifiers.
8435 (WIND_NON_ZERO): Likewise.
8436 (SEG_MOVETO): Likewise.
8437 (SEG_LINETO): Likewise.
8438 (SEG_QUADTO): Likewise.
8439 (SEG_CUBICTO): Likewise.
8440 (SEG_CLOSE): Likewise.
8441 * java/awt/image/SinglePixelPackedSampleModel.java:
8442 Removed redundant semicolon.
8443 * java/io/ObjectInputStream.java
8444 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8445 * java/util/logging/Filter.java
8446 (isLoggable): Removed redundant modifier.
8447 * java/util/logging/LogManager.java:
8448 Removed redundant semicolon.
8449 * java/util/logging/XMLFormatter.java
8450 (format): Removed unused variable "key".
8452 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8454 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8455 New name for the former setFile native method.
8456 (setFile): New method.
8457 (setDirectory): Implemented.
8458 (connectSignals): New native method.
8459 (setFilenameFilter): Improve comment.
8460 (getGraphics): Comment.
8461 (gtkHideFileDialog): New method.
8462 (gtkDisposeFileDialog): New method.
8463 (gtkSetFilename): New method.
8464 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8465 for FileDialog for now.
8467 (dispose): New method.
8468 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8469 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8470 deprecated creation functions. Make dialog modal. Add it to the
8472 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8474 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8476 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8478 (window_closed): New function.
8479 (ok_clicked): New function.
8480 (cancel_clicked): New function.
8482 2004-01-08 Michael Koch <konqueror@gmx.de>
8484 * javax/swing/JLayeredPane.java: Revert changes to standard
8485 boilerplate, reworked imports.
8487 2004-01-07 Tom Tromey <tromey@redhat.com>
8490 * verify.cc (state::merge): Copy changed locals out of subroutine
8492 (state::FLAG_CHANGED): New const.
8493 (state::FLAG_UNUSED): Likewise.
8494 (state::local_changed): Removed. Updated all users.
8495 (state::flags): New field.
8496 (state::merge): Added jsr_semantics argument, more logic.
8497 (push_jump_merge): Added jsr_semantics argument.
8498 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8499 merging through the jsr instruction.
8501 2004-01-07 Tom Tromey <tromey@redhat.com>
8503 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8506 2004-01-07 Graydon Hoare <graydon@redhat.com>
8508 * java/awt/Container.java (LightweightDispatcher): Implement.
8509 (visitChild): Reuse graphics object.
8510 (dispatchEventImpl): Optionally dispatch to lightweight.
8511 (addNotifyContainerChildren): Build LightweightDispatcher.
8513 2004-01-07 David Jee <djee@redhat.com>
8515 * java/awt/Container.java
8516 (update): Clear only the clipped region, instead of clearing the
8518 (visitChildren): Visit children in descending order.
8520 2004-01-07 Michael Koch <konqueror@gmx.de>
8522 * java/lang/reflect/Array.java: Merged documentation with classpath.
8524 2004-01-07 Michael Koch <konqueror@gmx.de>
8526 * java/text/CollationElementIterator.java
8527 (textIndex): Renamed from index.
8528 * java/text/CollationKey.java
8529 (collator): New member.
8530 (CollationKey): New argument for parent collator.
8531 (equals): Check for same collator, source string and key array.
8532 * java/text/RuleBasedCollator.java:
8534 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8536 (getCollationElementIterator): Rewritten.
8537 (getCollationKey): Added new argument to CollationKey constructor.
8539 2004-01-07 Michael Koch <konqueror@gmx.de>
8541 * gnu/java/nio/DatagramChannelImpl.java
8542 (blocking): Removed.
8543 (DatagramChannelImpl): Call configureBlocking().
8544 (implConfigureBlocking): Dont initialize blocking.
8545 * gnu/java/nio/ServerSocketChannelImpl.java
8546 (blocking): Removed.
8547 (ServerSocketChannelImpl): Call configureBlocking().
8548 (implConfigureBlocking): Dont initialize blocking.
8549 * gnu/java/nio/SocketChannelImpl.java
8550 (blocking): Removed.
8551 (SocketChannelImpl): Call configureBlocking().
8552 (implConfigureBlocking): Dont initialize blocking.
8553 (connect): Use isBlocking().
8554 * java/nio/channels/spi/AbstractSelectableChannel.java
8555 (configureBlocking): Use blockingLock() instead of LOCK.
8556 Set blocking after successfully called implConfigureBlocking().
8557 (register): Use blockingLock() instead of LOCK.
8559 2004-01-07 Michael Koch <konqueror@gmx.de>
8561 * java/net/ServerSocket.java (isBound): Fixed documentation.
8563 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8565 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8566 (changeEvent): Create event object on demand.
8567 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8568 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8569 fireStateChanged): Re-written.
8570 * javax/swing/event/EventListenerList.java: Reformatted, document
8572 (toString): Implemented.
8573 (getListeners): Re-written.
8574 (remove): Re-written.
8576 (NO_LISTENERS): New singleton field.
8577 (listenerList): Declare as transient; document.
8578 (serialVersionUID): Document.
8579 (getListenerCount(Class)): More efficient implementation,
8580 also accepts null argument. Improve Javadoc.
8581 (getListenerCount()): Remove unnecessary cast; docfix.
8582 * javax/swing/undo/UndoableEditSupport.java:
8583 Re-format, document.
8584 (UndoableEditSupport): Set realSource field. Improve documentation.
8585 (_postEdit): Iterate over cloned listener vector.
8586 (toString): Don't emit realSource.
8587 (beginUpdate, endUpdate): Support nested updates.
8588 (postEdit): Use compound edit if present.
8590 2004-01-06 Graydon Hoare <graydon@redhat.com>
8592 * java/awt/Container.java (swapComponents): Add forgotten
8593 function, required for JLayeredPane change.
8595 2004-01-06 Michael Koch <konqueror@gmx.de>
8597 * java/text/CollationElementIterator.java: Reformated.
8598 (CollationElementIterator): Changed order of arguments.
8599 * java/text/RuleBasedCollator.java
8600 (RuleBasedCollator): Merged class documentation.
8601 (CollationElement): Added documentation.
8602 (compare): Reformated, renamed arguments.
8604 (getCollationElementIterator): Likewise.
8605 (getCollationKey): Likewise.
8607 2004-01-06 Graydon Hoare <graydon@redhat.com>
8609 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8611 2004-01-06 Michael Koch <konqueror@gmx.de>
8613 * gnu/java/net/protocol/file/Connection.java:
8614 Reformated copyright.
8617 (gotHeaders): Removed.
8618 (getHeaderField): Removed.
8619 (getHeaderField): Removed.
8620 (getHeaderFieldKey): Removed.
8622 (getField): Removed.
8623 (getHeaders): Removed.
8625 2004-01-06 Michael Koch <konqueror@gmx.de>
8627 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8628 javax/print/attribute/standard/DateTimeAtCreation.java,
8629 javax/print/attribute/standard/DateTimeAtProcessing.java,
8630 javax/print/attribute/standard/JobImpressionsCompleted.java,
8631 javax/print/attribute/standard/JobKOctets.java,
8632 javax/print/attribute/standard/JobKOctetsProcessed.java,
8633 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8634 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8635 * Makefile.am (javax_source_files): Added new files.
8636 * Makefile.in: Regenerated.
8638 2004-01-06 Michael Koch <konqueror@gmx.de>
8640 * java/net/URLConnection.java
8641 (contentHandler): Removed.
8643 (getHeaderFields): Return an empty map instead of null.
8644 (getContent): Connect if needed, renamed "cType" to "type" and
8645 "contentHandler" to "ch" and made it a local variable.
8646 (getPermission): Don't use package in class name.
8647 (setDefaultRequestProperty): Fixed typo in documentation.
8648 (initializeDateFormats): Made locale a local variable.
8650 2004-01-06 Michael Koch <konqueror@gmx.de>
8652 * java/lang/Package.java
8653 (getPackage): Get the current class loader directly.
8654 * java/lang/SecurityManager.java
8655 (currentLoadedClass): Dont iterate over class contexts.
8656 (classLoaderDepth): Don't check class loaders if everything is allowed.
8658 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8660 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8661 (pre_event_handler): Set all insets to 0 when a Configure event
8662 is received for a GtkPlug.
8663 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8664 Make handle long, not int.
8665 (EmbeddedWindow()): New constructor.
8666 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8668 (setHandle): New method.
8669 (getHandle): Return long, not int.
8670 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8672 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8673 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8674 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8675 argument to GdkNativeWindow.
8676 (construct): New method.
8677 (embed): New method.
8679 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8680 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8681 (create(int, int)): New method.
8682 (create): Call new create method.
8683 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8685 (childResized): Remove native implementation. Implement in
8687 (getHScrollbarHeight, getVScrollbarWidth): Call
8688 gtk_widget_size_request to get scrollbar dimensions.
8689 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8690 call getVScrollbarWidth and getHScrollbarHeight when vertical
8691 and horizontal scrollbars respectively are needed.
8692 (doLayout): Enlarge child if it is smaller than the viewport.
8694 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8696 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8697 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8698 argument as per spec.
8700 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8702 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8704 (remove): Ditto. Also, Check for valid argument.
8705 (removeAll): Use peer interface method.
8706 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8707 native add function.
8708 (nativeRemove): New name for native remove function.
8709 (getHistory): New native function.
8710 (constructor): Generate ItemEvent.
8711 (add): Ditto, if selection is changed.
8712 (remove): Ditto, ditto.
8713 (removeAll): Add implementation.
8714 (handleEvent): Remove. Dead code.
8715 (choicePostItemEvent): Add comment.
8716 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8717 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8718 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8719 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8720 comments and fix condition to change selection.
8721 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8722 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8723 remove all capability.
8724 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8725 (item_activate): Add cast to remove compiler warning.
8727 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8729 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8730 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8731 (getPreferredSize): Call preferredSize.
8732 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8733 (getMinimumSize): Call minimumSize.
8734 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8735 (gtkWidgetGetDimensions): Return the peer widget's current size
8737 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8738 natural size request.
8740 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8742 Thanks to Brian Gough <bjg@network-theory.com>
8743 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8744 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8746 2004-01-04 Matthias Klose <doko@debian.org>
8748 * aclocal.m4: Rebuilt using "aclocal -I .".
8749 * configure: Rebuilt.
8751 2004-01-03 Per Bothner <per@bothner.com>
8753 * java/util/Date.java (parse): Fix a number of problems.
8754 (skipParens): Remove no-longer-needed method.