1 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
3 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
4 to avoid autoconf warning.
7 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
9 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
10 localhostAddress to loopbackAddress.
11 * java/net/natInetAddressWin32.cc (lookup): Likewise.
13 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
15 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
16 boehm-gc's include dirs.
18 * include/boehm-gc.h: Include gc_config.h.
20 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
22 * java/net/InetAddress.java (loopbackAddress): Renamed from
24 (getByName): Return loopback address for null hostname, without
25 security check. Use lookup(), not getAllByName.
26 (getAllByName): Return loopback address for null hostname, without
28 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
31 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
34 Reported by Robin Green.
35 * defineclass.cc (handleField): Don't throw exception on unrecognised
36 modifier. Add FIXME comments for spec compliance.
37 (handleMethod): Likewise.
39 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
42 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
43 (Almost everywhere): add LOG calls, fix, add comments.
44 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
45 Add explicit check for LOCKED bit in slow case (PR 16662).
46 (_Jv_MonitorExit): Add casts in debug-only code.
47 Always release LOCKED bit before throwing exception.
48 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
49 isn't. Handle easy cases without lock acquisition.
50 (Object::wait): Use NotifyAll for lock inflation.
52 2004-08-12 David Daney <ddaney@avtrex.com>
54 * testsuite/libjava.lang/Process_1.java: New test.
55 * testsuite/libjava.lang/Process_2.java: New test.
56 * testsuite/libjava.lang/Process_3.java: New test.
57 * testsuite/libjava.lang/Process_4.java: New test.
58 * testsuite/libjava.lang/Process_5.java: New test.
59 * testsuite/libjava.lang/Process_6.java: New test.
60 * testsuite/libjava.lang/Process_1.out: Expected result.
61 * testsuite/libjava.lang/Process_2.out: Expected result.
62 * testsuite/libjava.lang/Process_3.out: Expected result.
63 * testsuite/libjava.lang/Process_4.out: Expected result.
64 * testsuite/libjava.lang/Process_5.out: Expected result.
65 * testsuite/libjava.lang/Process_6.out: Expected result.
67 2004-08-12 David Daney <ddaney@avtrex.com>
70 * java/lang/PosixProcess.java: Rewrote.
71 * java/lang/natPosixProcess.cc: Rewrote.
72 * java/lang/Runtime.java (execInternal): Declare throws IOException.
73 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
74 * posix-threads.cc (block_sigchld) New function.
75 (_Jv_ThreadRegister) Use it.
76 (_Jv_ThreadStart) Use it.
77 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
78 * Makefile.am: ... to specify extra native headers.
79 * configure: Regenerated.
80 * include/config.h: Regenerated.
81 * Makefile.in: Regenerated.
82 * gcj/Makefile.in: Regenerated.
83 * include/Makefile.in: Regenerated.
84 * testsuite/Makefile.in: Regenerated.
86 2004-08-12 Diego Novillo <dnovillo@redhat.com>
88 PR tree-optimization/16867
89 * testsuite/libjava.lang/PR16867.java: New test.
91 2004-08-09 Per Bothner <per@bothner.com>
93 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
94 with private fields and access methods.
95 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
96 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
97 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
98 ( _Jv_makeUtf8Const): Rewrite using new constructors.
99 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
100 * defineclass.cc: Use new _Utf8Const access/convenience methods.
102 * resolve.cc: Likewise.
103 * gcj/field.h: Likewise.
104 * include/jvm.h: Likewise.
105 * java/lang/Class.h: Likewise.
106 * java/lang/natClass.cc: Likwise.
107 * java/lang/natClassLoader.cc: Likewise
108 * java/lang/reflect/natMethod.cc: Likewise
109 * verify.cc: Likewise.
110 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
111 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
113 2004-08-10 Andrew Haley <aph@redhat.com>
115 * testsuite/libjava.lang/err14.java: New file.
116 * testsuite/libjava.lang/err14.out: New file.
118 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
120 * Makefile.am: Fix missing rename from x_nat_headers to
122 * Makefile.in: Regenerated.
124 2004-08-04 Andrew Haley <aph@redhat.com>
126 * java/security/BasicPermission.java: Don't check wildcards.
128 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
129 Michael Koch <konqueror@gmx.de>
131 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
132 * configure.in: Replaced all usages of AC_LINK_FILES by
135 configure: Regenerated.
137 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
138 Michael Koch <konqueror@gmx.de>
140 * acconfig.h: Removed.
141 * Makefile.am: Rename variables for xlib peer to include xlib and
142 gtk_c_headers to gtk_jni_headers.
143 * Makefile.in: Regenerated.
145 2004-08-04 Andrew Haley <aph@redhat.com>
147 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
150 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
152 * configure.in: Eliminate uses of changequote (mostly by quoting []).
153 Replace most top level 'dnl' comments with '#' comments, conforming
154 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
156 * configure: Rebuilt.
158 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
160 * acinclude.m4: Include no-executables.m4.
161 * aclocal.m4: Rebuild.
162 * configure.in: Convert to the autoconf 2.59 version of
163 of the no-executables hack, and also of the nonstandard CXX
164 hack and the multilibbed CC and CXX hack. Change prerequisite
166 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
167 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
168 testsuite/Makefile.in: Regenerate.
170 2004-08-03 Tom Tromey <tromey@redhat.com>
172 * jni.cc: Reindented.
174 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
176 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
178 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
180 * testsuite/libjava.compile/PR16701.java: New test.
182 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
184 * java/util/Collection.java, java/util/List.java,
185 java/util/Map.java, java/util/Set.java,
186 java/util/SortedMap.java, java/util/SortedSet.java:
187 Added additional exceptions to documentation.
189 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
192 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
193 * configure. Regenerate.
194 * include/win32.h: Explicitly include winsock2.h
195 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
198 2004-07-30 Michael Koch <konqueror@gmx.de>
200 * java/util/zip/GZIPInputStream.java
201 (GZIPInputStream): Increase buffer size to 4k.
202 * java/util/zip/GZIPOutputStream.java
203 (GZIPOutputStream): Likewise.
204 * java/util/zip/Inflater.java
205 (setInput): Merged formating with GNU classpath.
206 * java/util/zip/InflaterInputStream.java
207 (InflaterInputStream): Increase buffer size to 4k.
208 (fill): Throw exception if stream ends early.
209 (read): Merged endless-loop with GNU classpath.
210 (skip): Increase buffer size to 2k.
212 2004-07-30 Michael Koch <konqueror@gmx.de>
214 * gnu/java/awt/EmbeddedWindow.java
215 (addNotify): Use AccessController to allow execution of privileged
218 2004-07-29 Michael Koch <konqueror@gmx.de>
220 * gnu/java/lang/MainThread.java:
221 Explicitely import used classes.
222 (args): Make it type String[].
224 2004-07-29 Dalibor Topic <robilad@kaffe.org>
226 * gnu/java/awt/ComponentDataBlitOp.java,
227 gnu/java/beans/ExplicitBeanInfo.java,
228 gnu/java/beans/IntrospectionIncubator.java,
229 gnu/java/beans/editors/ColorEditor.java,
230 gnu/java/beans/editors/FontEditor.java,
231 gnu/java/beans/editors/NativeBooleanEditor.java,
232 gnu/java/beans/editors/NativeByteEditor.java,
233 gnu/java/beans/editors/NativeDoubleEditor.java,
234 gnu/java/beans/editors/NativeFloatEditor.java,
235 gnu/java/beans/editors/NativeIntEditor.java,
236 gnu/java/beans/editors/NativeLongEditor.java,
237 gnu/java/beans/editors/NativeShortEditor.java,
238 gnu/java/beans/editors/StringEditor.java,
239 gnu/java/io/ClassLoaderObjectInputStream.java,
240 gnu/java/io/decode/Decoder.java,
241 gnu/java/io/encode/Encoder.java,
242 gnu/java/lang/ClassHelper.java,
243 gnu/java/locale/Calendar.java,
244 gnu/java/locale/Calendar_de.java,
245 gnu/java/locale/Calendar_en.java,
246 gnu/java/locale/Calendar_nl.java,
247 gnu/java/locale/LocaleInformation_de.java,
248 gnu/java/locale/LocaleInformation_en.java,
249 gnu/java/locale/LocaleInformation_nl.java:
252 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
254 * README: Remove obsolete info. Update bug URL.
256 * NEWS: Updated with news up to GCC 3.4 release.
258 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
260 * gnu/java/security/action/GetPropertyAction.java (setParameters):
261 Renamed from 'setName'. New 2-argument form with default value.
262 (run): Pass default 'value' parameter to System.getProperty().
263 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
265 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
268 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
270 * configure.in: Check for minimum GTK version 2.4 requirement.
271 * configure: Rebuilt.
273 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
275 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
276 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
278 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
280 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
281 address. Reduce sleep times. Synchronize with target threads before
282 attempting to interrupt them. Don't try to calibrate yeild count,
283 instead, always loop for a fixed time.
284 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
285 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
286 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
287 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
288 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
289 * testsuite/libjava.lang/pr179.java: Likewise.
290 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
291 time. Remove upper bounds check on sleep time.
293 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
295 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
296 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
298 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
300 * java/io/File.java (toURI): Throw RuntimeException, not
302 * java/lang/Runtime.java (exit): Qualify static sleep() call with
303 class name, not instance.
305 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
307 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
308 and gnu/java/security/action/SetAccessibleAction.java.
309 * Makefile.in: Rebuilt.
311 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
313 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
314 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
316 (DECLARE_PRIM_TYPE): Don't declare array vtables.
317 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
318 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
320 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
322 * Makefile.am: Replace jar, rmic and rmiregistry references with
323 gjar, grmic and grmiregistry.
324 * configure.in: Likewise.
325 * Makefile.in: Regenerate.
326 * configure: Likewise.
327 * gcj/Makefile.in: Likewise.
328 * include/Makefile.in: Likewise.
329 * testsuite/Makefile.in: Likewise.
331 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
333 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
334 for privileged getProperty calls.
335 * java/io/ObjectOutputStream.java (getField): No longer static. Use
336 SetAccessibleAction instead of anonymous class for doPrivileged call.
337 (getMethod): Likewise.
338 (setAccessible): New field. PrivilegedAction object to use when
339 calling setAccessible.
340 * java/io/ObjectStreamClass.java (calculateOffsets): Use
341 SetAccessibleAction instead of anonymous class for diPrivileged call.
342 (setFields): Likewise.
343 (getClassUID): Likewise.
344 (findMethod): Likewise.
345 * gnu/java/security/action/GetPropertyAction.java: New class.
346 * gnu/java/security/action/SetAccessibleAction.java: New class.
348 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
350 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
352 * testsuite/libjava.lang/Serialization.java: New test.
353 * testsuite/libjava.lang/Serialization.out: New.
355 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
357 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
358 missed in last commit.
360 2004-07-23 Mark Wielaard <mark@klomp.org>
362 * java/lang/System.java (static): Set http.agent system property when
364 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
365 from system property inside AccessController.doPrivileged() call.
366 (proxyPort): Made package private.
367 (proxyInUse): Likewise.
368 (proxyHost): Likewise.
369 (userAgent): Likewise.
371 2004-07-23 Mark Wielaard <mark@klomp.org>
373 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
376 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
378 * Makefile.am (ordinary_java_source_files): Add
379 DefaultContentHandlerFactory.java.
380 * Makefile.in: Rebuilt.
381 * java/net/URLConnection.java (defaultFactory): New field.
383 (getContentHandler): Renamed from 'setContentHandler'. Try
384 defaultFactory after user-set factory, if any. Search for content
385 handler implementations in gnu.java.net.content, not gnu.gcj.content.
386 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
388 (getLastModified): Implemented.
389 (getPermission): Create file permission here, instead of in
391 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
393 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
395 (getLastModified): Implemented.
396 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
397 Default implementation.
398 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
399 Implement using GdkPixbufDecoder.
401 2004-07-21 Michael Koch <konqueror@gmx.de>
403 * javax/swing/JTextArea.java
404 (setLineWrap): Fire property change event after new value is set.
405 (setTabSize): Likewise.
407 2004-07-21 Michael Koch <konqueror@gmx.de>
409 * javax/swing/JTable.java
410 (autoCreateColumnsFromModel): New field.
411 (autoResizeMode): Likewise.
412 (cellEditor): Likewise.
413 (cellSelectionEnabled): Likewise.
414 (columnModel): Likewise.
415 (dataModel): Likewise.
416 (defaultEditorsByColumnClass): Likewise.
417 (defaultRenderersByColumnClass): Likewise.
418 (editingColumn): Likewise.
419 (editingRow): Likewise.
420 (gridColor): Likewise.
421 (preferredViewportSize): Likewise.
422 (rowHeight): Likewise.
423 (rowMargin): Likewise.
424 (rowSelectionAllowed): Likewise.
425 (selectionBackground): Likewise.
426 (selectionForeground): Likewise.
427 (selectionModel): Likewise.
428 (showHorizontalLines): Likewise.
429 (showVerticalLines): Likewise.
430 (tableHeader): Likewise.
431 (JTable): Implemented.
432 (getColumnModel): Likewise.
433 (getSelectedRow): Likewise.
434 (getSelectionModel): Likewise.
435 (setModel): Likewise.
436 (setSelectionModel): Likewise.
437 (createScrollPaneForTable): New method.
438 (createDefaultDataModel): Likewise.
439 (createDefaultListSelectionModel): Likewise.
440 (getModel): Likewise.
441 (getTableHeader): Likewise.
442 (setTableHeader): Likewise.
443 (getColumnSelectionAllowed): Likewise.
444 (setColumnSelectionAllowed): Likewise.
445 (getRowSelectionAllowed): Likewise.
446 (setRowSelectionAllowed): Likewise.
447 (getAutoResizeMode): Likewise.
448 (setAutoResizeMode): Likewise.
449 (getColumnCount): Likewise.
450 (getRowCount): Likewise.
451 (getCellRenderer): Likewise.
452 * javax/swing/JTree.java
453 (cellRenderer): New field.
454 (editable): Likewise.
455 (rootVisible): Likewise.
456 (showsRootHandles): Likewise.
457 (getModel): New method.
458 (setModel): Likewise.
459 (isEditable): Likewise.
460 (setEditable): Likewise.
461 (isRootVisbile): Likewise.
462 (setRootVisible): Likewise.
463 (getShowsRootHandles): Likewise.
464 (setShowRootHandles): Likewise.
465 (getCellRenderer): Likewise.
466 (setCellRenderer): Likewise.
468 2004-07-21 Michael Koch <konqueror@gmx.de>
470 * javax/swing/JFormattedTextField.java
471 (setDocument): Implemented.
472 * javax/swing/JRootPane.java:
474 * javax/swing/JTable.java
475 (getDefaultRenderer): New method.
476 * javax/swing/JTextField.java
478 (getPreferredSize): Likewise.
479 * javax/swing/JToggleButton.java
480 (getAccessibleContext): Fix javadoc.
481 * javax/swing/JTree.java:
483 * javax/swing/JViewport.java:
486 2004-07-21 David Jee <djee@redhat.com>
488 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
489 Collect all native method declaration at the top.
490 (create): Set the filename filter if necessary.
491 (setDirectory): Call nativeSetDirectory().
492 (setFilenameFilter): Implement.
493 (filenameFilterCallback): New method.
494 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
495 (create): Configure dialog to show hidden files.
496 (filenameFilterCallback): New function.
497 (nativeSetFilenameFilter): New function.
498 (nativeSetDirectory): New function.
500 2004-07-21 Kim Ho <kho@redhat.com>
502 * javax/swing/plaf/basic/BasicSliderUI.java:
504 (paintTrack): Fill the track before painting
507 2004-07-21 Graydon Hoare <graydon@redhat.com>
509 patch from Roman Kennke <roman@ontographics.com>
510 * javax/swing/Spring.java: New file.
511 * javax/swing/SpringLayout.java: New file.
512 * Makefile.am: Add new files.
513 * Makefile.in: Regenerate.
515 2004-07-21 Graydon Hoare <graydon@redhat.com>
517 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
518 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
519 * javax/swing/ScrollPaneLayout.java: Likewise.
521 2004-07-21 Kim Ho <kho@redhat.com>
523 * javax/swing/DefaultDesktopManager.java:
524 (findMinimum): Removed.
525 (resizeFrame): Trust the UI to pass valid
527 * javax/swing/JOptionPane.java:
528 Implemented showInternalXXXDialog methods.
529 (startModal): New method.
530 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
531 (BorderListener::mouseDragged): Verify that the new
532 bounds are valid before passing them to the DesktopManager.
533 (preferredLayoutSize): Delegate
535 (minimumLayoutSize): Ditto.
536 (getSize): New method.
537 (GlassPaneDispatcher): Reimplemented by copying
538 a stripped down LightweightDispatcher from Container.
539 (getMinimumSize): Call minimumLayoutSize.
540 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
542 (mousePressed): Add ability to properly close
544 * javax/swing/plaf/basic/BasicToolBarUI.java:
545 (DragWindow): Set owner for DragWindow.
547 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
549 * java/awt/image/ShortLookupTable.java: New file.
550 * java/awt/image/ByteLookupTable.java: New file.
551 * Makefile.am: Added new files.
552 * Makefile.in: Regenerated.
554 2004-07-21 David Jee <djee@redhat.com>
556 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
557 (create(GtkContainerPeer)): New native method.
558 (create()): Call native create(), passing in the parent frame
559 as the paramter. Natively set the current file and directory.
560 (setFile): Construct an absolute filename before passing it to
562 (nativeGetDirectory): New method.
563 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
564 (window_closed): Removed.
565 (ok_clicked): Likewise.
566 (cancel_clicked): Likewise.
567 (handle_response): New method.
568 (create): Use GtkFileChooserDialog.
569 (connectSignals): Connect to handle_response.
570 (nativeGetDirectory): New method.
571 (nativeSetFile): Use GtkFileChooserDialog.
573 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
575 * java/awt/image/LookupTable.java: New file.
576 * Makefile.am: Added new file.
577 * Makefile.in: Regenerated.
579 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
581 * java/awt/image/Kernel.java: New file.
582 * Makefile.am: Added new file.
583 * Makefile.in: Regenerated.
585 2004-07-21 Olga Rodimina <rodimina@redhat.com>
587 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
588 * javax/swing/JMenu.java: Likewise.
589 * javax/swing/JMenuBar.java: Likewise.
590 (MARGIN_CHANGED_PROPERTY): New property.
591 (setMargin): Implemented.
592 * javax/swing/JMenuItem.java: Fixed javadocs.
593 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
594 (LABEL_CHANGED_PROPERTY): New property.
595 (add): changed to use createActionComponent.
596 (createActionComponent): Implemented.
597 (setLabel): Fire PropertyChangeEvent if label property
599 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
600 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
601 (ContainerHandler): Repaint if margin property has changed.
602 * javax/swing/plaf/basic/BasicMenuItemUI.java:
603 (installUI): Call installComponents().
604 (uninstallUI): Call uinstallComponents().
605 * javax/swing/plaf/basic/BasicMenuUI.java:
607 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
610 2004-07-21 Kim Ho <kho@redhat.com>
612 * javax/swing/plaf/basic/BasicToolBarUI.java:
613 (DragWindow): Use the right constructor.
615 2004-07-21 Kim Ho <kho@redhat.com>
617 * javax/swing/JToolBar.java:
618 (layoutContainer): Use getComponents.
619 * javax/swing/plaf/basic/BasicToolBarUI.java:
620 (DragWindow): Don't use SwingUtilities'
622 (ToolBarDialog): ditto.
624 2004-07-21 Kim Ho <kho@redhat.com>
626 * javax/swing/JRootPane.java:
628 (layoutContainer): Set the glasspane's size to
629 be the same as the content pane.
630 (createGlassPane): Set opaque property to false.
632 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
634 * java/awt/Component.java (requestFocus()): Don't handle Panels
636 (requestFocus(boolean)): Likewise.
637 (requestFocusInWindow(boolean)): Likewise.
638 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
639 Set GTK_CAN_FOCUS flag.
641 2004-07-21 Kim Ho <kho@redhat.com>
643 * Makefile.am: Added new file.
644 * Makefile.in: Regenerated.
645 * gcj/Makefile.in: Regenerated.
646 * include/Makefile.in: Regenerated.
647 * javax/swing/AbstractButton.java:
648 Add rollOverEnabled property.
649 (setRolloverEnabled): Use new property.
650 (isRolloverEnabled): Use new property.
651 * javax/swing/JTabbedPane.java:
652 (setComponent): Remove useless JTabbedPane.this.
653 * javax/swing/JToolBar.java: Finish implementation.
654 * javax/swing/plaf/basic/BasicArrowButton.java:
655 (paint): Moved border painting to a border.
656 * javax/swing/plaf/basic/BasicLookAndFeel.java:
657 Change JToolBar look and feel defaults.
658 * javax/swing/plaf/basic/BasicOptionPaneUI.java
659 (actionPerformed): Return Integer index instead of name.
660 (addButtonComponents): Check to see if component is
662 (createMessageArea): Don't use components that are not
664 (getIconForType): Use temporary icons.
665 * javax/swing/plaf/basic/BasicSliderUI.java:
666 (mousePressed): Do not return if it's on thumb.
667 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
668 (paintMinorTickForVertSlider): ditto.
669 (paintMajorTickForHorizSlider): ditto.
670 (paintMajorTickForVertSlider): ditto.
671 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
672 Add a border around the SplitPaneDivider.
673 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
675 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
676 New file. Implemented.
677 * javax/swing/plaf/basic/BasicToolBarUI.java:
679 * testsuite/Makefile.in: Regenerated.
681 2004-07-21 Graydon Hoare <graydon@redhat.com>
683 * javax/swing/Timer.java (run): Queue events each time cycle.
685 2004-07-21 David Jee <djee@redhat.com>
687 * gnu/java/awt/peer/gtk/GtkImagePainter.java
688 (imageComplete): Call image.imageComplete().
689 * java/awt/image/MemoryImageSource.java:
690 Reimplement consumers as a Vector instead of a Hashtable. This is
691 because enumeration on a Hashtable is not thread-safe.
692 (addConsumer): Adapt to Vector consumers.
693 (isConsumer): Adapt to Vector consumers.
694 (removeConsumer): Adapt to Vector consumers.
695 (startProduction): Adapt to Vector consumers. Call imageComplete()
696 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
697 (newPixels): Adapt to Vector consumers.
698 (sendPicture): Set the color model of the image consumer.
699 (newPixels(IIII)): Adapt to Vector consumers.
700 (newPixels(IIIIB)): Adapt to Vector consumers.
702 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
704 * java/awt/Component.java (deliverEvent): Implement.
705 (postEvent): Implement.
706 (handleEvent): Implement.
707 (translateEvent): New method.
708 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
709 * java/awt/Container.java (deliverEvent): Implement.
710 * java/awt/Event.java (paramString): Fix formatting.
711 * java/awt/Font.java (toString): Likewise.
712 * java/awt/Window.java (postEvent): Implement.
714 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
716 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
717 Set window's focus owner upon receiving a FOCUS_LOST event.
718 * java/awt/Window.java (Window()): Refocus the previously
719 focused component within the window when the window regains the
721 (setFocusOwner): New method.
722 * java/awt/Component.java (requestFocus): Add FIXME.
724 * libgcj.pc.in: Remove library flags.
726 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
728 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
730 * java/awt/Component.java (requestFocus()): Handle Panel
731 specially. Post FOCUS_LOST event on opposite component.
732 (requestFocus(boolean)): Likewise.
733 (requestFocusInWindow(boolean)): Likewise.
734 (paramString): Reorder dimension fields.
735 * java/awt/Container.java (paramString): Fix string format.
736 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
737 Handle FOCUS_LOST events. Don't handle Windows specially. Only
738 process key events if the focus owner is non-null.
739 (dispatchKeyEvent): Likewise.
740 * java/awt/Frame.java (paramString): Fix formatting.
741 (generateName): New method.
742 (getUniqueLong): Likewise.
743 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
744 the temporary focus owner is null. If so, return the permanent
746 * java/awt/Panel.java (generateName): New method.
747 (getUniqueLong): Likewise.
748 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
749 signal handling to make callbacks more specific.
751 2004-07-21 Michael Koch <konqueror@gmx.de>
753 * javax/swing/text/Position.java
756 2004-07-21 Michael Koch <konqueror@gmx.de>
758 * javax/swing/LookAndFeel.java
759 (provideErrorFeedback): New method.
761 2004-07-21 Michael Koch <konqueror@gmx.de>
763 * javax/swing/JTextArea.java
764 (tabSize): New field.
765 (getTabSize): New method.
766 (setTabSize): Likewise.
768 2004-07-21 Michael Koch <konqueror@gmx.de>
770 * javax/swing/ActionMap.java:
771 Fixed javadocs all over.
772 (serialVersionUID): Made private.
773 (parent): Don't explicitely initialize with default value.
775 (keys): Reimplemented.
777 (convertSet): Removed.
778 * javax/swing/ComponentInputMap.java:
779 Fixed javadocs all over.
780 (ComponentInputMap): Implemented.
784 (SetParent): Likewise.
785 (getComponent): Likewise.
786 * javax/swing/InputMap.java:
787 Fixed javadocs all over.
788 (serialVersionUID): Made private.
789 (parent): Don't explicitely initialize with default value.
791 (keys): Reimplemented.
793 (convertSet): Removed.
795 2004-07-21 Michael Koch <konqueror@gmx.de>
797 * javax/swing/ActionMap.java,
798 javax/swing/ComponentInputMap.java,
799 javax/swing/InputMap.java,
800 javax/swing/table/DefaultTableColumnModel.java,
801 javax/swing/table/TableColumn.java,
802 javax/swing/table/TableColumnModel.java,
803 javax/swing/table/TableModel.java,
804 javax/swing/text/AbstractDocument.java,
805 javax/swing/text/TextAction.java:
808 2004-07-21 Graydon Hoare <graydon@redhat.com>
810 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
811 Make method non-static.
812 * javax/swing/AbstractButton.java:
813 Rename fields to match property names where possible.
814 (iconTextGap): New property.
815 * javax/swing/JCheckBox.java: Match AbstractButton changes.
816 (init) New method, call from after various constructors.
817 * javax/swing/JComponent.java (revalidate):
818 Invalidate before queueing repair.
819 * javax/swing/JList.java (getPreferredScrollableViewportSize):
820 Reimplement in terms of visibleRowCount property.
821 * javax/swing/JMenuButton.java: Match AbstractButton changes.
822 * javax/swing/JScrollPane.java (createScrollListener):
823 Remove tracing chatter.
824 * javax/swing/JToggleButton.java: Match AbstractButton changes.
825 * javax/swing/RepaintManager.java (addInvalidComponent):
827 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
829 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
830 Mimic sun behavior on top left/right positioning.
831 * javax/swing/ViewportLayout.java (preferredLayoutSize):
832 Remove mistaken use of preferredScrollableViewportSize here.
833 (layoutContainer): Use view's preferred size as basis.
834 * javax/swing/plaf/basic/BasicButtonUI.java:
835 Set, get, and use textIconGap property.
836 (paint) Paint text returned from layout (with ellipsis).
837 * javax/swing/plaf/basic/BasicListUI.java:
838 Remove tracing chatter, correct various minor calculations.
839 (getCellBounds): Update layout state before calculating.
840 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
841 Use margin default similar to sun's.
842 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
843 (createIncreaseIcon): Center icon, minimize margins.
844 (createDecreaseIcon): Likewise.
845 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
847 (installUI): Call it.
848 (uninstallDefaults): Implement.
849 (uninstallUI): Call it.
850 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
851 Call existing Window constructor.
852 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
853 Set clip before painting.
855 2004-07-21 Olga Rodimina <rodimina@redhat.com>
857 * javax/swing/JMenuItem.java:
858 (processMouseEvent): Reimplemented to deal with
860 (createMenuDragMouseEvent): New private helper method.
861 Creates MenuDragMouseEvent.
862 * javax/swing/MenuSelectionManager.java
863 (componentForPoint): Implemented.
864 (isComponentPartOfCurrentMenu): Made public.
865 (processMouseEvent): Reimplemented to deal with
867 (setSelectedPath): Corrected small mistake that caused
868 path to be set incorrectly.
869 (getPath): If given component is JMenu then also add this
870 menu's popup menu to the selected path.
871 * javax/swing/plaf/basic/BasicMenuItemUI.java:
873 (getPreferredSize): Call getPreferredMenuItemSize().
874 (getPreferredItemSize): Moved code from getPreferredSize to here.
875 (installListeners): Install MouseMotionListeners.
876 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
877 if mouse wasn't released in the bounds of this menu item.
878 (MenuDragMouseHandler): Implemented.
879 * javax/swing/plaf/basic/BasicMenuUI.java:
880 (installListeners): Install MouseMotionListener and
881 MenuDrageMouseListener.
882 (MenuDragMouseHandler): Implemented.
883 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
884 (uninstallListeners): Implemented.
886 2004-07-21 Michael Koch <konqueror@gmx.de>
888 * javax/swing/JCheckBox.java: Reformated.
889 (JCheckBox): Fixed all constructors.
890 (isBorderPaintedFlat): New method.
891 (setBorderPaintedFlat): New method.
892 * javax/swing/JEditorPane.java
893 (createEditorKitForContentType): Made public.
894 (scrollToReference): Likewise.
895 * javax/swing/JTextArea.java
896 (setLineWrap): Fire property change.
897 * javax/swing/JToggleButton.java
898 (JToggleButton): New constructor.
899 (JToggleButton): Simplified.
900 * javax/swing/text/AttributeSet.java
901 (FontAttribute): Renamed from FontCharacterAttribute.
902 * javax/swing/text/JTextComponent.java
903 (KeyBinBinding): Added javadoc.
904 (JTextComponent): Likewise.
905 (getAccessibleContext): Fixed javadoc.
906 * javax/swing/text/View.java
907 (View): Added javadoc.
908 * javax/swing/text/TabableView.java: New file.
909 * Makefile.am: Added javax/swing/text/TabableView.java.
910 * Makefile.in: Regenerated.
912 2004-07-21 Graydon Hoare <graydon@redhat.com>
914 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
915 * gnu/java/awt/peer/gtk/GtkToolkit.java
916 (GtkErrorImage): New helper class.
917 (bufferedImageOrError): New helper method.
918 (createImage): Use it.
920 2004-07-21 David Jee <djee@redhat.com>
922 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
923 (setCaretPosition): Scroll the text view so the new caret position
924 is visible on screen.
926 2004-07-21 David Jee <djee@redhat.com>
928 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
929 (setBounds): Do not validate awtComponent here.
930 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
931 (getPreferredSize): New method.
932 * java/awt/ScrollPane.java
933 (ScrollPane): Set default size to 100x100.
934 (addNotify): If child is not a Panel, wrap it with a new Panel.
935 (paramString): Implement.
937 2004-07-21 Olga Rodimina <rodimina@redhat.com>
939 * javax/swing/JMenu.java:
940 (setSelected): Display popup menu only if this menu
941 is showing on the screen.
942 * javax/swing/JPopupMenu.java:
943 (processMouseEvent): Added comment.
944 (processKeyEvent): Likewise.
945 * javax/swing/MenuSelectionManager.java:
946 (clearSelectedPath): Only fireStateChanged() after
947 selected path was changed, not before.
948 (setSelectedPath): Likewise.
949 * javax/swing/plaf/basic/BasicMenuItemUI.java:
950 (paintMenuItem): Corrected position of menu item's
952 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
953 (installUI): Correct setDefaultLightWeightPopupEnabled call.
954 (popupMenuCanceled): Reimplemented.
955 (popupMenuWillBecomeVisible): Select first menu item by default
956 when displaying free floating popup menus.
957 (TopWindowListener): Reimplemented.
959 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
961 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
962 Panel from being painted twice when it is first shown.
964 2004-07-21 Olga Rodimina <rodimina@redhat.com>
966 * java/awt/Window.java: Reverted changes from my
967 previous patch for creating window without an owner.
968 * javax/swing/SwingUtilities.java:
969 (SwingUtilities.OwnerFrame): made static.
970 (OwnerFrame.setVisible): New method. Overridden with
971 empty implementation.
972 (OwnerFrame.isShowing): New method. Ovverridden
973 to return always true.
975 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
977 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
978 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
979 (GtkComponentPeer): Remove temporary try/catch block.
980 (setVisible): Call show and hide.
983 (getArgs): Don't add "visible" argument.
984 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
985 (property_notify_predicate): Return Bool instead of int.
986 (find_layout): New function.
987 (connectJObject): Call find_layout.
988 (connectSignals): Likewise.
989 (moveLayout): Likewise.
990 (gtkLayoutSetVisible): Likewise.
992 2004-07-21 Mark Wielaard <mark@klomp.org>
994 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
995 on notifier object before calling notifyAll().
997 2004-07-21 Olga Rodimina <rodimina@redhat.com>
999 * java/awt/Window.java: Changed constructors to use new
1000 method that is described below. Constructors call this
1001 methods only if newly created window should have an owner.
1002 (setWindowOwner): New method. Implementation for
1003 this method is moved from this(owner,configuration).
1004 * javax/swing/JWindow.java:
1005 (JWindow): Reimplement to use SwingUtilities.ownerFrame
1007 * javax/swing/SwingUtilities.java:
1008 (ownerFrame): Change type of this field to OwnerFrame.
1009 (getOwnerFrame): Changed to return object of type OwnerFrame.
1010 (SwingUtilities.OwnerFrame): New class. Represents owner
1011 of a Window that is not provided with one.
1013 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1015 * javax/swing/AbstractButton.java:
1016 (configurePropertiesFromAction): Set action command
1017 to button's text by default if action command is not
1018 explicitely specified.
1019 * javax/swing/JMenu.java: Remove unnecessary listener
1020 and methods relevant to it.
1021 (setSelected): Reimplemented.
1022 (menuSelectionChanged): Moved most part of implementation to
1023 setSelected() and call it instead.
1024 * javax/swing/JMenuItem.java:
1025 (init): Comment out statement that sets paint_border to false.
1026 (configurePropertiesFromAction): Do not set accelerator
1028 (menuSelectionChanged): Change selected index in the selection
1029 model of menu item's parent.
1030 * javax/swing/JPopupMenu.java:
1031 (remove): Set constraints.fill field to GridBagConstraints.BOTH
1032 instead of GridBagConstraints.HORIZONTAL.
1034 (createActionChangeListener): Implemented.
1035 (setVisible): Correct location of HeavyWeightMenu and
1036 don't firePopupMenuCanceled().
1037 (menuSelectionChanged): Implemented.
1038 (ActionChangeListener): New Listener. Implemented.
1039 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1040 (BasicMenuBarUI.ContainerHandler): Implemented.
1041 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1042 (paintMenuItem): Uncommented out code that paints
1043 icon, now that icons are working properly.
1044 (PropertyChangeListener): Implemented.
1045 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1047 (topWindowListener): New field.
1048 (Constructor): initialize topWindowListener.
1049 (BasicPopupMenuUI.TopWindowListener): Implemented.
1050 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
1051 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
1054 2004-07-21 Michael Koch <konqueror@gmx.de>
1056 * javax/swing/plaf/basic/BasicButtonUI.java
1057 (paintFocus): Fixed method signature.
1058 (paintButtonPressed): Likewise.
1059 (paintButtonNormal): Likewise.
1060 (paintText): New method.
1061 * javax/swing/plaf/basic/BasicLabelUI.java
1062 (paint): Re-indented.
1063 * javax/swing/plaf/basic/BasicTextUI.java
1064 (installUI): Set parent textComponent to opaque.
1065 * javax/swing/text/DefaultHighlighter.java
1066 (checkPositions): New helper method.
1067 (addHighlight): Throws BadLocationException, check positions.
1068 (changeHighlight): Likewise.
1069 * javax/swing/text/EditorKit.java
1070 (EditorKit): Implements Serializable.
1071 * javax/swing/text/JTextComponent.java
1072 (getUI): Added javadoc.
1074 (upadteUI): Added javadoc, don't revalidate and repaint.
1076 2004-07-21 David Jee <djee@redhat.com>
1078 * java/awt/GridBagLayout.java
1079 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
1080 * javax/swing/AbstractButton.java
1081 (setText): Reindent.
1082 * javax/swing/RepaintManager.java
1083 (addInvalidComponent): Find the first ancestor that isValidateRoot().
1085 2004-07-21 Michael Koch <konqueror@gmx.de>
1087 * javax/swing/JFormattedTextField.java
1089 (JFormattedTextField): Implemented.
1090 (getValue): Likewise.
1091 (setValue): Likewise.
1092 * javax/swing/LookAndFeel.java
1093 (getSupportsWindowDecorations): New method.
1094 * javax/swing/UIDefaults.java:
1095 Use java.beans.PropertyChangeSupport instead of doing all ourself.
1096 (addPropertyChangeListener): Made public.
1097 (addResourceBundle): Likewise.
1098 (removeResourceBundle): Likewise.
1099 (setDefaultLocale): Likewise.
1100 * javax/swing/plaf/basic/BasicRootPaneUI.java
1101 (BasicRootPaneUI): Implements PropertyChangeListener.
1102 (propertyChange): New method.
1103 * javax/swing/plaf/basic/BasicTextUI.java
1104 (BasicHighlighter): New inner class.
1105 (createHighlighter): New method.
1106 * javax/swing/plaf/basic/BasicToolBarUI.java
1107 (DragWindow): Extends java.awt.Window.
1108 * javax/swing/text/JTextComponent.java
1109 (getDocument): Removed debug output.
1110 * javax/swing/plaf/basic/BasicTextFieldUI.java,
1111 javax/swing/text/DefaultHighlighter.java,
1112 javax/swing/text/FieldView.java,
1113 javax/swing/text/PlainView.java: New files.
1114 * Makefile.am: Added new files.
1115 * Makefile.in: Regenerated.
1117 2004-07-21 Michael Koch <konqueror@gmx.de>
1119 * javax/swing/JEditorPane.java
1120 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
1121 (createEditorKitForContentType): Likewise.
1122 * javax/swing/text/DefaultEditorKit.java
1123 (serialVersionUID): Added constant field.
1124 (EndOfLineStringPropery): Fixed typo.
1125 (DefaultEditorKit): New constructor.
1126 * javax/swing/text/Segment.java:
1127 Import java.text.CharacterIterator.
1128 * javax/swing/text/CharacterIterator.java,
1129 javax/swing/text/PlainEditorKit.java: Removed.
1130 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1131 javax/swing/text/PlainEditorKit.java.
1132 * Makefile.in: Regenerated.
1134 2004-07-21 Michael Koch <konqueror@gmx.de>
1136 * javax/swing/JButton.java,
1137 javax/swing/text/DefaultEditorKit.java,
1138 javax/swing/text/EditorKit.java,
1139 javax/swing/text/Segment.java,
1140 javax/swing/text/StyledEditorKit.java:
1143 2004-07-21 Michael Koch <konqueror@gmx.de>
1145 * javax/swing/ImageIcon.java
1147 (description): Renamed from descr.
1148 (ImageIcon): Added missing constructors.
1149 (setParent): Removed.
1150 (setImageObserver): New method.
1151 (getImageObserver): New method.
1152 (paintIcon): Handle observer = null.
1153 * javax/swing/JButton.java
1154 (removeNotify): Fixed javadoc.
1155 (updateUI): Simplified.
1156 * javax/swing/JRootPane.java
1157 (serialVersionUID): New constant field.
1158 * javax/swing/UIManager.java:
1159 Fixed javadocs all over.
1160 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1161 * javax/swing/text/AbstractDocument.java
1162 (createPosition): Throws BadLocationException.
1163 (getText): Likewise.
1165 * javax/swing/text/ComponentView.java
1166 (modelToView): Likewise.
1167 * javax/swing/text/DefaultEditorKit.java:
1168 Made all public methods public.
1169 (read): Throws BadLocationException and IOException.
1171 * javax/swing/text/EditorKit.java:
1172 Made all public methods public.
1173 (serialVersionUID): New constant field.
1174 (clone): New method.
1175 (read): Throws BadLocationException and IOException.
1177 * javax/swing/text/Segment.java
1178 (array): Made public.
1181 (Segment): New constructors.
1182 (clone): Reimplemented.
1183 * javax/swing/text/StyledEditorKit.java
1184 (serialVersionUID): New constant field.
1186 2004-07-21 Graydon Hoare <graydon@redhat.com>
1188 * java/awt/image/BufferedImage.java
1189 (getSource): Implement.
1190 * javax/swing/ImageIcon.java
1191 (ImageIcon): Implement ctor.
1192 * javax/swing/ScrollPaneLayout.java
1193 (preferredLayoutSize): Be more careful about nulls.
1195 2004-07-21 Michael Koch <konqueror@gmx.de>
1197 * javax/swing/text/AttributeSet.java
1198 (CharacterAttribute): New interface
1199 (ColorAttribute): Likewise.
1200 (FontCharacterAttribute): Likewise.
1201 (ParagraphAttribute): Likewise.
1202 * javax/swing/text/DefaultCaret.java
1203 (moveCaret): New method.
1204 (positionCaret): Likewise.
1205 (repaint): Made protected.
1206 * javax/swing/text/JTextComponent.java
1207 (KeyBinding): Made it static.
1208 * javax/swing/text/View.java
1209 (getContainer): Honor parent == null.
1211 2004-07-21 Michael Koch <konqueror@gmx.de>
1213 * javax/swing/text/AbstractDocument.java:
1216 2004-07-21 Michael Koch <konqueror@gmx.de>
1218 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1219 Import javax.swing.UIManager explicitely.
1220 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1221 (ScrollingButton): Made it static.
1223 2004-07-21 Michael Koch <konqueror@gmx.de>
1225 * javax/swing/UIDefaults.java
1226 (ActiveValue): Made public.
1227 (LazyValue): Likewise.
1228 * javax/swing/plaf/basic/BasicTextUI.java
1229 (RootView): Reintroduced.
1231 (rootView): New field.
1232 (installUI): Create document if needed, initialize rootView.
1233 (uninstallUI): Hanle rootView.
1235 (getRootView): Likewise.
1236 (setView): Likewise.
1237 * javax/swing/text/DefaultCaret.java:
1238 Renamed all "evt" variables to "event".
1240 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1242 * libgcj.spec.in: Add -l-java-util-logging.
1244 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1246 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1247 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1248 gtk-xft-dpi can no calculate the right value.
1249 (dpi_changed_cb): Mark *pspec as unsused.
1251 2004-07-21 David Jee <djee@redhat.com>
1253 * java/awt/Component.java
1254 (move): Delegate to setBounds().
1256 (reshape): Fix so it repaints parent and self only when necessary.
1258 2004-07-21 David Jee <djee@redhat.com>
1260 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1261 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1262 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1263 (setVisible): Likewise.
1266 (getArgs): Likewise.
1267 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1268 (property_notify_predicate): Likewise.
1269 (find_layout): Likewise.
1270 (connectJObject): Likewise.
1271 (connectSignals): Likewise.
1272 (moveLayout): Likewise.
1273 (gtkLayoutSetVisible): Likewise.
1275 2004-07-21 Graydon Hoare <graydon@redhat.com>
1281 (rmiregistry_LDADD): Add lib-java-util-logging.la
1282 * Makefile.in: Regenerate.
1284 2004-07-21 Michael Koch <konqueror@gmx.de>
1286 * javax/swing/text/AbstractDocument.java
1287 (replace): Dont use protected method of java.util.Vector directly.
1289 2004-07-21 Michael Koch <konqueror@gmx.de>
1291 * javax/swing/plaf/basic/BasicTextUI.java
1292 (installUI): Call specialized install methods.
1293 (installDefaults): New method.
1294 (installListeners): Likewise.
1295 (installKeyboardActions): Likewise.
1296 (uninstallUI): Likewise.
1297 (uninstallDefaults): New method.
1298 (uninstallListeners): Likewise.
1299 (uninstallKeyboardActions): Likewise.
1300 (getPropertyPrefix): New abstract method.
1301 (paint): Made final, just call paintSafely().
1302 (paintSavely): New method.
1303 (paintBackground): Likewise.
1304 (getVisibleEditorRect): Likewise.
1305 * javax/swing/text/LayeredHighlighter.java,
1306 javax/swing/text/TabExpander.java: New files.
1307 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1308 and javax/swing/text/TabExpander.java.
1309 * Makefile.in: Regenerated.
1311 2004-07-21 Michael Koch <konqueror@gmx.de>
1313 * javax/swing/plaf/basic/BasicTextUI.java
1314 (BasicTextUI): Made abstract.
1315 (BasicCaret): New inner class.
1316 (view): Don't explicitely initialize with "null".
1317 (textComponent): New field.
1318 (textColor): Removed.
1319 (disabledTextColor): Removed.
1320 (normalBackgroundColor): Removed.
1321 (RootView): Removed commented out inner class.
1322 (createUI): Removed.
1323 (createCaret): New method.
1324 (getComponent): Likewise.
1325 (installUI): Initialize textComponent only.
1326 (getPreferredSize): Use installed JTextComponent.
1327 (setView): New method.
1329 * javax/swing/text/JTextComponent.java
1330 (highlighter): New field.
1331 (caretColor): Likewise.
1332 (disabledTextColor): Likewise.
1333 (seletedTextColor): Likewise.
1334 (selectionColor): Likewise.
1335 (setUI): New method.
1336 (getCaretColor): Likewise.
1337 (setCaretColor): Likewise.
1338 (getDisabledColor): Likewise.
1339 (setDisabledColor): Likewise.
1340 (getSelectedTextColor): Likewise.
1341 (setSelectedTextColor): Likewise.
1342 (getSelectionColor): Likewise.
1343 (setSelectionColor): Likewise.
1344 (getHighlighter): Likewise.
1345 (setHighlighter): Likewise.
1346 (replaceSelection): Likewise.
1348 2004-07-21 Michael Koch <konqueror@gmx.de>
1350 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1351 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1352 * javax/swing/plaf/basic/BasicToolBarUI.java
1353 (BasicToolBarUI): Implements SwingConstants.
1355 2004-07-21 Michael Koch <konqueror@gmx.de>
1357 * javax/swing/JPopupMenu.java: Removed CVS tags.
1358 * javax/swing/UIDefaults.java: Reformatted.
1359 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1360 Explicitely import used classes.
1362 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1364 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1365 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1366 (GtkComponentPeer): Remove temporary try/catch block.
1367 (setVisible): Call show and hide.
1368 (show): Make native.
1370 (getArgs): Don't add "visible" argument.
1371 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1372 (property_notify_predicate): Return Bool instead of int.
1373 (find_layout): New function.
1374 (connectJObject): Call find_layout.
1375 (connectSignals): Likewise.
1376 (moveLayout): Likewise.
1377 (gtkLayoutSetVisible): Likewise.
1379 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1381 * javax/swing/AbstractButton.java:
1382 (setDisplayedMnemonicIndex): Check if button
1383 text is not null before checking its length.
1384 * javax/swing/JMenuItem.java:
1385 (processMouseEvent): Disarm menu item if mouse has
1387 * javax/swing/plaf/basic/BasicMenuUI.java:
1388 (MouseInputHandler.mouseEntered): Do not raise
1389 popup menu if this menu is already selected.
1390 (MouseInputHandler.mousePressed): Do not fire
1392 (MenuHandler): Implemented.
1394 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1396 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1397 (getSelectedObjects): Implemented.
1398 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1399 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1400 Added javadoc for few methods.
1401 (processMouseEvent): Made public.
1402 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1403 (processMouseEvent): Likewise.
1405 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1407 * javax/swing/AbstractButton.java:
1408 (init): Set display mnemonic index to -1.
1409 (setMnemonic(char)): Use setMnemonic(int).
1410 (setMnemonic(int)): Set display mnemonic index.
1411 (getDisplayedMnemonicIndex): Change method signature
1412 by removing 'index' parameter.
1413 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1414 Added default for Menu.selectionBackground.
1415 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1416 (paintMenuItem): Change background color of the selected
1418 (paintText): Paint differently when menu item is disabled.
1419 Also paint mnemonic if it appears in the menu item's label.
1420 (paintAccelerator): Paint accelerator differently
1421 if menu item is disabled.
1422 * javax/swing/plaf/basic/BasicMenuUI.java:
1423 (installDefaults): Install defaults for
1424 selectionForeground and selectionBackground.
1425 (uninstallDefaults): Uninstall defauls for
1426 selectionForeground and selectionBackground.
1428 2004-07-21 Michael Koch <konqueror@gmx.de>
1430 * javax/swing/text/AbstractDocument.java
1431 (BranchElement): Implemented.
1432 (LeafElement): Implemented.
1433 * javax/swing/text/DefaultCaret.java:
1434 Import used classes.
1435 (serialVersionUID): New constant.
1436 * javax/swing/text/JTextComponent.java
1437 (AccessibleJTextComponent): Removed dead declaration.
1438 (caretPos): Removed.
1439 (setCaret): New method.
1440 * javax/swing/text/PlainDocument.java
1441 (rootElement): New field.
1442 (PlainDocument): Initialize rootElement.
1443 (createDefaultRoot): New method.
1444 (getDefaultRootElement): Implemented.
1445 * javax/swing/text/View.java: Reformatted.
1446 * javax/swing/text/ViewFactory.java
1447 (create): Added javadoc.
1449 2004-07-21 Michael Koch <konqueror@gmx.de>
1451 * javax/swing/ToolTipManager.java: Reformatted.
1453 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1455 * javax/swing/AbstractButton.java
1456 (changeEvent): New field.
1457 (fireItemStateChanged): Change source of the event
1458 to 'this' before firing it to button listeners.
1459 (fireActionPerformed): Likewise.
1460 (fireStateChanged): Likewise.
1461 (createActionListener): Do not set source
1462 of the event to AbstractButton.
1463 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1464 (ContainerHandler.componentAdded): Removed
1465 print out statement.
1466 (ContainerHandler.componentRemoved): Likewise.
1468 2004-07-21 Michael Koch <konqueror@gmx.de>
1470 * javax/swing/text/Highlighter.java: New file.
1471 * Makefile.am: Added javax/swing/text/Highlighter.java.
1472 * Makefile.in: Regenerated.
1474 2004-07-21 Michael Koch <konqueror@gmx.de>
1476 * javax/swing/ToolTipManager.java
1477 (stillInsideTimerAction): Fixed constructor arguments.
1478 (outsideTimerAction): Likewise.
1479 (insideTimerAction): Likewise.
1481 2004-07-21 Michael Koch <konqueror@gmx.de>
1483 * javax/swing/JButton.java: Reformatted.
1484 * javax/swing/JFormattedTextField.java
1485 (getUIClassID): Implemented.
1486 * javax/swing/JRootPane.java
1487 (serialVersionUID): New constant.
1488 * javax/swing/JTextField.java
1490 (JTextField): Simplified.
1491 (getUIClassID): New method.
1492 (getActionListeners): Added @since tag.
1493 (setColumns): Invalidate layout and repaint.
1494 (getHorizontalAlignment): New method.
1495 (setHorizontalAlignment): New method.
1496 (selectAll): Removed.
1497 * javax/swing/SwingUtilities.java
1498 (getAncestorOfClass): Removed redundant @see tag.
1499 (isLeftMouseButton): Fixed implementation.
1500 (isMiddleMouseButton): Likewise.
1501 (isRightMouseButton): Likewise.
1502 * javax/swing/text/AbstractDocument.java
1503 (AttributeContext.addAttribute): New method.
1504 (AttributeContext.addAttributes): New method.
1505 (AttributeContext.getEmptySet): New method.
1506 (AttributeContext.reclaim): New method.
1507 (AttributeContext.removeAttribute): New method.
1508 (AttributeContext.removeAttributes): New method.
1509 * javax/swing/text/Document.java
1510 (createPosition): Throws BadLocationException.
1511 (getText): Likewise.
1513 * javax/swing/text/JTextComponent.java
1514 (getText): Return null if no document is set. Catch
1515 BadLocationException.
1517 (updateUI): Simplified.
1519 2004-07-21 Michael Koch <konqueror@gmx.de>
1521 * javax/swing/JButton.java
1522 (removeNotify): Fixed javadoc.
1523 (updateUI): Simplified.
1525 2004-07-21 David Jee <djee@redhat.com>
1527 * gnu/java/awt/image/ImageDecoder.java
1528 (startProduction): Only add consumer if it's not added yet.
1529 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1530 (GdkPixbufDecoder): Don't call initState() here.
1531 (produce): Call initState() here, to ensure area_prepared and
1532 area_updated signals are properly connected.
1533 * gnu/java/awt/peer/gtk/GtkImage.java
1534 (setColorModel): Use equals() to compare ColorModel objects.
1535 (setPixels): Likewise.
1536 * java/awt/image/ColorModel.java
1537 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1538 * java/awt/image/RGBImageFilter.java
1539 (setColorModel): Set consumer's color model.
1540 (setPixels): Use equals() to compare ColorModel objects.
1542 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1544 * java/net/URLConnection.java (position): New field.
1545 (dateFormat1, dateFormat2, dateFormat3): Removed.
1546 (dateFormats): New field.
1547 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1548 each time instead of re-allocating.
1549 (initializeDateFormats): Initialize 'dateFormats'.
1551 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1554 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1557 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1559 * java/net/Socket.java (getImpl): Now private. Remove comment.
1561 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1563 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1564 of chained Writer when calling super-constructor.
1565 * java/io/FilterWriter.java (FilterWriter): Likewise.
1566 * java/io/PrintWriter.java (PrintWriter): Likewise.
1568 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1570 * prims.cc (process_gcj_properties): Don't increment i within LHS
1573 2004-07-19 Per Bothner <per@bothner.com>
1575 Print -verbose:message on "loading", not initialization.
1576 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1577 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1578 gcj::verbose_class_flag.
1579 * java/lang/natClass.cc (initializeClass): Don't print message here.
1580 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1581 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1582 (_Jv_PrepareCompiledClass): Likewise.
1584 2004-07-18 Matthias Klose <doko@debian.org>
1586 * configure.in: Substitute target_noncanonical.
1587 * configure: Regenerate
1589 2004-07-17 Michael Koch <konqueror@gmx.de>
1591 * java/lang/String.java: Fixed javadocs all over.
1593 2004-07-17 Mark Wielaard <mark@klomp.org>
1595 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1596 when size is smaller.
1597 * java/io/RandomAccessFile.java (setLength): Use truncate for
1598 shrinking the file and seek plus write for expanding the file.
1600 2004-07-17 Michael Koch <konqueror@gmx.de>
1602 * gnu/java/nio/channels/natFileChannelPosix.cc
1603 (implTruncate): Always save current position. Only reposition file
1604 pointer to where we started if not beyond new lenght. Reposition file
1605 pointer to file length if it points beyond the end of file.
1607 2004-07-17 Mark Wielaard <mark@klomp.org>
1609 * javax/swing/Box.java: Put FIXME comment above class declaration.
1610 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1611 * javax/swing/JCheckBox.java: Likewise.
1612 * javax/swing/JDialog.java: Likewise.
1613 * javax/swing/JRadioButton.java: Likewise.
1614 * javax/swing/JToggleButton.java: Likewise.
1615 * javax/swing/UIManager.java: Likewise.
1616 * javax/swing/border/TitledBorder.java: Likewise.
1617 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1618 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1619 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1620 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1621 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1622 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1623 * javax/swing/text/JTextComponent.java: Likewise.
1625 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1627 * java/net/DatagramPacket.java (setAddress): Removed check for
1630 2004-07-17 Michael Koch <konqueror@gmx.de>
1632 * java/net/DatagramSocket.java
1633 (getLocalAddress): Check if socket is bound or not.
1634 * java/net/Socket.java
1635 (getLocalAddrss): Check if socket is bound or not.
1636 (getPort): Return -1 when not connected. Dont check getImpl() for
1638 (setReuseAddress): Check if socket is closed.
1639 (isConnected): Check if getImpl() returns null.
1641 2004-07-17 Mark Wielaard <mark@klomp.org>
1643 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1644 on notifier object before calling notifyAll().
1646 2004-07-17 Michael Koch <konqueror@gmx.de>
1648 * gnu/java/nio/channels/FileChannelImpl.java
1649 (finalize): Added javadoc.
1651 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1653 * java/text/CollationElementIterator.java
1654 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1655 (setText): Use ArrayList instead of Vector.
1657 2004-07-17 Michael Koch <konqueror@gmx.de>
1659 * java/nio/ByteOrder.java
1660 (static): Removed. Not needed.
1661 Thanks to Patrick Reali for noticing.
1662 * java/nio/charset/CharsetDecoder.java
1663 (decode): Fix for classpath bug #9177: Reset state before flipping.
1665 2004-07-17 Michael Koch <konqueror@gmx.de>
1667 * java/security/Security.java: Fixed javadocs all over.
1669 2004-07-17 Michael Koch <konqueror@gmx.de>
1671 * gnu/java/awt/EmbeddedWindow.java
1673 (addNotify): Set peer via reflection.
1674 (setWindowPeer): Removed.
1675 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1676 * Makefile.am (nat_source_files):
1677 Removed gnu/java/awt/natEmbeddedWindow.cc.
1678 * Makefile.in: Regenerated.
1680 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1682 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1684 * configure: Regenerated.
1686 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1688 * configure.in: Use build_noncanonical rather than build_alias.
1689 * configure: Rebuild.
1691 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1692 by logic refactoring. Move default definition of NATIVE closer
1693 to first alternate definition.
1694 * configure: Regenerate.
1696 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1697 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1698 gcj/Makefile.in: Regenerate.
1699 * configure.in: Set ZIP and GCJH. Remove redundant condition
1700 in AM_CONDITIONAL(NATIVE,...)
1701 * configure: Regenerate.
1703 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1705 * configure.in: Use target_noncanonical rather than
1706 target_alias for forward-compatibility with autoconf 2.59.
1707 * configure: Regenerate.
1708 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1709 testsuite/Makefile.am: Substitute target_noncanonical.
1710 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1711 testsuite/Makefile.in: Regenerate.
1713 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1714 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1715 * acinclude.m4: Include acx.m4.
1716 * aclocal.m4: Regenerate.
1717 * configure: Regenerate.
1719 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1722 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1723 (decimalFormat): New static variable.
1725 (getTime): New. Override Date.getTime().
1726 (toString): Synchronize. Use decimalFormat to format nanos value
1727 correctly. Truncate extra zeros.
1728 (before): Compare getNanos() only if getTime() is equal.
1731 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1733 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1734 * configure.in: ...here.
1735 * aclocal.m4: Regenerate.
1736 * configure: Regenerate.
1738 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1739 * configure: Rebuilt with autoconf 2.13.
1740 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1741 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1743 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1746 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1748 * Makefile.in: Rebuilt.
1749 * testsuite/libjava.lang/LargeFile.java: New test case.
1750 * testsuite/libjava.lang/LargeFile.out: New file.
1752 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1754 * java/beans/EventHandler.java: Remove debugging statements.
1756 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1758 * java/beans/EventHandler.java: New file.
1759 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1760 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1761 testsuite/Makefile.in: Regenerate.
1763 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1765 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1766 flag to the gcj_setup.
1767 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1769 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1770 deprecation flag change. 58 XFAILS removed.
1772 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1774 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1775 -fno-use-divide-subroutine.
1776 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1777 (HANDLE_FPE): Define.
1778 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1779 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1780 (HANDLE_DIVIDE_OVERFLOW): Define.
1782 2004-07-14 Michael Koch <konqueror@gmx.de>
1783 Matthias Klose <doko@debian.org>
1785 * java/awt/im/InputContext.java: Initialize in, line.
1787 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1789 * interpret.cc (run): Correctly access libffi return values of
1790 integral smaller-than-int type; these are implicitly promoted.
1792 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1795 * interpret.cc (compile_mutex): New.
1796 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1797 (run): Lock compile_mutex before calling compile() if compilation is
1799 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1800 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1802 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1805 * include/jvm.h (_Jv_value): New union type.
1806 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1807 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1810 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1812 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1813 * gnu/awt/xlib/XOffScreenImage.java
1814 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1815 constructor argument. Add constructor using ImageProducer.
1816 (getSource): Implement.
1817 (imageComplete): New method.
1818 (setColorModel): New method.
1819 (setDimensions): New method.
1820 (setHints): New method.
1821 (setPixels): New method.
1822 (setProperties): New method.
1823 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1824 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1826 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1829 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1830 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1831 (finalizerReady): Now native.
1833 (runFinalizers): Removed.
1834 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1835 a primitive lock, and don't hold it while running the finalizers.
1836 (runFinalizers): Implement. Don't aquire any Java lock.
1837 (finalizerReady): Use lock primitives to signal finalizer thread.
1839 2004-07-11 Mark Wielaard <mark@klomp.org>
1841 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1842 * java/net/URLStreamHandler.java (parseURL): When url file part
1843 doesn't contain a '/' just ignore context.
1845 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1847 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1848 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1849 (MAKE_THROW_FRAME): Do not modify PSW address.
1850 (INIT_SEGV): Install SIGINFO-style signal handler.
1851 (INIT_FPE): Likewise.
1853 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1855 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1856 status. 21 xfail's removed, 1 added.
1858 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1860 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1862 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1864 * java/text/MessageFormat.java
1865 (formatInternal): Append "{n}" if argument n is unavailable.
1866 (format(Object, StringBuffer, FieldPosition)): This
1867 should be equivalent to format(Object[],
1868 StringBuffer, FieldPosition).
1870 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1872 * java.util.Calendar.java (cache): New private static field. Cached
1873 mappings of locales->calendar classes.
1874 (ctorArgTypes): New private static field. Singleton argument for
1875 calendar class constructor lookup.
1876 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1877 Optimize by bypassing reflection instantiation for the
1878 GregorianCalendar case.
1880 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1882 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1883 ResourceBundle.getBundle() calls.
1884 * java/util/GregorianCalendar.java: Likewise.
1885 * java/util/Currency.java: Likewise.
1886 * java/text/BreakIterator.java: Likewise.
1887 * java/text/Collator.java: Likewise.
1888 * java/text/DateFormat.java: Likewise.
1889 * java/text/DateFormatSymbols.java: Likewise.
1890 * java/text/DecimalFormatSymbols.java: Likewise.
1891 * java/text/NumberFormat.java: Likewise.
1892 * java/awt/Window.java: Likewise.
1894 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1896 * java/util/ResourceBundle.java (bundleCache): Renamed from
1897 resourceBundleCache. Update comments.
1898 (getObject): Don't catch MissingResourceException.
1899 (getBundle(String)): Remove 'final'. Use system classloader if
1900 getCallingClassLoader returned null.
1901 (getBundle(String, Locale)): Likewise.
1902 (BundleKey): New private class. HashMap key for bundle cache lookup.
1903 (lookupKey): New. Singleton instance of BundleKey.
1904 (nullEntry): New. Cache entry to represent failed lookups.
1905 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1906 caching strategy, no-allocation lookup, and new tryBundle methods.
1907 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1908 name using given classloader.
1909 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1910 baseName for given Locale and attempt to load bundle.
1912 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1914 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1915 illegal protected method calls.
1917 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1919 Fix or remove some bogus test cases.
1920 * testsuite/libjava.compile/pr10459_2.java: Removed.
1921 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1923 * testsuite/libjava.compile/inner_data.java: Test against its own
1926 2004-07-09 Michael Koch <konqueror@gmx.de>
1928 * scripts/unicode-muncher.pl: Updated to version 2.1
1929 from GNU classpath. Added some clarifications on where to find the
1930 needed files from www.unicode.org.
1931 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1932 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1933 Removed, these can directly be downloaded from www.unicode.org if
1935 * gnu/java/lang/CharData.java: Regenerated.
1936 * include/java-chartables.h: Regenerated.
1937 * Makefile.am (ordinary_java_source_files):
1938 Removed gnu/java/lang/CharData.java.
1939 * Makefile.in: Regenerated.
1941 2004-07-09 Michael Koch <konqueror@gmx.de>
1943 * java/security/AccessControlContext.java,
1944 java/security/SecureClassLoader.java:
1947 2004-07-09 Michael Koch <konqueror@gmx.de>
1949 * java/io/ObjectInputStream.java (readFields): Use long datatype
1950 when shifting byte values more then 24 bits left.
1952 2004-07-09 Michael Koch <konqueror@gmx.de>
1954 * java/util/zip/DeflaterOutputStream.java,
1955 java/util/zip/GZIPInputStream.java,
1956 java/util/zip/GZIPOutputStream.java,
1957 java/util/zip/InflaterInputStream.java:
1958 Reformatted. Added javadocs. Reordered all stuff.
1959 Renamed variables to be more clear.
1961 2004-07-09 Michael Koch <konqueror@gmx.de>
1963 * javax/imageio/IIOException.java,
1964 javax/imageio/event/IIOReadProgressListener.java,
1965 javax/imageio/event/IIOReadUpdateListener.java,
1966 javax/imageio/event/IIOReadWarningListener.java,
1967 javax/imageio/event/IIOWriteProgressListener.java,
1968 javax/imageio/event/IIOWriteWarningListener.java:
1970 * Makefile.am: Added new files.
1971 * Makefile.in: Regenerated.
1973 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1975 * java/text/RuleBasedCollator.java
1976 (mergeRules): Use ArrayList instead of Vector.
1977 (subParseString): likewise.
1978 (parseString): likewise.
1979 (buildCollationVector): likewise.
1980 (getCollationKey): likewise.
1982 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1984 * java/text/DateFormat.java (parse):
1985 Improved javadoc. Improved exception message.
1987 2004-07-09 Mark Wielaard <mark@klomp.org>
1989 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1990 interrupted() method to clear interupt flag of our Thread.
1992 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1994 * java/nio/Buffer.java,
1995 java/nio/ByteBuffer.java,
1996 java/nio/ByteBufferHelper.java,
1997 java/nio/ByteBufferImpl.java,
1998 java/nio/CharBuffer.java,
1999 java/nio/CharBufferImpl.java,
2000 java/nio/CharViewBufferImpl.java,
2001 java/nio/DirectByteBufferImpl.java,
2002 java/nio/DoubleBuffer.java,
2003 java/nio/DoubleBufferImpl.java,
2004 java/nio/DoubleViewBufferImpl.java,
2005 java/nio/FloatBuffer.java,
2006 java/nio/FloatBufferImpl.java,
2007 java/nio/FloatViewBufferImpl.java,
2008 java/nio/IntBuffer.java,
2009 java/nio/IntBufferImpl.java,
2010 java/nio/IntViewBufferImpl.java,
2011 java/nio/LongBuffer.java,
2012 java/nio/LongBufferImpl.java,
2013 java/nio/LongViewBufferImpl.java,
2014 java/nio/MappedByteBufferImpl.java,
2015 java/nio/ShortBuffer.java,
2016 java/nio/ShortBufferImpl.java,
2017 java/nio/ShortViewBufferImpl.java:
2018 Fixed javadocs all over. Improved input error
2021 * java/nio/Buffer.java
2022 (checkForUnderflow, checkForOverflow, checkIndex,
2023 checkIfReadOnly, checkArraySize): New helper methods
2026 * java/nio/ByteBufferHelper.java
2027 (checkRemainingForRead, checkRemainingForWrite,
2028 checkAvailableForRead, checkAvailableForWrite): Removed
2029 no longer needed methods.
2031 2004-07-09 Michael Koch <konqueror@gmx.de>
2033 * gnu/regexp/CharIndexedInputStream.java:
2034 Reordered imports to match classpath.
2036 2004-07-09 Michael Koch <konqueror@gmx.de>
2038 * gnu/java/awt/EmbeddedWindow.java:
2039 Load native library for setWindowPeer method.
2041 2004-07-08 Randolph Chung <tausq@debian.org>
2043 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
2044 * configure: Regenerate.
2045 * configure.host: Set can_unwind_signal for hppa*-linux.
2046 * include/pa-signal.h: New file.
2048 2004-07-07 Per Bothner <per@bothner.com>
2050 * Makefile.am: Add rules to build libgij from just gij.cc.
2052 * include/jvm.h (namespace jcj): Declare verbose_class_flag
2053 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
2054 (initializeClass): If verbose_class_flag, print message.
2055 * gij.cc (main): Handle -verbose:class flag.
2057 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
2059 * configure.host: Enable hash synchronization on Darwin.
2060 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
2061 ';', since this is a comment on Darwin.
2062 (compare_and_swap_release): Likewise.
2064 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
2066 * java/net/URLStreamHandler.java (parseURL): Canonicalize
2067 file portion of URL in addition to spec for file: protocol.
2069 2004-07-05 Anthony Green <green@redhat.com>
2071 * java/io/File.java (toURI): Merge from Classpath.
2073 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2075 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
2076 before passing to URL constructor. Rethrow any MalformedURLException
2077 as a RuntimeException. Catch MalformedURLException specifically, not
2080 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2082 * java/util/Locale.java (readObject): Intern strings read from object
2085 2004-07-04 Michael Koch <konqueror@gmx.de>
2087 * gnu/gcj/runtime/FirstThread.java,
2088 gnu/gcj/runtime/natFirstThread.cc: Removed.
2089 * gnu/java/lang/MainThread.java,
2090 gnu/java/lang/natMainThread.cc: New files.
2091 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
2092 * Makefile.am: Added new files and removed deleted ones.
2093 * Makefile.in: Regenerated.
2095 2004-07-03 Mark Wielaard <mark@klomp.org>
2096 Anthony Green <green@redhat.com>
2098 * java/net/URL.java (getFile): Clarify return value doc.
2099 (getPath): Return null if file is empty - not empty String.
2100 (set): Convert protocol to lower case before doing anything.
2101 Only change the protocol handler if it's different.
2103 2004-07-03 Anthony Green <green@redhat.com>
2105 * java/net/URL.java (URL): Convert protocol to lower case before
2106 doing anything, so we getURLStreamHandler() with the proper value.
2108 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
2110 * java/util/Locale.java (hashcode): Made transient.
2111 (hashCode): No longer synchronized.
2112 (equals): Remove comment.
2113 (writeObject): No longer synchronized. Implement using writeObject
2114 calls instead of tweaking hashCode field. Update doc.
2115 (readObject): Implement using readObject calls.
2117 2004-06-26 Geoffrey Keating <geoffk@apple.com>
2118 Andreas Tobler <a.tobler@schweiz.ch>
2120 * configure.host (powerpc-*-darwin*): New case, define
2122 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
2123 * configure: Regenerate.
2124 * include/darwin-signal.h: New.
2126 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
2128 * java/beans/Statement.java (doExecute): Fix formatting.
2130 2004-06-29 Per Bothner <per@bothner.com>
2132 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2133 etc etc): Remove needless parenthesis, which causes __stdcall__
2134 attribute on MinGW to get ignored.
2136 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
2138 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2140 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
2142 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
2144 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
2146 * java/beans/Expression.java: New file.
2147 * java/beans/Statement.java: New file.
2148 * Makefile.am: Added new files.
2149 * Makefile.in: Re-generate.
2151 2004-06-27 Mark Wielaard <mark@klomp.org>
2153 * java/io/FilePermission.java (usingPerms): Removed.
2154 (actionsString): Made final.
2155 (cachePerms): Renamed to checkPerms.
2156 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2158 (FilePermission): Check arguments, call checkPerms().
2159 (equals): Remove cachePerms() call.
2160 (implies): Likewise.
2162 2004-06-27 Mark Wielaard <mark@klomp.org>
2164 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2166 (sendRequest): Use new field in user-agent http agent.
2168 2004-06-27 Mark Wielaard <mark@klomp.org>
2170 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2171 when argument is null.
2173 2004-06-26 Mark Wielaard <mark@klomp.org>
2175 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2176 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2178 (cancel_clicked): Likewise.
2180 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2182 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2183 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2184 can not calculate the right value.
2185 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2187 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2189 * testsuite/libjava.jacks/jacks.xfail: Remove
2190 15.9.1-qualified-concrete-20.
2192 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2194 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2195 encoding name to iconv.
2196 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2198 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2201 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2202 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2203 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2205 2004-06-21 Andrew Haley <aph@redhat.com>
2207 * java/io/ObjectOutputStream.java: Add DEBUG statements
2209 (dumpElementln): New method.
2211 * java/io/ObjectInputStream.java
2212 (currentClassLoader): Make native.
2213 (callersClassLoader): New field.
2215 (readObject): ENDBLOCKDATA is generated if the class has a write
2216 method, not if it has a read method.
2217 (readObject): Save and restore this.currentObject and
2218 this.currentObjectStreamClass around calls to callReadMethod().
2219 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2222 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2224 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2227 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2229 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2230 if desired, before the default class loader is initialised.
2231 Call INIT_SEGV only if HANDLE_SEGV is defined.
2233 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2235 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2236 directory only if it actually exists.
2238 2004-06-18 Graydon Hoare <graydon@redhat.com>
2240 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2241 Fix up non-ansi comments.
2243 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2245 * javax/swing/text/AbstractDocument.java: Adding missing import
2246 for javax.swing.event.EventListenerList.
2247 * javax/swing/text/DefaultCaret.java: Likewise.
2249 2004-06-17 Michael Koch <konqueror@gmx.de>
2251 * javax/swing/JToolBar.java
2253 (JToolBar): Use Component.setName(String) instead of doing it all
2255 * javax/swing/Timer.java
2256 (queueEvent): Added missing modifier.
2258 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2260 * Makefile.am: Added new file.
2261 * Makefile.in: Re-generate.
2262 * javax/swing/JMenu.java:
2263 (insertSeparator): Implemented.
2264 * javax/swing/JPopupMenu.java:
2265 (JPopupMenu.Separator): Implemented.
2266 * javax/swing/MenuSelectionManager.java:
2267 (processMouseEvent): Use java.awt.Component
2268 for event source instead of javax.swing.JComponent.
2269 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2270 New File. Implemented.
2272 2004-06-16 David Jee <djee@redhat.com>
2274 * java/awt/GridBagLayout.java
2275 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2276 Make sure pos_x and pos_y are never negative.
2278 2004-04-16 Andrew Overholt <overholt@redhat.com>
2280 * Makefile.am: Add new file.
2281 * Makefile.in: Re-generate.
2282 * javax/swing/JToolBar.java
2283 Partially implemented.
2284 * javax/swing/plaf/basic/BasicToolBarUI.java
2285 New file. Partially implemented.
2287 2004-06-16 Graydon Hoare <graydon@redhat.com>
2289 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2290 (setComposite): Accept AlphaComposite arguments.
2291 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2292 (createBufferedImage): Add new overloads.
2293 * gnu/java/awt/peer/gtk/GtkToolkit.java
2294 (createImage): Use GdkPixbufDecoder.createBufferedImage
2295 when useGraphics2D() is true.
2296 (getImage): Delegate to createImage.
2297 * javax/swing/JList.java
2299 (getFirstVisibleIndex):
2300 (getLastVisibleIndex):
2302 (ensureIndexIsVisible): New methods.
2303 * javax/swing/Timer.java: Reimplement.
2305 2004-06-16 Michael Koch <konqueror@gmx.de>
2307 * javax/swing/text/AbstractDocument.java
2308 (AbstracElement): Made public, implements java.io.Serializable.
2309 (AttributeContext): Made public.
2310 (BranchElement): Likewise.
2311 (Content): Likewise.
2312 (DefaultDocumentEvent): Made public, extends
2313 javax.swing.undo.CompoundEdit.
2314 (ElementEdit): Made public, extends
2315 javax.swing.undo.AbstractUndoableEdit.
2316 (LeafElement): Made public.
2317 (LeafElement.LeafElement): Made public.
2319 2004-06-16 Michael Koch <konqueror@gmx.de>
2321 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2322 methods (that were obviously never be intended to get included hi this
2323 class. Added some methods too.
2325 2004-06-16 Michael Koch <konqueror@gmx.de>
2327 * javax/swing/text/PlainDocument.java
2328 (serialVersionUID): New constant.
2329 (lineLimitAttribute): Likewise.
2330 (tabSizeAttribute): Likewise.
2331 (tabSize): New field.
2332 (PlainDocument): Made public.
2333 (PlainDocument): New constructor.
2335 2004-06-16 Michael Koch <konqueror@gmx.de>
2337 * javax/swing/text/AbstractDocument.java
2338 (insertString): Throws BadLocationException.
2339 * javax/swing/text/Document.java
2340 (insertString): Likewise.
2341 * javax/swing/text/JTextComponent.java:
2342 Javadocs and comments cleaned up.
2344 2004-06-16 Michael Koch <konqueror@gmx.de>
2346 * javax/swing/event/UndoableEditListener.java: Reformatted.
2347 * javax/swing/text/AbstractDocument.java
2348 (AbstractDocument): Implements java.io.Serializable.
2349 (doc_list): Removed.
2350 (undo_list): Removed.
2351 (AbstractElement.serialVerionUID): New field.
2352 (BranchElement.serialVerionUID): Likewise.
2353 (DefaultDocumentEvent.serialVerionUID): Likewise.
2354 (ElementEdit.serialVerionUID): Likewise.
2355 (LeafElement.serialVerionUID): Likewise.
2356 (serialVerionUID): Likewise.
2357 (BAD_LOCATION): New constant.
2358 (BidiElementName): Likewise.
2359 (ContentElementName): Likewise.
2360 (ParagraphElementName): Likewise.
2361 (SectionElementName): Likewise.
2362 (ElementNameAttribute): Likewise.
2363 (AbstractDocument): Made protected.
2364 (AbstractDocument): New construtor.
2365 (listenerList): New field.
2366 (fireChangedUpdate): Implemented.
2367 (fireInsertUpdate): Likewise.
2368 (fireRemoveUpdate): Likewise.
2369 (fireUndoableEditUpdate): Likewise.
2370 (getListeners): Likewise.
2371 (addDocumentListener): Likewise.
2372 (removeDocumentListener): Likewise.
2373 (addUndoableEditListener): Likewise.
2374 (removeUndoableEditListener): Likewise.
2375 (getDocumentListeners): New method.
2376 (getUndoableEditListeners): Likewise.
2377 (getAsynchronousLoadPriority): Made public.
2378 (getBidiRootElement): Likewise.
2379 (setAsynchronousLoadPriority): Likewise.
2380 (setDocumentProperties): Likewise.
2381 * javax/swing/text/BadLocationException.java
2382 (serialVerionUID): New field.
2383 * javax/swing/text/DefaultCaret.java
2384 (changeEvent): New field.
2385 (listenerList): Likewise.
2387 (addChangeListener): Reimplemented.
2388 (removeChangeListener): Likewise.
2389 (getListeners): New method.
2390 (getChangeListeners): Likwise.
2391 (getComponent): Likewise.
2392 * javax/swing/text/GapContent.java
2393 (GapContent): Implements java.io.Serializable.
2394 (serialVerionUID): New field.
2396 2004-06-16 Michael Koch <konqueror@gmx.de>
2398 * javax/swing/JTree.java
2399 (treeModel): New field.
2400 (JTree): New constructors, one existing one made public.
2401 (createTreeModel): New method.
2402 (addTreeExpansionListener): Likewise.
2403 (removeTreeExpansionListener): Likewise.
2404 (getTreeExpansionListeners): Likewise.
2405 (fireTreeCollapsed): Likewise.
2406 (fireTreeExpanded): Likewise.
2407 (addTreeSelectionListener): Likewise.
2408 (removeTreeSelectionListener): Likewise.
2409 (getTreeSelectionListeners): Likewise.
2410 (fireValueChanged): Likewise.
2411 (addTreeWillExpandListener): Likewise.
2412 (removeTreeWillExpandListener): Likewise.
2413 (getTreeWillExpandListeners): Likewise.
2414 (fireTreeWillCollapse): Likewise.
2415 (fireTreeWillExpand): Likewise.
2417 2004-06-16 Michael Koch <konqueror@gmx.de>
2419 * javax/swing/JTree.java: Reformatted.
2421 2004-06-16 Michael Koch <konqueror@gmx.de>
2423 * javax/swing/JTextArea.java: New file.
2424 * javax/swing/JTextField.java
2426 (notifyAction): New constant.
2427 (columns): New field.
2428 (JTextField): New constructors.
2429 (createDefaultModel): New method.
2430 (addActionListener): Reimplmemented.
2431 (removeActionListener): Reimplemented.
2432 (getActionListeners): New method.
2433 (fireActionPerformed): New method.
2434 (getColumns): New method.
2435 (setColumne): New method.
2436 * javax/swing/text/JTextComponent.java
2437 (AccessibleJTextComponent.serialVersionUID): New field.
2438 (serialVersionUID): Likewise.
2439 (DEFAULT_KEYMAP): Likewise.
2440 (FOCUS_ACCELERATOR_KEY): Likewise.
2441 (doc): Made private.
2442 (icon_gap): Likewise.
2445 (JTextComponent): Some constructors removed.
2446 (getScrollableTracksViewportHeight): New method.
2447 (getScrollableTracksViewportWidth): Likewise.
2448 * Makefile.am: Added javax/swing/JTextArea.java.
2449 * Makefile.in: Regenerated.
2451 2004-06-15 Graydon Hoare <graydon@redhat.com>
2453 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2454 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2455 * javax/swing/JViewport.java
2456 (getExtentSize): Return size rather than preferred size.
2457 (toViewCoordinates): New methods.
2458 (getViewSize): Return size rather than preferred size.
2459 (setViewSize): Note view size as set.
2460 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2461 * javax/swing/plaf/basic/BasicScrollBarUI.java
2462 (getPreferredSize): Don't redo layout.
2463 * javax/swing/plaf/basic/BasicViewportUI.java
2464 (paint): Translate image properly and eat exceptions.
2466 2004-06-15 Kim Ho <kho@redhat.com>
2468 * javax/swing/JTabbedPane.java
2469 (setComponent): Remove old component and
2471 (setSelectedIndex): Don't operate on the
2472 components if they're null. Don't set index
2473 on the model if the index is the same.
2474 (insertTab): Don't add or hide the component
2475 if it's null. Repaint the container.
2476 * javax/swing/plaf/basic/BasicLookAndFeel.java
2477 Change colors for TabbedPane.
2478 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2479 (mousePressed): Re-layout and paint the component.
2480 (layoutContainer): Don't set location on the view.
2481 (ScrollingViewport::paint): Remove.
2483 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2485 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2486 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2488 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2489 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2490 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2492 (drawLine): Call gdk_flush before leaving GDK critical region.
2493 (fillRect): Likewise.
2494 (drawRect): Likewise.
2495 (copyArea): Likewise.
2496 (copyPixmap): Likewise.
2497 (clearRect): Likewise.
2498 (drawArc): Likewise.
2499 (drawPolyline): Likewise.
2500 (drawPolygon): Likewise.
2501 (fillPolygon): Likewise.
2502 (fillArc): Likewise.
2503 (drawOval): Likewise.
2504 (fillOval): Likewise.
2506 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2508 (GdkFontMetrics): Add style argument to initState call.
2509 (stringWidth(String,int,int,String)): Add style parameter.
2510 (stringWidth(String)): Add style argument to stringWidth call.
2511 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2512 (initState): Set pango font style and weight based on AWT style
2513 parameter. Pass default GTK language to
2514 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2515 simply dividing by PANGO_SCALE.
2516 (stringWidth): Set pango font style and weight based on AWT style
2519 * java/awt/Button.java (next_button_number): New field.
2520 (paramString): Change output.
2521 (generateName): New method.
2522 (getUniqueLong): New method.
2524 2004-06-14 Kim Ho <kho@redhat.com>
2526 * javax/swing/JTabbedPane.java:
2527 (setComponentAt): Set the component, not
2529 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2530 (actionPerformed): Let deiconize catch exception.
2532 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2534 * javax/swing/JPopupMenu.java:
2535 (setVisible): Corrected location of a
2536 heavyweight popup menu.
2538 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2540 * javax/swing/MenuSelectionManager.java:
2541 Ran through jalopy to fix formatting style.
2543 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2545 * javax/swing/JLayeredPane.java:
2546 (remove): Revalidate and repaint layered pane after
2547 the component was removed.
2548 javax/swing/JMenu.java:
2549 (setVisible): Display popup menu at the user location,
2550 if one was set by the user.
2551 (setMenuLocation): Reimplemented. Fixed javadoc.
2552 * javax/swing/JMenuBar.java: Added javadoc.
2553 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2554 (MODEL_CHANGED_PROPERTY): New Property.
2555 (isSelected): Implemented.
2556 (setBorderPainted): Fire PropertyChangeEvent
2557 if paintBorder property changes.
2558 (setSelected): Implemented.
2559 (setSelectionModel): Implemented.
2560 * javax/swing/JPopupMenu.java: Added Javadoc
2561 (pack): Implemented.
2562 (setVisible): Reimplemented.
2563 (show): Fixed location.
2564 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2565 Container instead of JPanel.
2566 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2567 (clearSelectedPath): Reimplemented to clear selectedPath
2569 (processMouseEvent): Reimplemented.
2570 (setSelectedPath): Fire stateChange event indicating that
2571 selected menu path has changed.
2572 (getPath): Change to use ArrayList instead of Vector.
2573 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2574 (installUI): call installKeyboardActions().
2575 (uninstallUI): call uninstallKeyboardActions().
2577 2004-06-13 Michael Koch <konqueror@gmx.de>
2579 * javax/swing/text/DefaultCaret.java,
2580 javax/swing/text/BadLocationException.java:
2583 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2585 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2586 DEFAULT_COLS): New variables.
2587 (create): Don't allow 0 rows or 0 columns. Instead, set the
2588 values to DEFAULT_ROWS or DEFAULT_COLS.
2589 (getMinimumSize): Likewise.
2590 (getPreferredSize): Likewise.
2591 (minimumSize): Likewise.
2592 (preferredSize): Likewise.
2593 (create): Set peer's editable state.
2594 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2595 zero. Update javadocs.
2596 (TextArea(String)): Likewise.
2597 (TextArea(int,int)): Fix javadocs.
2598 (TextArea(String,int,int,int)): Only throw exception if one of
2599 rows or columns is zero. Fix javadocs.
2601 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2603 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2604 addition to Components.
2606 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2607 wasn't consumed by normal processing, send it to the parent
2610 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2611 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2614 2004-06-11 David Jee <djee@redhat.com>
2616 * java/awt/MediaTracker.java
2617 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2618 (addImage(Image,int,int,int)): Likewise.
2620 2004-06-11 Michael Koch <konqueror@gmx.de>
2622 * javax/swing/text/AbstractDocument.java,
2623 javax/swing/text/Document.java,
2624 javax/swing/text/GapContent.java,
2625 javax/swing/text/JTextComponent.java,
2626 javax/swing/text/PlainDocument.java:
2629 2004-06-11 Michael Koch <konqueror@gmx.de>
2631 * javax/swing/JRootPane.java
2632 (AccessibleJRootPane.serialVersionUID): New field.
2633 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2634 (AccessibleJRootPane.getAccessibleRole): New method.
2635 (RootLayout): Implements Serializable.
2636 (RootLayout.serialVersionUID): New field.
2637 (RootLayout.RootLayout): New constructor.
2638 (setJMenuBar): Made public.
2639 (getJMenuBar): Likewise.
2640 (JRootPane): Likewise.
2641 (createContentPane): Likewise.
2642 (createGlassPane): Likewise.
2643 (createLayeredPane): Likewise.
2645 2004-06-11 Michael Koch <konqueror@gmx.de>
2647 * javax/swing/SwingUtilities.java
2648 (isLeftMouseButton): Fixed javadoc.
2649 (isMiddleMouseButton): Likewise.
2650 (isRightMouseButton): Likewise.
2652 2004-06-11 Michael Koch <konqueror@gmx.de>
2654 * javax/swing/JScrollPane.java
2655 (serialVersionUID): New field.
2656 (columnHeader): Made protected.
2657 (rowHeader): Likewise.
2658 (lowerLeft): Likewise.
2659 (lowerRight): Likewise.
2660 (upperLeft): Likewise.
2661 (upperRight): Likewise.
2662 (horizontalScrollBar): Likewise.
2663 (horizontalScrollBarPolicy): Likewise.
2664 (verticalScrollBar): Likewise.
2665 (verticalScrollBarPolicy): Likewise.
2666 (viewport): Likewise.
2668 2004-06-11 Michael Koch <konqueror@gmx.de>
2670 * javax/swing/LookAndFeel.java: Fixed javadocs.
2672 2004-06-11 Michael Koch <konqueror@gmx.de>
2674 * javax/swing/JEditorPane.java: Fixed javadocs.
2675 (JEditorPane): Removed redundant call to to this().
2676 (fireHyperlinkUpdate): Implemented.
2678 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2680 * javax/swing/JMenu.java: Fixed file name
2681 in the file comment.
2683 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2685 * javax/swing/JMenu.java: Added javadoc.
2686 (JMenu): Added MenuChangeListener to listen to
2687 ChangeEvents occuring in menu's model.
2688 (insert): Throw IllegalArgumentException if
2689 index is less than 0
2690 (setSelected): Reimplement.
2691 (setPopupMenuVisible): Call menu's model isEnabled()
2692 (setDelay): Throw IllegalArgumentException if
2693 given amount of delay is less than 0.
2694 (createActionComponent): Implemented.
2695 (createActionChangeListener): Implemented.
2696 (addSeparator): Implemented.
2697 (getItem): Throw IllegalArgumentException if index is
2699 (getItemCount): Implemented.
2700 (fireMenuSelected): Changed to use menuEvent.
2701 (fireMenuDeselected): Likewise.
2702 (fireMenuCanceled): Likewise.
2703 (setAccelerator): Changed to throw an error if this
2705 (doClick): Implemented.
2706 (JMenu.ActionChangedListener): New inner class to handle
2707 PropertyChangeEvents occuring in the actions associated with menu.
2708 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2709 (BasicMenuUI): Added PropertyChangeListener to the menu.
2710 (createChangeListener): Implemented.
2711 (createMenuDragMouseListener): Likewise.
2712 (createMenuKeyListener): Likewise.
2713 (createPropertyChangeListener): Likewise.
2714 (uninstallListeners): Likewise.
2715 (BasicMenuUI.MouseInputHandler): Reimplemented.
2716 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2717 (BasicMenuUI.ChangeHandler): Likewise.
2718 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2719 (BasicMenuUI.MenuKeyHandler): Likewise.
2721 2004-06-10 David Jee <djee@redhat.com>
2723 * java/awt/MediaTracker.java
2724 (imageUpdate): Only do notifyAll() if the image is complete.
2726 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2728 * javax/swing/JApplet.java:
2729 (getJMenuBar): Made public.
2730 (setJMenuBar): Likewise.
2731 * javax/swing/JFrame.java:
2732 (getJMenuBar): Made public.
2733 (setJMenuBar): Likewise.
2734 * javax/swing/JWindow.java:
2735 (getJMenuBar): Removed.
2736 (setJMenuBar): Removed.
2738 2004-06-10 Michael Koch <konqueror@gmx.de>
2740 * javax/swing/JEditorPane.java
2741 (createEditorKitForContentType): Fixed visibility.
2742 (fireHyperlinkUpdate): Likewise.
2743 (getContentType): Likewise.
2744 (getEditorKit): Likewise.
2745 (getEditorKitForContentType): Likewise.
2746 (getPage): Likewise.
2748 (registerEditorKitForContentTyoe): Likewise.
2749 (replaceSelection): Likewise.
2750 (setContentType): Likewise.
2751 (setEditorKit): Likewise.
2752 (setPage): Likewise.
2754 2004-06-10 Michael Koch <konqueror@gmx.de>
2756 * javax/swing/Timer.java
2757 (Timer): New constructor.
2758 * javax/swing/plaf/basic/BasicProgressBarUI.java
2759 (animationTimer): Don't initialize at construction.
2760 (startAnimationTimer): Added since tag.
2761 (stopAnimationTimer): Likewise.
2762 (installUI): Use new Timer constructor.
2763 * javax/swing/plaf/basic/BasicScrollBarUI.java
2764 (installUI): Likewise.
2765 * javax/swing/plaf/basic/BasicSliderUI.java
2766 (installUI): Likewise.
2768 2004-06-10 Michael Koch <konqueror@gmx.de>
2770 * javax/swing/ButtonGroup.java
2771 (serialVersionUID): Made private.
2772 (buttons): Renamed from v, added javadoc.
2773 (sel): Added javadoc.
2774 (ButtonGroup): Likewise.
2777 (getElements): Likewise.
2778 (getSelection): Likewise.
2779 (setSelected): Likewise.
2780 (isSelected): Likewise.
2781 (getButtonCount): Likewise.
2783 2004-06-10 Michael Koch <konqueror@gmx.de>
2785 * javax/swing/ButtonGroup.java,
2786 javax/swing/ImageIcon.java,
2787 javax/swing/JEditorPane.java,
2788 javax/swing/JRootPane.java,
2789 javax/swing/JTextField.java,
2790 javax/swing/LookAndFeel.java,
2791 javax/swing/plaf/basic/BasicTextUI.java:
2794 2004-06-10 Michael Koch <konqueror@gmx.de>
2796 * javax/swing/text/Style.java: Added javadocs.
2798 2004-06-10 Michael Koch <konqueror@gmx.de>
2800 * javax/swing/JComponent.java
2801 (fireVetoableChange): Removed redundant cast.
2802 * javax/swing/JLabel.java
2803 (getDisabledIcon): Save icon for next call.
2805 2004-06-10 Michael Koch <konqueror@gmx.de>
2807 * javax/swing/KeyStroke.java
2808 (getKeyStroke(char,boolean)): Marked deprecated.
2810 2004-06-10 Michael Koch <konqueror@gmx.de>
2812 * javax/swing/DefaultCellEditor.java,
2813 javax/swing/GrayFilter.java,
2814 javax/swing/event/DocumentEvent.java,
2815 javax/swing/text/JTextComponent.java,
2816 javax/swing/text/MutableAttributeSet.java:
2819 2004-06-10 Michael Koch <konqueror@gmx.de>
2821 * javax/swing/plaf/BorderUIResource.java:
2822 Added serialVersionUID all over.
2824 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2826 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2828 2004-06-10 Michael Koch <konqueror@gmx.de>
2830 * javax/swing/table/DefaultTableCellRenderer.java
2831 (noFocusBorder): Initialize directly.
2833 2004-06-10 Michael Koch <konqueror@gmx.de>
2835 * javax/swing/plaf/basic/BasicArrowButton.java
2836 (setDirection): Use method argument.
2838 2004-06-10 Michael Koch <konqueror@gmx.de>
2840 * javax/swing/plaf/BorderUIResource.java,
2841 javax/swing/plaf/ComponentUI.java,
2842 javax/swing/undo/CompoundEdit.java,
2843 javax/swing/undo/StateEdit.java:
2844 Fixed javadocs all over.
2846 2004-06-10 Michael Koch <konqueror@gmx.de>
2848 * javax/swing/DefaultButtonModel.java
2849 (ARMED): Made public final, fixed value.
2850 (ENABLED): Likewise.
2851 (PRESSED): Likewise.
2852 (ROLLOVER): Likewise.
2853 (SELECTED): Likewise.
2854 (stateMask): Initialize directly.
2855 (listenerList): Likewise.
2856 (mnemonic): Likewise.
2857 (fireStateChanged): Removed argument, use changeEvent as event.
2858 All places where this method is called are fixed too.
2859 (getActionCommant): Fixed javadoc.
2860 (setGroup): Fixed javadoc.
2861 (getGroup): New method.
2863 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2865 * javax/swing/AbstractButton.java
2866 (AbstractButton): Use init() to initialize the button.
2867 (init): New Method. Initializes AbstractButton.
2868 * javax/swing/JMenuItem.java: Documented.
2869 (JMenuItem): Reimplemented.
2870 (init): Implemented.
2871 (setEnabled): Changed to call super.setEnabled()
2872 (processMouseEvent): Reimplemented.
2873 (fireMenuKeyPressed): Implemented.
2874 (fireMenuKeyReleased): Implemented.
2875 (fireMenuKeyTyped): Implemented.
2876 (menuSelectionChanged): disarm the model if the menu item was
2878 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2879 (getPath): Change to use ArrayList instead of Vector.
2880 (getPreferredSize): Renamed variable.
2881 (paintMenuItem): Paint margin area of menu item.
2882 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2883 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2884 menu item's bounds before clearing the selection.
2886 2004-06-09 David Jee <djee@redhat.com>
2888 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2889 (GtkTextComponentPeer): Set caret position to 0.
2890 * java/awt/TextComponent.java
2891 (setText): Set caret position to 0.
2892 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2893 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2894 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2895 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2897 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2898 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2901 2004-06-09 Kim Ho <kho@redhat.com>
2903 * Makefile.am: New files
2904 * Makefile.in: Regenerated
2905 * java/awt/Container.java
2906 (getComponentAt): Removed.
2907 * javax/swing/AbstractAction.java
2908 (ENABLED_PROPERTY): New property.
2909 (putValue): Fire PropertyChangeEvents.
2910 (setEnabled): ditto.
2911 (firePropertyChange): Javadoc and implement
2913 * javax/swing/AbstractButton.java
2914 (setAction): Don't create PropertyChangeListener
2915 if new Action is null.
2916 (setIcon): Don't set icon till after comparing
2918 (configurePropertiesFromAction): Check mnemonic
2919 key before calling intValue().
2920 (createActionPropertyChangeListener): Check
2921 properties rather than bulk change.
2922 * javax/swing/DefaultDesktopManager.java:
2924 * javax/swing/DesktopManager.java:
2926 * javax/swing/JComponent.java
2927 (fireVetoableChange): Implement.
2928 (paintImmediately): Use root component.
2929 * javax/swing/JDesktopPane.java: Implement
2930 * javax/swing/JInternalFrame.java: Implement
2931 * javax/swing/JLabel.java
2932 (getDisabledIcon): Return grayscaled icon if
2933 no disabled icon specified.
2934 * javax/swing/JMenuBar.java
2935 (getComponentAtIndex): Use getComponent
2936 * javax/swing/JOptionPane.java
2937 (getDesktopPaneForComponent): Use SwingUtilities'
2939 (getFrameForComponent): ditto.
2940 * javax/swing/JSplitPane.java
2941 (remove): Use getComponent.
2942 * javax/swing/SwingUtilities.java
2943 (convertPoint): Implement.
2944 * javax/swing/plaf/basic/BasicButtonUI.java
2945 (paintButtonNormal): Check opaqueness before
2947 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2949 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2951 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2953 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2955 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2956 Change InternalFrame and Desktop colors.
2958 2004-06-09 David Jee <djee@redhat.com>
2960 * java/awt/Container.java
2961 (remove): Do not set component to invisible.
2963 2004-06-09 Michael Koch <konqueror@gmx.de>
2965 * javax/swing/tree/DefaultMutableTreeNode.java
2966 (getLeafCount): Renamed enum to e.
2968 2004-06-09 Michael Koch <konqueror@gmx.de>
2970 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2971 (positionForMouseEvent): Removed redundant semicolon.
2972 (continueDrag): Use method arguments.
2974 2004-06-09 Michael Koch <konqueror@gmx.de>
2976 * javax/swing/border/TitledBorder.java,
2977 javax/swing/filechooser/FileSystemView.java,
2978 javax/swing/plaf/basic/BasicButtonListener.java,
2979 javax/swing/plaf/basic/BasicGraphicsUtils.java,
2980 javax/swing/plaf/basic/BasicLabelUI.java,
2981 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2982 javax/swing/plaf/basic/BasicScrollBarUI.java,
2983 javax/swing/plaf/basic/BasicScrollPaneUI.java,
2984 javax/swing/plaf/basic/BasicSliderUI.java,
2985 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2986 javax/swing/plaf/basic/BasicToggleButtonUI.java,
2987 javax/swing/table/JTableHeader.java,
2988 javax/swing/text/AbstractDocument.java,
2989 javax/swing/text/DefaultCaret.java,
2990 javax/swing/text/StyledEditorKit.java,
2991 javax/swing/tree/DefaultTreeCellEditor.java:
2992 Reworked import statements.
2994 2004-06-08 Graydon Hoare <graydon@redhat.com>
2996 * javax/swing/Box.java: Temporarily comment out code
2997 broken due to visibility bug.
2999 2004-06-09 Michael Koch <konqueror@gmx.de>
3001 * javax/swing/ImageIcon.java
3002 (ImageIcon): Added missing constructor.
3004 2004-06-08 Michael Koch <konqueror@gmx.de>
3006 * javax/swing/JToggleButton.java
3007 (JToggleButton): New constructor.
3008 (getAccessibleContext): Moved documentation into javadoc.
3009 (getUIClassID): Likewise.
3011 2004-06-08 Michael Koch <konqueror@gmx.de>
3013 * javax/swing/AbstractButton.java
3014 (getDisabledIcon): Create disabled icon if none exists yet.
3016 2004-06-08 Michael Koch <konqueror@gmx.de>
3018 * javax/swing/plaf/basic/BasicLookAndFeel.java
3019 (initClassDefaults): Added FormattedTextFieldUI.
3020 (loadResourceBundle): Renamed enum to e.
3022 2004-06-08 Michael Koch <konqueror@gmx.de>
3024 * javax/swing/plaf/basic/BasicButtonUI.java
3025 (paintIcon): Simplified.
3026 (paintText): Paint disabled button correctly.
3028 2004-06-08 Michael Koch <konqueror@gmx.de>
3030 * javax/swing/JComponent.java
3031 (createToolTip): Use official JToolTip API.
3033 2004-06-08 Michael Koch <konqueror@gmx.de>
3035 * javax/swing/JToolTip.java
3036 (JToolTip): No arguments in API.
3037 (setTipText): New method.
3039 2004-06-08 Michael Koch <konqueror@gmx.de>
3041 * javax/swing/SwingUtilities.java
3042 (isLeftMouseButton): New method.
3043 (isMiddleMouseButton): New method.
3044 (isRightMouseButton): New method.
3046 2004-06-08 Michael Koch <konqueror@gmx.de>
3048 * javax/swing/AbstractButton.java,
3049 javax/swing/CellRendererPane.java,
3050 javax/swing/JCheckBoxMenuItem.java,
3051 javax/swing/JColorChooser.java,
3052 javax/swing/JComboBox.java,
3053 javax/swing/JComponent.java,
3054 javax/swing/JDesktopPane.java,
3055 javax/swing/JFileChooser.java,
3056 javax/swing/JMenu.java,
3057 javax/swing/JMenuItem.java,
3058 javax/swing/JOptionPane.java,
3059 javax/swing/JPasswordField.java,
3060 javax/swing/JPopupMenu.java,
3061 javax/swing/JProgressBar.java,
3062 javax/swing/JRadioButtonMenuItem.java,
3063 javax/swing/JScrollBar.java,
3064 javax/swing/JSeparator.java,
3065 javax/swing/JSlider.java,
3066 javax/swing/JSplitPane.java,
3067 javax/swing/JTabbedPane.java,
3068 javax/swing/JTextField.java,
3069 javax/swing/JToolBar.java,
3070 javax/swing/text/JTextComponent.java:
3071 Fixed all constructors of accessibility classes.
3073 2004-06-08 Michael Koch <konqueror@gmx.de>
3075 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
3078 2004-06-08 Michael Koch <konqueror@gmx.de>
3080 * javax/swing/Box.java
3081 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
3082 (AccessibleBoxFiller.serialVersionUID): New member variable.
3083 * javax/swing/DefaultButtonModel.java
3084 (stateMask): Made protected.
3085 (listenerList): Likewise.
3086 (changeEvent): Likewise.
3088 (mnemonic): Likewise.
3089 (actionCommand): Likewise.
3090 (getListeners): New method.
3091 (getActionListeners): New method.
3092 (getItemListeners): New method.
3093 (getChangeListeners): New method.
3094 (fireItemStateChanged): Simplified.
3095 (fireActionPerformed): Simplified.
3096 (fireStateChanged): Simplified.
3097 * javax/swing/JFrame.java
3098 (JFrame): Implements WindowContants.
3099 (HIDE_ON_CLOSE): Removed.
3100 (EXIT_ON_CLOSE): Removed.
3101 (DISPOSE_ON_CLOSE): Removed.
3102 (DO_NOTHING_ON_CLOSE): Removed.
3103 (processWindowEvent): Exit with code 0.
3104 (setDefaultCloseOperation): Do security check before setting value.
3105 * javax/swing/JOptionPane.java
3106 (message): Initialize only in constructor.
3107 * javax/swing/JToolTip.java: Removed unused imports.
3108 * javax/swing/JViewport.java
3109 (serialVersionUID): New member variable.
3110 (SIMPLE_SCROLL_MODE): Made final, fixed value.
3111 (BLIT_SCROLL_MODE): Likewise.
3112 (BACKINGSTORE_SCROLL_MODE): Likewise.
3113 (scrollUnderway): Made protected.
3114 (isViewSizeSet): Likewise.
3115 * javax/swing/ListModel.java: Fixed javadoc.
3116 * javax/swing/Popup.java: Likewise.
3117 * javax/swing/RepaintManager.java
3118 (paintDirtyRegions): Don't use internal classes of
3119 java.util.AbstractMap.
3120 * javax/swing/ScrollPaneConstants.java: Reindented.
3121 * javax/swing/ScrollPaneLayout.java
3122 (viewport): Made protected.
3123 (verticalScrollBar): Made protected, renamed to vsb.
3124 (horizontalScrollBar): Made protected, renamed to hsb.
3125 (rowHeader): Made protected, renamed to rowHead.
3126 (columnHeader): Made protected, renamed to colHead.
3127 (lowerLeft): Made protected.
3128 (lowerRight): Made protected.
3129 (upperLeft): Made protected.
3130 (upperRight): Made protected.
3131 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3132 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3134 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
3136 * java/awt/MediaTracker.java (imageUpdate): Only set status to
3137 LOADING if flags has SOMEBITS set.
3139 2004-06-07 Michael Koch <konqueror@gmx.de>
3141 * javax/swing/AbstractButton.java: Reorganized imports.
3142 * javax/swing/ActionMap.java: Likewise.
3143 * javax/swing/DefaultButtonModel.java: Likewise.
3144 * javax/swing/DefaultListModel.java: Likewise.
3145 * javax/swing/ImageIcon.java: Likewise.
3146 (serialVersionUID): New member variable.
3147 * javax/swing/JComboBox.java: Reorganized imports.
3148 * javax/swing/JComponent.java: Likewise.
3149 (ui): Made protected.
3150 (listenerList): Made protected.
3151 (TOOL_TIP_TEXT_KEY): New constant.
3152 (scrollRectToVisible): Removed redundant null check.
3153 * javax/swing/JFrame.java: Reorganized imports.
3154 * javax/swing/JInternalFrame.java: Reorganized imports.
3155 * javax/swing/JProgressBar.java: Likewise.
3156 * javax/swing/JRootPane.java: Likewise.
3157 * javax/swing/JScrollBar.java: Likewise.
3158 * javax/swing/JSeparator.java: Likewise.
3159 * javax/swing/JSlider.java: Likewise.
3160 * javax/swing/JTabbedPane.java: Likewise.
3161 * javax/swing/JTextField.java: Likewise.
3162 * javax/swing/JToolBar.java: Likewise.
3163 * javax/swing/JTree.java: Likewise.
3164 * javax/swing/JViewport.java: Likewise.
3165 * javax/swing/JWindow.java: Likewise.
3166 * javax/swing/KeyStroke.java: Likewise.
3167 * javax/swing/LookAndFeel.java: Likewise.
3168 * javax/swing/MenuSelectionManager.java: Likewise.
3169 * javax/swing/SwingUtilities.java: Likewise.
3170 * javax/swing/Timer.java: Likewise.
3171 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3172 * javax/swing/JList.java
3173 (HORIZONTAL_WRAP): Made final, fixed value.
3174 (VERTICAL): Likewise.
3175 (VERTICAL_WRAP): Likewise.
3177 2004-06-07 Michael Koch <konqueror@gmx.de>
3179 * javax/swing/AbstractButton.java
3180 (serialVersionUID): New member variable.
3181 (AccessibleAbstractButton.serialVersionUID): Likewise.
3182 (AbstractButton): Made public.
3183 * javax/swing/Box.java
3184 (AccessibleBox.serialVersionUID): New member variable.
3185 (Filler.serialVersionUID): Likewise.
3186 * javax/swing/DefaultListSelectionModel.java
3187 (serialVersionUID): Likewise.
3188 * javax/swing/JApplet.java
3189 (serialVersionUID): Likewise.
3190 * javax/swing/JCheckBox.java
3191 (serialVersionUID): Likewise.
3192 * javax/swing/JCheckBoxMenuItem.java
3193 (serialVersionUID): Likewise.
3194 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3195 * javax/swing/JColorChooser.java
3196 (serialVersionUID): Likewise.
3197 (AccessibleJColorChooser.serialVersionUID): Likewise.
3198 * javax/swing/JComponent.java
3199 (serialVersionUID): Made private.
3200 (AccessibleJComponent.serialVersionUID): New member variable.
3201 * javax/swing/JDesktopPane.java
3202 (serialVersionUID): Likewise.
3203 * javax/swing/JDialog.java
3204 (serialVersionUID): Likewise.
3205 * javax/swing/JFormattedTextField.java
3206 (serialVersionUID): Fixed value.
3207 * javax/swing/JFrame.java
3208 (serialVersionUID): New member variable.
3209 (getDefaultCloseOpertation): Made public.
3210 * javax/swing/JLayeredPane.java
3211 (serialVersionUID): Likewise.
3212 (LAYER_PROPERTY): Made final, fixed value.
3213 (JLayeredPane): Made public.
3214 * javax/swing/JMenu.java
3215 (AccessibleJMenu.serialVersionUID): New member variable.
3216 (WinListener.serialVersionUID): Likewise.
3217 * javax/swing/JMenuBar.java
3218 (serialVersionUID): Likewise.
3219 (getComponentAtIndex): Added @deprecated tag.
3220 * javax/swing/JMenuItem.java
3221 (serialVersionUID): New member variable.
3222 (AccessibleJMenuItem.serialVersionUID): Likewise.
3223 * javax/swing/JOptionPane.java
3224 (serialVersionUID): Likewise.
3225 (AccessibleJOptionPane.serialVersionUID): Likewise.
3226 * javax/swing/JPopupMenu.java
3227 (serialVersionUID): Likewise.
3228 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3229 (getPopupMenuListeners): New method.
3230 (getComponentAtIndex): Added @deprecated tag.
3231 * javax/swing/JProgressBar.java
3232 (serialVersionUID): New member variable.
3233 (AccessibleJProgressBar.serialVersionUID): Likewise.
3234 * javax/swing/JRadioButton.java
3235 (serialVersionUID): Likewise.
3236 * javax/swing/JRadioButtonMenuItem.java
3237 (serialVersionUID): Likewise.
3238 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3239 * javax/swing/JScrollBar.java
3240 (serialVersionUID): Likewise.
3241 (AccessibleJScrollBar.serialVersionUID): Likewise.
3242 * javax/swing/JSeparator.java
3243 (serialVersionUID): Likewise.
3244 (AccessibleJSeparator.serialVersionUID): Likewise.
3245 * javax/swing/JSlider.java: Fixed javadocs.
3246 (AccessibleJSlider.serialVersionUID): New member variable.
3247 * javax/swing/JSplitPane.java: Added copyright statement.
3248 (serialVersionUID): New member variable.
3249 (AccessibleJSplitPane.serialVersionUID): Likewise.
3250 * javax/swing/JTabbedPane.java
3251 (serialVersionUID): Likewise.
3252 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3253 (ModelListener.serialVersionUID): Likewise.
3254 (ModelListener.ModelListener): New constructor.
3255 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3256 (WRAP_TAB_LAYOUT): Likewise.
3257 * javax/swing/JTable.java
3258 (serialVersionUID): New member variable.
3259 * javax/swing/JToggleButton.java
3260 (serialVersionUID): Likewise.
3261 (ToggleButtonModel): Made static.
3262 (ToggleButtonModel.serialVersionUID): New member variable.
3263 * javax/swing/JToolTip.java
3264 (serialVersionUID): Likewise.
3265 * javax/swing/JTree.java
3266 (serialVersionUID): Likewise.
3267 * javax/swing/JWindow.java
3268 (serialVersionUID): Likewise.
3269 * javax/swing/Timer.java
3270 (serialVersionUID): Likewise.
3272 2004-06-06 Michael Koch <konqueror@gmx.de>
3274 * javax/swing/SwingConstants.java
3275 (NEXT): New constant.
3276 (PREVIOUS): Likewise.
3277 * javax/swing/UIManager.java
3278 (LookAndFeel): Made public.
3279 (LookAndFeel.getClassName): Likewise.
3280 (LookAndFeel.getName): Likewise.
3282 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3284 * javax/swing/JCheckBoxMenuItem.java:
3286 * javax/swing/JMenu.java: Likewise.
3287 * javax/swing/JMenuBar.java: Likewise.
3288 * javax/swing/JMenuItem.java: Likewise.
3289 * javax/swing/JPopupMenu.java: Likewise.
3290 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3291 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3292 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3293 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3294 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3295 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3296 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3298 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3300 * javax/swing/plaf/basic/BasicMenuUI.java:
3301 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3302 Call getPath() from super class instead.
3304 2004-05-31 David Jee <djee@redhat.com>
3306 * java/awt/Container.java
3307 (remove): Set component visibility to false after removing it.
3309 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3311 * java/awt/Component.java (getForeground): Return SystemColor if
3313 (getBackground): Likewise.
3315 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3316 (item_highlighted): New function.
3317 (connectSignals): Set item_highlighted as list's select
3320 * java/applet/Applet.java: Revert changes from 2004-04-29,
3321 2004-03-15 and 2004-03-14.
3323 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3324 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3327 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3328 "Dialog" as the default font.
3329 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3331 * java/awt/Component.java (getFont): Return "Dialog" font by
3333 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3334 Multiply size argument to pango_font_description_set_size by the
3335 DPI conversion factor rather than by PANGO_SCALE.
3336 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3337 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3338 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3339 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3340 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3341 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3342 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3343 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3344 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3345 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3346 Divide baseline y coordinate by DPI conversion factor rather
3347 than by PANGO_SCALE.
3348 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3349 (area_prepared): Fix typo.
3350 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3351 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3352 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3353 (dpi_conversion_factor): New global variable.
3354 (init_dpi_conversion_factor): New function to calculate and
3355 track DPI conversion factor.
3356 (dpi_changed_cb): New callback.
3357 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3359 2004-05-27 David Jee <djee@redhat.com>
3361 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3362 (getGraphics): Return a new GdkGraphics instance.
3363 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3364 (getGraphics): Call super.getGraphics().
3366 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3368 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3369 (setNativeBounds): Clamp width and height values to >= 0.
3371 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3372 (find_fg_color_widget): Handle GtkOptionMenu specially.
3374 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3375 (pre_event_handler): Only post configure events to visible
3378 2004-05-26 David Jee <djee@redhat.com>
3380 * java/awt/BorderLayout.java
3381 (layoutContainer): Fix size calculations.
3383 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3385 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3386 (window_wm_protocols_filter): Remove function.
3387 (create): Remove filter that removes WM_TAKE_FOCUS client
3390 2004-06-17 Anthony Green <green@redhat.com>
3392 * java/util/zip/ZipFile.java (getInputStream): Return null if
3395 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3396 directory contents to the class path.
3398 2004-06-15 Andrew Haley <aph@redhat.com>
3400 * java/lang/natSystem.cc (getenv0): Don't assume environment
3401 variable is Latin 1 coded.
3403 2004-06-14 Andreas Jaeger <aj@suse.de>
3405 * configure.in: Support --enable-version-specific-runtime-libs.
3406 * configure: Regenerated.
3408 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3410 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3411 to pass ClassLoader argument.
3412 * java/util/GregorianCalendar.java: Likewise.
3413 * java/util/Currency.java: Likewise.
3414 * java/text/BreakIterator.java: Likewise.
3415 * java/text/Collator.java: Likewise.
3416 * java/text/DateFormat.java: Likewise.
3417 * java/text/DateFormatSymbols.java: Likewise.
3418 * java/text/DecimalFormatSymbols.java: Likewise.
3419 * java/text/NumberFormat.java: Likewise.
3420 * java/awt/Window.java: Likewise.
3422 2004-06-14 Andrew Haley <aph@redhat.com>
3424 * java/lang/System.java: (getenv0): New method.
3425 (getenv): Add security check. Do the right thing.
3426 * java/lang/natSystem.cc (getenv0): New method.
3428 2004-06-12 Mark Wielaard <mark@klomp.org>
3430 * javax/swing/RepaintManager.java
3431 (paintDirtyRegions): Use entrySet(), not values().
3433 2004-06-10 Mark Wielaard <mark@klomp.org>
3435 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3438 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3440 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3441 when we already know the answer.
3442 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3443 (setStartRule,setEndRule): Don't take abs of day number.
3444 (getOffset): Clarify docs. Add argument checks.
3445 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3446 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3449 2004-06-10 Tom Tromey <tromey@redhat.com>
3451 * interpret.cc (run): Handle wide fload.
3453 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3455 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3457 2004-06-05 Michael Koch <konqueror@gmx.de>
3459 * javax/swing/SwingConstants.java
3460 (NEXT): New constant.
3461 (PREVIOUS): Likewise.
3463 2004-06-05 Michael Koch <konqueror@gmx.de>
3465 * javax/swing/UIManager.java
3466 (LookAndFeel): Made public.
3467 (LookAndFeel.getName): Likewise.
3468 (LookAndFeel.getClassName): Likewise.
3470 2004-06-03 Michael Koch <konqueror@gmx.de>
3472 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3473 (requestFocus): Revert last changes.
3474 (gtkRequestFocus): Removed.
3475 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3476 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3478 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3479 Reverted last patch.
3480 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3481 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3482 Reverted comment change.
3484 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3486 * javax/swing/JCheckBoxMenuItem.java:
3488 * javax/swing/JMenu.java: Likewise.
3489 * javax/swing/JMenuBar.java: Likewise.
3490 * javax/swing/JMenuItem.java: Likewise.
3491 * javax/swing/JPopupMenu.java: Likewise.
3492 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3493 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3494 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3495 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3496 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3497 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3498 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3500 2004-06-01 Tom Tromey <tromey@redhat.com>
3502 * java/io/ObjectStreamField.java: Cleaned up imports.
3504 2004-06-01 Michael Koch <konqueror@gmx.de>
3506 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3508 2004-06-01 Mark Wielaard <mark@klomp.org>
3510 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3512 2004-06-01 Michael Koch <konqueror@gmx.de>
3514 * java/security/Security.java
3515 (insertProviderAt): Use equals() instead of ==.
3516 (removeProvicer): Likewise.
3517 (getProvider): Likewise.
3518 * java/security/Signature.java
3519 (sign): Don't set state to UNINITIALIZED.
3522 2004-06-01 Mark Wielaard <mark@klomp.org>
3524 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3525 Implement by calling gtkRequestFocus.
3526 (gtkRequestFocus): New native method.
3527 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3528 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3530 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3532 (filter_expose_event_handler):
3534 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3535 (menu_pos): Mark static.
3537 2004-06-01 Michael Koch <konqueror@gmx.de>
3539 * java/text/CollationElementIterator.java,
3540 java/text/CollationKey.java,
3541 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3542 * testsuite/libjava.mauve/xfails: Removed all
3543 java.text.CollationElementIterator tests.
3545 2004-06-01 Michael Koch <konqueror@gmx.de>
3547 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3549 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3550 Java 1.5 keyword usage.
3552 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3554 * javax/swing/plaf/basic/BasicMenuUI.java:
3555 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3556 Call getPath() from super class instead.
3558 2004-05-31 Michael Koch <konqueror@gmx.de>
3560 * java/io/SequenceInputStream.java:
3561 Rename enum to e because enum is a keyword in Java 1.5.
3563 2004-05-31 Michael Koch <konqueror@gmx.de>
3565 * gnu/java/rmi/rmic/CompilerProcess.java:
3566 Fixed javadoc to by XHTML compliant.
3568 2004-05-30 Mark Wielaard <mark@klomp.org>
3570 * java/awt/Toolkit.java (loadSystemColors): Implement.
3572 2004-05-30 Michael Koch <konqueror@gmx.de>
3574 * java/lang/System.java: Reordered imports.
3576 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3578 * java/text/DecimalFormat.java
3579 (parse): Fixed parsing of decimal strings. Number of maximum
3580 digits to be read should now work.
3581 * java/text/SimpleDateFormat.java
3582 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3583 formatter. This fixes DateFormatTest.
3585 2004-05-30 Michael Koch <konqueror@gmx.de>
3587 * java/nio/Buffer.java
3588 (limit): Fixed off by one error.
3589 * java/nio/CharBuffer.java
3590 (wrap): Fixed arguments, added javadocs.
3592 2004-05-30 Michael Koch <konqueror@gmx.de>
3594 * gnu/java/beans/BeanInfoEmbryo.java,
3595 java/awt/im/InputContext.java,
3596 javax/swing/tree/DefaultMutableTreeNode.java:
3597 Rename enum to e because enum is a keyword in Java 1.5.
3599 2004-05-30 Michael Koch <konqueror@gmx.de>
3601 * gnu/java/math/MPN.java,
3602 java/awt/geom/Arc2D.java:
3603 Fixed javadocs all over.
3605 2004-05-30 Michael Koch <konqueror@gmx.de>
3607 * java/awt/DefaultKeyboardFocusManager.java
3608 (dispatchEvent): Call method to get key event dispatchers.
3609 (dispatchKeyEvent): Call method to get key event post processors.
3610 * javax/swing/JComponent.java
3611 (listenerList): Made protected.
3612 * javax/swing/JOptionPane.java
3613 (message): Don't initialize.
3614 (JOptionPane): Set message text.
3615 * javax/swing/JPopupMenu.java
3616 (show): Fixed typo in argument name.
3617 * javax/swing/RepaintManager.java
3618 (paintDirtyRegions): Use public API of java.util.Map.
3619 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3620 (positionForMouseEvent): Removed redundant ';'.
3621 (continueDrag): Use method arguments.
3623 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3625 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3628 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3630 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3632 * gnu/gcj/RawDataManaged.java: New file.
3633 * java/lang/Thread.java (data): Declare as RawDataManaged.
3634 * java/lang/natThread.cc (init_native): Cast natThread data to
3635 RawDataManaged, not jobject.
3636 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3637 * Makefile.in: Rebuilt.
3639 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3641 * java/util/SimpleTimeZone.java: Reverting my last change until I
3642 can fix it properly.
3644 2004-05-27 Michael Koch <konqueror@gmx.de>
3646 * javax/swing/JPopupMenu.java
3647 (isVisible): Do not use visible directly.
3648 (setVisible): Likewise.
3649 * javax/swing/JWindow.java
3650 (JWindow): call accessible constructor.
3651 * javax/swing/RepaintManager.java
3652 (paintDirtyRegions): Use public methods to obtain iterator.
3654 2004-05-25 David Jee <djee@redhat.com>
3656 * java/awt/Container.java
3657 (remove): Set component's parent to null only after we removed the
3658 component from its parent's layout manager.
3660 2004-05-25 David Jee <djee@redhat.com>
3662 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3663 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3665 * gnu/java/awt/peer/gtk/GtkListPeer.java
3666 (getSize): Change native method declaration.
3667 (minimumSize): Pass visible row count into getSize().
3668 (preferredSize): Likewise.
3669 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3670 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3671 natural size. Use visible row count to determine the final height
3674 2004-05-21 Graydon Hoare <graydon@redhat.com>
3676 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3677 (setClip): Minor correction to order of operations.
3679 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3680 * javax/swing/ScrollPaneLayout.java: Likewise.
3681 * javax/swing/JViewPort.java: Likewise.
3682 * javax/swing/ViewportLayout.java: Likewise.
3684 * javax/swing/JComponent.java: Rewrite.
3685 * javax/swing/RepaintManager.java: Likewise.
3687 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3688 * javax/swing/JList.java
3689 (setSelectedIndices):
3690 (getSelectedIndices):
3691 (getSelectedValues): New functions.
3692 (getPreferredScrollableViewportSize): Return preferred size.
3693 (getScrollableUnitIncrement):
3694 (getScrollableBlockIncrement): Initial implementations.
3695 * javax/swing/JRootPane.java: Clean up slightly.
3700 (isValidateRoot): Add overrides from JComponent.
3701 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3702 * javax/swing/UIManager.java (getDimension): Return the dimension.
3704 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3705 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3706 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3707 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3708 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3709 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3710 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3711 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3712 Likewise, and set background.
3713 * javax/swing/plaf/basic/BasicListUI.java:
3714 Likewise, and improve a bit.
3715 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3716 Likewise, and adjust calculations.
3717 * javax/swing/plaf/basic/BasicViewportUI.java:
3718 Likewise, and improve a bit.
3719 * javax/swing/plaf/basic/BasicLookAndFeel.java
3720 (Button.margin): Shrink.
3722 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3723 Hack to set horizontal always, workaround pango.
3725 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3726 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3727 Synchronize more often, check cairo status after ops,
3728 handle changes to cairo pattern API, check for disposal.
3730 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3732 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3733 (BasicMenuItemUI): Create propertyChangeListener.
3734 (getPath):Implemented.
3735 (installListeners): Add propertyChangeListener to menuItem.
3736 (uninstallListeners): Remove propertyChangeListener from menuItem.
3737 (update): Implemented.
3738 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3739 (mouseEntered): Take insets of popup menu into account when
3740 calculating position of popup menu.
3742 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3744 * Makefile.am: Added new file.
3745 * Makefile.in: Regenerate.
3746 * javax/swing/JMenuBar.java:
3747 Started implementation.
3748 * javax/swing/JPopupMenu.java:
3749 (setVisible): Fixed location of lightweight/mediumweight
3751 (show): Fixed location of PopupMenu.
3752 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3753 New file. UI Delegate for JMenuBar.
3754 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3755 (mouseEntered): Corrected position of the submenu.
3757 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3759 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3760 to _gtk_accel_group_attach.
3761 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3764 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3765 package access. Don't override setFont.
3766 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3767 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3768 gtkWidgetRequestFocus package access.
3769 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3771 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3772 Give gtkWidgetRequestFocus package access.
3773 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3774 gtkWidgetRequestFocus package access. Don't override setFont.
3775 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3777 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3778 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3780 (gtkSetFont): Likewise.
3781 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3784 (gtkSetFont): Whitespace fix.
3786 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3787 (gtkWidgetSetUsize): Remove method.
3789 2004-05-18 David Jee <djee@redhat.com>
3791 * java/awt/image/MemoryImageSource.java
3792 (newPixels(int,int,int,int,boolean)): Set only the specified
3793 rectangle of pixels.
3794 (newPixels(byte[],ColorModel,int,int)): Implement.
3795 (newPixels(int[],ColorModel,int,int)): Implement.
3797 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3799 * Makefile.am: Added new file.
3800 * Makefile.in: Regenerate.
3801 * javax/swing/JMenu.java: Started
3803 * javax/swing/JPopupMenu.java:
3804 (insert): If specified index is -1, then
3805 add component at the end.
3806 (isPopupTrigger): Reimplemented.
3807 (JPopupMenu.LightWeightPopup): setBounds
3808 of the lightWeightPopup before adding it
3810 (javax/swing/plaf/basic/BasicIconFactory.java):
3811 (getMenuArrowIcon): Implemented.
3812 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3813 (getPreferredSize): Add size of the arrow icon
3814 if this menu item is instance of JMenu.
3815 (paintMenuItem): Paint arrow icon if this
3816 menu item is a submenu.
3817 * javax/swing/plaf/basic/BasicMenuUI.java:
3818 New File. UI Delegate for JMenu.
3820 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3822 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3823 Post KEY_TYPED events.
3824 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3825 (generates_key_typed_event): Remove function.
3827 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3829 * javax/swing/JRootPane.java
3830 (JRootPane.RootLayout): Reimplemented to
3831 set bounds of contentPane and menuBar.
3832 (setJMenuBar): Add menu bar to the layered pane.
3833 (createLayeredPane): Set layout of layeredPane
3835 * javax/swing/JLayeredPane.java:
3836 (addImpl): Calculate index of the component in the
3837 layeredPane according to the specified position within
3840 2004-05-17 David Jee <djee@redhat.com>
3842 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3843 (setPixels): Change color model to the default model after
3845 * java/awt/image/MemoryImageSource.java
3846 (newPixels): Set only the specified rectangle of pixels.
3848 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3850 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3851 -l-java-beans -l-javax-accessibility -l-javax-swing.
3853 * java/awt/AWTEvent.java (toString): Print source's name rather
3854 than the source itself.
3856 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3858 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3860 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3861 (gdk_color_to_java_color): New function.
3862 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3864 2004-05-12 David Jee <djee@redhat.com>
3866 * java/awt/image/RGBImageFilter.java:
3867 Initialize origmodel as null.
3868 (makeColor): Fix pixel component order.
3869 (filterRGBPixels): Fix pixel iteration.
3870 (setPixels): Add extra checks for index color model. Convert pixels
3871 to default color model if necessary.
3872 (convertColorModelToDefault): New override method for byte pixels.
3873 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3874 (makeColorbyDefaultCM): New override method for byte pixels.
3875 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3876 (makeColor): Fix pixel component order.
3878 2004-05-11 Kim Ho <kho@redhat.com>
3880 * javax/swing/Box.java:
3881 Comment out more parts of Box.Filler.
3883 2004-05-11 Kim Ho <kho@redhat.com>
3885 * javax/swing/Box.java:
3886 Remove reference to AccessibleAWTComponent so
3889 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3891 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3892 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3893 implementation of list peer to use GtkTreeView instead of
3894 deprecated GtkCList.
3896 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3898 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3899 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3900 (handleEvent): Remove keyChar argument to
3901 gtkWidgetDispatchKeyEvent calls.
3902 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3904 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3905 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3906 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3909 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3911 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3912 (gtkWidgetRequestFocus): Mark protected.
3913 (GtkComponentPeer): Only set the peer's bounds if its component
3915 * java/awt/Component.java (static): Set the default keyboard
3917 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3918 requestFocusInWindow(temporary)): Don't request focus if the
3919 component is not showing. Get tree lock before traversing
3920 component hierarchy.
3921 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3922 Only set the global focus owner if it is not a Window.
3923 (processKeyEvent): Consume keystrokes associated with the focus
3924 traversal keystroke.
3925 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3926 downFocusCycle): Call requestFocusInWindow instead of
3928 * java/awt/EventDispatchThread.java (run): Move setting of
3929 default keyboard focus manager to Component.java.
3930 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3931 (awt_keycode_to_keysym): New function.
3932 (gtkWidgetDispatchKeyEvent): Finish implementation.
3933 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3934 (pre_event_handler): Add FIXME comment.
3936 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3937 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3938 (gtkWidgetRequestFocus): New method.
3939 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3940 disable Tab and Shift-Tab keystrokes.
3941 (addNotify, appendText, insertText, replaceText): Simplify peer
3943 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3944 (connectSignals): Remove connections to "commit" signals.
3945 Remove C++-style comments.
3947 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3948 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3949 (handleEvent): Activate GTK button when the space bar key is
3951 (gtkActivate): New method.
3953 2004-05-06 David Jee <djee@redhat.com>
3955 * java/awt/image/CropImageFilter.java
3956 (setPixels): Implement for byte array pixels.
3957 * java/awt/image/ReplicateScaleFilter.java
3958 (setPixels): Implement for byte array pixels.
3959 (replicatePixels): Overload for byte array pixels.
3961 2004-05-06 Kim Ho <kho@redhat.com>
3963 * javax/swing/Box.java:
3964 (getAccessibleContext): Return an instance of the
3967 2004-05-05 David Jee <djee@redhat.com>
3969 * gnu/java/awt/peer/gtk/GdkGraphics.java
3970 (drawImage): When component is null, use SystemColor.window as
3971 the default bgcolor.
3972 * gnu/java/awt/peer/gtk/GtkImage.java
3973 (setPixels): We can avoid iterating through the pixel rows only
3975 * java/awt/Image.java
3976 (getScaledInstance): Partially implement.
3977 * java/awt/image/CropImageFilter.java
3978 (setProperties): Fix "filter" property.
3979 (setPixels): Implement.
3980 * java/awt/image/ReplicateScaleFilter.java
3981 (setDimensions): Use scaled dimensions.
3982 (setPixels): Implement.
3983 (replicatePixels): New method.
3985 2004-05-05 David Jee <djee@redhat.com>
3987 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3988 (convertPixels): If either pixels or model is null, return null.
3989 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3990 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3991 is null, do nothing and return.
3993 2004-05-03 Kim Ho <kho@redhat.com>
3995 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3996 (getGraphics): Like GtkFramePeer, the Graphics
3997 object needs to be translate to account for
3999 (postMouseEvent): New method. Account for
4001 (postExposeEvent): ditto.
4002 * javax/swing/Box.java: Stubbed.
4003 * javax/swing/JDialog.java: Ran through jalopy
4005 (JDialog): Call SwingUtilities' getOwnerFrame
4007 (setLayout): Check isRootPaneCheckingEnabled
4008 * javax/swing/JOptionPane.java: Re-implemented.
4009 * javax/swing/SwingUtilities.java:
4010 (getOwnerFrame): Static method to grab a default
4011 owner frame for Dialogs that don't specify owners.
4012 * javax/swing/event/SwingPropertyChangeSupport.java:
4013 (firePropertyChange): Fix early exit condition.
4014 * javax/swing/plaf/basic/BasicLabelUI.java:
4015 (paint): Avoid painting text if it is null
4017 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4020 2004-05-03 Olga Rodimina <rodimina@redhat.com>
4022 * Makefile.am: Added new file.
4023 * Makefile.in: Regenerate.
4024 * javax/swing/JPopupMenu.java:
4025 Started implementation.
4026 * javax/swing/JWindow.java
4027 (JWindow): call super() if parent for window
4029 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4030 New File. UI Delegate for JPopupMenu.
4032 2004-04-30 Olga Rodimina <rodimina@redhat.com>
4034 * javax/swing/JApplet.java: Indicated that JApplet
4035 implements RootPaneContainer and made method of this
4037 * javax/swing/JFrame.java: Ditto.
4038 * javax/swing/JWindow.java: Ditto.
4040 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
4042 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4043 (nativeSetBounds): Call gdk_window_move in addition to
4046 * java/applet/Applet.java (preferredSize): Call parent's
4047 preferredSize if the applet stub is null.
4048 (minimumSize): Likewise for parent's minimumSize.
4050 2004-04-27 Olga Rodimina <rodimina@redhat.com>
4052 * javax/swing/JMenuItem.java
4053 (createActionPropertyChangeListener): Implemented.
4054 (processMouseEvent): Ditto.
4055 (fireMenuDragMouseEntered): Ditto.
4056 (fireMenuDragMouseExited): Ditto.
4057 (fireMenuDragMouseDragged): Ditto.
4058 (fireMenuDragMouseReleased): Ditto.
4059 (menuSelectionChanged): Ditto.
4060 (getSubElements): Ditto.
4061 (getComponent): Ditto.
4062 (addMenuDragMouseListener): Ditto.
4063 (removeMenuDragMouseListener):Ditto.
4064 (addMenuKeyListener): Ditto.
4065 (removeMenuKeyListener): Ditto.
4066 * javax/swing/plaf/basic/BasicMenuItemUI.java
4067 (doClick): Imlemented.
4068 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
4069 Don't handle mouse events here. Pass them to
4070 MenuSelectionManager.
4072 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4073 Used correct version of jalopy configuration
4074 file to fix style in the files below.
4076 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4078 * javax/swing/JCheckBoxMenuItem.java:
4079 Fixed style and removed unnecessary comments.
4080 * javax/swing/JMenuItem.java: Ditto.
4081 * javax/swing/JRadioButtonMenuItem.java: Ditto.
4082 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
4083 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
4084 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
4086 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
4088 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
4091 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
4093 * java/awt/ContainerOrderFocusTraversalPolicy.java
4094 (getComponentAfter): Start from current component and work up
4095 the component hierarchy until an acceptable component is found.
4096 Synchronize on tree lock.
4097 (getComponentBefore): Likewise.
4099 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
4101 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
4102 focus-related debugging messages.
4103 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
4104 * java/awt/EventDispatchThread.java: Likewise.
4105 * java/awt/KeyboardFocusManager.java: Likewise.
4106 * java/awt/Window.java: Likewise.
4107 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
4108 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4110 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
4111 new C++-style comments to C-style comments.
4112 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4114 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4115 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4116 (handleEvent): Dispatch key press and key release events to
4118 (requestFocus): Post a FOCUS_GAINED event to the event queue.
4119 (gtkWidgetRequestFocus): New method.
4120 (gtkWidgetDispatchKeyEvent): Likewise.
4121 * java/awt/Component.java (requestFocus, requestFocus(boolean),
4122 requestFocusInWindow, requestFocusInWindow(boolean),
4123 getFocusCycleRootAncestor, nextFocus, transferFocus,
4124 transferFocusBackward, transferFocusUpCycle, hasFocus,
4125 isFocusOwner): Implement and document focus-handling methods.
4126 (setFocusTraversalKeys): Inherit focus traversal keys when
4127 keystrokes argument is null. Fix focus-handling documentation
4129 * java/awt/Container.java (setFocusTraversalKeys,
4130 getFocusTraversalKeys, areFocusTraversalKeysSet,
4131 isFocusCycleRoot, setFocusTraversalPolicy,
4132 getFocusTraversalPolicy, isFocusTraversalPolicySet,
4133 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4134 Implement and document focus-handling methods.
4135 (transferFocusBackward): Remove method.
4136 (readObject, writeObject): Implement and document serialization
4138 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4140 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4142 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4144 * java/awt/EventDispatchThread.java (run): Set default keyboard
4145 focus manager. Attempt to dispatch each event to the keyboard
4146 focus manager before normal dispatch.
4147 * java/awt/KeyboardFocusManager.java: Implement and partially
4149 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4150 (show): Focus initial component when window is shown for the
4152 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4153 (pre_event_handler): Replace complex key press and key release
4154 logic with simple callbacks into GtkComponentPeer.
4155 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4157 2004-04-21 Olga Rodimina <rodimina@redhat.com>
4159 * javax/swing/MenuSelectionManager.java
4160 (componentForPoint): Added new method.
4161 (defaultManager): New Method. Implemented.
4162 (getSelectedPath): Ditto.
4163 (isComponentPartOfCurrentMenu): Ditto.
4164 (processKeyEvent): Added new method.
4165 (processMouseEvent): New Method. Implemented.
4166 (setSelectedPath): Ditto.
4169 2004-04-19 Kim Ho <kho@redhat.com>
4171 * java/awt/Container.java:
4172 (remove): Set the component's parent to null.
4173 (getComponentAt): Implement.
4174 * javax/swing/JComponent.java:
4175 (JComponent): Initialize defaultLocale
4176 (getDefaultLocale): Implement.
4177 (setDefaultLocale): ditto.
4178 * javax/swing/JSlider.java:
4179 (JSlider): Fix calculation of value.
4180 * javax/swing/JSplitPane.java: Implement.
4181 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4182 Change SplitPane's default divider size.
4183 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4184 (paint): Remove unused code.
4185 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4186 Added comments and ran through jalopy.
4187 (setBasicSplitPaneUI): Get reference to hidden divider
4188 and set up one touch buttons if necessary.
4189 (setBorder): Fire propertyChangeEvent only if
4190 borders are different.
4191 (getPreferredSize): Defer to layout manager.
4192 (propertyChange): Implement.
4193 (oneTouchExpandableChanged): ditto.
4194 (createLeftOneTouchButton): Use BasicArrowButton.
4195 (createRightOneTouchButton): ditto.
4196 (moveDividerTo): New method. Moves the divider
4197 to a set location based on the last divider location.
4198 (BasicSplitPaneDivider::MouseHandler): Implement.
4199 (BasicSplitPaneDivider::OneTouchButton): Removed.
4200 (BasicSplitPaneDivider::DragController): Implement.
4201 (BasicSplitPaneDivider::VerticalDragController):
4203 (BasicSplitPaneDivider::DividerLayout): ditto.
4204 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4205 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4206 (calculateLayoutInfo): Don't show component if it's
4208 (paintTab): Fix title paint logic.
4210 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
4213 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4214 (setStartRule,setEndRule): Don't take abs of day number.
4215 (getOffset): Clarify docs. Add argument checks.
4216 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4217 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4219 * testsuite/libjava.mauve/xfails
4220 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4222 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4224 Layout interfaces during preparation, not initialization.
4225 * java/lang/natClass.cc (initializeClass): Move
4226 _Jv_LayoutInterfaceMethods call...
4227 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4229 2004-05-19 Anthony Green <green@localhost.localdomain>
4231 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4233 * Makefile.in: Rebuilt.
4234 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4235 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4236 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4237 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4238 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4239 gnu/javax/rmi/CORBA/DelegateFactory.java,
4240 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4241 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4242 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4243 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4244 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4245 gnu/javax/rmi/PortableServer.java: Remove files.
4247 2004-05-19 Anthony Green <green@redhat.com>
4249 * Makefile.am: Define JAVA_EXT_DIRS.
4250 * Makefile.in: Rebuilt.
4251 * java/lang/natRuntime.cc (insertSystemProperties): Set
4252 java.ext.dirs property.
4254 2004-05-16 Mark Wielaard <mark@klomp.org>
4256 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4258 2004-05-15 Mark Wielaard <mark@klomp.org>
4260 * doc/cni.sgml: Removed, merged into gcj.texi.
4262 2004-05-15 Mark Wielaard <mark@klomp.org>
4264 * Makefile.am (ordinary_java_source_files): Add new javax.print
4266 * Makefile.in: Regenerated.
4268 2004-05-15 Michael Koch <konqueror@gmx.de>
4270 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4271 javax/print/attribute/standard/DateTimeAtCreation.java,
4272 javax/print/attribute/standard/DateTimeAtProcessing.java,
4273 javax/print/attribute/standard/DocumentName.java,
4274 javax/print/attribute/standard/JobHoldUntil.java,
4275 javax/print/attribute/standard/JobImpressionsCompleted.java,
4276 javax/print/attribute/standard/JobMessageFromOperator.java,
4277 javax/print/attribute/standard/JobName.java,
4278 javax/print/attribute/standard/JobOriginatingUserName.java,
4279 javax/print/attribute/standard/JobPriority.java,
4280 javax/print/attribute/standard/JobPrioritySupported.java,
4281 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4282 javax/print/attribute/standard/OutputDeviceAssigned.java,
4283 javax/print/attribute/standard/PrinterInfo.java,
4284 javax/print/attribute/standard/PrinterLocation.java,
4285 javax/print/attribute/standard/PrinterMakeAndModel.java,
4286 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4287 javax/print/attribute/standard/PrinterName.java,
4288 javax/print/attribute/standard/QueuedJobCount.java,
4289 javax/print/attribute/standard/RequestingUserName.java:
4290 Fixed javadocs all over.
4292 2004-05-15 Michael Koch <konqueror@gmx.de>
4294 * javax/print/DocFlavor.java,
4295 javax/print/attribute/standard/ColorSupported.java,
4296 javax/print/attribute/standard/Compression.java,
4297 javax/print/attribute/standard/CopiesSupported.java,
4298 javax/print/attribute/standard/Fidelity.java,
4299 javax/print/attribute/standard/Finishings.java,
4300 javax/print/attribute/standard/JobImpressionsSupported.java,
4301 javax/print/attribute/standard/JobKOctetsSupported.java,
4302 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4303 javax/print/attribute/standard/JobSheets.java,
4304 javax/print/attribute/standard/JobState.java,
4305 javax/print/attribute/standard/JobStateReason.java,
4306 javax/print/attribute/standard/JobStateReasons.java,
4307 javax/print/attribute/standard/Media.java,
4308 javax/print/attribute/standard/MediaSizeName.java,
4309 javax/print/attribute/standard/MultipleDocumentHandling.java,
4310 javax/print/attribute/standard/NumberUpSupported.java,
4311 javax/print/attribute/standard/OrientationRequested.java,
4312 javax/print/attribute/standard/PDLOverrideSupported.java,
4313 javax/print/attribute/standard/PageRanges.java,
4314 javax/print/attribute/standard/PresentationDirection.java,
4315 javax/print/attribute/standard/PrintQuality.java,
4316 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4317 javax/print/attribute/standard/PrinterMoreInfo.java,
4318 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4319 javax/print/attribute/standard/PrinterResolution.java,
4320 javax/print/attribute/standard/PrinterState.java,
4321 javax/print/attribute/standard/PrinterStateReason.java,
4322 javax/print/attribute/standard/PrinterStateReasons.java,
4323 javax/print/attribute/standard/PrinterURI.java,
4324 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4325 javax/print/attribute/standard/Severity.java,
4326 javax/print/attribute/standard/SheetCollate.java,
4327 javax/print/attribute/standard/Sides.java:
4328 Added serialVersionUID and removed final keyword where it doenst
4331 2004-05-15 Michael Koch <konqueror@gmx.de>
4333 * javax/print/PrintServiceLookup.java: New file.
4335 2004-05-15 Michael Koch <konqueror@gmx.de>
4337 * javax/print/DocFlavor.java:
4338 Implemented all flavor classes.
4340 2004-05-15 Michael Koch <konqueror@gmx.de>
4342 * javax/print/attribute/standard/ColorSupported.java,
4343 javax/print/attribute/standard/Compression.java,
4344 javax/print/attribute/standard/CopiesSupported.java,
4345 javax/print/attribute/standard/Fidelity.java,
4346 javax/print/attribute/standard/Finishings.java,
4347 javax/print/attribute/standard/JobImpressionsSupported.java,
4348 javax/print/attribute/standard/JobKOctetsSupported.java,
4349 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4350 javax/print/attribute/standard/JobSheets.java,
4351 javax/print/attribute/standard/JobState.java,
4352 javax/print/attribute/standard/JobStateReason.java,
4353 javax/print/attribute/standard/JobStateReasons.java,
4354 javax/print/attribute/standard/Media.java,
4355 javax/print/attribute/standard/MediaSizeName.java,
4356 javax/print/attribute/standard/MultipleDocumentHandling.java,
4357 javax/print/attribute/standard/NumberUpSupported.java,
4358 javax/print/attribute/standard/OrientationRequested.java,
4359 javax/print/attribute/standard/PDLOverrideSupported.java,
4360 javax/print/attribute/standard/PageRanges.java,
4361 javax/print/attribute/standard/PresentationDirection.java,
4362 javax/print/attribute/standard/PrintQuality.java,
4363 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4364 javax/print/attribute/standard/PrinterMoreInfo.java,
4365 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4366 javax/print/attribute/standard/PrinterResolution.java,
4367 javax/print/attribute/standard/PrinterState.java,
4368 javax/print/attribute/standard/PrinterStateReason.java,
4369 javax/print/attribute/standard/PrinterStateReasons.java,
4370 javax/print/attribute/standard/PrinterURI.java,
4371 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4372 javax/print/attribute/standard/Severity.java,
4373 javax/print/attribute/standard/SheetCollate.java,
4374 javax/print/attribute/standard/Sides.java: New files.
4376 2004-05-15 Michael Koch <konqueror@gmx.de>
4378 * javax/print/Doc.java
4379 (getPrintData): Throws IOException.
4380 (getReaderForText): Likewise.
4381 (getStreamForBytes): Likewise.
4382 * javax/print/DocFlavor.java:
4383 Fixed filename in copyright.
4384 (serialVersionUID): New field.
4385 * javax/print/ServiceUIFactory.java:
4386 Made all constants final.
4387 * javax/print/AttributeException.java
4388 javax/print/MultiDoc.java
4389 javax/print/MultiDocPrintJob.java
4390 javax/print/MultiDocPrintService.java
4391 javax/print/StreamPrintService.java
4392 javax/print/URIException.java: New files.
4393 * javax/print/Makefile.am
4394 (EXTRA_DIST): Added all new files.
4396 2004-05-15 Michael Koch <konqueror@gmx.de>
4398 * javax/print/attribute/standard/Copies.java,
4399 javax/print/attribute/standard/DateTimeAtCompleted.java,
4400 javax/print/attribute/standard/DateTimeAtCreation.java,
4401 javax/print/attribute/standard/DateTimeAtProcessing.java,
4402 javax/print/attribute/standard/DocumentName.java,
4403 javax/print/attribute/standard/JobHoldUntil.java,
4404 javax/print/attribute/standard/JobImpressions.java,
4405 javax/print/attribute/standard/JobImpressionsCompleted.java,
4406 javax/print/attribute/standard/JobKOctets.java,
4407 javax/print/attribute/standard/JobKOctetsProcessed.java,
4408 javax/print/attribute/standard/JobMediaSheets.java,
4409 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4410 javax/print/attribute/standard/JobMessageFromOperator.java,
4411 javax/print/attribute/standard/JobName.java,
4412 javax/print/attribute/standard/JobOriginatingUserName.java,
4413 javax/print/attribute/standard/JobPriority.java,
4414 javax/print/attribute/standard/JobPrioritySupported.java,
4415 javax/print/attribute/standard/NumberOfDocuments.java,
4416 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4417 javax/print/attribute/standard/NumberUp.java,
4418 javax/print/attribute/standard/OutputDeviceAssigned.java,
4419 javax/print/attribute/standard/PagesPerMinute.java,
4420 javax/print/attribute/standard/PagesPerMinuteColor.java:
4421 Fixed @return tag all over.
4423 2004-05-15 Michael Koch <konqueror@gmx.de>
4425 * javax/print/attribute/AttributeSetUtilities.java
4426 (verifyCategoryForValue): Fixed typo in javadoc.
4427 * javax/print/attribute/HashAttributeSet.java
4428 (containsKey): Fixed @return tag.
4429 (comtainsValue): Likewise.
4431 * javax/print/attribute/IntegerSyntax.java
4433 * javax/print/attribute/ResolutionSyntax.java
4435 (getCrossFeedResolution): Removed unused code.
4436 (getFeedResolution): Likewise.
4437 * javax/print/attribute/SetOfIntegerSyntax.java
4438 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4439 (equals): Fixed @return tag.
4440 * javax/print/attribute/TextSyntax.java
4441 (TextSyntax): Take locale into account.
4442 (hashCode): Better implementation.
4444 2004-05-15 Michael Koch <konqueror@gmx.de>
4446 * javax/print/CancelablePrintJob.java,
4447 javax/print/Doc.java,
4448 javax/print/DocFlavor.java,
4449 javax/print/DocPrintJob.java,
4450 javax/print/FlavorException.java,
4451 javax/print/PrintException.java,
4452 javax/print/PrintService.java,
4453 javax/print/ServiceUIFactory.java: New files.
4455 2004-05-15 Mark Wielaard <mark@klomp.org>
4457 * gnu/regexp/CharIndexedReader.java: Removed.
4458 * gnu/regexp/REFilterReader.java: Likewise.
4459 * gnu/regexp/RETokenLookAhead.java: Likewise.
4460 * Makefile.am (ordinary_java_source_files): Remove above classes.
4461 * Makefile.in: Regenerated.
4463 2004-05-14 Tom Tromey <tromey@redhat.com>
4465 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4466 not `XGraphicsConfiguration.XOffScreenImage'.
4468 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4470 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4472 2004-05-14 Steven Augart <augart@watson.ibm.com>
4474 * include/jni.h (_Jv_func): Removed.
4475 (struct JNINativeInterface): Use `void *' for reserved slots.
4476 (struct JNIInvokeInterface): Likewise.
4478 2004-05-11 Michael Koch <konqueror@gmx.de>
4480 * gnu/java/net/natPlainSocketImplPosix.cc
4481 (read): Fixed typo in expression.
4483 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4485 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4486 ld_library_additions. Adjust all calls to libjava_invoke to match
4489 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4490 path to cxxflagslist.
4491 Pass path of libstdc++ to libjava_invoke.
4493 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4494 libjava_invoke arguments.
4496 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4498 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4501 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4503 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4504 main binary against the JNI shared library.
4506 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4508 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4509 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4510 (SimpleTimeZone): Tweak docs. Add new variation.
4511 (setStartRule,setEndRule): Add new variations. Use
4512 startTimeMode and endTimeMode.
4514 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4516 * java/util/Calendar.java (getActualMinimum,
4517 getActualMaximum): Remove abstract. Implement.
4519 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4521 Run the jni tests using the interpreter.
4522 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4523 options_cxx to shared lib compile command.
4524 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4525 they are used to link the shared lib, not the main binary.
4526 Use libjava_invoke to run gij.
4528 2004-05-06 Michael Koch <konqueror@gmx.de>
4530 * java/util/logging/Level.java
4531 (parse): Use == instead of String.equals().
4533 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4535 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4536 verify_field_signature and verify_method_signature, not
4537 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4538 (_Jv_ClassReader::handleField): Likewise.
4539 (_Jv_ClassReader::handleMethod): Likewise.
4541 2004-05-06 Michael Koch <konqueror@gmx.de>
4543 * javax/swing/table/TableColumn.java:
4546 2004-05-06 Michael Koch <konqueror@gmx.de>
4548 * javax/imageio/spi/ImageReaderWriterSpi.java
4549 (ImageReaderWriterSpi): Made it public.
4550 * javax/imageio/stream/ImageInputStream.java:
4553 2004-05-06 Michael Koch <konqueror@gmx.de>
4555 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4558 2004-05-06 Michael Koch <konqueror@gmx.de>
4560 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4561 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4563 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4564 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4565 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4566 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4567 their own source file.
4568 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4569 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4570 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4571 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4572 (create): Define variable on top of function.
4573 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4574 (menu_pos): Prototyped.
4575 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4576 (setTitle): Removed.
4577 * jni/gtk-peer/gthread-jni.c
4578 (gdk_threads_wake): Removed.
4579 * Makefile.am (gtk_c_source_files): Added new files
4580 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4581 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4582 * Makefile.in: Regenerated.
4584 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4586 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4589 2004-05-05 Mark Wielaard <mark@klomp.org>
4591 * javax/swing/AbstractButton.java: Replace special HTML entities with
4593 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4594 * javax/swing/DefaultButtonModel.java: Likewise.
4595 * javax/swing/DefaultListModel.java: Likewise.
4596 * javax/swing/JList.java: Likewise.
4597 * javax/swing/JSlider.java: Likewise.
4598 * javax/swing/ListModel.java: Likewise.
4599 * javax/swing/Popup.java: Likewise.
4600 * javax/swing/SwingUtilities.java: Likewise.
4602 2004-05-05 Michael Koch <konqueror@gmx.de>
4604 * javax/swing/AbstractButton.java,
4605 javax/swing/ActionMap.java,
4606 javax/swing/DefaultButtonModel.java,
4607 javax/swing/DefaultListModel.java,
4608 javax/swing/ImageIcon.java,
4609 javax/swing/JComboBox.java,
4610 javax/swing/JComponent.java,
4611 javax/swing/JFrame.java,
4612 javax/swing/JInternalFrame.java,
4613 javax/swing/JMenuBar.java,
4614 javax/swing/JMenuItem.java,
4615 javax/swing/JOptionPane.java,
4616 javax/swing/JProgressBar.java,
4617 javax/swing/JRootPane.java,
4618 javax/swing/JScrollBar.java,
4619 javax/swing/JScrollPane.java,
4620 javax/swing/JSeparator.java,
4621 javax/swing/JSlider.java,
4622 javax/swing/JTabbedPane.java,
4623 javax/swing/JTable.java,
4624 javax/swing/JTextField.java,
4625 javax/swing/JToolBar.java,
4626 javax/swing/JToolTip.java,
4627 javax/swing/JTree.java,
4628 javax/swing/JViewport.java,
4629 javax/swing/JWindow.java,
4630 javax/swing/KeyStroke.java,
4631 javax/swing/LookAndFeel.java,
4632 javax/swing/SwingUtilities.java,
4633 javax/swing/Timer.java,
4634 javax/swing/ToolTipManager.java,
4635 javax/swing/UIDefaults.java,
4636 javax/swing/border/TitledBorder.java,
4637 javax/swing/filechooser/FileSystemView.java,
4638 javax/swing/plaf/basic/BasicButtonListener.java,
4639 javax/swing/plaf/basic/BasicButtonUI.java,
4640 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4641 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4642 javax/swing/plaf/basic/BasicLabelUI.java,
4643 javax/swing/plaf/basic/BasicMenuItemUI.java,
4644 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4645 javax/swing/plaf/basic/BasicRootPaneUI.java,
4646 javax/swing/plaf/basic/BasicScrollBarUI.java,
4647 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4648 javax/swing/plaf/basic/BasicSliderUI.java,
4649 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4650 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4651 javax/swing/table/JTableHeader.java,
4652 javax/swing/text/AbstractDocument.java,
4653 javax/swing/text/DefaultCaret.java,
4654 javax/swing/text/StyledEditorKit.java,
4655 javax/swing/tree/DefaultTreeCellEditor.java:
4658 2004-05-05 Michael Koch <konqueror@gmx.de>
4660 * java/util/prefs/AbstractPreferences.java
4661 (AbstractPreferences): Added parenthesis for clarity.
4662 Closes classpath bug #7940.
4664 2004-05-05 Tom Tromey <tromey@redhat.com>
4666 * javax/naming/CompoundName.java (endsWith): Look at correct
4667 element of source name.
4669 2004-05-05 Mark Wielaard <mark@klomp.org>
4671 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4672 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4674 2004-05-05 Tom Tromey <tromey@redhat.com>
4676 * java/io/BufferedReader.java (skip): Removed unused
4679 2004-05-05 Michael Koch <konqueror@gmx.de>
4681 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4683 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4685 * java/text/AttributedString.java,
4686 java/text/AttributedStringIterator.java,
4687 java/text/Collator.java,
4688 java/text/DecimalFormatSymbols.java,
4689 java/text/NumberFormat.java,
4690 java/text/RuleBasedCollator.java:
4693 2004-05-05 Tom Tromey <tromey@redhat.com>
4695 * java/text/Format.java: Cleaned up imports.
4696 * java/text/DecimalFormat.java: Cleaned up imports.
4697 * java/security/SecureRandom.java: Cleaned up imports.
4698 (SecureRandom): Removed unused variable.
4699 * java/security/UnresolvedPermission.java: Cleaned up imports.
4700 * java/util/Date.java (parse): Removed unused variable.
4701 * java/util/ResourceBundle.java: Cleaned up imports.
4702 (getBundle): Removed unused variable.
4703 (tryBundle): Likewise.
4704 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4706 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4708 * java/text/SimpleDateFormat.java:
4709 (formatWithAttribute): New method. It implements
4710 the formatting process with attributes.
4711 (format): Use formatWithAttribute.
4712 (formatToCharacterIterator): New method. Use
4713 formatWithAttribute.
4715 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4717 * java/text/MessageFormat.java:
4718 (class Field): New class.
4719 (formatToCharacterIterator): New method.
4720 (format): Use formatInternal now.
4721 (formatInternal): New method. String formatter should
4722 be done here (with attributes). Attributes merging supported.
4723 (parse): More documentation.
4724 (getFormatsByArgumentIndex): New method.
4725 (setFormatByArgumentIndex): New method.
4726 (setFormatsByArgumentIndex): New method.
4728 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4730 * java/text/DecimalFormat.java
4731 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4732 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4733 (parse): Fixed handling of exponentiation notation and grouping.
4735 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4737 * java/text/DecimalFormat.java
4738 (scanFix): Build attribute array. Fixed error reporting.
4739 (applyPatternWithSymbols): Store attributes for the prefix and
4741 (formatInternal): New method. Changed the way the string is
4742 computed. Implemented attributes. Cleant up rounding in
4743 exponential notation.
4744 (format): Use formatInternal.
4745 (formatToCharacterIterator): New method.
4746 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4747 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4748 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4751 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4753 * java/security/interfaces/DSAKeyPairGenerator.java,
4754 java/security/interfaces/DSAPrivateKey.java,
4755 java/security/interfaces/DSAPublicKey.java,
4756 java/security/interfaces/RSAPrivateKey.java,
4757 java/security/interfaces/RSAPublicKey.java:
4760 2004-05-04 Michael Koch <konqueror@gmx.de>
4762 * java/nio/ByteBuffer.java,
4763 java/nio/CharBuffer.java,
4764 java/nio/DoubleBuffer.java,
4765 java/nio/FloatBuffer.java,
4766 java/nio/IntBuffer.java,
4767 java/nio/LongBuffer.java,
4768 java/nio/ShortBuffer.java:
4769 (compareTo): Fixed bogus implementation in all buffer classes.
4771 2004-05-04 Ingo Proetel <proetel@aicas.com>
4773 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4774 32 bit pixels not 8 bit pixels.
4775 (isCompatibleRaster): Added javadoc comment.
4777 2004-05-04 Ingo Proetel <proetel@aicas.com>
4779 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4782 2004-05-04 Ingo Proetel <proetel@aicas.com>
4784 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4785 (getColorModel): Return the actual color model.
4786 (getRaster): Implemented.
4787 (ColorRaster): New inner class.
4788 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4790 * java/awt/Color.java (<init>): Make exception more verbose.
4791 (createContext): Use ColorModel when creating a PaintContext.
4793 2004-05-04 Michael Koch <konqueror@gmx.de>
4795 * gnu/java/text/CharacterBreakIterator.java
4796 (previous): Removed unused variable.
4798 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4800 * gnu/java/text/FormatBuffer.java,
4801 gnu/java/text/AttributedFormatBuffer.java,
4802 gnu/java/text/StringFormatBuffer.java: New classes to implement
4803 attributed iterators in java.text.
4804 * gnu/java/text/FormatCharacterIterator.java: Moved
4805 from java/text as it is an internal class.
4806 * java/text/FormatCharacterIterator.java: Removed.
4807 * java/text/Format.java:
4808 Import gnu.java.text.FormatCharacterIterator.
4809 * Makefile.am (java_source_files): Added new files.
4810 * Makefile.in: Regenerated.
4813 2004-05-04 Mark Wielaard <mark@klomp.org>
4815 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4817 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4819 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4820 * Makefile.in: Rebuilt.
4822 2004-05-03 Mark Wielaard <mark@klomp.org>
4824 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4825 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4827 (set(String, String, int, String, String, String, String, String)):
4828 Assign this.file to path or path + "?" + query.
4829 * java/util/Arrays.java: Call static methods staticly.
4830 * java/util/zip/ZipEntry.java: Likewise.
4831 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4832 dir to this.direction.
4833 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4834 Assign static field only once.
4835 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4837 2004-05-03 Mark Wielaard <mark@klomp.org>
4839 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4840 unused variables hScrollbarHeight and vScrollbarWidth.
4841 (preferredSize): Likewise.
4842 * gnu/java/security/provider/DSAParameters.java (engineToString):
4843 Removed unused call to System.getProperty("line.seperator");
4844 * java/security/Security.java (loadProviders): Return result.
4846 2004-05-03 Tom Tromey <tromey@redhat.com>
4848 * java/net/URLStreamHandler.java (toExternalForm): Removed
4851 * java/math/BigDecimal.java (divide): Removed unused variable.
4852 * java/lang/Throwable.java: Cleaned up imports.
4853 * java/lang/ClassLoader.java: Cleaned up imports.
4854 * java/io/FilePermission.java (implies): Removed unused
4856 * java/awt/TextComponent.java: Removed unused import.
4857 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4858 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4859 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4860 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4862 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4863 * gnu/java/text/CharacterBreakIterator.java: Removed
4865 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4867 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4868 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4870 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4871 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4872 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4873 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4874 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4875 (lookupProviders): Removed unused variable.
4876 (loadNextServiceProvider): Likewise.
4877 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4879 2004-05-03 Michael Koch <konqueror@gmx.de>
4881 Fixes PR libgcj/14695:
4882 * java/net/NetworkInterface.java
4883 (getByName): Return null when no interface was found.
4885 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4886 Tom Tromey <tromey@redhat.com>
4888 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4889 additional option "-Wmissing-prototypes" for compiling C sources.
4890 Print actual filename for pass/fail rather than $name.c.
4891 * testsuite/libjava.jni/PR15133.java: New testcase file.
4892 * testsuite/libjava.jni/PR15133.c: Likewise.
4893 * testsuite/libjava.jni/PR15133.out: Likewise.
4895 2004-04-30 Roger Sayle <roger@eyesopen.com>
4897 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4900 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4902 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4903 limit the maximum heap size to avoid unnecessary thrashing.
4905 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4907 * java/text/CollationElementIterator.java (reset): Reset
4908 lookahead variables.
4910 2004-04-23 Mark Wielaard <mark@klomp.org>
4912 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4914 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4916 * java/sql/DriverManager.java:
4919 2004-04-23 Michael Koch <konqueror@gmx.de>
4922 (hashcode): Don't initialize with default value explicitely.
4923 (getContent): Removed redundant "final" keyword.
4924 (openStream): Likewise.
4925 (getURLStreamHandler): Fixed coding style.
4926 * java/net/URLConnection.java
4927 (defaultAllowUserInteraction): Don't initialize with default value
4929 (connected): Likewise.
4930 (doOutput): Likewise.
4931 (ifModifiedSince): Likewise.
4932 (dateformats_initialized): Likewise.
4933 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4935 2004-04-23 Michael Koch <konqueror@gmx.de>
4937 * gnu/java/nio/channels/FileChannelImpl.java
4938 (SET, CUR): Unused, removed.
4939 (read): Implement here directly.
4940 (implRead): Removed.
4941 (write): Implement here directly.
4942 (implWrite): Removed.
4944 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4946 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4947 javax/rmi/CORBA/Stub.java,
4948 javax/rmi/CORBA/Util.java,
4949 javax/rmi/CORBA/ValueHandler.java,
4950 javax/rmi/CORBA/ValueHandler.java,
4951 javax/rmi/PortableRemoteObject.java:
4954 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4956 * java/util/jar/JarFile.java,
4957 java/util/jar/JarInputStream.java,
4958 java/util/jar/JarOutputStream.java,
4959 java/util/jar/Manifest.java:
4962 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4964 * java/util/ArrayList.java,
4965 java/util/Calendar.java,
4966 java/util/Currency.java,
4967 java/util/HashMap.java,
4968 java/util/HashSet.java,
4969 java/util/Hashtable.java,
4970 java/util/LinkedList.java,
4971 java/util/Properties.java,
4972 java/util/PropertyPermission.java,
4973 java/util/TimeZone.java,
4974 java/util/TreeMap.java,
4975 java/util/TreeSet.java,
4976 java/util/Vector.java,
4977 java/util/WeakHashMap.java:
4980 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4982 * java/util/logging/FileHandler.java,
4983 java/util/logging/Formatter.java,
4984 java/util/logging/Handler.java,
4985 java/util/logging/Logger.java,
4986 java/util/logging/SimpleFormatter.java,
4987 java/util/logging/XMLFormatter.java:
4990 2004-04-22 Mark Wielaard <mark@klomp.org>
4992 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4993 -Wno-long-long flags variable.
4994 (gtk_c_files): Use PEDANTIC_CFLAGS.
4995 * Makefile.in: Regenerated.
4997 2004-04-22 Mark Wielaard <mark@klomp.org>
4999 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5000 Changed C++ comments into C comments.
5001 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
5004 2004-04-22 Michael Koch <konqueror@gmx.de>
5006 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5007 Merged copyright year with GNU classpath.
5009 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5011 * javax/security/auth/x500/X500Principal.java:
5014 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5016 * javax/swing/JSlider.java:
5017 Fixed HTML tags in comments.
5019 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5021 * javax/accessibility/AccessibleText.java:
5024 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
5026 * java/net/URLStreamHandler.java
5027 (parseURL): Convert the file path to using '/' instead of native
5030 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
5033 (userInfo): New field.
5034 (URL): Set authority to the right value.
5035 (setURL): Fixed authority and file initialization.
5036 * java/net/URLStreamHandler.java
5037 (parseURL): Take care of the query tag. Build authority.
5038 (toExternalForm): Fixed URL building using authority.
5040 2004-04-22 Michael Koch <konqueror@gmx.de>
5042 * java/net/Socket.java
5043 (impl): Made package-private.
5044 * java/net/ServerSocket.java
5045 (implAccept): Access Socket.impl field directly.
5047 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5049 * java/util/prefs/Preferences.java,
5050 java/util/prefs/InvalidPreferencesFormatException.java,
5051 java/util/prefs/BackingStoreException.java,
5052 java/util/prefs/AbstractPreferences.java:
5055 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5057 * java/util/regex/Matcher.java,
5058 java/util/regex/Pattern.java:
5061 2004-04-22 Michael Koch <konqueror@gmx.de>
5063 * java/nio/charset/IllegalCharsetNameException.java
5064 (charsetName): Made private.
5065 (IllegalCharsetNameException): Added @param tag to javadoc.
5066 (getCharsetName): Added @return tag to javadoc.
5067 * java/nio/charset/MalformedInputException.java
5068 (MalformedInputException): Added @param tag to javadoc.
5069 (getInputLength): Revised method description, added @return tag.
5070 (getMessage): Added @return tag.
5072 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
5074 * java/awt/Font.java (deriveFont): Implement missing variants.
5075 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
5078 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
5080 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
5081 Set method->index values for interface methods to their itable index.
5082 (initializeClass): Call _Jv_LayoutInterfaceMethods.
5084 2004-04-21 Michael Koch <konqueror@gmx.de>
5086 * java/nio/DirectByteBufferImpl.java
5087 (shiftDown): Made static, give address as argument and
5088 provide a convenience method that overwrites shiftDown in
5089 ByteBufferImpl and calls the native shiftDown.
5090 * java/nio/MappedByteBufferImpl.java
5091 (): Use optimized method in DirectByteBufferImpl.
5092 * java/nio/natDirectByteBufferImpl.cc
5093 (shiftDown): Changed method signature. Removed usage of array_offset.
5095 2004-04-21 Michael Koch <konqueror@gmx.de>
5097 * gnu/java/net/natPlainSocketImplPosix.cc
5098 (SocketInputStream::read): Make sure returned data is a byte value.
5100 2004-04-21 Michael Koch <konqueror@gmx.de>
5102 * gnu/classpath/ServiceFactory.java,
5103 gnu/classpath/ServiceProviderLoadingAction.java,
5104 javax/imageio/ImageReader.java,
5105 javax/imageio/ImageTranscoder.java,
5106 javax/imageio/ImageWriter.java,
5107 javax/imageio/package.html,
5108 javax/imageio/spi/IIOServiceProvider.java,
5109 javax/imageio/spi/ImageInputStreamSpi.java,
5110 javax/imageio/spi/ImageOutputStreamSpi.java,
5111 javax/imageio/spi/ImageReaderWriterSpi.java,
5112 javax/imageio/spi/ImageTranscoderSpi.java,
5113 javax/imageio/spi/RegisterableService.java,
5114 javax/imageio/spi/ServiceRegistry.java,
5115 javax/imageio/spi/package.html,
5116 javax/imageio/stream/IIOByteBuffer.java,
5117 javax/imageio/stream/ImageInputStream.java,
5118 javax/imageio/stream/ImageOutputStream.java,
5119 javax/imageio/stream/package.html:
5122 (ordinary_java_source_files): Added
5123 gnu/classpath/ServiceFactory.java and
5124 gnu/classpath/ServiceProviderLoadingAction.java.
5125 (javax_source_files): Added
5126 javax/imageio/ImageReader.java,
5127 javax/imageio/ImageTranscoder.java,
5128 javax/imageio/ImageWriter.java,
5129 javax/imageio/spi/IIOServiceProvider.java,
5130 javax/imageio/spi/ImageInputStreamSpi.java,
5131 javax/imageio/spi/ImageOutputStreamSpi.java,
5132 javax/imageio/spi/ImageReaderWriterSpi.java,
5133 javax/imageio/spi/ImageTranscoderSpi.java,
5134 javax/imageio/spi/RegisterableService.java,
5135 javax/imageio/spi/ServiceRegistry.java,
5136 javax/imageio/stream/IIOByteBuffer.java,
5137 javax/imageio/stream/ImageInputStream.java and
5138 javax/imageio/stream/ImageOutputStream.java.
5139 * Makefile.in: Regenerated.
5141 2004-04-21 Michael Koch <konqueror@gmx.de>
5143 * java/util/Properties.java
5144 (load): Fix wrongly merged fix.
5146 2004-04-21 Mark Wielaard <mark@klomp.org>
5148 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5149 malloc and free buf.
5151 2004-04-21 Dalibor Topic <robilad@kaffe.org>
5153 * javax/naming/AuthenticationException.java,
5154 javax/naming/AuthenticationNotSupportedException.java,
5155 javax/naming/CannotProceedException.java,
5156 javax/naming/CommunicationException.java,
5157 javax/naming/CompoundName.java,
5158 javax/naming/ConfigurationException.java,
5159 javax/naming/ContextNotEmptyException.java,
5160 javax/naming/InitialContext.java,
5161 javax/naming/InsufficientResourcesException.java,
5162 javax/naming/InterruptedNamingException.java,
5163 javax/naming/LimitExceededException.java,
5164 javax/naming/LinkException.java,
5165 javax/naming/LinkLoopException.java,
5166 javax/naming/LinkRef.java,
5167 javax/naming/MalformedLinkException.java,
5168 javax/naming/Name.java,
5169 javax/naming/NameAlreadyBoundException.java,
5170 javax/naming/NameNotFoundException.java,
5171 javax/naming/NamingSecurityException.java,
5172 javax/naming/NoInitialContextException.java,
5173 javax/naming/NoPermissionException.java,
5174 javax/naming/NotContextException.java,
5175 javax/naming/PartialResultException.java,
5176 javax/naming/ReferralException.java,
5177 javax/naming/ServiceUnavailableException.java,
5178 javax/naming/SizeLimitExceededException.java,
5179 javax/naming/TimeLimitExceededException.java,
5180 javax/naming/directory/Attribute.java,
5181 javax/naming/directory/Attributes.java,
5182 javax/naming/directory/SearchResult.java,
5183 javax/naming/event/NamingExceptionEvent.java,
5184 javax/naming/spi/ResolveResult.java:
5187 2004-04-21 Mark Wielaard <mark@klomp.org>
5189 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5190 Changed C++ comments into C comments. Removed commented out code.
5191 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5193 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5195 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5197 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5199 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5201 * native/jni/gtk-peer/gthread-jni.c:
5204 2004-04-21 Mark Wielaard <mark@klomp.org>
5206 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5207 static fields defined in interface.
5208 * javax/awt/JDialog.java: Likewise.
5209 (JDialog): Make constructors public.
5210 (getDefaultCloseOperation): Make public.
5211 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5212 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5213 * javax/swing/JViewport.java (JViewport): Make constructor public.
5215 2004-04-21 Michael Koch <konqueror@gmx.de>
5217 * java/util/Map.java
5218 (Entry): Removed redundant "static" modifier.
5219 * java/text/AttributedCharacterIterator.java:
5220 Updated copyright year.
5222 2004-04-20 Michael Koch <konqueror@gmx.de>
5224 * javax/naming/directory/SearchControls.java:
5225 Don't explicitely extend java.lang.Object.
5226 * javax/naming/spi/DirStateFactory.java:
5227 Merged copyright year with GNU classpath.
5229 2004-04-20 Michael Koch <konqueror@gmx.de>
5231 * java/nio/channels/Channels.java:
5232 Merged coding style with GNU classpath.
5234 2004-04-20 Michael Koch <konqueror@gmx.de>
5236 * java/net/ServerSocket.java
5237 Merged coding style from GNU classpath.
5239 2004-04-20 Michael Koch <konqueror@gmx.de>
5241 * java/io/BufferedWriter.java:
5242 Reordered variables to be at top of the class.
5243 (localFlush): Removed redundant final keyword.
5245 2004-04-20 Ingo Proetel <proetel@aicas.com>
5247 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5249 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5251 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5252 for percent and permill check.
5254 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5256 * java/text/FieldPosition.java
5257 (FieldPosition) Constructor now behaves as it should according
5258 to the java documentation.
5260 2004-04-20 Mark Wielaard <mark@klomp.org>
5262 * java/util/Properties.java: Use the word umlaut, not ä in api
5265 2004-04-20 Michael Koch <konqueror@gmx.de>
5267 * java/nio/Buffer.java,
5268 java/nio/channels/AlreadyConnectedException.java,
5269 java/nio/channels/AsynchronousCloseException.java,
5270 java/nio/channels/ByteChannel.java,
5271 java/nio/channels/CancelledKeyException.java,
5272 java/nio/channels/Channel.java,
5273 java/nio/channels/Channels.java,
5274 java/nio/channels/ClosedByInterruptException.java,
5275 java/nio/channels/ClosedChannelException.java,
5276 java/nio/channels/ClosedSelectorException.java,
5277 java/nio/channels/ConnectionPendingException.java,
5278 java/nio/channels/DatagramChannel.java,
5279 java/nio/channels/FileChannel.java,
5280 java/nio/channels/FileLock.java,
5281 java/nio/channels/FileLockInterruptionException.java,
5282 java/nio/channels/GatheringByteChannel.java,
5283 java/nio/channels/IllegalBlockingModeException.java,
5284 java/nio/channels/IllegalSelectorException.java,
5285 java/nio/channels/InterruptibleChannel.java,
5286 java/nio/channels/NoConnectionPendingException.java,
5287 java/nio/channels/NonReadableChannelException.java,
5288 java/nio/channels/NonWritableChannelException.java,
5289 java/nio/channels/NotYetBoundException.java,
5290 java/nio/channels/NotYetConnectedException.java,
5291 java/nio/channels/OverlappingFileLockException.java,
5292 java/nio/channels/Pipe.java,
5293 java/nio/channels/ReadableByteChannel.java,
5294 java/nio/channels/ScatteringByteChannel.java,
5295 java/nio/channels/SelectableChannel.java,
5296 java/nio/channels/SelectionKey.java,
5297 java/nio/channels/Selector.java,
5298 java/nio/channels/ServerSocketChannel.java,
5299 java/nio/channels/SocketChannel.java,
5300 java/nio/channels/UnresolvedAddressException.java,
5301 java/nio/channels/UnsupportedAddressTypeException.java,
5302 java/nio/channels/WritableByteChannel.java,
5303 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5304 java/nio/channels/spi/AbstractSelectableChannel.java,
5305 java/nio/channels/spi/AbstractSelectionKey.java,
5306 java/nio/channels/spi/AbstractSelector.java,
5307 java/nio/channels/spi/SelectorProvider.java,
5308 java/nio/charset/spi/CharsetProvider.java:
5309 Fixed javadocs and jalopied all over java.nio.
5311 2004-04-20 Michael Koch <konqueror@gmx.de>
5313 * java/nio/ByteBufferImpl.java,
5314 java/nio/CharBufferImpl.java,
5315 java/nio/DirectByteBufferImpl.java,
5316 java/nio/DoubleBufferImpl.java,
5317 java/nio/DoubleViewBufferImpl.java,
5318 java/nio/FloatBufferImpl.java,
5319 java/nio/FloatViewBufferImpl.java,
5320 java/nio/IntBufferImpl.java,
5321 java/nio/IntViewBufferImpl.java,
5322 java/nio/LongBufferImpl.java,
5323 java/nio/LongViewBufferImpl.java,
5324 java/nio/MappedByteBufferImpl.java,
5325 java/nio/ShortBufferImpl.java,
5326 java/nio/ShortViewBufferImpl.java:
5327 Made sure all classes are final and removed final keyword from all
5330 2004-04-20 Michael Koch <konqueror@gmx.de>
5332 * java/rmi/MarshalledObject.java,
5333 java/rmi/Naming.java,
5334 java/rmi/RemoteException.java,
5335 java/rmi/activation/ActivationException.java,
5336 java/rmi/server/ServerCloneException.java,
5337 java/security/AccessController.java,
5338 java/security/AlgorithmParameterGenerator.java,
5339 java/security/AlgorithmParameters.java,
5340 java/security/CodeSource.java,
5341 java/security/Identity.java,
5342 java/security/IdentityScope.java,
5343 java/security/KeyPairGenerator.java,
5344 java/security/KeyStore.java,
5345 java/security/Security.java,
5346 java/security/Signature.java,
5347 java/security/SignatureSpi.java,
5348 java/security/SignedObject.java,
5349 java/security/spec/DSAParameterSpec.java,
5350 java/security/spec/DSAPrivateKeySpec.java,
5351 java/security/spec/DSAPublicKeySpec.java,
5352 java/sql/Array.java,
5353 java/sql/DatabaseMetaData.java,
5354 java/sql/ResultSet.java,
5355 java/text/ChoiceFormat.java,
5356 java/text/CollationElementIterator.java,
5357 java/text/CollationKey.java,
5358 java/text/Collator.java,
5359 java/text/DateFormat.java,
5360 java/text/DateFormatSymbols.java,
5361 java/text/DecimalFormatSymbols.java,
5362 java/text/Format.java,
5363 java/text/ParsePosition.java,
5364 java/text/RuleBasedCollator.java,
5365 java/text/SimpleDateFormat.java,
5366 java/text/StringCharacterIterator.java,
5367 java/util/Collections.java,
5368 java/util/PropertyResourceBundle.java,
5369 java/util/ResourceBundle.java,
5370 java/util/StringTokenizer.java,
5371 java/util/jar/Attributes.java,
5372 java/util/logging/ConsoleHandler.java,
5373 java/util/logging/LogManager.java,
5374 java/util/logging/MemoryHandler.java,
5375 java/util/logging/SocketHandler.java,
5376 javax/naming/NamingException.java:
5377 Fixed javadoc, coding style and argument names all over.
5379 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5381 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5382 constructor. (valid) Added null check.
5384 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5386 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5387 * java/io/FileOutputStream.java
5388 (FileOutputStream) Reorganized constructors. Constructors now
5389 check whether the given path is directory.
5391 2004-04-20 Michael Koch <konqueror@gmx.de>
5393 * java/net/Authenticator.java,
5394 java/net/BindException.java,
5395 java/net/ConnectException.java,
5396 java/net/ContentHandler.java,
5397 java/net/ContentHandlerFactory.java,
5398 java/net/DatagramPacket.java,
5399 java/net/DatagramSocket.java,
5400 java/net/DatagramSocketImpl.java,
5401 java/net/DatagramSocketImplFactory.java,
5402 java/net/FileNameMap.java,
5403 java/net/HttpURLConnection.java,
5404 java/net/Inet4Address.java,
5405 java/net/Inet6Address.java,
5406 java/net/InetAddress.java,
5407 java/net/InetSocketAddress.java,
5408 java/net/JarURLConnection.java,
5409 java/net/MalformedURLException.java,
5410 java/net/MulticastSocket.java,
5411 java/net/NetPermission.java,
5412 java/net/NetworkInterface.java,
5413 java/net/NoRouteToHostException.java,
5414 java/net/PasswordAuthentication.java,
5415 java/net/PortUnreachableException.java,
5416 java/net/ProtocolException.java,
5417 java/net/ServerSocket.java,
5418 java/net/Socket.java,
5419 java/net/SocketAddress.java,
5420 java/net/SocketException.java,
5421 java/net/SocketImpl.java,
5422 java/net/SocketImplFactory.java,
5423 java/net/SocketOptions.java,
5424 java/net/SocketPermission.java,
5425 java/net/SocketTimeoutException.java,
5427 java/net/URISyntaxException.java,
5429 java/net/URLClassLoader.java,
5430 java/net/URLConnection.java,
5431 java/net/URLDecoder.java,
5432 java/net/URLEncoder.java,
5433 java/net/URLStreamHandler.java,
5434 java/net/URLStreamHandlerFactory.java,
5435 java/net/UnknownHostException.java,
5436 java/net/UnknownServiceException.java:
5437 Fixed javadocs, coding style and argument names all over.
5439 2004-04-20 Michael Koch <konqueror@gmx.de>
5441 * java/lang/Byte.java,
5442 java/lang/CharSequence.java,
5443 java/lang/ClassLoader.java,
5444 java/lang/Compiler.java,
5445 java/lang/Double.java,
5446 java/lang/Float.java,
5447 java/lang/Integer.java,
5448 java/lang/Long.java,
5449 java/lang/Math.java,
5450 java/lang/Number.java,
5451 java/lang/Package.java,
5452 java/lang/Runtime.java,
5453 java/lang/RuntimePermission.java,
5454 java/lang/SecurityManager.java,
5455 java/lang/Short.java,
5456 java/lang/StringBuffer.java,
5457 java/lang/System.java,
5458 java/lang/ThreadGroup.java,
5459 java/lang/Throwable.java,
5460 java/lang/reflect/InvocationHandler.java,
5461 java/lang/reflect/Proxy.java:
5462 Fixed javadocs, coding style and argument names all over.
5464 2004-04-20 Michael Koch <konqueror@gmx.de>
5466 * java/io/BufferedWriter.java,
5467 java/io/ByteArrayInputStream.java,
5468 java/io/CharArrayWriter.java,
5469 java/io/DataInput.java,
5470 java/io/DataInputStream.java,
5472 java/io/FilterInputStream.java,
5473 java/io/InputStream.java,
5474 java/io/InputStreamReader.java,
5475 java/io/ObjectInputStream.java,
5476 java/io/ObjectStreamClass.java,
5477 java/io/PipedInputStream.java,
5478 java/io/PipedReader.java,
5479 java/io/PushbackInputStream.java,
5480 java/io/PushbackReader.java,
5481 java/io/RandomAccessFile.java,
5482 java/io/SerializablePermission.java,
5483 java/io/StreamTokenizer.java,
5484 java/io/StringWriter.java,
5485 java/io/WriteAbortedException.java,
5486 java/io/Writer.java:
5487 Fixed javadocs all over, rename arguments to match javadocs,
5490 2004-04-20 Ingo Proetel <proetel@aicas.com>
5492 * java/awt/FontMetrics.java:
5493 (charsWidth): fixed accumulation of total_width
5494 (getWidth): simple default implementation
5495 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5496 in Rectangle constructor.
5497 * java/awt/image/Raster.java (toString): Added method.
5498 * java/awt/image/SampleModel.java (<init>): Added error cause
5499 information to thrown exception.
5500 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5502 (setDataElements): New method.
5503 (setPixels): New method.
5504 (toString): New method.
5506 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5508 * java/awt/image/ComponentColorModel.java
5509 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5510 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5511 Mauve tests on this method. Improved documentation.
5513 2004-04-20 Michael Koch <konqueror@gmx.de>
5515 * javax/swing/JLayeredPane.java,
5516 javax/swing/plaf/BorderUIResource.java,
5517 javax/swing/plaf/ComponentUI.java,
5518 javax/swing/undo/CompoundEdit.java,
5519 javax/swing/undo/StateEdit.java:
5520 Fixed HTML tags in javadocs all over.
5522 2004-04-20 Michael Koch <konqueror@gmx.de>
5524 * javax/print/attribute/EnumSyntax.java
5525 (getOffset): Made protected.
5526 * javax/print/attribute/HashAttributeSet.java
5527 (HashAttributeSet): Likewise.
5528 * javax/print/attribute/ResolutionSyntax.java
5529 (getFeedResolution): Fixed typo in exception name.
5530 (getCrossFeedResolution): Likewise.
5531 * javax/print/attribute/SetOfIntegerSyntax.java
5532 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5533 * javax/print/attribute/TextSyntax.java
5534 (TextSyntax): Handle locale correctly.
5535 (hashCode): Calc better hashcode value.
5536 (equals): Fixed @return tag.
5537 (toString): New method.
5539 2004-04-20 Michael Koch <konqueror@gmx.de>
5541 * gnu/java/nio/FileLockImpl.java
5542 (static): Removed, not needed anymore.
5543 * gnu/java/nio/channels/FileChannelImpl.java
5544 (FileChannelImpl): Made final.
5545 (mode): Made private.
5546 (READ, WRITE, APPEND): Made public.
5547 (EXCL, SYNC, DSYNC): Likewise.
5548 (static): Load native JNI library, when needed.
5549 (length): Unused, removed.
5550 (available): Made public.
5551 (implPosition): Throws IOException.
5553 (implTruncate): Likewise.
5557 2004-04-20 Michael Koch <konqueror@gmx.de>
5559 * java/awt/AWTPermission.java,
5560 java/awt/Component.java,
5561 java/awt/ComponentOrientation.java,,
5562 java/awt/Dialog.java,
5563 java/awt/FontMetrics.java,
5564 java/awt/Graphics.java,
5565 java/awt/datatransfer/DataFlavor.java,
5566 java/beans/Introspector.java,
5567 java/beans/PropertyEditor.java,
5568 java/beans/PropertyEditorManager.java,
5569 java/beans/beancontext/BeanContextServiceProvider.java:
5570 Fixed HTML tags in javadocs all over.
5572 2004-04-20 Mark Wielaard <mark@klomp.org>
5574 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5575 MissingResourceException is thrown.
5576 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5577 null when a MissingResourceException is thrown. Should never happen.
5579 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5581 * java/awt/image/DataBufferShort.java,
5582 java/awt/image/DataBufferFloat.java,
5583 java/awt/image/DataBufferDouble.java,
5584 java/awt/image/PixelInterleavedSampleModel.java: New files.
5585 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5586 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5588 2004-04-20 Michael Koch <konqueror@gmx.de>
5590 * Makefile.am (java_source_files): Added
5591 java/awt/image/DataBufferDouble.java,
5592 java/awt/image/DataBufferFloat.java,
5593 java/awt/image/DataBufferShort.java and
5594 java/awt/image/PixelInterleavedSampleModel.java.
5595 * Makefile.in: Regenerated.
5597 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5599 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5600 undocumented CNI calls.
5601 * include/java-interp.h (_Jv_InterpClass): No longer
5602 extends java.lang.Class.
5603 * java/lang/Class.h (Class): Add new field `aux_info'.
5604 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5605 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5606 Use Class->aux_info instead.
5607 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5608 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5609 Use Class->aux_info instead.
5610 * java/io/natObjectInputStream.cc (allocateObject): Use
5612 * java/lang/natClass.cc (newInstance): Likewise.
5613 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5614 * java/lang/natObject.cc (clone): Likewise.
5615 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5616 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5617 JvAllocObject. Allocate klass->aux_info here for interpreted
5620 2004-04-17 Mark Wielaard <mark@klomp.org>
5622 * javax/swing/JToggleButton.java (ToggleButtonModel):
5623 Make public static inner class.
5624 * javax/swing/JTabbedPane.java (setComponentAt):
5625 Call Page.setComponent().
5626 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5627 (WRAP_TAB_LAYOUT): Make public, value is 0.
5628 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5629 Make private static inner class.
5631 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5633 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5634 arguments to match new signature. Remove FIXME comments.
5636 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5638 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5640 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5643 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5645 * Makefile.am: Added new file.
5646 * Makefile.in: Regenerate.
5647 * javax/swing/ImageIcon.java:
5648 (ImageIcon(file)): set description of the icon
5650 * javax/swing/JCheckBoxMenuItem.java:
5651 Mostly Implemented. Work in progress.
5652 * javax/swing/JRadioButtonMenuItem.java:
5653 Reimplement constructors to use JToggleButtonModel.
5654 * javax/swing/plaf/basic/BasicIconFactory.java:
5655 (getCheckBoxMenuItemIcon): return check box
5657 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5658 paint menu item selected only when it is armed and
5661 2004-04-02 David Jee <djee@redhat.com>
5663 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5664 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5665 * java/awt/Component.java
5666 (add): Set the parent of the popup as this component.
5667 * java/awt/PopupMenu.java
5668 (addNotify): Create popup menu when peer is null.
5669 (show): Call addNotify() if peer is null.
5670 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5671 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5672 argument for gtk_menu_popup() as zero. This causes the popup menu to
5673 respond to any mouse button.
5675 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5677 * Makefile.am: Added new file.
5678 * Makefile.in: Regenerate.
5679 * javax/swing/JRadioButtonMenuItem.java:
5681 * javax/swing/plaf/basic/BasicIconFactory.java:
5682 (getRadioButtonMenuItemIcon): Return
5684 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5685 (getPreferredSize): Add size of checkIcon if it
5687 (installDefaults): Don't initialize checkIcon.
5688 It's value will be set in subclasses.
5689 (uninstallDefaults): remove uninstallation of
5691 (paint): Moved code to paintMenuItem().
5692 (paintMenuItem): Implemented.
5693 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5694 UI delegate for JRadioButtonMenuItem.
5696 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5698 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5699 Corrected position of the accelerator.
5701 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5703 * Makefile.am: Added new file.
5704 * Makefile.in: Regenerate.
5705 * javax/swing/JMenuItem.java: Partly
5706 implemented. Work in progress
5707 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5708 Changed default value of acceleratorDelimiter.
5709 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5710 New class. Partly implemented.
5712 2004-03-26 Mark Wielaard <mark@klomp.org>
5714 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5715 (item_activate): Declare label before use.
5716 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5717 (gtkSetFont): Removed unused variable label.
5718 (addExposeFilter): Declare variables before use.
5719 (removeExposeFilter): Likewise.
5720 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5721 (ok_clicked): Declare str_fileName before use.
5723 2004-03-26 David Jee <djee@redhat.com>
5725 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5726 (addSeparator): Remove.
5727 * java/awt/Menu.java
5728 (separator): Remove static final MenuItem field.
5729 (separatorLabel): New static final String field.
5730 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5731 Use separatorLabel to denote that it is a separator.
5732 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5733 of reusing the static separator instance, because a MenuItem instance
5734 can't be added more than once without being cloned.
5735 * java/awt/peer/MenuPeer.java
5736 (addSeparator): Remove from interface.
5738 2004-03-26 David Jee <djee@redhat.com>
5740 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5741 (connectSignals): New native method declaration.
5742 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5743 * java/awt/MenuItem.java
5744 (getActionCommand): Return the label if the action command is not set.
5745 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5746 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5747 gtk_menu_shell_append().
5748 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5749 (item_activate): Fix argument type.
5750 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5752 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5754 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5755 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5756 given. Add the menu widget's top-level GtkWindow to the global window
5757 group, so it can grab the pointer.
5758 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5759 gtk_menu_shell_append().
5761 2004-03-23 Graydon Hoare <graydon@redhat.com>
5763 * java/text/AttributedString.java
5764 (addAttribute): Fix off-by-one.
5765 (getIterator): Likewise.
5766 * java/text/AttributedStringIterator.java
5767 (getRunLimit): Correct logic.
5768 (getRunStart): Likewise.
5769 (getAttribute): Fix inequality.
5770 (getAttributes): Likewise.
5771 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5773 2004-03-23 Kim Ho <kho@redhat.com>
5775 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5776 (calculateSizes): Return real width and height.
5778 2004-03-23 Kim Ho <kho@redhat.com>
5780 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5781 (calculateTabRects): Set the selectedRun before
5782 trying to rotate tabs.
5784 2004-03-23 Kim Ho <kho@redhat.com>
5786 * Makefile.am: New file
5787 * Makefile.in: Regenerate
5788 * java/awt/Graphics.java: (drawRect):
5789 Draw to the correct point.
5790 * javax/swing/DefaultSingleSelectionModel.java
5791 (isSelected): Return true if the selected index
5793 * javax/swing/JLabel.java: Do not change mnemonic
5794 index if text is null.
5795 * javax/swing/JProgressBar.java: Use JComponent's
5797 * javax/swing/JScrollBar.java: Ditto.
5798 * javax/swing/JSlider.java: Ditto.
5799 * javax/swing/JTabbedPane.java: Reimplement.
5800 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5801 Add defaults for TabbedPane.
5802 * javax/swing/plaf/basic/BasicArrowButton.java:
5804 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5805 (paintDeterminate): Don't paint String if it's
5807 (paintIndeterminate): ditto.
5808 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5811 2004-03-19 Michael Koch <konqueror@gmx.de>
5813 * java/awt/image/AffineTransformOp.java
5814 (AffineTransformOp): Made public.
5815 * javax/swing/JComponent.java
5816 (listenerList): Made protected.
5817 (accessibleContext): Likewise.
5818 * javax/swing/JList.java
5819 (valueChanged): Dont use internal fields of ListSelectionEvent.
5820 * javax/swing/JViewport.java
5821 (getView): Dont use internal fields of Component.
5822 (addImpl): Likewise.
5823 * javax/swing/Timer.java
5824 (isRunning): Made public.
5827 * javax/swing/UIDefaults.java
5828 (getInt): Made public.
5829 * javax/swing/plaf/basic/BasicListUI.java
5830 (mousePressed): Dont use internal fields of MouseEvent.
5831 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5832 * javax/swing/plaf/basic/BasicScrollBarUI.java
5833 (arrowIcon): Made static.
5834 * javax/swing/plaf/basic/BasicViewportUI.java
5835 (stateChanged): Dont use internal field on ChangeEvent.
5836 * javax/swing/text/JTextComponent.java
5837 (getUI): Call UIManager.getUI().
5838 (updateUI): Use getUI().
5840 2004-03-19 Graydon Hoare <graydon@redhat.com>
5842 * javax/swing/JComponent.java: Turn off double buffer by default.
5843 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5844 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5845 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5846 Use cairo to copy areas.
5847 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5848 Initialize and set clip region.
5850 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5852 * java/applet/Applet.java (preferredSize): Override deprecated
5853 variant of getPreferredSize.
5854 (minimumSize): Override deprecated variant of getMinimumSize.
5856 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5858 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5859 (drawImage(img,xform,bgcolor,obs)): New Method.
5860 Helper function that every drawImage method will
5862 (drawRaster): Added new parameter, bgcolor. All
5863 transparent pixels are changed to bgcolor before
5865 (drawRenderedImage): Fixed to use changed drawRaster().
5866 (drawImage(image,xform,obs): Fixed to use new helper function
5867 (drawImage(image,op,x,y)): Ditto.
5868 (drawImage (img,x,y,observer)): Ditto.
5869 ((PainterThread) bgcolor): New Field.
5870 ((PainterThread) (setPixels)): Changed all transparent pixels
5872 (drawImage(img,x,y,width,height,bgcolor,observer)):
5873 Fixed FIXME - all the transparent pixels are
5874 changed to the specified bgcolor.
5875 (drawImage(img, x, y, width, height, observer): Changed to
5877 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5878 Fixed FIXME- changed all transparent pixels to bgcolor.
5879 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5880 Changed to use function above.
5882 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5884 * java/applet/Applet.java (dimensions): New field.
5885 (getDimensions): New method.
5886 (getPreferredSize): Call getDimensions.
5887 (getMinimumSize): Likewise.
5889 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5891 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5892 * jni/classpath/jnilink.c: Likewise.
5894 * java/applet/Applet.java (getPreferredSize): New method.
5895 (getMinimumSize): New method.
5897 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5899 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5900 (_Jv_AllocObjectNoFinalizer): Likewise.
5901 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5902 (_Jv_AllocPtrFreeObject): Likewise.
5903 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5904 directly even in the JVMPI case.
5905 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5906 _Jv_AllocObject calls.
5907 * gcj/javaprims.h: Update prototypes.
5908 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5909 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5910 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5912 2004-04-14 Andrew Haley <aph@redhat.com>
5913 Bryce McKinlay <mckinlay@redhat.com>
5915 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5916 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5917 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5919 * testsuite/libjava.lang/InvokeInterface.java: New file.
5920 * testsuite/libjava.lang/InvokeInterface.out: New file.
5922 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5924 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5926 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5927 StackTraceElement directly.
5928 (newElement): New native helper method to create StackTraceElement
5929 bypassing Java access control.
5930 (createStackTraceElement): Use newElement() instead of directly
5931 calling StackTraceElement's constructor.
5932 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5934 2004-04-01 Michael Koch <konqueror@gmx.de>
5936 * java/lang/SecurityManager.java
5937 (checkAwtEventQueueAccess): Implemented.
5939 2004-04-01 Gary Benson <gbenson@redhat.com>
5941 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5942 (_Jv_SearchMethodInClass): Likewise.
5944 2004-03-26 Peter Moon <peterm@miraculum.com>
5946 * java/text/NumberFormat.java: Fix spelling of setCurrency
5949 2004-03-21 Anthony Green <green@redhat.com>
5951 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5952 recursion when searching for the system ClassLoader.
5954 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5956 * java/net/ServerSocket.java
5957 (accept): Close the socket when error occured.
5959 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
5961 * java/net/URI.java (parseURI): Added unquoting.
5962 (unquote): New method.
5963 (quoteAuthority): Implemented.
5964 (quote(String,String)): New method.
5965 (quotePath): Implemented.
5966 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5967 (getSchemeSpecificPart): Removed FIXME comment.
5968 (getRawAuthority): Return new rawAuthority field.
5969 (getAuthority): Removed FIXME comment.
5970 (getRawUserInfo): Return new rawUserInfo field.
5971 (getUserInfo): Removed FIXME comment.
5972 (getRawPath): Return new rawPath field.
5973 (getPath): Removed FIXME comment.
5974 (getRawQuery): Return new rawQuery field.
5975 (getQuery): Removed FIXME comment.
5976 (getRawFragment): Return new rawFragment field.
5977 (getFragment): Removed FIXME comment.
5979 2004-03-20 Michael Koch <konqueror@gmx.de>
5981 * java/net/URLConnection.java: Merged copyright year with classpath.
5983 2004-03-20 Norbert Frese <postfach@nfrese.net>
5985 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5986 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5987 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5989 (getObjectInputStream): Return object reference, throw IOException if null.
5990 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5991 (getObjectOutputStream): Return object reference, throw IOException if null.
5992 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5993 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5994 (UnicastConnectionManager): Throw RemoteException if port is not available.
5995 (getInstance): Throw RemoteException.
5996 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5997 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5998 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5999 Collect Exceptions which are returned by a rmi-call and fix void returns.
6000 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
6001 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6002 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
6003 (dispatch): Answer ping messages which are sent by other java implementions.
6004 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
6005 for every rmi-message and fix void return problems.
6006 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
6007 (UnicastServerRef): Throw RemoteException.
6008 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
6009 In some situations it is necessary to export a subclass of the class which has the _Stub.
6010 For instance when the class with has the _Stub is abstract.
6011 (findStubSkelClass): New method which looks for the class which has the _Stub.
6012 (getClientHost): Implementated.
6013 * gcc/libjava/java/rmi/server/RemoteServer.java
6014 (getClientHost): Implementated.
6015 * gcc/libjava/Makefile.am (rmi_java_source_files):
6016 Added gnu/java/rmi/server/RMIIncomingThread.java.
6017 * Makefile.in: Regenerated.
6019 2004-03-20 Michael Koch <konqueror@gmx.de>
6021 * java/net/InetAddress.java
6022 (getLocalHostname): Added javadoc.
6024 2004-03-19 Per Bothner <per@bothner.com>
6026 * configure.in: FILE variable overrides FLATFORM when linking
6027 natFileChannelXXX.cc.
6029 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
6030 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
6032 2004-03-19 Per Bothner <per@bothner.com>
6034 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
6035 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
6036 * Makefile.am: Update accordingly.
6037 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
6038 as aliases for UnicodeLittle and UnicodeBig.
6040 2004-03-20 Mark Wielaard <mark@klomp.org>
6042 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6043 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
6044 Don't access ws when it is null.
6045 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
6048 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
6050 * java/lang/ThreadGroup.java (list): Changed print to println.
6052 2004-03-19 Mark Wielaard <mark@klomp.org>
6054 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
6057 2004-02-10 Randolph Chung <tausq@debian.org>
6059 * configure.in: Build java for hppa target.
6060 * configure: Regenerate.
6061 * libjava/configure.host (hppa-*): Add target.
6062 * libjava/sysdeps/pa/lock.h: New file.
6064 2004-03-19 Mark Wielaard <mark@klomp.org>
6066 Reported by Stephen Crawley
6067 * java/io/FilePermission.java (implies): Use String.length() -1 to
6068 access last char of String.
6070 2004-03-19 Michael Koch <konqueror@gmx.de>
6072 * java/awt/image/AffineTransformOp.java
6073 (AffineTransformOp): Made public.
6074 * javax/swing/JComponent.java
6075 (listenerList): Made protected.
6076 (accessibleContext): Likewise.
6077 * javax/swing/JList.java
6078 (valueChanged): Dont use internal fields of ListSelectionEvent.
6079 * javax/swing/JViewport.java
6080 (getView): Dont use internal fields of Component.
6081 (addImpl): Likewise.
6082 * javax/swing/Timer.java
6083 (isRunning): Made public.
6086 * javax/swing/UIDefaults.java
6087 (getInt): Made public.
6088 * javax/swing/plaf/basic/BasicListUI.java
6089 (mousePressed): Dont use internal fields of MouseEvent.
6090 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
6091 * javax/swing/plaf/basic/BasicScrollBarUI.java
6092 (arrowIcon): Made static.
6093 * javax/swing/plaf/basic/BasicViewportUI.java
6094 (stateChanged): Dont use internal field on ChangeEvent.
6095 * javax/swing/text/JTextComponent.java
6096 (getUI): Call UIManager.getUI().
6097 (updateUI): Use getUI().
6099 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6101 * verify.cc: Undef PC.
6103 2004-03-18 Michael Koch <konqueror@gmx.de>
6105 * java/nio/channels/spi/AbstractSelectableChannel.java
6106 (keys): Initialize at declaration.
6107 (locate): keys cant be null.
6109 (addSelectionKey): New method.
6110 (removeSelectionKey): New method.
6111 * java/nio/channels/spi/AbstractSelectionKey.java
6112 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
6113 * java/nio/channels/spi/AbstractSelector.java
6114 (provider): Javadoc added.
6115 (cancelledKeys): Javadoc added.
6116 (cancelKey): Javadoc added, add key to cancelledKeys.
6117 (deregister): Implemented.
6119 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6121 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
6122 MAP_FAILED to void *.
6124 2004-03-12 Graydon Hoare <graydon@redhat.com>
6126 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6127 * javax/swing/JComponent.java (paint): Use persistent double buffer.
6128 * javax/swing/JList.java (ListListener): Revalidate on changes.
6129 * javax/swing/JScrollPane.java: Reimplement.
6130 * javax/swing/JViewport.java: Reimplement.
6131 * javax/swing/ScrollPaneLayout.java: Reimplement.
6132 * javax/swing/ViewportLayout.java: Tidy up.
6133 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6134 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6135 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6136 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6139 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6141 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6142 (window_wm_protocols_filter): New function.
6143 (window_focus_in_cb): Remove function.
6144 (window_focus_out_cb): Likewise.
6145 (window_focus_or_active_state_change_cb): New function.
6146 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6147 (connectSignals): Don't attach handlers to focus-in-event or
6148 focus-out-event signals. Handle notify signal.
6150 2004-03-11 David Jee <djee@redhat.com>
6152 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6153 (gtkSetLabel): New native method declaration.
6154 (setLabel): Use gtkSetLabel.
6155 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6156 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6158 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6160 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6161 black when color argument is null.
6163 2004-03-10 Kim Ho <kho@redhat.com>
6165 * java/awt/Container.java: Remove check
6168 2004-03-10 Kim Ho <kho@redhat.com>
6170 * java/awt/Container.java: (visitChild):
6171 Remove candidate clip. Use the component
6173 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6174 (handleEvent): Use the PaintEvent's clip.
6176 2004-03-10 Kim Ho <kho@redhat.com>
6178 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6179 (handleEvent): Don't set the clip for the
6182 2004-03-09 Graydon Hoare <graydon@redhat.com>
6184 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6185 Fix double <-> fixed macros, reset font transform.
6186 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6189 2004-03-09Â Kim Ho <kho@redhat.com>
6191 * java/awt/Container.java: (visitChild): Move
6192 the x and y coordinate of the component rectangle
6193 to correct position.
6194 (handleEvent): Forward drag events to the pressed
6196 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6198 (ArrowButtonListener::mousePressed): Stop the
6200 (mouseDragged): Implement.
6201 (TrackListener::mousePressed): Only react if
6202 the press doesn't occur on the thumb, otherwise
6203 just set the offset.
6204 (TrackListener::mouseReleased): Unset the isAdjusting
6206 (createIncreaseIcon): Switch icon.
6207 (createDecreaseIcon): Switch icon.
6208 (calculatePreferredSize): Use width.
6209 (getThumbBounds): Use the top as the lower value.
6210 (layoutVScrollBar): Switch the button locations.
6211 (paintIncreaseHighlight): Paint correct side of thumb.
6212 (paintDecreaseHighlight): ditto.
6213 (valueForYPosition): Use top as the lower value.
6214 * javax/swing/plaf/basic/BasicSliderUI.java:
6216 (mouseDragged): Implement.
6217 (mousePressed): Only react when the thumb isn't
6218 pressed, otherwise just set offset.
6219 (mouseReleased): Handle a release of the thumb.
6220 (scrollDueToClickInTrack): Stop the timer first.
6221 * javax/swing/JProgressBar.java:
6222 (setString): Fix change condition.
6223 * javax/swing/JSeparator.java:
6226 2004-03-08 David Jee <djee@redhat.com>
6228 * java/awt/image/AffineTransformOp.java:
6229 (filter): Use Graphics2D interface instead of directly using the
6232 2004-03-05 David Jee <djee@redhat.com>
6234 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6235 (handleEvent): Action events are generated upon MOUSE_RELEASED.
6236 * java/awt/Container.java
6237 (acquireComponentForMouseEvent): Fixed.
6238 (handleEvent): Fixed.
6239 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6240 (state_to_awt_mods_with_button_states): New method.
6241 (pre_event_handler): Fixed mouse event generation.
6243 2004-03-05 Olga Rodimina <rodimina@redhat.com>
6245 gnu/java/awt/peer/gtk/GdkGraphics2D.java
6246 (GdkGraphics2D (BufferedImage)): Initialize
6247 pixmap associated with specified BufferedImage.
6248 (setPaint): Changed implementation of Texture
6249 Paint to use AffineTransformOp.
6250 * java/awt/image/AffineTransformOp.java
6251 (createCompatibleDestRaster): Throw RasterFormatException
6252 if resulting width or height of raster is 0.
6254 2004-03-04 Olga Rodimina <rodimina@redhat.com>
6256 * java/awt/image/AffineTransformOp.java:
6257 Removed unnecessary field interpolationType.
6258 Formatted some of the lines to be consistent with
6260 (AffineTransformOp): Create new RenderingHints
6261 containing specified interpolation type.
6262 (createCompatibleDestImage): Implemented.
6263 (createCompatibleDestRaster): Implemented.
6264 (filter): Implemented.
6265 (getBounds2D(BufferedImage)): Implemented.
6266 (getBounds2D(Raster)): Implemented.
6267 (getInterpolationType): Get interpolation value from
6270 2004-03-04 David Jee <djee@redhat.com>
6272 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6273 (setFont): Check if child peers are null.
6275 2004-03-04 Graydon Hoare <graydon@redhat.com>
6277 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6279 (libjava_arguments): Add new libraries to argument list.
6281 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6283 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6284 * Makefile.in: Re-generated.
6285 * java/awt/image/AffineTransformOp.java: New Class.
6287 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6289 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6290 (setPaint): Interpret correctly TexturePaint's
6292 (drawImage): Fixed scale factors of the affine
6295 2004-02-27 David Jee <djee@redhat.com>
6297 * gnu/java/awt/peer/gtk/GdkGraphics.java
6298 (GdkGraphics(Component)): Inherit font from component.
6299 (drawString): Use font style.
6300 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6301 (gtkSetFont): New native method declaration.
6302 (setFont): New method.
6303 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6304 (gtkSetFont): New native method declaration.
6305 (setFont): Call new native method gtkSetFont.
6306 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6307 (setFont): For all child components who do not their fonts set,
6308 set their peers' fonts with this container's font.
6309 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6310 Move all native method declarations to the top for readability.
6311 (gtkSetFont): New native method declaration.
6312 (setFont): New method.
6313 * java/awt/Component.java
6314 (setFont): Invalidate after setting the font.
6315 * java/awt/Container.java
6316 (invalidateTree): New method.
6317 (setFont): Invalidate the container tree after setting the font.
6318 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6319 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6320 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6321 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6322 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6323 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6324 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6325 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6327 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6329 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6330 (updateBufferedImage): New helper function.
6331 Updates BufferedImage in memory if it was changed.
6332 (draw): changed to update BufferedImage in memory after
6333 this drawing operation
6335 (draw3DRect): Ditto.
6336 (fill3DRect): Ditto.
6338 (drawRaster): Ditto.
6339 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6340 no affine transformation.
6341 (drawGlyphVector): Ditto.
6343 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6345 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6346 (isBufferedImageGraphics): New Helper function.
6347 Returns true if this graphics2d can be used to draw
6348 into buffered image and false otherwise.
6349 (updateImagePixels): New Helper function.
6350 Updates pixels in the BufferedImage.
6351 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6352 (getImagePixels): New function. Returns pixels
6353 of the buffered image associated with
6356 2004-02-26 David Jee <djee@redhat.com>
6358 * java/awt/BorderLayout.java
6359 (layoutContainer): Fix width and height calculations to ensure
6360 that they're non-negative.
6361 * java/awt/Component.java
6362 (setBackground): If c is null, inherit from closest ancestor whose
6363 background color is set.
6365 2004-02-26 Kim Ho <kho@redhat.com>
6367 * Makefile.am: Add new files.
6368 * Makefile.in: Re-generate.
6369 * javax/swing/JProgressBar.java:
6370 (JProgressBar(int, int int)): Throw
6371 IllegalArgumentException if orientation is
6373 (JProgressBar(BoundedRangeModel)): Create
6374 ChangeListener and register it. UpdateUI.
6375 (getChangeListeners): Implement.
6376 (setModel): Reset ChangeListener.
6377 * javax/swing/JScrollBar.java: Implement.
6378 * javax/swing/JSeparator.java: Implement.
6379 * javax/swing/JSlider.java:
6380 (JSlider(int, int, int, int)): Throw
6381 IllegalArgumentException if orientation
6383 (getChangeListeners): Fix method name.
6384 * javax/swing/SwingUtilities.java:
6385 (layoutCompoundLabel): If there is no text,
6386 set the text rectangle dimensions to 0.
6387 * javax/swing/plaf/basic/BasicButtonUI.java:
6388 (paint): If there is no text, don't paint it.
6389 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6391 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6393 * javax/swing/plaf/basic/BasicSliderUI.java:
6394 (propertyChange): If the model changes, change
6395 the listeners accordingly.
6397 2004-02-25 Graydon Hoare <graydon@redhat.com>
6399 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6400 * javax/swing/JList.java: Reimplement.
6401 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6402 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6403 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6404 * javax/swing/ListModel.java: Javadoc.
6405 * javax/swing/ListSelectionModel.java: Add missing methods.
6406 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6407 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6408 * javax/swing/ListModel.java: Javadoc and corrections.
6409 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6411 2004-02-25 David Jee <djee@redhat.com>
6413 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6414 (GtkFontPeer): Change default size to 12.
6415 * gnu/java/awt/peer/gtk/GtkToolkit.java
6416 (getFontPeer): Change default size to 12.
6417 (getClasspathFontPeer): Likewise. Set default name to "Default".
6418 * java/awt/Font.java
6419 (Font(Map)): Call Font(String,Map).
6420 (Font(String,Map)): If attrs is null, initialize it as an empty
6421 HashMap, which will ensure that the Font will get default attributes.
6423 2004-02-25 David Jee <djee@redhat.com>
6425 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6426 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6427 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6428 * gnu/java/awt/peer/gtk/GtkToolkit.java
6429 (getFontPeer(String,int)): Call the new overload method with size 1.
6430 (getFontPeer(String,int,int)): New method. Overloaded with size
6432 (getClasspathFontPeer): Set the size of the font.
6434 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6436 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6437 (bimage): New field.
6438 (GdkGraphics2D): New Constructor. Constructs Graphics
6439 object that can be used to draw into the Buffered Image.
6440 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6441 (GdkGraphicsEnvironment): Fixed to include public
6443 (createGraphics): Implemented.
6444 * gnu/java/awt/peer/gtk/GtkToolkit.java
6445 (getLocalGraphicsEnvironment): Implemented.
6446 * java/awt/GraphicsEnvironment.java:
6447 (getLocalGraphicsEnvironment): Implemented.
6448 * java/awt/image/BufferedImage.java:
6449 (createGraphics): Implemented.
6451 2004-02-24 David Jee <djee@redhat.com>
6453 * java/awt/Component.java
6454 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6455 * java/awt/Container.java
6456 (addNotifyContainerChildren): Fix event enabling.
6458 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6460 * Makefile.am: Added
6461 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6462 * Makefile.in: Re-generated.
6463 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6466 2004-02-19 Kim Ho <kho@redhat.com>
6468 * Makefile.am: Add BasicProgressBarUI
6469 * Makefile.in: Regenerate.
6470 * javax/swing/JProgressBar.java:
6472 * javax/swing/plaf/basic/BasicLookAndFeel.java
6473 Add constants for JProgressBar.
6474 * javax/swing/plaf/basic/BasicProgressBarUI.java
6476 * javax/swing/plaf/basic/BasicSliderUI.java
6478 (calculateGeometry): New method
6479 (paint): Remove unnecessary size calculations.
6481 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6483 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6484 (drawRaster): Fixed small error that caused
6485 imageToUser transformation to be set incorrectly.
6486 (toString): Implemented.
6488 2004-02-18 David Jee <djee@redhat.com>
6490 * java/awt/CardLayout.java
6491 (addLayoutComponent): Show the first component added as the default.
6492 (removeLayoutComponent): After removing, show the next component.
6493 (gotoComponent): If there is only one component, show it and return.
6495 2004-02-18 Kim Ho <kho@redhat.com>
6497 * javax/swing/JSlider.java: Re-order
6499 * javax/swing/JLabel.java: Re-order
6501 * javax/swing/JComponent.java:
6502 (addPropertyChangeListener):
6504 (removePropertyChangeListener):
6506 (firePropertyChangeEvent):
6509 2004-02-17 David Jee <djee@redhat.com>
6511 * java/awt/Component.java
6512 (show): Dispatch ComponentEvent via system event queue.
6516 (reshape): Likewise.
6517 * java/awt/Window.java
6518 (setBoundsCallback): Likewise.
6520 2004-02-17 David Jee <djee@redhat.com>
6522 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6523 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6524 Use gtk_widget_set_size_request() instead of the deprecated
6525 gtk_widget_set_usize().
6527 2004-02-17 Kim Ho <kho@redhat.com>
6529 * javax/swing/JSlider.java: Fix comments and
6530 make property strings constants.
6531 (createStandardLabels): Use the labels
6532 preferred size as bounds.
6533 * javax/swing/plaf/basic/BasicSliderUI.java
6535 (ScrollHandler::actionPerformed): Don't
6536 calculate the timer stop value. Let the
6537 MouseListeners find the stop location.
6538 (getPreferredHorizontalSize): Re-implement.
6539 (getPreferredVerticalSize): ditto.
6540 (getMinimumHorizontalSize): ditto.
6541 (getMinimumVerticalSize): ditto.
6542 (getPreferredSize): ditto.
6543 (getMinimumSize): ditto.
6544 (getMaximumSize): ditto.
6545 (paintTicks): Use doubles to find the
6547 (paintHorizontalLabel):Â Use preferredSize
6548 as initial width and height.
6549 (paintVerticalLabel): ditto.
6551 2004-02-17 Kim Ho <kho@redhat.com>
6553 * javax/swing/JLabel.java: Changed
6554 property strings to constants.
6555 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6557 (setText): Change mnemonic index if
6559 (setDisplayedMnemonicIndex): Fire property
6561 (getDisplayedMnemonicIndex): Remove check
6564 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6566 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6567 (drawImage(img,xform,obs)): Invert xform before
6568 passing the xform to cairo.
6569 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6570 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6572 (drawImage (img,x,y,w,h,obs)): Implemented.
6573 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6574 bgcolor,obs)): Partly implemented.
6575 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6577 * java/awt/image/BufferedImage.java:
6578 (copyData): if dest is null, create raster with same
6579 dimensions as the current image.
6581 2004-02-16 Graydon Hoare <graydon@redhat.com>
6583 * javax/swing/plaf/basic/BasicLabelUI.java
6584 (getPreferredSize): Use layoutCL.
6585 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6586 (getPreferredButtonSize): Start with empty view rect, layout using
6587 component's preferred alignment.
6588 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6591 2004-02-16 David Jee <djee@redhat.com>
6593 * java/awt/Component.java
6594 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6595 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6596 (move): Erase old bounds and repaint new bounds. Dispatch
6597 COMPONENT_MOVED ComponentEvent.
6598 (resize): Erase old bounds and repaint new bounds. Dispatch
6599 COMPONENT_RESIZED ComponentEvent.
6600 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6602 * java/awt/Window.java
6603 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6606 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6608 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6609 (setRenderingHint): Added implementation of
6610 Interpolation rendering hints.
6611 (setRenderingHints): Ditto.
6612 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6613 (drawPixels): fixed to allow user to choose type
6614 of filtering that should be used when displaying images.
6615 (cairoSurfaceSetFilter): New method. Sets filter type for
6616 interpolation of pixel values.
6618 2004-02-16 David Jee <djee@redhat.com>
6620 * java/awt/GridBagLayout.java
6621 (calcCellSizes): Rows or columns with zero sizes should still be
6622 considered for extra space distribution.
6624 2004-02-16 Kim Ho <kho@redhat.com>
6626 * javax/swing/JLabel.java: Re-implement.
6627 * javax/swing/plaf/basic/BasicLabelUI.java
6629 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6632 2004-02-16 Kim Ho <kho@redhat.com>
6634 * javax/swing/JSlider.java: Fix indentation and comments.
6635 (setModel): Remove null check to conform with Sun's.
6636 (setOrientation): Throw exception if not
6637 HORIZONTAL or VERTICAL.
6638 (getInverted): Use private variable instead of
6639 ComponentOrientation.
6640 (setInverted): ditto.
6641 * javax/swing/plaf/basic/BasicSliderUI.java:
6642 Fix indentation and comments.
6643 (propertyChange): Remove check for inverted slider, handle
6645 (getMinimumSize): Return preferred size.
6646 (getMaximumSize): ditto.
6647 (calculateFocusRect): Don't relocate rectangle.
6648 (drawInverted): Return XOR of the slider's inversion and
6649 the component's orientation.
6650 (paint): Update leftToRightCache
6652 2004-02-13 David Jee <djee@redhat.com>
6654 * java/awt/GridBagLayout.java
6655 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6656 code to helper methods.
6657 (sortBySpan): New helper method.
6658 (distributeSizeAndWeight): Likewise.
6659 (calcCellWeights): Likewise.
6660 (calcCellSizes): Add comments.
6662 2004-02-13 David Jee <djee@redhat.com>
6664 * java/awt/Component.java
6665 (show): Only do something if component is invisible at the moment.
6666 (hide): Only do something if component is visible at the moment.
6667 (reshape): If lightweight, erase old bounds and repaint new bounds.
6669 2004-02-13 Kim Ho <kho@redhat.com>
6671 * Makefile.am: Updated for new file.
6672 * Makefile.in: Regenerated.
6673 * javax/swing/JSlider.java: Reimplement.
6674 * javax/swing/SwingUtilities.java
6675 (layoutCompoundLabel): Use icon height
6677 (paintComponent): Implement.
6678 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6679 Add JSlider defaults.
6680 * javax/swing/plaf/basic/BasicSliderUI.java:
6681 Implement. New file.
6683 2004-03-17 Michael Koch <konqueror@gmx.de>
6685 * gnu/java/net/PlainDatagramSocketImpl.java
6686 (RECEIVE_LOCK): New member field.
6687 (SEND_LOCK): New member field.
6688 (send0): New method.
6689 (send): Synchronize on SEND_LOCK.
6690 (receive0): New method.
6691 (receive): Synchronize on RECEIVE_LOCK.
6692 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6693 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6694 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6695 (send0): Renamed from send.
6696 (receive0): Renamed from receive.
6697 2004-03-17 Michael Koch <konqueror@gmx.de>
6699 * gnu/java/net/natPlainSocketImplPosix.cc
6700 (write): Just call write(jbyteArray, offset, len).
6701 (read): Just call read(jbyteArray, offset, len).
6703 2004-03-16 Michael Koch <konqueror@gmx.de>
6705 * javax/swing/JTabbedPane.java
6706 (serialVersionUID): New field.
6708 2004-03-16 Norbert Frese <postfach@nfrese.net>
6710 * java/net/InetAddress.java
6711 (getByName): Handle hostname == "" case.
6713 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6715 Reported by: Adam Heath <doogie@debian.org>
6716 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6719 2004-03-15 Michael Koch <konqueror@gmx.de>
6721 * java/util/Locale.java: Reverting my last patch
6722 and add a comment why the original version was okay.
6724 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6726 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6727 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6728 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6729 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6731 2004-03-12 Michael Koch <konqueror@gmx.de>
6733 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6735 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6737 * java/net/URI.java (toURL): Implemented.
6739 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6742 (URI_REGEXP) updated to contain scheme specific part.
6743 (SCHEME_SPEC_PART_GROUP) new constant.
6744 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6745 updated to make room for SCHEME_SPEC_PART_GROUP.
6746 (parseURI) parse scheme specific part.
6747 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6748 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6749 getQuery, getFragment) implemented.
6751 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6753 * libraries/javalib/java/net/URI.java
6754 partially implemented using java.util.regex.
6755 (URI_REGEXP) new constant. Used to parse URIs.
6756 (SCHEME_GROUP) new constant representing index of scheme group
6758 (AUTHORITY_GROUP) new constant representing index of authority
6759 group in parsed URI.
6760 (PATH_GROUP) new constant representing index of path group in
6762 (QUERY_GROUP) new constant representing index of query group in
6764 (FRAGMENT_GROUP) new constant representing index of fragment
6765 group in parsed URI.
6766 (getURIGroup) new static utility method.
6767 (parseURI) implemented.
6768 (quote) stub for new static utility method.
6769 (quoteAuthority) stub for new static utility method.
6770 (quoteHost) stub for new static utility method.
6771 (quotePath) stub for new static utility method.
6772 (quoteUserInfo) stub for new static utility method.
6774 (create) don't throw URISyntaxException. Implemented.
6775 (toString) implemented.
6777 2004-03-12 Michael Koch <konqueror@gmx.de>
6779 * java/net/HttpURLConnection.java
6780 (getResponseCode): Fix another typo in javadoc.
6782 2004-03-11 Michael Koch <konqueror@gmx.de>
6784 * java/util/logging/Level.java
6785 (parse): Use String.equals() instead of ==.
6787 2004-03-11 Michael Koch <konqueror@gmx.de>
6789 * gnu/java/net/protocol/jar/Connection.java
6790 (getContentLength): New method.
6792 2004-03-11 Michael Koch <konqueror@gmx.de>
6794 * gnu/java/net/PlainSocketImpl.java:
6795 Reformated to merge better with classpath's version.
6797 2004-03-11 Michael Koch <konqueror@gmx.de>
6799 * java/util/Locale.java
6800 (getISO3Language): Use String.equals() instead of ==.
6801 (getISO3Country): Likewise.
6803 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6805 * java/text/AttributedString.java
6806 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6807 Use HashMap instead of Hashtable since value can be null, and
6808 you can not store a null value in a Hashtable.
6810 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6812 * java/text/AttributedStringIterator.java
6813 (getAllAttributesKey): Return only keys concerned
6814 by the current iterator.
6815 (getAttributes): Use strict inequality for
6818 2004-03-11 Michael Koch <konqueror@gmx.de>
6820 * java/net/HttpURLConnection.java:
6821 Fixed typo in javadoc.
6823 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6825 * java/io/BufferedInputStream.java (marktarget): New field for max
6827 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6828 (mark): Use new fields.
6830 (read(byte[],int,int)): Likewise.
6834 2004-03-11 Mark Wielaard <mark@klomp.org>
6836 * java/beans/BeanDescriptor.java (BeanDescriptor):
6837 Set the FeatureDescriptor programmatic name.
6839 2004-03-11 Michael Koch <konqueror@gmx.de>
6841 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6842 This file was was just copied form java/io/natFileDescriptorEcos.cc
6843 and never changed to compile correctly.
6845 2004-03-11 Michael Koch <konqueror@gmx.de>
6847 * gnu/java/nio/PipeImpl.java
6848 (SourceChannelImpl): Made final.
6849 (read): Implemented.
6850 (SinkChannelImpl): Made final.
6851 (write): Implemented.
6853 2004-03-11 Michael Koch <konqueror@gmx.de>
6855 * gnu/java/net/PlainDatagramSocketImpl.java:
6856 Reformated to match classpath's version more.
6858 2004-03-11 Michael Koch <konqueror@gmx.de>
6860 * gnu/java/awt/peer/ClasspathFontPeer.java:
6861 Fixed javadoc to be correct xhtml.
6862 * gnu/java/awt/peer/gtk/GtkArgList.java
6863 (add): Use Boolean.valueOf() instead of new Boolean().
6865 2004-03-09 Michael Koch <konqueror@gmx.de>
6867 * java/lang/Thread.java
6868 (runnable): Moved around.
6869 (daemon): Renamed from daemon_flag.
6870 (contextClassLoader): Renamed from context_class_loader.
6871 (Thread): Reordered constructors.
6872 (activeCount): Use group directly.
6873 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6874 (holdsLock): Reworked javadoc.
6875 (setDaemon): Reworked.
6876 * java/lang/natThread.cc
6879 2004-03-08 Anthony Green <green@redhat.com>
6881 * Makefile.am: Build property resource files into libgcj.
6882 * Makefile.in: Rebuilt.
6883 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6884 java/util/regex/PatternSyntaxException.java,
6885 gnu/regexp/CharIndexed.java,
6886 gnu/regexp/CharIndexedCharArray.java,
6887 gnu/regexp/CharIndexedInputStream.java,
6888 gnu/regexp/CharIndexedReader.java,
6889 gnu/regexp/CharIndexedString.java,
6890 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6891 gnu/regexp/REException.java,
6892 gnu/regexp/REFilterInputStream.java,
6893 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6894 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6895 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6896 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6897 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6898 gnu/regexp/RETokenLookAhead.java,
6899 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6900 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6901 gnu/regexp/RETokenStart.java,
6902 gnu/regexp/RETokenWordBoundary.java,
6903 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6905 2004-03-03 Per Bothner <per@bothner.com>
6907 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6908 Optimize when argument is a FileChannelImpl.
6909 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6911 * java/nio/channels/natChannels.cc: New file for new native methods.
6912 * Makefile.am: Update accordingly.
6914 2004-03-02 Jan Hubicka <jh@suse.cz>
6916 * configure.host: Pass -fno-omit-frame-pointer for i386.
6917 * configure.in: Likewise.
6918 * configure: Regenerate.
6920 2004-03-01 Per Bothner <per@bothner.com>
6922 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6924 2004-02-29 Per Bothner <per@bothner.com>
6926 * java/nio/channels/FileChannelImpl.java: Moved to package
6927 gnu/java/nio/channels, since we need to refer to it from java.io.
6928 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6929 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6930 from java/nio/channels. Don't depend on FileDescriptor.
6931 (in, out, err): New static fields.
6933 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6934 from FileDescriptor.
6935 (by): Removed MappedByteBuffer field.
6936 (map): New working implementation.
6937 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6938 some code "ported" from natFileDescriptoPosix.cc.
6939 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6940 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6941 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6942 Remove native methods.
6943 * Makefile.am, configure.in: Updated accordingly.
6945 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6946 (ch): New FileChannelImpl field. Update constructor to match.
6947 (releaseImpl): Remove native method. Instead ...
6948 (release): Call unlock on channel.
6949 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6951 * java/io/natFileDescriptorEcos.cc: Remove file.
6952 * java/io/natFileDescriptorPosix.cc: Remove file.
6953 * java/io/natFileDescriptorWin32.cc: Remove file.
6954 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6955 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6956 (<init>(FileChannelImpl)): New package-private constructor.
6957 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6958 (available, close, read, skip): Implement using FileChannelImpl.
6959 (getFD): Allocate FileDescriptor if needed.
6960 (getChannel): Is now trivial.
6961 * java/io/FileOutputStream.java: Corresponding changes.
6962 * java/io/RandomAccessFile.java: Corresponding changes.
6964 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6965 unmapImpl): New dummy methods, to be overridden by subclass.
6966 (finalize, isLoaded, load, force): New methods.
6967 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
6968 Now works, at least for read mapping.
6970 * java/lang/natPosixProcess.cc (startProcess): Implement standard
6971 streams using FileChannelImpl, not FileDescriptor.
6972 * java/lang/natWin32Process.cc (startProcess): Likewise.
6974 2004-02-28 Michael Koch <konqueror@gmx.de>
6976 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6979 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
6981 * java/io/ObjectInputStream.java
6982 (readClassDescriptor): Keep elements of the mapping non null.
6983 (checkTypeConsistency): New method.
6984 (readFields): Fixed main loop and base logic. Small reindentation.
6985 * java/io/ObjectStreamField.java
6986 (lookupField): New method to update the field reference.
6987 (checkFieldType): New method.
6988 * java/io/ObjectStreamClass.java
6989 (setClass, setFields): Call lookupField when building the field
6990 database. Check the real field type.
6992 2004-02-28 Michael Koch <konqueror@gmx.de>
6994 * java/nio/ByteOrder.java
6995 (nativeOrder): Use equals() to compare strings.
6997 2004-02-26 Michael Koch <konqueror@gmx.de>
6999 * gnu/java/nio/FileLockImpl.java
7000 (finalize): Made protected.
7001 * java/nio/channels/FileChannel.java
7002 (MapMode.READ_ONLY): Made final.
7003 (MapMode.READ_WRITE): Made final.
7004 (MapMode.PRIVATE): Made final.
7005 * java/nio/channels/SocketChannel.java
7006 (open): Simplified code.
7007 * java/nio/channels/spi/AbstractSelectableChannel.java
7008 (registered): Unused, removed.
7009 (keyFor): Check channel is open, only locate key
7010 and not add a new one.
7011 (register): Don't delete attachments.
7013 2004-02-26 Michael Koch <konqueror@gmx.de>
7015 * gnu/java/awt/ComponentDataBlitOp.java
7016 (INSTANCE): Made final.
7017 * gnu/java/awt/image/ImageDecoder.java:
7019 (cm): Unused, removed.
7021 2004-02-26 Michael Koch <konqueror@gmx.de>
7023 * gnu/java/nio/DatagramChannelImpl.java
7024 (send): Check if target address is resolved.
7026 2004-02-26 Michael Koch <konqueror@gmx.de>
7028 * Makefile.am: Generate and install headers for inner classes in
7029 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
7030 * Makefile.in: Regenerated.
7032 2004-02-24 Anthony Green <green@redhat.com>
7034 * java/lang/StringBuffer.java: No need to NULL out remainder of
7035 buffer since ensureCapacity_unsynchronized will have done this for
7038 2004-02-20 Michael Koch <konqueror@gmx.de>
7040 * gnu/java/net/protocol/jar/Handler.java
7041 (): Removed unneeded check for file != null. java.net.URL.getFile()
7042 returns an empty string but never null.
7044 2004-02-20 Michael Koch <konqueror@gmx.de>
7046 * gnu/gcj/convert/Convert.java
7047 (main): Use equals() to compare strings.
7049 2004-02-20 Michael Koch <konqueror@gmx.de>
7051 * javax/swing/AbstractButton.java: Made several constants final.
7052 (getRolloverSelectedIcon): Made public.
7053 (getSelectedIcon): Made public.
7055 2004-02-16 Per Bothner <per@bothner.com>
7057 * java/nio/CharBufferImpl.java: Inline super constructor.
7058 * java/nio/DoubleBufferImpl.java: Likewise.
7059 * java/nio/FloatBufferImpl.java: Likewise.
7060 * java/nio/IntBufferImpl.java: Likewise.
7061 * java/nio/LongBufferImpl.java: Likewise.
7062 * java/nio/ShortBufferImpl.java: Likewise.
7063 * java/nio/CharBuffer.java: Remove unused constructor.
7064 * java/nio/DoubleBuffer.java: Likewise.
7065 * java/nio/FloatBuffer.java: Likewise.
7066 * java/nio/IntBuffer.java: Likewise.
7067 * java/nio/LongBuffer.java: Likewise.
7068 * java/nio/ShortBuffer.java: Likewise.
7069 * java/nio/CharViewBufferImpl.java: New convenience constructor.
7070 Fix buggy call to super constructor.
7071 * java/nio/DoubleViewBufferImpl.java: Likewise.
7072 * java/nio/FloatViewBufferImpl.java: Likewise.
7073 * java/nio/IntViewBufferImpl.java: Likewise.
7074 * java/nio/LongViewBufferImpl.java: Likewise.
7075 * java/nio/ShortViewBufferImpl.java: Likewise.
7077 * java/nio/ByteBuffer.java (endian): Make non-private so other
7078 java.nio classes can inherit it.
7079 (<init>): Don't bother clearing array_offset.
7080 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
7081 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
7082 Remove redundant test.
7084 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
7085 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
7086 Use new XxxViewBufferImpl constructors.
7087 * java/nio/MappedByteBufferImpl.java: Likewise.
7088 * java/nio/DirectByteBufferImpl.java: Likewise.
7090 * java/nio/ByteBufferImpl.java: Remove one constructor.
7091 Inline super in remaining constructor.
7092 * java/nio/ByteBuffer.java: Remove unused constructor.
7094 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
7096 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
7097 * java/nio/DirectByteBufferImpl.java (owner): New field.
7098 (offset): Remove unused field.
7099 (<init>): Modify one and add another constructor. Change callers.
7100 (allocateDirect): Removed - not used.
7101 (getImpl, putImpl): Make static and pass address explicitly,
7102 to make them useful for MappedByteBufferImpl.
7103 (get, put): Check for underflow. Modify for new getImpl.
7104 (getImpl): New native method where target is array.
7105 (get(byte[],int,int)): Use the above.
7106 (adjustAddress): New static native method.
7107 (slice, duplicate, asReadOnly): New implementations.
7108 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
7109 adjustAddress): New or updated native methods.
7111 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
7113 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
7114 overflow of fieldmapping.
7116 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
7118 * javax/swing/undo/UndoManager.java: Re-written from scratch.
7120 2004-02-14 Per Bothner <per@bothner.com>
7122 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
7123 Set closed before calling implCloseChannel, as in the spec.
7125 2004-02-09 Graydon Hoare <graydon@redhat.com>
7127 * javax/swing/ToggleButtonModel.java: Remove dead class.
7128 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
7129 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
7130 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
7131 * Makefile.am: Update for new and removed files.
7132 * Makefile.in: Regenerate.
7134 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
7135 * javax/swing/AbstractButton.java
7136 (AbstractButton): Initialize fields correctly in ctor.
7137 * javax/swing/JCheckbox.java
7138 (JCheckBox): Override painting flags.
7139 * javax/swing/DefaultButtonModel.java: Conform to sun.
7140 * javax/swing/JComponent.java (paint): Fill with background color
7142 (processComponentKeyEvent)
7145 (processMouseMotionEvent): Remove event-consuming empty methods.
7146 (getUIClassID): Return "ComponentUI" not "JComponent"
7147 * javax/swing/JFrame.java: Remove some debugging chatter.
7148 (JFrame): Subscribe to window events.
7149 * javax/swing/JRadioButton.java
7150 (JRadioButton): Override painting flags.
7151 * javax/swing/JRootPane.java
7152 (JRootPane): Set background from UIDefaults.
7153 * javax/swing/JToggleButton.java
7154 (ToggleButtonModel): New inner class.
7155 (JToggleButton): Override layout alighment.
7156 * javax/swing/SwingUtilities.java:
7157 (getLocalBounds): Return width and height, not x and y.
7158 (calculateInnerArea): Use local bounds, not bounds.
7159 (layoutCompoundLabel): Provide overridden form.
7160 (layoutCompoundLabel): Correct bugs.
7161 * javax/swing/UIDefaults.java: Correct comment.
7162 * javax/swing/plaf/basic/BasicButtonUI.java:
7163 Move most logic into defaults, external listener.
7164 (paintIcon): Implement icon painting.
7165 (paint): Fix state painting to conform to changes in model.
7166 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
7167 Remove most dead/wrong methods.
7168 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7169 * javax/swing/plaf/basic/BasicIconFactory.java:
7170 (DummyIcon): New class.
7171 (getMenuItemCheckIcon)
7172 (getMenuItemArrowIcon)
7174 (getCheckBoxMenuItemIcon)
7175 (getRadioButtonMenuItemIcon)
7176 (createEmptyFrameIcon): Return DummyIcons, not null.
7177 (getCheckBoxIcon): Implement an icon that looks like sun's.
7178 (getRadioButtonIcon): Implement an icon that looks like sun's.
7179 * javax/swing/plaf/basic/BasicLookAndFeel.java
7180 (initComponentDefaults): Fix impossible values, add some missing.
7181 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7182 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7183 Remove most dead/wrong methods.
7185 (getDefaultIcon): New method.
7186 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7187 Remove most dead/wrong methods.
7188 * javax/swing/plaf/metal/MetalLookAndFeel.java
7189 (getDefaults): Return super.getDefaults(), not BasicDefaults.
7190 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7191 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7192 Implement "clearing" as drawing, when on pixmap drawables.
7194 * javax/swing/JButton.java (getUIClassID):
7195 * javax/swing/JCheckBox.java (getUIClassID):
7196 * javax/swing/JEditorPane.java (getUIClassID):
7197 * javax/swing/JLabel.java (getUIClassID):
7198 * javax/swing/JList.java (getUIClassID):
7199 * javax/swing/JOptionPane.java (getUIClassID):
7200 * javax/swing/JPanel.java (getUIClassID):
7201 * javax/swing/JPasswordField.java (uiClassID):
7202 * javax/swing/JRadioButton.java (getUIClassID):
7203 * javax/swing/JRootPane.java (getUIClassID):
7204 * javax/swing/JScrollPane.java (getUIClassID):
7205 * javax/swing/JTabbedPane.java (getUIClassID):
7206 * javax/swing/JToggleButton.java (getUIClassID):
7207 * javax/swing/JTree.java (getUIClassID):
7208 * javax/swing/JViewport.java (getUIClassID):
7209 * javax/swing/text/JTextComponent.java (getUIClassID):
7210 Return "fooUI" not "Jfoo"
7212 2004-02-11 Michael Koch <konqueror@gmx.de>
7214 * java/net/DatagramSocket.java
7215 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7217 (setBroadcast): Likewise.
7218 * java/net/MulticastSocket.java
7219 (setLoopbackMode): Likewise.
7220 * java/net/ServerSocket.java
7221 (setReuseAddress): Likewise.
7222 * java/net/Socket.java
7223 (setTcpNoDelay): Likewise.
7224 (setSoLinger): Likewise.
7225 (setOOBInline): Likewise.
7226 (setKeepAlive): Likewise.
7227 (setReuseAddress): Likewise.
7228 * java/net/URLConnection.java
7229 (setContentHandler): Replace == with equals().
7230 * java/net/URLStreamHandler.java
7231 (hostSEquals): Fix checking host addresses.
7232 (toExternalForm): Dont check protocol for null. We know already its
7235 2004-02-10 David Jee <djee@redhat.com>
7237 * java/awt/BorderLayout.java
7238 (calcCompSize): Invisible components get zero dimensions.
7239 * java/awt/Button.java
7240 (setLabel): Set actionCommand.
7241 * java/awt/Component.java
7242 (show): Invalidate component and parent container.
7245 2004-02-10 David Jee <djee@redhat.com>
7247 * java/awt/GridBagLayout.java
7248 (GridBagLayout): New private field, internalcomptable.
7249 (lookupInternalConstraints): New method.
7250 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7251 (GetLayoutInfo): Reimplement.
7252 (calcCellSizes): Ignore rows/columns with size 0.
7254 2004-02-10 Michael Koch <konqueror@gmx.de>
7256 * gnu/java/awt/EmbeddedWindow.java
7257 (setHandle): Use java.awt.Component.getPeer() instead of
7258 java.awt.Component.peer directly.
7260 2004-02-10 David Jee <djee@redhat.com>
7262 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7263 (gtkSetLabel): New native method definition.
7264 (setLabel): Use gtkSetLabel.
7265 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7266 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7268 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7270 * include/powerpc-signal.h: Revert 2004-01-21 change.
7271 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7272 from syscall for ppc32 versions.
7274 2004-02-08 Per Bothner <per@bothner.com>
7276 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7277 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7278 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7279 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7280 Pass ByteOrder parameter to most methods, since the underlying
7281 ByteBuffer's order isn't always what we should use.
7282 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7283 * java/nio/DirectByteBufferImpl.java: Likewise.
7284 Use ByteBufferHelper methods.
7285 * java/nio/MappedByteBufferImpl.java: Likewise.
7286 (compact): Use shiftDown.
7287 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7288 (get, put): Use ByteBufferHelper.
7289 (compact): Use new shiftDown method.
7290 (duplicate(boolean)): New helper method.
7291 (duplicate, asReadOnlyBuffer): Use it.
7292 (order): Return endian field.
7293 * java/nio/DoubleViewBufferImpl.java: Likewise.
7294 * java/nio/FloatViewBufferImpl.java: Likewise.
7295 * java/nio/IntViewBufferImpl.java: Likewise.
7296 * java/nio/LongViewBufferImpl.java: Likewise.
7297 * java/nio/ShortViewBufferImpl.java: Likewise.
7298 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7299 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7300 (compact): Re-implement using shiftDown.
7302 2004-02-08 Andreas Jaeger <aj@suse.de>
7304 * include/x86_64-signal.h: Fix typo.
7306 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7308 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7310 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7312 2004-02-06 Michael Koch <konqueror@gmx.de>
7314 * java/io/ObjectInputStream.java
7315 (currentClassLoader): Reverted to old version of this method.
7317 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7319 * java/io/ObjectInputStream.java: Made all calls
7320 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7321 use cached info from ObjectStreamClass. (readClassDescriptor):
7322 Cache more information in ObjectStreamClass. (processResolution,
7323 readFields): Use cached info from ObjectStreamClass.
7324 (newObject): Throw exception instead of returning null for failure.
7325 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7326 setCharField, setDoubleField, setFloatField, setIntField,
7327 setLongField, setShortField, setObjectField, readObjectParams):
7328 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7330 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7331 (setClass): Added call to cacheMethods() (findMethod): New method.
7332 (cacheMethods): New method. (ObjectStreamClass): Added call to
7333 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7334 AccessController.doPrivileged to invoke setAccessible.
7335 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7336 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7338 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7339 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7340 isPrimitive): Made safe for cases where type == null.
7341 (setBooleanField, setByteField, setCharField, setShortField,
7342 setIntField, setLongField, setFloatField, setDoubleField,
7343 setObjectField): New methods.
7345 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7347 * java/awt/Component.java (getFont): Return a default font
7350 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7351 (Scrollbar (int, int, int, int, int)): Make default page
7353 (setValues): Only call peer.setValues if one of the values has
7355 (generateName): New method.
7356 (getUniqueLong): New method.
7357 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7358 (range_scrollbar): Remove structure.
7359 (post_adjustment_event): Remove function.
7360 (post_change_event): Accept jobject argument.
7361 (create): Cast jints to gdoubles. Round scrollbar values to the
7362 nearest integer. Clamp min, max and value settings.
7363 (connectJObject): Connect hook to widget->window.
7364 (connectSignals): Remove range_scrollbar structure variables.
7365 Remove "move-slider" connection. Pass global peer reference to
7366 "value-changed" callback.
7367 (setLineIncrement): Cast jint value to gdouble.
7368 (setPageIncrement): Likewise.
7369 (setValues): Likewise. Clamp min, max and value settings.
7371 2004-02-05 Michael Koch <konqueror@gmx.de>
7373 * javax/swing/AbstractCellEditor.java
7374 (getCellEditorValue): Removed.
7375 * javax/swing/Box.java: Reformated.
7376 (serialVersionUID): New field.
7377 * javax/swing/ButtonGroup.java:
7378 Removed some weird whitespace.
7379 * javax/swing/CellEditor.java: Reformated.
7380 * javax/swing/CellRendererPane.java
7381 (serialVersionUID): New field.
7382 (AccessibleCellRendererPaneserialVersionUID): New field.
7383 * javax/swing/DefaultListModel.java
7384 (serialVersionUID): New field.
7385 * javax/swing/JEditorPane.java
7386 (serialVersionUID): New field.
7387 (setPage): Throws IOException.
7388 (addHyperlinkListener): Implemented.
7389 (removeHyperlinkListener): Implemented.
7390 (getHyperlinkListener): New method.
7391 * javax/swing/JFileChooser.java
7392 (serialVersionUID): New field.
7393 (AccessibleJFileChooser.serialVersionUID): New field.
7394 (addActionListener): Implemented.
7395 (removeActionListener): Implemented.
7396 (getActionListeners): New method.
7397 * javax/swing/JFormattedTextField.java
7398 (serialVersionUID): New field.
7399 (AbstractFormatter.serialVersionUID): New field.
7400 (clone): Throws CloneNotSupportedException
7401 (setEditValid): Add missing argument.
7402 (stringToValue): Throws ParseExcpetion.
7403 (valueToString): Throws ParseException.
7404 (commitEdit): Throws ParseException.
7405 * javax/swing/JLabel.java
7406 (serialVersionUID): New field.
7407 * javax/swing/JList.java
7408 (serialVersionUID): New field.
7409 (addListSelectionListener): Reformated.
7410 (removeListSelectionListener): Reformated.
7411 (getListSelectionListeners): New method.
7412 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7414 (serialVersionUID): New field.
7415 * javax/swing/table/AbstractTableModel.java
7416 (getValueAt): Removed.
7417 (getColumnCount): Removed.
7418 (getRowCount): Removed.
7420 2004-02-05 Michael Koch <konqueror@gmx.de>
7422 * java/awt/datatransfer/DataFlavor.java
7423 (imageFlavor): Javadoc added.
7424 (javaJVMLocalObjectType): Fixed.
7426 2004-02-05 Michael Koch <konqueror@gmx.de>
7428 * java/lang/Thread.java
7429 (Thread): Reordered.
7430 (setContextClassLoader): Fixed javadoc comment.
7431 (setPriority): Reordered.
7433 (initialize_native): Reordered.
7434 (gen_name): Reordered.
7436 2004-02-05 Michael Koch <konqueror@gmx.de>
7438 * java/lang/Thread.java: Reordered fields, reformated much code,
7439 no functional changes, some variables renamed, javadoc comments
7442 2004-02-05 Michael Koch <konqueror@gmx.de>
7444 * java/util/zip/Deflater.java,
7445 java/util/zip/DeflaterOutputStream.java,
7446 java/util/zip/GZIPInputStream.java:
7447 Reformated and javadoc comments merged from classpath.
7449 2004-02-05 Michael Koch <konqueror@gmx.de>
7451 * gnu/java/nio/NIOServerSocket.java
7452 (impl): Unused, removed.
7453 * gnu/java/nio/SocketChannelImpl.java
7454 (finnishConnect): Don't throw NoConnectionPendingException if not
7455 connected or no connection pending.
7457 2004-02-02 Graydon Hoare <graydon@redhat.com>
7459 * javax/swing/SwingUtilities.java: Many new functions.
7460 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7461 * javax/swing/basic/BasicGraphicsUtils.java
7462 (getPreferredButtonSize): Start layout from top-left corner.
7464 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7466 * java/awt/geom/AffineTransform.java:
7467 Corrected comments on the field definitions for
7469 (shear): Fixed few errors that caused shear
7470 transformation to be performed incorrectly.
7471 (createInverse): Fixed to return correct
7472 inverse of the given matrix.
7474 2004-02-03 Tom Tromey <tromey@redhat.com>
7476 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7477 PATH or LD_LIBRARY_PATH is not set in parent environment.
7479 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7481 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7482 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7483 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7484 java/awt/Component.java, java/awt/Container.java,
7485 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7486 java/awt/LayoutManager2.java, java/awt/List.java,
7487 java/awt/Menu.java, java/awt/MenuBar.java,
7488 java/awt/MenuItem.java, java/awt/Polygon.java,
7489 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7490 java/awt/Scrollbar.java, java/awt/TextArea.java,
7491 java/awt/TextField.java,
7492 java/awt/image/renderable/RenderContext.java,
7493 javax/swing/JApplet.java: Fix handling of alias methods, where a
7494 method has been deprecated in favour of a new one with the same
7495 funtion but a different name. Put the method implementation in
7496 the deprecated method and have the new method call the
7497 deprecated one. Make all other code call the new method.
7499 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7501 * gnu/java/nio/DatagramChannelImpl.java
7502 (inChannelOperation): New field.
7503 (isInChannelOperation): New accessor.
7504 (setInChannelOperation): New modifier.
7505 (receive): Use capacity() - position() of destination
7506 buffer instead of remaining(). Set and reset our "in
7507 channel operation indicator" before and after delegating
7508 the receive to our datagram socket. Removed testing code.
7509 Update destination buffer's current position if it is
7510 backed by a byte array (hasArray() is true).
7511 (send): Set and reset our "in channel operation indicator"
7512 before and after delegating the send to our datagram socket.
7513 Removed testing code. Update source buffer's current position
7514 if it is backed by a byte array (hasArray() is true).
7515 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7516 Use capacity() - position() of destination buffer instead
7518 * java/net/DatagramSocket.java (receive): Don't throw an
7519 IllegalBlockingModeException if we have a non-blocking
7520 channel which initiated this operation.
7523 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7525 * configure.in: Add pkgconfig check for glib and gthread.
7526 * configure: Regenerate.
7528 2004-02-01 Michael Koch <konqueror@gmx.de>
7530 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7532 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7533 * verify.cc (debug_print): Mark 'fmt' unused.
7535 2004-01-30 Michael Koch <konqueror@gmx.de>
7537 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7538 * configure: Regenerated.
7539 * glib-2.0.m4: Removed.
7540 * gtk-2.0.m4: Removed.
7541 * libart.m4: Removed.
7544 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7546 * gnu/java/net/PlainSocketImpl.java
7547 (inChannelOperation): New field.
7548 (isInChannelOperation): New accessor.
7549 (setInChannelOperation): New modifier.
7550 * gnu/java/nio/ServerSocketChannelImpl.java
7551 (accept): Set and reset our server socket's PlainSocketImpl's
7552 "in channel operation" indicator before and after delegating
7553 the accept to our server socket.
7554 * gnu/java/nio/SocketChannelImpl.java
7555 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7556 operation" indicator before and after delegating the operation to
7560 * java/net/ServerSocket.java (implAccept): Don't throw an
7561 IllegalBlockingModeException if we have a non-blocking
7562 channel which initiated this accept operation.
7563 * java/net/Socket.java (connect): Don't throw an
7564 IllegalBlockingModeException if we have a non-blocking
7565 channel which initiated this connect operation.
7566 * java/nio/channels/spi/AbstractSelectableChannel.java
7567 (configureBlocking): Only call implConfigureBlocking() if
7568 the desired blocking mode is different from our current one.
7570 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7572 * java/io/BufferedReader.java (sbuf): New field.
7573 (readLine): Use String.valueOf instead of new String() as per
7574 Per Bothner's suggestion. Use instance sbuf field instead of a
7575 local StringBuffer instance.
7576 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7577 caller's buffer to refill().
7578 (read(void)): Pass our internal work buffer to refill if our
7579 input queue is empty.
7580 (refill): Changed return type to int. Use the specified buffer
7581 instead of our work buffer as per Bryce McKinlay's suggestion.
7582 Return the number of characters read or -1 for EOF.
7584 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7586 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7588 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7590 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7591 * Makefile.in: Re-generated.
7592 * gnu/awt/xlib/XFontPeer.java: New file.
7593 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7594 (setClip): Commented out debug printout.
7595 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7596 (getFontPeer): Return XFontPeer.
7597 (getLocalGraphicsEnvironment): New method.
7598 (getClasspathFontPeer): New method.
7599 (createFont): New method.
7601 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7603 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7606 2004-01-29 Kim Ho <kho@redhat.com>
7608 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7609 (gtkLayoutSetVisible): New method
7610 (setMenuBar): Hide layout before setting MenuBar
7611 and reshow it after.
7612 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7613 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7615 2004-01-28 Michael Koch <konqueror@gmx.de>
7617 * gnu/java/lang/ClassHelper.java
7618 (getPackagePortion): Removed.
7620 2004-01-28 Michael Koch <konqueror@gmx.de>
7622 * javax/swing/JComponent.java
7623 (listenerList): Initalize globally.
7624 (ancestor_list): Removed.
7625 (veto_list): Removed.
7626 (change_list): Removed.
7627 (get_veto_list): Removed.
7628 (get_change_list): Removed.
7629 (get_ancestor_list): Removed.
7630 (removeAncestorListener): Reimplemented.
7631 (removePropertyChangeListener): Likewise.
7632 (removeVetoableChangeListener): Likewise.
7633 (addAncestorListener): Likewise.
7634 (addPropertyChangeListener): Likewise.
7635 (addVetoableChangeListener): Likewise.
7636 (getListeners): New method.
7637 (getAncestorListeners): Likewise.
7638 (getVetoableChangeListeners): Likewise.
7639 (fireVetoableChange): Throws PropertyVetoException.
7640 * javax/swing/JEditorPane.java
7641 (JEditorPane): Throws IOException.
7643 2004-01-28 David Jee <djee@redhat.com>
7645 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7646 (create): Set the default foreground color to
7647 java.awt.SystemColor.windowText.
7649 2004-01-27 Michael Koch <konqueror@gmx.de>
7651 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7652 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7653 Reindented to merge with classpath.
7655 2004-01-27 David Jee <djee@redhat.com>
7657 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7658 (addExposeFilter): Handle GtkFramePeer separately.
7659 (removeExposeFilter): Likewise.
7661 2004-01-27 Michael Koch <konqueror@gmx.de>
7663 * gnu/java/net/protocol/http/Connection.java
7664 (getOutputStream): Fixed typo.
7666 2004-01-27 Michael Koch <konqueror@gmx.de>
7668 * java/lang/Class.java
7669 (getConstructor): Removed SecurityException from throws clause.
7670 (_getConstructors): Likewise.
7671 (getConstructors): Likewise.
7672 (getDeclaredConstructor): Likewise.
7673 (getDeclaredClasses): Likewise.
7674 (getDeclaredConstructors): Likewise.
7675 (getDeclaredField): Likewise.
7676 (getDeclaredMethod): Likewise.
7677 (getDeclaredMethods): Likewise.
7678 (getField): Likewise.
7679 (getMethod): Likewise.
7680 (getMethods): Likewise.
7682 2004-01-27 Kim Ho <kho@redhat.com>
7684 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7685 (removeMenuBarPeer): Remove MenuBarPeer argument.
7686 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7687 (dispose): Call native method.
7688 * java/awt/Frame.java (setMenuBar): Create and remove
7689 MenuBar peers only if the Frame has a peer.
7690 (addNotify): Create the MenuBar peer if one exists.
7691 (removeNotify): Remove MenuBar peer if one exists.
7692 * java/awt/Menu.java: Fix imports.
7693 (addNotify): Don't use full class name.
7694 (removeNotify): Call removeNotify on all children.
7695 * java/awt/MenuBar.java (removeNotify): Call
7696 removeNotify on all children.
7697 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7698 (removeMenuBarPeer): Remove MenuBarPeer argument.
7699 Iterate through children to find the Frame's MenuBar.
7700 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7702 (dispose): Remove references to the MenuComponent.
7704 2004-01-27 Michael Koch <konqueror@gmx.de>
7706 * javax/swing/AbstractCellEditor.java: Reformated.
7707 * javax/swing/DefaultListSelectionModel.java
7708 (listenerList): Made protected.
7709 (addListSelectionListener): Javadoc added.
7710 (removeListSelectionListener): Likewise.
7711 (getListeners): Likewise.
7712 (getListSelectionListeners): Likewise.
7713 * javax/swing/JComboBox.java: Merged copyright year.
7714 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7716 2004-01-26 Andrew Haley <aph@redhat.com>
7718 * javax/swing/table/JTableHeader.java: Extend JComponent
7720 2004-01-26 Kim Ho <kho@redhat.com>
7722 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7725 2004-01-26 Kim Ho <kho@redhat.com>
7727 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7729 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7730 height and let the Layout Managers readjust anything that
7732 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7733 (moveLayout): New method. Shift everything in the Gtk
7734 layout in the Y direction by an offset.
7736 2004-01-26 David Jee <djee@redhat.com>
7738 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7739 (handleEvent): Implemented. Handles PaintEvents.
7740 (paint): Implemented. Use GTK native methods to queue updates
7741 for this heavyweight peer.
7742 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7743 (handleEvent): Removed.
7744 * java/awt/Component.java
7745 (paint): Implemented. Explictly paint the heavyweight peer.
7746 (update): Clear the background for heavyweight components.
7747 (paintAll): No need to call peer.paint() anymore.
7748 (processEvent): Don't process PaintEvents here. It's now done in
7749 the peer's handleEvent().
7750 (processPaintEvent): Removed.
7751 * java/awt/Container.java
7752 (paint): No need to call super.paint(). Visit heavyweight
7754 (update): Don't clear the background here. It's done in
7756 (visitChildren): Added check to not recurse into Containers.
7757 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7758 (filter_expose_event_handler): New method. Filter unwanted
7759 expose events while painting heavyweight peers.
7760 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7761 New method. Connect filter and block pre_event_handler.
7762 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7763 New method. Disconnect filter and unblock pre_event_handler.
7764 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7765 New method. Invalidate and update given area.
7766 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7767 (pre_event_handler): Add checks for unwanted expose events.
7769 2004-01-26 David Jee <djee@redhat.com>
7771 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7772 (find_bg_color_widget): For GtkButton, return its child.
7774 2004-01-26 Kim Ho <kho@redhat.com>
7776 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7778 (setMenuBar): Grab MenuBar height and change insets.
7779 (setBounds): Account for MenuBar height.
7780 (postInsetsChangedEvent): Ditto.
7781 (postSizeAllocateEvent): Remove.
7782 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7783 (menubar_resize_cb): Remove
7784 (setMenuBarPeer): Remove callback.
7785 (getMenuBarHeight): Use size requisition instead of
7788 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7790 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7791 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7793 (setColumns): Remove FIXME -- peer will retrieve number of
7794 columns by calling getColumns.
7795 (setRows): Likewise for number of rows.
7796 (next_text_number): New field.
7797 (paramString): Fix param string.
7798 (generateName): New method.
7799 (getUniqueLong): New method.
7801 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7803 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7804 image observer of image loading status.
7805 (getImage (String)): Start image production.
7806 (getImage (URL)): Likewise.
7808 2004-01-25 Michael Koch <konqueror@gmx.de>
7810 * java/lang/Class.java: Imports reworked, reformated.
7811 (Class): Javadoc added.
7812 (forName): Likewise.
7813 (getClasses): Likewise.
7814 (getClassLoader): Likewise.
7815 (getComponentType): Likewise.
7816 (getConstructor): Likewise.
7817 (getConstructors): Likewise.
7818 (getDeclaredConstructor): Likewise.
7819 (getDeclaredClasses): Likewise.
7820 (getDeclaredConstructors): Likewise.
7821 (getDeclaredField): Likewise.
7822 (getDeclaredMethod): Likewise.
7823 (getDeclaredMethods): Likewise.
7824 (getDeclaringClass): Likewise.
7825 (getField): Likewise.
7826 (getInterfaces): Likewise.
7827 (getMethod): Likewise.
7828 (getMethods): Likewise.
7829 (getModifiers): Likewise.
7830 (getName): Likewise.
7831 (getResource): Likewise.
7832 (getResourceAsStream): Likewise.
7833 (getSigners): Likewise.
7834 (setSigners): Likewise.
7835 (getSuperclass): Likewise.
7836 (isArray): Likewise.
7837 (isAssignableFrom): Likewise.
7838 (isInstance): Likewise.
7839 (isInterface): Likewise.
7840 (isPrimitive): Likewise.
7841 (newInstance): Likewise.
7842 (getProtectionDomain): Likewise.
7843 (toString): Likewise.
7845 (initializeClass): Likewise.
7846 (finalize): Likewise.
7848 2004-01-24 Michael Koch <konqueror@gmx.de>
7850 * gnu/java/net/protocol/jar/Connection.java
7853 (gotHeaders): Removed.
7854 (getHeaderField): Removed.
7855 (getHeaderFields): Removed.
7856 (getHeaderFieldKey): Removed.
7858 (getField): Removed.
7859 (getHeaders): Removed.
7861 2004-01-24 Michael Koch <konqueror@gmx.de>
7863 * Makefile.am: Added library version to gtk peer lib.
7864 * Makefile.in: Regenerated.
7866 2004-01-24 Michael Koch <konqueror@gmx.de>
7868 * java/util/zip/InflaterInputStream.java: Merged class documentation
7871 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7873 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7874 header. For __powerpc64__ provide the default-signal.h definitions
7876 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7877 instead of the dummy definitions.
7878 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7879 (powerpc64*-*): Remove with_libffi_default.
7880 Only add -mminimal-toc for 64-bit compilations.
7881 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7882 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7883 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7884 * configure: Rebuilt.
7886 2004-01-23 Michael Koch <konqueror@gmx.de>
7888 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7890 2004-01-23 Michael Koch <konqueror@gmx.de>
7892 * java/lang/VMClassLoader.java: Reworked imports.
7894 2004-01-23 Michael Koch <konqueror@gmx.de>
7896 * javax/swing/AbstractAction.java: Reformated.
7898 2004-01-23 Michael Koch <konqueror@gmx.de>
7900 * java/text/CollationElementIterator.java:
7901 (setText): New method.
7903 2004-01-23 Michael Koch <konqueror@gmx.de>
7905 * gnu/java/nio/FileLockImpl.java:
7906 Fixed filename in copyright.
7907 (released): Removed.
7908 (finalize): New method.
7909 * gnu/java/nio/natFileLockImpl.cc
7910 (releaseImpl): Implemented.
7911 * java/nio/channels/FileChannelImpl.java:
7913 (lock): Implemented.
7914 (lockImpl): New method.
7915 (tryLock): Implemented.
7916 (tryLockImpl): New method.
7917 * java/nio/channels/natFileChannelImpl.cc
7918 (lockImpl): New method.
7919 (tryLockImpl): New method.
7921 2004-01-23 Michael Koch <konqueror@gmx.de>
7923 * java/io/FileDescriptor.java
7925 (tryLock): New method.
7926 (unlock): New method.
7927 * java/io/natFileDescriptorEcos.cc
7929 (tryLock): New method.
7930 (unlock): New method.
7931 * java/io/natFileDescriptorPosix.cc
7933 (tryLock): New method.
7934 (unlock): New method.
7935 * java/io/natFileDescriptorWin32.cc
7937 (tryLock): New method.
7938 (unlock): New method.
7940 2004-01-23 Michael Koch <konqueror@gmx.de>
7942 * java/io/FileDescriptor.java
7943 (sync): Moved around, added javadoc.
7948 (setLength): Likewise.
7950 (getLength): Likewise.
7951 (getFilePointer): Likewise.
7953 (available): Likewise.
7954 (finalize): Likewise.
7956 2004-01-23 Michael Koch <konqueror@gmx.de>
7958 * javax/swing/AbstractAction.java: Reformated.
7959 (getPropertyChangeListeners): New method.
7960 * javax/swing/AbstractCellEditor.java: Reformated.
7961 (getCellEditorListeners): New method.
7962 * javax/swing/DefaultListSelectionModel.java
7963 (listenerList): New field.
7964 (listeners): Removed.
7965 (get_listeners): Removed.
7966 (addListSelectionListener): Rewritten.
7967 (removeListSelectionListener): Rewritten.
7968 (getListSelectionListeners): New method.
7969 (getListeners): New method.
7970 * javax/swing/JComboBox.java: Imports reworked.
7971 (addActionListener): Implemented.
7972 (removeActionListener): Implemented.
7973 (addItemListener): Implemented.
7974 (removeItemListener): Implemented.
7975 (addPopupMenuListener): Implemented.
7976 (removePopupMenuListener): Implemented.
7977 (getActionListeners): New method.
7978 (getItemListeners): New method.
7979 (getPopupMenuListeners): New method.
7981 2004-01-23 Michael Koch <konqueror@gmx.de>
7983 * gnu/java/net/protocol/http/Connection.java
7984 (connect): Don't initialize bufferedOutputStream if not needed.
7985 (sendRequest): Set property for content length if content is present.
7986 Write content only if present.
7987 (getOutputStream): Check if already connected, dont connect,
7988 initalize bufferedOutputStream if needed.
7990 2004-01-23 Michael Koch <konqueror@gmx.de>
7992 * java/io/FileDescriptor.java
7993 (in, out, err): Added javadoc.
7994 (static): Merged loading code.
7995 (fd, position): Moved around.
7997 2004-01-23 Michael Koch <konqueror@gmx.de>
7999 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
8002 2004-01-23 Michael Koch <konqueror@gmx.de>
8004 * java/lang/Class.java,
8005 java/lang/Object.java,
8006 java/lang/Thread.java: Merged copyright with classpath.
8008 2004-01-23 Michael Koch <konqueror@gmx.de>
8010 * java/io/FileDescriptor.java: Merged copyright with classpath to
8011 start merging this class.
8013 2004-01-22 Tom Tromey <tromey@redhat.com>
8016 * testsuite/libjava.lang/pr13107_2.xfail: New file.
8017 * testsuite/libjava.lang/pr13107_3.xfail: New file.
8018 * testsuite/libjava.lang/pr13107_3.java: New file.
8019 * testsuite/libjava.lang/pr13107_3.out: New file.
8020 * testsuite/libjava.lang/pr13107_2.java: New file.
8021 * testsuite/libjava.lang/pr13107_2.out: New file.
8022 * testsuite/libjava.lang/pr13107.java: New file.
8023 * testsuite/libjava.lang/pr13107.out: New file.
8024 * verify.cc (jsr_ptrs): Removed.
8025 (entry_points): Likewise.
8026 (struct subr_info): Likewise.
8027 (struct subr_entry_info): Likewise.
8028 (type_val::unused_by_subroutine_type): Likewise.
8029 (type::merge): Don't handle unused_by_subroutine_type.
8030 (type::print): Likewise.
8031 (state::flags): Removed.
8032 (state::subroutine): Likewise.
8033 (state::seen_subrs): Likewise.
8034 (state::NO_STACK): Likewise.
8035 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
8036 (state): Updated all methods.
8037 (state::clean_subrs): Removed.
8038 (state::state): Removed `ret_semantics' flag.
8039 (state::copy): Likewise.
8040 (state::add_subr): Removed.
8041 (state::enter_subroutine): Likewise.
8042 (type::set_return_address): New method.
8043 (handle_jsr_insn): Set return address on the type. Always
8044 invalidate PC after call.
8045 (check_nonrecursive_call): Removed.
8046 (~_Jv_BytecodeVerifier): Updated.
8047 (branch_prepass): Removed special handling of jsr.
8048 (note_branch_target): Likewise.
8049 (get_subroutine): Removed.
8050 (state::merge): Don't merge subroutines and don't handle
8051 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
8052 (state::note_variable): Removed.
8053 (state::is_unmerged_ret_state): Likewise.
8054 (state::print): Updated.
8055 (set_variable): Likewise.
8056 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
8057 and jsr_semantics arguments. Updated for new reverification
8059 (pop_jump): Rewrote.
8060 (construct_primitive_array_type): Updated.
8061 (state::next): Removed.
8062 (INVALID_STATE): New define.
8063 (state::INVALID): Removed.
8064 (state::NO_NEXT): New value.
8065 (state::pc, state::next): New fields.
8066 (state::get_pc): New method.
8067 (next_verify_pc): Removed.
8068 (next_verify_state): New field.
8069 (verify_instructions_0): Always check for falling off end.
8071 (linked_utf8): Removed.
8072 (states): Changed type.
8073 (type::state_mergeable_p): New method.
8074 (state::state_mergeable_p): Likewise.
8075 (handle_ret_insn): Removed most code.
8076 (state::reverify): New method.
8077 (add_new_state): Likewise.
8078 (state::set_pc): Likewise.
8080 2004-01-22 Jeff Sturm <jsturm@one-point.com>
8083 * testsuite/libjava.compile/PR13733.java: New file.
8084 * testsuite/libjava.compile/PR13733.xfail: New file.
8086 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
8087 Michael Koch <konqueror@gmx.de>
8089 * javax/swing/table/DefaultTableCellRenderer.java
8090 (DefaultTableCellRenderer): Added javadoc for the class and for
8091 the constructor, Border instance, create an EmptyBorder.
8092 (UIResource): Removed the comment at the end of the class
8093 (setForeground): New method.
8094 (setBackground): New method.
8095 (updateUI): New method.
8096 (getTableCellRendererComponent): Rewritten with the help of
8097 dvholten and Stephane Meslin-Weber.
8098 (validate): New method.
8099 (repaint): New method.
8100 (firePropertyChange): New method.
8101 (setValue): New method.
8103 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
8105 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8106 (connectJObject): Replace printf calls with g_assert statements.
8107 Move property-notify-event signal connection to ...
8108 (connectSignals): Connect property-notify-event signal. Iterate
8109 through the vbox's children to find layout.
8111 2004-01-22 Graydon Hoare <graydon@redhat.com>
8113 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
8114 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
8115 Predicate static initialization on GtkToolkit.useGraphics2D().
8116 * java/awt/Component.java (processPaintEvent): Consume event.
8117 * javax/swing/AbstractButton.java: Reimplement, document.
8118 * javax/swing/DefaultButtonModel.java: Reimplement, document.
8119 * javax/swing/JComponent.java (paint): Use double buffer.
8120 (listenerList): Enable member.
8121 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
8122 * javax/swing/JToggleButton.java
8123 (JToggleButton): Modify model constructor.
8124 * javax/swing/SwingUtilities.java
8125 (layoutCompoundLabel): Adjust arithmetic.
8126 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
8127 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8128 (getPreferredButtonSize): Include margins in calculation.
8129 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8130 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
8131 Receive up events from subordinate layout component.
8133 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
8135 * java/awt/Component.java (show): Set visible to true before
8138 2004-01-21 Kim Ho <kho@redhat.com>
8140 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
8142 (removeMenuBarPeer): Make package private.
8143 (setMenuBarPeer): Make package private.
8144 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8145 (menubar_resize_cb): Mark attributes unused.
8146 (getMenuBarHeight): ditto.
8148 2004-01-21 David Jee <djee@redhat.com>
8150 * java/awt/Container.java
8151 (LightweightDispatcher.handleEvent): Add an extra check to avoid
8152 dispatching MOUSE_ENTERED event twice. Translate the point for
8153 the mouse event target before dispatching the event.
8155 2004-01-20 Jakub Jelinek <jakub@redhat.com>
8157 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
8158 lib_org_w3c_dom_la_LDFLAGS): New.
8159 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
8160 * Makefile.in: Rebuilt.
8162 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
8164 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
8165 Calculate proper offsets for heavyweight components packed in
8166 lightweight containers.
8168 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8169 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8170 (native create): Add width parameter.
8171 (create): Calculate text entry width based on current font's
8172 metrics and number of columns. Set TextField's font if not
8173 already set. Call native create.
8174 (gtkEntryGetBorderWidth): New native method.
8175 (gtkEntryGetSize): Remove method.
8176 (getMinimumSize): Call minimumSize.
8177 (getPreferredSize): Call preferredSize.
8178 (minimumSize): Calculate minimum size based on backing
8179 GtkEntry's borders, font metrics and number of columns.
8180 (preferredSize): Likewise for preferred size.
8181 (get_border_width): New static function.
8183 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8184 Override GtkWindowPeer's setResizable method to account for menu
8185 bar height when setting the frame's size.
8187 2004-01-19 Matthias Klose <doko@debian.org>
8189 * libtool-version: Increased `current' to 6.
8191 2004-01-19 Kim Ho <kho@redhat.com>
8193 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8194 (connectJObject): Iterate through the vbox's children to find layout.
8196 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8198 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8199 isDispatchThread method to replace wrong test condition.
8201 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8203 * java/awt/EventQueue.java (pop): Prevent racing condition to add
8204 events to the queue out of order by acquiring locks in the proper
8205 order and not by releasing one before acquiring the other.
8207 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8209 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8210 visible so that dialog can be reused.
8212 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8214 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8215 events may be handled by any queue in the stack.
8217 2004-01-19 Kim Ho <kho@redhat.com>
8219 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8220 MenuBarPeer parameter.
8221 (removeMenuBarPeer): New native method.
8222 (setMenuBar): Call remove if menu bar is null. Adjust insets
8224 (postSizeAllocateEvent): New method. Called when menu bar size is
8225 allocated. Adjust insets and redo layout.
8226 (GtkFramePeer): Set menu bar during frame creation.
8227 (postConfigureEvent): Adjust position and size to accomodate
8229 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8230 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8231 (addNotify): Create the peer if it doesn't exist and call addNotify
8232 for the menu's items.
8233 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8234 * java/awt/MenuItem.java (addNotify): Create the peer if it
8236 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8237 (removeMenuBarPeer): New method. Remove menu bar on the current
8239 (setMenuBarPeer): Add the menu bar to the current frame and the
8240 callback for size-allocate events on the menu bar.
8241 (getMenuBarHeight): Add menu bar parameter.
8242 (menubar_resize_cb): New callback method for postSizeAllocate events.
8244 Also: Fix indentation on last ChangeLog entry.
8246 2004-01-16 Kim Ho <kho@redhat.com>
8248 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8249 (gtkWidgetGetDimensions): Remove.
8250 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8251 (gtkWidgetGetDimensions): Remove.
8253 2004-01-16 Tom Tromey <tromey@redhat.com>
8255 * java/awt/Container.java: Typo and indentation fixes.
8257 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8258 * java/lang/natVMClassLoader.cc: ...here. New file.
8259 * Makefile.in: Rebuilt.
8260 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8262 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8264 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8265 Discard GDK_ENTER_NOTIFY related to ungrabs.
8267 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8269 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8270 is called for an intermediate queue.
8272 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8274 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8275 (window_property_changed_cb): Set id_set.
8277 2004-01-16 Kim Ho <kho@redhat.com>
8279 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8280 it is a FileDialog and has dimensions of 0 by 0, then the initial
8281 size is set to size request plus insets.
8282 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8283 (gtkWidgetGetDimensions): Override method.
8284 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8285 (gtkWidgetGetDimensions): Override method. Returns size request plus
8288 2004-01-16 Andrew Haley <aph@redhat.com>
8290 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8291 * sysdep/i386/locks.h: Likewise.
8293 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8295 * java/awt/EventDispatchThread.java (run): Stop running when
8297 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8298 Reset the queue after transferring its contents.
8299 (push): Start a new dispatch thread if none is running.
8301 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8303 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8304 (doPolygon): set fill rule of polygon to
8305 WIND_EVEN_ODD by default.
8307 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8309 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8310 Implemented rendering hints related methods.
8311 (getDefaultHints): New helper method. Returns
8312 default rendering hints.
8313 (walkPath): changed to normalize path if
8314 the KEY_STROKE_CONTROL key is in "normalize" mode.
8315 (draw3DRect): changed coordinates of rectangle by +0.5
8316 if in "normalize" mode.
8318 2004-01-15 Tom Tromey <tromey@redhat.com>
8320 * Makefile.in: Rebuilt.
8321 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8322 (%.lo: %.java) Filter out StackTrace.lo.
8324 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8326 * configure.in: Add in AC_PREREQ(2.13)
8327 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8330 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8331 Tom Tromey <tromey@redhat.com>
8334 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8335 array to superclass.
8336 (init): Changed interface; add URLs here.
8337 (initialize): New static method.
8338 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8339 (_Jv_RunMain): ... not here.
8341 2004-01-14 Michael Koch <konqueror@gmx.de>
8343 * java/text/MessageFormat.java:
8344 Added descriptions to exceptions.
8345 This fixes PR libgcj/2429.
8347 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8349 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8350 (push): Make sure push is performed at the top of the thread stack.
8352 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8354 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8355 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8356 (native create): Add width and height parameters. Set text
8357 view's size request according to new parameters.
8358 (create): Calculate text view size based on current font's
8359 metrics and number of rows and columns. Set TextArea's font if
8360 not already set. Call native create.
8361 (getMinimumSize): Call minimumSize.
8362 (getPreferredSize): Call preferredSize.
8363 (getHScrollbarHeight): New method.
8364 (getVScrollbarWidth): New method.
8365 (minimumSize): Calculate minimum size based on scrollbar
8366 visibility, scrollbar sizes, font metrics and number of rows and
8368 (preferredSize): Likewise for preferred size.
8369 (gtkTextGetSize): Remove method.
8371 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8373 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8374 (initializeInsets): Remove method.
8375 (GtkComponentPeer): Initialize insets field. Remove call to
8377 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8379 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8381 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8382 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8383 (latestInsets): Remove field.
8384 (native create): Add insets parameter. Call
8385 window_get_frame_extents. Set the window's default size and
8386 size request based on its frame extents.
8387 (create): Initialize insets.
8388 (postInsetsChangedEvent): New method.
8389 (postConfigureEvent): Remove parameters top, left, bottom,
8390 right. Remove insets-related logic.
8391 (connectJObject): Handle property-notify-event.
8392 (window_get_frame_extents, request_frame_extents,
8393 property_notify_predicate, window_property_changed_cb): New
8395 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8396 (pre_event_handler): Remove insets-related logic for configure
8398 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8399 Update postConfigureEvent signature.
8401 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8403 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8404 to handle Window "Closing" events.
8406 2004-01-13 David Jee <djee@redhat.com>
8408 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8409 (setBackground): New method. Children with no explicitly-set
8410 background will be repainted with the parent container's new
8413 2004-01-13 David Jee <djee@redhat.com>
8415 * Makefile.am: Add BitwiseXORComposite.java.
8416 * Makefile.in: Regenerated.
8417 * gcj/Makefile.in: Regenerated.
8418 * include/Makefile.in: Regenerated.
8419 * testsuite/Makefile.in: Regenerated.
8421 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8423 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8424 not show modal dialogs twice and so that it allows showing a modal
8425 dialog from another modal dialog.
8427 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8429 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8430 and run secondary dispatch thread to process event queue while this
8433 2004-01-12 Graydon Hoare <graydon@redhat.com>
8435 * gnu/java/awt/gtk/GdkGraphics2D.java
8436 (static): Check GtkToolkit before initializing static state.
8437 (Graphics2D): Don't construct transform with 0.5 unit offset.
8439 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8441 * gnu/java/awt/BitwiseXORComposite.java: Add.
8442 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8443 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8444 (BitwiseXORComposite): Remove inner class.
8446 2004-01-11 Michael Koch <konqueror@gmx.de>
8448 * gnu/java/lang/reflect/TypeSignature.java
8449 (getEncodingOfClass): Documentation fixed.
8450 (getClassForEncoding): Give class loader to Class.forName().
8451 Documentation fixed.
8453 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8455 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8457 2004-01-11 Michael Koch <konqueror@gmx.de>
8459 * javax/swing/undo/StateEditable.java
8460 (RCSID): Removed redundant modifiers.
8462 2004-01-10 Michael Koch <konqueror@gmx.de>
8464 * javax/print/attribute/EnumSyntax.java
8465 (getStringTable): Made protected.
8466 (getEnumValueTable): Likewise.
8467 * javax/print/attribute/standard/JobKOctetsProcessed.java
8468 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8469 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8470 (JobMediaSheetsCompleted): Made class final.
8471 * javax/print/attribute/standard/OutputDeviceAssigned.java
8472 (getName): Fixed typo.
8473 * javax/print/attribute/standard/RequestingUserName.java
8474 (serialVersionUID): Fixed value.
8476 2004-01-10 Michael Koch <konqueror@gmx.de>
8478 * javax/swing/plaf/basic/BasicButtonUI.java,
8479 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8480 javax/swing/plaf/basic/BasicListUI.java,
8481 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8482 javax/swing/plaf/basic/BasicPanelUI.java,
8483 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8484 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8485 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8486 javax/swing/plaf/basic/BasicViewportUI.java:
8487 Fixed import statements.
8489 2004-01-10 Michael Koch <konqueror@gmx.de>
8491 * gnu/java/awt/image/ImageDecoder.java
8492 (produce): Made public.
8493 * gnu/java/awt/peer/GLightweightPeer.java,
8494 gnu/java/awt/peer/gtk/GtkToolkit.java:
8497 2004-01-10 Michael Koch <konqueror@gmx.de>
8499 * javax/swing/JRadioButtonMenuItem.java,
8500 javax/swing/JSeparator.java,
8501 javax/swing/JSplitPane.java,
8502 javax/swing/JTextPane.java,
8503 javax/swing/JToolBar.java,
8504 javax/swing/ListCellRenderer.java,
8505 javax/swing/ListModel.java,
8506 javax/swing/MenuElement.java,
8507 javax/swing/OverlayLayout.java,
8508 javax/swing/ProgressMonitor.java,
8509 javax/swing/ProgressMonitorInputStream.java,
8510 javax/swing/Renderer.java,
8511 javax/swing/RootPaneContainer.java,
8512 javax/swing/Scrollable.java,
8513 javax/swing/SingleSelectionModel.java,
8514 javax/swing/ToolTipManager.java,
8515 javax/swing/ViewportLayout.java,
8516 javax/swing/event/DocumentEvent.java,
8517 javax/swing/event/SwingPropertyChangeSupport.java,
8518 javax/swing/event/TreeSelectionEvent.java,
8519 javax/swing/event/UndoableEditEvent.java,
8520 javax/swing/text/AbstractDocument.java,
8521 javax/swing/text/AttributeSet.java,
8522 javax/swing/text/Caret.java,
8523 javax/swing/text/ComponentView.java,
8524 javax/swing/text/DefaultCaret.java,
8525 javax/swing/text/DefaultEditorKit.java,
8526 javax/swing/text/Document.java,
8527 javax/swing/text/EditorKit.java,
8528 javax/swing/text/GapContent.java,
8529 javax/swing/text/Keymap.java,
8530 javax/swing/text/MutableAttributeSet.java,
8531 javax/swing/text/PlainEditorKit.java,
8532 javax/swing/text/Segment.java,
8533 javax/swing/text/Style.java,
8534 javax/swing/text/StyledDocument.java,
8535 javax/swing/text/StyledEditorKit.java,
8536 javax/swing/text/TextAction.java,
8537 javax/swing/text/View.java: Fixed import statements.
8539 2004-01-08 Graydon Hoare <graydon@redhat.com>
8541 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8542 djee@redhat.com's recent inverse ordering of Container elements.
8544 2004-01-09 Michael Koch <konqueror@gmx.de>
8546 * gnu/java/lang/ArrayHelper.java
8547 (equalsArray): Removed.
8549 2004-01-09 Andrew Haley <aph@redhat.com>
8551 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8552 a Utf8Const field before looking at its class.
8554 2004-01-09 Michael Koch <konqueror@gmx.de>
8556 * javax/print/attribute/standard/DocumentName.java,
8557 javax/print/attribute/standard/JobHoldUntil.java,
8558 javax/print/attribute/standard/JobMessageFromOperator.java,
8559 javax/print/attribute/standard/JobName.java,
8560 javax/print/attribute/standard/JobOriginatingUserName.java,
8561 javax/print/attribute/standard/OutputDeviceAssigned.java,
8562 javax/print/attribute/standard/PrinterInfo.java,
8563 javax/print/attribute/standard/PrinterLocation.java,
8564 javax/print/attribute/standard/PrinterMakeAndModel.java,
8565 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8566 javax/print/attribute/standard/PrinterName.java,
8567 javax/print/attribute/standard/RequestingUserName.java: New files.
8568 * Makefile.am (javax_source_files): Added new files.
8569 * Makefile.in: Regenerated.
8571 2004-01-09 Michael Koch <konqueror@gmx.de>
8573 * javax/swing/AbstractAction.java,
8574 javax/swing/AbstractSet.java,
8575 javax/swing/Action.java,
8576 javax/swing/ActionMap.java,
8577 javax/swing/BoundedRangeModel.java,
8578 javax/swing/ButtonModel.java,
8579 javax/swing/CellEditor.java,
8580 javax/swing/CellRendererPane.java,
8581 javax/swing/ComboBoxEditor.java,
8582 javax/swing/DebugGraphics.java,
8583 javax/swing/DefaultCellEditor.java,
8584 javax/swing/DefaultCellRenderer.java,
8585 javax/swing/DefaultComboBoxModel.java,
8586 javax/swing/DefaultDesktopManager.java,
8587 javax/swing/DefaultFocusManager.java,
8588 javax/swing/DefaultListCellRenderer.java,
8589 javax/swing/Icon.java,
8590 javax/swing/JButton.java,
8591 javax/swing/JCheckBoxMenuItem.java,
8592 javax/swing/JDesktopPane.java,
8593 javax/swing/JEditorPane.java,
8594 javax/swing/JMenu.java,
8595 javax/swing/JPanel.java,
8596 javax/swing/JPasswordField.java,
8597 javax/swing/JPopupMenu.java,
8598 javax/swing/JProgressBar.java: Reworked imports.
8600 2004-01-09 Michael Koch <konqueror@gmx.de>
8602 * java/awt/geom/PathIterator.java
8603 (WIND_EVEN_ODD): Removed redundant modifiers.
8604 (WIND_NON_ZERO): Likewise.
8605 (SEG_MOVETO): Likewise.
8606 (SEG_LINETO): Likewise.
8607 (SEG_QUADTO): Likewise.
8608 (SEG_CUBICTO): Likewise.
8609 (SEG_CLOSE): Likewise.
8610 * java/awt/image/SinglePixelPackedSampleModel.java:
8611 Removed redundant semicolon.
8612 * java/io/ObjectInputStream.java
8613 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8614 * java/util/logging/Filter.java
8615 (isLoggable): Removed redundant modifier.
8616 * java/util/logging/LogManager.java:
8617 Removed redundant semicolon.
8618 * java/util/logging/XMLFormatter.java
8619 (format): Removed unused variable "key".
8621 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8623 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8624 New name for the former setFile native method.
8625 (setFile): New method.
8626 (setDirectory): Implemented.
8627 (connectSignals): New native method.
8628 (setFilenameFilter): Improve comment.
8629 (getGraphics): Comment.
8630 (gtkHideFileDialog): New method.
8631 (gtkDisposeFileDialog): New method.
8632 (gtkSetFilename): New method.
8633 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8634 for FileDialog for now.
8636 (dispose): New method.
8637 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8638 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8639 deprecated creation functions. Make dialog modal. Add it to the
8641 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8643 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8645 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8647 (window_closed): New function.
8648 (ok_clicked): New function.
8649 (cancel_clicked): New function.
8651 2004-01-08 Michael Koch <konqueror@gmx.de>
8653 * javax/swing/JLayeredPane.java: Revert changes to standard
8654 boilerplate, reworked imports.
8656 2004-01-07 Tom Tromey <tromey@redhat.com>
8659 * verify.cc (state::merge): Copy changed locals out of subroutine
8661 (state::FLAG_CHANGED): New const.
8662 (state::FLAG_UNUSED): Likewise.
8663 (state::local_changed): Removed. Updated all users.
8664 (state::flags): New field.
8665 (state::merge): Added jsr_semantics argument, more logic.
8666 (push_jump_merge): Added jsr_semantics argument.
8667 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8668 merging through the jsr instruction.
8670 2004-01-07 Tom Tromey <tromey@redhat.com>
8672 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8675 2004-01-07 Graydon Hoare <graydon@redhat.com>
8677 * java/awt/Container.java (LightweightDispatcher): Implement.
8678 (visitChild): Reuse graphics object.
8679 (dispatchEventImpl): Optionally dispatch to lightweight.
8680 (addNotifyContainerChildren): Build LightweightDispatcher.
8682 2004-01-07 David Jee <djee@redhat.com>
8684 * java/awt/Container.java
8685 (update): Clear only the clipped region, instead of clearing the
8687 (visitChildren): Visit children in descending order.
8689 2004-01-07 Michael Koch <konqueror@gmx.de>
8691 * java/lang/reflect/Array.java: Merged documentation with classpath.
8693 2004-01-07 Michael Koch <konqueror@gmx.de>
8695 * java/text/CollationElementIterator.java
8696 (textIndex): Renamed from index.
8697 * java/text/CollationKey.java
8698 (collator): New member.
8699 (CollationKey): New argument for parent collator.
8700 (equals): Check for same collator, source string and key array.
8701 * java/text/RuleBasedCollator.java:
8703 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8705 (getCollationElementIterator): Rewritten.
8706 (getCollationKey): Added new argument to CollationKey constructor.
8708 2004-01-07 Michael Koch <konqueror@gmx.de>
8710 * gnu/java/nio/DatagramChannelImpl.java
8711 (blocking): Removed.
8712 (DatagramChannelImpl): Call configureBlocking().
8713 (implConfigureBlocking): Dont initialize blocking.
8714 * gnu/java/nio/ServerSocketChannelImpl.java
8715 (blocking): Removed.
8716 (ServerSocketChannelImpl): Call configureBlocking().
8717 (implConfigureBlocking): Dont initialize blocking.
8718 * gnu/java/nio/SocketChannelImpl.java
8719 (blocking): Removed.
8720 (SocketChannelImpl): Call configureBlocking().
8721 (implConfigureBlocking): Dont initialize blocking.
8722 (connect): Use isBlocking().
8723 * java/nio/channels/spi/AbstractSelectableChannel.java
8724 (configureBlocking): Use blockingLock() instead of LOCK.
8725 Set blocking after successfully called implConfigureBlocking().
8726 (register): Use blockingLock() instead of LOCK.
8728 2004-01-07 Michael Koch <konqueror@gmx.de>
8730 * java/net/ServerSocket.java (isBound): Fixed documentation.
8732 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8734 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8735 (changeEvent): Create event object on demand.
8736 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8737 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8738 fireStateChanged): Re-written.
8739 * javax/swing/event/EventListenerList.java: Reformatted, document
8741 (toString): Implemented.
8742 (getListeners): Re-written.
8743 (remove): Re-written.
8745 (NO_LISTENERS): New singleton field.
8746 (listenerList): Declare as transient; document.
8747 (serialVersionUID): Document.
8748 (getListenerCount(Class)): More efficient implementation,
8749 also accepts null argument. Improve Javadoc.
8750 (getListenerCount()): Remove unnecessary cast; docfix.
8751 * javax/swing/undo/UndoableEditSupport.java:
8752 Re-format, document.
8753 (UndoableEditSupport): Set realSource field. Improve documentation.
8754 (_postEdit): Iterate over cloned listener vector.
8755 (toString): Don't emit realSource.
8756 (beginUpdate, endUpdate): Support nested updates.
8757 (postEdit): Use compound edit if present.
8759 2004-01-06 Graydon Hoare <graydon@redhat.com>
8761 * java/awt/Container.java (swapComponents): Add forgotten
8762 function, required for JLayeredPane change.
8764 2004-01-06 Michael Koch <konqueror@gmx.de>
8766 * java/text/CollationElementIterator.java: Reformated.
8767 (CollationElementIterator): Changed order of arguments.
8768 * java/text/RuleBasedCollator.java
8769 (RuleBasedCollator): Merged class documentation.
8770 (CollationElement): Added documentation.
8771 (compare): Reformated, renamed arguments.
8773 (getCollationElementIterator): Likewise.
8774 (getCollationKey): Likewise.
8776 2004-01-06 Graydon Hoare <graydon@redhat.com>
8778 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8780 2004-01-06 Michael Koch <konqueror@gmx.de>
8782 * gnu/java/net/protocol/file/Connection.java:
8783 Reformated copyright.
8786 (gotHeaders): Removed.
8787 (getHeaderField): Removed.
8788 (getHeaderField): Removed.
8789 (getHeaderFieldKey): Removed.
8791 (getField): Removed.
8792 (getHeaders): Removed.
8794 2004-01-06 Michael Koch <konqueror@gmx.de>
8796 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8797 javax/print/attribute/standard/DateTimeAtCreation.java,
8798 javax/print/attribute/standard/DateTimeAtProcessing.java,
8799 javax/print/attribute/standard/JobImpressionsCompleted.java,
8800 javax/print/attribute/standard/JobKOctets.java,
8801 javax/print/attribute/standard/JobKOctetsProcessed.java,
8802 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8803 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8804 * Makefile.am (javax_source_files): Added new files.
8805 * Makefile.in: Regenerated.
8807 2004-01-06 Michael Koch <konqueror@gmx.de>
8809 * java/net/URLConnection.java
8810 (contentHandler): Removed.
8812 (getHeaderFields): Return an empty map instead of null.
8813 (getContent): Connect if needed, renamed "cType" to "type" and
8814 "contentHandler" to "ch" and made it a local variable.
8815 (getPermission): Don't use package in class name.
8816 (setDefaultRequestProperty): Fixed typo in documentation.
8817 (initializeDateFormats): Made locale a local variable.
8819 2004-01-06 Michael Koch <konqueror@gmx.de>
8821 * java/lang/Package.java
8822 (getPackage): Get the current class loader directly.
8823 * java/lang/SecurityManager.java
8824 (currentLoadedClass): Dont iterate over class contexts.
8825 (classLoaderDepth): Don't check class loaders if everything is allowed.
8827 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8829 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8830 (pre_event_handler): Set all insets to 0 when a Configure event
8831 is received for a GtkPlug.
8832 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8833 Make handle long, not int.
8834 (EmbeddedWindow()): New constructor.
8835 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8837 (setHandle): New method.
8838 (getHandle): Return long, not int.
8839 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8841 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8842 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8843 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8844 argument to GdkNativeWindow.
8845 (construct): New method.
8846 (embed): New method.
8848 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8849 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8850 (create(int, int)): New method.
8851 (create): Call new create method.
8852 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8854 (childResized): Remove native implementation. Implement in
8856 (getHScrollbarHeight, getVScrollbarWidth): Call
8857 gtk_widget_size_request to get scrollbar dimensions.
8858 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8859 call getVScrollbarWidth and getHScrollbarHeight when vertical
8860 and horizontal scrollbars respectively are needed.
8861 (doLayout): Enlarge child if it is smaller than the viewport.
8863 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8865 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8866 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8867 argument as per spec.
8869 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8871 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8873 (remove): Ditto. Also, Check for valid argument.
8874 (removeAll): Use peer interface method.
8875 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8876 native add function.
8877 (nativeRemove): New name for native remove function.
8878 (getHistory): New native function.
8879 (constructor): Generate ItemEvent.
8880 (add): Ditto, if selection is changed.
8881 (remove): Ditto, ditto.
8882 (removeAll): Add implementation.
8883 (handleEvent): Remove. Dead code.
8884 (choicePostItemEvent): Add comment.
8885 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8886 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8887 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8888 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8889 comments and fix condition to change selection.
8890 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8891 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8892 remove all capability.
8893 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8894 (item_activate): Add cast to remove compiler warning.
8896 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8898 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8899 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8900 (getPreferredSize): Call preferredSize.
8901 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8902 (getMinimumSize): Call minimumSize.
8903 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8904 (gtkWidgetGetDimensions): Return the peer widget's current size
8906 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8907 natural size request.
8909 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8911 Thanks to Brian Gough <bjg@network-theory.com>
8912 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8913 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8915 2004-01-04 Matthias Klose <doko@debian.org>
8917 * aclocal.m4: Rebuilt using "aclocal -I .".
8918 * configure: Rebuilt.
8920 2004-01-03 Per Bothner <per@bothner.com>
8922 * java/util/Date.java (parse): Fix a number of problems.
8923 (skipParens): Remove no-longer-needed method.