1 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
3 * java/net/InetAddress.java (loopbackAddress): Renamed from
5 (getByName): Return loopback address for null hostname, without
6 security check. Use lookup(), not getAllByName.
7 (getAllByName): Return loopback address for null hostname, without
9 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
12 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
15 Reported by Robin Green.
16 * defineclass.cc (handleField): Don't throw exception on unrecognised
17 modifier. Add FIXME comments for spec compliance.
18 (handleMethod): Likewise.
20 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
23 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
24 (Almost everywhere): add LOG calls, fix, add comments.
25 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
26 Add explicit check for LOCKED bit in slow case (PR 16662).
27 (_Jv_MonitorExit): Add casts in debug-only code.
28 Always release LOCKED bit before throwing exception.
29 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
30 isn't. Handle easy cases without lock acquisition.
31 (Object::wait): Use NotifyAll for lock inflation.
33 2004-08-12 David Daney <ddaney@avtrex.com>
35 * testsuite/libjava.lang/Process_1.java: New test.
36 * testsuite/libjava.lang/Process_2.java: New test.
37 * testsuite/libjava.lang/Process_3.java: New test.
38 * testsuite/libjava.lang/Process_4.java: New test.
39 * testsuite/libjava.lang/Process_5.java: New test.
40 * testsuite/libjava.lang/Process_6.java: New test.
41 * testsuite/libjava.lang/Process_1.out: Expected result.
42 * testsuite/libjava.lang/Process_2.out: Expected result.
43 * testsuite/libjava.lang/Process_3.out: Expected result.
44 * testsuite/libjava.lang/Process_4.out: Expected result.
45 * testsuite/libjava.lang/Process_5.out: Expected result.
46 * testsuite/libjava.lang/Process_6.out: Expected result.
48 2004-08-12 David Daney <ddaney@avtrex.com>
51 * java/lang/PosixProcess.java: Rewrote.
52 * java/lang/natPosixProcess.cc: Rewrote.
53 * java/lang/Runtime.java (execInternal): Declare throws IOException.
54 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
55 * posix-threads.cc (block_sigchld) New function.
56 (_Jv_ThreadRegister) Use it.
57 (_Jv_ThreadStart) Use it.
58 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
59 * Makefile.am: ... to specify extra native headers.
60 * configure: Regenerated.
61 * include/config.h: Regenerated.
62 * Makefile.in: Regenerated.
63 * gcj/Makefile.in: Regenerated.
64 * include/Makefile.in: Regenerated.
65 * testsuite/Makefile.in: Regenerated.
67 2004-08-12 Diego Novillo <dnovillo@redhat.com>
69 PR tree-optimization/16867
70 * testsuite/libjava.lang/PR16867.java: New test.
72 2004-08-09 Per Bothner <per@bothner.com>
74 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
75 with private fields and access methods.
76 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
77 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
78 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
79 ( _Jv_makeUtf8Const): Rewrite using new constructors.
80 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
81 * defineclass.cc: Use new _Utf8Const access/convenience methods.
83 * resolve.cc: Likewise.
84 * gcj/field.h: Likewise.
85 * include/jvm.h: Likewise.
86 * java/lang/Class.h: Likewise.
87 * java/lang/natClass.cc: Likwise.
88 * java/lang/natClassLoader.cc: Likewise
89 * java/lang/reflect/natMethod.cc: Likewise
90 * verify.cc: Likewise.
91 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
92 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
94 2004-08-10 Andrew Haley <aph@redhat.com>
96 * testsuite/libjava.lang/err14.java: New file.
97 * testsuite/libjava.lang/err14.out: New file.
99 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
101 * Makefile.am: Fix missing rename from x_nat_headers to
103 * Makefile.in: Regenerated.
105 2004-08-04 Andrew Haley <aph@redhat.com>
107 * java/security/BasicPermission.java: Don't check wildcards.
109 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
110 Michael Koch <konqueror@gmx.de>
112 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
113 * configure.in: Replaced all usages of AC_LINK_FILES by
116 configure: Regenerated.
118 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
119 Michael Koch <konqueror@gmx.de>
121 * acconfig.h: Removed.
122 * Makefile.am: Rename variables for xlib peer to include xlib and
123 gtk_c_headers to gtk_jni_headers.
124 * Makefile.in: Regenerated.
126 2004-08-04 Andrew Haley <aph@redhat.com>
128 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
131 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
133 * configure.in: Eliminate uses of changequote (mostly by quoting []).
134 Replace most top level 'dnl' comments with '#' comments, conforming
135 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
137 * configure: Rebuilt.
139 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
141 * acinclude.m4: Include no-executables.m4.
142 * aclocal.m4: Rebuild.
143 * configure.in: Convert to the autoconf 2.59 version of
144 of the no-executables hack, and also of the nonstandard CXX
145 hack and the multilibbed CC and CXX hack. Change prerequisite
147 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
148 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
149 testsuite/Makefile.in: Regenerate.
151 2004-08-03 Tom Tromey <tromey@redhat.com>
153 * jni.cc: Reindented.
155 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
157 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
159 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
161 * testsuite/libjava.compile/PR16701.java: New test.
163 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
165 * java/util/Collection.java, java/util/List.java,
166 java/util/Map.java, java/util/Set.java,
167 java/util/SortedMap.java, java/util/SortedSet.java:
168 Added additional exceptions to documentation.
170 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
173 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
174 * configure. Regenerate.
175 * include/win32.h: Explicitly include winsock2.h
176 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
179 2004-07-30 Michael Koch <konqueror@gmx.de>
181 * java/util/zip/GZIPInputStream.java
182 (GZIPInputStream): Increase buffer size to 4k.
183 * java/util/zip/GZIPOutputStream.java
184 (GZIPOutputStream): Likewise.
185 * java/util/zip/Inflater.java
186 (setInput): Merged formating with GNU classpath.
187 * java/util/zip/InflaterInputStream.java
188 (InflaterInputStream): Increase buffer size to 4k.
189 (fill): Throw exception if stream ends early.
190 (read): Merged endless-loop with GNU classpath.
191 (skip): Increase buffer size to 2k.
193 2004-07-30 Michael Koch <konqueror@gmx.de>
195 * gnu/java/awt/EmbeddedWindow.java
196 (addNotify): Use AccessController to allow execution of privileged
199 2004-07-29 Michael Koch <konqueror@gmx.de>
201 * gnu/java/lang/MainThread.java:
202 Explicitely import used classes.
203 (args): Make it type String[].
205 2004-07-29 Dalibor Topic <robilad@kaffe.org>
207 * gnu/java/awt/ComponentDataBlitOp.java,
208 gnu/java/beans/ExplicitBeanInfo.java,
209 gnu/java/beans/IntrospectionIncubator.java,
210 gnu/java/beans/editors/ColorEditor.java,
211 gnu/java/beans/editors/FontEditor.java,
212 gnu/java/beans/editors/NativeBooleanEditor.java,
213 gnu/java/beans/editors/NativeByteEditor.java,
214 gnu/java/beans/editors/NativeDoubleEditor.java,
215 gnu/java/beans/editors/NativeFloatEditor.java,
216 gnu/java/beans/editors/NativeIntEditor.java,
217 gnu/java/beans/editors/NativeLongEditor.java,
218 gnu/java/beans/editors/NativeShortEditor.java,
219 gnu/java/beans/editors/StringEditor.java,
220 gnu/java/io/ClassLoaderObjectInputStream.java,
221 gnu/java/io/decode/Decoder.java,
222 gnu/java/io/encode/Encoder.java,
223 gnu/java/lang/ClassHelper.java,
224 gnu/java/locale/Calendar.java,
225 gnu/java/locale/Calendar_de.java,
226 gnu/java/locale/Calendar_en.java,
227 gnu/java/locale/Calendar_nl.java,
228 gnu/java/locale/LocaleInformation_de.java,
229 gnu/java/locale/LocaleInformation_en.java,
230 gnu/java/locale/LocaleInformation_nl.java:
233 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
235 * README: Remove obsolete info. Update bug URL.
237 * NEWS: Updated with news up to GCC 3.4 release.
239 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
241 * gnu/java/security/action/GetPropertyAction.java (setParameters):
242 Renamed from 'setName'. New 2-argument form with default value.
243 (run): Pass default 'value' parameter to System.getProperty().
244 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
246 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
249 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
251 * configure.in: Check for minimum GTK version 2.4 requirement.
252 * configure: Rebuilt.
254 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
256 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
257 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
259 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
261 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
262 address. Reduce sleep times. Synchronize with target threads before
263 attempting to interrupt them. Don't try to calibrate yeild count,
264 instead, always loop for a fixed time.
265 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
266 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
267 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
268 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
269 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
270 * testsuite/libjava.lang/pr179.java: Likewise.
271 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
272 time. Remove upper bounds check on sleep time.
274 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
276 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
277 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
279 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
281 * java/io/File.java (toURI): Throw RuntimeException, not
283 * java/lang/Runtime.java (exit): Qualify static sleep() call with
284 class name, not instance.
286 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
288 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
289 and gnu/java/security/action/SetAccessibleAction.java.
290 * Makefile.in: Rebuilt.
292 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
294 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
295 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
297 (DECLARE_PRIM_TYPE): Don't declare array vtables.
298 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
299 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
301 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
303 * Makefile.am: Replace jar, rmic and rmiregistry references with
304 gjar, grmic and grmiregistry.
305 * configure.in: Likewise.
306 * Makefile.in: Regenerate.
307 * configure: Likewise.
308 * gcj/Makefile.in: Likewise.
309 * include/Makefile.in: Likewise.
310 * testsuite/Makefile.in: Likewise.
312 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
314 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
315 for privileged getProperty calls.
316 * java/io/ObjectOutputStream.java (getField): No longer static. Use
317 SetAccessibleAction instead of anonymous class for doPrivileged call.
318 (getMethod): Likewise.
319 (setAccessible): New field. PrivilegedAction object to use when
320 calling setAccessible.
321 * java/io/ObjectStreamClass.java (calculateOffsets): Use
322 SetAccessibleAction instead of anonymous class for diPrivileged call.
323 (setFields): Likewise.
324 (getClassUID): Likewise.
325 (findMethod): Likewise.
326 * gnu/java/security/action/GetPropertyAction.java: New class.
327 * gnu/java/security/action/SetAccessibleAction.java: New class.
329 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
331 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
333 * testsuite/libjava.lang/Serialization.java: New test.
334 * testsuite/libjava.lang/Serialization.out: New.
336 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
338 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
339 missed in last commit.
341 2004-07-23 Mark Wielaard <mark@klomp.org>
343 * java/lang/System.java (static): Set http.agent system property when
345 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
346 from system property inside AccessController.doPrivileged() call.
347 (proxyPort): Made package private.
348 (proxyInUse): Likewise.
349 (proxyHost): Likewise.
350 (userAgent): Likewise.
352 2004-07-23 Mark Wielaard <mark@klomp.org>
354 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
357 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
359 * Makefile.am (ordinary_java_source_files): Add
360 DefaultContentHandlerFactory.java.
361 * Makefile.in: Rebuilt.
362 * java/net/URLConnection.java (defaultFactory): New field.
364 (getContentHandler): Renamed from 'setContentHandler'. Try
365 defaultFactory after user-set factory, if any. Search for content
366 handler implementations in gnu.java.net.content, not gnu.gcj.content.
367 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
369 (getLastModified): Implemented.
370 (getPermission): Create file permission here, instead of in
372 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
374 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
376 (getLastModified): Implemented.
377 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
378 Default implementation.
379 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
380 Implement using GdkPixbufDecoder.
382 2004-07-21 Michael Koch <konqueror@gmx.de>
384 * javax/swing/JTextArea.java
385 (setLineWrap): Fire property change event after new value is set.
386 (setTabSize): Likewise.
388 2004-07-21 Michael Koch <konqueror@gmx.de>
390 * javax/swing/JTable.java
391 (autoCreateColumnsFromModel): New field.
392 (autoResizeMode): Likewise.
393 (cellEditor): Likewise.
394 (cellSelectionEnabled): Likewise.
395 (columnModel): Likewise.
396 (dataModel): Likewise.
397 (defaultEditorsByColumnClass): Likewise.
398 (defaultRenderersByColumnClass): Likewise.
399 (editingColumn): Likewise.
400 (editingRow): Likewise.
401 (gridColor): Likewise.
402 (preferredViewportSize): Likewise.
403 (rowHeight): Likewise.
404 (rowMargin): Likewise.
405 (rowSelectionAllowed): Likewise.
406 (selectionBackground): Likewise.
407 (selectionForeground): Likewise.
408 (selectionModel): Likewise.
409 (showHorizontalLines): Likewise.
410 (showVerticalLines): Likewise.
411 (tableHeader): Likewise.
412 (JTable): Implemented.
413 (getColumnModel): Likewise.
414 (getSelectedRow): Likewise.
415 (getSelectionModel): Likewise.
416 (setModel): Likewise.
417 (setSelectionModel): Likewise.
418 (createScrollPaneForTable): New method.
419 (createDefaultDataModel): Likewise.
420 (createDefaultListSelectionModel): Likewise.
421 (getModel): Likewise.
422 (getTableHeader): Likewise.
423 (setTableHeader): Likewise.
424 (getColumnSelectionAllowed): Likewise.
425 (setColumnSelectionAllowed): Likewise.
426 (getRowSelectionAllowed): Likewise.
427 (setRowSelectionAllowed): Likewise.
428 (getAutoResizeMode): Likewise.
429 (setAutoResizeMode): Likewise.
430 (getColumnCount): Likewise.
431 (getRowCount): Likewise.
432 (getCellRenderer): Likewise.
433 * javax/swing/JTree.java
434 (cellRenderer): New field.
435 (editable): Likewise.
436 (rootVisible): Likewise.
437 (showsRootHandles): Likewise.
438 (getModel): New method.
439 (setModel): Likewise.
440 (isEditable): Likewise.
441 (setEditable): Likewise.
442 (isRootVisbile): Likewise.
443 (setRootVisible): Likewise.
444 (getShowsRootHandles): Likewise.
445 (setShowRootHandles): Likewise.
446 (getCellRenderer): Likewise.
447 (setCellRenderer): Likewise.
449 2004-07-21 Michael Koch <konqueror@gmx.de>
451 * javax/swing/JFormattedTextField.java
452 (setDocument): Implemented.
453 * javax/swing/JRootPane.java:
455 * javax/swing/JTable.java
456 (getDefaultRenderer): New method.
457 * javax/swing/JTextField.java
459 (getPreferredSize): Likewise.
460 * javax/swing/JToggleButton.java
461 (getAccessibleContext): Fix javadoc.
462 * javax/swing/JTree.java:
464 * javax/swing/JViewport.java:
467 2004-07-21 David Jee <djee@redhat.com>
469 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
470 Collect all native method declaration at the top.
471 (create): Set the filename filter if necessary.
472 (setDirectory): Call nativeSetDirectory().
473 (setFilenameFilter): Implement.
474 (filenameFilterCallback): New method.
475 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
476 (create): Configure dialog to show hidden files.
477 (filenameFilterCallback): New function.
478 (nativeSetFilenameFilter): New function.
479 (nativeSetDirectory): New function.
481 2004-07-21 Kim Ho <kho@redhat.com>
483 * javax/swing/plaf/basic/BasicSliderUI.java:
485 (paintTrack): Fill the track before painting
488 2004-07-21 Graydon Hoare <graydon@redhat.com>
490 patch from Roman Kennke <roman@ontographics.com>
491 * javax/swing/Spring.java: New file.
492 * javax/swing/SpringLayout.java: New file.
493 * Makefile.am: Add new files.
494 * Makefile.in: Regenerate.
496 2004-07-21 Graydon Hoare <graydon@redhat.com>
498 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
499 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
500 * javax/swing/ScrollPaneLayout.java: Likewise.
502 2004-07-21 Kim Ho <kho@redhat.com>
504 * javax/swing/DefaultDesktopManager.java:
505 (findMinimum): Removed.
506 (resizeFrame): Trust the UI to pass valid
508 * javax/swing/JOptionPane.java:
509 Implemented showInternalXXXDialog methods.
510 (startModal): New method.
511 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
512 (BorderListener::mouseDragged): Verify that the new
513 bounds are valid before passing them to the DesktopManager.
514 (preferredLayoutSize): Delegate
516 (minimumLayoutSize): Ditto.
517 (getSize): New method.
518 (GlassPaneDispatcher): Reimplemented by copying
519 a stripped down LightweightDispatcher from Container.
520 (getMinimumSize): Call minimumLayoutSize.
521 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
523 (mousePressed): Add ability to properly close
525 * javax/swing/plaf/basic/BasicToolBarUI.java:
526 (DragWindow): Set owner for DragWindow.
528 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
530 * java/awt/image/ShortLookupTable.java: New file.
531 * java/awt/image/ByteLookupTable.java: New file.
532 * Makefile.am: Added new files.
533 * Makefile.in: Regenerated.
535 2004-07-21 David Jee <djee@redhat.com>
537 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
538 (create(GtkContainerPeer)): New native method.
539 (create()): Call native create(), passing in the parent frame
540 as the paramter. Natively set the current file and directory.
541 (setFile): Construct an absolute filename before passing it to
543 (nativeGetDirectory): New method.
544 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
545 (window_closed): Removed.
546 (ok_clicked): Likewise.
547 (cancel_clicked): Likewise.
548 (handle_response): New method.
549 (create): Use GtkFileChooserDialog.
550 (connectSignals): Connect to handle_response.
551 (nativeGetDirectory): New method.
552 (nativeSetFile): Use GtkFileChooserDialog.
554 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
556 * java/awt/image/LookupTable.java: New file.
557 * Makefile.am: Added new file.
558 * Makefile.in: Regenerated.
560 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
562 * java/awt/image/Kernel.java: New file.
563 * Makefile.am: Added new file.
564 * Makefile.in: Regenerated.
566 2004-07-21 Olga Rodimina <rodimina@redhat.com>
568 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
569 * javax/swing/JMenu.java: Likewise.
570 * javax/swing/JMenuBar.java: Likewise.
571 (MARGIN_CHANGED_PROPERTY): New property.
572 (setMargin): Implemented.
573 * javax/swing/JMenuItem.java: Fixed javadocs.
574 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
575 (LABEL_CHANGED_PROPERTY): New property.
576 (add): changed to use createActionComponent.
577 (createActionComponent): Implemented.
578 (setLabel): Fire PropertyChangeEvent if label property
580 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
581 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
582 (ContainerHandler): Repaint if margin property has changed.
583 * javax/swing/plaf/basic/BasicMenuItemUI.java:
584 (installUI): Call installComponents().
585 (uninstallUI): Call uinstallComponents().
586 * javax/swing/plaf/basic/BasicMenuUI.java:
588 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
591 2004-07-21 Kim Ho <kho@redhat.com>
593 * javax/swing/plaf/basic/BasicToolBarUI.java:
594 (DragWindow): Use the right constructor.
596 2004-07-21 Kim Ho <kho@redhat.com>
598 * javax/swing/JToolBar.java:
599 (layoutContainer): Use getComponents.
600 * javax/swing/plaf/basic/BasicToolBarUI.java:
601 (DragWindow): Don't use SwingUtilities'
603 (ToolBarDialog): ditto.
605 2004-07-21 Kim Ho <kho@redhat.com>
607 * javax/swing/JRootPane.java:
609 (layoutContainer): Set the glasspane's size to
610 be the same as the content pane.
611 (createGlassPane): Set opaque property to false.
613 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
615 * java/awt/Component.java (requestFocus()): Don't handle Panels
617 (requestFocus(boolean)): Likewise.
618 (requestFocusInWindow(boolean)): Likewise.
619 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
620 Set GTK_CAN_FOCUS flag.
622 2004-07-21 Kim Ho <kho@redhat.com>
624 * Makefile.am: Added new file.
625 * Makefile.in: Regenerated.
626 * gcj/Makefile.in: Regenerated.
627 * include/Makefile.in: Regenerated.
628 * javax/swing/AbstractButton.java:
629 Add rollOverEnabled property.
630 (setRolloverEnabled): Use new property.
631 (isRolloverEnabled): Use new property.
632 * javax/swing/JTabbedPane.java:
633 (setComponent): Remove useless JTabbedPane.this.
634 * javax/swing/JToolBar.java: Finish implementation.
635 * javax/swing/plaf/basic/BasicArrowButton.java:
636 (paint): Moved border painting to a border.
637 * javax/swing/plaf/basic/BasicLookAndFeel.java:
638 Change JToolBar look and feel defaults.
639 * javax/swing/plaf/basic/BasicOptionPaneUI.java
640 (actionPerformed): Return Integer index instead of name.
641 (addButtonComponents): Check to see if component is
643 (createMessageArea): Don't use components that are not
645 (getIconForType): Use temporary icons.
646 * javax/swing/plaf/basic/BasicSliderUI.java:
647 (mousePressed): Do not return if it's on thumb.
648 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
649 (paintMinorTickForVertSlider): ditto.
650 (paintMajorTickForHorizSlider): ditto.
651 (paintMajorTickForVertSlider): ditto.
652 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
653 Add a border around the SplitPaneDivider.
654 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
656 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
657 New file. Implemented.
658 * javax/swing/plaf/basic/BasicToolBarUI.java:
660 * testsuite/Makefile.in: Regenerated.
662 2004-07-21 Graydon Hoare <graydon@redhat.com>
664 * javax/swing/Timer.java (run): Queue events each time cycle.
666 2004-07-21 David Jee <djee@redhat.com>
668 * gnu/java/awt/peer/gtk/GtkImagePainter.java
669 (imageComplete): Call image.imageComplete().
670 * java/awt/image/MemoryImageSource.java:
671 Reimplement consumers as a Vector instead of a Hashtable. This is
672 because enumeration on a Hashtable is not thread-safe.
673 (addConsumer): Adapt to Vector consumers.
674 (isConsumer): Adapt to Vector consumers.
675 (removeConsumer): Adapt to Vector consumers.
676 (startProduction): Adapt to Vector consumers. Call imageComplete()
677 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
678 (newPixels): Adapt to Vector consumers.
679 (sendPicture): Set the color model of the image consumer.
680 (newPixels(IIII)): Adapt to Vector consumers.
681 (newPixels(IIIIB)): Adapt to Vector consumers.
683 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
685 * java/awt/Component.java (deliverEvent): Implement.
686 (postEvent): Implement.
687 (handleEvent): Implement.
688 (translateEvent): New method.
689 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
690 * java/awt/Container.java (deliverEvent): Implement.
691 * java/awt/Event.java (paramString): Fix formatting.
692 * java/awt/Font.java (toString): Likewise.
693 * java/awt/Window.java (postEvent): Implement.
695 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
697 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
698 Set window's focus owner upon receiving a FOCUS_LOST event.
699 * java/awt/Window.java (Window()): Refocus the previously
700 focused component within the window when the window regains the
702 (setFocusOwner): New method.
703 * java/awt/Component.java (requestFocus): Add FIXME.
705 * libgcj.pc.in: Remove library flags.
707 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
709 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
711 * java/awt/Component.java (requestFocus()): Handle Panel
712 specially. Post FOCUS_LOST event on opposite component.
713 (requestFocus(boolean)): Likewise.
714 (requestFocusInWindow(boolean)): Likewise.
715 (paramString): Reorder dimension fields.
716 * java/awt/Container.java (paramString): Fix string format.
717 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
718 Handle FOCUS_LOST events. Don't handle Windows specially. Only
719 process key events if the focus owner is non-null.
720 (dispatchKeyEvent): Likewise.
721 * java/awt/Frame.java (paramString): Fix formatting.
722 (generateName): New method.
723 (getUniqueLong): Likewise.
724 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
725 the temporary focus owner is null. If so, return the permanent
727 * java/awt/Panel.java (generateName): New method.
728 (getUniqueLong): Likewise.
729 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
730 signal handling to make callbacks more specific.
732 2004-07-21 Michael Koch <konqueror@gmx.de>
734 * javax/swing/text/Position.java
737 2004-07-21 Michael Koch <konqueror@gmx.de>
739 * javax/swing/LookAndFeel.java
740 (provideErrorFeedback): New method.
742 2004-07-21 Michael Koch <konqueror@gmx.de>
744 * javax/swing/JTextArea.java
745 (tabSize): New field.
746 (getTabSize): New method.
747 (setTabSize): Likewise.
749 2004-07-21 Michael Koch <konqueror@gmx.de>
751 * javax/swing/ActionMap.java:
752 Fixed javadocs all over.
753 (serialVersionUID): Made private.
754 (parent): Don't explicitely initialize with default value.
756 (keys): Reimplemented.
758 (convertSet): Removed.
759 * javax/swing/ComponentInputMap.java:
760 Fixed javadocs all over.
761 (ComponentInputMap): Implemented.
765 (SetParent): Likewise.
766 (getComponent): Likewise.
767 * javax/swing/InputMap.java:
768 Fixed javadocs all over.
769 (serialVersionUID): Made private.
770 (parent): Don't explicitely initialize with default value.
772 (keys): Reimplemented.
774 (convertSet): Removed.
776 2004-07-21 Michael Koch <konqueror@gmx.de>
778 * javax/swing/ActionMap.java,
779 javax/swing/ComponentInputMap.java,
780 javax/swing/InputMap.java,
781 javax/swing/table/DefaultTableColumnModel.java,
782 javax/swing/table/TableColumn.java,
783 javax/swing/table/TableColumnModel.java,
784 javax/swing/table/TableModel.java,
785 javax/swing/text/AbstractDocument.java,
786 javax/swing/text/TextAction.java:
789 2004-07-21 Graydon Hoare <graydon@redhat.com>
791 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
792 Make method non-static.
793 * javax/swing/AbstractButton.java:
794 Rename fields to match property names where possible.
795 (iconTextGap): New property.
796 * javax/swing/JCheckBox.java: Match AbstractButton changes.
797 (init) New method, call from after various constructors.
798 * javax/swing/JComponent.java (revalidate):
799 Invalidate before queueing repair.
800 * javax/swing/JList.java (getPreferredScrollableViewportSize):
801 Reimplement in terms of visibleRowCount property.
802 * javax/swing/JMenuButton.java: Match AbstractButton changes.
803 * javax/swing/JScrollPane.java (createScrollListener):
804 Remove tracing chatter.
805 * javax/swing/JToggleButton.java: Match AbstractButton changes.
806 * javax/swing/RepaintManager.java (addInvalidComponent):
808 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
810 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
811 Mimic sun behavior on top left/right positioning.
812 * javax/swing/ViewportLayout.java (preferredLayoutSize):
813 Remove mistaken use of preferredScrollableViewportSize here.
814 (layoutContainer): Use view's preferred size as basis.
815 * javax/swing/plaf/basic/BasicButtonUI.java:
816 Set, get, and use textIconGap property.
817 (paint) Paint text returned from layout (with ellipsis).
818 * javax/swing/plaf/basic/BasicListUI.java:
819 Remove tracing chatter, correct various minor calculations.
820 (getCellBounds): Update layout state before calculating.
821 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
822 Use margin default similar to sun's.
823 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
824 (createIncreaseIcon): Center icon, minimize margins.
825 (createDecreaseIcon): Likewise.
826 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
828 (installUI): Call it.
829 (uninstallDefaults): Implement.
830 (uninstallUI): Call it.
831 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
832 Call existing Window constructor.
833 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
834 Set clip before painting.
836 2004-07-21 Olga Rodimina <rodimina@redhat.com>
838 * javax/swing/JMenuItem.java:
839 (processMouseEvent): Reimplemented to deal with
841 (createMenuDragMouseEvent): New private helper method.
842 Creates MenuDragMouseEvent.
843 * javax/swing/MenuSelectionManager.java
844 (componentForPoint): Implemented.
845 (isComponentPartOfCurrentMenu): Made public.
846 (processMouseEvent): Reimplemented to deal with
848 (setSelectedPath): Corrected small mistake that caused
849 path to be set incorrectly.
850 (getPath): If given component is JMenu then also add this
851 menu's popup menu to the selected path.
852 * javax/swing/plaf/basic/BasicMenuItemUI.java:
854 (getPreferredSize): Call getPreferredMenuItemSize().
855 (getPreferredItemSize): Moved code from getPreferredSize to here.
856 (installListeners): Install MouseMotionListeners.
857 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
858 if mouse wasn't released in the bounds of this menu item.
859 (MenuDragMouseHandler): Implemented.
860 * javax/swing/plaf/basic/BasicMenuUI.java:
861 (installListeners): Install MouseMotionListener and
862 MenuDrageMouseListener.
863 (MenuDragMouseHandler): Implemented.
864 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
865 (uninstallListeners): Implemented.
867 2004-07-21 Michael Koch <konqueror@gmx.de>
869 * javax/swing/JCheckBox.java: Reformated.
870 (JCheckBox): Fixed all constructors.
871 (isBorderPaintedFlat): New method.
872 (setBorderPaintedFlat): New method.
873 * javax/swing/JEditorPane.java
874 (createEditorKitForContentType): Made public.
875 (scrollToReference): Likewise.
876 * javax/swing/JTextArea.java
877 (setLineWrap): Fire property change.
878 * javax/swing/JToggleButton.java
879 (JToggleButton): New constructor.
880 (JToggleButton): Simplified.
881 * javax/swing/text/AttributeSet.java
882 (FontAttribute): Renamed from FontCharacterAttribute.
883 * javax/swing/text/JTextComponent.java
884 (KeyBinBinding): Added javadoc.
885 (JTextComponent): Likewise.
886 (getAccessibleContext): Fixed javadoc.
887 * javax/swing/text/View.java
888 (View): Added javadoc.
889 * javax/swing/text/TabableView.java: New file.
890 * Makefile.am: Added javax/swing/text/TabableView.java.
891 * Makefile.in: Regenerated.
893 2004-07-21 Graydon Hoare <graydon@redhat.com>
895 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
896 * gnu/java/awt/peer/gtk/GtkToolkit.java
897 (GtkErrorImage): New helper class.
898 (bufferedImageOrError): New helper method.
899 (createImage): Use it.
901 2004-07-21 David Jee <djee@redhat.com>
903 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
904 (setCaretPosition): Scroll the text view so the new caret position
905 is visible on screen.
907 2004-07-21 David Jee <djee@redhat.com>
909 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
910 (setBounds): Do not validate awtComponent here.
911 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
912 (getPreferredSize): New method.
913 * java/awt/ScrollPane.java
914 (ScrollPane): Set default size to 100x100.
915 (addNotify): If child is not a Panel, wrap it with a new Panel.
916 (paramString): Implement.
918 2004-07-21 Olga Rodimina <rodimina@redhat.com>
920 * javax/swing/JMenu.java:
921 (setSelected): Display popup menu only if this menu
922 is showing on the screen.
923 * javax/swing/JPopupMenu.java:
924 (processMouseEvent): Added comment.
925 (processKeyEvent): Likewise.
926 * javax/swing/MenuSelectionManager.java:
927 (clearSelectedPath): Only fireStateChanged() after
928 selected path was changed, not before.
929 (setSelectedPath): Likewise.
930 * javax/swing/plaf/basic/BasicMenuItemUI.java:
931 (paintMenuItem): Corrected position of menu item's
933 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
934 (installUI): Correct setDefaultLightWeightPopupEnabled call.
935 (popupMenuCanceled): Reimplemented.
936 (popupMenuWillBecomeVisible): Select first menu item by default
937 when displaying free floating popup menus.
938 (TopWindowListener): Reimplemented.
940 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
942 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
943 Panel from being painted twice when it is first shown.
945 2004-07-21 Olga Rodimina <rodimina@redhat.com>
947 * java/awt/Window.java: Reverted changes from my
948 previous patch for creating window without an owner.
949 * javax/swing/SwingUtilities.java:
950 (SwingUtilities.OwnerFrame): made static.
951 (OwnerFrame.setVisible): New method. Overridden with
952 empty implementation.
953 (OwnerFrame.isShowing): New method. Ovverridden
954 to return always true.
956 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
958 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
959 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
960 (GtkComponentPeer): Remove temporary try/catch block.
961 (setVisible): Call show and hide.
964 (getArgs): Don't add "visible" argument.
965 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
966 (property_notify_predicate): Return Bool instead of int.
967 (find_layout): New function.
968 (connectJObject): Call find_layout.
969 (connectSignals): Likewise.
970 (moveLayout): Likewise.
971 (gtkLayoutSetVisible): Likewise.
973 2004-07-21 Mark Wielaard <mark@klomp.org>
975 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
976 on notifier object before calling notifyAll().
978 2004-07-21 Olga Rodimina <rodimina@redhat.com>
980 * java/awt/Window.java: Changed constructors to use new
981 method that is described below. Constructors call this
982 methods only if newly created window should have an owner.
983 (setWindowOwner): New method. Implementation for
984 this method is moved from this(owner,configuration).
985 * javax/swing/JWindow.java:
986 (JWindow): Reimplement to use SwingUtilities.ownerFrame
988 * javax/swing/SwingUtilities.java:
989 (ownerFrame): Change type of this field to OwnerFrame.
990 (getOwnerFrame): Changed to return object of type OwnerFrame.
991 (SwingUtilities.OwnerFrame): New class. Represents owner
992 of a Window that is not provided with one.
994 2004-07-21 Olga Rodimina <rodimina@redhat.com>
996 * javax/swing/AbstractButton.java:
997 (configurePropertiesFromAction): Set action command
998 to button's text by default if action command is not
999 explicitely specified.
1000 * javax/swing/JMenu.java: Remove unnecessary listener
1001 and methods relevant to it.
1002 (setSelected): Reimplemented.
1003 (menuSelectionChanged): Moved most part of implementation to
1004 setSelected() and call it instead.
1005 * javax/swing/JMenuItem.java:
1006 (init): Comment out statement that sets paint_border to false.
1007 (configurePropertiesFromAction): Do not set accelerator
1009 (menuSelectionChanged): Change selected index in the selection
1010 model of menu item's parent.
1011 * javax/swing/JPopupMenu.java:
1012 (remove): Set constraints.fill field to GridBagConstraints.BOTH
1013 instead of GridBagConstraints.HORIZONTAL.
1015 (createActionChangeListener): Implemented.
1016 (setVisible): Correct location of HeavyWeightMenu and
1017 don't firePopupMenuCanceled().
1018 (menuSelectionChanged): Implemented.
1019 (ActionChangeListener): New Listener. Implemented.
1020 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1021 (BasicMenuBarUI.ContainerHandler): Implemented.
1022 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1023 (paintMenuItem): Uncommented out code that paints
1024 icon, now that icons are working properly.
1025 (PropertyChangeListener): Implemented.
1026 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1028 (topWindowListener): New field.
1029 (Constructor): initialize topWindowListener.
1030 (BasicPopupMenuUI.TopWindowListener): Implemented.
1031 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
1032 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
1035 2004-07-21 Michael Koch <konqueror@gmx.de>
1037 * javax/swing/plaf/basic/BasicButtonUI.java
1038 (paintFocus): Fixed method signature.
1039 (paintButtonPressed): Likewise.
1040 (paintButtonNormal): Likewise.
1041 (paintText): New method.
1042 * javax/swing/plaf/basic/BasicLabelUI.java
1043 (paint): Re-indented.
1044 * javax/swing/plaf/basic/BasicTextUI.java
1045 (installUI): Set parent textComponent to opaque.
1046 * javax/swing/text/DefaultHighlighter.java
1047 (checkPositions): New helper method.
1048 (addHighlight): Throws BadLocationException, check positions.
1049 (changeHighlight): Likewise.
1050 * javax/swing/text/EditorKit.java
1051 (EditorKit): Implements Serializable.
1052 * javax/swing/text/JTextComponent.java
1053 (getUI): Added javadoc.
1055 (upadteUI): Added javadoc, don't revalidate and repaint.
1057 2004-07-21 David Jee <djee@redhat.com>
1059 * java/awt/GridBagLayout.java
1060 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
1061 * javax/swing/AbstractButton.java
1062 (setText): Reindent.
1063 * javax/swing/RepaintManager.java
1064 (addInvalidComponent): Find the first ancestor that isValidateRoot().
1066 2004-07-21 Michael Koch <konqueror@gmx.de>
1068 * javax/swing/JFormattedTextField.java
1070 (JFormattedTextField): Implemented.
1071 (getValue): Likewise.
1072 (setValue): Likewise.
1073 * javax/swing/LookAndFeel.java
1074 (getSupportsWindowDecorations): New method.
1075 * javax/swing/UIDefaults.java:
1076 Use java.beans.PropertyChangeSupport instead of doing all ourself.
1077 (addPropertyChangeListener): Made public.
1078 (addResourceBundle): Likewise.
1079 (removeResourceBundle): Likewise.
1080 (setDefaultLocale): Likewise.
1081 * javax/swing/plaf/basic/BasicRootPaneUI.java
1082 (BasicRootPaneUI): Implements PropertyChangeListener.
1083 (propertyChange): New method.
1084 * javax/swing/plaf/basic/BasicTextUI.java
1085 (BasicHighlighter): New inner class.
1086 (createHighlighter): New method.
1087 * javax/swing/plaf/basic/BasicToolBarUI.java
1088 (DragWindow): Extends java.awt.Window.
1089 * javax/swing/text/JTextComponent.java
1090 (getDocument): Removed debug output.
1091 * javax/swing/plaf/basic/BasicTextFieldUI.java,
1092 javax/swing/text/DefaultHighlighter.java,
1093 javax/swing/text/FieldView.java,
1094 javax/swing/text/PlainView.java: New files.
1095 * Makefile.am: Added new files.
1096 * Makefile.in: Regenerated.
1098 2004-07-21 Michael Koch <konqueror@gmx.de>
1100 * javax/swing/JEditorPane.java
1101 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
1102 (createEditorKitForContentType): Likewise.
1103 * javax/swing/text/DefaultEditorKit.java
1104 (serialVersionUID): Added constant field.
1105 (EndOfLineStringPropery): Fixed typo.
1106 (DefaultEditorKit): New constructor.
1107 * javax/swing/text/Segment.java:
1108 Import java.text.CharacterIterator.
1109 * javax/swing/text/CharacterIterator.java,
1110 javax/swing/text/PlainEditorKit.java: Removed.
1111 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1112 javax/swing/text/PlainEditorKit.java.
1113 * Makefile.in: Regenerated.
1115 2004-07-21 Michael Koch <konqueror@gmx.de>
1117 * javax/swing/JButton.java,
1118 javax/swing/text/DefaultEditorKit.java,
1119 javax/swing/text/EditorKit.java,
1120 javax/swing/text/Segment.java,
1121 javax/swing/text/StyledEditorKit.java:
1124 2004-07-21 Michael Koch <konqueror@gmx.de>
1126 * javax/swing/ImageIcon.java
1128 (description): Renamed from descr.
1129 (ImageIcon): Added missing constructors.
1130 (setParent): Removed.
1131 (setImageObserver): New method.
1132 (getImageObserver): New method.
1133 (paintIcon): Handle observer = null.
1134 * javax/swing/JButton.java
1135 (removeNotify): Fixed javadoc.
1136 (updateUI): Simplified.
1137 * javax/swing/JRootPane.java
1138 (serialVersionUID): New constant field.
1139 * javax/swing/UIManager.java:
1140 Fixed javadocs all over.
1141 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1142 * javax/swing/text/AbstractDocument.java
1143 (createPosition): Throws BadLocationException.
1144 (getText): Likewise.
1146 * javax/swing/text/ComponentView.java
1147 (modelToView): Likewise.
1148 * javax/swing/text/DefaultEditorKit.java:
1149 Made all public methods public.
1150 (read): Throws BadLocationException and IOException.
1152 * javax/swing/text/EditorKit.java:
1153 Made all public methods public.
1154 (serialVersionUID): New constant field.
1155 (clone): New method.
1156 (read): Throws BadLocationException and IOException.
1158 * javax/swing/text/Segment.java
1159 (array): Made public.
1162 (Segment): New constructors.
1163 (clone): Reimplemented.
1164 * javax/swing/text/StyledEditorKit.java
1165 (serialVersionUID): New constant field.
1167 2004-07-21 Graydon Hoare <graydon@redhat.com>
1169 * java/awt/image/BufferedImage.java
1170 (getSource): Implement.
1171 * javax/swing/ImageIcon.java
1172 (ImageIcon): Implement ctor.
1173 * javax/swing/ScrollPaneLayout.java
1174 (preferredLayoutSize): Be more careful about nulls.
1176 2004-07-21 Michael Koch <konqueror@gmx.de>
1178 * javax/swing/text/AttributeSet.java
1179 (CharacterAttribute): New interface
1180 (ColorAttribute): Likewise.
1181 (FontCharacterAttribute): Likewise.
1182 (ParagraphAttribute): Likewise.
1183 * javax/swing/text/DefaultCaret.java
1184 (moveCaret): New method.
1185 (positionCaret): Likewise.
1186 (repaint): Made protected.
1187 * javax/swing/text/JTextComponent.java
1188 (KeyBinding): Made it static.
1189 * javax/swing/text/View.java
1190 (getContainer): Honor parent == null.
1192 2004-07-21 Michael Koch <konqueror@gmx.de>
1194 * javax/swing/text/AbstractDocument.java:
1197 2004-07-21 Michael Koch <konqueror@gmx.de>
1199 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1200 Import javax.swing.UIManager explicitely.
1201 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1202 (ScrollingButton): Made it static.
1204 2004-07-21 Michael Koch <konqueror@gmx.de>
1206 * javax/swing/UIDefaults.java
1207 (ActiveValue): Made public.
1208 (LazyValue): Likewise.
1209 * javax/swing/plaf/basic/BasicTextUI.java
1210 (RootView): Reintroduced.
1212 (rootView): New field.
1213 (installUI): Create document if needed, initialize rootView.
1214 (uninstallUI): Hanle rootView.
1216 (getRootView): Likewise.
1217 (setView): Likewise.
1218 * javax/swing/text/DefaultCaret.java:
1219 Renamed all "evt" variables to "event".
1221 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1223 * libgcj.spec.in: Add -l-java-util-logging.
1225 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1227 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1228 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1229 gtk-xft-dpi can no calculate the right value.
1230 (dpi_changed_cb): Mark *pspec as unsused.
1232 2004-07-21 David Jee <djee@redhat.com>
1234 * java/awt/Component.java
1235 (move): Delegate to setBounds().
1237 (reshape): Fix so it repaints parent and self only when necessary.
1239 2004-07-21 David Jee <djee@redhat.com>
1241 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1242 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1243 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1244 (setVisible): Likewise.
1247 (getArgs): Likewise.
1248 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1249 (property_notify_predicate): Likewise.
1250 (find_layout): Likewise.
1251 (connectJObject): Likewise.
1252 (connectSignals): Likewise.
1253 (moveLayout): Likewise.
1254 (gtkLayoutSetVisible): Likewise.
1256 2004-07-21 Graydon Hoare <graydon@redhat.com>
1262 (rmiregistry_LDADD): Add lib-java-util-logging.la
1263 * Makefile.in: Regenerate.
1265 2004-07-21 Michael Koch <konqueror@gmx.de>
1267 * javax/swing/text/AbstractDocument.java
1268 (replace): Dont use protected method of java.util.Vector directly.
1270 2004-07-21 Michael Koch <konqueror@gmx.de>
1272 * javax/swing/plaf/basic/BasicTextUI.java
1273 (installUI): Call specialized install methods.
1274 (installDefaults): New method.
1275 (installListeners): Likewise.
1276 (installKeyboardActions): Likewise.
1277 (uninstallUI): Likewise.
1278 (uninstallDefaults): New method.
1279 (uninstallListeners): Likewise.
1280 (uninstallKeyboardActions): Likewise.
1281 (getPropertyPrefix): New abstract method.
1282 (paint): Made final, just call paintSafely().
1283 (paintSavely): New method.
1284 (paintBackground): Likewise.
1285 (getVisibleEditorRect): Likewise.
1286 * javax/swing/text/LayeredHighlighter.java,
1287 javax/swing/text/TabExpander.java: New files.
1288 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1289 and javax/swing/text/TabExpander.java.
1290 * Makefile.in: Regenerated.
1292 2004-07-21 Michael Koch <konqueror@gmx.de>
1294 * javax/swing/plaf/basic/BasicTextUI.java
1295 (BasicTextUI): Made abstract.
1296 (BasicCaret): New inner class.
1297 (view): Don't explicitely initialize with "null".
1298 (textComponent): New field.
1299 (textColor): Removed.
1300 (disabledTextColor): Removed.
1301 (normalBackgroundColor): Removed.
1302 (RootView): Removed commented out inner class.
1303 (createUI): Removed.
1304 (createCaret): New method.
1305 (getComponent): Likewise.
1306 (installUI): Initialize textComponent only.
1307 (getPreferredSize): Use installed JTextComponent.
1308 (setView): New method.
1310 * javax/swing/text/JTextComponent.java
1311 (highlighter): New field.
1312 (caretColor): Likewise.
1313 (disabledTextColor): Likewise.
1314 (seletedTextColor): Likewise.
1315 (selectionColor): Likewise.
1316 (setUI): New method.
1317 (getCaretColor): Likewise.
1318 (setCaretColor): Likewise.
1319 (getDisabledColor): Likewise.
1320 (setDisabledColor): Likewise.
1321 (getSelectedTextColor): Likewise.
1322 (setSelectedTextColor): Likewise.
1323 (getSelectionColor): Likewise.
1324 (setSelectionColor): Likewise.
1325 (getHighlighter): Likewise.
1326 (setHighlighter): Likewise.
1327 (replaceSelection): Likewise.
1329 2004-07-21 Michael Koch <konqueror@gmx.de>
1331 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1332 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1333 * javax/swing/plaf/basic/BasicToolBarUI.java
1334 (BasicToolBarUI): Implements SwingConstants.
1336 2004-07-21 Michael Koch <konqueror@gmx.de>
1338 * javax/swing/JPopupMenu.java: Removed CVS tags.
1339 * javax/swing/UIDefaults.java: Reformatted.
1340 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1341 Explicitely import used classes.
1343 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1345 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1346 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1347 (GtkComponentPeer): Remove temporary try/catch block.
1348 (setVisible): Call show and hide.
1349 (show): Make native.
1351 (getArgs): Don't add "visible" argument.
1352 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1353 (property_notify_predicate): Return Bool instead of int.
1354 (find_layout): New function.
1355 (connectJObject): Call find_layout.
1356 (connectSignals): Likewise.
1357 (moveLayout): Likewise.
1358 (gtkLayoutSetVisible): Likewise.
1360 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1362 * javax/swing/AbstractButton.java:
1363 (setDisplayedMnemonicIndex): Check if button
1364 text is not null before checking its length.
1365 * javax/swing/JMenuItem.java:
1366 (processMouseEvent): Disarm menu item if mouse has
1368 * javax/swing/plaf/basic/BasicMenuUI.java:
1369 (MouseInputHandler.mouseEntered): Do not raise
1370 popup menu if this menu is already selected.
1371 (MouseInputHandler.mousePressed): Do not fire
1373 (MenuHandler): Implemented.
1375 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1377 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1378 (getSelectedObjects): Implemented.
1379 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1380 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1381 Added javadoc for few methods.
1382 (processMouseEvent): Made public.
1383 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1384 (processMouseEvent): Likewise.
1386 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1388 * javax/swing/AbstractButton.java:
1389 (init): Set display mnemonic index to -1.
1390 (setMnemonic(char)): Use setMnemonic(int).
1391 (setMnemonic(int)): Set display mnemonic index.
1392 (getDisplayedMnemonicIndex): Change method signature
1393 by removing 'index' parameter.
1394 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1395 Added default for Menu.selectionBackground.
1396 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1397 (paintMenuItem): Change background color of the selected
1399 (paintText): Paint differently when menu item is disabled.
1400 Also paint mnemonic if it appears in the menu item's label.
1401 (paintAccelerator): Paint accelerator differently
1402 if menu item is disabled.
1403 * javax/swing/plaf/basic/BasicMenuUI.java:
1404 (installDefaults): Install defaults for
1405 selectionForeground and selectionBackground.
1406 (uninstallDefaults): Uninstall defauls for
1407 selectionForeground and selectionBackground.
1409 2004-07-21 Michael Koch <konqueror@gmx.de>
1411 * javax/swing/text/AbstractDocument.java
1412 (BranchElement): Implemented.
1413 (LeafElement): Implemented.
1414 * javax/swing/text/DefaultCaret.java:
1415 Import used classes.
1416 (serialVersionUID): New constant.
1417 * javax/swing/text/JTextComponent.java
1418 (AccessibleJTextComponent): Removed dead declaration.
1419 (caretPos): Removed.
1420 (setCaret): New method.
1421 * javax/swing/text/PlainDocument.java
1422 (rootElement): New field.
1423 (PlainDocument): Initialize rootElement.
1424 (createDefaultRoot): New method.
1425 (getDefaultRootElement): Implemented.
1426 * javax/swing/text/View.java: Reformatted.
1427 * javax/swing/text/ViewFactory.java
1428 (create): Added javadoc.
1430 2004-07-21 Michael Koch <konqueror@gmx.de>
1432 * javax/swing/ToolTipManager.java: Reformatted.
1434 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1436 * javax/swing/AbstractButton.java
1437 (changeEvent): New field.
1438 (fireItemStateChanged): Change source of the event
1439 to 'this' before firing it to button listeners.
1440 (fireActionPerformed): Likewise.
1441 (fireStateChanged): Likewise.
1442 (createActionListener): Do not set source
1443 of the event to AbstractButton.
1444 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1445 (ContainerHandler.componentAdded): Removed
1446 print out statement.
1447 (ContainerHandler.componentRemoved): Likewise.
1449 2004-07-21 Michael Koch <konqueror@gmx.de>
1451 * javax/swing/text/Highlighter.java: New file.
1452 * Makefile.am: Added javax/swing/text/Highlighter.java.
1453 * Makefile.in: Regenerated.
1455 2004-07-21 Michael Koch <konqueror@gmx.de>
1457 * javax/swing/ToolTipManager.java
1458 (stillInsideTimerAction): Fixed constructor arguments.
1459 (outsideTimerAction): Likewise.
1460 (insideTimerAction): Likewise.
1462 2004-07-21 Michael Koch <konqueror@gmx.de>
1464 * javax/swing/JButton.java: Reformatted.
1465 * javax/swing/JFormattedTextField.java
1466 (getUIClassID): Implemented.
1467 * javax/swing/JRootPane.java
1468 (serialVersionUID): New constant.
1469 * javax/swing/JTextField.java
1471 (JTextField): Simplified.
1472 (getUIClassID): New method.
1473 (getActionListeners): Added @since tag.
1474 (setColumns): Invalidate layout and repaint.
1475 (getHorizontalAlignment): New method.
1476 (setHorizontalAlignment): New method.
1477 (selectAll): Removed.
1478 * javax/swing/SwingUtilities.java
1479 (getAncestorOfClass): Removed redundant @see tag.
1480 (isLeftMouseButton): Fixed implementation.
1481 (isMiddleMouseButton): Likewise.
1482 (isRightMouseButton): Likewise.
1483 * javax/swing/text/AbstractDocument.java
1484 (AttributeContext.addAttribute): New method.
1485 (AttributeContext.addAttributes): New method.
1486 (AttributeContext.getEmptySet): New method.
1487 (AttributeContext.reclaim): New method.
1488 (AttributeContext.removeAttribute): New method.
1489 (AttributeContext.removeAttributes): New method.
1490 * javax/swing/text/Document.java
1491 (createPosition): Throws BadLocationException.
1492 (getText): Likewise.
1494 * javax/swing/text/JTextComponent.java
1495 (getText): Return null if no document is set. Catch
1496 BadLocationException.
1498 (updateUI): Simplified.
1500 2004-07-21 Michael Koch <konqueror@gmx.de>
1502 * javax/swing/JButton.java
1503 (removeNotify): Fixed javadoc.
1504 (updateUI): Simplified.
1506 2004-07-21 David Jee <djee@redhat.com>
1508 * gnu/java/awt/image/ImageDecoder.java
1509 (startProduction): Only add consumer if it's not added yet.
1510 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1511 (GdkPixbufDecoder): Don't call initState() here.
1512 (produce): Call initState() here, to ensure area_prepared and
1513 area_updated signals are properly connected.
1514 * gnu/java/awt/peer/gtk/GtkImage.java
1515 (setColorModel): Use equals() to compare ColorModel objects.
1516 (setPixels): Likewise.
1517 * java/awt/image/ColorModel.java
1518 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1519 * java/awt/image/RGBImageFilter.java
1520 (setColorModel): Set consumer's color model.
1521 (setPixels): Use equals() to compare ColorModel objects.
1523 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1525 * java/net/URLConnection.java (position): New field.
1526 (dateFormat1, dateFormat2, dateFormat3): Removed.
1527 (dateFormats): New field.
1528 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1529 each time instead of re-allocating.
1530 (initializeDateFormats): Initialize 'dateFormats'.
1532 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1535 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1538 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1540 * java/net/Socket.java (getImpl): Now private. Remove comment.
1542 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1544 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1545 of chained Writer when calling super-constructor.
1546 * java/io/FilterWriter.java (FilterWriter): Likewise.
1547 * java/io/PrintWriter.java (PrintWriter): Likewise.
1549 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1551 * prims.cc (process_gcj_properties): Don't increment i within LHS
1554 2004-07-19 Per Bothner <per@bothner.com>
1556 Print -verbose:message on "loading", not initialization.
1557 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1558 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1559 gcj::verbose_class_flag.
1560 * java/lang/natClass.cc (initializeClass): Don't print message here.
1561 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1562 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1563 (_Jv_PrepareCompiledClass): Likewise.
1565 2004-07-18 Matthias Klose <doko@debian.org>
1567 * configure.in: Substitute target_noncanonical.
1568 * configure: Regenerate
1570 2004-07-17 Michael Koch <konqueror@gmx.de>
1572 * java/lang/String.java: Fixed javadocs all over.
1574 2004-07-17 Mark Wielaard <mark@klomp.org>
1576 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1577 when size is smaller.
1578 * java/io/RandomAccessFile.java (setLength): Use truncate for
1579 shrinking the file and seek plus write for expanding the file.
1581 2004-07-17 Michael Koch <konqueror@gmx.de>
1583 * gnu/java/nio/channels/natFileChannelPosix.cc
1584 (implTruncate): Always save current position. Only reposition file
1585 pointer to where we started if not beyond new lenght. Reposition file
1586 pointer to file length if it points beyond the end of file.
1588 2004-07-17 Mark Wielaard <mark@klomp.org>
1590 * javax/swing/Box.java: Put FIXME comment above class declaration.
1591 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1592 * javax/swing/JCheckBox.java: Likewise.
1593 * javax/swing/JDialog.java: Likewise.
1594 * javax/swing/JRadioButton.java: Likewise.
1595 * javax/swing/JToggleButton.java: Likewise.
1596 * javax/swing/UIManager.java: Likewise.
1597 * javax/swing/border/TitledBorder.java: Likewise.
1598 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1599 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1600 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1601 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1602 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1603 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1604 * javax/swing/text/JTextComponent.java: Likewise.
1606 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1608 * java/net/DatagramPacket.java (setAddress): Removed check for
1611 2004-07-17 Michael Koch <konqueror@gmx.de>
1613 * java/net/DatagramSocket.java
1614 (getLocalAddress): Check if socket is bound or not.
1615 * java/net/Socket.java
1616 (getLocalAddrss): Check if socket is bound or not.
1617 (getPort): Return -1 when not connected. Dont check getImpl() for
1619 (setReuseAddress): Check if socket is closed.
1620 (isConnected): Check if getImpl() returns null.
1622 2004-07-17 Mark Wielaard <mark@klomp.org>
1624 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1625 on notifier object before calling notifyAll().
1627 2004-07-17 Michael Koch <konqueror@gmx.de>
1629 * gnu/java/nio/channels/FileChannelImpl.java
1630 (finalize): Added javadoc.
1632 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1634 * java/text/CollationElementIterator.java
1635 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1636 (setText): Use ArrayList instead of Vector.
1638 2004-07-17 Michael Koch <konqueror@gmx.de>
1640 * java/nio/ByteOrder.java
1641 (static): Removed. Not needed.
1642 Thanks to Patrick Reali for noticing.
1643 * java/nio/charset/CharsetDecoder.java
1644 (decode): Fix for classpath bug #9177: Reset state before flipping.
1646 2004-07-17 Michael Koch <konqueror@gmx.de>
1648 * java/security/Security.java: Fixed javadocs all over.
1650 2004-07-17 Michael Koch <konqueror@gmx.de>
1652 * gnu/java/awt/EmbeddedWindow.java
1654 (addNotify): Set peer via reflection.
1655 (setWindowPeer): Removed.
1656 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1657 * Makefile.am (nat_source_files):
1658 Removed gnu/java/awt/natEmbeddedWindow.cc.
1659 * Makefile.in: Regenerated.
1661 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1663 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1665 * configure: Regenerated.
1667 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1669 * configure.in: Use build_noncanonical rather than build_alias.
1670 * configure: Rebuild.
1672 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1673 by logic refactoring. Move default definition of NATIVE closer
1674 to first alternate definition.
1675 * configure: Regenerate.
1677 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1678 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1679 gcj/Makefile.in: Regenerate.
1680 * configure.in: Set ZIP and GCJH. Remove redundant condition
1681 in AM_CONDITIONAL(NATIVE,...)
1682 * configure: Regenerate.
1684 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1686 * configure.in: Use target_noncanonical rather than
1687 target_alias for forward-compatibility with autoconf 2.59.
1688 * configure: Regenerate.
1689 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1690 testsuite/Makefile.am: Substitute target_noncanonical.
1691 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1692 testsuite/Makefile.in: Regenerate.
1694 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1695 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1696 * acinclude.m4: Include acx.m4.
1697 * aclocal.m4: Regenerate.
1698 * configure: Regenerate.
1700 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1703 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1704 (decimalFormat): New static variable.
1706 (getTime): New. Override Date.getTime().
1707 (toString): Synchronize. Use decimalFormat to format nanos value
1708 correctly. Truncate extra zeros.
1709 (before): Compare getNanos() only if getTime() is equal.
1712 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1714 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1715 * configure.in: ...here.
1716 * aclocal.m4: Regenerate.
1717 * configure: Regenerate.
1719 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1720 * configure: Rebuilt with autoconf 2.13.
1721 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1722 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1724 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1727 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1729 * Makefile.in: Rebuilt.
1730 * testsuite/libjava.lang/LargeFile.java: New test case.
1731 * testsuite/libjava.lang/LargeFile.out: New file.
1733 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1735 * java/beans/EventHandler.java: Remove debugging statements.
1737 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1739 * java/beans/EventHandler.java: New file.
1740 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1741 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1742 testsuite/Makefile.in: Regenerate.
1744 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1746 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1747 flag to the gcj_setup.
1748 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1750 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1751 deprecation flag change. 58 XFAILS removed.
1753 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1755 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1756 -fno-use-divide-subroutine.
1757 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1758 (HANDLE_FPE): Define.
1759 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1760 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1761 (HANDLE_DIVIDE_OVERFLOW): Define.
1763 2004-07-14 Michael Koch <konqueror@gmx.de>
1764 Matthias Klose <doko@debian.org>
1766 * java/awt/im/InputContext.java: Initialize in, line.
1768 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1770 * interpret.cc (run): Correctly access libffi return values of
1771 integral smaller-than-int type; these are implicitly promoted.
1773 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1776 * interpret.cc (compile_mutex): New.
1777 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1778 (run): Lock compile_mutex before calling compile() if compilation is
1780 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1781 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1783 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1786 * include/jvm.h (_Jv_value): New union type.
1787 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1788 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1791 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1793 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1794 * gnu/awt/xlib/XOffScreenImage.java
1795 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1796 constructor argument. Add constructor using ImageProducer.
1797 (getSource): Implement.
1798 (imageComplete): New method.
1799 (setColorModel): New method.
1800 (setDimensions): New method.
1801 (setHints): New method.
1802 (setPixels): New method.
1803 (setProperties): New method.
1804 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1805 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1807 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1810 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1811 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1812 (finalizerReady): Now native.
1814 (runFinalizers): Removed.
1815 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1816 a primitive lock, and don't hold it while running the finalizers.
1817 (runFinalizers): Implement. Don't aquire any Java lock.
1818 (finalizerReady): Use lock primitives to signal finalizer thread.
1820 2004-07-11 Mark Wielaard <mark@klomp.org>
1822 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1823 * java/net/URLStreamHandler.java (parseURL): When url file part
1824 doesn't contain a '/' just ignore context.
1826 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1828 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1829 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1830 (MAKE_THROW_FRAME): Do not modify PSW address.
1831 (INIT_SEGV): Install SIGINFO-style signal handler.
1832 (INIT_FPE): Likewise.
1834 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1836 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1837 status. 21 xfail's removed, 1 added.
1839 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1841 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1843 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1845 * java/text/MessageFormat.java
1846 (formatInternal): Append "{n}" if argument n is unavailable.
1847 (format(Object, StringBuffer, FieldPosition)): This
1848 should be equivalent to format(Object[],
1849 StringBuffer, FieldPosition).
1851 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1853 * java.util.Calendar.java (cache): New private static field. Cached
1854 mappings of locales->calendar classes.
1855 (ctorArgTypes): New private static field. Singleton argument for
1856 calendar class constructor lookup.
1857 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1858 Optimize by bypassing reflection instantiation for the
1859 GregorianCalendar case.
1861 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1863 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1864 ResourceBundle.getBundle() calls.
1865 * java/util/GregorianCalendar.java: Likewise.
1866 * java/util/Currency.java: Likewise.
1867 * java/text/BreakIterator.java: Likewise.
1868 * java/text/Collator.java: Likewise.
1869 * java/text/DateFormat.java: Likewise.
1870 * java/text/DateFormatSymbols.java: Likewise.
1871 * java/text/DecimalFormatSymbols.java: Likewise.
1872 * java/text/NumberFormat.java: Likewise.
1873 * java/awt/Window.java: Likewise.
1875 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1877 * java/util/ResourceBundle.java (bundleCache): Renamed from
1878 resourceBundleCache. Update comments.
1879 (getObject): Don't catch MissingResourceException.
1880 (getBundle(String)): Remove 'final'. Use system classloader if
1881 getCallingClassLoader returned null.
1882 (getBundle(String, Locale)): Likewise.
1883 (BundleKey): New private class. HashMap key for bundle cache lookup.
1884 (lookupKey): New. Singleton instance of BundleKey.
1885 (nullEntry): New. Cache entry to represent failed lookups.
1886 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1887 caching strategy, no-allocation lookup, and new tryBundle methods.
1888 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1889 name using given classloader.
1890 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1891 baseName for given Locale and attempt to load bundle.
1893 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1895 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1896 illegal protected method calls.
1898 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1900 Fix or remove some bogus test cases.
1901 * testsuite/libjava.compile/pr10459_2.java: Removed.
1902 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1904 * testsuite/libjava.compile/inner_data.java: Test against its own
1907 2004-07-09 Michael Koch <konqueror@gmx.de>
1909 * scripts/unicode-muncher.pl: Updated to version 2.1
1910 from GNU classpath. Added some clarifications on where to find the
1911 needed files from www.unicode.org.
1912 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1913 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1914 Removed, these can directly be downloaded from www.unicode.org if
1916 * gnu/java/lang/CharData.java: Regenerated.
1917 * include/java-chartables.h: Regenerated.
1918 * Makefile.am (ordinary_java_source_files):
1919 Removed gnu/java/lang/CharData.java.
1920 * Makefile.in: Regenerated.
1922 2004-07-09 Michael Koch <konqueror@gmx.de>
1924 * java/security/AccessControlContext.java,
1925 java/security/SecureClassLoader.java:
1928 2004-07-09 Michael Koch <konqueror@gmx.de>
1930 * java/io/ObjectInputStream.java (readFields): Use long datatype
1931 when shifting byte values more then 24 bits left.
1933 2004-07-09 Michael Koch <konqueror@gmx.de>
1935 * java/util/zip/DeflaterOutputStream.java,
1936 java/util/zip/GZIPInputStream.java,
1937 java/util/zip/GZIPOutputStream.java,
1938 java/util/zip/InflaterInputStream.java:
1939 Reformatted. Added javadocs. Reordered all stuff.
1940 Renamed variables to be more clear.
1942 2004-07-09 Michael Koch <konqueror@gmx.de>
1944 * javax/imageio/IIOException.java,
1945 javax/imageio/event/IIOReadProgressListener.java,
1946 javax/imageio/event/IIOReadUpdateListener.java,
1947 javax/imageio/event/IIOReadWarningListener.java,
1948 javax/imageio/event/IIOWriteProgressListener.java,
1949 javax/imageio/event/IIOWriteWarningListener.java:
1951 * Makefile.am: Added new files.
1952 * Makefile.in: Regenerated.
1954 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1956 * java/text/RuleBasedCollator.java
1957 (mergeRules): Use ArrayList instead of Vector.
1958 (subParseString): likewise.
1959 (parseString): likewise.
1960 (buildCollationVector): likewise.
1961 (getCollationKey): likewise.
1963 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1965 * java/text/DateFormat.java (parse):
1966 Improved javadoc. Improved exception message.
1968 2004-07-09 Mark Wielaard <mark@klomp.org>
1970 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1971 interrupted() method to clear interupt flag of our Thread.
1973 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1975 * java/nio/Buffer.java,
1976 java/nio/ByteBuffer.java,
1977 java/nio/ByteBufferHelper.java,
1978 java/nio/ByteBufferImpl.java,
1979 java/nio/CharBuffer.java,
1980 java/nio/CharBufferImpl.java,
1981 java/nio/CharViewBufferImpl.java,
1982 java/nio/DirectByteBufferImpl.java,
1983 java/nio/DoubleBuffer.java,
1984 java/nio/DoubleBufferImpl.java,
1985 java/nio/DoubleViewBufferImpl.java,
1986 java/nio/FloatBuffer.java,
1987 java/nio/FloatBufferImpl.java,
1988 java/nio/FloatViewBufferImpl.java,
1989 java/nio/IntBuffer.java,
1990 java/nio/IntBufferImpl.java,
1991 java/nio/IntViewBufferImpl.java,
1992 java/nio/LongBuffer.java,
1993 java/nio/LongBufferImpl.java,
1994 java/nio/LongViewBufferImpl.java,
1995 java/nio/MappedByteBufferImpl.java,
1996 java/nio/ShortBuffer.java,
1997 java/nio/ShortBufferImpl.java,
1998 java/nio/ShortViewBufferImpl.java:
1999 Fixed javadocs all over. Improved input error
2002 * java/nio/Buffer.java
2003 (checkForUnderflow, checkForOverflow, checkIndex,
2004 checkIfReadOnly, checkArraySize): New helper methods
2007 * java/nio/ByteBufferHelper.java
2008 (checkRemainingForRead, checkRemainingForWrite,
2009 checkAvailableForRead, checkAvailableForWrite): Removed
2010 no longer needed methods.
2012 2004-07-09 Michael Koch <konqueror@gmx.de>
2014 * gnu/regexp/CharIndexedInputStream.java:
2015 Reordered imports to match classpath.
2017 2004-07-09 Michael Koch <konqueror@gmx.de>
2019 * gnu/java/awt/EmbeddedWindow.java:
2020 Load native library for setWindowPeer method.
2022 2004-07-08 Randolph Chung <tausq@debian.org>
2024 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
2025 * configure: Regenerate.
2026 * configure.host: Set can_unwind_signal for hppa*-linux.
2027 * include/pa-signal.h: New file.
2029 2004-07-07 Per Bothner <per@bothner.com>
2031 * Makefile.am: Add rules to build libgij from just gij.cc.
2033 * include/jvm.h (namespace jcj): Declare verbose_class_flag
2034 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
2035 (initializeClass): If verbose_class_flag, print message.
2036 * gij.cc (main): Handle -verbose:class flag.
2038 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
2040 * configure.host: Enable hash synchronization on Darwin.
2041 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
2042 ';', since this is a comment on Darwin.
2043 (compare_and_swap_release): Likewise.
2045 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
2047 * java/net/URLStreamHandler.java (parseURL): Canonicalize
2048 file portion of URL in addition to spec for file: protocol.
2050 2004-07-05 Anthony Green <green@redhat.com>
2052 * java/io/File.java (toURI): Merge from Classpath.
2054 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2056 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
2057 before passing to URL constructor. Rethrow any MalformedURLException
2058 as a RuntimeException. Catch MalformedURLException specifically, not
2061 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2063 * java/util/Locale.java (readObject): Intern strings read from object
2066 2004-07-04 Michael Koch <konqueror@gmx.de>
2068 * gnu/gcj/runtime/FirstThread.java,
2069 gnu/gcj/runtime/natFirstThread.cc: Removed.
2070 * gnu/java/lang/MainThread.java,
2071 gnu/java/lang/natMainThread.cc: New files.
2072 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
2073 * Makefile.am: Added new files and removed deleted ones.
2074 * Makefile.in: Regenerated.
2076 2004-07-03 Mark Wielaard <mark@klomp.org>
2077 Anthony Green <green@redhat.com>
2079 * java/net/URL.java (getFile): Clarify return value doc.
2080 (getPath): Return null if file is empty - not empty String.
2081 (set): Convert protocol to lower case before doing anything.
2082 Only change the protocol handler if it's different.
2084 2004-07-03 Anthony Green <green@redhat.com>
2086 * java/net/URL.java (URL): Convert protocol to lower case before
2087 doing anything, so we getURLStreamHandler() with the proper value.
2089 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
2091 * java/util/Locale.java (hashcode): Made transient.
2092 (hashCode): No longer synchronized.
2093 (equals): Remove comment.
2094 (writeObject): No longer synchronized. Implement using writeObject
2095 calls instead of tweaking hashCode field. Update doc.
2096 (readObject): Implement using readObject calls.
2098 2004-06-26 Geoffrey Keating <geoffk@apple.com>
2099 Andreas Tobler <a.tobler@schweiz.ch>
2101 * configure.host (powerpc-*-darwin*): New case, define
2103 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
2104 * configure: Regenerate.
2105 * include/darwin-signal.h: New.
2107 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
2109 * java/beans/Statement.java (doExecute): Fix formatting.
2111 2004-06-29 Per Bothner <per@bothner.com>
2113 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2114 etc etc): Remove needless parenthesis, which causes __stdcall__
2115 attribute on MinGW to get ignored.
2117 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
2119 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2121 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
2123 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
2125 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
2127 * java/beans/Expression.java: New file.
2128 * java/beans/Statement.java: New file.
2129 * Makefile.am: Added new files.
2130 * Makefile.in: Re-generate.
2132 2004-06-27 Mark Wielaard <mark@klomp.org>
2134 * java/io/FilePermission.java (usingPerms): Removed.
2135 (actionsString): Made final.
2136 (cachePerms): Renamed to checkPerms.
2137 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2139 (FilePermission): Check arguments, call checkPerms().
2140 (equals): Remove cachePerms() call.
2141 (implies): Likewise.
2143 2004-06-27 Mark Wielaard <mark@klomp.org>
2145 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2147 (sendRequest): Use new field in user-agent http agent.
2149 2004-06-27 Mark Wielaard <mark@klomp.org>
2151 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2152 when argument is null.
2154 2004-06-26 Mark Wielaard <mark@klomp.org>
2156 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2157 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2159 (cancel_clicked): Likewise.
2161 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2163 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2164 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2165 can not calculate the right value.
2166 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2168 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2170 * testsuite/libjava.jacks/jacks.xfail: Remove
2171 15.9.1-qualified-concrete-20.
2173 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2175 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2176 encoding name to iconv.
2177 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2179 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2182 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2183 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2184 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2186 2004-06-21 Andrew Haley <aph@redhat.com>
2188 * java/io/ObjectOutputStream.java: Add DEBUG statements
2190 (dumpElementln): New method.
2192 * java/io/ObjectInputStream.java
2193 (currentClassLoader): Make native.
2194 (callersClassLoader): New field.
2196 (readObject): ENDBLOCKDATA is generated if the class has a write
2197 method, not if it has a read method.
2198 (readObject): Save and restore this.currentObject and
2199 this.currentObjectStreamClass around calls to callReadMethod().
2200 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2203 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2205 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2208 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2210 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2211 if desired, before the default class loader is initialised.
2212 Call INIT_SEGV only if HANDLE_SEGV is defined.
2214 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2216 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2217 directory only if it actually exists.
2219 2004-06-18 Graydon Hoare <graydon@redhat.com>
2221 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2222 Fix up non-ansi comments.
2224 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2226 * javax/swing/text/AbstractDocument.java: Adding missing import
2227 for javax.swing.event.EventListenerList.
2228 * javax/swing/text/DefaultCaret.java: Likewise.
2230 2004-06-17 Michael Koch <konqueror@gmx.de>
2232 * javax/swing/JToolBar.java
2234 (JToolBar): Use Component.setName(String) instead of doing it all
2236 * javax/swing/Timer.java
2237 (queueEvent): Added missing modifier.
2239 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2241 * Makefile.am: Added new file.
2242 * Makefile.in: Re-generate.
2243 * javax/swing/JMenu.java:
2244 (insertSeparator): Implemented.
2245 * javax/swing/JPopupMenu.java:
2246 (JPopupMenu.Separator): Implemented.
2247 * javax/swing/MenuSelectionManager.java:
2248 (processMouseEvent): Use java.awt.Component
2249 for event source instead of javax.swing.JComponent.
2250 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2251 New File. Implemented.
2253 2004-06-16 David Jee <djee@redhat.com>
2255 * java/awt/GridBagLayout.java
2256 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2257 Make sure pos_x and pos_y are never negative.
2259 2004-04-16 Andrew Overholt <overholt@redhat.com>
2261 * Makefile.am: Add new file.
2262 * Makefile.in: Re-generate.
2263 * javax/swing/JToolBar.java
2264 Partially implemented.
2265 * javax/swing/plaf/basic/BasicToolBarUI.java
2266 New file. Partially implemented.
2268 2004-06-16 Graydon Hoare <graydon@redhat.com>
2270 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2271 (setComposite): Accept AlphaComposite arguments.
2272 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2273 (createBufferedImage): Add new overloads.
2274 * gnu/java/awt/peer/gtk/GtkToolkit.java
2275 (createImage): Use GdkPixbufDecoder.createBufferedImage
2276 when useGraphics2D() is true.
2277 (getImage): Delegate to createImage.
2278 * javax/swing/JList.java
2280 (getFirstVisibleIndex):
2281 (getLastVisibleIndex):
2283 (ensureIndexIsVisible): New methods.
2284 * javax/swing/Timer.java: Reimplement.
2286 2004-06-16 Michael Koch <konqueror@gmx.de>
2288 * javax/swing/text/AbstractDocument.java
2289 (AbstracElement): Made public, implements java.io.Serializable.
2290 (AttributeContext): Made public.
2291 (BranchElement): Likewise.
2292 (Content): Likewise.
2293 (DefaultDocumentEvent): Made public, extends
2294 javax.swing.undo.CompoundEdit.
2295 (ElementEdit): Made public, extends
2296 javax.swing.undo.AbstractUndoableEdit.
2297 (LeafElement): Made public.
2298 (LeafElement.LeafElement): Made public.
2300 2004-06-16 Michael Koch <konqueror@gmx.de>
2302 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2303 methods (that were obviously never be intended to get included hi this
2304 class. Added some methods too.
2306 2004-06-16 Michael Koch <konqueror@gmx.de>
2308 * javax/swing/text/PlainDocument.java
2309 (serialVersionUID): New constant.
2310 (lineLimitAttribute): Likewise.
2311 (tabSizeAttribute): Likewise.
2312 (tabSize): New field.
2313 (PlainDocument): Made public.
2314 (PlainDocument): New constructor.
2316 2004-06-16 Michael Koch <konqueror@gmx.de>
2318 * javax/swing/text/AbstractDocument.java
2319 (insertString): Throws BadLocationException.
2320 * javax/swing/text/Document.java
2321 (insertString): Likewise.
2322 * javax/swing/text/JTextComponent.java:
2323 Javadocs and comments cleaned up.
2325 2004-06-16 Michael Koch <konqueror@gmx.de>
2327 * javax/swing/event/UndoableEditListener.java: Reformatted.
2328 * javax/swing/text/AbstractDocument.java
2329 (AbstractDocument): Implements java.io.Serializable.
2330 (doc_list): Removed.
2331 (undo_list): Removed.
2332 (AbstractElement.serialVerionUID): New field.
2333 (BranchElement.serialVerionUID): Likewise.
2334 (DefaultDocumentEvent.serialVerionUID): Likewise.
2335 (ElementEdit.serialVerionUID): Likewise.
2336 (LeafElement.serialVerionUID): Likewise.
2337 (serialVerionUID): Likewise.
2338 (BAD_LOCATION): New constant.
2339 (BidiElementName): Likewise.
2340 (ContentElementName): Likewise.
2341 (ParagraphElementName): Likewise.
2342 (SectionElementName): Likewise.
2343 (ElementNameAttribute): Likewise.
2344 (AbstractDocument): Made protected.
2345 (AbstractDocument): New construtor.
2346 (listenerList): New field.
2347 (fireChangedUpdate): Implemented.
2348 (fireInsertUpdate): Likewise.
2349 (fireRemoveUpdate): Likewise.
2350 (fireUndoableEditUpdate): Likewise.
2351 (getListeners): Likewise.
2352 (addDocumentListener): Likewise.
2353 (removeDocumentListener): Likewise.
2354 (addUndoableEditListener): Likewise.
2355 (removeUndoableEditListener): Likewise.
2356 (getDocumentListeners): New method.
2357 (getUndoableEditListeners): Likewise.
2358 (getAsynchronousLoadPriority): Made public.
2359 (getBidiRootElement): Likewise.
2360 (setAsynchronousLoadPriority): Likewise.
2361 (setDocumentProperties): Likewise.
2362 * javax/swing/text/BadLocationException.java
2363 (serialVerionUID): New field.
2364 * javax/swing/text/DefaultCaret.java
2365 (changeEvent): New field.
2366 (listenerList): Likewise.
2368 (addChangeListener): Reimplemented.
2369 (removeChangeListener): Likewise.
2370 (getListeners): New method.
2371 (getChangeListeners): Likwise.
2372 (getComponent): Likewise.
2373 * javax/swing/text/GapContent.java
2374 (GapContent): Implements java.io.Serializable.
2375 (serialVerionUID): New field.
2377 2004-06-16 Michael Koch <konqueror@gmx.de>
2379 * javax/swing/JTree.java
2380 (treeModel): New field.
2381 (JTree): New constructors, one existing one made public.
2382 (createTreeModel): New method.
2383 (addTreeExpansionListener): Likewise.
2384 (removeTreeExpansionListener): Likewise.
2385 (getTreeExpansionListeners): Likewise.
2386 (fireTreeCollapsed): Likewise.
2387 (fireTreeExpanded): Likewise.
2388 (addTreeSelectionListener): Likewise.
2389 (removeTreeSelectionListener): Likewise.
2390 (getTreeSelectionListeners): Likewise.
2391 (fireValueChanged): Likewise.
2392 (addTreeWillExpandListener): Likewise.
2393 (removeTreeWillExpandListener): Likewise.
2394 (getTreeWillExpandListeners): Likewise.
2395 (fireTreeWillCollapse): Likewise.
2396 (fireTreeWillExpand): Likewise.
2398 2004-06-16 Michael Koch <konqueror@gmx.de>
2400 * javax/swing/JTree.java: Reformatted.
2402 2004-06-16 Michael Koch <konqueror@gmx.de>
2404 * javax/swing/JTextArea.java: New file.
2405 * javax/swing/JTextField.java
2407 (notifyAction): New constant.
2408 (columns): New field.
2409 (JTextField): New constructors.
2410 (createDefaultModel): New method.
2411 (addActionListener): Reimplmemented.
2412 (removeActionListener): Reimplemented.
2413 (getActionListeners): New method.
2414 (fireActionPerformed): New method.
2415 (getColumns): New method.
2416 (setColumne): New method.
2417 * javax/swing/text/JTextComponent.java
2418 (AccessibleJTextComponent.serialVersionUID): New field.
2419 (serialVersionUID): Likewise.
2420 (DEFAULT_KEYMAP): Likewise.
2421 (FOCUS_ACCELERATOR_KEY): Likewise.
2422 (doc): Made private.
2423 (icon_gap): Likewise.
2426 (JTextComponent): Some constructors removed.
2427 (getScrollableTracksViewportHeight): New method.
2428 (getScrollableTracksViewportWidth): Likewise.
2429 * Makefile.am: Added javax/swing/JTextArea.java.
2430 * Makefile.in: Regenerated.
2432 2004-06-15 Graydon Hoare <graydon@redhat.com>
2434 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2435 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2436 * javax/swing/JViewport.java
2437 (getExtentSize): Return size rather than preferred size.
2438 (toViewCoordinates): New methods.
2439 (getViewSize): Return size rather than preferred size.
2440 (setViewSize): Note view size as set.
2441 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2442 * javax/swing/plaf/basic/BasicScrollBarUI.java
2443 (getPreferredSize): Don't redo layout.
2444 * javax/swing/plaf/basic/BasicViewportUI.java
2445 (paint): Translate image properly and eat exceptions.
2447 2004-06-15 Kim Ho <kho@redhat.com>
2449 * javax/swing/JTabbedPane.java
2450 (setComponent): Remove old component and
2452 (setSelectedIndex): Don't operate on the
2453 components if they're null. Don't set index
2454 on the model if the index is the same.
2455 (insertTab): Don't add or hide the component
2456 if it's null. Repaint the container.
2457 * javax/swing/plaf/basic/BasicLookAndFeel.java
2458 Change colors for TabbedPane.
2459 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2460 (mousePressed): Re-layout and paint the component.
2461 (layoutContainer): Don't set location on the view.
2462 (ScrollingViewport::paint): Remove.
2464 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2466 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2467 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2469 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2470 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2471 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2473 (drawLine): Call gdk_flush before leaving GDK critical region.
2474 (fillRect): Likewise.
2475 (drawRect): Likewise.
2476 (copyArea): Likewise.
2477 (copyPixmap): Likewise.
2478 (clearRect): Likewise.
2479 (drawArc): Likewise.
2480 (drawPolyline): Likewise.
2481 (drawPolygon): Likewise.
2482 (fillPolygon): Likewise.
2483 (fillArc): Likewise.
2484 (drawOval): Likewise.
2485 (fillOval): Likewise.
2487 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2489 (GdkFontMetrics): Add style argument to initState call.
2490 (stringWidth(String,int,int,String)): Add style parameter.
2491 (stringWidth(String)): Add style argument to stringWidth call.
2492 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2493 (initState): Set pango font style and weight based on AWT style
2494 parameter. Pass default GTK language to
2495 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2496 simply dividing by PANGO_SCALE.
2497 (stringWidth): Set pango font style and weight based on AWT style
2500 * java/awt/Button.java (next_button_number): New field.
2501 (paramString): Change output.
2502 (generateName): New method.
2503 (getUniqueLong): New method.
2505 2004-06-14 Kim Ho <kho@redhat.com>
2507 * javax/swing/JTabbedPane.java:
2508 (setComponentAt): Set the component, not
2510 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2511 (actionPerformed): Let deiconize catch exception.
2513 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2515 * javax/swing/JPopupMenu.java:
2516 (setVisible): Corrected location of a
2517 heavyweight popup menu.
2519 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2521 * javax/swing/MenuSelectionManager.java:
2522 Ran through jalopy to fix formatting style.
2524 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2526 * javax/swing/JLayeredPane.java:
2527 (remove): Revalidate and repaint layered pane after
2528 the component was removed.
2529 javax/swing/JMenu.java:
2530 (setVisible): Display popup menu at the user location,
2531 if one was set by the user.
2532 (setMenuLocation): Reimplemented. Fixed javadoc.
2533 * javax/swing/JMenuBar.java: Added javadoc.
2534 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2535 (MODEL_CHANGED_PROPERTY): New Property.
2536 (isSelected): Implemented.
2537 (setBorderPainted): Fire PropertyChangeEvent
2538 if paintBorder property changes.
2539 (setSelected): Implemented.
2540 (setSelectionModel): Implemented.
2541 * javax/swing/JPopupMenu.java: Added Javadoc
2542 (pack): Implemented.
2543 (setVisible): Reimplemented.
2544 (show): Fixed location.
2545 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2546 Container instead of JPanel.
2547 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2548 (clearSelectedPath): Reimplemented to clear selectedPath
2550 (processMouseEvent): Reimplemented.
2551 (setSelectedPath): Fire stateChange event indicating that
2552 selected menu path has changed.
2553 (getPath): Change to use ArrayList instead of Vector.
2554 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2555 (installUI): call installKeyboardActions().
2556 (uninstallUI): call uninstallKeyboardActions().
2558 2004-06-13 Michael Koch <konqueror@gmx.de>
2560 * javax/swing/text/DefaultCaret.java,
2561 javax/swing/text/BadLocationException.java:
2564 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2566 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2567 DEFAULT_COLS): New variables.
2568 (create): Don't allow 0 rows or 0 columns. Instead, set the
2569 values to DEFAULT_ROWS or DEFAULT_COLS.
2570 (getMinimumSize): Likewise.
2571 (getPreferredSize): Likewise.
2572 (minimumSize): Likewise.
2573 (preferredSize): Likewise.
2574 (create): Set peer's editable state.
2575 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2576 zero. Update javadocs.
2577 (TextArea(String)): Likewise.
2578 (TextArea(int,int)): Fix javadocs.
2579 (TextArea(String,int,int,int)): Only throw exception if one of
2580 rows or columns is zero. Fix javadocs.
2582 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2584 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2585 addition to Components.
2587 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2588 wasn't consumed by normal processing, send it to the parent
2591 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2592 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2595 2004-06-11 David Jee <djee@redhat.com>
2597 * java/awt/MediaTracker.java
2598 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2599 (addImage(Image,int,int,int)): Likewise.
2601 2004-06-11 Michael Koch <konqueror@gmx.de>
2603 * javax/swing/text/AbstractDocument.java,
2604 javax/swing/text/Document.java,
2605 javax/swing/text/GapContent.java,
2606 javax/swing/text/JTextComponent.java,
2607 javax/swing/text/PlainDocument.java:
2610 2004-06-11 Michael Koch <konqueror@gmx.de>
2612 * javax/swing/JRootPane.java
2613 (AccessibleJRootPane.serialVersionUID): New field.
2614 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2615 (AccessibleJRootPane.getAccessibleRole): New method.
2616 (RootLayout): Implements Serializable.
2617 (RootLayout.serialVersionUID): New field.
2618 (RootLayout.RootLayout): New constructor.
2619 (setJMenuBar): Made public.
2620 (getJMenuBar): Likewise.
2621 (JRootPane): Likewise.
2622 (createContentPane): Likewise.
2623 (createGlassPane): Likewise.
2624 (createLayeredPane): Likewise.
2626 2004-06-11 Michael Koch <konqueror@gmx.de>
2628 * javax/swing/SwingUtilities.java
2629 (isLeftMouseButton): Fixed javadoc.
2630 (isMiddleMouseButton): Likewise.
2631 (isRightMouseButton): Likewise.
2633 2004-06-11 Michael Koch <konqueror@gmx.de>
2635 * javax/swing/JScrollPane.java
2636 (serialVersionUID): New field.
2637 (columnHeader): Made protected.
2638 (rowHeader): Likewise.
2639 (lowerLeft): Likewise.
2640 (lowerRight): Likewise.
2641 (upperLeft): Likewise.
2642 (upperRight): Likewise.
2643 (horizontalScrollBar): Likewise.
2644 (horizontalScrollBarPolicy): Likewise.
2645 (verticalScrollBar): Likewise.
2646 (verticalScrollBarPolicy): Likewise.
2647 (viewport): Likewise.
2649 2004-06-11 Michael Koch <konqueror@gmx.de>
2651 * javax/swing/LookAndFeel.java: Fixed javadocs.
2653 2004-06-11 Michael Koch <konqueror@gmx.de>
2655 * javax/swing/JEditorPane.java: Fixed javadocs.
2656 (JEditorPane): Removed redundant call to to this().
2657 (fireHyperlinkUpdate): Implemented.
2659 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2661 * javax/swing/JMenu.java: Fixed file name
2662 in the file comment.
2664 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2666 * javax/swing/JMenu.java: Added javadoc.
2667 (JMenu): Added MenuChangeListener to listen to
2668 ChangeEvents occuring in menu's model.
2669 (insert): Throw IllegalArgumentException if
2670 index is less than 0
2671 (setSelected): Reimplement.
2672 (setPopupMenuVisible): Call menu's model isEnabled()
2673 (setDelay): Throw IllegalArgumentException if
2674 given amount of delay is less than 0.
2675 (createActionComponent): Implemented.
2676 (createActionChangeListener): Implemented.
2677 (addSeparator): Implemented.
2678 (getItem): Throw IllegalArgumentException if index is
2680 (getItemCount): Implemented.
2681 (fireMenuSelected): Changed to use menuEvent.
2682 (fireMenuDeselected): Likewise.
2683 (fireMenuCanceled): Likewise.
2684 (setAccelerator): Changed to throw an error if this
2686 (doClick): Implemented.
2687 (JMenu.ActionChangedListener): New inner class to handle
2688 PropertyChangeEvents occuring in the actions associated with menu.
2689 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2690 (BasicMenuUI): Added PropertyChangeListener to the menu.
2691 (createChangeListener): Implemented.
2692 (createMenuDragMouseListener): Likewise.
2693 (createMenuKeyListener): Likewise.
2694 (createPropertyChangeListener): Likewise.
2695 (uninstallListeners): Likewise.
2696 (BasicMenuUI.MouseInputHandler): Reimplemented.
2697 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2698 (BasicMenuUI.ChangeHandler): Likewise.
2699 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2700 (BasicMenuUI.MenuKeyHandler): Likewise.
2702 2004-06-10 David Jee <djee@redhat.com>
2704 * java/awt/MediaTracker.java
2705 (imageUpdate): Only do notifyAll() if the image is complete.
2707 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2709 * javax/swing/JApplet.java:
2710 (getJMenuBar): Made public.
2711 (setJMenuBar): Likewise.
2712 * javax/swing/JFrame.java:
2713 (getJMenuBar): Made public.
2714 (setJMenuBar): Likewise.
2715 * javax/swing/JWindow.java:
2716 (getJMenuBar): Removed.
2717 (setJMenuBar): Removed.
2719 2004-06-10 Michael Koch <konqueror@gmx.de>
2721 * javax/swing/JEditorPane.java
2722 (createEditorKitForContentType): Fixed visibility.
2723 (fireHyperlinkUpdate): Likewise.
2724 (getContentType): Likewise.
2725 (getEditorKit): Likewise.
2726 (getEditorKitForContentType): Likewise.
2727 (getPage): Likewise.
2729 (registerEditorKitForContentTyoe): Likewise.
2730 (replaceSelection): Likewise.
2731 (setContentType): Likewise.
2732 (setEditorKit): Likewise.
2733 (setPage): Likewise.
2735 2004-06-10 Michael Koch <konqueror@gmx.de>
2737 * javax/swing/Timer.java
2738 (Timer): New constructor.
2739 * javax/swing/plaf/basic/BasicProgressBarUI.java
2740 (animationTimer): Don't initialize at construction.
2741 (startAnimationTimer): Added since tag.
2742 (stopAnimationTimer): Likewise.
2743 (installUI): Use new Timer constructor.
2744 * javax/swing/plaf/basic/BasicScrollBarUI.java
2745 (installUI): Likewise.
2746 * javax/swing/plaf/basic/BasicSliderUI.java
2747 (installUI): Likewise.
2749 2004-06-10 Michael Koch <konqueror@gmx.de>
2751 * javax/swing/ButtonGroup.java
2752 (serialVersionUID): Made private.
2753 (buttons): Renamed from v, added javadoc.
2754 (sel): Added javadoc.
2755 (ButtonGroup): Likewise.
2758 (getElements): Likewise.
2759 (getSelection): Likewise.
2760 (setSelected): Likewise.
2761 (isSelected): Likewise.
2762 (getButtonCount): Likewise.
2764 2004-06-10 Michael Koch <konqueror@gmx.de>
2766 * javax/swing/ButtonGroup.java,
2767 javax/swing/ImageIcon.java,
2768 javax/swing/JEditorPane.java,
2769 javax/swing/JRootPane.java,
2770 javax/swing/JTextField.java,
2771 javax/swing/LookAndFeel.java,
2772 javax/swing/plaf/basic/BasicTextUI.java:
2775 2004-06-10 Michael Koch <konqueror@gmx.de>
2777 * javax/swing/text/Style.java: Added javadocs.
2779 2004-06-10 Michael Koch <konqueror@gmx.de>
2781 * javax/swing/JComponent.java
2782 (fireVetoableChange): Removed redundant cast.
2783 * javax/swing/JLabel.java
2784 (getDisabledIcon): Save icon for next call.
2786 2004-06-10 Michael Koch <konqueror@gmx.de>
2788 * javax/swing/KeyStroke.java
2789 (getKeyStroke(char,boolean)): Marked deprecated.
2791 2004-06-10 Michael Koch <konqueror@gmx.de>
2793 * javax/swing/DefaultCellEditor.java,
2794 javax/swing/GrayFilter.java,
2795 javax/swing/event/DocumentEvent.java,
2796 javax/swing/text/JTextComponent.java,
2797 javax/swing/text/MutableAttributeSet.java:
2800 2004-06-10 Michael Koch <konqueror@gmx.de>
2802 * javax/swing/plaf/BorderUIResource.java:
2803 Added serialVersionUID all over.
2805 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2807 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2809 2004-06-10 Michael Koch <konqueror@gmx.de>
2811 * javax/swing/table/DefaultTableCellRenderer.java
2812 (noFocusBorder): Initialize directly.
2814 2004-06-10 Michael Koch <konqueror@gmx.de>
2816 * javax/swing/plaf/basic/BasicArrowButton.java
2817 (setDirection): Use method argument.
2819 2004-06-10 Michael Koch <konqueror@gmx.de>
2821 * javax/swing/plaf/BorderUIResource.java,
2822 javax/swing/plaf/ComponentUI.java,
2823 javax/swing/undo/CompoundEdit.java,
2824 javax/swing/undo/StateEdit.java:
2825 Fixed javadocs all over.
2827 2004-06-10 Michael Koch <konqueror@gmx.de>
2829 * javax/swing/DefaultButtonModel.java
2830 (ARMED): Made public final, fixed value.
2831 (ENABLED): Likewise.
2832 (PRESSED): Likewise.
2833 (ROLLOVER): Likewise.
2834 (SELECTED): Likewise.
2835 (stateMask): Initialize directly.
2836 (listenerList): Likewise.
2837 (mnemonic): Likewise.
2838 (fireStateChanged): Removed argument, use changeEvent as event.
2839 All places where this method is called are fixed too.
2840 (getActionCommant): Fixed javadoc.
2841 (setGroup): Fixed javadoc.
2842 (getGroup): New method.
2844 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2846 * javax/swing/AbstractButton.java
2847 (AbstractButton): Use init() to initialize the button.
2848 (init): New Method. Initializes AbstractButton.
2849 * javax/swing/JMenuItem.java: Documented.
2850 (JMenuItem): Reimplemented.
2851 (init): Implemented.
2852 (setEnabled): Changed to call super.setEnabled()
2853 (processMouseEvent): Reimplemented.
2854 (fireMenuKeyPressed): Implemented.
2855 (fireMenuKeyReleased): Implemented.
2856 (fireMenuKeyTyped): Implemented.
2857 (menuSelectionChanged): disarm the model if the menu item was
2859 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2860 (getPath): Change to use ArrayList instead of Vector.
2861 (getPreferredSize): Renamed variable.
2862 (paintMenuItem): Paint margin area of menu item.
2863 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2864 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2865 menu item's bounds before clearing the selection.
2867 2004-06-09 David Jee <djee@redhat.com>
2869 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2870 (GtkTextComponentPeer): Set caret position to 0.
2871 * java/awt/TextComponent.java
2872 (setText): Set caret position to 0.
2873 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2874 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2875 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2876 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2878 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2879 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2882 2004-06-09 Kim Ho <kho@redhat.com>
2884 * Makefile.am: New files
2885 * Makefile.in: Regenerated
2886 * java/awt/Container.java
2887 (getComponentAt): Removed.
2888 * javax/swing/AbstractAction.java
2889 (ENABLED_PROPERTY): New property.
2890 (putValue): Fire PropertyChangeEvents.
2891 (setEnabled): ditto.
2892 (firePropertyChange): Javadoc and implement
2894 * javax/swing/AbstractButton.java
2895 (setAction): Don't create PropertyChangeListener
2896 if new Action is null.
2897 (setIcon): Don't set icon till after comparing
2899 (configurePropertiesFromAction): Check mnemonic
2900 key before calling intValue().
2901 (createActionPropertyChangeListener): Check
2902 properties rather than bulk change.
2903 * javax/swing/DefaultDesktopManager.java:
2905 * javax/swing/DesktopManager.java:
2907 * javax/swing/JComponent.java
2908 (fireVetoableChange): Implement.
2909 (paintImmediately): Use root component.
2910 * javax/swing/JDesktopPane.java: Implement
2911 * javax/swing/JInternalFrame.java: Implement
2912 * javax/swing/JLabel.java
2913 (getDisabledIcon): Return grayscaled icon if
2914 no disabled icon specified.
2915 * javax/swing/JMenuBar.java
2916 (getComponentAtIndex): Use getComponent
2917 * javax/swing/JOptionPane.java
2918 (getDesktopPaneForComponent): Use SwingUtilities'
2920 (getFrameForComponent): ditto.
2921 * javax/swing/JSplitPane.java
2922 (remove): Use getComponent.
2923 * javax/swing/SwingUtilities.java
2924 (convertPoint): Implement.
2925 * javax/swing/plaf/basic/BasicButtonUI.java
2926 (paintButtonNormal): Check opaqueness before
2928 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2930 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2932 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2934 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2936 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2937 Change InternalFrame and Desktop colors.
2939 2004-06-09 David Jee <djee@redhat.com>
2941 * java/awt/Container.java
2942 (remove): Do not set component to invisible.
2944 2004-06-09 Michael Koch <konqueror@gmx.de>
2946 * javax/swing/tree/DefaultMutableTreeNode.java
2947 (getLeafCount): Renamed enum to e.
2949 2004-06-09 Michael Koch <konqueror@gmx.de>
2951 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2952 (positionForMouseEvent): Removed redundant semicolon.
2953 (continueDrag): Use method arguments.
2955 2004-06-09 Michael Koch <konqueror@gmx.de>
2957 * javax/swing/border/TitledBorder.java,
2958 javax/swing/filechooser/FileSystemView.java,
2959 javax/swing/plaf/basic/BasicButtonListener.java,
2960 javax/swing/plaf/basic/BasicGraphicsUtils.java,
2961 javax/swing/plaf/basic/BasicLabelUI.java,
2962 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2963 javax/swing/plaf/basic/BasicScrollBarUI.java,
2964 javax/swing/plaf/basic/BasicScrollPaneUI.java,
2965 javax/swing/plaf/basic/BasicSliderUI.java,
2966 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2967 javax/swing/plaf/basic/BasicToggleButtonUI.java,
2968 javax/swing/table/JTableHeader.java,
2969 javax/swing/text/AbstractDocument.java,
2970 javax/swing/text/DefaultCaret.java,
2971 javax/swing/text/StyledEditorKit.java,
2972 javax/swing/tree/DefaultTreeCellEditor.java:
2973 Reworked import statements.
2975 2004-06-08 Graydon Hoare <graydon@redhat.com>
2977 * javax/swing/Box.java: Temporarily comment out code
2978 broken due to visibility bug.
2980 2004-06-09 Michael Koch <konqueror@gmx.de>
2982 * javax/swing/ImageIcon.java
2983 (ImageIcon): Added missing constructor.
2985 2004-06-08 Michael Koch <konqueror@gmx.de>
2987 * javax/swing/JToggleButton.java
2988 (JToggleButton): New constructor.
2989 (getAccessibleContext): Moved documentation into javadoc.
2990 (getUIClassID): Likewise.
2992 2004-06-08 Michael Koch <konqueror@gmx.de>
2994 * javax/swing/AbstractButton.java
2995 (getDisabledIcon): Create disabled icon if none exists yet.
2997 2004-06-08 Michael Koch <konqueror@gmx.de>
2999 * javax/swing/plaf/basic/BasicLookAndFeel.java
3000 (initClassDefaults): Added FormattedTextFieldUI.
3001 (loadResourceBundle): Renamed enum to e.
3003 2004-06-08 Michael Koch <konqueror@gmx.de>
3005 * javax/swing/plaf/basic/BasicButtonUI.java
3006 (paintIcon): Simplified.
3007 (paintText): Paint disabled button correctly.
3009 2004-06-08 Michael Koch <konqueror@gmx.de>
3011 * javax/swing/JComponent.java
3012 (createToolTip): Use official JToolTip API.
3014 2004-06-08 Michael Koch <konqueror@gmx.de>
3016 * javax/swing/JToolTip.java
3017 (JToolTip): No arguments in API.
3018 (setTipText): New method.
3020 2004-06-08 Michael Koch <konqueror@gmx.de>
3022 * javax/swing/SwingUtilities.java
3023 (isLeftMouseButton): New method.
3024 (isMiddleMouseButton): New method.
3025 (isRightMouseButton): New method.
3027 2004-06-08 Michael Koch <konqueror@gmx.de>
3029 * javax/swing/AbstractButton.java,
3030 javax/swing/CellRendererPane.java,
3031 javax/swing/JCheckBoxMenuItem.java,
3032 javax/swing/JColorChooser.java,
3033 javax/swing/JComboBox.java,
3034 javax/swing/JComponent.java,
3035 javax/swing/JDesktopPane.java,
3036 javax/swing/JFileChooser.java,
3037 javax/swing/JMenu.java,
3038 javax/swing/JMenuItem.java,
3039 javax/swing/JOptionPane.java,
3040 javax/swing/JPasswordField.java,
3041 javax/swing/JPopupMenu.java,
3042 javax/swing/JProgressBar.java,
3043 javax/swing/JRadioButtonMenuItem.java,
3044 javax/swing/JScrollBar.java,
3045 javax/swing/JSeparator.java,
3046 javax/swing/JSlider.java,
3047 javax/swing/JSplitPane.java,
3048 javax/swing/JTabbedPane.java,
3049 javax/swing/JTextField.java,
3050 javax/swing/JToolBar.java,
3051 javax/swing/text/JTextComponent.java:
3052 Fixed all constructors of accessibility classes.
3054 2004-06-08 Michael Koch <konqueror@gmx.de>
3056 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
3059 2004-06-08 Michael Koch <konqueror@gmx.de>
3061 * javax/swing/Box.java
3062 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
3063 (AccessibleBoxFiller.serialVersionUID): New member variable.
3064 * javax/swing/DefaultButtonModel.java
3065 (stateMask): Made protected.
3066 (listenerList): Likewise.
3067 (changeEvent): Likewise.
3069 (mnemonic): Likewise.
3070 (actionCommand): Likewise.
3071 (getListeners): New method.
3072 (getActionListeners): New method.
3073 (getItemListeners): New method.
3074 (getChangeListeners): New method.
3075 (fireItemStateChanged): Simplified.
3076 (fireActionPerformed): Simplified.
3077 (fireStateChanged): Simplified.
3078 * javax/swing/JFrame.java
3079 (JFrame): Implements WindowContants.
3080 (HIDE_ON_CLOSE): Removed.
3081 (EXIT_ON_CLOSE): Removed.
3082 (DISPOSE_ON_CLOSE): Removed.
3083 (DO_NOTHING_ON_CLOSE): Removed.
3084 (processWindowEvent): Exit with code 0.
3085 (setDefaultCloseOperation): Do security check before setting value.
3086 * javax/swing/JOptionPane.java
3087 (message): Initialize only in constructor.
3088 * javax/swing/JToolTip.java: Removed unused imports.
3089 * javax/swing/JViewport.java
3090 (serialVersionUID): New member variable.
3091 (SIMPLE_SCROLL_MODE): Made final, fixed value.
3092 (BLIT_SCROLL_MODE): Likewise.
3093 (BACKINGSTORE_SCROLL_MODE): Likewise.
3094 (scrollUnderway): Made protected.
3095 (isViewSizeSet): Likewise.
3096 * javax/swing/ListModel.java: Fixed javadoc.
3097 * javax/swing/Popup.java: Likewise.
3098 * javax/swing/RepaintManager.java
3099 (paintDirtyRegions): Don't use internal classes of
3100 java.util.AbstractMap.
3101 * javax/swing/ScrollPaneConstants.java: Reindented.
3102 * javax/swing/ScrollPaneLayout.java
3103 (viewport): Made protected.
3104 (verticalScrollBar): Made protected, renamed to vsb.
3105 (horizontalScrollBar): Made protected, renamed to hsb.
3106 (rowHeader): Made protected, renamed to rowHead.
3107 (columnHeader): Made protected, renamed to colHead.
3108 (lowerLeft): Made protected.
3109 (lowerRight): Made protected.
3110 (upperLeft): Made protected.
3111 (upperRight): Made protected.
3112 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3113 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3115 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
3117 * java/awt/MediaTracker.java (imageUpdate): Only set status to
3118 LOADING if flags has SOMEBITS set.
3120 2004-06-07 Michael Koch <konqueror@gmx.de>
3122 * javax/swing/AbstractButton.java: Reorganized imports.
3123 * javax/swing/ActionMap.java: Likewise.
3124 * javax/swing/DefaultButtonModel.java: Likewise.
3125 * javax/swing/DefaultListModel.java: Likewise.
3126 * javax/swing/ImageIcon.java: Likewise.
3127 (serialVersionUID): New member variable.
3128 * javax/swing/JComboBox.java: Reorganized imports.
3129 * javax/swing/JComponent.java: Likewise.
3130 (ui): Made protected.
3131 (listenerList): Made protected.
3132 (TOOL_TIP_TEXT_KEY): New constant.
3133 (scrollRectToVisible): Removed redundant null check.
3134 * javax/swing/JFrame.java: Reorganized imports.
3135 * javax/swing/JInternalFrame.java: Reorganized imports.
3136 * javax/swing/JProgressBar.java: Likewise.
3137 * javax/swing/JRootPane.java: Likewise.
3138 * javax/swing/JScrollBar.java: Likewise.
3139 * javax/swing/JSeparator.java: Likewise.
3140 * javax/swing/JSlider.java: Likewise.
3141 * javax/swing/JTabbedPane.java: Likewise.
3142 * javax/swing/JTextField.java: Likewise.
3143 * javax/swing/JToolBar.java: Likewise.
3144 * javax/swing/JTree.java: Likewise.
3145 * javax/swing/JViewport.java: Likewise.
3146 * javax/swing/JWindow.java: Likewise.
3147 * javax/swing/KeyStroke.java: Likewise.
3148 * javax/swing/LookAndFeel.java: Likewise.
3149 * javax/swing/MenuSelectionManager.java: Likewise.
3150 * javax/swing/SwingUtilities.java: Likewise.
3151 * javax/swing/Timer.java: Likewise.
3152 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3153 * javax/swing/JList.java
3154 (HORIZONTAL_WRAP): Made final, fixed value.
3155 (VERTICAL): Likewise.
3156 (VERTICAL_WRAP): Likewise.
3158 2004-06-07 Michael Koch <konqueror@gmx.de>
3160 * javax/swing/AbstractButton.java
3161 (serialVersionUID): New member variable.
3162 (AccessibleAbstractButton.serialVersionUID): Likewise.
3163 (AbstractButton): Made public.
3164 * javax/swing/Box.java
3165 (AccessibleBox.serialVersionUID): New member variable.
3166 (Filler.serialVersionUID): Likewise.
3167 * javax/swing/DefaultListSelectionModel.java
3168 (serialVersionUID): Likewise.
3169 * javax/swing/JApplet.java
3170 (serialVersionUID): Likewise.
3171 * javax/swing/JCheckBox.java
3172 (serialVersionUID): Likewise.
3173 * javax/swing/JCheckBoxMenuItem.java
3174 (serialVersionUID): Likewise.
3175 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3176 * javax/swing/JColorChooser.java
3177 (serialVersionUID): Likewise.
3178 (AccessibleJColorChooser.serialVersionUID): Likewise.
3179 * javax/swing/JComponent.java
3180 (serialVersionUID): Made private.
3181 (AccessibleJComponent.serialVersionUID): New member variable.
3182 * javax/swing/JDesktopPane.java
3183 (serialVersionUID): Likewise.
3184 * javax/swing/JDialog.java
3185 (serialVersionUID): Likewise.
3186 * javax/swing/JFormattedTextField.java
3187 (serialVersionUID): Fixed value.
3188 * javax/swing/JFrame.java
3189 (serialVersionUID): New member variable.
3190 (getDefaultCloseOpertation): Made public.
3191 * javax/swing/JLayeredPane.java
3192 (serialVersionUID): Likewise.
3193 (LAYER_PROPERTY): Made final, fixed value.
3194 (JLayeredPane): Made public.
3195 * javax/swing/JMenu.java
3196 (AccessibleJMenu.serialVersionUID): New member variable.
3197 (WinListener.serialVersionUID): Likewise.
3198 * javax/swing/JMenuBar.java
3199 (serialVersionUID): Likewise.
3200 (getComponentAtIndex): Added @deprecated tag.
3201 * javax/swing/JMenuItem.java
3202 (serialVersionUID): New member variable.
3203 (AccessibleJMenuItem.serialVersionUID): Likewise.
3204 * javax/swing/JOptionPane.java
3205 (serialVersionUID): Likewise.
3206 (AccessibleJOptionPane.serialVersionUID): Likewise.
3207 * javax/swing/JPopupMenu.java
3208 (serialVersionUID): Likewise.
3209 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3210 (getPopupMenuListeners): New method.
3211 (getComponentAtIndex): Added @deprecated tag.
3212 * javax/swing/JProgressBar.java
3213 (serialVersionUID): New member variable.
3214 (AccessibleJProgressBar.serialVersionUID): Likewise.
3215 * javax/swing/JRadioButton.java
3216 (serialVersionUID): Likewise.
3217 * javax/swing/JRadioButtonMenuItem.java
3218 (serialVersionUID): Likewise.
3219 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3220 * javax/swing/JScrollBar.java
3221 (serialVersionUID): Likewise.
3222 (AccessibleJScrollBar.serialVersionUID): Likewise.
3223 * javax/swing/JSeparator.java
3224 (serialVersionUID): Likewise.
3225 (AccessibleJSeparator.serialVersionUID): Likewise.
3226 * javax/swing/JSlider.java: Fixed javadocs.
3227 (AccessibleJSlider.serialVersionUID): New member variable.
3228 * javax/swing/JSplitPane.java: Added copyright statement.
3229 (serialVersionUID): New member variable.
3230 (AccessibleJSplitPane.serialVersionUID): Likewise.
3231 * javax/swing/JTabbedPane.java
3232 (serialVersionUID): Likewise.
3233 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3234 (ModelListener.serialVersionUID): Likewise.
3235 (ModelListener.ModelListener): New constructor.
3236 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3237 (WRAP_TAB_LAYOUT): Likewise.
3238 * javax/swing/JTable.java
3239 (serialVersionUID): New member variable.
3240 * javax/swing/JToggleButton.java
3241 (serialVersionUID): Likewise.
3242 (ToggleButtonModel): Made static.
3243 (ToggleButtonModel.serialVersionUID): New member variable.
3244 * javax/swing/JToolTip.java
3245 (serialVersionUID): Likewise.
3246 * javax/swing/JTree.java
3247 (serialVersionUID): Likewise.
3248 * javax/swing/JWindow.java
3249 (serialVersionUID): Likewise.
3250 * javax/swing/Timer.java
3251 (serialVersionUID): Likewise.
3253 2004-06-06 Michael Koch <konqueror@gmx.de>
3255 * javax/swing/SwingConstants.java
3256 (NEXT): New constant.
3257 (PREVIOUS): Likewise.
3258 * javax/swing/UIManager.java
3259 (LookAndFeel): Made public.
3260 (LookAndFeel.getClassName): Likewise.
3261 (LookAndFeel.getName): Likewise.
3263 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3265 * javax/swing/JCheckBoxMenuItem.java:
3267 * javax/swing/JMenu.java: Likewise.
3268 * javax/swing/JMenuBar.java: Likewise.
3269 * javax/swing/JMenuItem.java: Likewise.
3270 * javax/swing/JPopupMenu.java: Likewise.
3271 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3272 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3273 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3274 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3275 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3276 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3277 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3279 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3281 * javax/swing/plaf/basic/BasicMenuUI.java:
3282 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3283 Call getPath() from super class instead.
3285 2004-05-31 David Jee <djee@redhat.com>
3287 * java/awt/Container.java
3288 (remove): Set component visibility to false after removing it.
3290 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3292 * java/awt/Component.java (getForeground): Return SystemColor if
3294 (getBackground): Likewise.
3296 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3297 (item_highlighted): New function.
3298 (connectSignals): Set item_highlighted as list's select
3301 * java/applet/Applet.java: Revert changes from 2004-04-29,
3302 2004-03-15 and 2004-03-14.
3304 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3305 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3308 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3309 "Dialog" as the default font.
3310 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3312 * java/awt/Component.java (getFont): Return "Dialog" font by
3314 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3315 Multiply size argument to pango_font_description_set_size by the
3316 DPI conversion factor rather than by PANGO_SCALE.
3317 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3318 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3320 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3321 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3322 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3323 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3324 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3325 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3326 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3327 Divide baseline y coordinate by DPI conversion factor rather
3328 than by PANGO_SCALE.
3329 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3330 (area_prepared): Fix typo.
3331 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3332 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3333 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3334 (dpi_conversion_factor): New global variable.
3335 (init_dpi_conversion_factor): New function to calculate and
3336 track DPI conversion factor.
3337 (dpi_changed_cb): New callback.
3338 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3340 2004-05-27 David Jee <djee@redhat.com>
3342 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3343 (getGraphics): Return a new GdkGraphics instance.
3344 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3345 (getGraphics): Call super.getGraphics().
3347 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3349 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3350 (setNativeBounds): Clamp width and height values to >= 0.
3352 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3353 (find_fg_color_widget): Handle GtkOptionMenu specially.
3355 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3356 (pre_event_handler): Only post configure events to visible
3359 2004-05-26 David Jee <djee@redhat.com>
3361 * java/awt/BorderLayout.java
3362 (layoutContainer): Fix size calculations.
3364 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3366 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3367 (window_wm_protocols_filter): Remove function.
3368 (create): Remove filter that removes WM_TAKE_FOCUS client
3371 2004-06-17 Anthony Green <green@redhat.com>
3373 * java/util/zip/ZipFile.java (getInputStream): Return null if
3376 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3377 directory contents to the class path.
3379 2004-06-15 Andrew Haley <aph@redhat.com>
3381 * java/lang/natSystem.cc (getenv0): Don't assume environment
3382 variable is Latin 1 coded.
3384 2004-06-14 Andreas Jaeger <aj@suse.de>
3386 * configure.in: Support --enable-version-specific-runtime-libs.
3387 * configure: Regenerated.
3389 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3391 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3392 to pass ClassLoader argument.
3393 * java/util/GregorianCalendar.java: Likewise.
3394 * java/util/Currency.java: Likewise.
3395 * java/text/BreakIterator.java: Likewise.
3396 * java/text/Collator.java: Likewise.
3397 * java/text/DateFormat.java: Likewise.
3398 * java/text/DateFormatSymbols.java: Likewise.
3399 * java/text/DecimalFormatSymbols.java: Likewise.
3400 * java/text/NumberFormat.java: Likewise.
3401 * java/awt/Window.java: Likewise.
3403 2004-06-14 Andrew Haley <aph@redhat.com>
3405 * java/lang/System.java: (getenv0): New method.
3406 (getenv): Add security check. Do the right thing.
3407 * java/lang/natSystem.cc (getenv0): New method.
3409 2004-06-12 Mark Wielaard <mark@klomp.org>
3411 * javax/swing/RepaintManager.java
3412 (paintDirtyRegions): Use entrySet(), not values().
3414 2004-06-10 Mark Wielaard <mark@klomp.org>
3416 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3419 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3421 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3422 when we already know the answer.
3423 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3424 (setStartRule,setEndRule): Don't take abs of day number.
3425 (getOffset): Clarify docs. Add argument checks.
3426 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3427 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3430 2004-06-10 Tom Tromey <tromey@redhat.com>
3432 * interpret.cc (run): Handle wide fload.
3434 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3436 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3438 2004-06-05 Michael Koch <konqueror@gmx.de>
3440 * javax/swing/SwingConstants.java
3441 (NEXT): New constant.
3442 (PREVIOUS): Likewise.
3444 2004-06-05 Michael Koch <konqueror@gmx.de>
3446 * javax/swing/UIManager.java
3447 (LookAndFeel): Made public.
3448 (LookAndFeel.getName): Likewise.
3449 (LookAndFeel.getClassName): Likewise.
3451 2004-06-03 Michael Koch <konqueror@gmx.de>
3453 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3454 (requestFocus): Revert last changes.
3455 (gtkRequestFocus): Removed.
3456 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3457 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3459 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3460 Reverted last patch.
3461 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3462 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3463 Reverted comment change.
3465 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3467 * javax/swing/JCheckBoxMenuItem.java:
3469 * javax/swing/JMenu.java: Likewise.
3470 * javax/swing/JMenuBar.java: Likewise.
3471 * javax/swing/JMenuItem.java: Likewise.
3472 * javax/swing/JPopupMenu.java: Likewise.
3473 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3474 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3475 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3476 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3477 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3478 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3479 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3481 2004-06-01 Tom Tromey <tromey@redhat.com>
3483 * java/io/ObjectStreamField.java: Cleaned up imports.
3485 2004-06-01 Michael Koch <konqueror@gmx.de>
3487 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3489 2004-06-01 Mark Wielaard <mark@klomp.org>
3491 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3493 2004-06-01 Michael Koch <konqueror@gmx.de>
3495 * java/security/Security.java
3496 (insertProviderAt): Use equals() instead of ==.
3497 (removeProvicer): Likewise.
3498 (getProvider): Likewise.
3499 * java/security/Signature.java
3500 (sign): Don't set state to UNINITIALIZED.
3503 2004-06-01 Mark Wielaard <mark@klomp.org>
3505 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3506 Implement by calling gtkRequestFocus.
3507 (gtkRequestFocus): New native method.
3508 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3509 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3511 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3513 (filter_expose_event_handler):
3515 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3516 (menu_pos): Mark static.
3518 2004-06-01 Michael Koch <konqueror@gmx.de>
3520 * java/text/CollationElementIterator.java,
3521 java/text/CollationKey.java,
3522 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3523 * testsuite/libjava.mauve/xfails: Removed all
3524 java.text.CollationElementIterator tests.
3526 2004-06-01 Michael Koch <konqueror@gmx.de>
3528 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3530 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3531 Java 1.5 keyword usage.
3533 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3535 * javax/swing/plaf/basic/BasicMenuUI.java:
3536 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3537 Call getPath() from super class instead.
3539 2004-05-31 Michael Koch <konqueror@gmx.de>
3541 * java/io/SequenceInputStream.java:
3542 Rename enum to e because enum is a keyword in Java 1.5.
3544 2004-05-31 Michael Koch <konqueror@gmx.de>
3546 * gnu/java/rmi/rmic/CompilerProcess.java:
3547 Fixed javadoc to by XHTML compliant.
3549 2004-05-30 Mark Wielaard <mark@klomp.org>
3551 * java/awt/Toolkit.java (loadSystemColors): Implement.
3553 2004-05-30 Michael Koch <konqueror@gmx.de>
3555 * java/lang/System.java: Reordered imports.
3557 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3559 * java/text/DecimalFormat.java
3560 (parse): Fixed parsing of decimal strings. Number of maximum
3561 digits to be read should now work.
3562 * java/text/SimpleDateFormat.java
3563 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3564 formatter. This fixes DateFormatTest.
3566 2004-05-30 Michael Koch <konqueror@gmx.de>
3568 * java/nio/Buffer.java
3569 (limit): Fixed off by one error.
3570 * java/nio/CharBuffer.java
3571 (wrap): Fixed arguments, added javadocs.
3573 2004-05-30 Michael Koch <konqueror@gmx.de>
3575 * gnu/java/beans/BeanInfoEmbryo.java,
3576 java/awt/im/InputContext.java,
3577 javax/swing/tree/DefaultMutableTreeNode.java:
3578 Rename enum to e because enum is a keyword in Java 1.5.
3580 2004-05-30 Michael Koch <konqueror@gmx.de>
3582 * gnu/java/math/MPN.java,
3583 java/awt/geom/Arc2D.java:
3584 Fixed javadocs all over.
3586 2004-05-30 Michael Koch <konqueror@gmx.de>
3588 * java/awt/DefaultKeyboardFocusManager.java
3589 (dispatchEvent): Call method to get key event dispatchers.
3590 (dispatchKeyEvent): Call method to get key event post processors.
3591 * javax/swing/JComponent.java
3592 (listenerList): Made protected.
3593 * javax/swing/JOptionPane.java
3594 (message): Don't initialize.
3595 (JOptionPane): Set message text.
3596 * javax/swing/JPopupMenu.java
3597 (show): Fixed typo in argument name.
3598 * javax/swing/RepaintManager.java
3599 (paintDirtyRegions): Use public API of java.util.Map.
3600 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3601 (positionForMouseEvent): Removed redundant ';'.
3602 (continueDrag): Use method arguments.
3604 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3606 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3609 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3611 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3613 * gnu/gcj/RawDataManaged.java: New file.
3614 * java/lang/Thread.java (data): Declare as RawDataManaged.
3615 * java/lang/natThread.cc (init_native): Cast natThread data to
3616 RawDataManaged, not jobject.
3617 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3618 * Makefile.in: Rebuilt.
3620 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3622 * java/util/SimpleTimeZone.java: Reverting my last change until I
3623 can fix it properly.
3625 2004-05-27 Michael Koch <konqueror@gmx.de>
3627 * javax/swing/JPopupMenu.java
3628 (isVisible): Do not use visible directly.
3629 (setVisible): Likewise.
3630 * javax/swing/JWindow.java
3631 (JWindow): call accessible constructor.
3632 * javax/swing/RepaintManager.java
3633 (paintDirtyRegions): Use public methods to obtain iterator.
3635 2004-05-25 David Jee <djee@redhat.com>
3637 * java/awt/Container.java
3638 (remove): Set component's parent to null only after we removed the
3639 component from its parent's layout manager.
3641 2004-05-25 David Jee <djee@redhat.com>
3643 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3644 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3646 * gnu/java/awt/peer/gtk/GtkListPeer.java
3647 (getSize): Change native method declaration.
3648 (minimumSize): Pass visible row count into getSize().
3649 (preferredSize): Likewise.
3650 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3651 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3652 natural size. Use visible row count to determine the final height
3655 2004-05-21 Graydon Hoare <graydon@redhat.com>
3657 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3658 (setClip): Minor correction to order of operations.
3660 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3661 * javax/swing/ScrollPaneLayout.java: Likewise.
3662 * javax/swing/JViewPort.java: Likewise.
3663 * javax/swing/ViewportLayout.java: Likewise.
3665 * javax/swing/JComponent.java: Rewrite.
3666 * javax/swing/RepaintManager.java: Likewise.
3668 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3669 * javax/swing/JList.java
3670 (setSelectedIndices):
3671 (getSelectedIndices):
3672 (getSelectedValues): New functions.
3673 (getPreferredScrollableViewportSize): Return preferred size.
3674 (getScrollableUnitIncrement):
3675 (getScrollableBlockIncrement): Initial implementations.
3676 * javax/swing/JRootPane.java: Clean up slightly.
3681 (isValidateRoot): Add overrides from JComponent.
3682 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3683 * javax/swing/UIManager.java (getDimension): Return the dimension.
3685 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3686 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3687 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3688 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3689 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3690 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3691 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3692 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3693 Likewise, and set background.
3694 * javax/swing/plaf/basic/BasicListUI.java:
3695 Likewise, and improve a bit.
3696 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3697 Likewise, and adjust calculations.
3698 * javax/swing/plaf/basic/BasicViewportUI.java:
3699 Likewise, and improve a bit.
3700 * javax/swing/plaf/basic/BasicLookAndFeel.java
3701 (Button.margin): Shrink.
3703 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3704 Hack to set horizontal always, workaround pango.
3706 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3707 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3708 Synchronize more often, check cairo status after ops,
3709 handle changes to cairo pattern API, check for disposal.
3711 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3713 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3714 (BasicMenuItemUI): Create propertyChangeListener.
3715 (getPath):Implemented.
3716 (installListeners): Add propertyChangeListener to menuItem.
3717 (uninstallListeners): Remove propertyChangeListener from menuItem.
3718 (update): Implemented.
3719 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3720 (mouseEntered): Take insets of popup menu into account when
3721 calculating position of popup menu.
3723 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3725 * Makefile.am: Added new file.
3726 * Makefile.in: Regenerate.
3727 * javax/swing/JMenuBar.java:
3728 Started implementation.
3729 * javax/swing/JPopupMenu.java:
3730 (setVisible): Fixed location of lightweight/mediumweight
3732 (show): Fixed location of PopupMenu.
3733 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3734 New file. UI Delegate for JMenuBar.
3735 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3736 (mouseEntered): Corrected position of the submenu.
3738 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3740 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3741 to _gtk_accel_group_attach.
3742 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3745 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3746 package access. Don't override setFont.
3747 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3748 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3749 gtkWidgetRequestFocus package access.
3750 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3752 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3753 Give gtkWidgetRequestFocus package access.
3754 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3755 gtkWidgetRequestFocus package access. Don't override setFont.
3756 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3758 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3759 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3761 (gtkSetFont): Likewise.
3762 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3764 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3765 (gtkSetFont): Whitespace fix.
3767 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3768 (gtkWidgetSetUsize): Remove method.
3770 2004-05-18 David Jee <djee@redhat.com>
3772 * java/awt/image/MemoryImageSource.java
3773 (newPixels(int,int,int,int,boolean)): Set only the specified
3774 rectangle of pixels.
3775 (newPixels(byte[],ColorModel,int,int)): Implement.
3776 (newPixels(int[],ColorModel,int,int)): Implement.
3778 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3780 * Makefile.am: Added new file.
3781 * Makefile.in: Regenerate.
3782 * javax/swing/JMenu.java: Started
3784 * javax/swing/JPopupMenu.java:
3785 (insert): If specified index is -1, then
3786 add component at the end.
3787 (isPopupTrigger): Reimplemented.
3788 (JPopupMenu.LightWeightPopup): setBounds
3789 of the lightWeightPopup before adding it
3791 (javax/swing/plaf/basic/BasicIconFactory.java):
3792 (getMenuArrowIcon): Implemented.
3793 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3794 (getPreferredSize): Add size of the arrow icon
3795 if this menu item is instance of JMenu.
3796 (paintMenuItem): Paint arrow icon if this
3797 menu item is a submenu.
3798 * javax/swing/plaf/basic/BasicMenuUI.java:
3799 New File. UI Delegate for JMenu.
3801 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3803 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3804 Post KEY_TYPED events.
3805 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3806 (generates_key_typed_event): Remove function.
3808 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3810 * javax/swing/JRootPane.java
3811 (JRootPane.RootLayout): Reimplemented to
3812 set bounds of contentPane and menuBar.
3813 (setJMenuBar): Add menu bar to the layered pane.
3814 (createLayeredPane): Set layout of layeredPane
3816 * javax/swing/JLayeredPane.java:
3817 (addImpl): Calculate index of the component in the
3818 layeredPane according to the specified position within
3821 2004-05-17 David Jee <djee@redhat.com>
3823 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3824 (setPixels): Change color model to the default model after
3826 * java/awt/image/MemoryImageSource.java
3827 (newPixels): Set only the specified rectangle of pixels.
3829 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3831 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3832 -l-java-beans -l-javax-accessibility -l-javax-swing.
3834 * java/awt/AWTEvent.java (toString): Print source's name rather
3835 than the source itself.
3837 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3839 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3841 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3842 (gdk_color_to_java_color): New function.
3843 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3845 2004-05-12 David Jee <djee@redhat.com>
3847 * java/awt/image/RGBImageFilter.java:
3848 Initialize origmodel as null.
3849 (makeColor): Fix pixel component order.
3850 (filterRGBPixels): Fix pixel iteration.
3851 (setPixels): Add extra checks for index color model. Convert pixels
3852 to default color model if necessary.
3853 (convertColorModelToDefault): New override method for byte pixels.
3854 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3855 (makeColorbyDefaultCM): New override method for byte pixels.
3856 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3857 (makeColor): Fix pixel component order.
3859 2004-05-11 Kim Ho <kho@redhat.com>
3861 * javax/swing/Box.java:
3862 Comment out more parts of Box.Filler.
3864 2004-05-11 Kim Ho <kho@redhat.com>
3866 * javax/swing/Box.java:
3867 Remove reference to AccessibleAWTComponent so
3870 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3872 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3873 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3874 implementation of list peer to use GtkTreeView instead of
3875 deprecated GtkCList.
3877 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3879 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3880 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3881 (handleEvent): Remove keyChar argument to
3882 gtkWidgetDispatchKeyEvent calls.
3883 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3885 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3886 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3887 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3890 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3892 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3893 (gtkWidgetRequestFocus): Mark protected.
3894 (GtkComponentPeer): Only set the peer's bounds if its component
3896 * java/awt/Component.java (static): Set the default keyboard
3898 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3899 requestFocusInWindow(temporary)): Don't request focus if the
3900 component is not showing. Get tree lock before traversing
3901 component hierarchy.
3902 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3903 Only set the global focus owner if it is not a Window.
3904 (processKeyEvent): Consume keystrokes associated with the focus
3905 traversal keystroke.
3906 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3907 downFocusCycle): Call requestFocusInWindow instead of
3909 * java/awt/EventDispatchThread.java (run): Move setting of
3910 default keyboard focus manager to Component.java.
3911 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3912 (awt_keycode_to_keysym): New function.
3913 (gtkWidgetDispatchKeyEvent): Finish implementation.
3914 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3915 (pre_event_handler): Add FIXME comment.
3917 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3918 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3919 (gtkWidgetRequestFocus): New method.
3920 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3921 disable Tab and Shift-Tab keystrokes.
3922 (addNotify, appendText, insertText, replaceText): Simplify peer
3924 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3925 (connectSignals): Remove connections to "commit" signals.
3926 Remove C++-style comments.
3928 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3929 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3930 (handleEvent): Activate GTK button when the space bar key is
3932 (gtkActivate): New method.
3934 2004-05-06 David Jee <djee@redhat.com>
3936 * java/awt/image/CropImageFilter.java
3937 (setPixels): Implement for byte array pixels.
3938 * java/awt/image/ReplicateScaleFilter.java
3939 (setPixels): Implement for byte array pixels.
3940 (replicatePixels): Overload for byte array pixels.
3942 2004-05-06 Kim Ho <kho@redhat.com>
3944 * javax/swing/Box.java:
3945 (getAccessibleContext): Return an instance of the
3948 2004-05-05 David Jee <djee@redhat.com>
3950 * gnu/java/awt/peer/gtk/GdkGraphics.java
3951 (drawImage): When component is null, use SystemColor.window as
3952 the default bgcolor.
3953 * gnu/java/awt/peer/gtk/GtkImage.java
3954 (setPixels): We can avoid iterating through the pixel rows only
3956 * java/awt/Image.java
3957 (getScaledInstance): Partially implement.
3958 * java/awt/image/CropImageFilter.java
3959 (setProperties): Fix "filter" property.
3960 (setPixels): Implement.
3961 * java/awt/image/ReplicateScaleFilter.java
3962 (setDimensions): Use scaled dimensions.
3963 (setPixels): Implement.
3964 (replicatePixels): New method.
3966 2004-05-05 David Jee <djee@redhat.com>
3968 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3969 (convertPixels): If either pixels or model is null, return null.
3970 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3971 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3972 is null, do nothing and return.
3974 2004-05-03 Kim Ho <kho@redhat.com>
3976 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3977 (getGraphics): Like GtkFramePeer, the Graphics
3978 object needs to be translate to account for
3980 (postMouseEvent): New method. Account for
3982 (postExposeEvent): ditto.
3983 * javax/swing/Box.java: Stubbed.
3984 * javax/swing/JDialog.java: Ran through jalopy
3986 (JDialog): Call SwingUtilities' getOwnerFrame
3988 (setLayout): Check isRootPaneCheckingEnabled
3989 * javax/swing/JOptionPane.java: Re-implemented.
3990 * javax/swing/SwingUtilities.java:
3991 (getOwnerFrame): Static method to grab a default
3992 owner frame for Dialogs that don't specify owners.
3993 * javax/swing/event/SwingPropertyChangeSupport.java:
3994 (firePropertyChange): Fix early exit condition.
3995 * javax/swing/plaf/basic/BasicLabelUI.java:
3996 (paint): Avoid painting text if it is null
3998 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4001 2004-05-03 Olga Rodimina <rodimina@redhat.com>
4003 * Makefile.am: Added new file.
4004 * Makefile.in: Regenerate.
4005 * javax/swing/JPopupMenu.java:
4006 Started implementation.
4007 * javax/swing/JWindow.java
4008 (JWindow): call super() if parent for window
4010 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4011 New File. UI Delegate for JPopupMenu.
4013 2004-04-30 Olga Rodimina <rodimina@redhat.com>
4015 * javax/swing/JApplet.java: Indicated that JApplet
4016 implements RootPaneContainer and made method of this
4018 * javax/swing/JFrame.java: Ditto.
4019 * javax/swing/JWindow.java: Ditto.
4021 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
4023 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4024 (nativeSetBounds): Call gdk_window_move in addition to
4027 * java/applet/Applet.java (preferredSize): Call parent's
4028 preferredSize if the applet stub is null.
4029 (minimumSize): Likewise for parent's minimumSize.
4031 2004-04-27 Olga Rodimina <rodimina@redhat.com>
4033 * javax/swing/JMenuItem.java
4034 (createActionPropertyChangeListener): Implemented.
4035 (processMouseEvent): Ditto.
4036 (fireMenuDragMouseEntered): Ditto.
4037 (fireMenuDragMouseExited): Ditto.
4038 (fireMenuDragMouseDragged): Ditto.
4039 (fireMenuDragMouseReleased): Ditto.
4040 (menuSelectionChanged): Ditto.
4041 (getSubElements): Ditto.
4042 (getComponent): Ditto.
4043 (addMenuDragMouseListener): Ditto.
4044 (removeMenuDragMouseListener):Ditto.
4045 (addMenuKeyListener): Ditto.
4046 (removeMenuKeyListener): Ditto.
4047 * javax/swing/plaf/basic/BasicMenuItemUI.java
4048 (doClick): Imlemented.
4049 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
4050 Don't handle mouse events here. Pass them to
4051 MenuSelectionManager.
4053 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4054 Used correct version of jalopy configuration
4055 file to fix style in the files below.
4057 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4059 * javax/swing/JCheckBoxMenuItem.java:
4060 Fixed style and removed unnecessary comments.
4061 * javax/swing/JMenuItem.java: Ditto.
4062 * javax/swing/JRadioButtonMenuItem.java: Ditto.
4063 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
4064 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
4065 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
4067 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
4069 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
4072 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
4074 * java/awt/ContainerOrderFocusTraversalPolicy.java
4075 (getComponentAfter): Start from current component and work up
4076 the component hierarchy until an acceptable component is found.
4077 Synchronize on tree lock.
4078 (getComponentBefore): Likewise.
4080 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
4082 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
4083 focus-related debugging messages.
4084 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
4085 * java/awt/EventDispatchThread.java: Likewise.
4086 * java/awt/KeyboardFocusManager.java: Likewise.
4087 * java/awt/Window.java: Likewise.
4088 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
4089 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4091 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
4092 new C++-style comments to C-style comments.
4093 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4095 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4096 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4097 (handleEvent): Dispatch key press and key release events to
4099 (requestFocus): Post a FOCUS_GAINED event to the event queue.
4100 (gtkWidgetRequestFocus): New method.
4101 (gtkWidgetDispatchKeyEvent): Likewise.
4102 * java/awt/Component.java (requestFocus, requestFocus(boolean),
4103 requestFocusInWindow, requestFocusInWindow(boolean),
4104 getFocusCycleRootAncestor, nextFocus, transferFocus,
4105 transferFocusBackward, transferFocusUpCycle, hasFocus,
4106 isFocusOwner): Implement and document focus-handling methods.
4107 (setFocusTraversalKeys): Inherit focus traversal keys when
4108 keystrokes argument is null. Fix focus-handling documentation
4110 * java/awt/Container.java (setFocusTraversalKeys,
4111 getFocusTraversalKeys, areFocusTraversalKeysSet,
4112 isFocusCycleRoot, setFocusTraversalPolicy,
4113 getFocusTraversalPolicy, isFocusTraversalPolicySet,
4114 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4115 Implement and document focus-handling methods.
4116 (transferFocusBackward): Remove method.
4117 (readObject, writeObject): Implement and document serialization
4119 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4121 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4123 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4125 * java/awt/EventDispatchThread.java (run): Set default keyboard
4126 focus manager. Attempt to dispatch each event to the keyboard
4127 focus manager before normal dispatch.
4128 * java/awt/KeyboardFocusManager.java: Implement and partially
4130 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4131 (show): Focus initial component when window is shown for the
4133 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4134 (pre_event_handler): Replace complex key press and key release
4135 logic with simple callbacks into GtkComponentPeer.
4136 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4138 2004-04-21 Olga Rodimina <rodimina@redhat.com>
4140 * javax/swing/MenuSelectionManager.java
4141 (componentForPoint): Added new method.
4142 (defaultManager): New Method. Implemented.
4143 (getSelectedPath): Ditto.
4144 (isComponentPartOfCurrentMenu): Ditto.
4145 (processKeyEvent): Added new method.
4146 (processMouseEvent): New Method. Implemented.
4147 (setSelectedPath): Ditto.
4150 2004-04-19 Kim Ho <kho@redhat.com>
4152 * java/awt/Container.java:
4153 (remove): Set the component's parent to null.
4154 (getComponentAt): Implement.
4155 * javax/swing/JComponent.java:
4156 (JComponent): Initialize defaultLocale
4157 (getDefaultLocale): Implement.
4158 (setDefaultLocale): ditto.
4159 * javax/swing/JSlider.java:
4160 (JSlider): Fix calculation of value.
4161 * javax/swing/JSplitPane.java: Implement.
4162 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4163 Change SplitPane's default divider size.
4164 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4165 (paint): Remove unused code.
4166 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4167 Added comments and ran through jalopy.
4168 (setBasicSplitPaneUI): Get reference to hidden divider
4169 and set up one touch buttons if necessary.
4170 (setBorder): Fire propertyChangeEvent only if
4171 borders are different.
4172 (getPreferredSize): Defer to layout manager.
4173 (propertyChange): Implement.
4174 (oneTouchExpandableChanged): ditto.
4175 (createLeftOneTouchButton): Use BasicArrowButton.
4176 (createRightOneTouchButton): ditto.
4177 (moveDividerTo): New method. Moves the divider
4178 to a set location based on the last divider location.
4179 (BasicSplitPaneDivider::MouseHandler): Implement.
4180 (BasicSplitPaneDivider::OneTouchButton): Removed.
4181 (BasicSplitPaneDivider::DragController): Implement.
4182 (BasicSplitPaneDivider::VerticalDragController):
4184 (BasicSplitPaneDivider::DividerLayout): ditto.
4185 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4186 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4187 (calculateLayoutInfo): Don't show component if it's
4189 (paintTab): Fix title paint logic.
4191 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
4194 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4195 (setStartRule,setEndRule): Don't take abs of day number.
4196 (getOffset): Clarify docs. Add argument checks.
4197 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4198 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4200 * testsuite/libjava.mauve/xfails
4201 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4203 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4205 Layout interfaces during preparation, not initialization.
4206 * java/lang/natClass.cc (initializeClass): Move
4207 _Jv_LayoutInterfaceMethods call...
4208 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4210 2004-05-19 Anthony Green <green@localhost.localdomain>
4212 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4214 * Makefile.in: Rebuilt.
4215 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4216 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4217 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4218 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4219 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4220 gnu/javax/rmi/CORBA/DelegateFactory.java,
4221 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4222 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4223 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4224 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4225 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4226 gnu/javax/rmi/PortableServer.java: Remove files.
4228 2004-05-19 Anthony Green <green@redhat.com>
4230 * Makefile.am: Define JAVA_EXT_DIRS.
4231 * Makefile.in: Rebuilt.
4232 * java/lang/natRuntime.cc (insertSystemProperties): Set
4233 java.ext.dirs property.
4235 2004-05-16 Mark Wielaard <mark@klomp.org>
4237 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4239 2004-05-15 Mark Wielaard <mark@klomp.org>
4241 * doc/cni.sgml: Removed, merged into gcj.texi.
4243 2004-05-15 Mark Wielaard <mark@klomp.org>
4245 * Makefile.am (ordinary_java_source_files): Add new javax.print
4247 * Makefile.in: Regenerated.
4249 2004-05-15 Michael Koch <konqueror@gmx.de>
4251 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4252 javax/print/attribute/standard/DateTimeAtCreation.java,
4253 javax/print/attribute/standard/DateTimeAtProcessing.java,
4254 javax/print/attribute/standard/DocumentName.java,
4255 javax/print/attribute/standard/JobHoldUntil.java,
4256 javax/print/attribute/standard/JobImpressionsCompleted.java,
4257 javax/print/attribute/standard/JobMessageFromOperator.java,
4258 javax/print/attribute/standard/JobName.java,
4259 javax/print/attribute/standard/JobOriginatingUserName.java,
4260 javax/print/attribute/standard/JobPriority.java,
4261 javax/print/attribute/standard/JobPrioritySupported.java,
4262 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4263 javax/print/attribute/standard/OutputDeviceAssigned.java,
4264 javax/print/attribute/standard/PrinterInfo.java,
4265 javax/print/attribute/standard/PrinterLocation.java,
4266 javax/print/attribute/standard/PrinterMakeAndModel.java,
4267 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4268 javax/print/attribute/standard/PrinterName.java,
4269 javax/print/attribute/standard/QueuedJobCount.java,
4270 javax/print/attribute/standard/RequestingUserName.java:
4271 Fixed javadocs all over.
4273 2004-05-15 Michael Koch <konqueror@gmx.de>
4275 * javax/print/DocFlavor.java,
4276 javax/print/attribute/standard/ColorSupported.java,
4277 javax/print/attribute/standard/Compression.java,
4278 javax/print/attribute/standard/CopiesSupported.java,
4279 javax/print/attribute/standard/Fidelity.java,
4280 javax/print/attribute/standard/Finishings.java,
4281 javax/print/attribute/standard/JobImpressionsSupported.java,
4282 javax/print/attribute/standard/JobKOctetsSupported.java,
4283 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4284 javax/print/attribute/standard/JobSheets.java,
4285 javax/print/attribute/standard/JobState.java,
4286 javax/print/attribute/standard/JobStateReason.java,
4287 javax/print/attribute/standard/JobStateReasons.java,
4288 javax/print/attribute/standard/Media.java,
4289 javax/print/attribute/standard/MediaSizeName.java,
4290 javax/print/attribute/standard/MultipleDocumentHandling.java,
4291 javax/print/attribute/standard/NumberUpSupported.java,
4292 javax/print/attribute/standard/OrientationRequested.java,
4293 javax/print/attribute/standard/PDLOverrideSupported.java,
4294 javax/print/attribute/standard/PageRanges.java,
4295 javax/print/attribute/standard/PresentationDirection.java,
4296 javax/print/attribute/standard/PrintQuality.java,
4297 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4298 javax/print/attribute/standard/PrinterMoreInfo.java,
4299 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4300 javax/print/attribute/standard/PrinterResolution.java,
4301 javax/print/attribute/standard/PrinterState.java,
4302 javax/print/attribute/standard/PrinterStateReason.java,
4303 javax/print/attribute/standard/PrinterStateReasons.java,
4304 javax/print/attribute/standard/PrinterURI.java,
4305 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4306 javax/print/attribute/standard/Severity.java,
4307 javax/print/attribute/standard/SheetCollate.java,
4308 javax/print/attribute/standard/Sides.java:
4309 Added serialVersionUID and removed final keyword where it doenst
4312 2004-05-15 Michael Koch <konqueror@gmx.de>
4314 * javax/print/PrintServiceLookup.java: New file.
4316 2004-05-15 Michael Koch <konqueror@gmx.de>
4318 * javax/print/DocFlavor.java:
4319 Implemented all flavor classes.
4321 2004-05-15 Michael Koch <konqueror@gmx.de>
4323 * javax/print/attribute/standard/ColorSupported.java,
4324 javax/print/attribute/standard/Compression.java,
4325 javax/print/attribute/standard/CopiesSupported.java,
4326 javax/print/attribute/standard/Fidelity.java,
4327 javax/print/attribute/standard/Finishings.java,
4328 javax/print/attribute/standard/JobImpressionsSupported.java,
4329 javax/print/attribute/standard/JobKOctetsSupported.java,
4330 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4331 javax/print/attribute/standard/JobSheets.java,
4332 javax/print/attribute/standard/JobState.java,
4333 javax/print/attribute/standard/JobStateReason.java,
4334 javax/print/attribute/standard/JobStateReasons.java,
4335 javax/print/attribute/standard/Media.java,
4336 javax/print/attribute/standard/MediaSizeName.java,
4337 javax/print/attribute/standard/MultipleDocumentHandling.java,
4338 javax/print/attribute/standard/NumberUpSupported.java,
4339 javax/print/attribute/standard/OrientationRequested.java,
4340 javax/print/attribute/standard/PDLOverrideSupported.java,
4341 javax/print/attribute/standard/PageRanges.java,
4342 javax/print/attribute/standard/PresentationDirection.java,
4343 javax/print/attribute/standard/PrintQuality.java,
4344 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4345 javax/print/attribute/standard/PrinterMoreInfo.java,
4346 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4347 javax/print/attribute/standard/PrinterResolution.java,
4348 javax/print/attribute/standard/PrinterState.java,
4349 javax/print/attribute/standard/PrinterStateReason.java,
4350 javax/print/attribute/standard/PrinterStateReasons.java,
4351 javax/print/attribute/standard/PrinterURI.java,
4352 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4353 javax/print/attribute/standard/Severity.java,
4354 javax/print/attribute/standard/SheetCollate.java,
4355 javax/print/attribute/standard/Sides.java: New files.
4357 2004-05-15 Michael Koch <konqueror@gmx.de>
4359 * javax/print/Doc.java
4360 (getPrintData): Throws IOException.
4361 (getReaderForText): Likewise.
4362 (getStreamForBytes): Likewise.
4363 * javax/print/DocFlavor.java:
4364 Fixed filename in copyright.
4365 (serialVersionUID): New field.
4366 * javax/print/ServiceUIFactory.java:
4367 Made all constants final.
4368 * javax/print/AttributeException.java
4369 javax/print/MultiDoc.java
4370 javax/print/MultiDocPrintJob.java
4371 javax/print/MultiDocPrintService.java
4372 javax/print/StreamPrintService.java
4373 javax/print/URIException.java: New files.
4374 * javax/print/Makefile.am
4375 (EXTRA_DIST): Added all new files.
4377 2004-05-15 Michael Koch <konqueror@gmx.de>
4379 * javax/print/attribute/standard/Copies.java,
4380 javax/print/attribute/standard/DateTimeAtCompleted.java,
4381 javax/print/attribute/standard/DateTimeAtCreation.java,
4382 javax/print/attribute/standard/DateTimeAtProcessing.java,
4383 javax/print/attribute/standard/DocumentName.java,
4384 javax/print/attribute/standard/JobHoldUntil.java,
4385 javax/print/attribute/standard/JobImpressions.java,
4386 javax/print/attribute/standard/JobImpressionsCompleted.java,
4387 javax/print/attribute/standard/JobKOctets.java,
4388 javax/print/attribute/standard/JobKOctetsProcessed.java,
4389 javax/print/attribute/standard/JobMediaSheets.java,
4390 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4391 javax/print/attribute/standard/JobMessageFromOperator.java,
4392 javax/print/attribute/standard/JobName.java,
4393 javax/print/attribute/standard/JobOriginatingUserName.java,
4394 javax/print/attribute/standard/JobPriority.java,
4395 javax/print/attribute/standard/JobPrioritySupported.java,
4396 javax/print/attribute/standard/NumberOfDocuments.java,
4397 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4398 javax/print/attribute/standard/NumberUp.java,
4399 javax/print/attribute/standard/OutputDeviceAssigned.java,
4400 javax/print/attribute/standard/PagesPerMinute.java,
4401 javax/print/attribute/standard/PagesPerMinuteColor.java:
4402 Fixed @return tag all over.
4404 2004-05-15 Michael Koch <konqueror@gmx.de>
4406 * javax/print/attribute/AttributeSetUtilities.java
4407 (verifyCategoryForValue): Fixed typo in javadoc.
4408 * javax/print/attribute/HashAttributeSet.java
4409 (containsKey): Fixed @return tag.
4410 (comtainsValue): Likewise.
4412 * javax/print/attribute/IntegerSyntax.java
4414 * javax/print/attribute/ResolutionSyntax.java
4416 (getCrossFeedResolution): Removed unused code.
4417 (getFeedResolution): Likewise.
4418 * javax/print/attribute/SetOfIntegerSyntax.java
4419 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4420 (equals): Fixed @return tag.
4421 * javax/print/attribute/TextSyntax.java
4422 (TextSyntax): Take locale into account.
4423 (hashCode): Better implementation.
4425 2004-05-15 Michael Koch <konqueror@gmx.de>
4427 * javax/print/CancelablePrintJob.java,
4428 javax/print/Doc.java,
4429 javax/print/DocFlavor.java,
4430 javax/print/DocPrintJob.java,
4431 javax/print/FlavorException.java,
4432 javax/print/PrintException.java,
4433 javax/print/PrintService.java,
4434 javax/print/ServiceUIFactory.java: New files.
4436 2004-05-15 Mark Wielaard <mark@klomp.org>
4438 * gnu/regexp/CharIndexedReader.java: Removed.
4439 * gnu/regexp/REFilterReader.java: Likewise.
4440 * gnu/regexp/RETokenLookAhead.java: Likewise.
4441 * Makefile.am (ordinary_java_source_files): Remove above classes.
4442 * Makefile.in: Regenerated.
4444 2004-05-14 Tom Tromey <tromey@redhat.com>
4446 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4447 not `XGraphicsConfiguration.XOffScreenImage'.
4449 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4451 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4453 2004-05-14 Steven Augart <augart@watson.ibm.com>
4455 * include/jni.h (_Jv_func): Removed.
4456 (struct JNINativeInterface): Use `void *' for reserved slots.
4457 (struct JNIInvokeInterface): Likewise.
4459 2004-05-11 Michael Koch <konqueror@gmx.de>
4461 * gnu/java/net/natPlainSocketImplPosix.cc
4462 (read): Fixed typo in expression.
4464 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4466 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4467 ld_library_additions. Adjust all calls to libjava_invoke to match
4470 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4471 path to cxxflagslist.
4472 Pass path of libstdc++ to libjava_invoke.
4474 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4475 libjava_invoke arguments.
4477 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4479 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4482 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4484 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4485 main binary against the JNI shared library.
4487 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4489 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4490 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4491 (SimpleTimeZone): Tweak docs. Add new variation.
4492 (setStartRule,setEndRule): Add new variations. Use
4493 startTimeMode and endTimeMode.
4495 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4497 * java/util/Calendar.java (getActualMinimum,
4498 getActualMaximum): Remove abstract. Implement.
4500 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4502 Run the jni tests using the interpreter.
4503 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4504 options_cxx to shared lib compile command.
4505 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4506 they are used to link the shared lib, not the main binary.
4507 Use libjava_invoke to run gij.
4509 2004-05-06 Michael Koch <konqueror@gmx.de>
4511 * java/util/logging/Level.java
4512 (parse): Use == instead of String.equals().
4514 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4516 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4517 verify_field_signature and verify_method_signature, not
4518 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4519 (_Jv_ClassReader::handleField): Likewise.
4520 (_Jv_ClassReader::handleMethod): Likewise.
4522 2004-05-06 Michael Koch <konqueror@gmx.de>
4524 * javax/swing/table/TableColumn.java:
4527 2004-05-06 Michael Koch <konqueror@gmx.de>
4529 * javax/imageio/spi/ImageReaderWriterSpi.java
4530 (ImageReaderWriterSpi): Made it public.
4531 * javax/imageio/stream/ImageInputStream.java:
4534 2004-05-06 Michael Koch <konqueror@gmx.de>
4536 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4539 2004-05-06 Michael Koch <konqueror@gmx.de>
4541 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4542 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4544 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4545 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4546 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4547 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4548 their own source file.
4549 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4550 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4551 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4552 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4553 (create): Define variable on top of function.
4554 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4555 (menu_pos): Prototyped.
4556 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4557 (setTitle): Removed.
4558 * jni/gtk-peer/gthread-jni.c
4559 (gdk_threads_wake): Removed.
4560 * Makefile.am (gtk_c_source_files): Added new files
4561 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4562 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4563 * Makefile.in: Regenerated.
4565 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4567 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4570 2004-05-05 Mark Wielaard <mark@klomp.org>
4572 * javax/swing/AbstractButton.java: Replace special HTML entities with
4574 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4575 * javax/swing/DefaultButtonModel.java: Likewise.
4576 * javax/swing/DefaultListModel.java: Likewise.
4577 * javax/swing/JList.java: Likewise.
4578 * javax/swing/JSlider.java: Likewise.
4579 * javax/swing/ListModel.java: Likewise.
4580 * javax/swing/Popup.java: Likewise.
4581 * javax/swing/SwingUtilities.java: Likewise.
4583 2004-05-05 Michael Koch <konqueror@gmx.de>
4585 * javax/swing/AbstractButton.java,
4586 javax/swing/ActionMap.java,
4587 javax/swing/DefaultButtonModel.java,
4588 javax/swing/DefaultListModel.java,
4589 javax/swing/ImageIcon.java,
4590 javax/swing/JComboBox.java,
4591 javax/swing/JComponent.java,
4592 javax/swing/JFrame.java,
4593 javax/swing/JInternalFrame.java,
4594 javax/swing/JMenuBar.java,
4595 javax/swing/JMenuItem.java,
4596 javax/swing/JOptionPane.java,
4597 javax/swing/JProgressBar.java,
4598 javax/swing/JRootPane.java,
4599 javax/swing/JScrollBar.java,
4600 javax/swing/JScrollPane.java,
4601 javax/swing/JSeparator.java,
4602 javax/swing/JSlider.java,
4603 javax/swing/JTabbedPane.java,
4604 javax/swing/JTable.java,
4605 javax/swing/JTextField.java,
4606 javax/swing/JToolBar.java,
4607 javax/swing/JToolTip.java,
4608 javax/swing/JTree.java,
4609 javax/swing/JViewport.java,
4610 javax/swing/JWindow.java,
4611 javax/swing/KeyStroke.java,
4612 javax/swing/LookAndFeel.java,
4613 javax/swing/SwingUtilities.java,
4614 javax/swing/Timer.java,
4615 javax/swing/ToolTipManager.java,
4616 javax/swing/UIDefaults.java,
4617 javax/swing/border/TitledBorder.java,
4618 javax/swing/filechooser/FileSystemView.java,
4619 javax/swing/plaf/basic/BasicButtonListener.java,
4620 javax/swing/plaf/basic/BasicButtonUI.java,
4621 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4622 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4623 javax/swing/plaf/basic/BasicLabelUI.java,
4624 javax/swing/plaf/basic/BasicMenuItemUI.java,
4625 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4626 javax/swing/plaf/basic/BasicRootPaneUI.java,
4627 javax/swing/plaf/basic/BasicScrollBarUI.java,
4628 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4629 javax/swing/plaf/basic/BasicSliderUI.java,
4630 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4631 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4632 javax/swing/table/JTableHeader.java,
4633 javax/swing/text/AbstractDocument.java,
4634 javax/swing/text/DefaultCaret.java,
4635 javax/swing/text/StyledEditorKit.java,
4636 javax/swing/tree/DefaultTreeCellEditor.java:
4639 2004-05-05 Michael Koch <konqueror@gmx.de>
4641 * java/util/prefs/AbstractPreferences.java
4642 (AbstractPreferences): Added parenthesis for clarity.
4643 Closes classpath bug #7940.
4645 2004-05-05 Tom Tromey <tromey@redhat.com>
4647 * javax/naming/CompoundName.java (endsWith): Look at correct
4648 element of source name.
4650 2004-05-05 Mark Wielaard <mark@klomp.org>
4652 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4653 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4655 2004-05-05 Tom Tromey <tromey@redhat.com>
4657 * java/io/BufferedReader.java (skip): Removed unused
4660 2004-05-05 Michael Koch <konqueror@gmx.de>
4662 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4664 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4666 * java/text/AttributedString.java,
4667 java/text/AttributedStringIterator.java,
4668 java/text/Collator.java,
4669 java/text/DecimalFormatSymbols.java,
4670 java/text/NumberFormat.java,
4671 java/text/RuleBasedCollator.java:
4674 2004-05-05 Tom Tromey <tromey@redhat.com>
4676 * java/text/Format.java: Cleaned up imports.
4677 * java/text/DecimalFormat.java: Cleaned up imports.
4678 * java/security/SecureRandom.java: Cleaned up imports.
4679 (SecureRandom): Removed unused variable.
4680 * java/security/UnresolvedPermission.java: Cleaned up imports.
4681 * java/util/Date.java (parse): Removed unused variable.
4682 * java/util/ResourceBundle.java: Cleaned up imports.
4683 (getBundle): Removed unused variable.
4684 (tryBundle): Likewise.
4685 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4687 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4689 * java/text/SimpleDateFormat.java:
4690 (formatWithAttribute): New method. It implements
4691 the formatting process with attributes.
4692 (format): Use formatWithAttribute.
4693 (formatToCharacterIterator): New method. Use
4694 formatWithAttribute.
4696 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4698 * java/text/MessageFormat.java:
4699 (class Field): New class.
4700 (formatToCharacterIterator): New method.
4701 (format): Use formatInternal now.
4702 (formatInternal): New method. String formatter should
4703 be done here (with attributes). Attributes merging supported.
4704 (parse): More documentation.
4705 (getFormatsByArgumentIndex): New method.
4706 (setFormatByArgumentIndex): New method.
4707 (setFormatsByArgumentIndex): New method.
4709 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4711 * java/text/DecimalFormat.java
4712 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4713 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4714 (parse): Fixed handling of exponentiation notation and grouping.
4716 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4718 * java/text/DecimalFormat.java
4719 (scanFix): Build attribute array. Fixed error reporting.
4720 (applyPatternWithSymbols): Store attributes for the prefix and
4722 (formatInternal): New method. Changed the way the string is
4723 computed. Implemented attributes. Cleant up rounding in
4724 exponential notation.
4725 (format): Use formatInternal.
4726 (formatToCharacterIterator): New method.
4727 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4728 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4729 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4732 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4734 * java/security/interfaces/DSAKeyPairGenerator.java,
4735 java/security/interfaces/DSAPrivateKey.java,
4736 java/security/interfaces/DSAPublicKey.java,
4737 java/security/interfaces/RSAPrivateKey.java,
4738 java/security/interfaces/RSAPublicKey.java:
4741 2004-05-04 Michael Koch <konqueror@gmx.de>
4743 * java/nio/ByteBuffer.java,
4744 java/nio/CharBuffer.java,
4745 java/nio/DoubleBuffer.java,
4746 java/nio/FloatBuffer.java,
4747 java/nio/IntBuffer.java,
4748 java/nio/LongBuffer.java,
4749 java/nio/ShortBuffer.java:
4750 (compareTo): Fixed bogus implementation in all buffer classes.
4752 2004-05-04 Ingo Proetel <proetel@aicas.com>
4754 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4755 32 bit pixels not 8 bit pixels.
4756 (isCompatibleRaster): Added javadoc comment.
4758 2004-05-04 Ingo Proetel <proetel@aicas.com>
4760 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4763 2004-05-04 Ingo Proetel <proetel@aicas.com>
4765 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4766 (getColorModel): Return the actual color model.
4767 (getRaster): Implemented.
4768 (ColorRaster): New inner class.
4769 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4771 * java/awt/Color.java (<init>): Make exception more verbose.
4772 (createContext): Use ColorModel when creating a PaintContext.
4774 2004-05-04 Michael Koch <konqueror@gmx.de>
4776 * gnu/java/text/CharacterBreakIterator.java
4777 (previous): Removed unused variable.
4779 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4781 * gnu/java/text/FormatBuffer.java,
4782 gnu/java/text/AttributedFormatBuffer.java,
4783 gnu/java/text/StringFormatBuffer.java: New classes to implement
4784 attributed iterators in java.text.
4785 * gnu/java/text/FormatCharacterIterator.java: Moved
4786 from java/text as it is an internal class.
4787 * java/text/FormatCharacterIterator.java: Removed.
4788 * java/text/Format.java:
4789 Import gnu.java.text.FormatCharacterIterator.
4790 * Makefile.am (java_source_files): Added new files.
4791 * Makefile.in: Regenerated.
4794 2004-05-04 Mark Wielaard <mark@klomp.org>
4796 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4798 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4800 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4801 * Makefile.in: Rebuilt.
4803 2004-05-03 Mark Wielaard <mark@klomp.org>
4805 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4806 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4808 (set(String, String, int, String, String, String, String, String)):
4809 Assign this.file to path or path + "?" + query.
4810 * java/util/Arrays.java: Call static methods staticly.
4811 * java/util/zip/ZipEntry.java: Likewise.
4812 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4813 dir to this.direction.
4814 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4815 Assign static field only once.
4816 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4818 2004-05-03 Mark Wielaard <mark@klomp.org>
4820 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4821 unused variables hScrollbarHeight and vScrollbarWidth.
4822 (preferredSize): Likewise.
4823 * gnu/java/security/provider/DSAParameters.java (engineToString):
4824 Removed unused call to System.getProperty("line.seperator");
4825 * java/security/Security.java (loadProviders): Return result.
4827 2004-05-03 Tom Tromey <tromey@redhat.com>
4829 * java/net/URLStreamHandler.java (toExternalForm): Removed
4832 * java/math/BigDecimal.java (divide): Removed unused variable.
4833 * java/lang/Throwable.java: Cleaned up imports.
4834 * java/lang/ClassLoader.java: Cleaned up imports.
4835 * java/io/FilePermission.java (implies): Removed unused
4837 * java/awt/TextComponent.java: Removed unused import.
4838 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4839 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4840 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4841 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4843 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4844 * gnu/java/text/CharacterBreakIterator.java: Removed
4846 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4848 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4849 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4851 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4852 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4853 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4854 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4855 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4856 (lookupProviders): Removed unused variable.
4857 (loadNextServiceProvider): Likewise.
4858 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4860 2004-05-03 Michael Koch <konqueror@gmx.de>
4862 Fixes PR libgcj/14695:
4863 * java/net/NetworkInterface.java
4864 (getByName): Return null when no interface was found.
4866 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4867 Tom Tromey <tromey@redhat.com>
4869 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4870 additional option "-Wmissing-prototypes" for compiling C sources.
4871 Print actual filename for pass/fail rather than $name.c.
4872 * testsuite/libjava.jni/PR15133.java: New testcase file.
4873 * testsuite/libjava.jni/PR15133.c: Likewise.
4874 * testsuite/libjava.jni/PR15133.out: Likewise.
4876 2004-04-30 Roger Sayle <roger@eyesopen.com>
4878 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4881 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4883 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4884 limit the maximum heap size to avoid unnecessary thrashing.
4886 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4888 * java/text/CollationElementIterator.java (reset): Reset
4889 lookahead variables.
4891 2004-04-23 Mark Wielaard <mark@klomp.org>
4893 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4895 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4897 * java/sql/DriverManager.java:
4900 2004-04-23 Michael Koch <konqueror@gmx.de>
4903 (hashcode): Don't initialize with default value explicitely.
4904 (getContent): Removed redundant "final" keyword.
4905 (openStream): Likewise.
4906 (getURLStreamHandler): Fixed coding style.
4907 * java/net/URLConnection.java
4908 (defaultAllowUserInteraction): Don't initialize with default value
4910 (connected): Likewise.
4911 (doOutput): Likewise.
4912 (ifModifiedSince): Likewise.
4913 (dateformats_initialized): Likewise.
4914 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4916 2004-04-23 Michael Koch <konqueror@gmx.de>
4918 * gnu/java/nio/channels/FileChannelImpl.java
4919 (SET, CUR): Unused, removed.
4920 (read): Implement here directly.
4921 (implRead): Removed.
4922 (write): Implement here directly.
4923 (implWrite): Removed.
4925 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4927 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4928 javax/rmi/CORBA/Stub.java,
4929 javax/rmi/CORBA/Util.java,
4930 javax/rmi/CORBA/ValueHandler.java,
4931 javax/rmi/CORBA/ValueHandler.java,
4932 javax/rmi/PortableRemoteObject.java:
4935 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4937 * java/util/jar/JarFile.java,
4938 java/util/jar/JarInputStream.java,
4939 java/util/jar/JarOutputStream.java,
4940 java/util/jar/Manifest.java:
4943 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4945 * java/util/ArrayList.java,
4946 java/util/Calendar.java,
4947 java/util/Currency.java,
4948 java/util/HashMap.java,
4949 java/util/HashSet.java,
4950 java/util/Hashtable.java,
4951 java/util/LinkedList.java,
4952 java/util/Properties.java,
4953 java/util/PropertyPermission.java,
4954 java/util/TimeZone.java,
4955 java/util/TreeMap.java,
4956 java/util/TreeSet.java,
4957 java/util/Vector.java,
4958 java/util/WeakHashMap.java:
4961 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4963 * java/util/logging/FileHandler.java,
4964 java/util/logging/Formatter.java,
4965 java/util/logging/Handler.java,
4966 java/util/logging/Logger.java,
4967 java/util/logging/SimpleFormatter.java,
4968 java/util/logging/XMLFormatter.java:
4971 2004-04-22 Mark Wielaard <mark@klomp.org>
4973 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4974 -Wno-long-long flags variable.
4975 (gtk_c_files): Use PEDANTIC_CFLAGS.
4976 * Makefile.in: Regenerated.
4978 2004-04-22 Mark Wielaard <mark@klomp.org>
4980 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4981 Changed C++ comments into C comments.
4982 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
4985 2004-04-22 Michael Koch <konqueror@gmx.de>
4987 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
4988 Merged copyright year with GNU classpath.
4990 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4992 * javax/security/auth/x500/X500Principal.java:
4995 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4997 * javax/swing/JSlider.java:
4998 Fixed HTML tags in comments.
5000 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5002 * javax/accessibility/AccessibleText.java:
5005 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
5007 * java/net/URLStreamHandler.java
5008 (parseURL): Convert the file path to using '/' instead of native
5011 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
5014 (userInfo): New field.
5015 (URL): Set authority to the right value.
5016 (setURL): Fixed authority and file initialization.
5017 * java/net/URLStreamHandler.java
5018 (parseURL): Take care of the query tag. Build authority.
5019 (toExternalForm): Fixed URL building using authority.
5021 2004-04-22 Michael Koch <konqueror@gmx.de>
5023 * java/net/Socket.java
5024 (impl): Made package-private.
5025 * java/net/ServerSocket.java
5026 (implAccept): Access Socket.impl field directly.
5028 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5030 * java/util/prefs/Preferences.java,
5031 java/util/prefs/InvalidPreferencesFormatException.java,
5032 java/util/prefs/BackingStoreException.java,
5033 java/util/prefs/AbstractPreferences.java:
5036 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5038 * java/util/regex/Matcher.java,
5039 java/util/regex/Pattern.java:
5042 2004-04-22 Michael Koch <konqueror@gmx.de>
5044 * java/nio/charset/IllegalCharsetNameException.java
5045 (charsetName): Made private.
5046 (IllegalCharsetNameException): Added @param tag to javadoc.
5047 (getCharsetName): Added @return tag to javadoc.
5048 * java/nio/charset/MalformedInputException.java
5049 (MalformedInputException): Added @param tag to javadoc.
5050 (getInputLength): Revised method description, added @return tag.
5051 (getMessage): Added @return tag.
5053 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
5055 * java/awt/Font.java (deriveFont): Implement missing variants.
5056 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
5059 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
5061 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
5062 Set method->index values for interface methods to their itable index.
5063 (initializeClass): Call _Jv_LayoutInterfaceMethods.
5065 2004-04-21 Michael Koch <konqueror@gmx.de>
5067 * java/nio/DirectByteBufferImpl.java
5068 (shiftDown): Made static, give address as argument and
5069 provide a convenience method that overwrites shiftDown in
5070 ByteBufferImpl and calls the native shiftDown.
5071 * java/nio/MappedByteBufferImpl.java
5072 (): Use optimized method in DirectByteBufferImpl.
5073 * java/nio/natDirectByteBufferImpl.cc
5074 (shiftDown): Changed method signature. Removed usage of array_offset.
5076 2004-04-21 Michael Koch <konqueror@gmx.de>
5078 * gnu/java/net/natPlainSocketImplPosix.cc
5079 (SocketInputStream::read): Make sure returned data is a byte value.
5081 2004-04-21 Michael Koch <konqueror@gmx.de>
5083 * gnu/classpath/ServiceFactory.java,
5084 gnu/classpath/ServiceProviderLoadingAction.java,
5085 javax/imageio/ImageReader.java,
5086 javax/imageio/ImageTranscoder.java,
5087 javax/imageio/ImageWriter.java,
5088 javax/imageio/package.html,
5089 javax/imageio/spi/IIOServiceProvider.java,
5090 javax/imageio/spi/ImageInputStreamSpi.java,
5091 javax/imageio/spi/ImageOutputStreamSpi.java,
5092 javax/imageio/spi/ImageReaderWriterSpi.java,
5093 javax/imageio/spi/ImageTranscoderSpi.java,
5094 javax/imageio/spi/RegisterableService.java,
5095 javax/imageio/spi/ServiceRegistry.java,
5096 javax/imageio/spi/package.html,
5097 javax/imageio/stream/IIOByteBuffer.java,
5098 javax/imageio/stream/ImageInputStream.java,
5099 javax/imageio/stream/ImageOutputStream.java,
5100 javax/imageio/stream/package.html:
5103 (ordinary_java_source_files): Added
5104 gnu/classpath/ServiceFactory.java and
5105 gnu/classpath/ServiceProviderLoadingAction.java.
5106 (javax_source_files): Added
5107 javax/imageio/ImageReader.java,
5108 javax/imageio/ImageTranscoder.java,
5109 javax/imageio/ImageWriter.java,
5110 javax/imageio/spi/IIOServiceProvider.java,
5111 javax/imageio/spi/ImageInputStreamSpi.java,
5112 javax/imageio/spi/ImageOutputStreamSpi.java,
5113 javax/imageio/spi/ImageReaderWriterSpi.java,
5114 javax/imageio/spi/ImageTranscoderSpi.java,
5115 javax/imageio/spi/RegisterableService.java,
5116 javax/imageio/spi/ServiceRegistry.java,
5117 javax/imageio/stream/IIOByteBuffer.java,
5118 javax/imageio/stream/ImageInputStream.java and
5119 javax/imageio/stream/ImageOutputStream.java.
5120 * Makefile.in: Regenerated.
5122 2004-04-21 Michael Koch <konqueror@gmx.de>
5124 * java/util/Properties.java
5125 (load): Fix wrongly merged fix.
5127 2004-04-21 Mark Wielaard <mark@klomp.org>
5129 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5130 malloc and free buf.
5132 2004-04-21 Dalibor Topic <robilad@kaffe.org>
5134 * javax/naming/AuthenticationException.java,
5135 javax/naming/AuthenticationNotSupportedException.java,
5136 javax/naming/CannotProceedException.java,
5137 javax/naming/CommunicationException.java,
5138 javax/naming/CompoundName.java,
5139 javax/naming/ConfigurationException.java,
5140 javax/naming/ContextNotEmptyException.java,
5141 javax/naming/InitialContext.java,
5142 javax/naming/InsufficientResourcesException.java,
5143 javax/naming/InterruptedNamingException.java,
5144 javax/naming/LimitExceededException.java,
5145 javax/naming/LinkException.java,
5146 javax/naming/LinkLoopException.java,
5147 javax/naming/LinkRef.java,
5148 javax/naming/MalformedLinkException.java,
5149 javax/naming/Name.java,
5150 javax/naming/NameAlreadyBoundException.java,
5151 javax/naming/NameNotFoundException.java,
5152 javax/naming/NamingSecurityException.java,
5153 javax/naming/NoInitialContextException.java,
5154 javax/naming/NoPermissionException.java,
5155 javax/naming/NotContextException.java,
5156 javax/naming/PartialResultException.java,
5157 javax/naming/ReferralException.java,
5158 javax/naming/ServiceUnavailableException.java,
5159 javax/naming/SizeLimitExceededException.java,
5160 javax/naming/TimeLimitExceededException.java,
5161 javax/naming/directory/Attribute.java,
5162 javax/naming/directory/Attributes.java,
5163 javax/naming/directory/SearchResult.java,
5164 javax/naming/event/NamingExceptionEvent.java,
5165 javax/naming/spi/ResolveResult.java:
5168 2004-04-21 Mark Wielaard <mark@klomp.org>
5170 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5171 Changed C++ comments into C comments. Removed commented out code.
5172 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5174 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5176 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5178 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5180 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5182 * native/jni/gtk-peer/gthread-jni.c:
5185 2004-04-21 Mark Wielaard <mark@klomp.org>
5187 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5188 static fields defined in interface.
5189 * javax/awt/JDialog.java: Likewise.
5190 (JDialog): Make constructors public.
5191 (getDefaultCloseOperation): Make public.
5192 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5193 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5194 * javax/swing/JViewport.java (JViewport): Make constructor public.
5196 2004-04-21 Michael Koch <konqueror@gmx.de>
5198 * java/util/Map.java
5199 (Entry): Removed redundant "static" modifier.
5200 * java/text/AttributedCharacterIterator.java:
5201 Updated copyright year.
5203 2004-04-20 Michael Koch <konqueror@gmx.de>
5205 * javax/naming/directory/SearchControls.java:
5206 Don't explicitely extend java.lang.Object.
5207 * javax/naming/spi/DirStateFactory.java:
5208 Merged copyright year with GNU classpath.
5210 2004-04-20 Michael Koch <konqueror@gmx.de>
5212 * java/nio/channels/Channels.java:
5213 Merged coding style with GNU classpath.
5215 2004-04-20 Michael Koch <konqueror@gmx.de>
5217 * java/net/ServerSocket.java
5218 Merged coding style from GNU classpath.
5220 2004-04-20 Michael Koch <konqueror@gmx.de>
5222 * java/io/BufferedWriter.java:
5223 Reordered variables to be at top of the class.
5224 (localFlush): Removed redundant final keyword.
5226 2004-04-20 Ingo Proetel <proetel@aicas.com>
5228 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5230 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5232 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5233 for percent and permill check.
5235 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5237 * java/text/FieldPosition.java
5238 (FieldPosition) Constructor now behaves as it should according
5239 to the java documentation.
5241 2004-04-20 Mark Wielaard <mark@klomp.org>
5243 * java/util/Properties.java: Use the word umlaut, not ä in api
5246 2004-04-20 Michael Koch <konqueror@gmx.de>
5248 * java/nio/Buffer.java,
5249 java/nio/channels/AlreadyConnectedException.java,
5250 java/nio/channels/AsynchronousCloseException.java,
5251 java/nio/channels/ByteChannel.java,
5252 java/nio/channels/CancelledKeyException.java,
5253 java/nio/channels/Channel.java,
5254 java/nio/channels/Channels.java,
5255 java/nio/channels/ClosedByInterruptException.java,
5256 java/nio/channels/ClosedChannelException.java,
5257 java/nio/channels/ClosedSelectorException.java,
5258 java/nio/channels/ConnectionPendingException.java,
5259 java/nio/channels/DatagramChannel.java,
5260 java/nio/channels/FileChannel.java,
5261 java/nio/channels/FileLock.java,
5262 java/nio/channels/FileLockInterruptionException.java,
5263 java/nio/channels/GatheringByteChannel.java,
5264 java/nio/channels/IllegalBlockingModeException.java,
5265 java/nio/channels/IllegalSelectorException.java,
5266 java/nio/channels/InterruptibleChannel.java,
5267 java/nio/channels/NoConnectionPendingException.java,
5268 java/nio/channels/NonReadableChannelException.java,
5269 java/nio/channels/NonWritableChannelException.java,
5270 java/nio/channels/NotYetBoundException.java,
5271 java/nio/channels/NotYetConnectedException.java,
5272 java/nio/channels/OverlappingFileLockException.java,
5273 java/nio/channels/Pipe.java,
5274 java/nio/channels/ReadableByteChannel.java,
5275 java/nio/channels/ScatteringByteChannel.java,
5276 java/nio/channels/SelectableChannel.java,
5277 java/nio/channels/SelectionKey.java,
5278 java/nio/channels/Selector.java,
5279 java/nio/channels/ServerSocketChannel.java,
5280 java/nio/channels/SocketChannel.java,
5281 java/nio/channels/UnresolvedAddressException.java,
5282 java/nio/channels/UnsupportedAddressTypeException.java,
5283 java/nio/channels/WritableByteChannel.java,
5284 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5285 java/nio/channels/spi/AbstractSelectableChannel.java,
5286 java/nio/channels/spi/AbstractSelectionKey.java,
5287 java/nio/channels/spi/AbstractSelector.java,
5288 java/nio/channels/spi/SelectorProvider.java,
5289 java/nio/charset/spi/CharsetProvider.java:
5290 Fixed javadocs and jalopied all over java.nio.
5292 2004-04-20 Michael Koch <konqueror@gmx.de>
5294 * java/nio/ByteBufferImpl.java,
5295 java/nio/CharBufferImpl.java,
5296 java/nio/DirectByteBufferImpl.java,
5297 java/nio/DoubleBufferImpl.java,
5298 java/nio/DoubleViewBufferImpl.java,
5299 java/nio/FloatBufferImpl.java,
5300 java/nio/FloatViewBufferImpl.java,
5301 java/nio/IntBufferImpl.java,
5302 java/nio/IntViewBufferImpl.java,
5303 java/nio/LongBufferImpl.java,
5304 java/nio/LongViewBufferImpl.java,
5305 java/nio/MappedByteBufferImpl.java,
5306 java/nio/ShortBufferImpl.java,
5307 java/nio/ShortViewBufferImpl.java:
5308 Made sure all classes are final and removed final keyword from all
5311 2004-04-20 Michael Koch <konqueror@gmx.de>
5313 * java/rmi/MarshalledObject.java,
5314 java/rmi/Naming.java,
5315 java/rmi/RemoteException.java,
5316 java/rmi/activation/ActivationException.java,
5317 java/rmi/server/ServerCloneException.java,
5318 java/security/AccessController.java,
5319 java/security/AlgorithmParameterGenerator.java,
5320 java/security/AlgorithmParameters.java,
5321 java/security/CodeSource.java,
5322 java/security/Identity.java,
5323 java/security/IdentityScope.java,
5324 java/security/KeyPairGenerator.java,
5325 java/security/KeyStore.java,
5326 java/security/Security.java,
5327 java/security/Signature.java,
5328 java/security/SignatureSpi.java,
5329 java/security/SignedObject.java,
5330 java/security/spec/DSAParameterSpec.java,
5331 java/security/spec/DSAPrivateKeySpec.java,
5332 java/security/spec/DSAPublicKeySpec.java,
5333 java/sql/Array.java,
5334 java/sql/DatabaseMetaData.java,
5335 java/sql/ResultSet.java,
5336 java/text/ChoiceFormat.java,
5337 java/text/CollationElementIterator.java,
5338 java/text/CollationKey.java,
5339 java/text/Collator.java,
5340 java/text/DateFormat.java,
5341 java/text/DateFormatSymbols.java,
5342 java/text/DecimalFormatSymbols.java,
5343 java/text/Format.java,
5344 java/text/ParsePosition.java,
5345 java/text/RuleBasedCollator.java,
5346 java/text/SimpleDateFormat.java,
5347 java/text/StringCharacterIterator.java,
5348 java/util/Collections.java,
5349 java/util/PropertyResourceBundle.java,
5350 java/util/ResourceBundle.java,
5351 java/util/StringTokenizer.java,
5352 java/util/jar/Attributes.java,
5353 java/util/logging/ConsoleHandler.java,
5354 java/util/logging/LogManager.java,
5355 java/util/logging/MemoryHandler.java,
5356 java/util/logging/SocketHandler.java,
5357 javax/naming/NamingException.java:
5358 Fixed javadoc, coding style and argument names all over.
5360 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5362 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5363 constructor. (valid) Added null check.
5365 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5367 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5368 * java/io/FileOutputStream.java
5369 (FileOutputStream) Reorganized constructors. Constructors now
5370 check whether the given path is directory.
5372 2004-04-20 Michael Koch <konqueror@gmx.de>
5374 * java/net/Authenticator.java,
5375 java/net/BindException.java,
5376 java/net/ConnectException.java,
5377 java/net/ContentHandler.java,
5378 java/net/ContentHandlerFactory.java,
5379 java/net/DatagramPacket.java,
5380 java/net/DatagramSocket.java,
5381 java/net/DatagramSocketImpl.java,
5382 java/net/DatagramSocketImplFactory.java,
5383 java/net/FileNameMap.java,
5384 java/net/HttpURLConnection.java,
5385 java/net/Inet4Address.java,
5386 java/net/Inet6Address.java,
5387 java/net/InetAddress.java,
5388 java/net/InetSocketAddress.java,
5389 java/net/JarURLConnection.java,
5390 java/net/MalformedURLException.java,
5391 java/net/MulticastSocket.java,
5392 java/net/NetPermission.java,
5393 java/net/NetworkInterface.java,
5394 java/net/NoRouteToHostException.java,
5395 java/net/PasswordAuthentication.java,
5396 java/net/PortUnreachableException.java,
5397 java/net/ProtocolException.java,
5398 java/net/ServerSocket.java,
5399 java/net/Socket.java,
5400 java/net/SocketAddress.java,
5401 java/net/SocketException.java,
5402 java/net/SocketImpl.java,
5403 java/net/SocketImplFactory.java,
5404 java/net/SocketOptions.java,
5405 java/net/SocketPermission.java,
5406 java/net/SocketTimeoutException.java,
5408 java/net/URISyntaxException.java,
5410 java/net/URLClassLoader.java,
5411 java/net/URLConnection.java,
5412 java/net/URLDecoder.java,
5413 java/net/URLEncoder.java,
5414 java/net/URLStreamHandler.java,
5415 java/net/URLStreamHandlerFactory.java,
5416 java/net/UnknownHostException.java,
5417 java/net/UnknownServiceException.java:
5418 Fixed javadocs, coding style and argument names all over.
5420 2004-04-20 Michael Koch <konqueror@gmx.de>
5422 * java/lang/Byte.java,
5423 java/lang/CharSequence.java,
5424 java/lang/ClassLoader.java,
5425 java/lang/Compiler.java,
5426 java/lang/Double.java,
5427 java/lang/Float.java,
5428 java/lang/Integer.java,
5429 java/lang/Long.java,
5430 java/lang/Math.java,
5431 java/lang/Number.java,
5432 java/lang/Package.java,
5433 java/lang/Runtime.java,
5434 java/lang/RuntimePermission.java,
5435 java/lang/SecurityManager.java,
5436 java/lang/Short.java,
5437 java/lang/StringBuffer.java,
5438 java/lang/System.java,
5439 java/lang/ThreadGroup.java,
5440 java/lang/Throwable.java,
5441 java/lang/reflect/InvocationHandler.java,
5442 java/lang/reflect/Proxy.java:
5443 Fixed javadocs, coding style and argument names all over.
5445 2004-04-20 Michael Koch <konqueror@gmx.de>
5447 * java/io/BufferedWriter.java,
5448 java/io/ByteArrayInputStream.java,
5449 java/io/CharArrayWriter.java,
5450 java/io/DataInput.java,
5451 java/io/DataInputStream.java,
5453 java/io/FilterInputStream.java,
5454 java/io/InputStream.java,
5455 java/io/InputStreamReader.java,
5456 java/io/ObjectInputStream.java,
5457 java/io/ObjectStreamClass.java,
5458 java/io/PipedInputStream.java,
5459 java/io/PipedReader.java,
5460 java/io/PushbackInputStream.java,
5461 java/io/PushbackReader.java,
5462 java/io/RandomAccessFile.java,
5463 java/io/SerializablePermission.java,
5464 java/io/StreamTokenizer.java,
5465 java/io/StringWriter.java,
5466 java/io/WriteAbortedException.java,
5467 java/io/Writer.java:
5468 Fixed javadocs all over, rename arguments to match javadocs,
5471 2004-04-20 Ingo Proetel <proetel@aicas.com>
5473 * java/awt/FontMetrics.java:
5474 (charsWidth): fixed accumulation of total_width
5475 (getWidth): simple default implementation
5476 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5477 in Rectangle constructor.
5478 * java/awt/image/Raster.java (toString): Added method.
5479 * java/awt/image/SampleModel.java (<init>): Added error cause
5480 information to thrown exception.
5481 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5483 (setDataElements): New method.
5484 (setPixels): New method.
5485 (toString): New method.
5487 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5489 * java/awt/image/ComponentColorModel.java
5490 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5491 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5492 Mauve tests on this method. Improved documentation.
5494 2004-04-20 Michael Koch <konqueror@gmx.de>
5496 * javax/swing/JLayeredPane.java,
5497 javax/swing/plaf/BorderUIResource.java,
5498 javax/swing/plaf/ComponentUI.java,
5499 javax/swing/undo/CompoundEdit.java,
5500 javax/swing/undo/StateEdit.java:
5501 Fixed HTML tags in javadocs all over.
5503 2004-04-20 Michael Koch <konqueror@gmx.de>
5505 * javax/print/attribute/EnumSyntax.java
5506 (getOffset): Made protected.
5507 * javax/print/attribute/HashAttributeSet.java
5508 (HashAttributeSet): Likewise.
5509 * javax/print/attribute/ResolutionSyntax.java
5510 (getFeedResolution): Fixed typo in exception name.
5511 (getCrossFeedResolution): Likewise.
5512 * javax/print/attribute/SetOfIntegerSyntax.java
5513 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5514 * javax/print/attribute/TextSyntax.java
5515 (TextSyntax): Handle locale correctly.
5516 (hashCode): Calc better hashcode value.
5517 (equals): Fixed @return tag.
5518 (toString): New method.
5520 2004-04-20 Michael Koch <konqueror@gmx.de>
5522 * gnu/java/nio/FileLockImpl.java
5523 (static): Removed, not needed anymore.
5524 * gnu/java/nio/channels/FileChannelImpl.java
5525 (FileChannelImpl): Made final.
5526 (mode): Made private.
5527 (READ, WRITE, APPEND): Made public.
5528 (EXCL, SYNC, DSYNC): Likewise.
5529 (static): Load native JNI library, when needed.
5530 (length): Unused, removed.
5531 (available): Made public.
5532 (implPosition): Throws IOException.
5534 (implTruncate): Likewise.
5538 2004-04-20 Michael Koch <konqueror@gmx.de>
5540 * java/awt/AWTPermission.java,
5541 java/awt/Component.java,
5542 java/awt/ComponentOrientation.java,,
5543 java/awt/Dialog.java,
5544 java/awt/FontMetrics.java,
5545 java/awt/Graphics.java,
5546 java/awt/datatransfer/DataFlavor.java,
5547 java/beans/Introspector.java,
5548 java/beans/PropertyEditor.java,
5549 java/beans/PropertyEditorManager.java,
5550 java/beans/beancontext/BeanContextServiceProvider.java:
5551 Fixed HTML tags in javadocs all over.
5553 2004-04-20 Mark Wielaard <mark@klomp.org>
5555 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5556 MissingResourceException is thrown.
5557 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5558 null when a MissingResourceException is thrown. Should never happen.
5560 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5562 * java/awt/image/DataBufferShort.java,
5563 java/awt/image/DataBufferFloat.java,
5564 java/awt/image/DataBufferDouble.java,
5565 java/awt/image/PixelInterleavedSampleModel.java: New files.
5566 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5567 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5569 2004-04-20 Michael Koch <konqueror@gmx.de>
5571 * Makefile.am (java_source_files): Added
5572 java/awt/image/DataBufferDouble.java,
5573 java/awt/image/DataBufferFloat.java,
5574 java/awt/image/DataBufferShort.java and
5575 java/awt/image/PixelInterleavedSampleModel.java.
5576 * Makefile.in: Regenerated.
5578 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5580 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5581 undocumented CNI calls.
5582 * include/java-interp.h (_Jv_InterpClass): No longer
5583 extends java.lang.Class.
5584 * java/lang/Class.h (Class): Add new field `aux_info'.
5585 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5586 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5587 Use Class->aux_info instead.
5588 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5589 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5590 Use Class->aux_info instead.
5591 * java/io/natObjectInputStream.cc (allocateObject): Use
5593 * java/lang/natClass.cc (newInstance): Likewise.
5594 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5595 * java/lang/natObject.cc (clone): Likewise.
5596 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5597 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5598 JvAllocObject. Allocate klass->aux_info here for interpreted
5601 2004-04-17 Mark Wielaard <mark@klomp.org>
5603 * javax/swing/JToggleButton.java (ToggleButtonModel):
5604 Make public static inner class.
5605 * javax/swing/JTabbedPane.java (setComponentAt):
5606 Call Page.setComponent().
5607 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5608 (WRAP_TAB_LAYOUT): Make public, value is 0.
5609 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5610 Make private static inner class.
5612 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5614 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5615 arguments to match new signature. Remove FIXME comments.
5617 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5619 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5621 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5624 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5626 * Makefile.am: Added new file.
5627 * Makefile.in: Regenerate.
5628 * javax/swing/ImageIcon.java:
5629 (ImageIcon(file)): set description of the icon
5631 * javax/swing/JCheckBoxMenuItem.java:
5632 Mostly Implemented. Work in progress.
5633 * javax/swing/JRadioButtonMenuItem.java:
5634 Reimplement constructors to use JToggleButtonModel.
5635 * javax/swing/plaf/basic/BasicIconFactory.java:
5636 (getCheckBoxMenuItemIcon): return check box
5638 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5639 paint menu item selected only when it is armed and
5642 2004-04-02 David Jee <djee@redhat.com>
5644 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5645 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5646 * java/awt/Component.java
5647 (add): Set the parent of the popup as this component.
5648 * java/awt/PopupMenu.java
5649 (addNotify): Create popup menu when peer is null.
5650 (show): Call addNotify() if peer is null.
5651 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5652 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5653 argument for gtk_menu_popup() as zero. This causes the popup menu to
5654 respond to any mouse button.
5656 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5658 * Makefile.am: Added new file.
5659 * Makefile.in: Regenerate.
5660 * javax/swing/JRadioButtonMenuItem.java:
5662 * javax/swing/plaf/basic/BasicIconFactory.java:
5663 (getRadioButtonMenuItemIcon): Return
5665 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5666 (getPreferredSize): Add size of checkIcon if it
5668 (installDefaults): Don't initialize checkIcon.
5669 It's value will be set in subclasses.
5670 (uninstallDefaults): remove uninstallation of
5672 (paint): Moved code to paintMenuItem().
5673 (paintMenuItem): Implemented.
5674 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5675 UI delegate for JRadioButtonMenuItem.
5677 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5679 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5680 Corrected position of the accelerator.
5682 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5684 * Makefile.am: Added new file.
5685 * Makefile.in: Regenerate.
5686 * javax/swing/JMenuItem.java: Partly
5687 implemented. Work in progress
5688 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5689 Changed default value of acceleratorDelimiter.
5690 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5691 New class. Partly implemented.
5693 2004-03-26 Mark Wielaard <mark@klomp.org>
5695 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5696 (item_activate): Declare label before use.
5697 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5698 (gtkSetFont): Removed unused variable label.
5699 (addExposeFilter): Declare variables before use.
5700 (removeExposeFilter): Likewise.
5701 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5702 (ok_clicked): Declare str_fileName before use.
5704 2004-03-26 David Jee <djee@redhat.com>
5706 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5707 (addSeparator): Remove.
5708 * java/awt/Menu.java
5709 (separator): Remove static final MenuItem field.
5710 (separatorLabel): New static final String field.
5711 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5712 Use separatorLabel to denote that it is a separator.
5713 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5714 of reusing the static separator instance, because a MenuItem instance
5715 can't be added more than once without being cloned.
5716 * java/awt/peer/MenuPeer.java
5717 (addSeparator): Remove from interface.
5719 2004-03-26 David Jee <djee@redhat.com>
5721 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5722 (connectSignals): New native method declaration.
5723 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5724 * java/awt/MenuItem.java
5725 (getActionCommand): Return the label if the action command is not set.
5726 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5727 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5728 gtk_menu_shell_append().
5729 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5730 (item_activate): Fix argument type.
5731 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5733 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5735 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5736 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5737 given. Add the menu widget's top-level GtkWindow to the global window
5738 group, so it can grab the pointer.
5739 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5740 gtk_menu_shell_append().
5742 2004-03-23 Graydon Hoare <graydon@redhat.com>
5744 * java/text/AttributedString.java
5745 (addAttribute): Fix off-by-one.
5746 (getIterator): Likewise.
5747 * java/text/AttributedStringIterator.java
5748 (getRunLimit): Correct logic.
5749 (getRunStart): Likewise.
5750 (getAttribute): Fix inequality.
5751 (getAttributes): Likewise.
5752 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5754 2004-03-23 Kim Ho <kho@redhat.com>
5756 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5757 (calculateSizes): Return real width and height.
5759 2004-03-23 Kim Ho <kho@redhat.com>
5761 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5762 (calculateTabRects): Set the selectedRun before
5763 trying to rotate tabs.
5765 2004-03-23 Kim Ho <kho@redhat.com>
5767 * Makefile.am: New file
5768 * Makefile.in: Regenerate
5769 * java/awt/Graphics.java: (drawRect):
5770 Draw to the correct point.
5771 * javax/swing/DefaultSingleSelectionModel.java
5772 (isSelected): Return true if the selected index
5774 * javax/swing/JLabel.java: Do not change mnemonic
5775 index if text is null.
5776 * javax/swing/JProgressBar.java: Use JComponent's
5778 * javax/swing/JScrollBar.java: Ditto.
5779 * javax/swing/JSlider.java: Ditto.
5780 * javax/swing/JTabbedPane.java: Reimplement.
5781 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5782 Add defaults for TabbedPane.
5783 * javax/swing/plaf/basic/BasicArrowButton.java:
5785 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5786 (paintDeterminate): Don't paint String if it's
5788 (paintIndeterminate): ditto.
5789 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5792 2004-03-19 Michael Koch <konqueror@gmx.de>
5794 * java/awt/image/AffineTransformOp.java
5795 (AffineTransformOp): Made public.
5796 * javax/swing/JComponent.java
5797 (listenerList): Made protected.
5798 (accessibleContext): Likewise.
5799 * javax/swing/JList.java
5800 (valueChanged): Dont use internal fields of ListSelectionEvent.
5801 * javax/swing/JViewport.java
5802 (getView): Dont use internal fields of Component.
5803 (addImpl): Likewise.
5804 * javax/swing/Timer.java
5805 (isRunning): Made public.
5808 * javax/swing/UIDefaults.java
5809 (getInt): Made public.
5810 * javax/swing/plaf/basic/BasicListUI.java
5811 (mousePressed): Dont use internal fields of MouseEvent.
5812 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5813 * javax/swing/plaf/basic/BasicScrollBarUI.java
5814 (arrowIcon): Made static.
5815 * javax/swing/plaf/basic/BasicViewportUI.java
5816 (stateChanged): Dont use internal field on ChangeEvent.
5817 * javax/swing/text/JTextComponent.java
5818 (getUI): Call UIManager.getUI().
5819 (updateUI): Use getUI().
5821 2004-03-19 Graydon Hoare <graydon@redhat.com>
5823 * javax/swing/JComponent.java: Turn off double buffer by default.
5824 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5825 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5826 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5827 Use cairo to copy areas.
5828 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5829 Initialize and set clip region.
5831 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5833 * java/applet/Applet.java (preferredSize): Override deprecated
5834 variant of getPreferredSize.
5835 (minimumSize): Override deprecated variant of getMinimumSize.
5837 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5839 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5840 (drawImage(img,xform,bgcolor,obs)): New Method.
5841 Helper function that every drawImage method will
5843 (drawRaster): Added new parameter, bgcolor. All
5844 transparent pixels are changed to bgcolor before
5846 (drawRenderedImage): Fixed to use changed drawRaster().
5847 (drawImage(image,xform,obs): Fixed to use new helper function
5848 (drawImage(image,op,x,y)): Ditto.
5849 (drawImage (img,x,y,observer)): Ditto.
5850 ((PainterThread) bgcolor): New Field.
5851 ((PainterThread) (setPixels)): Changed all transparent pixels
5853 (drawImage(img,x,y,width,height,bgcolor,observer)):
5854 Fixed FIXME - all the transparent pixels are
5855 changed to the specified bgcolor.
5856 (drawImage(img, x, y, width, height, observer): Changed to
5858 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5859 Fixed FIXME- changed all transparent pixels to bgcolor.
5860 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5861 Changed to use function above.
5863 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5865 * java/applet/Applet.java (dimensions): New field.
5866 (getDimensions): New method.
5867 (getPreferredSize): Call getDimensions.
5868 (getMinimumSize): Likewise.
5870 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5872 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5873 * jni/classpath/jnilink.c: Likewise.
5875 * java/applet/Applet.java (getPreferredSize): New method.
5876 (getMinimumSize): New method.
5878 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5880 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5881 (_Jv_AllocObjectNoFinalizer): Likewise.
5882 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5883 (_Jv_AllocPtrFreeObject): Likewise.
5884 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5885 directly even in the JVMPI case.
5886 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5887 _Jv_AllocObject calls.
5888 * gcj/javaprims.h: Update prototypes.
5889 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5890 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5891 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5893 2004-04-14 Andrew Haley <aph@redhat.com>
5894 Bryce McKinlay <mckinlay@redhat.com>
5896 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5897 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5898 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5900 * testsuite/libjava.lang/InvokeInterface.java: New file.
5901 * testsuite/libjava.lang/InvokeInterface.out: New file.
5903 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5905 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5907 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5908 StackTraceElement directly.
5909 (newElement): New native helper method to create StackTraceElement
5910 bypassing Java access control.
5911 (createStackTraceElement): Use newElement() instead of directly
5912 calling StackTraceElement's constructor.
5913 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5915 2004-04-01 Michael Koch <konqueror@gmx.de>
5917 * java/lang/SecurityManager.java
5918 (checkAwtEventQueueAccess): Implemented.
5920 2004-04-01 Gary Benson <gbenson@redhat.com>
5922 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5923 (_Jv_SearchMethodInClass): Likewise.
5925 2004-03-26 Peter Moon <peterm@miraculum.com>
5927 * java/text/NumberFormat.java: Fix spelling of setCurrency
5930 2004-03-21 Anthony Green <green@redhat.com>
5932 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5933 recursion when searching for the system ClassLoader.
5935 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5937 * java/net/ServerSocket.java
5938 (accept): Close the socket when error occured.
5940 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
5942 * java/net/URI.java (parseURI): Added unquoting.
5943 (unquote): New method.
5944 (quoteAuthority): Implemented.
5945 (quote(String,String)): New method.
5946 (quotePath): Implemented.
5947 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5948 (getSchemeSpecificPart): Removed FIXME comment.
5949 (getRawAuthority): Return new rawAuthority field.
5950 (getAuthority): Removed FIXME comment.
5951 (getRawUserInfo): Return new rawUserInfo field.
5952 (getUserInfo): Removed FIXME comment.
5953 (getRawPath): Return new rawPath field.
5954 (getPath): Removed FIXME comment.
5955 (getRawQuery): Return new rawQuery field.
5956 (getQuery): Removed FIXME comment.
5957 (getRawFragment): Return new rawFragment field.
5958 (getFragment): Removed FIXME comment.
5960 2004-03-20 Michael Koch <konqueror@gmx.de>
5962 * java/net/URLConnection.java: Merged copyright year with classpath.
5964 2004-03-20 Norbert Frese <postfach@nfrese.net>
5966 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5967 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5968 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5970 (getObjectInputStream): Return object reference, throw IOException if null.
5971 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5972 (getObjectOutputStream): Return object reference, throw IOException if null.
5973 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5974 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5975 (UnicastConnectionManager): Throw RemoteException if port is not available.
5976 (getInstance): Throw RemoteException.
5977 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5978 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5979 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5980 Collect Exceptions which are returned by a rmi-call and fix void returns.
5981 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
5982 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5983 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
5984 (dispatch): Answer ping messages which are sent by other java implementions.
5985 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
5986 for every rmi-message and fix void return problems.
5987 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
5988 (UnicastServerRef): Throw RemoteException.
5989 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
5990 In some situations it is necessary to export a subclass of the class which has the _Stub.
5991 For instance when the class with has the _Stub is abstract.
5992 (findStubSkelClass): New method which looks for the class which has the _Stub.
5993 (getClientHost): Implementated.
5994 * gcc/libjava/java/rmi/server/RemoteServer.java
5995 (getClientHost): Implementated.
5996 * gcc/libjava/Makefile.am (rmi_java_source_files):
5997 Added gnu/java/rmi/server/RMIIncomingThread.java.
5998 * Makefile.in: Regenerated.
6000 2004-03-20 Michael Koch <konqueror@gmx.de>
6002 * java/net/InetAddress.java
6003 (getLocalHostname): Added javadoc.
6005 2004-03-19 Per Bothner <per@bothner.com>
6007 * configure.in: FILE variable overrides FLATFORM when linking
6008 natFileChannelXXX.cc.
6010 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
6011 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
6013 2004-03-19 Per Bothner <per@bothner.com>
6015 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
6016 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
6017 * Makefile.am: Update accordingly.
6018 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
6019 as aliases for UnicodeLittle and UnicodeBig.
6021 2004-03-20 Mark Wielaard <mark@klomp.org>
6023 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6024 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
6025 Don't access ws when it is null.
6026 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
6029 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
6031 * java/lang/ThreadGroup.java (list): Changed print to println.
6033 2004-03-19 Mark Wielaard <mark@klomp.org>
6035 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
6038 2004-02-10 Randolph Chung <tausq@debian.org>
6040 * configure.in: Build java for hppa target.
6041 * configure: Regenerate.
6042 * libjava/configure.host (hppa-*): Add target.
6043 * libjava/sysdeps/pa/lock.h: New file.
6045 2004-03-19 Mark Wielaard <mark@klomp.org>
6047 Reported by Stephen Crawley
6048 * java/io/FilePermission.java (implies): Use String.length() -1 to
6049 access last char of String.
6051 2004-03-19 Michael Koch <konqueror@gmx.de>
6053 * java/awt/image/AffineTransformOp.java
6054 (AffineTransformOp): Made public.
6055 * javax/swing/JComponent.java
6056 (listenerList): Made protected.
6057 (accessibleContext): Likewise.
6058 * javax/swing/JList.java
6059 (valueChanged): Dont use internal fields of ListSelectionEvent.
6060 * javax/swing/JViewport.java
6061 (getView): Dont use internal fields of Component.
6062 (addImpl): Likewise.
6063 * javax/swing/Timer.java
6064 (isRunning): Made public.
6067 * javax/swing/UIDefaults.java
6068 (getInt): Made public.
6069 * javax/swing/plaf/basic/BasicListUI.java
6070 (mousePressed): Dont use internal fields of MouseEvent.
6071 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
6072 * javax/swing/plaf/basic/BasicScrollBarUI.java
6073 (arrowIcon): Made static.
6074 * javax/swing/plaf/basic/BasicViewportUI.java
6075 (stateChanged): Dont use internal field on ChangeEvent.
6076 * javax/swing/text/JTextComponent.java
6077 (getUI): Call UIManager.getUI().
6078 (updateUI): Use getUI().
6080 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6082 * verify.cc: Undef PC.
6084 2004-03-18 Michael Koch <konqueror@gmx.de>
6086 * java/nio/channels/spi/AbstractSelectableChannel.java
6087 (keys): Initialize at declaration.
6088 (locate): keys cant be null.
6090 (addSelectionKey): New method.
6091 (removeSelectionKey): New method.
6092 * java/nio/channels/spi/AbstractSelectionKey.java
6093 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
6094 * java/nio/channels/spi/AbstractSelector.java
6095 (provider): Javadoc added.
6096 (cancelledKeys): Javadoc added.
6097 (cancelKey): Javadoc added, add key to cancelledKeys.
6098 (deregister): Implemented.
6100 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6102 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
6103 MAP_FAILED to void *.
6105 2004-03-12 Graydon Hoare <graydon@redhat.com>
6107 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6108 * javax/swing/JComponent.java (paint): Use persistent double buffer.
6109 * javax/swing/JList.java (ListListener): Revalidate on changes.
6110 * javax/swing/JScrollPane.java: Reimplement.
6111 * javax/swing/JViewport.java: Reimplement.
6112 * javax/swing/ScrollPaneLayout.java: Reimplement.
6113 * javax/swing/ViewportLayout.java: Tidy up.
6114 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6115 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6116 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6117 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6120 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6122 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6123 (window_wm_protocols_filter): New function.
6124 (window_focus_in_cb): Remove function.
6125 (window_focus_out_cb): Likewise.
6126 (window_focus_or_active_state_change_cb): New function.
6127 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6128 (connectSignals): Don't attach handlers to focus-in-event or
6129 focus-out-event signals. Handle notify signal.
6131 2004-03-11 David Jee <djee@redhat.com>
6133 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6134 (gtkSetLabel): New native method declaration.
6135 (setLabel): Use gtkSetLabel.
6136 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6137 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6139 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6141 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6142 black when color argument is null.
6144 2004-03-10 Kim Ho <kho@redhat.com>
6146 * java/awt/Container.java: Remove check
6149 2004-03-10 Kim Ho <kho@redhat.com>
6151 * java/awt/Container.java: (visitChild):
6152 Remove candidate clip. Use the component
6154 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6155 (handleEvent): Use the PaintEvent's clip.
6157 2004-03-10 Kim Ho <kho@redhat.com>
6159 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6160 (handleEvent): Don't set the clip for the
6163 2004-03-09 Graydon Hoare <graydon@redhat.com>
6165 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6166 Fix double <-> fixed macros, reset font transform.
6167 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6170 2004-03-09Â Kim Ho <kho@redhat.com>
6172 * java/awt/Container.java: (visitChild): Move
6173 the x and y coordinate of the component rectangle
6174 to correct position.
6175 (handleEvent): Forward drag events to the pressed
6177 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6179 (ArrowButtonListener::mousePressed): Stop the
6181 (mouseDragged): Implement.
6182 (TrackListener::mousePressed): Only react if
6183 the press doesn't occur on the thumb, otherwise
6184 just set the offset.
6185 (TrackListener::mouseReleased): Unset the isAdjusting
6187 (createIncreaseIcon): Switch icon.
6188 (createDecreaseIcon): Switch icon.
6189 (calculatePreferredSize): Use width.
6190 (getThumbBounds): Use the top as the lower value.
6191 (layoutVScrollBar): Switch the button locations.
6192 (paintIncreaseHighlight): Paint correct side of thumb.
6193 (paintDecreaseHighlight): ditto.
6194 (valueForYPosition): Use top as the lower value.
6195 * javax/swing/plaf/basic/BasicSliderUI.java:
6197 (mouseDragged): Implement.
6198 (mousePressed): Only react when the thumb isn't
6199 pressed, otherwise just set offset.
6200 (mouseReleased): Handle a release of the thumb.
6201 (scrollDueToClickInTrack): Stop the timer first.
6202 * javax/swing/JProgressBar.java:
6203 (setString): Fix change condition.
6204 * javax/swing/JSeparator.java:
6207 2004-03-08 David Jee <djee@redhat.com>
6209 * java/awt/image/AffineTransformOp.java:
6210 (filter): Use Graphics2D interface instead of directly using the
6213 2004-03-05 David Jee <djee@redhat.com>
6215 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6216 (handleEvent): Action events are generated upon MOUSE_RELEASED.
6217 * java/awt/Container.java
6218 (acquireComponentForMouseEvent): Fixed.
6219 (handleEvent): Fixed.
6220 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6221 (state_to_awt_mods_with_button_states): New method.
6222 (pre_event_handler): Fixed mouse event generation.
6224 2004-03-05 Olga Rodimina <rodimina@redhat.com>
6226 gnu/java/awt/peer/gtk/GdkGraphics2D.java
6227 (GdkGraphics2D (BufferedImage)): Initialize
6228 pixmap associated with specified BufferedImage.
6229 (setPaint): Changed implementation of Texture
6230 Paint to use AffineTransformOp.
6231 * java/awt/image/AffineTransformOp.java
6232 (createCompatibleDestRaster): Throw RasterFormatException
6233 if resulting width or height of raster is 0.
6235 2004-03-04 Olga Rodimina <rodimina@redhat.com>
6237 * java/awt/image/AffineTransformOp.java:
6238 Removed unnecessary field interpolationType.
6239 Formatted some of the lines to be consistent with
6241 (AffineTransformOp): Create new RenderingHints
6242 containing specified interpolation type.
6243 (createCompatibleDestImage): Implemented.
6244 (createCompatibleDestRaster): Implemented.
6245 (filter): Implemented.
6246 (getBounds2D(BufferedImage)): Implemented.
6247 (getBounds2D(Raster)): Implemented.
6248 (getInterpolationType): Get interpolation value from
6251 2004-03-04 David Jee <djee@redhat.com>
6253 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6254 (setFont): Check if child peers are null.
6256 2004-03-04 Graydon Hoare <graydon@redhat.com>
6258 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6260 (libjava_arguments): Add new libraries to argument list.
6262 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6264 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6265 * Makefile.in: Re-generated.
6266 * java/awt/image/AffineTransformOp.java: New Class.
6268 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6270 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6271 (setPaint): Interpret correctly TexturePaint's
6273 (drawImage): Fixed scale factors of the affine
6276 2004-02-27 David Jee <djee@redhat.com>
6278 * gnu/java/awt/peer/gtk/GdkGraphics.java
6279 (GdkGraphics(Component)): Inherit font from component.
6280 (drawString): Use font style.
6281 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6282 (gtkSetFont): New native method declaration.
6283 (setFont): New method.
6284 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6285 (gtkSetFont): New native method declaration.
6286 (setFont): Call new native method gtkSetFont.
6287 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6288 (setFont): For all child components who do not their fonts set,
6289 set their peers' fonts with this container's font.
6290 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6291 Move all native method declarations to the top for readability.
6292 (gtkSetFont): New native method declaration.
6293 (setFont): New method.
6294 * java/awt/Component.java
6295 (setFont): Invalidate after setting the font.
6296 * java/awt/Container.java
6297 (invalidateTree): New method.
6298 (setFont): Invalidate the container tree after setting the font.
6299 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6300 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6301 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6302 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6303 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6304 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6305 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6306 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6308 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6310 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6311 (updateBufferedImage): New helper function.
6312 Updates BufferedImage in memory if it was changed.
6313 (draw): changed to update BufferedImage in memory after
6314 this drawing operation
6316 (draw3DRect): Ditto.
6317 (fill3DRect): Ditto.
6319 (drawRaster): Ditto.
6320 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6321 no affine transformation.
6322 (drawGlyphVector): Ditto.
6324 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6326 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6327 (isBufferedImageGraphics): New Helper function.
6328 Returns true if this graphics2d can be used to draw
6329 into buffered image and false otherwise.
6330 (updateImagePixels): New Helper function.
6331 Updates pixels in the BufferedImage.
6332 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6333 (getImagePixels): New function. Returns pixels
6334 of the buffered image associated with
6337 2004-02-26 David Jee <djee@redhat.com>
6339 * java/awt/BorderLayout.java
6340 (layoutContainer): Fix width and height calculations to ensure
6341 that they're non-negative.
6342 * java/awt/Component.java
6343 (setBackground): If c is null, inherit from closest ancestor whose
6344 background color is set.
6346 2004-02-26 Kim Ho <kho@redhat.com>
6348 * Makefile.am: Add new files.
6349 * Makefile.in: Re-generate.
6350 * javax/swing/JProgressBar.java:
6351 (JProgressBar(int, int int)): Throw
6352 IllegalArgumentException if orientation is
6354 (JProgressBar(BoundedRangeModel)): Create
6355 ChangeListener and register it. UpdateUI.
6356 (getChangeListeners): Implement.
6357 (setModel): Reset ChangeListener.
6358 * javax/swing/JScrollBar.java: Implement.
6359 * javax/swing/JSeparator.java: Implement.
6360 * javax/swing/JSlider.java:
6361 (JSlider(int, int, int, int)): Throw
6362 IllegalArgumentException if orientation
6364 (getChangeListeners): Fix method name.
6365 * javax/swing/SwingUtilities.java:
6366 (layoutCompoundLabel): If there is no text,
6367 set the text rectangle dimensions to 0.
6368 * javax/swing/plaf/basic/BasicButtonUI.java:
6369 (paint): If there is no text, don't paint it.
6370 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6372 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6374 * javax/swing/plaf/basic/BasicSliderUI.java:
6375 (propertyChange): If the model changes, change
6376 the listeners accordingly.
6378 2004-02-25 Graydon Hoare <graydon@redhat.com>
6380 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6381 * javax/swing/JList.java: Reimplement.
6382 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6383 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6384 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6385 * javax/swing/ListModel.java: Javadoc.
6386 * javax/swing/ListSelectionModel.java: Add missing methods.
6387 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6388 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6389 * javax/swing/ListModel.java: Javadoc and corrections.
6390 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6392 2004-02-25 David Jee <djee@redhat.com>
6394 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6395 (GtkFontPeer): Change default size to 12.
6396 * gnu/java/awt/peer/gtk/GtkToolkit.java
6397 (getFontPeer): Change default size to 12.
6398 (getClasspathFontPeer): Likewise. Set default name to "Default".
6399 * java/awt/Font.java
6400 (Font(Map)): Call Font(String,Map).
6401 (Font(String,Map)): If attrs is null, initialize it as an empty
6402 HashMap, which will ensure that the Font will get default attributes.
6404 2004-02-25 David Jee <djee@redhat.com>
6406 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6407 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6408 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6409 * gnu/java/awt/peer/gtk/GtkToolkit.java
6410 (getFontPeer(String,int)): Call the new overload method with size 1.
6411 (getFontPeer(String,int,int)): New method. Overloaded with size
6413 (getClasspathFontPeer): Set the size of the font.
6415 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6417 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6418 (bimage): New field.
6419 (GdkGraphics2D): New Constructor. Constructs Graphics
6420 object that can be used to draw into the Buffered Image.
6421 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6422 (GdkGraphicsEnvironment): Fixed to include public
6424 (createGraphics): Implemented.
6425 * gnu/java/awt/peer/gtk/GtkToolkit.java
6426 (getLocalGraphicsEnvironment): Implemented.
6427 * java/awt/GraphicsEnvironment.java:
6428 (getLocalGraphicsEnvironment): Implemented.
6429 * java/awt/image/BufferedImage.java:
6430 (createGraphics): Implemented.
6432 2004-02-24 David Jee <djee@redhat.com>
6434 * java/awt/Component.java
6435 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6436 * java/awt/Container.java
6437 (addNotifyContainerChildren): Fix event enabling.
6439 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6441 * Makefile.am: Added
6442 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6443 * Makefile.in: Re-generated.
6444 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6447 2004-02-19 Kim Ho <kho@redhat.com>
6449 * Makefile.am: Add BasicProgressBarUI
6450 * Makefile.in: Regenerate.
6451 * javax/swing/JProgressBar.java:
6453 * javax/swing/plaf/basic/BasicLookAndFeel.java
6454 Add constants for JProgressBar.
6455 * javax/swing/plaf/basic/BasicProgressBarUI.java
6457 * javax/swing/plaf/basic/BasicSliderUI.java
6459 (calculateGeometry): New method
6460 (paint): Remove unnecessary size calculations.
6462 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6464 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6465 (drawRaster): Fixed small error that caused
6466 imageToUser transformation to be set incorrectly.
6467 (toString): Implemented.
6469 2004-02-18 David Jee <djee@redhat.com>
6471 * java/awt/CardLayout.java
6472 (addLayoutComponent): Show the first component added as the default.
6473 (removeLayoutComponent): After removing, show the next component.
6474 (gotoComponent): If there is only one component, show it and return.
6476 2004-02-18 Kim Ho <kho@redhat.com>
6478 * javax/swing/JSlider.java: Re-order
6480 * javax/swing/JLabel.java: Re-order
6482 * javax/swing/JComponent.java:
6483 (addPropertyChangeListener):
6485 (removePropertyChangeListener):
6487 (firePropertyChangeEvent):
6490 2004-02-17 David Jee <djee@redhat.com>
6492 * java/awt/Component.java
6493 (show): Dispatch ComponentEvent via system event queue.
6497 (reshape): Likewise.
6498 * java/awt/Window.java
6499 (setBoundsCallback): Likewise.
6501 2004-02-17 David Jee <djee@redhat.com>
6503 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6504 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6505 Use gtk_widget_set_size_request() instead of the deprecated
6506 gtk_widget_set_usize().
6508 2004-02-17 Kim Ho <kho@redhat.com>
6510 * javax/swing/JSlider.java: Fix comments and
6511 make property strings constants.
6512 (createStandardLabels): Use the labels
6513 preferred size as bounds.
6514 * javax/swing/plaf/basic/BasicSliderUI.java
6516 (ScrollHandler::actionPerformed): Don't
6517 calculate the timer stop value. Let the
6518 MouseListeners find the stop location.
6519 (getPreferredHorizontalSize): Re-implement.
6520 (getPreferredVerticalSize): ditto.
6521 (getMinimumHorizontalSize): ditto.
6522 (getMinimumVerticalSize): ditto.
6523 (getPreferredSize): ditto.
6524 (getMinimumSize): ditto.
6525 (getMaximumSize): ditto.
6526 (paintTicks): Use doubles to find the
6528 (paintHorizontalLabel):Â Use preferredSize
6529 as initial width and height.
6530 (paintVerticalLabel): ditto.
6532 2004-02-17 Kim Ho <kho@redhat.com>
6534 * javax/swing/JLabel.java: Changed
6535 property strings to constants.
6536 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6538 (setText): Change mnemonic index if
6540 (setDisplayedMnemonicIndex): Fire property
6542 (getDisplayedMnemonicIndex): Remove check
6545 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6547 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6548 (drawImage(img,xform,obs)): Invert xform before
6549 passing the xform to cairo.
6550 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6551 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6553 (drawImage (img,x,y,w,h,obs)): Implemented.
6554 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6555 bgcolor,obs)): Partly implemented.
6556 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6558 * java/awt/image/BufferedImage.java:
6559 (copyData): if dest is null, create raster with same
6560 dimensions as the current image.
6562 2004-02-16 Graydon Hoare <graydon@redhat.com>
6564 * javax/swing/plaf/basic/BasicLabelUI.java
6565 (getPreferredSize): Use layoutCL.
6566 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6567 (getPreferredButtonSize): Start with empty view rect, layout using
6568 component's preferred alignment.
6569 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6572 2004-02-16 David Jee <djee@redhat.com>
6574 * java/awt/Component.java
6575 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6576 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6577 (move): Erase old bounds and repaint new bounds. Dispatch
6578 COMPONENT_MOVED ComponentEvent.
6579 (resize): Erase old bounds and repaint new bounds. Dispatch
6580 COMPONENT_RESIZED ComponentEvent.
6581 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6583 * java/awt/Window.java
6584 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6587 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6589 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6590 (setRenderingHint): Added implementation of
6591 Interpolation rendering hints.
6592 (setRenderingHints): Ditto.
6593 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6594 (drawPixels): fixed to allow user to choose type
6595 of filtering that should be used when displaying images.
6596 (cairoSurfaceSetFilter): New method. Sets filter type for
6597 interpolation of pixel values.
6599 2004-02-16 David Jee <djee@redhat.com>
6601 * java/awt/GridBagLayout.java
6602 (calcCellSizes): Rows or columns with zero sizes should still be
6603 considered for extra space distribution.
6605 2004-02-16 Kim Ho <kho@redhat.com>
6607 * javax/swing/JLabel.java: Re-implement.
6608 * javax/swing/plaf/basic/BasicLabelUI.java
6610 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6613 2004-02-16 Kim Ho <kho@redhat.com>
6615 * javax/swing/JSlider.java: Fix indentation and comments.
6616 (setModel): Remove null check to conform with Sun's.
6617 (setOrientation): Throw exception if not
6618 HORIZONTAL or VERTICAL.
6619 (getInverted): Use private variable instead of
6620 ComponentOrientation.
6621 (setInverted): ditto.
6622 * javax/swing/plaf/basic/BasicSliderUI.java:
6623 Fix indentation and comments.
6624 (propertyChange): Remove check for inverted slider, handle
6626 (getMinimumSize): Return preferred size.
6627 (getMaximumSize): ditto.
6628 (calculateFocusRect): Don't relocate rectangle.
6629 (drawInverted): Return XOR of the slider's inversion and
6630 the component's orientation.
6631 (paint): Update leftToRightCache
6633 2004-02-13 David Jee <djee@redhat.com>
6635 * java/awt/GridBagLayout.java
6636 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6637 code to helper methods.
6638 (sortBySpan): New helper method.
6639 (distributeSizeAndWeight): Likewise.
6640 (calcCellWeights): Likewise.
6641 (calcCellSizes): Add comments.
6643 2004-02-13 David Jee <djee@redhat.com>
6645 * java/awt/Component.java
6646 (show): Only do something if component is invisible at the moment.
6647 (hide): Only do something if component is visible at the moment.
6648 (reshape): If lightweight, erase old bounds and repaint new bounds.
6650 2004-02-13 Kim Ho <kho@redhat.com>
6652 * Makefile.am: Updated for new file.
6653 * Makefile.in: Regenerated.
6654 * javax/swing/JSlider.java: Reimplement.
6655 * javax/swing/SwingUtilities.java
6656 (layoutCompoundLabel): Use icon height
6658 (paintComponent): Implement.
6659 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6660 Add JSlider defaults.
6661 * javax/swing/plaf/basic/BasicSliderUI.java:
6662 Implement. New file.
6664 2004-03-17 Michael Koch <konqueror@gmx.de>
6666 * gnu/java/net/PlainDatagramSocketImpl.java
6667 (RECEIVE_LOCK): New member field.
6668 (SEND_LOCK): New member field.
6669 (send0): New method.
6670 (send): Synchronize on SEND_LOCK.
6671 (receive0): New method.
6672 (receive): Synchronize on RECEIVE_LOCK.
6673 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6674 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6675 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6676 (send0): Renamed from send.
6677 (receive0): Renamed from receive.
6678 2004-03-17 Michael Koch <konqueror@gmx.de>
6680 * gnu/java/net/natPlainSocketImplPosix.cc
6681 (write): Just call write(jbyteArray, offset, len).
6682 (read): Just call read(jbyteArray, offset, len).
6684 2004-03-16 Michael Koch <konqueror@gmx.de>
6686 * javax/swing/JTabbedPane.java
6687 (serialVersionUID): New field.
6689 2004-03-16 Norbert Frese <postfach@nfrese.net>
6691 * java/net/InetAddress.java
6692 (getByName): Handle hostname == "" case.
6694 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6696 Reported by: Adam Heath <doogie@debian.org>
6697 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6700 2004-03-15 Michael Koch <konqueror@gmx.de>
6702 * java/util/Locale.java: Reverting my last patch
6703 and add a comment why the original version was okay.
6705 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6707 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6708 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6709 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6710 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6712 2004-03-12 Michael Koch <konqueror@gmx.de>
6714 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6716 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6718 * java/net/URI.java (toURL): Implemented.
6720 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6723 (URI_REGEXP) updated to contain scheme specific part.
6724 (SCHEME_SPEC_PART_GROUP) new constant.
6725 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6726 updated to make room for SCHEME_SPEC_PART_GROUP.
6727 (parseURI) parse scheme specific part.
6728 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6729 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6730 getQuery, getFragment) implemented.
6732 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6734 * libraries/javalib/java/net/URI.java
6735 partially implemented using java.util.regex.
6736 (URI_REGEXP) new constant. Used to parse URIs.
6737 (SCHEME_GROUP) new constant representing index of scheme group
6739 (AUTHORITY_GROUP) new constant representing index of authority
6740 group in parsed URI.
6741 (PATH_GROUP) new constant representing index of path group in
6743 (QUERY_GROUP) new constant representing index of query group in
6745 (FRAGMENT_GROUP) new constant representing index of fragment
6746 group in parsed URI.
6747 (getURIGroup) new static utility method.
6748 (parseURI) implemented.
6749 (quote) stub for new static utility method.
6750 (quoteAuthority) stub for new static utility method.
6751 (quoteHost) stub for new static utility method.
6752 (quotePath) stub for new static utility method.
6753 (quoteUserInfo) stub for new static utility method.
6755 (create) don't throw URISyntaxException. Implemented.
6756 (toString) implemented.
6758 2004-03-12 Michael Koch <konqueror@gmx.de>
6760 * java/net/HttpURLConnection.java
6761 (getResponseCode): Fix another typo in javadoc.
6763 2004-03-11 Michael Koch <konqueror@gmx.de>
6765 * java/util/logging/Level.java
6766 (parse): Use String.equals() instead of ==.
6768 2004-03-11 Michael Koch <konqueror@gmx.de>
6770 * gnu/java/net/protocol/jar/Connection.java
6771 (getContentLength): New method.
6773 2004-03-11 Michael Koch <konqueror@gmx.de>
6775 * gnu/java/net/PlainSocketImpl.java:
6776 Reformated to merge better with classpath's version.
6778 2004-03-11 Michael Koch <konqueror@gmx.de>
6780 * java/util/Locale.java
6781 (getISO3Language): Use String.equals() instead of ==.
6782 (getISO3Country): Likewise.
6784 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6786 * java/text/AttributedString.java
6787 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6788 Use HashMap instead of Hashtable since value can be null, and
6789 you can not store a null value in a Hashtable.
6791 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6793 * java/text/AttributedStringIterator.java
6794 (getAllAttributesKey): Return only keys concerned
6795 by the current iterator.
6796 (getAttributes): Use strict inequality for
6799 2004-03-11 Michael Koch <konqueror@gmx.de>
6801 * java/net/HttpURLConnection.java:
6802 Fixed typo in javadoc.
6804 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6806 * java/io/BufferedInputStream.java (marktarget): New field for max
6808 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6809 (mark): Use new fields.
6811 (read(byte[],int,int)): Likewise.
6815 2004-03-11 Mark Wielaard <mark@klomp.org>
6817 * java/beans/BeanDescriptor.java (BeanDescriptor):
6818 Set the FeatureDescriptor programmatic name.
6820 2004-03-11 Michael Koch <konqueror@gmx.de>
6822 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6823 This file was was just copied form java/io/natFileDescriptorEcos.cc
6824 and never changed to compile correctly.
6826 2004-03-11 Michael Koch <konqueror@gmx.de>
6828 * gnu/java/nio/PipeImpl.java
6829 (SourceChannelImpl): Made final.
6830 (read): Implemented.
6831 (SinkChannelImpl): Made final.
6832 (write): Implemented.
6834 2004-03-11 Michael Koch <konqueror@gmx.de>
6836 * gnu/java/net/PlainDatagramSocketImpl.java:
6837 Reformated to match classpath's version more.
6839 2004-03-11 Michael Koch <konqueror@gmx.de>
6841 * gnu/java/awt/peer/ClasspathFontPeer.java:
6842 Fixed javadoc to be correct xhtml.
6843 * gnu/java/awt/peer/gtk/GtkArgList.java
6844 (add): Use Boolean.valueOf() instead of new Boolean().
6846 2004-03-09 Michael Koch <konqueror@gmx.de>
6848 * java/lang/Thread.java
6849 (runnable): Moved around.
6850 (daemon): Renamed from daemon_flag.
6851 (contextClassLoader): Renamed from context_class_loader.
6852 (Thread): Reordered constructors.
6853 (activeCount): Use group directly.
6854 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6855 (holdsLock): Reworked javadoc.
6856 (setDaemon): Reworked.
6857 * java/lang/natThread.cc
6860 2004-03-08 Anthony Green <green@redhat.com>
6862 * Makefile.am: Build property resource files into libgcj.
6863 * Makefile.in: Rebuilt.
6864 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6865 java/util/regex/PatternSyntaxException.java,
6866 gnu/regexp/CharIndexed.java,
6867 gnu/regexp/CharIndexedCharArray.java,
6868 gnu/regexp/CharIndexedInputStream.java,
6869 gnu/regexp/CharIndexedReader.java,
6870 gnu/regexp/CharIndexedString.java,
6871 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6872 gnu/regexp/REException.java,
6873 gnu/regexp/REFilterInputStream.java,
6874 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6875 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6876 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6877 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6878 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6879 gnu/regexp/RETokenLookAhead.java,
6880 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6881 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6882 gnu/regexp/RETokenStart.java,
6883 gnu/regexp/RETokenWordBoundary.java,
6884 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6886 2004-03-03 Per Bothner <per@bothner.com>
6888 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6889 Optimize when argument is a FileChannelImpl.
6890 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6892 * java/nio/channels/natChannels.cc: New file for new native methods.
6893 * Makefile.am: Update accordingly.
6895 2004-03-02 Jan Hubicka <jh@suse.cz>
6897 * configure.host: Pass -fno-omit-frame-pointer for i386.
6898 * configure.in: Likewise.
6899 * configure: Regenerate.
6901 2004-03-01 Per Bothner <per@bothner.com>
6903 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6905 2004-02-29 Per Bothner <per@bothner.com>
6907 * java/nio/channels/FileChannelImpl.java: Moved to package
6908 gnu/java/nio/channels, since we need to refer to it from java.io.
6909 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6910 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6911 from java/nio/channels. Don't depend on FileDescriptor.
6912 (in, out, err): New static fields.
6914 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6915 from FileDescriptor.
6916 (by): Removed MappedByteBuffer field.
6917 (map): New working implementation.
6918 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6919 some code "ported" from natFileDescriptoPosix.cc.
6920 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6921 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6922 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6923 Remove native methods.
6924 * Makefile.am, configure.in: Updated accordingly.
6926 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6927 (ch): New FileChannelImpl field. Update constructor to match.
6928 (releaseImpl): Remove native method. Instead ...
6929 (release): Call unlock on channel.
6930 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6932 * java/io/natFileDescriptorEcos.cc: Remove file.
6933 * java/io/natFileDescriptorPosix.cc: Remove file.
6934 * java/io/natFileDescriptorWin32.cc: Remove file.
6935 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6936 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6937 (<init>(FileChannelImpl)): New package-private constructor.
6938 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6939 (available, close, read, skip): Implement using FileChannelImpl.
6940 (getFD): Allocate FileDescriptor if needed.
6941 (getChannel): Is now trivial.
6942 * java/io/FileOutputStream.java: Corresponding changes.
6943 * java/io/RandomAccessFile.java: Corresponding changes.
6945 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6946 unmapImpl): New dummy methods, to be overridden by subclass.
6947 (finalize, isLoaded, load, force): New methods.
6948 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
6949 Now works, at least for read mapping.
6951 * java/lang/natPosixProcess.cc (startProcess): Implement standard
6952 streams using FileChannelImpl, not FileDescriptor.
6953 * java/lang/natWin32Process.cc (startProcess): Likewise.
6955 2004-02-28 Michael Koch <konqueror@gmx.de>
6957 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6960 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
6962 * java/io/ObjectInputStream.java
6963 (readClassDescriptor): Keep elements of the mapping non null.
6964 (checkTypeConsistency): New method.
6965 (readFields): Fixed main loop and base logic. Small reindentation.
6966 * java/io/ObjectStreamField.java
6967 (lookupField): New method to update the field reference.
6968 (checkFieldType): New method.
6969 * java/io/ObjectStreamClass.java
6970 (setClass, setFields): Call lookupField when building the field
6971 database. Check the real field type.
6973 2004-02-28 Michael Koch <konqueror@gmx.de>
6975 * java/nio/ByteOrder.java
6976 (nativeOrder): Use equals() to compare strings.
6978 2004-02-26 Michael Koch <konqueror@gmx.de>
6980 * gnu/java/nio/FileLockImpl.java
6981 (finalize): Made protected.
6982 * java/nio/channels/FileChannel.java
6983 (MapMode.READ_ONLY): Made final.
6984 (MapMode.READ_WRITE): Made final.
6985 (MapMode.PRIVATE): Made final.
6986 * java/nio/channels/SocketChannel.java
6987 (open): Simplified code.
6988 * java/nio/channels/spi/AbstractSelectableChannel.java
6989 (registered): Unused, removed.
6990 (keyFor): Check channel is open, only locate key
6991 and not add a new one.
6992 (register): Don't delete attachments.
6994 2004-02-26 Michael Koch <konqueror@gmx.de>
6996 * gnu/java/awt/ComponentDataBlitOp.java
6997 (INSTANCE): Made final.
6998 * gnu/java/awt/image/ImageDecoder.java:
7000 (cm): Unused, removed.
7002 2004-02-26 Michael Koch <konqueror@gmx.de>
7004 * gnu/java/nio/DatagramChannelImpl.java
7005 (send): Check if target address is resolved.
7007 2004-02-26 Michael Koch <konqueror@gmx.de>
7009 * Makefile.am: Generate and install headers for inner classes in
7010 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
7011 * Makefile.in: Regenerated.
7013 2004-02-24 Anthony Green <green@redhat.com>
7015 * java/lang/StringBuffer.java: No need to NULL out remainder of
7016 buffer since ensureCapacity_unsynchronized will have done this for
7019 2004-02-20 Michael Koch <konqueror@gmx.de>
7021 * gnu/java/net/protocol/jar/Handler.java
7022 (): Removed unneeded check for file != null. java.net.URL.getFile()
7023 returns an empty string but never null.
7025 2004-02-20 Michael Koch <konqueror@gmx.de>
7027 * gnu/gcj/convert/Convert.java
7028 (main): Use equals() to compare strings.
7030 2004-02-20 Michael Koch <konqueror@gmx.de>
7032 * javax/swing/AbstractButton.java: Made several constants final.
7033 (getRolloverSelectedIcon): Made public.
7034 (getSelectedIcon): Made public.
7036 2004-02-16 Per Bothner <per@bothner.com>
7038 * java/nio/CharBufferImpl.java: Inline super constructor.
7039 * java/nio/DoubleBufferImpl.java: Likewise.
7040 * java/nio/FloatBufferImpl.java: Likewise.
7041 * java/nio/IntBufferImpl.java: Likewise.
7042 * java/nio/LongBufferImpl.java: Likewise.
7043 * java/nio/ShortBufferImpl.java: Likewise.
7044 * java/nio/CharBuffer.java: Remove unused constructor.
7045 * java/nio/DoubleBuffer.java: Likewise.
7046 * java/nio/FloatBuffer.java: Likewise.
7047 * java/nio/IntBuffer.java: Likewise.
7048 * java/nio/LongBuffer.java: Likewise.
7049 * java/nio/ShortBuffer.java: Likewise.
7050 * java/nio/CharViewBufferImpl.java: New convenience constructor.
7051 Fix buggy call to super constructor.
7052 * java/nio/DoubleViewBufferImpl.java: Likewise.
7053 * java/nio/FloatViewBufferImpl.java: Likewise.
7054 * java/nio/IntViewBufferImpl.java: Likewise.
7055 * java/nio/LongViewBufferImpl.java: Likewise.
7056 * java/nio/ShortViewBufferImpl.java: Likewise.
7058 * java/nio/ByteBuffer.java (endian): Make non-private so other
7059 java.nio classes can inherit it.
7060 (<init>): Don't bother clearing array_offset.
7061 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
7062 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
7063 Remove redundant test.
7065 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
7066 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
7067 Use new XxxViewBufferImpl constructors.
7068 * java/nio/MappedByteBufferImpl.java: Likewise.
7069 * java/nio/DirectByteBufferImpl.java: Likewise.
7071 * java/nio/ByteBufferImpl.java: Remove one constructor.
7072 Inline super in remaining constructor.
7073 * java/nio/ByteBuffer.java: Remove unused constructor.
7075 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
7077 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
7078 * java/nio/DirectByteBufferImpl.java (owner): New field.
7079 (offset): Remove unused field.
7080 (<init>): Modify one and add another constructor. Change callers.
7081 (allocateDirect): Removed - not used.
7082 (getImpl, putImpl): Make static and pass address explicitly,
7083 to make them useful for MappedByteBufferImpl.
7084 (get, put): Check for underflow. Modify for new getImpl.
7085 (getImpl): New native method where target is array.
7086 (get(byte[],int,int)): Use the above.
7087 (adjustAddress): New static native method.
7088 (slice, duplicate, asReadOnly): New implementations.
7089 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
7090 adjustAddress): New or updated native methods.
7092 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
7094 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
7095 overflow of fieldmapping.
7097 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
7099 * javax/swing/undo/UndoManager.java: Re-written from scratch.
7101 2004-02-14 Per Bothner <per@bothner.com>
7103 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
7104 Set closed before calling implCloseChannel, as in the spec.
7106 2004-02-09 Graydon Hoare <graydon@redhat.com>
7108 * javax/swing/ToggleButtonModel.java: Remove dead class.
7109 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
7110 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
7111 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
7112 * Makefile.am: Update for new and removed files.
7113 * Makefile.in: Regenerate.
7115 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
7116 * javax/swing/AbstractButton.java
7117 (AbstractButton): Initialize fields correctly in ctor.
7118 * javax/swing/JCheckbox.java
7119 (JCheckBox): Override painting flags.
7120 * javax/swing/DefaultButtonModel.java: Conform to sun.
7121 * javax/swing/JComponent.java (paint): Fill with background color
7123 (processComponentKeyEvent)
7126 (processMouseMotionEvent): Remove event-consuming empty methods.
7127 (getUIClassID): Return "ComponentUI" not "JComponent"
7128 * javax/swing/JFrame.java: Remove some debugging chatter.
7129 (JFrame): Subscribe to window events.
7130 * javax/swing/JRadioButton.java
7131 (JRadioButton): Override painting flags.
7132 * javax/swing/JRootPane.java
7133 (JRootPane): Set background from UIDefaults.
7134 * javax/swing/JToggleButton.java
7135 (ToggleButtonModel): New inner class.
7136 (JToggleButton): Override layout alighment.
7137 * javax/swing/SwingUtilities.java:
7138 (getLocalBounds): Return width and height, not x and y.
7139 (calculateInnerArea): Use local bounds, not bounds.
7140 (layoutCompoundLabel): Provide overridden form.
7141 (layoutCompoundLabel): Correct bugs.
7142 * javax/swing/UIDefaults.java: Correct comment.
7143 * javax/swing/plaf/basic/BasicButtonUI.java:
7144 Move most logic into defaults, external listener.
7145 (paintIcon): Implement icon painting.
7146 (paint): Fix state painting to conform to changes in model.
7147 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
7148 Remove most dead/wrong methods.
7149 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7150 * javax/swing/plaf/basic/BasicIconFactory.java:
7151 (DummyIcon): New class.
7152 (getMenuItemCheckIcon)
7153 (getMenuItemArrowIcon)
7155 (getCheckBoxMenuItemIcon)
7156 (getRadioButtonMenuItemIcon)
7157 (createEmptyFrameIcon): Return DummyIcons, not null.
7158 (getCheckBoxIcon): Implement an icon that looks like sun's.
7159 (getRadioButtonIcon): Implement an icon that looks like sun's.
7160 * javax/swing/plaf/basic/BasicLookAndFeel.java
7161 (initComponentDefaults): Fix impossible values, add some missing.
7162 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7163 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7164 Remove most dead/wrong methods.
7166 (getDefaultIcon): New method.
7167 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7168 Remove most dead/wrong methods.
7169 * javax/swing/plaf/metal/MetalLookAndFeel.java
7170 (getDefaults): Return super.getDefaults(), not BasicDefaults.
7171 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7172 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7173 Implement "clearing" as drawing, when on pixmap drawables.
7175 * javax/swing/JButton.java (getUIClassID):
7176 * javax/swing/JCheckBox.java (getUIClassID):
7177 * javax/swing/JEditorPane.java (getUIClassID):
7178 * javax/swing/JLabel.java (getUIClassID):
7179 * javax/swing/JList.java (getUIClassID):
7180 * javax/swing/JOptionPane.java (getUIClassID):
7181 * javax/swing/JPanel.java (getUIClassID):
7182 * javax/swing/JPasswordField.java (uiClassID):
7183 * javax/swing/JRadioButton.java (getUIClassID):
7184 * javax/swing/JRootPane.java (getUIClassID):
7185 * javax/swing/JScrollPane.java (getUIClassID):
7186 * javax/swing/JTabbedPane.java (getUIClassID):
7187 * javax/swing/JToggleButton.java (getUIClassID):
7188 * javax/swing/JTree.java (getUIClassID):
7189 * javax/swing/JViewport.java (getUIClassID):
7190 * javax/swing/text/JTextComponent.java (getUIClassID):
7191 Return "fooUI" not "Jfoo"
7193 2004-02-11 Michael Koch <konqueror@gmx.de>
7195 * java/net/DatagramSocket.java
7196 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7198 (setBroadcast): Likewise.
7199 * java/net/MulticastSocket.java
7200 (setLoopbackMode): Likewise.
7201 * java/net/ServerSocket.java
7202 (setReuseAddress): Likewise.
7203 * java/net/Socket.java
7204 (setTcpNoDelay): Likewise.
7205 (setSoLinger): Likewise.
7206 (setOOBInline): Likewise.
7207 (setKeepAlive): Likewise.
7208 (setReuseAddress): Likewise.
7209 * java/net/URLConnection.java
7210 (setContentHandler): Replace == with equals().
7211 * java/net/URLStreamHandler.java
7212 (hostSEquals): Fix checking host addresses.
7213 (toExternalForm): Dont check protocol for null. We know already its
7216 2004-02-10 David Jee <djee@redhat.com>
7218 * java/awt/BorderLayout.java
7219 (calcCompSize): Invisible components get zero dimensions.
7220 * java/awt/Button.java
7221 (setLabel): Set actionCommand.
7222 * java/awt/Component.java
7223 (show): Invalidate component and parent container.
7226 2004-02-10 David Jee <djee@redhat.com>
7228 * java/awt/GridBagLayout.java
7229 (GridBagLayout): New private field, internalcomptable.
7230 (lookupInternalConstraints): New method.
7231 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7232 (GetLayoutInfo): Reimplement.
7233 (calcCellSizes): Ignore rows/columns with size 0.
7235 2004-02-10 Michael Koch <konqueror@gmx.de>
7237 * gnu/java/awt/EmbeddedWindow.java
7238 (setHandle): Use java.awt.Component.getPeer() instead of
7239 java.awt.Component.peer directly.
7241 2004-02-10 David Jee <djee@redhat.com>
7243 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7244 (gtkSetLabel): New native method definition.
7245 (setLabel): Use gtkSetLabel.
7246 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7247 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7249 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7251 * include/powerpc-signal.h: Revert 2004-01-21 change.
7252 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7253 from syscall for ppc32 versions.
7255 2004-02-08 Per Bothner <per@bothner.com>
7257 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7258 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7259 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7260 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7261 Pass ByteOrder parameter to most methods, since the underlying
7262 ByteBuffer's order isn't always what we should use.
7263 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7264 * java/nio/DirectByteBufferImpl.java: Likewise.
7265 Use ByteBufferHelper methods.
7266 * java/nio/MappedByteBufferImpl.java: Likewise.
7267 (compact): Use shiftDown.
7268 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7269 (get, put): Use ByteBufferHelper.
7270 (compact): Use new shiftDown method.
7271 (duplicate(boolean)): New helper method.
7272 (duplicate, asReadOnlyBuffer): Use it.
7273 (order): Return endian field.
7274 * java/nio/DoubleViewBufferImpl.java: Likewise.
7275 * java/nio/FloatViewBufferImpl.java: Likewise.
7276 * java/nio/IntViewBufferImpl.java: Likewise.
7277 * java/nio/LongViewBufferImpl.java: Likewise.
7278 * java/nio/ShortViewBufferImpl.java: Likewise.
7279 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7280 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7281 (compact): Re-implement using shiftDown.
7283 2004-02-08 Andreas Jaeger <aj@suse.de>
7285 * include/x86_64-signal.h: Fix typo.
7287 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7289 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7291 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7293 2004-02-06 Michael Koch <konqueror@gmx.de>
7295 * java/io/ObjectInputStream.java
7296 (currentClassLoader): Reverted to old version of this method.
7298 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7300 * java/io/ObjectInputStream.java: Made all calls
7301 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7302 use cached info from ObjectStreamClass. (readClassDescriptor):
7303 Cache more information in ObjectStreamClass. (processResolution,
7304 readFields): Use cached info from ObjectStreamClass.
7305 (newObject): Throw exception instead of returning null for failure.
7306 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7307 setCharField, setDoubleField, setFloatField, setIntField,
7308 setLongField, setShortField, setObjectField, readObjectParams):
7309 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7311 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7312 (setClass): Added call to cacheMethods() (findMethod): New method.
7313 (cacheMethods): New method. (ObjectStreamClass): Added call to
7314 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7315 AccessController.doPrivileged to invoke setAccessible.
7316 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7317 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7319 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7320 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7321 isPrimitive): Made safe for cases where type == null.
7322 (setBooleanField, setByteField, setCharField, setShortField,
7323 setIntField, setLongField, setFloatField, setDoubleField,
7324 setObjectField): New methods.
7326 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7328 * java/awt/Component.java (getFont): Return a default font
7331 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7332 (Scrollbar (int, int, int, int, int)): Make default page
7334 (setValues): Only call peer.setValues if one of the values has
7336 (generateName): New method.
7337 (getUniqueLong): New method.
7338 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7339 (range_scrollbar): Remove structure.
7340 (post_adjustment_event): Remove function.
7341 (post_change_event): Accept jobject argument.
7342 (create): Cast jints to gdoubles. Round scrollbar values to the
7343 nearest integer. Clamp min, max and value settings.
7344 (connectJObject): Connect hook to widget->window.
7345 (connectSignals): Remove range_scrollbar structure variables.
7346 Remove "move-slider" connection. Pass global peer reference to
7347 "value-changed" callback.
7348 (setLineIncrement): Cast jint value to gdouble.
7349 (setPageIncrement): Likewise.
7350 (setValues): Likewise. Clamp min, max and value settings.
7352 2004-02-05 Michael Koch <konqueror@gmx.de>
7354 * javax/swing/AbstractCellEditor.java
7355 (getCellEditorValue): Removed.
7356 * javax/swing/Box.java: Reformated.
7357 (serialVersionUID): New field.
7358 * javax/swing/ButtonGroup.java:
7359 Removed some weird whitespace.
7360 * javax/swing/CellEditor.java: Reformated.
7361 * javax/swing/CellRendererPane.java
7362 (serialVersionUID): New field.
7363 (AccessibleCellRendererPaneserialVersionUID): New field.
7364 * javax/swing/DefaultListModel.java
7365 (serialVersionUID): New field.
7366 * javax/swing/JEditorPane.java
7367 (serialVersionUID): New field.
7368 (setPage): Throws IOException.
7369 (addHyperlinkListener): Implemented.
7370 (removeHyperlinkListener): Implemented.
7371 (getHyperlinkListener): New method.
7372 * javax/swing/JFileChooser.java
7373 (serialVersionUID): New field.
7374 (AccessibleJFileChooser.serialVersionUID): New field.
7375 (addActionListener): Implemented.
7376 (removeActionListener): Implemented.
7377 (getActionListeners): New method.
7378 * javax/swing/JFormattedTextField.java
7379 (serialVersionUID): New field.
7380 (AbstractFormatter.serialVersionUID): New field.
7381 (clone): Throws CloneNotSupportedException
7382 (setEditValid): Add missing argument.
7383 (stringToValue): Throws ParseExcpetion.
7384 (valueToString): Throws ParseException.
7385 (commitEdit): Throws ParseException.
7386 * javax/swing/JLabel.java
7387 (serialVersionUID): New field.
7388 * javax/swing/JList.java
7389 (serialVersionUID): New field.
7390 (addListSelectionListener): Reformated.
7391 (removeListSelectionListener): Reformated.
7392 (getListSelectionListeners): New method.
7393 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7395 (serialVersionUID): New field.
7396 * javax/swing/table/AbstractTableModel.java
7397 (getValueAt): Removed.
7398 (getColumnCount): Removed.
7399 (getRowCount): Removed.
7401 2004-02-05 Michael Koch <konqueror@gmx.de>
7403 * java/awt/datatransfer/DataFlavor.java
7404 (imageFlavor): Javadoc added.
7405 (javaJVMLocalObjectType): Fixed.
7407 2004-02-05 Michael Koch <konqueror@gmx.de>
7409 * java/lang/Thread.java
7410 (Thread): Reordered.
7411 (setContextClassLoader): Fixed javadoc comment.
7412 (setPriority): Reordered.
7414 (initialize_native): Reordered.
7415 (gen_name): Reordered.
7417 2004-02-05 Michael Koch <konqueror@gmx.de>
7419 * java/lang/Thread.java: Reordered fields, reformated much code,
7420 no functional changes, some variables renamed, javadoc comments
7423 2004-02-05 Michael Koch <konqueror@gmx.de>
7425 * java/util/zip/Deflater.java,
7426 java/util/zip/DeflaterOutputStream.java,
7427 java/util/zip/GZIPInputStream.java:
7428 Reformated and javadoc comments merged from classpath.
7430 2004-02-05 Michael Koch <konqueror@gmx.de>
7432 * gnu/java/nio/NIOServerSocket.java
7433 (impl): Unused, removed.
7434 * gnu/java/nio/SocketChannelImpl.java
7435 (finnishConnect): Don't throw NoConnectionPendingException if not
7436 connected or no connection pending.
7438 2004-02-02 Graydon Hoare <graydon@redhat.com>
7440 * javax/swing/SwingUtilities.java: Many new functions.
7441 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7442 * javax/swing/basic/BasicGraphicsUtils.java
7443 (getPreferredButtonSize): Start layout from top-left corner.
7445 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7447 * java/awt/geom/AffineTransform.java:
7448 Corrected comments on the field definitions for
7450 (shear): Fixed few errors that caused shear
7451 transformation to be performed incorrectly.
7452 (createInverse): Fixed to return correct
7453 inverse of the given matrix.
7455 2004-02-03 Tom Tromey <tromey@redhat.com>
7457 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7458 PATH or LD_LIBRARY_PATH is not set in parent environment.
7460 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7462 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7463 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7464 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7465 java/awt/Component.java, java/awt/Container.java,
7466 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7467 java/awt/LayoutManager2.java, java/awt/List.java,
7468 java/awt/Menu.java, java/awt/MenuBar.java,
7469 java/awt/MenuItem.java, java/awt/Polygon.java,
7470 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7471 java/awt/Scrollbar.java, java/awt/TextArea.java,
7472 java/awt/TextField.java,
7473 java/awt/image/renderable/RenderContext.java,
7474 javax/swing/JApplet.java: Fix handling of alias methods, where a
7475 method has been deprecated in favour of a new one with the same
7476 funtion but a different name. Put the method implementation in
7477 the deprecated method and have the new method call the
7478 deprecated one. Make all other code call the new method.
7480 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7482 * gnu/java/nio/DatagramChannelImpl.java
7483 (inChannelOperation): New field.
7484 (isInChannelOperation): New accessor.
7485 (setInChannelOperation): New modifier.
7486 (receive): Use capacity() - position() of destination
7487 buffer instead of remaining(). Set and reset our "in
7488 channel operation indicator" before and after delegating
7489 the receive to our datagram socket. Removed testing code.
7490 Update destination buffer's current position if it is
7491 backed by a byte array (hasArray() is true).
7492 (send): Set and reset our "in channel operation indicator"
7493 before and after delegating the send to our datagram socket.
7494 Removed testing code. Update source buffer's current position
7495 if it is backed by a byte array (hasArray() is true).
7496 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7497 Use capacity() - position() of destination buffer instead
7499 * java/net/DatagramSocket.java (receive): Don't throw an
7500 IllegalBlockingModeException if we have a non-blocking
7501 channel which initiated this operation.
7504 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7506 * configure.in: Add pkgconfig check for glib and gthread.
7507 * configure: Regenerate.
7509 2004-02-01 Michael Koch <konqueror@gmx.de>
7511 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7513 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7514 * verify.cc (debug_print): Mark 'fmt' unused.
7516 2004-01-30 Michael Koch <konqueror@gmx.de>
7518 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7519 * configure: Regenerated.
7520 * glib-2.0.m4: Removed.
7521 * gtk-2.0.m4: Removed.
7522 * libart.m4: Removed.
7525 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7527 * gnu/java/net/PlainSocketImpl.java
7528 (inChannelOperation): New field.
7529 (isInChannelOperation): New accessor.
7530 (setInChannelOperation): New modifier.
7531 * gnu/java/nio/ServerSocketChannelImpl.java
7532 (accept): Set and reset our server socket's PlainSocketImpl's
7533 "in channel operation" indicator before and after delegating
7534 the accept to our server socket.
7535 * gnu/java/nio/SocketChannelImpl.java
7536 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7537 operation" indicator before and after delegating the operation to
7541 * java/net/ServerSocket.java (implAccept): Don't throw an
7542 IllegalBlockingModeException if we have a non-blocking
7543 channel which initiated this accept operation.
7544 * java/net/Socket.java (connect): Don't throw an
7545 IllegalBlockingModeException if we have a non-blocking
7546 channel which initiated this connect operation.
7547 * java/nio/channels/spi/AbstractSelectableChannel.java
7548 (configureBlocking): Only call implConfigureBlocking() if
7549 the desired blocking mode is different from our current one.
7551 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7553 * java/io/BufferedReader.java (sbuf): New field.
7554 (readLine): Use String.valueOf instead of new String() as per
7555 Per Bothner's suggestion. Use instance sbuf field instead of a
7556 local StringBuffer instance.
7557 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7558 caller's buffer to refill().
7559 (read(void)): Pass our internal work buffer to refill if our
7560 input queue is empty.
7561 (refill): Changed return type to int. Use the specified buffer
7562 instead of our work buffer as per Bryce McKinlay's suggestion.
7563 Return the number of characters read or -1 for EOF.
7565 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7567 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7569 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7571 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7572 * Makefile.in: Re-generated.
7573 * gnu/awt/xlib/XFontPeer.java: New file.
7574 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7575 (setClip): Commented out debug printout.
7576 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7577 (getFontPeer): Return XFontPeer.
7578 (getLocalGraphicsEnvironment): New method.
7579 (getClasspathFontPeer): New method.
7580 (createFont): New method.
7582 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7584 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7587 2004-01-29 Kim Ho <kho@redhat.com>
7589 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7590 (gtkLayoutSetVisible): New method
7591 (setMenuBar): Hide layout before setting MenuBar
7592 and reshow it after.
7593 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7594 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7596 2004-01-28 Michael Koch <konqueror@gmx.de>
7598 * gnu/java/lang/ClassHelper.java
7599 (getPackagePortion): Removed.
7601 2004-01-28 Michael Koch <konqueror@gmx.de>
7603 * javax/swing/JComponent.java
7604 (listenerList): Initalize globally.
7605 (ancestor_list): Removed.
7606 (veto_list): Removed.
7607 (change_list): Removed.
7608 (get_veto_list): Removed.
7609 (get_change_list): Removed.
7610 (get_ancestor_list): Removed.
7611 (removeAncestorListener): Reimplemented.
7612 (removePropertyChangeListener): Likewise.
7613 (removeVetoableChangeListener): Likewise.
7614 (addAncestorListener): Likewise.
7615 (addPropertyChangeListener): Likewise.
7616 (addVetoableChangeListener): Likewise.
7617 (getListeners): New method.
7618 (getAncestorListeners): Likewise.
7619 (getVetoableChangeListeners): Likewise.
7620 (fireVetoableChange): Throws PropertyVetoException.
7621 * javax/swing/JEditorPane.java
7622 (JEditorPane): Throws IOException.
7624 2004-01-28 David Jee <djee@redhat.com>
7626 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7627 (create): Set the default foreground color to
7628 java.awt.SystemColor.windowText.
7630 2004-01-27 Michael Koch <konqueror@gmx.de>
7632 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7633 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7634 Reindented to merge with classpath.
7636 2004-01-27 David Jee <djee@redhat.com>
7638 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7639 (addExposeFilter): Handle GtkFramePeer separately.
7640 (removeExposeFilter): Likewise.
7642 2004-01-27 Michael Koch <konqueror@gmx.de>
7644 * gnu/java/net/protocol/http/Connection.java
7645 (getOutputStream): Fixed typo.
7647 2004-01-27 Michael Koch <konqueror@gmx.de>
7649 * java/lang/Class.java
7650 (getConstructor): Removed SecurityException from throws clause.
7651 (_getConstructors): Likewise.
7652 (getConstructors): Likewise.
7653 (getDeclaredConstructor): Likewise.
7654 (getDeclaredClasses): Likewise.
7655 (getDeclaredConstructors): Likewise.
7656 (getDeclaredField): Likewise.
7657 (getDeclaredMethod): Likewise.
7658 (getDeclaredMethods): Likewise.
7659 (getField): Likewise.
7660 (getMethod): Likewise.
7661 (getMethods): Likewise.
7663 2004-01-27 Kim Ho <kho@redhat.com>
7665 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7666 (removeMenuBarPeer): Remove MenuBarPeer argument.
7667 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7668 (dispose): Call native method.
7669 * java/awt/Frame.java (setMenuBar): Create and remove
7670 MenuBar peers only if the Frame has a peer.
7671 (addNotify): Create the MenuBar peer if one exists.
7672 (removeNotify): Remove MenuBar peer if one exists.
7673 * java/awt/Menu.java: Fix imports.
7674 (addNotify): Don't use full class name.
7675 (removeNotify): Call removeNotify on all children.
7676 * java/awt/MenuBar.java (removeNotify): Call
7677 removeNotify on all children.
7678 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7679 (removeMenuBarPeer): Remove MenuBarPeer argument.
7680 Iterate through children to find the Frame's MenuBar.
7681 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7683 (dispose): Remove references to the MenuComponent.
7685 2004-01-27 Michael Koch <konqueror@gmx.de>
7687 * javax/swing/AbstractCellEditor.java: Reformated.
7688 * javax/swing/DefaultListSelectionModel.java
7689 (listenerList): Made protected.
7690 (addListSelectionListener): Javadoc added.
7691 (removeListSelectionListener): Likewise.
7692 (getListeners): Likewise.
7693 (getListSelectionListeners): Likewise.
7694 * javax/swing/JComboBox.java: Merged copyright year.
7695 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7697 2004-01-26 Andrew Haley <aph@redhat.com>
7699 * javax/swing/table/JTableHeader.java: Extend JComponent
7701 2004-01-26 Kim Ho <kho@redhat.com>
7703 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7706 2004-01-26 Kim Ho <kho@redhat.com>
7708 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7710 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7711 height and let the Layout Managers readjust anything that
7713 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7714 (moveLayout): New method. Shift everything in the Gtk
7715 layout in the Y direction by an offset.
7717 2004-01-26 David Jee <djee@redhat.com>
7719 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7720 (handleEvent): Implemented. Handles PaintEvents.
7721 (paint): Implemented. Use GTK native methods to queue updates
7722 for this heavyweight peer.
7723 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7724 (handleEvent): Removed.
7725 * java/awt/Component.java
7726 (paint): Implemented. Explictly paint the heavyweight peer.
7727 (update): Clear the background for heavyweight components.
7728 (paintAll): No need to call peer.paint() anymore.
7729 (processEvent): Don't process PaintEvents here. It's now done in
7730 the peer's handleEvent().
7731 (processPaintEvent): Removed.
7732 * java/awt/Container.java
7733 (paint): No need to call super.paint(). Visit heavyweight
7735 (update): Don't clear the background here. It's done in
7737 (visitChildren): Added check to not recurse into Containers.
7738 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7739 (filter_expose_event_handler): New method. Filter unwanted
7740 expose events while painting heavyweight peers.
7741 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7742 New method. Connect filter and block pre_event_handler.
7743 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7744 New method. Disconnect filter and unblock pre_event_handler.
7745 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7746 New method. Invalidate and update given area.
7747 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7748 (pre_event_handler): Add checks for unwanted expose events.
7750 2004-01-26 David Jee <djee@redhat.com>
7752 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7753 (find_bg_color_widget): For GtkButton, return its child.
7755 2004-01-26 Kim Ho <kho@redhat.com>
7757 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7759 (setMenuBar): Grab MenuBar height and change insets.
7760 (setBounds): Account for MenuBar height.
7761 (postInsetsChangedEvent): Ditto.
7762 (postSizeAllocateEvent): Remove.
7763 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7764 (menubar_resize_cb): Remove
7765 (setMenuBarPeer): Remove callback.
7766 (getMenuBarHeight): Use size requisition instead of
7769 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7771 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7772 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7774 (setColumns): Remove FIXME -- peer will retrieve number of
7775 columns by calling getColumns.
7776 (setRows): Likewise for number of rows.
7777 (next_text_number): New field.
7778 (paramString): Fix param string.
7779 (generateName): New method.
7780 (getUniqueLong): New method.
7782 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7784 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7785 image observer of image loading status.
7786 (getImage (String)): Start image production.
7787 (getImage (URL)): Likewise.
7789 2004-01-25 Michael Koch <konqueror@gmx.de>
7791 * java/lang/Class.java: Imports reworked, reformated.
7792 (Class): Javadoc added.
7793 (forName): Likewise.
7794 (getClasses): Likewise.
7795 (getClassLoader): Likewise.
7796 (getComponentType): Likewise.
7797 (getConstructor): Likewise.
7798 (getConstructors): Likewise.
7799 (getDeclaredConstructor): Likewise.
7800 (getDeclaredClasses): Likewise.
7801 (getDeclaredConstructors): Likewise.
7802 (getDeclaredField): Likewise.
7803 (getDeclaredMethod): Likewise.
7804 (getDeclaredMethods): Likewise.
7805 (getDeclaringClass): Likewise.
7806 (getField): Likewise.
7807 (getInterfaces): Likewise.
7808 (getMethod): Likewise.
7809 (getMethods): Likewise.
7810 (getModifiers): Likewise.
7811 (getName): Likewise.
7812 (getResource): Likewise.
7813 (getResourceAsStream): Likewise.
7814 (getSigners): Likewise.
7815 (setSigners): Likewise.
7816 (getSuperclass): Likewise.
7817 (isArray): Likewise.
7818 (isAssignableFrom): Likewise.
7819 (isInstance): Likewise.
7820 (isInterface): Likewise.
7821 (isPrimitive): Likewise.
7822 (newInstance): Likewise.
7823 (getProtectionDomain): Likewise.
7824 (toString): Likewise.
7826 (initializeClass): Likewise.
7827 (finalize): Likewise.
7829 2004-01-24 Michael Koch <konqueror@gmx.de>
7831 * gnu/java/net/protocol/jar/Connection.java
7834 (gotHeaders): Removed.
7835 (getHeaderField): Removed.
7836 (getHeaderFields): Removed.
7837 (getHeaderFieldKey): Removed.
7839 (getField): Removed.
7840 (getHeaders): Removed.
7842 2004-01-24 Michael Koch <konqueror@gmx.de>
7844 * Makefile.am: Added library version to gtk peer lib.
7845 * Makefile.in: Regenerated.
7847 2004-01-24 Michael Koch <konqueror@gmx.de>
7849 * java/util/zip/InflaterInputStream.java: Merged class documentation
7852 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7854 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7855 header. For __powerpc64__ provide the default-signal.h definitions
7857 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7858 instead of the dummy definitions.
7859 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7860 (powerpc64*-*): Remove with_libffi_default.
7861 Only add -mminimal-toc for 64-bit compilations.
7862 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7863 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7864 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7865 * configure: Rebuilt.
7867 2004-01-23 Michael Koch <konqueror@gmx.de>
7869 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7871 2004-01-23 Michael Koch <konqueror@gmx.de>
7873 * java/lang/VMClassLoader.java: Reworked imports.
7875 2004-01-23 Michael Koch <konqueror@gmx.de>
7877 * javax/swing/AbstractAction.java: Reformated.
7879 2004-01-23 Michael Koch <konqueror@gmx.de>
7881 * java/text/CollationElementIterator.java:
7882 (setText): New method.
7884 2004-01-23 Michael Koch <konqueror@gmx.de>
7886 * gnu/java/nio/FileLockImpl.java:
7887 Fixed filename in copyright.
7888 (released): Removed.
7889 (finalize): New method.
7890 * gnu/java/nio/natFileLockImpl.cc
7891 (releaseImpl): Implemented.
7892 * java/nio/channels/FileChannelImpl.java:
7894 (lock): Implemented.
7895 (lockImpl): New method.
7896 (tryLock): Implemented.
7897 (tryLockImpl): New method.
7898 * java/nio/channels/natFileChannelImpl.cc
7899 (lockImpl): New method.
7900 (tryLockImpl): New method.
7902 2004-01-23 Michael Koch <konqueror@gmx.de>
7904 * java/io/FileDescriptor.java
7906 (tryLock): New method.
7907 (unlock): New method.
7908 * java/io/natFileDescriptorEcos.cc
7910 (tryLock): New method.
7911 (unlock): New method.
7912 * java/io/natFileDescriptorPosix.cc
7914 (tryLock): New method.
7915 (unlock): New method.
7916 * java/io/natFileDescriptorWin32.cc
7918 (tryLock): New method.
7919 (unlock): New method.
7921 2004-01-23 Michael Koch <konqueror@gmx.de>
7923 * java/io/FileDescriptor.java
7924 (sync): Moved around, added javadoc.
7929 (setLength): Likewise.
7931 (getLength): Likewise.
7932 (getFilePointer): Likewise.
7934 (available): Likewise.
7935 (finalize): Likewise.
7937 2004-01-23 Michael Koch <konqueror@gmx.de>
7939 * javax/swing/AbstractAction.java: Reformated.
7940 (getPropertyChangeListeners): New method.
7941 * javax/swing/AbstractCellEditor.java: Reformated.
7942 (getCellEditorListeners): New method.
7943 * javax/swing/DefaultListSelectionModel.java
7944 (listenerList): New field.
7945 (listeners): Removed.
7946 (get_listeners): Removed.
7947 (addListSelectionListener): Rewritten.
7948 (removeListSelectionListener): Rewritten.
7949 (getListSelectionListeners): New method.
7950 (getListeners): New method.
7951 * javax/swing/JComboBox.java: Imports reworked.
7952 (addActionListener): Implemented.
7953 (removeActionListener): Implemented.
7954 (addItemListener): Implemented.
7955 (removeItemListener): Implemented.
7956 (addPopupMenuListener): Implemented.
7957 (removePopupMenuListener): Implemented.
7958 (getActionListeners): New method.
7959 (getItemListeners): New method.
7960 (getPopupMenuListeners): New method.
7962 2004-01-23 Michael Koch <konqueror@gmx.de>
7964 * gnu/java/net/protocol/http/Connection.java
7965 (connect): Don't initialize bufferedOutputStream if not needed.
7966 (sendRequest): Set property for content length if content is present.
7967 Write content only if present.
7968 (getOutputStream): Check if already connected, dont connect,
7969 initalize bufferedOutputStream if needed.
7971 2004-01-23 Michael Koch <konqueror@gmx.de>
7973 * java/io/FileDescriptor.java
7974 (in, out, err): Added javadoc.
7975 (static): Merged loading code.
7976 (fd, position): Moved around.
7978 2004-01-23 Michael Koch <konqueror@gmx.de>
7980 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
7983 2004-01-23 Michael Koch <konqueror@gmx.de>
7985 * java/lang/Class.java,
7986 java/lang/Object.java,
7987 java/lang/Thread.java: Merged copyright with classpath.
7989 2004-01-23 Michael Koch <konqueror@gmx.de>
7991 * java/io/FileDescriptor.java: Merged copyright with classpath to
7992 start merging this class.
7994 2004-01-22 Tom Tromey <tromey@redhat.com>
7997 * testsuite/libjava.lang/pr13107_2.xfail: New file.
7998 * testsuite/libjava.lang/pr13107_3.xfail: New file.
7999 * testsuite/libjava.lang/pr13107_3.java: New file.
8000 * testsuite/libjava.lang/pr13107_3.out: New file.
8001 * testsuite/libjava.lang/pr13107_2.java: New file.
8002 * testsuite/libjava.lang/pr13107_2.out: New file.
8003 * testsuite/libjava.lang/pr13107.java: New file.
8004 * testsuite/libjava.lang/pr13107.out: New file.
8005 * verify.cc (jsr_ptrs): Removed.
8006 (entry_points): Likewise.
8007 (struct subr_info): Likewise.
8008 (struct subr_entry_info): Likewise.
8009 (type_val::unused_by_subroutine_type): Likewise.
8010 (type::merge): Don't handle unused_by_subroutine_type.
8011 (type::print): Likewise.
8012 (state::flags): Removed.
8013 (state::subroutine): Likewise.
8014 (state::seen_subrs): Likewise.
8015 (state::NO_STACK): Likewise.
8016 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
8017 (state): Updated all methods.
8018 (state::clean_subrs): Removed.
8019 (state::state): Removed `ret_semantics' flag.
8020 (state::copy): Likewise.
8021 (state::add_subr): Removed.
8022 (state::enter_subroutine): Likewise.
8023 (type::set_return_address): New method.
8024 (handle_jsr_insn): Set return address on the type. Always
8025 invalidate PC after call.
8026 (check_nonrecursive_call): Removed.
8027 (~_Jv_BytecodeVerifier): Updated.
8028 (branch_prepass): Removed special handling of jsr.
8029 (note_branch_target): Likewise.
8030 (get_subroutine): Removed.
8031 (state::merge): Don't merge subroutines and don't handle
8032 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
8033 (state::note_variable): Removed.
8034 (state::is_unmerged_ret_state): Likewise.
8035 (state::print): Updated.
8036 (set_variable): Likewise.
8037 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
8038 and jsr_semantics arguments. Updated for new reverification
8040 (pop_jump): Rewrote.
8041 (construct_primitive_array_type): Updated.
8042 (state::next): Removed.
8043 (INVALID_STATE): New define.
8044 (state::INVALID): Removed.
8045 (state::NO_NEXT): New value.
8046 (state::pc, state::next): New fields.
8047 (state::get_pc): New method.
8048 (next_verify_pc): Removed.
8049 (next_verify_state): New field.
8050 (verify_instructions_0): Always check for falling off end.
8052 (linked_utf8): Removed.
8053 (states): Changed type.
8054 (type::state_mergeable_p): New method.
8055 (state::state_mergeable_p): Likewise.
8056 (handle_ret_insn): Removed most code.
8057 (state::reverify): New method.
8058 (add_new_state): Likewise.
8059 (state::set_pc): Likewise.
8061 2004-01-22 Jeff Sturm <jsturm@one-point.com>
8064 * testsuite/libjava.compile/PR13733.java: New file.
8065 * testsuite/libjava.compile/PR13733.xfail: New file.
8067 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
8068 Michael Koch <konqueror@gmx.de>
8070 * javax/swing/table/DefaultTableCellRenderer.java
8071 (DefaultTableCellRenderer): Added javadoc for the class and for
8072 the constructor, Border instance, create an EmptyBorder.
8073 (UIResource): Removed the comment at the end of the class
8074 (setForeground): New method.
8075 (setBackground): New method.
8076 (updateUI): New method.
8077 (getTableCellRendererComponent): Rewritten with the help of
8078 dvholten and Stephane Meslin-Weber.
8079 (validate): New method.
8080 (repaint): New method.
8081 (firePropertyChange): New method.
8082 (setValue): New method.
8084 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
8086 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8087 (connectJObject): Replace printf calls with g_assert statements.
8088 Move property-notify-event signal connection to ...
8089 (connectSignals): Connect property-notify-event signal. Iterate
8090 through the vbox's children to find layout.
8092 2004-01-22 Graydon Hoare <graydon@redhat.com>
8094 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
8095 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
8096 Predicate static initialization on GtkToolkit.useGraphics2D().
8097 * java/awt/Component.java (processPaintEvent): Consume event.
8098 * javax/swing/AbstractButton.java: Reimplement, document.
8099 * javax/swing/DefaultButtonModel.java: Reimplement, document.
8100 * javax/swing/JComponent.java (paint): Use double buffer.
8101 (listenerList): Enable member.
8102 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
8103 * javax/swing/JToggleButton.java
8104 (JToggleButton): Modify model constructor.
8105 * javax/swing/SwingUtilities.java
8106 (layoutCompoundLabel): Adjust arithmetic.
8107 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
8108 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8109 (getPreferredButtonSize): Include margins in calculation.
8110 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8111 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
8112 Receive up events from subordinate layout component.
8114 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
8116 * java/awt/Component.java (show): Set visible to true before
8119 2004-01-21 Kim Ho <kho@redhat.com>
8121 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
8123 (removeMenuBarPeer): Make package private.
8124 (setMenuBarPeer): Make package private.
8125 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8126 (menubar_resize_cb): Mark attributes unused.
8127 (getMenuBarHeight): ditto.
8129 2004-01-21 David Jee <djee@redhat.com>
8131 * java/awt/Container.java
8132 (LightweightDispatcher.handleEvent): Add an extra check to avoid
8133 dispatching MOUSE_ENTERED event twice. Translate the point for
8134 the mouse event target before dispatching the event.
8136 2004-01-20 Jakub Jelinek <jakub@redhat.com>
8138 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
8139 lib_org_w3c_dom_la_LDFLAGS): New.
8140 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
8141 * Makefile.in: Rebuilt.
8143 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
8145 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
8146 Calculate proper offsets for heavyweight components packed in
8147 lightweight containers.
8149 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8150 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8151 (native create): Add width parameter.
8152 (create): Calculate text entry width based on current font's
8153 metrics and number of columns. Set TextField's font if not
8154 already set. Call native create.
8155 (gtkEntryGetBorderWidth): New native method.
8156 (gtkEntryGetSize): Remove method.
8157 (getMinimumSize): Call minimumSize.
8158 (getPreferredSize): Call preferredSize.
8159 (minimumSize): Calculate minimum size based on backing
8160 GtkEntry's borders, font metrics and number of columns.
8161 (preferredSize): Likewise for preferred size.
8162 (get_border_width): New static function.
8164 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8165 Override GtkWindowPeer's setResizable method to account for menu
8166 bar height when setting the frame's size.
8168 2004-01-19 Matthias Klose <doko@debian.org>
8170 * libtool-version: Increased `current' to 6.
8172 2004-01-19 Kim Ho <kho@redhat.com>
8174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8175 (connectJObject): Iterate through the vbox's children to find layout.
8177 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8179 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8180 isDispatchThread method to replace wrong test condition.
8182 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8184 * java/awt/EventQueue.java (pop): Prevent racing condition to add
8185 events to the queue out of order by acquiring locks in the proper
8186 order and not by releasing one before acquiring the other.
8188 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8190 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8191 visible so that dialog can be reused.
8193 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8195 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8196 events may be handled by any queue in the stack.
8198 2004-01-19 Kim Ho <kho@redhat.com>
8200 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8201 MenuBarPeer parameter.
8202 (removeMenuBarPeer): New native method.
8203 (setMenuBar): Call remove if menu bar is null. Adjust insets
8205 (postSizeAllocateEvent): New method. Called when menu bar size is
8206 allocated. Adjust insets and redo layout.
8207 (GtkFramePeer): Set menu bar during frame creation.
8208 (postConfigureEvent): Adjust position and size to accomodate
8210 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8211 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8212 (addNotify): Create the peer if it doesn't exist and call addNotify
8213 for the menu's items.
8214 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8215 * java/awt/MenuItem.java (addNotify): Create the peer if it
8217 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8218 (removeMenuBarPeer): New method. Remove menu bar on the current
8220 (setMenuBarPeer): Add the menu bar to the current frame and the
8221 callback for size-allocate events on the menu bar.
8222 (getMenuBarHeight): Add menu bar parameter.
8223 (menubar_resize_cb): New callback method for postSizeAllocate events.
8225 Also: Fix indentation on last ChangeLog entry.
8227 2004-01-16 Kim Ho <kho@redhat.com>
8229 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8230 (gtkWidgetGetDimensions): Remove.
8231 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8232 (gtkWidgetGetDimensions): Remove.
8234 2004-01-16 Tom Tromey <tromey@redhat.com>
8236 * java/awt/Container.java: Typo and indentation fixes.
8238 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8239 * java/lang/natVMClassLoader.cc: ...here. New file.
8240 * Makefile.in: Rebuilt.
8241 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8243 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8245 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8246 Discard GDK_ENTER_NOTIFY related to ungrabs.
8248 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8250 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8251 is called for an intermediate queue.
8253 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8255 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8256 (window_property_changed_cb): Set id_set.
8258 2004-01-16 Kim Ho <kho@redhat.com>
8260 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8261 it is a FileDialog and has dimensions of 0 by 0, then the initial
8262 size is set to size request plus insets.
8263 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8264 (gtkWidgetGetDimensions): Override method.
8265 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8266 (gtkWidgetGetDimensions): Override method. Returns size request plus
8269 2004-01-16 Andrew Haley <aph@redhat.com>
8271 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8272 * sysdep/i386/locks.h: Likewise.
8274 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8276 * java/awt/EventDispatchThread.java (run): Stop running when
8278 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8279 Reset the queue after transferring its contents.
8280 (push): Start a new dispatch thread if none is running.
8282 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8284 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8285 (doPolygon): set fill rule of polygon to
8286 WIND_EVEN_ODD by default.
8288 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8290 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8291 Implemented rendering hints related methods.
8292 (getDefaultHints): New helper method. Returns
8293 default rendering hints.
8294 (walkPath): changed to normalize path if
8295 the KEY_STROKE_CONTROL key is in "normalize" mode.
8296 (draw3DRect): changed coordinates of rectangle by +0.5
8297 if in "normalize" mode.
8299 2004-01-15 Tom Tromey <tromey@redhat.com>
8301 * Makefile.in: Rebuilt.
8302 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8303 (%.lo: %.java) Filter out StackTrace.lo.
8305 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8307 * configure.in: Add in AC_PREREQ(2.13)
8308 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8311 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8312 Tom Tromey <tromey@redhat.com>
8315 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8316 array to superclass.
8317 (init): Changed interface; add URLs here.
8318 (initialize): New static method.
8319 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8320 (_Jv_RunMain): ... not here.
8322 2004-01-14 Michael Koch <konqueror@gmx.de>
8324 * java/text/MessageFormat.java:
8325 Added descriptions to exceptions.
8326 This fixes PR libgcj/2429.
8328 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8330 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8331 (push): Make sure push is performed at the top of the thread stack.
8333 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8335 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8336 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8337 (native create): Add width and height parameters. Set text
8338 view's size request according to new parameters.
8339 (create): Calculate text view size based on current font's
8340 metrics and number of rows and columns. Set TextArea's font if
8341 not already set. Call native create.
8342 (getMinimumSize): Call minimumSize.
8343 (getPreferredSize): Call preferredSize.
8344 (getHScrollbarHeight): New method.
8345 (getVScrollbarWidth): New method.
8346 (minimumSize): Calculate minimum size based on scrollbar
8347 visibility, scrollbar sizes, font metrics and number of rows and
8349 (preferredSize): Likewise for preferred size.
8350 (gtkTextGetSize): Remove method.
8352 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8354 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8355 (initializeInsets): Remove method.
8356 (GtkComponentPeer): Initialize insets field. Remove call to
8358 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8360 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8362 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8363 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8364 (latestInsets): Remove field.
8365 (native create): Add insets parameter. Call
8366 window_get_frame_extents. Set the window's default size and
8367 size request based on its frame extents.
8368 (create): Initialize insets.
8369 (postInsetsChangedEvent): New method.
8370 (postConfigureEvent): Remove parameters top, left, bottom,
8371 right. Remove insets-related logic.
8372 (connectJObject): Handle property-notify-event.
8373 (window_get_frame_extents, request_frame_extents,
8374 property_notify_predicate, window_property_changed_cb): New
8376 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8377 (pre_event_handler): Remove insets-related logic for configure
8379 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8380 Update postConfigureEvent signature.
8382 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8384 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8385 to handle Window "Closing" events.
8387 2004-01-13 David Jee <djee@redhat.com>
8389 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8390 (setBackground): New method. Children with no explicitly-set
8391 background will be repainted with the parent container's new
8394 2004-01-13 David Jee <djee@redhat.com>
8396 * Makefile.am: Add BitwiseXORComposite.java.
8397 * Makefile.in: Regenerated.
8398 * gcj/Makefile.in: Regenerated.
8399 * include/Makefile.in: Regenerated.
8400 * testsuite/Makefile.in: Regenerated.
8402 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8404 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8405 not show modal dialogs twice and so that it allows showing a modal
8406 dialog from another modal dialog.
8408 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8410 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8411 and run secondary dispatch thread to process event queue while this
8414 2004-01-12 Graydon Hoare <graydon@redhat.com>
8416 * gnu/java/awt/gtk/GdkGraphics2D.java
8417 (static): Check GtkToolkit before initializing static state.
8418 (Graphics2D): Don't construct transform with 0.5 unit offset.
8420 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8422 * gnu/java/awt/BitwiseXORComposite.java: Add.
8423 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8424 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8425 (BitwiseXORComposite): Remove inner class.
8427 2004-01-11 Michael Koch <konqueror@gmx.de>
8429 * gnu/java/lang/reflect/TypeSignature.java
8430 (getEncodingOfClass): Documentation fixed.
8431 (getClassForEncoding): Give class loader to Class.forName().
8432 Documentation fixed.
8434 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8436 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8438 2004-01-11 Michael Koch <konqueror@gmx.de>
8440 * javax/swing/undo/StateEditable.java
8441 (RCSID): Removed redundant modifiers.
8443 2004-01-10 Michael Koch <konqueror@gmx.de>
8445 * javax/print/attribute/EnumSyntax.java
8446 (getStringTable): Made protected.
8447 (getEnumValueTable): Likewise.
8448 * javax/print/attribute/standard/JobKOctetsProcessed.java
8449 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8450 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8451 (JobMediaSheetsCompleted): Made class final.
8452 * javax/print/attribute/standard/OutputDeviceAssigned.java
8453 (getName): Fixed typo.
8454 * javax/print/attribute/standard/RequestingUserName.java
8455 (serialVersionUID): Fixed value.
8457 2004-01-10 Michael Koch <konqueror@gmx.de>
8459 * javax/swing/plaf/basic/BasicButtonUI.java,
8460 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8461 javax/swing/plaf/basic/BasicListUI.java,
8462 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8463 javax/swing/plaf/basic/BasicPanelUI.java,
8464 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8465 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8466 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8467 javax/swing/plaf/basic/BasicViewportUI.java:
8468 Fixed import statements.
8470 2004-01-10 Michael Koch <konqueror@gmx.de>
8472 * gnu/java/awt/image/ImageDecoder.java
8473 (produce): Made public.
8474 * gnu/java/awt/peer/GLightweightPeer.java,
8475 gnu/java/awt/peer/gtk/GtkToolkit.java:
8478 2004-01-10 Michael Koch <konqueror@gmx.de>
8480 * javax/swing/JRadioButtonMenuItem.java,
8481 javax/swing/JSeparator.java,
8482 javax/swing/JSplitPane.java,
8483 javax/swing/JTextPane.java,
8484 javax/swing/JToolBar.java,
8485 javax/swing/ListCellRenderer.java,
8486 javax/swing/ListModel.java,
8487 javax/swing/MenuElement.java,
8488 javax/swing/OverlayLayout.java,
8489 javax/swing/ProgressMonitor.java,
8490 javax/swing/ProgressMonitorInputStream.java,
8491 javax/swing/Renderer.java,
8492 javax/swing/RootPaneContainer.java,
8493 javax/swing/Scrollable.java,
8494 javax/swing/SingleSelectionModel.java,
8495 javax/swing/ToolTipManager.java,
8496 javax/swing/ViewportLayout.java,
8497 javax/swing/event/DocumentEvent.java,
8498 javax/swing/event/SwingPropertyChangeSupport.java,
8499 javax/swing/event/TreeSelectionEvent.java,
8500 javax/swing/event/UndoableEditEvent.java,
8501 javax/swing/text/AbstractDocument.java,
8502 javax/swing/text/AttributeSet.java,
8503 javax/swing/text/Caret.java,
8504 javax/swing/text/ComponentView.java,
8505 javax/swing/text/DefaultCaret.java,
8506 javax/swing/text/DefaultEditorKit.java,
8507 javax/swing/text/Document.java,
8508 javax/swing/text/EditorKit.java,
8509 javax/swing/text/GapContent.java,
8510 javax/swing/text/Keymap.java,
8511 javax/swing/text/MutableAttributeSet.java,
8512 javax/swing/text/PlainEditorKit.java,
8513 javax/swing/text/Segment.java,
8514 javax/swing/text/Style.java,
8515 javax/swing/text/StyledDocument.java,
8516 javax/swing/text/StyledEditorKit.java,
8517 javax/swing/text/TextAction.java,
8518 javax/swing/text/View.java: Fixed import statements.
8520 2004-01-08 Graydon Hoare <graydon@redhat.com>
8522 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8523 djee@redhat.com's recent inverse ordering of Container elements.
8525 2004-01-09 Michael Koch <konqueror@gmx.de>
8527 * gnu/java/lang/ArrayHelper.java
8528 (equalsArray): Removed.
8530 2004-01-09 Andrew Haley <aph@redhat.com>
8532 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8533 a Utf8Const field before looking at its class.
8535 2004-01-09 Michael Koch <konqueror@gmx.de>
8537 * javax/print/attribute/standard/DocumentName.java,
8538 javax/print/attribute/standard/JobHoldUntil.java,
8539 javax/print/attribute/standard/JobMessageFromOperator.java,
8540 javax/print/attribute/standard/JobName.java,
8541 javax/print/attribute/standard/JobOriginatingUserName.java,
8542 javax/print/attribute/standard/OutputDeviceAssigned.java,
8543 javax/print/attribute/standard/PrinterInfo.java,
8544 javax/print/attribute/standard/PrinterLocation.java,
8545 javax/print/attribute/standard/PrinterMakeAndModel.java,
8546 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8547 javax/print/attribute/standard/PrinterName.java,
8548 javax/print/attribute/standard/RequestingUserName.java: New files.
8549 * Makefile.am (javax_source_files): Added new files.
8550 * Makefile.in: Regenerated.
8552 2004-01-09 Michael Koch <konqueror@gmx.de>
8554 * javax/swing/AbstractAction.java,
8555 javax/swing/AbstractSet.java,
8556 javax/swing/Action.java,
8557 javax/swing/ActionMap.java,
8558 javax/swing/BoundedRangeModel.java,
8559 javax/swing/ButtonModel.java,
8560 javax/swing/CellEditor.java,
8561 javax/swing/CellRendererPane.java,
8562 javax/swing/ComboBoxEditor.java,
8563 javax/swing/DebugGraphics.java,
8564 javax/swing/DefaultCellEditor.java,
8565 javax/swing/DefaultCellRenderer.java,
8566 javax/swing/DefaultComboBoxModel.java,
8567 javax/swing/DefaultDesktopManager.java,
8568 javax/swing/DefaultFocusManager.java,
8569 javax/swing/DefaultListCellRenderer.java,
8570 javax/swing/Icon.java,
8571 javax/swing/JButton.java,
8572 javax/swing/JCheckBoxMenuItem.java,
8573 javax/swing/JDesktopPane.java,
8574 javax/swing/JEditorPane.java,
8575 javax/swing/JMenu.java,
8576 javax/swing/JPanel.java,
8577 javax/swing/JPasswordField.java,
8578 javax/swing/JPopupMenu.java,
8579 javax/swing/JProgressBar.java: Reworked imports.
8581 2004-01-09 Michael Koch <konqueror@gmx.de>
8583 * java/awt/geom/PathIterator.java
8584 (WIND_EVEN_ODD): Removed redundant modifiers.
8585 (WIND_NON_ZERO): Likewise.
8586 (SEG_MOVETO): Likewise.
8587 (SEG_LINETO): Likewise.
8588 (SEG_QUADTO): Likewise.
8589 (SEG_CUBICTO): Likewise.
8590 (SEG_CLOSE): Likewise.
8591 * java/awt/image/SinglePixelPackedSampleModel.java:
8592 Removed redundant semicolon.
8593 * java/io/ObjectInputStream.java
8594 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8595 * java/util/logging/Filter.java
8596 (isLoggable): Removed redundant modifier.
8597 * java/util/logging/LogManager.java:
8598 Removed redundant semicolon.
8599 * java/util/logging/XMLFormatter.java
8600 (format): Removed unused variable "key".
8602 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8604 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8605 New name for the former setFile native method.
8606 (setFile): New method.
8607 (setDirectory): Implemented.
8608 (connectSignals): New native method.
8609 (setFilenameFilter): Improve comment.
8610 (getGraphics): Comment.
8611 (gtkHideFileDialog): New method.
8612 (gtkDisposeFileDialog): New method.
8613 (gtkSetFilename): New method.
8614 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8615 for FileDialog for now.
8617 (dispose): New method.
8618 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8619 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8620 deprecated creation functions. Make dialog modal. Add it to the
8622 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8624 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8626 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8628 (window_closed): New function.
8629 (ok_clicked): New function.
8630 (cancel_clicked): New function.
8632 2004-01-08 Michael Koch <konqueror@gmx.de>
8634 * javax/swing/JLayeredPane.java: Revert changes to standard
8635 boilerplate, reworked imports.
8637 2004-01-07 Tom Tromey <tromey@redhat.com>
8640 * verify.cc (state::merge): Copy changed locals out of subroutine
8642 (state::FLAG_CHANGED): New const.
8643 (state::FLAG_UNUSED): Likewise.
8644 (state::local_changed): Removed. Updated all users.
8645 (state::flags): New field.
8646 (state::merge): Added jsr_semantics argument, more logic.
8647 (push_jump_merge): Added jsr_semantics argument.
8648 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8649 merging through the jsr instruction.
8651 2004-01-07 Tom Tromey <tromey@redhat.com>
8653 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8656 2004-01-07 Graydon Hoare <graydon@redhat.com>
8658 * java/awt/Container.java (LightweightDispatcher): Implement.
8659 (visitChild): Reuse graphics object.
8660 (dispatchEventImpl): Optionally dispatch to lightweight.
8661 (addNotifyContainerChildren): Build LightweightDispatcher.
8663 2004-01-07 David Jee <djee@redhat.com>
8665 * java/awt/Container.java
8666 (update): Clear only the clipped region, instead of clearing the
8668 (visitChildren): Visit children in descending order.
8670 2004-01-07 Michael Koch <konqueror@gmx.de>
8672 * java/lang/reflect/Array.java: Merged documentation with classpath.
8674 2004-01-07 Michael Koch <konqueror@gmx.de>
8676 * java/text/CollationElementIterator.java
8677 (textIndex): Renamed from index.
8678 * java/text/CollationKey.java
8679 (collator): New member.
8680 (CollationKey): New argument for parent collator.
8681 (equals): Check for same collator, source string and key array.
8682 * java/text/RuleBasedCollator.java:
8684 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8686 (getCollationElementIterator): Rewritten.
8687 (getCollationKey): Added new argument to CollationKey constructor.
8689 2004-01-07 Michael Koch <konqueror@gmx.de>
8691 * gnu/java/nio/DatagramChannelImpl.java
8692 (blocking): Removed.
8693 (DatagramChannelImpl): Call configureBlocking().
8694 (implConfigureBlocking): Dont initialize blocking.
8695 * gnu/java/nio/ServerSocketChannelImpl.java
8696 (blocking): Removed.
8697 (ServerSocketChannelImpl): Call configureBlocking().
8698 (implConfigureBlocking): Dont initialize blocking.
8699 * gnu/java/nio/SocketChannelImpl.java
8700 (blocking): Removed.
8701 (SocketChannelImpl): Call configureBlocking().
8702 (implConfigureBlocking): Dont initialize blocking.
8703 (connect): Use isBlocking().
8704 * java/nio/channels/spi/AbstractSelectableChannel.java
8705 (configureBlocking): Use blockingLock() instead of LOCK.
8706 Set blocking after successfully called implConfigureBlocking().
8707 (register): Use blockingLock() instead of LOCK.
8709 2004-01-07 Michael Koch <konqueror@gmx.de>
8711 * java/net/ServerSocket.java (isBound): Fixed documentation.
8713 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8715 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8716 (changeEvent): Create event object on demand.
8717 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8718 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8719 fireStateChanged): Re-written.
8720 * javax/swing/event/EventListenerList.java: Reformatted, document
8722 (toString): Implemented.
8723 (getListeners): Re-written.
8724 (remove): Re-written.
8726 (NO_LISTENERS): New singleton field.
8727 (listenerList): Declare as transient; document.
8728 (serialVersionUID): Document.
8729 (getListenerCount(Class)): More efficient implementation,
8730 also accepts null argument. Improve Javadoc.
8731 (getListenerCount()): Remove unnecessary cast; docfix.
8732 * javax/swing/undo/UndoableEditSupport.java:
8733 Re-format, document.
8734 (UndoableEditSupport): Set realSource field. Improve documentation.
8735 (_postEdit): Iterate over cloned listener vector.
8736 (toString): Don't emit realSource.
8737 (beginUpdate, endUpdate): Support nested updates.
8738 (postEdit): Use compound edit if present.
8740 2004-01-06 Graydon Hoare <graydon@redhat.com>
8742 * java/awt/Container.java (swapComponents): Add forgotten
8743 function, required for JLayeredPane change.
8745 2004-01-06 Michael Koch <konqueror@gmx.de>
8747 * java/text/CollationElementIterator.java: Reformated.
8748 (CollationElementIterator): Changed order of arguments.
8749 * java/text/RuleBasedCollator.java
8750 (RuleBasedCollator): Merged class documentation.
8751 (CollationElement): Added documentation.
8752 (compare): Reformated, renamed arguments.
8754 (getCollationElementIterator): Likewise.
8755 (getCollationKey): Likewise.
8757 2004-01-06 Graydon Hoare <graydon@redhat.com>
8759 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8761 2004-01-06 Michael Koch <konqueror@gmx.de>
8763 * gnu/java/net/protocol/file/Connection.java:
8764 Reformated copyright.
8767 (gotHeaders): Removed.
8768 (getHeaderField): Removed.
8769 (getHeaderField): Removed.
8770 (getHeaderFieldKey): Removed.
8772 (getField): Removed.
8773 (getHeaders): Removed.
8775 2004-01-06 Michael Koch <konqueror@gmx.de>
8777 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8778 javax/print/attribute/standard/DateTimeAtCreation.java,
8779 javax/print/attribute/standard/DateTimeAtProcessing.java,
8780 javax/print/attribute/standard/JobImpressionsCompleted.java,
8781 javax/print/attribute/standard/JobKOctets.java,
8782 javax/print/attribute/standard/JobKOctetsProcessed.java,
8783 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8784 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8785 * Makefile.am (javax_source_files): Added new files.
8786 * Makefile.in: Regenerated.
8788 2004-01-06 Michael Koch <konqueror@gmx.de>
8790 * java/net/URLConnection.java
8791 (contentHandler): Removed.
8793 (getHeaderFields): Return an empty map instead of null.
8794 (getContent): Connect if needed, renamed "cType" to "type" and
8795 "contentHandler" to "ch" and made it a local variable.
8796 (getPermission): Don't use package in class name.
8797 (setDefaultRequestProperty): Fixed typo in documentation.
8798 (initializeDateFormats): Made locale a local variable.
8800 2004-01-06 Michael Koch <konqueror@gmx.de>
8802 * java/lang/Package.java
8803 (getPackage): Get the current class loader directly.
8804 * java/lang/SecurityManager.java
8805 (currentLoadedClass): Dont iterate over class contexts.
8806 (classLoaderDepth): Don't check class loaders if everything is allowed.
8808 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8810 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8811 (pre_event_handler): Set all insets to 0 when a Configure event
8812 is received for a GtkPlug.
8813 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8814 Make handle long, not int.
8815 (EmbeddedWindow()): New constructor.
8816 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8818 (setHandle): New method.
8819 (getHandle): Return long, not int.
8820 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8822 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8823 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8824 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8825 argument to GdkNativeWindow.
8826 (construct): New method.
8827 (embed): New method.
8829 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8830 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8831 (create(int, int)): New method.
8832 (create): Call new create method.
8833 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8835 (childResized): Remove native implementation. Implement in
8837 (getHScrollbarHeight, getVScrollbarWidth): Call
8838 gtk_widget_size_request to get scrollbar dimensions.
8839 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8840 call getVScrollbarWidth and getHScrollbarHeight when vertical
8841 and horizontal scrollbars respectively are needed.
8842 (doLayout): Enlarge child if it is smaller than the viewport.
8844 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8846 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8847 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8848 argument as per spec.
8850 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8852 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8854 (remove): Ditto. Also, Check for valid argument.
8855 (removeAll): Use peer interface method.
8856 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8857 native add function.
8858 (nativeRemove): New name for native remove function.
8859 (getHistory): New native function.
8860 (constructor): Generate ItemEvent.
8861 (add): Ditto, if selection is changed.
8862 (remove): Ditto, ditto.
8863 (removeAll): Add implementation.
8864 (handleEvent): Remove. Dead code.
8865 (choicePostItemEvent): Add comment.
8866 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8867 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8868 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8869 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8870 comments and fix condition to change selection.
8871 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8872 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8873 remove all capability.
8874 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8875 (item_activate): Add cast to remove compiler warning.
8877 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8879 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8880 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8881 (getPreferredSize): Call preferredSize.
8882 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8883 (getMinimumSize): Call minimumSize.
8884 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8885 (gtkWidgetGetDimensions): Return the peer widget's current size
8887 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8888 natural size request.
8890 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8892 Thanks to Brian Gough <bjg@network-theory.com>
8893 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8894 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8896 2004-01-04 Matthias Klose <doko@debian.org>
8898 * aclocal.m4: Rebuilt using "aclocal -I .".
8899 * configure: Rebuilt.
8901 2004-01-03 Per Bothner <per@bothner.com>
8903 * java/util/Date.java (parse): Fix a number of problems.
8904 (skipParens): Remove no-longer-needed method.