1 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
4 * java/net/URI.java (string): New field. Make all other fields
6 (readObject): Implemented.
7 (writeObject): Implemented.
10 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
13 * java/util/logging/Handler.java (isLoggable): Accept record if its
14 log level equals the threshold level. From Robin Green.
16 2004-08-18 David Daney <ddaney@avtrex.com>
18 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
21 2004-08-17 Michael Koch <konqueror@gmx.de>
23 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
24 * Makefile.in: Regenerated.
26 2004-08-16 Tom Tromey <tromey@redhat.com>
29 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
31 2004-08-16 Michael Koch <konqueror@gmx.de>
34 (math_c_files): Renamed from c_files.
35 (math_c_source_files): Renamed from c_source_files.
39 testsuite/Makefile.in: Regenerated.
41 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
43 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
44 to avoid autoconf warning.
47 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
49 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
50 localhostAddress to loopbackAddress.
51 * java/net/natInetAddressWin32.cc (lookup): Likewise.
53 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
55 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
56 boehm-gc's include dirs.
58 * include/boehm-gc.h: Include gc_config.h.
60 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
62 * java/net/InetAddress.java (loopbackAddress): Renamed from
64 (getByName): Return loopback address for null hostname, without
65 security check. Use lookup(), not getAllByName.
66 (getAllByName): Return loopback address for null hostname, without
68 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
71 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
74 Reported by Robin Green.
75 * defineclass.cc (handleField): Don't throw exception on unrecognised
76 modifier. Add FIXME comments for spec compliance.
77 (handleMethod): Likewise.
79 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
82 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
83 (Almost everywhere): add LOG calls, fix, add comments.
84 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
85 Add explicit check for LOCKED bit in slow case (PR 16662).
86 (_Jv_MonitorExit): Add casts in debug-only code.
87 Always release LOCKED bit before throwing exception.
88 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
89 isn't. Handle easy cases without lock acquisition.
90 (Object::wait): Use NotifyAll for lock inflation.
92 2004-08-12 David Daney <ddaney@avtrex.com>
94 * testsuite/libjava.lang/Process_1.java: New test.
95 * testsuite/libjava.lang/Process_2.java: New test.
96 * testsuite/libjava.lang/Process_3.java: New test.
97 * testsuite/libjava.lang/Process_4.java: New test.
98 * testsuite/libjava.lang/Process_5.java: New test.
99 * testsuite/libjava.lang/Process_6.java: New test.
100 * testsuite/libjava.lang/Process_1.out: Expected result.
101 * testsuite/libjava.lang/Process_2.out: Expected result.
102 * testsuite/libjava.lang/Process_3.out: Expected result.
103 * testsuite/libjava.lang/Process_4.out: Expected result.
104 * testsuite/libjava.lang/Process_5.out: Expected result.
105 * testsuite/libjava.lang/Process_6.out: Expected result.
107 2004-08-12 David Daney <ddaney@avtrex.com>
110 * java/lang/PosixProcess.java: Rewrote.
111 * java/lang/natPosixProcess.cc: Rewrote.
112 * java/lang/Runtime.java (execInternal): Declare throws IOException.
113 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
114 * posix-threads.cc (block_sigchld) New function.
115 (_Jv_ThreadRegister) Use it.
116 (_Jv_ThreadStart) Use it.
117 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
118 * Makefile.am: ... to specify extra native headers.
119 * configure: Regenerated.
120 * include/config.h: Regenerated.
121 * Makefile.in: Regenerated.
122 * gcj/Makefile.in: Regenerated.
123 * include/Makefile.in: Regenerated.
124 * testsuite/Makefile.in: Regenerated.
126 2004-08-12 Diego Novillo <dnovillo@redhat.com>
128 PR tree-optimization/16867
129 * testsuite/libjava.lang/PR16867.java: New test.
131 2004-08-09 Per Bothner <per@bothner.com>
133 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
134 with private fields and access methods.
135 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
136 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
137 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
138 ( _Jv_makeUtf8Const): Rewrite using new constructors.
139 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
140 * defineclass.cc: Use new _Utf8Const access/convenience methods.
142 * resolve.cc: Likewise.
143 * gcj/field.h: Likewise.
144 * include/jvm.h: Likewise.
145 * java/lang/Class.h: Likewise.
146 * java/lang/natClass.cc: Likwise.
147 * java/lang/natClassLoader.cc: Likewise
148 * java/lang/reflect/natMethod.cc: Likewise
149 * verify.cc: Likewise.
150 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
151 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
153 2004-08-10 Andrew Haley <aph@redhat.com>
155 * testsuite/libjava.lang/err14.java: New file.
156 * testsuite/libjava.lang/err14.out: New file.
158 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
160 * Makefile.am: Fix missing rename from x_nat_headers to
162 * Makefile.in: Regenerated.
164 2004-08-04 Andrew Haley <aph@redhat.com>
166 * java/security/BasicPermission.java: Don't check wildcards.
168 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
169 Michael Koch <konqueror@gmx.de>
171 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
172 * configure.in: Replaced all usages of AC_LINK_FILES by
175 configure: Regenerated.
177 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
178 Michael Koch <konqueror@gmx.de>
180 * acconfig.h: Removed.
181 * Makefile.am: Rename variables for xlib peer to include xlib and
182 gtk_c_headers to gtk_jni_headers.
183 * Makefile.in: Regenerated.
185 2004-08-04 Andrew Haley <aph@redhat.com>
187 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
190 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
192 * configure.in: Eliminate uses of changequote (mostly by quoting []).
193 Replace most top level 'dnl' comments with '#' comments, conforming
194 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
196 * configure: Rebuilt.
198 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
200 * acinclude.m4: Include no-executables.m4.
201 * aclocal.m4: Rebuild.
202 * configure.in: Convert to the autoconf 2.59 version of
203 of the no-executables hack, and also of the nonstandard CXX
204 hack and the multilibbed CC and CXX hack. Change prerequisite
206 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
207 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
208 testsuite/Makefile.in: Regenerate.
210 2004-08-03 Tom Tromey <tromey@redhat.com>
212 * jni.cc: Reindented.
214 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
216 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
218 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
220 * testsuite/libjava.compile/PR16701.java: New test.
222 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
224 * java/util/Collection.java, java/util/List.java,
225 java/util/Map.java, java/util/Set.java,
226 java/util/SortedMap.java, java/util/SortedSet.java:
227 Added additional exceptions to documentation.
229 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
232 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
233 * configure. Regenerate.
234 * include/win32.h: Explicitly include winsock2.h
235 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
238 2004-07-30 Michael Koch <konqueror@gmx.de>
240 * java/util/zip/GZIPInputStream.java
241 (GZIPInputStream): Increase buffer size to 4k.
242 * java/util/zip/GZIPOutputStream.java
243 (GZIPOutputStream): Likewise.
244 * java/util/zip/Inflater.java
245 (setInput): Merged formating with GNU classpath.
246 * java/util/zip/InflaterInputStream.java
247 (InflaterInputStream): Increase buffer size to 4k.
248 (fill): Throw exception if stream ends early.
249 (read): Merged endless-loop with GNU classpath.
250 (skip): Increase buffer size to 2k.
252 2004-07-30 Michael Koch <konqueror@gmx.de>
254 * gnu/java/awt/EmbeddedWindow.java
255 (addNotify): Use AccessController to allow execution of privileged
258 2004-07-29 Michael Koch <konqueror@gmx.de>
260 * gnu/java/lang/MainThread.java:
261 Explicitely import used classes.
262 (args): Make it type String[].
264 2004-07-29 Dalibor Topic <robilad@kaffe.org>
266 * gnu/java/awt/ComponentDataBlitOp.java,
267 gnu/java/beans/ExplicitBeanInfo.java,
268 gnu/java/beans/IntrospectionIncubator.java,
269 gnu/java/beans/editors/ColorEditor.java,
270 gnu/java/beans/editors/FontEditor.java,
271 gnu/java/beans/editors/NativeBooleanEditor.java,
272 gnu/java/beans/editors/NativeByteEditor.java,
273 gnu/java/beans/editors/NativeDoubleEditor.java,
274 gnu/java/beans/editors/NativeFloatEditor.java,
275 gnu/java/beans/editors/NativeIntEditor.java,
276 gnu/java/beans/editors/NativeLongEditor.java,
277 gnu/java/beans/editors/NativeShortEditor.java,
278 gnu/java/beans/editors/StringEditor.java,
279 gnu/java/io/ClassLoaderObjectInputStream.java,
280 gnu/java/io/decode/Decoder.java,
281 gnu/java/io/encode/Encoder.java,
282 gnu/java/lang/ClassHelper.java,
283 gnu/java/locale/Calendar.java,
284 gnu/java/locale/Calendar_de.java,
285 gnu/java/locale/Calendar_en.java,
286 gnu/java/locale/Calendar_nl.java,
287 gnu/java/locale/LocaleInformation_de.java,
288 gnu/java/locale/LocaleInformation_en.java,
289 gnu/java/locale/LocaleInformation_nl.java:
292 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
294 * README: Remove obsolete info. Update bug URL.
296 * NEWS: Updated with news up to GCC 3.4 release.
298 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
300 * gnu/java/security/action/GetPropertyAction.java (setParameters):
301 Renamed from 'setName'. New 2-argument form with default value.
302 (run): Pass default 'value' parameter to System.getProperty().
303 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
305 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
308 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
310 * configure.in: Check for minimum GTK version 2.4 requirement.
311 * configure: Rebuilt.
313 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
315 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
316 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
318 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
320 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
321 address. Reduce sleep times. Synchronize with target threads before
322 attempting to interrupt them. Don't try to calibrate yeild count,
323 instead, always loop for a fixed time.
324 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
325 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
326 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
327 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
328 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
329 * testsuite/libjava.lang/pr179.java: Likewise.
330 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
331 time. Remove upper bounds check on sleep time.
333 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
335 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
336 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
338 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
340 * java/io/File.java (toURI): Throw RuntimeException, not
342 * java/lang/Runtime.java (exit): Qualify static sleep() call with
343 class name, not instance.
345 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
347 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
348 and gnu/java/security/action/SetAccessibleAction.java.
349 * Makefile.in: Rebuilt.
351 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
353 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
354 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
356 (DECLARE_PRIM_TYPE): Don't declare array vtables.
357 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
358 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
360 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
362 * Makefile.am: Replace jar, rmic and rmiregistry references with
363 gjar, grmic and grmiregistry.
364 * configure.in: Likewise.
365 * Makefile.in: Regenerate.
366 * configure: Likewise.
367 * gcj/Makefile.in: Likewise.
368 * include/Makefile.in: Likewise.
369 * testsuite/Makefile.in: Likewise.
371 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
373 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
374 for privileged getProperty calls.
375 * java/io/ObjectOutputStream.java (getField): No longer static. Use
376 SetAccessibleAction instead of anonymous class for doPrivileged call.
377 (getMethod): Likewise.
378 (setAccessible): New field. PrivilegedAction object to use when
379 calling setAccessible.
380 * java/io/ObjectStreamClass.java (calculateOffsets): Use
381 SetAccessibleAction instead of anonymous class for diPrivileged call.
382 (setFields): Likewise.
383 (getClassUID): Likewise.
384 (findMethod): Likewise.
385 * gnu/java/security/action/GetPropertyAction.java: New class.
386 * gnu/java/security/action/SetAccessibleAction.java: New class.
388 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
390 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
392 * testsuite/libjava.lang/Serialization.java: New test.
393 * testsuite/libjava.lang/Serialization.out: New.
395 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
397 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
398 missed in last commit.
400 2004-07-23 Mark Wielaard <mark@klomp.org>
402 * java/lang/System.java (static): Set http.agent system property when
404 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
405 from system property inside AccessController.doPrivileged() call.
406 (proxyPort): Made package private.
407 (proxyInUse): Likewise.
408 (proxyHost): Likewise.
409 (userAgent): Likewise.
411 2004-07-23 Mark Wielaard <mark@klomp.org>
413 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
416 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
418 * Makefile.am (ordinary_java_source_files): Add
419 DefaultContentHandlerFactory.java.
420 * Makefile.in: Rebuilt.
421 * java/net/URLConnection.java (defaultFactory): New field.
423 (getContentHandler): Renamed from 'setContentHandler'. Try
424 defaultFactory after user-set factory, if any. Search for content
425 handler implementations in gnu.java.net.content, not gnu.gcj.content.
426 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
428 (getLastModified): Implemented.
429 (getPermission): Create file permission here, instead of in
431 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
433 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
435 (getLastModified): Implemented.
436 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
437 Default implementation.
438 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
439 Implement using GdkPixbufDecoder.
441 2004-07-21 Michael Koch <konqueror@gmx.de>
443 * javax/swing/JTextArea.java
444 (setLineWrap): Fire property change event after new value is set.
445 (setTabSize): Likewise.
447 2004-07-21 Michael Koch <konqueror@gmx.de>
449 * javax/swing/JTable.java
450 (autoCreateColumnsFromModel): New field.
451 (autoResizeMode): Likewise.
452 (cellEditor): Likewise.
453 (cellSelectionEnabled): Likewise.
454 (columnModel): Likewise.
455 (dataModel): Likewise.
456 (defaultEditorsByColumnClass): Likewise.
457 (defaultRenderersByColumnClass): Likewise.
458 (editingColumn): Likewise.
459 (editingRow): Likewise.
460 (gridColor): Likewise.
461 (preferredViewportSize): Likewise.
462 (rowHeight): Likewise.
463 (rowMargin): Likewise.
464 (rowSelectionAllowed): Likewise.
465 (selectionBackground): Likewise.
466 (selectionForeground): Likewise.
467 (selectionModel): Likewise.
468 (showHorizontalLines): Likewise.
469 (showVerticalLines): Likewise.
470 (tableHeader): Likewise.
471 (JTable): Implemented.
472 (getColumnModel): Likewise.
473 (getSelectedRow): Likewise.
474 (getSelectionModel): Likewise.
475 (setModel): Likewise.
476 (setSelectionModel): Likewise.
477 (createScrollPaneForTable): New method.
478 (createDefaultDataModel): Likewise.
479 (createDefaultListSelectionModel): Likewise.
480 (getModel): Likewise.
481 (getTableHeader): Likewise.
482 (setTableHeader): Likewise.
483 (getColumnSelectionAllowed): Likewise.
484 (setColumnSelectionAllowed): Likewise.
485 (getRowSelectionAllowed): Likewise.
486 (setRowSelectionAllowed): Likewise.
487 (getAutoResizeMode): Likewise.
488 (setAutoResizeMode): Likewise.
489 (getColumnCount): Likewise.
490 (getRowCount): Likewise.
491 (getCellRenderer): Likewise.
492 * javax/swing/JTree.java
493 (cellRenderer): New field.
494 (editable): Likewise.
495 (rootVisible): Likewise.
496 (showsRootHandles): Likewise.
497 (getModel): New method.
498 (setModel): Likewise.
499 (isEditable): Likewise.
500 (setEditable): Likewise.
501 (isRootVisbile): Likewise.
502 (setRootVisible): Likewise.
503 (getShowsRootHandles): Likewise.
504 (setShowRootHandles): Likewise.
505 (getCellRenderer): Likewise.
506 (setCellRenderer): Likewise.
508 2004-07-21 Michael Koch <konqueror@gmx.de>
510 * javax/swing/JFormattedTextField.java
511 (setDocument): Implemented.
512 * javax/swing/JRootPane.java:
514 * javax/swing/JTable.java
515 (getDefaultRenderer): New method.
516 * javax/swing/JTextField.java
518 (getPreferredSize): Likewise.
519 * javax/swing/JToggleButton.java
520 (getAccessibleContext): Fix javadoc.
521 * javax/swing/JTree.java:
523 * javax/swing/JViewport.java:
526 2004-07-21 David Jee <djee@redhat.com>
528 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
529 Collect all native method declaration at the top.
530 (create): Set the filename filter if necessary.
531 (setDirectory): Call nativeSetDirectory().
532 (setFilenameFilter): Implement.
533 (filenameFilterCallback): New method.
534 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
535 (create): Configure dialog to show hidden files.
536 (filenameFilterCallback): New function.
537 (nativeSetFilenameFilter): New function.
538 (nativeSetDirectory): New function.
540 2004-07-21 Kim Ho <kho@redhat.com>
542 * javax/swing/plaf/basic/BasicSliderUI.java:
544 (paintTrack): Fill the track before painting
547 2004-07-21 Graydon Hoare <graydon@redhat.com>
549 patch from Roman Kennke <roman@ontographics.com>
550 * javax/swing/Spring.java: New file.
551 * javax/swing/SpringLayout.java: New file.
552 * Makefile.am: Add new files.
553 * Makefile.in: Regenerate.
555 2004-07-21 Graydon Hoare <graydon@redhat.com>
557 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
558 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
559 * javax/swing/ScrollPaneLayout.java: Likewise.
561 2004-07-21 Kim Ho <kho@redhat.com>
563 * javax/swing/DefaultDesktopManager.java:
564 (findMinimum): Removed.
565 (resizeFrame): Trust the UI to pass valid
567 * javax/swing/JOptionPane.java:
568 Implemented showInternalXXXDialog methods.
569 (startModal): New method.
570 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
571 (BorderListener::mouseDragged): Verify that the new
572 bounds are valid before passing them to the DesktopManager.
573 (preferredLayoutSize): Delegate
575 (minimumLayoutSize): Ditto.
576 (getSize): New method.
577 (GlassPaneDispatcher): Reimplemented by copying
578 a stripped down LightweightDispatcher from Container.
579 (getMinimumSize): Call minimumLayoutSize.
580 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
582 (mousePressed): Add ability to properly close
584 * javax/swing/plaf/basic/BasicToolBarUI.java:
585 (DragWindow): Set owner for DragWindow.
587 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
589 * java/awt/image/ShortLookupTable.java: New file.
590 * java/awt/image/ByteLookupTable.java: New file.
591 * Makefile.am: Added new files.
592 * Makefile.in: Regenerated.
594 2004-07-21 David Jee <djee@redhat.com>
596 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
597 (create(GtkContainerPeer)): New native method.
598 (create()): Call native create(), passing in the parent frame
599 as the paramter. Natively set the current file and directory.
600 (setFile): Construct an absolute filename before passing it to
602 (nativeGetDirectory): New method.
603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
604 (window_closed): Removed.
605 (ok_clicked): Likewise.
606 (cancel_clicked): Likewise.
607 (handle_response): New method.
608 (create): Use GtkFileChooserDialog.
609 (connectSignals): Connect to handle_response.
610 (nativeGetDirectory): New method.
611 (nativeSetFile): Use GtkFileChooserDialog.
613 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
615 * java/awt/image/LookupTable.java: New file.
616 * Makefile.am: Added new file.
617 * Makefile.in: Regenerated.
619 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
621 * java/awt/image/Kernel.java: New file.
622 * Makefile.am: Added new file.
623 * Makefile.in: Regenerated.
625 2004-07-21 Olga Rodimina <rodimina@redhat.com>
627 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
628 * javax/swing/JMenu.java: Likewise.
629 * javax/swing/JMenuBar.java: Likewise.
630 (MARGIN_CHANGED_PROPERTY): New property.
631 (setMargin): Implemented.
632 * javax/swing/JMenuItem.java: Fixed javadocs.
633 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
634 (LABEL_CHANGED_PROPERTY): New property.
635 (add): changed to use createActionComponent.
636 (createActionComponent): Implemented.
637 (setLabel): Fire PropertyChangeEvent if label property
639 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
640 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
641 (ContainerHandler): Repaint if margin property has changed.
642 * javax/swing/plaf/basic/BasicMenuItemUI.java:
643 (installUI): Call installComponents().
644 (uninstallUI): Call uinstallComponents().
645 * javax/swing/plaf/basic/BasicMenuUI.java:
647 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
650 2004-07-21 Kim Ho <kho@redhat.com>
652 * javax/swing/plaf/basic/BasicToolBarUI.java:
653 (DragWindow): Use the right constructor.
655 2004-07-21 Kim Ho <kho@redhat.com>
657 * javax/swing/JToolBar.java:
658 (layoutContainer): Use getComponents.
659 * javax/swing/plaf/basic/BasicToolBarUI.java:
660 (DragWindow): Don't use SwingUtilities'
662 (ToolBarDialog): ditto.
664 2004-07-21 Kim Ho <kho@redhat.com>
666 * javax/swing/JRootPane.java:
668 (layoutContainer): Set the glasspane's size to
669 be the same as the content pane.
670 (createGlassPane): Set opaque property to false.
672 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
674 * java/awt/Component.java (requestFocus()): Don't handle Panels
676 (requestFocus(boolean)): Likewise.
677 (requestFocusInWindow(boolean)): Likewise.
678 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
679 Set GTK_CAN_FOCUS flag.
681 2004-07-21 Kim Ho <kho@redhat.com>
683 * Makefile.am: Added new file.
684 * Makefile.in: Regenerated.
685 * gcj/Makefile.in: Regenerated.
686 * include/Makefile.in: Regenerated.
687 * javax/swing/AbstractButton.java:
688 Add rollOverEnabled property.
689 (setRolloverEnabled): Use new property.
690 (isRolloverEnabled): Use new property.
691 * javax/swing/JTabbedPane.java:
692 (setComponent): Remove useless JTabbedPane.this.
693 * javax/swing/JToolBar.java: Finish implementation.
694 * javax/swing/plaf/basic/BasicArrowButton.java:
695 (paint): Moved border painting to a border.
696 * javax/swing/plaf/basic/BasicLookAndFeel.java:
697 Change JToolBar look and feel defaults.
698 * javax/swing/plaf/basic/BasicOptionPaneUI.java
699 (actionPerformed): Return Integer index instead of name.
700 (addButtonComponents): Check to see if component is
702 (createMessageArea): Don't use components that are not
704 (getIconForType): Use temporary icons.
705 * javax/swing/plaf/basic/BasicSliderUI.java:
706 (mousePressed): Do not return if it's on thumb.
707 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
708 (paintMinorTickForVertSlider): ditto.
709 (paintMajorTickForHorizSlider): ditto.
710 (paintMajorTickForVertSlider): ditto.
711 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
712 Add a border around the SplitPaneDivider.
713 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
715 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
716 New file. Implemented.
717 * javax/swing/plaf/basic/BasicToolBarUI.java:
719 * testsuite/Makefile.in: Regenerated.
721 2004-07-21 Graydon Hoare <graydon@redhat.com>
723 * javax/swing/Timer.java (run): Queue events each time cycle.
725 2004-07-21 David Jee <djee@redhat.com>
727 * gnu/java/awt/peer/gtk/GtkImagePainter.java
728 (imageComplete): Call image.imageComplete().
729 * java/awt/image/MemoryImageSource.java:
730 Reimplement consumers as a Vector instead of a Hashtable. This is
731 because enumeration on a Hashtable is not thread-safe.
732 (addConsumer): Adapt to Vector consumers.
733 (isConsumer): Adapt to Vector consumers.
734 (removeConsumer): Adapt to Vector consumers.
735 (startProduction): Adapt to Vector consumers. Call imageComplete()
736 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
737 (newPixels): Adapt to Vector consumers.
738 (sendPicture): Set the color model of the image consumer.
739 (newPixels(IIII)): Adapt to Vector consumers.
740 (newPixels(IIIIB)): Adapt to Vector consumers.
742 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
744 * java/awt/Component.java (deliverEvent): Implement.
745 (postEvent): Implement.
746 (handleEvent): Implement.
747 (translateEvent): New method.
748 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
749 * java/awt/Container.java (deliverEvent): Implement.
750 * java/awt/Event.java (paramString): Fix formatting.
751 * java/awt/Font.java (toString): Likewise.
752 * java/awt/Window.java (postEvent): Implement.
754 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
756 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
757 Set window's focus owner upon receiving a FOCUS_LOST event.
758 * java/awt/Window.java (Window()): Refocus the previously
759 focused component within the window when the window regains the
761 (setFocusOwner): New method.
762 * java/awt/Component.java (requestFocus): Add FIXME.
764 * libgcj.pc.in: Remove library flags.
766 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
768 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
770 * java/awt/Component.java (requestFocus()): Handle Panel
771 specially. Post FOCUS_LOST event on opposite component.
772 (requestFocus(boolean)): Likewise.
773 (requestFocusInWindow(boolean)): Likewise.
774 (paramString): Reorder dimension fields.
775 * java/awt/Container.java (paramString): Fix string format.
776 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
777 Handle FOCUS_LOST events. Don't handle Windows specially. Only
778 process key events if the focus owner is non-null.
779 (dispatchKeyEvent): Likewise.
780 * java/awt/Frame.java (paramString): Fix formatting.
781 (generateName): New method.
782 (getUniqueLong): Likewise.
783 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
784 the temporary focus owner is null. If so, return the permanent
786 * java/awt/Panel.java (generateName): New method.
787 (getUniqueLong): Likewise.
788 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
789 signal handling to make callbacks more specific.
791 2004-07-21 Michael Koch <konqueror@gmx.de>
793 * javax/swing/text/Position.java
796 2004-07-21 Michael Koch <konqueror@gmx.de>
798 * javax/swing/LookAndFeel.java
799 (provideErrorFeedback): New method.
801 2004-07-21 Michael Koch <konqueror@gmx.de>
803 * javax/swing/JTextArea.java
804 (tabSize): New field.
805 (getTabSize): New method.
806 (setTabSize): Likewise.
808 2004-07-21 Michael Koch <konqueror@gmx.de>
810 * javax/swing/ActionMap.java:
811 Fixed javadocs all over.
812 (serialVersionUID): Made private.
813 (parent): Don't explicitely initialize with default value.
815 (keys): Reimplemented.
817 (convertSet): Removed.
818 * javax/swing/ComponentInputMap.java:
819 Fixed javadocs all over.
820 (ComponentInputMap): Implemented.
824 (SetParent): Likewise.
825 (getComponent): Likewise.
826 * javax/swing/InputMap.java:
827 Fixed javadocs all over.
828 (serialVersionUID): Made private.
829 (parent): Don't explicitely initialize with default value.
831 (keys): Reimplemented.
833 (convertSet): Removed.
835 2004-07-21 Michael Koch <konqueror@gmx.de>
837 * javax/swing/ActionMap.java,
838 javax/swing/ComponentInputMap.java,
839 javax/swing/InputMap.java,
840 javax/swing/table/DefaultTableColumnModel.java,
841 javax/swing/table/TableColumn.java,
842 javax/swing/table/TableColumnModel.java,
843 javax/swing/table/TableModel.java,
844 javax/swing/text/AbstractDocument.java,
845 javax/swing/text/TextAction.java:
848 2004-07-21 Graydon Hoare <graydon@redhat.com>
850 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
851 Make method non-static.
852 * javax/swing/AbstractButton.java:
853 Rename fields to match property names where possible.
854 (iconTextGap): New property.
855 * javax/swing/JCheckBox.java: Match AbstractButton changes.
856 (init) New method, call from after various constructors.
857 * javax/swing/JComponent.java (revalidate):
858 Invalidate before queueing repair.
859 * javax/swing/JList.java (getPreferredScrollableViewportSize):
860 Reimplement in terms of visibleRowCount property.
861 * javax/swing/JMenuButton.java: Match AbstractButton changes.
862 * javax/swing/JScrollPane.java (createScrollListener):
863 Remove tracing chatter.
864 * javax/swing/JToggleButton.java: Match AbstractButton changes.
865 * javax/swing/RepaintManager.java (addInvalidComponent):
867 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
869 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
870 Mimic sun behavior on top left/right positioning.
871 * javax/swing/ViewportLayout.java (preferredLayoutSize):
872 Remove mistaken use of preferredScrollableViewportSize here.
873 (layoutContainer): Use view's preferred size as basis.
874 * javax/swing/plaf/basic/BasicButtonUI.java:
875 Set, get, and use textIconGap property.
876 (paint) Paint text returned from layout (with ellipsis).
877 * javax/swing/plaf/basic/BasicListUI.java:
878 Remove tracing chatter, correct various minor calculations.
879 (getCellBounds): Update layout state before calculating.
880 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
881 Use margin default similar to sun's.
882 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
883 (createIncreaseIcon): Center icon, minimize margins.
884 (createDecreaseIcon): Likewise.
885 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
887 (installUI): Call it.
888 (uninstallDefaults): Implement.
889 (uninstallUI): Call it.
890 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
891 Call existing Window constructor.
892 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
893 Set clip before painting.
895 2004-07-21 Olga Rodimina <rodimina@redhat.com>
897 * javax/swing/JMenuItem.java:
898 (processMouseEvent): Reimplemented to deal with
900 (createMenuDragMouseEvent): New private helper method.
901 Creates MenuDragMouseEvent.
902 * javax/swing/MenuSelectionManager.java
903 (componentForPoint): Implemented.
904 (isComponentPartOfCurrentMenu): Made public.
905 (processMouseEvent): Reimplemented to deal with
907 (setSelectedPath): Corrected small mistake that caused
908 path to be set incorrectly.
909 (getPath): If given component is JMenu then also add this
910 menu's popup menu to the selected path.
911 * javax/swing/plaf/basic/BasicMenuItemUI.java:
913 (getPreferredSize): Call getPreferredMenuItemSize().
914 (getPreferredItemSize): Moved code from getPreferredSize to here.
915 (installListeners): Install MouseMotionListeners.
916 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
917 if mouse wasn't released in the bounds of this menu item.
918 (MenuDragMouseHandler): Implemented.
919 * javax/swing/plaf/basic/BasicMenuUI.java:
920 (installListeners): Install MouseMotionListener and
921 MenuDrageMouseListener.
922 (MenuDragMouseHandler): Implemented.
923 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
924 (uninstallListeners): Implemented.
926 2004-07-21 Michael Koch <konqueror@gmx.de>
928 * javax/swing/JCheckBox.java: Reformated.
929 (JCheckBox): Fixed all constructors.
930 (isBorderPaintedFlat): New method.
931 (setBorderPaintedFlat): New method.
932 * javax/swing/JEditorPane.java
933 (createEditorKitForContentType): Made public.
934 (scrollToReference): Likewise.
935 * javax/swing/JTextArea.java
936 (setLineWrap): Fire property change.
937 * javax/swing/JToggleButton.java
938 (JToggleButton): New constructor.
939 (JToggleButton): Simplified.
940 * javax/swing/text/AttributeSet.java
941 (FontAttribute): Renamed from FontCharacterAttribute.
942 * javax/swing/text/JTextComponent.java
943 (KeyBinBinding): Added javadoc.
944 (JTextComponent): Likewise.
945 (getAccessibleContext): Fixed javadoc.
946 * javax/swing/text/View.java
947 (View): Added javadoc.
948 * javax/swing/text/TabableView.java: New file.
949 * Makefile.am: Added javax/swing/text/TabableView.java.
950 * Makefile.in: Regenerated.
952 2004-07-21 Graydon Hoare <graydon@redhat.com>
954 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
955 * gnu/java/awt/peer/gtk/GtkToolkit.java
956 (GtkErrorImage): New helper class.
957 (bufferedImageOrError): New helper method.
958 (createImage): Use it.
960 2004-07-21 David Jee <djee@redhat.com>
962 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
963 (setCaretPosition): Scroll the text view so the new caret position
964 is visible on screen.
966 2004-07-21 David Jee <djee@redhat.com>
968 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
969 (setBounds): Do not validate awtComponent here.
970 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
971 (getPreferredSize): New method.
972 * java/awt/ScrollPane.java
973 (ScrollPane): Set default size to 100x100.
974 (addNotify): If child is not a Panel, wrap it with a new Panel.
975 (paramString): Implement.
977 2004-07-21 Olga Rodimina <rodimina@redhat.com>
979 * javax/swing/JMenu.java:
980 (setSelected): Display popup menu only if this menu
981 is showing on the screen.
982 * javax/swing/JPopupMenu.java:
983 (processMouseEvent): Added comment.
984 (processKeyEvent): Likewise.
985 * javax/swing/MenuSelectionManager.java:
986 (clearSelectedPath): Only fireStateChanged() after
987 selected path was changed, not before.
988 (setSelectedPath): Likewise.
989 * javax/swing/plaf/basic/BasicMenuItemUI.java:
990 (paintMenuItem): Corrected position of menu item's
992 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
993 (installUI): Correct setDefaultLightWeightPopupEnabled call.
994 (popupMenuCanceled): Reimplemented.
995 (popupMenuWillBecomeVisible): Select first menu item by default
996 when displaying free floating popup menus.
997 (TopWindowListener): Reimplemented.
999 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1001 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
1002 Panel from being painted twice when it is first shown.
1004 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1006 * java/awt/Window.java: Reverted changes from my
1007 previous patch for creating window without an owner.
1008 * javax/swing/SwingUtilities.java:
1009 (SwingUtilities.OwnerFrame): made static.
1010 (OwnerFrame.setVisible): New method. Overridden with
1011 empty implementation.
1012 (OwnerFrame.isShowing): New method. Ovverridden
1013 to return always true.
1015 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1017 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1018 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1019 (GtkComponentPeer): Remove temporary try/catch block.
1020 (setVisible): Call show and hide.
1021 (show): Make native.
1023 (getArgs): Don't add "visible" argument.
1024 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1025 (property_notify_predicate): Return Bool instead of int.
1026 (find_layout): New function.
1027 (connectJObject): Call find_layout.
1028 (connectSignals): Likewise.
1029 (moveLayout): Likewise.
1030 (gtkLayoutSetVisible): Likewise.
1032 2004-07-21 Mark Wielaard <mark@klomp.org>
1034 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1035 on notifier object before calling notifyAll().
1037 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1039 * java/awt/Window.java: Changed constructors to use new
1040 method that is described below. Constructors call this
1041 methods only if newly created window should have an owner.
1042 (setWindowOwner): New method. Implementation for
1043 this method is moved from this(owner,configuration).
1044 * javax/swing/JWindow.java:
1045 (JWindow): Reimplement to use SwingUtilities.ownerFrame
1047 * javax/swing/SwingUtilities.java:
1048 (ownerFrame): Change type of this field to OwnerFrame.
1049 (getOwnerFrame): Changed to return object of type OwnerFrame.
1050 (SwingUtilities.OwnerFrame): New class. Represents owner
1051 of a Window that is not provided with one.
1053 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1055 * javax/swing/AbstractButton.java:
1056 (configurePropertiesFromAction): Set action command
1057 to button's text by default if action command is not
1058 explicitely specified.
1059 * javax/swing/JMenu.java: Remove unnecessary listener
1060 and methods relevant to it.
1061 (setSelected): Reimplemented.
1062 (menuSelectionChanged): Moved most part of implementation to
1063 setSelected() and call it instead.
1064 * javax/swing/JMenuItem.java:
1065 (init): Comment out statement that sets paint_border to false.
1066 (configurePropertiesFromAction): Do not set accelerator
1068 (menuSelectionChanged): Change selected index in the selection
1069 model of menu item's parent.
1070 * javax/swing/JPopupMenu.java:
1071 (remove): Set constraints.fill field to GridBagConstraints.BOTH
1072 instead of GridBagConstraints.HORIZONTAL.
1074 (createActionChangeListener): Implemented.
1075 (setVisible): Correct location of HeavyWeightMenu and
1076 don't firePopupMenuCanceled().
1077 (menuSelectionChanged): Implemented.
1078 (ActionChangeListener): New Listener. Implemented.
1079 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1080 (BasicMenuBarUI.ContainerHandler): Implemented.
1081 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1082 (paintMenuItem): Uncommented out code that paints
1083 icon, now that icons are working properly.
1084 (PropertyChangeListener): Implemented.
1085 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1087 (topWindowListener): New field.
1088 (Constructor): initialize topWindowListener.
1089 (BasicPopupMenuUI.TopWindowListener): Implemented.
1090 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
1091 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
1094 2004-07-21 Michael Koch <konqueror@gmx.de>
1096 * javax/swing/plaf/basic/BasicButtonUI.java
1097 (paintFocus): Fixed method signature.
1098 (paintButtonPressed): Likewise.
1099 (paintButtonNormal): Likewise.
1100 (paintText): New method.
1101 * javax/swing/plaf/basic/BasicLabelUI.java
1102 (paint): Re-indented.
1103 * javax/swing/plaf/basic/BasicTextUI.java
1104 (installUI): Set parent textComponent to opaque.
1105 * javax/swing/text/DefaultHighlighter.java
1106 (checkPositions): New helper method.
1107 (addHighlight): Throws BadLocationException, check positions.
1108 (changeHighlight): Likewise.
1109 * javax/swing/text/EditorKit.java
1110 (EditorKit): Implements Serializable.
1111 * javax/swing/text/JTextComponent.java
1112 (getUI): Added javadoc.
1114 (upadteUI): Added javadoc, don't revalidate and repaint.
1116 2004-07-21 David Jee <djee@redhat.com>
1118 * java/awt/GridBagLayout.java
1119 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
1120 * javax/swing/AbstractButton.java
1121 (setText): Reindent.
1122 * javax/swing/RepaintManager.java
1123 (addInvalidComponent): Find the first ancestor that isValidateRoot().
1125 2004-07-21 Michael Koch <konqueror@gmx.de>
1127 * javax/swing/JFormattedTextField.java
1129 (JFormattedTextField): Implemented.
1130 (getValue): Likewise.
1131 (setValue): Likewise.
1132 * javax/swing/LookAndFeel.java
1133 (getSupportsWindowDecorations): New method.
1134 * javax/swing/UIDefaults.java:
1135 Use java.beans.PropertyChangeSupport instead of doing all ourself.
1136 (addPropertyChangeListener): Made public.
1137 (addResourceBundle): Likewise.
1138 (removeResourceBundle): Likewise.
1139 (setDefaultLocale): Likewise.
1140 * javax/swing/plaf/basic/BasicRootPaneUI.java
1141 (BasicRootPaneUI): Implements PropertyChangeListener.
1142 (propertyChange): New method.
1143 * javax/swing/plaf/basic/BasicTextUI.java
1144 (BasicHighlighter): New inner class.
1145 (createHighlighter): New method.
1146 * javax/swing/plaf/basic/BasicToolBarUI.java
1147 (DragWindow): Extends java.awt.Window.
1148 * javax/swing/text/JTextComponent.java
1149 (getDocument): Removed debug output.
1150 * javax/swing/plaf/basic/BasicTextFieldUI.java,
1151 javax/swing/text/DefaultHighlighter.java,
1152 javax/swing/text/FieldView.java,
1153 javax/swing/text/PlainView.java: New files.
1154 * Makefile.am: Added new files.
1155 * Makefile.in: Regenerated.
1157 2004-07-21 Michael Koch <konqueror@gmx.de>
1159 * javax/swing/JEditorPane.java
1160 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
1161 (createEditorKitForContentType): Likewise.
1162 * javax/swing/text/DefaultEditorKit.java
1163 (serialVersionUID): Added constant field.
1164 (EndOfLineStringPropery): Fixed typo.
1165 (DefaultEditorKit): New constructor.
1166 * javax/swing/text/Segment.java:
1167 Import java.text.CharacterIterator.
1168 * javax/swing/text/CharacterIterator.java,
1169 javax/swing/text/PlainEditorKit.java: Removed.
1170 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1171 javax/swing/text/PlainEditorKit.java.
1172 * Makefile.in: Regenerated.
1174 2004-07-21 Michael Koch <konqueror@gmx.de>
1176 * javax/swing/JButton.java,
1177 javax/swing/text/DefaultEditorKit.java,
1178 javax/swing/text/EditorKit.java,
1179 javax/swing/text/Segment.java,
1180 javax/swing/text/StyledEditorKit.java:
1183 2004-07-21 Michael Koch <konqueror@gmx.de>
1185 * javax/swing/ImageIcon.java
1187 (description): Renamed from descr.
1188 (ImageIcon): Added missing constructors.
1189 (setParent): Removed.
1190 (setImageObserver): New method.
1191 (getImageObserver): New method.
1192 (paintIcon): Handle observer = null.
1193 * javax/swing/JButton.java
1194 (removeNotify): Fixed javadoc.
1195 (updateUI): Simplified.
1196 * javax/swing/JRootPane.java
1197 (serialVersionUID): New constant field.
1198 * javax/swing/UIManager.java:
1199 Fixed javadocs all over.
1200 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1201 * javax/swing/text/AbstractDocument.java
1202 (createPosition): Throws BadLocationException.
1203 (getText): Likewise.
1205 * javax/swing/text/ComponentView.java
1206 (modelToView): Likewise.
1207 * javax/swing/text/DefaultEditorKit.java:
1208 Made all public methods public.
1209 (read): Throws BadLocationException and IOException.
1211 * javax/swing/text/EditorKit.java:
1212 Made all public methods public.
1213 (serialVersionUID): New constant field.
1214 (clone): New method.
1215 (read): Throws BadLocationException and IOException.
1217 * javax/swing/text/Segment.java
1218 (array): Made public.
1221 (Segment): New constructors.
1222 (clone): Reimplemented.
1223 * javax/swing/text/StyledEditorKit.java
1224 (serialVersionUID): New constant field.
1226 2004-07-21 Graydon Hoare <graydon@redhat.com>
1228 * java/awt/image/BufferedImage.java
1229 (getSource): Implement.
1230 * javax/swing/ImageIcon.java
1231 (ImageIcon): Implement ctor.
1232 * javax/swing/ScrollPaneLayout.java
1233 (preferredLayoutSize): Be more careful about nulls.
1235 2004-07-21 Michael Koch <konqueror@gmx.de>
1237 * javax/swing/text/AttributeSet.java
1238 (CharacterAttribute): New interface
1239 (ColorAttribute): Likewise.
1240 (FontCharacterAttribute): Likewise.
1241 (ParagraphAttribute): Likewise.
1242 * javax/swing/text/DefaultCaret.java
1243 (moveCaret): New method.
1244 (positionCaret): Likewise.
1245 (repaint): Made protected.
1246 * javax/swing/text/JTextComponent.java
1247 (KeyBinding): Made it static.
1248 * javax/swing/text/View.java
1249 (getContainer): Honor parent == null.
1251 2004-07-21 Michael Koch <konqueror@gmx.de>
1253 * javax/swing/text/AbstractDocument.java:
1256 2004-07-21 Michael Koch <konqueror@gmx.de>
1258 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1259 Import javax.swing.UIManager explicitely.
1260 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1261 (ScrollingButton): Made it static.
1263 2004-07-21 Michael Koch <konqueror@gmx.de>
1265 * javax/swing/UIDefaults.java
1266 (ActiveValue): Made public.
1267 (LazyValue): Likewise.
1268 * javax/swing/plaf/basic/BasicTextUI.java
1269 (RootView): Reintroduced.
1271 (rootView): New field.
1272 (installUI): Create document if needed, initialize rootView.
1273 (uninstallUI): Hanle rootView.
1275 (getRootView): Likewise.
1276 (setView): Likewise.
1277 * javax/swing/text/DefaultCaret.java:
1278 Renamed all "evt" variables to "event".
1280 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1282 * libgcj.spec.in: Add -l-java-util-logging.
1284 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1286 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1287 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1288 gtk-xft-dpi can no calculate the right value.
1289 (dpi_changed_cb): Mark *pspec as unsused.
1291 2004-07-21 David Jee <djee@redhat.com>
1293 * java/awt/Component.java
1294 (move): Delegate to setBounds().
1296 (reshape): Fix so it repaints parent and self only when necessary.
1298 2004-07-21 David Jee <djee@redhat.com>
1300 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1301 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1302 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1303 (setVisible): Likewise.
1306 (getArgs): Likewise.
1307 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1308 (property_notify_predicate): Likewise.
1309 (find_layout): Likewise.
1310 (connectJObject): Likewise.
1311 (connectSignals): Likewise.
1312 (moveLayout): Likewise.
1313 (gtkLayoutSetVisible): Likewise.
1315 2004-07-21 Graydon Hoare <graydon@redhat.com>
1321 (rmiregistry_LDADD): Add lib-java-util-logging.la
1322 * Makefile.in: Regenerate.
1324 2004-07-21 Michael Koch <konqueror@gmx.de>
1326 * javax/swing/text/AbstractDocument.java
1327 (replace): Dont use protected method of java.util.Vector directly.
1329 2004-07-21 Michael Koch <konqueror@gmx.de>
1331 * javax/swing/plaf/basic/BasicTextUI.java
1332 (installUI): Call specialized install methods.
1333 (installDefaults): New method.
1334 (installListeners): Likewise.
1335 (installKeyboardActions): Likewise.
1336 (uninstallUI): Likewise.
1337 (uninstallDefaults): New method.
1338 (uninstallListeners): Likewise.
1339 (uninstallKeyboardActions): Likewise.
1340 (getPropertyPrefix): New abstract method.
1341 (paint): Made final, just call paintSafely().
1342 (paintSavely): New method.
1343 (paintBackground): Likewise.
1344 (getVisibleEditorRect): Likewise.
1345 * javax/swing/text/LayeredHighlighter.java,
1346 javax/swing/text/TabExpander.java: New files.
1347 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1348 and javax/swing/text/TabExpander.java.
1349 * Makefile.in: Regenerated.
1351 2004-07-21 Michael Koch <konqueror@gmx.de>
1353 * javax/swing/plaf/basic/BasicTextUI.java
1354 (BasicTextUI): Made abstract.
1355 (BasicCaret): New inner class.
1356 (view): Don't explicitely initialize with "null".
1357 (textComponent): New field.
1358 (textColor): Removed.
1359 (disabledTextColor): Removed.
1360 (normalBackgroundColor): Removed.
1361 (RootView): Removed commented out inner class.
1362 (createUI): Removed.
1363 (createCaret): New method.
1364 (getComponent): Likewise.
1365 (installUI): Initialize textComponent only.
1366 (getPreferredSize): Use installed JTextComponent.
1367 (setView): New method.
1369 * javax/swing/text/JTextComponent.java
1370 (highlighter): New field.
1371 (caretColor): Likewise.
1372 (disabledTextColor): Likewise.
1373 (seletedTextColor): Likewise.
1374 (selectionColor): Likewise.
1375 (setUI): New method.
1376 (getCaretColor): Likewise.
1377 (setCaretColor): Likewise.
1378 (getDisabledColor): Likewise.
1379 (setDisabledColor): Likewise.
1380 (getSelectedTextColor): Likewise.
1381 (setSelectedTextColor): Likewise.
1382 (getSelectionColor): Likewise.
1383 (setSelectionColor): Likewise.
1384 (getHighlighter): Likewise.
1385 (setHighlighter): Likewise.
1386 (replaceSelection): Likewise.
1388 2004-07-21 Michael Koch <konqueror@gmx.de>
1390 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1391 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1392 * javax/swing/plaf/basic/BasicToolBarUI.java
1393 (BasicToolBarUI): Implements SwingConstants.
1395 2004-07-21 Michael Koch <konqueror@gmx.de>
1397 * javax/swing/JPopupMenu.java: Removed CVS tags.
1398 * javax/swing/UIDefaults.java: Reformatted.
1399 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1400 Explicitely import used classes.
1402 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1404 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1405 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1406 (GtkComponentPeer): Remove temporary try/catch block.
1407 (setVisible): Call show and hide.
1408 (show): Make native.
1410 (getArgs): Don't add "visible" argument.
1411 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1412 (property_notify_predicate): Return Bool instead of int.
1413 (find_layout): New function.
1414 (connectJObject): Call find_layout.
1415 (connectSignals): Likewise.
1416 (moveLayout): Likewise.
1417 (gtkLayoutSetVisible): Likewise.
1419 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1421 * javax/swing/AbstractButton.java:
1422 (setDisplayedMnemonicIndex): Check if button
1423 text is not null before checking its length.
1424 * javax/swing/JMenuItem.java:
1425 (processMouseEvent): Disarm menu item if mouse has
1427 * javax/swing/plaf/basic/BasicMenuUI.java:
1428 (MouseInputHandler.mouseEntered): Do not raise
1429 popup menu if this menu is already selected.
1430 (MouseInputHandler.mousePressed): Do not fire
1432 (MenuHandler): Implemented.
1434 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1436 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1437 (getSelectedObjects): Implemented.
1438 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1439 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1440 Added javadoc for few methods.
1441 (processMouseEvent): Made public.
1442 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1443 (processMouseEvent): Likewise.
1445 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1447 * javax/swing/AbstractButton.java:
1448 (init): Set display mnemonic index to -1.
1449 (setMnemonic(char)): Use setMnemonic(int).
1450 (setMnemonic(int)): Set display mnemonic index.
1451 (getDisplayedMnemonicIndex): Change method signature
1452 by removing 'index' parameter.
1453 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1454 Added default for Menu.selectionBackground.
1455 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1456 (paintMenuItem): Change background color of the selected
1458 (paintText): Paint differently when menu item is disabled.
1459 Also paint mnemonic if it appears in the menu item's label.
1460 (paintAccelerator): Paint accelerator differently
1461 if menu item is disabled.
1462 * javax/swing/plaf/basic/BasicMenuUI.java:
1463 (installDefaults): Install defaults for
1464 selectionForeground and selectionBackground.
1465 (uninstallDefaults): Uninstall defauls for
1466 selectionForeground and selectionBackground.
1468 2004-07-21 Michael Koch <konqueror@gmx.de>
1470 * javax/swing/text/AbstractDocument.java
1471 (BranchElement): Implemented.
1472 (LeafElement): Implemented.
1473 * javax/swing/text/DefaultCaret.java:
1474 Import used classes.
1475 (serialVersionUID): New constant.
1476 * javax/swing/text/JTextComponent.java
1477 (AccessibleJTextComponent): Removed dead declaration.
1478 (caretPos): Removed.
1479 (setCaret): New method.
1480 * javax/swing/text/PlainDocument.java
1481 (rootElement): New field.
1482 (PlainDocument): Initialize rootElement.
1483 (createDefaultRoot): New method.
1484 (getDefaultRootElement): Implemented.
1485 * javax/swing/text/View.java: Reformatted.
1486 * javax/swing/text/ViewFactory.java
1487 (create): Added javadoc.
1489 2004-07-21 Michael Koch <konqueror@gmx.de>
1491 * javax/swing/ToolTipManager.java: Reformatted.
1493 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1495 * javax/swing/AbstractButton.java
1496 (changeEvent): New field.
1497 (fireItemStateChanged): Change source of the event
1498 to 'this' before firing it to button listeners.
1499 (fireActionPerformed): Likewise.
1500 (fireStateChanged): Likewise.
1501 (createActionListener): Do not set source
1502 of the event to AbstractButton.
1503 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1504 (ContainerHandler.componentAdded): Removed
1505 print out statement.
1506 (ContainerHandler.componentRemoved): Likewise.
1508 2004-07-21 Michael Koch <konqueror@gmx.de>
1510 * javax/swing/text/Highlighter.java: New file.
1511 * Makefile.am: Added javax/swing/text/Highlighter.java.
1512 * Makefile.in: Regenerated.
1514 2004-07-21 Michael Koch <konqueror@gmx.de>
1516 * javax/swing/ToolTipManager.java
1517 (stillInsideTimerAction): Fixed constructor arguments.
1518 (outsideTimerAction): Likewise.
1519 (insideTimerAction): Likewise.
1521 2004-07-21 Michael Koch <konqueror@gmx.de>
1523 * javax/swing/JButton.java: Reformatted.
1524 * javax/swing/JFormattedTextField.java
1525 (getUIClassID): Implemented.
1526 * javax/swing/JRootPane.java
1527 (serialVersionUID): New constant.
1528 * javax/swing/JTextField.java
1530 (JTextField): Simplified.
1531 (getUIClassID): New method.
1532 (getActionListeners): Added @since tag.
1533 (setColumns): Invalidate layout and repaint.
1534 (getHorizontalAlignment): New method.
1535 (setHorizontalAlignment): New method.
1536 (selectAll): Removed.
1537 * javax/swing/SwingUtilities.java
1538 (getAncestorOfClass): Removed redundant @see tag.
1539 (isLeftMouseButton): Fixed implementation.
1540 (isMiddleMouseButton): Likewise.
1541 (isRightMouseButton): Likewise.
1542 * javax/swing/text/AbstractDocument.java
1543 (AttributeContext.addAttribute): New method.
1544 (AttributeContext.addAttributes): New method.
1545 (AttributeContext.getEmptySet): New method.
1546 (AttributeContext.reclaim): New method.
1547 (AttributeContext.removeAttribute): New method.
1548 (AttributeContext.removeAttributes): New method.
1549 * javax/swing/text/Document.java
1550 (createPosition): Throws BadLocationException.
1551 (getText): Likewise.
1553 * javax/swing/text/JTextComponent.java
1554 (getText): Return null if no document is set. Catch
1555 BadLocationException.
1557 (updateUI): Simplified.
1559 2004-07-21 Michael Koch <konqueror@gmx.de>
1561 * javax/swing/JButton.java
1562 (removeNotify): Fixed javadoc.
1563 (updateUI): Simplified.
1565 2004-07-21 David Jee <djee@redhat.com>
1567 * gnu/java/awt/image/ImageDecoder.java
1568 (startProduction): Only add consumer if it's not added yet.
1569 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1570 (GdkPixbufDecoder): Don't call initState() here.
1571 (produce): Call initState() here, to ensure area_prepared and
1572 area_updated signals are properly connected.
1573 * gnu/java/awt/peer/gtk/GtkImage.java
1574 (setColorModel): Use equals() to compare ColorModel objects.
1575 (setPixels): Likewise.
1576 * java/awt/image/ColorModel.java
1577 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1578 * java/awt/image/RGBImageFilter.java
1579 (setColorModel): Set consumer's color model.
1580 (setPixels): Use equals() to compare ColorModel objects.
1582 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1584 * java/net/URLConnection.java (position): New field.
1585 (dateFormat1, dateFormat2, dateFormat3): Removed.
1586 (dateFormats): New field.
1587 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1588 each time instead of re-allocating.
1589 (initializeDateFormats): Initialize 'dateFormats'.
1591 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1594 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1597 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1599 * java/net/Socket.java (getImpl): Now private. Remove comment.
1601 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1603 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1604 of chained Writer when calling super-constructor.
1605 * java/io/FilterWriter.java (FilterWriter): Likewise.
1606 * java/io/PrintWriter.java (PrintWriter): Likewise.
1608 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1610 * prims.cc (process_gcj_properties): Don't increment i within LHS
1613 2004-07-19 Per Bothner <per@bothner.com>
1615 Print -verbose:message on "loading", not initialization.
1616 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1617 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1618 gcj::verbose_class_flag.
1619 * java/lang/natClass.cc (initializeClass): Don't print message here.
1620 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1621 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1622 (_Jv_PrepareCompiledClass): Likewise.
1624 2004-07-18 Matthias Klose <doko@debian.org>
1626 * configure.in: Substitute target_noncanonical.
1627 * configure: Regenerate
1629 2004-07-17 Michael Koch <konqueror@gmx.de>
1631 * java/lang/String.java: Fixed javadocs all over.
1633 2004-07-17 Mark Wielaard <mark@klomp.org>
1635 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1636 when size is smaller.
1637 * java/io/RandomAccessFile.java (setLength): Use truncate for
1638 shrinking the file and seek plus write for expanding the file.
1640 2004-07-17 Michael Koch <konqueror@gmx.de>
1642 * gnu/java/nio/channels/natFileChannelPosix.cc
1643 (implTruncate): Always save current position. Only reposition file
1644 pointer to where we started if not beyond new lenght. Reposition file
1645 pointer to file length if it points beyond the end of file.
1647 2004-07-17 Mark Wielaard <mark@klomp.org>
1649 * javax/swing/Box.java: Put FIXME comment above class declaration.
1650 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1651 * javax/swing/JCheckBox.java: Likewise.
1652 * javax/swing/JDialog.java: Likewise.
1653 * javax/swing/JRadioButton.java: Likewise.
1654 * javax/swing/JToggleButton.java: Likewise.
1655 * javax/swing/UIManager.java: Likewise.
1656 * javax/swing/border/TitledBorder.java: Likewise.
1657 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1658 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1659 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1660 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1661 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1662 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1663 * javax/swing/text/JTextComponent.java: Likewise.
1665 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1667 * java/net/DatagramPacket.java (setAddress): Removed check for
1670 2004-07-17 Michael Koch <konqueror@gmx.de>
1672 * java/net/DatagramSocket.java
1673 (getLocalAddress): Check if socket is bound or not.
1674 * java/net/Socket.java
1675 (getLocalAddrss): Check if socket is bound or not.
1676 (getPort): Return -1 when not connected. Dont check getImpl() for
1678 (setReuseAddress): Check if socket is closed.
1679 (isConnected): Check if getImpl() returns null.
1681 2004-07-17 Mark Wielaard <mark@klomp.org>
1683 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1684 on notifier object before calling notifyAll().
1686 2004-07-17 Michael Koch <konqueror@gmx.de>
1688 * gnu/java/nio/channels/FileChannelImpl.java
1689 (finalize): Added javadoc.
1691 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1693 * java/text/CollationElementIterator.java
1694 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1695 (setText): Use ArrayList instead of Vector.
1697 2004-07-17 Michael Koch <konqueror@gmx.de>
1699 * java/nio/ByteOrder.java
1700 (static): Removed. Not needed.
1701 Thanks to Patrick Reali for noticing.
1702 * java/nio/charset/CharsetDecoder.java
1703 (decode): Fix for classpath bug #9177: Reset state before flipping.
1705 2004-07-17 Michael Koch <konqueror@gmx.de>
1707 * java/security/Security.java: Fixed javadocs all over.
1709 2004-07-17 Michael Koch <konqueror@gmx.de>
1711 * gnu/java/awt/EmbeddedWindow.java
1713 (addNotify): Set peer via reflection.
1714 (setWindowPeer): Removed.
1715 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1716 * Makefile.am (nat_source_files):
1717 Removed gnu/java/awt/natEmbeddedWindow.cc.
1718 * Makefile.in: Regenerated.
1720 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1722 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1724 * configure: Regenerated.
1726 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1728 * configure.in: Use build_noncanonical rather than build_alias.
1729 * configure: Rebuild.
1731 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1732 by logic refactoring. Move default definition of NATIVE closer
1733 to first alternate definition.
1734 * configure: Regenerate.
1736 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1737 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1738 gcj/Makefile.in: Regenerate.
1739 * configure.in: Set ZIP and GCJH. Remove redundant condition
1740 in AM_CONDITIONAL(NATIVE,...)
1741 * configure: Regenerate.
1743 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1745 * configure.in: Use target_noncanonical rather than
1746 target_alias for forward-compatibility with autoconf 2.59.
1747 * configure: Regenerate.
1748 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1749 testsuite/Makefile.am: Substitute target_noncanonical.
1750 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1751 testsuite/Makefile.in: Regenerate.
1753 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1754 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1755 * acinclude.m4: Include acx.m4.
1756 * aclocal.m4: Regenerate.
1757 * configure: Regenerate.
1759 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1762 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1763 (decimalFormat): New static variable.
1765 (getTime): New. Override Date.getTime().
1766 (toString): Synchronize. Use decimalFormat to format nanos value
1767 correctly. Truncate extra zeros.
1768 (before): Compare getNanos() only if getTime() is equal.
1771 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1773 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1774 * configure.in: ...here.
1775 * aclocal.m4: Regenerate.
1776 * configure: Regenerate.
1778 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1779 * configure: Rebuilt with autoconf 2.13.
1780 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1781 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1783 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1786 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1788 * Makefile.in: Rebuilt.
1789 * testsuite/libjava.lang/LargeFile.java: New test case.
1790 * testsuite/libjava.lang/LargeFile.out: New file.
1792 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1794 * java/beans/EventHandler.java: Remove debugging statements.
1796 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1798 * java/beans/EventHandler.java: New file.
1799 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1800 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1801 testsuite/Makefile.in: Regenerate.
1803 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1805 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1806 flag to the gcj_setup.
1807 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1809 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1810 deprecation flag change. 58 XFAILS removed.
1812 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1814 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1815 -fno-use-divide-subroutine.
1816 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1817 (HANDLE_FPE): Define.
1818 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1819 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1820 (HANDLE_DIVIDE_OVERFLOW): Define.
1822 2004-07-14 Michael Koch <konqueror@gmx.de>
1823 Matthias Klose <doko@debian.org>
1825 * java/awt/im/InputContext.java: Initialize in, line.
1827 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1829 * interpret.cc (run): Correctly access libffi return values of
1830 integral smaller-than-int type; these are implicitly promoted.
1832 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1835 * interpret.cc (compile_mutex): New.
1836 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1837 (run): Lock compile_mutex before calling compile() if compilation is
1839 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1840 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1842 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1845 * include/jvm.h (_Jv_value): New union type.
1846 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1847 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1850 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1852 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1853 * gnu/awt/xlib/XOffScreenImage.java
1854 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1855 constructor argument. Add constructor using ImageProducer.
1856 (getSource): Implement.
1857 (imageComplete): New method.
1858 (setColorModel): New method.
1859 (setDimensions): New method.
1860 (setHints): New method.
1861 (setPixels): New method.
1862 (setProperties): New method.
1863 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1864 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1866 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1869 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1870 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1871 (finalizerReady): Now native.
1873 (runFinalizers): Removed.
1874 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1875 a primitive lock, and don't hold it while running the finalizers.
1876 (runFinalizers): Implement. Don't aquire any Java lock.
1877 (finalizerReady): Use lock primitives to signal finalizer thread.
1879 2004-07-11 Mark Wielaard <mark@klomp.org>
1881 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1882 * java/net/URLStreamHandler.java (parseURL): When url file part
1883 doesn't contain a '/' just ignore context.
1885 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1887 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1888 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1889 (MAKE_THROW_FRAME): Do not modify PSW address.
1890 (INIT_SEGV): Install SIGINFO-style signal handler.
1891 (INIT_FPE): Likewise.
1893 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1895 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1896 status. 21 xfail's removed, 1 added.
1898 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1900 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1902 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1904 * java/text/MessageFormat.java
1905 (formatInternal): Append "{n}" if argument n is unavailable.
1906 (format(Object, StringBuffer, FieldPosition)): This
1907 should be equivalent to format(Object[],
1908 StringBuffer, FieldPosition).
1910 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1912 * java.util.Calendar.java (cache): New private static field. Cached
1913 mappings of locales->calendar classes.
1914 (ctorArgTypes): New private static field. Singleton argument for
1915 calendar class constructor lookup.
1916 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1917 Optimize by bypassing reflection instantiation for the
1918 GregorianCalendar case.
1920 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1922 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1923 ResourceBundle.getBundle() calls.
1924 * java/util/GregorianCalendar.java: Likewise.
1925 * java/util/Currency.java: Likewise.
1926 * java/text/BreakIterator.java: Likewise.
1927 * java/text/Collator.java: Likewise.
1928 * java/text/DateFormat.java: Likewise.
1929 * java/text/DateFormatSymbols.java: Likewise.
1930 * java/text/DecimalFormatSymbols.java: Likewise.
1931 * java/text/NumberFormat.java: Likewise.
1932 * java/awt/Window.java: Likewise.
1934 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1936 * java/util/ResourceBundle.java (bundleCache): Renamed from
1937 resourceBundleCache. Update comments.
1938 (getObject): Don't catch MissingResourceException.
1939 (getBundle(String)): Remove 'final'. Use system classloader if
1940 getCallingClassLoader returned null.
1941 (getBundle(String, Locale)): Likewise.
1942 (BundleKey): New private class. HashMap key for bundle cache lookup.
1943 (lookupKey): New. Singleton instance of BundleKey.
1944 (nullEntry): New. Cache entry to represent failed lookups.
1945 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1946 caching strategy, no-allocation lookup, and new tryBundle methods.
1947 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1948 name using given classloader.
1949 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1950 baseName for given Locale and attempt to load bundle.
1952 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1954 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1955 illegal protected method calls.
1957 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1959 Fix or remove some bogus test cases.
1960 * testsuite/libjava.compile/pr10459_2.java: Removed.
1961 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1963 * testsuite/libjava.compile/inner_data.java: Test against its own
1966 2004-07-09 Michael Koch <konqueror@gmx.de>
1968 * scripts/unicode-muncher.pl: Updated to version 2.1
1969 from GNU classpath. Added some clarifications on where to find the
1970 needed files from www.unicode.org.
1971 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1972 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1973 Removed, these can directly be downloaded from www.unicode.org if
1975 * gnu/java/lang/CharData.java: Regenerated.
1976 * include/java-chartables.h: Regenerated.
1977 * Makefile.am (ordinary_java_source_files):
1978 Removed gnu/java/lang/CharData.java.
1979 * Makefile.in: Regenerated.
1981 2004-07-09 Michael Koch <konqueror@gmx.de>
1983 * java/security/AccessControlContext.java,
1984 java/security/SecureClassLoader.java:
1987 2004-07-09 Michael Koch <konqueror@gmx.de>
1989 * java/io/ObjectInputStream.java (readFields): Use long datatype
1990 when shifting byte values more then 24 bits left.
1992 2004-07-09 Michael Koch <konqueror@gmx.de>
1994 * java/util/zip/DeflaterOutputStream.java,
1995 java/util/zip/GZIPInputStream.java,
1996 java/util/zip/GZIPOutputStream.java,
1997 java/util/zip/InflaterInputStream.java:
1998 Reformatted. Added javadocs. Reordered all stuff.
1999 Renamed variables to be more clear.
2001 2004-07-09 Michael Koch <konqueror@gmx.de>
2003 * javax/imageio/IIOException.java,
2004 javax/imageio/event/IIOReadProgressListener.java,
2005 javax/imageio/event/IIOReadUpdateListener.java,
2006 javax/imageio/event/IIOReadWarningListener.java,
2007 javax/imageio/event/IIOWriteProgressListener.java,
2008 javax/imageio/event/IIOWriteWarningListener.java:
2010 * Makefile.am: Added new files.
2011 * Makefile.in: Regenerated.
2013 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
2015 * java/text/RuleBasedCollator.java
2016 (mergeRules): Use ArrayList instead of Vector.
2017 (subParseString): likewise.
2018 (parseString): likewise.
2019 (buildCollationVector): likewise.
2020 (getCollationKey): likewise.
2022 2004-07-09 Dalibor Topic <robilad@kaffe.org>
2024 * java/text/DateFormat.java (parse):
2025 Improved javadoc. Improved exception message.
2027 2004-07-09 Mark Wielaard <mark@klomp.org>
2029 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
2030 interrupted() method to clear interupt flag of our Thread.
2032 2004-07-09 Dalibor Topic <robilad@kaffe.org>
2034 * java/nio/Buffer.java,
2035 java/nio/ByteBuffer.java,
2036 java/nio/ByteBufferHelper.java,
2037 java/nio/ByteBufferImpl.java,
2038 java/nio/CharBuffer.java,
2039 java/nio/CharBufferImpl.java,
2040 java/nio/CharViewBufferImpl.java,
2041 java/nio/DirectByteBufferImpl.java,
2042 java/nio/DoubleBuffer.java,
2043 java/nio/DoubleBufferImpl.java,
2044 java/nio/DoubleViewBufferImpl.java,
2045 java/nio/FloatBuffer.java,
2046 java/nio/FloatBufferImpl.java,
2047 java/nio/FloatViewBufferImpl.java,
2048 java/nio/IntBuffer.java,
2049 java/nio/IntBufferImpl.java,
2050 java/nio/IntViewBufferImpl.java,
2051 java/nio/LongBuffer.java,
2052 java/nio/LongBufferImpl.java,
2053 java/nio/LongViewBufferImpl.java,
2054 java/nio/MappedByteBufferImpl.java,
2055 java/nio/ShortBuffer.java,
2056 java/nio/ShortBufferImpl.java,
2057 java/nio/ShortViewBufferImpl.java:
2058 Fixed javadocs all over. Improved input error
2061 * java/nio/Buffer.java
2062 (checkForUnderflow, checkForOverflow, checkIndex,
2063 checkIfReadOnly, checkArraySize): New helper methods
2066 * java/nio/ByteBufferHelper.java
2067 (checkRemainingForRead, checkRemainingForWrite,
2068 checkAvailableForRead, checkAvailableForWrite): Removed
2069 no longer needed methods.
2071 2004-07-09 Michael Koch <konqueror@gmx.de>
2073 * gnu/regexp/CharIndexedInputStream.java:
2074 Reordered imports to match classpath.
2076 2004-07-09 Michael Koch <konqueror@gmx.de>
2078 * gnu/java/awt/EmbeddedWindow.java:
2079 Load native library for setWindowPeer method.
2081 2004-07-08 Randolph Chung <tausq@debian.org>
2083 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
2084 * configure: Regenerate.
2085 * configure.host: Set can_unwind_signal for hppa*-linux.
2086 * include/pa-signal.h: New file.
2088 2004-07-07 Per Bothner <per@bothner.com>
2090 * Makefile.am: Add rules to build libgij from just gij.cc.
2092 * include/jvm.h (namespace jcj): Declare verbose_class_flag
2093 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
2094 (initializeClass): If verbose_class_flag, print message.
2095 * gij.cc (main): Handle -verbose:class flag.
2097 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
2099 * configure.host: Enable hash synchronization on Darwin.
2100 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
2101 ';', since this is a comment on Darwin.
2102 (compare_and_swap_release): Likewise.
2104 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
2106 * java/net/URLStreamHandler.java (parseURL): Canonicalize
2107 file portion of URL in addition to spec for file: protocol.
2109 2004-07-05 Anthony Green <green@redhat.com>
2111 * java/io/File.java (toURI): Merge from Classpath.
2113 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2115 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
2116 before passing to URL constructor. Rethrow any MalformedURLException
2117 as a RuntimeException. Catch MalformedURLException specifically, not
2120 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2122 * java/util/Locale.java (readObject): Intern strings read from object
2125 2004-07-04 Michael Koch <konqueror@gmx.de>
2127 * gnu/gcj/runtime/FirstThread.java,
2128 gnu/gcj/runtime/natFirstThread.cc: Removed.
2129 * gnu/java/lang/MainThread.java,
2130 gnu/java/lang/natMainThread.cc: New files.
2131 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
2132 * Makefile.am: Added new files and removed deleted ones.
2133 * Makefile.in: Regenerated.
2135 2004-07-03 Mark Wielaard <mark@klomp.org>
2136 Anthony Green <green@redhat.com>
2138 * java/net/URL.java (getFile): Clarify return value doc.
2139 (getPath): Return null if file is empty - not empty String.
2140 (set): Convert protocol to lower case before doing anything.
2141 Only change the protocol handler if it's different.
2143 2004-07-03 Anthony Green <green@redhat.com>
2145 * java/net/URL.java (URL): Convert protocol to lower case before
2146 doing anything, so we getURLStreamHandler() with the proper value.
2148 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
2150 * java/util/Locale.java (hashcode): Made transient.
2151 (hashCode): No longer synchronized.
2152 (equals): Remove comment.
2153 (writeObject): No longer synchronized. Implement using writeObject
2154 calls instead of tweaking hashCode field. Update doc.
2155 (readObject): Implement using readObject calls.
2157 2004-06-26 Geoffrey Keating <geoffk@apple.com>
2158 Andreas Tobler <a.tobler@schweiz.ch>
2160 * configure.host (powerpc-*-darwin*): New case, define
2162 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
2163 * configure: Regenerate.
2164 * include/darwin-signal.h: New.
2166 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
2168 * java/beans/Statement.java (doExecute): Fix formatting.
2170 2004-06-29 Per Bothner <per@bothner.com>
2172 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2173 etc etc): Remove needless parenthesis, which causes __stdcall__
2174 attribute on MinGW to get ignored.
2176 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
2178 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2180 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
2182 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
2184 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
2186 * java/beans/Expression.java: New file.
2187 * java/beans/Statement.java: New file.
2188 * Makefile.am: Added new files.
2189 * Makefile.in: Re-generate.
2191 2004-06-27 Mark Wielaard <mark@klomp.org>
2193 * java/io/FilePermission.java (usingPerms): Removed.
2194 (actionsString): Made final.
2195 (cachePerms): Renamed to checkPerms.
2196 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2198 (FilePermission): Check arguments, call checkPerms().
2199 (equals): Remove cachePerms() call.
2200 (implies): Likewise.
2202 2004-06-27 Mark Wielaard <mark@klomp.org>
2204 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2206 (sendRequest): Use new field in user-agent http agent.
2208 2004-06-27 Mark Wielaard <mark@klomp.org>
2210 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2211 when argument is null.
2213 2004-06-26 Mark Wielaard <mark@klomp.org>
2215 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2216 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2218 (cancel_clicked): Likewise.
2220 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2222 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2223 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2224 can not calculate the right value.
2225 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2227 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2229 * testsuite/libjava.jacks/jacks.xfail: Remove
2230 15.9.1-qualified-concrete-20.
2232 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2234 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2235 encoding name to iconv.
2236 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2238 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2241 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2242 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2243 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2245 2004-06-21 Andrew Haley <aph@redhat.com>
2247 * java/io/ObjectOutputStream.java: Add DEBUG statements
2249 (dumpElementln): New method.
2251 * java/io/ObjectInputStream.java
2252 (currentClassLoader): Make native.
2253 (callersClassLoader): New field.
2255 (readObject): ENDBLOCKDATA is generated if the class has a write
2256 method, not if it has a read method.
2257 (readObject): Save and restore this.currentObject and
2258 this.currentObjectStreamClass around calls to callReadMethod().
2259 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2262 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2264 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2267 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2269 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2270 if desired, before the default class loader is initialised.
2271 Call INIT_SEGV only if HANDLE_SEGV is defined.
2273 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2275 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2276 directory only if it actually exists.
2278 2004-06-18 Graydon Hoare <graydon@redhat.com>
2280 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2281 Fix up non-ansi comments.
2283 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2285 * javax/swing/text/AbstractDocument.java: Adding missing import
2286 for javax.swing.event.EventListenerList.
2287 * javax/swing/text/DefaultCaret.java: Likewise.
2289 2004-06-17 Michael Koch <konqueror@gmx.de>
2291 * javax/swing/JToolBar.java
2293 (JToolBar): Use Component.setName(String) instead of doing it all
2295 * javax/swing/Timer.java
2296 (queueEvent): Added missing modifier.
2298 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2300 * Makefile.am: Added new file.
2301 * Makefile.in: Re-generate.
2302 * javax/swing/JMenu.java:
2303 (insertSeparator): Implemented.
2304 * javax/swing/JPopupMenu.java:
2305 (JPopupMenu.Separator): Implemented.
2306 * javax/swing/MenuSelectionManager.java:
2307 (processMouseEvent): Use java.awt.Component
2308 for event source instead of javax.swing.JComponent.
2309 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2310 New File. Implemented.
2312 2004-06-16 David Jee <djee@redhat.com>
2314 * java/awt/GridBagLayout.java
2315 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2316 Make sure pos_x and pos_y are never negative.
2318 2004-04-16 Andrew Overholt <overholt@redhat.com>
2320 * Makefile.am: Add new file.
2321 * Makefile.in: Re-generate.
2322 * javax/swing/JToolBar.java
2323 Partially implemented.
2324 * javax/swing/plaf/basic/BasicToolBarUI.java
2325 New file. Partially implemented.
2327 2004-06-16 Graydon Hoare <graydon@redhat.com>
2329 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2330 (setComposite): Accept AlphaComposite arguments.
2331 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2332 (createBufferedImage): Add new overloads.
2333 * gnu/java/awt/peer/gtk/GtkToolkit.java
2334 (createImage): Use GdkPixbufDecoder.createBufferedImage
2335 when useGraphics2D() is true.
2336 (getImage): Delegate to createImage.
2337 * javax/swing/JList.java
2339 (getFirstVisibleIndex):
2340 (getLastVisibleIndex):
2342 (ensureIndexIsVisible): New methods.
2343 * javax/swing/Timer.java: Reimplement.
2345 2004-06-16 Michael Koch <konqueror@gmx.de>
2347 * javax/swing/text/AbstractDocument.java
2348 (AbstracElement): Made public, implements java.io.Serializable.
2349 (AttributeContext): Made public.
2350 (BranchElement): Likewise.
2351 (Content): Likewise.
2352 (DefaultDocumentEvent): Made public, extends
2353 javax.swing.undo.CompoundEdit.
2354 (ElementEdit): Made public, extends
2355 javax.swing.undo.AbstractUndoableEdit.
2356 (LeafElement): Made public.
2357 (LeafElement.LeafElement): Made public.
2359 2004-06-16 Michael Koch <konqueror@gmx.de>
2361 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2362 methods (that were obviously never be intended to get included hi this
2363 class. Added some methods too.
2365 2004-06-16 Michael Koch <konqueror@gmx.de>
2367 * javax/swing/text/PlainDocument.java
2368 (serialVersionUID): New constant.
2369 (lineLimitAttribute): Likewise.
2370 (tabSizeAttribute): Likewise.
2371 (tabSize): New field.
2372 (PlainDocument): Made public.
2373 (PlainDocument): New constructor.
2375 2004-06-16 Michael Koch <konqueror@gmx.de>
2377 * javax/swing/text/AbstractDocument.java
2378 (insertString): Throws BadLocationException.
2379 * javax/swing/text/Document.java
2380 (insertString): Likewise.
2381 * javax/swing/text/JTextComponent.java:
2382 Javadocs and comments cleaned up.
2384 2004-06-16 Michael Koch <konqueror@gmx.de>
2386 * javax/swing/event/UndoableEditListener.java: Reformatted.
2387 * javax/swing/text/AbstractDocument.java
2388 (AbstractDocument): Implements java.io.Serializable.
2389 (doc_list): Removed.
2390 (undo_list): Removed.
2391 (AbstractElement.serialVerionUID): New field.
2392 (BranchElement.serialVerionUID): Likewise.
2393 (DefaultDocumentEvent.serialVerionUID): Likewise.
2394 (ElementEdit.serialVerionUID): Likewise.
2395 (LeafElement.serialVerionUID): Likewise.
2396 (serialVerionUID): Likewise.
2397 (BAD_LOCATION): New constant.
2398 (BidiElementName): Likewise.
2399 (ContentElementName): Likewise.
2400 (ParagraphElementName): Likewise.
2401 (SectionElementName): Likewise.
2402 (ElementNameAttribute): Likewise.
2403 (AbstractDocument): Made protected.
2404 (AbstractDocument): New construtor.
2405 (listenerList): New field.
2406 (fireChangedUpdate): Implemented.
2407 (fireInsertUpdate): Likewise.
2408 (fireRemoveUpdate): Likewise.
2409 (fireUndoableEditUpdate): Likewise.
2410 (getListeners): Likewise.
2411 (addDocumentListener): Likewise.
2412 (removeDocumentListener): Likewise.
2413 (addUndoableEditListener): Likewise.
2414 (removeUndoableEditListener): Likewise.
2415 (getDocumentListeners): New method.
2416 (getUndoableEditListeners): Likewise.
2417 (getAsynchronousLoadPriority): Made public.
2418 (getBidiRootElement): Likewise.
2419 (setAsynchronousLoadPriority): Likewise.
2420 (setDocumentProperties): Likewise.
2421 * javax/swing/text/BadLocationException.java
2422 (serialVerionUID): New field.
2423 * javax/swing/text/DefaultCaret.java
2424 (changeEvent): New field.
2425 (listenerList): Likewise.
2427 (addChangeListener): Reimplemented.
2428 (removeChangeListener): Likewise.
2429 (getListeners): New method.
2430 (getChangeListeners): Likwise.
2431 (getComponent): Likewise.
2432 * javax/swing/text/GapContent.java
2433 (GapContent): Implements java.io.Serializable.
2434 (serialVerionUID): New field.
2436 2004-06-16 Michael Koch <konqueror@gmx.de>
2438 * javax/swing/JTree.java
2439 (treeModel): New field.
2440 (JTree): New constructors, one existing one made public.
2441 (createTreeModel): New method.
2442 (addTreeExpansionListener): Likewise.
2443 (removeTreeExpansionListener): Likewise.
2444 (getTreeExpansionListeners): Likewise.
2445 (fireTreeCollapsed): Likewise.
2446 (fireTreeExpanded): Likewise.
2447 (addTreeSelectionListener): Likewise.
2448 (removeTreeSelectionListener): Likewise.
2449 (getTreeSelectionListeners): Likewise.
2450 (fireValueChanged): Likewise.
2451 (addTreeWillExpandListener): Likewise.
2452 (removeTreeWillExpandListener): Likewise.
2453 (getTreeWillExpandListeners): Likewise.
2454 (fireTreeWillCollapse): Likewise.
2455 (fireTreeWillExpand): Likewise.
2457 2004-06-16 Michael Koch <konqueror@gmx.de>
2459 * javax/swing/JTree.java: Reformatted.
2461 2004-06-16 Michael Koch <konqueror@gmx.de>
2463 * javax/swing/JTextArea.java: New file.
2464 * javax/swing/JTextField.java
2466 (notifyAction): New constant.
2467 (columns): New field.
2468 (JTextField): New constructors.
2469 (createDefaultModel): New method.
2470 (addActionListener): Reimplmemented.
2471 (removeActionListener): Reimplemented.
2472 (getActionListeners): New method.
2473 (fireActionPerformed): New method.
2474 (getColumns): New method.
2475 (setColumne): New method.
2476 * javax/swing/text/JTextComponent.java
2477 (AccessibleJTextComponent.serialVersionUID): New field.
2478 (serialVersionUID): Likewise.
2479 (DEFAULT_KEYMAP): Likewise.
2480 (FOCUS_ACCELERATOR_KEY): Likewise.
2481 (doc): Made private.
2482 (icon_gap): Likewise.
2485 (JTextComponent): Some constructors removed.
2486 (getScrollableTracksViewportHeight): New method.
2487 (getScrollableTracksViewportWidth): Likewise.
2488 * Makefile.am: Added javax/swing/JTextArea.java.
2489 * Makefile.in: Regenerated.
2491 2004-06-15 Graydon Hoare <graydon@redhat.com>
2493 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2494 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2495 * javax/swing/JViewport.java
2496 (getExtentSize): Return size rather than preferred size.
2497 (toViewCoordinates): New methods.
2498 (getViewSize): Return size rather than preferred size.
2499 (setViewSize): Note view size as set.
2500 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2501 * javax/swing/plaf/basic/BasicScrollBarUI.java
2502 (getPreferredSize): Don't redo layout.
2503 * javax/swing/plaf/basic/BasicViewportUI.java
2504 (paint): Translate image properly and eat exceptions.
2506 2004-06-15 Kim Ho <kho@redhat.com>
2508 * javax/swing/JTabbedPane.java
2509 (setComponent): Remove old component and
2511 (setSelectedIndex): Don't operate on the
2512 components if they're null. Don't set index
2513 on the model if the index is the same.
2514 (insertTab): Don't add or hide the component
2515 if it's null. Repaint the container.
2516 * javax/swing/plaf/basic/BasicLookAndFeel.java
2517 Change colors for TabbedPane.
2518 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2519 (mousePressed): Re-layout and paint the component.
2520 (layoutContainer): Don't set location on the view.
2521 (ScrollingViewport::paint): Remove.
2523 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2525 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2526 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2528 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2529 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2530 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2532 (drawLine): Call gdk_flush before leaving GDK critical region.
2533 (fillRect): Likewise.
2534 (drawRect): Likewise.
2535 (copyArea): Likewise.
2536 (copyPixmap): Likewise.
2537 (clearRect): Likewise.
2538 (drawArc): Likewise.
2539 (drawPolyline): Likewise.
2540 (drawPolygon): Likewise.
2541 (fillPolygon): Likewise.
2542 (fillArc): Likewise.
2543 (drawOval): Likewise.
2544 (fillOval): Likewise.
2546 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2548 (GdkFontMetrics): Add style argument to initState call.
2549 (stringWidth(String,int,int,String)): Add style parameter.
2550 (stringWidth(String)): Add style argument to stringWidth call.
2551 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2552 (initState): Set pango font style and weight based on AWT style
2553 parameter. Pass default GTK language to
2554 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2555 simply dividing by PANGO_SCALE.
2556 (stringWidth): Set pango font style and weight based on AWT style
2559 * java/awt/Button.java (next_button_number): New field.
2560 (paramString): Change output.
2561 (generateName): New method.
2562 (getUniqueLong): New method.
2564 2004-06-14 Kim Ho <kho@redhat.com>
2566 * javax/swing/JTabbedPane.java:
2567 (setComponentAt): Set the component, not
2569 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2570 (actionPerformed): Let deiconize catch exception.
2572 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2574 * javax/swing/JPopupMenu.java:
2575 (setVisible): Corrected location of a
2576 heavyweight popup menu.
2578 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2580 * javax/swing/MenuSelectionManager.java:
2581 Ran through jalopy to fix formatting style.
2583 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2585 * javax/swing/JLayeredPane.java:
2586 (remove): Revalidate and repaint layered pane after
2587 the component was removed.
2588 javax/swing/JMenu.java:
2589 (setVisible): Display popup menu at the user location,
2590 if one was set by the user.
2591 (setMenuLocation): Reimplemented. Fixed javadoc.
2592 * javax/swing/JMenuBar.java: Added javadoc.
2593 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2594 (MODEL_CHANGED_PROPERTY): New Property.
2595 (isSelected): Implemented.
2596 (setBorderPainted): Fire PropertyChangeEvent
2597 if paintBorder property changes.
2598 (setSelected): Implemented.
2599 (setSelectionModel): Implemented.
2600 * javax/swing/JPopupMenu.java: Added Javadoc
2601 (pack): Implemented.
2602 (setVisible): Reimplemented.
2603 (show): Fixed location.
2604 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2605 Container instead of JPanel.
2606 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2607 (clearSelectedPath): Reimplemented to clear selectedPath
2609 (processMouseEvent): Reimplemented.
2610 (setSelectedPath): Fire stateChange event indicating that
2611 selected menu path has changed.
2612 (getPath): Change to use ArrayList instead of Vector.
2613 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2614 (installUI): call installKeyboardActions().
2615 (uninstallUI): call uninstallKeyboardActions().
2617 2004-06-13 Michael Koch <konqueror@gmx.de>
2619 * javax/swing/text/DefaultCaret.java,
2620 javax/swing/text/BadLocationException.java:
2623 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2625 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2626 DEFAULT_COLS): New variables.
2627 (create): Don't allow 0 rows or 0 columns. Instead, set the
2628 values to DEFAULT_ROWS or DEFAULT_COLS.
2629 (getMinimumSize): Likewise.
2630 (getPreferredSize): Likewise.
2631 (minimumSize): Likewise.
2632 (preferredSize): Likewise.
2633 (create): Set peer's editable state.
2634 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2635 zero. Update javadocs.
2636 (TextArea(String)): Likewise.
2637 (TextArea(int,int)): Fix javadocs.
2638 (TextArea(String,int,int,int)): Only throw exception if one of
2639 rows or columns is zero. Fix javadocs.
2641 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2643 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2644 addition to Components.
2646 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2647 wasn't consumed by normal processing, send it to the parent
2650 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2651 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2654 2004-06-11 David Jee <djee@redhat.com>
2656 * java/awt/MediaTracker.java
2657 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2658 (addImage(Image,int,int,int)): Likewise.
2660 2004-06-11 Michael Koch <konqueror@gmx.de>
2662 * javax/swing/text/AbstractDocument.java,
2663 javax/swing/text/Document.java,
2664 javax/swing/text/GapContent.java,
2665 javax/swing/text/JTextComponent.java,
2666 javax/swing/text/PlainDocument.java:
2669 2004-06-11 Michael Koch <konqueror@gmx.de>
2671 * javax/swing/JRootPane.java
2672 (AccessibleJRootPane.serialVersionUID): New field.
2673 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2674 (AccessibleJRootPane.getAccessibleRole): New method.
2675 (RootLayout): Implements Serializable.
2676 (RootLayout.serialVersionUID): New field.
2677 (RootLayout.RootLayout): New constructor.
2678 (setJMenuBar): Made public.
2679 (getJMenuBar): Likewise.
2680 (JRootPane): Likewise.
2681 (createContentPane): Likewise.
2682 (createGlassPane): Likewise.
2683 (createLayeredPane): Likewise.
2685 2004-06-11 Michael Koch <konqueror@gmx.de>
2687 * javax/swing/SwingUtilities.java
2688 (isLeftMouseButton): Fixed javadoc.
2689 (isMiddleMouseButton): Likewise.
2690 (isRightMouseButton): Likewise.
2692 2004-06-11 Michael Koch <konqueror@gmx.de>
2694 * javax/swing/JScrollPane.java
2695 (serialVersionUID): New field.
2696 (columnHeader): Made protected.
2697 (rowHeader): Likewise.
2698 (lowerLeft): Likewise.
2699 (lowerRight): Likewise.
2700 (upperLeft): Likewise.
2701 (upperRight): Likewise.
2702 (horizontalScrollBar): Likewise.
2703 (horizontalScrollBarPolicy): Likewise.
2704 (verticalScrollBar): Likewise.
2705 (verticalScrollBarPolicy): Likewise.
2706 (viewport): Likewise.
2708 2004-06-11 Michael Koch <konqueror@gmx.de>
2710 * javax/swing/LookAndFeel.java: Fixed javadocs.
2712 2004-06-11 Michael Koch <konqueror@gmx.de>
2714 * javax/swing/JEditorPane.java: Fixed javadocs.
2715 (JEditorPane): Removed redundant call to to this().
2716 (fireHyperlinkUpdate): Implemented.
2718 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2720 * javax/swing/JMenu.java: Fixed file name
2721 in the file comment.
2723 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2725 * javax/swing/JMenu.java: Added javadoc.
2726 (JMenu): Added MenuChangeListener to listen to
2727 ChangeEvents occuring in menu's model.
2728 (insert): Throw IllegalArgumentException if
2729 index is less than 0
2730 (setSelected): Reimplement.
2731 (setPopupMenuVisible): Call menu's model isEnabled()
2732 (setDelay): Throw IllegalArgumentException if
2733 given amount of delay is less than 0.
2734 (createActionComponent): Implemented.
2735 (createActionChangeListener): Implemented.
2736 (addSeparator): Implemented.
2737 (getItem): Throw IllegalArgumentException if index is
2739 (getItemCount): Implemented.
2740 (fireMenuSelected): Changed to use menuEvent.
2741 (fireMenuDeselected): Likewise.
2742 (fireMenuCanceled): Likewise.
2743 (setAccelerator): Changed to throw an error if this
2745 (doClick): Implemented.
2746 (JMenu.ActionChangedListener): New inner class to handle
2747 PropertyChangeEvents occuring in the actions associated with menu.
2748 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2749 (BasicMenuUI): Added PropertyChangeListener to the menu.
2750 (createChangeListener): Implemented.
2751 (createMenuDragMouseListener): Likewise.
2752 (createMenuKeyListener): Likewise.
2753 (createPropertyChangeListener): Likewise.
2754 (uninstallListeners): Likewise.
2755 (BasicMenuUI.MouseInputHandler): Reimplemented.
2756 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2757 (BasicMenuUI.ChangeHandler): Likewise.
2758 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2759 (BasicMenuUI.MenuKeyHandler): Likewise.
2761 2004-06-10 David Jee <djee@redhat.com>
2763 * java/awt/MediaTracker.java
2764 (imageUpdate): Only do notifyAll() if the image is complete.
2766 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2768 * javax/swing/JApplet.java:
2769 (getJMenuBar): Made public.
2770 (setJMenuBar): Likewise.
2771 * javax/swing/JFrame.java:
2772 (getJMenuBar): Made public.
2773 (setJMenuBar): Likewise.
2774 * javax/swing/JWindow.java:
2775 (getJMenuBar): Removed.
2776 (setJMenuBar): Removed.
2778 2004-06-10 Michael Koch <konqueror@gmx.de>
2780 * javax/swing/JEditorPane.java
2781 (createEditorKitForContentType): Fixed visibility.
2782 (fireHyperlinkUpdate): Likewise.
2783 (getContentType): Likewise.
2784 (getEditorKit): Likewise.
2785 (getEditorKitForContentType): Likewise.
2786 (getPage): Likewise.
2788 (registerEditorKitForContentTyoe): Likewise.
2789 (replaceSelection): Likewise.
2790 (setContentType): Likewise.
2791 (setEditorKit): Likewise.
2792 (setPage): Likewise.
2794 2004-06-10 Michael Koch <konqueror@gmx.de>
2796 * javax/swing/Timer.java
2797 (Timer): New constructor.
2798 * javax/swing/plaf/basic/BasicProgressBarUI.java
2799 (animationTimer): Don't initialize at construction.
2800 (startAnimationTimer): Added since tag.
2801 (stopAnimationTimer): Likewise.
2802 (installUI): Use new Timer constructor.
2803 * javax/swing/plaf/basic/BasicScrollBarUI.java
2804 (installUI): Likewise.
2805 * javax/swing/plaf/basic/BasicSliderUI.java
2806 (installUI): Likewise.
2808 2004-06-10 Michael Koch <konqueror@gmx.de>
2810 * javax/swing/ButtonGroup.java
2811 (serialVersionUID): Made private.
2812 (buttons): Renamed from v, added javadoc.
2813 (sel): Added javadoc.
2814 (ButtonGroup): Likewise.
2817 (getElements): Likewise.
2818 (getSelection): Likewise.
2819 (setSelected): Likewise.
2820 (isSelected): Likewise.
2821 (getButtonCount): Likewise.
2823 2004-06-10 Michael Koch <konqueror@gmx.de>
2825 * javax/swing/ButtonGroup.java,
2826 javax/swing/ImageIcon.java,
2827 javax/swing/JEditorPane.java,
2828 javax/swing/JRootPane.java,
2829 javax/swing/JTextField.java,
2830 javax/swing/LookAndFeel.java,
2831 javax/swing/plaf/basic/BasicTextUI.java:
2834 2004-06-10 Michael Koch <konqueror@gmx.de>
2836 * javax/swing/text/Style.java: Added javadocs.
2838 2004-06-10 Michael Koch <konqueror@gmx.de>
2840 * javax/swing/JComponent.java
2841 (fireVetoableChange): Removed redundant cast.
2842 * javax/swing/JLabel.java
2843 (getDisabledIcon): Save icon for next call.
2845 2004-06-10 Michael Koch <konqueror@gmx.de>
2847 * javax/swing/KeyStroke.java
2848 (getKeyStroke(char,boolean)): Marked deprecated.
2850 2004-06-10 Michael Koch <konqueror@gmx.de>
2852 * javax/swing/DefaultCellEditor.java,
2853 javax/swing/GrayFilter.java,
2854 javax/swing/event/DocumentEvent.java,
2855 javax/swing/text/JTextComponent.java,
2856 javax/swing/text/MutableAttributeSet.java:
2859 2004-06-10 Michael Koch <konqueror@gmx.de>
2861 * javax/swing/plaf/BorderUIResource.java:
2862 Added serialVersionUID all over.
2864 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2866 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2868 2004-06-10 Michael Koch <konqueror@gmx.de>
2870 * javax/swing/table/DefaultTableCellRenderer.java
2871 (noFocusBorder): Initialize directly.
2873 2004-06-10 Michael Koch <konqueror@gmx.de>
2875 * javax/swing/plaf/basic/BasicArrowButton.java
2876 (setDirection): Use method argument.
2878 2004-06-10 Michael Koch <konqueror@gmx.de>
2880 * javax/swing/plaf/BorderUIResource.java,
2881 javax/swing/plaf/ComponentUI.java,
2882 javax/swing/undo/CompoundEdit.java,
2883 javax/swing/undo/StateEdit.java:
2884 Fixed javadocs all over.
2886 2004-06-10 Michael Koch <konqueror@gmx.de>
2888 * javax/swing/DefaultButtonModel.java
2889 (ARMED): Made public final, fixed value.
2890 (ENABLED): Likewise.
2891 (PRESSED): Likewise.
2892 (ROLLOVER): Likewise.
2893 (SELECTED): Likewise.
2894 (stateMask): Initialize directly.
2895 (listenerList): Likewise.
2896 (mnemonic): Likewise.
2897 (fireStateChanged): Removed argument, use changeEvent as event.
2898 All places where this method is called are fixed too.
2899 (getActionCommant): Fixed javadoc.
2900 (setGroup): Fixed javadoc.
2901 (getGroup): New method.
2903 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2905 * javax/swing/AbstractButton.java
2906 (AbstractButton): Use init() to initialize the button.
2907 (init): New Method. Initializes AbstractButton.
2908 * javax/swing/JMenuItem.java: Documented.
2909 (JMenuItem): Reimplemented.
2910 (init): Implemented.
2911 (setEnabled): Changed to call super.setEnabled()
2912 (processMouseEvent): Reimplemented.
2913 (fireMenuKeyPressed): Implemented.
2914 (fireMenuKeyReleased): Implemented.
2915 (fireMenuKeyTyped): Implemented.
2916 (menuSelectionChanged): disarm the model if the menu item was
2918 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2919 (getPath): Change to use ArrayList instead of Vector.
2920 (getPreferredSize): Renamed variable.
2921 (paintMenuItem): Paint margin area of menu item.
2922 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2923 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2924 menu item's bounds before clearing the selection.
2926 2004-06-09 David Jee <djee@redhat.com>
2928 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2929 (GtkTextComponentPeer): Set caret position to 0.
2930 * java/awt/TextComponent.java
2931 (setText): Set caret position to 0.
2932 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2933 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2934 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2935 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2937 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2938 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2941 2004-06-09 Kim Ho <kho@redhat.com>
2943 * Makefile.am: New files
2944 * Makefile.in: Regenerated
2945 * java/awt/Container.java
2946 (getComponentAt): Removed.
2947 * javax/swing/AbstractAction.java
2948 (ENABLED_PROPERTY): New property.
2949 (putValue): Fire PropertyChangeEvents.
2950 (setEnabled): ditto.
2951 (firePropertyChange): Javadoc and implement
2953 * javax/swing/AbstractButton.java
2954 (setAction): Don't create PropertyChangeListener
2955 if new Action is null.
2956 (setIcon): Don't set icon till after comparing
2958 (configurePropertiesFromAction): Check mnemonic
2959 key before calling intValue().
2960 (createActionPropertyChangeListener): Check
2961 properties rather than bulk change.
2962 * javax/swing/DefaultDesktopManager.java:
2964 * javax/swing/DesktopManager.java:
2966 * javax/swing/JComponent.java
2967 (fireVetoableChange): Implement.
2968 (paintImmediately): Use root component.
2969 * javax/swing/JDesktopPane.java: Implement
2970 * javax/swing/JInternalFrame.java: Implement
2971 * javax/swing/JLabel.java
2972 (getDisabledIcon): Return grayscaled icon if
2973 no disabled icon specified.
2974 * javax/swing/JMenuBar.java
2975 (getComponentAtIndex): Use getComponent
2976 * javax/swing/JOptionPane.java
2977 (getDesktopPaneForComponent): Use SwingUtilities'
2979 (getFrameForComponent): ditto.
2980 * javax/swing/JSplitPane.java
2981 (remove): Use getComponent.
2982 * javax/swing/SwingUtilities.java
2983 (convertPoint): Implement.
2984 * javax/swing/plaf/basic/BasicButtonUI.java
2985 (paintButtonNormal): Check opaqueness before
2987 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2989 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2991 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2993 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2995 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2996 Change InternalFrame and Desktop colors.
2998 2004-06-09 David Jee <djee@redhat.com>
3000 * java/awt/Container.java
3001 (remove): Do not set component to invisible.
3003 2004-06-09 Michael Koch <konqueror@gmx.de>
3005 * javax/swing/tree/DefaultMutableTreeNode.java
3006 (getLeafCount): Renamed enum to e.
3008 2004-06-09 Michael Koch <konqueror@gmx.de>
3010 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3011 (positionForMouseEvent): Removed redundant semicolon.
3012 (continueDrag): Use method arguments.
3014 2004-06-09 Michael Koch <konqueror@gmx.de>
3016 * javax/swing/border/TitledBorder.java,
3017 javax/swing/filechooser/FileSystemView.java,
3018 javax/swing/plaf/basic/BasicButtonListener.java,
3019 javax/swing/plaf/basic/BasicGraphicsUtils.java,
3020 javax/swing/plaf/basic/BasicLabelUI.java,
3021 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
3022 javax/swing/plaf/basic/BasicScrollBarUI.java,
3023 javax/swing/plaf/basic/BasicScrollPaneUI.java,
3024 javax/swing/plaf/basic/BasicSliderUI.java,
3025 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
3026 javax/swing/plaf/basic/BasicToggleButtonUI.java,
3027 javax/swing/table/JTableHeader.java,
3028 javax/swing/text/AbstractDocument.java,
3029 javax/swing/text/DefaultCaret.java,
3030 javax/swing/text/StyledEditorKit.java,
3031 javax/swing/tree/DefaultTreeCellEditor.java:
3032 Reworked import statements.
3034 2004-06-08 Graydon Hoare <graydon@redhat.com>
3036 * javax/swing/Box.java: Temporarily comment out code
3037 broken due to visibility bug.
3039 2004-06-09 Michael Koch <konqueror@gmx.de>
3041 * javax/swing/ImageIcon.java
3042 (ImageIcon): Added missing constructor.
3044 2004-06-08 Michael Koch <konqueror@gmx.de>
3046 * javax/swing/JToggleButton.java
3047 (JToggleButton): New constructor.
3048 (getAccessibleContext): Moved documentation into javadoc.
3049 (getUIClassID): Likewise.
3051 2004-06-08 Michael Koch <konqueror@gmx.de>
3053 * javax/swing/AbstractButton.java
3054 (getDisabledIcon): Create disabled icon if none exists yet.
3056 2004-06-08 Michael Koch <konqueror@gmx.de>
3058 * javax/swing/plaf/basic/BasicLookAndFeel.java
3059 (initClassDefaults): Added FormattedTextFieldUI.
3060 (loadResourceBundle): Renamed enum to e.
3062 2004-06-08 Michael Koch <konqueror@gmx.de>
3064 * javax/swing/plaf/basic/BasicButtonUI.java
3065 (paintIcon): Simplified.
3066 (paintText): Paint disabled button correctly.
3068 2004-06-08 Michael Koch <konqueror@gmx.de>
3070 * javax/swing/JComponent.java
3071 (createToolTip): Use official JToolTip API.
3073 2004-06-08 Michael Koch <konqueror@gmx.de>
3075 * javax/swing/JToolTip.java
3076 (JToolTip): No arguments in API.
3077 (setTipText): New method.
3079 2004-06-08 Michael Koch <konqueror@gmx.de>
3081 * javax/swing/SwingUtilities.java
3082 (isLeftMouseButton): New method.
3083 (isMiddleMouseButton): New method.
3084 (isRightMouseButton): New method.
3086 2004-06-08 Michael Koch <konqueror@gmx.de>
3088 * javax/swing/AbstractButton.java,
3089 javax/swing/CellRendererPane.java,
3090 javax/swing/JCheckBoxMenuItem.java,
3091 javax/swing/JColorChooser.java,
3092 javax/swing/JComboBox.java,
3093 javax/swing/JComponent.java,
3094 javax/swing/JDesktopPane.java,
3095 javax/swing/JFileChooser.java,
3096 javax/swing/JMenu.java,
3097 javax/swing/JMenuItem.java,
3098 javax/swing/JOptionPane.java,
3099 javax/swing/JPasswordField.java,
3100 javax/swing/JPopupMenu.java,
3101 javax/swing/JProgressBar.java,
3102 javax/swing/JRadioButtonMenuItem.java,
3103 javax/swing/JScrollBar.java,
3104 javax/swing/JSeparator.java,
3105 javax/swing/JSlider.java,
3106 javax/swing/JSplitPane.java,
3107 javax/swing/JTabbedPane.java,
3108 javax/swing/JTextField.java,
3109 javax/swing/JToolBar.java,
3110 javax/swing/text/JTextComponent.java:
3111 Fixed all constructors of accessibility classes.
3113 2004-06-08 Michael Koch <konqueror@gmx.de>
3115 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
3118 2004-06-08 Michael Koch <konqueror@gmx.de>
3120 * javax/swing/Box.java
3121 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
3122 (AccessibleBoxFiller.serialVersionUID): New member variable.
3123 * javax/swing/DefaultButtonModel.java
3124 (stateMask): Made protected.
3125 (listenerList): Likewise.
3126 (changeEvent): Likewise.
3128 (mnemonic): Likewise.
3129 (actionCommand): Likewise.
3130 (getListeners): New method.
3131 (getActionListeners): New method.
3132 (getItemListeners): New method.
3133 (getChangeListeners): New method.
3134 (fireItemStateChanged): Simplified.
3135 (fireActionPerformed): Simplified.
3136 (fireStateChanged): Simplified.
3137 * javax/swing/JFrame.java
3138 (JFrame): Implements WindowContants.
3139 (HIDE_ON_CLOSE): Removed.
3140 (EXIT_ON_CLOSE): Removed.
3141 (DISPOSE_ON_CLOSE): Removed.
3142 (DO_NOTHING_ON_CLOSE): Removed.
3143 (processWindowEvent): Exit with code 0.
3144 (setDefaultCloseOperation): Do security check before setting value.
3145 * javax/swing/JOptionPane.java
3146 (message): Initialize only in constructor.
3147 * javax/swing/JToolTip.java: Removed unused imports.
3148 * javax/swing/JViewport.java
3149 (serialVersionUID): New member variable.
3150 (SIMPLE_SCROLL_MODE): Made final, fixed value.
3151 (BLIT_SCROLL_MODE): Likewise.
3152 (BACKINGSTORE_SCROLL_MODE): Likewise.
3153 (scrollUnderway): Made protected.
3154 (isViewSizeSet): Likewise.
3155 * javax/swing/ListModel.java: Fixed javadoc.
3156 * javax/swing/Popup.java: Likewise.
3157 * javax/swing/RepaintManager.java
3158 (paintDirtyRegions): Don't use internal classes of
3159 java.util.AbstractMap.
3160 * javax/swing/ScrollPaneConstants.java: Reindented.
3161 * javax/swing/ScrollPaneLayout.java
3162 (viewport): Made protected.
3163 (verticalScrollBar): Made protected, renamed to vsb.
3164 (horizontalScrollBar): Made protected, renamed to hsb.
3165 (rowHeader): Made protected, renamed to rowHead.
3166 (columnHeader): Made protected, renamed to colHead.
3167 (lowerLeft): Made protected.
3168 (lowerRight): Made protected.
3169 (upperLeft): Made protected.
3170 (upperRight): Made protected.
3171 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3172 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3174 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
3176 * java/awt/MediaTracker.java (imageUpdate): Only set status to
3177 LOADING if flags has SOMEBITS set.
3179 2004-06-07 Michael Koch <konqueror@gmx.de>
3181 * javax/swing/AbstractButton.java: Reorganized imports.
3182 * javax/swing/ActionMap.java: Likewise.
3183 * javax/swing/DefaultButtonModel.java: Likewise.
3184 * javax/swing/DefaultListModel.java: Likewise.
3185 * javax/swing/ImageIcon.java: Likewise.
3186 (serialVersionUID): New member variable.
3187 * javax/swing/JComboBox.java: Reorganized imports.
3188 * javax/swing/JComponent.java: Likewise.
3189 (ui): Made protected.
3190 (listenerList): Made protected.
3191 (TOOL_TIP_TEXT_KEY): New constant.
3192 (scrollRectToVisible): Removed redundant null check.
3193 * javax/swing/JFrame.java: Reorganized imports.
3194 * javax/swing/JInternalFrame.java: Reorganized imports.
3195 * javax/swing/JProgressBar.java: Likewise.
3196 * javax/swing/JRootPane.java: Likewise.
3197 * javax/swing/JScrollBar.java: Likewise.
3198 * javax/swing/JSeparator.java: Likewise.
3199 * javax/swing/JSlider.java: Likewise.
3200 * javax/swing/JTabbedPane.java: Likewise.
3201 * javax/swing/JTextField.java: Likewise.
3202 * javax/swing/JToolBar.java: Likewise.
3203 * javax/swing/JTree.java: Likewise.
3204 * javax/swing/JViewport.java: Likewise.
3205 * javax/swing/JWindow.java: Likewise.
3206 * javax/swing/KeyStroke.java: Likewise.
3207 * javax/swing/LookAndFeel.java: Likewise.
3208 * javax/swing/MenuSelectionManager.java: Likewise.
3209 * javax/swing/SwingUtilities.java: Likewise.
3210 * javax/swing/Timer.java: Likewise.
3211 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3212 * javax/swing/JList.java
3213 (HORIZONTAL_WRAP): Made final, fixed value.
3214 (VERTICAL): Likewise.
3215 (VERTICAL_WRAP): Likewise.
3217 2004-06-07 Michael Koch <konqueror@gmx.de>
3219 * javax/swing/AbstractButton.java
3220 (serialVersionUID): New member variable.
3221 (AccessibleAbstractButton.serialVersionUID): Likewise.
3222 (AbstractButton): Made public.
3223 * javax/swing/Box.java
3224 (AccessibleBox.serialVersionUID): New member variable.
3225 (Filler.serialVersionUID): Likewise.
3226 * javax/swing/DefaultListSelectionModel.java
3227 (serialVersionUID): Likewise.
3228 * javax/swing/JApplet.java
3229 (serialVersionUID): Likewise.
3230 * javax/swing/JCheckBox.java
3231 (serialVersionUID): Likewise.
3232 * javax/swing/JCheckBoxMenuItem.java
3233 (serialVersionUID): Likewise.
3234 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3235 * javax/swing/JColorChooser.java
3236 (serialVersionUID): Likewise.
3237 (AccessibleJColorChooser.serialVersionUID): Likewise.
3238 * javax/swing/JComponent.java
3239 (serialVersionUID): Made private.
3240 (AccessibleJComponent.serialVersionUID): New member variable.
3241 * javax/swing/JDesktopPane.java
3242 (serialVersionUID): Likewise.
3243 * javax/swing/JDialog.java
3244 (serialVersionUID): Likewise.
3245 * javax/swing/JFormattedTextField.java
3246 (serialVersionUID): Fixed value.
3247 * javax/swing/JFrame.java
3248 (serialVersionUID): New member variable.
3249 (getDefaultCloseOpertation): Made public.
3250 * javax/swing/JLayeredPane.java
3251 (serialVersionUID): Likewise.
3252 (LAYER_PROPERTY): Made final, fixed value.
3253 (JLayeredPane): Made public.
3254 * javax/swing/JMenu.java
3255 (AccessibleJMenu.serialVersionUID): New member variable.
3256 (WinListener.serialVersionUID): Likewise.
3257 * javax/swing/JMenuBar.java
3258 (serialVersionUID): Likewise.
3259 (getComponentAtIndex): Added @deprecated tag.
3260 * javax/swing/JMenuItem.java
3261 (serialVersionUID): New member variable.
3262 (AccessibleJMenuItem.serialVersionUID): Likewise.
3263 * javax/swing/JOptionPane.java
3264 (serialVersionUID): Likewise.
3265 (AccessibleJOptionPane.serialVersionUID): Likewise.
3266 * javax/swing/JPopupMenu.java
3267 (serialVersionUID): Likewise.
3268 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3269 (getPopupMenuListeners): New method.
3270 (getComponentAtIndex): Added @deprecated tag.
3271 * javax/swing/JProgressBar.java
3272 (serialVersionUID): New member variable.
3273 (AccessibleJProgressBar.serialVersionUID): Likewise.
3274 * javax/swing/JRadioButton.java
3275 (serialVersionUID): Likewise.
3276 * javax/swing/JRadioButtonMenuItem.java
3277 (serialVersionUID): Likewise.
3278 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3279 * javax/swing/JScrollBar.java
3280 (serialVersionUID): Likewise.
3281 (AccessibleJScrollBar.serialVersionUID): Likewise.
3282 * javax/swing/JSeparator.java
3283 (serialVersionUID): Likewise.
3284 (AccessibleJSeparator.serialVersionUID): Likewise.
3285 * javax/swing/JSlider.java: Fixed javadocs.
3286 (AccessibleJSlider.serialVersionUID): New member variable.
3287 * javax/swing/JSplitPane.java: Added copyright statement.
3288 (serialVersionUID): New member variable.
3289 (AccessibleJSplitPane.serialVersionUID): Likewise.
3290 * javax/swing/JTabbedPane.java
3291 (serialVersionUID): Likewise.
3292 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3293 (ModelListener.serialVersionUID): Likewise.
3294 (ModelListener.ModelListener): New constructor.
3295 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3296 (WRAP_TAB_LAYOUT): Likewise.
3297 * javax/swing/JTable.java
3298 (serialVersionUID): New member variable.
3299 * javax/swing/JToggleButton.java
3300 (serialVersionUID): Likewise.
3301 (ToggleButtonModel): Made static.
3302 (ToggleButtonModel.serialVersionUID): New member variable.
3303 * javax/swing/JToolTip.java
3304 (serialVersionUID): Likewise.
3305 * javax/swing/JTree.java
3306 (serialVersionUID): Likewise.
3307 * javax/swing/JWindow.java
3308 (serialVersionUID): Likewise.
3309 * javax/swing/Timer.java
3310 (serialVersionUID): Likewise.
3312 2004-06-06 Michael Koch <konqueror@gmx.de>
3314 * javax/swing/SwingConstants.java
3315 (NEXT): New constant.
3316 (PREVIOUS): Likewise.
3317 * javax/swing/UIManager.java
3318 (LookAndFeel): Made public.
3319 (LookAndFeel.getClassName): Likewise.
3320 (LookAndFeel.getName): Likewise.
3322 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3324 * javax/swing/JCheckBoxMenuItem.java:
3326 * javax/swing/JMenu.java: Likewise.
3327 * javax/swing/JMenuBar.java: Likewise.
3328 * javax/swing/JMenuItem.java: Likewise.
3329 * javax/swing/JPopupMenu.java: Likewise.
3330 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3331 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3332 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3333 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3334 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3335 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3336 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3338 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3340 * javax/swing/plaf/basic/BasicMenuUI.java:
3341 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3342 Call getPath() from super class instead.
3344 2004-05-31 David Jee <djee@redhat.com>
3346 * java/awt/Container.java
3347 (remove): Set component visibility to false after removing it.
3349 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3351 * java/awt/Component.java (getForeground): Return SystemColor if
3353 (getBackground): Likewise.
3355 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3356 (item_highlighted): New function.
3357 (connectSignals): Set item_highlighted as list's select
3360 * java/applet/Applet.java: Revert changes from 2004-04-29,
3361 2004-03-15 and 2004-03-14.
3363 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3364 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3367 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3368 "Dialog" as the default font.
3369 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3371 * java/awt/Component.java (getFont): Return "Dialog" font by
3373 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3374 Multiply size argument to pango_font_description_set_size by the
3375 DPI conversion factor rather than by PANGO_SCALE.
3376 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3377 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3378 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3379 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3380 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3381 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3382 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3383 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3384 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3385 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3386 Divide baseline y coordinate by DPI conversion factor rather
3387 than by PANGO_SCALE.
3388 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3389 (area_prepared): Fix typo.
3390 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3391 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3392 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3393 (dpi_conversion_factor): New global variable.
3394 (init_dpi_conversion_factor): New function to calculate and
3395 track DPI conversion factor.
3396 (dpi_changed_cb): New callback.
3397 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3399 2004-05-27 David Jee <djee@redhat.com>
3401 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3402 (getGraphics): Return a new GdkGraphics instance.
3403 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3404 (getGraphics): Call super.getGraphics().
3406 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3408 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3409 (setNativeBounds): Clamp width and height values to >= 0.
3411 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3412 (find_fg_color_widget): Handle GtkOptionMenu specially.
3414 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3415 (pre_event_handler): Only post configure events to visible
3418 2004-05-26 David Jee <djee@redhat.com>
3420 * java/awt/BorderLayout.java
3421 (layoutContainer): Fix size calculations.
3423 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3425 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3426 (window_wm_protocols_filter): Remove function.
3427 (create): Remove filter that removes WM_TAKE_FOCUS client
3430 2004-06-17 Anthony Green <green@redhat.com>
3432 * java/util/zip/ZipFile.java (getInputStream): Return null if
3435 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3436 directory contents to the class path.
3438 2004-06-15 Andrew Haley <aph@redhat.com>
3440 * java/lang/natSystem.cc (getenv0): Don't assume environment
3441 variable is Latin 1 coded.
3443 2004-06-14 Andreas Jaeger <aj@suse.de>
3445 * configure.in: Support --enable-version-specific-runtime-libs.
3446 * configure: Regenerated.
3448 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3450 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3451 to pass ClassLoader argument.
3452 * java/util/GregorianCalendar.java: Likewise.
3453 * java/util/Currency.java: Likewise.
3454 * java/text/BreakIterator.java: Likewise.
3455 * java/text/Collator.java: Likewise.
3456 * java/text/DateFormat.java: Likewise.
3457 * java/text/DateFormatSymbols.java: Likewise.
3458 * java/text/DecimalFormatSymbols.java: Likewise.
3459 * java/text/NumberFormat.java: Likewise.
3460 * java/awt/Window.java: Likewise.
3462 2004-06-14 Andrew Haley <aph@redhat.com>
3464 * java/lang/System.java: (getenv0): New method.
3465 (getenv): Add security check. Do the right thing.
3466 * java/lang/natSystem.cc (getenv0): New method.
3468 2004-06-12 Mark Wielaard <mark@klomp.org>
3470 * javax/swing/RepaintManager.java
3471 (paintDirtyRegions): Use entrySet(), not values().
3473 2004-06-10 Mark Wielaard <mark@klomp.org>
3475 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3478 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3480 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3481 when we already know the answer.
3482 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3483 (setStartRule,setEndRule): Don't take abs of day number.
3484 (getOffset): Clarify docs. Add argument checks.
3485 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3486 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3489 2004-06-10 Tom Tromey <tromey@redhat.com>
3491 * interpret.cc (run): Handle wide fload.
3493 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3495 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3497 2004-06-05 Michael Koch <konqueror@gmx.de>
3499 * javax/swing/SwingConstants.java
3500 (NEXT): New constant.
3501 (PREVIOUS): Likewise.
3503 2004-06-05 Michael Koch <konqueror@gmx.de>
3505 * javax/swing/UIManager.java
3506 (LookAndFeel): Made public.
3507 (LookAndFeel.getName): Likewise.
3508 (LookAndFeel.getClassName): Likewise.
3510 2004-06-03 Michael Koch <konqueror@gmx.de>
3512 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3513 (requestFocus): Revert last changes.
3514 (gtkRequestFocus): Removed.
3515 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3516 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3518 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3519 Reverted last patch.
3520 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3521 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3522 Reverted comment change.
3524 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3526 * javax/swing/JCheckBoxMenuItem.java:
3528 * javax/swing/JMenu.java: Likewise.
3529 * javax/swing/JMenuBar.java: Likewise.
3530 * javax/swing/JMenuItem.java: Likewise.
3531 * javax/swing/JPopupMenu.java: Likewise.
3532 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3533 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3534 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3535 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3536 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3537 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3538 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3540 2004-06-01 Tom Tromey <tromey@redhat.com>
3542 * java/io/ObjectStreamField.java: Cleaned up imports.
3544 2004-06-01 Michael Koch <konqueror@gmx.de>
3546 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3548 2004-06-01 Mark Wielaard <mark@klomp.org>
3550 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3552 2004-06-01 Michael Koch <konqueror@gmx.de>
3554 * java/security/Security.java
3555 (insertProviderAt): Use equals() instead of ==.
3556 (removeProvicer): Likewise.
3557 (getProvider): Likewise.
3558 * java/security/Signature.java
3559 (sign): Don't set state to UNINITIALIZED.
3562 2004-06-01 Mark Wielaard <mark@klomp.org>
3564 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3565 Implement by calling gtkRequestFocus.
3566 (gtkRequestFocus): New native method.
3567 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3568 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3570 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3572 (filter_expose_event_handler):
3574 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3575 (menu_pos): Mark static.
3577 2004-06-01 Michael Koch <konqueror@gmx.de>
3579 * java/text/CollationElementIterator.java,
3580 java/text/CollationKey.java,
3581 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3582 * testsuite/libjava.mauve/xfails: Removed all
3583 java.text.CollationElementIterator tests.
3585 2004-06-01 Michael Koch <konqueror@gmx.de>
3587 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3589 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3590 Java 1.5 keyword usage.
3592 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3594 * javax/swing/plaf/basic/BasicMenuUI.java:
3595 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3596 Call getPath() from super class instead.
3598 2004-05-31 Michael Koch <konqueror@gmx.de>
3600 * java/io/SequenceInputStream.java:
3601 Rename enum to e because enum is a keyword in Java 1.5.
3603 2004-05-31 Michael Koch <konqueror@gmx.de>
3605 * gnu/java/rmi/rmic/CompilerProcess.java:
3606 Fixed javadoc to by XHTML compliant.
3608 2004-05-30 Mark Wielaard <mark@klomp.org>
3610 * java/awt/Toolkit.java (loadSystemColors): Implement.
3612 2004-05-30 Michael Koch <konqueror@gmx.de>
3614 * java/lang/System.java: Reordered imports.
3616 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3618 * java/text/DecimalFormat.java
3619 (parse): Fixed parsing of decimal strings. Number of maximum
3620 digits to be read should now work.
3621 * java/text/SimpleDateFormat.java
3622 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3623 formatter. This fixes DateFormatTest.
3625 2004-05-30 Michael Koch <konqueror@gmx.de>
3627 * java/nio/Buffer.java
3628 (limit): Fixed off by one error.
3629 * java/nio/CharBuffer.java
3630 (wrap): Fixed arguments, added javadocs.
3632 2004-05-30 Michael Koch <konqueror@gmx.de>
3634 * gnu/java/beans/BeanInfoEmbryo.java,
3635 java/awt/im/InputContext.java,
3636 javax/swing/tree/DefaultMutableTreeNode.java:
3637 Rename enum to e because enum is a keyword in Java 1.5.
3639 2004-05-30 Michael Koch <konqueror@gmx.de>
3641 * gnu/java/math/MPN.java,
3642 java/awt/geom/Arc2D.java:
3643 Fixed javadocs all over.
3645 2004-05-30 Michael Koch <konqueror@gmx.de>
3647 * java/awt/DefaultKeyboardFocusManager.java
3648 (dispatchEvent): Call method to get key event dispatchers.
3649 (dispatchKeyEvent): Call method to get key event post processors.
3650 * javax/swing/JComponent.java
3651 (listenerList): Made protected.
3652 * javax/swing/JOptionPane.java
3653 (message): Don't initialize.
3654 (JOptionPane): Set message text.
3655 * javax/swing/JPopupMenu.java
3656 (show): Fixed typo in argument name.
3657 * javax/swing/RepaintManager.java
3658 (paintDirtyRegions): Use public API of java.util.Map.
3659 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3660 (positionForMouseEvent): Removed redundant ';'.
3661 (continueDrag): Use method arguments.
3663 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3665 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3668 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3670 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3672 * gnu/gcj/RawDataManaged.java: New file.
3673 * java/lang/Thread.java (data): Declare as RawDataManaged.
3674 * java/lang/natThread.cc (init_native): Cast natThread data to
3675 RawDataManaged, not jobject.
3676 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3677 * Makefile.in: Rebuilt.
3679 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3681 * java/util/SimpleTimeZone.java: Reverting my last change until I
3682 can fix it properly.
3684 2004-05-27 Michael Koch <konqueror@gmx.de>
3686 * javax/swing/JPopupMenu.java
3687 (isVisible): Do not use visible directly.
3688 (setVisible): Likewise.
3689 * javax/swing/JWindow.java
3690 (JWindow): call accessible constructor.
3691 * javax/swing/RepaintManager.java
3692 (paintDirtyRegions): Use public methods to obtain iterator.
3694 2004-05-25 David Jee <djee@redhat.com>
3696 * java/awt/Container.java
3697 (remove): Set component's parent to null only after we removed the
3698 component from its parent's layout manager.
3700 2004-05-25 David Jee <djee@redhat.com>
3702 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3703 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3705 * gnu/java/awt/peer/gtk/GtkListPeer.java
3706 (getSize): Change native method declaration.
3707 (minimumSize): Pass visible row count into getSize().
3708 (preferredSize): Likewise.
3709 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3710 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3711 natural size. Use visible row count to determine the final height
3714 2004-05-21 Graydon Hoare <graydon@redhat.com>
3716 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3717 (setClip): Minor correction to order of operations.
3719 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3720 * javax/swing/ScrollPaneLayout.java: Likewise.
3721 * javax/swing/JViewPort.java: Likewise.
3722 * javax/swing/ViewportLayout.java: Likewise.
3724 * javax/swing/JComponent.java: Rewrite.
3725 * javax/swing/RepaintManager.java: Likewise.
3727 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3728 * javax/swing/JList.java
3729 (setSelectedIndices):
3730 (getSelectedIndices):
3731 (getSelectedValues): New functions.
3732 (getPreferredScrollableViewportSize): Return preferred size.
3733 (getScrollableUnitIncrement):
3734 (getScrollableBlockIncrement): Initial implementations.
3735 * javax/swing/JRootPane.java: Clean up slightly.
3740 (isValidateRoot): Add overrides from JComponent.
3741 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3742 * javax/swing/UIManager.java (getDimension): Return the dimension.
3744 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3745 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3746 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3747 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3748 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3749 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3750 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3751 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3752 Likewise, and set background.
3753 * javax/swing/plaf/basic/BasicListUI.java:
3754 Likewise, and improve a bit.
3755 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3756 Likewise, and adjust calculations.
3757 * javax/swing/plaf/basic/BasicViewportUI.java:
3758 Likewise, and improve a bit.
3759 * javax/swing/plaf/basic/BasicLookAndFeel.java
3760 (Button.margin): Shrink.
3762 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3763 Hack to set horizontal always, workaround pango.
3765 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3766 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3767 Synchronize more often, check cairo status after ops,
3768 handle changes to cairo pattern API, check for disposal.
3770 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3772 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3773 (BasicMenuItemUI): Create propertyChangeListener.
3774 (getPath):Implemented.
3775 (installListeners): Add propertyChangeListener to menuItem.
3776 (uninstallListeners): Remove propertyChangeListener from menuItem.
3777 (update): Implemented.
3778 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3779 (mouseEntered): Take insets of popup menu into account when
3780 calculating position of popup menu.
3782 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3784 * Makefile.am: Added new file.
3785 * Makefile.in: Regenerate.
3786 * javax/swing/JMenuBar.java:
3787 Started implementation.
3788 * javax/swing/JPopupMenu.java:
3789 (setVisible): Fixed location of lightweight/mediumweight
3791 (show): Fixed location of PopupMenu.
3792 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3793 New file. UI Delegate for JMenuBar.
3794 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3795 (mouseEntered): Corrected position of the submenu.
3797 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3799 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3800 to _gtk_accel_group_attach.
3801 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3804 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3805 package access. Don't override setFont.
3806 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3807 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3808 gtkWidgetRequestFocus package access.
3809 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3811 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3812 Give gtkWidgetRequestFocus package access.
3813 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3814 gtkWidgetRequestFocus package access. Don't override setFont.
3815 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3817 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3818 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3820 (gtkSetFont): Likewise.
3821 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3823 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3824 (gtkSetFont): Whitespace fix.
3826 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3827 (gtkWidgetSetUsize): Remove method.
3829 2004-05-18 David Jee <djee@redhat.com>
3831 * java/awt/image/MemoryImageSource.java
3832 (newPixels(int,int,int,int,boolean)): Set only the specified
3833 rectangle of pixels.
3834 (newPixels(byte[],ColorModel,int,int)): Implement.
3835 (newPixels(int[],ColorModel,int,int)): Implement.
3837 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3839 * Makefile.am: Added new file.
3840 * Makefile.in: Regenerate.
3841 * javax/swing/JMenu.java: Started
3843 * javax/swing/JPopupMenu.java:
3844 (insert): If specified index is -1, then
3845 add component at the end.
3846 (isPopupTrigger): Reimplemented.
3847 (JPopupMenu.LightWeightPopup): setBounds
3848 of the lightWeightPopup before adding it
3850 (javax/swing/plaf/basic/BasicIconFactory.java):
3851 (getMenuArrowIcon): Implemented.
3852 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3853 (getPreferredSize): Add size of the arrow icon
3854 if this menu item is instance of JMenu.
3855 (paintMenuItem): Paint arrow icon if this
3856 menu item is a submenu.
3857 * javax/swing/plaf/basic/BasicMenuUI.java:
3858 New File. UI Delegate for JMenu.
3860 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3862 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3863 Post KEY_TYPED events.
3864 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3865 (generates_key_typed_event): Remove function.
3867 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3869 * javax/swing/JRootPane.java
3870 (JRootPane.RootLayout): Reimplemented to
3871 set bounds of contentPane and menuBar.
3872 (setJMenuBar): Add menu bar to the layered pane.
3873 (createLayeredPane): Set layout of layeredPane
3875 * javax/swing/JLayeredPane.java:
3876 (addImpl): Calculate index of the component in the
3877 layeredPane according to the specified position within
3880 2004-05-17 David Jee <djee@redhat.com>
3882 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3883 (setPixels): Change color model to the default model after
3885 * java/awt/image/MemoryImageSource.java
3886 (newPixels): Set only the specified rectangle of pixels.
3888 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3890 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3891 -l-java-beans -l-javax-accessibility -l-javax-swing.
3893 * java/awt/AWTEvent.java (toString): Print source's name rather
3894 than the source itself.
3896 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3898 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3900 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3901 (gdk_color_to_java_color): New function.
3902 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3904 2004-05-12 David Jee <djee@redhat.com>
3906 * java/awt/image/RGBImageFilter.java:
3907 Initialize origmodel as null.
3908 (makeColor): Fix pixel component order.
3909 (filterRGBPixels): Fix pixel iteration.
3910 (setPixels): Add extra checks for index color model. Convert pixels
3911 to default color model if necessary.
3912 (convertColorModelToDefault): New override method for byte pixels.
3913 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3914 (makeColorbyDefaultCM): New override method for byte pixels.
3915 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3916 (makeColor): Fix pixel component order.
3918 2004-05-11 Kim Ho <kho@redhat.com>
3920 * javax/swing/Box.java:
3921 Comment out more parts of Box.Filler.
3923 2004-05-11 Kim Ho <kho@redhat.com>
3925 * javax/swing/Box.java:
3926 Remove reference to AccessibleAWTComponent so
3929 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3931 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3932 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3933 implementation of list peer to use GtkTreeView instead of
3934 deprecated GtkCList.
3936 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3938 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3939 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3940 (handleEvent): Remove keyChar argument to
3941 gtkWidgetDispatchKeyEvent calls.
3942 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3944 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3945 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3946 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3949 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3951 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3952 (gtkWidgetRequestFocus): Mark protected.
3953 (GtkComponentPeer): Only set the peer's bounds if its component
3955 * java/awt/Component.java (static): Set the default keyboard
3957 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3958 requestFocusInWindow(temporary)): Don't request focus if the
3959 component is not showing. Get tree lock before traversing
3960 component hierarchy.
3961 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3962 Only set the global focus owner if it is not a Window.
3963 (processKeyEvent): Consume keystrokes associated with the focus
3964 traversal keystroke.
3965 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3966 downFocusCycle): Call requestFocusInWindow instead of
3968 * java/awt/EventDispatchThread.java (run): Move setting of
3969 default keyboard focus manager to Component.java.
3970 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3971 (awt_keycode_to_keysym): New function.
3972 (gtkWidgetDispatchKeyEvent): Finish implementation.
3973 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3974 (pre_event_handler): Add FIXME comment.
3976 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3977 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3978 (gtkWidgetRequestFocus): New method.
3979 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3980 disable Tab and Shift-Tab keystrokes.
3981 (addNotify, appendText, insertText, replaceText): Simplify peer
3983 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3984 (connectSignals): Remove connections to "commit" signals.
3985 Remove C++-style comments.
3987 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3988 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3989 (handleEvent): Activate GTK button when the space bar key is
3991 (gtkActivate): New method.
3993 2004-05-06 David Jee <djee@redhat.com>
3995 * java/awt/image/CropImageFilter.java
3996 (setPixels): Implement for byte array pixels.
3997 * java/awt/image/ReplicateScaleFilter.java
3998 (setPixels): Implement for byte array pixels.
3999 (replicatePixels): Overload for byte array pixels.
4001 2004-05-06 Kim Ho <kho@redhat.com>
4003 * javax/swing/Box.java:
4004 (getAccessibleContext): Return an instance of the
4007 2004-05-05 David Jee <djee@redhat.com>
4009 * gnu/java/awt/peer/gtk/GdkGraphics.java
4010 (drawImage): When component is null, use SystemColor.window as
4011 the default bgcolor.
4012 * gnu/java/awt/peer/gtk/GtkImage.java
4013 (setPixels): We can avoid iterating through the pixel rows only
4015 * java/awt/Image.java
4016 (getScaledInstance): Partially implement.
4017 * java/awt/image/CropImageFilter.java
4018 (setProperties): Fix "filter" property.
4019 (setPixels): Implement.
4020 * java/awt/image/ReplicateScaleFilter.java
4021 (setDimensions): Use scaled dimensions.
4022 (setPixels): Implement.
4023 (replicatePixels): New method.
4025 2004-05-05 David Jee <djee@redhat.com>
4027 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4028 (convertPixels): If either pixels or model is null, return null.
4029 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
4030 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
4031 is null, do nothing and return.
4033 2004-05-03 Kim Ho <kho@redhat.com>
4035 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
4036 (getGraphics): Like GtkFramePeer, the Graphics
4037 object needs to be translate to account for
4039 (postMouseEvent): New method. Account for
4041 (postExposeEvent): ditto.
4042 * javax/swing/Box.java: Stubbed.
4043 * javax/swing/JDialog.java: Ran through jalopy
4045 (JDialog): Call SwingUtilities' getOwnerFrame
4047 (setLayout): Check isRootPaneCheckingEnabled
4048 * javax/swing/JOptionPane.java: Re-implemented.
4049 * javax/swing/SwingUtilities.java:
4050 (getOwnerFrame): Static method to grab a default
4051 owner frame for Dialogs that don't specify owners.
4052 * javax/swing/event/SwingPropertyChangeSupport.java:
4053 (firePropertyChange): Fix early exit condition.
4054 * javax/swing/plaf/basic/BasicLabelUI.java:
4055 (paint): Avoid painting text if it is null
4057 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4060 2004-05-03 Olga Rodimina <rodimina@redhat.com>
4062 * Makefile.am: Added new file.
4063 * Makefile.in: Regenerate.
4064 * javax/swing/JPopupMenu.java:
4065 Started implementation.
4066 * javax/swing/JWindow.java
4067 (JWindow): call super() if parent for window
4069 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4070 New File. UI Delegate for JPopupMenu.
4072 2004-04-30 Olga Rodimina <rodimina@redhat.com>
4074 * javax/swing/JApplet.java: Indicated that JApplet
4075 implements RootPaneContainer and made method of this
4077 * javax/swing/JFrame.java: Ditto.
4078 * javax/swing/JWindow.java: Ditto.
4080 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
4082 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4083 (nativeSetBounds): Call gdk_window_move in addition to
4086 * java/applet/Applet.java (preferredSize): Call parent's
4087 preferredSize if the applet stub is null.
4088 (minimumSize): Likewise for parent's minimumSize.
4090 2004-04-27 Olga Rodimina <rodimina@redhat.com>
4092 * javax/swing/JMenuItem.java
4093 (createActionPropertyChangeListener): Implemented.
4094 (processMouseEvent): Ditto.
4095 (fireMenuDragMouseEntered): Ditto.
4096 (fireMenuDragMouseExited): Ditto.
4097 (fireMenuDragMouseDragged): Ditto.
4098 (fireMenuDragMouseReleased): Ditto.
4099 (menuSelectionChanged): Ditto.
4100 (getSubElements): Ditto.
4101 (getComponent): Ditto.
4102 (addMenuDragMouseListener): Ditto.
4103 (removeMenuDragMouseListener):Ditto.
4104 (addMenuKeyListener): Ditto.
4105 (removeMenuKeyListener): Ditto.
4106 * javax/swing/plaf/basic/BasicMenuItemUI.java
4107 (doClick): Imlemented.
4108 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
4109 Don't handle mouse events here. Pass them to
4110 MenuSelectionManager.
4112 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4113 Used correct version of jalopy configuration
4114 file to fix style in the files below.
4116 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4118 * javax/swing/JCheckBoxMenuItem.java:
4119 Fixed style and removed unnecessary comments.
4120 * javax/swing/JMenuItem.java: Ditto.
4121 * javax/swing/JRadioButtonMenuItem.java: Ditto.
4122 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
4123 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
4124 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
4126 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
4128 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
4131 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
4133 * java/awt/ContainerOrderFocusTraversalPolicy.java
4134 (getComponentAfter): Start from current component and work up
4135 the component hierarchy until an acceptable component is found.
4136 Synchronize on tree lock.
4137 (getComponentBefore): Likewise.
4139 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
4141 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
4142 focus-related debugging messages.
4143 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
4144 * java/awt/EventDispatchThread.java: Likewise.
4145 * java/awt/KeyboardFocusManager.java: Likewise.
4146 * java/awt/Window.java: Likewise.
4147 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
4148 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4150 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
4151 new C++-style comments to C-style comments.
4152 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4154 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4155 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4156 (handleEvent): Dispatch key press and key release events to
4158 (requestFocus): Post a FOCUS_GAINED event to the event queue.
4159 (gtkWidgetRequestFocus): New method.
4160 (gtkWidgetDispatchKeyEvent): Likewise.
4161 * java/awt/Component.java (requestFocus, requestFocus(boolean),
4162 requestFocusInWindow, requestFocusInWindow(boolean),
4163 getFocusCycleRootAncestor, nextFocus, transferFocus,
4164 transferFocusBackward, transferFocusUpCycle, hasFocus,
4165 isFocusOwner): Implement and document focus-handling methods.
4166 (setFocusTraversalKeys): Inherit focus traversal keys when
4167 keystrokes argument is null. Fix focus-handling documentation
4169 * java/awt/Container.java (setFocusTraversalKeys,
4170 getFocusTraversalKeys, areFocusTraversalKeysSet,
4171 isFocusCycleRoot, setFocusTraversalPolicy,
4172 getFocusTraversalPolicy, isFocusTraversalPolicySet,
4173 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4174 Implement and document focus-handling methods.
4175 (transferFocusBackward): Remove method.
4176 (readObject, writeObject): Implement and document serialization
4178 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4180 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4182 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4184 * java/awt/EventDispatchThread.java (run): Set default keyboard
4185 focus manager. Attempt to dispatch each event to the keyboard
4186 focus manager before normal dispatch.
4187 * java/awt/KeyboardFocusManager.java: Implement and partially
4189 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4190 (show): Focus initial component when window is shown for the
4192 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4193 (pre_event_handler): Replace complex key press and key release
4194 logic with simple callbacks into GtkComponentPeer.
4195 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4197 2004-04-21 Olga Rodimina <rodimina@redhat.com>
4199 * javax/swing/MenuSelectionManager.java
4200 (componentForPoint): Added new method.
4201 (defaultManager): New Method. Implemented.
4202 (getSelectedPath): Ditto.
4203 (isComponentPartOfCurrentMenu): Ditto.
4204 (processKeyEvent): Added new method.
4205 (processMouseEvent): New Method. Implemented.
4206 (setSelectedPath): Ditto.
4209 2004-04-19 Kim Ho <kho@redhat.com>
4211 * java/awt/Container.java:
4212 (remove): Set the component's parent to null.
4213 (getComponentAt): Implement.
4214 * javax/swing/JComponent.java:
4215 (JComponent): Initialize defaultLocale
4216 (getDefaultLocale): Implement.
4217 (setDefaultLocale): ditto.
4218 * javax/swing/JSlider.java:
4219 (JSlider): Fix calculation of value.
4220 * javax/swing/JSplitPane.java: Implement.
4221 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4222 Change SplitPane's default divider size.
4223 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4224 (paint): Remove unused code.
4225 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4226 Added comments and ran through jalopy.
4227 (setBasicSplitPaneUI): Get reference to hidden divider
4228 and set up one touch buttons if necessary.
4229 (setBorder): Fire propertyChangeEvent only if
4230 borders are different.
4231 (getPreferredSize): Defer to layout manager.
4232 (propertyChange): Implement.
4233 (oneTouchExpandableChanged): ditto.
4234 (createLeftOneTouchButton): Use BasicArrowButton.
4235 (createRightOneTouchButton): ditto.
4236 (moveDividerTo): New method. Moves the divider
4237 to a set location based on the last divider location.
4238 (BasicSplitPaneDivider::MouseHandler): Implement.
4239 (BasicSplitPaneDivider::OneTouchButton): Removed.
4240 (BasicSplitPaneDivider::DragController): Implement.
4241 (BasicSplitPaneDivider::VerticalDragController):
4243 (BasicSplitPaneDivider::DividerLayout): ditto.
4244 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4245 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4246 (calculateLayoutInfo): Don't show component if it's
4248 (paintTab): Fix title paint logic.
4250 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
4253 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4254 (setStartRule,setEndRule): Don't take abs of day number.
4255 (getOffset): Clarify docs. Add argument checks.
4256 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4257 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4259 * testsuite/libjava.mauve/xfails
4260 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4262 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4264 Layout interfaces during preparation, not initialization.
4265 * java/lang/natClass.cc (initializeClass): Move
4266 _Jv_LayoutInterfaceMethods call...
4267 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4269 2004-05-19 Anthony Green <green@localhost.localdomain>
4271 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4273 * Makefile.in: Rebuilt.
4274 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4275 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4276 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4277 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4278 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4279 gnu/javax/rmi/CORBA/DelegateFactory.java,
4280 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4281 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4282 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4283 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4284 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4285 gnu/javax/rmi/PortableServer.java: Remove files.
4287 2004-05-19 Anthony Green <green@redhat.com>
4289 * Makefile.am: Define JAVA_EXT_DIRS.
4290 * Makefile.in: Rebuilt.
4291 * java/lang/natRuntime.cc (insertSystemProperties): Set
4292 java.ext.dirs property.
4294 2004-05-16 Mark Wielaard <mark@klomp.org>
4296 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4298 2004-05-15 Mark Wielaard <mark@klomp.org>
4300 * doc/cni.sgml: Removed, merged into gcj.texi.
4302 2004-05-15 Mark Wielaard <mark@klomp.org>
4304 * Makefile.am (ordinary_java_source_files): Add new javax.print
4306 * Makefile.in: Regenerated.
4308 2004-05-15 Michael Koch <konqueror@gmx.de>
4310 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4311 javax/print/attribute/standard/DateTimeAtCreation.java,
4312 javax/print/attribute/standard/DateTimeAtProcessing.java,
4313 javax/print/attribute/standard/DocumentName.java,
4314 javax/print/attribute/standard/JobHoldUntil.java,
4315 javax/print/attribute/standard/JobImpressionsCompleted.java,
4316 javax/print/attribute/standard/JobMessageFromOperator.java,
4317 javax/print/attribute/standard/JobName.java,
4318 javax/print/attribute/standard/JobOriginatingUserName.java,
4319 javax/print/attribute/standard/JobPriority.java,
4320 javax/print/attribute/standard/JobPrioritySupported.java,
4321 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4322 javax/print/attribute/standard/OutputDeviceAssigned.java,
4323 javax/print/attribute/standard/PrinterInfo.java,
4324 javax/print/attribute/standard/PrinterLocation.java,
4325 javax/print/attribute/standard/PrinterMakeAndModel.java,
4326 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4327 javax/print/attribute/standard/PrinterName.java,
4328 javax/print/attribute/standard/QueuedJobCount.java,
4329 javax/print/attribute/standard/RequestingUserName.java:
4330 Fixed javadocs all over.
4332 2004-05-15 Michael Koch <konqueror@gmx.de>
4334 * javax/print/DocFlavor.java,
4335 javax/print/attribute/standard/ColorSupported.java,
4336 javax/print/attribute/standard/Compression.java,
4337 javax/print/attribute/standard/CopiesSupported.java,
4338 javax/print/attribute/standard/Fidelity.java,
4339 javax/print/attribute/standard/Finishings.java,
4340 javax/print/attribute/standard/JobImpressionsSupported.java,
4341 javax/print/attribute/standard/JobKOctetsSupported.java,
4342 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4343 javax/print/attribute/standard/JobSheets.java,
4344 javax/print/attribute/standard/JobState.java,
4345 javax/print/attribute/standard/JobStateReason.java,
4346 javax/print/attribute/standard/JobStateReasons.java,
4347 javax/print/attribute/standard/Media.java,
4348 javax/print/attribute/standard/MediaSizeName.java,
4349 javax/print/attribute/standard/MultipleDocumentHandling.java,
4350 javax/print/attribute/standard/NumberUpSupported.java,
4351 javax/print/attribute/standard/OrientationRequested.java,
4352 javax/print/attribute/standard/PDLOverrideSupported.java,
4353 javax/print/attribute/standard/PageRanges.java,
4354 javax/print/attribute/standard/PresentationDirection.java,
4355 javax/print/attribute/standard/PrintQuality.java,
4356 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4357 javax/print/attribute/standard/PrinterMoreInfo.java,
4358 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4359 javax/print/attribute/standard/PrinterResolution.java,
4360 javax/print/attribute/standard/PrinterState.java,
4361 javax/print/attribute/standard/PrinterStateReason.java,
4362 javax/print/attribute/standard/PrinterStateReasons.java,
4363 javax/print/attribute/standard/PrinterURI.java,
4364 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4365 javax/print/attribute/standard/Severity.java,
4366 javax/print/attribute/standard/SheetCollate.java,
4367 javax/print/attribute/standard/Sides.java:
4368 Added serialVersionUID and removed final keyword where it doenst
4371 2004-05-15 Michael Koch <konqueror@gmx.de>
4373 * javax/print/PrintServiceLookup.java: New file.
4375 2004-05-15 Michael Koch <konqueror@gmx.de>
4377 * javax/print/DocFlavor.java:
4378 Implemented all flavor classes.
4380 2004-05-15 Michael Koch <konqueror@gmx.de>
4382 * javax/print/attribute/standard/ColorSupported.java,
4383 javax/print/attribute/standard/Compression.java,
4384 javax/print/attribute/standard/CopiesSupported.java,
4385 javax/print/attribute/standard/Fidelity.java,
4386 javax/print/attribute/standard/Finishings.java,
4387 javax/print/attribute/standard/JobImpressionsSupported.java,
4388 javax/print/attribute/standard/JobKOctetsSupported.java,
4389 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4390 javax/print/attribute/standard/JobSheets.java,
4391 javax/print/attribute/standard/JobState.java,
4392 javax/print/attribute/standard/JobStateReason.java,
4393 javax/print/attribute/standard/JobStateReasons.java,
4394 javax/print/attribute/standard/Media.java,
4395 javax/print/attribute/standard/MediaSizeName.java,
4396 javax/print/attribute/standard/MultipleDocumentHandling.java,
4397 javax/print/attribute/standard/NumberUpSupported.java,
4398 javax/print/attribute/standard/OrientationRequested.java,
4399 javax/print/attribute/standard/PDLOverrideSupported.java,
4400 javax/print/attribute/standard/PageRanges.java,
4401 javax/print/attribute/standard/PresentationDirection.java,
4402 javax/print/attribute/standard/PrintQuality.java,
4403 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4404 javax/print/attribute/standard/PrinterMoreInfo.java,
4405 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4406 javax/print/attribute/standard/PrinterResolution.java,
4407 javax/print/attribute/standard/PrinterState.java,
4408 javax/print/attribute/standard/PrinterStateReason.java,
4409 javax/print/attribute/standard/PrinterStateReasons.java,
4410 javax/print/attribute/standard/PrinterURI.java,
4411 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4412 javax/print/attribute/standard/Severity.java,
4413 javax/print/attribute/standard/SheetCollate.java,
4414 javax/print/attribute/standard/Sides.java: New files.
4416 2004-05-15 Michael Koch <konqueror@gmx.de>
4418 * javax/print/Doc.java
4419 (getPrintData): Throws IOException.
4420 (getReaderForText): Likewise.
4421 (getStreamForBytes): Likewise.
4422 * javax/print/DocFlavor.java:
4423 Fixed filename in copyright.
4424 (serialVersionUID): New field.
4425 * javax/print/ServiceUIFactory.java:
4426 Made all constants final.
4427 * javax/print/AttributeException.java
4428 javax/print/MultiDoc.java
4429 javax/print/MultiDocPrintJob.java
4430 javax/print/MultiDocPrintService.java
4431 javax/print/StreamPrintService.java
4432 javax/print/URIException.java: New files.
4433 * javax/print/Makefile.am
4434 (EXTRA_DIST): Added all new files.
4436 2004-05-15 Michael Koch <konqueror@gmx.de>
4438 * javax/print/attribute/standard/Copies.java,
4439 javax/print/attribute/standard/DateTimeAtCompleted.java,
4440 javax/print/attribute/standard/DateTimeAtCreation.java,
4441 javax/print/attribute/standard/DateTimeAtProcessing.java,
4442 javax/print/attribute/standard/DocumentName.java,
4443 javax/print/attribute/standard/JobHoldUntil.java,
4444 javax/print/attribute/standard/JobImpressions.java,
4445 javax/print/attribute/standard/JobImpressionsCompleted.java,
4446 javax/print/attribute/standard/JobKOctets.java,
4447 javax/print/attribute/standard/JobKOctetsProcessed.java,
4448 javax/print/attribute/standard/JobMediaSheets.java,
4449 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4450 javax/print/attribute/standard/JobMessageFromOperator.java,
4451 javax/print/attribute/standard/JobName.java,
4452 javax/print/attribute/standard/JobOriginatingUserName.java,
4453 javax/print/attribute/standard/JobPriority.java,
4454 javax/print/attribute/standard/JobPrioritySupported.java,
4455 javax/print/attribute/standard/NumberOfDocuments.java,
4456 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4457 javax/print/attribute/standard/NumberUp.java,
4458 javax/print/attribute/standard/OutputDeviceAssigned.java,
4459 javax/print/attribute/standard/PagesPerMinute.java,
4460 javax/print/attribute/standard/PagesPerMinuteColor.java:
4461 Fixed @return tag all over.
4463 2004-05-15 Michael Koch <konqueror@gmx.de>
4465 * javax/print/attribute/AttributeSetUtilities.java
4466 (verifyCategoryForValue): Fixed typo in javadoc.
4467 * javax/print/attribute/HashAttributeSet.java
4468 (containsKey): Fixed @return tag.
4469 (comtainsValue): Likewise.
4471 * javax/print/attribute/IntegerSyntax.java
4473 * javax/print/attribute/ResolutionSyntax.java
4475 (getCrossFeedResolution): Removed unused code.
4476 (getFeedResolution): Likewise.
4477 * javax/print/attribute/SetOfIntegerSyntax.java
4478 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4479 (equals): Fixed @return tag.
4480 * javax/print/attribute/TextSyntax.java
4481 (TextSyntax): Take locale into account.
4482 (hashCode): Better implementation.
4484 2004-05-15 Michael Koch <konqueror@gmx.de>
4486 * javax/print/CancelablePrintJob.java,
4487 javax/print/Doc.java,
4488 javax/print/DocFlavor.java,
4489 javax/print/DocPrintJob.java,
4490 javax/print/FlavorException.java,
4491 javax/print/PrintException.java,
4492 javax/print/PrintService.java,
4493 javax/print/ServiceUIFactory.java: New files.
4495 2004-05-15 Mark Wielaard <mark@klomp.org>
4497 * gnu/regexp/CharIndexedReader.java: Removed.
4498 * gnu/regexp/REFilterReader.java: Likewise.
4499 * gnu/regexp/RETokenLookAhead.java: Likewise.
4500 * Makefile.am (ordinary_java_source_files): Remove above classes.
4501 * Makefile.in: Regenerated.
4503 2004-05-14 Tom Tromey <tromey@redhat.com>
4505 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4506 not `XGraphicsConfiguration.XOffScreenImage'.
4508 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4510 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4512 2004-05-14 Steven Augart <augart@watson.ibm.com>
4514 * include/jni.h (_Jv_func): Removed.
4515 (struct JNINativeInterface): Use `void *' for reserved slots.
4516 (struct JNIInvokeInterface): Likewise.
4518 2004-05-11 Michael Koch <konqueror@gmx.de>
4520 * gnu/java/net/natPlainSocketImplPosix.cc
4521 (read): Fixed typo in expression.
4523 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4525 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4526 ld_library_additions. Adjust all calls to libjava_invoke to match
4529 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4530 path to cxxflagslist.
4531 Pass path of libstdc++ to libjava_invoke.
4533 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4534 libjava_invoke arguments.
4536 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4538 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4541 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4543 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4544 main binary against the JNI shared library.
4546 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4548 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4549 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4550 (SimpleTimeZone): Tweak docs. Add new variation.
4551 (setStartRule,setEndRule): Add new variations. Use
4552 startTimeMode and endTimeMode.
4554 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4556 * java/util/Calendar.java (getActualMinimum,
4557 getActualMaximum): Remove abstract. Implement.
4559 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4561 Run the jni tests using the interpreter.
4562 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4563 options_cxx to shared lib compile command.
4564 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4565 they are used to link the shared lib, not the main binary.
4566 Use libjava_invoke to run gij.
4568 2004-05-06 Michael Koch <konqueror@gmx.de>
4570 * java/util/logging/Level.java
4571 (parse): Use == instead of String.equals().
4573 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4575 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4576 verify_field_signature and verify_method_signature, not
4577 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4578 (_Jv_ClassReader::handleField): Likewise.
4579 (_Jv_ClassReader::handleMethod): Likewise.
4581 2004-05-06 Michael Koch <konqueror@gmx.de>
4583 * javax/swing/table/TableColumn.java:
4586 2004-05-06 Michael Koch <konqueror@gmx.de>
4588 * javax/imageio/spi/ImageReaderWriterSpi.java
4589 (ImageReaderWriterSpi): Made it public.
4590 * javax/imageio/stream/ImageInputStream.java:
4593 2004-05-06 Michael Koch <konqueror@gmx.de>
4595 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4598 2004-05-06 Michael Koch <konqueror@gmx.de>
4600 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4601 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4604 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4605 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4606 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4607 their own source file.
4608 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4609 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4610 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4611 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4612 (create): Define variable on top of function.
4613 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4614 (menu_pos): Prototyped.
4615 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4616 (setTitle): Removed.
4617 * jni/gtk-peer/gthread-jni.c
4618 (gdk_threads_wake): Removed.
4619 * Makefile.am (gtk_c_source_files): Added new files
4620 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4621 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4622 * Makefile.in: Regenerated.
4624 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4626 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4629 2004-05-05 Mark Wielaard <mark@klomp.org>
4631 * javax/swing/AbstractButton.java: Replace special HTML entities with
4633 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4634 * javax/swing/DefaultButtonModel.java: Likewise.
4635 * javax/swing/DefaultListModel.java: Likewise.
4636 * javax/swing/JList.java: Likewise.
4637 * javax/swing/JSlider.java: Likewise.
4638 * javax/swing/ListModel.java: Likewise.
4639 * javax/swing/Popup.java: Likewise.
4640 * javax/swing/SwingUtilities.java: Likewise.
4642 2004-05-05 Michael Koch <konqueror@gmx.de>
4644 * javax/swing/AbstractButton.java,
4645 javax/swing/ActionMap.java,
4646 javax/swing/DefaultButtonModel.java,
4647 javax/swing/DefaultListModel.java,
4648 javax/swing/ImageIcon.java,
4649 javax/swing/JComboBox.java,
4650 javax/swing/JComponent.java,
4651 javax/swing/JFrame.java,
4652 javax/swing/JInternalFrame.java,
4653 javax/swing/JMenuBar.java,
4654 javax/swing/JMenuItem.java,
4655 javax/swing/JOptionPane.java,
4656 javax/swing/JProgressBar.java,
4657 javax/swing/JRootPane.java,
4658 javax/swing/JScrollBar.java,
4659 javax/swing/JScrollPane.java,
4660 javax/swing/JSeparator.java,
4661 javax/swing/JSlider.java,
4662 javax/swing/JTabbedPane.java,
4663 javax/swing/JTable.java,
4664 javax/swing/JTextField.java,
4665 javax/swing/JToolBar.java,
4666 javax/swing/JToolTip.java,
4667 javax/swing/JTree.java,
4668 javax/swing/JViewport.java,
4669 javax/swing/JWindow.java,
4670 javax/swing/KeyStroke.java,
4671 javax/swing/LookAndFeel.java,
4672 javax/swing/SwingUtilities.java,
4673 javax/swing/Timer.java,
4674 javax/swing/ToolTipManager.java,
4675 javax/swing/UIDefaults.java,
4676 javax/swing/border/TitledBorder.java,
4677 javax/swing/filechooser/FileSystemView.java,
4678 javax/swing/plaf/basic/BasicButtonListener.java,
4679 javax/swing/plaf/basic/BasicButtonUI.java,
4680 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4681 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4682 javax/swing/plaf/basic/BasicLabelUI.java,
4683 javax/swing/plaf/basic/BasicMenuItemUI.java,
4684 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4685 javax/swing/plaf/basic/BasicRootPaneUI.java,
4686 javax/swing/plaf/basic/BasicScrollBarUI.java,
4687 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4688 javax/swing/plaf/basic/BasicSliderUI.java,
4689 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4690 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4691 javax/swing/table/JTableHeader.java,
4692 javax/swing/text/AbstractDocument.java,
4693 javax/swing/text/DefaultCaret.java,
4694 javax/swing/text/StyledEditorKit.java,
4695 javax/swing/tree/DefaultTreeCellEditor.java:
4698 2004-05-05 Michael Koch <konqueror@gmx.de>
4700 * java/util/prefs/AbstractPreferences.java
4701 (AbstractPreferences): Added parenthesis for clarity.
4702 Closes classpath bug #7940.
4704 2004-05-05 Tom Tromey <tromey@redhat.com>
4706 * javax/naming/CompoundName.java (endsWith): Look at correct
4707 element of source name.
4709 2004-05-05 Mark Wielaard <mark@klomp.org>
4711 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4712 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4714 2004-05-05 Tom Tromey <tromey@redhat.com>
4716 * java/io/BufferedReader.java (skip): Removed unused
4719 2004-05-05 Michael Koch <konqueror@gmx.de>
4721 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4723 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4725 * java/text/AttributedString.java,
4726 java/text/AttributedStringIterator.java,
4727 java/text/Collator.java,
4728 java/text/DecimalFormatSymbols.java,
4729 java/text/NumberFormat.java,
4730 java/text/RuleBasedCollator.java:
4733 2004-05-05 Tom Tromey <tromey@redhat.com>
4735 * java/text/Format.java: Cleaned up imports.
4736 * java/text/DecimalFormat.java: Cleaned up imports.
4737 * java/security/SecureRandom.java: Cleaned up imports.
4738 (SecureRandom): Removed unused variable.
4739 * java/security/UnresolvedPermission.java: Cleaned up imports.
4740 * java/util/Date.java (parse): Removed unused variable.
4741 * java/util/ResourceBundle.java: Cleaned up imports.
4742 (getBundle): Removed unused variable.
4743 (tryBundle): Likewise.
4744 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4746 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4748 * java/text/SimpleDateFormat.java:
4749 (formatWithAttribute): New method. It implements
4750 the formatting process with attributes.
4751 (format): Use formatWithAttribute.
4752 (formatToCharacterIterator): New method. Use
4753 formatWithAttribute.
4755 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4757 * java/text/MessageFormat.java:
4758 (class Field): New class.
4759 (formatToCharacterIterator): New method.
4760 (format): Use formatInternal now.
4761 (formatInternal): New method. String formatter should
4762 be done here (with attributes). Attributes merging supported.
4763 (parse): More documentation.
4764 (getFormatsByArgumentIndex): New method.
4765 (setFormatByArgumentIndex): New method.
4766 (setFormatsByArgumentIndex): New method.
4768 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4770 * java/text/DecimalFormat.java
4771 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4772 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4773 (parse): Fixed handling of exponentiation notation and grouping.
4775 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4777 * java/text/DecimalFormat.java
4778 (scanFix): Build attribute array. Fixed error reporting.
4779 (applyPatternWithSymbols): Store attributes for the prefix and
4781 (formatInternal): New method. Changed the way the string is
4782 computed. Implemented attributes. Cleant up rounding in
4783 exponential notation.
4784 (format): Use formatInternal.
4785 (formatToCharacterIterator): New method.
4786 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4787 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4788 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4791 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4793 * java/security/interfaces/DSAKeyPairGenerator.java,
4794 java/security/interfaces/DSAPrivateKey.java,
4795 java/security/interfaces/DSAPublicKey.java,
4796 java/security/interfaces/RSAPrivateKey.java,
4797 java/security/interfaces/RSAPublicKey.java:
4800 2004-05-04 Michael Koch <konqueror@gmx.de>
4802 * java/nio/ByteBuffer.java,
4803 java/nio/CharBuffer.java,
4804 java/nio/DoubleBuffer.java,
4805 java/nio/FloatBuffer.java,
4806 java/nio/IntBuffer.java,
4807 java/nio/LongBuffer.java,
4808 java/nio/ShortBuffer.java:
4809 (compareTo): Fixed bogus implementation in all buffer classes.
4811 2004-05-04 Ingo Proetel <proetel@aicas.com>
4813 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4814 32 bit pixels not 8 bit pixels.
4815 (isCompatibleRaster): Added javadoc comment.
4817 2004-05-04 Ingo Proetel <proetel@aicas.com>
4819 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4822 2004-05-04 Ingo Proetel <proetel@aicas.com>
4824 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4825 (getColorModel): Return the actual color model.
4826 (getRaster): Implemented.
4827 (ColorRaster): New inner class.
4828 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4830 * java/awt/Color.java (<init>): Make exception more verbose.
4831 (createContext): Use ColorModel when creating a PaintContext.
4833 2004-05-04 Michael Koch <konqueror@gmx.de>
4835 * gnu/java/text/CharacterBreakIterator.java
4836 (previous): Removed unused variable.
4838 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4840 * gnu/java/text/FormatBuffer.java,
4841 gnu/java/text/AttributedFormatBuffer.java,
4842 gnu/java/text/StringFormatBuffer.java: New classes to implement
4843 attributed iterators in java.text.
4844 * gnu/java/text/FormatCharacterIterator.java: Moved
4845 from java/text as it is an internal class.
4846 * java/text/FormatCharacterIterator.java: Removed.
4847 * java/text/Format.java:
4848 Import gnu.java.text.FormatCharacterIterator.
4849 * Makefile.am (java_source_files): Added new files.
4850 * Makefile.in: Regenerated.
4853 2004-05-04 Mark Wielaard <mark@klomp.org>
4855 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4857 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4859 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4860 * Makefile.in: Rebuilt.
4862 2004-05-03 Mark Wielaard <mark@klomp.org>
4864 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4865 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4867 (set(String, String, int, String, String, String, String, String)):
4868 Assign this.file to path or path + "?" + query.
4869 * java/util/Arrays.java: Call static methods staticly.
4870 * java/util/zip/ZipEntry.java: Likewise.
4871 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4872 dir to this.direction.
4873 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4874 Assign static field only once.
4875 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4877 2004-05-03 Mark Wielaard <mark@klomp.org>
4879 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4880 unused variables hScrollbarHeight and vScrollbarWidth.
4881 (preferredSize): Likewise.
4882 * gnu/java/security/provider/DSAParameters.java (engineToString):
4883 Removed unused call to System.getProperty("line.seperator");
4884 * java/security/Security.java (loadProviders): Return result.
4886 2004-05-03 Tom Tromey <tromey@redhat.com>
4888 * java/net/URLStreamHandler.java (toExternalForm): Removed
4891 * java/math/BigDecimal.java (divide): Removed unused variable.
4892 * java/lang/Throwable.java: Cleaned up imports.
4893 * java/lang/ClassLoader.java: Cleaned up imports.
4894 * java/io/FilePermission.java (implies): Removed unused
4896 * java/awt/TextComponent.java: Removed unused import.
4897 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4898 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4899 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4900 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4902 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4903 * gnu/java/text/CharacterBreakIterator.java: Removed
4905 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4907 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4908 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4910 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4911 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4912 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4913 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4914 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4915 (lookupProviders): Removed unused variable.
4916 (loadNextServiceProvider): Likewise.
4917 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4919 2004-05-03 Michael Koch <konqueror@gmx.de>
4921 Fixes PR libgcj/14695:
4922 * java/net/NetworkInterface.java
4923 (getByName): Return null when no interface was found.
4925 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4926 Tom Tromey <tromey@redhat.com>
4928 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4929 additional option "-Wmissing-prototypes" for compiling C sources.
4930 Print actual filename for pass/fail rather than $name.c.
4931 * testsuite/libjava.jni/PR15133.java: New testcase file.
4932 * testsuite/libjava.jni/PR15133.c: Likewise.
4933 * testsuite/libjava.jni/PR15133.out: Likewise.
4935 2004-04-30 Roger Sayle <roger@eyesopen.com>
4937 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4940 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4942 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4943 limit the maximum heap size to avoid unnecessary thrashing.
4945 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4947 * java/text/CollationElementIterator.java (reset): Reset
4948 lookahead variables.
4950 2004-04-23 Mark Wielaard <mark@klomp.org>
4952 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4954 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4956 * java/sql/DriverManager.java:
4959 2004-04-23 Michael Koch <konqueror@gmx.de>
4962 (hashcode): Don't initialize with default value explicitely.
4963 (getContent): Removed redundant "final" keyword.
4964 (openStream): Likewise.
4965 (getURLStreamHandler): Fixed coding style.
4966 * java/net/URLConnection.java
4967 (defaultAllowUserInteraction): Don't initialize with default value
4969 (connected): Likewise.
4970 (doOutput): Likewise.
4971 (ifModifiedSince): Likewise.
4972 (dateformats_initialized): Likewise.
4973 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4975 2004-04-23 Michael Koch <konqueror@gmx.de>
4977 * gnu/java/nio/channels/FileChannelImpl.java
4978 (SET, CUR): Unused, removed.
4979 (read): Implement here directly.
4980 (implRead): Removed.
4981 (write): Implement here directly.
4982 (implWrite): Removed.
4984 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4986 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4987 javax/rmi/CORBA/Stub.java,
4988 javax/rmi/CORBA/Util.java,
4989 javax/rmi/CORBA/ValueHandler.java,
4990 javax/rmi/CORBA/ValueHandler.java,
4991 javax/rmi/PortableRemoteObject.java:
4994 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4996 * java/util/jar/JarFile.java,
4997 java/util/jar/JarInputStream.java,
4998 java/util/jar/JarOutputStream.java,
4999 java/util/jar/Manifest.java:
5002 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5004 * java/util/ArrayList.java,
5005 java/util/Calendar.java,
5006 java/util/Currency.java,
5007 java/util/HashMap.java,
5008 java/util/HashSet.java,
5009 java/util/Hashtable.java,
5010 java/util/LinkedList.java,
5011 java/util/Properties.java,
5012 java/util/PropertyPermission.java,
5013 java/util/TimeZone.java,
5014 java/util/TreeMap.java,
5015 java/util/TreeSet.java,
5016 java/util/Vector.java,
5017 java/util/WeakHashMap.java:
5020 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5022 * java/util/logging/FileHandler.java,
5023 java/util/logging/Formatter.java,
5024 java/util/logging/Handler.java,
5025 java/util/logging/Logger.java,
5026 java/util/logging/SimpleFormatter.java,
5027 java/util/logging/XMLFormatter.java:
5030 2004-04-22 Mark Wielaard <mark@klomp.org>
5032 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
5033 -Wno-long-long flags variable.
5034 (gtk_c_files): Use PEDANTIC_CFLAGS.
5035 * Makefile.in: Regenerated.
5037 2004-04-22 Mark Wielaard <mark@klomp.org>
5039 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5040 Changed C++ comments into C comments.
5041 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
5044 2004-04-22 Michael Koch <konqueror@gmx.de>
5046 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5047 Merged copyright year with GNU classpath.
5049 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5051 * javax/security/auth/x500/X500Principal.java:
5054 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5056 * javax/swing/JSlider.java:
5057 Fixed HTML tags in comments.
5059 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5061 * javax/accessibility/AccessibleText.java:
5064 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
5066 * java/net/URLStreamHandler.java
5067 (parseURL): Convert the file path to using '/' instead of native
5070 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
5073 (userInfo): New field.
5074 (URL): Set authority to the right value.
5075 (setURL): Fixed authority and file initialization.
5076 * java/net/URLStreamHandler.java
5077 (parseURL): Take care of the query tag. Build authority.
5078 (toExternalForm): Fixed URL building using authority.
5080 2004-04-22 Michael Koch <konqueror@gmx.de>
5082 * java/net/Socket.java
5083 (impl): Made package-private.
5084 * java/net/ServerSocket.java
5085 (implAccept): Access Socket.impl field directly.
5087 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5089 * java/util/prefs/Preferences.java,
5090 java/util/prefs/InvalidPreferencesFormatException.java,
5091 java/util/prefs/BackingStoreException.java,
5092 java/util/prefs/AbstractPreferences.java:
5095 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5097 * java/util/regex/Matcher.java,
5098 java/util/regex/Pattern.java:
5101 2004-04-22 Michael Koch <konqueror@gmx.de>
5103 * java/nio/charset/IllegalCharsetNameException.java
5104 (charsetName): Made private.
5105 (IllegalCharsetNameException): Added @param tag to javadoc.
5106 (getCharsetName): Added @return tag to javadoc.
5107 * java/nio/charset/MalformedInputException.java
5108 (MalformedInputException): Added @param tag to javadoc.
5109 (getInputLength): Revised method description, added @return tag.
5110 (getMessage): Added @return tag.
5112 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
5114 * java/awt/Font.java (deriveFont): Implement missing variants.
5115 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
5118 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
5120 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
5121 Set method->index values for interface methods to their itable index.
5122 (initializeClass): Call _Jv_LayoutInterfaceMethods.
5124 2004-04-21 Michael Koch <konqueror@gmx.de>
5126 * java/nio/DirectByteBufferImpl.java
5127 (shiftDown): Made static, give address as argument and
5128 provide a convenience method that overwrites shiftDown in
5129 ByteBufferImpl and calls the native shiftDown.
5130 * java/nio/MappedByteBufferImpl.java
5131 (): Use optimized method in DirectByteBufferImpl.
5132 * java/nio/natDirectByteBufferImpl.cc
5133 (shiftDown): Changed method signature. Removed usage of array_offset.
5135 2004-04-21 Michael Koch <konqueror@gmx.de>
5137 * gnu/java/net/natPlainSocketImplPosix.cc
5138 (SocketInputStream::read): Make sure returned data is a byte value.
5140 2004-04-21 Michael Koch <konqueror@gmx.de>
5142 * gnu/classpath/ServiceFactory.java,
5143 gnu/classpath/ServiceProviderLoadingAction.java,
5144 javax/imageio/ImageReader.java,
5145 javax/imageio/ImageTranscoder.java,
5146 javax/imageio/ImageWriter.java,
5147 javax/imageio/package.html,
5148 javax/imageio/spi/IIOServiceProvider.java,
5149 javax/imageio/spi/ImageInputStreamSpi.java,
5150 javax/imageio/spi/ImageOutputStreamSpi.java,
5151 javax/imageio/spi/ImageReaderWriterSpi.java,
5152 javax/imageio/spi/ImageTranscoderSpi.java,
5153 javax/imageio/spi/RegisterableService.java,
5154 javax/imageio/spi/ServiceRegistry.java,
5155 javax/imageio/spi/package.html,
5156 javax/imageio/stream/IIOByteBuffer.java,
5157 javax/imageio/stream/ImageInputStream.java,
5158 javax/imageio/stream/ImageOutputStream.java,
5159 javax/imageio/stream/package.html:
5162 (ordinary_java_source_files): Added
5163 gnu/classpath/ServiceFactory.java and
5164 gnu/classpath/ServiceProviderLoadingAction.java.
5165 (javax_source_files): Added
5166 javax/imageio/ImageReader.java,
5167 javax/imageio/ImageTranscoder.java,
5168 javax/imageio/ImageWriter.java,
5169 javax/imageio/spi/IIOServiceProvider.java,
5170 javax/imageio/spi/ImageInputStreamSpi.java,
5171 javax/imageio/spi/ImageOutputStreamSpi.java,
5172 javax/imageio/spi/ImageReaderWriterSpi.java,
5173 javax/imageio/spi/ImageTranscoderSpi.java,
5174 javax/imageio/spi/RegisterableService.java,
5175 javax/imageio/spi/ServiceRegistry.java,
5176 javax/imageio/stream/IIOByteBuffer.java,
5177 javax/imageio/stream/ImageInputStream.java and
5178 javax/imageio/stream/ImageOutputStream.java.
5179 * Makefile.in: Regenerated.
5181 2004-04-21 Michael Koch <konqueror@gmx.de>
5183 * java/util/Properties.java
5184 (load): Fix wrongly merged fix.
5186 2004-04-21 Mark Wielaard <mark@klomp.org>
5188 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5189 malloc and free buf.
5191 2004-04-21 Dalibor Topic <robilad@kaffe.org>
5193 * javax/naming/AuthenticationException.java,
5194 javax/naming/AuthenticationNotSupportedException.java,
5195 javax/naming/CannotProceedException.java,
5196 javax/naming/CommunicationException.java,
5197 javax/naming/CompoundName.java,
5198 javax/naming/ConfigurationException.java,
5199 javax/naming/ContextNotEmptyException.java,
5200 javax/naming/InitialContext.java,
5201 javax/naming/InsufficientResourcesException.java,
5202 javax/naming/InterruptedNamingException.java,
5203 javax/naming/LimitExceededException.java,
5204 javax/naming/LinkException.java,
5205 javax/naming/LinkLoopException.java,
5206 javax/naming/LinkRef.java,
5207 javax/naming/MalformedLinkException.java,
5208 javax/naming/Name.java,
5209 javax/naming/NameAlreadyBoundException.java,
5210 javax/naming/NameNotFoundException.java,
5211 javax/naming/NamingSecurityException.java,
5212 javax/naming/NoInitialContextException.java,
5213 javax/naming/NoPermissionException.java,
5214 javax/naming/NotContextException.java,
5215 javax/naming/PartialResultException.java,
5216 javax/naming/ReferralException.java,
5217 javax/naming/ServiceUnavailableException.java,
5218 javax/naming/SizeLimitExceededException.java,
5219 javax/naming/TimeLimitExceededException.java,
5220 javax/naming/directory/Attribute.java,
5221 javax/naming/directory/Attributes.java,
5222 javax/naming/directory/SearchResult.java,
5223 javax/naming/event/NamingExceptionEvent.java,
5224 javax/naming/spi/ResolveResult.java:
5227 2004-04-21 Mark Wielaard <mark@klomp.org>
5229 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5230 Changed C++ comments into C comments. Removed commented out code.
5231 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5233 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5235 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5237 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5239 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5241 * native/jni/gtk-peer/gthread-jni.c:
5244 2004-04-21 Mark Wielaard <mark@klomp.org>
5246 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5247 static fields defined in interface.
5248 * javax/awt/JDialog.java: Likewise.
5249 (JDialog): Make constructors public.
5250 (getDefaultCloseOperation): Make public.
5251 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5252 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5253 * javax/swing/JViewport.java (JViewport): Make constructor public.
5255 2004-04-21 Michael Koch <konqueror@gmx.de>
5257 * java/util/Map.java
5258 (Entry): Removed redundant "static" modifier.
5259 * java/text/AttributedCharacterIterator.java:
5260 Updated copyright year.
5262 2004-04-20 Michael Koch <konqueror@gmx.de>
5264 * javax/naming/directory/SearchControls.java:
5265 Don't explicitely extend java.lang.Object.
5266 * javax/naming/spi/DirStateFactory.java:
5267 Merged copyright year with GNU classpath.
5269 2004-04-20 Michael Koch <konqueror@gmx.de>
5271 * java/nio/channels/Channels.java:
5272 Merged coding style with GNU classpath.
5274 2004-04-20 Michael Koch <konqueror@gmx.de>
5276 * java/net/ServerSocket.java
5277 Merged coding style from GNU classpath.
5279 2004-04-20 Michael Koch <konqueror@gmx.de>
5281 * java/io/BufferedWriter.java:
5282 Reordered variables to be at top of the class.
5283 (localFlush): Removed redundant final keyword.
5285 2004-04-20 Ingo Proetel <proetel@aicas.com>
5287 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5289 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5291 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5292 for percent and permill check.
5294 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5296 * java/text/FieldPosition.java
5297 (FieldPosition) Constructor now behaves as it should according
5298 to the java documentation.
5300 2004-04-20 Mark Wielaard <mark@klomp.org>
5302 * java/util/Properties.java: Use the word umlaut, not ä in api
5305 2004-04-20 Michael Koch <konqueror@gmx.de>
5307 * java/nio/Buffer.java,
5308 java/nio/channels/AlreadyConnectedException.java,
5309 java/nio/channels/AsynchronousCloseException.java,
5310 java/nio/channels/ByteChannel.java,
5311 java/nio/channels/CancelledKeyException.java,
5312 java/nio/channels/Channel.java,
5313 java/nio/channels/Channels.java,
5314 java/nio/channels/ClosedByInterruptException.java,
5315 java/nio/channels/ClosedChannelException.java,
5316 java/nio/channels/ClosedSelectorException.java,
5317 java/nio/channels/ConnectionPendingException.java,
5318 java/nio/channels/DatagramChannel.java,
5319 java/nio/channels/FileChannel.java,
5320 java/nio/channels/FileLock.java,
5321 java/nio/channels/FileLockInterruptionException.java,
5322 java/nio/channels/GatheringByteChannel.java,
5323 java/nio/channels/IllegalBlockingModeException.java,
5324 java/nio/channels/IllegalSelectorException.java,
5325 java/nio/channels/InterruptibleChannel.java,
5326 java/nio/channels/NoConnectionPendingException.java,
5327 java/nio/channels/NonReadableChannelException.java,
5328 java/nio/channels/NonWritableChannelException.java,
5329 java/nio/channels/NotYetBoundException.java,
5330 java/nio/channels/NotYetConnectedException.java,
5331 java/nio/channels/OverlappingFileLockException.java,
5332 java/nio/channels/Pipe.java,
5333 java/nio/channels/ReadableByteChannel.java,
5334 java/nio/channels/ScatteringByteChannel.java,
5335 java/nio/channels/SelectableChannel.java,
5336 java/nio/channels/SelectionKey.java,
5337 java/nio/channels/Selector.java,
5338 java/nio/channels/ServerSocketChannel.java,
5339 java/nio/channels/SocketChannel.java,
5340 java/nio/channels/UnresolvedAddressException.java,
5341 java/nio/channels/UnsupportedAddressTypeException.java,
5342 java/nio/channels/WritableByteChannel.java,
5343 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5344 java/nio/channels/spi/AbstractSelectableChannel.java,
5345 java/nio/channels/spi/AbstractSelectionKey.java,
5346 java/nio/channels/spi/AbstractSelector.java,
5347 java/nio/channels/spi/SelectorProvider.java,
5348 java/nio/charset/spi/CharsetProvider.java:
5349 Fixed javadocs and jalopied all over java.nio.
5351 2004-04-20 Michael Koch <konqueror@gmx.de>
5353 * java/nio/ByteBufferImpl.java,
5354 java/nio/CharBufferImpl.java,
5355 java/nio/DirectByteBufferImpl.java,
5356 java/nio/DoubleBufferImpl.java,
5357 java/nio/DoubleViewBufferImpl.java,
5358 java/nio/FloatBufferImpl.java,
5359 java/nio/FloatViewBufferImpl.java,
5360 java/nio/IntBufferImpl.java,
5361 java/nio/IntViewBufferImpl.java,
5362 java/nio/LongBufferImpl.java,
5363 java/nio/LongViewBufferImpl.java,
5364 java/nio/MappedByteBufferImpl.java,
5365 java/nio/ShortBufferImpl.java,
5366 java/nio/ShortViewBufferImpl.java:
5367 Made sure all classes are final and removed final keyword from all
5370 2004-04-20 Michael Koch <konqueror@gmx.de>
5372 * java/rmi/MarshalledObject.java,
5373 java/rmi/Naming.java,
5374 java/rmi/RemoteException.java,
5375 java/rmi/activation/ActivationException.java,
5376 java/rmi/server/ServerCloneException.java,
5377 java/security/AccessController.java,
5378 java/security/AlgorithmParameterGenerator.java,
5379 java/security/AlgorithmParameters.java,
5380 java/security/CodeSource.java,
5381 java/security/Identity.java,
5382 java/security/IdentityScope.java,
5383 java/security/KeyPairGenerator.java,
5384 java/security/KeyStore.java,
5385 java/security/Security.java,
5386 java/security/Signature.java,
5387 java/security/SignatureSpi.java,
5388 java/security/SignedObject.java,
5389 java/security/spec/DSAParameterSpec.java,
5390 java/security/spec/DSAPrivateKeySpec.java,
5391 java/security/spec/DSAPublicKeySpec.java,
5392 java/sql/Array.java,
5393 java/sql/DatabaseMetaData.java,
5394 java/sql/ResultSet.java,
5395 java/text/ChoiceFormat.java,
5396 java/text/CollationElementIterator.java,
5397 java/text/CollationKey.java,
5398 java/text/Collator.java,
5399 java/text/DateFormat.java,
5400 java/text/DateFormatSymbols.java,
5401 java/text/DecimalFormatSymbols.java,
5402 java/text/Format.java,
5403 java/text/ParsePosition.java,
5404 java/text/RuleBasedCollator.java,
5405 java/text/SimpleDateFormat.java,
5406 java/text/StringCharacterIterator.java,
5407 java/util/Collections.java,
5408 java/util/PropertyResourceBundle.java,
5409 java/util/ResourceBundle.java,
5410 java/util/StringTokenizer.java,
5411 java/util/jar/Attributes.java,
5412 java/util/logging/ConsoleHandler.java,
5413 java/util/logging/LogManager.java,
5414 java/util/logging/MemoryHandler.java,
5415 java/util/logging/SocketHandler.java,
5416 javax/naming/NamingException.java:
5417 Fixed javadoc, coding style and argument names all over.
5419 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5421 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5422 constructor. (valid) Added null check.
5424 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5426 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5427 * java/io/FileOutputStream.java
5428 (FileOutputStream) Reorganized constructors. Constructors now
5429 check whether the given path is directory.
5431 2004-04-20 Michael Koch <konqueror@gmx.de>
5433 * java/net/Authenticator.java,
5434 java/net/BindException.java,
5435 java/net/ConnectException.java,
5436 java/net/ContentHandler.java,
5437 java/net/ContentHandlerFactory.java,
5438 java/net/DatagramPacket.java,
5439 java/net/DatagramSocket.java,
5440 java/net/DatagramSocketImpl.java,
5441 java/net/DatagramSocketImplFactory.java,
5442 java/net/FileNameMap.java,
5443 java/net/HttpURLConnection.java,
5444 java/net/Inet4Address.java,
5445 java/net/Inet6Address.java,
5446 java/net/InetAddress.java,
5447 java/net/InetSocketAddress.java,
5448 java/net/JarURLConnection.java,
5449 java/net/MalformedURLException.java,
5450 java/net/MulticastSocket.java,
5451 java/net/NetPermission.java,
5452 java/net/NetworkInterface.java,
5453 java/net/NoRouteToHostException.java,
5454 java/net/PasswordAuthentication.java,
5455 java/net/PortUnreachableException.java,
5456 java/net/ProtocolException.java,
5457 java/net/ServerSocket.java,
5458 java/net/Socket.java,
5459 java/net/SocketAddress.java,
5460 java/net/SocketException.java,
5461 java/net/SocketImpl.java,
5462 java/net/SocketImplFactory.java,
5463 java/net/SocketOptions.java,
5464 java/net/SocketPermission.java,
5465 java/net/SocketTimeoutException.java,
5467 java/net/URISyntaxException.java,
5469 java/net/URLClassLoader.java,
5470 java/net/URLConnection.java,
5471 java/net/URLDecoder.java,
5472 java/net/URLEncoder.java,
5473 java/net/URLStreamHandler.java,
5474 java/net/URLStreamHandlerFactory.java,
5475 java/net/UnknownHostException.java,
5476 java/net/UnknownServiceException.java:
5477 Fixed javadocs, coding style and argument names all over.
5479 2004-04-20 Michael Koch <konqueror@gmx.de>
5481 * java/lang/Byte.java,
5482 java/lang/CharSequence.java,
5483 java/lang/ClassLoader.java,
5484 java/lang/Compiler.java,
5485 java/lang/Double.java,
5486 java/lang/Float.java,
5487 java/lang/Integer.java,
5488 java/lang/Long.java,
5489 java/lang/Math.java,
5490 java/lang/Number.java,
5491 java/lang/Package.java,
5492 java/lang/Runtime.java,
5493 java/lang/RuntimePermission.java,
5494 java/lang/SecurityManager.java,
5495 java/lang/Short.java,
5496 java/lang/StringBuffer.java,
5497 java/lang/System.java,
5498 java/lang/ThreadGroup.java,
5499 java/lang/Throwable.java,
5500 java/lang/reflect/InvocationHandler.java,
5501 java/lang/reflect/Proxy.java:
5502 Fixed javadocs, coding style and argument names all over.
5504 2004-04-20 Michael Koch <konqueror@gmx.de>
5506 * java/io/BufferedWriter.java,
5507 java/io/ByteArrayInputStream.java,
5508 java/io/CharArrayWriter.java,
5509 java/io/DataInput.java,
5510 java/io/DataInputStream.java,
5512 java/io/FilterInputStream.java,
5513 java/io/InputStream.java,
5514 java/io/InputStreamReader.java,
5515 java/io/ObjectInputStream.java,
5516 java/io/ObjectStreamClass.java,
5517 java/io/PipedInputStream.java,
5518 java/io/PipedReader.java,
5519 java/io/PushbackInputStream.java,
5520 java/io/PushbackReader.java,
5521 java/io/RandomAccessFile.java,
5522 java/io/SerializablePermission.java,
5523 java/io/StreamTokenizer.java,
5524 java/io/StringWriter.java,
5525 java/io/WriteAbortedException.java,
5526 java/io/Writer.java:
5527 Fixed javadocs all over, rename arguments to match javadocs,
5530 2004-04-20 Ingo Proetel <proetel@aicas.com>
5532 * java/awt/FontMetrics.java:
5533 (charsWidth): fixed accumulation of total_width
5534 (getWidth): simple default implementation
5535 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5536 in Rectangle constructor.
5537 * java/awt/image/Raster.java (toString): Added method.
5538 * java/awt/image/SampleModel.java (<init>): Added error cause
5539 information to thrown exception.
5540 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5542 (setDataElements): New method.
5543 (setPixels): New method.
5544 (toString): New method.
5546 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5548 * java/awt/image/ComponentColorModel.java
5549 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5550 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5551 Mauve tests on this method. Improved documentation.
5553 2004-04-20 Michael Koch <konqueror@gmx.de>
5555 * javax/swing/JLayeredPane.java,
5556 javax/swing/plaf/BorderUIResource.java,
5557 javax/swing/plaf/ComponentUI.java,
5558 javax/swing/undo/CompoundEdit.java,
5559 javax/swing/undo/StateEdit.java:
5560 Fixed HTML tags in javadocs all over.
5562 2004-04-20 Michael Koch <konqueror@gmx.de>
5564 * javax/print/attribute/EnumSyntax.java
5565 (getOffset): Made protected.
5566 * javax/print/attribute/HashAttributeSet.java
5567 (HashAttributeSet): Likewise.
5568 * javax/print/attribute/ResolutionSyntax.java
5569 (getFeedResolution): Fixed typo in exception name.
5570 (getCrossFeedResolution): Likewise.
5571 * javax/print/attribute/SetOfIntegerSyntax.java
5572 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5573 * javax/print/attribute/TextSyntax.java
5574 (TextSyntax): Handle locale correctly.
5575 (hashCode): Calc better hashcode value.
5576 (equals): Fixed @return tag.
5577 (toString): New method.
5579 2004-04-20 Michael Koch <konqueror@gmx.de>
5581 * gnu/java/nio/FileLockImpl.java
5582 (static): Removed, not needed anymore.
5583 * gnu/java/nio/channels/FileChannelImpl.java
5584 (FileChannelImpl): Made final.
5585 (mode): Made private.
5586 (READ, WRITE, APPEND): Made public.
5587 (EXCL, SYNC, DSYNC): Likewise.
5588 (static): Load native JNI library, when needed.
5589 (length): Unused, removed.
5590 (available): Made public.
5591 (implPosition): Throws IOException.
5593 (implTruncate): Likewise.
5597 2004-04-20 Michael Koch <konqueror@gmx.de>
5599 * java/awt/AWTPermission.java,
5600 java/awt/Component.java,
5601 java/awt/ComponentOrientation.java,,
5602 java/awt/Dialog.java,
5603 java/awt/FontMetrics.java,
5604 java/awt/Graphics.java,
5605 java/awt/datatransfer/DataFlavor.java,
5606 java/beans/Introspector.java,
5607 java/beans/PropertyEditor.java,
5608 java/beans/PropertyEditorManager.java,
5609 java/beans/beancontext/BeanContextServiceProvider.java:
5610 Fixed HTML tags in javadocs all over.
5612 2004-04-20 Mark Wielaard <mark@klomp.org>
5614 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5615 MissingResourceException is thrown.
5616 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5617 null when a MissingResourceException is thrown. Should never happen.
5619 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5621 * java/awt/image/DataBufferShort.java,
5622 java/awt/image/DataBufferFloat.java,
5623 java/awt/image/DataBufferDouble.java,
5624 java/awt/image/PixelInterleavedSampleModel.java: New files.
5625 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5626 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5628 2004-04-20 Michael Koch <konqueror@gmx.de>
5630 * Makefile.am (java_source_files): Added
5631 java/awt/image/DataBufferDouble.java,
5632 java/awt/image/DataBufferFloat.java,
5633 java/awt/image/DataBufferShort.java and
5634 java/awt/image/PixelInterleavedSampleModel.java.
5635 * Makefile.in: Regenerated.
5637 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5639 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5640 undocumented CNI calls.
5641 * include/java-interp.h (_Jv_InterpClass): No longer
5642 extends java.lang.Class.
5643 * java/lang/Class.h (Class): Add new field `aux_info'.
5644 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5645 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5646 Use Class->aux_info instead.
5647 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5648 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5649 Use Class->aux_info instead.
5650 * java/io/natObjectInputStream.cc (allocateObject): Use
5652 * java/lang/natClass.cc (newInstance): Likewise.
5653 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5654 * java/lang/natObject.cc (clone): Likewise.
5655 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5656 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5657 JvAllocObject. Allocate klass->aux_info here for interpreted
5660 2004-04-17 Mark Wielaard <mark@klomp.org>
5662 * javax/swing/JToggleButton.java (ToggleButtonModel):
5663 Make public static inner class.
5664 * javax/swing/JTabbedPane.java (setComponentAt):
5665 Call Page.setComponent().
5666 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5667 (WRAP_TAB_LAYOUT): Make public, value is 0.
5668 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5669 Make private static inner class.
5671 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5673 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5674 arguments to match new signature. Remove FIXME comments.
5676 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5678 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5680 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5683 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5685 * Makefile.am: Added new file.
5686 * Makefile.in: Regenerate.
5687 * javax/swing/ImageIcon.java:
5688 (ImageIcon(file)): set description of the icon
5690 * javax/swing/JCheckBoxMenuItem.java:
5691 Mostly Implemented. Work in progress.
5692 * javax/swing/JRadioButtonMenuItem.java:
5693 Reimplement constructors to use JToggleButtonModel.
5694 * javax/swing/plaf/basic/BasicIconFactory.java:
5695 (getCheckBoxMenuItemIcon): return check box
5697 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5698 paint menu item selected only when it is armed and
5701 2004-04-02 David Jee <djee@redhat.com>
5703 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5704 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5705 * java/awt/Component.java
5706 (add): Set the parent of the popup as this component.
5707 * java/awt/PopupMenu.java
5708 (addNotify): Create popup menu when peer is null.
5709 (show): Call addNotify() if peer is null.
5710 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5711 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5712 argument for gtk_menu_popup() as zero. This causes the popup menu to
5713 respond to any mouse button.
5715 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5717 * Makefile.am: Added new file.
5718 * Makefile.in: Regenerate.
5719 * javax/swing/JRadioButtonMenuItem.java:
5721 * javax/swing/plaf/basic/BasicIconFactory.java:
5722 (getRadioButtonMenuItemIcon): Return
5724 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5725 (getPreferredSize): Add size of checkIcon if it
5727 (installDefaults): Don't initialize checkIcon.
5728 It's value will be set in subclasses.
5729 (uninstallDefaults): remove uninstallation of
5731 (paint): Moved code to paintMenuItem().
5732 (paintMenuItem): Implemented.
5733 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5734 UI delegate for JRadioButtonMenuItem.
5736 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5738 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5739 Corrected position of the accelerator.
5741 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5743 * Makefile.am: Added new file.
5744 * Makefile.in: Regenerate.
5745 * javax/swing/JMenuItem.java: Partly
5746 implemented. Work in progress
5747 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5748 Changed default value of acceleratorDelimiter.
5749 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5750 New class. Partly implemented.
5752 2004-03-26 Mark Wielaard <mark@klomp.org>
5754 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5755 (item_activate): Declare label before use.
5756 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5757 (gtkSetFont): Removed unused variable label.
5758 (addExposeFilter): Declare variables before use.
5759 (removeExposeFilter): Likewise.
5760 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5761 (ok_clicked): Declare str_fileName before use.
5763 2004-03-26 David Jee <djee@redhat.com>
5765 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5766 (addSeparator): Remove.
5767 * java/awt/Menu.java
5768 (separator): Remove static final MenuItem field.
5769 (separatorLabel): New static final String field.
5770 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5771 Use separatorLabel to denote that it is a separator.
5772 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5773 of reusing the static separator instance, because a MenuItem instance
5774 can't be added more than once without being cloned.
5775 * java/awt/peer/MenuPeer.java
5776 (addSeparator): Remove from interface.
5778 2004-03-26 David Jee <djee@redhat.com>
5780 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5781 (connectSignals): New native method declaration.
5782 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5783 * java/awt/MenuItem.java
5784 (getActionCommand): Return the label if the action command is not set.
5785 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5786 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5787 gtk_menu_shell_append().
5788 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5789 (item_activate): Fix argument type.
5790 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5792 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5794 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5795 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5796 given. Add the menu widget's top-level GtkWindow to the global window
5797 group, so it can grab the pointer.
5798 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5799 gtk_menu_shell_append().
5801 2004-03-23 Graydon Hoare <graydon@redhat.com>
5803 * java/text/AttributedString.java
5804 (addAttribute): Fix off-by-one.
5805 (getIterator): Likewise.
5806 * java/text/AttributedStringIterator.java
5807 (getRunLimit): Correct logic.
5808 (getRunStart): Likewise.
5809 (getAttribute): Fix inequality.
5810 (getAttributes): Likewise.
5811 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5813 2004-03-23 Kim Ho <kho@redhat.com>
5815 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5816 (calculateSizes): Return real width and height.
5818 2004-03-23 Kim Ho <kho@redhat.com>
5820 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5821 (calculateTabRects): Set the selectedRun before
5822 trying to rotate tabs.
5824 2004-03-23 Kim Ho <kho@redhat.com>
5826 * Makefile.am: New file
5827 * Makefile.in: Regenerate
5828 * java/awt/Graphics.java: (drawRect):
5829 Draw to the correct point.
5830 * javax/swing/DefaultSingleSelectionModel.java
5831 (isSelected): Return true if the selected index
5833 * javax/swing/JLabel.java: Do not change mnemonic
5834 index if text is null.
5835 * javax/swing/JProgressBar.java: Use JComponent's
5837 * javax/swing/JScrollBar.java: Ditto.
5838 * javax/swing/JSlider.java: Ditto.
5839 * javax/swing/JTabbedPane.java: Reimplement.
5840 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5841 Add defaults for TabbedPane.
5842 * javax/swing/plaf/basic/BasicArrowButton.java:
5844 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5845 (paintDeterminate): Don't paint String if it's
5847 (paintIndeterminate): ditto.
5848 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5851 2004-03-19 Michael Koch <konqueror@gmx.de>
5853 * java/awt/image/AffineTransformOp.java
5854 (AffineTransformOp): Made public.
5855 * javax/swing/JComponent.java
5856 (listenerList): Made protected.
5857 (accessibleContext): Likewise.
5858 * javax/swing/JList.java
5859 (valueChanged): Dont use internal fields of ListSelectionEvent.
5860 * javax/swing/JViewport.java
5861 (getView): Dont use internal fields of Component.
5862 (addImpl): Likewise.
5863 * javax/swing/Timer.java
5864 (isRunning): Made public.
5867 * javax/swing/UIDefaults.java
5868 (getInt): Made public.
5869 * javax/swing/plaf/basic/BasicListUI.java
5870 (mousePressed): Dont use internal fields of MouseEvent.
5871 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5872 * javax/swing/plaf/basic/BasicScrollBarUI.java
5873 (arrowIcon): Made static.
5874 * javax/swing/plaf/basic/BasicViewportUI.java
5875 (stateChanged): Dont use internal field on ChangeEvent.
5876 * javax/swing/text/JTextComponent.java
5877 (getUI): Call UIManager.getUI().
5878 (updateUI): Use getUI().
5880 2004-03-19 Graydon Hoare <graydon@redhat.com>
5882 * javax/swing/JComponent.java: Turn off double buffer by default.
5883 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5884 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5885 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5886 Use cairo to copy areas.
5887 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5888 Initialize and set clip region.
5890 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5892 * java/applet/Applet.java (preferredSize): Override deprecated
5893 variant of getPreferredSize.
5894 (minimumSize): Override deprecated variant of getMinimumSize.
5896 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5898 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5899 (drawImage(img,xform,bgcolor,obs)): New Method.
5900 Helper function that every drawImage method will
5902 (drawRaster): Added new parameter, bgcolor. All
5903 transparent pixels are changed to bgcolor before
5905 (drawRenderedImage): Fixed to use changed drawRaster().
5906 (drawImage(image,xform,obs): Fixed to use new helper function
5907 (drawImage(image,op,x,y)): Ditto.
5908 (drawImage (img,x,y,observer)): Ditto.
5909 ((PainterThread) bgcolor): New Field.
5910 ((PainterThread) (setPixels)): Changed all transparent pixels
5912 (drawImage(img,x,y,width,height,bgcolor,observer)):
5913 Fixed FIXME - all the transparent pixels are
5914 changed to the specified bgcolor.
5915 (drawImage(img, x, y, width, height, observer): Changed to
5917 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5918 Fixed FIXME- changed all transparent pixels to bgcolor.
5919 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5920 Changed to use function above.
5922 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5924 * java/applet/Applet.java (dimensions): New field.
5925 (getDimensions): New method.
5926 (getPreferredSize): Call getDimensions.
5927 (getMinimumSize): Likewise.
5929 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5931 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5932 * jni/classpath/jnilink.c: Likewise.
5934 * java/applet/Applet.java (getPreferredSize): New method.
5935 (getMinimumSize): New method.
5937 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5939 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5940 (_Jv_AllocObjectNoFinalizer): Likewise.
5941 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5942 (_Jv_AllocPtrFreeObject): Likewise.
5943 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5944 directly even in the JVMPI case.
5945 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5946 _Jv_AllocObject calls.
5947 * gcj/javaprims.h: Update prototypes.
5948 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5949 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5950 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5952 2004-04-14 Andrew Haley <aph@redhat.com>
5953 Bryce McKinlay <mckinlay@redhat.com>
5955 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5956 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5957 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5959 * testsuite/libjava.lang/InvokeInterface.java: New file.
5960 * testsuite/libjava.lang/InvokeInterface.out: New file.
5962 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5964 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5966 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5967 StackTraceElement directly.
5968 (newElement): New native helper method to create StackTraceElement
5969 bypassing Java access control.
5970 (createStackTraceElement): Use newElement() instead of directly
5971 calling StackTraceElement's constructor.
5972 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5974 2004-04-01 Michael Koch <konqueror@gmx.de>
5976 * java/lang/SecurityManager.java
5977 (checkAwtEventQueueAccess): Implemented.
5979 2004-04-01 Gary Benson <gbenson@redhat.com>
5981 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5982 (_Jv_SearchMethodInClass): Likewise.
5984 2004-03-26 Peter Moon <peterm@miraculum.com>
5986 * java/text/NumberFormat.java: Fix spelling of setCurrency
5989 2004-03-21 Anthony Green <green@redhat.com>
5991 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5992 recursion when searching for the system ClassLoader.
5994 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5996 * java/net/ServerSocket.java
5997 (accept): Close the socket when error occured.
5999 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
6001 * java/net/URI.java (parseURI): Added unquoting.
6002 (unquote): New method.
6003 (quoteAuthority): Implemented.
6004 (quote(String,String)): New method.
6005 (quotePath): Implemented.
6006 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
6007 (getSchemeSpecificPart): Removed FIXME comment.
6008 (getRawAuthority): Return new rawAuthority field.
6009 (getAuthority): Removed FIXME comment.
6010 (getRawUserInfo): Return new rawUserInfo field.
6011 (getUserInfo): Removed FIXME comment.
6012 (getRawPath): Return new rawPath field.
6013 (getPath): Removed FIXME comment.
6014 (getRawQuery): Return new rawQuery field.
6015 (getQuery): Removed FIXME comment.
6016 (getRawFragment): Return new rawFragment field.
6017 (getFragment): Removed FIXME comment.
6019 2004-03-20 Michael Koch <konqueror@gmx.de>
6021 * java/net/URLConnection.java: Merged copyright year with classpath.
6023 2004-03-20 Norbert Frese <postfach@nfrese.net>
6025 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
6026 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
6027 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
6029 (getObjectInputStream): Return object reference, throw IOException if null.
6030 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
6031 (getObjectOutputStream): Return object reference, throw IOException if null.
6032 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
6033 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
6034 (UnicastConnectionManager): Throw RemoteException if port is not available.
6035 (getInstance): Throw RemoteException.
6036 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
6037 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
6038 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6039 Collect Exceptions which are returned by a rmi-call and fix void returns.
6040 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
6041 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6042 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
6043 (dispatch): Answer ping messages which are sent by other java implementions.
6044 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
6045 for every rmi-message and fix void return problems.
6046 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
6047 (UnicastServerRef): Throw RemoteException.
6048 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
6049 In some situations it is necessary to export a subclass of the class which has the _Stub.
6050 For instance when the class with has the _Stub is abstract.
6051 (findStubSkelClass): New method which looks for the class which has the _Stub.
6052 (getClientHost): Implementated.
6053 * gcc/libjava/java/rmi/server/RemoteServer.java
6054 (getClientHost): Implementated.
6055 * gcc/libjava/Makefile.am (rmi_java_source_files):
6056 Added gnu/java/rmi/server/RMIIncomingThread.java.
6057 * Makefile.in: Regenerated.
6059 2004-03-20 Michael Koch <konqueror@gmx.de>
6061 * java/net/InetAddress.java
6062 (getLocalHostname): Added javadoc.
6064 2004-03-19 Per Bothner <per@bothner.com>
6066 * configure.in: FILE variable overrides FLATFORM when linking
6067 natFileChannelXXX.cc.
6069 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
6070 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
6072 2004-03-19 Per Bothner <per@bothner.com>
6074 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
6075 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
6076 * Makefile.am: Update accordingly.
6077 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
6078 as aliases for UnicodeLittle and UnicodeBig.
6080 2004-03-20 Mark Wielaard <mark@klomp.org>
6082 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6083 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
6084 Don't access ws when it is null.
6085 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
6088 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
6090 * java/lang/ThreadGroup.java (list): Changed print to println.
6092 2004-03-19 Mark Wielaard <mark@klomp.org>
6094 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
6097 2004-02-10 Randolph Chung <tausq@debian.org>
6099 * configure.in: Build java for hppa target.
6100 * configure: Regenerate.
6101 * libjava/configure.host (hppa-*): Add target.
6102 * libjava/sysdeps/pa/lock.h: New file.
6104 2004-03-19 Mark Wielaard <mark@klomp.org>
6106 Reported by Stephen Crawley
6107 * java/io/FilePermission.java (implies): Use String.length() -1 to
6108 access last char of String.
6110 2004-03-19 Michael Koch <konqueror@gmx.de>
6112 * java/awt/image/AffineTransformOp.java
6113 (AffineTransformOp): Made public.
6114 * javax/swing/JComponent.java
6115 (listenerList): Made protected.
6116 (accessibleContext): Likewise.
6117 * javax/swing/JList.java
6118 (valueChanged): Dont use internal fields of ListSelectionEvent.
6119 * javax/swing/JViewport.java
6120 (getView): Dont use internal fields of Component.
6121 (addImpl): Likewise.
6122 * javax/swing/Timer.java
6123 (isRunning): Made public.
6126 * javax/swing/UIDefaults.java
6127 (getInt): Made public.
6128 * javax/swing/plaf/basic/BasicListUI.java
6129 (mousePressed): Dont use internal fields of MouseEvent.
6130 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
6131 * javax/swing/plaf/basic/BasicScrollBarUI.java
6132 (arrowIcon): Made static.
6133 * javax/swing/plaf/basic/BasicViewportUI.java
6134 (stateChanged): Dont use internal field on ChangeEvent.
6135 * javax/swing/text/JTextComponent.java
6136 (getUI): Call UIManager.getUI().
6137 (updateUI): Use getUI().
6139 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6141 * verify.cc: Undef PC.
6143 2004-03-18 Michael Koch <konqueror@gmx.de>
6145 * java/nio/channels/spi/AbstractSelectableChannel.java
6146 (keys): Initialize at declaration.
6147 (locate): keys cant be null.
6149 (addSelectionKey): New method.
6150 (removeSelectionKey): New method.
6151 * java/nio/channels/spi/AbstractSelectionKey.java
6152 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
6153 * java/nio/channels/spi/AbstractSelector.java
6154 (provider): Javadoc added.
6155 (cancelledKeys): Javadoc added.
6156 (cancelKey): Javadoc added, add key to cancelledKeys.
6157 (deregister): Implemented.
6159 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6161 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
6162 MAP_FAILED to void *.
6164 2004-03-12 Graydon Hoare <graydon@redhat.com>
6166 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6167 * javax/swing/JComponent.java (paint): Use persistent double buffer.
6168 * javax/swing/JList.java (ListListener): Revalidate on changes.
6169 * javax/swing/JScrollPane.java: Reimplement.
6170 * javax/swing/JViewport.java: Reimplement.
6171 * javax/swing/ScrollPaneLayout.java: Reimplement.
6172 * javax/swing/ViewportLayout.java: Tidy up.
6173 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6174 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6175 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6176 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6179 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6181 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6182 (window_wm_protocols_filter): New function.
6183 (window_focus_in_cb): Remove function.
6184 (window_focus_out_cb): Likewise.
6185 (window_focus_or_active_state_change_cb): New function.
6186 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6187 (connectSignals): Don't attach handlers to focus-in-event or
6188 focus-out-event signals. Handle notify signal.
6190 2004-03-11 David Jee <djee@redhat.com>
6192 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6193 (gtkSetLabel): New native method declaration.
6194 (setLabel): Use gtkSetLabel.
6195 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6196 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6198 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6200 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6201 black when color argument is null.
6203 2004-03-10 Kim Ho <kho@redhat.com>
6205 * java/awt/Container.java: Remove check
6208 2004-03-10 Kim Ho <kho@redhat.com>
6210 * java/awt/Container.java: (visitChild):
6211 Remove candidate clip. Use the component
6213 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6214 (handleEvent): Use the PaintEvent's clip.
6216 2004-03-10 Kim Ho <kho@redhat.com>
6218 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6219 (handleEvent): Don't set the clip for the
6222 2004-03-09 Graydon Hoare <graydon@redhat.com>
6224 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6225 Fix double <-> fixed macros, reset font transform.
6226 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6229 2004-03-09Â Kim Ho <kho@redhat.com>
6231 * java/awt/Container.java: (visitChild): Move
6232 the x and y coordinate of the component rectangle
6233 to correct position.
6234 (handleEvent): Forward drag events to the pressed
6236 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6238 (ArrowButtonListener::mousePressed): Stop the
6240 (mouseDragged): Implement.
6241 (TrackListener::mousePressed): Only react if
6242 the press doesn't occur on the thumb, otherwise
6243 just set the offset.
6244 (TrackListener::mouseReleased): Unset the isAdjusting
6246 (createIncreaseIcon): Switch icon.
6247 (createDecreaseIcon): Switch icon.
6248 (calculatePreferredSize): Use width.
6249 (getThumbBounds): Use the top as the lower value.
6250 (layoutVScrollBar): Switch the button locations.
6251 (paintIncreaseHighlight): Paint correct side of thumb.
6252 (paintDecreaseHighlight): ditto.
6253 (valueForYPosition): Use top as the lower value.
6254 * javax/swing/plaf/basic/BasicSliderUI.java:
6256 (mouseDragged): Implement.
6257 (mousePressed): Only react when the thumb isn't
6258 pressed, otherwise just set offset.
6259 (mouseReleased): Handle a release of the thumb.
6260 (scrollDueToClickInTrack): Stop the timer first.
6261 * javax/swing/JProgressBar.java:
6262 (setString): Fix change condition.
6263 * javax/swing/JSeparator.java:
6266 2004-03-08 David Jee <djee@redhat.com>
6268 * java/awt/image/AffineTransformOp.java:
6269 (filter): Use Graphics2D interface instead of directly using the
6272 2004-03-05 David Jee <djee@redhat.com>
6274 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6275 (handleEvent): Action events are generated upon MOUSE_RELEASED.
6276 * java/awt/Container.java
6277 (acquireComponentForMouseEvent): Fixed.
6278 (handleEvent): Fixed.
6279 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6280 (state_to_awt_mods_with_button_states): New method.
6281 (pre_event_handler): Fixed mouse event generation.
6283 2004-03-05 Olga Rodimina <rodimina@redhat.com>
6285 gnu/java/awt/peer/gtk/GdkGraphics2D.java
6286 (GdkGraphics2D (BufferedImage)): Initialize
6287 pixmap associated with specified BufferedImage.
6288 (setPaint): Changed implementation of Texture
6289 Paint to use AffineTransformOp.
6290 * java/awt/image/AffineTransformOp.java
6291 (createCompatibleDestRaster): Throw RasterFormatException
6292 if resulting width or height of raster is 0.
6294 2004-03-04 Olga Rodimina <rodimina@redhat.com>
6296 * java/awt/image/AffineTransformOp.java:
6297 Removed unnecessary field interpolationType.
6298 Formatted some of the lines to be consistent with
6300 (AffineTransformOp): Create new RenderingHints
6301 containing specified interpolation type.
6302 (createCompatibleDestImage): Implemented.
6303 (createCompatibleDestRaster): Implemented.
6304 (filter): Implemented.
6305 (getBounds2D(BufferedImage)): Implemented.
6306 (getBounds2D(Raster)): Implemented.
6307 (getInterpolationType): Get interpolation value from
6310 2004-03-04 David Jee <djee@redhat.com>
6312 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6313 (setFont): Check if child peers are null.
6315 2004-03-04 Graydon Hoare <graydon@redhat.com>
6317 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6319 (libjava_arguments): Add new libraries to argument list.
6321 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6323 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6324 * Makefile.in: Re-generated.
6325 * java/awt/image/AffineTransformOp.java: New Class.
6327 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6329 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6330 (setPaint): Interpret correctly TexturePaint's
6332 (drawImage): Fixed scale factors of the affine
6335 2004-02-27 David Jee <djee@redhat.com>
6337 * gnu/java/awt/peer/gtk/GdkGraphics.java
6338 (GdkGraphics(Component)): Inherit font from component.
6339 (drawString): Use font style.
6340 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6341 (gtkSetFont): New native method declaration.
6342 (setFont): New method.
6343 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6344 (gtkSetFont): New native method declaration.
6345 (setFont): Call new native method gtkSetFont.
6346 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6347 (setFont): For all child components who do not their fonts set,
6348 set their peers' fonts with this container's font.
6349 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6350 Move all native method declarations to the top for readability.
6351 (gtkSetFont): New native method declaration.
6352 (setFont): New method.
6353 * java/awt/Component.java
6354 (setFont): Invalidate after setting the font.
6355 * java/awt/Container.java
6356 (invalidateTree): New method.
6357 (setFont): Invalidate the container tree after setting the font.
6358 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6359 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6360 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6361 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6362 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6363 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6364 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6365 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6367 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6369 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6370 (updateBufferedImage): New helper function.
6371 Updates BufferedImage in memory if it was changed.
6372 (draw): changed to update BufferedImage in memory after
6373 this drawing operation
6375 (draw3DRect): Ditto.
6376 (fill3DRect): Ditto.
6378 (drawRaster): Ditto.
6379 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6380 no affine transformation.
6381 (drawGlyphVector): Ditto.
6383 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6385 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6386 (isBufferedImageGraphics): New Helper function.
6387 Returns true if this graphics2d can be used to draw
6388 into buffered image and false otherwise.
6389 (updateImagePixels): New Helper function.
6390 Updates pixels in the BufferedImage.
6391 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6392 (getImagePixels): New function. Returns pixels
6393 of the buffered image associated with
6396 2004-02-26 David Jee <djee@redhat.com>
6398 * java/awt/BorderLayout.java
6399 (layoutContainer): Fix width and height calculations to ensure
6400 that they're non-negative.
6401 * java/awt/Component.java
6402 (setBackground): If c is null, inherit from closest ancestor whose
6403 background color is set.
6405 2004-02-26 Kim Ho <kho@redhat.com>
6407 * Makefile.am: Add new files.
6408 * Makefile.in: Re-generate.
6409 * javax/swing/JProgressBar.java:
6410 (JProgressBar(int, int int)): Throw
6411 IllegalArgumentException if orientation is
6413 (JProgressBar(BoundedRangeModel)): Create
6414 ChangeListener and register it. UpdateUI.
6415 (getChangeListeners): Implement.
6416 (setModel): Reset ChangeListener.
6417 * javax/swing/JScrollBar.java: Implement.
6418 * javax/swing/JSeparator.java: Implement.
6419 * javax/swing/JSlider.java:
6420 (JSlider(int, int, int, int)): Throw
6421 IllegalArgumentException if orientation
6423 (getChangeListeners): Fix method name.
6424 * javax/swing/SwingUtilities.java:
6425 (layoutCompoundLabel): If there is no text,
6426 set the text rectangle dimensions to 0.
6427 * javax/swing/plaf/basic/BasicButtonUI.java:
6428 (paint): If there is no text, don't paint it.
6429 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6431 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6433 * javax/swing/plaf/basic/BasicSliderUI.java:
6434 (propertyChange): If the model changes, change
6435 the listeners accordingly.
6437 2004-02-25 Graydon Hoare <graydon@redhat.com>
6439 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6440 * javax/swing/JList.java: Reimplement.
6441 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6442 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6443 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6444 * javax/swing/ListModel.java: Javadoc.
6445 * javax/swing/ListSelectionModel.java: Add missing methods.
6446 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6447 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6448 * javax/swing/ListModel.java: Javadoc and corrections.
6449 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6451 2004-02-25 David Jee <djee@redhat.com>
6453 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6454 (GtkFontPeer): Change default size to 12.
6455 * gnu/java/awt/peer/gtk/GtkToolkit.java
6456 (getFontPeer): Change default size to 12.
6457 (getClasspathFontPeer): Likewise. Set default name to "Default".
6458 * java/awt/Font.java
6459 (Font(Map)): Call Font(String,Map).
6460 (Font(String,Map)): If attrs is null, initialize it as an empty
6461 HashMap, which will ensure that the Font will get default attributes.
6463 2004-02-25 David Jee <djee@redhat.com>
6465 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6466 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6467 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6468 * gnu/java/awt/peer/gtk/GtkToolkit.java
6469 (getFontPeer(String,int)): Call the new overload method with size 1.
6470 (getFontPeer(String,int,int)): New method. Overloaded with size
6472 (getClasspathFontPeer): Set the size of the font.
6474 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6476 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6477 (bimage): New field.
6478 (GdkGraphics2D): New Constructor. Constructs Graphics
6479 object that can be used to draw into the Buffered Image.
6480 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6481 (GdkGraphicsEnvironment): Fixed to include public
6483 (createGraphics): Implemented.
6484 * gnu/java/awt/peer/gtk/GtkToolkit.java
6485 (getLocalGraphicsEnvironment): Implemented.
6486 * java/awt/GraphicsEnvironment.java:
6487 (getLocalGraphicsEnvironment): Implemented.
6488 * java/awt/image/BufferedImage.java:
6489 (createGraphics): Implemented.
6491 2004-02-24 David Jee <djee@redhat.com>
6493 * java/awt/Component.java
6494 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6495 * java/awt/Container.java
6496 (addNotifyContainerChildren): Fix event enabling.
6498 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6500 * Makefile.am: Added
6501 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6502 * Makefile.in: Re-generated.
6503 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6506 2004-02-19 Kim Ho <kho@redhat.com>
6508 * Makefile.am: Add BasicProgressBarUI
6509 * Makefile.in: Regenerate.
6510 * javax/swing/JProgressBar.java:
6512 * javax/swing/plaf/basic/BasicLookAndFeel.java
6513 Add constants for JProgressBar.
6514 * javax/swing/plaf/basic/BasicProgressBarUI.java
6516 * javax/swing/plaf/basic/BasicSliderUI.java
6518 (calculateGeometry): New method
6519 (paint): Remove unnecessary size calculations.
6521 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6523 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6524 (drawRaster): Fixed small error that caused
6525 imageToUser transformation to be set incorrectly.
6526 (toString): Implemented.
6528 2004-02-18 David Jee <djee@redhat.com>
6530 * java/awt/CardLayout.java
6531 (addLayoutComponent): Show the first component added as the default.
6532 (removeLayoutComponent): After removing, show the next component.
6533 (gotoComponent): If there is only one component, show it and return.
6535 2004-02-18 Kim Ho <kho@redhat.com>
6537 * javax/swing/JSlider.java: Re-order
6539 * javax/swing/JLabel.java: Re-order
6541 * javax/swing/JComponent.java:
6542 (addPropertyChangeListener):
6544 (removePropertyChangeListener):
6546 (firePropertyChangeEvent):
6549 2004-02-17 David Jee <djee@redhat.com>
6551 * java/awt/Component.java
6552 (show): Dispatch ComponentEvent via system event queue.
6556 (reshape): Likewise.
6557 * java/awt/Window.java
6558 (setBoundsCallback): Likewise.
6560 2004-02-17 David Jee <djee@redhat.com>
6562 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6563 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6564 Use gtk_widget_set_size_request() instead of the deprecated
6565 gtk_widget_set_usize().
6567 2004-02-17 Kim Ho <kho@redhat.com>
6569 * javax/swing/JSlider.java: Fix comments and
6570 make property strings constants.
6571 (createStandardLabels): Use the labels
6572 preferred size as bounds.
6573 * javax/swing/plaf/basic/BasicSliderUI.java
6575 (ScrollHandler::actionPerformed): Don't
6576 calculate the timer stop value. Let the
6577 MouseListeners find the stop location.
6578 (getPreferredHorizontalSize): Re-implement.
6579 (getPreferredVerticalSize): ditto.
6580 (getMinimumHorizontalSize): ditto.
6581 (getMinimumVerticalSize): ditto.
6582 (getPreferredSize): ditto.
6583 (getMinimumSize): ditto.
6584 (getMaximumSize): ditto.
6585 (paintTicks): Use doubles to find the
6587 (paintHorizontalLabel):Â Use preferredSize
6588 as initial width and height.
6589 (paintVerticalLabel): ditto.
6591 2004-02-17 Kim Ho <kho@redhat.com>
6593 * javax/swing/JLabel.java: Changed
6594 property strings to constants.
6595 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6597 (setText): Change mnemonic index if
6599 (setDisplayedMnemonicIndex): Fire property
6601 (getDisplayedMnemonicIndex): Remove check
6604 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6606 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6607 (drawImage(img,xform,obs)): Invert xform before
6608 passing the xform to cairo.
6609 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6610 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6612 (drawImage (img,x,y,w,h,obs)): Implemented.
6613 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6614 bgcolor,obs)): Partly implemented.
6615 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6617 * java/awt/image/BufferedImage.java:
6618 (copyData): if dest is null, create raster with same
6619 dimensions as the current image.
6621 2004-02-16 Graydon Hoare <graydon@redhat.com>
6623 * javax/swing/plaf/basic/BasicLabelUI.java
6624 (getPreferredSize): Use layoutCL.
6625 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6626 (getPreferredButtonSize): Start with empty view rect, layout using
6627 component's preferred alignment.
6628 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6631 2004-02-16 David Jee <djee@redhat.com>
6633 * java/awt/Component.java
6634 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6635 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6636 (move): Erase old bounds and repaint new bounds. Dispatch
6637 COMPONENT_MOVED ComponentEvent.
6638 (resize): Erase old bounds and repaint new bounds. Dispatch
6639 COMPONENT_RESIZED ComponentEvent.
6640 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6642 * java/awt/Window.java
6643 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6646 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6648 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6649 (setRenderingHint): Added implementation of
6650 Interpolation rendering hints.
6651 (setRenderingHints): Ditto.
6652 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6653 (drawPixels): fixed to allow user to choose type
6654 of filtering that should be used when displaying images.
6655 (cairoSurfaceSetFilter): New method. Sets filter type for
6656 interpolation of pixel values.
6658 2004-02-16 David Jee <djee@redhat.com>
6660 * java/awt/GridBagLayout.java
6661 (calcCellSizes): Rows or columns with zero sizes should still be
6662 considered for extra space distribution.
6664 2004-02-16 Kim Ho <kho@redhat.com>
6666 * javax/swing/JLabel.java: Re-implement.
6667 * javax/swing/plaf/basic/BasicLabelUI.java
6669 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6672 2004-02-16 Kim Ho <kho@redhat.com>
6674 * javax/swing/JSlider.java: Fix indentation and comments.
6675 (setModel): Remove null check to conform with Sun's.
6676 (setOrientation): Throw exception if not
6677 HORIZONTAL or VERTICAL.
6678 (getInverted): Use private variable instead of
6679 ComponentOrientation.
6680 (setInverted): ditto.
6681 * javax/swing/plaf/basic/BasicSliderUI.java:
6682 Fix indentation and comments.
6683 (propertyChange): Remove check for inverted slider, handle
6685 (getMinimumSize): Return preferred size.
6686 (getMaximumSize): ditto.
6687 (calculateFocusRect): Don't relocate rectangle.
6688 (drawInverted): Return XOR of the slider's inversion and
6689 the component's orientation.
6690 (paint): Update leftToRightCache
6692 2004-02-13 David Jee <djee@redhat.com>
6694 * java/awt/GridBagLayout.java
6695 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6696 code to helper methods.
6697 (sortBySpan): New helper method.
6698 (distributeSizeAndWeight): Likewise.
6699 (calcCellWeights): Likewise.
6700 (calcCellSizes): Add comments.
6702 2004-02-13 David Jee <djee@redhat.com>
6704 * java/awt/Component.java
6705 (show): Only do something if component is invisible at the moment.
6706 (hide): Only do something if component is visible at the moment.
6707 (reshape): If lightweight, erase old bounds and repaint new bounds.
6709 2004-02-13 Kim Ho <kho@redhat.com>
6711 * Makefile.am: Updated for new file.
6712 * Makefile.in: Regenerated.
6713 * javax/swing/JSlider.java: Reimplement.
6714 * javax/swing/SwingUtilities.java
6715 (layoutCompoundLabel): Use icon height
6717 (paintComponent): Implement.
6718 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6719 Add JSlider defaults.
6720 * javax/swing/plaf/basic/BasicSliderUI.java:
6721 Implement. New file.
6723 2004-03-17 Michael Koch <konqueror@gmx.de>
6725 * gnu/java/net/PlainDatagramSocketImpl.java
6726 (RECEIVE_LOCK): New member field.
6727 (SEND_LOCK): New member field.
6728 (send0): New method.
6729 (send): Synchronize on SEND_LOCK.
6730 (receive0): New method.
6731 (receive): Synchronize on RECEIVE_LOCK.
6732 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6733 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6734 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6735 (send0): Renamed from send.
6736 (receive0): Renamed from receive.
6737 2004-03-17 Michael Koch <konqueror@gmx.de>
6739 * gnu/java/net/natPlainSocketImplPosix.cc
6740 (write): Just call write(jbyteArray, offset, len).
6741 (read): Just call read(jbyteArray, offset, len).
6743 2004-03-16 Michael Koch <konqueror@gmx.de>
6745 * javax/swing/JTabbedPane.java
6746 (serialVersionUID): New field.
6748 2004-03-16 Norbert Frese <postfach@nfrese.net>
6750 * java/net/InetAddress.java
6751 (getByName): Handle hostname == "" case.
6753 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6755 Reported by: Adam Heath <doogie@debian.org>
6756 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6759 2004-03-15 Michael Koch <konqueror@gmx.de>
6761 * java/util/Locale.java: Reverting my last patch
6762 and add a comment why the original version was okay.
6764 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6766 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6767 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6768 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6769 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6771 2004-03-12 Michael Koch <konqueror@gmx.de>
6773 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6775 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6777 * java/net/URI.java (toURL): Implemented.
6779 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6782 (URI_REGEXP) updated to contain scheme specific part.
6783 (SCHEME_SPEC_PART_GROUP) new constant.
6784 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6785 updated to make room for SCHEME_SPEC_PART_GROUP.
6786 (parseURI) parse scheme specific part.
6787 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6788 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6789 getQuery, getFragment) implemented.
6791 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6793 * libraries/javalib/java/net/URI.java
6794 partially implemented using java.util.regex.
6795 (URI_REGEXP) new constant. Used to parse URIs.
6796 (SCHEME_GROUP) new constant representing index of scheme group
6798 (AUTHORITY_GROUP) new constant representing index of authority
6799 group in parsed URI.
6800 (PATH_GROUP) new constant representing index of path group in
6802 (QUERY_GROUP) new constant representing index of query group in
6804 (FRAGMENT_GROUP) new constant representing index of fragment
6805 group in parsed URI.
6806 (getURIGroup) new static utility method.
6807 (parseURI) implemented.
6808 (quote) stub for new static utility method.
6809 (quoteAuthority) stub for new static utility method.
6810 (quoteHost) stub for new static utility method.
6811 (quotePath) stub for new static utility method.
6812 (quoteUserInfo) stub for new static utility method.
6814 (create) don't throw URISyntaxException. Implemented.
6815 (toString) implemented.
6817 2004-03-12 Michael Koch <konqueror@gmx.de>
6819 * java/net/HttpURLConnection.java
6820 (getResponseCode): Fix another typo in javadoc.
6822 2004-03-11 Michael Koch <konqueror@gmx.de>
6824 * java/util/logging/Level.java
6825 (parse): Use String.equals() instead of ==.
6827 2004-03-11 Michael Koch <konqueror@gmx.de>
6829 * gnu/java/net/protocol/jar/Connection.java
6830 (getContentLength): New method.
6832 2004-03-11 Michael Koch <konqueror@gmx.de>
6834 * gnu/java/net/PlainSocketImpl.java:
6835 Reformated to merge better with classpath's version.
6837 2004-03-11 Michael Koch <konqueror@gmx.de>
6839 * java/util/Locale.java
6840 (getISO3Language): Use String.equals() instead of ==.
6841 (getISO3Country): Likewise.
6843 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6845 * java/text/AttributedString.java
6846 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6847 Use HashMap instead of Hashtable since value can be null, and
6848 you can not store a null value in a Hashtable.
6850 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6852 * java/text/AttributedStringIterator.java
6853 (getAllAttributesKey): Return only keys concerned
6854 by the current iterator.
6855 (getAttributes): Use strict inequality for
6858 2004-03-11 Michael Koch <konqueror@gmx.de>
6860 * java/net/HttpURLConnection.java:
6861 Fixed typo in javadoc.
6863 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6865 * java/io/BufferedInputStream.java (marktarget): New field for max
6867 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6868 (mark): Use new fields.
6870 (read(byte[],int,int)): Likewise.
6874 2004-03-11 Mark Wielaard <mark@klomp.org>
6876 * java/beans/BeanDescriptor.java (BeanDescriptor):
6877 Set the FeatureDescriptor programmatic name.
6879 2004-03-11 Michael Koch <konqueror@gmx.de>
6881 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6882 This file was was just copied form java/io/natFileDescriptorEcos.cc
6883 and never changed to compile correctly.
6885 2004-03-11 Michael Koch <konqueror@gmx.de>
6887 * gnu/java/nio/PipeImpl.java
6888 (SourceChannelImpl): Made final.
6889 (read): Implemented.
6890 (SinkChannelImpl): Made final.
6891 (write): Implemented.
6893 2004-03-11 Michael Koch <konqueror@gmx.de>
6895 * gnu/java/net/PlainDatagramSocketImpl.java:
6896 Reformated to match classpath's version more.
6898 2004-03-11 Michael Koch <konqueror@gmx.de>
6900 * gnu/java/awt/peer/ClasspathFontPeer.java:
6901 Fixed javadoc to be correct xhtml.
6902 * gnu/java/awt/peer/gtk/GtkArgList.java
6903 (add): Use Boolean.valueOf() instead of new Boolean().
6905 2004-03-09 Michael Koch <konqueror@gmx.de>
6907 * java/lang/Thread.java
6908 (runnable): Moved around.
6909 (daemon): Renamed from daemon_flag.
6910 (contextClassLoader): Renamed from context_class_loader.
6911 (Thread): Reordered constructors.
6912 (activeCount): Use group directly.
6913 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6914 (holdsLock): Reworked javadoc.
6915 (setDaemon): Reworked.
6916 * java/lang/natThread.cc
6919 2004-03-08 Anthony Green <green@redhat.com>
6921 * Makefile.am: Build property resource files into libgcj.
6922 * Makefile.in: Rebuilt.
6923 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6924 java/util/regex/PatternSyntaxException.java,
6925 gnu/regexp/CharIndexed.java,
6926 gnu/regexp/CharIndexedCharArray.java,
6927 gnu/regexp/CharIndexedInputStream.java,
6928 gnu/regexp/CharIndexedReader.java,
6929 gnu/regexp/CharIndexedString.java,
6930 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6931 gnu/regexp/REException.java,
6932 gnu/regexp/REFilterInputStream.java,
6933 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6934 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6935 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6936 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6937 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6938 gnu/regexp/RETokenLookAhead.java,
6939 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6940 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6941 gnu/regexp/RETokenStart.java,
6942 gnu/regexp/RETokenWordBoundary.java,
6943 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6945 2004-03-03 Per Bothner <per@bothner.com>
6947 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6948 Optimize when argument is a FileChannelImpl.
6949 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6951 * java/nio/channels/natChannels.cc: New file for new native methods.
6952 * Makefile.am: Update accordingly.
6954 2004-03-02 Jan Hubicka <jh@suse.cz>
6956 * configure.host: Pass -fno-omit-frame-pointer for i386.
6957 * configure.in: Likewise.
6958 * configure: Regenerate.
6960 2004-03-01 Per Bothner <per@bothner.com>
6962 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6964 2004-02-29 Per Bothner <per@bothner.com>
6966 * java/nio/channels/FileChannelImpl.java: Moved to package
6967 gnu/java/nio/channels, since we need to refer to it from java.io.
6968 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6969 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6970 from java/nio/channels. Don't depend on FileDescriptor.
6971 (in, out, err): New static fields.
6973 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6974 from FileDescriptor.
6975 (by): Removed MappedByteBuffer field.
6976 (map): New working implementation.
6977 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6978 some code "ported" from natFileDescriptoPosix.cc.
6979 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6980 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6981 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6982 Remove native methods.
6983 * Makefile.am, configure.in: Updated accordingly.
6985 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6986 (ch): New FileChannelImpl field. Update constructor to match.
6987 (releaseImpl): Remove native method. Instead ...
6988 (release): Call unlock on channel.
6989 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6991 * java/io/natFileDescriptorEcos.cc: Remove file.
6992 * java/io/natFileDescriptorPosix.cc: Remove file.
6993 * java/io/natFileDescriptorWin32.cc: Remove file.
6994 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6995 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6996 (<init>(FileChannelImpl)): New package-private constructor.
6997 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6998 (available, close, read, skip): Implement using FileChannelImpl.
6999 (getFD): Allocate FileDescriptor if needed.
7000 (getChannel): Is now trivial.
7001 * java/io/FileOutputStream.java: Corresponding changes.
7002 * java/io/RandomAccessFile.java: Corresponding changes.
7004 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
7005 unmapImpl): New dummy methods, to be overridden by subclass.
7006 (finalize, isLoaded, load, force): New methods.
7007 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
7008 Now works, at least for read mapping.
7010 * java/lang/natPosixProcess.cc (startProcess): Implement standard
7011 streams using FileChannelImpl, not FileDescriptor.
7012 * java/lang/natWin32Process.cc (startProcess): Likewise.
7014 2004-02-28 Michael Koch <konqueror@gmx.de>
7016 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
7019 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
7021 * java/io/ObjectInputStream.java
7022 (readClassDescriptor): Keep elements of the mapping non null.
7023 (checkTypeConsistency): New method.
7024 (readFields): Fixed main loop and base logic. Small reindentation.
7025 * java/io/ObjectStreamField.java
7026 (lookupField): New method to update the field reference.
7027 (checkFieldType): New method.
7028 * java/io/ObjectStreamClass.java
7029 (setClass, setFields): Call lookupField when building the field
7030 database. Check the real field type.
7032 2004-02-28 Michael Koch <konqueror@gmx.de>
7034 * java/nio/ByteOrder.java
7035 (nativeOrder): Use equals() to compare strings.
7037 2004-02-26 Michael Koch <konqueror@gmx.de>
7039 * gnu/java/nio/FileLockImpl.java
7040 (finalize): Made protected.
7041 * java/nio/channels/FileChannel.java
7042 (MapMode.READ_ONLY): Made final.
7043 (MapMode.READ_WRITE): Made final.
7044 (MapMode.PRIVATE): Made final.
7045 * java/nio/channels/SocketChannel.java
7046 (open): Simplified code.
7047 * java/nio/channels/spi/AbstractSelectableChannel.java
7048 (registered): Unused, removed.
7049 (keyFor): Check channel is open, only locate key
7050 and not add a new one.
7051 (register): Don't delete attachments.
7053 2004-02-26 Michael Koch <konqueror@gmx.de>
7055 * gnu/java/awt/ComponentDataBlitOp.java
7056 (INSTANCE): Made final.
7057 * gnu/java/awt/image/ImageDecoder.java:
7059 (cm): Unused, removed.
7061 2004-02-26 Michael Koch <konqueror@gmx.de>
7063 * gnu/java/nio/DatagramChannelImpl.java
7064 (send): Check if target address is resolved.
7066 2004-02-26 Michael Koch <konqueror@gmx.de>
7068 * Makefile.am: Generate and install headers for inner classes in
7069 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
7070 * Makefile.in: Regenerated.
7072 2004-02-24 Anthony Green <green@redhat.com>
7074 * java/lang/StringBuffer.java: No need to NULL out remainder of
7075 buffer since ensureCapacity_unsynchronized will have done this for
7078 2004-02-20 Michael Koch <konqueror@gmx.de>
7080 * gnu/java/net/protocol/jar/Handler.java
7081 (): Removed unneeded check for file != null. java.net.URL.getFile()
7082 returns an empty string but never null.
7084 2004-02-20 Michael Koch <konqueror@gmx.de>
7086 * gnu/gcj/convert/Convert.java
7087 (main): Use equals() to compare strings.
7089 2004-02-20 Michael Koch <konqueror@gmx.de>
7091 * javax/swing/AbstractButton.java: Made several constants final.
7092 (getRolloverSelectedIcon): Made public.
7093 (getSelectedIcon): Made public.
7095 2004-02-16 Per Bothner <per@bothner.com>
7097 * java/nio/CharBufferImpl.java: Inline super constructor.
7098 * java/nio/DoubleBufferImpl.java: Likewise.
7099 * java/nio/FloatBufferImpl.java: Likewise.
7100 * java/nio/IntBufferImpl.java: Likewise.
7101 * java/nio/LongBufferImpl.java: Likewise.
7102 * java/nio/ShortBufferImpl.java: Likewise.
7103 * java/nio/CharBuffer.java: Remove unused constructor.
7104 * java/nio/DoubleBuffer.java: Likewise.
7105 * java/nio/FloatBuffer.java: Likewise.
7106 * java/nio/IntBuffer.java: Likewise.
7107 * java/nio/LongBuffer.java: Likewise.
7108 * java/nio/ShortBuffer.java: Likewise.
7109 * java/nio/CharViewBufferImpl.java: New convenience constructor.
7110 Fix buggy call to super constructor.
7111 * java/nio/DoubleViewBufferImpl.java: Likewise.
7112 * java/nio/FloatViewBufferImpl.java: Likewise.
7113 * java/nio/IntViewBufferImpl.java: Likewise.
7114 * java/nio/LongViewBufferImpl.java: Likewise.
7115 * java/nio/ShortViewBufferImpl.java: Likewise.
7117 * java/nio/ByteBuffer.java (endian): Make non-private so other
7118 java.nio classes can inherit it.
7119 (<init>): Don't bother clearing array_offset.
7120 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
7121 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
7122 Remove redundant test.
7124 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
7125 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
7126 Use new XxxViewBufferImpl constructors.
7127 * java/nio/MappedByteBufferImpl.java: Likewise.
7128 * java/nio/DirectByteBufferImpl.java: Likewise.
7130 * java/nio/ByteBufferImpl.java: Remove one constructor.
7131 Inline super in remaining constructor.
7132 * java/nio/ByteBuffer.java: Remove unused constructor.
7134 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
7136 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
7137 * java/nio/DirectByteBufferImpl.java (owner): New field.
7138 (offset): Remove unused field.
7139 (<init>): Modify one and add another constructor. Change callers.
7140 (allocateDirect): Removed - not used.
7141 (getImpl, putImpl): Make static and pass address explicitly,
7142 to make them useful for MappedByteBufferImpl.
7143 (get, put): Check for underflow. Modify for new getImpl.
7144 (getImpl): New native method where target is array.
7145 (get(byte[],int,int)): Use the above.
7146 (adjustAddress): New static native method.
7147 (slice, duplicate, asReadOnly): New implementations.
7148 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
7149 adjustAddress): New or updated native methods.
7151 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
7153 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
7154 overflow of fieldmapping.
7156 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
7158 * javax/swing/undo/UndoManager.java: Re-written from scratch.
7160 2004-02-14 Per Bothner <per@bothner.com>
7162 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
7163 Set closed before calling implCloseChannel, as in the spec.
7165 2004-02-09 Graydon Hoare <graydon@redhat.com>
7167 * javax/swing/ToggleButtonModel.java: Remove dead class.
7168 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
7169 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
7170 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
7171 * Makefile.am: Update for new and removed files.
7172 * Makefile.in: Regenerate.
7174 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
7175 * javax/swing/AbstractButton.java
7176 (AbstractButton): Initialize fields correctly in ctor.
7177 * javax/swing/JCheckbox.java
7178 (JCheckBox): Override painting flags.
7179 * javax/swing/DefaultButtonModel.java: Conform to sun.
7180 * javax/swing/JComponent.java (paint): Fill with background color
7182 (processComponentKeyEvent)
7185 (processMouseMotionEvent): Remove event-consuming empty methods.
7186 (getUIClassID): Return "ComponentUI" not "JComponent"
7187 * javax/swing/JFrame.java: Remove some debugging chatter.
7188 (JFrame): Subscribe to window events.
7189 * javax/swing/JRadioButton.java
7190 (JRadioButton): Override painting flags.
7191 * javax/swing/JRootPane.java
7192 (JRootPane): Set background from UIDefaults.
7193 * javax/swing/JToggleButton.java
7194 (ToggleButtonModel): New inner class.
7195 (JToggleButton): Override layout alighment.
7196 * javax/swing/SwingUtilities.java:
7197 (getLocalBounds): Return width and height, not x and y.
7198 (calculateInnerArea): Use local bounds, not bounds.
7199 (layoutCompoundLabel): Provide overridden form.
7200 (layoutCompoundLabel): Correct bugs.
7201 * javax/swing/UIDefaults.java: Correct comment.
7202 * javax/swing/plaf/basic/BasicButtonUI.java:
7203 Move most logic into defaults, external listener.
7204 (paintIcon): Implement icon painting.
7205 (paint): Fix state painting to conform to changes in model.
7206 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
7207 Remove most dead/wrong methods.
7208 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7209 * javax/swing/plaf/basic/BasicIconFactory.java:
7210 (DummyIcon): New class.
7211 (getMenuItemCheckIcon)
7212 (getMenuItemArrowIcon)
7214 (getCheckBoxMenuItemIcon)
7215 (getRadioButtonMenuItemIcon)
7216 (createEmptyFrameIcon): Return DummyIcons, not null.
7217 (getCheckBoxIcon): Implement an icon that looks like sun's.
7218 (getRadioButtonIcon): Implement an icon that looks like sun's.
7219 * javax/swing/plaf/basic/BasicLookAndFeel.java
7220 (initComponentDefaults): Fix impossible values, add some missing.
7221 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7222 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7223 Remove most dead/wrong methods.
7225 (getDefaultIcon): New method.
7226 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7227 Remove most dead/wrong methods.
7228 * javax/swing/plaf/metal/MetalLookAndFeel.java
7229 (getDefaults): Return super.getDefaults(), not BasicDefaults.
7230 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7231 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7232 Implement "clearing" as drawing, when on pixmap drawables.
7234 * javax/swing/JButton.java (getUIClassID):
7235 * javax/swing/JCheckBox.java (getUIClassID):
7236 * javax/swing/JEditorPane.java (getUIClassID):
7237 * javax/swing/JLabel.java (getUIClassID):
7238 * javax/swing/JList.java (getUIClassID):
7239 * javax/swing/JOptionPane.java (getUIClassID):
7240 * javax/swing/JPanel.java (getUIClassID):
7241 * javax/swing/JPasswordField.java (uiClassID):
7242 * javax/swing/JRadioButton.java (getUIClassID):
7243 * javax/swing/JRootPane.java (getUIClassID):
7244 * javax/swing/JScrollPane.java (getUIClassID):
7245 * javax/swing/JTabbedPane.java (getUIClassID):
7246 * javax/swing/JToggleButton.java (getUIClassID):
7247 * javax/swing/JTree.java (getUIClassID):
7248 * javax/swing/JViewport.java (getUIClassID):
7249 * javax/swing/text/JTextComponent.java (getUIClassID):
7250 Return "fooUI" not "Jfoo"
7252 2004-02-11 Michael Koch <konqueror@gmx.de>
7254 * java/net/DatagramSocket.java
7255 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7257 (setBroadcast): Likewise.
7258 * java/net/MulticastSocket.java
7259 (setLoopbackMode): Likewise.
7260 * java/net/ServerSocket.java
7261 (setReuseAddress): Likewise.
7262 * java/net/Socket.java
7263 (setTcpNoDelay): Likewise.
7264 (setSoLinger): Likewise.
7265 (setOOBInline): Likewise.
7266 (setKeepAlive): Likewise.
7267 (setReuseAddress): Likewise.
7268 * java/net/URLConnection.java
7269 (setContentHandler): Replace == with equals().
7270 * java/net/URLStreamHandler.java
7271 (hostSEquals): Fix checking host addresses.
7272 (toExternalForm): Dont check protocol for null. We know already its
7275 2004-02-10 David Jee <djee@redhat.com>
7277 * java/awt/BorderLayout.java
7278 (calcCompSize): Invisible components get zero dimensions.
7279 * java/awt/Button.java
7280 (setLabel): Set actionCommand.
7281 * java/awt/Component.java
7282 (show): Invalidate component and parent container.
7285 2004-02-10 David Jee <djee@redhat.com>
7287 * java/awt/GridBagLayout.java
7288 (GridBagLayout): New private field, internalcomptable.
7289 (lookupInternalConstraints): New method.
7290 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7291 (GetLayoutInfo): Reimplement.
7292 (calcCellSizes): Ignore rows/columns with size 0.
7294 2004-02-10 Michael Koch <konqueror@gmx.de>
7296 * gnu/java/awt/EmbeddedWindow.java
7297 (setHandle): Use java.awt.Component.getPeer() instead of
7298 java.awt.Component.peer directly.
7300 2004-02-10 David Jee <djee@redhat.com>
7302 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7303 (gtkSetLabel): New native method definition.
7304 (setLabel): Use gtkSetLabel.
7305 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7306 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7308 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7310 * include/powerpc-signal.h: Revert 2004-01-21 change.
7311 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7312 from syscall for ppc32 versions.
7314 2004-02-08 Per Bothner <per@bothner.com>
7316 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7317 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7318 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7319 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7320 Pass ByteOrder parameter to most methods, since the underlying
7321 ByteBuffer's order isn't always what we should use.
7322 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7323 * java/nio/DirectByteBufferImpl.java: Likewise.
7324 Use ByteBufferHelper methods.
7325 * java/nio/MappedByteBufferImpl.java: Likewise.
7326 (compact): Use shiftDown.
7327 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7328 (get, put): Use ByteBufferHelper.
7329 (compact): Use new shiftDown method.
7330 (duplicate(boolean)): New helper method.
7331 (duplicate, asReadOnlyBuffer): Use it.
7332 (order): Return endian field.
7333 * java/nio/DoubleViewBufferImpl.java: Likewise.
7334 * java/nio/FloatViewBufferImpl.java: Likewise.
7335 * java/nio/IntViewBufferImpl.java: Likewise.
7336 * java/nio/LongViewBufferImpl.java: Likewise.
7337 * java/nio/ShortViewBufferImpl.java: Likewise.
7338 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7339 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7340 (compact): Re-implement using shiftDown.
7342 2004-02-08 Andreas Jaeger <aj@suse.de>
7344 * include/x86_64-signal.h: Fix typo.
7346 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7348 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7350 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7352 2004-02-06 Michael Koch <konqueror@gmx.de>
7354 * java/io/ObjectInputStream.java
7355 (currentClassLoader): Reverted to old version of this method.
7357 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7359 * java/io/ObjectInputStream.java: Made all calls
7360 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7361 use cached info from ObjectStreamClass. (readClassDescriptor):
7362 Cache more information in ObjectStreamClass. (processResolution,
7363 readFields): Use cached info from ObjectStreamClass.
7364 (newObject): Throw exception instead of returning null for failure.
7365 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7366 setCharField, setDoubleField, setFloatField, setIntField,
7367 setLongField, setShortField, setObjectField, readObjectParams):
7368 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7370 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7371 (setClass): Added call to cacheMethods() (findMethod): New method.
7372 (cacheMethods): New method. (ObjectStreamClass): Added call to
7373 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7374 AccessController.doPrivileged to invoke setAccessible.
7375 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7376 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7378 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7379 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7380 isPrimitive): Made safe for cases where type == null.
7381 (setBooleanField, setByteField, setCharField, setShortField,
7382 setIntField, setLongField, setFloatField, setDoubleField,
7383 setObjectField): New methods.
7385 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7387 * java/awt/Component.java (getFont): Return a default font
7390 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7391 (Scrollbar (int, int, int, int, int)): Make default page
7393 (setValues): Only call peer.setValues if one of the values has
7395 (generateName): New method.
7396 (getUniqueLong): New method.
7397 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7398 (range_scrollbar): Remove structure.
7399 (post_adjustment_event): Remove function.
7400 (post_change_event): Accept jobject argument.
7401 (create): Cast jints to gdoubles. Round scrollbar values to the
7402 nearest integer. Clamp min, max and value settings.
7403 (connectJObject): Connect hook to widget->window.
7404 (connectSignals): Remove range_scrollbar structure variables.
7405 Remove "move-slider" connection. Pass global peer reference to
7406 "value-changed" callback.
7407 (setLineIncrement): Cast jint value to gdouble.
7408 (setPageIncrement): Likewise.
7409 (setValues): Likewise. Clamp min, max and value settings.
7411 2004-02-05 Michael Koch <konqueror@gmx.de>
7413 * javax/swing/AbstractCellEditor.java
7414 (getCellEditorValue): Removed.
7415 * javax/swing/Box.java: Reformated.
7416 (serialVersionUID): New field.
7417 * javax/swing/ButtonGroup.java:
7418 Removed some weird whitespace.
7419 * javax/swing/CellEditor.java: Reformated.
7420 * javax/swing/CellRendererPane.java
7421 (serialVersionUID): New field.
7422 (AccessibleCellRendererPaneserialVersionUID): New field.
7423 * javax/swing/DefaultListModel.java
7424 (serialVersionUID): New field.
7425 * javax/swing/JEditorPane.java
7426 (serialVersionUID): New field.
7427 (setPage): Throws IOException.
7428 (addHyperlinkListener): Implemented.
7429 (removeHyperlinkListener): Implemented.
7430 (getHyperlinkListener): New method.
7431 * javax/swing/JFileChooser.java
7432 (serialVersionUID): New field.
7433 (AccessibleJFileChooser.serialVersionUID): New field.
7434 (addActionListener): Implemented.
7435 (removeActionListener): Implemented.
7436 (getActionListeners): New method.
7437 * javax/swing/JFormattedTextField.java
7438 (serialVersionUID): New field.
7439 (AbstractFormatter.serialVersionUID): New field.
7440 (clone): Throws CloneNotSupportedException
7441 (setEditValid): Add missing argument.
7442 (stringToValue): Throws ParseExcpetion.
7443 (valueToString): Throws ParseException.
7444 (commitEdit): Throws ParseException.
7445 * javax/swing/JLabel.java
7446 (serialVersionUID): New field.
7447 * javax/swing/JList.java
7448 (serialVersionUID): New field.
7449 (addListSelectionListener): Reformated.
7450 (removeListSelectionListener): Reformated.
7451 (getListSelectionListeners): New method.
7452 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7454 (serialVersionUID): New field.
7455 * javax/swing/table/AbstractTableModel.java
7456 (getValueAt): Removed.
7457 (getColumnCount): Removed.
7458 (getRowCount): Removed.
7460 2004-02-05 Michael Koch <konqueror@gmx.de>
7462 * java/awt/datatransfer/DataFlavor.java
7463 (imageFlavor): Javadoc added.
7464 (javaJVMLocalObjectType): Fixed.
7466 2004-02-05 Michael Koch <konqueror@gmx.de>
7468 * java/lang/Thread.java
7469 (Thread): Reordered.
7470 (setContextClassLoader): Fixed javadoc comment.
7471 (setPriority): Reordered.
7473 (initialize_native): Reordered.
7474 (gen_name): Reordered.
7476 2004-02-05 Michael Koch <konqueror@gmx.de>
7478 * java/lang/Thread.java: Reordered fields, reformated much code,
7479 no functional changes, some variables renamed, javadoc comments
7482 2004-02-05 Michael Koch <konqueror@gmx.de>
7484 * java/util/zip/Deflater.java,
7485 java/util/zip/DeflaterOutputStream.java,
7486 java/util/zip/GZIPInputStream.java:
7487 Reformated and javadoc comments merged from classpath.
7489 2004-02-05 Michael Koch <konqueror@gmx.de>
7491 * gnu/java/nio/NIOServerSocket.java
7492 (impl): Unused, removed.
7493 * gnu/java/nio/SocketChannelImpl.java
7494 (finnishConnect): Don't throw NoConnectionPendingException if not
7495 connected or no connection pending.
7497 2004-02-02 Graydon Hoare <graydon@redhat.com>
7499 * javax/swing/SwingUtilities.java: Many new functions.
7500 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7501 * javax/swing/basic/BasicGraphicsUtils.java
7502 (getPreferredButtonSize): Start layout from top-left corner.
7504 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7506 * java/awt/geom/AffineTransform.java:
7507 Corrected comments on the field definitions for
7509 (shear): Fixed few errors that caused shear
7510 transformation to be performed incorrectly.
7511 (createInverse): Fixed to return correct
7512 inverse of the given matrix.
7514 2004-02-03 Tom Tromey <tromey@redhat.com>
7516 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7517 PATH or LD_LIBRARY_PATH is not set in parent environment.
7519 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7521 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7522 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7523 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7524 java/awt/Component.java, java/awt/Container.java,
7525 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7526 java/awt/LayoutManager2.java, java/awt/List.java,
7527 java/awt/Menu.java, java/awt/MenuBar.java,
7528 java/awt/MenuItem.java, java/awt/Polygon.java,
7529 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7530 java/awt/Scrollbar.java, java/awt/TextArea.java,
7531 java/awt/TextField.java,
7532 java/awt/image/renderable/RenderContext.java,
7533 javax/swing/JApplet.java: Fix handling of alias methods, where a
7534 method has been deprecated in favour of a new one with the same
7535 funtion but a different name. Put the method implementation in
7536 the deprecated method and have the new method call the
7537 deprecated one. Make all other code call the new method.
7539 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7541 * gnu/java/nio/DatagramChannelImpl.java
7542 (inChannelOperation): New field.
7543 (isInChannelOperation): New accessor.
7544 (setInChannelOperation): New modifier.
7545 (receive): Use capacity() - position() of destination
7546 buffer instead of remaining(). Set and reset our "in
7547 channel operation indicator" before and after delegating
7548 the receive to our datagram socket. Removed testing code.
7549 Update destination buffer's current position if it is
7550 backed by a byte array (hasArray() is true).
7551 (send): Set and reset our "in channel operation indicator"
7552 before and after delegating the send to our datagram socket.
7553 Removed testing code. Update source buffer's current position
7554 if it is backed by a byte array (hasArray() is true).
7555 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7556 Use capacity() - position() of destination buffer instead
7558 * java/net/DatagramSocket.java (receive): Don't throw an
7559 IllegalBlockingModeException if we have a non-blocking
7560 channel which initiated this operation.
7563 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7565 * configure.in: Add pkgconfig check for glib and gthread.
7566 * configure: Regenerate.
7568 2004-02-01 Michael Koch <konqueror@gmx.de>
7570 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7572 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7573 * verify.cc (debug_print): Mark 'fmt' unused.
7575 2004-01-30 Michael Koch <konqueror@gmx.de>
7577 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7578 * configure: Regenerated.
7579 * glib-2.0.m4: Removed.
7580 * gtk-2.0.m4: Removed.
7581 * libart.m4: Removed.
7584 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7586 * gnu/java/net/PlainSocketImpl.java
7587 (inChannelOperation): New field.
7588 (isInChannelOperation): New accessor.
7589 (setInChannelOperation): New modifier.
7590 * gnu/java/nio/ServerSocketChannelImpl.java
7591 (accept): Set and reset our server socket's PlainSocketImpl's
7592 "in channel operation" indicator before and after delegating
7593 the accept to our server socket.
7594 * gnu/java/nio/SocketChannelImpl.java
7595 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7596 operation" indicator before and after delegating the operation to
7600 * java/net/ServerSocket.java (implAccept): Don't throw an
7601 IllegalBlockingModeException if we have a non-blocking
7602 channel which initiated this accept operation.
7603 * java/net/Socket.java (connect): Don't throw an
7604 IllegalBlockingModeException if we have a non-blocking
7605 channel which initiated this connect operation.
7606 * java/nio/channels/spi/AbstractSelectableChannel.java
7607 (configureBlocking): Only call implConfigureBlocking() if
7608 the desired blocking mode is different from our current one.
7610 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7612 * java/io/BufferedReader.java (sbuf): New field.
7613 (readLine): Use String.valueOf instead of new String() as per
7614 Per Bothner's suggestion. Use instance sbuf field instead of a
7615 local StringBuffer instance.
7616 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7617 caller's buffer to refill().
7618 (read(void)): Pass our internal work buffer to refill if our
7619 input queue is empty.
7620 (refill): Changed return type to int. Use the specified buffer
7621 instead of our work buffer as per Bryce McKinlay's suggestion.
7622 Return the number of characters read or -1 for EOF.
7624 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7626 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7628 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7630 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7631 * Makefile.in: Re-generated.
7632 * gnu/awt/xlib/XFontPeer.java: New file.
7633 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7634 (setClip): Commented out debug printout.
7635 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7636 (getFontPeer): Return XFontPeer.
7637 (getLocalGraphicsEnvironment): New method.
7638 (getClasspathFontPeer): New method.
7639 (createFont): New method.
7641 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7643 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7646 2004-01-29 Kim Ho <kho@redhat.com>
7648 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7649 (gtkLayoutSetVisible): New method
7650 (setMenuBar): Hide layout before setting MenuBar
7651 and reshow it after.
7652 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7653 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7655 2004-01-28 Michael Koch <konqueror@gmx.de>
7657 * gnu/java/lang/ClassHelper.java
7658 (getPackagePortion): Removed.
7660 2004-01-28 Michael Koch <konqueror@gmx.de>
7662 * javax/swing/JComponent.java
7663 (listenerList): Initalize globally.
7664 (ancestor_list): Removed.
7665 (veto_list): Removed.
7666 (change_list): Removed.
7667 (get_veto_list): Removed.
7668 (get_change_list): Removed.
7669 (get_ancestor_list): Removed.
7670 (removeAncestorListener): Reimplemented.
7671 (removePropertyChangeListener): Likewise.
7672 (removeVetoableChangeListener): Likewise.
7673 (addAncestorListener): Likewise.
7674 (addPropertyChangeListener): Likewise.
7675 (addVetoableChangeListener): Likewise.
7676 (getListeners): New method.
7677 (getAncestorListeners): Likewise.
7678 (getVetoableChangeListeners): Likewise.
7679 (fireVetoableChange): Throws PropertyVetoException.
7680 * javax/swing/JEditorPane.java
7681 (JEditorPane): Throws IOException.
7683 2004-01-28 David Jee <djee@redhat.com>
7685 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7686 (create): Set the default foreground color to
7687 java.awt.SystemColor.windowText.
7689 2004-01-27 Michael Koch <konqueror@gmx.de>
7691 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7692 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7693 Reindented to merge with classpath.
7695 2004-01-27 David Jee <djee@redhat.com>
7697 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7698 (addExposeFilter): Handle GtkFramePeer separately.
7699 (removeExposeFilter): Likewise.
7701 2004-01-27 Michael Koch <konqueror@gmx.de>
7703 * gnu/java/net/protocol/http/Connection.java
7704 (getOutputStream): Fixed typo.
7706 2004-01-27 Michael Koch <konqueror@gmx.de>
7708 * java/lang/Class.java
7709 (getConstructor): Removed SecurityException from throws clause.
7710 (_getConstructors): Likewise.
7711 (getConstructors): Likewise.
7712 (getDeclaredConstructor): Likewise.
7713 (getDeclaredClasses): Likewise.
7714 (getDeclaredConstructors): Likewise.
7715 (getDeclaredField): Likewise.
7716 (getDeclaredMethod): Likewise.
7717 (getDeclaredMethods): Likewise.
7718 (getField): Likewise.
7719 (getMethod): Likewise.
7720 (getMethods): Likewise.
7722 2004-01-27 Kim Ho <kho@redhat.com>
7724 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7725 (removeMenuBarPeer): Remove MenuBarPeer argument.
7726 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7727 (dispose): Call native method.
7728 * java/awt/Frame.java (setMenuBar): Create and remove
7729 MenuBar peers only if the Frame has a peer.
7730 (addNotify): Create the MenuBar peer if one exists.
7731 (removeNotify): Remove MenuBar peer if one exists.
7732 * java/awt/Menu.java: Fix imports.
7733 (addNotify): Don't use full class name.
7734 (removeNotify): Call removeNotify on all children.
7735 * java/awt/MenuBar.java (removeNotify): Call
7736 removeNotify on all children.
7737 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7738 (removeMenuBarPeer): Remove MenuBarPeer argument.
7739 Iterate through children to find the Frame's MenuBar.
7740 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7742 (dispose): Remove references to the MenuComponent.
7744 2004-01-27 Michael Koch <konqueror@gmx.de>
7746 * javax/swing/AbstractCellEditor.java: Reformated.
7747 * javax/swing/DefaultListSelectionModel.java
7748 (listenerList): Made protected.
7749 (addListSelectionListener): Javadoc added.
7750 (removeListSelectionListener): Likewise.
7751 (getListeners): Likewise.
7752 (getListSelectionListeners): Likewise.
7753 * javax/swing/JComboBox.java: Merged copyright year.
7754 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7756 2004-01-26 Andrew Haley <aph@redhat.com>
7758 * javax/swing/table/JTableHeader.java: Extend JComponent
7760 2004-01-26 Kim Ho <kho@redhat.com>
7762 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7765 2004-01-26 Kim Ho <kho@redhat.com>
7767 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7769 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7770 height and let the Layout Managers readjust anything that
7772 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7773 (moveLayout): New method. Shift everything in the Gtk
7774 layout in the Y direction by an offset.
7776 2004-01-26 David Jee <djee@redhat.com>
7778 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7779 (handleEvent): Implemented. Handles PaintEvents.
7780 (paint): Implemented. Use GTK native methods to queue updates
7781 for this heavyweight peer.
7782 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7783 (handleEvent): Removed.
7784 * java/awt/Component.java
7785 (paint): Implemented. Explictly paint the heavyweight peer.
7786 (update): Clear the background for heavyweight components.
7787 (paintAll): No need to call peer.paint() anymore.
7788 (processEvent): Don't process PaintEvents here. It's now done in
7789 the peer's handleEvent().
7790 (processPaintEvent): Removed.
7791 * java/awt/Container.java
7792 (paint): No need to call super.paint(). Visit heavyweight
7794 (update): Don't clear the background here. It's done in
7796 (visitChildren): Added check to not recurse into Containers.
7797 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7798 (filter_expose_event_handler): New method. Filter unwanted
7799 expose events while painting heavyweight peers.
7800 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7801 New method. Connect filter and block pre_event_handler.
7802 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7803 New method. Disconnect filter and unblock pre_event_handler.
7804 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7805 New method. Invalidate and update given area.
7806 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7807 (pre_event_handler): Add checks for unwanted expose events.
7809 2004-01-26 David Jee <djee@redhat.com>
7811 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7812 (find_bg_color_widget): For GtkButton, return its child.
7814 2004-01-26 Kim Ho <kho@redhat.com>
7816 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7818 (setMenuBar): Grab MenuBar height and change insets.
7819 (setBounds): Account for MenuBar height.
7820 (postInsetsChangedEvent): Ditto.
7821 (postSizeAllocateEvent): Remove.
7822 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7823 (menubar_resize_cb): Remove
7824 (setMenuBarPeer): Remove callback.
7825 (getMenuBarHeight): Use size requisition instead of
7828 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7830 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7831 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7833 (setColumns): Remove FIXME -- peer will retrieve number of
7834 columns by calling getColumns.
7835 (setRows): Likewise for number of rows.
7836 (next_text_number): New field.
7837 (paramString): Fix param string.
7838 (generateName): New method.
7839 (getUniqueLong): New method.
7841 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7843 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7844 image observer of image loading status.
7845 (getImage (String)): Start image production.
7846 (getImage (URL)): Likewise.
7848 2004-01-25 Michael Koch <konqueror@gmx.de>
7850 * java/lang/Class.java: Imports reworked, reformated.
7851 (Class): Javadoc added.
7852 (forName): Likewise.
7853 (getClasses): Likewise.
7854 (getClassLoader): Likewise.
7855 (getComponentType): Likewise.
7856 (getConstructor): Likewise.
7857 (getConstructors): Likewise.
7858 (getDeclaredConstructor): Likewise.
7859 (getDeclaredClasses): Likewise.
7860 (getDeclaredConstructors): Likewise.
7861 (getDeclaredField): Likewise.
7862 (getDeclaredMethod): Likewise.
7863 (getDeclaredMethods): Likewise.
7864 (getDeclaringClass): Likewise.
7865 (getField): Likewise.
7866 (getInterfaces): Likewise.
7867 (getMethod): Likewise.
7868 (getMethods): Likewise.
7869 (getModifiers): Likewise.
7870 (getName): Likewise.
7871 (getResource): Likewise.
7872 (getResourceAsStream): Likewise.
7873 (getSigners): Likewise.
7874 (setSigners): Likewise.
7875 (getSuperclass): Likewise.
7876 (isArray): Likewise.
7877 (isAssignableFrom): Likewise.
7878 (isInstance): Likewise.
7879 (isInterface): Likewise.
7880 (isPrimitive): Likewise.
7881 (newInstance): Likewise.
7882 (getProtectionDomain): Likewise.
7883 (toString): Likewise.
7885 (initializeClass): Likewise.
7886 (finalize): Likewise.
7888 2004-01-24 Michael Koch <konqueror@gmx.de>
7890 * gnu/java/net/protocol/jar/Connection.java
7893 (gotHeaders): Removed.
7894 (getHeaderField): Removed.
7895 (getHeaderFields): Removed.
7896 (getHeaderFieldKey): Removed.
7898 (getField): Removed.
7899 (getHeaders): Removed.
7901 2004-01-24 Michael Koch <konqueror@gmx.de>
7903 * Makefile.am: Added library version to gtk peer lib.
7904 * Makefile.in: Regenerated.
7906 2004-01-24 Michael Koch <konqueror@gmx.de>
7908 * java/util/zip/InflaterInputStream.java: Merged class documentation
7911 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7913 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7914 header. For __powerpc64__ provide the default-signal.h definitions
7916 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7917 instead of the dummy definitions.
7918 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7919 (powerpc64*-*): Remove with_libffi_default.
7920 Only add -mminimal-toc for 64-bit compilations.
7921 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7922 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7923 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7924 * configure: Rebuilt.
7926 2004-01-23 Michael Koch <konqueror@gmx.de>
7928 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7930 2004-01-23 Michael Koch <konqueror@gmx.de>
7932 * java/lang/VMClassLoader.java: Reworked imports.
7934 2004-01-23 Michael Koch <konqueror@gmx.de>
7936 * javax/swing/AbstractAction.java: Reformated.
7938 2004-01-23 Michael Koch <konqueror@gmx.de>
7940 * java/text/CollationElementIterator.java:
7941 (setText): New method.
7943 2004-01-23 Michael Koch <konqueror@gmx.de>
7945 * gnu/java/nio/FileLockImpl.java:
7946 Fixed filename in copyright.
7947 (released): Removed.
7948 (finalize): New method.
7949 * gnu/java/nio/natFileLockImpl.cc
7950 (releaseImpl): Implemented.
7951 * java/nio/channels/FileChannelImpl.java:
7953 (lock): Implemented.
7954 (lockImpl): New method.
7955 (tryLock): Implemented.
7956 (tryLockImpl): New method.
7957 * java/nio/channels/natFileChannelImpl.cc
7958 (lockImpl): New method.
7959 (tryLockImpl): New method.
7961 2004-01-23 Michael Koch <konqueror@gmx.de>
7963 * java/io/FileDescriptor.java
7965 (tryLock): New method.
7966 (unlock): New method.
7967 * java/io/natFileDescriptorEcos.cc
7969 (tryLock): New method.
7970 (unlock): New method.
7971 * java/io/natFileDescriptorPosix.cc
7973 (tryLock): New method.
7974 (unlock): New method.
7975 * java/io/natFileDescriptorWin32.cc
7977 (tryLock): New method.
7978 (unlock): New method.
7980 2004-01-23 Michael Koch <konqueror@gmx.de>
7982 * java/io/FileDescriptor.java
7983 (sync): Moved around, added javadoc.
7988 (setLength): Likewise.
7990 (getLength): Likewise.
7991 (getFilePointer): Likewise.
7993 (available): Likewise.
7994 (finalize): Likewise.
7996 2004-01-23 Michael Koch <konqueror@gmx.de>
7998 * javax/swing/AbstractAction.java: Reformated.
7999 (getPropertyChangeListeners): New method.
8000 * javax/swing/AbstractCellEditor.java: Reformated.
8001 (getCellEditorListeners): New method.
8002 * javax/swing/DefaultListSelectionModel.java
8003 (listenerList): New field.
8004 (listeners): Removed.
8005 (get_listeners): Removed.
8006 (addListSelectionListener): Rewritten.
8007 (removeListSelectionListener): Rewritten.
8008 (getListSelectionListeners): New method.
8009 (getListeners): New method.
8010 * javax/swing/JComboBox.java: Imports reworked.
8011 (addActionListener): Implemented.
8012 (removeActionListener): Implemented.
8013 (addItemListener): Implemented.
8014 (removeItemListener): Implemented.
8015 (addPopupMenuListener): Implemented.
8016 (removePopupMenuListener): Implemented.
8017 (getActionListeners): New method.
8018 (getItemListeners): New method.
8019 (getPopupMenuListeners): New method.
8021 2004-01-23 Michael Koch <konqueror@gmx.de>
8023 * gnu/java/net/protocol/http/Connection.java
8024 (connect): Don't initialize bufferedOutputStream if not needed.
8025 (sendRequest): Set property for content length if content is present.
8026 Write content only if present.
8027 (getOutputStream): Check if already connected, dont connect,
8028 initalize bufferedOutputStream if needed.
8030 2004-01-23 Michael Koch <konqueror@gmx.de>
8032 * java/io/FileDescriptor.java
8033 (in, out, err): Added javadoc.
8034 (static): Merged loading code.
8035 (fd, position): Moved around.
8037 2004-01-23 Michael Koch <konqueror@gmx.de>
8039 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
8042 2004-01-23 Michael Koch <konqueror@gmx.de>
8044 * java/lang/Class.java,
8045 java/lang/Object.java,
8046 java/lang/Thread.java: Merged copyright with classpath.
8048 2004-01-23 Michael Koch <konqueror@gmx.de>
8050 * java/io/FileDescriptor.java: Merged copyright with classpath to
8051 start merging this class.
8053 2004-01-22 Tom Tromey <tromey@redhat.com>
8056 * testsuite/libjava.lang/pr13107_2.xfail: New file.
8057 * testsuite/libjava.lang/pr13107_3.xfail: New file.
8058 * testsuite/libjava.lang/pr13107_3.java: New file.
8059 * testsuite/libjava.lang/pr13107_3.out: New file.
8060 * testsuite/libjava.lang/pr13107_2.java: New file.
8061 * testsuite/libjava.lang/pr13107_2.out: New file.
8062 * testsuite/libjava.lang/pr13107.java: New file.
8063 * testsuite/libjava.lang/pr13107.out: New file.
8064 * verify.cc (jsr_ptrs): Removed.
8065 (entry_points): Likewise.
8066 (struct subr_info): Likewise.
8067 (struct subr_entry_info): Likewise.
8068 (type_val::unused_by_subroutine_type): Likewise.
8069 (type::merge): Don't handle unused_by_subroutine_type.
8070 (type::print): Likewise.
8071 (state::flags): Removed.
8072 (state::subroutine): Likewise.
8073 (state::seen_subrs): Likewise.
8074 (state::NO_STACK): Likewise.
8075 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
8076 (state): Updated all methods.
8077 (state::clean_subrs): Removed.
8078 (state::state): Removed `ret_semantics' flag.
8079 (state::copy): Likewise.
8080 (state::add_subr): Removed.
8081 (state::enter_subroutine): Likewise.
8082 (type::set_return_address): New method.
8083 (handle_jsr_insn): Set return address on the type. Always
8084 invalidate PC after call.
8085 (check_nonrecursive_call): Removed.
8086 (~_Jv_BytecodeVerifier): Updated.
8087 (branch_prepass): Removed special handling of jsr.
8088 (note_branch_target): Likewise.
8089 (get_subroutine): Removed.
8090 (state::merge): Don't merge subroutines and don't handle
8091 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
8092 (state::note_variable): Removed.
8093 (state::is_unmerged_ret_state): Likewise.
8094 (state::print): Updated.
8095 (set_variable): Likewise.
8096 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
8097 and jsr_semantics arguments. Updated for new reverification
8099 (pop_jump): Rewrote.
8100 (construct_primitive_array_type): Updated.
8101 (state::next): Removed.
8102 (INVALID_STATE): New define.
8103 (state::INVALID): Removed.
8104 (state::NO_NEXT): New value.
8105 (state::pc, state::next): New fields.
8106 (state::get_pc): New method.
8107 (next_verify_pc): Removed.
8108 (next_verify_state): New field.
8109 (verify_instructions_0): Always check for falling off end.
8111 (linked_utf8): Removed.
8112 (states): Changed type.
8113 (type::state_mergeable_p): New method.
8114 (state::state_mergeable_p): Likewise.
8115 (handle_ret_insn): Removed most code.
8116 (state::reverify): New method.
8117 (add_new_state): Likewise.
8118 (state::set_pc): Likewise.
8120 2004-01-22 Jeff Sturm <jsturm@one-point.com>
8123 * testsuite/libjava.compile/PR13733.java: New file.
8124 * testsuite/libjava.compile/PR13733.xfail: New file.
8126 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
8127 Michael Koch <konqueror@gmx.de>
8129 * javax/swing/table/DefaultTableCellRenderer.java
8130 (DefaultTableCellRenderer): Added javadoc for the class and for
8131 the constructor, Border instance, create an EmptyBorder.
8132 (UIResource): Removed the comment at the end of the class
8133 (setForeground): New method.
8134 (setBackground): New method.
8135 (updateUI): New method.
8136 (getTableCellRendererComponent): Rewritten with the help of
8137 dvholten and Stephane Meslin-Weber.
8138 (validate): New method.
8139 (repaint): New method.
8140 (firePropertyChange): New method.
8141 (setValue): New method.
8143 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
8145 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8146 (connectJObject): Replace printf calls with g_assert statements.
8147 Move property-notify-event signal connection to ...
8148 (connectSignals): Connect property-notify-event signal. Iterate
8149 through the vbox's children to find layout.
8151 2004-01-22 Graydon Hoare <graydon@redhat.com>
8153 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
8154 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
8155 Predicate static initialization on GtkToolkit.useGraphics2D().
8156 * java/awt/Component.java (processPaintEvent): Consume event.
8157 * javax/swing/AbstractButton.java: Reimplement, document.
8158 * javax/swing/DefaultButtonModel.java: Reimplement, document.
8159 * javax/swing/JComponent.java (paint): Use double buffer.
8160 (listenerList): Enable member.
8161 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
8162 * javax/swing/JToggleButton.java
8163 (JToggleButton): Modify model constructor.
8164 * javax/swing/SwingUtilities.java
8165 (layoutCompoundLabel): Adjust arithmetic.
8166 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
8167 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8168 (getPreferredButtonSize): Include margins in calculation.
8169 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8170 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
8171 Receive up events from subordinate layout component.
8173 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
8175 * java/awt/Component.java (show): Set visible to true before
8178 2004-01-21 Kim Ho <kho@redhat.com>
8180 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
8182 (removeMenuBarPeer): Make package private.
8183 (setMenuBarPeer): Make package private.
8184 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8185 (menubar_resize_cb): Mark attributes unused.
8186 (getMenuBarHeight): ditto.
8188 2004-01-21 David Jee <djee@redhat.com>
8190 * java/awt/Container.java
8191 (LightweightDispatcher.handleEvent): Add an extra check to avoid
8192 dispatching MOUSE_ENTERED event twice. Translate the point for
8193 the mouse event target before dispatching the event.
8195 2004-01-20 Jakub Jelinek <jakub@redhat.com>
8197 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
8198 lib_org_w3c_dom_la_LDFLAGS): New.
8199 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
8200 * Makefile.in: Rebuilt.
8202 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
8204 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
8205 Calculate proper offsets for heavyweight components packed in
8206 lightweight containers.
8208 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8209 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8210 (native create): Add width parameter.
8211 (create): Calculate text entry width based on current font's
8212 metrics and number of columns. Set TextField's font if not
8213 already set. Call native create.
8214 (gtkEntryGetBorderWidth): New native method.
8215 (gtkEntryGetSize): Remove method.
8216 (getMinimumSize): Call minimumSize.
8217 (getPreferredSize): Call preferredSize.
8218 (minimumSize): Calculate minimum size based on backing
8219 GtkEntry's borders, font metrics and number of columns.
8220 (preferredSize): Likewise for preferred size.
8221 (get_border_width): New static function.
8223 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8224 Override GtkWindowPeer's setResizable method to account for menu
8225 bar height when setting the frame's size.
8227 2004-01-19 Matthias Klose <doko@debian.org>
8229 * libtool-version: Increased `current' to 6.
8231 2004-01-19 Kim Ho <kho@redhat.com>
8233 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8234 (connectJObject): Iterate through the vbox's children to find layout.
8236 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8238 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8239 isDispatchThread method to replace wrong test condition.
8241 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8243 * java/awt/EventQueue.java (pop): Prevent racing condition to add
8244 events to the queue out of order by acquiring locks in the proper
8245 order and not by releasing one before acquiring the other.
8247 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8249 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8250 visible so that dialog can be reused.
8252 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8254 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8255 events may be handled by any queue in the stack.
8257 2004-01-19 Kim Ho <kho@redhat.com>
8259 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8260 MenuBarPeer parameter.
8261 (removeMenuBarPeer): New native method.
8262 (setMenuBar): Call remove if menu bar is null. Adjust insets
8264 (postSizeAllocateEvent): New method. Called when menu bar size is
8265 allocated. Adjust insets and redo layout.
8266 (GtkFramePeer): Set menu bar during frame creation.
8267 (postConfigureEvent): Adjust position and size to accomodate
8269 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8270 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8271 (addNotify): Create the peer if it doesn't exist and call addNotify
8272 for the menu's items.
8273 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8274 * java/awt/MenuItem.java (addNotify): Create the peer if it
8276 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8277 (removeMenuBarPeer): New method. Remove menu bar on the current
8279 (setMenuBarPeer): Add the menu bar to the current frame and the
8280 callback for size-allocate events on the menu bar.
8281 (getMenuBarHeight): Add menu bar parameter.
8282 (menubar_resize_cb): New callback method for postSizeAllocate events.
8284 Also: Fix indentation on last ChangeLog entry.
8286 2004-01-16 Kim Ho <kho@redhat.com>
8288 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8289 (gtkWidgetGetDimensions): Remove.
8290 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8291 (gtkWidgetGetDimensions): Remove.
8293 2004-01-16 Tom Tromey <tromey@redhat.com>
8295 * java/awt/Container.java: Typo and indentation fixes.
8297 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8298 * java/lang/natVMClassLoader.cc: ...here. New file.
8299 * Makefile.in: Rebuilt.
8300 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8302 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8304 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8305 Discard GDK_ENTER_NOTIFY related to ungrabs.
8307 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8309 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8310 is called for an intermediate queue.
8312 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8314 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8315 (window_property_changed_cb): Set id_set.
8317 2004-01-16 Kim Ho <kho@redhat.com>
8319 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8320 it is a FileDialog and has dimensions of 0 by 0, then the initial
8321 size is set to size request plus insets.
8322 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8323 (gtkWidgetGetDimensions): Override method.
8324 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8325 (gtkWidgetGetDimensions): Override method. Returns size request plus
8328 2004-01-16 Andrew Haley <aph@redhat.com>
8330 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8331 * sysdep/i386/locks.h: Likewise.
8333 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8335 * java/awt/EventDispatchThread.java (run): Stop running when
8337 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8338 Reset the queue after transferring its contents.
8339 (push): Start a new dispatch thread if none is running.
8341 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8343 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8344 (doPolygon): set fill rule of polygon to
8345 WIND_EVEN_ODD by default.
8347 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8349 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8350 Implemented rendering hints related methods.
8351 (getDefaultHints): New helper method. Returns
8352 default rendering hints.
8353 (walkPath): changed to normalize path if
8354 the KEY_STROKE_CONTROL key is in "normalize" mode.
8355 (draw3DRect): changed coordinates of rectangle by +0.5
8356 if in "normalize" mode.
8358 2004-01-15 Tom Tromey <tromey@redhat.com>
8360 * Makefile.in: Rebuilt.
8361 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8362 (%.lo: %.java) Filter out StackTrace.lo.
8364 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8366 * configure.in: Add in AC_PREREQ(2.13)
8367 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8370 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8371 Tom Tromey <tromey@redhat.com>
8374 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8375 array to superclass.
8376 (init): Changed interface; add URLs here.
8377 (initialize): New static method.
8378 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8379 (_Jv_RunMain): ... not here.
8381 2004-01-14 Michael Koch <konqueror@gmx.de>
8383 * java/text/MessageFormat.java:
8384 Added descriptions to exceptions.
8385 This fixes PR libgcj/2429.
8387 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8389 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8390 (push): Make sure push is performed at the top of the thread stack.
8392 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8394 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8395 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8396 (native create): Add width and height parameters. Set text
8397 view's size request according to new parameters.
8398 (create): Calculate text view size based on current font's
8399 metrics and number of rows and columns. Set TextArea's font if
8400 not already set. Call native create.
8401 (getMinimumSize): Call minimumSize.
8402 (getPreferredSize): Call preferredSize.
8403 (getHScrollbarHeight): New method.
8404 (getVScrollbarWidth): New method.
8405 (minimumSize): Calculate minimum size based on scrollbar
8406 visibility, scrollbar sizes, font metrics and number of rows and
8408 (preferredSize): Likewise for preferred size.
8409 (gtkTextGetSize): Remove method.
8411 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8413 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8414 (initializeInsets): Remove method.
8415 (GtkComponentPeer): Initialize insets field. Remove call to
8417 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8419 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8421 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8422 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8423 (latestInsets): Remove field.
8424 (native create): Add insets parameter. Call
8425 window_get_frame_extents. Set the window's default size and
8426 size request based on its frame extents.
8427 (create): Initialize insets.
8428 (postInsetsChangedEvent): New method.
8429 (postConfigureEvent): Remove parameters top, left, bottom,
8430 right. Remove insets-related logic.
8431 (connectJObject): Handle property-notify-event.
8432 (window_get_frame_extents, request_frame_extents,
8433 property_notify_predicate, window_property_changed_cb): New
8435 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8436 (pre_event_handler): Remove insets-related logic for configure
8438 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8439 Update postConfigureEvent signature.
8441 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8443 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8444 to handle Window "Closing" events.
8446 2004-01-13 David Jee <djee@redhat.com>
8448 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8449 (setBackground): New method. Children with no explicitly-set
8450 background will be repainted with the parent container's new
8453 2004-01-13 David Jee <djee@redhat.com>
8455 * Makefile.am: Add BitwiseXORComposite.java.
8456 * Makefile.in: Regenerated.
8457 * gcj/Makefile.in: Regenerated.
8458 * include/Makefile.in: Regenerated.
8459 * testsuite/Makefile.in: Regenerated.
8461 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8463 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8464 not show modal dialogs twice and so that it allows showing a modal
8465 dialog from another modal dialog.
8467 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8469 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8470 and run secondary dispatch thread to process event queue while this
8473 2004-01-12 Graydon Hoare <graydon@redhat.com>
8475 * gnu/java/awt/gtk/GdkGraphics2D.java
8476 (static): Check GtkToolkit before initializing static state.
8477 (Graphics2D): Don't construct transform with 0.5 unit offset.
8479 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8481 * gnu/java/awt/BitwiseXORComposite.java: Add.
8482 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8483 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8484 (BitwiseXORComposite): Remove inner class.
8486 2004-01-11 Michael Koch <konqueror@gmx.de>
8488 * gnu/java/lang/reflect/TypeSignature.java
8489 (getEncodingOfClass): Documentation fixed.
8490 (getClassForEncoding): Give class loader to Class.forName().
8491 Documentation fixed.
8493 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8495 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8497 2004-01-11 Michael Koch <konqueror@gmx.de>
8499 * javax/swing/undo/StateEditable.java
8500 (RCSID): Removed redundant modifiers.
8502 2004-01-10 Michael Koch <konqueror@gmx.de>
8504 * javax/print/attribute/EnumSyntax.java
8505 (getStringTable): Made protected.
8506 (getEnumValueTable): Likewise.
8507 * javax/print/attribute/standard/JobKOctetsProcessed.java
8508 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8509 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8510 (JobMediaSheetsCompleted): Made class final.
8511 * javax/print/attribute/standard/OutputDeviceAssigned.java
8512 (getName): Fixed typo.
8513 * javax/print/attribute/standard/RequestingUserName.java
8514 (serialVersionUID): Fixed value.
8516 2004-01-10 Michael Koch <konqueror@gmx.de>
8518 * javax/swing/plaf/basic/BasicButtonUI.java,
8519 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8520 javax/swing/plaf/basic/BasicListUI.java,
8521 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8522 javax/swing/plaf/basic/BasicPanelUI.java,
8523 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8524 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8525 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8526 javax/swing/plaf/basic/BasicViewportUI.java:
8527 Fixed import statements.
8529 2004-01-10 Michael Koch <konqueror@gmx.de>
8531 * gnu/java/awt/image/ImageDecoder.java
8532 (produce): Made public.
8533 * gnu/java/awt/peer/GLightweightPeer.java,
8534 gnu/java/awt/peer/gtk/GtkToolkit.java:
8537 2004-01-10 Michael Koch <konqueror@gmx.de>
8539 * javax/swing/JRadioButtonMenuItem.java,
8540 javax/swing/JSeparator.java,
8541 javax/swing/JSplitPane.java,
8542 javax/swing/JTextPane.java,
8543 javax/swing/JToolBar.java,
8544 javax/swing/ListCellRenderer.java,
8545 javax/swing/ListModel.java,
8546 javax/swing/MenuElement.java,
8547 javax/swing/OverlayLayout.java,
8548 javax/swing/ProgressMonitor.java,
8549 javax/swing/ProgressMonitorInputStream.java,
8550 javax/swing/Renderer.java,
8551 javax/swing/RootPaneContainer.java,
8552 javax/swing/Scrollable.java,
8553 javax/swing/SingleSelectionModel.java,
8554 javax/swing/ToolTipManager.java,
8555 javax/swing/ViewportLayout.java,
8556 javax/swing/event/DocumentEvent.java,
8557 javax/swing/event/SwingPropertyChangeSupport.java,
8558 javax/swing/event/TreeSelectionEvent.java,
8559 javax/swing/event/UndoableEditEvent.java,
8560 javax/swing/text/AbstractDocument.java,
8561 javax/swing/text/AttributeSet.java,
8562 javax/swing/text/Caret.java,
8563 javax/swing/text/ComponentView.java,
8564 javax/swing/text/DefaultCaret.java,
8565 javax/swing/text/DefaultEditorKit.java,
8566 javax/swing/text/Document.java,
8567 javax/swing/text/EditorKit.java,
8568 javax/swing/text/GapContent.java,
8569 javax/swing/text/Keymap.java,
8570 javax/swing/text/MutableAttributeSet.java,
8571 javax/swing/text/PlainEditorKit.java,
8572 javax/swing/text/Segment.java,
8573 javax/swing/text/Style.java,
8574 javax/swing/text/StyledDocument.java,
8575 javax/swing/text/StyledEditorKit.java,
8576 javax/swing/text/TextAction.java,
8577 javax/swing/text/View.java: Fixed import statements.
8579 2004-01-08 Graydon Hoare <graydon@redhat.com>
8581 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8582 djee@redhat.com's recent inverse ordering of Container elements.
8584 2004-01-09 Michael Koch <konqueror@gmx.de>
8586 * gnu/java/lang/ArrayHelper.java
8587 (equalsArray): Removed.
8589 2004-01-09 Andrew Haley <aph@redhat.com>
8591 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8592 a Utf8Const field before looking at its class.
8594 2004-01-09 Michael Koch <konqueror@gmx.de>
8596 * javax/print/attribute/standard/DocumentName.java,
8597 javax/print/attribute/standard/JobHoldUntil.java,
8598 javax/print/attribute/standard/JobMessageFromOperator.java,
8599 javax/print/attribute/standard/JobName.java,
8600 javax/print/attribute/standard/JobOriginatingUserName.java,
8601 javax/print/attribute/standard/OutputDeviceAssigned.java,
8602 javax/print/attribute/standard/PrinterInfo.java,
8603 javax/print/attribute/standard/PrinterLocation.java,
8604 javax/print/attribute/standard/PrinterMakeAndModel.java,
8605 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8606 javax/print/attribute/standard/PrinterName.java,
8607 javax/print/attribute/standard/RequestingUserName.java: New files.
8608 * Makefile.am (javax_source_files): Added new files.
8609 * Makefile.in: Regenerated.
8611 2004-01-09 Michael Koch <konqueror@gmx.de>
8613 * javax/swing/AbstractAction.java,
8614 javax/swing/AbstractSet.java,
8615 javax/swing/Action.java,
8616 javax/swing/ActionMap.java,
8617 javax/swing/BoundedRangeModel.java,
8618 javax/swing/ButtonModel.java,
8619 javax/swing/CellEditor.java,
8620 javax/swing/CellRendererPane.java,
8621 javax/swing/ComboBoxEditor.java,
8622 javax/swing/DebugGraphics.java,
8623 javax/swing/DefaultCellEditor.java,
8624 javax/swing/DefaultCellRenderer.java,
8625 javax/swing/DefaultComboBoxModel.java,
8626 javax/swing/DefaultDesktopManager.java,
8627 javax/swing/DefaultFocusManager.java,
8628 javax/swing/DefaultListCellRenderer.java,
8629 javax/swing/Icon.java,
8630 javax/swing/JButton.java,
8631 javax/swing/JCheckBoxMenuItem.java,
8632 javax/swing/JDesktopPane.java,
8633 javax/swing/JEditorPane.java,
8634 javax/swing/JMenu.java,
8635 javax/swing/JPanel.java,
8636 javax/swing/JPasswordField.java,
8637 javax/swing/JPopupMenu.java,
8638 javax/swing/JProgressBar.java: Reworked imports.
8640 2004-01-09 Michael Koch <konqueror@gmx.de>
8642 * java/awt/geom/PathIterator.java
8643 (WIND_EVEN_ODD): Removed redundant modifiers.
8644 (WIND_NON_ZERO): Likewise.
8645 (SEG_MOVETO): Likewise.
8646 (SEG_LINETO): Likewise.
8647 (SEG_QUADTO): Likewise.
8648 (SEG_CUBICTO): Likewise.
8649 (SEG_CLOSE): Likewise.
8650 * java/awt/image/SinglePixelPackedSampleModel.java:
8651 Removed redundant semicolon.
8652 * java/io/ObjectInputStream.java
8653 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8654 * java/util/logging/Filter.java
8655 (isLoggable): Removed redundant modifier.
8656 * java/util/logging/LogManager.java:
8657 Removed redundant semicolon.
8658 * java/util/logging/XMLFormatter.java
8659 (format): Removed unused variable "key".
8661 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8663 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8664 New name for the former setFile native method.
8665 (setFile): New method.
8666 (setDirectory): Implemented.
8667 (connectSignals): New native method.
8668 (setFilenameFilter): Improve comment.
8669 (getGraphics): Comment.
8670 (gtkHideFileDialog): New method.
8671 (gtkDisposeFileDialog): New method.
8672 (gtkSetFilename): New method.
8673 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8674 for FileDialog for now.
8676 (dispose): New method.
8677 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8678 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8679 deprecated creation functions. Make dialog modal. Add it to the
8681 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8683 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8685 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8687 (window_closed): New function.
8688 (ok_clicked): New function.
8689 (cancel_clicked): New function.
8691 2004-01-08 Michael Koch <konqueror@gmx.de>
8693 * javax/swing/JLayeredPane.java: Revert changes to standard
8694 boilerplate, reworked imports.
8696 2004-01-07 Tom Tromey <tromey@redhat.com>
8699 * verify.cc (state::merge): Copy changed locals out of subroutine
8701 (state::FLAG_CHANGED): New const.
8702 (state::FLAG_UNUSED): Likewise.
8703 (state::local_changed): Removed. Updated all users.
8704 (state::flags): New field.
8705 (state::merge): Added jsr_semantics argument, more logic.
8706 (push_jump_merge): Added jsr_semantics argument.
8707 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8708 merging through the jsr instruction.
8710 2004-01-07 Tom Tromey <tromey@redhat.com>
8712 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8715 2004-01-07 Graydon Hoare <graydon@redhat.com>
8717 * java/awt/Container.java (LightweightDispatcher): Implement.
8718 (visitChild): Reuse graphics object.
8719 (dispatchEventImpl): Optionally dispatch to lightweight.
8720 (addNotifyContainerChildren): Build LightweightDispatcher.
8722 2004-01-07 David Jee <djee@redhat.com>
8724 * java/awt/Container.java
8725 (update): Clear only the clipped region, instead of clearing the
8727 (visitChildren): Visit children in descending order.
8729 2004-01-07 Michael Koch <konqueror@gmx.de>
8731 * java/lang/reflect/Array.java: Merged documentation with classpath.
8733 2004-01-07 Michael Koch <konqueror@gmx.de>
8735 * java/text/CollationElementIterator.java
8736 (textIndex): Renamed from index.
8737 * java/text/CollationKey.java
8738 (collator): New member.
8739 (CollationKey): New argument for parent collator.
8740 (equals): Check for same collator, source string and key array.
8741 * java/text/RuleBasedCollator.java:
8743 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8745 (getCollationElementIterator): Rewritten.
8746 (getCollationKey): Added new argument to CollationKey constructor.
8748 2004-01-07 Michael Koch <konqueror@gmx.de>
8750 * gnu/java/nio/DatagramChannelImpl.java
8751 (blocking): Removed.
8752 (DatagramChannelImpl): Call configureBlocking().
8753 (implConfigureBlocking): Dont initialize blocking.
8754 * gnu/java/nio/ServerSocketChannelImpl.java
8755 (blocking): Removed.
8756 (ServerSocketChannelImpl): Call configureBlocking().
8757 (implConfigureBlocking): Dont initialize blocking.
8758 * gnu/java/nio/SocketChannelImpl.java
8759 (blocking): Removed.
8760 (SocketChannelImpl): Call configureBlocking().
8761 (implConfigureBlocking): Dont initialize blocking.
8762 (connect): Use isBlocking().
8763 * java/nio/channels/spi/AbstractSelectableChannel.java
8764 (configureBlocking): Use blockingLock() instead of LOCK.
8765 Set blocking after successfully called implConfigureBlocking().
8766 (register): Use blockingLock() instead of LOCK.
8768 2004-01-07 Michael Koch <konqueror@gmx.de>
8770 * java/net/ServerSocket.java (isBound): Fixed documentation.
8772 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8774 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8775 (changeEvent): Create event object on demand.
8776 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8777 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8778 fireStateChanged): Re-written.
8779 * javax/swing/event/EventListenerList.java: Reformatted, document
8781 (toString): Implemented.
8782 (getListeners): Re-written.
8783 (remove): Re-written.
8785 (NO_LISTENERS): New singleton field.
8786 (listenerList): Declare as transient; document.
8787 (serialVersionUID): Document.
8788 (getListenerCount(Class)): More efficient implementation,
8789 also accepts null argument. Improve Javadoc.
8790 (getListenerCount()): Remove unnecessary cast; docfix.
8791 * javax/swing/undo/UndoableEditSupport.java:
8792 Re-format, document.
8793 (UndoableEditSupport): Set realSource field. Improve documentation.
8794 (_postEdit): Iterate over cloned listener vector.
8795 (toString): Don't emit realSource.
8796 (beginUpdate, endUpdate): Support nested updates.
8797 (postEdit): Use compound edit if present.
8799 2004-01-06 Graydon Hoare <graydon@redhat.com>
8801 * java/awt/Container.java (swapComponents): Add forgotten
8802 function, required for JLayeredPane change.
8804 2004-01-06 Michael Koch <konqueror@gmx.de>
8806 * java/text/CollationElementIterator.java: Reformated.
8807 (CollationElementIterator): Changed order of arguments.
8808 * java/text/RuleBasedCollator.java
8809 (RuleBasedCollator): Merged class documentation.
8810 (CollationElement): Added documentation.
8811 (compare): Reformated, renamed arguments.
8813 (getCollationElementIterator): Likewise.
8814 (getCollationKey): Likewise.
8816 2004-01-06 Graydon Hoare <graydon@redhat.com>
8818 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8820 2004-01-06 Michael Koch <konqueror@gmx.de>
8822 * gnu/java/net/protocol/file/Connection.java:
8823 Reformated copyright.
8826 (gotHeaders): Removed.
8827 (getHeaderField): Removed.
8828 (getHeaderField): Removed.
8829 (getHeaderFieldKey): Removed.
8831 (getField): Removed.
8832 (getHeaders): Removed.
8834 2004-01-06 Michael Koch <konqueror@gmx.de>
8836 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8837 javax/print/attribute/standard/DateTimeAtCreation.java,
8838 javax/print/attribute/standard/DateTimeAtProcessing.java,
8839 javax/print/attribute/standard/JobImpressionsCompleted.java,
8840 javax/print/attribute/standard/JobKOctets.java,
8841 javax/print/attribute/standard/JobKOctetsProcessed.java,
8842 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8843 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8844 * Makefile.am (javax_source_files): Added new files.
8845 * Makefile.in: Regenerated.
8847 2004-01-06 Michael Koch <konqueror@gmx.de>
8849 * java/net/URLConnection.java
8850 (contentHandler): Removed.
8852 (getHeaderFields): Return an empty map instead of null.
8853 (getContent): Connect if needed, renamed "cType" to "type" and
8854 "contentHandler" to "ch" and made it a local variable.
8855 (getPermission): Don't use package in class name.
8856 (setDefaultRequestProperty): Fixed typo in documentation.
8857 (initializeDateFormats): Made locale a local variable.
8859 2004-01-06 Michael Koch <konqueror@gmx.de>
8861 * java/lang/Package.java
8862 (getPackage): Get the current class loader directly.
8863 * java/lang/SecurityManager.java
8864 (currentLoadedClass): Dont iterate over class contexts.
8865 (classLoaderDepth): Don't check class loaders if everything is allowed.
8867 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8869 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8870 (pre_event_handler): Set all insets to 0 when a Configure event
8871 is received for a GtkPlug.
8872 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8873 Make handle long, not int.
8874 (EmbeddedWindow()): New constructor.
8875 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8877 (setHandle): New method.
8878 (getHandle): Return long, not int.
8879 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8881 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8882 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8883 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8884 argument to GdkNativeWindow.
8885 (construct): New method.
8886 (embed): New method.
8888 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8889 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8890 (create(int, int)): New method.
8891 (create): Call new create method.
8892 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8894 (childResized): Remove native implementation. Implement in
8896 (getHScrollbarHeight, getVScrollbarWidth): Call
8897 gtk_widget_size_request to get scrollbar dimensions.
8898 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8899 call getVScrollbarWidth and getHScrollbarHeight when vertical
8900 and horizontal scrollbars respectively are needed.
8901 (doLayout): Enlarge child if it is smaller than the viewport.
8903 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8905 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8906 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8907 argument as per spec.
8909 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8911 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8913 (remove): Ditto. Also, Check for valid argument.
8914 (removeAll): Use peer interface method.
8915 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8916 native add function.
8917 (nativeRemove): New name for native remove function.
8918 (getHistory): New native function.
8919 (constructor): Generate ItemEvent.
8920 (add): Ditto, if selection is changed.
8921 (remove): Ditto, ditto.
8922 (removeAll): Add implementation.
8923 (handleEvent): Remove. Dead code.
8924 (choicePostItemEvent): Add comment.
8925 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8926 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8927 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8928 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8929 comments and fix condition to change selection.
8930 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8931 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8932 remove all capability.
8933 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8934 (item_activate): Add cast to remove compiler warning.
8936 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8938 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8939 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8940 (getPreferredSize): Call preferredSize.
8941 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8942 (getMinimumSize): Call minimumSize.
8943 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8944 (gtkWidgetGetDimensions): Return the peer widget's current size
8946 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8947 natural size request.
8949 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8951 Thanks to Brian Gough <bjg@network-theory.com>
8952 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8953 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8955 2004-01-04 Matthias Klose <doko@debian.org>
8957 * aclocal.m4: Rebuilt using "aclocal -I .".
8958 * configure: Rebuilt.
8960 2004-01-03 Per Bothner <per@bothner.com>
8962 * java/util/Date.java (parse): Fix a number of problems.
8963 (skipParens): Remove no-longer-needed method.