1 2004-08-17 Michael Koch <konqueror@gmx.de>
3 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
4 * Makefile.in: Regenerated.
6 2004-08-16 Tom Tromey <tromey@redhat.com>
9 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
11 2004-08-16 Michael Koch <konqueror@gmx.de>
14 (math_c_files): Renamed from c_files.
15 (math_c_source_files): Renamed from c_source_files.
19 testsuite/Makefile.in: Regenerated.
21 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
23 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
24 to avoid autoconf warning.
27 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
29 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
30 localhostAddress to loopbackAddress.
31 * java/net/natInetAddressWin32.cc (lookup): Likewise.
33 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
35 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
36 boehm-gc's include dirs.
38 * include/boehm-gc.h: Include gc_config.h.
40 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
42 * java/net/InetAddress.java (loopbackAddress): Renamed from
44 (getByName): Return loopback address for null hostname, without
45 security check. Use lookup(), not getAllByName.
46 (getAllByName): Return loopback address for null hostname, without
48 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
51 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
54 Reported by Robin Green.
55 * defineclass.cc (handleField): Don't throw exception on unrecognised
56 modifier. Add FIXME comments for spec compliance.
57 (handleMethod): Likewise.
59 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
62 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
63 (Almost everywhere): add LOG calls, fix, add comments.
64 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
65 Add explicit check for LOCKED bit in slow case (PR 16662).
66 (_Jv_MonitorExit): Add casts in debug-only code.
67 Always release LOCKED bit before throwing exception.
68 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
69 isn't. Handle easy cases without lock acquisition.
70 (Object::wait): Use NotifyAll for lock inflation.
72 2004-08-12 David Daney <ddaney@avtrex.com>
74 * testsuite/libjava.lang/Process_1.java: New test.
75 * testsuite/libjava.lang/Process_2.java: New test.
76 * testsuite/libjava.lang/Process_3.java: New test.
77 * testsuite/libjava.lang/Process_4.java: New test.
78 * testsuite/libjava.lang/Process_5.java: New test.
79 * testsuite/libjava.lang/Process_6.java: New test.
80 * testsuite/libjava.lang/Process_1.out: Expected result.
81 * testsuite/libjava.lang/Process_2.out: Expected result.
82 * testsuite/libjava.lang/Process_3.out: Expected result.
83 * testsuite/libjava.lang/Process_4.out: Expected result.
84 * testsuite/libjava.lang/Process_5.out: Expected result.
85 * testsuite/libjava.lang/Process_6.out: Expected result.
87 2004-08-12 David Daney <ddaney@avtrex.com>
90 * java/lang/PosixProcess.java: Rewrote.
91 * java/lang/natPosixProcess.cc: Rewrote.
92 * java/lang/Runtime.java (execInternal): Declare throws IOException.
93 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
94 * posix-threads.cc (block_sigchld) New function.
95 (_Jv_ThreadRegister) Use it.
96 (_Jv_ThreadStart) Use it.
97 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
98 * Makefile.am: ... to specify extra native headers.
99 * configure: Regenerated.
100 * include/config.h: Regenerated.
101 * Makefile.in: Regenerated.
102 * gcj/Makefile.in: Regenerated.
103 * include/Makefile.in: Regenerated.
104 * testsuite/Makefile.in: Regenerated.
106 2004-08-12 Diego Novillo <dnovillo@redhat.com>
108 PR tree-optimization/16867
109 * testsuite/libjava.lang/PR16867.java: New test.
111 2004-08-09 Per Bothner <per@bothner.com>
113 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
114 with private fields and access methods.
115 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
116 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
117 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
118 ( _Jv_makeUtf8Const): Rewrite using new constructors.
119 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
120 * defineclass.cc: Use new _Utf8Const access/convenience methods.
122 * resolve.cc: Likewise.
123 * gcj/field.h: Likewise.
124 * include/jvm.h: Likewise.
125 * java/lang/Class.h: Likewise.
126 * java/lang/natClass.cc: Likwise.
127 * java/lang/natClassLoader.cc: Likewise
128 * java/lang/reflect/natMethod.cc: Likewise
129 * verify.cc: Likewise.
130 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
131 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
133 2004-08-10 Andrew Haley <aph@redhat.com>
135 * testsuite/libjava.lang/err14.java: New file.
136 * testsuite/libjava.lang/err14.out: New file.
138 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
140 * Makefile.am: Fix missing rename from x_nat_headers to
142 * Makefile.in: Regenerated.
144 2004-08-04 Andrew Haley <aph@redhat.com>
146 * java/security/BasicPermission.java: Don't check wildcards.
148 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
149 Michael Koch <konqueror@gmx.de>
151 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
152 * configure.in: Replaced all usages of AC_LINK_FILES by
155 configure: Regenerated.
157 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
158 Michael Koch <konqueror@gmx.de>
160 * acconfig.h: Removed.
161 * Makefile.am: Rename variables for xlib peer to include xlib and
162 gtk_c_headers to gtk_jni_headers.
163 * Makefile.in: Regenerated.
165 2004-08-04 Andrew Haley <aph@redhat.com>
167 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
170 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
172 * configure.in: Eliminate uses of changequote (mostly by quoting []).
173 Replace most top level 'dnl' comments with '#' comments, conforming
174 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
176 * configure: Rebuilt.
178 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
180 * acinclude.m4: Include no-executables.m4.
181 * aclocal.m4: Rebuild.
182 * configure.in: Convert to the autoconf 2.59 version of
183 of the no-executables hack, and also of the nonstandard CXX
184 hack and the multilibbed CC and CXX hack. Change prerequisite
186 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
187 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
188 testsuite/Makefile.in: Regenerate.
190 2004-08-03 Tom Tromey <tromey@redhat.com>
192 * jni.cc: Reindented.
194 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
196 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
198 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
200 * testsuite/libjava.compile/PR16701.java: New test.
202 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
204 * java/util/Collection.java, java/util/List.java,
205 java/util/Map.java, java/util/Set.java,
206 java/util/SortedMap.java, java/util/SortedSet.java:
207 Added additional exceptions to documentation.
209 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
212 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
213 * configure. Regenerate.
214 * include/win32.h: Explicitly include winsock2.h
215 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
218 2004-07-30 Michael Koch <konqueror@gmx.de>
220 * java/util/zip/GZIPInputStream.java
221 (GZIPInputStream): Increase buffer size to 4k.
222 * java/util/zip/GZIPOutputStream.java
223 (GZIPOutputStream): Likewise.
224 * java/util/zip/Inflater.java
225 (setInput): Merged formating with GNU classpath.
226 * java/util/zip/InflaterInputStream.java
227 (InflaterInputStream): Increase buffer size to 4k.
228 (fill): Throw exception if stream ends early.
229 (read): Merged endless-loop with GNU classpath.
230 (skip): Increase buffer size to 2k.
232 2004-07-30 Michael Koch <konqueror@gmx.de>
234 * gnu/java/awt/EmbeddedWindow.java
235 (addNotify): Use AccessController to allow execution of privileged
238 2004-07-29 Michael Koch <konqueror@gmx.de>
240 * gnu/java/lang/MainThread.java:
241 Explicitely import used classes.
242 (args): Make it type String[].
244 2004-07-29 Dalibor Topic <robilad@kaffe.org>
246 * gnu/java/awt/ComponentDataBlitOp.java,
247 gnu/java/beans/ExplicitBeanInfo.java,
248 gnu/java/beans/IntrospectionIncubator.java,
249 gnu/java/beans/editors/ColorEditor.java,
250 gnu/java/beans/editors/FontEditor.java,
251 gnu/java/beans/editors/NativeBooleanEditor.java,
252 gnu/java/beans/editors/NativeByteEditor.java,
253 gnu/java/beans/editors/NativeDoubleEditor.java,
254 gnu/java/beans/editors/NativeFloatEditor.java,
255 gnu/java/beans/editors/NativeIntEditor.java,
256 gnu/java/beans/editors/NativeLongEditor.java,
257 gnu/java/beans/editors/NativeShortEditor.java,
258 gnu/java/beans/editors/StringEditor.java,
259 gnu/java/io/ClassLoaderObjectInputStream.java,
260 gnu/java/io/decode/Decoder.java,
261 gnu/java/io/encode/Encoder.java,
262 gnu/java/lang/ClassHelper.java,
263 gnu/java/locale/Calendar.java,
264 gnu/java/locale/Calendar_de.java,
265 gnu/java/locale/Calendar_en.java,
266 gnu/java/locale/Calendar_nl.java,
267 gnu/java/locale/LocaleInformation_de.java,
268 gnu/java/locale/LocaleInformation_en.java,
269 gnu/java/locale/LocaleInformation_nl.java:
272 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
274 * README: Remove obsolete info. Update bug URL.
276 * NEWS: Updated with news up to GCC 3.4 release.
278 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
280 * gnu/java/security/action/GetPropertyAction.java (setParameters):
281 Renamed from 'setName'. New 2-argument form with default value.
282 (run): Pass default 'value' parameter to System.getProperty().
283 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
285 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
288 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
290 * configure.in: Check for minimum GTK version 2.4 requirement.
291 * configure: Rebuilt.
293 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
295 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
296 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
298 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
300 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
301 address. Reduce sleep times. Synchronize with target threads before
302 attempting to interrupt them. Don't try to calibrate yeild count,
303 instead, always loop for a fixed time.
304 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
305 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
306 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
307 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
308 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
309 * testsuite/libjava.lang/pr179.java: Likewise.
310 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
311 time. Remove upper bounds check on sleep time.
313 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
315 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
316 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
318 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
320 * java/io/File.java (toURI): Throw RuntimeException, not
322 * java/lang/Runtime.java (exit): Qualify static sleep() call with
323 class name, not instance.
325 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
327 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
328 and gnu/java/security/action/SetAccessibleAction.java.
329 * Makefile.in: Rebuilt.
331 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
333 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
334 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
336 (DECLARE_PRIM_TYPE): Don't declare array vtables.
337 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
338 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
340 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
342 * Makefile.am: Replace jar, rmic and rmiregistry references with
343 gjar, grmic and grmiregistry.
344 * configure.in: Likewise.
345 * Makefile.in: Regenerate.
346 * configure: Likewise.
347 * gcj/Makefile.in: Likewise.
348 * include/Makefile.in: Likewise.
349 * testsuite/Makefile.in: Likewise.
351 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
353 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
354 for privileged getProperty calls.
355 * java/io/ObjectOutputStream.java (getField): No longer static. Use
356 SetAccessibleAction instead of anonymous class for doPrivileged call.
357 (getMethod): Likewise.
358 (setAccessible): New field. PrivilegedAction object to use when
359 calling setAccessible.
360 * java/io/ObjectStreamClass.java (calculateOffsets): Use
361 SetAccessibleAction instead of anonymous class for diPrivileged call.
362 (setFields): Likewise.
363 (getClassUID): Likewise.
364 (findMethod): Likewise.
365 * gnu/java/security/action/GetPropertyAction.java: New class.
366 * gnu/java/security/action/SetAccessibleAction.java: New class.
368 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
370 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
372 * testsuite/libjava.lang/Serialization.java: New test.
373 * testsuite/libjava.lang/Serialization.out: New.
375 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
377 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
378 missed in last commit.
380 2004-07-23 Mark Wielaard <mark@klomp.org>
382 * java/lang/System.java (static): Set http.agent system property when
384 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
385 from system property inside AccessController.doPrivileged() call.
386 (proxyPort): Made package private.
387 (proxyInUse): Likewise.
388 (proxyHost): Likewise.
389 (userAgent): Likewise.
391 2004-07-23 Mark Wielaard <mark@klomp.org>
393 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
396 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
398 * Makefile.am (ordinary_java_source_files): Add
399 DefaultContentHandlerFactory.java.
400 * Makefile.in: Rebuilt.
401 * java/net/URLConnection.java (defaultFactory): New field.
403 (getContentHandler): Renamed from 'setContentHandler'. Try
404 defaultFactory after user-set factory, if any. Search for content
405 handler implementations in gnu.java.net.content, not gnu.gcj.content.
406 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
408 (getLastModified): Implemented.
409 (getPermission): Create file permission here, instead of in
411 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
413 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
415 (getLastModified): Implemented.
416 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
417 Default implementation.
418 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
419 Implement using GdkPixbufDecoder.
421 2004-07-21 Michael Koch <konqueror@gmx.de>
423 * javax/swing/JTextArea.java
424 (setLineWrap): Fire property change event after new value is set.
425 (setTabSize): Likewise.
427 2004-07-21 Michael Koch <konqueror@gmx.de>
429 * javax/swing/JTable.java
430 (autoCreateColumnsFromModel): New field.
431 (autoResizeMode): Likewise.
432 (cellEditor): Likewise.
433 (cellSelectionEnabled): Likewise.
434 (columnModel): Likewise.
435 (dataModel): Likewise.
436 (defaultEditorsByColumnClass): Likewise.
437 (defaultRenderersByColumnClass): Likewise.
438 (editingColumn): Likewise.
439 (editingRow): Likewise.
440 (gridColor): Likewise.
441 (preferredViewportSize): Likewise.
442 (rowHeight): Likewise.
443 (rowMargin): Likewise.
444 (rowSelectionAllowed): Likewise.
445 (selectionBackground): Likewise.
446 (selectionForeground): Likewise.
447 (selectionModel): Likewise.
448 (showHorizontalLines): Likewise.
449 (showVerticalLines): Likewise.
450 (tableHeader): Likewise.
451 (JTable): Implemented.
452 (getColumnModel): Likewise.
453 (getSelectedRow): Likewise.
454 (getSelectionModel): Likewise.
455 (setModel): Likewise.
456 (setSelectionModel): Likewise.
457 (createScrollPaneForTable): New method.
458 (createDefaultDataModel): Likewise.
459 (createDefaultListSelectionModel): Likewise.
460 (getModel): Likewise.
461 (getTableHeader): Likewise.
462 (setTableHeader): Likewise.
463 (getColumnSelectionAllowed): Likewise.
464 (setColumnSelectionAllowed): Likewise.
465 (getRowSelectionAllowed): Likewise.
466 (setRowSelectionAllowed): Likewise.
467 (getAutoResizeMode): Likewise.
468 (setAutoResizeMode): Likewise.
469 (getColumnCount): Likewise.
470 (getRowCount): Likewise.
471 (getCellRenderer): Likewise.
472 * javax/swing/JTree.java
473 (cellRenderer): New field.
474 (editable): Likewise.
475 (rootVisible): Likewise.
476 (showsRootHandles): Likewise.
477 (getModel): New method.
478 (setModel): Likewise.
479 (isEditable): Likewise.
480 (setEditable): Likewise.
481 (isRootVisbile): Likewise.
482 (setRootVisible): Likewise.
483 (getShowsRootHandles): Likewise.
484 (setShowRootHandles): Likewise.
485 (getCellRenderer): Likewise.
486 (setCellRenderer): Likewise.
488 2004-07-21 Michael Koch <konqueror@gmx.de>
490 * javax/swing/JFormattedTextField.java
491 (setDocument): Implemented.
492 * javax/swing/JRootPane.java:
494 * javax/swing/JTable.java
495 (getDefaultRenderer): New method.
496 * javax/swing/JTextField.java
498 (getPreferredSize): Likewise.
499 * javax/swing/JToggleButton.java
500 (getAccessibleContext): Fix javadoc.
501 * javax/swing/JTree.java:
503 * javax/swing/JViewport.java:
506 2004-07-21 David Jee <djee@redhat.com>
508 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
509 Collect all native method declaration at the top.
510 (create): Set the filename filter if necessary.
511 (setDirectory): Call nativeSetDirectory().
512 (setFilenameFilter): Implement.
513 (filenameFilterCallback): New method.
514 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
515 (create): Configure dialog to show hidden files.
516 (filenameFilterCallback): New function.
517 (nativeSetFilenameFilter): New function.
518 (nativeSetDirectory): New function.
520 2004-07-21 Kim Ho <kho@redhat.com>
522 * javax/swing/plaf/basic/BasicSliderUI.java:
524 (paintTrack): Fill the track before painting
527 2004-07-21 Graydon Hoare <graydon@redhat.com>
529 patch from Roman Kennke <roman@ontographics.com>
530 * javax/swing/Spring.java: New file.
531 * javax/swing/SpringLayout.java: New file.
532 * Makefile.am: Add new files.
533 * Makefile.in: Regenerate.
535 2004-07-21 Graydon Hoare <graydon@redhat.com>
537 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
538 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
539 * javax/swing/ScrollPaneLayout.java: Likewise.
541 2004-07-21 Kim Ho <kho@redhat.com>
543 * javax/swing/DefaultDesktopManager.java:
544 (findMinimum): Removed.
545 (resizeFrame): Trust the UI to pass valid
547 * javax/swing/JOptionPane.java:
548 Implemented showInternalXXXDialog methods.
549 (startModal): New method.
550 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
551 (BorderListener::mouseDragged): Verify that the new
552 bounds are valid before passing them to the DesktopManager.
553 (preferredLayoutSize): Delegate
555 (minimumLayoutSize): Ditto.
556 (getSize): New method.
557 (GlassPaneDispatcher): Reimplemented by copying
558 a stripped down LightweightDispatcher from Container.
559 (getMinimumSize): Call minimumLayoutSize.
560 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
562 (mousePressed): Add ability to properly close
564 * javax/swing/plaf/basic/BasicToolBarUI.java:
565 (DragWindow): Set owner for DragWindow.
567 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
569 * java/awt/image/ShortLookupTable.java: New file.
570 * java/awt/image/ByteLookupTable.java: New file.
571 * Makefile.am: Added new files.
572 * Makefile.in: Regenerated.
574 2004-07-21 David Jee <djee@redhat.com>
576 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
577 (create(GtkContainerPeer)): New native method.
578 (create()): Call native create(), passing in the parent frame
579 as the paramter. Natively set the current file and directory.
580 (setFile): Construct an absolute filename before passing it to
582 (nativeGetDirectory): New method.
583 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
584 (window_closed): Removed.
585 (ok_clicked): Likewise.
586 (cancel_clicked): Likewise.
587 (handle_response): New method.
588 (create): Use GtkFileChooserDialog.
589 (connectSignals): Connect to handle_response.
590 (nativeGetDirectory): New method.
591 (nativeSetFile): Use GtkFileChooserDialog.
593 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
595 * java/awt/image/LookupTable.java: New file.
596 * Makefile.am: Added new file.
597 * Makefile.in: Regenerated.
599 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
601 * java/awt/image/Kernel.java: New file.
602 * Makefile.am: Added new file.
603 * Makefile.in: Regenerated.
605 2004-07-21 Olga Rodimina <rodimina@redhat.com>
607 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
608 * javax/swing/JMenu.java: Likewise.
609 * javax/swing/JMenuBar.java: Likewise.
610 (MARGIN_CHANGED_PROPERTY): New property.
611 (setMargin): Implemented.
612 * javax/swing/JMenuItem.java: Fixed javadocs.
613 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
614 (LABEL_CHANGED_PROPERTY): New property.
615 (add): changed to use createActionComponent.
616 (createActionComponent): Implemented.
617 (setLabel): Fire PropertyChangeEvent if label property
619 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
620 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
621 (ContainerHandler): Repaint if margin property has changed.
622 * javax/swing/plaf/basic/BasicMenuItemUI.java:
623 (installUI): Call installComponents().
624 (uninstallUI): Call uinstallComponents().
625 * javax/swing/plaf/basic/BasicMenuUI.java:
627 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
630 2004-07-21 Kim Ho <kho@redhat.com>
632 * javax/swing/plaf/basic/BasicToolBarUI.java:
633 (DragWindow): Use the right constructor.
635 2004-07-21 Kim Ho <kho@redhat.com>
637 * javax/swing/JToolBar.java:
638 (layoutContainer): Use getComponents.
639 * javax/swing/plaf/basic/BasicToolBarUI.java:
640 (DragWindow): Don't use SwingUtilities'
642 (ToolBarDialog): ditto.
644 2004-07-21 Kim Ho <kho@redhat.com>
646 * javax/swing/JRootPane.java:
648 (layoutContainer): Set the glasspane's size to
649 be the same as the content pane.
650 (createGlassPane): Set opaque property to false.
652 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
654 * java/awt/Component.java (requestFocus()): Don't handle Panels
656 (requestFocus(boolean)): Likewise.
657 (requestFocusInWindow(boolean)): Likewise.
658 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
659 Set GTK_CAN_FOCUS flag.
661 2004-07-21 Kim Ho <kho@redhat.com>
663 * Makefile.am: Added new file.
664 * Makefile.in: Regenerated.
665 * gcj/Makefile.in: Regenerated.
666 * include/Makefile.in: Regenerated.
667 * javax/swing/AbstractButton.java:
668 Add rollOverEnabled property.
669 (setRolloverEnabled): Use new property.
670 (isRolloverEnabled): Use new property.
671 * javax/swing/JTabbedPane.java:
672 (setComponent): Remove useless JTabbedPane.this.
673 * javax/swing/JToolBar.java: Finish implementation.
674 * javax/swing/plaf/basic/BasicArrowButton.java:
675 (paint): Moved border painting to a border.
676 * javax/swing/plaf/basic/BasicLookAndFeel.java:
677 Change JToolBar look and feel defaults.
678 * javax/swing/plaf/basic/BasicOptionPaneUI.java
679 (actionPerformed): Return Integer index instead of name.
680 (addButtonComponents): Check to see if component is
682 (createMessageArea): Don't use components that are not
684 (getIconForType): Use temporary icons.
685 * javax/swing/plaf/basic/BasicSliderUI.java:
686 (mousePressed): Do not return if it's on thumb.
687 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
688 (paintMinorTickForVertSlider): ditto.
689 (paintMajorTickForHorizSlider): ditto.
690 (paintMajorTickForVertSlider): ditto.
691 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
692 Add a border around the SplitPaneDivider.
693 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
695 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
696 New file. Implemented.
697 * javax/swing/plaf/basic/BasicToolBarUI.java:
699 * testsuite/Makefile.in: Regenerated.
701 2004-07-21 Graydon Hoare <graydon@redhat.com>
703 * javax/swing/Timer.java (run): Queue events each time cycle.
705 2004-07-21 David Jee <djee@redhat.com>
707 * gnu/java/awt/peer/gtk/GtkImagePainter.java
708 (imageComplete): Call image.imageComplete().
709 * java/awt/image/MemoryImageSource.java:
710 Reimplement consumers as a Vector instead of a Hashtable. This is
711 because enumeration on a Hashtable is not thread-safe.
712 (addConsumer): Adapt to Vector consumers.
713 (isConsumer): Adapt to Vector consumers.
714 (removeConsumer): Adapt to Vector consumers.
715 (startProduction): Adapt to Vector consumers. Call imageComplete()
716 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
717 (newPixels): Adapt to Vector consumers.
718 (sendPicture): Set the color model of the image consumer.
719 (newPixels(IIII)): Adapt to Vector consumers.
720 (newPixels(IIIIB)): Adapt to Vector consumers.
722 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
724 * java/awt/Component.java (deliverEvent): Implement.
725 (postEvent): Implement.
726 (handleEvent): Implement.
727 (translateEvent): New method.
728 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
729 * java/awt/Container.java (deliverEvent): Implement.
730 * java/awt/Event.java (paramString): Fix formatting.
731 * java/awt/Font.java (toString): Likewise.
732 * java/awt/Window.java (postEvent): Implement.
734 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
736 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
737 Set window's focus owner upon receiving a FOCUS_LOST event.
738 * java/awt/Window.java (Window()): Refocus the previously
739 focused component within the window when the window regains the
741 (setFocusOwner): New method.
742 * java/awt/Component.java (requestFocus): Add FIXME.
744 * libgcj.pc.in: Remove library flags.
746 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
748 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
750 * java/awt/Component.java (requestFocus()): Handle Panel
751 specially. Post FOCUS_LOST event on opposite component.
752 (requestFocus(boolean)): Likewise.
753 (requestFocusInWindow(boolean)): Likewise.
754 (paramString): Reorder dimension fields.
755 * java/awt/Container.java (paramString): Fix string format.
756 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
757 Handle FOCUS_LOST events. Don't handle Windows specially. Only
758 process key events if the focus owner is non-null.
759 (dispatchKeyEvent): Likewise.
760 * java/awt/Frame.java (paramString): Fix formatting.
761 (generateName): New method.
762 (getUniqueLong): Likewise.
763 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
764 the temporary focus owner is null. If so, return the permanent
766 * java/awt/Panel.java (generateName): New method.
767 (getUniqueLong): Likewise.
768 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
769 signal handling to make callbacks more specific.
771 2004-07-21 Michael Koch <konqueror@gmx.de>
773 * javax/swing/text/Position.java
776 2004-07-21 Michael Koch <konqueror@gmx.de>
778 * javax/swing/LookAndFeel.java
779 (provideErrorFeedback): New method.
781 2004-07-21 Michael Koch <konqueror@gmx.de>
783 * javax/swing/JTextArea.java
784 (tabSize): New field.
785 (getTabSize): New method.
786 (setTabSize): Likewise.
788 2004-07-21 Michael Koch <konqueror@gmx.de>
790 * javax/swing/ActionMap.java:
791 Fixed javadocs all over.
792 (serialVersionUID): Made private.
793 (parent): Don't explicitely initialize with default value.
795 (keys): Reimplemented.
797 (convertSet): Removed.
798 * javax/swing/ComponentInputMap.java:
799 Fixed javadocs all over.
800 (ComponentInputMap): Implemented.
804 (SetParent): Likewise.
805 (getComponent): Likewise.
806 * javax/swing/InputMap.java:
807 Fixed javadocs all over.
808 (serialVersionUID): Made private.
809 (parent): Don't explicitely initialize with default value.
811 (keys): Reimplemented.
813 (convertSet): Removed.
815 2004-07-21 Michael Koch <konqueror@gmx.de>
817 * javax/swing/ActionMap.java,
818 javax/swing/ComponentInputMap.java,
819 javax/swing/InputMap.java,
820 javax/swing/table/DefaultTableColumnModel.java,
821 javax/swing/table/TableColumn.java,
822 javax/swing/table/TableColumnModel.java,
823 javax/swing/table/TableModel.java,
824 javax/swing/text/AbstractDocument.java,
825 javax/swing/text/TextAction.java:
828 2004-07-21 Graydon Hoare <graydon@redhat.com>
830 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
831 Make method non-static.
832 * javax/swing/AbstractButton.java:
833 Rename fields to match property names where possible.
834 (iconTextGap): New property.
835 * javax/swing/JCheckBox.java: Match AbstractButton changes.
836 (init) New method, call from after various constructors.
837 * javax/swing/JComponent.java (revalidate):
838 Invalidate before queueing repair.
839 * javax/swing/JList.java (getPreferredScrollableViewportSize):
840 Reimplement in terms of visibleRowCount property.
841 * javax/swing/JMenuButton.java: Match AbstractButton changes.
842 * javax/swing/JScrollPane.java (createScrollListener):
843 Remove tracing chatter.
844 * javax/swing/JToggleButton.java: Match AbstractButton changes.
845 * javax/swing/RepaintManager.java (addInvalidComponent):
847 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
849 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
850 Mimic sun behavior on top left/right positioning.
851 * javax/swing/ViewportLayout.java (preferredLayoutSize):
852 Remove mistaken use of preferredScrollableViewportSize here.
853 (layoutContainer): Use view's preferred size as basis.
854 * javax/swing/plaf/basic/BasicButtonUI.java:
855 Set, get, and use textIconGap property.
856 (paint) Paint text returned from layout (with ellipsis).
857 * javax/swing/plaf/basic/BasicListUI.java:
858 Remove tracing chatter, correct various minor calculations.
859 (getCellBounds): Update layout state before calculating.
860 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
861 Use margin default similar to sun's.
862 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
863 (createIncreaseIcon): Center icon, minimize margins.
864 (createDecreaseIcon): Likewise.
865 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
867 (installUI): Call it.
868 (uninstallDefaults): Implement.
869 (uninstallUI): Call it.
870 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
871 Call existing Window constructor.
872 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
873 Set clip before painting.
875 2004-07-21 Olga Rodimina <rodimina@redhat.com>
877 * javax/swing/JMenuItem.java:
878 (processMouseEvent): Reimplemented to deal with
880 (createMenuDragMouseEvent): New private helper method.
881 Creates MenuDragMouseEvent.
882 * javax/swing/MenuSelectionManager.java
883 (componentForPoint): Implemented.
884 (isComponentPartOfCurrentMenu): Made public.
885 (processMouseEvent): Reimplemented to deal with
887 (setSelectedPath): Corrected small mistake that caused
888 path to be set incorrectly.
889 (getPath): If given component is JMenu then also add this
890 menu's popup menu to the selected path.
891 * javax/swing/plaf/basic/BasicMenuItemUI.java:
893 (getPreferredSize): Call getPreferredMenuItemSize().
894 (getPreferredItemSize): Moved code from getPreferredSize to here.
895 (installListeners): Install MouseMotionListeners.
896 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
897 if mouse wasn't released in the bounds of this menu item.
898 (MenuDragMouseHandler): Implemented.
899 * javax/swing/plaf/basic/BasicMenuUI.java:
900 (installListeners): Install MouseMotionListener and
901 MenuDrageMouseListener.
902 (MenuDragMouseHandler): Implemented.
903 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
904 (uninstallListeners): Implemented.
906 2004-07-21 Michael Koch <konqueror@gmx.de>
908 * javax/swing/JCheckBox.java: Reformated.
909 (JCheckBox): Fixed all constructors.
910 (isBorderPaintedFlat): New method.
911 (setBorderPaintedFlat): New method.
912 * javax/swing/JEditorPane.java
913 (createEditorKitForContentType): Made public.
914 (scrollToReference): Likewise.
915 * javax/swing/JTextArea.java
916 (setLineWrap): Fire property change.
917 * javax/swing/JToggleButton.java
918 (JToggleButton): New constructor.
919 (JToggleButton): Simplified.
920 * javax/swing/text/AttributeSet.java
921 (FontAttribute): Renamed from FontCharacterAttribute.
922 * javax/swing/text/JTextComponent.java
923 (KeyBinBinding): Added javadoc.
924 (JTextComponent): Likewise.
925 (getAccessibleContext): Fixed javadoc.
926 * javax/swing/text/View.java
927 (View): Added javadoc.
928 * javax/swing/text/TabableView.java: New file.
929 * Makefile.am: Added javax/swing/text/TabableView.java.
930 * Makefile.in: Regenerated.
932 2004-07-21 Graydon Hoare <graydon@redhat.com>
934 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
935 * gnu/java/awt/peer/gtk/GtkToolkit.java
936 (GtkErrorImage): New helper class.
937 (bufferedImageOrError): New helper method.
938 (createImage): Use it.
940 2004-07-21 David Jee <djee@redhat.com>
942 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
943 (setCaretPosition): Scroll the text view so the new caret position
944 is visible on screen.
946 2004-07-21 David Jee <djee@redhat.com>
948 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
949 (setBounds): Do not validate awtComponent here.
950 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
951 (getPreferredSize): New method.
952 * java/awt/ScrollPane.java
953 (ScrollPane): Set default size to 100x100.
954 (addNotify): If child is not a Panel, wrap it with a new Panel.
955 (paramString): Implement.
957 2004-07-21 Olga Rodimina <rodimina@redhat.com>
959 * javax/swing/JMenu.java:
960 (setSelected): Display popup menu only if this menu
961 is showing on the screen.
962 * javax/swing/JPopupMenu.java:
963 (processMouseEvent): Added comment.
964 (processKeyEvent): Likewise.
965 * javax/swing/MenuSelectionManager.java:
966 (clearSelectedPath): Only fireStateChanged() after
967 selected path was changed, not before.
968 (setSelectedPath): Likewise.
969 * javax/swing/plaf/basic/BasicMenuItemUI.java:
970 (paintMenuItem): Corrected position of menu item's
972 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
973 (installUI): Correct setDefaultLightWeightPopupEnabled call.
974 (popupMenuCanceled): Reimplemented.
975 (popupMenuWillBecomeVisible): Select first menu item by default
976 when displaying free floating popup menus.
977 (TopWindowListener): Reimplemented.
979 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
981 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
982 Panel from being painted twice when it is first shown.
984 2004-07-21 Olga Rodimina <rodimina@redhat.com>
986 * java/awt/Window.java: Reverted changes from my
987 previous patch for creating window without an owner.
988 * javax/swing/SwingUtilities.java:
989 (SwingUtilities.OwnerFrame): made static.
990 (OwnerFrame.setVisible): New method. Overridden with
991 empty implementation.
992 (OwnerFrame.isShowing): New method. Ovverridden
993 to return always true.
995 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
997 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
998 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
999 (GtkComponentPeer): Remove temporary try/catch block.
1000 (setVisible): Call show and hide.
1001 (show): Make native.
1003 (getArgs): Don't add "visible" argument.
1004 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1005 (property_notify_predicate): Return Bool instead of int.
1006 (find_layout): New function.
1007 (connectJObject): Call find_layout.
1008 (connectSignals): Likewise.
1009 (moveLayout): Likewise.
1010 (gtkLayoutSetVisible): Likewise.
1012 2004-07-21 Mark Wielaard <mark@klomp.org>
1014 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1015 on notifier object before calling notifyAll().
1017 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1019 * java/awt/Window.java: Changed constructors to use new
1020 method that is described below. Constructors call this
1021 methods only if newly created window should have an owner.
1022 (setWindowOwner): New method. Implementation for
1023 this method is moved from this(owner,configuration).
1024 * javax/swing/JWindow.java:
1025 (JWindow): Reimplement to use SwingUtilities.ownerFrame
1027 * javax/swing/SwingUtilities.java:
1028 (ownerFrame): Change type of this field to OwnerFrame.
1029 (getOwnerFrame): Changed to return object of type OwnerFrame.
1030 (SwingUtilities.OwnerFrame): New class. Represents owner
1031 of a Window that is not provided with one.
1033 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1035 * javax/swing/AbstractButton.java:
1036 (configurePropertiesFromAction): Set action command
1037 to button's text by default if action command is not
1038 explicitely specified.
1039 * javax/swing/JMenu.java: Remove unnecessary listener
1040 and methods relevant to it.
1041 (setSelected): Reimplemented.
1042 (menuSelectionChanged): Moved most part of implementation to
1043 setSelected() and call it instead.
1044 * javax/swing/JMenuItem.java:
1045 (init): Comment out statement that sets paint_border to false.
1046 (configurePropertiesFromAction): Do not set accelerator
1048 (menuSelectionChanged): Change selected index in the selection
1049 model of menu item's parent.
1050 * javax/swing/JPopupMenu.java:
1051 (remove): Set constraints.fill field to GridBagConstraints.BOTH
1052 instead of GridBagConstraints.HORIZONTAL.
1054 (createActionChangeListener): Implemented.
1055 (setVisible): Correct location of HeavyWeightMenu and
1056 don't firePopupMenuCanceled().
1057 (menuSelectionChanged): Implemented.
1058 (ActionChangeListener): New Listener. Implemented.
1059 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1060 (BasicMenuBarUI.ContainerHandler): Implemented.
1061 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1062 (paintMenuItem): Uncommented out code that paints
1063 icon, now that icons are working properly.
1064 (PropertyChangeListener): Implemented.
1065 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1067 (topWindowListener): New field.
1068 (Constructor): initialize topWindowListener.
1069 (BasicPopupMenuUI.TopWindowListener): Implemented.
1070 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
1071 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
1074 2004-07-21 Michael Koch <konqueror@gmx.de>
1076 * javax/swing/plaf/basic/BasicButtonUI.java
1077 (paintFocus): Fixed method signature.
1078 (paintButtonPressed): Likewise.
1079 (paintButtonNormal): Likewise.
1080 (paintText): New method.
1081 * javax/swing/plaf/basic/BasicLabelUI.java
1082 (paint): Re-indented.
1083 * javax/swing/plaf/basic/BasicTextUI.java
1084 (installUI): Set parent textComponent to opaque.
1085 * javax/swing/text/DefaultHighlighter.java
1086 (checkPositions): New helper method.
1087 (addHighlight): Throws BadLocationException, check positions.
1088 (changeHighlight): Likewise.
1089 * javax/swing/text/EditorKit.java
1090 (EditorKit): Implements Serializable.
1091 * javax/swing/text/JTextComponent.java
1092 (getUI): Added javadoc.
1094 (upadteUI): Added javadoc, don't revalidate and repaint.
1096 2004-07-21 David Jee <djee@redhat.com>
1098 * java/awt/GridBagLayout.java
1099 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
1100 * javax/swing/AbstractButton.java
1101 (setText): Reindent.
1102 * javax/swing/RepaintManager.java
1103 (addInvalidComponent): Find the first ancestor that isValidateRoot().
1105 2004-07-21 Michael Koch <konqueror@gmx.de>
1107 * javax/swing/JFormattedTextField.java
1109 (JFormattedTextField): Implemented.
1110 (getValue): Likewise.
1111 (setValue): Likewise.
1112 * javax/swing/LookAndFeel.java
1113 (getSupportsWindowDecorations): New method.
1114 * javax/swing/UIDefaults.java:
1115 Use java.beans.PropertyChangeSupport instead of doing all ourself.
1116 (addPropertyChangeListener): Made public.
1117 (addResourceBundle): Likewise.
1118 (removeResourceBundle): Likewise.
1119 (setDefaultLocale): Likewise.
1120 * javax/swing/plaf/basic/BasicRootPaneUI.java
1121 (BasicRootPaneUI): Implements PropertyChangeListener.
1122 (propertyChange): New method.
1123 * javax/swing/plaf/basic/BasicTextUI.java
1124 (BasicHighlighter): New inner class.
1125 (createHighlighter): New method.
1126 * javax/swing/plaf/basic/BasicToolBarUI.java
1127 (DragWindow): Extends java.awt.Window.
1128 * javax/swing/text/JTextComponent.java
1129 (getDocument): Removed debug output.
1130 * javax/swing/plaf/basic/BasicTextFieldUI.java,
1131 javax/swing/text/DefaultHighlighter.java,
1132 javax/swing/text/FieldView.java,
1133 javax/swing/text/PlainView.java: New files.
1134 * Makefile.am: Added new files.
1135 * Makefile.in: Regenerated.
1137 2004-07-21 Michael Koch <konqueror@gmx.de>
1139 * javax/swing/JEditorPane.java
1140 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
1141 (createEditorKitForContentType): Likewise.
1142 * javax/swing/text/DefaultEditorKit.java
1143 (serialVersionUID): Added constant field.
1144 (EndOfLineStringPropery): Fixed typo.
1145 (DefaultEditorKit): New constructor.
1146 * javax/swing/text/Segment.java:
1147 Import java.text.CharacterIterator.
1148 * javax/swing/text/CharacterIterator.java,
1149 javax/swing/text/PlainEditorKit.java: Removed.
1150 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1151 javax/swing/text/PlainEditorKit.java.
1152 * Makefile.in: Regenerated.
1154 2004-07-21 Michael Koch <konqueror@gmx.de>
1156 * javax/swing/JButton.java,
1157 javax/swing/text/DefaultEditorKit.java,
1158 javax/swing/text/EditorKit.java,
1159 javax/swing/text/Segment.java,
1160 javax/swing/text/StyledEditorKit.java:
1163 2004-07-21 Michael Koch <konqueror@gmx.de>
1165 * javax/swing/ImageIcon.java
1167 (description): Renamed from descr.
1168 (ImageIcon): Added missing constructors.
1169 (setParent): Removed.
1170 (setImageObserver): New method.
1171 (getImageObserver): New method.
1172 (paintIcon): Handle observer = null.
1173 * javax/swing/JButton.java
1174 (removeNotify): Fixed javadoc.
1175 (updateUI): Simplified.
1176 * javax/swing/JRootPane.java
1177 (serialVersionUID): New constant field.
1178 * javax/swing/UIManager.java:
1179 Fixed javadocs all over.
1180 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1181 * javax/swing/text/AbstractDocument.java
1182 (createPosition): Throws BadLocationException.
1183 (getText): Likewise.
1185 * javax/swing/text/ComponentView.java
1186 (modelToView): Likewise.
1187 * javax/swing/text/DefaultEditorKit.java:
1188 Made all public methods public.
1189 (read): Throws BadLocationException and IOException.
1191 * javax/swing/text/EditorKit.java:
1192 Made all public methods public.
1193 (serialVersionUID): New constant field.
1194 (clone): New method.
1195 (read): Throws BadLocationException and IOException.
1197 * javax/swing/text/Segment.java
1198 (array): Made public.
1201 (Segment): New constructors.
1202 (clone): Reimplemented.
1203 * javax/swing/text/StyledEditorKit.java
1204 (serialVersionUID): New constant field.
1206 2004-07-21 Graydon Hoare <graydon@redhat.com>
1208 * java/awt/image/BufferedImage.java
1209 (getSource): Implement.
1210 * javax/swing/ImageIcon.java
1211 (ImageIcon): Implement ctor.
1212 * javax/swing/ScrollPaneLayout.java
1213 (preferredLayoutSize): Be more careful about nulls.
1215 2004-07-21 Michael Koch <konqueror@gmx.de>
1217 * javax/swing/text/AttributeSet.java
1218 (CharacterAttribute): New interface
1219 (ColorAttribute): Likewise.
1220 (FontCharacterAttribute): Likewise.
1221 (ParagraphAttribute): Likewise.
1222 * javax/swing/text/DefaultCaret.java
1223 (moveCaret): New method.
1224 (positionCaret): Likewise.
1225 (repaint): Made protected.
1226 * javax/swing/text/JTextComponent.java
1227 (KeyBinding): Made it static.
1228 * javax/swing/text/View.java
1229 (getContainer): Honor parent == null.
1231 2004-07-21 Michael Koch <konqueror@gmx.de>
1233 * javax/swing/text/AbstractDocument.java:
1236 2004-07-21 Michael Koch <konqueror@gmx.de>
1238 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1239 Import javax.swing.UIManager explicitely.
1240 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1241 (ScrollingButton): Made it static.
1243 2004-07-21 Michael Koch <konqueror@gmx.de>
1245 * javax/swing/UIDefaults.java
1246 (ActiveValue): Made public.
1247 (LazyValue): Likewise.
1248 * javax/swing/plaf/basic/BasicTextUI.java
1249 (RootView): Reintroduced.
1251 (rootView): New field.
1252 (installUI): Create document if needed, initialize rootView.
1253 (uninstallUI): Hanle rootView.
1255 (getRootView): Likewise.
1256 (setView): Likewise.
1257 * javax/swing/text/DefaultCaret.java:
1258 Renamed all "evt" variables to "event".
1260 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1262 * libgcj.spec.in: Add -l-java-util-logging.
1264 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1266 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1267 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1268 gtk-xft-dpi can no calculate the right value.
1269 (dpi_changed_cb): Mark *pspec as unsused.
1271 2004-07-21 David Jee <djee@redhat.com>
1273 * java/awt/Component.java
1274 (move): Delegate to setBounds().
1276 (reshape): Fix so it repaints parent and self only when necessary.
1278 2004-07-21 David Jee <djee@redhat.com>
1280 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1281 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1282 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1283 (setVisible): Likewise.
1286 (getArgs): Likewise.
1287 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1288 (property_notify_predicate): Likewise.
1289 (find_layout): Likewise.
1290 (connectJObject): Likewise.
1291 (connectSignals): Likewise.
1292 (moveLayout): Likewise.
1293 (gtkLayoutSetVisible): Likewise.
1295 2004-07-21 Graydon Hoare <graydon@redhat.com>
1301 (rmiregistry_LDADD): Add lib-java-util-logging.la
1302 * Makefile.in: Regenerate.
1304 2004-07-21 Michael Koch <konqueror@gmx.de>
1306 * javax/swing/text/AbstractDocument.java
1307 (replace): Dont use protected method of java.util.Vector directly.
1309 2004-07-21 Michael Koch <konqueror@gmx.de>
1311 * javax/swing/plaf/basic/BasicTextUI.java
1312 (installUI): Call specialized install methods.
1313 (installDefaults): New method.
1314 (installListeners): Likewise.
1315 (installKeyboardActions): Likewise.
1316 (uninstallUI): Likewise.
1317 (uninstallDefaults): New method.
1318 (uninstallListeners): Likewise.
1319 (uninstallKeyboardActions): Likewise.
1320 (getPropertyPrefix): New abstract method.
1321 (paint): Made final, just call paintSafely().
1322 (paintSavely): New method.
1323 (paintBackground): Likewise.
1324 (getVisibleEditorRect): Likewise.
1325 * javax/swing/text/LayeredHighlighter.java,
1326 javax/swing/text/TabExpander.java: New files.
1327 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1328 and javax/swing/text/TabExpander.java.
1329 * Makefile.in: Regenerated.
1331 2004-07-21 Michael Koch <konqueror@gmx.de>
1333 * javax/swing/plaf/basic/BasicTextUI.java
1334 (BasicTextUI): Made abstract.
1335 (BasicCaret): New inner class.
1336 (view): Don't explicitely initialize with "null".
1337 (textComponent): New field.
1338 (textColor): Removed.
1339 (disabledTextColor): Removed.
1340 (normalBackgroundColor): Removed.
1341 (RootView): Removed commented out inner class.
1342 (createUI): Removed.
1343 (createCaret): New method.
1344 (getComponent): Likewise.
1345 (installUI): Initialize textComponent only.
1346 (getPreferredSize): Use installed JTextComponent.
1347 (setView): New method.
1349 * javax/swing/text/JTextComponent.java
1350 (highlighter): New field.
1351 (caretColor): Likewise.
1352 (disabledTextColor): Likewise.
1353 (seletedTextColor): Likewise.
1354 (selectionColor): Likewise.
1355 (setUI): New method.
1356 (getCaretColor): Likewise.
1357 (setCaretColor): Likewise.
1358 (getDisabledColor): Likewise.
1359 (setDisabledColor): Likewise.
1360 (getSelectedTextColor): Likewise.
1361 (setSelectedTextColor): Likewise.
1362 (getSelectionColor): Likewise.
1363 (setSelectionColor): Likewise.
1364 (getHighlighter): Likewise.
1365 (setHighlighter): Likewise.
1366 (replaceSelection): Likewise.
1368 2004-07-21 Michael Koch <konqueror@gmx.de>
1370 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1371 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1372 * javax/swing/plaf/basic/BasicToolBarUI.java
1373 (BasicToolBarUI): Implements SwingConstants.
1375 2004-07-21 Michael Koch <konqueror@gmx.de>
1377 * javax/swing/JPopupMenu.java: Removed CVS tags.
1378 * javax/swing/UIDefaults.java: Reformatted.
1379 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1380 Explicitely import used classes.
1382 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1384 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1385 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1386 (GtkComponentPeer): Remove temporary try/catch block.
1387 (setVisible): Call show and hide.
1388 (show): Make native.
1390 (getArgs): Don't add "visible" argument.
1391 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1392 (property_notify_predicate): Return Bool instead of int.
1393 (find_layout): New function.
1394 (connectJObject): Call find_layout.
1395 (connectSignals): Likewise.
1396 (moveLayout): Likewise.
1397 (gtkLayoutSetVisible): Likewise.
1399 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1401 * javax/swing/AbstractButton.java:
1402 (setDisplayedMnemonicIndex): Check if button
1403 text is not null before checking its length.
1404 * javax/swing/JMenuItem.java:
1405 (processMouseEvent): Disarm menu item if mouse has
1407 * javax/swing/plaf/basic/BasicMenuUI.java:
1408 (MouseInputHandler.mouseEntered): Do not raise
1409 popup menu if this menu is already selected.
1410 (MouseInputHandler.mousePressed): Do not fire
1412 (MenuHandler): Implemented.
1414 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1416 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1417 (getSelectedObjects): Implemented.
1418 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1419 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1420 Added javadoc for few methods.
1421 (processMouseEvent): Made public.
1422 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1423 (processMouseEvent): Likewise.
1425 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1427 * javax/swing/AbstractButton.java:
1428 (init): Set display mnemonic index to -1.
1429 (setMnemonic(char)): Use setMnemonic(int).
1430 (setMnemonic(int)): Set display mnemonic index.
1431 (getDisplayedMnemonicIndex): Change method signature
1432 by removing 'index' parameter.
1433 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1434 Added default for Menu.selectionBackground.
1435 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1436 (paintMenuItem): Change background color of the selected
1438 (paintText): Paint differently when menu item is disabled.
1439 Also paint mnemonic if it appears in the menu item's label.
1440 (paintAccelerator): Paint accelerator differently
1441 if menu item is disabled.
1442 * javax/swing/plaf/basic/BasicMenuUI.java:
1443 (installDefaults): Install defaults for
1444 selectionForeground and selectionBackground.
1445 (uninstallDefaults): Uninstall defauls for
1446 selectionForeground and selectionBackground.
1448 2004-07-21 Michael Koch <konqueror@gmx.de>
1450 * javax/swing/text/AbstractDocument.java
1451 (BranchElement): Implemented.
1452 (LeafElement): Implemented.
1453 * javax/swing/text/DefaultCaret.java:
1454 Import used classes.
1455 (serialVersionUID): New constant.
1456 * javax/swing/text/JTextComponent.java
1457 (AccessibleJTextComponent): Removed dead declaration.
1458 (caretPos): Removed.
1459 (setCaret): New method.
1460 * javax/swing/text/PlainDocument.java
1461 (rootElement): New field.
1462 (PlainDocument): Initialize rootElement.
1463 (createDefaultRoot): New method.
1464 (getDefaultRootElement): Implemented.
1465 * javax/swing/text/View.java: Reformatted.
1466 * javax/swing/text/ViewFactory.java
1467 (create): Added javadoc.
1469 2004-07-21 Michael Koch <konqueror@gmx.de>
1471 * javax/swing/ToolTipManager.java: Reformatted.
1473 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1475 * javax/swing/AbstractButton.java
1476 (changeEvent): New field.
1477 (fireItemStateChanged): Change source of the event
1478 to 'this' before firing it to button listeners.
1479 (fireActionPerformed): Likewise.
1480 (fireStateChanged): Likewise.
1481 (createActionListener): Do not set source
1482 of the event to AbstractButton.
1483 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1484 (ContainerHandler.componentAdded): Removed
1485 print out statement.
1486 (ContainerHandler.componentRemoved): Likewise.
1488 2004-07-21 Michael Koch <konqueror@gmx.de>
1490 * javax/swing/text/Highlighter.java: New file.
1491 * Makefile.am: Added javax/swing/text/Highlighter.java.
1492 * Makefile.in: Regenerated.
1494 2004-07-21 Michael Koch <konqueror@gmx.de>
1496 * javax/swing/ToolTipManager.java
1497 (stillInsideTimerAction): Fixed constructor arguments.
1498 (outsideTimerAction): Likewise.
1499 (insideTimerAction): Likewise.
1501 2004-07-21 Michael Koch <konqueror@gmx.de>
1503 * javax/swing/JButton.java: Reformatted.
1504 * javax/swing/JFormattedTextField.java
1505 (getUIClassID): Implemented.
1506 * javax/swing/JRootPane.java
1507 (serialVersionUID): New constant.
1508 * javax/swing/JTextField.java
1510 (JTextField): Simplified.
1511 (getUIClassID): New method.
1512 (getActionListeners): Added @since tag.
1513 (setColumns): Invalidate layout and repaint.
1514 (getHorizontalAlignment): New method.
1515 (setHorizontalAlignment): New method.
1516 (selectAll): Removed.
1517 * javax/swing/SwingUtilities.java
1518 (getAncestorOfClass): Removed redundant @see tag.
1519 (isLeftMouseButton): Fixed implementation.
1520 (isMiddleMouseButton): Likewise.
1521 (isRightMouseButton): Likewise.
1522 * javax/swing/text/AbstractDocument.java
1523 (AttributeContext.addAttribute): New method.
1524 (AttributeContext.addAttributes): New method.
1525 (AttributeContext.getEmptySet): New method.
1526 (AttributeContext.reclaim): New method.
1527 (AttributeContext.removeAttribute): New method.
1528 (AttributeContext.removeAttributes): New method.
1529 * javax/swing/text/Document.java
1530 (createPosition): Throws BadLocationException.
1531 (getText): Likewise.
1533 * javax/swing/text/JTextComponent.java
1534 (getText): Return null if no document is set. Catch
1535 BadLocationException.
1537 (updateUI): Simplified.
1539 2004-07-21 Michael Koch <konqueror@gmx.de>
1541 * javax/swing/JButton.java
1542 (removeNotify): Fixed javadoc.
1543 (updateUI): Simplified.
1545 2004-07-21 David Jee <djee@redhat.com>
1547 * gnu/java/awt/image/ImageDecoder.java
1548 (startProduction): Only add consumer if it's not added yet.
1549 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1550 (GdkPixbufDecoder): Don't call initState() here.
1551 (produce): Call initState() here, to ensure area_prepared and
1552 area_updated signals are properly connected.
1553 * gnu/java/awt/peer/gtk/GtkImage.java
1554 (setColorModel): Use equals() to compare ColorModel objects.
1555 (setPixels): Likewise.
1556 * java/awt/image/ColorModel.java
1557 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1558 * java/awt/image/RGBImageFilter.java
1559 (setColorModel): Set consumer's color model.
1560 (setPixels): Use equals() to compare ColorModel objects.
1562 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1564 * java/net/URLConnection.java (position): New field.
1565 (dateFormat1, dateFormat2, dateFormat3): Removed.
1566 (dateFormats): New field.
1567 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1568 each time instead of re-allocating.
1569 (initializeDateFormats): Initialize 'dateFormats'.
1571 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1574 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1577 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1579 * java/net/Socket.java (getImpl): Now private. Remove comment.
1581 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1583 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1584 of chained Writer when calling super-constructor.
1585 * java/io/FilterWriter.java (FilterWriter): Likewise.
1586 * java/io/PrintWriter.java (PrintWriter): Likewise.
1588 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1590 * prims.cc (process_gcj_properties): Don't increment i within LHS
1593 2004-07-19 Per Bothner <per@bothner.com>
1595 Print -verbose:message on "loading", not initialization.
1596 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1597 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1598 gcj::verbose_class_flag.
1599 * java/lang/natClass.cc (initializeClass): Don't print message here.
1600 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1601 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1602 (_Jv_PrepareCompiledClass): Likewise.
1604 2004-07-18 Matthias Klose <doko@debian.org>
1606 * configure.in: Substitute target_noncanonical.
1607 * configure: Regenerate
1609 2004-07-17 Michael Koch <konqueror@gmx.de>
1611 * java/lang/String.java: Fixed javadocs all over.
1613 2004-07-17 Mark Wielaard <mark@klomp.org>
1615 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1616 when size is smaller.
1617 * java/io/RandomAccessFile.java (setLength): Use truncate for
1618 shrinking the file and seek plus write for expanding the file.
1620 2004-07-17 Michael Koch <konqueror@gmx.de>
1622 * gnu/java/nio/channels/natFileChannelPosix.cc
1623 (implTruncate): Always save current position. Only reposition file
1624 pointer to where we started if not beyond new lenght. Reposition file
1625 pointer to file length if it points beyond the end of file.
1627 2004-07-17 Mark Wielaard <mark@klomp.org>
1629 * javax/swing/Box.java: Put FIXME comment above class declaration.
1630 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1631 * javax/swing/JCheckBox.java: Likewise.
1632 * javax/swing/JDialog.java: Likewise.
1633 * javax/swing/JRadioButton.java: Likewise.
1634 * javax/swing/JToggleButton.java: Likewise.
1635 * javax/swing/UIManager.java: Likewise.
1636 * javax/swing/border/TitledBorder.java: Likewise.
1637 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1638 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1639 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1640 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1641 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1642 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1643 * javax/swing/text/JTextComponent.java: Likewise.
1645 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1647 * java/net/DatagramPacket.java (setAddress): Removed check for
1650 2004-07-17 Michael Koch <konqueror@gmx.de>
1652 * java/net/DatagramSocket.java
1653 (getLocalAddress): Check if socket is bound or not.
1654 * java/net/Socket.java
1655 (getLocalAddrss): Check if socket is bound or not.
1656 (getPort): Return -1 when not connected. Dont check getImpl() for
1658 (setReuseAddress): Check if socket is closed.
1659 (isConnected): Check if getImpl() returns null.
1661 2004-07-17 Mark Wielaard <mark@klomp.org>
1663 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1664 on notifier object before calling notifyAll().
1666 2004-07-17 Michael Koch <konqueror@gmx.de>
1668 * gnu/java/nio/channels/FileChannelImpl.java
1669 (finalize): Added javadoc.
1671 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1673 * java/text/CollationElementIterator.java
1674 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1675 (setText): Use ArrayList instead of Vector.
1677 2004-07-17 Michael Koch <konqueror@gmx.de>
1679 * java/nio/ByteOrder.java
1680 (static): Removed. Not needed.
1681 Thanks to Patrick Reali for noticing.
1682 * java/nio/charset/CharsetDecoder.java
1683 (decode): Fix for classpath bug #9177: Reset state before flipping.
1685 2004-07-17 Michael Koch <konqueror@gmx.de>
1687 * java/security/Security.java: Fixed javadocs all over.
1689 2004-07-17 Michael Koch <konqueror@gmx.de>
1691 * gnu/java/awt/EmbeddedWindow.java
1693 (addNotify): Set peer via reflection.
1694 (setWindowPeer): Removed.
1695 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1696 * Makefile.am (nat_source_files):
1697 Removed gnu/java/awt/natEmbeddedWindow.cc.
1698 * Makefile.in: Regenerated.
1700 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1702 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1704 * configure: Regenerated.
1706 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1708 * configure.in: Use build_noncanonical rather than build_alias.
1709 * configure: Rebuild.
1711 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1712 by logic refactoring. Move default definition of NATIVE closer
1713 to first alternate definition.
1714 * configure: Regenerate.
1716 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1717 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1718 gcj/Makefile.in: Regenerate.
1719 * configure.in: Set ZIP and GCJH. Remove redundant condition
1720 in AM_CONDITIONAL(NATIVE,...)
1721 * configure: Regenerate.
1723 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1725 * configure.in: Use target_noncanonical rather than
1726 target_alias for forward-compatibility with autoconf 2.59.
1727 * configure: Regenerate.
1728 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1729 testsuite/Makefile.am: Substitute target_noncanonical.
1730 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1731 testsuite/Makefile.in: Regenerate.
1733 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1734 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1735 * acinclude.m4: Include acx.m4.
1736 * aclocal.m4: Regenerate.
1737 * configure: Regenerate.
1739 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1742 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1743 (decimalFormat): New static variable.
1745 (getTime): New. Override Date.getTime().
1746 (toString): Synchronize. Use decimalFormat to format nanos value
1747 correctly. Truncate extra zeros.
1748 (before): Compare getNanos() only if getTime() is equal.
1751 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1753 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1754 * configure.in: ...here.
1755 * aclocal.m4: Regenerate.
1756 * configure: Regenerate.
1758 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1759 * configure: Rebuilt with autoconf 2.13.
1760 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1761 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1763 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1766 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1768 * Makefile.in: Rebuilt.
1769 * testsuite/libjava.lang/LargeFile.java: New test case.
1770 * testsuite/libjava.lang/LargeFile.out: New file.
1772 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1774 * java/beans/EventHandler.java: Remove debugging statements.
1776 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1778 * java/beans/EventHandler.java: New file.
1779 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1780 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1781 testsuite/Makefile.in: Regenerate.
1783 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1785 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1786 flag to the gcj_setup.
1787 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1789 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1790 deprecation flag change. 58 XFAILS removed.
1792 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1794 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1795 -fno-use-divide-subroutine.
1796 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1797 (HANDLE_FPE): Define.
1798 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1799 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1800 (HANDLE_DIVIDE_OVERFLOW): Define.
1802 2004-07-14 Michael Koch <konqueror@gmx.de>
1803 Matthias Klose <doko@debian.org>
1805 * java/awt/im/InputContext.java: Initialize in, line.
1807 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1809 * interpret.cc (run): Correctly access libffi return values of
1810 integral smaller-than-int type; these are implicitly promoted.
1812 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1815 * interpret.cc (compile_mutex): New.
1816 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1817 (run): Lock compile_mutex before calling compile() if compilation is
1819 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1820 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1822 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1825 * include/jvm.h (_Jv_value): New union type.
1826 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1827 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1830 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1832 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1833 * gnu/awt/xlib/XOffScreenImage.java
1834 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1835 constructor argument. Add constructor using ImageProducer.
1836 (getSource): Implement.
1837 (imageComplete): New method.
1838 (setColorModel): New method.
1839 (setDimensions): New method.
1840 (setHints): New method.
1841 (setPixels): New method.
1842 (setProperties): New method.
1843 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1844 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1846 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1849 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1850 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1851 (finalizerReady): Now native.
1853 (runFinalizers): Removed.
1854 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1855 a primitive lock, and don't hold it while running the finalizers.
1856 (runFinalizers): Implement. Don't aquire any Java lock.
1857 (finalizerReady): Use lock primitives to signal finalizer thread.
1859 2004-07-11 Mark Wielaard <mark@klomp.org>
1861 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1862 * java/net/URLStreamHandler.java (parseURL): When url file part
1863 doesn't contain a '/' just ignore context.
1865 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1867 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1868 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1869 (MAKE_THROW_FRAME): Do not modify PSW address.
1870 (INIT_SEGV): Install SIGINFO-style signal handler.
1871 (INIT_FPE): Likewise.
1873 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1875 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1876 status. 21 xfail's removed, 1 added.
1878 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1880 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1882 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1884 * java/text/MessageFormat.java
1885 (formatInternal): Append "{n}" if argument n is unavailable.
1886 (format(Object, StringBuffer, FieldPosition)): This
1887 should be equivalent to format(Object[],
1888 StringBuffer, FieldPosition).
1890 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1892 * java.util.Calendar.java (cache): New private static field. Cached
1893 mappings of locales->calendar classes.
1894 (ctorArgTypes): New private static field. Singleton argument for
1895 calendar class constructor lookup.
1896 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1897 Optimize by bypassing reflection instantiation for the
1898 GregorianCalendar case.
1900 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1902 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1903 ResourceBundle.getBundle() calls.
1904 * java/util/GregorianCalendar.java: Likewise.
1905 * java/util/Currency.java: Likewise.
1906 * java/text/BreakIterator.java: Likewise.
1907 * java/text/Collator.java: Likewise.
1908 * java/text/DateFormat.java: Likewise.
1909 * java/text/DateFormatSymbols.java: Likewise.
1910 * java/text/DecimalFormatSymbols.java: Likewise.
1911 * java/text/NumberFormat.java: Likewise.
1912 * java/awt/Window.java: Likewise.
1914 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1916 * java/util/ResourceBundle.java (bundleCache): Renamed from
1917 resourceBundleCache. Update comments.
1918 (getObject): Don't catch MissingResourceException.
1919 (getBundle(String)): Remove 'final'. Use system classloader if
1920 getCallingClassLoader returned null.
1921 (getBundle(String, Locale)): Likewise.
1922 (BundleKey): New private class. HashMap key for bundle cache lookup.
1923 (lookupKey): New. Singleton instance of BundleKey.
1924 (nullEntry): New. Cache entry to represent failed lookups.
1925 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1926 caching strategy, no-allocation lookup, and new tryBundle methods.
1927 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1928 name using given classloader.
1929 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1930 baseName for given Locale and attempt to load bundle.
1932 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1934 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1935 illegal protected method calls.
1937 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1939 Fix or remove some bogus test cases.
1940 * testsuite/libjava.compile/pr10459_2.java: Removed.
1941 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1943 * testsuite/libjava.compile/inner_data.java: Test against its own
1946 2004-07-09 Michael Koch <konqueror@gmx.de>
1948 * scripts/unicode-muncher.pl: Updated to version 2.1
1949 from GNU classpath. Added some clarifications on where to find the
1950 needed files from www.unicode.org.
1951 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1952 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1953 Removed, these can directly be downloaded from www.unicode.org if
1955 * gnu/java/lang/CharData.java: Regenerated.
1956 * include/java-chartables.h: Regenerated.
1957 * Makefile.am (ordinary_java_source_files):
1958 Removed gnu/java/lang/CharData.java.
1959 * Makefile.in: Regenerated.
1961 2004-07-09 Michael Koch <konqueror@gmx.de>
1963 * java/security/AccessControlContext.java,
1964 java/security/SecureClassLoader.java:
1967 2004-07-09 Michael Koch <konqueror@gmx.de>
1969 * java/io/ObjectInputStream.java (readFields): Use long datatype
1970 when shifting byte values more then 24 bits left.
1972 2004-07-09 Michael Koch <konqueror@gmx.de>
1974 * java/util/zip/DeflaterOutputStream.java,
1975 java/util/zip/GZIPInputStream.java,
1976 java/util/zip/GZIPOutputStream.java,
1977 java/util/zip/InflaterInputStream.java:
1978 Reformatted. Added javadocs. Reordered all stuff.
1979 Renamed variables to be more clear.
1981 2004-07-09 Michael Koch <konqueror@gmx.de>
1983 * javax/imageio/IIOException.java,
1984 javax/imageio/event/IIOReadProgressListener.java,
1985 javax/imageio/event/IIOReadUpdateListener.java,
1986 javax/imageio/event/IIOReadWarningListener.java,
1987 javax/imageio/event/IIOWriteProgressListener.java,
1988 javax/imageio/event/IIOWriteWarningListener.java:
1990 * Makefile.am: Added new files.
1991 * Makefile.in: Regenerated.
1993 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1995 * java/text/RuleBasedCollator.java
1996 (mergeRules): Use ArrayList instead of Vector.
1997 (subParseString): likewise.
1998 (parseString): likewise.
1999 (buildCollationVector): likewise.
2000 (getCollationKey): likewise.
2002 2004-07-09 Dalibor Topic <robilad@kaffe.org>
2004 * java/text/DateFormat.java (parse):
2005 Improved javadoc. Improved exception message.
2007 2004-07-09 Mark Wielaard <mark@klomp.org>
2009 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
2010 interrupted() method to clear interupt flag of our Thread.
2012 2004-07-09 Dalibor Topic <robilad@kaffe.org>
2014 * java/nio/Buffer.java,
2015 java/nio/ByteBuffer.java,
2016 java/nio/ByteBufferHelper.java,
2017 java/nio/ByteBufferImpl.java,
2018 java/nio/CharBuffer.java,
2019 java/nio/CharBufferImpl.java,
2020 java/nio/CharViewBufferImpl.java,
2021 java/nio/DirectByteBufferImpl.java,
2022 java/nio/DoubleBuffer.java,
2023 java/nio/DoubleBufferImpl.java,
2024 java/nio/DoubleViewBufferImpl.java,
2025 java/nio/FloatBuffer.java,
2026 java/nio/FloatBufferImpl.java,
2027 java/nio/FloatViewBufferImpl.java,
2028 java/nio/IntBuffer.java,
2029 java/nio/IntBufferImpl.java,
2030 java/nio/IntViewBufferImpl.java,
2031 java/nio/LongBuffer.java,
2032 java/nio/LongBufferImpl.java,
2033 java/nio/LongViewBufferImpl.java,
2034 java/nio/MappedByteBufferImpl.java,
2035 java/nio/ShortBuffer.java,
2036 java/nio/ShortBufferImpl.java,
2037 java/nio/ShortViewBufferImpl.java:
2038 Fixed javadocs all over. Improved input error
2041 * java/nio/Buffer.java
2042 (checkForUnderflow, checkForOverflow, checkIndex,
2043 checkIfReadOnly, checkArraySize): New helper methods
2046 * java/nio/ByteBufferHelper.java
2047 (checkRemainingForRead, checkRemainingForWrite,
2048 checkAvailableForRead, checkAvailableForWrite): Removed
2049 no longer needed methods.
2051 2004-07-09 Michael Koch <konqueror@gmx.de>
2053 * gnu/regexp/CharIndexedInputStream.java:
2054 Reordered imports to match classpath.
2056 2004-07-09 Michael Koch <konqueror@gmx.de>
2058 * gnu/java/awt/EmbeddedWindow.java:
2059 Load native library for setWindowPeer method.
2061 2004-07-08 Randolph Chung <tausq@debian.org>
2063 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
2064 * configure: Regenerate.
2065 * configure.host: Set can_unwind_signal for hppa*-linux.
2066 * include/pa-signal.h: New file.
2068 2004-07-07 Per Bothner <per@bothner.com>
2070 * Makefile.am: Add rules to build libgij from just gij.cc.
2072 * include/jvm.h (namespace jcj): Declare verbose_class_flag
2073 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
2074 (initializeClass): If verbose_class_flag, print message.
2075 * gij.cc (main): Handle -verbose:class flag.
2077 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
2079 * configure.host: Enable hash synchronization on Darwin.
2080 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
2081 ';', since this is a comment on Darwin.
2082 (compare_and_swap_release): Likewise.
2084 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
2086 * java/net/URLStreamHandler.java (parseURL): Canonicalize
2087 file portion of URL in addition to spec for file: protocol.
2089 2004-07-05 Anthony Green <green@redhat.com>
2091 * java/io/File.java (toURI): Merge from Classpath.
2093 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2095 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
2096 before passing to URL constructor. Rethrow any MalformedURLException
2097 as a RuntimeException. Catch MalformedURLException specifically, not
2100 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2102 * java/util/Locale.java (readObject): Intern strings read from object
2105 2004-07-04 Michael Koch <konqueror@gmx.de>
2107 * gnu/gcj/runtime/FirstThread.java,
2108 gnu/gcj/runtime/natFirstThread.cc: Removed.
2109 * gnu/java/lang/MainThread.java,
2110 gnu/java/lang/natMainThread.cc: New files.
2111 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
2112 * Makefile.am: Added new files and removed deleted ones.
2113 * Makefile.in: Regenerated.
2115 2004-07-03 Mark Wielaard <mark@klomp.org>
2116 Anthony Green <green@redhat.com>
2118 * java/net/URL.java (getFile): Clarify return value doc.
2119 (getPath): Return null if file is empty - not empty String.
2120 (set): Convert protocol to lower case before doing anything.
2121 Only change the protocol handler if it's different.
2123 2004-07-03 Anthony Green <green@redhat.com>
2125 * java/net/URL.java (URL): Convert protocol to lower case before
2126 doing anything, so we getURLStreamHandler() with the proper value.
2128 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
2130 * java/util/Locale.java (hashcode): Made transient.
2131 (hashCode): No longer synchronized.
2132 (equals): Remove comment.
2133 (writeObject): No longer synchronized. Implement using writeObject
2134 calls instead of tweaking hashCode field. Update doc.
2135 (readObject): Implement using readObject calls.
2137 2004-06-26 Geoffrey Keating <geoffk@apple.com>
2138 Andreas Tobler <a.tobler@schweiz.ch>
2140 * configure.host (powerpc-*-darwin*): New case, define
2142 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
2143 * configure: Regenerate.
2144 * include/darwin-signal.h: New.
2146 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
2148 * java/beans/Statement.java (doExecute): Fix formatting.
2150 2004-06-29 Per Bothner <per@bothner.com>
2152 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2153 etc etc): Remove needless parenthesis, which causes __stdcall__
2154 attribute on MinGW to get ignored.
2156 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
2158 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2160 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
2162 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
2164 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
2166 * java/beans/Expression.java: New file.
2167 * java/beans/Statement.java: New file.
2168 * Makefile.am: Added new files.
2169 * Makefile.in: Re-generate.
2171 2004-06-27 Mark Wielaard <mark@klomp.org>
2173 * java/io/FilePermission.java (usingPerms): Removed.
2174 (actionsString): Made final.
2175 (cachePerms): Renamed to checkPerms.
2176 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2178 (FilePermission): Check arguments, call checkPerms().
2179 (equals): Remove cachePerms() call.
2180 (implies): Likewise.
2182 2004-06-27 Mark Wielaard <mark@klomp.org>
2184 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2186 (sendRequest): Use new field in user-agent http agent.
2188 2004-06-27 Mark Wielaard <mark@klomp.org>
2190 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2191 when argument is null.
2193 2004-06-26 Mark Wielaard <mark@klomp.org>
2195 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2196 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2198 (cancel_clicked): Likewise.
2200 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2202 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2203 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2204 can not calculate the right value.
2205 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2207 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2209 * testsuite/libjava.jacks/jacks.xfail: Remove
2210 15.9.1-qualified-concrete-20.
2212 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2214 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2215 encoding name to iconv.
2216 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2218 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2221 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2222 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2223 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2225 2004-06-21 Andrew Haley <aph@redhat.com>
2227 * java/io/ObjectOutputStream.java: Add DEBUG statements
2229 (dumpElementln): New method.
2231 * java/io/ObjectInputStream.java
2232 (currentClassLoader): Make native.
2233 (callersClassLoader): New field.
2235 (readObject): ENDBLOCKDATA is generated if the class has a write
2236 method, not if it has a read method.
2237 (readObject): Save and restore this.currentObject and
2238 this.currentObjectStreamClass around calls to callReadMethod().
2239 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2242 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2244 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2247 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2249 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2250 if desired, before the default class loader is initialised.
2251 Call INIT_SEGV only if HANDLE_SEGV is defined.
2253 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2255 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2256 directory only if it actually exists.
2258 2004-06-18 Graydon Hoare <graydon@redhat.com>
2260 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2261 Fix up non-ansi comments.
2263 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2265 * javax/swing/text/AbstractDocument.java: Adding missing import
2266 for javax.swing.event.EventListenerList.
2267 * javax/swing/text/DefaultCaret.java: Likewise.
2269 2004-06-17 Michael Koch <konqueror@gmx.de>
2271 * javax/swing/JToolBar.java
2273 (JToolBar): Use Component.setName(String) instead of doing it all
2275 * javax/swing/Timer.java
2276 (queueEvent): Added missing modifier.
2278 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2280 * Makefile.am: Added new file.
2281 * Makefile.in: Re-generate.
2282 * javax/swing/JMenu.java:
2283 (insertSeparator): Implemented.
2284 * javax/swing/JPopupMenu.java:
2285 (JPopupMenu.Separator): Implemented.
2286 * javax/swing/MenuSelectionManager.java:
2287 (processMouseEvent): Use java.awt.Component
2288 for event source instead of javax.swing.JComponent.
2289 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2290 New File. Implemented.
2292 2004-06-16 David Jee <djee@redhat.com>
2294 * java/awt/GridBagLayout.java
2295 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2296 Make sure pos_x and pos_y are never negative.
2298 2004-04-16 Andrew Overholt <overholt@redhat.com>
2300 * Makefile.am: Add new file.
2301 * Makefile.in: Re-generate.
2302 * javax/swing/JToolBar.java
2303 Partially implemented.
2304 * javax/swing/plaf/basic/BasicToolBarUI.java
2305 New file. Partially implemented.
2307 2004-06-16 Graydon Hoare <graydon@redhat.com>
2309 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2310 (setComposite): Accept AlphaComposite arguments.
2311 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2312 (createBufferedImage): Add new overloads.
2313 * gnu/java/awt/peer/gtk/GtkToolkit.java
2314 (createImage): Use GdkPixbufDecoder.createBufferedImage
2315 when useGraphics2D() is true.
2316 (getImage): Delegate to createImage.
2317 * javax/swing/JList.java
2319 (getFirstVisibleIndex):
2320 (getLastVisibleIndex):
2322 (ensureIndexIsVisible): New methods.
2323 * javax/swing/Timer.java: Reimplement.
2325 2004-06-16 Michael Koch <konqueror@gmx.de>
2327 * javax/swing/text/AbstractDocument.java
2328 (AbstracElement): Made public, implements java.io.Serializable.
2329 (AttributeContext): Made public.
2330 (BranchElement): Likewise.
2331 (Content): Likewise.
2332 (DefaultDocumentEvent): Made public, extends
2333 javax.swing.undo.CompoundEdit.
2334 (ElementEdit): Made public, extends
2335 javax.swing.undo.AbstractUndoableEdit.
2336 (LeafElement): Made public.
2337 (LeafElement.LeafElement): Made public.
2339 2004-06-16 Michael Koch <konqueror@gmx.de>
2341 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2342 methods (that were obviously never be intended to get included hi this
2343 class. Added some methods too.
2345 2004-06-16 Michael Koch <konqueror@gmx.de>
2347 * javax/swing/text/PlainDocument.java
2348 (serialVersionUID): New constant.
2349 (lineLimitAttribute): Likewise.
2350 (tabSizeAttribute): Likewise.
2351 (tabSize): New field.
2352 (PlainDocument): Made public.
2353 (PlainDocument): New constructor.
2355 2004-06-16 Michael Koch <konqueror@gmx.de>
2357 * javax/swing/text/AbstractDocument.java
2358 (insertString): Throws BadLocationException.
2359 * javax/swing/text/Document.java
2360 (insertString): Likewise.
2361 * javax/swing/text/JTextComponent.java:
2362 Javadocs and comments cleaned up.
2364 2004-06-16 Michael Koch <konqueror@gmx.de>
2366 * javax/swing/event/UndoableEditListener.java: Reformatted.
2367 * javax/swing/text/AbstractDocument.java
2368 (AbstractDocument): Implements java.io.Serializable.
2369 (doc_list): Removed.
2370 (undo_list): Removed.
2371 (AbstractElement.serialVerionUID): New field.
2372 (BranchElement.serialVerionUID): Likewise.
2373 (DefaultDocumentEvent.serialVerionUID): Likewise.
2374 (ElementEdit.serialVerionUID): Likewise.
2375 (LeafElement.serialVerionUID): Likewise.
2376 (serialVerionUID): Likewise.
2377 (BAD_LOCATION): New constant.
2378 (BidiElementName): Likewise.
2379 (ContentElementName): Likewise.
2380 (ParagraphElementName): Likewise.
2381 (SectionElementName): Likewise.
2382 (ElementNameAttribute): Likewise.
2383 (AbstractDocument): Made protected.
2384 (AbstractDocument): New construtor.
2385 (listenerList): New field.
2386 (fireChangedUpdate): Implemented.
2387 (fireInsertUpdate): Likewise.
2388 (fireRemoveUpdate): Likewise.
2389 (fireUndoableEditUpdate): Likewise.
2390 (getListeners): Likewise.
2391 (addDocumentListener): Likewise.
2392 (removeDocumentListener): Likewise.
2393 (addUndoableEditListener): Likewise.
2394 (removeUndoableEditListener): Likewise.
2395 (getDocumentListeners): New method.
2396 (getUndoableEditListeners): Likewise.
2397 (getAsynchronousLoadPriority): Made public.
2398 (getBidiRootElement): Likewise.
2399 (setAsynchronousLoadPriority): Likewise.
2400 (setDocumentProperties): Likewise.
2401 * javax/swing/text/BadLocationException.java
2402 (serialVerionUID): New field.
2403 * javax/swing/text/DefaultCaret.java
2404 (changeEvent): New field.
2405 (listenerList): Likewise.
2407 (addChangeListener): Reimplemented.
2408 (removeChangeListener): Likewise.
2409 (getListeners): New method.
2410 (getChangeListeners): Likwise.
2411 (getComponent): Likewise.
2412 * javax/swing/text/GapContent.java
2413 (GapContent): Implements java.io.Serializable.
2414 (serialVerionUID): New field.
2416 2004-06-16 Michael Koch <konqueror@gmx.de>
2418 * javax/swing/JTree.java
2419 (treeModel): New field.
2420 (JTree): New constructors, one existing one made public.
2421 (createTreeModel): New method.
2422 (addTreeExpansionListener): Likewise.
2423 (removeTreeExpansionListener): Likewise.
2424 (getTreeExpansionListeners): Likewise.
2425 (fireTreeCollapsed): Likewise.
2426 (fireTreeExpanded): Likewise.
2427 (addTreeSelectionListener): Likewise.
2428 (removeTreeSelectionListener): Likewise.
2429 (getTreeSelectionListeners): Likewise.
2430 (fireValueChanged): Likewise.
2431 (addTreeWillExpandListener): Likewise.
2432 (removeTreeWillExpandListener): Likewise.
2433 (getTreeWillExpandListeners): Likewise.
2434 (fireTreeWillCollapse): Likewise.
2435 (fireTreeWillExpand): Likewise.
2437 2004-06-16 Michael Koch <konqueror@gmx.de>
2439 * javax/swing/JTree.java: Reformatted.
2441 2004-06-16 Michael Koch <konqueror@gmx.de>
2443 * javax/swing/JTextArea.java: New file.
2444 * javax/swing/JTextField.java
2446 (notifyAction): New constant.
2447 (columns): New field.
2448 (JTextField): New constructors.
2449 (createDefaultModel): New method.
2450 (addActionListener): Reimplmemented.
2451 (removeActionListener): Reimplemented.
2452 (getActionListeners): New method.
2453 (fireActionPerformed): New method.
2454 (getColumns): New method.
2455 (setColumne): New method.
2456 * javax/swing/text/JTextComponent.java
2457 (AccessibleJTextComponent.serialVersionUID): New field.
2458 (serialVersionUID): Likewise.
2459 (DEFAULT_KEYMAP): Likewise.
2460 (FOCUS_ACCELERATOR_KEY): Likewise.
2461 (doc): Made private.
2462 (icon_gap): Likewise.
2465 (JTextComponent): Some constructors removed.
2466 (getScrollableTracksViewportHeight): New method.
2467 (getScrollableTracksViewportWidth): Likewise.
2468 * Makefile.am: Added javax/swing/JTextArea.java.
2469 * Makefile.in: Regenerated.
2471 2004-06-15 Graydon Hoare <graydon@redhat.com>
2473 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2474 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2475 * javax/swing/JViewport.java
2476 (getExtentSize): Return size rather than preferred size.
2477 (toViewCoordinates): New methods.
2478 (getViewSize): Return size rather than preferred size.
2479 (setViewSize): Note view size as set.
2480 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2481 * javax/swing/plaf/basic/BasicScrollBarUI.java
2482 (getPreferredSize): Don't redo layout.
2483 * javax/swing/plaf/basic/BasicViewportUI.java
2484 (paint): Translate image properly and eat exceptions.
2486 2004-06-15 Kim Ho <kho@redhat.com>
2488 * javax/swing/JTabbedPane.java
2489 (setComponent): Remove old component and
2491 (setSelectedIndex): Don't operate on the
2492 components if they're null. Don't set index
2493 on the model if the index is the same.
2494 (insertTab): Don't add or hide the component
2495 if it's null. Repaint the container.
2496 * javax/swing/plaf/basic/BasicLookAndFeel.java
2497 Change colors for TabbedPane.
2498 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2499 (mousePressed): Re-layout and paint the component.
2500 (layoutContainer): Don't set location on the view.
2501 (ScrollingViewport::paint): Remove.
2503 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2505 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2506 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2508 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2509 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2510 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2512 (drawLine): Call gdk_flush before leaving GDK critical region.
2513 (fillRect): Likewise.
2514 (drawRect): Likewise.
2515 (copyArea): Likewise.
2516 (copyPixmap): Likewise.
2517 (clearRect): Likewise.
2518 (drawArc): Likewise.
2519 (drawPolyline): Likewise.
2520 (drawPolygon): Likewise.
2521 (fillPolygon): Likewise.
2522 (fillArc): Likewise.
2523 (drawOval): Likewise.
2524 (fillOval): Likewise.
2526 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2528 (GdkFontMetrics): Add style argument to initState call.
2529 (stringWidth(String,int,int,String)): Add style parameter.
2530 (stringWidth(String)): Add style argument to stringWidth call.
2531 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2532 (initState): Set pango font style and weight based on AWT style
2533 parameter. Pass default GTK language to
2534 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2535 simply dividing by PANGO_SCALE.
2536 (stringWidth): Set pango font style and weight based on AWT style
2539 * java/awt/Button.java (next_button_number): New field.
2540 (paramString): Change output.
2541 (generateName): New method.
2542 (getUniqueLong): New method.
2544 2004-06-14 Kim Ho <kho@redhat.com>
2546 * javax/swing/JTabbedPane.java:
2547 (setComponentAt): Set the component, not
2549 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2550 (actionPerformed): Let deiconize catch exception.
2552 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2554 * javax/swing/JPopupMenu.java:
2555 (setVisible): Corrected location of a
2556 heavyweight popup menu.
2558 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2560 * javax/swing/MenuSelectionManager.java:
2561 Ran through jalopy to fix formatting style.
2563 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2565 * javax/swing/JLayeredPane.java:
2566 (remove): Revalidate and repaint layered pane after
2567 the component was removed.
2568 javax/swing/JMenu.java:
2569 (setVisible): Display popup menu at the user location,
2570 if one was set by the user.
2571 (setMenuLocation): Reimplemented. Fixed javadoc.
2572 * javax/swing/JMenuBar.java: Added javadoc.
2573 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2574 (MODEL_CHANGED_PROPERTY): New Property.
2575 (isSelected): Implemented.
2576 (setBorderPainted): Fire PropertyChangeEvent
2577 if paintBorder property changes.
2578 (setSelected): Implemented.
2579 (setSelectionModel): Implemented.
2580 * javax/swing/JPopupMenu.java: Added Javadoc
2581 (pack): Implemented.
2582 (setVisible): Reimplemented.
2583 (show): Fixed location.
2584 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2585 Container instead of JPanel.
2586 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2587 (clearSelectedPath): Reimplemented to clear selectedPath
2589 (processMouseEvent): Reimplemented.
2590 (setSelectedPath): Fire stateChange event indicating that
2591 selected menu path has changed.
2592 (getPath): Change to use ArrayList instead of Vector.
2593 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2594 (installUI): call installKeyboardActions().
2595 (uninstallUI): call uninstallKeyboardActions().
2597 2004-06-13 Michael Koch <konqueror@gmx.de>
2599 * javax/swing/text/DefaultCaret.java,
2600 javax/swing/text/BadLocationException.java:
2603 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2605 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2606 DEFAULT_COLS): New variables.
2607 (create): Don't allow 0 rows or 0 columns. Instead, set the
2608 values to DEFAULT_ROWS or DEFAULT_COLS.
2609 (getMinimumSize): Likewise.
2610 (getPreferredSize): Likewise.
2611 (minimumSize): Likewise.
2612 (preferredSize): Likewise.
2613 (create): Set peer's editable state.
2614 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2615 zero. Update javadocs.
2616 (TextArea(String)): Likewise.
2617 (TextArea(int,int)): Fix javadocs.
2618 (TextArea(String,int,int,int)): Only throw exception if one of
2619 rows or columns is zero. Fix javadocs.
2621 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2623 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2624 addition to Components.
2626 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2627 wasn't consumed by normal processing, send it to the parent
2630 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2631 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2634 2004-06-11 David Jee <djee@redhat.com>
2636 * java/awt/MediaTracker.java
2637 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2638 (addImage(Image,int,int,int)): Likewise.
2640 2004-06-11 Michael Koch <konqueror@gmx.de>
2642 * javax/swing/text/AbstractDocument.java,
2643 javax/swing/text/Document.java,
2644 javax/swing/text/GapContent.java,
2645 javax/swing/text/JTextComponent.java,
2646 javax/swing/text/PlainDocument.java:
2649 2004-06-11 Michael Koch <konqueror@gmx.de>
2651 * javax/swing/JRootPane.java
2652 (AccessibleJRootPane.serialVersionUID): New field.
2653 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2654 (AccessibleJRootPane.getAccessibleRole): New method.
2655 (RootLayout): Implements Serializable.
2656 (RootLayout.serialVersionUID): New field.
2657 (RootLayout.RootLayout): New constructor.
2658 (setJMenuBar): Made public.
2659 (getJMenuBar): Likewise.
2660 (JRootPane): Likewise.
2661 (createContentPane): Likewise.
2662 (createGlassPane): Likewise.
2663 (createLayeredPane): Likewise.
2665 2004-06-11 Michael Koch <konqueror@gmx.de>
2667 * javax/swing/SwingUtilities.java
2668 (isLeftMouseButton): Fixed javadoc.
2669 (isMiddleMouseButton): Likewise.
2670 (isRightMouseButton): Likewise.
2672 2004-06-11 Michael Koch <konqueror@gmx.de>
2674 * javax/swing/JScrollPane.java
2675 (serialVersionUID): New field.
2676 (columnHeader): Made protected.
2677 (rowHeader): Likewise.
2678 (lowerLeft): Likewise.
2679 (lowerRight): Likewise.
2680 (upperLeft): Likewise.
2681 (upperRight): Likewise.
2682 (horizontalScrollBar): Likewise.
2683 (horizontalScrollBarPolicy): Likewise.
2684 (verticalScrollBar): Likewise.
2685 (verticalScrollBarPolicy): Likewise.
2686 (viewport): Likewise.
2688 2004-06-11 Michael Koch <konqueror@gmx.de>
2690 * javax/swing/LookAndFeel.java: Fixed javadocs.
2692 2004-06-11 Michael Koch <konqueror@gmx.de>
2694 * javax/swing/JEditorPane.java: Fixed javadocs.
2695 (JEditorPane): Removed redundant call to to this().
2696 (fireHyperlinkUpdate): Implemented.
2698 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2700 * javax/swing/JMenu.java: Fixed file name
2701 in the file comment.
2703 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2705 * javax/swing/JMenu.java: Added javadoc.
2706 (JMenu): Added MenuChangeListener to listen to
2707 ChangeEvents occuring in menu's model.
2708 (insert): Throw IllegalArgumentException if
2709 index is less than 0
2710 (setSelected): Reimplement.
2711 (setPopupMenuVisible): Call menu's model isEnabled()
2712 (setDelay): Throw IllegalArgumentException if
2713 given amount of delay is less than 0.
2714 (createActionComponent): Implemented.
2715 (createActionChangeListener): Implemented.
2716 (addSeparator): Implemented.
2717 (getItem): Throw IllegalArgumentException if index is
2719 (getItemCount): Implemented.
2720 (fireMenuSelected): Changed to use menuEvent.
2721 (fireMenuDeselected): Likewise.
2722 (fireMenuCanceled): Likewise.
2723 (setAccelerator): Changed to throw an error if this
2725 (doClick): Implemented.
2726 (JMenu.ActionChangedListener): New inner class to handle
2727 PropertyChangeEvents occuring in the actions associated with menu.
2728 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2729 (BasicMenuUI): Added PropertyChangeListener to the menu.
2730 (createChangeListener): Implemented.
2731 (createMenuDragMouseListener): Likewise.
2732 (createMenuKeyListener): Likewise.
2733 (createPropertyChangeListener): Likewise.
2734 (uninstallListeners): Likewise.
2735 (BasicMenuUI.MouseInputHandler): Reimplemented.
2736 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2737 (BasicMenuUI.ChangeHandler): Likewise.
2738 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2739 (BasicMenuUI.MenuKeyHandler): Likewise.
2741 2004-06-10 David Jee <djee@redhat.com>
2743 * java/awt/MediaTracker.java
2744 (imageUpdate): Only do notifyAll() if the image is complete.
2746 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2748 * javax/swing/JApplet.java:
2749 (getJMenuBar): Made public.
2750 (setJMenuBar): Likewise.
2751 * javax/swing/JFrame.java:
2752 (getJMenuBar): Made public.
2753 (setJMenuBar): Likewise.
2754 * javax/swing/JWindow.java:
2755 (getJMenuBar): Removed.
2756 (setJMenuBar): Removed.
2758 2004-06-10 Michael Koch <konqueror@gmx.de>
2760 * javax/swing/JEditorPane.java
2761 (createEditorKitForContentType): Fixed visibility.
2762 (fireHyperlinkUpdate): Likewise.
2763 (getContentType): Likewise.
2764 (getEditorKit): Likewise.
2765 (getEditorKitForContentType): Likewise.
2766 (getPage): Likewise.
2768 (registerEditorKitForContentTyoe): Likewise.
2769 (replaceSelection): Likewise.
2770 (setContentType): Likewise.
2771 (setEditorKit): Likewise.
2772 (setPage): Likewise.
2774 2004-06-10 Michael Koch <konqueror@gmx.de>
2776 * javax/swing/Timer.java
2777 (Timer): New constructor.
2778 * javax/swing/plaf/basic/BasicProgressBarUI.java
2779 (animationTimer): Don't initialize at construction.
2780 (startAnimationTimer): Added since tag.
2781 (stopAnimationTimer): Likewise.
2782 (installUI): Use new Timer constructor.
2783 * javax/swing/plaf/basic/BasicScrollBarUI.java
2784 (installUI): Likewise.
2785 * javax/swing/plaf/basic/BasicSliderUI.java
2786 (installUI): Likewise.
2788 2004-06-10 Michael Koch <konqueror@gmx.de>
2790 * javax/swing/ButtonGroup.java
2791 (serialVersionUID): Made private.
2792 (buttons): Renamed from v, added javadoc.
2793 (sel): Added javadoc.
2794 (ButtonGroup): Likewise.
2797 (getElements): Likewise.
2798 (getSelection): Likewise.
2799 (setSelected): Likewise.
2800 (isSelected): Likewise.
2801 (getButtonCount): Likewise.
2803 2004-06-10 Michael Koch <konqueror@gmx.de>
2805 * javax/swing/ButtonGroup.java,
2806 javax/swing/ImageIcon.java,
2807 javax/swing/JEditorPane.java,
2808 javax/swing/JRootPane.java,
2809 javax/swing/JTextField.java,
2810 javax/swing/LookAndFeel.java,
2811 javax/swing/plaf/basic/BasicTextUI.java:
2814 2004-06-10 Michael Koch <konqueror@gmx.de>
2816 * javax/swing/text/Style.java: Added javadocs.
2818 2004-06-10 Michael Koch <konqueror@gmx.de>
2820 * javax/swing/JComponent.java
2821 (fireVetoableChange): Removed redundant cast.
2822 * javax/swing/JLabel.java
2823 (getDisabledIcon): Save icon for next call.
2825 2004-06-10 Michael Koch <konqueror@gmx.de>
2827 * javax/swing/KeyStroke.java
2828 (getKeyStroke(char,boolean)): Marked deprecated.
2830 2004-06-10 Michael Koch <konqueror@gmx.de>
2832 * javax/swing/DefaultCellEditor.java,
2833 javax/swing/GrayFilter.java,
2834 javax/swing/event/DocumentEvent.java,
2835 javax/swing/text/JTextComponent.java,
2836 javax/swing/text/MutableAttributeSet.java:
2839 2004-06-10 Michael Koch <konqueror@gmx.de>
2841 * javax/swing/plaf/BorderUIResource.java:
2842 Added serialVersionUID all over.
2844 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2846 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2848 2004-06-10 Michael Koch <konqueror@gmx.de>
2850 * javax/swing/table/DefaultTableCellRenderer.java
2851 (noFocusBorder): Initialize directly.
2853 2004-06-10 Michael Koch <konqueror@gmx.de>
2855 * javax/swing/plaf/basic/BasicArrowButton.java
2856 (setDirection): Use method argument.
2858 2004-06-10 Michael Koch <konqueror@gmx.de>
2860 * javax/swing/plaf/BorderUIResource.java,
2861 javax/swing/plaf/ComponentUI.java,
2862 javax/swing/undo/CompoundEdit.java,
2863 javax/swing/undo/StateEdit.java:
2864 Fixed javadocs all over.
2866 2004-06-10 Michael Koch <konqueror@gmx.de>
2868 * javax/swing/DefaultButtonModel.java
2869 (ARMED): Made public final, fixed value.
2870 (ENABLED): Likewise.
2871 (PRESSED): Likewise.
2872 (ROLLOVER): Likewise.
2873 (SELECTED): Likewise.
2874 (stateMask): Initialize directly.
2875 (listenerList): Likewise.
2876 (mnemonic): Likewise.
2877 (fireStateChanged): Removed argument, use changeEvent as event.
2878 All places where this method is called are fixed too.
2879 (getActionCommant): Fixed javadoc.
2880 (setGroup): Fixed javadoc.
2881 (getGroup): New method.
2883 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2885 * javax/swing/AbstractButton.java
2886 (AbstractButton): Use init() to initialize the button.
2887 (init): New Method. Initializes AbstractButton.
2888 * javax/swing/JMenuItem.java: Documented.
2889 (JMenuItem): Reimplemented.
2890 (init): Implemented.
2891 (setEnabled): Changed to call super.setEnabled()
2892 (processMouseEvent): Reimplemented.
2893 (fireMenuKeyPressed): Implemented.
2894 (fireMenuKeyReleased): Implemented.
2895 (fireMenuKeyTyped): Implemented.
2896 (menuSelectionChanged): disarm the model if the menu item was
2898 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2899 (getPath): Change to use ArrayList instead of Vector.
2900 (getPreferredSize): Renamed variable.
2901 (paintMenuItem): Paint margin area of menu item.
2902 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2903 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2904 menu item's bounds before clearing the selection.
2906 2004-06-09 David Jee <djee@redhat.com>
2908 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2909 (GtkTextComponentPeer): Set caret position to 0.
2910 * java/awt/TextComponent.java
2911 (setText): Set caret position to 0.
2912 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2913 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2914 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2915 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2917 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2918 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2921 2004-06-09 Kim Ho <kho@redhat.com>
2923 * Makefile.am: New files
2924 * Makefile.in: Regenerated
2925 * java/awt/Container.java
2926 (getComponentAt): Removed.
2927 * javax/swing/AbstractAction.java
2928 (ENABLED_PROPERTY): New property.
2929 (putValue): Fire PropertyChangeEvents.
2930 (setEnabled): ditto.
2931 (firePropertyChange): Javadoc and implement
2933 * javax/swing/AbstractButton.java
2934 (setAction): Don't create PropertyChangeListener
2935 if new Action is null.
2936 (setIcon): Don't set icon till after comparing
2938 (configurePropertiesFromAction): Check mnemonic
2939 key before calling intValue().
2940 (createActionPropertyChangeListener): Check
2941 properties rather than bulk change.
2942 * javax/swing/DefaultDesktopManager.java:
2944 * javax/swing/DesktopManager.java:
2946 * javax/swing/JComponent.java
2947 (fireVetoableChange): Implement.
2948 (paintImmediately): Use root component.
2949 * javax/swing/JDesktopPane.java: Implement
2950 * javax/swing/JInternalFrame.java: Implement
2951 * javax/swing/JLabel.java
2952 (getDisabledIcon): Return grayscaled icon if
2953 no disabled icon specified.
2954 * javax/swing/JMenuBar.java
2955 (getComponentAtIndex): Use getComponent
2956 * javax/swing/JOptionPane.java
2957 (getDesktopPaneForComponent): Use SwingUtilities'
2959 (getFrameForComponent): ditto.
2960 * javax/swing/JSplitPane.java
2961 (remove): Use getComponent.
2962 * javax/swing/SwingUtilities.java
2963 (convertPoint): Implement.
2964 * javax/swing/plaf/basic/BasicButtonUI.java
2965 (paintButtonNormal): Check opaqueness before
2967 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2969 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2971 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2973 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2975 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2976 Change InternalFrame and Desktop colors.
2978 2004-06-09 David Jee <djee@redhat.com>
2980 * java/awt/Container.java
2981 (remove): Do not set component to invisible.
2983 2004-06-09 Michael Koch <konqueror@gmx.de>
2985 * javax/swing/tree/DefaultMutableTreeNode.java
2986 (getLeafCount): Renamed enum to e.
2988 2004-06-09 Michael Koch <konqueror@gmx.de>
2990 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2991 (positionForMouseEvent): Removed redundant semicolon.
2992 (continueDrag): Use method arguments.
2994 2004-06-09 Michael Koch <konqueror@gmx.de>
2996 * javax/swing/border/TitledBorder.java,
2997 javax/swing/filechooser/FileSystemView.java,
2998 javax/swing/plaf/basic/BasicButtonListener.java,
2999 javax/swing/plaf/basic/BasicGraphicsUtils.java,
3000 javax/swing/plaf/basic/BasicLabelUI.java,
3001 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
3002 javax/swing/plaf/basic/BasicScrollBarUI.java,
3003 javax/swing/plaf/basic/BasicScrollPaneUI.java,
3004 javax/swing/plaf/basic/BasicSliderUI.java,
3005 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
3006 javax/swing/plaf/basic/BasicToggleButtonUI.java,
3007 javax/swing/table/JTableHeader.java,
3008 javax/swing/text/AbstractDocument.java,
3009 javax/swing/text/DefaultCaret.java,
3010 javax/swing/text/StyledEditorKit.java,
3011 javax/swing/tree/DefaultTreeCellEditor.java:
3012 Reworked import statements.
3014 2004-06-08 Graydon Hoare <graydon@redhat.com>
3016 * javax/swing/Box.java: Temporarily comment out code
3017 broken due to visibility bug.
3019 2004-06-09 Michael Koch <konqueror@gmx.de>
3021 * javax/swing/ImageIcon.java
3022 (ImageIcon): Added missing constructor.
3024 2004-06-08 Michael Koch <konqueror@gmx.de>
3026 * javax/swing/JToggleButton.java
3027 (JToggleButton): New constructor.
3028 (getAccessibleContext): Moved documentation into javadoc.
3029 (getUIClassID): Likewise.
3031 2004-06-08 Michael Koch <konqueror@gmx.de>
3033 * javax/swing/AbstractButton.java
3034 (getDisabledIcon): Create disabled icon if none exists yet.
3036 2004-06-08 Michael Koch <konqueror@gmx.de>
3038 * javax/swing/plaf/basic/BasicLookAndFeel.java
3039 (initClassDefaults): Added FormattedTextFieldUI.
3040 (loadResourceBundle): Renamed enum to e.
3042 2004-06-08 Michael Koch <konqueror@gmx.de>
3044 * javax/swing/plaf/basic/BasicButtonUI.java
3045 (paintIcon): Simplified.
3046 (paintText): Paint disabled button correctly.
3048 2004-06-08 Michael Koch <konqueror@gmx.de>
3050 * javax/swing/JComponent.java
3051 (createToolTip): Use official JToolTip API.
3053 2004-06-08 Michael Koch <konqueror@gmx.de>
3055 * javax/swing/JToolTip.java
3056 (JToolTip): No arguments in API.
3057 (setTipText): New method.
3059 2004-06-08 Michael Koch <konqueror@gmx.de>
3061 * javax/swing/SwingUtilities.java
3062 (isLeftMouseButton): New method.
3063 (isMiddleMouseButton): New method.
3064 (isRightMouseButton): New method.
3066 2004-06-08 Michael Koch <konqueror@gmx.de>
3068 * javax/swing/AbstractButton.java,
3069 javax/swing/CellRendererPane.java,
3070 javax/swing/JCheckBoxMenuItem.java,
3071 javax/swing/JColorChooser.java,
3072 javax/swing/JComboBox.java,
3073 javax/swing/JComponent.java,
3074 javax/swing/JDesktopPane.java,
3075 javax/swing/JFileChooser.java,
3076 javax/swing/JMenu.java,
3077 javax/swing/JMenuItem.java,
3078 javax/swing/JOptionPane.java,
3079 javax/swing/JPasswordField.java,
3080 javax/swing/JPopupMenu.java,
3081 javax/swing/JProgressBar.java,
3082 javax/swing/JRadioButtonMenuItem.java,
3083 javax/swing/JScrollBar.java,
3084 javax/swing/JSeparator.java,
3085 javax/swing/JSlider.java,
3086 javax/swing/JSplitPane.java,
3087 javax/swing/JTabbedPane.java,
3088 javax/swing/JTextField.java,
3089 javax/swing/JToolBar.java,
3090 javax/swing/text/JTextComponent.java:
3091 Fixed all constructors of accessibility classes.
3093 2004-06-08 Michael Koch <konqueror@gmx.de>
3095 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
3098 2004-06-08 Michael Koch <konqueror@gmx.de>
3100 * javax/swing/Box.java
3101 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
3102 (AccessibleBoxFiller.serialVersionUID): New member variable.
3103 * javax/swing/DefaultButtonModel.java
3104 (stateMask): Made protected.
3105 (listenerList): Likewise.
3106 (changeEvent): Likewise.
3108 (mnemonic): Likewise.
3109 (actionCommand): Likewise.
3110 (getListeners): New method.
3111 (getActionListeners): New method.
3112 (getItemListeners): New method.
3113 (getChangeListeners): New method.
3114 (fireItemStateChanged): Simplified.
3115 (fireActionPerformed): Simplified.
3116 (fireStateChanged): Simplified.
3117 * javax/swing/JFrame.java
3118 (JFrame): Implements WindowContants.
3119 (HIDE_ON_CLOSE): Removed.
3120 (EXIT_ON_CLOSE): Removed.
3121 (DISPOSE_ON_CLOSE): Removed.
3122 (DO_NOTHING_ON_CLOSE): Removed.
3123 (processWindowEvent): Exit with code 0.
3124 (setDefaultCloseOperation): Do security check before setting value.
3125 * javax/swing/JOptionPane.java
3126 (message): Initialize only in constructor.
3127 * javax/swing/JToolTip.java: Removed unused imports.
3128 * javax/swing/JViewport.java
3129 (serialVersionUID): New member variable.
3130 (SIMPLE_SCROLL_MODE): Made final, fixed value.
3131 (BLIT_SCROLL_MODE): Likewise.
3132 (BACKINGSTORE_SCROLL_MODE): Likewise.
3133 (scrollUnderway): Made protected.
3134 (isViewSizeSet): Likewise.
3135 * javax/swing/ListModel.java: Fixed javadoc.
3136 * javax/swing/Popup.java: Likewise.
3137 * javax/swing/RepaintManager.java
3138 (paintDirtyRegions): Don't use internal classes of
3139 java.util.AbstractMap.
3140 * javax/swing/ScrollPaneConstants.java: Reindented.
3141 * javax/swing/ScrollPaneLayout.java
3142 (viewport): Made protected.
3143 (verticalScrollBar): Made protected, renamed to vsb.
3144 (horizontalScrollBar): Made protected, renamed to hsb.
3145 (rowHeader): Made protected, renamed to rowHead.
3146 (columnHeader): Made protected, renamed to colHead.
3147 (lowerLeft): Made protected.
3148 (lowerRight): Made protected.
3149 (upperLeft): Made protected.
3150 (upperRight): Made protected.
3151 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3152 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3154 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
3156 * java/awt/MediaTracker.java (imageUpdate): Only set status to
3157 LOADING if flags has SOMEBITS set.
3159 2004-06-07 Michael Koch <konqueror@gmx.de>
3161 * javax/swing/AbstractButton.java: Reorganized imports.
3162 * javax/swing/ActionMap.java: Likewise.
3163 * javax/swing/DefaultButtonModel.java: Likewise.
3164 * javax/swing/DefaultListModel.java: Likewise.
3165 * javax/swing/ImageIcon.java: Likewise.
3166 (serialVersionUID): New member variable.
3167 * javax/swing/JComboBox.java: Reorganized imports.
3168 * javax/swing/JComponent.java: Likewise.
3169 (ui): Made protected.
3170 (listenerList): Made protected.
3171 (TOOL_TIP_TEXT_KEY): New constant.
3172 (scrollRectToVisible): Removed redundant null check.
3173 * javax/swing/JFrame.java: Reorganized imports.
3174 * javax/swing/JInternalFrame.java: Reorganized imports.
3175 * javax/swing/JProgressBar.java: Likewise.
3176 * javax/swing/JRootPane.java: Likewise.
3177 * javax/swing/JScrollBar.java: Likewise.
3178 * javax/swing/JSeparator.java: Likewise.
3179 * javax/swing/JSlider.java: Likewise.
3180 * javax/swing/JTabbedPane.java: Likewise.
3181 * javax/swing/JTextField.java: Likewise.
3182 * javax/swing/JToolBar.java: Likewise.
3183 * javax/swing/JTree.java: Likewise.
3184 * javax/swing/JViewport.java: Likewise.
3185 * javax/swing/JWindow.java: Likewise.
3186 * javax/swing/KeyStroke.java: Likewise.
3187 * javax/swing/LookAndFeel.java: Likewise.
3188 * javax/swing/MenuSelectionManager.java: Likewise.
3189 * javax/swing/SwingUtilities.java: Likewise.
3190 * javax/swing/Timer.java: Likewise.
3191 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3192 * javax/swing/JList.java
3193 (HORIZONTAL_WRAP): Made final, fixed value.
3194 (VERTICAL): Likewise.
3195 (VERTICAL_WRAP): Likewise.
3197 2004-06-07 Michael Koch <konqueror@gmx.de>
3199 * javax/swing/AbstractButton.java
3200 (serialVersionUID): New member variable.
3201 (AccessibleAbstractButton.serialVersionUID): Likewise.
3202 (AbstractButton): Made public.
3203 * javax/swing/Box.java
3204 (AccessibleBox.serialVersionUID): New member variable.
3205 (Filler.serialVersionUID): Likewise.
3206 * javax/swing/DefaultListSelectionModel.java
3207 (serialVersionUID): Likewise.
3208 * javax/swing/JApplet.java
3209 (serialVersionUID): Likewise.
3210 * javax/swing/JCheckBox.java
3211 (serialVersionUID): Likewise.
3212 * javax/swing/JCheckBoxMenuItem.java
3213 (serialVersionUID): Likewise.
3214 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3215 * javax/swing/JColorChooser.java
3216 (serialVersionUID): Likewise.
3217 (AccessibleJColorChooser.serialVersionUID): Likewise.
3218 * javax/swing/JComponent.java
3219 (serialVersionUID): Made private.
3220 (AccessibleJComponent.serialVersionUID): New member variable.
3221 * javax/swing/JDesktopPane.java
3222 (serialVersionUID): Likewise.
3223 * javax/swing/JDialog.java
3224 (serialVersionUID): Likewise.
3225 * javax/swing/JFormattedTextField.java
3226 (serialVersionUID): Fixed value.
3227 * javax/swing/JFrame.java
3228 (serialVersionUID): New member variable.
3229 (getDefaultCloseOpertation): Made public.
3230 * javax/swing/JLayeredPane.java
3231 (serialVersionUID): Likewise.
3232 (LAYER_PROPERTY): Made final, fixed value.
3233 (JLayeredPane): Made public.
3234 * javax/swing/JMenu.java
3235 (AccessibleJMenu.serialVersionUID): New member variable.
3236 (WinListener.serialVersionUID): Likewise.
3237 * javax/swing/JMenuBar.java
3238 (serialVersionUID): Likewise.
3239 (getComponentAtIndex): Added @deprecated tag.
3240 * javax/swing/JMenuItem.java
3241 (serialVersionUID): New member variable.
3242 (AccessibleJMenuItem.serialVersionUID): Likewise.
3243 * javax/swing/JOptionPane.java
3244 (serialVersionUID): Likewise.
3245 (AccessibleJOptionPane.serialVersionUID): Likewise.
3246 * javax/swing/JPopupMenu.java
3247 (serialVersionUID): Likewise.
3248 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3249 (getPopupMenuListeners): New method.
3250 (getComponentAtIndex): Added @deprecated tag.
3251 * javax/swing/JProgressBar.java
3252 (serialVersionUID): New member variable.
3253 (AccessibleJProgressBar.serialVersionUID): Likewise.
3254 * javax/swing/JRadioButton.java
3255 (serialVersionUID): Likewise.
3256 * javax/swing/JRadioButtonMenuItem.java
3257 (serialVersionUID): Likewise.
3258 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3259 * javax/swing/JScrollBar.java
3260 (serialVersionUID): Likewise.
3261 (AccessibleJScrollBar.serialVersionUID): Likewise.
3262 * javax/swing/JSeparator.java
3263 (serialVersionUID): Likewise.
3264 (AccessibleJSeparator.serialVersionUID): Likewise.
3265 * javax/swing/JSlider.java: Fixed javadocs.
3266 (AccessibleJSlider.serialVersionUID): New member variable.
3267 * javax/swing/JSplitPane.java: Added copyright statement.
3268 (serialVersionUID): New member variable.
3269 (AccessibleJSplitPane.serialVersionUID): Likewise.
3270 * javax/swing/JTabbedPane.java
3271 (serialVersionUID): Likewise.
3272 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3273 (ModelListener.serialVersionUID): Likewise.
3274 (ModelListener.ModelListener): New constructor.
3275 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3276 (WRAP_TAB_LAYOUT): Likewise.
3277 * javax/swing/JTable.java
3278 (serialVersionUID): New member variable.
3279 * javax/swing/JToggleButton.java
3280 (serialVersionUID): Likewise.
3281 (ToggleButtonModel): Made static.
3282 (ToggleButtonModel.serialVersionUID): New member variable.
3283 * javax/swing/JToolTip.java
3284 (serialVersionUID): Likewise.
3285 * javax/swing/JTree.java
3286 (serialVersionUID): Likewise.
3287 * javax/swing/JWindow.java
3288 (serialVersionUID): Likewise.
3289 * javax/swing/Timer.java
3290 (serialVersionUID): Likewise.
3292 2004-06-06 Michael Koch <konqueror@gmx.de>
3294 * javax/swing/SwingConstants.java
3295 (NEXT): New constant.
3296 (PREVIOUS): Likewise.
3297 * javax/swing/UIManager.java
3298 (LookAndFeel): Made public.
3299 (LookAndFeel.getClassName): Likewise.
3300 (LookAndFeel.getName): Likewise.
3302 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3304 * javax/swing/JCheckBoxMenuItem.java:
3306 * javax/swing/JMenu.java: Likewise.
3307 * javax/swing/JMenuBar.java: Likewise.
3308 * javax/swing/JMenuItem.java: Likewise.
3309 * javax/swing/JPopupMenu.java: Likewise.
3310 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3311 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3312 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3313 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3314 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3315 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3316 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3318 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3320 * javax/swing/plaf/basic/BasicMenuUI.java:
3321 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3322 Call getPath() from super class instead.
3324 2004-05-31 David Jee <djee@redhat.com>
3326 * java/awt/Container.java
3327 (remove): Set component visibility to false after removing it.
3329 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3331 * java/awt/Component.java (getForeground): Return SystemColor if
3333 (getBackground): Likewise.
3335 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3336 (item_highlighted): New function.
3337 (connectSignals): Set item_highlighted as list's select
3340 * java/applet/Applet.java: Revert changes from 2004-04-29,
3341 2004-03-15 and 2004-03-14.
3343 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3344 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3347 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3348 "Dialog" as the default font.
3349 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3351 * java/awt/Component.java (getFont): Return "Dialog" font by
3353 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3354 Multiply size argument to pango_font_description_set_size by the
3355 DPI conversion factor rather than by PANGO_SCALE.
3356 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3357 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3358 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3359 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3360 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3361 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3362 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3363 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3364 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3365 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3366 Divide baseline y coordinate by DPI conversion factor rather
3367 than by PANGO_SCALE.
3368 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3369 (area_prepared): Fix typo.
3370 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3371 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3372 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3373 (dpi_conversion_factor): New global variable.
3374 (init_dpi_conversion_factor): New function to calculate and
3375 track DPI conversion factor.
3376 (dpi_changed_cb): New callback.
3377 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3379 2004-05-27 David Jee <djee@redhat.com>
3381 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3382 (getGraphics): Return a new GdkGraphics instance.
3383 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3384 (getGraphics): Call super.getGraphics().
3386 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3388 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3389 (setNativeBounds): Clamp width and height values to >= 0.
3391 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3392 (find_fg_color_widget): Handle GtkOptionMenu specially.
3394 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3395 (pre_event_handler): Only post configure events to visible
3398 2004-05-26 David Jee <djee@redhat.com>
3400 * java/awt/BorderLayout.java
3401 (layoutContainer): Fix size calculations.
3403 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3405 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3406 (window_wm_protocols_filter): Remove function.
3407 (create): Remove filter that removes WM_TAKE_FOCUS client
3410 2004-06-17 Anthony Green <green@redhat.com>
3412 * java/util/zip/ZipFile.java (getInputStream): Return null if
3415 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3416 directory contents to the class path.
3418 2004-06-15 Andrew Haley <aph@redhat.com>
3420 * java/lang/natSystem.cc (getenv0): Don't assume environment
3421 variable is Latin 1 coded.
3423 2004-06-14 Andreas Jaeger <aj@suse.de>
3425 * configure.in: Support --enable-version-specific-runtime-libs.
3426 * configure: Regenerated.
3428 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3430 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3431 to pass ClassLoader argument.
3432 * java/util/GregorianCalendar.java: Likewise.
3433 * java/util/Currency.java: Likewise.
3434 * java/text/BreakIterator.java: Likewise.
3435 * java/text/Collator.java: Likewise.
3436 * java/text/DateFormat.java: Likewise.
3437 * java/text/DateFormatSymbols.java: Likewise.
3438 * java/text/DecimalFormatSymbols.java: Likewise.
3439 * java/text/NumberFormat.java: Likewise.
3440 * java/awt/Window.java: Likewise.
3442 2004-06-14 Andrew Haley <aph@redhat.com>
3444 * java/lang/System.java: (getenv0): New method.
3445 (getenv): Add security check. Do the right thing.
3446 * java/lang/natSystem.cc (getenv0): New method.
3448 2004-06-12 Mark Wielaard <mark@klomp.org>
3450 * javax/swing/RepaintManager.java
3451 (paintDirtyRegions): Use entrySet(), not values().
3453 2004-06-10 Mark Wielaard <mark@klomp.org>
3455 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3458 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3460 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3461 when we already know the answer.
3462 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3463 (setStartRule,setEndRule): Don't take abs of day number.
3464 (getOffset): Clarify docs. Add argument checks.
3465 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3466 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3469 2004-06-10 Tom Tromey <tromey@redhat.com>
3471 * interpret.cc (run): Handle wide fload.
3473 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3475 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3477 2004-06-05 Michael Koch <konqueror@gmx.de>
3479 * javax/swing/SwingConstants.java
3480 (NEXT): New constant.
3481 (PREVIOUS): Likewise.
3483 2004-06-05 Michael Koch <konqueror@gmx.de>
3485 * javax/swing/UIManager.java
3486 (LookAndFeel): Made public.
3487 (LookAndFeel.getName): Likewise.
3488 (LookAndFeel.getClassName): Likewise.
3490 2004-06-03 Michael Koch <konqueror@gmx.de>
3492 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3493 (requestFocus): Revert last changes.
3494 (gtkRequestFocus): Removed.
3495 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3496 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3498 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3499 Reverted last patch.
3500 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3501 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3502 Reverted comment change.
3504 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3506 * javax/swing/JCheckBoxMenuItem.java:
3508 * javax/swing/JMenu.java: Likewise.
3509 * javax/swing/JMenuBar.java: Likewise.
3510 * javax/swing/JMenuItem.java: Likewise.
3511 * javax/swing/JPopupMenu.java: Likewise.
3512 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3513 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3514 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3515 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3516 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3517 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3518 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3520 2004-06-01 Tom Tromey <tromey@redhat.com>
3522 * java/io/ObjectStreamField.java: Cleaned up imports.
3524 2004-06-01 Michael Koch <konqueror@gmx.de>
3526 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3528 2004-06-01 Mark Wielaard <mark@klomp.org>
3530 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3532 2004-06-01 Michael Koch <konqueror@gmx.de>
3534 * java/security/Security.java
3535 (insertProviderAt): Use equals() instead of ==.
3536 (removeProvicer): Likewise.
3537 (getProvider): Likewise.
3538 * java/security/Signature.java
3539 (sign): Don't set state to UNINITIALIZED.
3542 2004-06-01 Mark Wielaard <mark@klomp.org>
3544 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3545 Implement by calling gtkRequestFocus.
3546 (gtkRequestFocus): New native method.
3547 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3548 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3550 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3552 (filter_expose_event_handler):
3554 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3555 (menu_pos): Mark static.
3557 2004-06-01 Michael Koch <konqueror@gmx.de>
3559 * java/text/CollationElementIterator.java,
3560 java/text/CollationKey.java,
3561 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3562 * testsuite/libjava.mauve/xfails: Removed all
3563 java.text.CollationElementIterator tests.
3565 2004-06-01 Michael Koch <konqueror@gmx.de>
3567 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3569 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3570 Java 1.5 keyword usage.
3572 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3574 * javax/swing/plaf/basic/BasicMenuUI.java:
3575 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3576 Call getPath() from super class instead.
3578 2004-05-31 Michael Koch <konqueror@gmx.de>
3580 * java/io/SequenceInputStream.java:
3581 Rename enum to e because enum is a keyword in Java 1.5.
3583 2004-05-31 Michael Koch <konqueror@gmx.de>
3585 * gnu/java/rmi/rmic/CompilerProcess.java:
3586 Fixed javadoc to by XHTML compliant.
3588 2004-05-30 Mark Wielaard <mark@klomp.org>
3590 * java/awt/Toolkit.java (loadSystemColors): Implement.
3592 2004-05-30 Michael Koch <konqueror@gmx.de>
3594 * java/lang/System.java: Reordered imports.
3596 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3598 * java/text/DecimalFormat.java
3599 (parse): Fixed parsing of decimal strings. Number of maximum
3600 digits to be read should now work.
3601 * java/text/SimpleDateFormat.java
3602 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3603 formatter. This fixes DateFormatTest.
3605 2004-05-30 Michael Koch <konqueror@gmx.de>
3607 * java/nio/Buffer.java
3608 (limit): Fixed off by one error.
3609 * java/nio/CharBuffer.java
3610 (wrap): Fixed arguments, added javadocs.
3612 2004-05-30 Michael Koch <konqueror@gmx.de>
3614 * gnu/java/beans/BeanInfoEmbryo.java,
3615 java/awt/im/InputContext.java,
3616 javax/swing/tree/DefaultMutableTreeNode.java:
3617 Rename enum to e because enum is a keyword in Java 1.5.
3619 2004-05-30 Michael Koch <konqueror@gmx.de>
3621 * gnu/java/math/MPN.java,
3622 java/awt/geom/Arc2D.java:
3623 Fixed javadocs all over.
3625 2004-05-30 Michael Koch <konqueror@gmx.de>
3627 * java/awt/DefaultKeyboardFocusManager.java
3628 (dispatchEvent): Call method to get key event dispatchers.
3629 (dispatchKeyEvent): Call method to get key event post processors.
3630 * javax/swing/JComponent.java
3631 (listenerList): Made protected.
3632 * javax/swing/JOptionPane.java
3633 (message): Don't initialize.
3634 (JOptionPane): Set message text.
3635 * javax/swing/JPopupMenu.java
3636 (show): Fixed typo in argument name.
3637 * javax/swing/RepaintManager.java
3638 (paintDirtyRegions): Use public API of java.util.Map.
3639 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3640 (positionForMouseEvent): Removed redundant ';'.
3641 (continueDrag): Use method arguments.
3643 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3645 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3648 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3650 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3652 * gnu/gcj/RawDataManaged.java: New file.
3653 * java/lang/Thread.java (data): Declare as RawDataManaged.
3654 * java/lang/natThread.cc (init_native): Cast natThread data to
3655 RawDataManaged, not jobject.
3656 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3657 * Makefile.in: Rebuilt.
3659 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3661 * java/util/SimpleTimeZone.java: Reverting my last change until I
3662 can fix it properly.
3664 2004-05-27 Michael Koch <konqueror@gmx.de>
3666 * javax/swing/JPopupMenu.java
3667 (isVisible): Do not use visible directly.
3668 (setVisible): Likewise.
3669 * javax/swing/JWindow.java
3670 (JWindow): call accessible constructor.
3671 * javax/swing/RepaintManager.java
3672 (paintDirtyRegions): Use public methods to obtain iterator.
3674 2004-05-25 David Jee <djee@redhat.com>
3676 * java/awt/Container.java
3677 (remove): Set component's parent to null only after we removed the
3678 component from its parent's layout manager.
3680 2004-05-25 David Jee <djee@redhat.com>
3682 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3683 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3685 * gnu/java/awt/peer/gtk/GtkListPeer.java
3686 (getSize): Change native method declaration.
3687 (minimumSize): Pass visible row count into getSize().
3688 (preferredSize): Likewise.
3689 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3690 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3691 natural size. Use visible row count to determine the final height
3694 2004-05-21 Graydon Hoare <graydon@redhat.com>
3696 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3697 (setClip): Minor correction to order of operations.
3699 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3700 * javax/swing/ScrollPaneLayout.java: Likewise.
3701 * javax/swing/JViewPort.java: Likewise.
3702 * javax/swing/ViewportLayout.java: Likewise.
3704 * javax/swing/JComponent.java: Rewrite.
3705 * javax/swing/RepaintManager.java: Likewise.
3707 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3708 * javax/swing/JList.java
3709 (setSelectedIndices):
3710 (getSelectedIndices):
3711 (getSelectedValues): New functions.
3712 (getPreferredScrollableViewportSize): Return preferred size.
3713 (getScrollableUnitIncrement):
3714 (getScrollableBlockIncrement): Initial implementations.
3715 * javax/swing/JRootPane.java: Clean up slightly.
3720 (isValidateRoot): Add overrides from JComponent.
3721 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3722 * javax/swing/UIManager.java (getDimension): Return the dimension.
3724 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3725 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3726 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3727 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3728 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3729 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3730 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3731 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3732 Likewise, and set background.
3733 * javax/swing/plaf/basic/BasicListUI.java:
3734 Likewise, and improve a bit.
3735 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3736 Likewise, and adjust calculations.
3737 * javax/swing/plaf/basic/BasicViewportUI.java:
3738 Likewise, and improve a bit.
3739 * javax/swing/plaf/basic/BasicLookAndFeel.java
3740 (Button.margin): Shrink.
3742 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3743 Hack to set horizontal always, workaround pango.
3745 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3746 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3747 Synchronize more often, check cairo status after ops,
3748 handle changes to cairo pattern API, check for disposal.
3750 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3752 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3753 (BasicMenuItemUI): Create propertyChangeListener.
3754 (getPath):Implemented.
3755 (installListeners): Add propertyChangeListener to menuItem.
3756 (uninstallListeners): Remove propertyChangeListener from menuItem.
3757 (update): Implemented.
3758 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3759 (mouseEntered): Take insets of popup menu into account when
3760 calculating position of popup menu.
3762 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3764 * Makefile.am: Added new file.
3765 * Makefile.in: Regenerate.
3766 * javax/swing/JMenuBar.java:
3767 Started implementation.
3768 * javax/swing/JPopupMenu.java:
3769 (setVisible): Fixed location of lightweight/mediumweight
3771 (show): Fixed location of PopupMenu.
3772 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3773 New file. UI Delegate for JMenuBar.
3774 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3775 (mouseEntered): Corrected position of the submenu.
3777 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3779 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3780 to _gtk_accel_group_attach.
3781 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3784 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3785 package access. Don't override setFont.
3786 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3787 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3788 gtkWidgetRequestFocus package access.
3789 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3791 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3792 Give gtkWidgetRequestFocus package access.
3793 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3794 gtkWidgetRequestFocus package access. Don't override setFont.
3795 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3797 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3798 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3800 (gtkSetFont): Likewise.
3801 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3803 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3804 (gtkSetFont): Whitespace fix.
3806 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3807 (gtkWidgetSetUsize): Remove method.
3809 2004-05-18 David Jee <djee@redhat.com>
3811 * java/awt/image/MemoryImageSource.java
3812 (newPixels(int,int,int,int,boolean)): Set only the specified
3813 rectangle of pixels.
3814 (newPixels(byte[],ColorModel,int,int)): Implement.
3815 (newPixels(int[],ColorModel,int,int)): Implement.
3817 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3819 * Makefile.am: Added new file.
3820 * Makefile.in: Regenerate.
3821 * javax/swing/JMenu.java: Started
3823 * javax/swing/JPopupMenu.java:
3824 (insert): If specified index is -1, then
3825 add component at the end.
3826 (isPopupTrigger): Reimplemented.
3827 (JPopupMenu.LightWeightPopup): setBounds
3828 of the lightWeightPopup before adding it
3830 (javax/swing/plaf/basic/BasicIconFactory.java):
3831 (getMenuArrowIcon): Implemented.
3832 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3833 (getPreferredSize): Add size of the arrow icon
3834 if this menu item is instance of JMenu.
3835 (paintMenuItem): Paint arrow icon if this
3836 menu item is a submenu.
3837 * javax/swing/plaf/basic/BasicMenuUI.java:
3838 New File. UI Delegate for JMenu.
3840 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3842 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3843 Post KEY_TYPED events.
3844 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3845 (generates_key_typed_event): Remove function.
3847 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3849 * javax/swing/JRootPane.java
3850 (JRootPane.RootLayout): Reimplemented to
3851 set bounds of contentPane and menuBar.
3852 (setJMenuBar): Add menu bar to the layered pane.
3853 (createLayeredPane): Set layout of layeredPane
3855 * javax/swing/JLayeredPane.java:
3856 (addImpl): Calculate index of the component in the
3857 layeredPane according to the specified position within
3860 2004-05-17 David Jee <djee@redhat.com>
3862 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3863 (setPixels): Change color model to the default model after
3865 * java/awt/image/MemoryImageSource.java
3866 (newPixels): Set only the specified rectangle of pixels.
3868 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3870 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3871 -l-java-beans -l-javax-accessibility -l-javax-swing.
3873 * java/awt/AWTEvent.java (toString): Print source's name rather
3874 than the source itself.
3876 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3878 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3880 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3881 (gdk_color_to_java_color): New function.
3882 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3884 2004-05-12 David Jee <djee@redhat.com>
3886 * java/awt/image/RGBImageFilter.java:
3887 Initialize origmodel as null.
3888 (makeColor): Fix pixel component order.
3889 (filterRGBPixels): Fix pixel iteration.
3890 (setPixels): Add extra checks for index color model. Convert pixels
3891 to default color model if necessary.
3892 (convertColorModelToDefault): New override method for byte pixels.
3893 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3894 (makeColorbyDefaultCM): New override method for byte pixels.
3895 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3896 (makeColor): Fix pixel component order.
3898 2004-05-11 Kim Ho <kho@redhat.com>
3900 * javax/swing/Box.java:
3901 Comment out more parts of Box.Filler.
3903 2004-05-11 Kim Ho <kho@redhat.com>
3905 * javax/swing/Box.java:
3906 Remove reference to AccessibleAWTComponent so
3909 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3911 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3912 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3913 implementation of list peer to use GtkTreeView instead of
3914 deprecated GtkCList.
3916 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3918 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3919 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3920 (handleEvent): Remove keyChar argument to
3921 gtkWidgetDispatchKeyEvent calls.
3922 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3924 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3925 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3926 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3929 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3931 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3932 (gtkWidgetRequestFocus): Mark protected.
3933 (GtkComponentPeer): Only set the peer's bounds if its component
3935 * java/awt/Component.java (static): Set the default keyboard
3937 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3938 requestFocusInWindow(temporary)): Don't request focus if the
3939 component is not showing. Get tree lock before traversing
3940 component hierarchy.
3941 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3942 Only set the global focus owner if it is not a Window.
3943 (processKeyEvent): Consume keystrokes associated with the focus
3944 traversal keystroke.
3945 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3946 downFocusCycle): Call requestFocusInWindow instead of
3948 * java/awt/EventDispatchThread.java (run): Move setting of
3949 default keyboard focus manager to Component.java.
3950 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3951 (awt_keycode_to_keysym): New function.
3952 (gtkWidgetDispatchKeyEvent): Finish implementation.
3953 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3954 (pre_event_handler): Add FIXME comment.
3956 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3957 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3958 (gtkWidgetRequestFocus): New method.
3959 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3960 disable Tab and Shift-Tab keystrokes.
3961 (addNotify, appendText, insertText, replaceText): Simplify peer
3963 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3964 (connectSignals): Remove connections to "commit" signals.
3965 Remove C++-style comments.
3967 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3968 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3969 (handleEvent): Activate GTK button when the space bar key is
3971 (gtkActivate): New method.
3973 2004-05-06 David Jee <djee@redhat.com>
3975 * java/awt/image/CropImageFilter.java
3976 (setPixels): Implement for byte array pixels.
3977 * java/awt/image/ReplicateScaleFilter.java
3978 (setPixels): Implement for byte array pixels.
3979 (replicatePixels): Overload for byte array pixels.
3981 2004-05-06 Kim Ho <kho@redhat.com>
3983 * javax/swing/Box.java:
3984 (getAccessibleContext): Return an instance of the
3987 2004-05-05 David Jee <djee@redhat.com>
3989 * gnu/java/awt/peer/gtk/GdkGraphics.java
3990 (drawImage): When component is null, use SystemColor.window as
3991 the default bgcolor.
3992 * gnu/java/awt/peer/gtk/GtkImage.java
3993 (setPixels): We can avoid iterating through the pixel rows only
3995 * java/awt/Image.java
3996 (getScaledInstance): Partially implement.
3997 * java/awt/image/CropImageFilter.java
3998 (setProperties): Fix "filter" property.
3999 (setPixels): Implement.
4000 * java/awt/image/ReplicateScaleFilter.java
4001 (setDimensions): Use scaled dimensions.
4002 (setPixels): Implement.
4003 (replicatePixels): New method.
4005 2004-05-05 David Jee <djee@redhat.com>
4007 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4008 (convertPixels): If either pixels or model is null, return null.
4009 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
4010 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
4011 is null, do nothing and return.
4013 2004-05-03 Kim Ho <kho@redhat.com>
4015 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
4016 (getGraphics): Like GtkFramePeer, the Graphics
4017 object needs to be translate to account for
4019 (postMouseEvent): New method. Account for
4021 (postExposeEvent): ditto.
4022 * javax/swing/Box.java: Stubbed.
4023 * javax/swing/JDialog.java: Ran through jalopy
4025 (JDialog): Call SwingUtilities' getOwnerFrame
4027 (setLayout): Check isRootPaneCheckingEnabled
4028 * javax/swing/JOptionPane.java: Re-implemented.
4029 * javax/swing/SwingUtilities.java:
4030 (getOwnerFrame): Static method to grab a default
4031 owner frame for Dialogs that don't specify owners.
4032 * javax/swing/event/SwingPropertyChangeSupport.java:
4033 (firePropertyChange): Fix early exit condition.
4034 * javax/swing/plaf/basic/BasicLabelUI.java:
4035 (paint): Avoid painting text if it is null
4037 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4040 2004-05-03 Olga Rodimina <rodimina@redhat.com>
4042 * Makefile.am: Added new file.
4043 * Makefile.in: Regenerate.
4044 * javax/swing/JPopupMenu.java:
4045 Started implementation.
4046 * javax/swing/JWindow.java
4047 (JWindow): call super() if parent for window
4049 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4050 New File. UI Delegate for JPopupMenu.
4052 2004-04-30 Olga Rodimina <rodimina@redhat.com>
4054 * javax/swing/JApplet.java: Indicated that JApplet
4055 implements RootPaneContainer and made method of this
4057 * javax/swing/JFrame.java: Ditto.
4058 * javax/swing/JWindow.java: Ditto.
4060 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
4062 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4063 (nativeSetBounds): Call gdk_window_move in addition to
4066 * java/applet/Applet.java (preferredSize): Call parent's
4067 preferredSize if the applet stub is null.
4068 (minimumSize): Likewise for parent's minimumSize.
4070 2004-04-27 Olga Rodimina <rodimina@redhat.com>
4072 * javax/swing/JMenuItem.java
4073 (createActionPropertyChangeListener): Implemented.
4074 (processMouseEvent): Ditto.
4075 (fireMenuDragMouseEntered): Ditto.
4076 (fireMenuDragMouseExited): Ditto.
4077 (fireMenuDragMouseDragged): Ditto.
4078 (fireMenuDragMouseReleased): Ditto.
4079 (menuSelectionChanged): Ditto.
4080 (getSubElements): Ditto.
4081 (getComponent): Ditto.
4082 (addMenuDragMouseListener): Ditto.
4083 (removeMenuDragMouseListener):Ditto.
4084 (addMenuKeyListener): Ditto.
4085 (removeMenuKeyListener): Ditto.
4086 * javax/swing/plaf/basic/BasicMenuItemUI.java
4087 (doClick): Imlemented.
4088 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
4089 Don't handle mouse events here. Pass them to
4090 MenuSelectionManager.
4092 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4093 Used correct version of jalopy configuration
4094 file to fix style in the files below.
4096 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4098 * javax/swing/JCheckBoxMenuItem.java:
4099 Fixed style and removed unnecessary comments.
4100 * javax/swing/JMenuItem.java: Ditto.
4101 * javax/swing/JRadioButtonMenuItem.java: Ditto.
4102 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
4103 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
4104 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
4106 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
4108 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
4111 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
4113 * java/awt/ContainerOrderFocusTraversalPolicy.java
4114 (getComponentAfter): Start from current component and work up
4115 the component hierarchy until an acceptable component is found.
4116 Synchronize on tree lock.
4117 (getComponentBefore): Likewise.
4119 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
4121 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
4122 focus-related debugging messages.
4123 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
4124 * java/awt/EventDispatchThread.java: Likewise.
4125 * java/awt/KeyboardFocusManager.java: Likewise.
4126 * java/awt/Window.java: Likewise.
4127 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
4128 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4130 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
4131 new C++-style comments to C-style comments.
4132 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4134 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4135 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4136 (handleEvent): Dispatch key press and key release events to
4138 (requestFocus): Post a FOCUS_GAINED event to the event queue.
4139 (gtkWidgetRequestFocus): New method.
4140 (gtkWidgetDispatchKeyEvent): Likewise.
4141 * java/awt/Component.java (requestFocus, requestFocus(boolean),
4142 requestFocusInWindow, requestFocusInWindow(boolean),
4143 getFocusCycleRootAncestor, nextFocus, transferFocus,
4144 transferFocusBackward, transferFocusUpCycle, hasFocus,
4145 isFocusOwner): Implement and document focus-handling methods.
4146 (setFocusTraversalKeys): Inherit focus traversal keys when
4147 keystrokes argument is null. Fix focus-handling documentation
4149 * java/awt/Container.java (setFocusTraversalKeys,
4150 getFocusTraversalKeys, areFocusTraversalKeysSet,
4151 isFocusCycleRoot, setFocusTraversalPolicy,
4152 getFocusTraversalPolicy, isFocusTraversalPolicySet,
4153 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4154 Implement and document focus-handling methods.
4155 (transferFocusBackward): Remove method.
4156 (readObject, writeObject): Implement and document serialization
4158 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4160 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4162 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4164 * java/awt/EventDispatchThread.java (run): Set default keyboard
4165 focus manager. Attempt to dispatch each event to the keyboard
4166 focus manager before normal dispatch.
4167 * java/awt/KeyboardFocusManager.java: Implement and partially
4169 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4170 (show): Focus initial component when window is shown for the
4172 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4173 (pre_event_handler): Replace complex key press and key release
4174 logic with simple callbacks into GtkComponentPeer.
4175 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4177 2004-04-21 Olga Rodimina <rodimina@redhat.com>
4179 * javax/swing/MenuSelectionManager.java
4180 (componentForPoint): Added new method.
4181 (defaultManager): New Method. Implemented.
4182 (getSelectedPath): Ditto.
4183 (isComponentPartOfCurrentMenu): Ditto.
4184 (processKeyEvent): Added new method.
4185 (processMouseEvent): New Method. Implemented.
4186 (setSelectedPath): Ditto.
4189 2004-04-19 Kim Ho <kho@redhat.com>
4191 * java/awt/Container.java:
4192 (remove): Set the component's parent to null.
4193 (getComponentAt): Implement.
4194 * javax/swing/JComponent.java:
4195 (JComponent): Initialize defaultLocale
4196 (getDefaultLocale): Implement.
4197 (setDefaultLocale): ditto.
4198 * javax/swing/JSlider.java:
4199 (JSlider): Fix calculation of value.
4200 * javax/swing/JSplitPane.java: Implement.
4201 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4202 Change SplitPane's default divider size.
4203 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4204 (paint): Remove unused code.
4205 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4206 Added comments and ran through jalopy.
4207 (setBasicSplitPaneUI): Get reference to hidden divider
4208 and set up one touch buttons if necessary.
4209 (setBorder): Fire propertyChangeEvent only if
4210 borders are different.
4211 (getPreferredSize): Defer to layout manager.
4212 (propertyChange): Implement.
4213 (oneTouchExpandableChanged): ditto.
4214 (createLeftOneTouchButton): Use BasicArrowButton.
4215 (createRightOneTouchButton): ditto.
4216 (moveDividerTo): New method. Moves the divider
4217 to a set location based on the last divider location.
4218 (BasicSplitPaneDivider::MouseHandler): Implement.
4219 (BasicSplitPaneDivider::OneTouchButton): Removed.
4220 (BasicSplitPaneDivider::DragController): Implement.
4221 (BasicSplitPaneDivider::VerticalDragController):
4223 (BasicSplitPaneDivider::DividerLayout): ditto.
4224 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4225 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4226 (calculateLayoutInfo): Don't show component if it's
4228 (paintTab): Fix title paint logic.
4230 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
4233 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4234 (setStartRule,setEndRule): Don't take abs of day number.
4235 (getOffset): Clarify docs. Add argument checks.
4236 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4237 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4239 * testsuite/libjava.mauve/xfails
4240 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4242 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4244 Layout interfaces during preparation, not initialization.
4245 * java/lang/natClass.cc (initializeClass): Move
4246 _Jv_LayoutInterfaceMethods call...
4247 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4249 2004-05-19 Anthony Green <green@localhost.localdomain>
4251 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4253 * Makefile.in: Rebuilt.
4254 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4255 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4256 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4257 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4258 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4259 gnu/javax/rmi/CORBA/DelegateFactory.java,
4260 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4261 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4262 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4263 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4264 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4265 gnu/javax/rmi/PortableServer.java: Remove files.
4267 2004-05-19 Anthony Green <green@redhat.com>
4269 * Makefile.am: Define JAVA_EXT_DIRS.
4270 * Makefile.in: Rebuilt.
4271 * java/lang/natRuntime.cc (insertSystemProperties): Set
4272 java.ext.dirs property.
4274 2004-05-16 Mark Wielaard <mark@klomp.org>
4276 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4278 2004-05-15 Mark Wielaard <mark@klomp.org>
4280 * doc/cni.sgml: Removed, merged into gcj.texi.
4282 2004-05-15 Mark Wielaard <mark@klomp.org>
4284 * Makefile.am (ordinary_java_source_files): Add new javax.print
4286 * Makefile.in: Regenerated.
4288 2004-05-15 Michael Koch <konqueror@gmx.de>
4290 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4291 javax/print/attribute/standard/DateTimeAtCreation.java,
4292 javax/print/attribute/standard/DateTimeAtProcessing.java,
4293 javax/print/attribute/standard/DocumentName.java,
4294 javax/print/attribute/standard/JobHoldUntil.java,
4295 javax/print/attribute/standard/JobImpressionsCompleted.java,
4296 javax/print/attribute/standard/JobMessageFromOperator.java,
4297 javax/print/attribute/standard/JobName.java,
4298 javax/print/attribute/standard/JobOriginatingUserName.java,
4299 javax/print/attribute/standard/JobPriority.java,
4300 javax/print/attribute/standard/JobPrioritySupported.java,
4301 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4302 javax/print/attribute/standard/OutputDeviceAssigned.java,
4303 javax/print/attribute/standard/PrinterInfo.java,
4304 javax/print/attribute/standard/PrinterLocation.java,
4305 javax/print/attribute/standard/PrinterMakeAndModel.java,
4306 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4307 javax/print/attribute/standard/PrinterName.java,
4308 javax/print/attribute/standard/QueuedJobCount.java,
4309 javax/print/attribute/standard/RequestingUserName.java:
4310 Fixed javadocs all over.
4312 2004-05-15 Michael Koch <konqueror@gmx.de>
4314 * javax/print/DocFlavor.java,
4315 javax/print/attribute/standard/ColorSupported.java,
4316 javax/print/attribute/standard/Compression.java,
4317 javax/print/attribute/standard/CopiesSupported.java,
4318 javax/print/attribute/standard/Fidelity.java,
4319 javax/print/attribute/standard/Finishings.java,
4320 javax/print/attribute/standard/JobImpressionsSupported.java,
4321 javax/print/attribute/standard/JobKOctetsSupported.java,
4322 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4323 javax/print/attribute/standard/JobSheets.java,
4324 javax/print/attribute/standard/JobState.java,
4325 javax/print/attribute/standard/JobStateReason.java,
4326 javax/print/attribute/standard/JobStateReasons.java,
4327 javax/print/attribute/standard/Media.java,
4328 javax/print/attribute/standard/MediaSizeName.java,
4329 javax/print/attribute/standard/MultipleDocumentHandling.java,
4330 javax/print/attribute/standard/NumberUpSupported.java,
4331 javax/print/attribute/standard/OrientationRequested.java,
4332 javax/print/attribute/standard/PDLOverrideSupported.java,
4333 javax/print/attribute/standard/PageRanges.java,
4334 javax/print/attribute/standard/PresentationDirection.java,
4335 javax/print/attribute/standard/PrintQuality.java,
4336 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4337 javax/print/attribute/standard/PrinterMoreInfo.java,
4338 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4339 javax/print/attribute/standard/PrinterResolution.java,
4340 javax/print/attribute/standard/PrinterState.java,
4341 javax/print/attribute/standard/PrinterStateReason.java,
4342 javax/print/attribute/standard/PrinterStateReasons.java,
4343 javax/print/attribute/standard/PrinterURI.java,
4344 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4345 javax/print/attribute/standard/Severity.java,
4346 javax/print/attribute/standard/SheetCollate.java,
4347 javax/print/attribute/standard/Sides.java:
4348 Added serialVersionUID and removed final keyword where it doenst
4351 2004-05-15 Michael Koch <konqueror@gmx.de>
4353 * javax/print/PrintServiceLookup.java: New file.
4355 2004-05-15 Michael Koch <konqueror@gmx.de>
4357 * javax/print/DocFlavor.java:
4358 Implemented all flavor classes.
4360 2004-05-15 Michael Koch <konqueror@gmx.de>
4362 * javax/print/attribute/standard/ColorSupported.java,
4363 javax/print/attribute/standard/Compression.java,
4364 javax/print/attribute/standard/CopiesSupported.java,
4365 javax/print/attribute/standard/Fidelity.java,
4366 javax/print/attribute/standard/Finishings.java,
4367 javax/print/attribute/standard/JobImpressionsSupported.java,
4368 javax/print/attribute/standard/JobKOctetsSupported.java,
4369 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4370 javax/print/attribute/standard/JobSheets.java,
4371 javax/print/attribute/standard/JobState.java,
4372 javax/print/attribute/standard/JobStateReason.java,
4373 javax/print/attribute/standard/JobStateReasons.java,
4374 javax/print/attribute/standard/Media.java,
4375 javax/print/attribute/standard/MediaSizeName.java,
4376 javax/print/attribute/standard/MultipleDocumentHandling.java,
4377 javax/print/attribute/standard/NumberUpSupported.java,
4378 javax/print/attribute/standard/OrientationRequested.java,
4379 javax/print/attribute/standard/PDLOverrideSupported.java,
4380 javax/print/attribute/standard/PageRanges.java,
4381 javax/print/attribute/standard/PresentationDirection.java,
4382 javax/print/attribute/standard/PrintQuality.java,
4383 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4384 javax/print/attribute/standard/PrinterMoreInfo.java,
4385 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4386 javax/print/attribute/standard/PrinterResolution.java,
4387 javax/print/attribute/standard/PrinterState.java,
4388 javax/print/attribute/standard/PrinterStateReason.java,
4389 javax/print/attribute/standard/PrinterStateReasons.java,
4390 javax/print/attribute/standard/PrinterURI.java,
4391 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4392 javax/print/attribute/standard/Severity.java,
4393 javax/print/attribute/standard/SheetCollate.java,
4394 javax/print/attribute/standard/Sides.java: New files.
4396 2004-05-15 Michael Koch <konqueror@gmx.de>
4398 * javax/print/Doc.java
4399 (getPrintData): Throws IOException.
4400 (getReaderForText): Likewise.
4401 (getStreamForBytes): Likewise.
4402 * javax/print/DocFlavor.java:
4403 Fixed filename in copyright.
4404 (serialVersionUID): New field.
4405 * javax/print/ServiceUIFactory.java:
4406 Made all constants final.
4407 * javax/print/AttributeException.java
4408 javax/print/MultiDoc.java
4409 javax/print/MultiDocPrintJob.java
4410 javax/print/MultiDocPrintService.java
4411 javax/print/StreamPrintService.java
4412 javax/print/URIException.java: New files.
4413 * javax/print/Makefile.am
4414 (EXTRA_DIST): Added all new files.
4416 2004-05-15 Michael Koch <konqueror@gmx.de>
4418 * javax/print/attribute/standard/Copies.java,
4419 javax/print/attribute/standard/DateTimeAtCompleted.java,
4420 javax/print/attribute/standard/DateTimeAtCreation.java,
4421 javax/print/attribute/standard/DateTimeAtProcessing.java,
4422 javax/print/attribute/standard/DocumentName.java,
4423 javax/print/attribute/standard/JobHoldUntil.java,
4424 javax/print/attribute/standard/JobImpressions.java,
4425 javax/print/attribute/standard/JobImpressionsCompleted.java,
4426 javax/print/attribute/standard/JobKOctets.java,
4427 javax/print/attribute/standard/JobKOctetsProcessed.java,
4428 javax/print/attribute/standard/JobMediaSheets.java,
4429 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4430 javax/print/attribute/standard/JobMessageFromOperator.java,
4431 javax/print/attribute/standard/JobName.java,
4432 javax/print/attribute/standard/JobOriginatingUserName.java,
4433 javax/print/attribute/standard/JobPriority.java,
4434 javax/print/attribute/standard/JobPrioritySupported.java,
4435 javax/print/attribute/standard/NumberOfDocuments.java,
4436 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4437 javax/print/attribute/standard/NumberUp.java,
4438 javax/print/attribute/standard/OutputDeviceAssigned.java,
4439 javax/print/attribute/standard/PagesPerMinute.java,
4440 javax/print/attribute/standard/PagesPerMinuteColor.java:
4441 Fixed @return tag all over.
4443 2004-05-15 Michael Koch <konqueror@gmx.de>
4445 * javax/print/attribute/AttributeSetUtilities.java
4446 (verifyCategoryForValue): Fixed typo in javadoc.
4447 * javax/print/attribute/HashAttributeSet.java
4448 (containsKey): Fixed @return tag.
4449 (comtainsValue): Likewise.
4451 * javax/print/attribute/IntegerSyntax.java
4453 * javax/print/attribute/ResolutionSyntax.java
4455 (getCrossFeedResolution): Removed unused code.
4456 (getFeedResolution): Likewise.
4457 * javax/print/attribute/SetOfIntegerSyntax.java
4458 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4459 (equals): Fixed @return tag.
4460 * javax/print/attribute/TextSyntax.java
4461 (TextSyntax): Take locale into account.
4462 (hashCode): Better implementation.
4464 2004-05-15 Michael Koch <konqueror@gmx.de>
4466 * javax/print/CancelablePrintJob.java,
4467 javax/print/Doc.java,
4468 javax/print/DocFlavor.java,
4469 javax/print/DocPrintJob.java,
4470 javax/print/FlavorException.java,
4471 javax/print/PrintException.java,
4472 javax/print/PrintService.java,
4473 javax/print/ServiceUIFactory.java: New files.
4475 2004-05-15 Mark Wielaard <mark@klomp.org>
4477 * gnu/regexp/CharIndexedReader.java: Removed.
4478 * gnu/regexp/REFilterReader.java: Likewise.
4479 * gnu/regexp/RETokenLookAhead.java: Likewise.
4480 * Makefile.am (ordinary_java_source_files): Remove above classes.
4481 * Makefile.in: Regenerated.
4483 2004-05-14 Tom Tromey <tromey@redhat.com>
4485 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4486 not `XGraphicsConfiguration.XOffScreenImage'.
4488 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4490 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4492 2004-05-14 Steven Augart <augart@watson.ibm.com>
4494 * include/jni.h (_Jv_func): Removed.
4495 (struct JNINativeInterface): Use `void *' for reserved slots.
4496 (struct JNIInvokeInterface): Likewise.
4498 2004-05-11 Michael Koch <konqueror@gmx.de>
4500 * gnu/java/net/natPlainSocketImplPosix.cc
4501 (read): Fixed typo in expression.
4503 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4505 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4506 ld_library_additions. Adjust all calls to libjava_invoke to match
4509 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4510 path to cxxflagslist.
4511 Pass path of libstdc++ to libjava_invoke.
4513 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4514 libjava_invoke arguments.
4516 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4518 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4521 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4523 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4524 main binary against the JNI shared library.
4526 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4528 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4529 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4530 (SimpleTimeZone): Tweak docs. Add new variation.
4531 (setStartRule,setEndRule): Add new variations. Use
4532 startTimeMode and endTimeMode.
4534 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4536 * java/util/Calendar.java (getActualMinimum,
4537 getActualMaximum): Remove abstract. Implement.
4539 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4541 Run the jni tests using the interpreter.
4542 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4543 options_cxx to shared lib compile command.
4544 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4545 they are used to link the shared lib, not the main binary.
4546 Use libjava_invoke to run gij.
4548 2004-05-06 Michael Koch <konqueror@gmx.de>
4550 * java/util/logging/Level.java
4551 (parse): Use == instead of String.equals().
4553 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4555 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4556 verify_field_signature and verify_method_signature, not
4557 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4558 (_Jv_ClassReader::handleField): Likewise.
4559 (_Jv_ClassReader::handleMethod): Likewise.
4561 2004-05-06 Michael Koch <konqueror@gmx.de>
4563 * javax/swing/table/TableColumn.java:
4566 2004-05-06 Michael Koch <konqueror@gmx.de>
4568 * javax/imageio/spi/ImageReaderWriterSpi.java
4569 (ImageReaderWriterSpi): Made it public.
4570 * javax/imageio/stream/ImageInputStream.java:
4573 2004-05-06 Michael Koch <konqueror@gmx.de>
4575 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4578 2004-05-06 Michael Koch <konqueror@gmx.de>
4580 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4581 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4583 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4584 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4585 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4586 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4587 their own source file.
4588 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4589 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4590 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4591 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4592 (create): Define variable on top of function.
4593 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4594 (menu_pos): Prototyped.
4595 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4596 (setTitle): Removed.
4597 * jni/gtk-peer/gthread-jni.c
4598 (gdk_threads_wake): Removed.
4599 * Makefile.am (gtk_c_source_files): Added new files
4600 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4601 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4602 * Makefile.in: Regenerated.
4604 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4606 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4609 2004-05-05 Mark Wielaard <mark@klomp.org>
4611 * javax/swing/AbstractButton.java: Replace special HTML entities with
4613 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4614 * javax/swing/DefaultButtonModel.java: Likewise.
4615 * javax/swing/DefaultListModel.java: Likewise.
4616 * javax/swing/JList.java: Likewise.
4617 * javax/swing/JSlider.java: Likewise.
4618 * javax/swing/ListModel.java: Likewise.
4619 * javax/swing/Popup.java: Likewise.
4620 * javax/swing/SwingUtilities.java: Likewise.
4622 2004-05-05 Michael Koch <konqueror@gmx.de>
4624 * javax/swing/AbstractButton.java,
4625 javax/swing/ActionMap.java,
4626 javax/swing/DefaultButtonModel.java,
4627 javax/swing/DefaultListModel.java,
4628 javax/swing/ImageIcon.java,
4629 javax/swing/JComboBox.java,
4630 javax/swing/JComponent.java,
4631 javax/swing/JFrame.java,
4632 javax/swing/JInternalFrame.java,
4633 javax/swing/JMenuBar.java,
4634 javax/swing/JMenuItem.java,
4635 javax/swing/JOptionPane.java,
4636 javax/swing/JProgressBar.java,
4637 javax/swing/JRootPane.java,
4638 javax/swing/JScrollBar.java,
4639 javax/swing/JScrollPane.java,
4640 javax/swing/JSeparator.java,
4641 javax/swing/JSlider.java,
4642 javax/swing/JTabbedPane.java,
4643 javax/swing/JTable.java,
4644 javax/swing/JTextField.java,
4645 javax/swing/JToolBar.java,
4646 javax/swing/JToolTip.java,
4647 javax/swing/JTree.java,
4648 javax/swing/JViewport.java,
4649 javax/swing/JWindow.java,
4650 javax/swing/KeyStroke.java,
4651 javax/swing/LookAndFeel.java,
4652 javax/swing/SwingUtilities.java,
4653 javax/swing/Timer.java,
4654 javax/swing/ToolTipManager.java,
4655 javax/swing/UIDefaults.java,
4656 javax/swing/border/TitledBorder.java,
4657 javax/swing/filechooser/FileSystemView.java,
4658 javax/swing/plaf/basic/BasicButtonListener.java,
4659 javax/swing/plaf/basic/BasicButtonUI.java,
4660 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4661 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4662 javax/swing/plaf/basic/BasicLabelUI.java,
4663 javax/swing/plaf/basic/BasicMenuItemUI.java,
4664 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4665 javax/swing/plaf/basic/BasicRootPaneUI.java,
4666 javax/swing/plaf/basic/BasicScrollBarUI.java,
4667 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4668 javax/swing/plaf/basic/BasicSliderUI.java,
4669 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4670 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4671 javax/swing/table/JTableHeader.java,
4672 javax/swing/text/AbstractDocument.java,
4673 javax/swing/text/DefaultCaret.java,
4674 javax/swing/text/StyledEditorKit.java,
4675 javax/swing/tree/DefaultTreeCellEditor.java:
4678 2004-05-05 Michael Koch <konqueror@gmx.de>
4680 * java/util/prefs/AbstractPreferences.java
4681 (AbstractPreferences): Added parenthesis for clarity.
4682 Closes classpath bug #7940.
4684 2004-05-05 Tom Tromey <tromey@redhat.com>
4686 * javax/naming/CompoundName.java (endsWith): Look at correct
4687 element of source name.
4689 2004-05-05 Mark Wielaard <mark@klomp.org>
4691 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4692 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4694 2004-05-05 Tom Tromey <tromey@redhat.com>
4696 * java/io/BufferedReader.java (skip): Removed unused
4699 2004-05-05 Michael Koch <konqueror@gmx.de>
4701 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4703 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4705 * java/text/AttributedString.java,
4706 java/text/AttributedStringIterator.java,
4707 java/text/Collator.java,
4708 java/text/DecimalFormatSymbols.java,
4709 java/text/NumberFormat.java,
4710 java/text/RuleBasedCollator.java:
4713 2004-05-05 Tom Tromey <tromey@redhat.com>
4715 * java/text/Format.java: Cleaned up imports.
4716 * java/text/DecimalFormat.java: Cleaned up imports.
4717 * java/security/SecureRandom.java: Cleaned up imports.
4718 (SecureRandom): Removed unused variable.
4719 * java/security/UnresolvedPermission.java: Cleaned up imports.
4720 * java/util/Date.java (parse): Removed unused variable.
4721 * java/util/ResourceBundle.java: Cleaned up imports.
4722 (getBundle): Removed unused variable.
4723 (tryBundle): Likewise.
4724 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4726 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4728 * java/text/SimpleDateFormat.java:
4729 (formatWithAttribute): New method. It implements
4730 the formatting process with attributes.
4731 (format): Use formatWithAttribute.
4732 (formatToCharacterIterator): New method. Use
4733 formatWithAttribute.
4735 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4737 * java/text/MessageFormat.java:
4738 (class Field): New class.
4739 (formatToCharacterIterator): New method.
4740 (format): Use formatInternal now.
4741 (formatInternal): New method. String formatter should
4742 be done here (with attributes). Attributes merging supported.
4743 (parse): More documentation.
4744 (getFormatsByArgumentIndex): New method.
4745 (setFormatByArgumentIndex): New method.
4746 (setFormatsByArgumentIndex): New method.
4748 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4750 * java/text/DecimalFormat.java
4751 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4752 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4753 (parse): Fixed handling of exponentiation notation and grouping.
4755 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4757 * java/text/DecimalFormat.java
4758 (scanFix): Build attribute array. Fixed error reporting.
4759 (applyPatternWithSymbols): Store attributes for the prefix and
4761 (formatInternal): New method. Changed the way the string is
4762 computed. Implemented attributes. Cleant up rounding in
4763 exponential notation.
4764 (format): Use formatInternal.
4765 (formatToCharacterIterator): New method.
4766 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4767 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4768 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4771 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4773 * java/security/interfaces/DSAKeyPairGenerator.java,
4774 java/security/interfaces/DSAPrivateKey.java,
4775 java/security/interfaces/DSAPublicKey.java,
4776 java/security/interfaces/RSAPrivateKey.java,
4777 java/security/interfaces/RSAPublicKey.java:
4780 2004-05-04 Michael Koch <konqueror@gmx.de>
4782 * java/nio/ByteBuffer.java,
4783 java/nio/CharBuffer.java,
4784 java/nio/DoubleBuffer.java,
4785 java/nio/FloatBuffer.java,
4786 java/nio/IntBuffer.java,
4787 java/nio/LongBuffer.java,
4788 java/nio/ShortBuffer.java:
4789 (compareTo): Fixed bogus implementation in all buffer classes.
4791 2004-05-04 Ingo Proetel <proetel@aicas.com>
4793 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4794 32 bit pixels not 8 bit pixels.
4795 (isCompatibleRaster): Added javadoc comment.
4797 2004-05-04 Ingo Proetel <proetel@aicas.com>
4799 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4802 2004-05-04 Ingo Proetel <proetel@aicas.com>
4804 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4805 (getColorModel): Return the actual color model.
4806 (getRaster): Implemented.
4807 (ColorRaster): New inner class.
4808 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4810 * java/awt/Color.java (<init>): Make exception more verbose.
4811 (createContext): Use ColorModel when creating a PaintContext.
4813 2004-05-04 Michael Koch <konqueror@gmx.de>
4815 * gnu/java/text/CharacterBreakIterator.java
4816 (previous): Removed unused variable.
4818 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4820 * gnu/java/text/FormatBuffer.java,
4821 gnu/java/text/AttributedFormatBuffer.java,
4822 gnu/java/text/StringFormatBuffer.java: New classes to implement
4823 attributed iterators in java.text.
4824 * gnu/java/text/FormatCharacterIterator.java: Moved
4825 from java/text as it is an internal class.
4826 * java/text/FormatCharacterIterator.java: Removed.
4827 * java/text/Format.java:
4828 Import gnu.java.text.FormatCharacterIterator.
4829 * Makefile.am (java_source_files): Added new files.
4830 * Makefile.in: Regenerated.
4833 2004-05-04 Mark Wielaard <mark@klomp.org>
4835 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4837 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4839 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4840 * Makefile.in: Rebuilt.
4842 2004-05-03 Mark Wielaard <mark@klomp.org>
4844 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4845 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4847 (set(String, String, int, String, String, String, String, String)):
4848 Assign this.file to path or path + "?" + query.
4849 * java/util/Arrays.java: Call static methods staticly.
4850 * java/util/zip/ZipEntry.java: Likewise.
4851 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4852 dir to this.direction.
4853 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4854 Assign static field only once.
4855 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4857 2004-05-03 Mark Wielaard <mark@klomp.org>
4859 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4860 unused variables hScrollbarHeight and vScrollbarWidth.
4861 (preferredSize): Likewise.
4862 * gnu/java/security/provider/DSAParameters.java (engineToString):
4863 Removed unused call to System.getProperty("line.seperator");
4864 * java/security/Security.java (loadProviders): Return result.
4866 2004-05-03 Tom Tromey <tromey@redhat.com>
4868 * java/net/URLStreamHandler.java (toExternalForm): Removed
4871 * java/math/BigDecimal.java (divide): Removed unused variable.
4872 * java/lang/Throwable.java: Cleaned up imports.
4873 * java/lang/ClassLoader.java: Cleaned up imports.
4874 * java/io/FilePermission.java (implies): Removed unused
4876 * java/awt/TextComponent.java: Removed unused import.
4877 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4878 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4879 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4880 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4882 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4883 * gnu/java/text/CharacterBreakIterator.java: Removed
4885 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4887 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4888 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4890 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4891 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4892 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4893 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4894 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4895 (lookupProviders): Removed unused variable.
4896 (loadNextServiceProvider): Likewise.
4897 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4899 2004-05-03 Michael Koch <konqueror@gmx.de>
4901 Fixes PR libgcj/14695:
4902 * java/net/NetworkInterface.java
4903 (getByName): Return null when no interface was found.
4905 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4906 Tom Tromey <tromey@redhat.com>
4908 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4909 additional option "-Wmissing-prototypes" for compiling C sources.
4910 Print actual filename for pass/fail rather than $name.c.
4911 * testsuite/libjava.jni/PR15133.java: New testcase file.
4912 * testsuite/libjava.jni/PR15133.c: Likewise.
4913 * testsuite/libjava.jni/PR15133.out: Likewise.
4915 2004-04-30 Roger Sayle <roger@eyesopen.com>
4917 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4920 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4922 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4923 limit the maximum heap size to avoid unnecessary thrashing.
4925 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4927 * java/text/CollationElementIterator.java (reset): Reset
4928 lookahead variables.
4930 2004-04-23 Mark Wielaard <mark@klomp.org>
4932 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4934 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4936 * java/sql/DriverManager.java:
4939 2004-04-23 Michael Koch <konqueror@gmx.de>
4942 (hashcode): Don't initialize with default value explicitely.
4943 (getContent): Removed redundant "final" keyword.
4944 (openStream): Likewise.
4945 (getURLStreamHandler): Fixed coding style.
4946 * java/net/URLConnection.java
4947 (defaultAllowUserInteraction): Don't initialize with default value
4949 (connected): Likewise.
4950 (doOutput): Likewise.
4951 (ifModifiedSince): Likewise.
4952 (dateformats_initialized): Likewise.
4953 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4955 2004-04-23 Michael Koch <konqueror@gmx.de>
4957 * gnu/java/nio/channels/FileChannelImpl.java
4958 (SET, CUR): Unused, removed.
4959 (read): Implement here directly.
4960 (implRead): Removed.
4961 (write): Implement here directly.
4962 (implWrite): Removed.
4964 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4966 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4967 javax/rmi/CORBA/Stub.java,
4968 javax/rmi/CORBA/Util.java,
4969 javax/rmi/CORBA/ValueHandler.java,
4970 javax/rmi/CORBA/ValueHandler.java,
4971 javax/rmi/PortableRemoteObject.java:
4974 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4976 * java/util/jar/JarFile.java,
4977 java/util/jar/JarInputStream.java,
4978 java/util/jar/JarOutputStream.java,
4979 java/util/jar/Manifest.java:
4982 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4984 * java/util/ArrayList.java,
4985 java/util/Calendar.java,
4986 java/util/Currency.java,
4987 java/util/HashMap.java,
4988 java/util/HashSet.java,
4989 java/util/Hashtable.java,
4990 java/util/LinkedList.java,
4991 java/util/Properties.java,
4992 java/util/PropertyPermission.java,
4993 java/util/TimeZone.java,
4994 java/util/TreeMap.java,
4995 java/util/TreeSet.java,
4996 java/util/Vector.java,
4997 java/util/WeakHashMap.java:
5000 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5002 * java/util/logging/FileHandler.java,
5003 java/util/logging/Formatter.java,
5004 java/util/logging/Handler.java,
5005 java/util/logging/Logger.java,
5006 java/util/logging/SimpleFormatter.java,
5007 java/util/logging/XMLFormatter.java:
5010 2004-04-22 Mark Wielaard <mark@klomp.org>
5012 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
5013 -Wno-long-long flags variable.
5014 (gtk_c_files): Use PEDANTIC_CFLAGS.
5015 * Makefile.in: Regenerated.
5017 2004-04-22 Mark Wielaard <mark@klomp.org>
5019 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5020 Changed C++ comments into C comments.
5021 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
5024 2004-04-22 Michael Koch <konqueror@gmx.de>
5026 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5027 Merged copyright year with GNU classpath.
5029 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5031 * javax/security/auth/x500/X500Principal.java:
5034 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5036 * javax/swing/JSlider.java:
5037 Fixed HTML tags in comments.
5039 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5041 * javax/accessibility/AccessibleText.java:
5044 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
5046 * java/net/URLStreamHandler.java
5047 (parseURL): Convert the file path to using '/' instead of native
5050 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
5053 (userInfo): New field.
5054 (URL): Set authority to the right value.
5055 (setURL): Fixed authority and file initialization.
5056 * java/net/URLStreamHandler.java
5057 (parseURL): Take care of the query tag. Build authority.
5058 (toExternalForm): Fixed URL building using authority.
5060 2004-04-22 Michael Koch <konqueror@gmx.de>
5062 * java/net/Socket.java
5063 (impl): Made package-private.
5064 * java/net/ServerSocket.java
5065 (implAccept): Access Socket.impl field directly.
5067 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5069 * java/util/prefs/Preferences.java,
5070 java/util/prefs/InvalidPreferencesFormatException.java,
5071 java/util/prefs/BackingStoreException.java,
5072 java/util/prefs/AbstractPreferences.java:
5075 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5077 * java/util/regex/Matcher.java,
5078 java/util/regex/Pattern.java:
5081 2004-04-22 Michael Koch <konqueror@gmx.de>
5083 * java/nio/charset/IllegalCharsetNameException.java
5084 (charsetName): Made private.
5085 (IllegalCharsetNameException): Added @param tag to javadoc.
5086 (getCharsetName): Added @return tag to javadoc.
5087 * java/nio/charset/MalformedInputException.java
5088 (MalformedInputException): Added @param tag to javadoc.
5089 (getInputLength): Revised method description, added @return tag.
5090 (getMessage): Added @return tag.
5092 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
5094 * java/awt/Font.java (deriveFont): Implement missing variants.
5095 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
5098 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
5100 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
5101 Set method->index values for interface methods to their itable index.
5102 (initializeClass): Call _Jv_LayoutInterfaceMethods.
5104 2004-04-21 Michael Koch <konqueror@gmx.de>
5106 * java/nio/DirectByteBufferImpl.java
5107 (shiftDown): Made static, give address as argument and
5108 provide a convenience method that overwrites shiftDown in
5109 ByteBufferImpl and calls the native shiftDown.
5110 * java/nio/MappedByteBufferImpl.java
5111 (): Use optimized method in DirectByteBufferImpl.
5112 * java/nio/natDirectByteBufferImpl.cc
5113 (shiftDown): Changed method signature. Removed usage of array_offset.
5115 2004-04-21 Michael Koch <konqueror@gmx.de>
5117 * gnu/java/net/natPlainSocketImplPosix.cc
5118 (SocketInputStream::read): Make sure returned data is a byte value.
5120 2004-04-21 Michael Koch <konqueror@gmx.de>
5122 * gnu/classpath/ServiceFactory.java,
5123 gnu/classpath/ServiceProviderLoadingAction.java,
5124 javax/imageio/ImageReader.java,
5125 javax/imageio/ImageTranscoder.java,
5126 javax/imageio/ImageWriter.java,
5127 javax/imageio/package.html,
5128 javax/imageio/spi/IIOServiceProvider.java,
5129 javax/imageio/spi/ImageInputStreamSpi.java,
5130 javax/imageio/spi/ImageOutputStreamSpi.java,
5131 javax/imageio/spi/ImageReaderWriterSpi.java,
5132 javax/imageio/spi/ImageTranscoderSpi.java,
5133 javax/imageio/spi/RegisterableService.java,
5134 javax/imageio/spi/ServiceRegistry.java,
5135 javax/imageio/spi/package.html,
5136 javax/imageio/stream/IIOByteBuffer.java,
5137 javax/imageio/stream/ImageInputStream.java,
5138 javax/imageio/stream/ImageOutputStream.java,
5139 javax/imageio/stream/package.html:
5142 (ordinary_java_source_files): Added
5143 gnu/classpath/ServiceFactory.java and
5144 gnu/classpath/ServiceProviderLoadingAction.java.
5145 (javax_source_files): Added
5146 javax/imageio/ImageReader.java,
5147 javax/imageio/ImageTranscoder.java,
5148 javax/imageio/ImageWriter.java,
5149 javax/imageio/spi/IIOServiceProvider.java,
5150 javax/imageio/spi/ImageInputStreamSpi.java,
5151 javax/imageio/spi/ImageOutputStreamSpi.java,
5152 javax/imageio/spi/ImageReaderWriterSpi.java,
5153 javax/imageio/spi/ImageTranscoderSpi.java,
5154 javax/imageio/spi/RegisterableService.java,
5155 javax/imageio/spi/ServiceRegistry.java,
5156 javax/imageio/stream/IIOByteBuffer.java,
5157 javax/imageio/stream/ImageInputStream.java and
5158 javax/imageio/stream/ImageOutputStream.java.
5159 * Makefile.in: Regenerated.
5161 2004-04-21 Michael Koch <konqueror@gmx.de>
5163 * java/util/Properties.java
5164 (load): Fix wrongly merged fix.
5166 2004-04-21 Mark Wielaard <mark@klomp.org>
5168 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5169 malloc and free buf.
5171 2004-04-21 Dalibor Topic <robilad@kaffe.org>
5173 * javax/naming/AuthenticationException.java,
5174 javax/naming/AuthenticationNotSupportedException.java,
5175 javax/naming/CannotProceedException.java,
5176 javax/naming/CommunicationException.java,
5177 javax/naming/CompoundName.java,
5178 javax/naming/ConfigurationException.java,
5179 javax/naming/ContextNotEmptyException.java,
5180 javax/naming/InitialContext.java,
5181 javax/naming/InsufficientResourcesException.java,
5182 javax/naming/InterruptedNamingException.java,
5183 javax/naming/LimitExceededException.java,
5184 javax/naming/LinkException.java,
5185 javax/naming/LinkLoopException.java,
5186 javax/naming/LinkRef.java,
5187 javax/naming/MalformedLinkException.java,
5188 javax/naming/Name.java,
5189 javax/naming/NameAlreadyBoundException.java,
5190 javax/naming/NameNotFoundException.java,
5191 javax/naming/NamingSecurityException.java,
5192 javax/naming/NoInitialContextException.java,
5193 javax/naming/NoPermissionException.java,
5194 javax/naming/NotContextException.java,
5195 javax/naming/PartialResultException.java,
5196 javax/naming/ReferralException.java,
5197 javax/naming/ServiceUnavailableException.java,
5198 javax/naming/SizeLimitExceededException.java,
5199 javax/naming/TimeLimitExceededException.java,
5200 javax/naming/directory/Attribute.java,
5201 javax/naming/directory/Attributes.java,
5202 javax/naming/directory/SearchResult.java,
5203 javax/naming/event/NamingExceptionEvent.java,
5204 javax/naming/spi/ResolveResult.java:
5207 2004-04-21 Mark Wielaard <mark@klomp.org>
5209 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5210 Changed C++ comments into C comments. Removed commented out code.
5211 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5213 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5215 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5217 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5219 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5221 * native/jni/gtk-peer/gthread-jni.c:
5224 2004-04-21 Mark Wielaard <mark@klomp.org>
5226 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5227 static fields defined in interface.
5228 * javax/awt/JDialog.java: Likewise.
5229 (JDialog): Make constructors public.
5230 (getDefaultCloseOperation): Make public.
5231 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5232 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5233 * javax/swing/JViewport.java (JViewport): Make constructor public.
5235 2004-04-21 Michael Koch <konqueror@gmx.de>
5237 * java/util/Map.java
5238 (Entry): Removed redundant "static" modifier.
5239 * java/text/AttributedCharacterIterator.java:
5240 Updated copyright year.
5242 2004-04-20 Michael Koch <konqueror@gmx.de>
5244 * javax/naming/directory/SearchControls.java:
5245 Don't explicitely extend java.lang.Object.
5246 * javax/naming/spi/DirStateFactory.java:
5247 Merged copyright year with GNU classpath.
5249 2004-04-20 Michael Koch <konqueror@gmx.de>
5251 * java/nio/channels/Channels.java:
5252 Merged coding style with GNU classpath.
5254 2004-04-20 Michael Koch <konqueror@gmx.de>
5256 * java/net/ServerSocket.java
5257 Merged coding style from GNU classpath.
5259 2004-04-20 Michael Koch <konqueror@gmx.de>
5261 * java/io/BufferedWriter.java:
5262 Reordered variables to be at top of the class.
5263 (localFlush): Removed redundant final keyword.
5265 2004-04-20 Ingo Proetel <proetel@aicas.com>
5267 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5269 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5271 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5272 for percent and permill check.
5274 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5276 * java/text/FieldPosition.java
5277 (FieldPosition) Constructor now behaves as it should according
5278 to the java documentation.
5280 2004-04-20 Mark Wielaard <mark@klomp.org>
5282 * java/util/Properties.java: Use the word umlaut, not ä in api
5285 2004-04-20 Michael Koch <konqueror@gmx.de>
5287 * java/nio/Buffer.java,
5288 java/nio/channels/AlreadyConnectedException.java,
5289 java/nio/channels/AsynchronousCloseException.java,
5290 java/nio/channels/ByteChannel.java,
5291 java/nio/channels/CancelledKeyException.java,
5292 java/nio/channels/Channel.java,
5293 java/nio/channels/Channels.java,
5294 java/nio/channels/ClosedByInterruptException.java,
5295 java/nio/channels/ClosedChannelException.java,
5296 java/nio/channels/ClosedSelectorException.java,
5297 java/nio/channels/ConnectionPendingException.java,
5298 java/nio/channels/DatagramChannel.java,
5299 java/nio/channels/FileChannel.java,
5300 java/nio/channels/FileLock.java,
5301 java/nio/channels/FileLockInterruptionException.java,
5302 java/nio/channels/GatheringByteChannel.java,
5303 java/nio/channels/IllegalBlockingModeException.java,
5304 java/nio/channels/IllegalSelectorException.java,
5305 java/nio/channels/InterruptibleChannel.java,
5306 java/nio/channels/NoConnectionPendingException.java,
5307 java/nio/channels/NonReadableChannelException.java,
5308 java/nio/channels/NonWritableChannelException.java,
5309 java/nio/channels/NotYetBoundException.java,
5310 java/nio/channels/NotYetConnectedException.java,
5311 java/nio/channels/OverlappingFileLockException.java,
5312 java/nio/channels/Pipe.java,
5313 java/nio/channels/ReadableByteChannel.java,
5314 java/nio/channels/ScatteringByteChannel.java,
5315 java/nio/channels/SelectableChannel.java,
5316 java/nio/channels/SelectionKey.java,
5317 java/nio/channels/Selector.java,
5318 java/nio/channels/ServerSocketChannel.java,
5319 java/nio/channels/SocketChannel.java,
5320 java/nio/channels/UnresolvedAddressException.java,
5321 java/nio/channels/UnsupportedAddressTypeException.java,
5322 java/nio/channels/WritableByteChannel.java,
5323 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5324 java/nio/channels/spi/AbstractSelectableChannel.java,
5325 java/nio/channels/spi/AbstractSelectionKey.java,
5326 java/nio/channels/spi/AbstractSelector.java,
5327 java/nio/channels/spi/SelectorProvider.java,
5328 java/nio/charset/spi/CharsetProvider.java:
5329 Fixed javadocs and jalopied all over java.nio.
5331 2004-04-20 Michael Koch <konqueror@gmx.de>
5333 * java/nio/ByteBufferImpl.java,
5334 java/nio/CharBufferImpl.java,
5335 java/nio/DirectByteBufferImpl.java,
5336 java/nio/DoubleBufferImpl.java,
5337 java/nio/DoubleViewBufferImpl.java,
5338 java/nio/FloatBufferImpl.java,
5339 java/nio/FloatViewBufferImpl.java,
5340 java/nio/IntBufferImpl.java,
5341 java/nio/IntViewBufferImpl.java,
5342 java/nio/LongBufferImpl.java,
5343 java/nio/LongViewBufferImpl.java,
5344 java/nio/MappedByteBufferImpl.java,
5345 java/nio/ShortBufferImpl.java,
5346 java/nio/ShortViewBufferImpl.java:
5347 Made sure all classes are final and removed final keyword from all
5350 2004-04-20 Michael Koch <konqueror@gmx.de>
5352 * java/rmi/MarshalledObject.java,
5353 java/rmi/Naming.java,
5354 java/rmi/RemoteException.java,
5355 java/rmi/activation/ActivationException.java,
5356 java/rmi/server/ServerCloneException.java,
5357 java/security/AccessController.java,
5358 java/security/AlgorithmParameterGenerator.java,
5359 java/security/AlgorithmParameters.java,
5360 java/security/CodeSource.java,
5361 java/security/Identity.java,
5362 java/security/IdentityScope.java,
5363 java/security/KeyPairGenerator.java,
5364 java/security/KeyStore.java,
5365 java/security/Security.java,
5366 java/security/Signature.java,
5367 java/security/SignatureSpi.java,
5368 java/security/SignedObject.java,
5369 java/security/spec/DSAParameterSpec.java,
5370 java/security/spec/DSAPrivateKeySpec.java,
5371 java/security/spec/DSAPublicKeySpec.java,
5372 java/sql/Array.java,
5373 java/sql/DatabaseMetaData.java,
5374 java/sql/ResultSet.java,
5375 java/text/ChoiceFormat.java,
5376 java/text/CollationElementIterator.java,
5377 java/text/CollationKey.java,
5378 java/text/Collator.java,
5379 java/text/DateFormat.java,
5380 java/text/DateFormatSymbols.java,
5381 java/text/DecimalFormatSymbols.java,
5382 java/text/Format.java,
5383 java/text/ParsePosition.java,
5384 java/text/RuleBasedCollator.java,
5385 java/text/SimpleDateFormat.java,
5386 java/text/StringCharacterIterator.java,
5387 java/util/Collections.java,
5388 java/util/PropertyResourceBundle.java,
5389 java/util/ResourceBundle.java,
5390 java/util/StringTokenizer.java,
5391 java/util/jar/Attributes.java,
5392 java/util/logging/ConsoleHandler.java,
5393 java/util/logging/LogManager.java,
5394 java/util/logging/MemoryHandler.java,
5395 java/util/logging/SocketHandler.java,
5396 javax/naming/NamingException.java:
5397 Fixed javadoc, coding style and argument names all over.
5399 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5401 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5402 constructor. (valid) Added null check.
5404 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5406 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5407 * java/io/FileOutputStream.java
5408 (FileOutputStream) Reorganized constructors. Constructors now
5409 check whether the given path is directory.
5411 2004-04-20 Michael Koch <konqueror@gmx.de>
5413 * java/net/Authenticator.java,
5414 java/net/BindException.java,
5415 java/net/ConnectException.java,
5416 java/net/ContentHandler.java,
5417 java/net/ContentHandlerFactory.java,
5418 java/net/DatagramPacket.java,
5419 java/net/DatagramSocket.java,
5420 java/net/DatagramSocketImpl.java,
5421 java/net/DatagramSocketImplFactory.java,
5422 java/net/FileNameMap.java,
5423 java/net/HttpURLConnection.java,
5424 java/net/Inet4Address.java,
5425 java/net/Inet6Address.java,
5426 java/net/InetAddress.java,
5427 java/net/InetSocketAddress.java,
5428 java/net/JarURLConnection.java,
5429 java/net/MalformedURLException.java,
5430 java/net/MulticastSocket.java,
5431 java/net/NetPermission.java,
5432 java/net/NetworkInterface.java,
5433 java/net/NoRouteToHostException.java,
5434 java/net/PasswordAuthentication.java,
5435 java/net/PortUnreachableException.java,
5436 java/net/ProtocolException.java,
5437 java/net/ServerSocket.java,
5438 java/net/Socket.java,
5439 java/net/SocketAddress.java,
5440 java/net/SocketException.java,
5441 java/net/SocketImpl.java,
5442 java/net/SocketImplFactory.java,
5443 java/net/SocketOptions.java,
5444 java/net/SocketPermission.java,
5445 java/net/SocketTimeoutException.java,
5447 java/net/URISyntaxException.java,
5449 java/net/URLClassLoader.java,
5450 java/net/URLConnection.java,
5451 java/net/URLDecoder.java,
5452 java/net/URLEncoder.java,
5453 java/net/URLStreamHandler.java,
5454 java/net/URLStreamHandlerFactory.java,
5455 java/net/UnknownHostException.java,
5456 java/net/UnknownServiceException.java:
5457 Fixed javadocs, coding style and argument names all over.
5459 2004-04-20 Michael Koch <konqueror@gmx.de>
5461 * java/lang/Byte.java,
5462 java/lang/CharSequence.java,
5463 java/lang/ClassLoader.java,
5464 java/lang/Compiler.java,
5465 java/lang/Double.java,
5466 java/lang/Float.java,
5467 java/lang/Integer.java,
5468 java/lang/Long.java,
5469 java/lang/Math.java,
5470 java/lang/Number.java,
5471 java/lang/Package.java,
5472 java/lang/Runtime.java,
5473 java/lang/RuntimePermission.java,
5474 java/lang/SecurityManager.java,
5475 java/lang/Short.java,
5476 java/lang/StringBuffer.java,
5477 java/lang/System.java,
5478 java/lang/ThreadGroup.java,
5479 java/lang/Throwable.java,
5480 java/lang/reflect/InvocationHandler.java,
5481 java/lang/reflect/Proxy.java:
5482 Fixed javadocs, coding style and argument names all over.
5484 2004-04-20 Michael Koch <konqueror@gmx.de>
5486 * java/io/BufferedWriter.java,
5487 java/io/ByteArrayInputStream.java,
5488 java/io/CharArrayWriter.java,
5489 java/io/DataInput.java,
5490 java/io/DataInputStream.java,
5492 java/io/FilterInputStream.java,
5493 java/io/InputStream.java,
5494 java/io/InputStreamReader.java,
5495 java/io/ObjectInputStream.java,
5496 java/io/ObjectStreamClass.java,
5497 java/io/PipedInputStream.java,
5498 java/io/PipedReader.java,
5499 java/io/PushbackInputStream.java,
5500 java/io/PushbackReader.java,
5501 java/io/RandomAccessFile.java,
5502 java/io/SerializablePermission.java,
5503 java/io/StreamTokenizer.java,
5504 java/io/StringWriter.java,
5505 java/io/WriteAbortedException.java,
5506 java/io/Writer.java:
5507 Fixed javadocs all over, rename arguments to match javadocs,
5510 2004-04-20 Ingo Proetel <proetel@aicas.com>
5512 * java/awt/FontMetrics.java:
5513 (charsWidth): fixed accumulation of total_width
5514 (getWidth): simple default implementation
5515 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5516 in Rectangle constructor.
5517 * java/awt/image/Raster.java (toString): Added method.
5518 * java/awt/image/SampleModel.java (<init>): Added error cause
5519 information to thrown exception.
5520 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5522 (setDataElements): New method.
5523 (setPixels): New method.
5524 (toString): New method.
5526 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5528 * java/awt/image/ComponentColorModel.java
5529 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5530 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5531 Mauve tests on this method. Improved documentation.
5533 2004-04-20 Michael Koch <konqueror@gmx.de>
5535 * javax/swing/JLayeredPane.java,
5536 javax/swing/plaf/BorderUIResource.java,
5537 javax/swing/plaf/ComponentUI.java,
5538 javax/swing/undo/CompoundEdit.java,
5539 javax/swing/undo/StateEdit.java:
5540 Fixed HTML tags in javadocs all over.
5542 2004-04-20 Michael Koch <konqueror@gmx.de>
5544 * javax/print/attribute/EnumSyntax.java
5545 (getOffset): Made protected.
5546 * javax/print/attribute/HashAttributeSet.java
5547 (HashAttributeSet): Likewise.
5548 * javax/print/attribute/ResolutionSyntax.java
5549 (getFeedResolution): Fixed typo in exception name.
5550 (getCrossFeedResolution): Likewise.
5551 * javax/print/attribute/SetOfIntegerSyntax.java
5552 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5553 * javax/print/attribute/TextSyntax.java
5554 (TextSyntax): Handle locale correctly.
5555 (hashCode): Calc better hashcode value.
5556 (equals): Fixed @return tag.
5557 (toString): New method.
5559 2004-04-20 Michael Koch <konqueror@gmx.de>
5561 * gnu/java/nio/FileLockImpl.java
5562 (static): Removed, not needed anymore.
5563 * gnu/java/nio/channels/FileChannelImpl.java
5564 (FileChannelImpl): Made final.
5565 (mode): Made private.
5566 (READ, WRITE, APPEND): Made public.
5567 (EXCL, SYNC, DSYNC): Likewise.
5568 (static): Load native JNI library, when needed.
5569 (length): Unused, removed.
5570 (available): Made public.
5571 (implPosition): Throws IOException.
5573 (implTruncate): Likewise.
5577 2004-04-20 Michael Koch <konqueror@gmx.de>
5579 * java/awt/AWTPermission.java,
5580 java/awt/Component.java,
5581 java/awt/ComponentOrientation.java,,
5582 java/awt/Dialog.java,
5583 java/awt/FontMetrics.java,
5584 java/awt/Graphics.java,
5585 java/awt/datatransfer/DataFlavor.java,
5586 java/beans/Introspector.java,
5587 java/beans/PropertyEditor.java,
5588 java/beans/PropertyEditorManager.java,
5589 java/beans/beancontext/BeanContextServiceProvider.java:
5590 Fixed HTML tags in javadocs all over.
5592 2004-04-20 Mark Wielaard <mark@klomp.org>
5594 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5595 MissingResourceException is thrown.
5596 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5597 null when a MissingResourceException is thrown. Should never happen.
5599 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5601 * java/awt/image/DataBufferShort.java,
5602 java/awt/image/DataBufferFloat.java,
5603 java/awt/image/DataBufferDouble.java,
5604 java/awt/image/PixelInterleavedSampleModel.java: New files.
5605 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5606 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5608 2004-04-20 Michael Koch <konqueror@gmx.de>
5610 * Makefile.am (java_source_files): Added
5611 java/awt/image/DataBufferDouble.java,
5612 java/awt/image/DataBufferFloat.java,
5613 java/awt/image/DataBufferShort.java and
5614 java/awt/image/PixelInterleavedSampleModel.java.
5615 * Makefile.in: Regenerated.
5617 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5619 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5620 undocumented CNI calls.
5621 * include/java-interp.h (_Jv_InterpClass): No longer
5622 extends java.lang.Class.
5623 * java/lang/Class.h (Class): Add new field `aux_info'.
5624 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5625 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5626 Use Class->aux_info instead.
5627 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5628 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5629 Use Class->aux_info instead.
5630 * java/io/natObjectInputStream.cc (allocateObject): Use
5632 * java/lang/natClass.cc (newInstance): Likewise.
5633 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5634 * java/lang/natObject.cc (clone): Likewise.
5635 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5636 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5637 JvAllocObject. Allocate klass->aux_info here for interpreted
5640 2004-04-17 Mark Wielaard <mark@klomp.org>
5642 * javax/swing/JToggleButton.java (ToggleButtonModel):
5643 Make public static inner class.
5644 * javax/swing/JTabbedPane.java (setComponentAt):
5645 Call Page.setComponent().
5646 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5647 (WRAP_TAB_LAYOUT): Make public, value is 0.
5648 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5649 Make private static inner class.
5651 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5653 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5654 arguments to match new signature. Remove FIXME comments.
5656 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5658 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5660 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5663 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5665 * Makefile.am: Added new file.
5666 * Makefile.in: Regenerate.
5667 * javax/swing/ImageIcon.java:
5668 (ImageIcon(file)): set description of the icon
5670 * javax/swing/JCheckBoxMenuItem.java:
5671 Mostly Implemented. Work in progress.
5672 * javax/swing/JRadioButtonMenuItem.java:
5673 Reimplement constructors to use JToggleButtonModel.
5674 * javax/swing/plaf/basic/BasicIconFactory.java:
5675 (getCheckBoxMenuItemIcon): return check box
5677 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5678 paint menu item selected only when it is armed and
5681 2004-04-02 David Jee <djee@redhat.com>
5683 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5684 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5685 * java/awt/Component.java
5686 (add): Set the parent of the popup as this component.
5687 * java/awt/PopupMenu.java
5688 (addNotify): Create popup menu when peer is null.
5689 (show): Call addNotify() if peer is null.
5690 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5691 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5692 argument for gtk_menu_popup() as zero. This causes the popup menu to
5693 respond to any mouse button.
5695 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5697 * Makefile.am: Added new file.
5698 * Makefile.in: Regenerate.
5699 * javax/swing/JRadioButtonMenuItem.java:
5701 * javax/swing/plaf/basic/BasicIconFactory.java:
5702 (getRadioButtonMenuItemIcon): Return
5704 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5705 (getPreferredSize): Add size of checkIcon if it
5707 (installDefaults): Don't initialize checkIcon.
5708 It's value will be set in subclasses.
5709 (uninstallDefaults): remove uninstallation of
5711 (paint): Moved code to paintMenuItem().
5712 (paintMenuItem): Implemented.
5713 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5714 UI delegate for JRadioButtonMenuItem.
5716 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5718 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5719 Corrected position of the accelerator.
5721 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5723 * Makefile.am: Added new file.
5724 * Makefile.in: Regenerate.
5725 * javax/swing/JMenuItem.java: Partly
5726 implemented. Work in progress
5727 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5728 Changed default value of acceleratorDelimiter.
5729 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5730 New class. Partly implemented.
5732 2004-03-26 Mark Wielaard <mark@klomp.org>
5734 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5735 (item_activate): Declare label before use.
5736 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5737 (gtkSetFont): Removed unused variable label.
5738 (addExposeFilter): Declare variables before use.
5739 (removeExposeFilter): Likewise.
5740 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5741 (ok_clicked): Declare str_fileName before use.
5743 2004-03-26 David Jee <djee@redhat.com>
5745 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5746 (addSeparator): Remove.
5747 * java/awt/Menu.java
5748 (separator): Remove static final MenuItem field.
5749 (separatorLabel): New static final String field.
5750 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5751 Use separatorLabel to denote that it is a separator.
5752 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5753 of reusing the static separator instance, because a MenuItem instance
5754 can't be added more than once without being cloned.
5755 * java/awt/peer/MenuPeer.java
5756 (addSeparator): Remove from interface.
5758 2004-03-26 David Jee <djee@redhat.com>
5760 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5761 (connectSignals): New native method declaration.
5762 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5763 * java/awt/MenuItem.java
5764 (getActionCommand): Return the label if the action command is not set.
5765 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5766 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5767 gtk_menu_shell_append().
5768 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5769 (item_activate): Fix argument type.
5770 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5772 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5774 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5775 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5776 given. Add the menu widget's top-level GtkWindow to the global window
5777 group, so it can grab the pointer.
5778 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5779 gtk_menu_shell_append().
5781 2004-03-23 Graydon Hoare <graydon@redhat.com>
5783 * java/text/AttributedString.java
5784 (addAttribute): Fix off-by-one.
5785 (getIterator): Likewise.
5786 * java/text/AttributedStringIterator.java
5787 (getRunLimit): Correct logic.
5788 (getRunStart): Likewise.
5789 (getAttribute): Fix inequality.
5790 (getAttributes): Likewise.
5791 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5793 2004-03-23 Kim Ho <kho@redhat.com>
5795 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5796 (calculateSizes): Return real width and height.
5798 2004-03-23 Kim Ho <kho@redhat.com>
5800 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5801 (calculateTabRects): Set the selectedRun before
5802 trying to rotate tabs.
5804 2004-03-23 Kim Ho <kho@redhat.com>
5806 * Makefile.am: New file
5807 * Makefile.in: Regenerate
5808 * java/awt/Graphics.java: (drawRect):
5809 Draw to the correct point.
5810 * javax/swing/DefaultSingleSelectionModel.java
5811 (isSelected): Return true if the selected index
5813 * javax/swing/JLabel.java: Do not change mnemonic
5814 index if text is null.
5815 * javax/swing/JProgressBar.java: Use JComponent's
5817 * javax/swing/JScrollBar.java: Ditto.
5818 * javax/swing/JSlider.java: Ditto.
5819 * javax/swing/JTabbedPane.java: Reimplement.
5820 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5821 Add defaults for TabbedPane.
5822 * javax/swing/plaf/basic/BasicArrowButton.java:
5824 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5825 (paintDeterminate): Don't paint String if it's
5827 (paintIndeterminate): ditto.
5828 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5831 2004-03-19 Michael Koch <konqueror@gmx.de>
5833 * java/awt/image/AffineTransformOp.java
5834 (AffineTransformOp): Made public.
5835 * javax/swing/JComponent.java
5836 (listenerList): Made protected.
5837 (accessibleContext): Likewise.
5838 * javax/swing/JList.java
5839 (valueChanged): Dont use internal fields of ListSelectionEvent.
5840 * javax/swing/JViewport.java
5841 (getView): Dont use internal fields of Component.
5842 (addImpl): Likewise.
5843 * javax/swing/Timer.java
5844 (isRunning): Made public.
5847 * javax/swing/UIDefaults.java
5848 (getInt): Made public.
5849 * javax/swing/plaf/basic/BasicListUI.java
5850 (mousePressed): Dont use internal fields of MouseEvent.
5851 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5852 * javax/swing/plaf/basic/BasicScrollBarUI.java
5853 (arrowIcon): Made static.
5854 * javax/swing/plaf/basic/BasicViewportUI.java
5855 (stateChanged): Dont use internal field on ChangeEvent.
5856 * javax/swing/text/JTextComponent.java
5857 (getUI): Call UIManager.getUI().
5858 (updateUI): Use getUI().
5860 2004-03-19 Graydon Hoare <graydon@redhat.com>
5862 * javax/swing/JComponent.java: Turn off double buffer by default.
5863 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5864 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5865 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5866 Use cairo to copy areas.
5867 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5868 Initialize and set clip region.
5870 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5872 * java/applet/Applet.java (preferredSize): Override deprecated
5873 variant of getPreferredSize.
5874 (minimumSize): Override deprecated variant of getMinimumSize.
5876 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5878 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5879 (drawImage(img,xform,bgcolor,obs)): New Method.
5880 Helper function that every drawImage method will
5882 (drawRaster): Added new parameter, bgcolor. All
5883 transparent pixels are changed to bgcolor before
5885 (drawRenderedImage): Fixed to use changed drawRaster().
5886 (drawImage(image,xform,obs): Fixed to use new helper function
5887 (drawImage(image,op,x,y)): Ditto.
5888 (drawImage (img,x,y,observer)): Ditto.
5889 ((PainterThread) bgcolor): New Field.
5890 ((PainterThread) (setPixels)): Changed all transparent pixels
5892 (drawImage(img,x,y,width,height,bgcolor,observer)):
5893 Fixed FIXME - all the transparent pixels are
5894 changed to the specified bgcolor.
5895 (drawImage(img, x, y, width, height, observer): Changed to
5897 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5898 Fixed FIXME- changed all transparent pixels to bgcolor.
5899 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5900 Changed to use function above.
5902 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5904 * java/applet/Applet.java (dimensions): New field.
5905 (getDimensions): New method.
5906 (getPreferredSize): Call getDimensions.
5907 (getMinimumSize): Likewise.
5909 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5911 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5912 * jni/classpath/jnilink.c: Likewise.
5914 * java/applet/Applet.java (getPreferredSize): New method.
5915 (getMinimumSize): New method.
5917 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5919 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5920 (_Jv_AllocObjectNoFinalizer): Likewise.
5921 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5922 (_Jv_AllocPtrFreeObject): Likewise.
5923 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5924 directly even in the JVMPI case.
5925 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5926 _Jv_AllocObject calls.
5927 * gcj/javaprims.h: Update prototypes.
5928 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5929 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5930 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5932 2004-04-14 Andrew Haley <aph@redhat.com>
5933 Bryce McKinlay <mckinlay@redhat.com>
5935 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5936 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5937 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5939 * testsuite/libjava.lang/InvokeInterface.java: New file.
5940 * testsuite/libjava.lang/InvokeInterface.out: New file.
5942 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5944 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5946 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5947 StackTraceElement directly.
5948 (newElement): New native helper method to create StackTraceElement
5949 bypassing Java access control.
5950 (createStackTraceElement): Use newElement() instead of directly
5951 calling StackTraceElement's constructor.
5952 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5954 2004-04-01 Michael Koch <konqueror@gmx.de>
5956 * java/lang/SecurityManager.java
5957 (checkAwtEventQueueAccess): Implemented.
5959 2004-04-01 Gary Benson <gbenson@redhat.com>
5961 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5962 (_Jv_SearchMethodInClass): Likewise.
5964 2004-03-26 Peter Moon <peterm@miraculum.com>
5966 * java/text/NumberFormat.java: Fix spelling of setCurrency
5969 2004-03-21 Anthony Green <green@redhat.com>
5971 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5972 recursion when searching for the system ClassLoader.
5974 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5976 * java/net/ServerSocket.java
5977 (accept): Close the socket when error occured.
5979 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
5981 * java/net/URI.java (parseURI): Added unquoting.
5982 (unquote): New method.
5983 (quoteAuthority): Implemented.
5984 (quote(String,String)): New method.
5985 (quotePath): Implemented.
5986 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5987 (getSchemeSpecificPart): Removed FIXME comment.
5988 (getRawAuthority): Return new rawAuthority field.
5989 (getAuthority): Removed FIXME comment.
5990 (getRawUserInfo): Return new rawUserInfo field.
5991 (getUserInfo): Removed FIXME comment.
5992 (getRawPath): Return new rawPath field.
5993 (getPath): Removed FIXME comment.
5994 (getRawQuery): Return new rawQuery field.
5995 (getQuery): Removed FIXME comment.
5996 (getRawFragment): Return new rawFragment field.
5997 (getFragment): Removed FIXME comment.
5999 2004-03-20 Michael Koch <konqueror@gmx.de>
6001 * java/net/URLConnection.java: Merged copyright year with classpath.
6003 2004-03-20 Norbert Frese <postfach@nfrese.net>
6005 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
6006 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
6007 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
6009 (getObjectInputStream): Return object reference, throw IOException if null.
6010 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
6011 (getObjectOutputStream): Return object reference, throw IOException if null.
6012 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
6013 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
6014 (UnicastConnectionManager): Throw RemoteException if port is not available.
6015 (getInstance): Throw RemoteException.
6016 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
6017 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
6018 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6019 Collect Exceptions which are returned by a rmi-call and fix void returns.
6020 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
6021 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6022 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
6023 (dispatch): Answer ping messages which are sent by other java implementions.
6024 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
6025 for every rmi-message and fix void return problems.
6026 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
6027 (UnicastServerRef): Throw RemoteException.
6028 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
6029 In some situations it is necessary to export a subclass of the class which has the _Stub.
6030 For instance when the class with has the _Stub is abstract.
6031 (findStubSkelClass): New method which looks for the class which has the _Stub.
6032 (getClientHost): Implementated.
6033 * gcc/libjava/java/rmi/server/RemoteServer.java
6034 (getClientHost): Implementated.
6035 * gcc/libjava/Makefile.am (rmi_java_source_files):
6036 Added gnu/java/rmi/server/RMIIncomingThread.java.
6037 * Makefile.in: Regenerated.
6039 2004-03-20 Michael Koch <konqueror@gmx.de>
6041 * java/net/InetAddress.java
6042 (getLocalHostname): Added javadoc.
6044 2004-03-19 Per Bothner <per@bothner.com>
6046 * configure.in: FILE variable overrides FLATFORM when linking
6047 natFileChannelXXX.cc.
6049 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
6050 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
6052 2004-03-19 Per Bothner <per@bothner.com>
6054 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
6055 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
6056 * Makefile.am: Update accordingly.
6057 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
6058 as aliases for UnicodeLittle and UnicodeBig.
6060 2004-03-20 Mark Wielaard <mark@klomp.org>
6062 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6063 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
6064 Don't access ws when it is null.
6065 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
6068 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
6070 * java/lang/ThreadGroup.java (list): Changed print to println.
6072 2004-03-19 Mark Wielaard <mark@klomp.org>
6074 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
6077 2004-02-10 Randolph Chung <tausq@debian.org>
6079 * configure.in: Build java for hppa target.
6080 * configure: Regenerate.
6081 * libjava/configure.host (hppa-*): Add target.
6082 * libjava/sysdeps/pa/lock.h: New file.
6084 2004-03-19 Mark Wielaard <mark@klomp.org>
6086 Reported by Stephen Crawley
6087 * java/io/FilePermission.java (implies): Use String.length() -1 to
6088 access last char of String.
6090 2004-03-19 Michael Koch <konqueror@gmx.de>
6092 * java/awt/image/AffineTransformOp.java
6093 (AffineTransformOp): Made public.
6094 * javax/swing/JComponent.java
6095 (listenerList): Made protected.
6096 (accessibleContext): Likewise.
6097 * javax/swing/JList.java
6098 (valueChanged): Dont use internal fields of ListSelectionEvent.
6099 * javax/swing/JViewport.java
6100 (getView): Dont use internal fields of Component.
6101 (addImpl): Likewise.
6102 * javax/swing/Timer.java
6103 (isRunning): Made public.
6106 * javax/swing/UIDefaults.java
6107 (getInt): Made public.
6108 * javax/swing/plaf/basic/BasicListUI.java
6109 (mousePressed): Dont use internal fields of MouseEvent.
6110 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
6111 * javax/swing/plaf/basic/BasicScrollBarUI.java
6112 (arrowIcon): Made static.
6113 * javax/swing/plaf/basic/BasicViewportUI.java
6114 (stateChanged): Dont use internal field on ChangeEvent.
6115 * javax/swing/text/JTextComponent.java
6116 (getUI): Call UIManager.getUI().
6117 (updateUI): Use getUI().
6119 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6121 * verify.cc: Undef PC.
6123 2004-03-18 Michael Koch <konqueror@gmx.de>
6125 * java/nio/channels/spi/AbstractSelectableChannel.java
6126 (keys): Initialize at declaration.
6127 (locate): keys cant be null.
6129 (addSelectionKey): New method.
6130 (removeSelectionKey): New method.
6131 * java/nio/channels/spi/AbstractSelectionKey.java
6132 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
6133 * java/nio/channels/spi/AbstractSelector.java
6134 (provider): Javadoc added.
6135 (cancelledKeys): Javadoc added.
6136 (cancelKey): Javadoc added, add key to cancelledKeys.
6137 (deregister): Implemented.
6139 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6141 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
6142 MAP_FAILED to void *.
6144 2004-03-12 Graydon Hoare <graydon@redhat.com>
6146 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6147 * javax/swing/JComponent.java (paint): Use persistent double buffer.
6148 * javax/swing/JList.java (ListListener): Revalidate on changes.
6149 * javax/swing/JScrollPane.java: Reimplement.
6150 * javax/swing/JViewport.java: Reimplement.
6151 * javax/swing/ScrollPaneLayout.java: Reimplement.
6152 * javax/swing/ViewportLayout.java: Tidy up.
6153 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6154 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6155 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6156 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6159 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6161 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6162 (window_wm_protocols_filter): New function.
6163 (window_focus_in_cb): Remove function.
6164 (window_focus_out_cb): Likewise.
6165 (window_focus_or_active_state_change_cb): New function.
6166 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6167 (connectSignals): Don't attach handlers to focus-in-event or
6168 focus-out-event signals. Handle notify signal.
6170 2004-03-11 David Jee <djee@redhat.com>
6172 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6173 (gtkSetLabel): New native method declaration.
6174 (setLabel): Use gtkSetLabel.
6175 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6176 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6178 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6180 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6181 black when color argument is null.
6183 2004-03-10 Kim Ho <kho@redhat.com>
6185 * java/awt/Container.java: Remove check
6188 2004-03-10 Kim Ho <kho@redhat.com>
6190 * java/awt/Container.java: (visitChild):
6191 Remove candidate clip. Use the component
6193 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6194 (handleEvent): Use the PaintEvent's clip.
6196 2004-03-10 Kim Ho <kho@redhat.com>
6198 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6199 (handleEvent): Don't set the clip for the
6202 2004-03-09 Graydon Hoare <graydon@redhat.com>
6204 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6205 Fix double <-> fixed macros, reset font transform.
6206 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6209 2004-03-09Â Kim Ho <kho@redhat.com>
6211 * java/awt/Container.java: (visitChild): Move
6212 the x and y coordinate of the component rectangle
6213 to correct position.
6214 (handleEvent): Forward drag events to the pressed
6216 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6218 (ArrowButtonListener::mousePressed): Stop the
6220 (mouseDragged): Implement.
6221 (TrackListener::mousePressed): Only react if
6222 the press doesn't occur on the thumb, otherwise
6223 just set the offset.
6224 (TrackListener::mouseReleased): Unset the isAdjusting
6226 (createIncreaseIcon): Switch icon.
6227 (createDecreaseIcon): Switch icon.
6228 (calculatePreferredSize): Use width.
6229 (getThumbBounds): Use the top as the lower value.
6230 (layoutVScrollBar): Switch the button locations.
6231 (paintIncreaseHighlight): Paint correct side of thumb.
6232 (paintDecreaseHighlight): ditto.
6233 (valueForYPosition): Use top as the lower value.
6234 * javax/swing/plaf/basic/BasicSliderUI.java:
6236 (mouseDragged): Implement.
6237 (mousePressed): Only react when the thumb isn't
6238 pressed, otherwise just set offset.
6239 (mouseReleased): Handle a release of the thumb.
6240 (scrollDueToClickInTrack): Stop the timer first.
6241 * javax/swing/JProgressBar.java:
6242 (setString): Fix change condition.
6243 * javax/swing/JSeparator.java:
6246 2004-03-08 David Jee <djee@redhat.com>
6248 * java/awt/image/AffineTransformOp.java:
6249 (filter): Use Graphics2D interface instead of directly using the
6252 2004-03-05 David Jee <djee@redhat.com>
6254 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6255 (handleEvent): Action events are generated upon MOUSE_RELEASED.
6256 * java/awt/Container.java
6257 (acquireComponentForMouseEvent): Fixed.
6258 (handleEvent): Fixed.
6259 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6260 (state_to_awt_mods_with_button_states): New method.
6261 (pre_event_handler): Fixed mouse event generation.
6263 2004-03-05 Olga Rodimina <rodimina@redhat.com>
6265 gnu/java/awt/peer/gtk/GdkGraphics2D.java
6266 (GdkGraphics2D (BufferedImage)): Initialize
6267 pixmap associated with specified BufferedImage.
6268 (setPaint): Changed implementation of Texture
6269 Paint to use AffineTransformOp.
6270 * java/awt/image/AffineTransformOp.java
6271 (createCompatibleDestRaster): Throw RasterFormatException
6272 if resulting width or height of raster is 0.
6274 2004-03-04 Olga Rodimina <rodimina@redhat.com>
6276 * java/awt/image/AffineTransformOp.java:
6277 Removed unnecessary field interpolationType.
6278 Formatted some of the lines to be consistent with
6280 (AffineTransformOp): Create new RenderingHints
6281 containing specified interpolation type.
6282 (createCompatibleDestImage): Implemented.
6283 (createCompatibleDestRaster): Implemented.
6284 (filter): Implemented.
6285 (getBounds2D(BufferedImage)): Implemented.
6286 (getBounds2D(Raster)): Implemented.
6287 (getInterpolationType): Get interpolation value from
6290 2004-03-04 David Jee <djee@redhat.com>
6292 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6293 (setFont): Check if child peers are null.
6295 2004-03-04 Graydon Hoare <graydon@redhat.com>
6297 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6299 (libjava_arguments): Add new libraries to argument list.
6301 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6303 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6304 * Makefile.in: Re-generated.
6305 * java/awt/image/AffineTransformOp.java: New Class.
6307 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6309 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6310 (setPaint): Interpret correctly TexturePaint's
6312 (drawImage): Fixed scale factors of the affine
6315 2004-02-27 David Jee <djee@redhat.com>
6317 * gnu/java/awt/peer/gtk/GdkGraphics.java
6318 (GdkGraphics(Component)): Inherit font from component.
6319 (drawString): Use font style.
6320 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6321 (gtkSetFont): New native method declaration.
6322 (setFont): New method.
6323 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6324 (gtkSetFont): New native method declaration.
6325 (setFont): Call new native method gtkSetFont.
6326 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6327 (setFont): For all child components who do not their fonts set,
6328 set their peers' fonts with this container's font.
6329 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6330 Move all native method declarations to the top for readability.
6331 (gtkSetFont): New native method declaration.
6332 (setFont): New method.
6333 * java/awt/Component.java
6334 (setFont): Invalidate after setting the font.
6335 * java/awt/Container.java
6336 (invalidateTree): New method.
6337 (setFont): Invalidate the container tree after setting the font.
6338 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6339 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6340 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6341 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6342 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6343 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6344 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6345 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6347 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6349 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6350 (updateBufferedImage): New helper function.
6351 Updates BufferedImage in memory if it was changed.
6352 (draw): changed to update BufferedImage in memory after
6353 this drawing operation
6355 (draw3DRect): Ditto.
6356 (fill3DRect): Ditto.
6358 (drawRaster): Ditto.
6359 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6360 no affine transformation.
6361 (drawGlyphVector): Ditto.
6363 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6365 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6366 (isBufferedImageGraphics): New Helper function.
6367 Returns true if this graphics2d can be used to draw
6368 into buffered image and false otherwise.
6369 (updateImagePixels): New Helper function.
6370 Updates pixels in the BufferedImage.
6371 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6372 (getImagePixels): New function. Returns pixels
6373 of the buffered image associated with
6376 2004-02-26 David Jee <djee@redhat.com>
6378 * java/awt/BorderLayout.java
6379 (layoutContainer): Fix width and height calculations to ensure
6380 that they're non-negative.
6381 * java/awt/Component.java
6382 (setBackground): If c is null, inherit from closest ancestor whose
6383 background color is set.
6385 2004-02-26 Kim Ho <kho@redhat.com>
6387 * Makefile.am: Add new files.
6388 * Makefile.in: Re-generate.
6389 * javax/swing/JProgressBar.java:
6390 (JProgressBar(int, int int)): Throw
6391 IllegalArgumentException if orientation is
6393 (JProgressBar(BoundedRangeModel)): Create
6394 ChangeListener and register it. UpdateUI.
6395 (getChangeListeners): Implement.
6396 (setModel): Reset ChangeListener.
6397 * javax/swing/JScrollBar.java: Implement.
6398 * javax/swing/JSeparator.java: Implement.
6399 * javax/swing/JSlider.java:
6400 (JSlider(int, int, int, int)): Throw
6401 IllegalArgumentException if orientation
6403 (getChangeListeners): Fix method name.
6404 * javax/swing/SwingUtilities.java:
6405 (layoutCompoundLabel): If there is no text,
6406 set the text rectangle dimensions to 0.
6407 * javax/swing/plaf/basic/BasicButtonUI.java:
6408 (paint): If there is no text, don't paint it.
6409 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6411 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6413 * javax/swing/plaf/basic/BasicSliderUI.java:
6414 (propertyChange): If the model changes, change
6415 the listeners accordingly.
6417 2004-02-25 Graydon Hoare <graydon@redhat.com>
6419 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6420 * javax/swing/JList.java: Reimplement.
6421 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6422 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6423 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6424 * javax/swing/ListModel.java: Javadoc.
6425 * javax/swing/ListSelectionModel.java: Add missing methods.
6426 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6427 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6428 * javax/swing/ListModel.java: Javadoc and corrections.
6429 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6431 2004-02-25 David Jee <djee@redhat.com>
6433 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6434 (GtkFontPeer): Change default size to 12.
6435 * gnu/java/awt/peer/gtk/GtkToolkit.java
6436 (getFontPeer): Change default size to 12.
6437 (getClasspathFontPeer): Likewise. Set default name to "Default".
6438 * java/awt/Font.java
6439 (Font(Map)): Call Font(String,Map).
6440 (Font(String,Map)): If attrs is null, initialize it as an empty
6441 HashMap, which will ensure that the Font will get default attributes.
6443 2004-02-25 David Jee <djee@redhat.com>
6445 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6446 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6447 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6448 * gnu/java/awt/peer/gtk/GtkToolkit.java
6449 (getFontPeer(String,int)): Call the new overload method with size 1.
6450 (getFontPeer(String,int,int)): New method. Overloaded with size
6452 (getClasspathFontPeer): Set the size of the font.
6454 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6456 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6457 (bimage): New field.
6458 (GdkGraphics2D): New Constructor. Constructs Graphics
6459 object that can be used to draw into the Buffered Image.
6460 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6461 (GdkGraphicsEnvironment): Fixed to include public
6463 (createGraphics): Implemented.
6464 * gnu/java/awt/peer/gtk/GtkToolkit.java
6465 (getLocalGraphicsEnvironment): Implemented.
6466 * java/awt/GraphicsEnvironment.java:
6467 (getLocalGraphicsEnvironment): Implemented.
6468 * java/awt/image/BufferedImage.java:
6469 (createGraphics): Implemented.
6471 2004-02-24 David Jee <djee@redhat.com>
6473 * java/awt/Component.java
6474 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6475 * java/awt/Container.java
6476 (addNotifyContainerChildren): Fix event enabling.
6478 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6480 * Makefile.am: Added
6481 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6482 * Makefile.in: Re-generated.
6483 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6486 2004-02-19 Kim Ho <kho@redhat.com>
6488 * Makefile.am: Add BasicProgressBarUI
6489 * Makefile.in: Regenerate.
6490 * javax/swing/JProgressBar.java:
6492 * javax/swing/plaf/basic/BasicLookAndFeel.java
6493 Add constants for JProgressBar.
6494 * javax/swing/plaf/basic/BasicProgressBarUI.java
6496 * javax/swing/plaf/basic/BasicSliderUI.java
6498 (calculateGeometry): New method
6499 (paint): Remove unnecessary size calculations.
6501 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6503 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6504 (drawRaster): Fixed small error that caused
6505 imageToUser transformation to be set incorrectly.
6506 (toString): Implemented.
6508 2004-02-18 David Jee <djee@redhat.com>
6510 * java/awt/CardLayout.java
6511 (addLayoutComponent): Show the first component added as the default.
6512 (removeLayoutComponent): After removing, show the next component.
6513 (gotoComponent): If there is only one component, show it and return.
6515 2004-02-18 Kim Ho <kho@redhat.com>
6517 * javax/swing/JSlider.java: Re-order
6519 * javax/swing/JLabel.java: Re-order
6521 * javax/swing/JComponent.java:
6522 (addPropertyChangeListener):
6524 (removePropertyChangeListener):
6526 (firePropertyChangeEvent):
6529 2004-02-17 David Jee <djee@redhat.com>
6531 * java/awt/Component.java
6532 (show): Dispatch ComponentEvent via system event queue.
6536 (reshape): Likewise.
6537 * java/awt/Window.java
6538 (setBoundsCallback): Likewise.
6540 2004-02-17 David Jee <djee@redhat.com>
6542 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6543 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6544 Use gtk_widget_set_size_request() instead of the deprecated
6545 gtk_widget_set_usize().
6547 2004-02-17 Kim Ho <kho@redhat.com>
6549 * javax/swing/JSlider.java: Fix comments and
6550 make property strings constants.
6551 (createStandardLabels): Use the labels
6552 preferred size as bounds.
6553 * javax/swing/plaf/basic/BasicSliderUI.java
6555 (ScrollHandler::actionPerformed): Don't
6556 calculate the timer stop value. Let the
6557 MouseListeners find the stop location.
6558 (getPreferredHorizontalSize): Re-implement.
6559 (getPreferredVerticalSize): ditto.
6560 (getMinimumHorizontalSize): ditto.
6561 (getMinimumVerticalSize): ditto.
6562 (getPreferredSize): ditto.
6563 (getMinimumSize): ditto.
6564 (getMaximumSize): ditto.
6565 (paintTicks): Use doubles to find the
6567 (paintHorizontalLabel):Â Use preferredSize
6568 as initial width and height.
6569 (paintVerticalLabel): ditto.
6571 2004-02-17 Kim Ho <kho@redhat.com>
6573 * javax/swing/JLabel.java: Changed
6574 property strings to constants.
6575 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6577 (setText): Change mnemonic index if
6579 (setDisplayedMnemonicIndex): Fire property
6581 (getDisplayedMnemonicIndex): Remove check
6584 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6586 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6587 (drawImage(img,xform,obs)): Invert xform before
6588 passing the xform to cairo.
6589 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6590 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6592 (drawImage (img,x,y,w,h,obs)): Implemented.
6593 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6594 bgcolor,obs)): Partly implemented.
6595 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6597 * java/awt/image/BufferedImage.java:
6598 (copyData): if dest is null, create raster with same
6599 dimensions as the current image.
6601 2004-02-16 Graydon Hoare <graydon@redhat.com>
6603 * javax/swing/plaf/basic/BasicLabelUI.java
6604 (getPreferredSize): Use layoutCL.
6605 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6606 (getPreferredButtonSize): Start with empty view rect, layout using
6607 component's preferred alignment.
6608 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6611 2004-02-16 David Jee <djee@redhat.com>
6613 * java/awt/Component.java
6614 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6615 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6616 (move): Erase old bounds and repaint new bounds. Dispatch
6617 COMPONENT_MOVED ComponentEvent.
6618 (resize): Erase old bounds and repaint new bounds. Dispatch
6619 COMPONENT_RESIZED ComponentEvent.
6620 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6622 * java/awt/Window.java
6623 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6626 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6628 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6629 (setRenderingHint): Added implementation of
6630 Interpolation rendering hints.
6631 (setRenderingHints): Ditto.
6632 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6633 (drawPixels): fixed to allow user to choose type
6634 of filtering that should be used when displaying images.
6635 (cairoSurfaceSetFilter): New method. Sets filter type for
6636 interpolation of pixel values.
6638 2004-02-16 David Jee <djee@redhat.com>
6640 * java/awt/GridBagLayout.java
6641 (calcCellSizes): Rows or columns with zero sizes should still be
6642 considered for extra space distribution.
6644 2004-02-16 Kim Ho <kho@redhat.com>
6646 * javax/swing/JLabel.java: Re-implement.
6647 * javax/swing/plaf/basic/BasicLabelUI.java
6649 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6652 2004-02-16 Kim Ho <kho@redhat.com>
6654 * javax/swing/JSlider.java: Fix indentation and comments.
6655 (setModel): Remove null check to conform with Sun's.
6656 (setOrientation): Throw exception if not
6657 HORIZONTAL or VERTICAL.
6658 (getInverted): Use private variable instead of
6659 ComponentOrientation.
6660 (setInverted): ditto.
6661 * javax/swing/plaf/basic/BasicSliderUI.java:
6662 Fix indentation and comments.
6663 (propertyChange): Remove check for inverted slider, handle
6665 (getMinimumSize): Return preferred size.
6666 (getMaximumSize): ditto.
6667 (calculateFocusRect): Don't relocate rectangle.
6668 (drawInverted): Return XOR of the slider's inversion and
6669 the component's orientation.
6670 (paint): Update leftToRightCache
6672 2004-02-13 David Jee <djee@redhat.com>
6674 * java/awt/GridBagLayout.java
6675 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6676 code to helper methods.
6677 (sortBySpan): New helper method.
6678 (distributeSizeAndWeight): Likewise.
6679 (calcCellWeights): Likewise.
6680 (calcCellSizes): Add comments.
6682 2004-02-13 David Jee <djee@redhat.com>
6684 * java/awt/Component.java
6685 (show): Only do something if component is invisible at the moment.
6686 (hide): Only do something if component is visible at the moment.
6687 (reshape): If lightweight, erase old bounds and repaint new bounds.
6689 2004-02-13 Kim Ho <kho@redhat.com>
6691 * Makefile.am: Updated for new file.
6692 * Makefile.in: Regenerated.
6693 * javax/swing/JSlider.java: Reimplement.
6694 * javax/swing/SwingUtilities.java
6695 (layoutCompoundLabel): Use icon height
6697 (paintComponent): Implement.
6698 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6699 Add JSlider defaults.
6700 * javax/swing/plaf/basic/BasicSliderUI.java:
6701 Implement. New file.
6703 2004-03-17 Michael Koch <konqueror@gmx.de>
6705 * gnu/java/net/PlainDatagramSocketImpl.java
6706 (RECEIVE_LOCK): New member field.
6707 (SEND_LOCK): New member field.
6708 (send0): New method.
6709 (send): Synchronize on SEND_LOCK.
6710 (receive0): New method.
6711 (receive): Synchronize on RECEIVE_LOCK.
6712 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6713 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6714 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6715 (send0): Renamed from send.
6716 (receive0): Renamed from receive.
6717 2004-03-17 Michael Koch <konqueror@gmx.de>
6719 * gnu/java/net/natPlainSocketImplPosix.cc
6720 (write): Just call write(jbyteArray, offset, len).
6721 (read): Just call read(jbyteArray, offset, len).
6723 2004-03-16 Michael Koch <konqueror@gmx.de>
6725 * javax/swing/JTabbedPane.java
6726 (serialVersionUID): New field.
6728 2004-03-16 Norbert Frese <postfach@nfrese.net>
6730 * java/net/InetAddress.java
6731 (getByName): Handle hostname == "" case.
6733 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6735 Reported by: Adam Heath <doogie@debian.org>
6736 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6739 2004-03-15 Michael Koch <konqueror@gmx.de>
6741 * java/util/Locale.java: Reverting my last patch
6742 and add a comment why the original version was okay.
6744 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6746 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6747 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6748 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6749 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6751 2004-03-12 Michael Koch <konqueror@gmx.de>
6753 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6755 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6757 * java/net/URI.java (toURL): Implemented.
6759 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6762 (URI_REGEXP) updated to contain scheme specific part.
6763 (SCHEME_SPEC_PART_GROUP) new constant.
6764 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6765 updated to make room for SCHEME_SPEC_PART_GROUP.
6766 (parseURI) parse scheme specific part.
6767 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6768 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6769 getQuery, getFragment) implemented.
6771 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6773 * libraries/javalib/java/net/URI.java
6774 partially implemented using java.util.regex.
6775 (URI_REGEXP) new constant. Used to parse URIs.
6776 (SCHEME_GROUP) new constant representing index of scheme group
6778 (AUTHORITY_GROUP) new constant representing index of authority
6779 group in parsed URI.
6780 (PATH_GROUP) new constant representing index of path group in
6782 (QUERY_GROUP) new constant representing index of query group in
6784 (FRAGMENT_GROUP) new constant representing index of fragment
6785 group in parsed URI.
6786 (getURIGroup) new static utility method.
6787 (parseURI) implemented.
6788 (quote) stub for new static utility method.
6789 (quoteAuthority) stub for new static utility method.
6790 (quoteHost) stub for new static utility method.
6791 (quotePath) stub for new static utility method.
6792 (quoteUserInfo) stub for new static utility method.
6794 (create) don't throw URISyntaxException. Implemented.
6795 (toString) implemented.
6797 2004-03-12 Michael Koch <konqueror@gmx.de>
6799 * java/net/HttpURLConnection.java
6800 (getResponseCode): Fix another typo in javadoc.
6802 2004-03-11 Michael Koch <konqueror@gmx.de>
6804 * java/util/logging/Level.java
6805 (parse): Use String.equals() instead of ==.
6807 2004-03-11 Michael Koch <konqueror@gmx.de>
6809 * gnu/java/net/protocol/jar/Connection.java
6810 (getContentLength): New method.
6812 2004-03-11 Michael Koch <konqueror@gmx.de>
6814 * gnu/java/net/PlainSocketImpl.java:
6815 Reformated to merge better with classpath's version.
6817 2004-03-11 Michael Koch <konqueror@gmx.de>
6819 * java/util/Locale.java
6820 (getISO3Language): Use String.equals() instead of ==.
6821 (getISO3Country): Likewise.
6823 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6825 * java/text/AttributedString.java
6826 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6827 Use HashMap instead of Hashtable since value can be null, and
6828 you can not store a null value in a Hashtable.
6830 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6832 * java/text/AttributedStringIterator.java
6833 (getAllAttributesKey): Return only keys concerned
6834 by the current iterator.
6835 (getAttributes): Use strict inequality for
6838 2004-03-11 Michael Koch <konqueror@gmx.de>
6840 * java/net/HttpURLConnection.java:
6841 Fixed typo in javadoc.
6843 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6845 * java/io/BufferedInputStream.java (marktarget): New field for max
6847 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6848 (mark): Use new fields.
6850 (read(byte[],int,int)): Likewise.
6854 2004-03-11 Mark Wielaard <mark@klomp.org>
6856 * java/beans/BeanDescriptor.java (BeanDescriptor):
6857 Set the FeatureDescriptor programmatic name.
6859 2004-03-11 Michael Koch <konqueror@gmx.de>
6861 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6862 This file was was just copied form java/io/natFileDescriptorEcos.cc
6863 and never changed to compile correctly.
6865 2004-03-11 Michael Koch <konqueror@gmx.de>
6867 * gnu/java/nio/PipeImpl.java
6868 (SourceChannelImpl): Made final.
6869 (read): Implemented.
6870 (SinkChannelImpl): Made final.
6871 (write): Implemented.
6873 2004-03-11 Michael Koch <konqueror@gmx.de>
6875 * gnu/java/net/PlainDatagramSocketImpl.java:
6876 Reformated to match classpath's version more.
6878 2004-03-11 Michael Koch <konqueror@gmx.de>
6880 * gnu/java/awt/peer/ClasspathFontPeer.java:
6881 Fixed javadoc to be correct xhtml.
6882 * gnu/java/awt/peer/gtk/GtkArgList.java
6883 (add): Use Boolean.valueOf() instead of new Boolean().
6885 2004-03-09 Michael Koch <konqueror@gmx.de>
6887 * java/lang/Thread.java
6888 (runnable): Moved around.
6889 (daemon): Renamed from daemon_flag.
6890 (contextClassLoader): Renamed from context_class_loader.
6891 (Thread): Reordered constructors.
6892 (activeCount): Use group directly.
6893 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6894 (holdsLock): Reworked javadoc.
6895 (setDaemon): Reworked.
6896 * java/lang/natThread.cc
6899 2004-03-08 Anthony Green <green@redhat.com>
6901 * Makefile.am: Build property resource files into libgcj.
6902 * Makefile.in: Rebuilt.
6903 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6904 java/util/regex/PatternSyntaxException.java,
6905 gnu/regexp/CharIndexed.java,
6906 gnu/regexp/CharIndexedCharArray.java,
6907 gnu/regexp/CharIndexedInputStream.java,
6908 gnu/regexp/CharIndexedReader.java,
6909 gnu/regexp/CharIndexedString.java,
6910 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6911 gnu/regexp/REException.java,
6912 gnu/regexp/REFilterInputStream.java,
6913 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6914 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6915 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6916 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6917 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6918 gnu/regexp/RETokenLookAhead.java,
6919 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6920 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6921 gnu/regexp/RETokenStart.java,
6922 gnu/regexp/RETokenWordBoundary.java,
6923 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6925 2004-03-03 Per Bothner <per@bothner.com>
6927 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6928 Optimize when argument is a FileChannelImpl.
6929 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6931 * java/nio/channels/natChannels.cc: New file for new native methods.
6932 * Makefile.am: Update accordingly.
6934 2004-03-02 Jan Hubicka <jh@suse.cz>
6936 * configure.host: Pass -fno-omit-frame-pointer for i386.
6937 * configure.in: Likewise.
6938 * configure: Regenerate.
6940 2004-03-01 Per Bothner <per@bothner.com>
6942 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6944 2004-02-29 Per Bothner <per@bothner.com>
6946 * java/nio/channels/FileChannelImpl.java: Moved to package
6947 gnu/java/nio/channels, since we need to refer to it from java.io.
6948 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6949 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6950 from java/nio/channels. Don't depend on FileDescriptor.
6951 (in, out, err): New static fields.
6953 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6954 from FileDescriptor.
6955 (by): Removed MappedByteBuffer field.
6956 (map): New working implementation.
6957 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6958 some code "ported" from natFileDescriptoPosix.cc.
6959 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6960 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6961 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6962 Remove native methods.
6963 * Makefile.am, configure.in: Updated accordingly.
6965 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6966 (ch): New FileChannelImpl field. Update constructor to match.
6967 (releaseImpl): Remove native method. Instead ...
6968 (release): Call unlock on channel.
6969 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6971 * java/io/natFileDescriptorEcos.cc: Remove file.
6972 * java/io/natFileDescriptorPosix.cc: Remove file.
6973 * java/io/natFileDescriptorWin32.cc: Remove file.
6974 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6975 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6976 (<init>(FileChannelImpl)): New package-private constructor.
6977 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6978 (available, close, read, skip): Implement using FileChannelImpl.
6979 (getFD): Allocate FileDescriptor if needed.
6980 (getChannel): Is now trivial.
6981 * java/io/FileOutputStream.java: Corresponding changes.
6982 * java/io/RandomAccessFile.java: Corresponding changes.
6984 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6985 unmapImpl): New dummy methods, to be overridden by subclass.
6986 (finalize, isLoaded, load, force): New methods.
6987 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
6988 Now works, at least for read mapping.
6990 * java/lang/natPosixProcess.cc (startProcess): Implement standard
6991 streams using FileChannelImpl, not FileDescriptor.
6992 * java/lang/natWin32Process.cc (startProcess): Likewise.
6994 2004-02-28 Michael Koch <konqueror@gmx.de>
6996 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6999 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
7001 * java/io/ObjectInputStream.java
7002 (readClassDescriptor): Keep elements of the mapping non null.
7003 (checkTypeConsistency): New method.
7004 (readFields): Fixed main loop and base logic. Small reindentation.
7005 * java/io/ObjectStreamField.java
7006 (lookupField): New method to update the field reference.
7007 (checkFieldType): New method.
7008 * java/io/ObjectStreamClass.java
7009 (setClass, setFields): Call lookupField when building the field
7010 database. Check the real field type.
7012 2004-02-28 Michael Koch <konqueror@gmx.de>
7014 * java/nio/ByteOrder.java
7015 (nativeOrder): Use equals() to compare strings.
7017 2004-02-26 Michael Koch <konqueror@gmx.de>
7019 * gnu/java/nio/FileLockImpl.java
7020 (finalize): Made protected.
7021 * java/nio/channels/FileChannel.java
7022 (MapMode.READ_ONLY): Made final.
7023 (MapMode.READ_WRITE): Made final.
7024 (MapMode.PRIVATE): Made final.
7025 * java/nio/channels/SocketChannel.java
7026 (open): Simplified code.
7027 * java/nio/channels/spi/AbstractSelectableChannel.java
7028 (registered): Unused, removed.
7029 (keyFor): Check channel is open, only locate key
7030 and not add a new one.
7031 (register): Don't delete attachments.
7033 2004-02-26 Michael Koch <konqueror@gmx.de>
7035 * gnu/java/awt/ComponentDataBlitOp.java
7036 (INSTANCE): Made final.
7037 * gnu/java/awt/image/ImageDecoder.java:
7039 (cm): Unused, removed.
7041 2004-02-26 Michael Koch <konqueror@gmx.de>
7043 * gnu/java/nio/DatagramChannelImpl.java
7044 (send): Check if target address is resolved.
7046 2004-02-26 Michael Koch <konqueror@gmx.de>
7048 * Makefile.am: Generate and install headers for inner classes in
7049 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
7050 * Makefile.in: Regenerated.
7052 2004-02-24 Anthony Green <green@redhat.com>
7054 * java/lang/StringBuffer.java: No need to NULL out remainder of
7055 buffer since ensureCapacity_unsynchronized will have done this for
7058 2004-02-20 Michael Koch <konqueror@gmx.de>
7060 * gnu/java/net/protocol/jar/Handler.java
7061 (): Removed unneeded check for file != null. java.net.URL.getFile()
7062 returns an empty string but never null.
7064 2004-02-20 Michael Koch <konqueror@gmx.de>
7066 * gnu/gcj/convert/Convert.java
7067 (main): Use equals() to compare strings.
7069 2004-02-20 Michael Koch <konqueror@gmx.de>
7071 * javax/swing/AbstractButton.java: Made several constants final.
7072 (getRolloverSelectedIcon): Made public.
7073 (getSelectedIcon): Made public.
7075 2004-02-16 Per Bothner <per@bothner.com>
7077 * java/nio/CharBufferImpl.java: Inline super constructor.
7078 * java/nio/DoubleBufferImpl.java: Likewise.
7079 * java/nio/FloatBufferImpl.java: Likewise.
7080 * java/nio/IntBufferImpl.java: Likewise.
7081 * java/nio/LongBufferImpl.java: Likewise.
7082 * java/nio/ShortBufferImpl.java: Likewise.
7083 * java/nio/CharBuffer.java: Remove unused constructor.
7084 * java/nio/DoubleBuffer.java: Likewise.
7085 * java/nio/FloatBuffer.java: Likewise.
7086 * java/nio/IntBuffer.java: Likewise.
7087 * java/nio/LongBuffer.java: Likewise.
7088 * java/nio/ShortBuffer.java: Likewise.
7089 * java/nio/CharViewBufferImpl.java: New convenience constructor.
7090 Fix buggy call to super constructor.
7091 * java/nio/DoubleViewBufferImpl.java: Likewise.
7092 * java/nio/FloatViewBufferImpl.java: Likewise.
7093 * java/nio/IntViewBufferImpl.java: Likewise.
7094 * java/nio/LongViewBufferImpl.java: Likewise.
7095 * java/nio/ShortViewBufferImpl.java: Likewise.
7097 * java/nio/ByteBuffer.java (endian): Make non-private so other
7098 java.nio classes can inherit it.
7099 (<init>): Don't bother clearing array_offset.
7100 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
7101 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
7102 Remove redundant test.
7104 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
7105 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
7106 Use new XxxViewBufferImpl constructors.
7107 * java/nio/MappedByteBufferImpl.java: Likewise.
7108 * java/nio/DirectByteBufferImpl.java: Likewise.
7110 * java/nio/ByteBufferImpl.java: Remove one constructor.
7111 Inline super in remaining constructor.
7112 * java/nio/ByteBuffer.java: Remove unused constructor.
7114 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
7116 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
7117 * java/nio/DirectByteBufferImpl.java (owner): New field.
7118 (offset): Remove unused field.
7119 (<init>): Modify one and add another constructor. Change callers.
7120 (allocateDirect): Removed - not used.
7121 (getImpl, putImpl): Make static and pass address explicitly,
7122 to make them useful for MappedByteBufferImpl.
7123 (get, put): Check for underflow. Modify for new getImpl.
7124 (getImpl): New native method where target is array.
7125 (get(byte[],int,int)): Use the above.
7126 (adjustAddress): New static native method.
7127 (slice, duplicate, asReadOnly): New implementations.
7128 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
7129 adjustAddress): New or updated native methods.
7131 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
7133 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
7134 overflow of fieldmapping.
7136 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
7138 * javax/swing/undo/UndoManager.java: Re-written from scratch.
7140 2004-02-14 Per Bothner <per@bothner.com>
7142 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
7143 Set closed before calling implCloseChannel, as in the spec.
7145 2004-02-09 Graydon Hoare <graydon@redhat.com>
7147 * javax/swing/ToggleButtonModel.java: Remove dead class.
7148 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
7149 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
7150 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
7151 * Makefile.am: Update for new and removed files.
7152 * Makefile.in: Regenerate.
7154 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
7155 * javax/swing/AbstractButton.java
7156 (AbstractButton): Initialize fields correctly in ctor.
7157 * javax/swing/JCheckbox.java
7158 (JCheckBox): Override painting flags.
7159 * javax/swing/DefaultButtonModel.java: Conform to sun.
7160 * javax/swing/JComponent.java (paint): Fill with background color
7162 (processComponentKeyEvent)
7165 (processMouseMotionEvent): Remove event-consuming empty methods.
7166 (getUIClassID): Return "ComponentUI" not "JComponent"
7167 * javax/swing/JFrame.java: Remove some debugging chatter.
7168 (JFrame): Subscribe to window events.
7169 * javax/swing/JRadioButton.java
7170 (JRadioButton): Override painting flags.
7171 * javax/swing/JRootPane.java
7172 (JRootPane): Set background from UIDefaults.
7173 * javax/swing/JToggleButton.java
7174 (ToggleButtonModel): New inner class.
7175 (JToggleButton): Override layout alighment.
7176 * javax/swing/SwingUtilities.java:
7177 (getLocalBounds): Return width and height, not x and y.
7178 (calculateInnerArea): Use local bounds, not bounds.
7179 (layoutCompoundLabel): Provide overridden form.
7180 (layoutCompoundLabel): Correct bugs.
7181 * javax/swing/UIDefaults.java: Correct comment.
7182 * javax/swing/plaf/basic/BasicButtonUI.java:
7183 Move most logic into defaults, external listener.
7184 (paintIcon): Implement icon painting.
7185 (paint): Fix state painting to conform to changes in model.
7186 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
7187 Remove most dead/wrong methods.
7188 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7189 * javax/swing/plaf/basic/BasicIconFactory.java:
7190 (DummyIcon): New class.
7191 (getMenuItemCheckIcon)
7192 (getMenuItemArrowIcon)
7194 (getCheckBoxMenuItemIcon)
7195 (getRadioButtonMenuItemIcon)
7196 (createEmptyFrameIcon): Return DummyIcons, not null.
7197 (getCheckBoxIcon): Implement an icon that looks like sun's.
7198 (getRadioButtonIcon): Implement an icon that looks like sun's.
7199 * javax/swing/plaf/basic/BasicLookAndFeel.java
7200 (initComponentDefaults): Fix impossible values, add some missing.
7201 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7202 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7203 Remove most dead/wrong methods.
7205 (getDefaultIcon): New method.
7206 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7207 Remove most dead/wrong methods.
7208 * javax/swing/plaf/metal/MetalLookAndFeel.java
7209 (getDefaults): Return super.getDefaults(), not BasicDefaults.
7210 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7211 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7212 Implement "clearing" as drawing, when on pixmap drawables.
7214 * javax/swing/JButton.java (getUIClassID):
7215 * javax/swing/JCheckBox.java (getUIClassID):
7216 * javax/swing/JEditorPane.java (getUIClassID):
7217 * javax/swing/JLabel.java (getUIClassID):
7218 * javax/swing/JList.java (getUIClassID):
7219 * javax/swing/JOptionPane.java (getUIClassID):
7220 * javax/swing/JPanel.java (getUIClassID):
7221 * javax/swing/JPasswordField.java (uiClassID):
7222 * javax/swing/JRadioButton.java (getUIClassID):
7223 * javax/swing/JRootPane.java (getUIClassID):
7224 * javax/swing/JScrollPane.java (getUIClassID):
7225 * javax/swing/JTabbedPane.java (getUIClassID):
7226 * javax/swing/JToggleButton.java (getUIClassID):
7227 * javax/swing/JTree.java (getUIClassID):
7228 * javax/swing/JViewport.java (getUIClassID):
7229 * javax/swing/text/JTextComponent.java (getUIClassID):
7230 Return "fooUI" not "Jfoo"
7232 2004-02-11 Michael Koch <konqueror@gmx.de>
7234 * java/net/DatagramSocket.java
7235 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7237 (setBroadcast): Likewise.
7238 * java/net/MulticastSocket.java
7239 (setLoopbackMode): Likewise.
7240 * java/net/ServerSocket.java
7241 (setReuseAddress): Likewise.
7242 * java/net/Socket.java
7243 (setTcpNoDelay): Likewise.
7244 (setSoLinger): Likewise.
7245 (setOOBInline): Likewise.
7246 (setKeepAlive): Likewise.
7247 (setReuseAddress): Likewise.
7248 * java/net/URLConnection.java
7249 (setContentHandler): Replace == with equals().
7250 * java/net/URLStreamHandler.java
7251 (hostSEquals): Fix checking host addresses.
7252 (toExternalForm): Dont check protocol for null. We know already its
7255 2004-02-10 David Jee <djee@redhat.com>
7257 * java/awt/BorderLayout.java
7258 (calcCompSize): Invisible components get zero dimensions.
7259 * java/awt/Button.java
7260 (setLabel): Set actionCommand.
7261 * java/awt/Component.java
7262 (show): Invalidate component and parent container.
7265 2004-02-10 David Jee <djee@redhat.com>
7267 * java/awt/GridBagLayout.java
7268 (GridBagLayout): New private field, internalcomptable.
7269 (lookupInternalConstraints): New method.
7270 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7271 (GetLayoutInfo): Reimplement.
7272 (calcCellSizes): Ignore rows/columns with size 0.
7274 2004-02-10 Michael Koch <konqueror@gmx.de>
7276 * gnu/java/awt/EmbeddedWindow.java
7277 (setHandle): Use java.awt.Component.getPeer() instead of
7278 java.awt.Component.peer directly.
7280 2004-02-10 David Jee <djee@redhat.com>
7282 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7283 (gtkSetLabel): New native method definition.
7284 (setLabel): Use gtkSetLabel.
7285 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7286 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7288 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7290 * include/powerpc-signal.h: Revert 2004-01-21 change.
7291 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7292 from syscall for ppc32 versions.
7294 2004-02-08 Per Bothner <per@bothner.com>
7296 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7297 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7298 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7299 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7300 Pass ByteOrder parameter to most methods, since the underlying
7301 ByteBuffer's order isn't always what we should use.
7302 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7303 * java/nio/DirectByteBufferImpl.java: Likewise.
7304 Use ByteBufferHelper methods.
7305 * java/nio/MappedByteBufferImpl.java: Likewise.
7306 (compact): Use shiftDown.
7307 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7308 (get, put): Use ByteBufferHelper.
7309 (compact): Use new shiftDown method.
7310 (duplicate(boolean)): New helper method.
7311 (duplicate, asReadOnlyBuffer): Use it.
7312 (order): Return endian field.
7313 * java/nio/DoubleViewBufferImpl.java: Likewise.
7314 * java/nio/FloatViewBufferImpl.java: Likewise.
7315 * java/nio/IntViewBufferImpl.java: Likewise.
7316 * java/nio/LongViewBufferImpl.java: Likewise.
7317 * java/nio/ShortViewBufferImpl.java: Likewise.
7318 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7319 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7320 (compact): Re-implement using shiftDown.
7322 2004-02-08 Andreas Jaeger <aj@suse.de>
7324 * include/x86_64-signal.h: Fix typo.
7326 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7328 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7330 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7332 2004-02-06 Michael Koch <konqueror@gmx.de>
7334 * java/io/ObjectInputStream.java
7335 (currentClassLoader): Reverted to old version of this method.
7337 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7339 * java/io/ObjectInputStream.java: Made all calls
7340 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7341 use cached info from ObjectStreamClass. (readClassDescriptor):
7342 Cache more information in ObjectStreamClass. (processResolution,
7343 readFields): Use cached info from ObjectStreamClass.
7344 (newObject): Throw exception instead of returning null for failure.
7345 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7346 setCharField, setDoubleField, setFloatField, setIntField,
7347 setLongField, setShortField, setObjectField, readObjectParams):
7348 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7350 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7351 (setClass): Added call to cacheMethods() (findMethod): New method.
7352 (cacheMethods): New method. (ObjectStreamClass): Added call to
7353 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7354 AccessController.doPrivileged to invoke setAccessible.
7355 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7356 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7358 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7359 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7360 isPrimitive): Made safe for cases where type == null.
7361 (setBooleanField, setByteField, setCharField, setShortField,
7362 setIntField, setLongField, setFloatField, setDoubleField,
7363 setObjectField): New methods.
7365 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7367 * java/awt/Component.java (getFont): Return a default font
7370 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7371 (Scrollbar (int, int, int, int, int)): Make default page
7373 (setValues): Only call peer.setValues if one of the values has
7375 (generateName): New method.
7376 (getUniqueLong): New method.
7377 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7378 (range_scrollbar): Remove structure.
7379 (post_adjustment_event): Remove function.
7380 (post_change_event): Accept jobject argument.
7381 (create): Cast jints to gdoubles. Round scrollbar values to the
7382 nearest integer. Clamp min, max and value settings.
7383 (connectJObject): Connect hook to widget->window.
7384 (connectSignals): Remove range_scrollbar structure variables.
7385 Remove "move-slider" connection. Pass global peer reference to
7386 "value-changed" callback.
7387 (setLineIncrement): Cast jint value to gdouble.
7388 (setPageIncrement): Likewise.
7389 (setValues): Likewise. Clamp min, max and value settings.
7391 2004-02-05 Michael Koch <konqueror@gmx.de>
7393 * javax/swing/AbstractCellEditor.java
7394 (getCellEditorValue): Removed.
7395 * javax/swing/Box.java: Reformated.
7396 (serialVersionUID): New field.
7397 * javax/swing/ButtonGroup.java:
7398 Removed some weird whitespace.
7399 * javax/swing/CellEditor.java: Reformated.
7400 * javax/swing/CellRendererPane.java
7401 (serialVersionUID): New field.
7402 (AccessibleCellRendererPaneserialVersionUID): New field.
7403 * javax/swing/DefaultListModel.java
7404 (serialVersionUID): New field.
7405 * javax/swing/JEditorPane.java
7406 (serialVersionUID): New field.
7407 (setPage): Throws IOException.
7408 (addHyperlinkListener): Implemented.
7409 (removeHyperlinkListener): Implemented.
7410 (getHyperlinkListener): New method.
7411 * javax/swing/JFileChooser.java
7412 (serialVersionUID): New field.
7413 (AccessibleJFileChooser.serialVersionUID): New field.
7414 (addActionListener): Implemented.
7415 (removeActionListener): Implemented.
7416 (getActionListeners): New method.
7417 * javax/swing/JFormattedTextField.java
7418 (serialVersionUID): New field.
7419 (AbstractFormatter.serialVersionUID): New field.
7420 (clone): Throws CloneNotSupportedException
7421 (setEditValid): Add missing argument.
7422 (stringToValue): Throws ParseExcpetion.
7423 (valueToString): Throws ParseException.
7424 (commitEdit): Throws ParseException.
7425 * javax/swing/JLabel.java
7426 (serialVersionUID): New field.
7427 * javax/swing/JList.java
7428 (serialVersionUID): New field.
7429 (addListSelectionListener): Reformated.
7430 (removeListSelectionListener): Reformated.
7431 (getListSelectionListeners): New method.
7432 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7434 (serialVersionUID): New field.
7435 * javax/swing/table/AbstractTableModel.java
7436 (getValueAt): Removed.
7437 (getColumnCount): Removed.
7438 (getRowCount): Removed.
7440 2004-02-05 Michael Koch <konqueror@gmx.de>
7442 * java/awt/datatransfer/DataFlavor.java
7443 (imageFlavor): Javadoc added.
7444 (javaJVMLocalObjectType): Fixed.
7446 2004-02-05 Michael Koch <konqueror@gmx.de>
7448 * java/lang/Thread.java
7449 (Thread): Reordered.
7450 (setContextClassLoader): Fixed javadoc comment.
7451 (setPriority): Reordered.
7453 (initialize_native): Reordered.
7454 (gen_name): Reordered.
7456 2004-02-05 Michael Koch <konqueror@gmx.de>
7458 * java/lang/Thread.java: Reordered fields, reformated much code,
7459 no functional changes, some variables renamed, javadoc comments
7462 2004-02-05 Michael Koch <konqueror@gmx.de>
7464 * java/util/zip/Deflater.java,
7465 java/util/zip/DeflaterOutputStream.java,
7466 java/util/zip/GZIPInputStream.java:
7467 Reformated and javadoc comments merged from classpath.
7469 2004-02-05 Michael Koch <konqueror@gmx.de>
7471 * gnu/java/nio/NIOServerSocket.java
7472 (impl): Unused, removed.
7473 * gnu/java/nio/SocketChannelImpl.java
7474 (finnishConnect): Don't throw NoConnectionPendingException if not
7475 connected or no connection pending.
7477 2004-02-02 Graydon Hoare <graydon@redhat.com>
7479 * javax/swing/SwingUtilities.java: Many new functions.
7480 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7481 * javax/swing/basic/BasicGraphicsUtils.java
7482 (getPreferredButtonSize): Start layout from top-left corner.
7484 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7486 * java/awt/geom/AffineTransform.java:
7487 Corrected comments on the field definitions for
7489 (shear): Fixed few errors that caused shear
7490 transformation to be performed incorrectly.
7491 (createInverse): Fixed to return correct
7492 inverse of the given matrix.
7494 2004-02-03 Tom Tromey <tromey@redhat.com>
7496 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7497 PATH or LD_LIBRARY_PATH is not set in parent environment.
7499 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7501 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7502 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7503 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7504 java/awt/Component.java, java/awt/Container.java,
7505 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7506 java/awt/LayoutManager2.java, java/awt/List.java,
7507 java/awt/Menu.java, java/awt/MenuBar.java,
7508 java/awt/MenuItem.java, java/awt/Polygon.java,
7509 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7510 java/awt/Scrollbar.java, java/awt/TextArea.java,
7511 java/awt/TextField.java,
7512 java/awt/image/renderable/RenderContext.java,
7513 javax/swing/JApplet.java: Fix handling of alias methods, where a
7514 method has been deprecated in favour of a new one with the same
7515 funtion but a different name. Put the method implementation in
7516 the deprecated method and have the new method call the
7517 deprecated one. Make all other code call the new method.
7519 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7521 * gnu/java/nio/DatagramChannelImpl.java
7522 (inChannelOperation): New field.
7523 (isInChannelOperation): New accessor.
7524 (setInChannelOperation): New modifier.
7525 (receive): Use capacity() - position() of destination
7526 buffer instead of remaining(). Set and reset our "in
7527 channel operation indicator" before and after delegating
7528 the receive to our datagram socket. Removed testing code.
7529 Update destination buffer's current position if it is
7530 backed by a byte array (hasArray() is true).
7531 (send): Set and reset our "in channel operation indicator"
7532 before and after delegating the send to our datagram socket.
7533 Removed testing code. Update source buffer's current position
7534 if it is backed by a byte array (hasArray() is true).
7535 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7536 Use capacity() - position() of destination buffer instead
7538 * java/net/DatagramSocket.java (receive): Don't throw an
7539 IllegalBlockingModeException if we have a non-blocking
7540 channel which initiated this operation.
7543 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7545 * configure.in: Add pkgconfig check for glib and gthread.
7546 * configure: Regenerate.
7548 2004-02-01 Michael Koch <konqueror@gmx.de>
7550 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7552 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7553 * verify.cc (debug_print): Mark 'fmt' unused.
7555 2004-01-30 Michael Koch <konqueror@gmx.de>
7557 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7558 * configure: Regenerated.
7559 * glib-2.0.m4: Removed.
7560 * gtk-2.0.m4: Removed.
7561 * libart.m4: Removed.
7564 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7566 * gnu/java/net/PlainSocketImpl.java
7567 (inChannelOperation): New field.
7568 (isInChannelOperation): New accessor.
7569 (setInChannelOperation): New modifier.
7570 * gnu/java/nio/ServerSocketChannelImpl.java
7571 (accept): Set and reset our server socket's PlainSocketImpl's
7572 "in channel operation" indicator before and after delegating
7573 the accept to our server socket.
7574 * gnu/java/nio/SocketChannelImpl.java
7575 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7576 operation" indicator before and after delegating the operation to
7580 * java/net/ServerSocket.java (implAccept): Don't throw an
7581 IllegalBlockingModeException if we have a non-blocking
7582 channel which initiated this accept operation.
7583 * java/net/Socket.java (connect): Don't throw an
7584 IllegalBlockingModeException if we have a non-blocking
7585 channel which initiated this connect operation.
7586 * java/nio/channels/spi/AbstractSelectableChannel.java
7587 (configureBlocking): Only call implConfigureBlocking() if
7588 the desired blocking mode is different from our current one.
7590 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7592 * java/io/BufferedReader.java (sbuf): New field.
7593 (readLine): Use String.valueOf instead of new String() as per
7594 Per Bothner's suggestion. Use instance sbuf field instead of a
7595 local StringBuffer instance.
7596 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7597 caller's buffer to refill().
7598 (read(void)): Pass our internal work buffer to refill if our
7599 input queue is empty.
7600 (refill): Changed return type to int. Use the specified buffer
7601 instead of our work buffer as per Bryce McKinlay's suggestion.
7602 Return the number of characters read or -1 for EOF.
7604 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7606 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7608 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7610 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7611 * Makefile.in: Re-generated.
7612 * gnu/awt/xlib/XFontPeer.java: New file.
7613 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7614 (setClip): Commented out debug printout.
7615 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7616 (getFontPeer): Return XFontPeer.
7617 (getLocalGraphicsEnvironment): New method.
7618 (getClasspathFontPeer): New method.
7619 (createFont): New method.
7621 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7623 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7626 2004-01-29 Kim Ho <kho@redhat.com>
7628 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7629 (gtkLayoutSetVisible): New method
7630 (setMenuBar): Hide layout before setting MenuBar
7631 and reshow it after.
7632 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7633 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7635 2004-01-28 Michael Koch <konqueror@gmx.de>
7637 * gnu/java/lang/ClassHelper.java
7638 (getPackagePortion): Removed.
7640 2004-01-28 Michael Koch <konqueror@gmx.de>
7642 * javax/swing/JComponent.java
7643 (listenerList): Initalize globally.
7644 (ancestor_list): Removed.
7645 (veto_list): Removed.
7646 (change_list): Removed.
7647 (get_veto_list): Removed.
7648 (get_change_list): Removed.
7649 (get_ancestor_list): Removed.
7650 (removeAncestorListener): Reimplemented.
7651 (removePropertyChangeListener): Likewise.
7652 (removeVetoableChangeListener): Likewise.
7653 (addAncestorListener): Likewise.
7654 (addPropertyChangeListener): Likewise.
7655 (addVetoableChangeListener): Likewise.
7656 (getListeners): New method.
7657 (getAncestorListeners): Likewise.
7658 (getVetoableChangeListeners): Likewise.
7659 (fireVetoableChange): Throws PropertyVetoException.
7660 * javax/swing/JEditorPane.java
7661 (JEditorPane): Throws IOException.
7663 2004-01-28 David Jee <djee@redhat.com>
7665 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7666 (create): Set the default foreground color to
7667 java.awt.SystemColor.windowText.
7669 2004-01-27 Michael Koch <konqueror@gmx.de>
7671 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7672 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7673 Reindented to merge with classpath.
7675 2004-01-27 David Jee <djee@redhat.com>
7677 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7678 (addExposeFilter): Handle GtkFramePeer separately.
7679 (removeExposeFilter): Likewise.
7681 2004-01-27 Michael Koch <konqueror@gmx.de>
7683 * gnu/java/net/protocol/http/Connection.java
7684 (getOutputStream): Fixed typo.
7686 2004-01-27 Michael Koch <konqueror@gmx.de>
7688 * java/lang/Class.java
7689 (getConstructor): Removed SecurityException from throws clause.
7690 (_getConstructors): Likewise.
7691 (getConstructors): Likewise.
7692 (getDeclaredConstructor): Likewise.
7693 (getDeclaredClasses): Likewise.
7694 (getDeclaredConstructors): Likewise.
7695 (getDeclaredField): Likewise.
7696 (getDeclaredMethod): Likewise.
7697 (getDeclaredMethods): Likewise.
7698 (getField): Likewise.
7699 (getMethod): Likewise.
7700 (getMethods): Likewise.
7702 2004-01-27 Kim Ho <kho@redhat.com>
7704 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7705 (removeMenuBarPeer): Remove MenuBarPeer argument.
7706 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7707 (dispose): Call native method.
7708 * java/awt/Frame.java (setMenuBar): Create and remove
7709 MenuBar peers only if the Frame has a peer.
7710 (addNotify): Create the MenuBar peer if one exists.
7711 (removeNotify): Remove MenuBar peer if one exists.
7712 * java/awt/Menu.java: Fix imports.
7713 (addNotify): Don't use full class name.
7714 (removeNotify): Call removeNotify on all children.
7715 * java/awt/MenuBar.java (removeNotify): Call
7716 removeNotify on all children.
7717 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7718 (removeMenuBarPeer): Remove MenuBarPeer argument.
7719 Iterate through children to find the Frame's MenuBar.
7720 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7722 (dispose): Remove references to the MenuComponent.
7724 2004-01-27 Michael Koch <konqueror@gmx.de>
7726 * javax/swing/AbstractCellEditor.java: Reformated.
7727 * javax/swing/DefaultListSelectionModel.java
7728 (listenerList): Made protected.
7729 (addListSelectionListener): Javadoc added.
7730 (removeListSelectionListener): Likewise.
7731 (getListeners): Likewise.
7732 (getListSelectionListeners): Likewise.
7733 * javax/swing/JComboBox.java: Merged copyright year.
7734 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7736 2004-01-26 Andrew Haley <aph@redhat.com>
7738 * javax/swing/table/JTableHeader.java: Extend JComponent
7740 2004-01-26 Kim Ho <kho@redhat.com>
7742 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7745 2004-01-26 Kim Ho <kho@redhat.com>
7747 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7749 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7750 height and let the Layout Managers readjust anything that
7752 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7753 (moveLayout): New method. Shift everything in the Gtk
7754 layout in the Y direction by an offset.
7756 2004-01-26 David Jee <djee@redhat.com>
7758 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7759 (handleEvent): Implemented. Handles PaintEvents.
7760 (paint): Implemented. Use GTK native methods to queue updates
7761 for this heavyweight peer.
7762 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7763 (handleEvent): Removed.
7764 * java/awt/Component.java
7765 (paint): Implemented. Explictly paint the heavyweight peer.
7766 (update): Clear the background for heavyweight components.
7767 (paintAll): No need to call peer.paint() anymore.
7768 (processEvent): Don't process PaintEvents here. It's now done in
7769 the peer's handleEvent().
7770 (processPaintEvent): Removed.
7771 * java/awt/Container.java
7772 (paint): No need to call super.paint(). Visit heavyweight
7774 (update): Don't clear the background here. It's done in
7776 (visitChildren): Added check to not recurse into Containers.
7777 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7778 (filter_expose_event_handler): New method. Filter unwanted
7779 expose events while painting heavyweight peers.
7780 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7781 New method. Connect filter and block pre_event_handler.
7782 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7783 New method. Disconnect filter and unblock pre_event_handler.
7784 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7785 New method. Invalidate and update given area.
7786 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7787 (pre_event_handler): Add checks for unwanted expose events.
7789 2004-01-26 David Jee <djee@redhat.com>
7791 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7792 (find_bg_color_widget): For GtkButton, return its child.
7794 2004-01-26 Kim Ho <kho@redhat.com>
7796 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7798 (setMenuBar): Grab MenuBar height and change insets.
7799 (setBounds): Account for MenuBar height.
7800 (postInsetsChangedEvent): Ditto.
7801 (postSizeAllocateEvent): Remove.
7802 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7803 (menubar_resize_cb): Remove
7804 (setMenuBarPeer): Remove callback.
7805 (getMenuBarHeight): Use size requisition instead of
7808 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7810 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7811 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7813 (setColumns): Remove FIXME -- peer will retrieve number of
7814 columns by calling getColumns.
7815 (setRows): Likewise for number of rows.
7816 (next_text_number): New field.
7817 (paramString): Fix param string.
7818 (generateName): New method.
7819 (getUniqueLong): New method.
7821 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7823 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7824 image observer of image loading status.
7825 (getImage (String)): Start image production.
7826 (getImage (URL)): Likewise.
7828 2004-01-25 Michael Koch <konqueror@gmx.de>
7830 * java/lang/Class.java: Imports reworked, reformated.
7831 (Class): Javadoc added.
7832 (forName): Likewise.
7833 (getClasses): Likewise.
7834 (getClassLoader): Likewise.
7835 (getComponentType): Likewise.
7836 (getConstructor): Likewise.
7837 (getConstructors): Likewise.
7838 (getDeclaredConstructor): Likewise.
7839 (getDeclaredClasses): Likewise.
7840 (getDeclaredConstructors): Likewise.
7841 (getDeclaredField): Likewise.
7842 (getDeclaredMethod): Likewise.
7843 (getDeclaredMethods): Likewise.
7844 (getDeclaringClass): Likewise.
7845 (getField): Likewise.
7846 (getInterfaces): Likewise.
7847 (getMethod): Likewise.
7848 (getMethods): Likewise.
7849 (getModifiers): Likewise.
7850 (getName): Likewise.
7851 (getResource): Likewise.
7852 (getResourceAsStream): Likewise.
7853 (getSigners): Likewise.
7854 (setSigners): Likewise.
7855 (getSuperclass): Likewise.
7856 (isArray): Likewise.
7857 (isAssignableFrom): Likewise.
7858 (isInstance): Likewise.
7859 (isInterface): Likewise.
7860 (isPrimitive): Likewise.
7861 (newInstance): Likewise.
7862 (getProtectionDomain): Likewise.
7863 (toString): Likewise.
7865 (initializeClass): Likewise.
7866 (finalize): Likewise.
7868 2004-01-24 Michael Koch <konqueror@gmx.de>
7870 * gnu/java/net/protocol/jar/Connection.java
7873 (gotHeaders): Removed.
7874 (getHeaderField): Removed.
7875 (getHeaderFields): Removed.
7876 (getHeaderFieldKey): Removed.
7878 (getField): Removed.
7879 (getHeaders): Removed.
7881 2004-01-24 Michael Koch <konqueror@gmx.de>
7883 * Makefile.am: Added library version to gtk peer lib.
7884 * Makefile.in: Regenerated.
7886 2004-01-24 Michael Koch <konqueror@gmx.de>
7888 * java/util/zip/InflaterInputStream.java: Merged class documentation
7891 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7893 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7894 header. For __powerpc64__ provide the default-signal.h definitions
7896 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7897 instead of the dummy definitions.
7898 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7899 (powerpc64*-*): Remove with_libffi_default.
7900 Only add -mminimal-toc for 64-bit compilations.
7901 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7902 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7903 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7904 * configure: Rebuilt.
7906 2004-01-23 Michael Koch <konqueror@gmx.de>
7908 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7910 2004-01-23 Michael Koch <konqueror@gmx.de>
7912 * java/lang/VMClassLoader.java: Reworked imports.
7914 2004-01-23 Michael Koch <konqueror@gmx.de>
7916 * javax/swing/AbstractAction.java: Reformated.
7918 2004-01-23 Michael Koch <konqueror@gmx.de>
7920 * java/text/CollationElementIterator.java:
7921 (setText): New method.
7923 2004-01-23 Michael Koch <konqueror@gmx.de>
7925 * gnu/java/nio/FileLockImpl.java:
7926 Fixed filename in copyright.
7927 (released): Removed.
7928 (finalize): New method.
7929 * gnu/java/nio/natFileLockImpl.cc
7930 (releaseImpl): Implemented.
7931 * java/nio/channels/FileChannelImpl.java:
7933 (lock): Implemented.
7934 (lockImpl): New method.
7935 (tryLock): Implemented.
7936 (tryLockImpl): New method.
7937 * java/nio/channels/natFileChannelImpl.cc
7938 (lockImpl): New method.
7939 (tryLockImpl): New method.
7941 2004-01-23 Michael Koch <konqueror@gmx.de>
7943 * java/io/FileDescriptor.java
7945 (tryLock): New method.
7946 (unlock): New method.
7947 * java/io/natFileDescriptorEcos.cc
7949 (tryLock): New method.
7950 (unlock): New method.
7951 * java/io/natFileDescriptorPosix.cc
7953 (tryLock): New method.
7954 (unlock): New method.
7955 * java/io/natFileDescriptorWin32.cc
7957 (tryLock): New method.
7958 (unlock): New method.
7960 2004-01-23 Michael Koch <konqueror@gmx.de>
7962 * java/io/FileDescriptor.java
7963 (sync): Moved around, added javadoc.
7968 (setLength): Likewise.
7970 (getLength): Likewise.
7971 (getFilePointer): Likewise.
7973 (available): Likewise.
7974 (finalize): Likewise.
7976 2004-01-23 Michael Koch <konqueror@gmx.de>
7978 * javax/swing/AbstractAction.java: Reformated.
7979 (getPropertyChangeListeners): New method.
7980 * javax/swing/AbstractCellEditor.java: Reformated.
7981 (getCellEditorListeners): New method.
7982 * javax/swing/DefaultListSelectionModel.java
7983 (listenerList): New field.
7984 (listeners): Removed.
7985 (get_listeners): Removed.
7986 (addListSelectionListener): Rewritten.
7987 (removeListSelectionListener): Rewritten.
7988 (getListSelectionListeners): New method.
7989 (getListeners): New method.
7990 * javax/swing/JComboBox.java: Imports reworked.
7991 (addActionListener): Implemented.
7992 (removeActionListener): Implemented.
7993 (addItemListener): Implemented.
7994 (removeItemListener): Implemented.
7995 (addPopupMenuListener): Implemented.
7996 (removePopupMenuListener): Implemented.
7997 (getActionListeners): New method.
7998 (getItemListeners): New method.
7999 (getPopupMenuListeners): New method.
8001 2004-01-23 Michael Koch <konqueror@gmx.de>
8003 * gnu/java/net/protocol/http/Connection.java
8004 (connect): Don't initialize bufferedOutputStream if not needed.
8005 (sendRequest): Set property for content length if content is present.
8006 Write content only if present.
8007 (getOutputStream): Check if already connected, dont connect,
8008 initalize bufferedOutputStream if needed.
8010 2004-01-23 Michael Koch <konqueror@gmx.de>
8012 * java/io/FileDescriptor.java
8013 (in, out, err): Added javadoc.
8014 (static): Merged loading code.
8015 (fd, position): Moved around.
8017 2004-01-23 Michael Koch <konqueror@gmx.de>
8019 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
8022 2004-01-23 Michael Koch <konqueror@gmx.de>
8024 * java/lang/Class.java,
8025 java/lang/Object.java,
8026 java/lang/Thread.java: Merged copyright with classpath.
8028 2004-01-23 Michael Koch <konqueror@gmx.de>
8030 * java/io/FileDescriptor.java: Merged copyright with classpath to
8031 start merging this class.
8033 2004-01-22 Tom Tromey <tromey@redhat.com>
8036 * testsuite/libjava.lang/pr13107_2.xfail: New file.
8037 * testsuite/libjava.lang/pr13107_3.xfail: New file.
8038 * testsuite/libjava.lang/pr13107_3.java: New file.
8039 * testsuite/libjava.lang/pr13107_3.out: New file.
8040 * testsuite/libjava.lang/pr13107_2.java: New file.
8041 * testsuite/libjava.lang/pr13107_2.out: New file.
8042 * testsuite/libjava.lang/pr13107.java: New file.
8043 * testsuite/libjava.lang/pr13107.out: New file.
8044 * verify.cc (jsr_ptrs): Removed.
8045 (entry_points): Likewise.
8046 (struct subr_info): Likewise.
8047 (struct subr_entry_info): Likewise.
8048 (type_val::unused_by_subroutine_type): Likewise.
8049 (type::merge): Don't handle unused_by_subroutine_type.
8050 (type::print): Likewise.
8051 (state::flags): Removed.
8052 (state::subroutine): Likewise.
8053 (state::seen_subrs): Likewise.
8054 (state::NO_STACK): Likewise.
8055 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
8056 (state): Updated all methods.
8057 (state::clean_subrs): Removed.
8058 (state::state): Removed `ret_semantics' flag.
8059 (state::copy): Likewise.
8060 (state::add_subr): Removed.
8061 (state::enter_subroutine): Likewise.
8062 (type::set_return_address): New method.
8063 (handle_jsr_insn): Set return address on the type. Always
8064 invalidate PC after call.
8065 (check_nonrecursive_call): Removed.
8066 (~_Jv_BytecodeVerifier): Updated.
8067 (branch_prepass): Removed special handling of jsr.
8068 (note_branch_target): Likewise.
8069 (get_subroutine): Removed.
8070 (state::merge): Don't merge subroutines and don't handle
8071 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
8072 (state::note_variable): Removed.
8073 (state::is_unmerged_ret_state): Likewise.
8074 (state::print): Updated.
8075 (set_variable): Likewise.
8076 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
8077 and jsr_semantics arguments. Updated for new reverification
8079 (pop_jump): Rewrote.
8080 (construct_primitive_array_type): Updated.
8081 (state::next): Removed.
8082 (INVALID_STATE): New define.
8083 (state::INVALID): Removed.
8084 (state::NO_NEXT): New value.
8085 (state::pc, state::next): New fields.
8086 (state::get_pc): New method.
8087 (next_verify_pc): Removed.
8088 (next_verify_state): New field.
8089 (verify_instructions_0): Always check for falling off end.
8091 (linked_utf8): Removed.
8092 (states): Changed type.
8093 (type::state_mergeable_p): New method.
8094 (state::state_mergeable_p): Likewise.
8095 (handle_ret_insn): Removed most code.
8096 (state::reverify): New method.
8097 (add_new_state): Likewise.
8098 (state::set_pc): Likewise.
8100 2004-01-22 Jeff Sturm <jsturm@one-point.com>
8103 * testsuite/libjava.compile/PR13733.java: New file.
8104 * testsuite/libjava.compile/PR13733.xfail: New file.
8106 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
8107 Michael Koch <konqueror@gmx.de>
8109 * javax/swing/table/DefaultTableCellRenderer.java
8110 (DefaultTableCellRenderer): Added javadoc for the class and for
8111 the constructor, Border instance, create an EmptyBorder.
8112 (UIResource): Removed the comment at the end of the class
8113 (setForeground): New method.
8114 (setBackground): New method.
8115 (updateUI): New method.
8116 (getTableCellRendererComponent): Rewritten with the help of
8117 dvholten and Stephane Meslin-Weber.
8118 (validate): New method.
8119 (repaint): New method.
8120 (firePropertyChange): New method.
8121 (setValue): New method.
8123 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
8125 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8126 (connectJObject): Replace printf calls with g_assert statements.
8127 Move property-notify-event signal connection to ...
8128 (connectSignals): Connect property-notify-event signal. Iterate
8129 through the vbox's children to find layout.
8131 2004-01-22 Graydon Hoare <graydon@redhat.com>
8133 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
8134 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
8135 Predicate static initialization on GtkToolkit.useGraphics2D().
8136 * java/awt/Component.java (processPaintEvent): Consume event.
8137 * javax/swing/AbstractButton.java: Reimplement, document.
8138 * javax/swing/DefaultButtonModel.java: Reimplement, document.
8139 * javax/swing/JComponent.java (paint): Use double buffer.
8140 (listenerList): Enable member.
8141 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
8142 * javax/swing/JToggleButton.java
8143 (JToggleButton): Modify model constructor.
8144 * javax/swing/SwingUtilities.java
8145 (layoutCompoundLabel): Adjust arithmetic.
8146 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
8147 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8148 (getPreferredButtonSize): Include margins in calculation.
8149 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8150 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
8151 Receive up events from subordinate layout component.
8153 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
8155 * java/awt/Component.java (show): Set visible to true before
8158 2004-01-21 Kim Ho <kho@redhat.com>
8160 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
8162 (removeMenuBarPeer): Make package private.
8163 (setMenuBarPeer): Make package private.
8164 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8165 (menubar_resize_cb): Mark attributes unused.
8166 (getMenuBarHeight): ditto.
8168 2004-01-21 David Jee <djee@redhat.com>
8170 * java/awt/Container.java
8171 (LightweightDispatcher.handleEvent): Add an extra check to avoid
8172 dispatching MOUSE_ENTERED event twice. Translate the point for
8173 the mouse event target before dispatching the event.
8175 2004-01-20 Jakub Jelinek <jakub@redhat.com>
8177 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
8178 lib_org_w3c_dom_la_LDFLAGS): New.
8179 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
8180 * Makefile.in: Rebuilt.
8182 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
8184 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
8185 Calculate proper offsets for heavyweight components packed in
8186 lightweight containers.
8188 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8189 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8190 (native create): Add width parameter.
8191 (create): Calculate text entry width based on current font's
8192 metrics and number of columns. Set TextField's font if not
8193 already set. Call native create.
8194 (gtkEntryGetBorderWidth): New native method.
8195 (gtkEntryGetSize): Remove method.
8196 (getMinimumSize): Call minimumSize.
8197 (getPreferredSize): Call preferredSize.
8198 (minimumSize): Calculate minimum size based on backing
8199 GtkEntry's borders, font metrics and number of columns.
8200 (preferredSize): Likewise for preferred size.
8201 (get_border_width): New static function.
8203 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8204 Override GtkWindowPeer's setResizable method to account for menu
8205 bar height when setting the frame's size.
8207 2004-01-19 Matthias Klose <doko@debian.org>
8209 * libtool-version: Increased `current' to 6.
8211 2004-01-19 Kim Ho <kho@redhat.com>
8213 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8214 (connectJObject): Iterate through the vbox's children to find layout.
8216 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8218 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8219 isDispatchThread method to replace wrong test condition.
8221 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8223 * java/awt/EventQueue.java (pop): Prevent racing condition to add
8224 events to the queue out of order by acquiring locks in the proper
8225 order and not by releasing one before acquiring the other.
8227 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8229 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8230 visible so that dialog can be reused.
8232 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8234 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8235 events may be handled by any queue in the stack.
8237 2004-01-19 Kim Ho <kho@redhat.com>
8239 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8240 MenuBarPeer parameter.
8241 (removeMenuBarPeer): New native method.
8242 (setMenuBar): Call remove if menu bar is null. Adjust insets
8244 (postSizeAllocateEvent): New method. Called when menu bar size is
8245 allocated. Adjust insets and redo layout.
8246 (GtkFramePeer): Set menu bar during frame creation.
8247 (postConfigureEvent): Adjust position and size to accomodate
8249 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8250 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8251 (addNotify): Create the peer if it doesn't exist and call addNotify
8252 for the menu's items.
8253 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8254 * java/awt/MenuItem.java (addNotify): Create the peer if it
8256 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8257 (removeMenuBarPeer): New method. Remove menu bar on the current
8259 (setMenuBarPeer): Add the menu bar to the current frame and the
8260 callback for size-allocate events on the menu bar.
8261 (getMenuBarHeight): Add menu bar parameter.
8262 (menubar_resize_cb): New callback method for postSizeAllocate events.
8264 Also: Fix indentation on last ChangeLog entry.
8266 2004-01-16 Kim Ho <kho@redhat.com>
8268 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8269 (gtkWidgetGetDimensions): Remove.
8270 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8271 (gtkWidgetGetDimensions): Remove.
8273 2004-01-16 Tom Tromey <tromey@redhat.com>
8275 * java/awt/Container.java: Typo and indentation fixes.
8277 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8278 * java/lang/natVMClassLoader.cc: ...here. New file.
8279 * Makefile.in: Rebuilt.
8280 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8282 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8284 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8285 Discard GDK_ENTER_NOTIFY related to ungrabs.
8287 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8289 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8290 is called for an intermediate queue.
8292 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8294 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8295 (window_property_changed_cb): Set id_set.
8297 2004-01-16 Kim Ho <kho@redhat.com>
8299 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8300 it is a FileDialog and has dimensions of 0 by 0, then the initial
8301 size is set to size request plus insets.
8302 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8303 (gtkWidgetGetDimensions): Override method.
8304 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8305 (gtkWidgetGetDimensions): Override method. Returns size request plus
8308 2004-01-16 Andrew Haley <aph@redhat.com>
8310 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8311 * sysdep/i386/locks.h: Likewise.
8313 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8315 * java/awt/EventDispatchThread.java (run): Stop running when
8317 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8318 Reset the queue after transferring its contents.
8319 (push): Start a new dispatch thread if none is running.
8321 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8323 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8324 (doPolygon): set fill rule of polygon to
8325 WIND_EVEN_ODD by default.
8327 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8329 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8330 Implemented rendering hints related methods.
8331 (getDefaultHints): New helper method. Returns
8332 default rendering hints.
8333 (walkPath): changed to normalize path if
8334 the KEY_STROKE_CONTROL key is in "normalize" mode.
8335 (draw3DRect): changed coordinates of rectangle by +0.5
8336 if in "normalize" mode.
8338 2004-01-15 Tom Tromey <tromey@redhat.com>
8340 * Makefile.in: Rebuilt.
8341 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8342 (%.lo: %.java) Filter out StackTrace.lo.
8344 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8346 * configure.in: Add in AC_PREREQ(2.13)
8347 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8350 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8351 Tom Tromey <tromey@redhat.com>
8354 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8355 array to superclass.
8356 (init): Changed interface; add URLs here.
8357 (initialize): New static method.
8358 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8359 (_Jv_RunMain): ... not here.
8361 2004-01-14 Michael Koch <konqueror@gmx.de>
8363 * java/text/MessageFormat.java:
8364 Added descriptions to exceptions.
8365 This fixes PR libgcj/2429.
8367 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8369 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8370 (push): Make sure push is performed at the top of the thread stack.
8372 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8374 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8375 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8376 (native create): Add width and height parameters. Set text
8377 view's size request according to new parameters.
8378 (create): Calculate text view size based on current font's
8379 metrics and number of rows and columns. Set TextArea's font if
8380 not already set. Call native create.
8381 (getMinimumSize): Call minimumSize.
8382 (getPreferredSize): Call preferredSize.
8383 (getHScrollbarHeight): New method.
8384 (getVScrollbarWidth): New method.
8385 (minimumSize): Calculate minimum size based on scrollbar
8386 visibility, scrollbar sizes, font metrics and number of rows and
8388 (preferredSize): Likewise for preferred size.
8389 (gtkTextGetSize): Remove method.
8391 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8393 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8394 (initializeInsets): Remove method.
8395 (GtkComponentPeer): Initialize insets field. Remove call to
8397 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8399 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8401 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8402 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8403 (latestInsets): Remove field.
8404 (native create): Add insets parameter. Call
8405 window_get_frame_extents. Set the window's default size and
8406 size request based on its frame extents.
8407 (create): Initialize insets.
8408 (postInsetsChangedEvent): New method.
8409 (postConfigureEvent): Remove parameters top, left, bottom,
8410 right. Remove insets-related logic.
8411 (connectJObject): Handle property-notify-event.
8412 (window_get_frame_extents, request_frame_extents,
8413 property_notify_predicate, window_property_changed_cb): New
8415 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8416 (pre_event_handler): Remove insets-related logic for configure
8418 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8419 Update postConfigureEvent signature.
8421 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8423 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8424 to handle Window "Closing" events.
8426 2004-01-13 David Jee <djee@redhat.com>
8428 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8429 (setBackground): New method. Children with no explicitly-set
8430 background will be repainted with the parent container's new
8433 2004-01-13 David Jee <djee@redhat.com>
8435 * Makefile.am: Add BitwiseXORComposite.java.
8436 * Makefile.in: Regenerated.
8437 * gcj/Makefile.in: Regenerated.
8438 * include/Makefile.in: Regenerated.
8439 * testsuite/Makefile.in: Regenerated.
8441 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8443 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8444 not show modal dialogs twice and so that it allows showing a modal
8445 dialog from another modal dialog.
8447 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8449 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8450 and run secondary dispatch thread to process event queue while this
8453 2004-01-12 Graydon Hoare <graydon@redhat.com>
8455 * gnu/java/awt/gtk/GdkGraphics2D.java
8456 (static): Check GtkToolkit before initializing static state.
8457 (Graphics2D): Don't construct transform with 0.5 unit offset.
8459 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8461 * gnu/java/awt/BitwiseXORComposite.java: Add.
8462 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8463 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8464 (BitwiseXORComposite): Remove inner class.
8466 2004-01-11 Michael Koch <konqueror@gmx.de>
8468 * gnu/java/lang/reflect/TypeSignature.java
8469 (getEncodingOfClass): Documentation fixed.
8470 (getClassForEncoding): Give class loader to Class.forName().
8471 Documentation fixed.
8473 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8475 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8477 2004-01-11 Michael Koch <konqueror@gmx.de>
8479 * javax/swing/undo/StateEditable.java
8480 (RCSID): Removed redundant modifiers.
8482 2004-01-10 Michael Koch <konqueror@gmx.de>
8484 * javax/print/attribute/EnumSyntax.java
8485 (getStringTable): Made protected.
8486 (getEnumValueTable): Likewise.
8487 * javax/print/attribute/standard/JobKOctetsProcessed.java
8488 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8489 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8490 (JobMediaSheetsCompleted): Made class final.
8491 * javax/print/attribute/standard/OutputDeviceAssigned.java
8492 (getName): Fixed typo.
8493 * javax/print/attribute/standard/RequestingUserName.java
8494 (serialVersionUID): Fixed value.
8496 2004-01-10 Michael Koch <konqueror@gmx.de>
8498 * javax/swing/plaf/basic/BasicButtonUI.java,
8499 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8500 javax/swing/plaf/basic/BasicListUI.java,
8501 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8502 javax/swing/plaf/basic/BasicPanelUI.java,
8503 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8504 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8505 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8506 javax/swing/plaf/basic/BasicViewportUI.java:
8507 Fixed import statements.
8509 2004-01-10 Michael Koch <konqueror@gmx.de>
8511 * gnu/java/awt/image/ImageDecoder.java
8512 (produce): Made public.
8513 * gnu/java/awt/peer/GLightweightPeer.java,
8514 gnu/java/awt/peer/gtk/GtkToolkit.java:
8517 2004-01-10 Michael Koch <konqueror@gmx.de>
8519 * javax/swing/JRadioButtonMenuItem.java,
8520 javax/swing/JSeparator.java,
8521 javax/swing/JSplitPane.java,
8522 javax/swing/JTextPane.java,
8523 javax/swing/JToolBar.java,
8524 javax/swing/ListCellRenderer.java,
8525 javax/swing/ListModel.java,
8526 javax/swing/MenuElement.java,
8527 javax/swing/OverlayLayout.java,
8528 javax/swing/ProgressMonitor.java,
8529 javax/swing/ProgressMonitorInputStream.java,
8530 javax/swing/Renderer.java,
8531 javax/swing/RootPaneContainer.java,
8532 javax/swing/Scrollable.java,
8533 javax/swing/SingleSelectionModel.java,
8534 javax/swing/ToolTipManager.java,
8535 javax/swing/ViewportLayout.java,
8536 javax/swing/event/DocumentEvent.java,
8537 javax/swing/event/SwingPropertyChangeSupport.java,
8538 javax/swing/event/TreeSelectionEvent.java,
8539 javax/swing/event/UndoableEditEvent.java,
8540 javax/swing/text/AbstractDocument.java,
8541 javax/swing/text/AttributeSet.java,
8542 javax/swing/text/Caret.java,
8543 javax/swing/text/ComponentView.java,
8544 javax/swing/text/DefaultCaret.java,
8545 javax/swing/text/DefaultEditorKit.java,
8546 javax/swing/text/Document.java,
8547 javax/swing/text/EditorKit.java,
8548 javax/swing/text/GapContent.java,
8549 javax/swing/text/Keymap.java,
8550 javax/swing/text/MutableAttributeSet.java,
8551 javax/swing/text/PlainEditorKit.java,
8552 javax/swing/text/Segment.java,
8553 javax/swing/text/Style.java,
8554 javax/swing/text/StyledDocument.java,
8555 javax/swing/text/StyledEditorKit.java,
8556 javax/swing/text/TextAction.java,
8557 javax/swing/text/View.java: Fixed import statements.
8559 2004-01-08 Graydon Hoare <graydon@redhat.com>
8561 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8562 djee@redhat.com's recent inverse ordering of Container elements.
8564 2004-01-09 Michael Koch <konqueror@gmx.de>
8566 * gnu/java/lang/ArrayHelper.java
8567 (equalsArray): Removed.
8569 2004-01-09 Andrew Haley <aph@redhat.com>
8571 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8572 a Utf8Const field before looking at its class.
8574 2004-01-09 Michael Koch <konqueror@gmx.de>
8576 * javax/print/attribute/standard/DocumentName.java,
8577 javax/print/attribute/standard/JobHoldUntil.java,
8578 javax/print/attribute/standard/JobMessageFromOperator.java,
8579 javax/print/attribute/standard/JobName.java,
8580 javax/print/attribute/standard/JobOriginatingUserName.java,
8581 javax/print/attribute/standard/OutputDeviceAssigned.java,
8582 javax/print/attribute/standard/PrinterInfo.java,
8583 javax/print/attribute/standard/PrinterLocation.java,
8584 javax/print/attribute/standard/PrinterMakeAndModel.java,
8585 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8586 javax/print/attribute/standard/PrinterName.java,
8587 javax/print/attribute/standard/RequestingUserName.java: New files.
8588 * Makefile.am (javax_source_files): Added new files.
8589 * Makefile.in: Regenerated.
8591 2004-01-09 Michael Koch <konqueror@gmx.de>
8593 * javax/swing/AbstractAction.java,
8594 javax/swing/AbstractSet.java,
8595 javax/swing/Action.java,
8596 javax/swing/ActionMap.java,
8597 javax/swing/BoundedRangeModel.java,
8598 javax/swing/ButtonModel.java,
8599 javax/swing/CellEditor.java,
8600 javax/swing/CellRendererPane.java,
8601 javax/swing/ComboBoxEditor.java,
8602 javax/swing/DebugGraphics.java,
8603 javax/swing/DefaultCellEditor.java,
8604 javax/swing/DefaultCellRenderer.java,
8605 javax/swing/DefaultComboBoxModel.java,
8606 javax/swing/DefaultDesktopManager.java,
8607 javax/swing/DefaultFocusManager.java,
8608 javax/swing/DefaultListCellRenderer.java,
8609 javax/swing/Icon.java,
8610 javax/swing/JButton.java,
8611 javax/swing/JCheckBoxMenuItem.java,
8612 javax/swing/JDesktopPane.java,
8613 javax/swing/JEditorPane.java,
8614 javax/swing/JMenu.java,
8615 javax/swing/JPanel.java,
8616 javax/swing/JPasswordField.java,
8617 javax/swing/JPopupMenu.java,
8618 javax/swing/JProgressBar.java: Reworked imports.
8620 2004-01-09 Michael Koch <konqueror@gmx.de>
8622 * java/awt/geom/PathIterator.java
8623 (WIND_EVEN_ODD): Removed redundant modifiers.
8624 (WIND_NON_ZERO): Likewise.
8625 (SEG_MOVETO): Likewise.
8626 (SEG_LINETO): Likewise.
8627 (SEG_QUADTO): Likewise.
8628 (SEG_CUBICTO): Likewise.
8629 (SEG_CLOSE): Likewise.
8630 * java/awt/image/SinglePixelPackedSampleModel.java:
8631 Removed redundant semicolon.
8632 * java/io/ObjectInputStream.java
8633 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8634 * java/util/logging/Filter.java
8635 (isLoggable): Removed redundant modifier.
8636 * java/util/logging/LogManager.java:
8637 Removed redundant semicolon.
8638 * java/util/logging/XMLFormatter.java
8639 (format): Removed unused variable "key".
8641 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8643 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8644 New name for the former setFile native method.
8645 (setFile): New method.
8646 (setDirectory): Implemented.
8647 (connectSignals): New native method.
8648 (setFilenameFilter): Improve comment.
8649 (getGraphics): Comment.
8650 (gtkHideFileDialog): New method.
8651 (gtkDisposeFileDialog): New method.
8652 (gtkSetFilename): New method.
8653 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8654 for FileDialog for now.
8656 (dispose): New method.
8657 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8658 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8659 deprecated creation functions. Make dialog modal. Add it to the
8661 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8663 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8665 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8667 (window_closed): New function.
8668 (ok_clicked): New function.
8669 (cancel_clicked): New function.
8671 2004-01-08 Michael Koch <konqueror@gmx.de>
8673 * javax/swing/JLayeredPane.java: Revert changes to standard
8674 boilerplate, reworked imports.
8676 2004-01-07 Tom Tromey <tromey@redhat.com>
8679 * verify.cc (state::merge): Copy changed locals out of subroutine
8681 (state::FLAG_CHANGED): New const.
8682 (state::FLAG_UNUSED): Likewise.
8683 (state::local_changed): Removed. Updated all users.
8684 (state::flags): New field.
8685 (state::merge): Added jsr_semantics argument, more logic.
8686 (push_jump_merge): Added jsr_semantics argument.
8687 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8688 merging through the jsr instruction.
8690 2004-01-07 Tom Tromey <tromey@redhat.com>
8692 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8695 2004-01-07 Graydon Hoare <graydon@redhat.com>
8697 * java/awt/Container.java (LightweightDispatcher): Implement.
8698 (visitChild): Reuse graphics object.
8699 (dispatchEventImpl): Optionally dispatch to lightweight.
8700 (addNotifyContainerChildren): Build LightweightDispatcher.
8702 2004-01-07 David Jee <djee@redhat.com>
8704 * java/awt/Container.java
8705 (update): Clear only the clipped region, instead of clearing the
8707 (visitChildren): Visit children in descending order.
8709 2004-01-07 Michael Koch <konqueror@gmx.de>
8711 * java/lang/reflect/Array.java: Merged documentation with classpath.
8713 2004-01-07 Michael Koch <konqueror@gmx.de>
8715 * java/text/CollationElementIterator.java
8716 (textIndex): Renamed from index.
8717 * java/text/CollationKey.java
8718 (collator): New member.
8719 (CollationKey): New argument for parent collator.
8720 (equals): Check for same collator, source string and key array.
8721 * java/text/RuleBasedCollator.java:
8723 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8725 (getCollationElementIterator): Rewritten.
8726 (getCollationKey): Added new argument to CollationKey constructor.
8728 2004-01-07 Michael Koch <konqueror@gmx.de>
8730 * gnu/java/nio/DatagramChannelImpl.java
8731 (blocking): Removed.
8732 (DatagramChannelImpl): Call configureBlocking().
8733 (implConfigureBlocking): Dont initialize blocking.
8734 * gnu/java/nio/ServerSocketChannelImpl.java
8735 (blocking): Removed.
8736 (ServerSocketChannelImpl): Call configureBlocking().
8737 (implConfigureBlocking): Dont initialize blocking.
8738 * gnu/java/nio/SocketChannelImpl.java
8739 (blocking): Removed.
8740 (SocketChannelImpl): Call configureBlocking().
8741 (implConfigureBlocking): Dont initialize blocking.
8742 (connect): Use isBlocking().
8743 * java/nio/channels/spi/AbstractSelectableChannel.java
8744 (configureBlocking): Use blockingLock() instead of LOCK.
8745 Set blocking after successfully called implConfigureBlocking().
8746 (register): Use blockingLock() instead of LOCK.
8748 2004-01-07 Michael Koch <konqueror@gmx.de>
8750 * java/net/ServerSocket.java (isBound): Fixed documentation.
8752 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8754 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8755 (changeEvent): Create event object on demand.
8756 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8757 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8758 fireStateChanged): Re-written.
8759 * javax/swing/event/EventListenerList.java: Reformatted, document
8761 (toString): Implemented.
8762 (getListeners): Re-written.
8763 (remove): Re-written.
8765 (NO_LISTENERS): New singleton field.
8766 (listenerList): Declare as transient; document.
8767 (serialVersionUID): Document.
8768 (getListenerCount(Class)): More efficient implementation,
8769 also accepts null argument. Improve Javadoc.
8770 (getListenerCount()): Remove unnecessary cast; docfix.
8771 * javax/swing/undo/UndoableEditSupport.java:
8772 Re-format, document.
8773 (UndoableEditSupport): Set realSource field. Improve documentation.
8774 (_postEdit): Iterate over cloned listener vector.
8775 (toString): Don't emit realSource.
8776 (beginUpdate, endUpdate): Support nested updates.
8777 (postEdit): Use compound edit if present.
8779 2004-01-06 Graydon Hoare <graydon@redhat.com>
8781 * java/awt/Container.java (swapComponents): Add forgotten
8782 function, required for JLayeredPane change.
8784 2004-01-06 Michael Koch <konqueror@gmx.de>
8786 * java/text/CollationElementIterator.java: Reformated.
8787 (CollationElementIterator): Changed order of arguments.
8788 * java/text/RuleBasedCollator.java
8789 (RuleBasedCollator): Merged class documentation.
8790 (CollationElement): Added documentation.
8791 (compare): Reformated, renamed arguments.
8793 (getCollationElementIterator): Likewise.
8794 (getCollationKey): Likewise.
8796 2004-01-06 Graydon Hoare <graydon@redhat.com>
8798 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8800 2004-01-06 Michael Koch <konqueror@gmx.de>
8802 * gnu/java/net/protocol/file/Connection.java:
8803 Reformated copyright.
8806 (gotHeaders): Removed.
8807 (getHeaderField): Removed.
8808 (getHeaderField): Removed.
8809 (getHeaderFieldKey): Removed.
8811 (getField): Removed.
8812 (getHeaders): Removed.
8814 2004-01-06 Michael Koch <konqueror@gmx.de>
8816 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8817 javax/print/attribute/standard/DateTimeAtCreation.java,
8818 javax/print/attribute/standard/DateTimeAtProcessing.java,
8819 javax/print/attribute/standard/JobImpressionsCompleted.java,
8820 javax/print/attribute/standard/JobKOctets.java,
8821 javax/print/attribute/standard/JobKOctetsProcessed.java,
8822 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8823 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8824 * Makefile.am (javax_source_files): Added new files.
8825 * Makefile.in: Regenerated.
8827 2004-01-06 Michael Koch <konqueror@gmx.de>
8829 * java/net/URLConnection.java
8830 (contentHandler): Removed.
8832 (getHeaderFields): Return an empty map instead of null.
8833 (getContent): Connect if needed, renamed "cType" to "type" and
8834 "contentHandler" to "ch" and made it a local variable.
8835 (getPermission): Don't use package in class name.
8836 (setDefaultRequestProperty): Fixed typo in documentation.
8837 (initializeDateFormats): Made locale a local variable.
8839 2004-01-06 Michael Koch <konqueror@gmx.de>
8841 * java/lang/Package.java
8842 (getPackage): Get the current class loader directly.
8843 * java/lang/SecurityManager.java
8844 (currentLoadedClass): Dont iterate over class contexts.
8845 (classLoaderDepth): Don't check class loaders if everything is allowed.
8847 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8849 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8850 (pre_event_handler): Set all insets to 0 when a Configure event
8851 is received for a GtkPlug.
8852 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8853 Make handle long, not int.
8854 (EmbeddedWindow()): New constructor.
8855 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8857 (setHandle): New method.
8858 (getHandle): Return long, not int.
8859 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8861 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8862 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8863 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8864 argument to GdkNativeWindow.
8865 (construct): New method.
8866 (embed): New method.
8868 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8869 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8870 (create(int, int)): New method.
8871 (create): Call new create method.
8872 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8874 (childResized): Remove native implementation. Implement in
8876 (getHScrollbarHeight, getVScrollbarWidth): Call
8877 gtk_widget_size_request to get scrollbar dimensions.
8878 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8879 call getVScrollbarWidth and getHScrollbarHeight when vertical
8880 and horizontal scrollbars respectively are needed.
8881 (doLayout): Enlarge child if it is smaller than the viewport.
8883 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8885 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8886 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8887 argument as per spec.
8889 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8891 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8893 (remove): Ditto. Also, Check for valid argument.
8894 (removeAll): Use peer interface method.
8895 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8896 native add function.
8897 (nativeRemove): New name for native remove function.
8898 (getHistory): New native function.
8899 (constructor): Generate ItemEvent.
8900 (add): Ditto, if selection is changed.
8901 (remove): Ditto, ditto.
8902 (removeAll): Add implementation.
8903 (handleEvent): Remove. Dead code.
8904 (choicePostItemEvent): Add comment.
8905 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8906 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8907 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8908 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8909 comments and fix condition to change selection.
8910 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8911 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8912 remove all capability.
8913 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8914 (item_activate): Add cast to remove compiler warning.
8916 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8918 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8919 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8920 (getPreferredSize): Call preferredSize.
8921 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8922 (getMinimumSize): Call minimumSize.
8923 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8924 (gtkWidgetGetDimensions): Return the peer widget's current size
8926 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8927 natural size request.
8929 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8931 Thanks to Brian Gough <bjg@network-theory.com>
8932 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8933 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8935 2004-01-04 Matthias Klose <doko@debian.org>
8937 * aclocal.m4: Rebuilt using "aclocal -I .".
8938 * configure: Rebuilt.
8940 2004-01-03 Per Bothner <per@bothner.com>
8942 * java/util/Date.java (parse): Fix a number of problems.
8943 (skipParens): Remove no-longer-needed method.