1 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2 Michael Koch <konqueror@gmx.de>
4 * configure.in, Makefile.am: Ported to automake 1.9.
5 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
6 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
9 2004-08-19 Tom Tromey <tromey@redhat.com>
11 * java/net/DatagramSocket.java: Fixed typo.
13 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
16 * java/net/URI.java (string): New field. Make all other fields
18 (readObject): Implemented.
19 (writeObject): Implemented.
22 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
25 * java/util/logging/Handler.java (isLoggable): Accept record if its
26 log level equals the threshold level. From Robin Green.
28 2004-08-18 David Daney <ddaney@avtrex.com>
30 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
33 2004-08-17 Michael Koch <konqueror@gmx.de>
35 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
36 * Makefile.in: Regenerated.
38 2004-08-16 Tom Tromey <tromey@redhat.com>
41 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
43 2004-08-16 Michael Koch <konqueror@gmx.de>
46 (math_c_files): Renamed from c_files.
47 (math_c_source_files): Renamed from c_source_files.
51 testsuite/Makefile.in: Regenerated.
53 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
55 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
56 to avoid autoconf warning.
59 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
61 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
62 localhostAddress to loopbackAddress.
63 * java/net/natInetAddressWin32.cc (lookup): Likewise.
65 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
67 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
68 boehm-gc's include dirs.
70 * include/boehm-gc.h: Include gc_config.h.
72 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
74 * java/net/InetAddress.java (loopbackAddress): Renamed from
76 (getByName): Return loopback address for null hostname, without
77 security check. Use lookup(), not getAllByName.
78 (getAllByName): Return loopback address for null hostname, without
80 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
83 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
86 Reported by Robin Green.
87 * defineclass.cc (handleField): Don't throw exception on unrecognised
88 modifier. Add FIXME comments for spec compliance.
89 (handleMethod): Likewise.
91 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
94 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
95 (Almost everywhere): add LOG calls, fix, add comments.
96 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
97 Add explicit check for LOCKED bit in slow case (PR 16662).
98 (_Jv_MonitorExit): Add casts in debug-only code.
99 Always release LOCKED bit before throwing exception.
100 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
101 isn't. Handle easy cases without lock acquisition.
102 (Object::wait): Use NotifyAll for lock inflation.
104 2004-08-12 David Daney <ddaney@avtrex.com>
106 * testsuite/libjava.lang/Process_1.java: New test.
107 * testsuite/libjava.lang/Process_2.java: New test.
108 * testsuite/libjava.lang/Process_3.java: New test.
109 * testsuite/libjava.lang/Process_4.java: New test.
110 * testsuite/libjava.lang/Process_5.java: New test.
111 * testsuite/libjava.lang/Process_6.java: New test.
112 * testsuite/libjava.lang/Process_1.out: Expected result.
113 * testsuite/libjava.lang/Process_2.out: Expected result.
114 * testsuite/libjava.lang/Process_3.out: Expected result.
115 * testsuite/libjava.lang/Process_4.out: Expected result.
116 * testsuite/libjava.lang/Process_5.out: Expected result.
117 * testsuite/libjava.lang/Process_6.out: Expected result.
119 2004-08-12 David Daney <ddaney@avtrex.com>
122 * java/lang/PosixProcess.java: Rewrote.
123 * java/lang/natPosixProcess.cc: Rewrote.
124 * java/lang/Runtime.java (execInternal): Declare throws IOException.
125 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
126 * posix-threads.cc (block_sigchld) New function.
127 (_Jv_ThreadRegister) Use it.
128 (_Jv_ThreadStart) Use it.
129 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
130 * Makefile.am: ... to specify extra native headers.
131 * configure: Regenerated.
132 * include/config.h: Regenerated.
133 * Makefile.in: Regenerated.
134 * gcj/Makefile.in: Regenerated.
135 * include/Makefile.in: Regenerated.
136 * testsuite/Makefile.in: Regenerated.
138 2004-08-12 Diego Novillo <dnovillo@redhat.com>
140 PR tree-optimization/16867
141 * testsuite/libjava.lang/PR16867.java: New test.
143 2004-08-09 Per Bothner <per@bothner.com>
145 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
146 with private fields and access methods.
147 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
148 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
149 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
150 ( _Jv_makeUtf8Const): Rewrite using new constructors.
151 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
152 * defineclass.cc: Use new _Utf8Const access/convenience methods.
154 * resolve.cc: Likewise.
155 * gcj/field.h: Likewise.
156 * include/jvm.h: Likewise.
157 * java/lang/Class.h: Likewise.
158 * java/lang/natClass.cc: Likwise.
159 * java/lang/natClassLoader.cc: Likewise
160 * java/lang/reflect/natMethod.cc: Likewise
161 * verify.cc: Likewise.
162 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
163 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
165 2004-08-10 Andrew Haley <aph@redhat.com>
167 * testsuite/libjava.lang/err14.java: New file.
168 * testsuite/libjava.lang/err14.out: New file.
170 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
172 * Makefile.am: Fix missing rename from x_nat_headers to
174 * Makefile.in: Regenerated.
176 2004-08-04 Andrew Haley <aph@redhat.com>
178 * java/security/BasicPermission.java: Don't check wildcards.
180 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
181 Michael Koch <konqueror@gmx.de>
183 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
184 * configure.in: Replaced all usages of AC_LINK_FILES by
187 configure: Regenerated.
189 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
190 Michael Koch <konqueror@gmx.de>
192 * acconfig.h: Removed.
193 * Makefile.am: Rename variables for xlib peer to include xlib and
194 gtk_c_headers to gtk_jni_headers.
195 * Makefile.in: Regenerated.
197 2004-08-04 Andrew Haley <aph@redhat.com>
199 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
202 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
204 * configure.in: Eliminate uses of changequote (mostly by quoting []).
205 Replace most top level 'dnl' comments with '#' comments, conforming
206 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
208 * configure: Rebuilt.
210 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
212 * acinclude.m4: Include no-executables.m4.
213 * aclocal.m4: Rebuild.
214 * configure.in: Convert to the autoconf 2.59 version of
215 of the no-executables hack, and also of the nonstandard CXX
216 hack and the multilibbed CC and CXX hack. Change prerequisite
218 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
219 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
220 testsuite/Makefile.in: Regenerate.
222 2004-08-03 Tom Tromey <tromey@redhat.com>
224 * jni.cc: Reindented.
226 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
228 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
230 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
232 * testsuite/libjava.compile/PR16701.java: New test.
234 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
236 * java/util/Collection.java, java/util/List.java,
237 java/util/Map.java, java/util/Set.java,
238 java/util/SortedMap.java, java/util/SortedSet.java:
239 Added additional exceptions to documentation.
241 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
244 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
245 * configure. Regenerate.
246 * include/win32.h: Explicitly include winsock2.h
247 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
250 2004-07-30 Michael Koch <konqueror@gmx.de>
252 * java/util/zip/GZIPInputStream.java
253 (GZIPInputStream): Increase buffer size to 4k.
254 * java/util/zip/GZIPOutputStream.java
255 (GZIPOutputStream): Likewise.
256 * java/util/zip/Inflater.java
257 (setInput): Merged formating with GNU classpath.
258 * java/util/zip/InflaterInputStream.java
259 (InflaterInputStream): Increase buffer size to 4k.
260 (fill): Throw exception if stream ends early.
261 (read): Merged endless-loop with GNU classpath.
262 (skip): Increase buffer size to 2k.
264 2004-07-30 Michael Koch <konqueror@gmx.de>
266 * gnu/java/awt/EmbeddedWindow.java
267 (addNotify): Use AccessController to allow execution of privileged
270 2004-07-29 Michael Koch <konqueror@gmx.de>
272 * gnu/java/lang/MainThread.java:
273 Explicitely import used classes.
274 (args): Make it type String[].
276 2004-07-29 Dalibor Topic <robilad@kaffe.org>
278 * gnu/java/awt/ComponentDataBlitOp.java,
279 gnu/java/beans/ExplicitBeanInfo.java,
280 gnu/java/beans/IntrospectionIncubator.java,
281 gnu/java/beans/editors/ColorEditor.java,
282 gnu/java/beans/editors/FontEditor.java,
283 gnu/java/beans/editors/NativeBooleanEditor.java,
284 gnu/java/beans/editors/NativeByteEditor.java,
285 gnu/java/beans/editors/NativeDoubleEditor.java,
286 gnu/java/beans/editors/NativeFloatEditor.java,
287 gnu/java/beans/editors/NativeIntEditor.java,
288 gnu/java/beans/editors/NativeLongEditor.java,
289 gnu/java/beans/editors/NativeShortEditor.java,
290 gnu/java/beans/editors/StringEditor.java,
291 gnu/java/io/ClassLoaderObjectInputStream.java,
292 gnu/java/io/decode/Decoder.java,
293 gnu/java/io/encode/Encoder.java,
294 gnu/java/lang/ClassHelper.java,
295 gnu/java/locale/Calendar.java,
296 gnu/java/locale/Calendar_de.java,
297 gnu/java/locale/Calendar_en.java,
298 gnu/java/locale/Calendar_nl.java,
299 gnu/java/locale/LocaleInformation_de.java,
300 gnu/java/locale/LocaleInformation_en.java,
301 gnu/java/locale/LocaleInformation_nl.java:
304 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
306 * README: Remove obsolete info. Update bug URL.
308 * NEWS: Updated with news up to GCC 3.4 release.
310 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
312 * gnu/java/security/action/GetPropertyAction.java (setParameters):
313 Renamed from 'setName'. New 2-argument form with default value.
314 (run): Pass default 'value' parameter to System.getProperty().
315 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
317 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
320 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
322 * configure.in: Check for minimum GTK version 2.4 requirement.
323 * configure: Rebuilt.
325 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
327 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
328 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
330 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
332 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
333 address. Reduce sleep times. Synchronize with target threads before
334 attempting to interrupt them. Don't try to calibrate yeild count,
335 instead, always loop for a fixed time.
336 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
337 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
338 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
339 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
340 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
341 * testsuite/libjava.lang/pr179.java: Likewise.
342 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
343 time. Remove upper bounds check on sleep time.
345 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
347 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
348 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
350 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
352 * java/io/File.java (toURI): Throw RuntimeException, not
354 * java/lang/Runtime.java (exit): Qualify static sleep() call with
355 class name, not instance.
357 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
359 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
360 and gnu/java/security/action/SetAccessibleAction.java.
361 * Makefile.in: Rebuilt.
363 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
365 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
366 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
368 (DECLARE_PRIM_TYPE): Don't declare array vtables.
369 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
370 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
372 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
374 * Makefile.am: Replace jar, rmic and rmiregistry references with
375 gjar, grmic and grmiregistry.
376 * configure.in: Likewise.
377 * Makefile.in: Regenerate.
378 * configure: Likewise.
379 * gcj/Makefile.in: Likewise.
380 * include/Makefile.in: Likewise.
381 * testsuite/Makefile.in: Likewise.
383 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
385 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
386 for privileged getProperty calls.
387 * java/io/ObjectOutputStream.java (getField): No longer static. Use
388 SetAccessibleAction instead of anonymous class for doPrivileged call.
389 (getMethod): Likewise.
390 (setAccessible): New field. PrivilegedAction object to use when
391 calling setAccessible.
392 * java/io/ObjectStreamClass.java (calculateOffsets): Use
393 SetAccessibleAction instead of anonymous class for diPrivileged call.
394 (setFields): Likewise.
395 (getClassUID): Likewise.
396 (findMethod): Likewise.
397 * gnu/java/security/action/GetPropertyAction.java: New class.
398 * gnu/java/security/action/SetAccessibleAction.java: New class.
400 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
402 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
404 * testsuite/libjava.lang/Serialization.java: New test.
405 * testsuite/libjava.lang/Serialization.out: New.
407 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
409 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
410 missed in last commit.
412 2004-07-23 Mark Wielaard <mark@klomp.org>
414 * java/lang/System.java (static): Set http.agent system property when
416 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
417 from system property inside AccessController.doPrivileged() call.
418 (proxyPort): Made package private.
419 (proxyInUse): Likewise.
420 (proxyHost): Likewise.
421 (userAgent): Likewise.
423 2004-07-23 Mark Wielaard <mark@klomp.org>
425 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
428 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
430 * Makefile.am (ordinary_java_source_files): Add
431 DefaultContentHandlerFactory.java.
432 * Makefile.in: Rebuilt.
433 * java/net/URLConnection.java (defaultFactory): New field.
435 (getContentHandler): Renamed from 'setContentHandler'. Try
436 defaultFactory after user-set factory, if any. Search for content
437 handler implementations in gnu.java.net.content, not gnu.gcj.content.
438 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
440 (getLastModified): Implemented.
441 (getPermission): Create file permission here, instead of in
443 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
445 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
447 (getLastModified): Implemented.
448 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
449 Default implementation.
450 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
451 Implement using GdkPixbufDecoder.
453 2004-07-21 Michael Koch <konqueror@gmx.de>
455 * javax/swing/JTextArea.java
456 (setLineWrap): Fire property change event after new value is set.
457 (setTabSize): Likewise.
459 2004-07-21 Michael Koch <konqueror@gmx.de>
461 * javax/swing/JTable.java
462 (autoCreateColumnsFromModel): New field.
463 (autoResizeMode): Likewise.
464 (cellEditor): Likewise.
465 (cellSelectionEnabled): Likewise.
466 (columnModel): Likewise.
467 (dataModel): Likewise.
468 (defaultEditorsByColumnClass): Likewise.
469 (defaultRenderersByColumnClass): Likewise.
470 (editingColumn): Likewise.
471 (editingRow): Likewise.
472 (gridColor): Likewise.
473 (preferredViewportSize): Likewise.
474 (rowHeight): Likewise.
475 (rowMargin): Likewise.
476 (rowSelectionAllowed): Likewise.
477 (selectionBackground): Likewise.
478 (selectionForeground): Likewise.
479 (selectionModel): Likewise.
480 (showHorizontalLines): Likewise.
481 (showVerticalLines): Likewise.
482 (tableHeader): Likewise.
483 (JTable): Implemented.
484 (getColumnModel): Likewise.
485 (getSelectedRow): Likewise.
486 (getSelectionModel): Likewise.
487 (setModel): Likewise.
488 (setSelectionModel): Likewise.
489 (createScrollPaneForTable): New method.
490 (createDefaultDataModel): Likewise.
491 (createDefaultListSelectionModel): Likewise.
492 (getModel): Likewise.
493 (getTableHeader): Likewise.
494 (setTableHeader): Likewise.
495 (getColumnSelectionAllowed): Likewise.
496 (setColumnSelectionAllowed): Likewise.
497 (getRowSelectionAllowed): Likewise.
498 (setRowSelectionAllowed): Likewise.
499 (getAutoResizeMode): Likewise.
500 (setAutoResizeMode): Likewise.
501 (getColumnCount): Likewise.
502 (getRowCount): Likewise.
503 (getCellRenderer): Likewise.
504 * javax/swing/JTree.java
505 (cellRenderer): New field.
506 (editable): Likewise.
507 (rootVisible): Likewise.
508 (showsRootHandles): Likewise.
509 (getModel): New method.
510 (setModel): Likewise.
511 (isEditable): Likewise.
512 (setEditable): Likewise.
513 (isRootVisbile): Likewise.
514 (setRootVisible): Likewise.
515 (getShowsRootHandles): Likewise.
516 (setShowRootHandles): Likewise.
517 (getCellRenderer): Likewise.
518 (setCellRenderer): Likewise.
520 2004-07-21 Michael Koch <konqueror@gmx.de>
522 * javax/swing/JFormattedTextField.java
523 (setDocument): Implemented.
524 * javax/swing/JRootPane.java:
526 * javax/swing/JTable.java
527 (getDefaultRenderer): New method.
528 * javax/swing/JTextField.java
530 (getPreferredSize): Likewise.
531 * javax/swing/JToggleButton.java
532 (getAccessibleContext): Fix javadoc.
533 * javax/swing/JTree.java:
535 * javax/swing/JViewport.java:
538 2004-07-21 David Jee <djee@redhat.com>
540 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
541 Collect all native method declaration at the top.
542 (create): Set the filename filter if necessary.
543 (setDirectory): Call nativeSetDirectory().
544 (setFilenameFilter): Implement.
545 (filenameFilterCallback): New method.
546 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
547 (create): Configure dialog to show hidden files.
548 (filenameFilterCallback): New function.
549 (nativeSetFilenameFilter): New function.
550 (nativeSetDirectory): New function.
552 2004-07-21 Kim Ho <kho@redhat.com>
554 * javax/swing/plaf/basic/BasicSliderUI.java:
556 (paintTrack): Fill the track before painting
559 2004-07-21 Graydon Hoare <graydon@redhat.com>
561 patch from Roman Kennke <roman@ontographics.com>
562 * javax/swing/Spring.java: New file.
563 * javax/swing/SpringLayout.java: New file.
564 * Makefile.am: Add new files.
565 * Makefile.in: Regenerate.
567 2004-07-21 Graydon Hoare <graydon@redhat.com>
569 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
570 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
571 * javax/swing/ScrollPaneLayout.java: Likewise.
573 2004-07-21 Kim Ho <kho@redhat.com>
575 * javax/swing/DefaultDesktopManager.java:
576 (findMinimum): Removed.
577 (resizeFrame): Trust the UI to pass valid
579 * javax/swing/JOptionPane.java:
580 Implemented showInternalXXXDialog methods.
581 (startModal): New method.
582 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
583 (BorderListener::mouseDragged): Verify that the new
584 bounds are valid before passing them to the DesktopManager.
585 (preferredLayoutSize): Delegate
587 (minimumLayoutSize): Ditto.
588 (getSize): New method.
589 (GlassPaneDispatcher): Reimplemented by copying
590 a stripped down LightweightDispatcher from Container.
591 (getMinimumSize): Call minimumLayoutSize.
592 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
594 (mousePressed): Add ability to properly close
596 * javax/swing/plaf/basic/BasicToolBarUI.java:
597 (DragWindow): Set owner for DragWindow.
599 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
601 * java/awt/image/ShortLookupTable.java: New file.
602 * java/awt/image/ByteLookupTable.java: New file.
603 * Makefile.am: Added new files.
604 * Makefile.in: Regenerated.
606 2004-07-21 David Jee <djee@redhat.com>
608 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
609 (create(GtkContainerPeer)): New native method.
610 (create()): Call native create(), passing in the parent frame
611 as the paramter. Natively set the current file and directory.
612 (setFile): Construct an absolute filename before passing it to
614 (nativeGetDirectory): New method.
615 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
616 (window_closed): Removed.
617 (ok_clicked): Likewise.
618 (cancel_clicked): Likewise.
619 (handle_response): New method.
620 (create): Use GtkFileChooserDialog.
621 (connectSignals): Connect to handle_response.
622 (nativeGetDirectory): New method.
623 (nativeSetFile): Use GtkFileChooserDialog.
625 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
627 * java/awt/image/LookupTable.java: New file.
628 * Makefile.am: Added new file.
629 * Makefile.in: Regenerated.
631 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
633 * java/awt/image/Kernel.java: New file.
634 * Makefile.am: Added new file.
635 * Makefile.in: Regenerated.
637 2004-07-21 Olga Rodimina <rodimina@redhat.com>
639 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
640 * javax/swing/JMenu.java: Likewise.
641 * javax/swing/JMenuBar.java: Likewise.
642 (MARGIN_CHANGED_PROPERTY): New property.
643 (setMargin): Implemented.
644 * javax/swing/JMenuItem.java: Fixed javadocs.
645 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
646 (LABEL_CHANGED_PROPERTY): New property.
647 (add): changed to use createActionComponent.
648 (createActionComponent): Implemented.
649 (setLabel): Fire PropertyChangeEvent if label property
651 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
652 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
653 (ContainerHandler): Repaint if margin property has changed.
654 * javax/swing/plaf/basic/BasicMenuItemUI.java:
655 (installUI): Call installComponents().
656 (uninstallUI): Call uinstallComponents().
657 * javax/swing/plaf/basic/BasicMenuUI.java:
659 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
662 2004-07-21 Kim Ho <kho@redhat.com>
664 * javax/swing/plaf/basic/BasicToolBarUI.java:
665 (DragWindow): Use the right constructor.
667 2004-07-21 Kim Ho <kho@redhat.com>
669 * javax/swing/JToolBar.java:
670 (layoutContainer): Use getComponents.
671 * javax/swing/plaf/basic/BasicToolBarUI.java:
672 (DragWindow): Don't use SwingUtilities'
674 (ToolBarDialog): ditto.
676 2004-07-21 Kim Ho <kho@redhat.com>
678 * javax/swing/JRootPane.java:
680 (layoutContainer): Set the glasspane's size to
681 be the same as the content pane.
682 (createGlassPane): Set opaque property to false.
684 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
686 * java/awt/Component.java (requestFocus()): Don't handle Panels
688 (requestFocus(boolean)): Likewise.
689 (requestFocusInWindow(boolean)): Likewise.
690 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
691 Set GTK_CAN_FOCUS flag.
693 2004-07-21 Kim Ho <kho@redhat.com>
695 * Makefile.am: Added new file.
696 * Makefile.in: Regenerated.
697 * gcj/Makefile.in: Regenerated.
698 * include/Makefile.in: Regenerated.
699 * javax/swing/AbstractButton.java:
700 Add rollOverEnabled property.
701 (setRolloverEnabled): Use new property.
702 (isRolloverEnabled): Use new property.
703 * javax/swing/JTabbedPane.java:
704 (setComponent): Remove useless JTabbedPane.this.
705 * javax/swing/JToolBar.java: Finish implementation.
706 * javax/swing/plaf/basic/BasicArrowButton.java:
707 (paint): Moved border painting to a border.
708 * javax/swing/plaf/basic/BasicLookAndFeel.java:
709 Change JToolBar look and feel defaults.
710 * javax/swing/plaf/basic/BasicOptionPaneUI.java
711 (actionPerformed): Return Integer index instead of name.
712 (addButtonComponents): Check to see if component is
714 (createMessageArea): Don't use components that are not
716 (getIconForType): Use temporary icons.
717 * javax/swing/plaf/basic/BasicSliderUI.java:
718 (mousePressed): Do not return if it's on thumb.
719 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
720 (paintMinorTickForVertSlider): ditto.
721 (paintMajorTickForHorizSlider): ditto.
722 (paintMajorTickForVertSlider): ditto.
723 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
724 Add a border around the SplitPaneDivider.
725 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
727 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
728 New file. Implemented.
729 * javax/swing/plaf/basic/BasicToolBarUI.java:
731 * testsuite/Makefile.in: Regenerated.
733 2004-07-21 Graydon Hoare <graydon@redhat.com>
735 * javax/swing/Timer.java (run): Queue events each time cycle.
737 2004-07-21 David Jee <djee@redhat.com>
739 * gnu/java/awt/peer/gtk/GtkImagePainter.java
740 (imageComplete): Call image.imageComplete().
741 * java/awt/image/MemoryImageSource.java:
742 Reimplement consumers as a Vector instead of a Hashtable. This is
743 because enumeration on a Hashtable is not thread-safe.
744 (addConsumer): Adapt to Vector consumers.
745 (isConsumer): Adapt to Vector consumers.
746 (removeConsumer): Adapt to Vector consumers.
747 (startProduction): Adapt to Vector consumers. Call imageComplete()
748 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
749 (newPixels): Adapt to Vector consumers.
750 (sendPicture): Set the color model of the image consumer.
751 (newPixels(IIII)): Adapt to Vector consumers.
752 (newPixels(IIIIB)): Adapt to Vector consumers.
754 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
756 * java/awt/Component.java (deliverEvent): Implement.
757 (postEvent): Implement.
758 (handleEvent): Implement.
759 (translateEvent): New method.
760 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
761 * java/awt/Container.java (deliverEvent): Implement.
762 * java/awt/Event.java (paramString): Fix formatting.
763 * java/awt/Font.java (toString): Likewise.
764 * java/awt/Window.java (postEvent): Implement.
766 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
768 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
769 Set window's focus owner upon receiving a FOCUS_LOST event.
770 * java/awt/Window.java (Window()): Refocus the previously
771 focused component within the window when the window regains the
773 (setFocusOwner): New method.
774 * java/awt/Component.java (requestFocus): Add FIXME.
776 * libgcj.pc.in: Remove library flags.
778 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
780 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
782 * java/awt/Component.java (requestFocus()): Handle Panel
783 specially. Post FOCUS_LOST event on opposite component.
784 (requestFocus(boolean)): Likewise.
785 (requestFocusInWindow(boolean)): Likewise.
786 (paramString): Reorder dimension fields.
787 * java/awt/Container.java (paramString): Fix string format.
788 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
789 Handle FOCUS_LOST events. Don't handle Windows specially. Only
790 process key events if the focus owner is non-null.
791 (dispatchKeyEvent): Likewise.
792 * java/awt/Frame.java (paramString): Fix formatting.
793 (generateName): New method.
794 (getUniqueLong): Likewise.
795 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
796 the temporary focus owner is null. If so, return the permanent
798 * java/awt/Panel.java (generateName): New method.
799 (getUniqueLong): Likewise.
800 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
801 signal handling to make callbacks more specific.
803 2004-07-21 Michael Koch <konqueror@gmx.de>
805 * javax/swing/text/Position.java
808 2004-07-21 Michael Koch <konqueror@gmx.de>
810 * javax/swing/LookAndFeel.java
811 (provideErrorFeedback): New method.
813 2004-07-21 Michael Koch <konqueror@gmx.de>
815 * javax/swing/JTextArea.java
816 (tabSize): New field.
817 (getTabSize): New method.
818 (setTabSize): Likewise.
820 2004-07-21 Michael Koch <konqueror@gmx.de>
822 * javax/swing/ActionMap.java:
823 Fixed javadocs all over.
824 (serialVersionUID): Made private.
825 (parent): Don't explicitely initialize with default value.
827 (keys): Reimplemented.
829 (convertSet): Removed.
830 * javax/swing/ComponentInputMap.java:
831 Fixed javadocs all over.
832 (ComponentInputMap): Implemented.
836 (SetParent): Likewise.
837 (getComponent): Likewise.
838 * javax/swing/InputMap.java:
839 Fixed javadocs all over.
840 (serialVersionUID): Made private.
841 (parent): Don't explicitely initialize with default value.
843 (keys): Reimplemented.
845 (convertSet): Removed.
847 2004-07-21 Michael Koch <konqueror@gmx.de>
849 * javax/swing/ActionMap.java,
850 javax/swing/ComponentInputMap.java,
851 javax/swing/InputMap.java,
852 javax/swing/table/DefaultTableColumnModel.java,
853 javax/swing/table/TableColumn.java,
854 javax/swing/table/TableColumnModel.java,
855 javax/swing/table/TableModel.java,
856 javax/swing/text/AbstractDocument.java,
857 javax/swing/text/TextAction.java:
860 2004-07-21 Graydon Hoare <graydon@redhat.com>
862 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
863 Make method non-static.
864 * javax/swing/AbstractButton.java:
865 Rename fields to match property names where possible.
866 (iconTextGap): New property.
867 * javax/swing/JCheckBox.java: Match AbstractButton changes.
868 (init) New method, call from after various constructors.
869 * javax/swing/JComponent.java (revalidate):
870 Invalidate before queueing repair.
871 * javax/swing/JList.java (getPreferredScrollableViewportSize):
872 Reimplement in terms of visibleRowCount property.
873 * javax/swing/JMenuButton.java: Match AbstractButton changes.
874 * javax/swing/JScrollPane.java (createScrollListener):
875 Remove tracing chatter.
876 * javax/swing/JToggleButton.java: Match AbstractButton changes.
877 * javax/swing/RepaintManager.java (addInvalidComponent):
879 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
881 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
882 Mimic sun behavior on top left/right positioning.
883 * javax/swing/ViewportLayout.java (preferredLayoutSize):
884 Remove mistaken use of preferredScrollableViewportSize here.
885 (layoutContainer): Use view's preferred size as basis.
886 * javax/swing/plaf/basic/BasicButtonUI.java:
887 Set, get, and use textIconGap property.
888 (paint) Paint text returned from layout (with ellipsis).
889 * javax/swing/plaf/basic/BasicListUI.java:
890 Remove tracing chatter, correct various minor calculations.
891 (getCellBounds): Update layout state before calculating.
892 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
893 Use margin default similar to sun's.
894 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
895 (createIncreaseIcon): Center icon, minimize margins.
896 (createDecreaseIcon): Likewise.
897 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
899 (installUI): Call it.
900 (uninstallDefaults): Implement.
901 (uninstallUI): Call it.
902 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
903 Call existing Window constructor.
904 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
905 Set clip before painting.
907 2004-07-21 Olga Rodimina <rodimina@redhat.com>
909 * javax/swing/JMenuItem.java:
910 (processMouseEvent): Reimplemented to deal with
912 (createMenuDragMouseEvent): New private helper method.
913 Creates MenuDragMouseEvent.
914 * javax/swing/MenuSelectionManager.java
915 (componentForPoint): Implemented.
916 (isComponentPartOfCurrentMenu): Made public.
917 (processMouseEvent): Reimplemented to deal with
919 (setSelectedPath): Corrected small mistake that caused
920 path to be set incorrectly.
921 (getPath): If given component is JMenu then also add this
922 menu's popup menu to the selected path.
923 * javax/swing/plaf/basic/BasicMenuItemUI.java:
925 (getPreferredSize): Call getPreferredMenuItemSize().
926 (getPreferredItemSize): Moved code from getPreferredSize to here.
927 (installListeners): Install MouseMotionListeners.
928 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
929 if mouse wasn't released in the bounds of this menu item.
930 (MenuDragMouseHandler): Implemented.
931 * javax/swing/plaf/basic/BasicMenuUI.java:
932 (installListeners): Install MouseMotionListener and
933 MenuDrageMouseListener.
934 (MenuDragMouseHandler): Implemented.
935 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
936 (uninstallListeners): Implemented.
938 2004-07-21 Michael Koch <konqueror@gmx.de>
940 * javax/swing/JCheckBox.java: Reformated.
941 (JCheckBox): Fixed all constructors.
942 (isBorderPaintedFlat): New method.
943 (setBorderPaintedFlat): New method.
944 * javax/swing/JEditorPane.java
945 (createEditorKitForContentType): Made public.
946 (scrollToReference): Likewise.
947 * javax/swing/JTextArea.java
948 (setLineWrap): Fire property change.
949 * javax/swing/JToggleButton.java
950 (JToggleButton): New constructor.
951 (JToggleButton): Simplified.
952 * javax/swing/text/AttributeSet.java
953 (FontAttribute): Renamed from FontCharacterAttribute.
954 * javax/swing/text/JTextComponent.java
955 (KeyBinBinding): Added javadoc.
956 (JTextComponent): Likewise.
957 (getAccessibleContext): Fixed javadoc.
958 * javax/swing/text/View.java
959 (View): Added javadoc.
960 * javax/swing/text/TabableView.java: New file.
961 * Makefile.am: Added javax/swing/text/TabableView.java.
962 * Makefile.in: Regenerated.
964 2004-07-21 Graydon Hoare <graydon@redhat.com>
966 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
967 * gnu/java/awt/peer/gtk/GtkToolkit.java
968 (GtkErrorImage): New helper class.
969 (bufferedImageOrError): New helper method.
970 (createImage): Use it.
972 2004-07-21 David Jee <djee@redhat.com>
974 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
975 (setCaretPosition): Scroll the text view so the new caret position
976 is visible on screen.
978 2004-07-21 David Jee <djee@redhat.com>
980 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
981 (setBounds): Do not validate awtComponent here.
982 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
983 (getPreferredSize): New method.
984 * java/awt/ScrollPane.java
985 (ScrollPane): Set default size to 100x100.
986 (addNotify): If child is not a Panel, wrap it with a new Panel.
987 (paramString): Implement.
989 2004-07-21 Olga Rodimina <rodimina@redhat.com>
991 * javax/swing/JMenu.java:
992 (setSelected): Display popup menu only if this menu
993 is showing on the screen.
994 * javax/swing/JPopupMenu.java:
995 (processMouseEvent): Added comment.
996 (processKeyEvent): Likewise.
997 * javax/swing/MenuSelectionManager.java:
998 (clearSelectedPath): Only fireStateChanged() after
999 selected path was changed, not before.
1000 (setSelectedPath): Likewise.
1001 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1002 (paintMenuItem): Corrected position of menu item's
1004 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1005 (installUI): Correct setDefaultLightWeightPopupEnabled call.
1006 (popupMenuCanceled): Reimplemented.
1007 (popupMenuWillBecomeVisible): Select first menu item by default
1008 when displaying free floating popup menus.
1009 (TopWindowListener): Reimplemented.
1011 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1013 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
1014 Panel from being painted twice when it is first shown.
1016 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1018 * java/awt/Window.java: Reverted changes from my
1019 previous patch for creating window without an owner.
1020 * javax/swing/SwingUtilities.java:
1021 (SwingUtilities.OwnerFrame): made static.
1022 (OwnerFrame.setVisible): New method. Overridden with
1023 empty implementation.
1024 (OwnerFrame.isShowing): New method. Ovverridden
1025 to return always true.
1027 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1029 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1030 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1031 (GtkComponentPeer): Remove temporary try/catch block.
1032 (setVisible): Call show and hide.
1033 (show): Make native.
1035 (getArgs): Don't add "visible" argument.
1036 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1037 (property_notify_predicate): Return Bool instead of int.
1038 (find_layout): New function.
1039 (connectJObject): Call find_layout.
1040 (connectSignals): Likewise.
1041 (moveLayout): Likewise.
1042 (gtkLayoutSetVisible): Likewise.
1044 2004-07-21 Mark Wielaard <mark@klomp.org>
1046 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1047 on notifier object before calling notifyAll().
1049 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1051 * java/awt/Window.java: Changed constructors to use new
1052 method that is described below. Constructors call this
1053 methods only if newly created window should have an owner.
1054 (setWindowOwner): New method. Implementation for
1055 this method is moved from this(owner,configuration).
1056 * javax/swing/JWindow.java:
1057 (JWindow): Reimplement to use SwingUtilities.ownerFrame
1059 * javax/swing/SwingUtilities.java:
1060 (ownerFrame): Change type of this field to OwnerFrame.
1061 (getOwnerFrame): Changed to return object of type OwnerFrame.
1062 (SwingUtilities.OwnerFrame): New class. Represents owner
1063 of a Window that is not provided with one.
1065 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1067 * javax/swing/AbstractButton.java:
1068 (configurePropertiesFromAction): Set action command
1069 to button's text by default if action command is not
1070 explicitely specified.
1071 * javax/swing/JMenu.java: Remove unnecessary listener
1072 and methods relevant to it.
1073 (setSelected): Reimplemented.
1074 (menuSelectionChanged): Moved most part of implementation to
1075 setSelected() and call it instead.
1076 * javax/swing/JMenuItem.java:
1077 (init): Comment out statement that sets paint_border to false.
1078 (configurePropertiesFromAction): Do not set accelerator
1080 (menuSelectionChanged): Change selected index in the selection
1081 model of menu item's parent.
1082 * javax/swing/JPopupMenu.java:
1083 (remove): Set constraints.fill field to GridBagConstraints.BOTH
1084 instead of GridBagConstraints.HORIZONTAL.
1086 (createActionChangeListener): Implemented.
1087 (setVisible): Correct location of HeavyWeightMenu and
1088 don't firePopupMenuCanceled().
1089 (menuSelectionChanged): Implemented.
1090 (ActionChangeListener): New Listener. Implemented.
1091 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1092 (BasicMenuBarUI.ContainerHandler): Implemented.
1093 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1094 (paintMenuItem): Uncommented out code that paints
1095 icon, now that icons are working properly.
1096 (PropertyChangeListener): Implemented.
1097 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1099 (topWindowListener): New field.
1100 (Constructor): initialize topWindowListener.
1101 (BasicPopupMenuUI.TopWindowListener): Implemented.
1102 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
1103 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
1106 2004-07-21 Michael Koch <konqueror@gmx.de>
1108 * javax/swing/plaf/basic/BasicButtonUI.java
1109 (paintFocus): Fixed method signature.
1110 (paintButtonPressed): Likewise.
1111 (paintButtonNormal): Likewise.
1112 (paintText): New method.
1113 * javax/swing/plaf/basic/BasicLabelUI.java
1114 (paint): Re-indented.
1115 * javax/swing/plaf/basic/BasicTextUI.java
1116 (installUI): Set parent textComponent to opaque.
1117 * javax/swing/text/DefaultHighlighter.java
1118 (checkPositions): New helper method.
1119 (addHighlight): Throws BadLocationException, check positions.
1120 (changeHighlight): Likewise.
1121 * javax/swing/text/EditorKit.java
1122 (EditorKit): Implements Serializable.
1123 * javax/swing/text/JTextComponent.java
1124 (getUI): Added javadoc.
1126 (upadteUI): Added javadoc, don't revalidate and repaint.
1128 2004-07-21 David Jee <djee@redhat.com>
1130 * java/awt/GridBagLayout.java
1131 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
1132 * javax/swing/AbstractButton.java
1133 (setText): Reindent.
1134 * javax/swing/RepaintManager.java
1135 (addInvalidComponent): Find the first ancestor that isValidateRoot().
1137 2004-07-21 Michael Koch <konqueror@gmx.de>
1139 * javax/swing/JFormattedTextField.java
1141 (JFormattedTextField): Implemented.
1142 (getValue): Likewise.
1143 (setValue): Likewise.
1144 * javax/swing/LookAndFeel.java
1145 (getSupportsWindowDecorations): New method.
1146 * javax/swing/UIDefaults.java:
1147 Use java.beans.PropertyChangeSupport instead of doing all ourself.
1148 (addPropertyChangeListener): Made public.
1149 (addResourceBundle): Likewise.
1150 (removeResourceBundle): Likewise.
1151 (setDefaultLocale): Likewise.
1152 * javax/swing/plaf/basic/BasicRootPaneUI.java
1153 (BasicRootPaneUI): Implements PropertyChangeListener.
1154 (propertyChange): New method.
1155 * javax/swing/plaf/basic/BasicTextUI.java
1156 (BasicHighlighter): New inner class.
1157 (createHighlighter): New method.
1158 * javax/swing/plaf/basic/BasicToolBarUI.java
1159 (DragWindow): Extends java.awt.Window.
1160 * javax/swing/text/JTextComponent.java
1161 (getDocument): Removed debug output.
1162 * javax/swing/plaf/basic/BasicTextFieldUI.java,
1163 javax/swing/text/DefaultHighlighter.java,
1164 javax/swing/text/FieldView.java,
1165 javax/swing/text/PlainView.java: New files.
1166 * Makefile.am: Added new files.
1167 * Makefile.in: Regenerated.
1169 2004-07-21 Michael Koch <konqueror@gmx.de>
1171 * javax/swing/JEditorPane.java
1172 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
1173 (createEditorKitForContentType): Likewise.
1174 * javax/swing/text/DefaultEditorKit.java
1175 (serialVersionUID): Added constant field.
1176 (EndOfLineStringPropery): Fixed typo.
1177 (DefaultEditorKit): New constructor.
1178 * javax/swing/text/Segment.java:
1179 Import java.text.CharacterIterator.
1180 * javax/swing/text/CharacterIterator.java,
1181 javax/swing/text/PlainEditorKit.java: Removed.
1182 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1183 javax/swing/text/PlainEditorKit.java.
1184 * Makefile.in: Regenerated.
1186 2004-07-21 Michael Koch <konqueror@gmx.de>
1188 * javax/swing/JButton.java,
1189 javax/swing/text/DefaultEditorKit.java,
1190 javax/swing/text/EditorKit.java,
1191 javax/swing/text/Segment.java,
1192 javax/swing/text/StyledEditorKit.java:
1195 2004-07-21 Michael Koch <konqueror@gmx.de>
1197 * javax/swing/ImageIcon.java
1199 (description): Renamed from descr.
1200 (ImageIcon): Added missing constructors.
1201 (setParent): Removed.
1202 (setImageObserver): New method.
1203 (getImageObserver): New method.
1204 (paintIcon): Handle observer = null.
1205 * javax/swing/JButton.java
1206 (removeNotify): Fixed javadoc.
1207 (updateUI): Simplified.
1208 * javax/swing/JRootPane.java
1209 (serialVersionUID): New constant field.
1210 * javax/swing/UIManager.java:
1211 Fixed javadocs all over.
1212 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1213 * javax/swing/text/AbstractDocument.java
1214 (createPosition): Throws BadLocationException.
1215 (getText): Likewise.
1217 * javax/swing/text/ComponentView.java
1218 (modelToView): Likewise.
1219 * javax/swing/text/DefaultEditorKit.java:
1220 Made all public methods public.
1221 (read): Throws BadLocationException and IOException.
1223 * javax/swing/text/EditorKit.java:
1224 Made all public methods public.
1225 (serialVersionUID): New constant field.
1226 (clone): New method.
1227 (read): Throws BadLocationException and IOException.
1229 * javax/swing/text/Segment.java
1230 (array): Made public.
1233 (Segment): New constructors.
1234 (clone): Reimplemented.
1235 * javax/swing/text/StyledEditorKit.java
1236 (serialVersionUID): New constant field.
1238 2004-07-21 Graydon Hoare <graydon@redhat.com>
1240 * java/awt/image/BufferedImage.java
1241 (getSource): Implement.
1242 * javax/swing/ImageIcon.java
1243 (ImageIcon): Implement ctor.
1244 * javax/swing/ScrollPaneLayout.java
1245 (preferredLayoutSize): Be more careful about nulls.
1247 2004-07-21 Michael Koch <konqueror@gmx.de>
1249 * javax/swing/text/AttributeSet.java
1250 (CharacterAttribute): New interface
1251 (ColorAttribute): Likewise.
1252 (FontCharacterAttribute): Likewise.
1253 (ParagraphAttribute): Likewise.
1254 * javax/swing/text/DefaultCaret.java
1255 (moveCaret): New method.
1256 (positionCaret): Likewise.
1257 (repaint): Made protected.
1258 * javax/swing/text/JTextComponent.java
1259 (KeyBinding): Made it static.
1260 * javax/swing/text/View.java
1261 (getContainer): Honor parent == null.
1263 2004-07-21 Michael Koch <konqueror@gmx.de>
1265 * javax/swing/text/AbstractDocument.java:
1268 2004-07-21 Michael Koch <konqueror@gmx.de>
1270 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1271 Import javax.swing.UIManager explicitely.
1272 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1273 (ScrollingButton): Made it static.
1275 2004-07-21 Michael Koch <konqueror@gmx.de>
1277 * javax/swing/UIDefaults.java
1278 (ActiveValue): Made public.
1279 (LazyValue): Likewise.
1280 * javax/swing/plaf/basic/BasicTextUI.java
1281 (RootView): Reintroduced.
1283 (rootView): New field.
1284 (installUI): Create document if needed, initialize rootView.
1285 (uninstallUI): Hanle rootView.
1287 (getRootView): Likewise.
1288 (setView): Likewise.
1289 * javax/swing/text/DefaultCaret.java:
1290 Renamed all "evt" variables to "event".
1292 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1294 * libgcj.spec.in: Add -l-java-util-logging.
1296 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1298 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1299 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1300 gtk-xft-dpi can no calculate the right value.
1301 (dpi_changed_cb): Mark *pspec as unsused.
1303 2004-07-21 David Jee <djee@redhat.com>
1305 * java/awt/Component.java
1306 (move): Delegate to setBounds().
1308 (reshape): Fix so it repaints parent and self only when necessary.
1310 2004-07-21 David Jee <djee@redhat.com>
1312 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1313 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1314 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1315 (setVisible): Likewise.
1318 (getArgs): Likewise.
1319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1320 (property_notify_predicate): Likewise.
1321 (find_layout): Likewise.
1322 (connectJObject): Likewise.
1323 (connectSignals): Likewise.
1324 (moveLayout): Likewise.
1325 (gtkLayoutSetVisible): Likewise.
1327 2004-07-21 Graydon Hoare <graydon@redhat.com>
1333 (rmiregistry_LDADD): Add lib-java-util-logging.la
1334 * Makefile.in: Regenerate.
1336 2004-07-21 Michael Koch <konqueror@gmx.de>
1338 * javax/swing/text/AbstractDocument.java
1339 (replace): Dont use protected method of java.util.Vector directly.
1341 2004-07-21 Michael Koch <konqueror@gmx.de>
1343 * javax/swing/plaf/basic/BasicTextUI.java
1344 (installUI): Call specialized install methods.
1345 (installDefaults): New method.
1346 (installListeners): Likewise.
1347 (installKeyboardActions): Likewise.
1348 (uninstallUI): Likewise.
1349 (uninstallDefaults): New method.
1350 (uninstallListeners): Likewise.
1351 (uninstallKeyboardActions): Likewise.
1352 (getPropertyPrefix): New abstract method.
1353 (paint): Made final, just call paintSafely().
1354 (paintSavely): New method.
1355 (paintBackground): Likewise.
1356 (getVisibleEditorRect): Likewise.
1357 * javax/swing/text/LayeredHighlighter.java,
1358 javax/swing/text/TabExpander.java: New files.
1359 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1360 and javax/swing/text/TabExpander.java.
1361 * Makefile.in: Regenerated.
1363 2004-07-21 Michael Koch <konqueror@gmx.de>
1365 * javax/swing/plaf/basic/BasicTextUI.java
1366 (BasicTextUI): Made abstract.
1367 (BasicCaret): New inner class.
1368 (view): Don't explicitely initialize with "null".
1369 (textComponent): New field.
1370 (textColor): Removed.
1371 (disabledTextColor): Removed.
1372 (normalBackgroundColor): Removed.
1373 (RootView): Removed commented out inner class.
1374 (createUI): Removed.
1375 (createCaret): New method.
1376 (getComponent): Likewise.
1377 (installUI): Initialize textComponent only.
1378 (getPreferredSize): Use installed JTextComponent.
1379 (setView): New method.
1381 * javax/swing/text/JTextComponent.java
1382 (highlighter): New field.
1383 (caretColor): Likewise.
1384 (disabledTextColor): Likewise.
1385 (seletedTextColor): Likewise.
1386 (selectionColor): Likewise.
1387 (setUI): New method.
1388 (getCaretColor): Likewise.
1389 (setCaretColor): Likewise.
1390 (getDisabledColor): Likewise.
1391 (setDisabledColor): Likewise.
1392 (getSelectedTextColor): Likewise.
1393 (setSelectedTextColor): Likewise.
1394 (getSelectionColor): Likewise.
1395 (setSelectionColor): Likewise.
1396 (getHighlighter): Likewise.
1397 (setHighlighter): Likewise.
1398 (replaceSelection): Likewise.
1400 2004-07-21 Michael Koch <konqueror@gmx.de>
1402 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1403 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1404 * javax/swing/plaf/basic/BasicToolBarUI.java
1405 (BasicToolBarUI): Implements SwingConstants.
1407 2004-07-21 Michael Koch <konqueror@gmx.de>
1409 * javax/swing/JPopupMenu.java: Removed CVS tags.
1410 * javax/swing/UIDefaults.java: Reformatted.
1411 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1412 Explicitely import used classes.
1414 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1416 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1417 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1418 (GtkComponentPeer): Remove temporary try/catch block.
1419 (setVisible): Call show and hide.
1420 (show): Make native.
1422 (getArgs): Don't add "visible" argument.
1423 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1424 (property_notify_predicate): Return Bool instead of int.
1425 (find_layout): New function.
1426 (connectJObject): Call find_layout.
1427 (connectSignals): Likewise.
1428 (moveLayout): Likewise.
1429 (gtkLayoutSetVisible): Likewise.
1431 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1433 * javax/swing/AbstractButton.java:
1434 (setDisplayedMnemonicIndex): Check if button
1435 text is not null before checking its length.
1436 * javax/swing/JMenuItem.java:
1437 (processMouseEvent): Disarm menu item if mouse has
1439 * javax/swing/plaf/basic/BasicMenuUI.java:
1440 (MouseInputHandler.mouseEntered): Do not raise
1441 popup menu if this menu is already selected.
1442 (MouseInputHandler.mousePressed): Do not fire
1444 (MenuHandler): Implemented.
1446 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1448 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1449 (getSelectedObjects): Implemented.
1450 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1451 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1452 Added javadoc for few methods.
1453 (processMouseEvent): Made public.
1454 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1455 (processMouseEvent): Likewise.
1457 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1459 * javax/swing/AbstractButton.java:
1460 (init): Set display mnemonic index to -1.
1461 (setMnemonic(char)): Use setMnemonic(int).
1462 (setMnemonic(int)): Set display mnemonic index.
1463 (getDisplayedMnemonicIndex): Change method signature
1464 by removing 'index' parameter.
1465 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1466 Added default for Menu.selectionBackground.
1467 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1468 (paintMenuItem): Change background color of the selected
1470 (paintText): Paint differently when menu item is disabled.
1471 Also paint mnemonic if it appears in the menu item's label.
1472 (paintAccelerator): Paint accelerator differently
1473 if menu item is disabled.
1474 * javax/swing/plaf/basic/BasicMenuUI.java:
1475 (installDefaults): Install defaults for
1476 selectionForeground and selectionBackground.
1477 (uninstallDefaults): Uninstall defauls for
1478 selectionForeground and selectionBackground.
1480 2004-07-21 Michael Koch <konqueror@gmx.de>
1482 * javax/swing/text/AbstractDocument.java
1483 (BranchElement): Implemented.
1484 (LeafElement): Implemented.
1485 * javax/swing/text/DefaultCaret.java:
1486 Import used classes.
1487 (serialVersionUID): New constant.
1488 * javax/swing/text/JTextComponent.java
1489 (AccessibleJTextComponent): Removed dead declaration.
1490 (caretPos): Removed.
1491 (setCaret): New method.
1492 * javax/swing/text/PlainDocument.java
1493 (rootElement): New field.
1494 (PlainDocument): Initialize rootElement.
1495 (createDefaultRoot): New method.
1496 (getDefaultRootElement): Implemented.
1497 * javax/swing/text/View.java: Reformatted.
1498 * javax/swing/text/ViewFactory.java
1499 (create): Added javadoc.
1501 2004-07-21 Michael Koch <konqueror@gmx.de>
1503 * javax/swing/ToolTipManager.java: Reformatted.
1505 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1507 * javax/swing/AbstractButton.java
1508 (changeEvent): New field.
1509 (fireItemStateChanged): Change source of the event
1510 to 'this' before firing it to button listeners.
1511 (fireActionPerformed): Likewise.
1512 (fireStateChanged): Likewise.
1513 (createActionListener): Do not set source
1514 of the event to AbstractButton.
1515 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1516 (ContainerHandler.componentAdded): Removed
1517 print out statement.
1518 (ContainerHandler.componentRemoved): Likewise.
1520 2004-07-21 Michael Koch <konqueror@gmx.de>
1522 * javax/swing/text/Highlighter.java: New file.
1523 * Makefile.am: Added javax/swing/text/Highlighter.java.
1524 * Makefile.in: Regenerated.
1526 2004-07-21 Michael Koch <konqueror@gmx.de>
1528 * javax/swing/ToolTipManager.java
1529 (stillInsideTimerAction): Fixed constructor arguments.
1530 (outsideTimerAction): Likewise.
1531 (insideTimerAction): Likewise.
1533 2004-07-21 Michael Koch <konqueror@gmx.de>
1535 * javax/swing/JButton.java: Reformatted.
1536 * javax/swing/JFormattedTextField.java
1537 (getUIClassID): Implemented.
1538 * javax/swing/JRootPane.java
1539 (serialVersionUID): New constant.
1540 * javax/swing/JTextField.java
1542 (JTextField): Simplified.
1543 (getUIClassID): New method.
1544 (getActionListeners): Added @since tag.
1545 (setColumns): Invalidate layout and repaint.
1546 (getHorizontalAlignment): New method.
1547 (setHorizontalAlignment): New method.
1548 (selectAll): Removed.
1549 * javax/swing/SwingUtilities.java
1550 (getAncestorOfClass): Removed redundant @see tag.
1551 (isLeftMouseButton): Fixed implementation.
1552 (isMiddleMouseButton): Likewise.
1553 (isRightMouseButton): Likewise.
1554 * javax/swing/text/AbstractDocument.java
1555 (AttributeContext.addAttribute): New method.
1556 (AttributeContext.addAttributes): New method.
1557 (AttributeContext.getEmptySet): New method.
1558 (AttributeContext.reclaim): New method.
1559 (AttributeContext.removeAttribute): New method.
1560 (AttributeContext.removeAttributes): New method.
1561 * javax/swing/text/Document.java
1562 (createPosition): Throws BadLocationException.
1563 (getText): Likewise.
1565 * javax/swing/text/JTextComponent.java
1566 (getText): Return null if no document is set. Catch
1567 BadLocationException.
1569 (updateUI): Simplified.
1571 2004-07-21 Michael Koch <konqueror@gmx.de>
1573 * javax/swing/JButton.java
1574 (removeNotify): Fixed javadoc.
1575 (updateUI): Simplified.
1577 2004-07-21 David Jee <djee@redhat.com>
1579 * gnu/java/awt/image/ImageDecoder.java
1580 (startProduction): Only add consumer if it's not added yet.
1581 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1582 (GdkPixbufDecoder): Don't call initState() here.
1583 (produce): Call initState() here, to ensure area_prepared and
1584 area_updated signals are properly connected.
1585 * gnu/java/awt/peer/gtk/GtkImage.java
1586 (setColorModel): Use equals() to compare ColorModel objects.
1587 (setPixels): Likewise.
1588 * java/awt/image/ColorModel.java
1589 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1590 * java/awt/image/RGBImageFilter.java
1591 (setColorModel): Set consumer's color model.
1592 (setPixels): Use equals() to compare ColorModel objects.
1594 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1596 * java/net/URLConnection.java (position): New field.
1597 (dateFormat1, dateFormat2, dateFormat3): Removed.
1598 (dateFormats): New field.
1599 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1600 each time instead of re-allocating.
1601 (initializeDateFormats): Initialize 'dateFormats'.
1603 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1606 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1609 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1611 * java/net/Socket.java (getImpl): Now private. Remove comment.
1613 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1615 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1616 of chained Writer when calling super-constructor.
1617 * java/io/FilterWriter.java (FilterWriter): Likewise.
1618 * java/io/PrintWriter.java (PrintWriter): Likewise.
1620 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1622 * prims.cc (process_gcj_properties): Don't increment i within LHS
1625 2004-07-19 Per Bothner <per@bothner.com>
1627 Print -verbose:message on "loading", not initialization.
1628 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1629 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1630 gcj::verbose_class_flag.
1631 * java/lang/natClass.cc (initializeClass): Don't print message here.
1632 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1633 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1634 (_Jv_PrepareCompiledClass): Likewise.
1636 2004-07-18 Matthias Klose <doko@debian.org>
1638 * configure.in: Substitute target_noncanonical.
1639 * configure: Regenerate
1641 2004-07-17 Michael Koch <konqueror@gmx.de>
1643 * java/lang/String.java: Fixed javadocs all over.
1645 2004-07-17 Mark Wielaard <mark@klomp.org>
1647 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1648 when size is smaller.
1649 * java/io/RandomAccessFile.java (setLength): Use truncate for
1650 shrinking the file and seek plus write for expanding the file.
1652 2004-07-17 Michael Koch <konqueror@gmx.de>
1654 * gnu/java/nio/channels/natFileChannelPosix.cc
1655 (implTruncate): Always save current position. Only reposition file
1656 pointer to where we started if not beyond new lenght. Reposition file
1657 pointer to file length if it points beyond the end of file.
1659 2004-07-17 Mark Wielaard <mark@klomp.org>
1661 * javax/swing/Box.java: Put FIXME comment above class declaration.
1662 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1663 * javax/swing/JCheckBox.java: Likewise.
1664 * javax/swing/JDialog.java: Likewise.
1665 * javax/swing/JRadioButton.java: Likewise.
1666 * javax/swing/JToggleButton.java: Likewise.
1667 * javax/swing/UIManager.java: Likewise.
1668 * javax/swing/border/TitledBorder.java: Likewise.
1669 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1670 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1671 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1672 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1673 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1674 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1675 * javax/swing/text/JTextComponent.java: Likewise.
1677 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1679 * java/net/DatagramPacket.java (setAddress): Removed check for
1682 2004-07-17 Michael Koch <konqueror@gmx.de>
1684 * java/net/DatagramSocket.java
1685 (getLocalAddress): Check if socket is bound or not.
1686 * java/net/Socket.java
1687 (getLocalAddrss): Check if socket is bound or not.
1688 (getPort): Return -1 when not connected. Dont check getImpl() for
1690 (setReuseAddress): Check if socket is closed.
1691 (isConnected): Check if getImpl() returns null.
1693 2004-07-17 Mark Wielaard <mark@klomp.org>
1695 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1696 on notifier object before calling notifyAll().
1698 2004-07-17 Michael Koch <konqueror@gmx.de>
1700 * gnu/java/nio/channels/FileChannelImpl.java
1701 (finalize): Added javadoc.
1703 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1705 * java/text/CollationElementIterator.java
1706 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1707 (setText): Use ArrayList instead of Vector.
1709 2004-07-17 Michael Koch <konqueror@gmx.de>
1711 * java/nio/ByteOrder.java
1712 (static): Removed. Not needed.
1713 Thanks to Patrick Reali for noticing.
1714 * java/nio/charset/CharsetDecoder.java
1715 (decode): Fix for classpath bug #9177: Reset state before flipping.
1717 2004-07-17 Michael Koch <konqueror@gmx.de>
1719 * java/security/Security.java: Fixed javadocs all over.
1721 2004-07-17 Michael Koch <konqueror@gmx.de>
1723 * gnu/java/awt/EmbeddedWindow.java
1725 (addNotify): Set peer via reflection.
1726 (setWindowPeer): Removed.
1727 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1728 * Makefile.am (nat_source_files):
1729 Removed gnu/java/awt/natEmbeddedWindow.cc.
1730 * Makefile.in: Regenerated.
1732 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1734 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1736 * configure: Regenerated.
1738 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1740 * configure.in: Use build_noncanonical rather than build_alias.
1741 * configure: Rebuild.
1743 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1744 by logic refactoring. Move default definition of NATIVE closer
1745 to first alternate definition.
1746 * configure: Regenerate.
1748 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1749 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1750 gcj/Makefile.in: Regenerate.
1751 * configure.in: Set ZIP and GCJH. Remove redundant condition
1752 in AM_CONDITIONAL(NATIVE,...)
1753 * configure: Regenerate.
1755 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1757 * configure.in: Use target_noncanonical rather than
1758 target_alias for forward-compatibility with autoconf 2.59.
1759 * configure: Regenerate.
1760 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1761 testsuite/Makefile.am: Substitute target_noncanonical.
1762 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1763 testsuite/Makefile.in: Regenerate.
1765 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1766 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1767 * acinclude.m4: Include acx.m4.
1768 * aclocal.m4: Regenerate.
1769 * configure: Regenerate.
1771 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1774 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1775 (decimalFormat): New static variable.
1777 (getTime): New. Override Date.getTime().
1778 (toString): Synchronize. Use decimalFormat to format nanos value
1779 correctly. Truncate extra zeros.
1780 (before): Compare getNanos() only if getTime() is equal.
1783 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1785 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1786 * configure.in: ...here.
1787 * aclocal.m4: Regenerate.
1788 * configure: Regenerate.
1790 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1791 * configure: Rebuilt with autoconf 2.13.
1792 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1793 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1795 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1798 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1800 * Makefile.in: Rebuilt.
1801 * testsuite/libjava.lang/LargeFile.java: New test case.
1802 * testsuite/libjava.lang/LargeFile.out: New file.
1804 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1806 * java/beans/EventHandler.java: Remove debugging statements.
1808 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1810 * java/beans/EventHandler.java: New file.
1811 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1812 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1813 testsuite/Makefile.in: Regenerate.
1815 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1817 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1818 flag to the gcj_setup.
1819 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1821 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1822 deprecation flag change. 58 XFAILS removed.
1824 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1826 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1827 -fno-use-divide-subroutine.
1828 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1829 (HANDLE_FPE): Define.
1830 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1831 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1832 (HANDLE_DIVIDE_OVERFLOW): Define.
1834 2004-07-14 Michael Koch <konqueror@gmx.de>
1835 Matthias Klose <doko@debian.org>
1837 * java/awt/im/InputContext.java: Initialize in, line.
1839 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1841 * interpret.cc (run): Correctly access libffi return values of
1842 integral smaller-than-int type; these are implicitly promoted.
1844 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1847 * interpret.cc (compile_mutex): New.
1848 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1849 (run): Lock compile_mutex before calling compile() if compilation is
1851 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1852 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1854 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1857 * include/jvm.h (_Jv_value): New union type.
1858 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1859 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1862 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1864 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1865 * gnu/awt/xlib/XOffScreenImage.java
1866 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1867 constructor argument. Add constructor using ImageProducer.
1868 (getSource): Implement.
1869 (imageComplete): New method.
1870 (setColorModel): New method.
1871 (setDimensions): New method.
1872 (setHints): New method.
1873 (setPixels): New method.
1874 (setProperties): New method.
1875 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1876 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1878 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1881 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1882 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1883 (finalizerReady): Now native.
1885 (runFinalizers): Removed.
1886 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1887 a primitive lock, and don't hold it while running the finalizers.
1888 (runFinalizers): Implement. Don't aquire any Java lock.
1889 (finalizerReady): Use lock primitives to signal finalizer thread.
1891 2004-07-11 Mark Wielaard <mark@klomp.org>
1893 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1894 * java/net/URLStreamHandler.java (parseURL): When url file part
1895 doesn't contain a '/' just ignore context.
1897 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1899 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1900 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1901 (MAKE_THROW_FRAME): Do not modify PSW address.
1902 (INIT_SEGV): Install SIGINFO-style signal handler.
1903 (INIT_FPE): Likewise.
1905 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1907 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1908 status. 21 xfail's removed, 1 added.
1910 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1912 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1914 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1916 * java/text/MessageFormat.java
1917 (formatInternal): Append "{n}" if argument n is unavailable.
1918 (format(Object, StringBuffer, FieldPosition)): This
1919 should be equivalent to format(Object[],
1920 StringBuffer, FieldPosition).
1922 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1924 * java.util.Calendar.java (cache): New private static field. Cached
1925 mappings of locales->calendar classes.
1926 (ctorArgTypes): New private static field. Singleton argument for
1927 calendar class constructor lookup.
1928 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1929 Optimize by bypassing reflection instantiation for the
1930 GregorianCalendar case.
1932 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1934 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1935 ResourceBundle.getBundle() calls.
1936 * java/util/GregorianCalendar.java: Likewise.
1937 * java/util/Currency.java: Likewise.
1938 * java/text/BreakIterator.java: Likewise.
1939 * java/text/Collator.java: Likewise.
1940 * java/text/DateFormat.java: Likewise.
1941 * java/text/DateFormatSymbols.java: Likewise.
1942 * java/text/DecimalFormatSymbols.java: Likewise.
1943 * java/text/NumberFormat.java: Likewise.
1944 * java/awt/Window.java: Likewise.
1946 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1948 * java/util/ResourceBundle.java (bundleCache): Renamed from
1949 resourceBundleCache. Update comments.
1950 (getObject): Don't catch MissingResourceException.
1951 (getBundle(String)): Remove 'final'. Use system classloader if
1952 getCallingClassLoader returned null.
1953 (getBundle(String, Locale)): Likewise.
1954 (BundleKey): New private class. HashMap key for bundle cache lookup.
1955 (lookupKey): New. Singleton instance of BundleKey.
1956 (nullEntry): New. Cache entry to represent failed lookups.
1957 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1958 caching strategy, no-allocation lookup, and new tryBundle methods.
1959 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1960 name using given classloader.
1961 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1962 baseName for given Locale and attempt to load bundle.
1964 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1966 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1967 illegal protected method calls.
1969 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1971 Fix or remove some bogus test cases.
1972 * testsuite/libjava.compile/pr10459_2.java: Removed.
1973 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1975 * testsuite/libjava.compile/inner_data.java: Test against its own
1978 2004-07-09 Michael Koch <konqueror@gmx.de>
1980 * scripts/unicode-muncher.pl: Updated to version 2.1
1981 from GNU classpath. Added some clarifications on where to find the
1982 needed files from www.unicode.org.
1983 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1984 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1985 Removed, these can directly be downloaded from www.unicode.org if
1987 * gnu/java/lang/CharData.java: Regenerated.
1988 * include/java-chartables.h: Regenerated.
1989 * Makefile.am (ordinary_java_source_files):
1990 Removed gnu/java/lang/CharData.java.
1991 * Makefile.in: Regenerated.
1993 2004-07-09 Michael Koch <konqueror@gmx.de>
1995 * java/security/AccessControlContext.java,
1996 java/security/SecureClassLoader.java:
1999 2004-07-09 Michael Koch <konqueror@gmx.de>
2001 * java/io/ObjectInputStream.java (readFields): Use long datatype
2002 when shifting byte values more then 24 bits left.
2004 2004-07-09 Michael Koch <konqueror@gmx.de>
2006 * java/util/zip/DeflaterOutputStream.java,
2007 java/util/zip/GZIPInputStream.java,
2008 java/util/zip/GZIPOutputStream.java,
2009 java/util/zip/InflaterInputStream.java:
2010 Reformatted. Added javadocs. Reordered all stuff.
2011 Renamed variables to be more clear.
2013 2004-07-09 Michael Koch <konqueror@gmx.de>
2015 * javax/imageio/IIOException.java,
2016 javax/imageio/event/IIOReadProgressListener.java,
2017 javax/imageio/event/IIOReadUpdateListener.java,
2018 javax/imageio/event/IIOReadWarningListener.java,
2019 javax/imageio/event/IIOWriteProgressListener.java,
2020 javax/imageio/event/IIOWriteWarningListener.java:
2022 * Makefile.am: Added new files.
2023 * Makefile.in: Regenerated.
2025 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
2027 * java/text/RuleBasedCollator.java
2028 (mergeRules): Use ArrayList instead of Vector.
2029 (subParseString): likewise.
2030 (parseString): likewise.
2031 (buildCollationVector): likewise.
2032 (getCollationKey): likewise.
2034 2004-07-09 Dalibor Topic <robilad@kaffe.org>
2036 * java/text/DateFormat.java (parse):
2037 Improved javadoc. Improved exception message.
2039 2004-07-09 Mark Wielaard <mark@klomp.org>
2041 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
2042 interrupted() method to clear interupt flag of our Thread.
2044 2004-07-09 Dalibor Topic <robilad@kaffe.org>
2046 * java/nio/Buffer.java,
2047 java/nio/ByteBuffer.java,
2048 java/nio/ByteBufferHelper.java,
2049 java/nio/ByteBufferImpl.java,
2050 java/nio/CharBuffer.java,
2051 java/nio/CharBufferImpl.java,
2052 java/nio/CharViewBufferImpl.java,
2053 java/nio/DirectByteBufferImpl.java,
2054 java/nio/DoubleBuffer.java,
2055 java/nio/DoubleBufferImpl.java,
2056 java/nio/DoubleViewBufferImpl.java,
2057 java/nio/FloatBuffer.java,
2058 java/nio/FloatBufferImpl.java,
2059 java/nio/FloatViewBufferImpl.java,
2060 java/nio/IntBuffer.java,
2061 java/nio/IntBufferImpl.java,
2062 java/nio/IntViewBufferImpl.java,
2063 java/nio/LongBuffer.java,
2064 java/nio/LongBufferImpl.java,
2065 java/nio/LongViewBufferImpl.java,
2066 java/nio/MappedByteBufferImpl.java,
2067 java/nio/ShortBuffer.java,
2068 java/nio/ShortBufferImpl.java,
2069 java/nio/ShortViewBufferImpl.java:
2070 Fixed javadocs all over. Improved input error
2073 * java/nio/Buffer.java
2074 (checkForUnderflow, checkForOverflow, checkIndex,
2075 checkIfReadOnly, checkArraySize): New helper methods
2078 * java/nio/ByteBufferHelper.java
2079 (checkRemainingForRead, checkRemainingForWrite,
2080 checkAvailableForRead, checkAvailableForWrite): Removed
2081 no longer needed methods.
2083 2004-07-09 Michael Koch <konqueror@gmx.de>
2085 * gnu/regexp/CharIndexedInputStream.java:
2086 Reordered imports to match classpath.
2088 2004-07-09 Michael Koch <konqueror@gmx.de>
2090 * gnu/java/awt/EmbeddedWindow.java:
2091 Load native library for setWindowPeer method.
2093 2004-07-08 Randolph Chung <tausq@debian.org>
2095 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
2096 * configure: Regenerate.
2097 * configure.host: Set can_unwind_signal for hppa*-linux.
2098 * include/pa-signal.h: New file.
2100 2004-07-07 Per Bothner <per@bothner.com>
2102 * Makefile.am: Add rules to build libgij from just gij.cc.
2104 * include/jvm.h (namespace jcj): Declare verbose_class_flag
2105 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
2106 (initializeClass): If verbose_class_flag, print message.
2107 * gij.cc (main): Handle -verbose:class flag.
2109 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
2111 * configure.host: Enable hash synchronization on Darwin.
2112 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
2113 ';', since this is a comment on Darwin.
2114 (compare_and_swap_release): Likewise.
2116 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
2118 * java/net/URLStreamHandler.java (parseURL): Canonicalize
2119 file portion of URL in addition to spec for file: protocol.
2121 2004-07-05 Anthony Green <green@redhat.com>
2123 * java/io/File.java (toURI): Merge from Classpath.
2125 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2127 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
2128 before passing to URL constructor. Rethrow any MalformedURLException
2129 as a RuntimeException. Catch MalformedURLException specifically, not
2132 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2134 * java/util/Locale.java (readObject): Intern strings read from object
2137 2004-07-04 Michael Koch <konqueror@gmx.de>
2139 * gnu/gcj/runtime/FirstThread.java,
2140 gnu/gcj/runtime/natFirstThread.cc: Removed.
2141 * gnu/java/lang/MainThread.java,
2142 gnu/java/lang/natMainThread.cc: New files.
2143 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
2144 * Makefile.am: Added new files and removed deleted ones.
2145 * Makefile.in: Regenerated.
2147 2004-07-03 Mark Wielaard <mark@klomp.org>
2148 Anthony Green <green@redhat.com>
2150 * java/net/URL.java (getFile): Clarify return value doc.
2151 (getPath): Return null if file is empty - not empty String.
2152 (set): Convert protocol to lower case before doing anything.
2153 Only change the protocol handler if it's different.
2155 2004-07-03 Anthony Green <green@redhat.com>
2157 * java/net/URL.java (URL): Convert protocol to lower case before
2158 doing anything, so we getURLStreamHandler() with the proper value.
2160 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
2162 * java/util/Locale.java (hashcode): Made transient.
2163 (hashCode): No longer synchronized.
2164 (equals): Remove comment.
2165 (writeObject): No longer synchronized. Implement using writeObject
2166 calls instead of tweaking hashCode field. Update doc.
2167 (readObject): Implement using readObject calls.
2169 2004-06-26 Geoffrey Keating <geoffk@apple.com>
2170 Andreas Tobler <a.tobler@schweiz.ch>
2172 * configure.host (powerpc-*-darwin*): New case, define
2174 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
2175 * configure: Regenerate.
2176 * include/darwin-signal.h: New.
2178 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
2180 * java/beans/Statement.java (doExecute): Fix formatting.
2182 2004-06-29 Per Bothner <per@bothner.com>
2184 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2185 etc etc): Remove needless parenthesis, which causes __stdcall__
2186 attribute on MinGW to get ignored.
2188 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
2190 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2192 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
2194 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
2196 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
2198 * java/beans/Expression.java: New file.
2199 * java/beans/Statement.java: New file.
2200 * Makefile.am: Added new files.
2201 * Makefile.in: Re-generate.
2203 2004-06-27 Mark Wielaard <mark@klomp.org>
2205 * java/io/FilePermission.java (usingPerms): Removed.
2206 (actionsString): Made final.
2207 (cachePerms): Renamed to checkPerms.
2208 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2210 (FilePermission): Check arguments, call checkPerms().
2211 (equals): Remove cachePerms() call.
2212 (implies): Likewise.
2214 2004-06-27 Mark Wielaard <mark@klomp.org>
2216 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2218 (sendRequest): Use new field in user-agent http agent.
2220 2004-06-27 Mark Wielaard <mark@klomp.org>
2222 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2223 when argument is null.
2225 2004-06-26 Mark Wielaard <mark@klomp.org>
2227 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2228 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2230 (cancel_clicked): Likewise.
2232 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2234 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2235 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2236 can not calculate the right value.
2237 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2239 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2241 * testsuite/libjava.jacks/jacks.xfail: Remove
2242 15.9.1-qualified-concrete-20.
2244 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2246 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2247 encoding name to iconv.
2248 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2250 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2253 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2254 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2255 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2257 2004-06-21 Andrew Haley <aph@redhat.com>
2259 * java/io/ObjectOutputStream.java: Add DEBUG statements
2261 (dumpElementln): New method.
2263 * java/io/ObjectInputStream.java
2264 (currentClassLoader): Make native.
2265 (callersClassLoader): New field.
2267 (readObject): ENDBLOCKDATA is generated if the class has a write
2268 method, not if it has a read method.
2269 (readObject): Save and restore this.currentObject and
2270 this.currentObjectStreamClass around calls to callReadMethod().
2271 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2274 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2276 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2279 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2281 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2282 if desired, before the default class loader is initialised.
2283 Call INIT_SEGV only if HANDLE_SEGV is defined.
2285 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2287 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2288 directory only if it actually exists.
2290 2004-06-18 Graydon Hoare <graydon@redhat.com>
2292 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2293 Fix up non-ansi comments.
2295 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2297 * javax/swing/text/AbstractDocument.java: Adding missing import
2298 for javax.swing.event.EventListenerList.
2299 * javax/swing/text/DefaultCaret.java: Likewise.
2301 2004-06-17 Michael Koch <konqueror@gmx.de>
2303 * javax/swing/JToolBar.java
2305 (JToolBar): Use Component.setName(String) instead of doing it all
2307 * javax/swing/Timer.java
2308 (queueEvent): Added missing modifier.
2310 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2312 * Makefile.am: Added new file.
2313 * Makefile.in: Re-generate.
2314 * javax/swing/JMenu.java:
2315 (insertSeparator): Implemented.
2316 * javax/swing/JPopupMenu.java:
2317 (JPopupMenu.Separator): Implemented.
2318 * javax/swing/MenuSelectionManager.java:
2319 (processMouseEvent): Use java.awt.Component
2320 for event source instead of javax.swing.JComponent.
2321 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2322 New File. Implemented.
2324 2004-06-16 David Jee <djee@redhat.com>
2326 * java/awt/GridBagLayout.java
2327 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2328 Make sure pos_x and pos_y are never negative.
2330 2004-04-16 Andrew Overholt <overholt@redhat.com>
2332 * Makefile.am: Add new file.
2333 * Makefile.in: Re-generate.
2334 * javax/swing/JToolBar.java
2335 Partially implemented.
2336 * javax/swing/plaf/basic/BasicToolBarUI.java
2337 New file. Partially implemented.
2339 2004-06-16 Graydon Hoare <graydon@redhat.com>
2341 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2342 (setComposite): Accept AlphaComposite arguments.
2343 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2344 (createBufferedImage): Add new overloads.
2345 * gnu/java/awt/peer/gtk/GtkToolkit.java
2346 (createImage): Use GdkPixbufDecoder.createBufferedImage
2347 when useGraphics2D() is true.
2348 (getImage): Delegate to createImage.
2349 * javax/swing/JList.java
2351 (getFirstVisibleIndex):
2352 (getLastVisibleIndex):
2354 (ensureIndexIsVisible): New methods.
2355 * javax/swing/Timer.java: Reimplement.
2357 2004-06-16 Michael Koch <konqueror@gmx.de>
2359 * javax/swing/text/AbstractDocument.java
2360 (AbstracElement): Made public, implements java.io.Serializable.
2361 (AttributeContext): Made public.
2362 (BranchElement): Likewise.
2363 (Content): Likewise.
2364 (DefaultDocumentEvent): Made public, extends
2365 javax.swing.undo.CompoundEdit.
2366 (ElementEdit): Made public, extends
2367 javax.swing.undo.AbstractUndoableEdit.
2368 (LeafElement): Made public.
2369 (LeafElement.LeafElement): Made public.
2371 2004-06-16 Michael Koch <konqueror@gmx.de>
2373 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2374 methods (that were obviously never be intended to get included hi this
2375 class. Added some methods too.
2377 2004-06-16 Michael Koch <konqueror@gmx.de>
2379 * javax/swing/text/PlainDocument.java
2380 (serialVersionUID): New constant.
2381 (lineLimitAttribute): Likewise.
2382 (tabSizeAttribute): Likewise.
2383 (tabSize): New field.
2384 (PlainDocument): Made public.
2385 (PlainDocument): New constructor.
2387 2004-06-16 Michael Koch <konqueror@gmx.de>
2389 * javax/swing/text/AbstractDocument.java
2390 (insertString): Throws BadLocationException.
2391 * javax/swing/text/Document.java
2392 (insertString): Likewise.
2393 * javax/swing/text/JTextComponent.java:
2394 Javadocs and comments cleaned up.
2396 2004-06-16 Michael Koch <konqueror@gmx.de>
2398 * javax/swing/event/UndoableEditListener.java: Reformatted.
2399 * javax/swing/text/AbstractDocument.java
2400 (AbstractDocument): Implements java.io.Serializable.
2401 (doc_list): Removed.
2402 (undo_list): Removed.
2403 (AbstractElement.serialVerionUID): New field.
2404 (BranchElement.serialVerionUID): Likewise.
2405 (DefaultDocumentEvent.serialVerionUID): Likewise.
2406 (ElementEdit.serialVerionUID): Likewise.
2407 (LeafElement.serialVerionUID): Likewise.
2408 (serialVerionUID): Likewise.
2409 (BAD_LOCATION): New constant.
2410 (BidiElementName): Likewise.
2411 (ContentElementName): Likewise.
2412 (ParagraphElementName): Likewise.
2413 (SectionElementName): Likewise.
2414 (ElementNameAttribute): Likewise.
2415 (AbstractDocument): Made protected.
2416 (AbstractDocument): New construtor.
2417 (listenerList): New field.
2418 (fireChangedUpdate): Implemented.
2419 (fireInsertUpdate): Likewise.
2420 (fireRemoveUpdate): Likewise.
2421 (fireUndoableEditUpdate): Likewise.
2422 (getListeners): Likewise.
2423 (addDocumentListener): Likewise.
2424 (removeDocumentListener): Likewise.
2425 (addUndoableEditListener): Likewise.
2426 (removeUndoableEditListener): Likewise.
2427 (getDocumentListeners): New method.
2428 (getUndoableEditListeners): Likewise.
2429 (getAsynchronousLoadPriority): Made public.
2430 (getBidiRootElement): Likewise.
2431 (setAsynchronousLoadPriority): Likewise.
2432 (setDocumentProperties): Likewise.
2433 * javax/swing/text/BadLocationException.java
2434 (serialVerionUID): New field.
2435 * javax/swing/text/DefaultCaret.java
2436 (changeEvent): New field.
2437 (listenerList): Likewise.
2439 (addChangeListener): Reimplemented.
2440 (removeChangeListener): Likewise.
2441 (getListeners): New method.
2442 (getChangeListeners): Likwise.
2443 (getComponent): Likewise.
2444 * javax/swing/text/GapContent.java
2445 (GapContent): Implements java.io.Serializable.
2446 (serialVerionUID): New field.
2448 2004-06-16 Michael Koch <konqueror@gmx.de>
2450 * javax/swing/JTree.java
2451 (treeModel): New field.
2452 (JTree): New constructors, one existing one made public.
2453 (createTreeModel): New method.
2454 (addTreeExpansionListener): Likewise.
2455 (removeTreeExpansionListener): Likewise.
2456 (getTreeExpansionListeners): Likewise.
2457 (fireTreeCollapsed): Likewise.
2458 (fireTreeExpanded): Likewise.
2459 (addTreeSelectionListener): Likewise.
2460 (removeTreeSelectionListener): Likewise.
2461 (getTreeSelectionListeners): Likewise.
2462 (fireValueChanged): Likewise.
2463 (addTreeWillExpandListener): Likewise.
2464 (removeTreeWillExpandListener): Likewise.
2465 (getTreeWillExpandListeners): Likewise.
2466 (fireTreeWillCollapse): Likewise.
2467 (fireTreeWillExpand): Likewise.
2469 2004-06-16 Michael Koch <konqueror@gmx.de>
2471 * javax/swing/JTree.java: Reformatted.
2473 2004-06-16 Michael Koch <konqueror@gmx.de>
2475 * javax/swing/JTextArea.java: New file.
2476 * javax/swing/JTextField.java
2478 (notifyAction): New constant.
2479 (columns): New field.
2480 (JTextField): New constructors.
2481 (createDefaultModel): New method.
2482 (addActionListener): Reimplmemented.
2483 (removeActionListener): Reimplemented.
2484 (getActionListeners): New method.
2485 (fireActionPerformed): New method.
2486 (getColumns): New method.
2487 (setColumne): New method.
2488 * javax/swing/text/JTextComponent.java
2489 (AccessibleJTextComponent.serialVersionUID): New field.
2490 (serialVersionUID): Likewise.
2491 (DEFAULT_KEYMAP): Likewise.
2492 (FOCUS_ACCELERATOR_KEY): Likewise.
2493 (doc): Made private.
2494 (icon_gap): Likewise.
2497 (JTextComponent): Some constructors removed.
2498 (getScrollableTracksViewportHeight): New method.
2499 (getScrollableTracksViewportWidth): Likewise.
2500 * Makefile.am: Added javax/swing/JTextArea.java.
2501 * Makefile.in: Regenerated.
2503 2004-06-15 Graydon Hoare <graydon@redhat.com>
2505 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2506 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2507 * javax/swing/JViewport.java
2508 (getExtentSize): Return size rather than preferred size.
2509 (toViewCoordinates): New methods.
2510 (getViewSize): Return size rather than preferred size.
2511 (setViewSize): Note view size as set.
2512 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2513 * javax/swing/plaf/basic/BasicScrollBarUI.java
2514 (getPreferredSize): Don't redo layout.
2515 * javax/swing/plaf/basic/BasicViewportUI.java
2516 (paint): Translate image properly and eat exceptions.
2518 2004-06-15 Kim Ho <kho@redhat.com>
2520 * javax/swing/JTabbedPane.java
2521 (setComponent): Remove old component and
2523 (setSelectedIndex): Don't operate on the
2524 components if they're null. Don't set index
2525 on the model if the index is the same.
2526 (insertTab): Don't add or hide the component
2527 if it's null. Repaint the container.
2528 * javax/swing/plaf/basic/BasicLookAndFeel.java
2529 Change colors for TabbedPane.
2530 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2531 (mousePressed): Re-layout and paint the component.
2532 (layoutContainer): Don't set location on the view.
2533 (ScrollingViewport::paint): Remove.
2535 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2537 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2538 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2540 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2541 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2542 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2544 (drawLine): Call gdk_flush before leaving GDK critical region.
2545 (fillRect): Likewise.
2546 (drawRect): Likewise.
2547 (copyArea): Likewise.
2548 (copyPixmap): Likewise.
2549 (clearRect): Likewise.
2550 (drawArc): Likewise.
2551 (drawPolyline): Likewise.
2552 (drawPolygon): Likewise.
2553 (fillPolygon): Likewise.
2554 (fillArc): Likewise.
2555 (drawOval): Likewise.
2556 (fillOval): Likewise.
2558 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2560 (GdkFontMetrics): Add style argument to initState call.
2561 (stringWidth(String,int,int,String)): Add style parameter.
2562 (stringWidth(String)): Add style argument to stringWidth call.
2563 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2564 (initState): Set pango font style and weight based on AWT style
2565 parameter. Pass default GTK language to
2566 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2567 simply dividing by PANGO_SCALE.
2568 (stringWidth): Set pango font style and weight based on AWT style
2571 * java/awt/Button.java (next_button_number): New field.
2572 (paramString): Change output.
2573 (generateName): New method.
2574 (getUniqueLong): New method.
2576 2004-06-14 Kim Ho <kho@redhat.com>
2578 * javax/swing/JTabbedPane.java:
2579 (setComponentAt): Set the component, not
2581 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2582 (actionPerformed): Let deiconize catch exception.
2584 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2586 * javax/swing/JPopupMenu.java:
2587 (setVisible): Corrected location of a
2588 heavyweight popup menu.
2590 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2592 * javax/swing/MenuSelectionManager.java:
2593 Ran through jalopy to fix formatting style.
2595 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2597 * javax/swing/JLayeredPane.java:
2598 (remove): Revalidate and repaint layered pane after
2599 the component was removed.
2600 javax/swing/JMenu.java:
2601 (setVisible): Display popup menu at the user location,
2602 if one was set by the user.
2603 (setMenuLocation): Reimplemented. Fixed javadoc.
2604 * javax/swing/JMenuBar.java: Added javadoc.
2605 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2606 (MODEL_CHANGED_PROPERTY): New Property.
2607 (isSelected): Implemented.
2608 (setBorderPainted): Fire PropertyChangeEvent
2609 if paintBorder property changes.
2610 (setSelected): Implemented.
2611 (setSelectionModel): Implemented.
2612 * javax/swing/JPopupMenu.java: Added Javadoc
2613 (pack): Implemented.
2614 (setVisible): Reimplemented.
2615 (show): Fixed location.
2616 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2617 Container instead of JPanel.
2618 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2619 (clearSelectedPath): Reimplemented to clear selectedPath
2621 (processMouseEvent): Reimplemented.
2622 (setSelectedPath): Fire stateChange event indicating that
2623 selected menu path has changed.
2624 (getPath): Change to use ArrayList instead of Vector.
2625 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2626 (installUI): call installKeyboardActions().
2627 (uninstallUI): call uninstallKeyboardActions().
2629 2004-06-13 Michael Koch <konqueror@gmx.de>
2631 * javax/swing/text/DefaultCaret.java,
2632 javax/swing/text/BadLocationException.java:
2635 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2637 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2638 DEFAULT_COLS): New variables.
2639 (create): Don't allow 0 rows or 0 columns. Instead, set the
2640 values to DEFAULT_ROWS or DEFAULT_COLS.
2641 (getMinimumSize): Likewise.
2642 (getPreferredSize): Likewise.
2643 (minimumSize): Likewise.
2644 (preferredSize): Likewise.
2645 (create): Set peer's editable state.
2646 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2647 zero. Update javadocs.
2648 (TextArea(String)): Likewise.
2649 (TextArea(int,int)): Fix javadocs.
2650 (TextArea(String,int,int,int)): Only throw exception if one of
2651 rows or columns is zero. Fix javadocs.
2653 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2655 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2656 addition to Components.
2658 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2659 wasn't consumed by normal processing, send it to the parent
2662 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2663 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2666 2004-06-11 David Jee <djee@redhat.com>
2668 * java/awt/MediaTracker.java
2669 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2670 (addImage(Image,int,int,int)): Likewise.
2672 2004-06-11 Michael Koch <konqueror@gmx.de>
2674 * javax/swing/text/AbstractDocument.java,
2675 javax/swing/text/Document.java,
2676 javax/swing/text/GapContent.java,
2677 javax/swing/text/JTextComponent.java,
2678 javax/swing/text/PlainDocument.java:
2681 2004-06-11 Michael Koch <konqueror@gmx.de>
2683 * javax/swing/JRootPane.java
2684 (AccessibleJRootPane.serialVersionUID): New field.
2685 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2686 (AccessibleJRootPane.getAccessibleRole): New method.
2687 (RootLayout): Implements Serializable.
2688 (RootLayout.serialVersionUID): New field.
2689 (RootLayout.RootLayout): New constructor.
2690 (setJMenuBar): Made public.
2691 (getJMenuBar): Likewise.
2692 (JRootPane): Likewise.
2693 (createContentPane): Likewise.
2694 (createGlassPane): Likewise.
2695 (createLayeredPane): Likewise.
2697 2004-06-11 Michael Koch <konqueror@gmx.de>
2699 * javax/swing/SwingUtilities.java
2700 (isLeftMouseButton): Fixed javadoc.
2701 (isMiddleMouseButton): Likewise.
2702 (isRightMouseButton): Likewise.
2704 2004-06-11 Michael Koch <konqueror@gmx.de>
2706 * javax/swing/JScrollPane.java
2707 (serialVersionUID): New field.
2708 (columnHeader): Made protected.
2709 (rowHeader): Likewise.
2710 (lowerLeft): Likewise.
2711 (lowerRight): Likewise.
2712 (upperLeft): Likewise.
2713 (upperRight): Likewise.
2714 (horizontalScrollBar): Likewise.
2715 (horizontalScrollBarPolicy): Likewise.
2716 (verticalScrollBar): Likewise.
2717 (verticalScrollBarPolicy): Likewise.
2718 (viewport): Likewise.
2720 2004-06-11 Michael Koch <konqueror@gmx.de>
2722 * javax/swing/LookAndFeel.java: Fixed javadocs.
2724 2004-06-11 Michael Koch <konqueror@gmx.de>
2726 * javax/swing/JEditorPane.java: Fixed javadocs.
2727 (JEditorPane): Removed redundant call to to this().
2728 (fireHyperlinkUpdate): Implemented.
2730 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2732 * javax/swing/JMenu.java: Fixed file name
2733 in the file comment.
2735 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2737 * javax/swing/JMenu.java: Added javadoc.
2738 (JMenu): Added MenuChangeListener to listen to
2739 ChangeEvents occuring in menu's model.
2740 (insert): Throw IllegalArgumentException if
2741 index is less than 0
2742 (setSelected): Reimplement.
2743 (setPopupMenuVisible): Call menu's model isEnabled()
2744 (setDelay): Throw IllegalArgumentException if
2745 given amount of delay is less than 0.
2746 (createActionComponent): Implemented.
2747 (createActionChangeListener): Implemented.
2748 (addSeparator): Implemented.
2749 (getItem): Throw IllegalArgumentException if index is
2751 (getItemCount): Implemented.
2752 (fireMenuSelected): Changed to use menuEvent.
2753 (fireMenuDeselected): Likewise.
2754 (fireMenuCanceled): Likewise.
2755 (setAccelerator): Changed to throw an error if this
2757 (doClick): Implemented.
2758 (JMenu.ActionChangedListener): New inner class to handle
2759 PropertyChangeEvents occuring in the actions associated with menu.
2760 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2761 (BasicMenuUI): Added PropertyChangeListener to the menu.
2762 (createChangeListener): Implemented.
2763 (createMenuDragMouseListener): Likewise.
2764 (createMenuKeyListener): Likewise.
2765 (createPropertyChangeListener): Likewise.
2766 (uninstallListeners): Likewise.
2767 (BasicMenuUI.MouseInputHandler): Reimplemented.
2768 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2769 (BasicMenuUI.ChangeHandler): Likewise.
2770 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2771 (BasicMenuUI.MenuKeyHandler): Likewise.
2773 2004-06-10 David Jee <djee@redhat.com>
2775 * java/awt/MediaTracker.java
2776 (imageUpdate): Only do notifyAll() if the image is complete.
2778 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2780 * javax/swing/JApplet.java:
2781 (getJMenuBar): Made public.
2782 (setJMenuBar): Likewise.
2783 * javax/swing/JFrame.java:
2784 (getJMenuBar): Made public.
2785 (setJMenuBar): Likewise.
2786 * javax/swing/JWindow.java:
2787 (getJMenuBar): Removed.
2788 (setJMenuBar): Removed.
2790 2004-06-10 Michael Koch <konqueror@gmx.de>
2792 * javax/swing/JEditorPane.java
2793 (createEditorKitForContentType): Fixed visibility.
2794 (fireHyperlinkUpdate): Likewise.
2795 (getContentType): Likewise.
2796 (getEditorKit): Likewise.
2797 (getEditorKitForContentType): Likewise.
2798 (getPage): Likewise.
2800 (registerEditorKitForContentTyoe): Likewise.
2801 (replaceSelection): Likewise.
2802 (setContentType): Likewise.
2803 (setEditorKit): Likewise.
2804 (setPage): Likewise.
2806 2004-06-10 Michael Koch <konqueror@gmx.de>
2808 * javax/swing/Timer.java
2809 (Timer): New constructor.
2810 * javax/swing/plaf/basic/BasicProgressBarUI.java
2811 (animationTimer): Don't initialize at construction.
2812 (startAnimationTimer): Added since tag.
2813 (stopAnimationTimer): Likewise.
2814 (installUI): Use new Timer constructor.
2815 * javax/swing/plaf/basic/BasicScrollBarUI.java
2816 (installUI): Likewise.
2817 * javax/swing/plaf/basic/BasicSliderUI.java
2818 (installUI): Likewise.
2820 2004-06-10 Michael Koch <konqueror@gmx.de>
2822 * javax/swing/ButtonGroup.java
2823 (serialVersionUID): Made private.
2824 (buttons): Renamed from v, added javadoc.
2825 (sel): Added javadoc.
2826 (ButtonGroup): Likewise.
2829 (getElements): Likewise.
2830 (getSelection): Likewise.
2831 (setSelected): Likewise.
2832 (isSelected): Likewise.
2833 (getButtonCount): Likewise.
2835 2004-06-10 Michael Koch <konqueror@gmx.de>
2837 * javax/swing/ButtonGroup.java,
2838 javax/swing/ImageIcon.java,
2839 javax/swing/JEditorPane.java,
2840 javax/swing/JRootPane.java,
2841 javax/swing/JTextField.java,
2842 javax/swing/LookAndFeel.java,
2843 javax/swing/plaf/basic/BasicTextUI.java:
2846 2004-06-10 Michael Koch <konqueror@gmx.de>
2848 * javax/swing/text/Style.java: Added javadocs.
2850 2004-06-10 Michael Koch <konqueror@gmx.de>
2852 * javax/swing/JComponent.java
2853 (fireVetoableChange): Removed redundant cast.
2854 * javax/swing/JLabel.java
2855 (getDisabledIcon): Save icon for next call.
2857 2004-06-10 Michael Koch <konqueror@gmx.de>
2859 * javax/swing/KeyStroke.java
2860 (getKeyStroke(char,boolean)): Marked deprecated.
2862 2004-06-10 Michael Koch <konqueror@gmx.de>
2864 * javax/swing/DefaultCellEditor.java,
2865 javax/swing/GrayFilter.java,
2866 javax/swing/event/DocumentEvent.java,
2867 javax/swing/text/JTextComponent.java,
2868 javax/swing/text/MutableAttributeSet.java:
2871 2004-06-10 Michael Koch <konqueror@gmx.de>
2873 * javax/swing/plaf/BorderUIResource.java:
2874 Added serialVersionUID all over.
2876 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2878 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2880 2004-06-10 Michael Koch <konqueror@gmx.de>
2882 * javax/swing/table/DefaultTableCellRenderer.java
2883 (noFocusBorder): Initialize directly.
2885 2004-06-10 Michael Koch <konqueror@gmx.de>
2887 * javax/swing/plaf/basic/BasicArrowButton.java
2888 (setDirection): Use method argument.
2890 2004-06-10 Michael Koch <konqueror@gmx.de>
2892 * javax/swing/plaf/BorderUIResource.java,
2893 javax/swing/plaf/ComponentUI.java,
2894 javax/swing/undo/CompoundEdit.java,
2895 javax/swing/undo/StateEdit.java:
2896 Fixed javadocs all over.
2898 2004-06-10 Michael Koch <konqueror@gmx.de>
2900 * javax/swing/DefaultButtonModel.java
2901 (ARMED): Made public final, fixed value.
2902 (ENABLED): Likewise.
2903 (PRESSED): Likewise.
2904 (ROLLOVER): Likewise.
2905 (SELECTED): Likewise.
2906 (stateMask): Initialize directly.
2907 (listenerList): Likewise.
2908 (mnemonic): Likewise.
2909 (fireStateChanged): Removed argument, use changeEvent as event.
2910 All places where this method is called are fixed too.
2911 (getActionCommant): Fixed javadoc.
2912 (setGroup): Fixed javadoc.
2913 (getGroup): New method.
2915 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2917 * javax/swing/AbstractButton.java
2918 (AbstractButton): Use init() to initialize the button.
2919 (init): New Method. Initializes AbstractButton.
2920 * javax/swing/JMenuItem.java: Documented.
2921 (JMenuItem): Reimplemented.
2922 (init): Implemented.
2923 (setEnabled): Changed to call super.setEnabled()
2924 (processMouseEvent): Reimplemented.
2925 (fireMenuKeyPressed): Implemented.
2926 (fireMenuKeyReleased): Implemented.
2927 (fireMenuKeyTyped): Implemented.
2928 (menuSelectionChanged): disarm the model if the menu item was
2930 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2931 (getPath): Change to use ArrayList instead of Vector.
2932 (getPreferredSize): Renamed variable.
2933 (paintMenuItem): Paint margin area of menu item.
2934 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2935 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2936 menu item's bounds before clearing the selection.
2938 2004-06-09 David Jee <djee@redhat.com>
2940 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2941 (GtkTextComponentPeer): Set caret position to 0.
2942 * java/awt/TextComponent.java
2943 (setText): Set caret position to 0.
2944 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2945 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2946 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2947 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2949 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2950 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2953 2004-06-09 Kim Ho <kho@redhat.com>
2955 * Makefile.am: New files
2956 * Makefile.in: Regenerated
2957 * java/awt/Container.java
2958 (getComponentAt): Removed.
2959 * javax/swing/AbstractAction.java
2960 (ENABLED_PROPERTY): New property.
2961 (putValue): Fire PropertyChangeEvents.
2962 (setEnabled): ditto.
2963 (firePropertyChange): Javadoc and implement
2965 * javax/swing/AbstractButton.java
2966 (setAction): Don't create PropertyChangeListener
2967 if new Action is null.
2968 (setIcon): Don't set icon till after comparing
2970 (configurePropertiesFromAction): Check mnemonic
2971 key before calling intValue().
2972 (createActionPropertyChangeListener): Check
2973 properties rather than bulk change.
2974 * javax/swing/DefaultDesktopManager.java:
2976 * javax/swing/DesktopManager.java:
2978 * javax/swing/JComponent.java
2979 (fireVetoableChange): Implement.
2980 (paintImmediately): Use root component.
2981 * javax/swing/JDesktopPane.java: Implement
2982 * javax/swing/JInternalFrame.java: Implement
2983 * javax/swing/JLabel.java
2984 (getDisabledIcon): Return grayscaled icon if
2985 no disabled icon specified.
2986 * javax/swing/JMenuBar.java
2987 (getComponentAtIndex): Use getComponent
2988 * javax/swing/JOptionPane.java
2989 (getDesktopPaneForComponent): Use SwingUtilities'
2991 (getFrameForComponent): ditto.
2992 * javax/swing/JSplitPane.java
2993 (remove): Use getComponent.
2994 * javax/swing/SwingUtilities.java
2995 (convertPoint): Implement.
2996 * javax/swing/plaf/basic/BasicButtonUI.java
2997 (paintButtonNormal): Check opaqueness before
2999 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
3001 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
3003 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
3005 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
3007 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3008 Change InternalFrame and Desktop colors.
3010 2004-06-09 David Jee <djee@redhat.com>
3012 * java/awt/Container.java
3013 (remove): Do not set component to invisible.
3015 2004-06-09 Michael Koch <konqueror@gmx.de>
3017 * javax/swing/tree/DefaultMutableTreeNode.java
3018 (getLeafCount): Renamed enum to e.
3020 2004-06-09 Michael Koch <konqueror@gmx.de>
3022 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3023 (positionForMouseEvent): Removed redundant semicolon.
3024 (continueDrag): Use method arguments.
3026 2004-06-09 Michael Koch <konqueror@gmx.de>
3028 * javax/swing/border/TitledBorder.java,
3029 javax/swing/filechooser/FileSystemView.java,
3030 javax/swing/plaf/basic/BasicButtonListener.java,
3031 javax/swing/plaf/basic/BasicGraphicsUtils.java,
3032 javax/swing/plaf/basic/BasicLabelUI.java,
3033 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
3034 javax/swing/plaf/basic/BasicScrollBarUI.java,
3035 javax/swing/plaf/basic/BasicScrollPaneUI.java,
3036 javax/swing/plaf/basic/BasicSliderUI.java,
3037 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
3038 javax/swing/plaf/basic/BasicToggleButtonUI.java,
3039 javax/swing/table/JTableHeader.java,
3040 javax/swing/text/AbstractDocument.java,
3041 javax/swing/text/DefaultCaret.java,
3042 javax/swing/text/StyledEditorKit.java,
3043 javax/swing/tree/DefaultTreeCellEditor.java:
3044 Reworked import statements.
3046 2004-06-08 Graydon Hoare <graydon@redhat.com>
3048 * javax/swing/Box.java: Temporarily comment out code
3049 broken due to visibility bug.
3051 2004-06-09 Michael Koch <konqueror@gmx.de>
3053 * javax/swing/ImageIcon.java
3054 (ImageIcon): Added missing constructor.
3056 2004-06-08 Michael Koch <konqueror@gmx.de>
3058 * javax/swing/JToggleButton.java
3059 (JToggleButton): New constructor.
3060 (getAccessibleContext): Moved documentation into javadoc.
3061 (getUIClassID): Likewise.
3063 2004-06-08 Michael Koch <konqueror@gmx.de>
3065 * javax/swing/AbstractButton.java
3066 (getDisabledIcon): Create disabled icon if none exists yet.
3068 2004-06-08 Michael Koch <konqueror@gmx.de>
3070 * javax/swing/plaf/basic/BasicLookAndFeel.java
3071 (initClassDefaults): Added FormattedTextFieldUI.
3072 (loadResourceBundle): Renamed enum to e.
3074 2004-06-08 Michael Koch <konqueror@gmx.de>
3076 * javax/swing/plaf/basic/BasicButtonUI.java
3077 (paintIcon): Simplified.
3078 (paintText): Paint disabled button correctly.
3080 2004-06-08 Michael Koch <konqueror@gmx.de>
3082 * javax/swing/JComponent.java
3083 (createToolTip): Use official JToolTip API.
3085 2004-06-08 Michael Koch <konqueror@gmx.de>
3087 * javax/swing/JToolTip.java
3088 (JToolTip): No arguments in API.
3089 (setTipText): New method.
3091 2004-06-08 Michael Koch <konqueror@gmx.de>
3093 * javax/swing/SwingUtilities.java
3094 (isLeftMouseButton): New method.
3095 (isMiddleMouseButton): New method.
3096 (isRightMouseButton): New method.
3098 2004-06-08 Michael Koch <konqueror@gmx.de>
3100 * javax/swing/AbstractButton.java,
3101 javax/swing/CellRendererPane.java,
3102 javax/swing/JCheckBoxMenuItem.java,
3103 javax/swing/JColorChooser.java,
3104 javax/swing/JComboBox.java,
3105 javax/swing/JComponent.java,
3106 javax/swing/JDesktopPane.java,
3107 javax/swing/JFileChooser.java,
3108 javax/swing/JMenu.java,
3109 javax/swing/JMenuItem.java,
3110 javax/swing/JOptionPane.java,
3111 javax/swing/JPasswordField.java,
3112 javax/swing/JPopupMenu.java,
3113 javax/swing/JProgressBar.java,
3114 javax/swing/JRadioButtonMenuItem.java,
3115 javax/swing/JScrollBar.java,
3116 javax/swing/JSeparator.java,
3117 javax/swing/JSlider.java,
3118 javax/swing/JSplitPane.java,
3119 javax/swing/JTabbedPane.java,
3120 javax/swing/JTextField.java,
3121 javax/swing/JToolBar.java,
3122 javax/swing/text/JTextComponent.java:
3123 Fixed all constructors of accessibility classes.
3125 2004-06-08 Michael Koch <konqueror@gmx.de>
3127 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
3130 2004-06-08 Michael Koch <konqueror@gmx.de>
3132 * javax/swing/Box.java
3133 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
3134 (AccessibleBoxFiller.serialVersionUID): New member variable.
3135 * javax/swing/DefaultButtonModel.java
3136 (stateMask): Made protected.
3137 (listenerList): Likewise.
3138 (changeEvent): Likewise.
3140 (mnemonic): Likewise.
3141 (actionCommand): Likewise.
3142 (getListeners): New method.
3143 (getActionListeners): New method.
3144 (getItemListeners): New method.
3145 (getChangeListeners): New method.
3146 (fireItemStateChanged): Simplified.
3147 (fireActionPerformed): Simplified.
3148 (fireStateChanged): Simplified.
3149 * javax/swing/JFrame.java
3150 (JFrame): Implements WindowContants.
3151 (HIDE_ON_CLOSE): Removed.
3152 (EXIT_ON_CLOSE): Removed.
3153 (DISPOSE_ON_CLOSE): Removed.
3154 (DO_NOTHING_ON_CLOSE): Removed.
3155 (processWindowEvent): Exit with code 0.
3156 (setDefaultCloseOperation): Do security check before setting value.
3157 * javax/swing/JOptionPane.java
3158 (message): Initialize only in constructor.
3159 * javax/swing/JToolTip.java: Removed unused imports.
3160 * javax/swing/JViewport.java
3161 (serialVersionUID): New member variable.
3162 (SIMPLE_SCROLL_MODE): Made final, fixed value.
3163 (BLIT_SCROLL_MODE): Likewise.
3164 (BACKINGSTORE_SCROLL_MODE): Likewise.
3165 (scrollUnderway): Made protected.
3166 (isViewSizeSet): Likewise.
3167 * javax/swing/ListModel.java: Fixed javadoc.
3168 * javax/swing/Popup.java: Likewise.
3169 * javax/swing/RepaintManager.java
3170 (paintDirtyRegions): Don't use internal classes of
3171 java.util.AbstractMap.
3172 * javax/swing/ScrollPaneConstants.java: Reindented.
3173 * javax/swing/ScrollPaneLayout.java
3174 (viewport): Made protected.
3175 (verticalScrollBar): Made protected, renamed to vsb.
3176 (horizontalScrollBar): Made protected, renamed to hsb.
3177 (rowHeader): Made protected, renamed to rowHead.
3178 (columnHeader): Made protected, renamed to colHead.
3179 (lowerLeft): Made protected.
3180 (lowerRight): Made protected.
3181 (upperLeft): Made protected.
3182 (upperRight): Made protected.
3183 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3184 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3186 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
3188 * java/awt/MediaTracker.java (imageUpdate): Only set status to
3189 LOADING if flags has SOMEBITS set.
3191 2004-06-07 Michael Koch <konqueror@gmx.de>
3193 * javax/swing/AbstractButton.java: Reorganized imports.
3194 * javax/swing/ActionMap.java: Likewise.
3195 * javax/swing/DefaultButtonModel.java: Likewise.
3196 * javax/swing/DefaultListModel.java: Likewise.
3197 * javax/swing/ImageIcon.java: Likewise.
3198 (serialVersionUID): New member variable.
3199 * javax/swing/JComboBox.java: Reorganized imports.
3200 * javax/swing/JComponent.java: Likewise.
3201 (ui): Made protected.
3202 (listenerList): Made protected.
3203 (TOOL_TIP_TEXT_KEY): New constant.
3204 (scrollRectToVisible): Removed redundant null check.
3205 * javax/swing/JFrame.java: Reorganized imports.
3206 * javax/swing/JInternalFrame.java: Reorganized imports.
3207 * javax/swing/JProgressBar.java: Likewise.
3208 * javax/swing/JRootPane.java: Likewise.
3209 * javax/swing/JScrollBar.java: Likewise.
3210 * javax/swing/JSeparator.java: Likewise.
3211 * javax/swing/JSlider.java: Likewise.
3212 * javax/swing/JTabbedPane.java: Likewise.
3213 * javax/swing/JTextField.java: Likewise.
3214 * javax/swing/JToolBar.java: Likewise.
3215 * javax/swing/JTree.java: Likewise.
3216 * javax/swing/JViewport.java: Likewise.
3217 * javax/swing/JWindow.java: Likewise.
3218 * javax/swing/KeyStroke.java: Likewise.
3219 * javax/swing/LookAndFeel.java: Likewise.
3220 * javax/swing/MenuSelectionManager.java: Likewise.
3221 * javax/swing/SwingUtilities.java: Likewise.
3222 * javax/swing/Timer.java: Likewise.
3223 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3224 * javax/swing/JList.java
3225 (HORIZONTAL_WRAP): Made final, fixed value.
3226 (VERTICAL): Likewise.
3227 (VERTICAL_WRAP): Likewise.
3229 2004-06-07 Michael Koch <konqueror@gmx.de>
3231 * javax/swing/AbstractButton.java
3232 (serialVersionUID): New member variable.
3233 (AccessibleAbstractButton.serialVersionUID): Likewise.
3234 (AbstractButton): Made public.
3235 * javax/swing/Box.java
3236 (AccessibleBox.serialVersionUID): New member variable.
3237 (Filler.serialVersionUID): Likewise.
3238 * javax/swing/DefaultListSelectionModel.java
3239 (serialVersionUID): Likewise.
3240 * javax/swing/JApplet.java
3241 (serialVersionUID): Likewise.
3242 * javax/swing/JCheckBox.java
3243 (serialVersionUID): Likewise.
3244 * javax/swing/JCheckBoxMenuItem.java
3245 (serialVersionUID): Likewise.
3246 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3247 * javax/swing/JColorChooser.java
3248 (serialVersionUID): Likewise.
3249 (AccessibleJColorChooser.serialVersionUID): Likewise.
3250 * javax/swing/JComponent.java
3251 (serialVersionUID): Made private.
3252 (AccessibleJComponent.serialVersionUID): New member variable.
3253 * javax/swing/JDesktopPane.java
3254 (serialVersionUID): Likewise.
3255 * javax/swing/JDialog.java
3256 (serialVersionUID): Likewise.
3257 * javax/swing/JFormattedTextField.java
3258 (serialVersionUID): Fixed value.
3259 * javax/swing/JFrame.java
3260 (serialVersionUID): New member variable.
3261 (getDefaultCloseOpertation): Made public.
3262 * javax/swing/JLayeredPane.java
3263 (serialVersionUID): Likewise.
3264 (LAYER_PROPERTY): Made final, fixed value.
3265 (JLayeredPane): Made public.
3266 * javax/swing/JMenu.java
3267 (AccessibleJMenu.serialVersionUID): New member variable.
3268 (WinListener.serialVersionUID): Likewise.
3269 * javax/swing/JMenuBar.java
3270 (serialVersionUID): Likewise.
3271 (getComponentAtIndex): Added @deprecated tag.
3272 * javax/swing/JMenuItem.java
3273 (serialVersionUID): New member variable.
3274 (AccessibleJMenuItem.serialVersionUID): Likewise.
3275 * javax/swing/JOptionPane.java
3276 (serialVersionUID): Likewise.
3277 (AccessibleJOptionPane.serialVersionUID): Likewise.
3278 * javax/swing/JPopupMenu.java
3279 (serialVersionUID): Likewise.
3280 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3281 (getPopupMenuListeners): New method.
3282 (getComponentAtIndex): Added @deprecated tag.
3283 * javax/swing/JProgressBar.java
3284 (serialVersionUID): New member variable.
3285 (AccessibleJProgressBar.serialVersionUID): Likewise.
3286 * javax/swing/JRadioButton.java
3287 (serialVersionUID): Likewise.
3288 * javax/swing/JRadioButtonMenuItem.java
3289 (serialVersionUID): Likewise.
3290 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3291 * javax/swing/JScrollBar.java
3292 (serialVersionUID): Likewise.
3293 (AccessibleJScrollBar.serialVersionUID): Likewise.
3294 * javax/swing/JSeparator.java
3295 (serialVersionUID): Likewise.
3296 (AccessibleJSeparator.serialVersionUID): Likewise.
3297 * javax/swing/JSlider.java: Fixed javadocs.
3298 (AccessibleJSlider.serialVersionUID): New member variable.
3299 * javax/swing/JSplitPane.java: Added copyright statement.
3300 (serialVersionUID): New member variable.
3301 (AccessibleJSplitPane.serialVersionUID): Likewise.
3302 * javax/swing/JTabbedPane.java
3303 (serialVersionUID): Likewise.
3304 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3305 (ModelListener.serialVersionUID): Likewise.
3306 (ModelListener.ModelListener): New constructor.
3307 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3308 (WRAP_TAB_LAYOUT): Likewise.
3309 * javax/swing/JTable.java
3310 (serialVersionUID): New member variable.
3311 * javax/swing/JToggleButton.java
3312 (serialVersionUID): Likewise.
3313 (ToggleButtonModel): Made static.
3314 (ToggleButtonModel.serialVersionUID): New member variable.
3315 * javax/swing/JToolTip.java
3316 (serialVersionUID): Likewise.
3317 * javax/swing/JTree.java
3318 (serialVersionUID): Likewise.
3319 * javax/swing/JWindow.java
3320 (serialVersionUID): Likewise.
3321 * javax/swing/Timer.java
3322 (serialVersionUID): Likewise.
3324 2004-06-06 Michael Koch <konqueror@gmx.de>
3326 * javax/swing/SwingConstants.java
3327 (NEXT): New constant.
3328 (PREVIOUS): Likewise.
3329 * javax/swing/UIManager.java
3330 (LookAndFeel): Made public.
3331 (LookAndFeel.getClassName): Likewise.
3332 (LookAndFeel.getName): Likewise.
3334 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3336 * javax/swing/JCheckBoxMenuItem.java:
3338 * javax/swing/JMenu.java: Likewise.
3339 * javax/swing/JMenuBar.java: Likewise.
3340 * javax/swing/JMenuItem.java: Likewise.
3341 * javax/swing/JPopupMenu.java: Likewise.
3342 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3343 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3344 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3345 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3346 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3347 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3348 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3350 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3352 * javax/swing/plaf/basic/BasicMenuUI.java:
3353 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3354 Call getPath() from super class instead.
3356 2004-05-31 David Jee <djee@redhat.com>
3358 * java/awt/Container.java
3359 (remove): Set component visibility to false after removing it.
3361 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3363 * java/awt/Component.java (getForeground): Return SystemColor if
3365 (getBackground): Likewise.
3367 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3368 (item_highlighted): New function.
3369 (connectSignals): Set item_highlighted as list's select
3372 * java/applet/Applet.java: Revert changes from 2004-04-29,
3373 2004-03-15 and 2004-03-14.
3375 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3376 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3379 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3380 "Dialog" as the default font.
3381 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3383 * java/awt/Component.java (getFont): Return "Dialog" font by
3385 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3386 Multiply size argument to pango_font_description_set_size by the
3387 DPI conversion factor rather than by PANGO_SCALE.
3388 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3389 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3390 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3391 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3392 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3393 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3394 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3395 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3396 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3397 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3398 Divide baseline y coordinate by DPI conversion factor rather
3399 than by PANGO_SCALE.
3400 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3401 (area_prepared): Fix typo.
3402 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3403 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3404 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3405 (dpi_conversion_factor): New global variable.
3406 (init_dpi_conversion_factor): New function to calculate and
3407 track DPI conversion factor.
3408 (dpi_changed_cb): New callback.
3409 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3411 2004-05-27 David Jee <djee@redhat.com>
3413 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3414 (getGraphics): Return a new GdkGraphics instance.
3415 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3416 (getGraphics): Call super.getGraphics().
3418 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3420 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3421 (setNativeBounds): Clamp width and height values to >= 0.
3423 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3424 (find_fg_color_widget): Handle GtkOptionMenu specially.
3426 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3427 (pre_event_handler): Only post configure events to visible
3430 2004-05-26 David Jee <djee@redhat.com>
3432 * java/awt/BorderLayout.java
3433 (layoutContainer): Fix size calculations.
3435 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3437 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3438 (window_wm_protocols_filter): Remove function.
3439 (create): Remove filter that removes WM_TAKE_FOCUS client
3442 2004-06-17 Anthony Green <green@redhat.com>
3444 * java/util/zip/ZipFile.java (getInputStream): Return null if
3447 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3448 directory contents to the class path.
3450 2004-06-15 Andrew Haley <aph@redhat.com>
3452 * java/lang/natSystem.cc (getenv0): Don't assume environment
3453 variable is Latin 1 coded.
3455 2004-06-14 Andreas Jaeger <aj@suse.de>
3457 * configure.in: Support --enable-version-specific-runtime-libs.
3458 * configure: Regenerated.
3460 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3462 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3463 to pass ClassLoader argument.
3464 * java/util/GregorianCalendar.java: Likewise.
3465 * java/util/Currency.java: Likewise.
3466 * java/text/BreakIterator.java: Likewise.
3467 * java/text/Collator.java: Likewise.
3468 * java/text/DateFormat.java: Likewise.
3469 * java/text/DateFormatSymbols.java: Likewise.
3470 * java/text/DecimalFormatSymbols.java: Likewise.
3471 * java/text/NumberFormat.java: Likewise.
3472 * java/awt/Window.java: Likewise.
3474 2004-06-14 Andrew Haley <aph@redhat.com>
3476 * java/lang/System.java: (getenv0): New method.
3477 (getenv): Add security check. Do the right thing.
3478 * java/lang/natSystem.cc (getenv0): New method.
3480 2004-06-12 Mark Wielaard <mark@klomp.org>
3482 * javax/swing/RepaintManager.java
3483 (paintDirtyRegions): Use entrySet(), not values().
3485 2004-06-10 Mark Wielaard <mark@klomp.org>
3487 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3490 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3492 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3493 when we already know the answer.
3494 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3495 (setStartRule,setEndRule): Don't take abs of day number.
3496 (getOffset): Clarify docs. Add argument checks.
3497 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3498 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3501 2004-06-10 Tom Tromey <tromey@redhat.com>
3503 * interpret.cc (run): Handle wide fload.
3505 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3507 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3509 2004-06-05 Michael Koch <konqueror@gmx.de>
3511 * javax/swing/SwingConstants.java
3512 (NEXT): New constant.
3513 (PREVIOUS): Likewise.
3515 2004-06-05 Michael Koch <konqueror@gmx.de>
3517 * javax/swing/UIManager.java
3518 (LookAndFeel): Made public.
3519 (LookAndFeel.getName): Likewise.
3520 (LookAndFeel.getClassName): Likewise.
3522 2004-06-03 Michael Koch <konqueror@gmx.de>
3524 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3525 (requestFocus): Revert last changes.
3526 (gtkRequestFocus): Removed.
3527 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3528 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3530 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3531 Reverted last patch.
3532 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3533 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3534 Reverted comment change.
3536 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3538 * javax/swing/JCheckBoxMenuItem.java:
3540 * javax/swing/JMenu.java: Likewise.
3541 * javax/swing/JMenuBar.java: Likewise.
3542 * javax/swing/JMenuItem.java: Likewise.
3543 * javax/swing/JPopupMenu.java: Likewise.
3544 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3545 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3546 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3547 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3548 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3549 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3550 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3552 2004-06-01 Tom Tromey <tromey@redhat.com>
3554 * java/io/ObjectStreamField.java: Cleaned up imports.
3556 2004-06-01 Michael Koch <konqueror@gmx.de>
3558 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3560 2004-06-01 Mark Wielaard <mark@klomp.org>
3562 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3564 2004-06-01 Michael Koch <konqueror@gmx.de>
3566 * java/security/Security.java
3567 (insertProviderAt): Use equals() instead of ==.
3568 (removeProvicer): Likewise.
3569 (getProvider): Likewise.
3570 * java/security/Signature.java
3571 (sign): Don't set state to UNINITIALIZED.
3574 2004-06-01 Mark Wielaard <mark@klomp.org>
3576 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3577 Implement by calling gtkRequestFocus.
3578 (gtkRequestFocus): New native method.
3579 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3580 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3582 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3584 (filter_expose_event_handler):
3586 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3587 (menu_pos): Mark static.
3589 2004-06-01 Michael Koch <konqueror@gmx.de>
3591 * java/text/CollationElementIterator.java,
3592 java/text/CollationKey.java,
3593 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3594 * testsuite/libjava.mauve/xfails: Removed all
3595 java.text.CollationElementIterator tests.
3597 2004-06-01 Michael Koch <konqueror@gmx.de>
3599 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3601 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3602 Java 1.5 keyword usage.
3604 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3606 * javax/swing/plaf/basic/BasicMenuUI.java:
3607 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3608 Call getPath() from super class instead.
3610 2004-05-31 Michael Koch <konqueror@gmx.de>
3612 * java/io/SequenceInputStream.java:
3613 Rename enum to e because enum is a keyword in Java 1.5.
3615 2004-05-31 Michael Koch <konqueror@gmx.de>
3617 * gnu/java/rmi/rmic/CompilerProcess.java:
3618 Fixed javadoc to by XHTML compliant.
3620 2004-05-30 Mark Wielaard <mark@klomp.org>
3622 * java/awt/Toolkit.java (loadSystemColors): Implement.
3624 2004-05-30 Michael Koch <konqueror@gmx.de>
3626 * java/lang/System.java: Reordered imports.
3628 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3630 * java/text/DecimalFormat.java
3631 (parse): Fixed parsing of decimal strings. Number of maximum
3632 digits to be read should now work.
3633 * java/text/SimpleDateFormat.java
3634 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3635 formatter. This fixes DateFormatTest.
3637 2004-05-30 Michael Koch <konqueror@gmx.de>
3639 * java/nio/Buffer.java
3640 (limit): Fixed off by one error.
3641 * java/nio/CharBuffer.java
3642 (wrap): Fixed arguments, added javadocs.
3644 2004-05-30 Michael Koch <konqueror@gmx.de>
3646 * gnu/java/beans/BeanInfoEmbryo.java,
3647 java/awt/im/InputContext.java,
3648 javax/swing/tree/DefaultMutableTreeNode.java:
3649 Rename enum to e because enum is a keyword in Java 1.5.
3651 2004-05-30 Michael Koch <konqueror@gmx.de>
3653 * gnu/java/math/MPN.java,
3654 java/awt/geom/Arc2D.java:
3655 Fixed javadocs all over.
3657 2004-05-30 Michael Koch <konqueror@gmx.de>
3659 * java/awt/DefaultKeyboardFocusManager.java
3660 (dispatchEvent): Call method to get key event dispatchers.
3661 (dispatchKeyEvent): Call method to get key event post processors.
3662 * javax/swing/JComponent.java
3663 (listenerList): Made protected.
3664 * javax/swing/JOptionPane.java
3665 (message): Don't initialize.
3666 (JOptionPane): Set message text.
3667 * javax/swing/JPopupMenu.java
3668 (show): Fixed typo in argument name.
3669 * javax/swing/RepaintManager.java
3670 (paintDirtyRegions): Use public API of java.util.Map.
3671 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3672 (positionForMouseEvent): Removed redundant ';'.
3673 (continueDrag): Use method arguments.
3675 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3677 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3680 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3682 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3684 * gnu/gcj/RawDataManaged.java: New file.
3685 * java/lang/Thread.java (data): Declare as RawDataManaged.
3686 * java/lang/natThread.cc (init_native): Cast natThread data to
3687 RawDataManaged, not jobject.
3688 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3689 * Makefile.in: Rebuilt.
3691 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3693 * java/util/SimpleTimeZone.java: Reverting my last change until I
3694 can fix it properly.
3696 2004-05-27 Michael Koch <konqueror@gmx.de>
3698 * javax/swing/JPopupMenu.java
3699 (isVisible): Do not use visible directly.
3700 (setVisible): Likewise.
3701 * javax/swing/JWindow.java
3702 (JWindow): call accessible constructor.
3703 * javax/swing/RepaintManager.java
3704 (paintDirtyRegions): Use public methods to obtain iterator.
3706 2004-05-25 David Jee <djee@redhat.com>
3708 * java/awt/Container.java
3709 (remove): Set component's parent to null only after we removed the
3710 component from its parent's layout manager.
3712 2004-05-25 David Jee <djee@redhat.com>
3714 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3715 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3717 * gnu/java/awt/peer/gtk/GtkListPeer.java
3718 (getSize): Change native method declaration.
3719 (minimumSize): Pass visible row count into getSize().
3720 (preferredSize): Likewise.
3721 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3722 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3723 natural size. Use visible row count to determine the final height
3726 2004-05-21 Graydon Hoare <graydon@redhat.com>
3728 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3729 (setClip): Minor correction to order of operations.
3731 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3732 * javax/swing/ScrollPaneLayout.java: Likewise.
3733 * javax/swing/JViewPort.java: Likewise.
3734 * javax/swing/ViewportLayout.java: Likewise.
3736 * javax/swing/JComponent.java: Rewrite.
3737 * javax/swing/RepaintManager.java: Likewise.
3739 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3740 * javax/swing/JList.java
3741 (setSelectedIndices):
3742 (getSelectedIndices):
3743 (getSelectedValues): New functions.
3744 (getPreferredScrollableViewportSize): Return preferred size.
3745 (getScrollableUnitIncrement):
3746 (getScrollableBlockIncrement): Initial implementations.
3747 * javax/swing/JRootPane.java: Clean up slightly.
3752 (isValidateRoot): Add overrides from JComponent.
3753 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3754 * javax/swing/UIManager.java (getDimension): Return the dimension.
3756 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3757 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3758 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3759 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3760 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3761 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3762 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3763 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3764 Likewise, and set background.
3765 * javax/swing/plaf/basic/BasicListUI.java:
3766 Likewise, and improve a bit.
3767 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3768 Likewise, and adjust calculations.
3769 * javax/swing/plaf/basic/BasicViewportUI.java:
3770 Likewise, and improve a bit.
3771 * javax/swing/plaf/basic/BasicLookAndFeel.java
3772 (Button.margin): Shrink.
3774 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3775 Hack to set horizontal always, workaround pango.
3777 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3778 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3779 Synchronize more often, check cairo status after ops,
3780 handle changes to cairo pattern API, check for disposal.
3782 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3784 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3785 (BasicMenuItemUI): Create propertyChangeListener.
3786 (getPath):Implemented.
3787 (installListeners): Add propertyChangeListener to menuItem.
3788 (uninstallListeners): Remove propertyChangeListener from menuItem.
3789 (update): Implemented.
3790 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3791 (mouseEntered): Take insets of popup menu into account when
3792 calculating position of popup menu.
3794 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3796 * Makefile.am: Added new file.
3797 * Makefile.in: Regenerate.
3798 * javax/swing/JMenuBar.java:
3799 Started implementation.
3800 * javax/swing/JPopupMenu.java:
3801 (setVisible): Fixed location of lightweight/mediumweight
3803 (show): Fixed location of PopupMenu.
3804 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3805 New file. UI Delegate for JMenuBar.
3806 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3807 (mouseEntered): Corrected position of the submenu.
3809 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3811 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3812 to _gtk_accel_group_attach.
3813 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3816 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3817 package access. Don't override setFont.
3818 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3819 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3820 gtkWidgetRequestFocus package access.
3821 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3823 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3824 Give gtkWidgetRequestFocus package access.
3825 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3826 gtkWidgetRequestFocus package access. Don't override setFont.
3827 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3829 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3830 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3832 (gtkSetFont): Likewise.
3833 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3835 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3836 (gtkSetFont): Whitespace fix.
3838 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3839 (gtkWidgetSetUsize): Remove method.
3841 2004-05-18 David Jee <djee@redhat.com>
3843 * java/awt/image/MemoryImageSource.java
3844 (newPixels(int,int,int,int,boolean)): Set only the specified
3845 rectangle of pixels.
3846 (newPixels(byte[],ColorModel,int,int)): Implement.
3847 (newPixels(int[],ColorModel,int,int)): Implement.
3849 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3851 * Makefile.am: Added new file.
3852 * Makefile.in: Regenerate.
3853 * javax/swing/JMenu.java: Started
3855 * javax/swing/JPopupMenu.java:
3856 (insert): If specified index is -1, then
3857 add component at the end.
3858 (isPopupTrigger): Reimplemented.
3859 (JPopupMenu.LightWeightPopup): setBounds
3860 of the lightWeightPopup before adding it
3862 (javax/swing/plaf/basic/BasicIconFactory.java):
3863 (getMenuArrowIcon): Implemented.
3864 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3865 (getPreferredSize): Add size of the arrow icon
3866 if this menu item is instance of JMenu.
3867 (paintMenuItem): Paint arrow icon if this
3868 menu item is a submenu.
3869 * javax/swing/plaf/basic/BasicMenuUI.java:
3870 New File. UI Delegate for JMenu.
3872 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3874 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3875 Post KEY_TYPED events.
3876 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3877 (generates_key_typed_event): Remove function.
3879 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3881 * javax/swing/JRootPane.java
3882 (JRootPane.RootLayout): Reimplemented to
3883 set bounds of contentPane and menuBar.
3884 (setJMenuBar): Add menu bar to the layered pane.
3885 (createLayeredPane): Set layout of layeredPane
3887 * javax/swing/JLayeredPane.java:
3888 (addImpl): Calculate index of the component in the
3889 layeredPane according to the specified position within
3892 2004-05-17 David Jee <djee@redhat.com>
3894 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3895 (setPixels): Change color model to the default model after
3897 * java/awt/image/MemoryImageSource.java
3898 (newPixels): Set only the specified rectangle of pixels.
3900 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3902 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3903 -l-java-beans -l-javax-accessibility -l-javax-swing.
3905 * java/awt/AWTEvent.java (toString): Print source's name rather
3906 than the source itself.
3908 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3910 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3912 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3913 (gdk_color_to_java_color): New function.
3914 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3916 2004-05-12 David Jee <djee@redhat.com>
3918 * java/awt/image/RGBImageFilter.java:
3919 Initialize origmodel as null.
3920 (makeColor): Fix pixel component order.
3921 (filterRGBPixels): Fix pixel iteration.
3922 (setPixels): Add extra checks for index color model. Convert pixels
3923 to default color model if necessary.
3924 (convertColorModelToDefault): New override method for byte pixels.
3925 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3926 (makeColorbyDefaultCM): New override method for byte pixels.
3927 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3928 (makeColor): Fix pixel component order.
3930 2004-05-11 Kim Ho <kho@redhat.com>
3932 * javax/swing/Box.java:
3933 Comment out more parts of Box.Filler.
3935 2004-05-11 Kim Ho <kho@redhat.com>
3937 * javax/swing/Box.java:
3938 Remove reference to AccessibleAWTComponent so
3941 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3943 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3944 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3945 implementation of list peer to use GtkTreeView instead of
3946 deprecated GtkCList.
3948 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3950 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3951 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3952 (handleEvent): Remove keyChar argument to
3953 gtkWidgetDispatchKeyEvent calls.
3954 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3956 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3957 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3958 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3961 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3963 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3964 (gtkWidgetRequestFocus): Mark protected.
3965 (GtkComponentPeer): Only set the peer's bounds if its component
3967 * java/awt/Component.java (static): Set the default keyboard
3969 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3970 requestFocusInWindow(temporary)): Don't request focus if the
3971 component is not showing. Get tree lock before traversing
3972 component hierarchy.
3973 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3974 Only set the global focus owner if it is not a Window.
3975 (processKeyEvent): Consume keystrokes associated with the focus
3976 traversal keystroke.
3977 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3978 downFocusCycle): Call requestFocusInWindow instead of
3980 * java/awt/EventDispatchThread.java (run): Move setting of
3981 default keyboard focus manager to Component.java.
3982 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3983 (awt_keycode_to_keysym): New function.
3984 (gtkWidgetDispatchKeyEvent): Finish implementation.
3985 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3986 (pre_event_handler): Add FIXME comment.
3988 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3989 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3990 (gtkWidgetRequestFocus): New method.
3991 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3992 disable Tab and Shift-Tab keystrokes.
3993 (addNotify, appendText, insertText, replaceText): Simplify peer
3995 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3996 (connectSignals): Remove connections to "commit" signals.
3997 Remove C++-style comments.
3999 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
4000 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
4001 (handleEvent): Activate GTK button when the space bar key is
4003 (gtkActivate): New method.
4005 2004-05-06 David Jee <djee@redhat.com>
4007 * java/awt/image/CropImageFilter.java
4008 (setPixels): Implement for byte array pixels.
4009 * java/awt/image/ReplicateScaleFilter.java
4010 (setPixels): Implement for byte array pixels.
4011 (replicatePixels): Overload for byte array pixels.
4013 2004-05-06 Kim Ho <kho@redhat.com>
4015 * javax/swing/Box.java:
4016 (getAccessibleContext): Return an instance of the
4019 2004-05-05 David Jee <djee@redhat.com>
4021 * gnu/java/awt/peer/gtk/GdkGraphics.java
4022 (drawImage): When component is null, use SystemColor.window as
4023 the default bgcolor.
4024 * gnu/java/awt/peer/gtk/GtkImage.java
4025 (setPixels): We can avoid iterating through the pixel rows only
4027 * java/awt/Image.java
4028 (getScaledInstance): Partially implement.
4029 * java/awt/image/CropImageFilter.java
4030 (setProperties): Fix "filter" property.
4031 (setPixels): Implement.
4032 * java/awt/image/ReplicateScaleFilter.java
4033 (setDimensions): Use scaled dimensions.
4034 (setPixels): Implement.
4035 (replicatePixels): New method.
4037 2004-05-05 David Jee <djee@redhat.com>
4039 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4040 (convertPixels): If either pixels or model is null, return null.
4041 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
4042 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
4043 is null, do nothing and return.
4045 2004-05-03 Kim Ho <kho@redhat.com>
4047 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
4048 (getGraphics): Like GtkFramePeer, the Graphics
4049 object needs to be translate to account for
4051 (postMouseEvent): New method. Account for
4053 (postExposeEvent): ditto.
4054 * javax/swing/Box.java: Stubbed.
4055 * javax/swing/JDialog.java: Ran through jalopy
4057 (JDialog): Call SwingUtilities' getOwnerFrame
4059 (setLayout): Check isRootPaneCheckingEnabled
4060 * javax/swing/JOptionPane.java: Re-implemented.
4061 * javax/swing/SwingUtilities.java:
4062 (getOwnerFrame): Static method to grab a default
4063 owner frame for Dialogs that don't specify owners.
4064 * javax/swing/event/SwingPropertyChangeSupport.java:
4065 (firePropertyChange): Fix early exit condition.
4066 * javax/swing/plaf/basic/BasicLabelUI.java:
4067 (paint): Avoid painting text if it is null
4069 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4072 2004-05-03 Olga Rodimina <rodimina@redhat.com>
4074 * Makefile.am: Added new file.
4075 * Makefile.in: Regenerate.
4076 * javax/swing/JPopupMenu.java:
4077 Started implementation.
4078 * javax/swing/JWindow.java
4079 (JWindow): call super() if parent for window
4081 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4082 New File. UI Delegate for JPopupMenu.
4084 2004-04-30 Olga Rodimina <rodimina@redhat.com>
4086 * javax/swing/JApplet.java: Indicated that JApplet
4087 implements RootPaneContainer and made method of this
4089 * javax/swing/JFrame.java: Ditto.
4090 * javax/swing/JWindow.java: Ditto.
4092 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
4094 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4095 (nativeSetBounds): Call gdk_window_move in addition to
4098 * java/applet/Applet.java (preferredSize): Call parent's
4099 preferredSize if the applet stub is null.
4100 (minimumSize): Likewise for parent's minimumSize.
4102 2004-04-27 Olga Rodimina <rodimina@redhat.com>
4104 * javax/swing/JMenuItem.java
4105 (createActionPropertyChangeListener): Implemented.
4106 (processMouseEvent): Ditto.
4107 (fireMenuDragMouseEntered): Ditto.
4108 (fireMenuDragMouseExited): Ditto.
4109 (fireMenuDragMouseDragged): Ditto.
4110 (fireMenuDragMouseReleased): Ditto.
4111 (menuSelectionChanged): Ditto.
4112 (getSubElements): Ditto.
4113 (getComponent): Ditto.
4114 (addMenuDragMouseListener): Ditto.
4115 (removeMenuDragMouseListener):Ditto.
4116 (addMenuKeyListener): Ditto.
4117 (removeMenuKeyListener): Ditto.
4118 * javax/swing/plaf/basic/BasicMenuItemUI.java
4119 (doClick): Imlemented.
4120 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
4121 Don't handle mouse events here. Pass them to
4122 MenuSelectionManager.
4124 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4125 Used correct version of jalopy configuration
4126 file to fix style in the files below.
4128 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4130 * javax/swing/JCheckBoxMenuItem.java:
4131 Fixed style and removed unnecessary comments.
4132 * javax/swing/JMenuItem.java: Ditto.
4133 * javax/swing/JRadioButtonMenuItem.java: Ditto.
4134 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
4135 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
4136 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
4138 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
4140 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
4143 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
4145 * java/awt/ContainerOrderFocusTraversalPolicy.java
4146 (getComponentAfter): Start from current component and work up
4147 the component hierarchy until an acceptable component is found.
4148 Synchronize on tree lock.
4149 (getComponentBefore): Likewise.
4151 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
4153 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
4154 focus-related debugging messages.
4155 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
4156 * java/awt/EventDispatchThread.java: Likewise.
4157 * java/awt/KeyboardFocusManager.java: Likewise.
4158 * java/awt/Window.java: Likewise.
4159 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
4160 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4162 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
4163 new C++-style comments to C-style comments.
4164 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4166 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4167 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4168 (handleEvent): Dispatch key press and key release events to
4170 (requestFocus): Post a FOCUS_GAINED event to the event queue.
4171 (gtkWidgetRequestFocus): New method.
4172 (gtkWidgetDispatchKeyEvent): Likewise.
4173 * java/awt/Component.java (requestFocus, requestFocus(boolean),
4174 requestFocusInWindow, requestFocusInWindow(boolean),
4175 getFocusCycleRootAncestor, nextFocus, transferFocus,
4176 transferFocusBackward, transferFocusUpCycle, hasFocus,
4177 isFocusOwner): Implement and document focus-handling methods.
4178 (setFocusTraversalKeys): Inherit focus traversal keys when
4179 keystrokes argument is null. Fix focus-handling documentation
4181 * java/awt/Container.java (setFocusTraversalKeys,
4182 getFocusTraversalKeys, areFocusTraversalKeysSet,
4183 isFocusCycleRoot, setFocusTraversalPolicy,
4184 getFocusTraversalPolicy, isFocusTraversalPolicySet,
4185 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4186 Implement and document focus-handling methods.
4187 (transferFocusBackward): Remove method.
4188 (readObject, writeObject): Implement and document serialization
4190 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4192 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4194 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4196 * java/awt/EventDispatchThread.java (run): Set default keyboard
4197 focus manager. Attempt to dispatch each event to the keyboard
4198 focus manager before normal dispatch.
4199 * java/awt/KeyboardFocusManager.java: Implement and partially
4201 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4202 (show): Focus initial component when window is shown for the
4204 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4205 (pre_event_handler): Replace complex key press and key release
4206 logic with simple callbacks into GtkComponentPeer.
4207 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4209 2004-04-21 Olga Rodimina <rodimina@redhat.com>
4211 * javax/swing/MenuSelectionManager.java
4212 (componentForPoint): Added new method.
4213 (defaultManager): New Method. Implemented.
4214 (getSelectedPath): Ditto.
4215 (isComponentPartOfCurrentMenu): Ditto.
4216 (processKeyEvent): Added new method.
4217 (processMouseEvent): New Method. Implemented.
4218 (setSelectedPath): Ditto.
4221 2004-04-19 Kim Ho <kho@redhat.com>
4223 * java/awt/Container.java:
4224 (remove): Set the component's parent to null.
4225 (getComponentAt): Implement.
4226 * javax/swing/JComponent.java:
4227 (JComponent): Initialize defaultLocale
4228 (getDefaultLocale): Implement.
4229 (setDefaultLocale): ditto.
4230 * javax/swing/JSlider.java:
4231 (JSlider): Fix calculation of value.
4232 * javax/swing/JSplitPane.java: Implement.
4233 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4234 Change SplitPane's default divider size.
4235 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4236 (paint): Remove unused code.
4237 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4238 Added comments and ran through jalopy.
4239 (setBasicSplitPaneUI): Get reference to hidden divider
4240 and set up one touch buttons if necessary.
4241 (setBorder): Fire propertyChangeEvent only if
4242 borders are different.
4243 (getPreferredSize): Defer to layout manager.
4244 (propertyChange): Implement.
4245 (oneTouchExpandableChanged): ditto.
4246 (createLeftOneTouchButton): Use BasicArrowButton.
4247 (createRightOneTouchButton): ditto.
4248 (moveDividerTo): New method. Moves the divider
4249 to a set location based on the last divider location.
4250 (BasicSplitPaneDivider::MouseHandler): Implement.
4251 (BasicSplitPaneDivider::OneTouchButton): Removed.
4252 (BasicSplitPaneDivider::DragController): Implement.
4253 (BasicSplitPaneDivider::VerticalDragController):
4255 (BasicSplitPaneDivider::DividerLayout): ditto.
4256 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4257 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4258 (calculateLayoutInfo): Don't show component if it's
4260 (paintTab): Fix title paint logic.
4262 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
4265 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4266 (setStartRule,setEndRule): Don't take abs of day number.
4267 (getOffset): Clarify docs. Add argument checks.
4268 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4269 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4271 * testsuite/libjava.mauve/xfails
4272 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4274 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4276 Layout interfaces during preparation, not initialization.
4277 * java/lang/natClass.cc (initializeClass): Move
4278 _Jv_LayoutInterfaceMethods call...
4279 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4281 2004-05-19 Anthony Green <green@localhost.localdomain>
4283 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4285 * Makefile.in: Rebuilt.
4286 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4287 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4288 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4289 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4290 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4291 gnu/javax/rmi/CORBA/DelegateFactory.java,
4292 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4293 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4294 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4295 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4296 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4297 gnu/javax/rmi/PortableServer.java: Remove files.
4299 2004-05-19 Anthony Green <green@redhat.com>
4301 * Makefile.am: Define JAVA_EXT_DIRS.
4302 * Makefile.in: Rebuilt.
4303 * java/lang/natRuntime.cc (insertSystemProperties): Set
4304 java.ext.dirs property.
4306 2004-05-16 Mark Wielaard <mark@klomp.org>
4308 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4310 2004-05-15 Mark Wielaard <mark@klomp.org>
4312 * doc/cni.sgml: Removed, merged into gcj.texi.
4314 2004-05-15 Mark Wielaard <mark@klomp.org>
4316 * Makefile.am (ordinary_java_source_files): Add new javax.print
4318 * Makefile.in: Regenerated.
4320 2004-05-15 Michael Koch <konqueror@gmx.de>
4322 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4323 javax/print/attribute/standard/DateTimeAtCreation.java,
4324 javax/print/attribute/standard/DateTimeAtProcessing.java,
4325 javax/print/attribute/standard/DocumentName.java,
4326 javax/print/attribute/standard/JobHoldUntil.java,
4327 javax/print/attribute/standard/JobImpressionsCompleted.java,
4328 javax/print/attribute/standard/JobMessageFromOperator.java,
4329 javax/print/attribute/standard/JobName.java,
4330 javax/print/attribute/standard/JobOriginatingUserName.java,
4331 javax/print/attribute/standard/JobPriority.java,
4332 javax/print/attribute/standard/JobPrioritySupported.java,
4333 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4334 javax/print/attribute/standard/OutputDeviceAssigned.java,
4335 javax/print/attribute/standard/PrinterInfo.java,
4336 javax/print/attribute/standard/PrinterLocation.java,
4337 javax/print/attribute/standard/PrinterMakeAndModel.java,
4338 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4339 javax/print/attribute/standard/PrinterName.java,
4340 javax/print/attribute/standard/QueuedJobCount.java,
4341 javax/print/attribute/standard/RequestingUserName.java:
4342 Fixed javadocs all over.
4344 2004-05-15 Michael Koch <konqueror@gmx.de>
4346 * javax/print/DocFlavor.java,
4347 javax/print/attribute/standard/ColorSupported.java,
4348 javax/print/attribute/standard/Compression.java,
4349 javax/print/attribute/standard/CopiesSupported.java,
4350 javax/print/attribute/standard/Fidelity.java,
4351 javax/print/attribute/standard/Finishings.java,
4352 javax/print/attribute/standard/JobImpressionsSupported.java,
4353 javax/print/attribute/standard/JobKOctetsSupported.java,
4354 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4355 javax/print/attribute/standard/JobSheets.java,
4356 javax/print/attribute/standard/JobState.java,
4357 javax/print/attribute/standard/JobStateReason.java,
4358 javax/print/attribute/standard/JobStateReasons.java,
4359 javax/print/attribute/standard/Media.java,
4360 javax/print/attribute/standard/MediaSizeName.java,
4361 javax/print/attribute/standard/MultipleDocumentHandling.java,
4362 javax/print/attribute/standard/NumberUpSupported.java,
4363 javax/print/attribute/standard/OrientationRequested.java,
4364 javax/print/attribute/standard/PDLOverrideSupported.java,
4365 javax/print/attribute/standard/PageRanges.java,
4366 javax/print/attribute/standard/PresentationDirection.java,
4367 javax/print/attribute/standard/PrintQuality.java,
4368 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4369 javax/print/attribute/standard/PrinterMoreInfo.java,
4370 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4371 javax/print/attribute/standard/PrinterResolution.java,
4372 javax/print/attribute/standard/PrinterState.java,
4373 javax/print/attribute/standard/PrinterStateReason.java,
4374 javax/print/attribute/standard/PrinterStateReasons.java,
4375 javax/print/attribute/standard/PrinterURI.java,
4376 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4377 javax/print/attribute/standard/Severity.java,
4378 javax/print/attribute/standard/SheetCollate.java,
4379 javax/print/attribute/standard/Sides.java:
4380 Added serialVersionUID and removed final keyword where it doenst
4383 2004-05-15 Michael Koch <konqueror@gmx.de>
4385 * javax/print/PrintServiceLookup.java: New file.
4387 2004-05-15 Michael Koch <konqueror@gmx.de>
4389 * javax/print/DocFlavor.java:
4390 Implemented all flavor classes.
4392 2004-05-15 Michael Koch <konqueror@gmx.de>
4394 * javax/print/attribute/standard/ColorSupported.java,
4395 javax/print/attribute/standard/Compression.java,
4396 javax/print/attribute/standard/CopiesSupported.java,
4397 javax/print/attribute/standard/Fidelity.java,
4398 javax/print/attribute/standard/Finishings.java,
4399 javax/print/attribute/standard/JobImpressionsSupported.java,
4400 javax/print/attribute/standard/JobKOctetsSupported.java,
4401 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4402 javax/print/attribute/standard/JobSheets.java,
4403 javax/print/attribute/standard/JobState.java,
4404 javax/print/attribute/standard/JobStateReason.java,
4405 javax/print/attribute/standard/JobStateReasons.java,
4406 javax/print/attribute/standard/Media.java,
4407 javax/print/attribute/standard/MediaSizeName.java,
4408 javax/print/attribute/standard/MultipleDocumentHandling.java,
4409 javax/print/attribute/standard/NumberUpSupported.java,
4410 javax/print/attribute/standard/OrientationRequested.java,
4411 javax/print/attribute/standard/PDLOverrideSupported.java,
4412 javax/print/attribute/standard/PageRanges.java,
4413 javax/print/attribute/standard/PresentationDirection.java,
4414 javax/print/attribute/standard/PrintQuality.java,
4415 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4416 javax/print/attribute/standard/PrinterMoreInfo.java,
4417 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4418 javax/print/attribute/standard/PrinterResolution.java,
4419 javax/print/attribute/standard/PrinterState.java,
4420 javax/print/attribute/standard/PrinterStateReason.java,
4421 javax/print/attribute/standard/PrinterStateReasons.java,
4422 javax/print/attribute/standard/PrinterURI.java,
4423 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4424 javax/print/attribute/standard/Severity.java,
4425 javax/print/attribute/standard/SheetCollate.java,
4426 javax/print/attribute/standard/Sides.java: New files.
4428 2004-05-15 Michael Koch <konqueror@gmx.de>
4430 * javax/print/Doc.java
4431 (getPrintData): Throws IOException.
4432 (getReaderForText): Likewise.
4433 (getStreamForBytes): Likewise.
4434 * javax/print/DocFlavor.java:
4435 Fixed filename in copyright.
4436 (serialVersionUID): New field.
4437 * javax/print/ServiceUIFactory.java:
4438 Made all constants final.
4439 * javax/print/AttributeException.java
4440 javax/print/MultiDoc.java
4441 javax/print/MultiDocPrintJob.java
4442 javax/print/MultiDocPrintService.java
4443 javax/print/StreamPrintService.java
4444 javax/print/URIException.java: New files.
4445 * javax/print/Makefile.am
4446 (EXTRA_DIST): Added all new files.
4448 2004-05-15 Michael Koch <konqueror@gmx.de>
4450 * javax/print/attribute/standard/Copies.java,
4451 javax/print/attribute/standard/DateTimeAtCompleted.java,
4452 javax/print/attribute/standard/DateTimeAtCreation.java,
4453 javax/print/attribute/standard/DateTimeAtProcessing.java,
4454 javax/print/attribute/standard/DocumentName.java,
4455 javax/print/attribute/standard/JobHoldUntil.java,
4456 javax/print/attribute/standard/JobImpressions.java,
4457 javax/print/attribute/standard/JobImpressionsCompleted.java,
4458 javax/print/attribute/standard/JobKOctets.java,
4459 javax/print/attribute/standard/JobKOctetsProcessed.java,
4460 javax/print/attribute/standard/JobMediaSheets.java,
4461 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4462 javax/print/attribute/standard/JobMessageFromOperator.java,
4463 javax/print/attribute/standard/JobName.java,
4464 javax/print/attribute/standard/JobOriginatingUserName.java,
4465 javax/print/attribute/standard/JobPriority.java,
4466 javax/print/attribute/standard/JobPrioritySupported.java,
4467 javax/print/attribute/standard/NumberOfDocuments.java,
4468 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4469 javax/print/attribute/standard/NumberUp.java,
4470 javax/print/attribute/standard/OutputDeviceAssigned.java,
4471 javax/print/attribute/standard/PagesPerMinute.java,
4472 javax/print/attribute/standard/PagesPerMinuteColor.java:
4473 Fixed @return tag all over.
4475 2004-05-15 Michael Koch <konqueror@gmx.de>
4477 * javax/print/attribute/AttributeSetUtilities.java
4478 (verifyCategoryForValue): Fixed typo in javadoc.
4479 * javax/print/attribute/HashAttributeSet.java
4480 (containsKey): Fixed @return tag.
4481 (comtainsValue): Likewise.
4483 * javax/print/attribute/IntegerSyntax.java
4485 * javax/print/attribute/ResolutionSyntax.java
4487 (getCrossFeedResolution): Removed unused code.
4488 (getFeedResolution): Likewise.
4489 * javax/print/attribute/SetOfIntegerSyntax.java
4490 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4491 (equals): Fixed @return tag.
4492 * javax/print/attribute/TextSyntax.java
4493 (TextSyntax): Take locale into account.
4494 (hashCode): Better implementation.
4496 2004-05-15 Michael Koch <konqueror@gmx.de>
4498 * javax/print/CancelablePrintJob.java,
4499 javax/print/Doc.java,
4500 javax/print/DocFlavor.java,
4501 javax/print/DocPrintJob.java,
4502 javax/print/FlavorException.java,
4503 javax/print/PrintException.java,
4504 javax/print/PrintService.java,
4505 javax/print/ServiceUIFactory.java: New files.
4507 2004-05-15 Mark Wielaard <mark@klomp.org>
4509 * gnu/regexp/CharIndexedReader.java: Removed.
4510 * gnu/regexp/REFilterReader.java: Likewise.
4511 * gnu/regexp/RETokenLookAhead.java: Likewise.
4512 * Makefile.am (ordinary_java_source_files): Remove above classes.
4513 * Makefile.in: Regenerated.
4515 2004-05-14 Tom Tromey <tromey@redhat.com>
4517 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4518 not `XGraphicsConfiguration.XOffScreenImage'.
4520 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4522 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4524 2004-05-14 Steven Augart <augart@watson.ibm.com>
4526 * include/jni.h (_Jv_func): Removed.
4527 (struct JNINativeInterface): Use `void *' for reserved slots.
4528 (struct JNIInvokeInterface): Likewise.
4530 2004-05-11 Michael Koch <konqueror@gmx.de>
4532 * gnu/java/net/natPlainSocketImplPosix.cc
4533 (read): Fixed typo in expression.
4535 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4537 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4538 ld_library_additions. Adjust all calls to libjava_invoke to match
4541 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4542 path to cxxflagslist.
4543 Pass path of libstdc++ to libjava_invoke.
4545 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4546 libjava_invoke arguments.
4548 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4550 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4553 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4555 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4556 main binary against the JNI shared library.
4558 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4560 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4561 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4562 (SimpleTimeZone): Tweak docs. Add new variation.
4563 (setStartRule,setEndRule): Add new variations. Use
4564 startTimeMode and endTimeMode.
4566 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4568 * java/util/Calendar.java (getActualMinimum,
4569 getActualMaximum): Remove abstract. Implement.
4571 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4573 Run the jni tests using the interpreter.
4574 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4575 options_cxx to shared lib compile command.
4576 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4577 they are used to link the shared lib, not the main binary.
4578 Use libjava_invoke to run gij.
4580 2004-05-06 Michael Koch <konqueror@gmx.de>
4582 * java/util/logging/Level.java
4583 (parse): Use == instead of String.equals().
4585 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4587 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4588 verify_field_signature and verify_method_signature, not
4589 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4590 (_Jv_ClassReader::handleField): Likewise.
4591 (_Jv_ClassReader::handleMethod): Likewise.
4593 2004-05-06 Michael Koch <konqueror@gmx.de>
4595 * javax/swing/table/TableColumn.java:
4598 2004-05-06 Michael Koch <konqueror@gmx.de>
4600 * javax/imageio/spi/ImageReaderWriterSpi.java
4601 (ImageReaderWriterSpi): Made it public.
4602 * javax/imageio/stream/ImageInputStream.java:
4605 2004-05-06 Michael Koch <konqueror@gmx.de>
4607 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4610 2004-05-06 Michael Koch <konqueror@gmx.de>
4612 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4613 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4615 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4616 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4617 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4618 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4619 their own source file.
4620 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4621 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4622 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4623 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4624 (create): Define variable on top of function.
4625 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4626 (menu_pos): Prototyped.
4627 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4628 (setTitle): Removed.
4629 * jni/gtk-peer/gthread-jni.c
4630 (gdk_threads_wake): Removed.
4631 * Makefile.am (gtk_c_source_files): Added new files
4632 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4633 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4634 * Makefile.in: Regenerated.
4636 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4638 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4641 2004-05-05 Mark Wielaard <mark@klomp.org>
4643 * javax/swing/AbstractButton.java: Replace special HTML entities with
4645 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4646 * javax/swing/DefaultButtonModel.java: Likewise.
4647 * javax/swing/DefaultListModel.java: Likewise.
4648 * javax/swing/JList.java: Likewise.
4649 * javax/swing/JSlider.java: Likewise.
4650 * javax/swing/ListModel.java: Likewise.
4651 * javax/swing/Popup.java: Likewise.
4652 * javax/swing/SwingUtilities.java: Likewise.
4654 2004-05-05 Michael Koch <konqueror@gmx.de>
4656 * javax/swing/AbstractButton.java,
4657 javax/swing/ActionMap.java,
4658 javax/swing/DefaultButtonModel.java,
4659 javax/swing/DefaultListModel.java,
4660 javax/swing/ImageIcon.java,
4661 javax/swing/JComboBox.java,
4662 javax/swing/JComponent.java,
4663 javax/swing/JFrame.java,
4664 javax/swing/JInternalFrame.java,
4665 javax/swing/JMenuBar.java,
4666 javax/swing/JMenuItem.java,
4667 javax/swing/JOptionPane.java,
4668 javax/swing/JProgressBar.java,
4669 javax/swing/JRootPane.java,
4670 javax/swing/JScrollBar.java,
4671 javax/swing/JScrollPane.java,
4672 javax/swing/JSeparator.java,
4673 javax/swing/JSlider.java,
4674 javax/swing/JTabbedPane.java,
4675 javax/swing/JTable.java,
4676 javax/swing/JTextField.java,
4677 javax/swing/JToolBar.java,
4678 javax/swing/JToolTip.java,
4679 javax/swing/JTree.java,
4680 javax/swing/JViewport.java,
4681 javax/swing/JWindow.java,
4682 javax/swing/KeyStroke.java,
4683 javax/swing/LookAndFeel.java,
4684 javax/swing/SwingUtilities.java,
4685 javax/swing/Timer.java,
4686 javax/swing/ToolTipManager.java,
4687 javax/swing/UIDefaults.java,
4688 javax/swing/border/TitledBorder.java,
4689 javax/swing/filechooser/FileSystemView.java,
4690 javax/swing/plaf/basic/BasicButtonListener.java,
4691 javax/swing/plaf/basic/BasicButtonUI.java,
4692 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4693 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4694 javax/swing/plaf/basic/BasicLabelUI.java,
4695 javax/swing/plaf/basic/BasicMenuItemUI.java,
4696 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4697 javax/swing/plaf/basic/BasicRootPaneUI.java,
4698 javax/swing/plaf/basic/BasicScrollBarUI.java,
4699 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4700 javax/swing/plaf/basic/BasicSliderUI.java,
4701 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4702 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4703 javax/swing/table/JTableHeader.java,
4704 javax/swing/text/AbstractDocument.java,
4705 javax/swing/text/DefaultCaret.java,
4706 javax/swing/text/StyledEditorKit.java,
4707 javax/swing/tree/DefaultTreeCellEditor.java:
4710 2004-05-05 Michael Koch <konqueror@gmx.de>
4712 * java/util/prefs/AbstractPreferences.java
4713 (AbstractPreferences): Added parenthesis for clarity.
4714 Closes classpath bug #7940.
4716 2004-05-05 Tom Tromey <tromey@redhat.com>
4718 * javax/naming/CompoundName.java (endsWith): Look at correct
4719 element of source name.
4721 2004-05-05 Mark Wielaard <mark@klomp.org>
4723 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4724 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4726 2004-05-05 Tom Tromey <tromey@redhat.com>
4728 * java/io/BufferedReader.java (skip): Removed unused
4731 2004-05-05 Michael Koch <konqueror@gmx.de>
4733 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4735 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4737 * java/text/AttributedString.java,
4738 java/text/AttributedStringIterator.java,
4739 java/text/Collator.java,
4740 java/text/DecimalFormatSymbols.java,
4741 java/text/NumberFormat.java,
4742 java/text/RuleBasedCollator.java:
4745 2004-05-05 Tom Tromey <tromey@redhat.com>
4747 * java/text/Format.java: Cleaned up imports.
4748 * java/text/DecimalFormat.java: Cleaned up imports.
4749 * java/security/SecureRandom.java: Cleaned up imports.
4750 (SecureRandom): Removed unused variable.
4751 * java/security/UnresolvedPermission.java: Cleaned up imports.
4752 * java/util/Date.java (parse): Removed unused variable.
4753 * java/util/ResourceBundle.java: Cleaned up imports.
4754 (getBundle): Removed unused variable.
4755 (tryBundle): Likewise.
4756 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4758 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4760 * java/text/SimpleDateFormat.java:
4761 (formatWithAttribute): New method. It implements
4762 the formatting process with attributes.
4763 (format): Use formatWithAttribute.
4764 (formatToCharacterIterator): New method. Use
4765 formatWithAttribute.
4767 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4769 * java/text/MessageFormat.java:
4770 (class Field): New class.
4771 (formatToCharacterIterator): New method.
4772 (format): Use formatInternal now.
4773 (formatInternal): New method. String formatter should
4774 be done here (with attributes). Attributes merging supported.
4775 (parse): More documentation.
4776 (getFormatsByArgumentIndex): New method.
4777 (setFormatByArgumentIndex): New method.
4778 (setFormatsByArgumentIndex): New method.
4780 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4782 * java/text/DecimalFormat.java
4783 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4784 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4785 (parse): Fixed handling of exponentiation notation and grouping.
4787 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4789 * java/text/DecimalFormat.java
4790 (scanFix): Build attribute array. Fixed error reporting.
4791 (applyPatternWithSymbols): Store attributes for the prefix and
4793 (formatInternal): New method. Changed the way the string is
4794 computed. Implemented attributes. Cleant up rounding in
4795 exponential notation.
4796 (format): Use formatInternal.
4797 (formatToCharacterIterator): New method.
4798 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4799 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4800 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4803 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4805 * java/security/interfaces/DSAKeyPairGenerator.java,
4806 java/security/interfaces/DSAPrivateKey.java,
4807 java/security/interfaces/DSAPublicKey.java,
4808 java/security/interfaces/RSAPrivateKey.java,
4809 java/security/interfaces/RSAPublicKey.java:
4812 2004-05-04 Michael Koch <konqueror@gmx.de>
4814 * java/nio/ByteBuffer.java,
4815 java/nio/CharBuffer.java,
4816 java/nio/DoubleBuffer.java,
4817 java/nio/FloatBuffer.java,
4818 java/nio/IntBuffer.java,
4819 java/nio/LongBuffer.java,
4820 java/nio/ShortBuffer.java:
4821 (compareTo): Fixed bogus implementation in all buffer classes.
4823 2004-05-04 Ingo Proetel <proetel@aicas.com>
4825 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4826 32 bit pixels not 8 bit pixels.
4827 (isCompatibleRaster): Added javadoc comment.
4829 2004-05-04 Ingo Proetel <proetel@aicas.com>
4831 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4834 2004-05-04 Ingo Proetel <proetel@aicas.com>
4836 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4837 (getColorModel): Return the actual color model.
4838 (getRaster): Implemented.
4839 (ColorRaster): New inner class.
4840 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4842 * java/awt/Color.java (<init>): Make exception more verbose.
4843 (createContext): Use ColorModel when creating a PaintContext.
4845 2004-05-04 Michael Koch <konqueror@gmx.de>
4847 * gnu/java/text/CharacterBreakIterator.java
4848 (previous): Removed unused variable.
4850 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4852 * gnu/java/text/FormatBuffer.java,
4853 gnu/java/text/AttributedFormatBuffer.java,
4854 gnu/java/text/StringFormatBuffer.java: New classes to implement
4855 attributed iterators in java.text.
4856 * gnu/java/text/FormatCharacterIterator.java: Moved
4857 from java/text as it is an internal class.
4858 * java/text/FormatCharacterIterator.java: Removed.
4859 * java/text/Format.java:
4860 Import gnu.java.text.FormatCharacterIterator.
4861 * Makefile.am (java_source_files): Added new files.
4862 * Makefile.in: Regenerated.
4865 2004-05-04 Mark Wielaard <mark@klomp.org>
4867 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4869 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4871 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4872 * Makefile.in: Rebuilt.
4874 2004-05-03 Mark Wielaard <mark@klomp.org>
4876 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4877 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4879 (set(String, String, int, String, String, String, String, String)):
4880 Assign this.file to path or path + "?" + query.
4881 * java/util/Arrays.java: Call static methods staticly.
4882 * java/util/zip/ZipEntry.java: Likewise.
4883 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4884 dir to this.direction.
4885 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4886 Assign static field only once.
4887 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4889 2004-05-03 Mark Wielaard <mark@klomp.org>
4891 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4892 unused variables hScrollbarHeight and vScrollbarWidth.
4893 (preferredSize): Likewise.
4894 * gnu/java/security/provider/DSAParameters.java (engineToString):
4895 Removed unused call to System.getProperty("line.seperator");
4896 * java/security/Security.java (loadProviders): Return result.
4898 2004-05-03 Tom Tromey <tromey@redhat.com>
4900 * java/net/URLStreamHandler.java (toExternalForm): Removed
4903 * java/math/BigDecimal.java (divide): Removed unused variable.
4904 * java/lang/Throwable.java: Cleaned up imports.
4905 * java/lang/ClassLoader.java: Cleaned up imports.
4906 * java/io/FilePermission.java (implies): Removed unused
4908 * java/awt/TextComponent.java: Removed unused import.
4909 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4910 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4911 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4912 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4914 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4915 * gnu/java/text/CharacterBreakIterator.java: Removed
4917 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4919 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4920 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4922 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4923 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4924 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4925 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4926 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4927 (lookupProviders): Removed unused variable.
4928 (loadNextServiceProvider): Likewise.
4929 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4931 2004-05-03 Michael Koch <konqueror@gmx.de>
4933 Fixes PR libgcj/14695:
4934 * java/net/NetworkInterface.java
4935 (getByName): Return null when no interface was found.
4937 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4938 Tom Tromey <tromey@redhat.com>
4940 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4941 additional option "-Wmissing-prototypes" for compiling C sources.
4942 Print actual filename for pass/fail rather than $name.c.
4943 * testsuite/libjava.jni/PR15133.java: New testcase file.
4944 * testsuite/libjava.jni/PR15133.c: Likewise.
4945 * testsuite/libjava.jni/PR15133.out: Likewise.
4947 2004-04-30 Roger Sayle <roger@eyesopen.com>
4949 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4952 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4954 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4955 limit the maximum heap size to avoid unnecessary thrashing.
4957 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4959 * java/text/CollationElementIterator.java (reset): Reset
4960 lookahead variables.
4962 2004-04-23 Mark Wielaard <mark@klomp.org>
4964 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4966 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4968 * java/sql/DriverManager.java:
4971 2004-04-23 Michael Koch <konqueror@gmx.de>
4974 (hashcode): Don't initialize with default value explicitely.
4975 (getContent): Removed redundant "final" keyword.
4976 (openStream): Likewise.
4977 (getURLStreamHandler): Fixed coding style.
4978 * java/net/URLConnection.java
4979 (defaultAllowUserInteraction): Don't initialize with default value
4981 (connected): Likewise.
4982 (doOutput): Likewise.
4983 (ifModifiedSince): Likewise.
4984 (dateformats_initialized): Likewise.
4985 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4987 2004-04-23 Michael Koch <konqueror@gmx.de>
4989 * gnu/java/nio/channels/FileChannelImpl.java
4990 (SET, CUR): Unused, removed.
4991 (read): Implement here directly.
4992 (implRead): Removed.
4993 (write): Implement here directly.
4994 (implWrite): Removed.
4996 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4998 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4999 javax/rmi/CORBA/Stub.java,
5000 javax/rmi/CORBA/Util.java,
5001 javax/rmi/CORBA/ValueHandler.java,
5002 javax/rmi/CORBA/ValueHandler.java,
5003 javax/rmi/PortableRemoteObject.java:
5006 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5008 * java/util/jar/JarFile.java,
5009 java/util/jar/JarInputStream.java,
5010 java/util/jar/JarOutputStream.java,
5011 java/util/jar/Manifest.java:
5014 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5016 * java/util/ArrayList.java,
5017 java/util/Calendar.java,
5018 java/util/Currency.java,
5019 java/util/HashMap.java,
5020 java/util/HashSet.java,
5021 java/util/Hashtable.java,
5022 java/util/LinkedList.java,
5023 java/util/Properties.java,
5024 java/util/PropertyPermission.java,
5025 java/util/TimeZone.java,
5026 java/util/TreeMap.java,
5027 java/util/TreeSet.java,
5028 java/util/Vector.java,
5029 java/util/WeakHashMap.java:
5032 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5034 * java/util/logging/FileHandler.java,
5035 java/util/logging/Formatter.java,
5036 java/util/logging/Handler.java,
5037 java/util/logging/Logger.java,
5038 java/util/logging/SimpleFormatter.java,
5039 java/util/logging/XMLFormatter.java:
5042 2004-04-22 Mark Wielaard <mark@klomp.org>
5044 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
5045 -Wno-long-long flags variable.
5046 (gtk_c_files): Use PEDANTIC_CFLAGS.
5047 * Makefile.in: Regenerated.
5049 2004-04-22 Mark Wielaard <mark@klomp.org>
5051 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5052 Changed C++ comments into C comments.
5053 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
5056 2004-04-22 Michael Koch <konqueror@gmx.de>
5058 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5059 Merged copyright year with GNU classpath.
5061 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5063 * javax/security/auth/x500/X500Principal.java:
5066 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5068 * javax/swing/JSlider.java:
5069 Fixed HTML tags in comments.
5071 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5073 * javax/accessibility/AccessibleText.java:
5076 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
5078 * java/net/URLStreamHandler.java
5079 (parseURL): Convert the file path to using '/' instead of native
5082 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
5085 (userInfo): New field.
5086 (URL): Set authority to the right value.
5087 (setURL): Fixed authority and file initialization.
5088 * java/net/URLStreamHandler.java
5089 (parseURL): Take care of the query tag. Build authority.
5090 (toExternalForm): Fixed URL building using authority.
5092 2004-04-22 Michael Koch <konqueror@gmx.de>
5094 * java/net/Socket.java
5095 (impl): Made package-private.
5096 * java/net/ServerSocket.java
5097 (implAccept): Access Socket.impl field directly.
5099 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5101 * java/util/prefs/Preferences.java,
5102 java/util/prefs/InvalidPreferencesFormatException.java,
5103 java/util/prefs/BackingStoreException.java,
5104 java/util/prefs/AbstractPreferences.java:
5107 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5109 * java/util/regex/Matcher.java,
5110 java/util/regex/Pattern.java:
5113 2004-04-22 Michael Koch <konqueror@gmx.de>
5115 * java/nio/charset/IllegalCharsetNameException.java
5116 (charsetName): Made private.
5117 (IllegalCharsetNameException): Added @param tag to javadoc.
5118 (getCharsetName): Added @return tag to javadoc.
5119 * java/nio/charset/MalformedInputException.java
5120 (MalformedInputException): Added @param tag to javadoc.
5121 (getInputLength): Revised method description, added @return tag.
5122 (getMessage): Added @return tag.
5124 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
5126 * java/awt/Font.java (deriveFont): Implement missing variants.
5127 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
5130 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
5132 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
5133 Set method->index values for interface methods to their itable index.
5134 (initializeClass): Call _Jv_LayoutInterfaceMethods.
5136 2004-04-21 Michael Koch <konqueror@gmx.de>
5138 * java/nio/DirectByteBufferImpl.java
5139 (shiftDown): Made static, give address as argument and
5140 provide a convenience method that overwrites shiftDown in
5141 ByteBufferImpl and calls the native shiftDown.
5142 * java/nio/MappedByteBufferImpl.java
5143 (): Use optimized method in DirectByteBufferImpl.
5144 * java/nio/natDirectByteBufferImpl.cc
5145 (shiftDown): Changed method signature. Removed usage of array_offset.
5147 2004-04-21 Michael Koch <konqueror@gmx.de>
5149 * gnu/java/net/natPlainSocketImplPosix.cc
5150 (SocketInputStream::read): Make sure returned data is a byte value.
5152 2004-04-21 Michael Koch <konqueror@gmx.de>
5154 * gnu/classpath/ServiceFactory.java,
5155 gnu/classpath/ServiceProviderLoadingAction.java,
5156 javax/imageio/ImageReader.java,
5157 javax/imageio/ImageTranscoder.java,
5158 javax/imageio/ImageWriter.java,
5159 javax/imageio/package.html,
5160 javax/imageio/spi/IIOServiceProvider.java,
5161 javax/imageio/spi/ImageInputStreamSpi.java,
5162 javax/imageio/spi/ImageOutputStreamSpi.java,
5163 javax/imageio/spi/ImageReaderWriterSpi.java,
5164 javax/imageio/spi/ImageTranscoderSpi.java,
5165 javax/imageio/spi/RegisterableService.java,
5166 javax/imageio/spi/ServiceRegistry.java,
5167 javax/imageio/spi/package.html,
5168 javax/imageio/stream/IIOByteBuffer.java,
5169 javax/imageio/stream/ImageInputStream.java,
5170 javax/imageio/stream/ImageOutputStream.java,
5171 javax/imageio/stream/package.html:
5174 (ordinary_java_source_files): Added
5175 gnu/classpath/ServiceFactory.java and
5176 gnu/classpath/ServiceProviderLoadingAction.java.
5177 (javax_source_files): Added
5178 javax/imageio/ImageReader.java,
5179 javax/imageio/ImageTranscoder.java,
5180 javax/imageio/ImageWriter.java,
5181 javax/imageio/spi/IIOServiceProvider.java,
5182 javax/imageio/spi/ImageInputStreamSpi.java,
5183 javax/imageio/spi/ImageOutputStreamSpi.java,
5184 javax/imageio/spi/ImageReaderWriterSpi.java,
5185 javax/imageio/spi/ImageTranscoderSpi.java,
5186 javax/imageio/spi/RegisterableService.java,
5187 javax/imageio/spi/ServiceRegistry.java,
5188 javax/imageio/stream/IIOByteBuffer.java,
5189 javax/imageio/stream/ImageInputStream.java and
5190 javax/imageio/stream/ImageOutputStream.java.
5191 * Makefile.in: Regenerated.
5193 2004-04-21 Michael Koch <konqueror@gmx.de>
5195 * java/util/Properties.java
5196 (load): Fix wrongly merged fix.
5198 2004-04-21 Mark Wielaard <mark@klomp.org>
5200 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5201 malloc and free buf.
5203 2004-04-21 Dalibor Topic <robilad@kaffe.org>
5205 * javax/naming/AuthenticationException.java,
5206 javax/naming/AuthenticationNotSupportedException.java,
5207 javax/naming/CannotProceedException.java,
5208 javax/naming/CommunicationException.java,
5209 javax/naming/CompoundName.java,
5210 javax/naming/ConfigurationException.java,
5211 javax/naming/ContextNotEmptyException.java,
5212 javax/naming/InitialContext.java,
5213 javax/naming/InsufficientResourcesException.java,
5214 javax/naming/InterruptedNamingException.java,
5215 javax/naming/LimitExceededException.java,
5216 javax/naming/LinkException.java,
5217 javax/naming/LinkLoopException.java,
5218 javax/naming/LinkRef.java,
5219 javax/naming/MalformedLinkException.java,
5220 javax/naming/Name.java,
5221 javax/naming/NameAlreadyBoundException.java,
5222 javax/naming/NameNotFoundException.java,
5223 javax/naming/NamingSecurityException.java,
5224 javax/naming/NoInitialContextException.java,
5225 javax/naming/NoPermissionException.java,
5226 javax/naming/NotContextException.java,
5227 javax/naming/PartialResultException.java,
5228 javax/naming/ReferralException.java,
5229 javax/naming/ServiceUnavailableException.java,
5230 javax/naming/SizeLimitExceededException.java,
5231 javax/naming/TimeLimitExceededException.java,
5232 javax/naming/directory/Attribute.java,
5233 javax/naming/directory/Attributes.java,
5234 javax/naming/directory/SearchResult.java,
5235 javax/naming/event/NamingExceptionEvent.java,
5236 javax/naming/spi/ResolveResult.java:
5239 2004-04-21 Mark Wielaard <mark@klomp.org>
5241 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5242 Changed C++ comments into C comments. Removed commented out code.
5243 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5245 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5247 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5249 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5251 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5253 * native/jni/gtk-peer/gthread-jni.c:
5256 2004-04-21 Mark Wielaard <mark@klomp.org>
5258 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5259 static fields defined in interface.
5260 * javax/awt/JDialog.java: Likewise.
5261 (JDialog): Make constructors public.
5262 (getDefaultCloseOperation): Make public.
5263 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5264 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5265 * javax/swing/JViewport.java (JViewport): Make constructor public.
5267 2004-04-21 Michael Koch <konqueror@gmx.de>
5269 * java/util/Map.java
5270 (Entry): Removed redundant "static" modifier.
5271 * java/text/AttributedCharacterIterator.java:
5272 Updated copyright year.
5274 2004-04-20 Michael Koch <konqueror@gmx.de>
5276 * javax/naming/directory/SearchControls.java:
5277 Don't explicitely extend java.lang.Object.
5278 * javax/naming/spi/DirStateFactory.java:
5279 Merged copyright year with GNU classpath.
5281 2004-04-20 Michael Koch <konqueror@gmx.de>
5283 * java/nio/channels/Channels.java:
5284 Merged coding style with GNU classpath.
5286 2004-04-20 Michael Koch <konqueror@gmx.de>
5288 * java/net/ServerSocket.java
5289 Merged coding style from GNU classpath.
5291 2004-04-20 Michael Koch <konqueror@gmx.de>
5293 * java/io/BufferedWriter.java:
5294 Reordered variables to be at top of the class.
5295 (localFlush): Removed redundant final keyword.
5297 2004-04-20 Ingo Proetel <proetel@aicas.com>
5299 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5301 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5303 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5304 for percent and permill check.
5306 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5308 * java/text/FieldPosition.java
5309 (FieldPosition) Constructor now behaves as it should according
5310 to the java documentation.
5312 2004-04-20 Mark Wielaard <mark@klomp.org>
5314 * java/util/Properties.java: Use the word umlaut, not ä in api
5317 2004-04-20 Michael Koch <konqueror@gmx.de>
5319 * java/nio/Buffer.java,
5320 java/nio/channels/AlreadyConnectedException.java,
5321 java/nio/channels/AsynchronousCloseException.java,
5322 java/nio/channels/ByteChannel.java,
5323 java/nio/channels/CancelledKeyException.java,
5324 java/nio/channels/Channel.java,
5325 java/nio/channels/Channels.java,
5326 java/nio/channels/ClosedByInterruptException.java,
5327 java/nio/channels/ClosedChannelException.java,
5328 java/nio/channels/ClosedSelectorException.java,
5329 java/nio/channels/ConnectionPendingException.java,
5330 java/nio/channels/DatagramChannel.java,
5331 java/nio/channels/FileChannel.java,
5332 java/nio/channels/FileLock.java,
5333 java/nio/channels/FileLockInterruptionException.java,
5334 java/nio/channels/GatheringByteChannel.java,
5335 java/nio/channels/IllegalBlockingModeException.java,
5336 java/nio/channels/IllegalSelectorException.java,
5337 java/nio/channels/InterruptibleChannel.java,
5338 java/nio/channels/NoConnectionPendingException.java,
5339 java/nio/channels/NonReadableChannelException.java,
5340 java/nio/channels/NonWritableChannelException.java,
5341 java/nio/channels/NotYetBoundException.java,
5342 java/nio/channels/NotYetConnectedException.java,
5343 java/nio/channels/OverlappingFileLockException.java,
5344 java/nio/channels/Pipe.java,
5345 java/nio/channels/ReadableByteChannel.java,
5346 java/nio/channels/ScatteringByteChannel.java,
5347 java/nio/channels/SelectableChannel.java,
5348 java/nio/channels/SelectionKey.java,
5349 java/nio/channels/Selector.java,
5350 java/nio/channels/ServerSocketChannel.java,
5351 java/nio/channels/SocketChannel.java,
5352 java/nio/channels/UnresolvedAddressException.java,
5353 java/nio/channels/UnsupportedAddressTypeException.java,
5354 java/nio/channels/WritableByteChannel.java,
5355 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5356 java/nio/channels/spi/AbstractSelectableChannel.java,
5357 java/nio/channels/spi/AbstractSelectionKey.java,
5358 java/nio/channels/spi/AbstractSelector.java,
5359 java/nio/channels/spi/SelectorProvider.java,
5360 java/nio/charset/spi/CharsetProvider.java:
5361 Fixed javadocs and jalopied all over java.nio.
5363 2004-04-20 Michael Koch <konqueror@gmx.de>
5365 * java/nio/ByteBufferImpl.java,
5366 java/nio/CharBufferImpl.java,
5367 java/nio/DirectByteBufferImpl.java,
5368 java/nio/DoubleBufferImpl.java,
5369 java/nio/DoubleViewBufferImpl.java,
5370 java/nio/FloatBufferImpl.java,
5371 java/nio/FloatViewBufferImpl.java,
5372 java/nio/IntBufferImpl.java,
5373 java/nio/IntViewBufferImpl.java,
5374 java/nio/LongBufferImpl.java,
5375 java/nio/LongViewBufferImpl.java,
5376 java/nio/MappedByteBufferImpl.java,
5377 java/nio/ShortBufferImpl.java,
5378 java/nio/ShortViewBufferImpl.java:
5379 Made sure all classes are final and removed final keyword from all
5382 2004-04-20 Michael Koch <konqueror@gmx.de>
5384 * java/rmi/MarshalledObject.java,
5385 java/rmi/Naming.java,
5386 java/rmi/RemoteException.java,
5387 java/rmi/activation/ActivationException.java,
5388 java/rmi/server/ServerCloneException.java,
5389 java/security/AccessController.java,
5390 java/security/AlgorithmParameterGenerator.java,
5391 java/security/AlgorithmParameters.java,
5392 java/security/CodeSource.java,
5393 java/security/Identity.java,
5394 java/security/IdentityScope.java,
5395 java/security/KeyPairGenerator.java,
5396 java/security/KeyStore.java,
5397 java/security/Security.java,
5398 java/security/Signature.java,
5399 java/security/SignatureSpi.java,
5400 java/security/SignedObject.java,
5401 java/security/spec/DSAParameterSpec.java,
5402 java/security/spec/DSAPrivateKeySpec.java,
5403 java/security/spec/DSAPublicKeySpec.java,
5404 java/sql/Array.java,
5405 java/sql/DatabaseMetaData.java,
5406 java/sql/ResultSet.java,
5407 java/text/ChoiceFormat.java,
5408 java/text/CollationElementIterator.java,
5409 java/text/CollationKey.java,
5410 java/text/Collator.java,
5411 java/text/DateFormat.java,
5412 java/text/DateFormatSymbols.java,
5413 java/text/DecimalFormatSymbols.java,
5414 java/text/Format.java,
5415 java/text/ParsePosition.java,
5416 java/text/RuleBasedCollator.java,
5417 java/text/SimpleDateFormat.java,
5418 java/text/StringCharacterIterator.java,
5419 java/util/Collections.java,
5420 java/util/PropertyResourceBundle.java,
5421 java/util/ResourceBundle.java,
5422 java/util/StringTokenizer.java,
5423 java/util/jar/Attributes.java,
5424 java/util/logging/ConsoleHandler.java,
5425 java/util/logging/LogManager.java,
5426 java/util/logging/MemoryHandler.java,
5427 java/util/logging/SocketHandler.java,
5428 javax/naming/NamingException.java:
5429 Fixed javadoc, coding style and argument names all over.
5431 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5433 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5434 constructor. (valid) Added null check.
5436 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5438 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5439 * java/io/FileOutputStream.java
5440 (FileOutputStream) Reorganized constructors. Constructors now
5441 check whether the given path is directory.
5443 2004-04-20 Michael Koch <konqueror@gmx.de>
5445 * java/net/Authenticator.java,
5446 java/net/BindException.java,
5447 java/net/ConnectException.java,
5448 java/net/ContentHandler.java,
5449 java/net/ContentHandlerFactory.java,
5450 java/net/DatagramPacket.java,
5451 java/net/DatagramSocket.java,
5452 java/net/DatagramSocketImpl.java,
5453 java/net/DatagramSocketImplFactory.java,
5454 java/net/FileNameMap.java,
5455 java/net/HttpURLConnection.java,
5456 java/net/Inet4Address.java,
5457 java/net/Inet6Address.java,
5458 java/net/InetAddress.java,
5459 java/net/InetSocketAddress.java,
5460 java/net/JarURLConnection.java,
5461 java/net/MalformedURLException.java,
5462 java/net/MulticastSocket.java,
5463 java/net/NetPermission.java,
5464 java/net/NetworkInterface.java,
5465 java/net/NoRouteToHostException.java,
5466 java/net/PasswordAuthentication.java,
5467 java/net/PortUnreachableException.java,
5468 java/net/ProtocolException.java,
5469 java/net/ServerSocket.java,
5470 java/net/Socket.java,
5471 java/net/SocketAddress.java,
5472 java/net/SocketException.java,
5473 java/net/SocketImpl.java,
5474 java/net/SocketImplFactory.java,
5475 java/net/SocketOptions.java,
5476 java/net/SocketPermission.java,
5477 java/net/SocketTimeoutException.java,
5479 java/net/URISyntaxException.java,
5481 java/net/URLClassLoader.java,
5482 java/net/URLConnection.java,
5483 java/net/URLDecoder.java,
5484 java/net/URLEncoder.java,
5485 java/net/URLStreamHandler.java,
5486 java/net/URLStreamHandlerFactory.java,
5487 java/net/UnknownHostException.java,
5488 java/net/UnknownServiceException.java:
5489 Fixed javadocs, coding style and argument names all over.
5491 2004-04-20 Michael Koch <konqueror@gmx.de>
5493 * java/lang/Byte.java,
5494 java/lang/CharSequence.java,
5495 java/lang/ClassLoader.java,
5496 java/lang/Compiler.java,
5497 java/lang/Double.java,
5498 java/lang/Float.java,
5499 java/lang/Integer.java,
5500 java/lang/Long.java,
5501 java/lang/Math.java,
5502 java/lang/Number.java,
5503 java/lang/Package.java,
5504 java/lang/Runtime.java,
5505 java/lang/RuntimePermission.java,
5506 java/lang/SecurityManager.java,
5507 java/lang/Short.java,
5508 java/lang/StringBuffer.java,
5509 java/lang/System.java,
5510 java/lang/ThreadGroup.java,
5511 java/lang/Throwable.java,
5512 java/lang/reflect/InvocationHandler.java,
5513 java/lang/reflect/Proxy.java:
5514 Fixed javadocs, coding style and argument names all over.
5516 2004-04-20 Michael Koch <konqueror@gmx.de>
5518 * java/io/BufferedWriter.java,
5519 java/io/ByteArrayInputStream.java,
5520 java/io/CharArrayWriter.java,
5521 java/io/DataInput.java,
5522 java/io/DataInputStream.java,
5524 java/io/FilterInputStream.java,
5525 java/io/InputStream.java,
5526 java/io/InputStreamReader.java,
5527 java/io/ObjectInputStream.java,
5528 java/io/ObjectStreamClass.java,
5529 java/io/PipedInputStream.java,
5530 java/io/PipedReader.java,
5531 java/io/PushbackInputStream.java,
5532 java/io/PushbackReader.java,
5533 java/io/RandomAccessFile.java,
5534 java/io/SerializablePermission.java,
5535 java/io/StreamTokenizer.java,
5536 java/io/StringWriter.java,
5537 java/io/WriteAbortedException.java,
5538 java/io/Writer.java:
5539 Fixed javadocs all over, rename arguments to match javadocs,
5542 2004-04-20 Ingo Proetel <proetel@aicas.com>
5544 * java/awt/FontMetrics.java:
5545 (charsWidth): fixed accumulation of total_width
5546 (getWidth): simple default implementation
5547 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5548 in Rectangle constructor.
5549 * java/awt/image/Raster.java (toString): Added method.
5550 * java/awt/image/SampleModel.java (<init>): Added error cause
5551 information to thrown exception.
5552 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5554 (setDataElements): New method.
5555 (setPixels): New method.
5556 (toString): New method.
5558 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5560 * java/awt/image/ComponentColorModel.java
5561 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5562 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5563 Mauve tests on this method. Improved documentation.
5565 2004-04-20 Michael Koch <konqueror@gmx.de>
5567 * javax/swing/JLayeredPane.java,
5568 javax/swing/plaf/BorderUIResource.java,
5569 javax/swing/plaf/ComponentUI.java,
5570 javax/swing/undo/CompoundEdit.java,
5571 javax/swing/undo/StateEdit.java:
5572 Fixed HTML tags in javadocs all over.
5574 2004-04-20 Michael Koch <konqueror@gmx.de>
5576 * javax/print/attribute/EnumSyntax.java
5577 (getOffset): Made protected.
5578 * javax/print/attribute/HashAttributeSet.java
5579 (HashAttributeSet): Likewise.
5580 * javax/print/attribute/ResolutionSyntax.java
5581 (getFeedResolution): Fixed typo in exception name.
5582 (getCrossFeedResolution): Likewise.
5583 * javax/print/attribute/SetOfIntegerSyntax.java
5584 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5585 * javax/print/attribute/TextSyntax.java
5586 (TextSyntax): Handle locale correctly.
5587 (hashCode): Calc better hashcode value.
5588 (equals): Fixed @return tag.
5589 (toString): New method.
5591 2004-04-20 Michael Koch <konqueror@gmx.de>
5593 * gnu/java/nio/FileLockImpl.java
5594 (static): Removed, not needed anymore.
5595 * gnu/java/nio/channels/FileChannelImpl.java
5596 (FileChannelImpl): Made final.
5597 (mode): Made private.
5598 (READ, WRITE, APPEND): Made public.
5599 (EXCL, SYNC, DSYNC): Likewise.
5600 (static): Load native JNI library, when needed.
5601 (length): Unused, removed.
5602 (available): Made public.
5603 (implPosition): Throws IOException.
5605 (implTruncate): Likewise.
5609 2004-04-20 Michael Koch <konqueror@gmx.de>
5611 * java/awt/AWTPermission.java,
5612 java/awt/Component.java,
5613 java/awt/ComponentOrientation.java,,
5614 java/awt/Dialog.java,
5615 java/awt/FontMetrics.java,
5616 java/awt/Graphics.java,
5617 java/awt/datatransfer/DataFlavor.java,
5618 java/beans/Introspector.java,
5619 java/beans/PropertyEditor.java,
5620 java/beans/PropertyEditorManager.java,
5621 java/beans/beancontext/BeanContextServiceProvider.java:
5622 Fixed HTML tags in javadocs all over.
5624 2004-04-20 Mark Wielaard <mark@klomp.org>
5626 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5627 MissingResourceException is thrown.
5628 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5629 null when a MissingResourceException is thrown. Should never happen.
5631 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5633 * java/awt/image/DataBufferShort.java,
5634 java/awt/image/DataBufferFloat.java,
5635 java/awt/image/DataBufferDouble.java,
5636 java/awt/image/PixelInterleavedSampleModel.java: New files.
5637 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5638 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5640 2004-04-20 Michael Koch <konqueror@gmx.de>
5642 * Makefile.am (java_source_files): Added
5643 java/awt/image/DataBufferDouble.java,
5644 java/awt/image/DataBufferFloat.java,
5645 java/awt/image/DataBufferShort.java and
5646 java/awt/image/PixelInterleavedSampleModel.java.
5647 * Makefile.in: Regenerated.
5649 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5651 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5652 undocumented CNI calls.
5653 * include/java-interp.h (_Jv_InterpClass): No longer
5654 extends java.lang.Class.
5655 * java/lang/Class.h (Class): Add new field `aux_info'.
5656 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5657 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5658 Use Class->aux_info instead.
5659 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5660 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5661 Use Class->aux_info instead.
5662 * java/io/natObjectInputStream.cc (allocateObject): Use
5664 * java/lang/natClass.cc (newInstance): Likewise.
5665 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5666 * java/lang/natObject.cc (clone): Likewise.
5667 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5668 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5669 JvAllocObject. Allocate klass->aux_info here for interpreted
5672 2004-04-17 Mark Wielaard <mark@klomp.org>
5674 * javax/swing/JToggleButton.java (ToggleButtonModel):
5675 Make public static inner class.
5676 * javax/swing/JTabbedPane.java (setComponentAt):
5677 Call Page.setComponent().
5678 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5679 (WRAP_TAB_LAYOUT): Make public, value is 0.
5680 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5681 Make private static inner class.
5683 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5685 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5686 arguments to match new signature. Remove FIXME comments.
5688 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5690 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5692 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5695 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5697 * Makefile.am: Added new file.
5698 * Makefile.in: Regenerate.
5699 * javax/swing/ImageIcon.java:
5700 (ImageIcon(file)): set description of the icon
5702 * javax/swing/JCheckBoxMenuItem.java:
5703 Mostly Implemented. Work in progress.
5704 * javax/swing/JRadioButtonMenuItem.java:
5705 Reimplement constructors to use JToggleButtonModel.
5706 * javax/swing/plaf/basic/BasicIconFactory.java:
5707 (getCheckBoxMenuItemIcon): return check box
5709 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5710 paint menu item selected only when it is armed and
5713 2004-04-02 David Jee <djee@redhat.com>
5715 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5716 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5717 * java/awt/Component.java
5718 (add): Set the parent of the popup as this component.
5719 * java/awt/PopupMenu.java
5720 (addNotify): Create popup menu when peer is null.
5721 (show): Call addNotify() if peer is null.
5722 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5723 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5724 argument for gtk_menu_popup() as zero. This causes the popup menu to
5725 respond to any mouse button.
5727 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5729 * Makefile.am: Added new file.
5730 * Makefile.in: Regenerate.
5731 * javax/swing/JRadioButtonMenuItem.java:
5733 * javax/swing/plaf/basic/BasicIconFactory.java:
5734 (getRadioButtonMenuItemIcon): Return
5736 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5737 (getPreferredSize): Add size of checkIcon if it
5739 (installDefaults): Don't initialize checkIcon.
5740 It's value will be set in subclasses.
5741 (uninstallDefaults): remove uninstallation of
5743 (paint): Moved code to paintMenuItem().
5744 (paintMenuItem): Implemented.
5745 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5746 UI delegate for JRadioButtonMenuItem.
5748 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5750 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5751 Corrected position of the accelerator.
5753 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5755 * Makefile.am: Added new file.
5756 * Makefile.in: Regenerate.
5757 * javax/swing/JMenuItem.java: Partly
5758 implemented. Work in progress
5759 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5760 Changed default value of acceleratorDelimiter.
5761 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5762 New class. Partly implemented.
5764 2004-03-26 Mark Wielaard <mark@klomp.org>
5766 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5767 (item_activate): Declare label before use.
5768 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5769 (gtkSetFont): Removed unused variable label.
5770 (addExposeFilter): Declare variables before use.
5771 (removeExposeFilter): Likewise.
5772 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5773 (ok_clicked): Declare str_fileName before use.
5775 2004-03-26 David Jee <djee@redhat.com>
5777 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5778 (addSeparator): Remove.
5779 * java/awt/Menu.java
5780 (separator): Remove static final MenuItem field.
5781 (separatorLabel): New static final String field.
5782 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5783 Use separatorLabel to denote that it is a separator.
5784 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5785 of reusing the static separator instance, because a MenuItem instance
5786 can't be added more than once without being cloned.
5787 * java/awt/peer/MenuPeer.java
5788 (addSeparator): Remove from interface.
5790 2004-03-26 David Jee <djee@redhat.com>
5792 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5793 (connectSignals): New native method declaration.
5794 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5795 * java/awt/MenuItem.java
5796 (getActionCommand): Return the label if the action command is not set.
5797 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5798 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5799 gtk_menu_shell_append().
5800 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5801 (item_activate): Fix argument type.
5802 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5804 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5806 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5807 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5808 given. Add the menu widget's top-level GtkWindow to the global window
5809 group, so it can grab the pointer.
5810 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5811 gtk_menu_shell_append().
5813 2004-03-23 Graydon Hoare <graydon@redhat.com>
5815 * java/text/AttributedString.java
5816 (addAttribute): Fix off-by-one.
5817 (getIterator): Likewise.
5818 * java/text/AttributedStringIterator.java
5819 (getRunLimit): Correct logic.
5820 (getRunStart): Likewise.
5821 (getAttribute): Fix inequality.
5822 (getAttributes): Likewise.
5823 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5825 2004-03-23 Kim Ho <kho@redhat.com>
5827 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5828 (calculateSizes): Return real width and height.
5830 2004-03-23 Kim Ho <kho@redhat.com>
5832 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5833 (calculateTabRects): Set the selectedRun before
5834 trying to rotate tabs.
5836 2004-03-23 Kim Ho <kho@redhat.com>
5838 * Makefile.am: New file
5839 * Makefile.in: Regenerate
5840 * java/awt/Graphics.java: (drawRect):
5841 Draw to the correct point.
5842 * javax/swing/DefaultSingleSelectionModel.java
5843 (isSelected): Return true if the selected index
5845 * javax/swing/JLabel.java: Do not change mnemonic
5846 index if text is null.
5847 * javax/swing/JProgressBar.java: Use JComponent's
5849 * javax/swing/JScrollBar.java: Ditto.
5850 * javax/swing/JSlider.java: Ditto.
5851 * javax/swing/JTabbedPane.java: Reimplement.
5852 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5853 Add defaults for TabbedPane.
5854 * javax/swing/plaf/basic/BasicArrowButton.java:
5856 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5857 (paintDeterminate): Don't paint String if it's
5859 (paintIndeterminate): ditto.
5860 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5863 2004-03-19 Michael Koch <konqueror@gmx.de>
5865 * java/awt/image/AffineTransformOp.java
5866 (AffineTransformOp): Made public.
5867 * javax/swing/JComponent.java
5868 (listenerList): Made protected.
5869 (accessibleContext): Likewise.
5870 * javax/swing/JList.java
5871 (valueChanged): Dont use internal fields of ListSelectionEvent.
5872 * javax/swing/JViewport.java
5873 (getView): Dont use internal fields of Component.
5874 (addImpl): Likewise.
5875 * javax/swing/Timer.java
5876 (isRunning): Made public.
5879 * javax/swing/UIDefaults.java
5880 (getInt): Made public.
5881 * javax/swing/plaf/basic/BasicListUI.java
5882 (mousePressed): Dont use internal fields of MouseEvent.
5883 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5884 * javax/swing/plaf/basic/BasicScrollBarUI.java
5885 (arrowIcon): Made static.
5886 * javax/swing/plaf/basic/BasicViewportUI.java
5887 (stateChanged): Dont use internal field on ChangeEvent.
5888 * javax/swing/text/JTextComponent.java
5889 (getUI): Call UIManager.getUI().
5890 (updateUI): Use getUI().
5892 2004-03-19 Graydon Hoare <graydon@redhat.com>
5894 * javax/swing/JComponent.java: Turn off double buffer by default.
5895 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5896 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5897 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5898 Use cairo to copy areas.
5899 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5900 Initialize and set clip region.
5902 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5904 * java/applet/Applet.java (preferredSize): Override deprecated
5905 variant of getPreferredSize.
5906 (minimumSize): Override deprecated variant of getMinimumSize.
5908 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5910 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5911 (drawImage(img,xform,bgcolor,obs)): New Method.
5912 Helper function that every drawImage method will
5914 (drawRaster): Added new parameter, bgcolor. All
5915 transparent pixels are changed to bgcolor before
5917 (drawRenderedImage): Fixed to use changed drawRaster().
5918 (drawImage(image,xform,obs): Fixed to use new helper function
5919 (drawImage(image,op,x,y)): Ditto.
5920 (drawImage (img,x,y,observer)): Ditto.
5921 ((PainterThread) bgcolor): New Field.
5922 ((PainterThread) (setPixels)): Changed all transparent pixels
5924 (drawImage(img,x,y,width,height,bgcolor,observer)):
5925 Fixed FIXME - all the transparent pixels are
5926 changed to the specified bgcolor.
5927 (drawImage(img, x, y, width, height, observer): Changed to
5929 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5930 Fixed FIXME- changed all transparent pixels to bgcolor.
5931 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5932 Changed to use function above.
5934 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5936 * java/applet/Applet.java (dimensions): New field.
5937 (getDimensions): New method.
5938 (getPreferredSize): Call getDimensions.
5939 (getMinimumSize): Likewise.
5941 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5943 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5944 * jni/classpath/jnilink.c: Likewise.
5946 * java/applet/Applet.java (getPreferredSize): New method.
5947 (getMinimumSize): New method.
5949 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5951 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5952 (_Jv_AllocObjectNoFinalizer): Likewise.
5953 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5954 (_Jv_AllocPtrFreeObject): Likewise.
5955 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5956 directly even in the JVMPI case.
5957 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5958 _Jv_AllocObject calls.
5959 * gcj/javaprims.h: Update prototypes.
5960 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5961 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5962 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5964 2004-04-14 Andrew Haley <aph@redhat.com>
5965 Bryce McKinlay <mckinlay@redhat.com>
5967 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5968 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5969 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5971 * testsuite/libjava.lang/InvokeInterface.java: New file.
5972 * testsuite/libjava.lang/InvokeInterface.out: New file.
5974 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5976 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5978 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5979 StackTraceElement directly.
5980 (newElement): New native helper method to create StackTraceElement
5981 bypassing Java access control.
5982 (createStackTraceElement): Use newElement() instead of directly
5983 calling StackTraceElement's constructor.
5984 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5986 2004-04-01 Michael Koch <konqueror@gmx.de>
5988 * java/lang/SecurityManager.java
5989 (checkAwtEventQueueAccess): Implemented.
5991 2004-04-01 Gary Benson <gbenson@redhat.com>
5993 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5994 (_Jv_SearchMethodInClass): Likewise.
5996 2004-03-26 Peter Moon <peterm@miraculum.com>
5998 * java/text/NumberFormat.java: Fix spelling of setCurrency
6001 2004-03-21 Anthony Green <green@redhat.com>
6003 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
6004 recursion when searching for the system ClassLoader.
6006 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
6008 * java/net/ServerSocket.java
6009 (accept): Close the socket when error occured.
6011 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
6013 * java/net/URI.java (parseURI): Added unquoting.
6014 (unquote): New method.
6015 (quoteAuthority): Implemented.
6016 (quote(String,String)): New method.
6017 (quotePath): Implemented.
6018 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
6019 (getSchemeSpecificPart): Removed FIXME comment.
6020 (getRawAuthority): Return new rawAuthority field.
6021 (getAuthority): Removed FIXME comment.
6022 (getRawUserInfo): Return new rawUserInfo field.
6023 (getUserInfo): Removed FIXME comment.
6024 (getRawPath): Return new rawPath field.
6025 (getPath): Removed FIXME comment.
6026 (getRawQuery): Return new rawQuery field.
6027 (getQuery): Removed FIXME comment.
6028 (getRawFragment): Return new rawFragment field.
6029 (getFragment): Removed FIXME comment.
6031 2004-03-20 Michael Koch <konqueror@gmx.de>
6033 * java/net/URLConnection.java: Merged copyright year with classpath.
6035 2004-03-20 Norbert Frese <postfach@nfrese.net>
6037 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
6038 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
6039 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
6041 (getObjectInputStream): Return object reference, throw IOException if null.
6042 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
6043 (getObjectOutputStream): Return object reference, throw IOException if null.
6044 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
6045 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
6046 (UnicastConnectionManager): Throw RemoteException if port is not available.
6047 (getInstance): Throw RemoteException.
6048 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
6049 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
6050 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6051 Collect Exceptions which are returned by a rmi-call and fix void returns.
6052 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
6053 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6054 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
6055 (dispatch): Answer ping messages which are sent by other java implementions.
6056 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
6057 for every rmi-message and fix void return problems.
6058 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
6059 (UnicastServerRef): Throw RemoteException.
6060 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
6061 In some situations it is necessary to export a subclass of the class which has the _Stub.
6062 For instance when the class with has the _Stub is abstract.
6063 (findStubSkelClass): New method which looks for the class which has the _Stub.
6064 (getClientHost): Implementated.
6065 * gcc/libjava/java/rmi/server/RemoteServer.java
6066 (getClientHost): Implementated.
6067 * gcc/libjava/Makefile.am (rmi_java_source_files):
6068 Added gnu/java/rmi/server/RMIIncomingThread.java.
6069 * Makefile.in: Regenerated.
6071 2004-03-20 Michael Koch <konqueror@gmx.de>
6073 * java/net/InetAddress.java
6074 (getLocalHostname): Added javadoc.
6076 2004-03-19 Per Bothner <per@bothner.com>
6078 * configure.in: FILE variable overrides FLATFORM when linking
6079 natFileChannelXXX.cc.
6081 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
6082 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
6084 2004-03-19 Per Bothner <per@bothner.com>
6086 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
6087 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
6088 * Makefile.am: Update accordingly.
6089 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
6090 as aliases for UnicodeLittle and UnicodeBig.
6092 2004-03-20 Mark Wielaard <mark@klomp.org>
6094 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6095 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
6096 Don't access ws when it is null.
6097 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
6100 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
6102 * java/lang/ThreadGroup.java (list): Changed print to println.
6104 2004-03-19 Mark Wielaard <mark@klomp.org>
6106 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
6109 2004-02-10 Randolph Chung <tausq@debian.org>
6111 * configure.in: Build java for hppa target.
6112 * configure: Regenerate.
6113 * libjava/configure.host (hppa-*): Add target.
6114 * libjava/sysdeps/pa/lock.h: New file.
6116 2004-03-19 Mark Wielaard <mark@klomp.org>
6118 Reported by Stephen Crawley
6119 * java/io/FilePermission.java (implies): Use String.length() -1 to
6120 access last char of String.
6122 2004-03-19 Michael Koch <konqueror@gmx.de>
6124 * java/awt/image/AffineTransformOp.java
6125 (AffineTransformOp): Made public.
6126 * javax/swing/JComponent.java
6127 (listenerList): Made protected.
6128 (accessibleContext): Likewise.
6129 * javax/swing/JList.java
6130 (valueChanged): Dont use internal fields of ListSelectionEvent.
6131 * javax/swing/JViewport.java
6132 (getView): Dont use internal fields of Component.
6133 (addImpl): Likewise.
6134 * javax/swing/Timer.java
6135 (isRunning): Made public.
6138 * javax/swing/UIDefaults.java
6139 (getInt): Made public.
6140 * javax/swing/plaf/basic/BasicListUI.java
6141 (mousePressed): Dont use internal fields of MouseEvent.
6142 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
6143 * javax/swing/plaf/basic/BasicScrollBarUI.java
6144 (arrowIcon): Made static.
6145 * javax/swing/plaf/basic/BasicViewportUI.java
6146 (stateChanged): Dont use internal field on ChangeEvent.
6147 * javax/swing/text/JTextComponent.java
6148 (getUI): Call UIManager.getUI().
6149 (updateUI): Use getUI().
6151 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6153 * verify.cc: Undef PC.
6155 2004-03-18 Michael Koch <konqueror@gmx.de>
6157 * java/nio/channels/spi/AbstractSelectableChannel.java
6158 (keys): Initialize at declaration.
6159 (locate): keys cant be null.
6161 (addSelectionKey): New method.
6162 (removeSelectionKey): New method.
6163 * java/nio/channels/spi/AbstractSelectionKey.java
6164 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
6165 * java/nio/channels/spi/AbstractSelector.java
6166 (provider): Javadoc added.
6167 (cancelledKeys): Javadoc added.
6168 (cancelKey): Javadoc added, add key to cancelledKeys.
6169 (deregister): Implemented.
6171 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6173 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
6174 MAP_FAILED to void *.
6176 2004-03-12 Graydon Hoare <graydon@redhat.com>
6178 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6179 * javax/swing/JComponent.java (paint): Use persistent double buffer.
6180 * javax/swing/JList.java (ListListener): Revalidate on changes.
6181 * javax/swing/JScrollPane.java: Reimplement.
6182 * javax/swing/JViewport.java: Reimplement.
6183 * javax/swing/ScrollPaneLayout.java: Reimplement.
6184 * javax/swing/ViewportLayout.java: Tidy up.
6185 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6186 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6187 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6188 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6191 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6193 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6194 (window_wm_protocols_filter): New function.
6195 (window_focus_in_cb): Remove function.
6196 (window_focus_out_cb): Likewise.
6197 (window_focus_or_active_state_change_cb): New function.
6198 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6199 (connectSignals): Don't attach handlers to focus-in-event or
6200 focus-out-event signals. Handle notify signal.
6202 2004-03-11 David Jee <djee@redhat.com>
6204 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6205 (gtkSetLabel): New native method declaration.
6206 (setLabel): Use gtkSetLabel.
6207 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6208 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6210 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6212 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6213 black when color argument is null.
6215 2004-03-10 Kim Ho <kho@redhat.com>
6217 * java/awt/Container.java: Remove check
6220 2004-03-10 Kim Ho <kho@redhat.com>
6222 * java/awt/Container.java: (visitChild):
6223 Remove candidate clip. Use the component
6225 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6226 (handleEvent): Use the PaintEvent's clip.
6228 2004-03-10 Kim Ho <kho@redhat.com>
6230 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6231 (handleEvent): Don't set the clip for the
6234 2004-03-09 Graydon Hoare <graydon@redhat.com>
6236 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6237 Fix double <-> fixed macros, reset font transform.
6238 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6241 2004-03-09Â Kim Ho <kho@redhat.com>
6243 * java/awt/Container.java: (visitChild): Move
6244 the x and y coordinate of the component rectangle
6245 to correct position.
6246 (handleEvent): Forward drag events to the pressed
6248 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6250 (ArrowButtonListener::mousePressed): Stop the
6252 (mouseDragged): Implement.
6253 (TrackListener::mousePressed): Only react if
6254 the press doesn't occur on the thumb, otherwise
6255 just set the offset.
6256 (TrackListener::mouseReleased): Unset the isAdjusting
6258 (createIncreaseIcon): Switch icon.
6259 (createDecreaseIcon): Switch icon.
6260 (calculatePreferredSize): Use width.
6261 (getThumbBounds): Use the top as the lower value.
6262 (layoutVScrollBar): Switch the button locations.
6263 (paintIncreaseHighlight): Paint correct side of thumb.
6264 (paintDecreaseHighlight): ditto.
6265 (valueForYPosition): Use top as the lower value.
6266 * javax/swing/plaf/basic/BasicSliderUI.java:
6268 (mouseDragged): Implement.
6269 (mousePressed): Only react when the thumb isn't
6270 pressed, otherwise just set offset.
6271 (mouseReleased): Handle a release of the thumb.
6272 (scrollDueToClickInTrack): Stop the timer first.
6273 * javax/swing/JProgressBar.java:
6274 (setString): Fix change condition.
6275 * javax/swing/JSeparator.java:
6278 2004-03-08 David Jee <djee@redhat.com>
6280 * java/awt/image/AffineTransformOp.java:
6281 (filter): Use Graphics2D interface instead of directly using the
6284 2004-03-05 David Jee <djee@redhat.com>
6286 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6287 (handleEvent): Action events are generated upon MOUSE_RELEASED.
6288 * java/awt/Container.java
6289 (acquireComponentForMouseEvent): Fixed.
6290 (handleEvent): Fixed.
6291 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6292 (state_to_awt_mods_with_button_states): New method.
6293 (pre_event_handler): Fixed mouse event generation.
6295 2004-03-05 Olga Rodimina <rodimina@redhat.com>
6297 gnu/java/awt/peer/gtk/GdkGraphics2D.java
6298 (GdkGraphics2D (BufferedImage)): Initialize
6299 pixmap associated with specified BufferedImage.
6300 (setPaint): Changed implementation of Texture
6301 Paint to use AffineTransformOp.
6302 * java/awt/image/AffineTransformOp.java
6303 (createCompatibleDestRaster): Throw RasterFormatException
6304 if resulting width or height of raster is 0.
6306 2004-03-04 Olga Rodimina <rodimina@redhat.com>
6308 * java/awt/image/AffineTransformOp.java:
6309 Removed unnecessary field interpolationType.
6310 Formatted some of the lines to be consistent with
6312 (AffineTransformOp): Create new RenderingHints
6313 containing specified interpolation type.
6314 (createCompatibleDestImage): Implemented.
6315 (createCompatibleDestRaster): Implemented.
6316 (filter): Implemented.
6317 (getBounds2D(BufferedImage)): Implemented.
6318 (getBounds2D(Raster)): Implemented.
6319 (getInterpolationType): Get interpolation value from
6322 2004-03-04 David Jee <djee@redhat.com>
6324 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6325 (setFont): Check if child peers are null.
6327 2004-03-04 Graydon Hoare <graydon@redhat.com>
6329 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6331 (libjava_arguments): Add new libraries to argument list.
6333 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6335 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6336 * Makefile.in: Re-generated.
6337 * java/awt/image/AffineTransformOp.java: New Class.
6339 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6341 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6342 (setPaint): Interpret correctly TexturePaint's
6344 (drawImage): Fixed scale factors of the affine
6347 2004-02-27 David Jee <djee@redhat.com>
6349 * gnu/java/awt/peer/gtk/GdkGraphics.java
6350 (GdkGraphics(Component)): Inherit font from component.
6351 (drawString): Use font style.
6352 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6353 (gtkSetFont): New native method declaration.
6354 (setFont): New method.
6355 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6356 (gtkSetFont): New native method declaration.
6357 (setFont): Call new native method gtkSetFont.
6358 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6359 (setFont): For all child components who do not their fonts set,
6360 set their peers' fonts with this container's font.
6361 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6362 Move all native method declarations to the top for readability.
6363 (gtkSetFont): New native method declaration.
6364 (setFont): New method.
6365 * java/awt/Component.java
6366 (setFont): Invalidate after setting the font.
6367 * java/awt/Container.java
6368 (invalidateTree): New method.
6369 (setFont): Invalidate the container tree after setting the font.
6370 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6371 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6372 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6373 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6374 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6375 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6376 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6377 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6379 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6381 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6382 (updateBufferedImage): New helper function.
6383 Updates BufferedImage in memory if it was changed.
6384 (draw): changed to update BufferedImage in memory after
6385 this drawing operation
6387 (draw3DRect): Ditto.
6388 (fill3DRect): Ditto.
6390 (drawRaster): Ditto.
6391 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6392 no affine transformation.
6393 (drawGlyphVector): Ditto.
6395 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6397 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6398 (isBufferedImageGraphics): New Helper function.
6399 Returns true if this graphics2d can be used to draw
6400 into buffered image and false otherwise.
6401 (updateImagePixels): New Helper function.
6402 Updates pixels in the BufferedImage.
6403 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6404 (getImagePixels): New function. Returns pixels
6405 of the buffered image associated with
6408 2004-02-26 David Jee <djee@redhat.com>
6410 * java/awt/BorderLayout.java
6411 (layoutContainer): Fix width and height calculations to ensure
6412 that they're non-negative.
6413 * java/awt/Component.java
6414 (setBackground): If c is null, inherit from closest ancestor whose
6415 background color is set.
6417 2004-02-26 Kim Ho <kho@redhat.com>
6419 * Makefile.am: Add new files.
6420 * Makefile.in: Re-generate.
6421 * javax/swing/JProgressBar.java:
6422 (JProgressBar(int, int int)): Throw
6423 IllegalArgumentException if orientation is
6425 (JProgressBar(BoundedRangeModel)): Create
6426 ChangeListener and register it. UpdateUI.
6427 (getChangeListeners): Implement.
6428 (setModel): Reset ChangeListener.
6429 * javax/swing/JScrollBar.java: Implement.
6430 * javax/swing/JSeparator.java: Implement.
6431 * javax/swing/JSlider.java:
6432 (JSlider(int, int, int, int)): Throw
6433 IllegalArgumentException if orientation
6435 (getChangeListeners): Fix method name.
6436 * javax/swing/SwingUtilities.java:
6437 (layoutCompoundLabel): If there is no text,
6438 set the text rectangle dimensions to 0.
6439 * javax/swing/plaf/basic/BasicButtonUI.java:
6440 (paint): If there is no text, don't paint it.
6441 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6443 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6445 * javax/swing/plaf/basic/BasicSliderUI.java:
6446 (propertyChange): If the model changes, change
6447 the listeners accordingly.
6449 2004-02-25 Graydon Hoare <graydon@redhat.com>
6451 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6452 * javax/swing/JList.java: Reimplement.
6453 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6454 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6455 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6456 * javax/swing/ListModel.java: Javadoc.
6457 * javax/swing/ListSelectionModel.java: Add missing methods.
6458 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6459 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6460 * javax/swing/ListModel.java: Javadoc and corrections.
6461 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6463 2004-02-25 David Jee <djee@redhat.com>
6465 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6466 (GtkFontPeer): Change default size to 12.
6467 * gnu/java/awt/peer/gtk/GtkToolkit.java
6468 (getFontPeer): Change default size to 12.
6469 (getClasspathFontPeer): Likewise. Set default name to "Default".
6470 * java/awt/Font.java
6471 (Font(Map)): Call Font(String,Map).
6472 (Font(String,Map)): If attrs is null, initialize it as an empty
6473 HashMap, which will ensure that the Font will get default attributes.
6475 2004-02-25 David Jee <djee@redhat.com>
6477 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6478 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6479 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6480 * gnu/java/awt/peer/gtk/GtkToolkit.java
6481 (getFontPeer(String,int)): Call the new overload method with size 1.
6482 (getFontPeer(String,int,int)): New method. Overloaded with size
6484 (getClasspathFontPeer): Set the size of the font.
6486 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6488 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6489 (bimage): New field.
6490 (GdkGraphics2D): New Constructor. Constructs Graphics
6491 object that can be used to draw into the Buffered Image.
6492 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6493 (GdkGraphicsEnvironment): Fixed to include public
6495 (createGraphics): Implemented.
6496 * gnu/java/awt/peer/gtk/GtkToolkit.java
6497 (getLocalGraphicsEnvironment): Implemented.
6498 * java/awt/GraphicsEnvironment.java:
6499 (getLocalGraphicsEnvironment): Implemented.
6500 * java/awt/image/BufferedImage.java:
6501 (createGraphics): Implemented.
6503 2004-02-24 David Jee <djee@redhat.com>
6505 * java/awt/Component.java
6506 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6507 * java/awt/Container.java
6508 (addNotifyContainerChildren): Fix event enabling.
6510 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6512 * Makefile.am: Added
6513 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6514 * Makefile.in: Re-generated.
6515 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6518 2004-02-19 Kim Ho <kho@redhat.com>
6520 * Makefile.am: Add BasicProgressBarUI
6521 * Makefile.in: Regenerate.
6522 * javax/swing/JProgressBar.java:
6524 * javax/swing/plaf/basic/BasicLookAndFeel.java
6525 Add constants for JProgressBar.
6526 * javax/swing/plaf/basic/BasicProgressBarUI.java
6528 * javax/swing/plaf/basic/BasicSliderUI.java
6530 (calculateGeometry): New method
6531 (paint): Remove unnecessary size calculations.
6533 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6535 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6536 (drawRaster): Fixed small error that caused
6537 imageToUser transformation to be set incorrectly.
6538 (toString): Implemented.
6540 2004-02-18 David Jee <djee@redhat.com>
6542 * java/awt/CardLayout.java
6543 (addLayoutComponent): Show the first component added as the default.
6544 (removeLayoutComponent): After removing, show the next component.
6545 (gotoComponent): If there is only one component, show it and return.
6547 2004-02-18 Kim Ho <kho@redhat.com>
6549 * javax/swing/JSlider.java: Re-order
6551 * javax/swing/JLabel.java: Re-order
6553 * javax/swing/JComponent.java:
6554 (addPropertyChangeListener):
6556 (removePropertyChangeListener):
6558 (firePropertyChangeEvent):
6561 2004-02-17 David Jee <djee@redhat.com>
6563 * java/awt/Component.java
6564 (show): Dispatch ComponentEvent via system event queue.
6568 (reshape): Likewise.
6569 * java/awt/Window.java
6570 (setBoundsCallback): Likewise.
6572 2004-02-17 David Jee <djee@redhat.com>
6574 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6575 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6576 Use gtk_widget_set_size_request() instead of the deprecated
6577 gtk_widget_set_usize().
6579 2004-02-17 Kim Ho <kho@redhat.com>
6581 * javax/swing/JSlider.java: Fix comments and
6582 make property strings constants.
6583 (createStandardLabels): Use the labels
6584 preferred size as bounds.
6585 * javax/swing/plaf/basic/BasicSliderUI.java
6587 (ScrollHandler::actionPerformed): Don't
6588 calculate the timer stop value. Let the
6589 MouseListeners find the stop location.
6590 (getPreferredHorizontalSize): Re-implement.
6591 (getPreferredVerticalSize): ditto.
6592 (getMinimumHorizontalSize): ditto.
6593 (getMinimumVerticalSize): ditto.
6594 (getPreferredSize): ditto.
6595 (getMinimumSize): ditto.
6596 (getMaximumSize): ditto.
6597 (paintTicks): Use doubles to find the
6599 (paintHorizontalLabel):Â Use preferredSize
6600 as initial width and height.
6601 (paintVerticalLabel): ditto.
6603 2004-02-17 Kim Ho <kho@redhat.com>
6605 * javax/swing/JLabel.java: Changed
6606 property strings to constants.
6607 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6609 (setText): Change mnemonic index if
6611 (setDisplayedMnemonicIndex): Fire property
6613 (getDisplayedMnemonicIndex): Remove check
6616 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6618 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6619 (drawImage(img,xform,obs)): Invert xform before
6620 passing the xform to cairo.
6621 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6622 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6624 (drawImage (img,x,y,w,h,obs)): Implemented.
6625 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6626 bgcolor,obs)): Partly implemented.
6627 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6629 * java/awt/image/BufferedImage.java:
6630 (copyData): if dest is null, create raster with same
6631 dimensions as the current image.
6633 2004-02-16 Graydon Hoare <graydon@redhat.com>
6635 * javax/swing/plaf/basic/BasicLabelUI.java
6636 (getPreferredSize): Use layoutCL.
6637 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6638 (getPreferredButtonSize): Start with empty view rect, layout using
6639 component's preferred alignment.
6640 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6643 2004-02-16 David Jee <djee@redhat.com>
6645 * java/awt/Component.java
6646 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6647 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6648 (move): Erase old bounds and repaint new bounds. Dispatch
6649 COMPONENT_MOVED ComponentEvent.
6650 (resize): Erase old bounds and repaint new bounds. Dispatch
6651 COMPONENT_RESIZED ComponentEvent.
6652 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6654 * java/awt/Window.java
6655 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6658 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6660 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6661 (setRenderingHint): Added implementation of
6662 Interpolation rendering hints.
6663 (setRenderingHints): Ditto.
6664 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6665 (drawPixels): fixed to allow user to choose type
6666 of filtering that should be used when displaying images.
6667 (cairoSurfaceSetFilter): New method. Sets filter type for
6668 interpolation of pixel values.
6670 2004-02-16 David Jee <djee@redhat.com>
6672 * java/awt/GridBagLayout.java
6673 (calcCellSizes): Rows or columns with zero sizes should still be
6674 considered for extra space distribution.
6676 2004-02-16 Kim Ho <kho@redhat.com>
6678 * javax/swing/JLabel.java: Re-implement.
6679 * javax/swing/plaf/basic/BasicLabelUI.java
6681 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6684 2004-02-16 Kim Ho <kho@redhat.com>
6686 * javax/swing/JSlider.java: Fix indentation and comments.
6687 (setModel): Remove null check to conform with Sun's.
6688 (setOrientation): Throw exception if not
6689 HORIZONTAL or VERTICAL.
6690 (getInverted): Use private variable instead of
6691 ComponentOrientation.
6692 (setInverted): ditto.
6693 * javax/swing/plaf/basic/BasicSliderUI.java:
6694 Fix indentation and comments.
6695 (propertyChange): Remove check for inverted slider, handle
6697 (getMinimumSize): Return preferred size.
6698 (getMaximumSize): ditto.
6699 (calculateFocusRect): Don't relocate rectangle.
6700 (drawInverted): Return XOR of the slider's inversion and
6701 the component's orientation.
6702 (paint): Update leftToRightCache
6704 2004-02-13 David Jee <djee@redhat.com>
6706 * java/awt/GridBagLayout.java
6707 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6708 code to helper methods.
6709 (sortBySpan): New helper method.
6710 (distributeSizeAndWeight): Likewise.
6711 (calcCellWeights): Likewise.
6712 (calcCellSizes): Add comments.
6714 2004-02-13 David Jee <djee@redhat.com>
6716 * java/awt/Component.java
6717 (show): Only do something if component is invisible at the moment.
6718 (hide): Only do something if component is visible at the moment.
6719 (reshape): If lightweight, erase old bounds and repaint new bounds.
6721 2004-02-13 Kim Ho <kho@redhat.com>
6723 * Makefile.am: Updated for new file.
6724 * Makefile.in: Regenerated.
6725 * javax/swing/JSlider.java: Reimplement.
6726 * javax/swing/SwingUtilities.java
6727 (layoutCompoundLabel): Use icon height
6729 (paintComponent): Implement.
6730 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6731 Add JSlider defaults.
6732 * javax/swing/plaf/basic/BasicSliderUI.java:
6733 Implement. New file.
6735 2004-03-17 Michael Koch <konqueror@gmx.de>
6737 * gnu/java/net/PlainDatagramSocketImpl.java
6738 (RECEIVE_LOCK): New member field.
6739 (SEND_LOCK): New member field.
6740 (send0): New method.
6741 (send): Synchronize on SEND_LOCK.
6742 (receive0): New method.
6743 (receive): Synchronize on RECEIVE_LOCK.
6744 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6745 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6746 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6747 (send0): Renamed from send.
6748 (receive0): Renamed from receive.
6749 2004-03-17 Michael Koch <konqueror@gmx.de>
6751 * gnu/java/net/natPlainSocketImplPosix.cc
6752 (write): Just call write(jbyteArray, offset, len).
6753 (read): Just call read(jbyteArray, offset, len).
6755 2004-03-16 Michael Koch <konqueror@gmx.de>
6757 * javax/swing/JTabbedPane.java
6758 (serialVersionUID): New field.
6760 2004-03-16 Norbert Frese <postfach@nfrese.net>
6762 * java/net/InetAddress.java
6763 (getByName): Handle hostname == "" case.
6765 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6767 Reported by: Adam Heath <doogie@debian.org>
6768 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6771 2004-03-15 Michael Koch <konqueror@gmx.de>
6773 * java/util/Locale.java: Reverting my last patch
6774 and add a comment why the original version was okay.
6776 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6778 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6779 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6780 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6781 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6783 2004-03-12 Michael Koch <konqueror@gmx.de>
6785 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6787 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6789 * java/net/URI.java (toURL): Implemented.
6791 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6794 (URI_REGEXP) updated to contain scheme specific part.
6795 (SCHEME_SPEC_PART_GROUP) new constant.
6796 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6797 updated to make room for SCHEME_SPEC_PART_GROUP.
6798 (parseURI) parse scheme specific part.
6799 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6800 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6801 getQuery, getFragment) implemented.
6803 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6805 * libraries/javalib/java/net/URI.java
6806 partially implemented using java.util.regex.
6807 (URI_REGEXP) new constant. Used to parse URIs.
6808 (SCHEME_GROUP) new constant representing index of scheme group
6810 (AUTHORITY_GROUP) new constant representing index of authority
6811 group in parsed URI.
6812 (PATH_GROUP) new constant representing index of path group in
6814 (QUERY_GROUP) new constant representing index of query group in
6816 (FRAGMENT_GROUP) new constant representing index of fragment
6817 group in parsed URI.
6818 (getURIGroup) new static utility method.
6819 (parseURI) implemented.
6820 (quote) stub for new static utility method.
6821 (quoteAuthority) stub for new static utility method.
6822 (quoteHost) stub for new static utility method.
6823 (quotePath) stub for new static utility method.
6824 (quoteUserInfo) stub for new static utility method.
6826 (create) don't throw URISyntaxException. Implemented.
6827 (toString) implemented.
6829 2004-03-12 Michael Koch <konqueror@gmx.de>
6831 * java/net/HttpURLConnection.java
6832 (getResponseCode): Fix another typo in javadoc.
6834 2004-03-11 Michael Koch <konqueror@gmx.de>
6836 * java/util/logging/Level.java
6837 (parse): Use String.equals() instead of ==.
6839 2004-03-11 Michael Koch <konqueror@gmx.de>
6841 * gnu/java/net/protocol/jar/Connection.java
6842 (getContentLength): New method.
6844 2004-03-11 Michael Koch <konqueror@gmx.de>
6846 * gnu/java/net/PlainSocketImpl.java:
6847 Reformated to merge better with classpath's version.
6849 2004-03-11 Michael Koch <konqueror@gmx.de>
6851 * java/util/Locale.java
6852 (getISO3Language): Use String.equals() instead of ==.
6853 (getISO3Country): Likewise.
6855 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6857 * java/text/AttributedString.java
6858 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6859 Use HashMap instead of Hashtable since value can be null, and
6860 you can not store a null value in a Hashtable.
6862 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6864 * java/text/AttributedStringIterator.java
6865 (getAllAttributesKey): Return only keys concerned
6866 by the current iterator.
6867 (getAttributes): Use strict inequality for
6870 2004-03-11 Michael Koch <konqueror@gmx.de>
6872 * java/net/HttpURLConnection.java:
6873 Fixed typo in javadoc.
6875 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6877 * java/io/BufferedInputStream.java (marktarget): New field for max
6879 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6880 (mark): Use new fields.
6882 (read(byte[],int,int)): Likewise.
6886 2004-03-11 Mark Wielaard <mark@klomp.org>
6888 * java/beans/BeanDescriptor.java (BeanDescriptor):
6889 Set the FeatureDescriptor programmatic name.
6891 2004-03-11 Michael Koch <konqueror@gmx.de>
6893 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6894 This file was was just copied form java/io/natFileDescriptorEcos.cc
6895 and never changed to compile correctly.
6897 2004-03-11 Michael Koch <konqueror@gmx.de>
6899 * gnu/java/nio/PipeImpl.java
6900 (SourceChannelImpl): Made final.
6901 (read): Implemented.
6902 (SinkChannelImpl): Made final.
6903 (write): Implemented.
6905 2004-03-11 Michael Koch <konqueror@gmx.de>
6907 * gnu/java/net/PlainDatagramSocketImpl.java:
6908 Reformated to match classpath's version more.
6910 2004-03-11 Michael Koch <konqueror@gmx.de>
6912 * gnu/java/awt/peer/ClasspathFontPeer.java:
6913 Fixed javadoc to be correct xhtml.
6914 * gnu/java/awt/peer/gtk/GtkArgList.java
6915 (add): Use Boolean.valueOf() instead of new Boolean().
6917 2004-03-09 Michael Koch <konqueror@gmx.de>
6919 * java/lang/Thread.java
6920 (runnable): Moved around.
6921 (daemon): Renamed from daemon_flag.
6922 (contextClassLoader): Renamed from context_class_loader.
6923 (Thread): Reordered constructors.
6924 (activeCount): Use group directly.
6925 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6926 (holdsLock): Reworked javadoc.
6927 (setDaemon): Reworked.
6928 * java/lang/natThread.cc
6931 2004-03-08 Anthony Green <green@redhat.com>
6933 * Makefile.am: Build property resource files into libgcj.
6934 * Makefile.in: Rebuilt.
6935 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6936 java/util/regex/PatternSyntaxException.java,
6937 gnu/regexp/CharIndexed.java,
6938 gnu/regexp/CharIndexedCharArray.java,
6939 gnu/regexp/CharIndexedInputStream.java,
6940 gnu/regexp/CharIndexedReader.java,
6941 gnu/regexp/CharIndexedString.java,
6942 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6943 gnu/regexp/REException.java,
6944 gnu/regexp/REFilterInputStream.java,
6945 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6946 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6947 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6948 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6949 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6950 gnu/regexp/RETokenLookAhead.java,
6951 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6952 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6953 gnu/regexp/RETokenStart.java,
6954 gnu/regexp/RETokenWordBoundary.java,
6955 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6957 2004-03-03 Per Bothner <per@bothner.com>
6959 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6960 Optimize when argument is a FileChannelImpl.
6961 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6963 * java/nio/channels/natChannels.cc: New file for new native methods.
6964 * Makefile.am: Update accordingly.
6966 2004-03-02 Jan Hubicka <jh@suse.cz>
6968 * configure.host: Pass -fno-omit-frame-pointer for i386.
6969 * configure.in: Likewise.
6970 * configure: Regenerate.
6972 2004-03-01 Per Bothner <per@bothner.com>
6974 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6976 2004-02-29 Per Bothner <per@bothner.com>
6978 * java/nio/channels/FileChannelImpl.java: Moved to package
6979 gnu/java/nio/channels, since we need to refer to it from java.io.
6980 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6981 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6982 from java/nio/channels. Don't depend on FileDescriptor.
6983 (in, out, err): New static fields.
6985 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6986 from FileDescriptor.
6987 (by): Removed MappedByteBuffer field.
6988 (map): New working implementation.
6989 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6990 some code "ported" from natFileDescriptoPosix.cc.
6991 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6992 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6993 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6994 Remove native methods.
6995 * Makefile.am, configure.in: Updated accordingly.
6997 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6998 (ch): New FileChannelImpl field. Update constructor to match.
6999 (releaseImpl): Remove native method. Instead ...
7000 (release): Call unlock on channel.
7001 * gnu/java/nio/natFileLockImpl.cc: Removed file.
7003 * java/io/natFileDescriptorEcos.cc: Remove file.
7004 * java/io/natFileDescriptorPosix.cc: Remove file.
7005 * java/io/natFileDescriptorWin32.cc: Remove file.
7006 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
7007 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
7008 (<init>(FileChannelImpl)): New package-private constructor.
7009 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
7010 (available, close, read, skip): Implement using FileChannelImpl.
7011 (getFD): Allocate FileDescriptor if needed.
7012 (getChannel): Is now trivial.
7013 * java/io/FileOutputStream.java: Corresponding changes.
7014 * java/io/RandomAccessFile.java: Corresponding changes.
7016 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
7017 unmapImpl): New dummy methods, to be overridden by subclass.
7018 (finalize, isLoaded, load, force): New methods.
7019 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
7020 Now works, at least for read mapping.
7022 * java/lang/natPosixProcess.cc (startProcess): Implement standard
7023 streams using FileChannelImpl, not FileDescriptor.
7024 * java/lang/natWin32Process.cc (startProcess): Likewise.
7026 2004-02-28 Michael Koch <konqueror@gmx.de>
7028 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
7031 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
7033 * java/io/ObjectInputStream.java
7034 (readClassDescriptor): Keep elements of the mapping non null.
7035 (checkTypeConsistency): New method.
7036 (readFields): Fixed main loop and base logic. Small reindentation.
7037 * java/io/ObjectStreamField.java
7038 (lookupField): New method to update the field reference.
7039 (checkFieldType): New method.
7040 * java/io/ObjectStreamClass.java
7041 (setClass, setFields): Call lookupField when building the field
7042 database. Check the real field type.
7044 2004-02-28 Michael Koch <konqueror@gmx.de>
7046 * java/nio/ByteOrder.java
7047 (nativeOrder): Use equals() to compare strings.
7049 2004-02-26 Michael Koch <konqueror@gmx.de>
7051 * gnu/java/nio/FileLockImpl.java
7052 (finalize): Made protected.
7053 * java/nio/channels/FileChannel.java
7054 (MapMode.READ_ONLY): Made final.
7055 (MapMode.READ_WRITE): Made final.
7056 (MapMode.PRIVATE): Made final.
7057 * java/nio/channels/SocketChannel.java
7058 (open): Simplified code.
7059 * java/nio/channels/spi/AbstractSelectableChannel.java
7060 (registered): Unused, removed.
7061 (keyFor): Check channel is open, only locate key
7062 and not add a new one.
7063 (register): Don't delete attachments.
7065 2004-02-26 Michael Koch <konqueror@gmx.de>
7067 * gnu/java/awt/ComponentDataBlitOp.java
7068 (INSTANCE): Made final.
7069 * gnu/java/awt/image/ImageDecoder.java:
7071 (cm): Unused, removed.
7073 2004-02-26 Michael Koch <konqueror@gmx.de>
7075 * gnu/java/nio/DatagramChannelImpl.java
7076 (send): Check if target address is resolved.
7078 2004-02-26 Michael Koch <konqueror@gmx.de>
7080 * Makefile.am: Generate and install headers for inner classes in
7081 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
7082 * Makefile.in: Regenerated.
7084 2004-02-24 Anthony Green <green@redhat.com>
7086 * java/lang/StringBuffer.java: No need to NULL out remainder of
7087 buffer since ensureCapacity_unsynchronized will have done this for
7090 2004-02-20 Michael Koch <konqueror@gmx.de>
7092 * gnu/java/net/protocol/jar/Handler.java
7093 (): Removed unneeded check for file != null. java.net.URL.getFile()
7094 returns an empty string but never null.
7096 2004-02-20 Michael Koch <konqueror@gmx.de>
7098 * gnu/gcj/convert/Convert.java
7099 (main): Use equals() to compare strings.
7101 2004-02-20 Michael Koch <konqueror@gmx.de>
7103 * javax/swing/AbstractButton.java: Made several constants final.
7104 (getRolloverSelectedIcon): Made public.
7105 (getSelectedIcon): Made public.
7107 2004-02-16 Per Bothner <per@bothner.com>
7109 * java/nio/CharBufferImpl.java: Inline super constructor.
7110 * java/nio/DoubleBufferImpl.java: Likewise.
7111 * java/nio/FloatBufferImpl.java: Likewise.
7112 * java/nio/IntBufferImpl.java: Likewise.
7113 * java/nio/LongBufferImpl.java: Likewise.
7114 * java/nio/ShortBufferImpl.java: Likewise.
7115 * java/nio/CharBuffer.java: Remove unused constructor.
7116 * java/nio/DoubleBuffer.java: Likewise.
7117 * java/nio/FloatBuffer.java: Likewise.
7118 * java/nio/IntBuffer.java: Likewise.
7119 * java/nio/LongBuffer.java: Likewise.
7120 * java/nio/ShortBuffer.java: Likewise.
7121 * java/nio/CharViewBufferImpl.java: New convenience constructor.
7122 Fix buggy call to super constructor.
7123 * java/nio/DoubleViewBufferImpl.java: Likewise.
7124 * java/nio/FloatViewBufferImpl.java: Likewise.
7125 * java/nio/IntViewBufferImpl.java: Likewise.
7126 * java/nio/LongViewBufferImpl.java: Likewise.
7127 * java/nio/ShortViewBufferImpl.java: Likewise.
7129 * java/nio/ByteBuffer.java (endian): Make non-private so other
7130 java.nio classes can inherit it.
7131 (<init>): Don't bother clearing array_offset.
7132 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
7133 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
7134 Remove redundant test.
7136 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
7137 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
7138 Use new XxxViewBufferImpl constructors.
7139 * java/nio/MappedByteBufferImpl.java: Likewise.
7140 * java/nio/DirectByteBufferImpl.java: Likewise.
7142 * java/nio/ByteBufferImpl.java: Remove one constructor.
7143 Inline super in remaining constructor.
7144 * java/nio/ByteBuffer.java: Remove unused constructor.
7146 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
7148 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
7149 * java/nio/DirectByteBufferImpl.java (owner): New field.
7150 (offset): Remove unused field.
7151 (<init>): Modify one and add another constructor. Change callers.
7152 (allocateDirect): Removed - not used.
7153 (getImpl, putImpl): Make static and pass address explicitly,
7154 to make them useful for MappedByteBufferImpl.
7155 (get, put): Check for underflow. Modify for new getImpl.
7156 (getImpl): New native method where target is array.
7157 (get(byte[],int,int)): Use the above.
7158 (adjustAddress): New static native method.
7159 (slice, duplicate, asReadOnly): New implementations.
7160 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
7161 adjustAddress): New or updated native methods.
7163 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
7165 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
7166 overflow of fieldmapping.
7168 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
7170 * javax/swing/undo/UndoManager.java: Re-written from scratch.
7172 2004-02-14 Per Bothner <per@bothner.com>
7174 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
7175 Set closed before calling implCloseChannel, as in the spec.
7177 2004-02-09 Graydon Hoare <graydon@redhat.com>
7179 * javax/swing/ToggleButtonModel.java: Remove dead class.
7180 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
7181 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
7182 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
7183 * Makefile.am: Update for new and removed files.
7184 * Makefile.in: Regenerate.
7186 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
7187 * javax/swing/AbstractButton.java
7188 (AbstractButton): Initialize fields correctly in ctor.
7189 * javax/swing/JCheckbox.java
7190 (JCheckBox): Override painting flags.
7191 * javax/swing/DefaultButtonModel.java: Conform to sun.
7192 * javax/swing/JComponent.java (paint): Fill with background color
7194 (processComponentKeyEvent)
7197 (processMouseMotionEvent): Remove event-consuming empty methods.
7198 (getUIClassID): Return "ComponentUI" not "JComponent"
7199 * javax/swing/JFrame.java: Remove some debugging chatter.
7200 (JFrame): Subscribe to window events.
7201 * javax/swing/JRadioButton.java
7202 (JRadioButton): Override painting flags.
7203 * javax/swing/JRootPane.java
7204 (JRootPane): Set background from UIDefaults.
7205 * javax/swing/JToggleButton.java
7206 (ToggleButtonModel): New inner class.
7207 (JToggleButton): Override layout alighment.
7208 * javax/swing/SwingUtilities.java:
7209 (getLocalBounds): Return width and height, not x and y.
7210 (calculateInnerArea): Use local bounds, not bounds.
7211 (layoutCompoundLabel): Provide overridden form.
7212 (layoutCompoundLabel): Correct bugs.
7213 * javax/swing/UIDefaults.java: Correct comment.
7214 * javax/swing/plaf/basic/BasicButtonUI.java:
7215 Move most logic into defaults, external listener.
7216 (paintIcon): Implement icon painting.
7217 (paint): Fix state painting to conform to changes in model.
7218 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
7219 Remove most dead/wrong methods.
7220 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7221 * javax/swing/plaf/basic/BasicIconFactory.java:
7222 (DummyIcon): New class.
7223 (getMenuItemCheckIcon)
7224 (getMenuItemArrowIcon)
7226 (getCheckBoxMenuItemIcon)
7227 (getRadioButtonMenuItemIcon)
7228 (createEmptyFrameIcon): Return DummyIcons, not null.
7229 (getCheckBoxIcon): Implement an icon that looks like sun's.
7230 (getRadioButtonIcon): Implement an icon that looks like sun's.
7231 * javax/swing/plaf/basic/BasicLookAndFeel.java
7232 (initComponentDefaults): Fix impossible values, add some missing.
7233 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7234 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7235 Remove most dead/wrong methods.
7237 (getDefaultIcon): New method.
7238 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7239 Remove most dead/wrong methods.
7240 * javax/swing/plaf/metal/MetalLookAndFeel.java
7241 (getDefaults): Return super.getDefaults(), not BasicDefaults.
7242 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7243 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7244 Implement "clearing" as drawing, when on pixmap drawables.
7246 * javax/swing/JButton.java (getUIClassID):
7247 * javax/swing/JCheckBox.java (getUIClassID):
7248 * javax/swing/JEditorPane.java (getUIClassID):
7249 * javax/swing/JLabel.java (getUIClassID):
7250 * javax/swing/JList.java (getUIClassID):
7251 * javax/swing/JOptionPane.java (getUIClassID):
7252 * javax/swing/JPanel.java (getUIClassID):
7253 * javax/swing/JPasswordField.java (uiClassID):
7254 * javax/swing/JRadioButton.java (getUIClassID):
7255 * javax/swing/JRootPane.java (getUIClassID):
7256 * javax/swing/JScrollPane.java (getUIClassID):
7257 * javax/swing/JTabbedPane.java (getUIClassID):
7258 * javax/swing/JToggleButton.java (getUIClassID):
7259 * javax/swing/JTree.java (getUIClassID):
7260 * javax/swing/JViewport.java (getUIClassID):
7261 * javax/swing/text/JTextComponent.java (getUIClassID):
7262 Return "fooUI" not "Jfoo"
7264 2004-02-11 Michael Koch <konqueror@gmx.de>
7266 * java/net/DatagramSocket.java
7267 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7269 (setBroadcast): Likewise.
7270 * java/net/MulticastSocket.java
7271 (setLoopbackMode): Likewise.
7272 * java/net/ServerSocket.java
7273 (setReuseAddress): Likewise.
7274 * java/net/Socket.java
7275 (setTcpNoDelay): Likewise.
7276 (setSoLinger): Likewise.
7277 (setOOBInline): Likewise.
7278 (setKeepAlive): Likewise.
7279 (setReuseAddress): Likewise.
7280 * java/net/URLConnection.java
7281 (setContentHandler): Replace == with equals().
7282 * java/net/URLStreamHandler.java
7283 (hostSEquals): Fix checking host addresses.
7284 (toExternalForm): Dont check protocol for null. We know already its
7287 2004-02-10 David Jee <djee@redhat.com>
7289 * java/awt/BorderLayout.java
7290 (calcCompSize): Invisible components get zero dimensions.
7291 * java/awt/Button.java
7292 (setLabel): Set actionCommand.
7293 * java/awt/Component.java
7294 (show): Invalidate component and parent container.
7297 2004-02-10 David Jee <djee@redhat.com>
7299 * java/awt/GridBagLayout.java
7300 (GridBagLayout): New private field, internalcomptable.
7301 (lookupInternalConstraints): New method.
7302 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7303 (GetLayoutInfo): Reimplement.
7304 (calcCellSizes): Ignore rows/columns with size 0.
7306 2004-02-10 Michael Koch <konqueror@gmx.de>
7308 * gnu/java/awt/EmbeddedWindow.java
7309 (setHandle): Use java.awt.Component.getPeer() instead of
7310 java.awt.Component.peer directly.
7312 2004-02-10 David Jee <djee@redhat.com>
7314 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7315 (gtkSetLabel): New native method definition.
7316 (setLabel): Use gtkSetLabel.
7317 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7318 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7320 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7322 * include/powerpc-signal.h: Revert 2004-01-21 change.
7323 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7324 from syscall for ppc32 versions.
7326 2004-02-08 Per Bothner <per@bothner.com>
7328 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7329 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7330 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7331 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7332 Pass ByteOrder parameter to most methods, since the underlying
7333 ByteBuffer's order isn't always what we should use.
7334 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7335 * java/nio/DirectByteBufferImpl.java: Likewise.
7336 Use ByteBufferHelper methods.
7337 * java/nio/MappedByteBufferImpl.java: Likewise.
7338 (compact): Use shiftDown.
7339 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7340 (get, put): Use ByteBufferHelper.
7341 (compact): Use new shiftDown method.
7342 (duplicate(boolean)): New helper method.
7343 (duplicate, asReadOnlyBuffer): Use it.
7344 (order): Return endian field.
7345 * java/nio/DoubleViewBufferImpl.java: Likewise.
7346 * java/nio/FloatViewBufferImpl.java: Likewise.
7347 * java/nio/IntViewBufferImpl.java: Likewise.
7348 * java/nio/LongViewBufferImpl.java: Likewise.
7349 * java/nio/ShortViewBufferImpl.java: Likewise.
7350 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7351 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7352 (compact): Re-implement using shiftDown.
7354 2004-02-08 Andreas Jaeger <aj@suse.de>
7356 * include/x86_64-signal.h: Fix typo.
7358 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7360 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7362 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7364 2004-02-06 Michael Koch <konqueror@gmx.de>
7366 * java/io/ObjectInputStream.java
7367 (currentClassLoader): Reverted to old version of this method.
7369 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7371 * java/io/ObjectInputStream.java: Made all calls
7372 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7373 use cached info from ObjectStreamClass. (readClassDescriptor):
7374 Cache more information in ObjectStreamClass. (processResolution,
7375 readFields): Use cached info from ObjectStreamClass.
7376 (newObject): Throw exception instead of returning null for failure.
7377 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7378 setCharField, setDoubleField, setFloatField, setIntField,
7379 setLongField, setShortField, setObjectField, readObjectParams):
7380 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7382 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7383 (setClass): Added call to cacheMethods() (findMethod): New method.
7384 (cacheMethods): New method. (ObjectStreamClass): Added call to
7385 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7386 AccessController.doPrivileged to invoke setAccessible.
7387 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7388 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7390 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7391 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7392 isPrimitive): Made safe for cases where type == null.
7393 (setBooleanField, setByteField, setCharField, setShortField,
7394 setIntField, setLongField, setFloatField, setDoubleField,
7395 setObjectField): New methods.
7397 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7399 * java/awt/Component.java (getFont): Return a default font
7402 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7403 (Scrollbar (int, int, int, int, int)): Make default page
7405 (setValues): Only call peer.setValues if one of the values has
7407 (generateName): New method.
7408 (getUniqueLong): New method.
7409 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7410 (range_scrollbar): Remove structure.
7411 (post_adjustment_event): Remove function.
7412 (post_change_event): Accept jobject argument.
7413 (create): Cast jints to gdoubles. Round scrollbar values to the
7414 nearest integer. Clamp min, max and value settings.
7415 (connectJObject): Connect hook to widget->window.
7416 (connectSignals): Remove range_scrollbar structure variables.
7417 Remove "move-slider" connection. Pass global peer reference to
7418 "value-changed" callback.
7419 (setLineIncrement): Cast jint value to gdouble.
7420 (setPageIncrement): Likewise.
7421 (setValues): Likewise. Clamp min, max and value settings.
7423 2004-02-05 Michael Koch <konqueror@gmx.de>
7425 * javax/swing/AbstractCellEditor.java
7426 (getCellEditorValue): Removed.
7427 * javax/swing/Box.java: Reformated.
7428 (serialVersionUID): New field.
7429 * javax/swing/ButtonGroup.java:
7430 Removed some weird whitespace.
7431 * javax/swing/CellEditor.java: Reformated.
7432 * javax/swing/CellRendererPane.java
7433 (serialVersionUID): New field.
7434 (AccessibleCellRendererPaneserialVersionUID): New field.
7435 * javax/swing/DefaultListModel.java
7436 (serialVersionUID): New field.
7437 * javax/swing/JEditorPane.java
7438 (serialVersionUID): New field.
7439 (setPage): Throws IOException.
7440 (addHyperlinkListener): Implemented.
7441 (removeHyperlinkListener): Implemented.
7442 (getHyperlinkListener): New method.
7443 * javax/swing/JFileChooser.java
7444 (serialVersionUID): New field.
7445 (AccessibleJFileChooser.serialVersionUID): New field.
7446 (addActionListener): Implemented.
7447 (removeActionListener): Implemented.
7448 (getActionListeners): New method.
7449 * javax/swing/JFormattedTextField.java
7450 (serialVersionUID): New field.
7451 (AbstractFormatter.serialVersionUID): New field.
7452 (clone): Throws CloneNotSupportedException
7453 (setEditValid): Add missing argument.
7454 (stringToValue): Throws ParseExcpetion.
7455 (valueToString): Throws ParseException.
7456 (commitEdit): Throws ParseException.
7457 * javax/swing/JLabel.java
7458 (serialVersionUID): New field.
7459 * javax/swing/JList.java
7460 (serialVersionUID): New field.
7461 (addListSelectionListener): Reformated.
7462 (removeListSelectionListener): Reformated.
7463 (getListSelectionListeners): New method.
7464 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7466 (serialVersionUID): New field.
7467 * javax/swing/table/AbstractTableModel.java
7468 (getValueAt): Removed.
7469 (getColumnCount): Removed.
7470 (getRowCount): Removed.
7472 2004-02-05 Michael Koch <konqueror@gmx.de>
7474 * java/awt/datatransfer/DataFlavor.java
7475 (imageFlavor): Javadoc added.
7476 (javaJVMLocalObjectType): Fixed.
7478 2004-02-05 Michael Koch <konqueror@gmx.de>
7480 * java/lang/Thread.java
7481 (Thread): Reordered.
7482 (setContextClassLoader): Fixed javadoc comment.
7483 (setPriority): Reordered.
7485 (initialize_native): Reordered.
7486 (gen_name): Reordered.
7488 2004-02-05 Michael Koch <konqueror@gmx.de>
7490 * java/lang/Thread.java: Reordered fields, reformated much code,
7491 no functional changes, some variables renamed, javadoc comments
7494 2004-02-05 Michael Koch <konqueror@gmx.de>
7496 * java/util/zip/Deflater.java,
7497 java/util/zip/DeflaterOutputStream.java,
7498 java/util/zip/GZIPInputStream.java:
7499 Reformated and javadoc comments merged from classpath.
7501 2004-02-05 Michael Koch <konqueror@gmx.de>
7503 * gnu/java/nio/NIOServerSocket.java
7504 (impl): Unused, removed.
7505 * gnu/java/nio/SocketChannelImpl.java
7506 (finnishConnect): Don't throw NoConnectionPendingException if not
7507 connected or no connection pending.
7509 2004-02-02 Graydon Hoare <graydon@redhat.com>
7511 * javax/swing/SwingUtilities.java: Many new functions.
7512 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7513 * javax/swing/basic/BasicGraphicsUtils.java
7514 (getPreferredButtonSize): Start layout from top-left corner.
7516 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7518 * java/awt/geom/AffineTransform.java:
7519 Corrected comments on the field definitions for
7521 (shear): Fixed few errors that caused shear
7522 transformation to be performed incorrectly.
7523 (createInverse): Fixed to return correct
7524 inverse of the given matrix.
7526 2004-02-03 Tom Tromey <tromey@redhat.com>
7528 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7529 PATH or LD_LIBRARY_PATH is not set in parent environment.
7531 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7533 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7534 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7535 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7536 java/awt/Component.java, java/awt/Container.java,
7537 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7538 java/awt/LayoutManager2.java, java/awt/List.java,
7539 java/awt/Menu.java, java/awt/MenuBar.java,
7540 java/awt/MenuItem.java, java/awt/Polygon.java,
7541 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7542 java/awt/Scrollbar.java, java/awt/TextArea.java,
7543 java/awt/TextField.java,
7544 java/awt/image/renderable/RenderContext.java,
7545 javax/swing/JApplet.java: Fix handling of alias methods, where a
7546 method has been deprecated in favour of a new one with the same
7547 funtion but a different name. Put the method implementation in
7548 the deprecated method and have the new method call the
7549 deprecated one. Make all other code call the new method.
7551 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7553 * gnu/java/nio/DatagramChannelImpl.java
7554 (inChannelOperation): New field.
7555 (isInChannelOperation): New accessor.
7556 (setInChannelOperation): New modifier.
7557 (receive): Use capacity() - position() of destination
7558 buffer instead of remaining(). Set and reset our "in
7559 channel operation indicator" before and after delegating
7560 the receive to our datagram socket. Removed testing code.
7561 Update destination buffer's current position if it is
7562 backed by a byte array (hasArray() is true).
7563 (send): Set and reset our "in channel operation indicator"
7564 before and after delegating the send to our datagram socket.
7565 Removed testing code. Update source buffer's current position
7566 if it is backed by a byte array (hasArray() is true).
7567 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7568 Use capacity() - position() of destination buffer instead
7570 * java/net/DatagramSocket.java (receive): Don't throw an
7571 IllegalBlockingModeException if we have a non-blocking
7572 channel which initiated this operation.
7575 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7577 * configure.in: Add pkgconfig check for glib and gthread.
7578 * configure: Regenerate.
7580 2004-02-01 Michael Koch <konqueror@gmx.de>
7582 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7584 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7585 * verify.cc (debug_print): Mark 'fmt' unused.
7587 2004-01-30 Michael Koch <konqueror@gmx.de>
7589 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7590 * configure: Regenerated.
7591 * glib-2.0.m4: Removed.
7592 * gtk-2.0.m4: Removed.
7593 * libart.m4: Removed.
7596 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7598 * gnu/java/net/PlainSocketImpl.java
7599 (inChannelOperation): New field.
7600 (isInChannelOperation): New accessor.
7601 (setInChannelOperation): New modifier.
7602 * gnu/java/nio/ServerSocketChannelImpl.java
7603 (accept): Set and reset our server socket's PlainSocketImpl's
7604 "in channel operation" indicator before and after delegating
7605 the accept to our server socket.
7606 * gnu/java/nio/SocketChannelImpl.java
7607 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7608 operation" indicator before and after delegating the operation to
7612 * java/net/ServerSocket.java (implAccept): Don't throw an
7613 IllegalBlockingModeException if we have a non-blocking
7614 channel which initiated this accept operation.
7615 * java/net/Socket.java (connect): Don't throw an
7616 IllegalBlockingModeException if we have a non-blocking
7617 channel which initiated this connect operation.
7618 * java/nio/channels/spi/AbstractSelectableChannel.java
7619 (configureBlocking): Only call implConfigureBlocking() if
7620 the desired blocking mode is different from our current one.
7622 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7624 * java/io/BufferedReader.java (sbuf): New field.
7625 (readLine): Use String.valueOf instead of new String() as per
7626 Per Bothner's suggestion. Use instance sbuf field instead of a
7627 local StringBuffer instance.
7628 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7629 caller's buffer to refill().
7630 (read(void)): Pass our internal work buffer to refill if our
7631 input queue is empty.
7632 (refill): Changed return type to int. Use the specified buffer
7633 instead of our work buffer as per Bryce McKinlay's suggestion.
7634 Return the number of characters read or -1 for EOF.
7636 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7638 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7640 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7642 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7643 * Makefile.in: Re-generated.
7644 * gnu/awt/xlib/XFontPeer.java: New file.
7645 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7646 (setClip): Commented out debug printout.
7647 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7648 (getFontPeer): Return XFontPeer.
7649 (getLocalGraphicsEnvironment): New method.
7650 (getClasspathFontPeer): New method.
7651 (createFont): New method.
7653 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7655 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7658 2004-01-29 Kim Ho <kho@redhat.com>
7660 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7661 (gtkLayoutSetVisible): New method
7662 (setMenuBar): Hide layout before setting MenuBar
7663 and reshow it after.
7664 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7665 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7667 2004-01-28 Michael Koch <konqueror@gmx.de>
7669 * gnu/java/lang/ClassHelper.java
7670 (getPackagePortion): Removed.
7672 2004-01-28 Michael Koch <konqueror@gmx.de>
7674 * javax/swing/JComponent.java
7675 (listenerList): Initalize globally.
7676 (ancestor_list): Removed.
7677 (veto_list): Removed.
7678 (change_list): Removed.
7679 (get_veto_list): Removed.
7680 (get_change_list): Removed.
7681 (get_ancestor_list): Removed.
7682 (removeAncestorListener): Reimplemented.
7683 (removePropertyChangeListener): Likewise.
7684 (removeVetoableChangeListener): Likewise.
7685 (addAncestorListener): Likewise.
7686 (addPropertyChangeListener): Likewise.
7687 (addVetoableChangeListener): Likewise.
7688 (getListeners): New method.
7689 (getAncestorListeners): Likewise.
7690 (getVetoableChangeListeners): Likewise.
7691 (fireVetoableChange): Throws PropertyVetoException.
7692 * javax/swing/JEditorPane.java
7693 (JEditorPane): Throws IOException.
7695 2004-01-28 David Jee <djee@redhat.com>
7697 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7698 (create): Set the default foreground color to
7699 java.awt.SystemColor.windowText.
7701 2004-01-27 Michael Koch <konqueror@gmx.de>
7703 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7704 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7705 Reindented to merge with classpath.
7707 2004-01-27 David Jee <djee@redhat.com>
7709 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7710 (addExposeFilter): Handle GtkFramePeer separately.
7711 (removeExposeFilter): Likewise.
7713 2004-01-27 Michael Koch <konqueror@gmx.de>
7715 * gnu/java/net/protocol/http/Connection.java
7716 (getOutputStream): Fixed typo.
7718 2004-01-27 Michael Koch <konqueror@gmx.de>
7720 * java/lang/Class.java
7721 (getConstructor): Removed SecurityException from throws clause.
7722 (_getConstructors): Likewise.
7723 (getConstructors): Likewise.
7724 (getDeclaredConstructor): Likewise.
7725 (getDeclaredClasses): Likewise.
7726 (getDeclaredConstructors): Likewise.
7727 (getDeclaredField): Likewise.
7728 (getDeclaredMethod): Likewise.
7729 (getDeclaredMethods): Likewise.
7730 (getField): Likewise.
7731 (getMethod): Likewise.
7732 (getMethods): Likewise.
7734 2004-01-27 Kim Ho <kho@redhat.com>
7736 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7737 (removeMenuBarPeer): Remove MenuBarPeer argument.
7738 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7739 (dispose): Call native method.
7740 * java/awt/Frame.java (setMenuBar): Create and remove
7741 MenuBar peers only if the Frame has a peer.
7742 (addNotify): Create the MenuBar peer if one exists.
7743 (removeNotify): Remove MenuBar peer if one exists.
7744 * java/awt/Menu.java: Fix imports.
7745 (addNotify): Don't use full class name.
7746 (removeNotify): Call removeNotify on all children.
7747 * java/awt/MenuBar.java (removeNotify): Call
7748 removeNotify on all children.
7749 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7750 (removeMenuBarPeer): Remove MenuBarPeer argument.
7751 Iterate through children to find the Frame's MenuBar.
7752 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7754 (dispose): Remove references to the MenuComponent.
7756 2004-01-27 Michael Koch <konqueror@gmx.de>
7758 * javax/swing/AbstractCellEditor.java: Reformated.
7759 * javax/swing/DefaultListSelectionModel.java
7760 (listenerList): Made protected.
7761 (addListSelectionListener): Javadoc added.
7762 (removeListSelectionListener): Likewise.
7763 (getListeners): Likewise.
7764 (getListSelectionListeners): Likewise.
7765 * javax/swing/JComboBox.java: Merged copyright year.
7766 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7768 2004-01-26 Andrew Haley <aph@redhat.com>
7770 * javax/swing/table/JTableHeader.java: Extend JComponent
7772 2004-01-26 Kim Ho <kho@redhat.com>
7774 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7777 2004-01-26 Kim Ho <kho@redhat.com>
7779 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7781 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7782 height and let the Layout Managers readjust anything that
7784 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7785 (moveLayout): New method. Shift everything in the Gtk
7786 layout in the Y direction by an offset.
7788 2004-01-26 David Jee <djee@redhat.com>
7790 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7791 (handleEvent): Implemented. Handles PaintEvents.
7792 (paint): Implemented. Use GTK native methods to queue updates
7793 for this heavyweight peer.
7794 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7795 (handleEvent): Removed.
7796 * java/awt/Component.java
7797 (paint): Implemented. Explictly paint the heavyweight peer.
7798 (update): Clear the background for heavyweight components.
7799 (paintAll): No need to call peer.paint() anymore.
7800 (processEvent): Don't process PaintEvents here. It's now done in
7801 the peer's handleEvent().
7802 (processPaintEvent): Removed.
7803 * java/awt/Container.java
7804 (paint): No need to call super.paint(). Visit heavyweight
7806 (update): Don't clear the background here. It's done in
7808 (visitChildren): Added check to not recurse into Containers.
7809 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7810 (filter_expose_event_handler): New method. Filter unwanted
7811 expose events while painting heavyweight peers.
7812 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7813 New method. Connect filter and block pre_event_handler.
7814 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7815 New method. Disconnect filter and unblock pre_event_handler.
7816 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7817 New method. Invalidate and update given area.
7818 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7819 (pre_event_handler): Add checks for unwanted expose events.
7821 2004-01-26 David Jee <djee@redhat.com>
7823 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7824 (find_bg_color_widget): For GtkButton, return its child.
7826 2004-01-26 Kim Ho <kho@redhat.com>
7828 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7830 (setMenuBar): Grab MenuBar height and change insets.
7831 (setBounds): Account for MenuBar height.
7832 (postInsetsChangedEvent): Ditto.
7833 (postSizeAllocateEvent): Remove.
7834 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7835 (menubar_resize_cb): Remove
7836 (setMenuBarPeer): Remove callback.
7837 (getMenuBarHeight): Use size requisition instead of
7840 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7842 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7843 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7845 (setColumns): Remove FIXME -- peer will retrieve number of
7846 columns by calling getColumns.
7847 (setRows): Likewise for number of rows.
7848 (next_text_number): New field.
7849 (paramString): Fix param string.
7850 (generateName): New method.
7851 (getUniqueLong): New method.
7853 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7855 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7856 image observer of image loading status.
7857 (getImage (String)): Start image production.
7858 (getImage (URL)): Likewise.
7860 2004-01-25 Michael Koch <konqueror@gmx.de>
7862 * java/lang/Class.java: Imports reworked, reformated.
7863 (Class): Javadoc added.
7864 (forName): Likewise.
7865 (getClasses): Likewise.
7866 (getClassLoader): Likewise.
7867 (getComponentType): Likewise.
7868 (getConstructor): Likewise.
7869 (getConstructors): Likewise.
7870 (getDeclaredConstructor): Likewise.
7871 (getDeclaredClasses): Likewise.
7872 (getDeclaredConstructors): Likewise.
7873 (getDeclaredField): Likewise.
7874 (getDeclaredMethod): Likewise.
7875 (getDeclaredMethods): Likewise.
7876 (getDeclaringClass): Likewise.
7877 (getField): Likewise.
7878 (getInterfaces): Likewise.
7879 (getMethod): Likewise.
7880 (getMethods): Likewise.
7881 (getModifiers): Likewise.
7882 (getName): Likewise.
7883 (getResource): Likewise.
7884 (getResourceAsStream): Likewise.
7885 (getSigners): Likewise.
7886 (setSigners): Likewise.
7887 (getSuperclass): Likewise.
7888 (isArray): Likewise.
7889 (isAssignableFrom): Likewise.
7890 (isInstance): Likewise.
7891 (isInterface): Likewise.
7892 (isPrimitive): Likewise.
7893 (newInstance): Likewise.
7894 (getProtectionDomain): Likewise.
7895 (toString): Likewise.
7897 (initializeClass): Likewise.
7898 (finalize): Likewise.
7900 2004-01-24 Michael Koch <konqueror@gmx.de>
7902 * gnu/java/net/protocol/jar/Connection.java
7905 (gotHeaders): Removed.
7906 (getHeaderField): Removed.
7907 (getHeaderFields): Removed.
7908 (getHeaderFieldKey): Removed.
7910 (getField): Removed.
7911 (getHeaders): Removed.
7913 2004-01-24 Michael Koch <konqueror@gmx.de>
7915 * Makefile.am: Added library version to gtk peer lib.
7916 * Makefile.in: Regenerated.
7918 2004-01-24 Michael Koch <konqueror@gmx.de>
7920 * java/util/zip/InflaterInputStream.java: Merged class documentation
7923 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7925 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7926 header. For __powerpc64__ provide the default-signal.h definitions
7928 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7929 instead of the dummy definitions.
7930 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7931 (powerpc64*-*): Remove with_libffi_default.
7932 Only add -mminimal-toc for 64-bit compilations.
7933 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7934 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7935 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7936 * configure: Rebuilt.
7938 2004-01-23 Michael Koch <konqueror@gmx.de>
7940 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7942 2004-01-23 Michael Koch <konqueror@gmx.de>
7944 * java/lang/VMClassLoader.java: Reworked imports.
7946 2004-01-23 Michael Koch <konqueror@gmx.de>
7948 * javax/swing/AbstractAction.java: Reformated.
7950 2004-01-23 Michael Koch <konqueror@gmx.de>
7952 * java/text/CollationElementIterator.java:
7953 (setText): New method.
7955 2004-01-23 Michael Koch <konqueror@gmx.de>
7957 * gnu/java/nio/FileLockImpl.java:
7958 Fixed filename in copyright.
7959 (released): Removed.
7960 (finalize): New method.
7961 * gnu/java/nio/natFileLockImpl.cc
7962 (releaseImpl): Implemented.
7963 * java/nio/channels/FileChannelImpl.java:
7965 (lock): Implemented.
7966 (lockImpl): New method.
7967 (tryLock): Implemented.
7968 (tryLockImpl): New method.
7969 * java/nio/channels/natFileChannelImpl.cc
7970 (lockImpl): New method.
7971 (tryLockImpl): New method.
7973 2004-01-23 Michael Koch <konqueror@gmx.de>
7975 * java/io/FileDescriptor.java
7977 (tryLock): New method.
7978 (unlock): New method.
7979 * java/io/natFileDescriptorEcos.cc
7981 (tryLock): New method.
7982 (unlock): New method.
7983 * java/io/natFileDescriptorPosix.cc
7985 (tryLock): New method.
7986 (unlock): New method.
7987 * java/io/natFileDescriptorWin32.cc
7989 (tryLock): New method.
7990 (unlock): New method.
7992 2004-01-23 Michael Koch <konqueror@gmx.de>
7994 * java/io/FileDescriptor.java
7995 (sync): Moved around, added javadoc.
8000 (setLength): Likewise.
8002 (getLength): Likewise.
8003 (getFilePointer): Likewise.
8005 (available): Likewise.
8006 (finalize): Likewise.
8008 2004-01-23 Michael Koch <konqueror@gmx.de>
8010 * javax/swing/AbstractAction.java: Reformated.
8011 (getPropertyChangeListeners): New method.
8012 * javax/swing/AbstractCellEditor.java: Reformated.
8013 (getCellEditorListeners): New method.
8014 * javax/swing/DefaultListSelectionModel.java
8015 (listenerList): New field.
8016 (listeners): Removed.
8017 (get_listeners): Removed.
8018 (addListSelectionListener): Rewritten.
8019 (removeListSelectionListener): Rewritten.
8020 (getListSelectionListeners): New method.
8021 (getListeners): New method.
8022 * javax/swing/JComboBox.java: Imports reworked.
8023 (addActionListener): Implemented.
8024 (removeActionListener): Implemented.
8025 (addItemListener): Implemented.
8026 (removeItemListener): Implemented.
8027 (addPopupMenuListener): Implemented.
8028 (removePopupMenuListener): Implemented.
8029 (getActionListeners): New method.
8030 (getItemListeners): New method.
8031 (getPopupMenuListeners): New method.
8033 2004-01-23 Michael Koch <konqueror@gmx.de>
8035 * gnu/java/net/protocol/http/Connection.java
8036 (connect): Don't initialize bufferedOutputStream if not needed.
8037 (sendRequest): Set property for content length if content is present.
8038 Write content only if present.
8039 (getOutputStream): Check if already connected, dont connect,
8040 initalize bufferedOutputStream if needed.
8042 2004-01-23 Michael Koch <konqueror@gmx.de>
8044 * java/io/FileDescriptor.java
8045 (in, out, err): Added javadoc.
8046 (static): Merged loading code.
8047 (fd, position): Moved around.
8049 2004-01-23 Michael Koch <konqueror@gmx.de>
8051 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
8054 2004-01-23 Michael Koch <konqueror@gmx.de>
8056 * java/lang/Class.java,
8057 java/lang/Object.java,
8058 java/lang/Thread.java: Merged copyright with classpath.
8060 2004-01-23 Michael Koch <konqueror@gmx.de>
8062 * java/io/FileDescriptor.java: Merged copyright with classpath to
8063 start merging this class.
8065 2004-01-22 Tom Tromey <tromey@redhat.com>
8068 * testsuite/libjava.lang/pr13107_2.xfail: New file.
8069 * testsuite/libjava.lang/pr13107_3.xfail: New file.
8070 * testsuite/libjava.lang/pr13107_3.java: New file.
8071 * testsuite/libjava.lang/pr13107_3.out: New file.
8072 * testsuite/libjava.lang/pr13107_2.java: New file.
8073 * testsuite/libjava.lang/pr13107_2.out: New file.
8074 * testsuite/libjava.lang/pr13107.java: New file.
8075 * testsuite/libjava.lang/pr13107.out: New file.
8076 * verify.cc (jsr_ptrs): Removed.
8077 (entry_points): Likewise.
8078 (struct subr_info): Likewise.
8079 (struct subr_entry_info): Likewise.
8080 (type_val::unused_by_subroutine_type): Likewise.
8081 (type::merge): Don't handle unused_by_subroutine_type.
8082 (type::print): Likewise.
8083 (state::flags): Removed.
8084 (state::subroutine): Likewise.
8085 (state::seen_subrs): Likewise.
8086 (state::NO_STACK): Likewise.
8087 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
8088 (state): Updated all methods.
8089 (state::clean_subrs): Removed.
8090 (state::state): Removed `ret_semantics' flag.
8091 (state::copy): Likewise.
8092 (state::add_subr): Removed.
8093 (state::enter_subroutine): Likewise.
8094 (type::set_return_address): New method.
8095 (handle_jsr_insn): Set return address on the type. Always
8096 invalidate PC after call.
8097 (check_nonrecursive_call): Removed.
8098 (~_Jv_BytecodeVerifier): Updated.
8099 (branch_prepass): Removed special handling of jsr.
8100 (note_branch_target): Likewise.
8101 (get_subroutine): Removed.
8102 (state::merge): Don't merge subroutines and don't handle
8103 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
8104 (state::note_variable): Removed.
8105 (state::is_unmerged_ret_state): Likewise.
8106 (state::print): Updated.
8107 (set_variable): Likewise.
8108 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
8109 and jsr_semantics arguments. Updated for new reverification
8111 (pop_jump): Rewrote.
8112 (construct_primitive_array_type): Updated.
8113 (state::next): Removed.
8114 (INVALID_STATE): New define.
8115 (state::INVALID): Removed.
8116 (state::NO_NEXT): New value.
8117 (state::pc, state::next): New fields.
8118 (state::get_pc): New method.
8119 (next_verify_pc): Removed.
8120 (next_verify_state): New field.
8121 (verify_instructions_0): Always check for falling off end.
8123 (linked_utf8): Removed.
8124 (states): Changed type.
8125 (type::state_mergeable_p): New method.
8126 (state::state_mergeable_p): Likewise.
8127 (handle_ret_insn): Removed most code.
8128 (state::reverify): New method.
8129 (add_new_state): Likewise.
8130 (state::set_pc): Likewise.
8132 2004-01-22 Jeff Sturm <jsturm@one-point.com>
8135 * testsuite/libjava.compile/PR13733.java: New file.
8136 * testsuite/libjava.compile/PR13733.xfail: New file.
8138 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
8139 Michael Koch <konqueror@gmx.de>
8141 * javax/swing/table/DefaultTableCellRenderer.java
8142 (DefaultTableCellRenderer): Added javadoc for the class and for
8143 the constructor, Border instance, create an EmptyBorder.
8144 (UIResource): Removed the comment at the end of the class
8145 (setForeground): New method.
8146 (setBackground): New method.
8147 (updateUI): New method.
8148 (getTableCellRendererComponent): Rewritten with the help of
8149 dvholten and Stephane Meslin-Weber.
8150 (validate): New method.
8151 (repaint): New method.
8152 (firePropertyChange): New method.
8153 (setValue): New method.
8155 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
8157 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8158 (connectJObject): Replace printf calls with g_assert statements.
8159 Move property-notify-event signal connection to ...
8160 (connectSignals): Connect property-notify-event signal. Iterate
8161 through the vbox's children to find layout.
8163 2004-01-22 Graydon Hoare <graydon@redhat.com>
8165 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
8166 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
8167 Predicate static initialization on GtkToolkit.useGraphics2D().
8168 * java/awt/Component.java (processPaintEvent): Consume event.
8169 * javax/swing/AbstractButton.java: Reimplement, document.
8170 * javax/swing/DefaultButtonModel.java: Reimplement, document.
8171 * javax/swing/JComponent.java (paint): Use double buffer.
8172 (listenerList): Enable member.
8173 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
8174 * javax/swing/JToggleButton.java
8175 (JToggleButton): Modify model constructor.
8176 * javax/swing/SwingUtilities.java
8177 (layoutCompoundLabel): Adjust arithmetic.
8178 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
8179 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8180 (getPreferredButtonSize): Include margins in calculation.
8181 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8182 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
8183 Receive up events from subordinate layout component.
8185 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
8187 * java/awt/Component.java (show): Set visible to true before
8190 2004-01-21 Kim Ho <kho@redhat.com>
8192 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
8194 (removeMenuBarPeer): Make package private.
8195 (setMenuBarPeer): Make package private.
8196 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8197 (menubar_resize_cb): Mark attributes unused.
8198 (getMenuBarHeight): ditto.
8200 2004-01-21 David Jee <djee@redhat.com>
8202 * java/awt/Container.java
8203 (LightweightDispatcher.handleEvent): Add an extra check to avoid
8204 dispatching MOUSE_ENTERED event twice. Translate the point for
8205 the mouse event target before dispatching the event.
8207 2004-01-20 Jakub Jelinek <jakub@redhat.com>
8209 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
8210 lib_org_w3c_dom_la_LDFLAGS): New.
8211 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
8212 * Makefile.in: Rebuilt.
8214 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
8216 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
8217 Calculate proper offsets for heavyweight components packed in
8218 lightweight containers.
8220 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8221 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8222 (native create): Add width parameter.
8223 (create): Calculate text entry width based on current font's
8224 metrics and number of columns. Set TextField's font if not
8225 already set. Call native create.
8226 (gtkEntryGetBorderWidth): New native method.
8227 (gtkEntryGetSize): Remove method.
8228 (getMinimumSize): Call minimumSize.
8229 (getPreferredSize): Call preferredSize.
8230 (minimumSize): Calculate minimum size based on backing
8231 GtkEntry's borders, font metrics and number of columns.
8232 (preferredSize): Likewise for preferred size.
8233 (get_border_width): New static function.
8235 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8236 Override GtkWindowPeer's setResizable method to account for menu
8237 bar height when setting the frame's size.
8239 2004-01-19 Matthias Klose <doko@debian.org>
8241 * libtool-version: Increased `current' to 6.
8243 2004-01-19 Kim Ho <kho@redhat.com>
8245 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8246 (connectJObject): Iterate through the vbox's children to find layout.
8248 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8250 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8251 isDispatchThread method to replace wrong test condition.
8253 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8255 * java/awt/EventQueue.java (pop): Prevent racing condition to add
8256 events to the queue out of order by acquiring locks in the proper
8257 order and not by releasing one before acquiring the other.
8259 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8261 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8262 visible so that dialog can be reused.
8264 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8266 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8267 events may be handled by any queue in the stack.
8269 2004-01-19 Kim Ho <kho@redhat.com>
8271 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8272 MenuBarPeer parameter.
8273 (removeMenuBarPeer): New native method.
8274 (setMenuBar): Call remove if menu bar is null. Adjust insets
8276 (postSizeAllocateEvent): New method. Called when menu bar size is
8277 allocated. Adjust insets and redo layout.
8278 (GtkFramePeer): Set menu bar during frame creation.
8279 (postConfigureEvent): Adjust position and size to accomodate
8281 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8282 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8283 (addNotify): Create the peer if it doesn't exist and call addNotify
8284 for the menu's items.
8285 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8286 * java/awt/MenuItem.java (addNotify): Create the peer if it
8288 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8289 (removeMenuBarPeer): New method. Remove menu bar on the current
8291 (setMenuBarPeer): Add the menu bar to the current frame and the
8292 callback for size-allocate events on the menu bar.
8293 (getMenuBarHeight): Add menu bar parameter.
8294 (menubar_resize_cb): New callback method for postSizeAllocate events.
8296 Also: Fix indentation on last ChangeLog entry.
8298 2004-01-16 Kim Ho <kho@redhat.com>
8300 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8301 (gtkWidgetGetDimensions): Remove.
8302 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8303 (gtkWidgetGetDimensions): Remove.
8305 2004-01-16 Tom Tromey <tromey@redhat.com>
8307 * java/awt/Container.java: Typo and indentation fixes.
8309 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8310 * java/lang/natVMClassLoader.cc: ...here. New file.
8311 * Makefile.in: Rebuilt.
8312 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8314 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8316 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8317 Discard GDK_ENTER_NOTIFY related to ungrabs.
8319 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8321 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8322 is called for an intermediate queue.
8324 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8326 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8327 (window_property_changed_cb): Set id_set.
8329 2004-01-16 Kim Ho <kho@redhat.com>
8331 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8332 it is a FileDialog and has dimensions of 0 by 0, then the initial
8333 size is set to size request plus insets.
8334 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8335 (gtkWidgetGetDimensions): Override method.
8336 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8337 (gtkWidgetGetDimensions): Override method. Returns size request plus
8340 2004-01-16 Andrew Haley <aph@redhat.com>
8342 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8343 * sysdep/i386/locks.h: Likewise.
8345 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8347 * java/awt/EventDispatchThread.java (run): Stop running when
8349 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8350 Reset the queue after transferring its contents.
8351 (push): Start a new dispatch thread if none is running.
8353 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8355 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8356 (doPolygon): set fill rule of polygon to
8357 WIND_EVEN_ODD by default.
8359 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8361 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8362 Implemented rendering hints related methods.
8363 (getDefaultHints): New helper method. Returns
8364 default rendering hints.
8365 (walkPath): changed to normalize path if
8366 the KEY_STROKE_CONTROL key is in "normalize" mode.
8367 (draw3DRect): changed coordinates of rectangle by +0.5
8368 if in "normalize" mode.
8370 2004-01-15 Tom Tromey <tromey@redhat.com>
8372 * Makefile.in: Rebuilt.
8373 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8374 (%.lo: %.java) Filter out StackTrace.lo.
8376 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8378 * configure.in: Add in AC_PREREQ(2.13)
8379 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8382 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8383 Tom Tromey <tromey@redhat.com>
8386 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8387 array to superclass.
8388 (init): Changed interface; add URLs here.
8389 (initialize): New static method.
8390 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8391 (_Jv_RunMain): ... not here.
8393 2004-01-14 Michael Koch <konqueror@gmx.de>
8395 * java/text/MessageFormat.java:
8396 Added descriptions to exceptions.
8397 This fixes PR libgcj/2429.
8399 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8401 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8402 (push): Make sure push is performed at the top of the thread stack.
8404 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8406 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8407 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8408 (native create): Add width and height parameters. Set text
8409 view's size request according to new parameters.
8410 (create): Calculate text view size based on current font's
8411 metrics and number of rows and columns. Set TextArea's font if
8412 not already set. Call native create.
8413 (getMinimumSize): Call minimumSize.
8414 (getPreferredSize): Call preferredSize.
8415 (getHScrollbarHeight): New method.
8416 (getVScrollbarWidth): New method.
8417 (minimumSize): Calculate minimum size based on scrollbar
8418 visibility, scrollbar sizes, font metrics and number of rows and
8420 (preferredSize): Likewise for preferred size.
8421 (gtkTextGetSize): Remove method.
8423 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8425 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8426 (initializeInsets): Remove method.
8427 (GtkComponentPeer): Initialize insets field. Remove call to
8429 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8431 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8433 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8434 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8435 (latestInsets): Remove field.
8436 (native create): Add insets parameter. Call
8437 window_get_frame_extents. Set the window's default size and
8438 size request based on its frame extents.
8439 (create): Initialize insets.
8440 (postInsetsChangedEvent): New method.
8441 (postConfigureEvent): Remove parameters top, left, bottom,
8442 right. Remove insets-related logic.
8443 (connectJObject): Handle property-notify-event.
8444 (window_get_frame_extents, request_frame_extents,
8445 property_notify_predicate, window_property_changed_cb): New
8447 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8448 (pre_event_handler): Remove insets-related logic for configure
8450 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8451 Update postConfigureEvent signature.
8453 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8455 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8456 to handle Window "Closing" events.
8458 2004-01-13 David Jee <djee@redhat.com>
8460 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8461 (setBackground): New method. Children with no explicitly-set
8462 background will be repainted with the parent container's new
8465 2004-01-13 David Jee <djee@redhat.com>
8467 * Makefile.am: Add BitwiseXORComposite.java.
8468 * Makefile.in: Regenerated.
8469 * gcj/Makefile.in: Regenerated.
8470 * include/Makefile.in: Regenerated.
8471 * testsuite/Makefile.in: Regenerated.
8473 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8475 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8476 not show modal dialogs twice and so that it allows showing a modal
8477 dialog from another modal dialog.
8479 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8481 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8482 and run secondary dispatch thread to process event queue while this
8485 2004-01-12 Graydon Hoare <graydon@redhat.com>
8487 * gnu/java/awt/gtk/GdkGraphics2D.java
8488 (static): Check GtkToolkit before initializing static state.
8489 (Graphics2D): Don't construct transform with 0.5 unit offset.
8491 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8493 * gnu/java/awt/BitwiseXORComposite.java: Add.
8494 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8495 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8496 (BitwiseXORComposite): Remove inner class.
8498 2004-01-11 Michael Koch <konqueror@gmx.de>
8500 * gnu/java/lang/reflect/TypeSignature.java
8501 (getEncodingOfClass): Documentation fixed.
8502 (getClassForEncoding): Give class loader to Class.forName().
8503 Documentation fixed.
8505 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8507 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8509 2004-01-11 Michael Koch <konqueror@gmx.de>
8511 * javax/swing/undo/StateEditable.java
8512 (RCSID): Removed redundant modifiers.
8514 2004-01-10 Michael Koch <konqueror@gmx.de>
8516 * javax/print/attribute/EnumSyntax.java
8517 (getStringTable): Made protected.
8518 (getEnumValueTable): Likewise.
8519 * javax/print/attribute/standard/JobKOctetsProcessed.java
8520 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8521 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8522 (JobMediaSheetsCompleted): Made class final.
8523 * javax/print/attribute/standard/OutputDeviceAssigned.java
8524 (getName): Fixed typo.
8525 * javax/print/attribute/standard/RequestingUserName.java
8526 (serialVersionUID): Fixed value.
8528 2004-01-10 Michael Koch <konqueror@gmx.de>
8530 * javax/swing/plaf/basic/BasicButtonUI.java,
8531 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8532 javax/swing/plaf/basic/BasicListUI.java,
8533 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8534 javax/swing/plaf/basic/BasicPanelUI.java,
8535 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8536 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8537 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8538 javax/swing/plaf/basic/BasicViewportUI.java:
8539 Fixed import statements.
8541 2004-01-10 Michael Koch <konqueror@gmx.de>
8543 * gnu/java/awt/image/ImageDecoder.java
8544 (produce): Made public.
8545 * gnu/java/awt/peer/GLightweightPeer.java,
8546 gnu/java/awt/peer/gtk/GtkToolkit.java:
8549 2004-01-10 Michael Koch <konqueror@gmx.de>
8551 * javax/swing/JRadioButtonMenuItem.java,
8552 javax/swing/JSeparator.java,
8553 javax/swing/JSplitPane.java,
8554 javax/swing/JTextPane.java,
8555 javax/swing/JToolBar.java,
8556 javax/swing/ListCellRenderer.java,
8557 javax/swing/ListModel.java,
8558 javax/swing/MenuElement.java,
8559 javax/swing/OverlayLayout.java,
8560 javax/swing/ProgressMonitor.java,
8561 javax/swing/ProgressMonitorInputStream.java,
8562 javax/swing/Renderer.java,
8563 javax/swing/RootPaneContainer.java,
8564 javax/swing/Scrollable.java,
8565 javax/swing/SingleSelectionModel.java,
8566 javax/swing/ToolTipManager.java,
8567 javax/swing/ViewportLayout.java,
8568 javax/swing/event/DocumentEvent.java,
8569 javax/swing/event/SwingPropertyChangeSupport.java,
8570 javax/swing/event/TreeSelectionEvent.java,
8571 javax/swing/event/UndoableEditEvent.java,
8572 javax/swing/text/AbstractDocument.java,
8573 javax/swing/text/AttributeSet.java,
8574 javax/swing/text/Caret.java,
8575 javax/swing/text/ComponentView.java,
8576 javax/swing/text/DefaultCaret.java,
8577 javax/swing/text/DefaultEditorKit.java,
8578 javax/swing/text/Document.java,
8579 javax/swing/text/EditorKit.java,
8580 javax/swing/text/GapContent.java,
8581 javax/swing/text/Keymap.java,
8582 javax/swing/text/MutableAttributeSet.java,
8583 javax/swing/text/PlainEditorKit.java,
8584 javax/swing/text/Segment.java,
8585 javax/swing/text/Style.java,
8586 javax/swing/text/StyledDocument.java,
8587 javax/swing/text/StyledEditorKit.java,
8588 javax/swing/text/TextAction.java,
8589 javax/swing/text/View.java: Fixed import statements.
8591 2004-01-08 Graydon Hoare <graydon@redhat.com>
8593 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8594 djee@redhat.com's recent inverse ordering of Container elements.
8596 2004-01-09 Michael Koch <konqueror@gmx.de>
8598 * gnu/java/lang/ArrayHelper.java
8599 (equalsArray): Removed.
8601 2004-01-09 Andrew Haley <aph@redhat.com>
8603 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8604 a Utf8Const field before looking at its class.
8606 2004-01-09 Michael Koch <konqueror@gmx.de>
8608 * javax/print/attribute/standard/DocumentName.java,
8609 javax/print/attribute/standard/JobHoldUntil.java,
8610 javax/print/attribute/standard/JobMessageFromOperator.java,
8611 javax/print/attribute/standard/JobName.java,
8612 javax/print/attribute/standard/JobOriginatingUserName.java,
8613 javax/print/attribute/standard/OutputDeviceAssigned.java,
8614 javax/print/attribute/standard/PrinterInfo.java,
8615 javax/print/attribute/standard/PrinterLocation.java,
8616 javax/print/attribute/standard/PrinterMakeAndModel.java,
8617 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8618 javax/print/attribute/standard/PrinterName.java,
8619 javax/print/attribute/standard/RequestingUserName.java: New files.
8620 * Makefile.am (javax_source_files): Added new files.
8621 * Makefile.in: Regenerated.
8623 2004-01-09 Michael Koch <konqueror@gmx.de>
8625 * javax/swing/AbstractAction.java,
8626 javax/swing/AbstractSet.java,
8627 javax/swing/Action.java,
8628 javax/swing/ActionMap.java,
8629 javax/swing/BoundedRangeModel.java,
8630 javax/swing/ButtonModel.java,
8631 javax/swing/CellEditor.java,
8632 javax/swing/CellRendererPane.java,
8633 javax/swing/ComboBoxEditor.java,
8634 javax/swing/DebugGraphics.java,
8635 javax/swing/DefaultCellEditor.java,
8636 javax/swing/DefaultCellRenderer.java,
8637 javax/swing/DefaultComboBoxModel.java,
8638 javax/swing/DefaultDesktopManager.java,
8639 javax/swing/DefaultFocusManager.java,
8640 javax/swing/DefaultListCellRenderer.java,
8641 javax/swing/Icon.java,
8642 javax/swing/JButton.java,
8643 javax/swing/JCheckBoxMenuItem.java,
8644 javax/swing/JDesktopPane.java,
8645 javax/swing/JEditorPane.java,
8646 javax/swing/JMenu.java,
8647 javax/swing/JPanel.java,
8648 javax/swing/JPasswordField.java,
8649 javax/swing/JPopupMenu.java,
8650 javax/swing/JProgressBar.java: Reworked imports.
8652 2004-01-09 Michael Koch <konqueror@gmx.de>
8654 * java/awt/geom/PathIterator.java
8655 (WIND_EVEN_ODD): Removed redundant modifiers.
8656 (WIND_NON_ZERO): Likewise.
8657 (SEG_MOVETO): Likewise.
8658 (SEG_LINETO): Likewise.
8659 (SEG_QUADTO): Likewise.
8660 (SEG_CUBICTO): Likewise.
8661 (SEG_CLOSE): Likewise.
8662 * java/awt/image/SinglePixelPackedSampleModel.java:
8663 Removed redundant semicolon.
8664 * java/io/ObjectInputStream.java
8665 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8666 * java/util/logging/Filter.java
8667 (isLoggable): Removed redundant modifier.
8668 * java/util/logging/LogManager.java:
8669 Removed redundant semicolon.
8670 * java/util/logging/XMLFormatter.java
8671 (format): Removed unused variable "key".
8673 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8675 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8676 New name for the former setFile native method.
8677 (setFile): New method.
8678 (setDirectory): Implemented.
8679 (connectSignals): New native method.
8680 (setFilenameFilter): Improve comment.
8681 (getGraphics): Comment.
8682 (gtkHideFileDialog): New method.
8683 (gtkDisposeFileDialog): New method.
8684 (gtkSetFilename): New method.
8685 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8686 for FileDialog for now.
8688 (dispose): New method.
8689 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8690 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8691 deprecated creation functions. Make dialog modal. Add it to the
8693 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8695 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8697 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8699 (window_closed): New function.
8700 (ok_clicked): New function.
8701 (cancel_clicked): New function.
8703 2004-01-08 Michael Koch <konqueror@gmx.de>
8705 * javax/swing/JLayeredPane.java: Revert changes to standard
8706 boilerplate, reworked imports.
8708 2004-01-07 Tom Tromey <tromey@redhat.com>
8711 * verify.cc (state::merge): Copy changed locals out of subroutine
8713 (state::FLAG_CHANGED): New const.
8714 (state::FLAG_UNUSED): Likewise.
8715 (state::local_changed): Removed. Updated all users.
8716 (state::flags): New field.
8717 (state::merge): Added jsr_semantics argument, more logic.
8718 (push_jump_merge): Added jsr_semantics argument.
8719 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8720 merging through the jsr instruction.
8722 2004-01-07 Tom Tromey <tromey@redhat.com>
8724 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8727 2004-01-07 Graydon Hoare <graydon@redhat.com>
8729 * java/awt/Container.java (LightweightDispatcher): Implement.
8730 (visitChild): Reuse graphics object.
8731 (dispatchEventImpl): Optionally dispatch to lightweight.
8732 (addNotifyContainerChildren): Build LightweightDispatcher.
8734 2004-01-07 David Jee <djee@redhat.com>
8736 * java/awt/Container.java
8737 (update): Clear only the clipped region, instead of clearing the
8739 (visitChildren): Visit children in descending order.
8741 2004-01-07 Michael Koch <konqueror@gmx.de>
8743 * java/lang/reflect/Array.java: Merged documentation with classpath.
8745 2004-01-07 Michael Koch <konqueror@gmx.de>
8747 * java/text/CollationElementIterator.java
8748 (textIndex): Renamed from index.
8749 * java/text/CollationKey.java
8750 (collator): New member.
8751 (CollationKey): New argument for parent collator.
8752 (equals): Check for same collator, source string and key array.
8753 * java/text/RuleBasedCollator.java:
8755 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8757 (getCollationElementIterator): Rewritten.
8758 (getCollationKey): Added new argument to CollationKey constructor.
8760 2004-01-07 Michael Koch <konqueror@gmx.de>
8762 * gnu/java/nio/DatagramChannelImpl.java
8763 (blocking): Removed.
8764 (DatagramChannelImpl): Call configureBlocking().
8765 (implConfigureBlocking): Dont initialize blocking.
8766 * gnu/java/nio/ServerSocketChannelImpl.java
8767 (blocking): Removed.
8768 (ServerSocketChannelImpl): Call configureBlocking().
8769 (implConfigureBlocking): Dont initialize blocking.
8770 * gnu/java/nio/SocketChannelImpl.java
8771 (blocking): Removed.
8772 (SocketChannelImpl): Call configureBlocking().
8773 (implConfigureBlocking): Dont initialize blocking.
8774 (connect): Use isBlocking().
8775 * java/nio/channels/spi/AbstractSelectableChannel.java
8776 (configureBlocking): Use blockingLock() instead of LOCK.
8777 Set blocking after successfully called implConfigureBlocking().
8778 (register): Use blockingLock() instead of LOCK.
8780 2004-01-07 Michael Koch <konqueror@gmx.de>
8782 * java/net/ServerSocket.java (isBound): Fixed documentation.
8784 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8786 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8787 (changeEvent): Create event object on demand.
8788 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8789 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8790 fireStateChanged): Re-written.
8791 * javax/swing/event/EventListenerList.java: Reformatted, document
8793 (toString): Implemented.
8794 (getListeners): Re-written.
8795 (remove): Re-written.
8797 (NO_LISTENERS): New singleton field.
8798 (listenerList): Declare as transient; document.
8799 (serialVersionUID): Document.
8800 (getListenerCount(Class)): More efficient implementation,
8801 also accepts null argument. Improve Javadoc.
8802 (getListenerCount()): Remove unnecessary cast; docfix.
8803 * javax/swing/undo/UndoableEditSupport.java:
8804 Re-format, document.
8805 (UndoableEditSupport): Set realSource field. Improve documentation.
8806 (_postEdit): Iterate over cloned listener vector.
8807 (toString): Don't emit realSource.
8808 (beginUpdate, endUpdate): Support nested updates.
8809 (postEdit): Use compound edit if present.
8811 2004-01-06 Graydon Hoare <graydon@redhat.com>
8813 * java/awt/Container.java (swapComponents): Add forgotten
8814 function, required for JLayeredPane change.
8816 2004-01-06 Michael Koch <konqueror@gmx.de>
8818 * java/text/CollationElementIterator.java: Reformated.
8819 (CollationElementIterator): Changed order of arguments.
8820 * java/text/RuleBasedCollator.java
8821 (RuleBasedCollator): Merged class documentation.
8822 (CollationElement): Added documentation.
8823 (compare): Reformated, renamed arguments.
8825 (getCollationElementIterator): Likewise.
8826 (getCollationKey): Likewise.
8828 2004-01-06 Graydon Hoare <graydon@redhat.com>
8830 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8832 2004-01-06 Michael Koch <konqueror@gmx.de>
8834 * gnu/java/net/protocol/file/Connection.java:
8835 Reformated copyright.
8838 (gotHeaders): Removed.
8839 (getHeaderField): Removed.
8840 (getHeaderField): Removed.
8841 (getHeaderFieldKey): Removed.
8843 (getField): Removed.
8844 (getHeaders): Removed.
8846 2004-01-06 Michael Koch <konqueror@gmx.de>
8848 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8849 javax/print/attribute/standard/DateTimeAtCreation.java,
8850 javax/print/attribute/standard/DateTimeAtProcessing.java,
8851 javax/print/attribute/standard/JobImpressionsCompleted.java,
8852 javax/print/attribute/standard/JobKOctets.java,
8853 javax/print/attribute/standard/JobKOctetsProcessed.java,
8854 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8855 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8856 * Makefile.am (javax_source_files): Added new files.
8857 * Makefile.in: Regenerated.
8859 2004-01-06 Michael Koch <konqueror@gmx.de>
8861 * java/net/URLConnection.java
8862 (contentHandler): Removed.
8864 (getHeaderFields): Return an empty map instead of null.
8865 (getContent): Connect if needed, renamed "cType" to "type" and
8866 "contentHandler" to "ch" and made it a local variable.
8867 (getPermission): Don't use package in class name.
8868 (setDefaultRequestProperty): Fixed typo in documentation.
8869 (initializeDateFormats): Made locale a local variable.
8871 2004-01-06 Michael Koch <konqueror@gmx.de>
8873 * java/lang/Package.java
8874 (getPackage): Get the current class loader directly.
8875 * java/lang/SecurityManager.java
8876 (currentLoadedClass): Dont iterate over class contexts.
8877 (classLoaderDepth): Don't check class loaders if everything is allowed.
8879 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8881 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8882 (pre_event_handler): Set all insets to 0 when a Configure event
8883 is received for a GtkPlug.
8884 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8885 Make handle long, not int.
8886 (EmbeddedWindow()): New constructor.
8887 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8889 (setHandle): New method.
8890 (getHandle): Return long, not int.
8891 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8893 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8894 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8895 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8896 argument to GdkNativeWindow.
8897 (construct): New method.
8898 (embed): New method.
8900 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8901 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8902 (create(int, int)): New method.
8903 (create): Call new create method.
8904 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8906 (childResized): Remove native implementation. Implement in
8908 (getHScrollbarHeight, getVScrollbarWidth): Call
8909 gtk_widget_size_request to get scrollbar dimensions.
8910 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8911 call getVScrollbarWidth and getHScrollbarHeight when vertical
8912 and horizontal scrollbars respectively are needed.
8913 (doLayout): Enlarge child if it is smaller than the viewport.
8915 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8917 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8918 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8919 argument as per spec.
8921 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8923 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8925 (remove): Ditto. Also, Check for valid argument.
8926 (removeAll): Use peer interface method.
8927 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8928 native add function.
8929 (nativeRemove): New name for native remove function.
8930 (getHistory): New native function.
8931 (constructor): Generate ItemEvent.
8932 (add): Ditto, if selection is changed.
8933 (remove): Ditto, ditto.
8934 (removeAll): Add implementation.
8935 (handleEvent): Remove. Dead code.
8936 (choicePostItemEvent): Add comment.
8937 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8938 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8939 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8940 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8941 comments and fix condition to change selection.
8942 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8943 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8944 remove all capability.
8945 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8946 (item_activate): Add cast to remove compiler warning.
8948 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8950 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8951 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8952 (getPreferredSize): Call preferredSize.
8953 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8954 (getMinimumSize): Call minimumSize.
8955 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8956 (gtkWidgetGetDimensions): Return the peer widget's current size
8958 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8959 natural size request.
8961 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8963 Thanks to Brian Gough <bjg@network-theory.com>
8964 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8965 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8967 2004-01-04 Matthias Klose <doko@debian.org>
8969 * aclocal.m4: Rebuilt using "aclocal -I .".
8970 * configure: Rebuilt.
8972 2004-01-03 Per Bothner <per@bothner.com>
8974 * java/util/Date.java (parse): Fix a number of problems.
8975 (skipParens): Remove no-longer-needed method.