1 2004-08-20 Michael Koch <konqueror@gmx.de>
3 * configure.ac: Replaced all AC_TRY_COMPILE macros with
4 AC_COMPILE_IFELSE macros.
6 2004-08-20 Michael Koch <konqueror@gmx.de>
8 * configure.in: Renamed to configure.ac.
9 * configure.ac: New file.
10 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
11 include/config.h.in, testsuite/Makefile.in: Regenerated.
13 2004-08-20 Michael Koch <konqueror@gmx.de>
15 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
16 * aclocal.m4, configure: Regenerated.
18 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
19 Michael Koch <konqueror@gmx.de>
21 * configure.in, Makefile.am: Ported to automake 1.9.
22 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
23 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
26 2004-08-19 Tom Tromey <tromey@redhat.com>
28 * java/net/DatagramSocket.java: Fixed typo.
30 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
33 * java/net/URI.java (string): New field. Make all other fields
35 (readObject): Implemented.
36 (writeObject): Implemented.
39 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
42 * java/util/logging/Handler.java (isLoggable): Accept record if its
43 log level equals the threshold level. From Robin Green.
45 2004-08-18 David Daney <ddaney@avtrex.com>
47 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
50 2004-08-17 Michael Koch <konqueror@gmx.de>
52 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
53 * Makefile.in: Regenerated.
55 2004-08-16 Tom Tromey <tromey@redhat.com>
58 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
60 2004-08-16 Michael Koch <konqueror@gmx.de>
63 (math_c_files): Renamed from c_files.
64 (math_c_source_files): Renamed from c_source_files.
68 testsuite/Makefile.in: Regenerated.
70 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
72 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
73 to avoid autoconf warning.
76 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
78 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
79 localhostAddress to loopbackAddress.
80 * java/net/natInetAddressWin32.cc (lookup): Likewise.
82 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
84 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
85 boehm-gc's include dirs.
87 * include/boehm-gc.h: Include gc_config.h.
89 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
91 * java/net/InetAddress.java (loopbackAddress): Renamed from
93 (getByName): Return loopback address for null hostname, without
94 security check. Use lookup(), not getAllByName.
95 (getAllByName): Return loopback address for null hostname, without
97 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
100 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
103 Reported by Robin Green.
104 * defineclass.cc (handleField): Don't throw exception on unrecognised
105 modifier. Add FIXME comments for spec compliance.
106 (handleMethod): Likewise.
108 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
111 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
112 (Almost everywhere): add LOG calls, fix, add comments.
113 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
114 Add explicit check for LOCKED bit in slow case (PR 16662).
115 (_Jv_MonitorExit): Add casts in debug-only code.
116 Always release LOCKED bit before throwing exception.
117 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
118 isn't. Handle easy cases without lock acquisition.
119 (Object::wait): Use NotifyAll for lock inflation.
121 2004-08-12 David Daney <ddaney@avtrex.com>
123 * testsuite/libjava.lang/Process_1.java: New test.
124 * testsuite/libjava.lang/Process_2.java: New test.
125 * testsuite/libjava.lang/Process_3.java: New test.
126 * testsuite/libjava.lang/Process_4.java: New test.
127 * testsuite/libjava.lang/Process_5.java: New test.
128 * testsuite/libjava.lang/Process_6.java: New test.
129 * testsuite/libjava.lang/Process_1.out: Expected result.
130 * testsuite/libjava.lang/Process_2.out: Expected result.
131 * testsuite/libjava.lang/Process_3.out: Expected result.
132 * testsuite/libjava.lang/Process_4.out: Expected result.
133 * testsuite/libjava.lang/Process_5.out: Expected result.
134 * testsuite/libjava.lang/Process_6.out: Expected result.
136 2004-08-12 David Daney <ddaney@avtrex.com>
139 * java/lang/PosixProcess.java: Rewrote.
140 * java/lang/natPosixProcess.cc: Rewrote.
141 * java/lang/Runtime.java (execInternal): Declare throws IOException.
142 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
143 * posix-threads.cc (block_sigchld) New function.
144 (_Jv_ThreadRegister) Use it.
145 (_Jv_ThreadStart) Use it.
146 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
147 * Makefile.am: ... to specify extra native headers.
148 * configure: Regenerated.
149 * include/config.h: Regenerated.
150 * Makefile.in: Regenerated.
151 * gcj/Makefile.in: Regenerated.
152 * include/Makefile.in: Regenerated.
153 * testsuite/Makefile.in: Regenerated.
155 2004-08-12 Diego Novillo <dnovillo@redhat.com>
157 PR tree-optimization/16867
158 * testsuite/libjava.lang/PR16867.java: New test.
160 2004-08-09 Per Bothner <per@bothner.com>
162 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
163 with private fields and access methods.
164 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
165 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
166 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
167 ( _Jv_makeUtf8Const): Rewrite using new constructors.
168 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
169 * defineclass.cc: Use new _Utf8Const access/convenience methods.
171 * resolve.cc: Likewise.
172 * gcj/field.h: Likewise.
173 * include/jvm.h: Likewise.
174 * java/lang/Class.h: Likewise.
175 * java/lang/natClass.cc: Likwise.
176 * java/lang/natClassLoader.cc: Likewise
177 * java/lang/reflect/natMethod.cc: Likewise
178 * verify.cc: Likewise.
179 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
180 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
182 2004-08-10 Andrew Haley <aph@redhat.com>
184 * testsuite/libjava.lang/err14.java: New file.
185 * testsuite/libjava.lang/err14.out: New file.
187 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
189 * Makefile.am: Fix missing rename from x_nat_headers to
191 * Makefile.in: Regenerated.
193 2004-08-04 Andrew Haley <aph@redhat.com>
195 * java/security/BasicPermission.java: Don't check wildcards.
197 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
198 Michael Koch <konqueror@gmx.de>
200 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
201 * configure.in: Replaced all usages of AC_LINK_FILES by
204 configure: Regenerated.
206 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
207 Michael Koch <konqueror@gmx.de>
209 * acconfig.h: Removed.
210 * Makefile.am: Rename variables for xlib peer to include xlib and
211 gtk_c_headers to gtk_jni_headers.
212 * Makefile.in: Regenerated.
214 2004-08-04 Andrew Haley <aph@redhat.com>
216 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
219 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
221 * configure.in: Eliminate uses of changequote (mostly by quoting []).
222 Replace most top level 'dnl' comments with '#' comments, conforming
223 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
225 * configure: Rebuilt.
227 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
229 * acinclude.m4: Include no-executables.m4.
230 * aclocal.m4: Rebuild.
231 * configure.in: Convert to the autoconf 2.59 version of
232 of the no-executables hack, and also of the nonstandard CXX
233 hack and the multilibbed CC and CXX hack. Change prerequisite
235 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
236 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
237 testsuite/Makefile.in: Regenerate.
239 2004-08-03 Tom Tromey <tromey@redhat.com>
241 * jni.cc: Reindented.
243 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
245 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
247 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
249 * testsuite/libjava.compile/PR16701.java: New test.
251 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
253 * java/util/Collection.java, java/util/List.java,
254 java/util/Map.java, java/util/Set.java,
255 java/util/SortedMap.java, java/util/SortedSet.java:
256 Added additional exceptions to documentation.
258 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
261 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
262 * configure. Regenerate.
263 * include/win32.h: Explicitly include winsock2.h
264 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
267 2004-07-30 Michael Koch <konqueror@gmx.de>
269 * java/util/zip/GZIPInputStream.java
270 (GZIPInputStream): Increase buffer size to 4k.
271 * java/util/zip/GZIPOutputStream.java
272 (GZIPOutputStream): Likewise.
273 * java/util/zip/Inflater.java
274 (setInput): Merged formating with GNU classpath.
275 * java/util/zip/InflaterInputStream.java
276 (InflaterInputStream): Increase buffer size to 4k.
277 (fill): Throw exception if stream ends early.
278 (read): Merged endless-loop with GNU classpath.
279 (skip): Increase buffer size to 2k.
281 2004-07-30 Michael Koch <konqueror@gmx.de>
283 * gnu/java/awt/EmbeddedWindow.java
284 (addNotify): Use AccessController to allow execution of privileged
287 2004-07-29 Michael Koch <konqueror@gmx.de>
289 * gnu/java/lang/MainThread.java:
290 Explicitely import used classes.
291 (args): Make it type String[].
293 2004-07-29 Dalibor Topic <robilad@kaffe.org>
295 * gnu/java/awt/ComponentDataBlitOp.java,
296 gnu/java/beans/ExplicitBeanInfo.java,
297 gnu/java/beans/IntrospectionIncubator.java,
298 gnu/java/beans/editors/ColorEditor.java,
299 gnu/java/beans/editors/FontEditor.java,
300 gnu/java/beans/editors/NativeBooleanEditor.java,
301 gnu/java/beans/editors/NativeByteEditor.java,
302 gnu/java/beans/editors/NativeDoubleEditor.java,
303 gnu/java/beans/editors/NativeFloatEditor.java,
304 gnu/java/beans/editors/NativeIntEditor.java,
305 gnu/java/beans/editors/NativeLongEditor.java,
306 gnu/java/beans/editors/NativeShortEditor.java,
307 gnu/java/beans/editors/StringEditor.java,
308 gnu/java/io/ClassLoaderObjectInputStream.java,
309 gnu/java/io/decode/Decoder.java,
310 gnu/java/io/encode/Encoder.java,
311 gnu/java/lang/ClassHelper.java,
312 gnu/java/locale/Calendar.java,
313 gnu/java/locale/Calendar_de.java,
314 gnu/java/locale/Calendar_en.java,
315 gnu/java/locale/Calendar_nl.java,
316 gnu/java/locale/LocaleInformation_de.java,
317 gnu/java/locale/LocaleInformation_en.java,
318 gnu/java/locale/LocaleInformation_nl.java:
321 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
323 * README: Remove obsolete info. Update bug URL.
325 * NEWS: Updated with news up to GCC 3.4 release.
327 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
329 * gnu/java/security/action/GetPropertyAction.java (setParameters):
330 Renamed from 'setName'. New 2-argument form with default value.
331 (run): Pass default 'value' parameter to System.getProperty().
332 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
334 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
337 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
339 * configure.in: Check for minimum GTK version 2.4 requirement.
340 * configure: Rebuilt.
342 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
344 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
345 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
347 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
349 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
350 address. Reduce sleep times. Synchronize with target threads before
351 attempting to interrupt them. Don't try to calibrate yeild count,
352 instead, always loop for a fixed time.
353 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
354 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
355 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
356 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
357 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
358 * testsuite/libjava.lang/pr179.java: Likewise.
359 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
360 time. Remove upper bounds check on sleep time.
362 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
364 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
365 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
367 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
369 * java/io/File.java (toURI): Throw RuntimeException, not
371 * java/lang/Runtime.java (exit): Qualify static sleep() call with
372 class name, not instance.
374 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
376 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
377 and gnu/java/security/action/SetAccessibleAction.java.
378 * Makefile.in: Rebuilt.
380 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
382 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
383 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
385 (DECLARE_PRIM_TYPE): Don't declare array vtables.
386 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
387 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
389 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
391 * Makefile.am: Replace jar, rmic and rmiregistry references with
392 gjar, grmic and grmiregistry.
393 * configure.in: Likewise.
394 * Makefile.in: Regenerate.
395 * configure: Likewise.
396 * gcj/Makefile.in: Likewise.
397 * include/Makefile.in: Likewise.
398 * testsuite/Makefile.in: Likewise.
400 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
402 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
403 for privileged getProperty calls.
404 * java/io/ObjectOutputStream.java (getField): No longer static. Use
405 SetAccessibleAction instead of anonymous class for doPrivileged call.
406 (getMethod): Likewise.
407 (setAccessible): New field. PrivilegedAction object to use when
408 calling setAccessible.
409 * java/io/ObjectStreamClass.java (calculateOffsets): Use
410 SetAccessibleAction instead of anonymous class for diPrivileged call.
411 (setFields): Likewise.
412 (getClassUID): Likewise.
413 (findMethod): Likewise.
414 * gnu/java/security/action/GetPropertyAction.java: New class.
415 * gnu/java/security/action/SetAccessibleAction.java: New class.
417 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
419 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
421 * testsuite/libjava.lang/Serialization.java: New test.
422 * testsuite/libjava.lang/Serialization.out: New.
424 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
426 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
427 missed in last commit.
429 2004-07-23 Mark Wielaard <mark@klomp.org>
431 * java/lang/System.java (static): Set http.agent system property when
433 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
434 from system property inside AccessController.doPrivileged() call.
435 (proxyPort): Made package private.
436 (proxyInUse): Likewise.
437 (proxyHost): Likewise.
438 (userAgent): Likewise.
440 2004-07-23 Mark Wielaard <mark@klomp.org>
442 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
445 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
447 * Makefile.am (ordinary_java_source_files): Add
448 DefaultContentHandlerFactory.java.
449 * Makefile.in: Rebuilt.
450 * java/net/URLConnection.java (defaultFactory): New field.
452 (getContentHandler): Renamed from 'setContentHandler'. Try
453 defaultFactory after user-set factory, if any. Search for content
454 handler implementations in gnu.java.net.content, not gnu.gcj.content.
455 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
457 (getLastModified): Implemented.
458 (getPermission): Create file permission here, instead of in
460 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
462 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
464 (getLastModified): Implemented.
465 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
466 Default implementation.
467 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
468 Implement using GdkPixbufDecoder.
470 2004-07-21 Michael Koch <konqueror@gmx.de>
472 * javax/swing/JTextArea.java
473 (setLineWrap): Fire property change event after new value is set.
474 (setTabSize): Likewise.
476 2004-07-21 Michael Koch <konqueror@gmx.de>
478 * javax/swing/JTable.java
479 (autoCreateColumnsFromModel): New field.
480 (autoResizeMode): Likewise.
481 (cellEditor): Likewise.
482 (cellSelectionEnabled): Likewise.
483 (columnModel): Likewise.
484 (dataModel): Likewise.
485 (defaultEditorsByColumnClass): Likewise.
486 (defaultRenderersByColumnClass): Likewise.
487 (editingColumn): Likewise.
488 (editingRow): Likewise.
489 (gridColor): Likewise.
490 (preferredViewportSize): Likewise.
491 (rowHeight): Likewise.
492 (rowMargin): Likewise.
493 (rowSelectionAllowed): Likewise.
494 (selectionBackground): Likewise.
495 (selectionForeground): Likewise.
496 (selectionModel): Likewise.
497 (showHorizontalLines): Likewise.
498 (showVerticalLines): Likewise.
499 (tableHeader): Likewise.
500 (JTable): Implemented.
501 (getColumnModel): Likewise.
502 (getSelectedRow): Likewise.
503 (getSelectionModel): Likewise.
504 (setModel): Likewise.
505 (setSelectionModel): Likewise.
506 (createScrollPaneForTable): New method.
507 (createDefaultDataModel): Likewise.
508 (createDefaultListSelectionModel): Likewise.
509 (getModel): Likewise.
510 (getTableHeader): Likewise.
511 (setTableHeader): Likewise.
512 (getColumnSelectionAllowed): Likewise.
513 (setColumnSelectionAllowed): Likewise.
514 (getRowSelectionAllowed): Likewise.
515 (setRowSelectionAllowed): Likewise.
516 (getAutoResizeMode): Likewise.
517 (setAutoResizeMode): Likewise.
518 (getColumnCount): Likewise.
519 (getRowCount): Likewise.
520 (getCellRenderer): Likewise.
521 * javax/swing/JTree.java
522 (cellRenderer): New field.
523 (editable): Likewise.
524 (rootVisible): Likewise.
525 (showsRootHandles): Likewise.
526 (getModel): New method.
527 (setModel): Likewise.
528 (isEditable): Likewise.
529 (setEditable): Likewise.
530 (isRootVisbile): Likewise.
531 (setRootVisible): Likewise.
532 (getShowsRootHandles): Likewise.
533 (setShowRootHandles): Likewise.
534 (getCellRenderer): Likewise.
535 (setCellRenderer): Likewise.
537 2004-07-21 Michael Koch <konqueror@gmx.de>
539 * javax/swing/JFormattedTextField.java
540 (setDocument): Implemented.
541 * javax/swing/JRootPane.java:
543 * javax/swing/JTable.java
544 (getDefaultRenderer): New method.
545 * javax/swing/JTextField.java
547 (getPreferredSize): Likewise.
548 * javax/swing/JToggleButton.java
549 (getAccessibleContext): Fix javadoc.
550 * javax/swing/JTree.java:
552 * javax/swing/JViewport.java:
555 2004-07-21 David Jee <djee@redhat.com>
557 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
558 Collect all native method declaration at the top.
559 (create): Set the filename filter if necessary.
560 (setDirectory): Call nativeSetDirectory().
561 (setFilenameFilter): Implement.
562 (filenameFilterCallback): New method.
563 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
564 (create): Configure dialog to show hidden files.
565 (filenameFilterCallback): New function.
566 (nativeSetFilenameFilter): New function.
567 (nativeSetDirectory): New function.
569 2004-07-21 Kim Ho <kho@redhat.com>
571 * javax/swing/plaf/basic/BasicSliderUI.java:
573 (paintTrack): Fill the track before painting
576 2004-07-21 Graydon Hoare <graydon@redhat.com>
578 patch from Roman Kennke <roman@ontographics.com>
579 * javax/swing/Spring.java: New file.
580 * javax/swing/SpringLayout.java: New file.
581 * Makefile.am: Add new files.
582 * Makefile.in: Regenerate.
584 2004-07-21 Graydon Hoare <graydon@redhat.com>
586 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
587 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
588 * javax/swing/ScrollPaneLayout.java: Likewise.
590 2004-07-21 Kim Ho <kho@redhat.com>
592 * javax/swing/DefaultDesktopManager.java:
593 (findMinimum): Removed.
594 (resizeFrame): Trust the UI to pass valid
596 * javax/swing/JOptionPane.java:
597 Implemented showInternalXXXDialog methods.
598 (startModal): New method.
599 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
600 (BorderListener::mouseDragged): Verify that the new
601 bounds are valid before passing them to the DesktopManager.
602 (preferredLayoutSize): Delegate
604 (minimumLayoutSize): Ditto.
605 (getSize): New method.
606 (GlassPaneDispatcher): Reimplemented by copying
607 a stripped down LightweightDispatcher from Container.
608 (getMinimumSize): Call minimumLayoutSize.
609 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
611 (mousePressed): Add ability to properly close
613 * javax/swing/plaf/basic/BasicToolBarUI.java:
614 (DragWindow): Set owner for DragWindow.
616 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
618 * java/awt/image/ShortLookupTable.java: New file.
619 * java/awt/image/ByteLookupTable.java: New file.
620 * Makefile.am: Added new files.
621 * Makefile.in: Regenerated.
623 2004-07-21 David Jee <djee@redhat.com>
625 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
626 (create(GtkContainerPeer)): New native method.
627 (create()): Call native create(), passing in the parent frame
628 as the paramter. Natively set the current file and directory.
629 (setFile): Construct an absolute filename before passing it to
631 (nativeGetDirectory): New method.
632 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
633 (window_closed): Removed.
634 (ok_clicked): Likewise.
635 (cancel_clicked): Likewise.
636 (handle_response): New method.
637 (create): Use GtkFileChooserDialog.
638 (connectSignals): Connect to handle_response.
639 (nativeGetDirectory): New method.
640 (nativeSetFile): Use GtkFileChooserDialog.
642 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
644 * java/awt/image/LookupTable.java: New file.
645 * Makefile.am: Added new file.
646 * Makefile.in: Regenerated.
648 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
650 * java/awt/image/Kernel.java: New file.
651 * Makefile.am: Added new file.
652 * Makefile.in: Regenerated.
654 2004-07-21 Olga Rodimina <rodimina@redhat.com>
656 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
657 * javax/swing/JMenu.java: Likewise.
658 * javax/swing/JMenuBar.java: Likewise.
659 (MARGIN_CHANGED_PROPERTY): New property.
660 (setMargin): Implemented.
661 * javax/swing/JMenuItem.java: Fixed javadocs.
662 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
663 (LABEL_CHANGED_PROPERTY): New property.
664 (add): changed to use createActionComponent.
665 (createActionComponent): Implemented.
666 (setLabel): Fire PropertyChangeEvent if label property
668 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
669 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
670 (ContainerHandler): Repaint if margin property has changed.
671 * javax/swing/plaf/basic/BasicMenuItemUI.java:
672 (installUI): Call installComponents().
673 (uninstallUI): Call uinstallComponents().
674 * javax/swing/plaf/basic/BasicMenuUI.java:
676 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
679 2004-07-21 Kim Ho <kho@redhat.com>
681 * javax/swing/plaf/basic/BasicToolBarUI.java:
682 (DragWindow): Use the right constructor.
684 2004-07-21 Kim Ho <kho@redhat.com>
686 * javax/swing/JToolBar.java:
687 (layoutContainer): Use getComponents.
688 * javax/swing/plaf/basic/BasicToolBarUI.java:
689 (DragWindow): Don't use SwingUtilities'
691 (ToolBarDialog): ditto.
693 2004-07-21 Kim Ho <kho@redhat.com>
695 * javax/swing/JRootPane.java:
697 (layoutContainer): Set the glasspane's size to
698 be the same as the content pane.
699 (createGlassPane): Set opaque property to false.
701 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
703 * java/awt/Component.java (requestFocus()): Don't handle Panels
705 (requestFocus(boolean)): Likewise.
706 (requestFocusInWindow(boolean)): Likewise.
707 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
708 Set GTK_CAN_FOCUS flag.
710 2004-07-21 Kim Ho <kho@redhat.com>
712 * Makefile.am: Added new file.
713 * Makefile.in: Regenerated.
714 * gcj/Makefile.in: Regenerated.
715 * include/Makefile.in: Regenerated.
716 * javax/swing/AbstractButton.java:
717 Add rollOverEnabled property.
718 (setRolloverEnabled): Use new property.
719 (isRolloverEnabled): Use new property.
720 * javax/swing/JTabbedPane.java:
721 (setComponent): Remove useless JTabbedPane.this.
722 * javax/swing/JToolBar.java: Finish implementation.
723 * javax/swing/plaf/basic/BasicArrowButton.java:
724 (paint): Moved border painting to a border.
725 * javax/swing/plaf/basic/BasicLookAndFeel.java:
726 Change JToolBar look and feel defaults.
727 * javax/swing/plaf/basic/BasicOptionPaneUI.java
728 (actionPerformed): Return Integer index instead of name.
729 (addButtonComponents): Check to see if component is
731 (createMessageArea): Don't use components that are not
733 (getIconForType): Use temporary icons.
734 * javax/swing/plaf/basic/BasicSliderUI.java:
735 (mousePressed): Do not return if it's on thumb.
736 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
737 (paintMinorTickForVertSlider): ditto.
738 (paintMajorTickForHorizSlider): ditto.
739 (paintMajorTickForVertSlider): ditto.
740 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
741 Add a border around the SplitPaneDivider.
742 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
744 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
745 New file. Implemented.
746 * javax/swing/plaf/basic/BasicToolBarUI.java:
748 * testsuite/Makefile.in: Regenerated.
750 2004-07-21 Graydon Hoare <graydon@redhat.com>
752 * javax/swing/Timer.java (run): Queue events each time cycle.
754 2004-07-21 David Jee <djee@redhat.com>
756 * gnu/java/awt/peer/gtk/GtkImagePainter.java
757 (imageComplete): Call image.imageComplete().
758 * java/awt/image/MemoryImageSource.java:
759 Reimplement consumers as a Vector instead of a Hashtable. This is
760 because enumeration on a Hashtable is not thread-safe.
761 (addConsumer): Adapt to Vector consumers.
762 (isConsumer): Adapt to Vector consumers.
763 (removeConsumer): Adapt to Vector consumers.
764 (startProduction): Adapt to Vector consumers. Call imageComplete()
765 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
766 (newPixels): Adapt to Vector consumers.
767 (sendPicture): Set the color model of the image consumer.
768 (newPixels(IIII)): Adapt to Vector consumers.
769 (newPixels(IIIIB)): Adapt to Vector consumers.
771 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
773 * java/awt/Component.java (deliverEvent): Implement.
774 (postEvent): Implement.
775 (handleEvent): Implement.
776 (translateEvent): New method.
777 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
778 * java/awt/Container.java (deliverEvent): Implement.
779 * java/awt/Event.java (paramString): Fix formatting.
780 * java/awt/Font.java (toString): Likewise.
781 * java/awt/Window.java (postEvent): Implement.
783 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
785 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
786 Set window's focus owner upon receiving a FOCUS_LOST event.
787 * java/awt/Window.java (Window()): Refocus the previously
788 focused component within the window when the window regains the
790 (setFocusOwner): New method.
791 * java/awt/Component.java (requestFocus): Add FIXME.
793 * libgcj.pc.in: Remove library flags.
795 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
797 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
799 * java/awt/Component.java (requestFocus()): Handle Panel
800 specially. Post FOCUS_LOST event on opposite component.
801 (requestFocus(boolean)): Likewise.
802 (requestFocusInWindow(boolean)): Likewise.
803 (paramString): Reorder dimension fields.
804 * java/awt/Container.java (paramString): Fix string format.
805 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
806 Handle FOCUS_LOST events. Don't handle Windows specially. Only
807 process key events if the focus owner is non-null.
808 (dispatchKeyEvent): Likewise.
809 * java/awt/Frame.java (paramString): Fix formatting.
810 (generateName): New method.
811 (getUniqueLong): Likewise.
812 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
813 the temporary focus owner is null. If so, return the permanent
815 * java/awt/Panel.java (generateName): New method.
816 (getUniqueLong): Likewise.
817 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
818 signal handling to make callbacks more specific.
820 2004-07-21 Michael Koch <konqueror@gmx.de>
822 * javax/swing/text/Position.java
825 2004-07-21 Michael Koch <konqueror@gmx.de>
827 * javax/swing/LookAndFeel.java
828 (provideErrorFeedback): New method.
830 2004-07-21 Michael Koch <konqueror@gmx.de>
832 * javax/swing/JTextArea.java
833 (tabSize): New field.
834 (getTabSize): New method.
835 (setTabSize): Likewise.
837 2004-07-21 Michael Koch <konqueror@gmx.de>
839 * javax/swing/ActionMap.java:
840 Fixed javadocs all over.
841 (serialVersionUID): Made private.
842 (parent): Don't explicitely initialize with default value.
844 (keys): Reimplemented.
846 (convertSet): Removed.
847 * javax/swing/ComponentInputMap.java:
848 Fixed javadocs all over.
849 (ComponentInputMap): Implemented.
853 (SetParent): Likewise.
854 (getComponent): Likewise.
855 * javax/swing/InputMap.java:
856 Fixed javadocs all over.
857 (serialVersionUID): Made private.
858 (parent): Don't explicitely initialize with default value.
860 (keys): Reimplemented.
862 (convertSet): Removed.
864 2004-07-21 Michael Koch <konqueror@gmx.de>
866 * javax/swing/ActionMap.java,
867 javax/swing/ComponentInputMap.java,
868 javax/swing/InputMap.java,
869 javax/swing/table/DefaultTableColumnModel.java,
870 javax/swing/table/TableColumn.java,
871 javax/swing/table/TableColumnModel.java,
872 javax/swing/table/TableModel.java,
873 javax/swing/text/AbstractDocument.java,
874 javax/swing/text/TextAction.java:
877 2004-07-21 Graydon Hoare <graydon@redhat.com>
879 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
880 Make method non-static.
881 * javax/swing/AbstractButton.java:
882 Rename fields to match property names where possible.
883 (iconTextGap): New property.
884 * javax/swing/JCheckBox.java: Match AbstractButton changes.
885 (init) New method, call from after various constructors.
886 * javax/swing/JComponent.java (revalidate):
887 Invalidate before queueing repair.
888 * javax/swing/JList.java (getPreferredScrollableViewportSize):
889 Reimplement in terms of visibleRowCount property.
890 * javax/swing/JMenuButton.java: Match AbstractButton changes.
891 * javax/swing/JScrollPane.java (createScrollListener):
892 Remove tracing chatter.
893 * javax/swing/JToggleButton.java: Match AbstractButton changes.
894 * javax/swing/RepaintManager.java (addInvalidComponent):
896 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
898 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
899 Mimic sun behavior on top left/right positioning.
900 * javax/swing/ViewportLayout.java (preferredLayoutSize):
901 Remove mistaken use of preferredScrollableViewportSize here.
902 (layoutContainer): Use view's preferred size as basis.
903 * javax/swing/plaf/basic/BasicButtonUI.java:
904 Set, get, and use textIconGap property.
905 (paint) Paint text returned from layout (with ellipsis).
906 * javax/swing/plaf/basic/BasicListUI.java:
907 Remove tracing chatter, correct various minor calculations.
908 (getCellBounds): Update layout state before calculating.
909 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
910 Use margin default similar to sun's.
911 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
912 (createIncreaseIcon): Center icon, minimize margins.
913 (createDecreaseIcon): Likewise.
914 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
916 (installUI): Call it.
917 (uninstallDefaults): Implement.
918 (uninstallUI): Call it.
919 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
920 Call existing Window constructor.
921 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
922 Set clip before painting.
924 2004-07-21 Olga Rodimina <rodimina@redhat.com>
926 * javax/swing/JMenuItem.java:
927 (processMouseEvent): Reimplemented to deal with
929 (createMenuDragMouseEvent): New private helper method.
930 Creates MenuDragMouseEvent.
931 * javax/swing/MenuSelectionManager.java
932 (componentForPoint): Implemented.
933 (isComponentPartOfCurrentMenu): Made public.
934 (processMouseEvent): Reimplemented to deal with
936 (setSelectedPath): Corrected small mistake that caused
937 path to be set incorrectly.
938 (getPath): If given component is JMenu then also add this
939 menu's popup menu to the selected path.
940 * javax/swing/plaf/basic/BasicMenuItemUI.java:
942 (getPreferredSize): Call getPreferredMenuItemSize().
943 (getPreferredItemSize): Moved code from getPreferredSize to here.
944 (installListeners): Install MouseMotionListeners.
945 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
946 if mouse wasn't released in the bounds of this menu item.
947 (MenuDragMouseHandler): Implemented.
948 * javax/swing/plaf/basic/BasicMenuUI.java:
949 (installListeners): Install MouseMotionListener and
950 MenuDrageMouseListener.
951 (MenuDragMouseHandler): Implemented.
952 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
953 (uninstallListeners): Implemented.
955 2004-07-21 Michael Koch <konqueror@gmx.de>
957 * javax/swing/JCheckBox.java: Reformated.
958 (JCheckBox): Fixed all constructors.
959 (isBorderPaintedFlat): New method.
960 (setBorderPaintedFlat): New method.
961 * javax/swing/JEditorPane.java
962 (createEditorKitForContentType): Made public.
963 (scrollToReference): Likewise.
964 * javax/swing/JTextArea.java
965 (setLineWrap): Fire property change.
966 * javax/swing/JToggleButton.java
967 (JToggleButton): New constructor.
968 (JToggleButton): Simplified.
969 * javax/swing/text/AttributeSet.java
970 (FontAttribute): Renamed from FontCharacterAttribute.
971 * javax/swing/text/JTextComponent.java
972 (KeyBinBinding): Added javadoc.
973 (JTextComponent): Likewise.
974 (getAccessibleContext): Fixed javadoc.
975 * javax/swing/text/View.java
976 (View): Added javadoc.
977 * javax/swing/text/TabableView.java: New file.
978 * Makefile.am: Added javax/swing/text/TabableView.java.
979 * Makefile.in: Regenerated.
981 2004-07-21 Graydon Hoare <graydon@redhat.com>
983 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
984 * gnu/java/awt/peer/gtk/GtkToolkit.java
985 (GtkErrorImage): New helper class.
986 (bufferedImageOrError): New helper method.
987 (createImage): Use it.
989 2004-07-21 David Jee <djee@redhat.com>
991 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
992 (setCaretPosition): Scroll the text view so the new caret position
993 is visible on screen.
995 2004-07-21 David Jee <djee@redhat.com>
997 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
998 (setBounds): Do not validate awtComponent here.
999 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
1000 (getPreferredSize): New method.
1001 * java/awt/ScrollPane.java
1002 (ScrollPane): Set default size to 100x100.
1003 (addNotify): If child is not a Panel, wrap it with a new Panel.
1004 (paramString): Implement.
1006 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1008 * javax/swing/JMenu.java:
1009 (setSelected): Display popup menu only if this menu
1010 is showing on the screen.
1011 * javax/swing/JPopupMenu.java:
1012 (processMouseEvent): Added comment.
1013 (processKeyEvent): Likewise.
1014 * javax/swing/MenuSelectionManager.java:
1015 (clearSelectedPath): Only fireStateChanged() after
1016 selected path was changed, not before.
1017 (setSelectedPath): Likewise.
1018 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1019 (paintMenuItem): Corrected position of menu item's
1021 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1022 (installUI): Correct setDefaultLightWeightPopupEnabled call.
1023 (popupMenuCanceled): Reimplemented.
1024 (popupMenuWillBecomeVisible): Select first menu item by default
1025 when displaying free floating popup menus.
1026 (TopWindowListener): Reimplemented.
1028 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1030 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
1031 Panel from being painted twice when it is first shown.
1033 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1035 * java/awt/Window.java: Reverted changes from my
1036 previous patch for creating window without an owner.
1037 * javax/swing/SwingUtilities.java:
1038 (SwingUtilities.OwnerFrame): made static.
1039 (OwnerFrame.setVisible): New method. Overridden with
1040 empty implementation.
1041 (OwnerFrame.isShowing): New method. Ovverridden
1042 to return always true.
1044 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1046 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1047 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1048 (GtkComponentPeer): Remove temporary try/catch block.
1049 (setVisible): Call show and hide.
1050 (show): Make native.
1052 (getArgs): Don't add "visible" argument.
1053 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1054 (property_notify_predicate): Return Bool instead of int.
1055 (find_layout): New function.
1056 (connectJObject): Call find_layout.
1057 (connectSignals): Likewise.
1058 (moveLayout): Likewise.
1059 (gtkLayoutSetVisible): Likewise.
1061 2004-07-21 Mark Wielaard <mark@klomp.org>
1063 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1064 on notifier object before calling notifyAll().
1066 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1068 * java/awt/Window.java: Changed constructors to use new
1069 method that is described below. Constructors call this
1070 methods only if newly created window should have an owner.
1071 (setWindowOwner): New method. Implementation for
1072 this method is moved from this(owner,configuration).
1073 * javax/swing/JWindow.java:
1074 (JWindow): Reimplement to use SwingUtilities.ownerFrame
1076 * javax/swing/SwingUtilities.java:
1077 (ownerFrame): Change type of this field to OwnerFrame.
1078 (getOwnerFrame): Changed to return object of type OwnerFrame.
1079 (SwingUtilities.OwnerFrame): New class. Represents owner
1080 of a Window that is not provided with one.
1082 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1084 * javax/swing/AbstractButton.java:
1085 (configurePropertiesFromAction): Set action command
1086 to button's text by default if action command is not
1087 explicitely specified.
1088 * javax/swing/JMenu.java: Remove unnecessary listener
1089 and methods relevant to it.
1090 (setSelected): Reimplemented.
1091 (menuSelectionChanged): Moved most part of implementation to
1092 setSelected() and call it instead.
1093 * javax/swing/JMenuItem.java:
1094 (init): Comment out statement that sets paint_border to false.
1095 (configurePropertiesFromAction): Do not set accelerator
1097 (menuSelectionChanged): Change selected index in the selection
1098 model of menu item's parent.
1099 * javax/swing/JPopupMenu.java:
1100 (remove): Set constraints.fill field to GridBagConstraints.BOTH
1101 instead of GridBagConstraints.HORIZONTAL.
1103 (createActionChangeListener): Implemented.
1104 (setVisible): Correct location of HeavyWeightMenu and
1105 don't firePopupMenuCanceled().
1106 (menuSelectionChanged): Implemented.
1107 (ActionChangeListener): New Listener. Implemented.
1108 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1109 (BasicMenuBarUI.ContainerHandler): Implemented.
1110 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1111 (paintMenuItem): Uncommented out code that paints
1112 icon, now that icons are working properly.
1113 (PropertyChangeListener): Implemented.
1114 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1116 (topWindowListener): New field.
1117 (Constructor): initialize topWindowListener.
1118 (BasicPopupMenuUI.TopWindowListener): Implemented.
1119 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
1120 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
1123 2004-07-21 Michael Koch <konqueror@gmx.de>
1125 * javax/swing/plaf/basic/BasicButtonUI.java
1126 (paintFocus): Fixed method signature.
1127 (paintButtonPressed): Likewise.
1128 (paintButtonNormal): Likewise.
1129 (paintText): New method.
1130 * javax/swing/plaf/basic/BasicLabelUI.java
1131 (paint): Re-indented.
1132 * javax/swing/plaf/basic/BasicTextUI.java
1133 (installUI): Set parent textComponent to opaque.
1134 * javax/swing/text/DefaultHighlighter.java
1135 (checkPositions): New helper method.
1136 (addHighlight): Throws BadLocationException, check positions.
1137 (changeHighlight): Likewise.
1138 * javax/swing/text/EditorKit.java
1139 (EditorKit): Implements Serializable.
1140 * javax/swing/text/JTextComponent.java
1141 (getUI): Added javadoc.
1143 (upadteUI): Added javadoc, don't revalidate and repaint.
1145 2004-07-21 David Jee <djee@redhat.com>
1147 * java/awt/GridBagLayout.java
1148 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
1149 * javax/swing/AbstractButton.java
1150 (setText): Reindent.
1151 * javax/swing/RepaintManager.java
1152 (addInvalidComponent): Find the first ancestor that isValidateRoot().
1154 2004-07-21 Michael Koch <konqueror@gmx.de>
1156 * javax/swing/JFormattedTextField.java
1158 (JFormattedTextField): Implemented.
1159 (getValue): Likewise.
1160 (setValue): Likewise.
1161 * javax/swing/LookAndFeel.java
1162 (getSupportsWindowDecorations): New method.
1163 * javax/swing/UIDefaults.java:
1164 Use java.beans.PropertyChangeSupport instead of doing all ourself.
1165 (addPropertyChangeListener): Made public.
1166 (addResourceBundle): Likewise.
1167 (removeResourceBundle): Likewise.
1168 (setDefaultLocale): Likewise.
1169 * javax/swing/plaf/basic/BasicRootPaneUI.java
1170 (BasicRootPaneUI): Implements PropertyChangeListener.
1171 (propertyChange): New method.
1172 * javax/swing/plaf/basic/BasicTextUI.java
1173 (BasicHighlighter): New inner class.
1174 (createHighlighter): New method.
1175 * javax/swing/plaf/basic/BasicToolBarUI.java
1176 (DragWindow): Extends java.awt.Window.
1177 * javax/swing/text/JTextComponent.java
1178 (getDocument): Removed debug output.
1179 * javax/swing/plaf/basic/BasicTextFieldUI.java,
1180 javax/swing/text/DefaultHighlighter.java,
1181 javax/swing/text/FieldView.java,
1182 javax/swing/text/PlainView.java: New files.
1183 * Makefile.am: Added new files.
1184 * Makefile.in: Regenerated.
1186 2004-07-21 Michael Koch <konqueror@gmx.de>
1188 * javax/swing/JEditorPane.java
1189 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
1190 (createEditorKitForContentType): Likewise.
1191 * javax/swing/text/DefaultEditorKit.java
1192 (serialVersionUID): Added constant field.
1193 (EndOfLineStringPropery): Fixed typo.
1194 (DefaultEditorKit): New constructor.
1195 * javax/swing/text/Segment.java:
1196 Import java.text.CharacterIterator.
1197 * javax/swing/text/CharacterIterator.java,
1198 javax/swing/text/PlainEditorKit.java: Removed.
1199 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1200 javax/swing/text/PlainEditorKit.java.
1201 * Makefile.in: Regenerated.
1203 2004-07-21 Michael Koch <konqueror@gmx.de>
1205 * javax/swing/JButton.java,
1206 javax/swing/text/DefaultEditorKit.java,
1207 javax/swing/text/EditorKit.java,
1208 javax/swing/text/Segment.java,
1209 javax/swing/text/StyledEditorKit.java:
1212 2004-07-21 Michael Koch <konqueror@gmx.de>
1214 * javax/swing/ImageIcon.java
1216 (description): Renamed from descr.
1217 (ImageIcon): Added missing constructors.
1218 (setParent): Removed.
1219 (setImageObserver): New method.
1220 (getImageObserver): New method.
1221 (paintIcon): Handle observer = null.
1222 * javax/swing/JButton.java
1223 (removeNotify): Fixed javadoc.
1224 (updateUI): Simplified.
1225 * javax/swing/JRootPane.java
1226 (serialVersionUID): New constant field.
1227 * javax/swing/UIManager.java:
1228 Fixed javadocs all over.
1229 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1230 * javax/swing/text/AbstractDocument.java
1231 (createPosition): Throws BadLocationException.
1232 (getText): Likewise.
1234 * javax/swing/text/ComponentView.java
1235 (modelToView): Likewise.
1236 * javax/swing/text/DefaultEditorKit.java:
1237 Made all public methods public.
1238 (read): Throws BadLocationException and IOException.
1240 * javax/swing/text/EditorKit.java:
1241 Made all public methods public.
1242 (serialVersionUID): New constant field.
1243 (clone): New method.
1244 (read): Throws BadLocationException and IOException.
1246 * javax/swing/text/Segment.java
1247 (array): Made public.
1250 (Segment): New constructors.
1251 (clone): Reimplemented.
1252 * javax/swing/text/StyledEditorKit.java
1253 (serialVersionUID): New constant field.
1255 2004-07-21 Graydon Hoare <graydon@redhat.com>
1257 * java/awt/image/BufferedImage.java
1258 (getSource): Implement.
1259 * javax/swing/ImageIcon.java
1260 (ImageIcon): Implement ctor.
1261 * javax/swing/ScrollPaneLayout.java
1262 (preferredLayoutSize): Be more careful about nulls.
1264 2004-07-21 Michael Koch <konqueror@gmx.de>
1266 * javax/swing/text/AttributeSet.java
1267 (CharacterAttribute): New interface
1268 (ColorAttribute): Likewise.
1269 (FontCharacterAttribute): Likewise.
1270 (ParagraphAttribute): Likewise.
1271 * javax/swing/text/DefaultCaret.java
1272 (moveCaret): New method.
1273 (positionCaret): Likewise.
1274 (repaint): Made protected.
1275 * javax/swing/text/JTextComponent.java
1276 (KeyBinding): Made it static.
1277 * javax/swing/text/View.java
1278 (getContainer): Honor parent == null.
1280 2004-07-21 Michael Koch <konqueror@gmx.de>
1282 * javax/swing/text/AbstractDocument.java:
1285 2004-07-21 Michael Koch <konqueror@gmx.de>
1287 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1288 Import javax.swing.UIManager explicitely.
1289 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1290 (ScrollingButton): Made it static.
1292 2004-07-21 Michael Koch <konqueror@gmx.de>
1294 * javax/swing/UIDefaults.java
1295 (ActiveValue): Made public.
1296 (LazyValue): Likewise.
1297 * javax/swing/plaf/basic/BasicTextUI.java
1298 (RootView): Reintroduced.
1300 (rootView): New field.
1301 (installUI): Create document if needed, initialize rootView.
1302 (uninstallUI): Hanle rootView.
1304 (getRootView): Likewise.
1305 (setView): Likewise.
1306 * javax/swing/text/DefaultCaret.java:
1307 Renamed all "evt" variables to "event".
1309 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1311 * libgcj.spec.in: Add -l-java-util-logging.
1313 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1315 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1316 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1317 gtk-xft-dpi can no calculate the right value.
1318 (dpi_changed_cb): Mark *pspec as unsused.
1320 2004-07-21 David Jee <djee@redhat.com>
1322 * java/awt/Component.java
1323 (move): Delegate to setBounds().
1325 (reshape): Fix so it repaints parent and self only when necessary.
1327 2004-07-21 David Jee <djee@redhat.com>
1329 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1330 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1331 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1332 (setVisible): Likewise.
1335 (getArgs): Likewise.
1336 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1337 (property_notify_predicate): Likewise.
1338 (find_layout): Likewise.
1339 (connectJObject): Likewise.
1340 (connectSignals): Likewise.
1341 (moveLayout): Likewise.
1342 (gtkLayoutSetVisible): Likewise.
1344 2004-07-21 Graydon Hoare <graydon@redhat.com>
1350 (rmiregistry_LDADD): Add lib-java-util-logging.la
1351 * Makefile.in: Regenerate.
1353 2004-07-21 Michael Koch <konqueror@gmx.de>
1355 * javax/swing/text/AbstractDocument.java
1356 (replace): Dont use protected method of java.util.Vector directly.
1358 2004-07-21 Michael Koch <konqueror@gmx.de>
1360 * javax/swing/plaf/basic/BasicTextUI.java
1361 (installUI): Call specialized install methods.
1362 (installDefaults): New method.
1363 (installListeners): Likewise.
1364 (installKeyboardActions): Likewise.
1365 (uninstallUI): Likewise.
1366 (uninstallDefaults): New method.
1367 (uninstallListeners): Likewise.
1368 (uninstallKeyboardActions): Likewise.
1369 (getPropertyPrefix): New abstract method.
1370 (paint): Made final, just call paintSafely().
1371 (paintSavely): New method.
1372 (paintBackground): Likewise.
1373 (getVisibleEditorRect): Likewise.
1374 * javax/swing/text/LayeredHighlighter.java,
1375 javax/swing/text/TabExpander.java: New files.
1376 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1377 and javax/swing/text/TabExpander.java.
1378 * Makefile.in: Regenerated.
1380 2004-07-21 Michael Koch <konqueror@gmx.de>
1382 * javax/swing/plaf/basic/BasicTextUI.java
1383 (BasicTextUI): Made abstract.
1384 (BasicCaret): New inner class.
1385 (view): Don't explicitely initialize with "null".
1386 (textComponent): New field.
1387 (textColor): Removed.
1388 (disabledTextColor): Removed.
1389 (normalBackgroundColor): Removed.
1390 (RootView): Removed commented out inner class.
1391 (createUI): Removed.
1392 (createCaret): New method.
1393 (getComponent): Likewise.
1394 (installUI): Initialize textComponent only.
1395 (getPreferredSize): Use installed JTextComponent.
1396 (setView): New method.
1398 * javax/swing/text/JTextComponent.java
1399 (highlighter): New field.
1400 (caretColor): Likewise.
1401 (disabledTextColor): Likewise.
1402 (seletedTextColor): Likewise.
1403 (selectionColor): Likewise.
1404 (setUI): New method.
1405 (getCaretColor): Likewise.
1406 (setCaretColor): Likewise.
1407 (getDisabledColor): Likewise.
1408 (setDisabledColor): Likewise.
1409 (getSelectedTextColor): Likewise.
1410 (setSelectedTextColor): Likewise.
1411 (getSelectionColor): Likewise.
1412 (setSelectionColor): Likewise.
1413 (getHighlighter): Likewise.
1414 (setHighlighter): Likewise.
1415 (replaceSelection): Likewise.
1417 2004-07-21 Michael Koch <konqueror@gmx.de>
1419 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1420 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1421 * javax/swing/plaf/basic/BasicToolBarUI.java
1422 (BasicToolBarUI): Implements SwingConstants.
1424 2004-07-21 Michael Koch <konqueror@gmx.de>
1426 * javax/swing/JPopupMenu.java: Removed CVS tags.
1427 * javax/swing/UIDefaults.java: Reformatted.
1428 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1429 Explicitely import used classes.
1431 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1433 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1434 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1435 (GtkComponentPeer): Remove temporary try/catch block.
1436 (setVisible): Call show and hide.
1437 (show): Make native.
1439 (getArgs): Don't add "visible" argument.
1440 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1441 (property_notify_predicate): Return Bool instead of int.
1442 (find_layout): New function.
1443 (connectJObject): Call find_layout.
1444 (connectSignals): Likewise.
1445 (moveLayout): Likewise.
1446 (gtkLayoutSetVisible): Likewise.
1448 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1450 * javax/swing/AbstractButton.java:
1451 (setDisplayedMnemonicIndex): Check if button
1452 text is not null before checking its length.
1453 * javax/swing/JMenuItem.java:
1454 (processMouseEvent): Disarm menu item if mouse has
1456 * javax/swing/plaf/basic/BasicMenuUI.java:
1457 (MouseInputHandler.mouseEntered): Do not raise
1458 popup menu if this menu is already selected.
1459 (MouseInputHandler.mousePressed): Do not fire
1461 (MenuHandler): Implemented.
1463 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1465 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1466 (getSelectedObjects): Implemented.
1467 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1468 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1469 Added javadoc for few methods.
1470 (processMouseEvent): Made public.
1471 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1472 (processMouseEvent): Likewise.
1474 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1476 * javax/swing/AbstractButton.java:
1477 (init): Set display mnemonic index to -1.
1478 (setMnemonic(char)): Use setMnemonic(int).
1479 (setMnemonic(int)): Set display mnemonic index.
1480 (getDisplayedMnemonicIndex): Change method signature
1481 by removing 'index' parameter.
1482 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1483 Added default for Menu.selectionBackground.
1484 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1485 (paintMenuItem): Change background color of the selected
1487 (paintText): Paint differently when menu item is disabled.
1488 Also paint mnemonic if it appears in the menu item's label.
1489 (paintAccelerator): Paint accelerator differently
1490 if menu item is disabled.
1491 * javax/swing/plaf/basic/BasicMenuUI.java:
1492 (installDefaults): Install defaults for
1493 selectionForeground and selectionBackground.
1494 (uninstallDefaults): Uninstall defauls for
1495 selectionForeground and selectionBackground.
1497 2004-07-21 Michael Koch <konqueror@gmx.de>
1499 * javax/swing/text/AbstractDocument.java
1500 (BranchElement): Implemented.
1501 (LeafElement): Implemented.
1502 * javax/swing/text/DefaultCaret.java:
1503 Import used classes.
1504 (serialVersionUID): New constant.
1505 * javax/swing/text/JTextComponent.java
1506 (AccessibleJTextComponent): Removed dead declaration.
1507 (caretPos): Removed.
1508 (setCaret): New method.
1509 * javax/swing/text/PlainDocument.java
1510 (rootElement): New field.
1511 (PlainDocument): Initialize rootElement.
1512 (createDefaultRoot): New method.
1513 (getDefaultRootElement): Implemented.
1514 * javax/swing/text/View.java: Reformatted.
1515 * javax/swing/text/ViewFactory.java
1516 (create): Added javadoc.
1518 2004-07-21 Michael Koch <konqueror@gmx.de>
1520 * javax/swing/ToolTipManager.java: Reformatted.
1522 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1524 * javax/swing/AbstractButton.java
1525 (changeEvent): New field.
1526 (fireItemStateChanged): Change source of the event
1527 to 'this' before firing it to button listeners.
1528 (fireActionPerformed): Likewise.
1529 (fireStateChanged): Likewise.
1530 (createActionListener): Do not set source
1531 of the event to AbstractButton.
1532 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1533 (ContainerHandler.componentAdded): Removed
1534 print out statement.
1535 (ContainerHandler.componentRemoved): Likewise.
1537 2004-07-21 Michael Koch <konqueror@gmx.de>
1539 * javax/swing/text/Highlighter.java: New file.
1540 * Makefile.am: Added javax/swing/text/Highlighter.java.
1541 * Makefile.in: Regenerated.
1543 2004-07-21 Michael Koch <konqueror@gmx.de>
1545 * javax/swing/ToolTipManager.java
1546 (stillInsideTimerAction): Fixed constructor arguments.
1547 (outsideTimerAction): Likewise.
1548 (insideTimerAction): Likewise.
1550 2004-07-21 Michael Koch <konqueror@gmx.de>
1552 * javax/swing/JButton.java: Reformatted.
1553 * javax/swing/JFormattedTextField.java
1554 (getUIClassID): Implemented.
1555 * javax/swing/JRootPane.java
1556 (serialVersionUID): New constant.
1557 * javax/swing/JTextField.java
1559 (JTextField): Simplified.
1560 (getUIClassID): New method.
1561 (getActionListeners): Added @since tag.
1562 (setColumns): Invalidate layout and repaint.
1563 (getHorizontalAlignment): New method.
1564 (setHorizontalAlignment): New method.
1565 (selectAll): Removed.
1566 * javax/swing/SwingUtilities.java
1567 (getAncestorOfClass): Removed redundant @see tag.
1568 (isLeftMouseButton): Fixed implementation.
1569 (isMiddleMouseButton): Likewise.
1570 (isRightMouseButton): Likewise.
1571 * javax/swing/text/AbstractDocument.java
1572 (AttributeContext.addAttribute): New method.
1573 (AttributeContext.addAttributes): New method.
1574 (AttributeContext.getEmptySet): New method.
1575 (AttributeContext.reclaim): New method.
1576 (AttributeContext.removeAttribute): New method.
1577 (AttributeContext.removeAttributes): New method.
1578 * javax/swing/text/Document.java
1579 (createPosition): Throws BadLocationException.
1580 (getText): Likewise.
1582 * javax/swing/text/JTextComponent.java
1583 (getText): Return null if no document is set. Catch
1584 BadLocationException.
1586 (updateUI): Simplified.
1588 2004-07-21 Michael Koch <konqueror@gmx.de>
1590 * javax/swing/JButton.java
1591 (removeNotify): Fixed javadoc.
1592 (updateUI): Simplified.
1594 2004-07-21 David Jee <djee@redhat.com>
1596 * gnu/java/awt/image/ImageDecoder.java
1597 (startProduction): Only add consumer if it's not added yet.
1598 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1599 (GdkPixbufDecoder): Don't call initState() here.
1600 (produce): Call initState() here, to ensure area_prepared and
1601 area_updated signals are properly connected.
1602 * gnu/java/awt/peer/gtk/GtkImage.java
1603 (setColorModel): Use equals() to compare ColorModel objects.
1604 (setPixels): Likewise.
1605 * java/awt/image/ColorModel.java
1606 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1607 * java/awt/image/RGBImageFilter.java
1608 (setColorModel): Set consumer's color model.
1609 (setPixels): Use equals() to compare ColorModel objects.
1611 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1613 * java/net/URLConnection.java (position): New field.
1614 (dateFormat1, dateFormat2, dateFormat3): Removed.
1615 (dateFormats): New field.
1616 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1617 each time instead of re-allocating.
1618 (initializeDateFormats): Initialize 'dateFormats'.
1620 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1623 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1626 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1628 * java/net/Socket.java (getImpl): Now private. Remove comment.
1630 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1632 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1633 of chained Writer when calling super-constructor.
1634 * java/io/FilterWriter.java (FilterWriter): Likewise.
1635 * java/io/PrintWriter.java (PrintWriter): Likewise.
1637 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1639 * prims.cc (process_gcj_properties): Don't increment i within LHS
1642 2004-07-19 Per Bothner <per@bothner.com>
1644 Print -verbose:message on "loading", not initialization.
1645 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1646 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1647 gcj::verbose_class_flag.
1648 * java/lang/natClass.cc (initializeClass): Don't print message here.
1649 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1650 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1651 (_Jv_PrepareCompiledClass): Likewise.
1653 2004-07-18 Matthias Klose <doko@debian.org>
1655 * configure.in: Substitute target_noncanonical.
1656 * configure: Regenerate
1658 2004-07-17 Michael Koch <konqueror@gmx.de>
1660 * java/lang/String.java: Fixed javadocs all over.
1662 2004-07-17 Mark Wielaard <mark@klomp.org>
1664 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1665 when size is smaller.
1666 * java/io/RandomAccessFile.java (setLength): Use truncate for
1667 shrinking the file and seek plus write for expanding the file.
1669 2004-07-17 Michael Koch <konqueror@gmx.de>
1671 * gnu/java/nio/channels/natFileChannelPosix.cc
1672 (implTruncate): Always save current position. Only reposition file
1673 pointer to where we started if not beyond new lenght. Reposition file
1674 pointer to file length if it points beyond the end of file.
1676 2004-07-17 Mark Wielaard <mark@klomp.org>
1678 * javax/swing/Box.java: Put FIXME comment above class declaration.
1679 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1680 * javax/swing/JCheckBox.java: Likewise.
1681 * javax/swing/JDialog.java: Likewise.
1682 * javax/swing/JRadioButton.java: Likewise.
1683 * javax/swing/JToggleButton.java: Likewise.
1684 * javax/swing/UIManager.java: Likewise.
1685 * javax/swing/border/TitledBorder.java: Likewise.
1686 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1687 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1688 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1689 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1690 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1691 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1692 * javax/swing/text/JTextComponent.java: Likewise.
1694 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1696 * java/net/DatagramPacket.java (setAddress): Removed check for
1699 2004-07-17 Michael Koch <konqueror@gmx.de>
1701 * java/net/DatagramSocket.java
1702 (getLocalAddress): Check if socket is bound or not.
1703 * java/net/Socket.java
1704 (getLocalAddrss): Check if socket is bound or not.
1705 (getPort): Return -1 when not connected. Dont check getImpl() for
1707 (setReuseAddress): Check if socket is closed.
1708 (isConnected): Check if getImpl() returns null.
1710 2004-07-17 Mark Wielaard <mark@klomp.org>
1712 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1713 on notifier object before calling notifyAll().
1715 2004-07-17 Michael Koch <konqueror@gmx.de>
1717 * gnu/java/nio/channels/FileChannelImpl.java
1718 (finalize): Added javadoc.
1720 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1722 * java/text/CollationElementIterator.java
1723 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1724 (setText): Use ArrayList instead of Vector.
1726 2004-07-17 Michael Koch <konqueror@gmx.de>
1728 * java/nio/ByteOrder.java
1729 (static): Removed. Not needed.
1730 Thanks to Patrick Reali for noticing.
1731 * java/nio/charset/CharsetDecoder.java
1732 (decode): Fix for classpath bug #9177: Reset state before flipping.
1734 2004-07-17 Michael Koch <konqueror@gmx.de>
1736 * java/security/Security.java: Fixed javadocs all over.
1738 2004-07-17 Michael Koch <konqueror@gmx.de>
1740 * gnu/java/awt/EmbeddedWindow.java
1742 (addNotify): Set peer via reflection.
1743 (setWindowPeer): Removed.
1744 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1745 * Makefile.am (nat_source_files):
1746 Removed gnu/java/awt/natEmbeddedWindow.cc.
1747 * Makefile.in: Regenerated.
1749 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1751 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1753 * configure: Regenerated.
1755 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1757 * configure.in: Use build_noncanonical rather than build_alias.
1758 * configure: Rebuild.
1760 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1761 by logic refactoring. Move default definition of NATIVE closer
1762 to first alternate definition.
1763 * configure: Regenerate.
1765 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1766 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1767 gcj/Makefile.in: Regenerate.
1768 * configure.in: Set ZIP and GCJH. Remove redundant condition
1769 in AM_CONDITIONAL(NATIVE,...)
1770 * configure: Regenerate.
1772 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1774 * configure.in: Use target_noncanonical rather than
1775 target_alias for forward-compatibility with autoconf 2.59.
1776 * configure: Regenerate.
1777 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1778 testsuite/Makefile.am: Substitute target_noncanonical.
1779 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1780 testsuite/Makefile.in: Regenerate.
1782 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1783 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1784 * acinclude.m4: Include acx.m4.
1785 * aclocal.m4: Regenerate.
1786 * configure: Regenerate.
1788 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1791 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1792 (decimalFormat): New static variable.
1794 (getTime): New. Override Date.getTime().
1795 (toString): Synchronize. Use decimalFormat to format nanos value
1796 correctly. Truncate extra zeros.
1797 (before): Compare getNanos() only if getTime() is equal.
1800 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1802 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1803 * configure.in: ...here.
1804 * aclocal.m4: Regenerate.
1805 * configure: Regenerate.
1807 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1808 * configure: Rebuilt with autoconf 2.13.
1809 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1810 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1812 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1815 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1817 * Makefile.in: Rebuilt.
1818 * testsuite/libjava.lang/LargeFile.java: New test case.
1819 * testsuite/libjava.lang/LargeFile.out: New file.
1821 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1823 * java/beans/EventHandler.java: Remove debugging statements.
1825 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1827 * java/beans/EventHandler.java: New file.
1828 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1829 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1830 testsuite/Makefile.in: Regenerate.
1832 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1834 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1835 flag to the gcj_setup.
1836 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1838 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1839 deprecation flag change. 58 XFAILS removed.
1841 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1843 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1844 -fno-use-divide-subroutine.
1845 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1846 (HANDLE_FPE): Define.
1847 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1848 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1849 (HANDLE_DIVIDE_OVERFLOW): Define.
1851 2004-07-14 Michael Koch <konqueror@gmx.de>
1852 Matthias Klose <doko@debian.org>
1854 * java/awt/im/InputContext.java: Initialize in, line.
1856 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1858 * interpret.cc (run): Correctly access libffi return values of
1859 integral smaller-than-int type; these are implicitly promoted.
1861 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1864 * interpret.cc (compile_mutex): New.
1865 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1866 (run): Lock compile_mutex before calling compile() if compilation is
1868 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1869 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1871 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1874 * include/jvm.h (_Jv_value): New union type.
1875 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1876 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1879 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1881 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1882 * gnu/awt/xlib/XOffScreenImage.java
1883 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1884 constructor argument. Add constructor using ImageProducer.
1885 (getSource): Implement.
1886 (imageComplete): New method.
1887 (setColorModel): New method.
1888 (setDimensions): New method.
1889 (setHints): New method.
1890 (setPixels): New method.
1891 (setProperties): New method.
1892 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1893 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1895 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1898 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1899 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1900 (finalizerReady): Now native.
1902 (runFinalizers): Removed.
1903 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1904 a primitive lock, and don't hold it while running the finalizers.
1905 (runFinalizers): Implement. Don't aquire any Java lock.
1906 (finalizerReady): Use lock primitives to signal finalizer thread.
1908 2004-07-11 Mark Wielaard <mark@klomp.org>
1910 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1911 * java/net/URLStreamHandler.java (parseURL): When url file part
1912 doesn't contain a '/' just ignore context.
1914 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1916 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1917 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1918 (MAKE_THROW_FRAME): Do not modify PSW address.
1919 (INIT_SEGV): Install SIGINFO-style signal handler.
1920 (INIT_FPE): Likewise.
1922 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1924 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1925 status. 21 xfail's removed, 1 added.
1927 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1929 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1931 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1933 * java/text/MessageFormat.java
1934 (formatInternal): Append "{n}" if argument n is unavailable.
1935 (format(Object, StringBuffer, FieldPosition)): This
1936 should be equivalent to format(Object[],
1937 StringBuffer, FieldPosition).
1939 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1941 * java.util.Calendar.java (cache): New private static field. Cached
1942 mappings of locales->calendar classes.
1943 (ctorArgTypes): New private static field. Singleton argument for
1944 calendar class constructor lookup.
1945 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1946 Optimize by bypassing reflection instantiation for the
1947 GregorianCalendar case.
1949 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1951 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1952 ResourceBundle.getBundle() calls.
1953 * java/util/GregorianCalendar.java: Likewise.
1954 * java/util/Currency.java: Likewise.
1955 * java/text/BreakIterator.java: Likewise.
1956 * java/text/Collator.java: Likewise.
1957 * java/text/DateFormat.java: Likewise.
1958 * java/text/DateFormatSymbols.java: Likewise.
1959 * java/text/DecimalFormatSymbols.java: Likewise.
1960 * java/text/NumberFormat.java: Likewise.
1961 * java/awt/Window.java: Likewise.
1963 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1965 * java/util/ResourceBundle.java (bundleCache): Renamed from
1966 resourceBundleCache. Update comments.
1967 (getObject): Don't catch MissingResourceException.
1968 (getBundle(String)): Remove 'final'. Use system classloader if
1969 getCallingClassLoader returned null.
1970 (getBundle(String, Locale)): Likewise.
1971 (BundleKey): New private class. HashMap key for bundle cache lookup.
1972 (lookupKey): New. Singleton instance of BundleKey.
1973 (nullEntry): New. Cache entry to represent failed lookups.
1974 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1975 caching strategy, no-allocation lookup, and new tryBundle methods.
1976 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1977 name using given classloader.
1978 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1979 baseName for given Locale and attempt to load bundle.
1981 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1983 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1984 illegal protected method calls.
1986 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1988 Fix or remove some bogus test cases.
1989 * testsuite/libjava.compile/pr10459_2.java: Removed.
1990 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1992 * testsuite/libjava.compile/inner_data.java: Test against its own
1995 2004-07-09 Michael Koch <konqueror@gmx.de>
1997 * scripts/unicode-muncher.pl: Updated to version 2.1
1998 from GNU classpath. Added some clarifications on where to find the
1999 needed files from www.unicode.org.
2000 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
2001 gnu/gcj/convert/UnicodeData-3.0.0.txt:
2002 Removed, these can directly be downloaded from www.unicode.org if
2004 * gnu/java/lang/CharData.java: Regenerated.
2005 * include/java-chartables.h: Regenerated.
2006 * Makefile.am (ordinary_java_source_files):
2007 Removed gnu/java/lang/CharData.java.
2008 * Makefile.in: Regenerated.
2010 2004-07-09 Michael Koch <konqueror@gmx.de>
2012 * java/security/AccessControlContext.java,
2013 java/security/SecureClassLoader.java:
2016 2004-07-09 Michael Koch <konqueror@gmx.de>
2018 * java/io/ObjectInputStream.java (readFields): Use long datatype
2019 when shifting byte values more then 24 bits left.
2021 2004-07-09 Michael Koch <konqueror@gmx.de>
2023 * java/util/zip/DeflaterOutputStream.java,
2024 java/util/zip/GZIPInputStream.java,
2025 java/util/zip/GZIPOutputStream.java,
2026 java/util/zip/InflaterInputStream.java:
2027 Reformatted. Added javadocs. Reordered all stuff.
2028 Renamed variables to be more clear.
2030 2004-07-09 Michael Koch <konqueror@gmx.de>
2032 * javax/imageio/IIOException.java,
2033 javax/imageio/event/IIOReadProgressListener.java,
2034 javax/imageio/event/IIOReadUpdateListener.java,
2035 javax/imageio/event/IIOReadWarningListener.java,
2036 javax/imageio/event/IIOWriteProgressListener.java,
2037 javax/imageio/event/IIOWriteWarningListener.java:
2039 * Makefile.am: Added new files.
2040 * Makefile.in: Regenerated.
2042 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
2044 * java/text/RuleBasedCollator.java
2045 (mergeRules): Use ArrayList instead of Vector.
2046 (subParseString): likewise.
2047 (parseString): likewise.
2048 (buildCollationVector): likewise.
2049 (getCollationKey): likewise.
2051 2004-07-09 Dalibor Topic <robilad@kaffe.org>
2053 * java/text/DateFormat.java (parse):
2054 Improved javadoc. Improved exception message.
2056 2004-07-09 Mark Wielaard <mark@klomp.org>
2058 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
2059 interrupted() method to clear interupt flag of our Thread.
2061 2004-07-09 Dalibor Topic <robilad@kaffe.org>
2063 * java/nio/Buffer.java,
2064 java/nio/ByteBuffer.java,
2065 java/nio/ByteBufferHelper.java,
2066 java/nio/ByteBufferImpl.java,
2067 java/nio/CharBuffer.java,
2068 java/nio/CharBufferImpl.java,
2069 java/nio/CharViewBufferImpl.java,
2070 java/nio/DirectByteBufferImpl.java,
2071 java/nio/DoubleBuffer.java,
2072 java/nio/DoubleBufferImpl.java,
2073 java/nio/DoubleViewBufferImpl.java,
2074 java/nio/FloatBuffer.java,
2075 java/nio/FloatBufferImpl.java,
2076 java/nio/FloatViewBufferImpl.java,
2077 java/nio/IntBuffer.java,
2078 java/nio/IntBufferImpl.java,
2079 java/nio/IntViewBufferImpl.java,
2080 java/nio/LongBuffer.java,
2081 java/nio/LongBufferImpl.java,
2082 java/nio/LongViewBufferImpl.java,
2083 java/nio/MappedByteBufferImpl.java,
2084 java/nio/ShortBuffer.java,
2085 java/nio/ShortBufferImpl.java,
2086 java/nio/ShortViewBufferImpl.java:
2087 Fixed javadocs all over. Improved input error
2090 * java/nio/Buffer.java
2091 (checkForUnderflow, checkForOverflow, checkIndex,
2092 checkIfReadOnly, checkArraySize): New helper methods
2095 * java/nio/ByteBufferHelper.java
2096 (checkRemainingForRead, checkRemainingForWrite,
2097 checkAvailableForRead, checkAvailableForWrite): Removed
2098 no longer needed methods.
2100 2004-07-09 Michael Koch <konqueror@gmx.de>
2102 * gnu/regexp/CharIndexedInputStream.java:
2103 Reordered imports to match classpath.
2105 2004-07-09 Michael Koch <konqueror@gmx.de>
2107 * gnu/java/awt/EmbeddedWindow.java:
2108 Load native library for setWindowPeer method.
2110 2004-07-08 Randolph Chung <tausq@debian.org>
2112 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
2113 * configure: Regenerate.
2114 * configure.host: Set can_unwind_signal for hppa*-linux.
2115 * include/pa-signal.h: New file.
2117 2004-07-07 Per Bothner <per@bothner.com>
2119 * Makefile.am: Add rules to build libgij from just gij.cc.
2121 * include/jvm.h (namespace jcj): Declare verbose_class_flag
2122 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
2123 (initializeClass): If verbose_class_flag, print message.
2124 * gij.cc (main): Handle -verbose:class flag.
2126 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
2128 * configure.host: Enable hash synchronization on Darwin.
2129 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
2130 ';', since this is a comment on Darwin.
2131 (compare_and_swap_release): Likewise.
2133 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
2135 * java/net/URLStreamHandler.java (parseURL): Canonicalize
2136 file portion of URL in addition to spec for file: protocol.
2138 2004-07-05 Anthony Green <green@redhat.com>
2140 * java/io/File.java (toURI): Merge from Classpath.
2142 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2144 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
2145 before passing to URL constructor. Rethrow any MalformedURLException
2146 as a RuntimeException. Catch MalformedURLException specifically, not
2149 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2151 * java/util/Locale.java (readObject): Intern strings read from object
2154 2004-07-04 Michael Koch <konqueror@gmx.de>
2156 * gnu/gcj/runtime/FirstThread.java,
2157 gnu/gcj/runtime/natFirstThread.cc: Removed.
2158 * gnu/java/lang/MainThread.java,
2159 gnu/java/lang/natMainThread.cc: New files.
2160 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
2161 * Makefile.am: Added new files and removed deleted ones.
2162 * Makefile.in: Regenerated.
2164 2004-07-03 Mark Wielaard <mark@klomp.org>
2165 Anthony Green <green@redhat.com>
2167 * java/net/URL.java (getFile): Clarify return value doc.
2168 (getPath): Return null if file is empty - not empty String.
2169 (set): Convert protocol to lower case before doing anything.
2170 Only change the protocol handler if it's different.
2172 2004-07-03 Anthony Green <green@redhat.com>
2174 * java/net/URL.java (URL): Convert protocol to lower case before
2175 doing anything, so we getURLStreamHandler() with the proper value.
2177 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
2179 * java/util/Locale.java (hashcode): Made transient.
2180 (hashCode): No longer synchronized.
2181 (equals): Remove comment.
2182 (writeObject): No longer synchronized. Implement using writeObject
2183 calls instead of tweaking hashCode field. Update doc.
2184 (readObject): Implement using readObject calls.
2186 2004-06-26 Geoffrey Keating <geoffk@apple.com>
2187 Andreas Tobler <a.tobler@schweiz.ch>
2189 * configure.host (powerpc-*-darwin*): New case, define
2191 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
2192 * configure: Regenerate.
2193 * include/darwin-signal.h: New.
2195 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
2197 * java/beans/Statement.java (doExecute): Fix formatting.
2199 2004-06-29 Per Bothner <per@bothner.com>
2201 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2202 etc etc): Remove needless parenthesis, which causes __stdcall__
2203 attribute on MinGW to get ignored.
2205 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
2207 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2209 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
2211 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
2213 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
2215 * java/beans/Expression.java: New file.
2216 * java/beans/Statement.java: New file.
2217 * Makefile.am: Added new files.
2218 * Makefile.in: Re-generate.
2220 2004-06-27 Mark Wielaard <mark@klomp.org>
2222 * java/io/FilePermission.java (usingPerms): Removed.
2223 (actionsString): Made final.
2224 (cachePerms): Renamed to checkPerms.
2225 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2227 (FilePermission): Check arguments, call checkPerms().
2228 (equals): Remove cachePerms() call.
2229 (implies): Likewise.
2231 2004-06-27 Mark Wielaard <mark@klomp.org>
2233 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2235 (sendRequest): Use new field in user-agent http agent.
2237 2004-06-27 Mark Wielaard <mark@klomp.org>
2239 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2240 when argument is null.
2242 2004-06-26 Mark Wielaard <mark@klomp.org>
2244 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2245 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2247 (cancel_clicked): Likewise.
2249 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2251 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2252 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2253 can not calculate the right value.
2254 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2256 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2258 * testsuite/libjava.jacks/jacks.xfail: Remove
2259 15.9.1-qualified-concrete-20.
2261 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2263 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2264 encoding name to iconv.
2265 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2267 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2270 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2271 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2272 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2274 2004-06-21 Andrew Haley <aph@redhat.com>
2276 * java/io/ObjectOutputStream.java: Add DEBUG statements
2278 (dumpElementln): New method.
2280 * java/io/ObjectInputStream.java
2281 (currentClassLoader): Make native.
2282 (callersClassLoader): New field.
2284 (readObject): ENDBLOCKDATA is generated if the class has a write
2285 method, not if it has a read method.
2286 (readObject): Save and restore this.currentObject and
2287 this.currentObjectStreamClass around calls to callReadMethod().
2288 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2291 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2293 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2296 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2298 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2299 if desired, before the default class loader is initialised.
2300 Call INIT_SEGV only if HANDLE_SEGV is defined.
2302 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2304 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2305 directory only if it actually exists.
2307 2004-06-18 Graydon Hoare <graydon@redhat.com>
2309 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2310 Fix up non-ansi comments.
2312 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2314 * javax/swing/text/AbstractDocument.java: Adding missing import
2315 for javax.swing.event.EventListenerList.
2316 * javax/swing/text/DefaultCaret.java: Likewise.
2318 2004-06-17 Michael Koch <konqueror@gmx.de>
2320 * javax/swing/JToolBar.java
2322 (JToolBar): Use Component.setName(String) instead of doing it all
2324 * javax/swing/Timer.java
2325 (queueEvent): Added missing modifier.
2327 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2329 * Makefile.am: Added new file.
2330 * Makefile.in: Re-generate.
2331 * javax/swing/JMenu.java:
2332 (insertSeparator): Implemented.
2333 * javax/swing/JPopupMenu.java:
2334 (JPopupMenu.Separator): Implemented.
2335 * javax/swing/MenuSelectionManager.java:
2336 (processMouseEvent): Use java.awt.Component
2337 for event source instead of javax.swing.JComponent.
2338 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2339 New File. Implemented.
2341 2004-06-16 David Jee <djee@redhat.com>
2343 * java/awt/GridBagLayout.java
2344 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2345 Make sure pos_x and pos_y are never negative.
2347 2004-04-16 Andrew Overholt <overholt@redhat.com>
2349 * Makefile.am: Add new file.
2350 * Makefile.in: Re-generate.
2351 * javax/swing/JToolBar.java
2352 Partially implemented.
2353 * javax/swing/plaf/basic/BasicToolBarUI.java
2354 New file. Partially implemented.
2356 2004-06-16 Graydon Hoare <graydon@redhat.com>
2358 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2359 (setComposite): Accept AlphaComposite arguments.
2360 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2361 (createBufferedImage): Add new overloads.
2362 * gnu/java/awt/peer/gtk/GtkToolkit.java
2363 (createImage): Use GdkPixbufDecoder.createBufferedImage
2364 when useGraphics2D() is true.
2365 (getImage): Delegate to createImage.
2366 * javax/swing/JList.java
2368 (getFirstVisibleIndex):
2369 (getLastVisibleIndex):
2371 (ensureIndexIsVisible): New methods.
2372 * javax/swing/Timer.java: Reimplement.
2374 2004-06-16 Michael Koch <konqueror@gmx.de>
2376 * javax/swing/text/AbstractDocument.java
2377 (AbstracElement): Made public, implements java.io.Serializable.
2378 (AttributeContext): Made public.
2379 (BranchElement): Likewise.
2380 (Content): Likewise.
2381 (DefaultDocumentEvent): Made public, extends
2382 javax.swing.undo.CompoundEdit.
2383 (ElementEdit): Made public, extends
2384 javax.swing.undo.AbstractUndoableEdit.
2385 (LeafElement): Made public.
2386 (LeafElement.LeafElement): Made public.
2388 2004-06-16 Michael Koch <konqueror@gmx.de>
2390 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2391 methods (that were obviously never be intended to get included hi this
2392 class. Added some methods too.
2394 2004-06-16 Michael Koch <konqueror@gmx.de>
2396 * javax/swing/text/PlainDocument.java
2397 (serialVersionUID): New constant.
2398 (lineLimitAttribute): Likewise.
2399 (tabSizeAttribute): Likewise.
2400 (tabSize): New field.
2401 (PlainDocument): Made public.
2402 (PlainDocument): New constructor.
2404 2004-06-16 Michael Koch <konqueror@gmx.de>
2406 * javax/swing/text/AbstractDocument.java
2407 (insertString): Throws BadLocationException.
2408 * javax/swing/text/Document.java
2409 (insertString): Likewise.
2410 * javax/swing/text/JTextComponent.java:
2411 Javadocs and comments cleaned up.
2413 2004-06-16 Michael Koch <konqueror@gmx.de>
2415 * javax/swing/event/UndoableEditListener.java: Reformatted.
2416 * javax/swing/text/AbstractDocument.java
2417 (AbstractDocument): Implements java.io.Serializable.
2418 (doc_list): Removed.
2419 (undo_list): Removed.
2420 (AbstractElement.serialVerionUID): New field.
2421 (BranchElement.serialVerionUID): Likewise.
2422 (DefaultDocumentEvent.serialVerionUID): Likewise.
2423 (ElementEdit.serialVerionUID): Likewise.
2424 (LeafElement.serialVerionUID): Likewise.
2425 (serialVerionUID): Likewise.
2426 (BAD_LOCATION): New constant.
2427 (BidiElementName): Likewise.
2428 (ContentElementName): Likewise.
2429 (ParagraphElementName): Likewise.
2430 (SectionElementName): Likewise.
2431 (ElementNameAttribute): Likewise.
2432 (AbstractDocument): Made protected.
2433 (AbstractDocument): New construtor.
2434 (listenerList): New field.
2435 (fireChangedUpdate): Implemented.
2436 (fireInsertUpdate): Likewise.
2437 (fireRemoveUpdate): Likewise.
2438 (fireUndoableEditUpdate): Likewise.
2439 (getListeners): Likewise.
2440 (addDocumentListener): Likewise.
2441 (removeDocumentListener): Likewise.
2442 (addUndoableEditListener): Likewise.
2443 (removeUndoableEditListener): Likewise.
2444 (getDocumentListeners): New method.
2445 (getUndoableEditListeners): Likewise.
2446 (getAsynchronousLoadPriority): Made public.
2447 (getBidiRootElement): Likewise.
2448 (setAsynchronousLoadPriority): Likewise.
2449 (setDocumentProperties): Likewise.
2450 * javax/swing/text/BadLocationException.java
2451 (serialVerionUID): New field.
2452 * javax/swing/text/DefaultCaret.java
2453 (changeEvent): New field.
2454 (listenerList): Likewise.
2456 (addChangeListener): Reimplemented.
2457 (removeChangeListener): Likewise.
2458 (getListeners): New method.
2459 (getChangeListeners): Likwise.
2460 (getComponent): Likewise.
2461 * javax/swing/text/GapContent.java
2462 (GapContent): Implements java.io.Serializable.
2463 (serialVerionUID): New field.
2465 2004-06-16 Michael Koch <konqueror@gmx.de>
2467 * javax/swing/JTree.java
2468 (treeModel): New field.
2469 (JTree): New constructors, one existing one made public.
2470 (createTreeModel): New method.
2471 (addTreeExpansionListener): Likewise.
2472 (removeTreeExpansionListener): Likewise.
2473 (getTreeExpansionListeners): Likewise.
2474 (fireTreeCollapsed): Likewise.
2475 (fireTreeExpanded): Likewise.
2476 (addTreeSelectionListener): Likewise.
2477 (removeTreeSelectionListener): Likewise.
2478 (getTreeSelectionListeners): Likewise.
2479 (fireValueChanged): Likewise.
2480 (addTreeWillExpandListener): Likewise.
2481 (removeTreeWillExpandListener): Likewise.
2482 (getTreeWillExpandListeners): Likewise.
2483 (fireTreeWillCollapse): Likewise.
2484 (fireTreeWillExpand): Likewise.
2486 2004-06-16 Michael Koch <konqueror@gmx.de>
2488 * javax/swing/JTree.java: Reformatted.
2490 2004-06-16 Michael Koch <konqueror@gmx.de>
2492 * javax/swing/JTextArea.java: New file.
2493 * javax/swing/JTextField.java
2495 (notifyAction): New constant.
2496 (columns): New field.
2497 (JTextField): New constructors.
2498 (createDefaultModel): New method.
2499 (addActionListener): Reimplmemented.
2500 (removeActionListener): Reimplemented.
2501 (getActionListeners): New method.
2502 (fireActionPerformed): New method.
2503 (getColumns): New method.
2504 (setColumne): New method.
2505 * javax/swing/text/JTextComponent.java
2506 (AccessibleJTextComponent.serialVersionUID): New field.
2507 (serialVersionUID): Likewise.
2508 (DEFAULT_KEYMAP): Likewise.
2509 (FOCUS_ACCELERATOR_KEY): Likewise.
2510 (doc): Made private.
2511 (icon_gap): Likewise.
2514 (JTextComponent): Some constructors removed.
2515 (getScrollableTracksViewportHeight): New method.
2516 (getScrollableTracksViewportWidth): Likewise.
2517 * Makefile.am: Added javax/swing/JTextArea.java.
2518 * Makefile.in: Regenerated.
2520 2004-06-15 Graydon Hoare <graydon@redhat.com>
2522 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2523 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2524 * javax/swing/JViewport.java
2525 (getExtentSize): Return size rather than preferred size.
2526 (toViewCoordinates): New methods.
2527 (getViewSize): Return size rather than preferred size.
2528 (setViewSize): Note view size as set.
2529 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2530 * javax/swing/plaf/basic/BasicScrollBarUI.java
2531 (getPreferredSize): Don't redo layout.
2532 * javax/swing/plaf/basic/BasicViewportUI.java
2533 (paint): Translate image properly and eat exceptions.
2535 2004-06-15 Kim Ho <kho@redhat.com>
2537 * javax/swing/JTabbedPane.java
2538 (setComponent): Remove old component and
2540 (setSelectedIndex): Don't operate on the
2541 components if they're null. Don't set index
2542 on the model if the index is the same.
2543 (insertTab): Don't add or hide the component
2544 if it's null. Repaint the container.
2545 * javax/swing/plaf/basic/BasicLookAndFeel.java
2546 Change colors for TabbedPane.
2547 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2548 (mousePressed): Re-layout and paint the component.
2549 (layoutContainer): Don't set location on the view.
2550 (ScrollingViewport::paint): Remove.
2552 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2554 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2555 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2557 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2558 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2559 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2561 (drawLine): Call gdk_flush before leaving GDK critical region.
2562 (fillRect): Likewise.
2563 (drawRect): Likewise.
2564 (copyArea): Likewise.
2565 (copyPixmap): Likewise.
2566 (clearRect): Likewise.
2567 (drawArc): Likewise.
2568 (drawPolyline): Likewise.
2569 (drawPolygon): Likewise.
2570 (fillPolygon): Likewise.
2571 (fillArc): Likewise.
2572 (drawOval): Likewise.
2573 (fillOval): Likewise.
2575 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2577 (GdkFontMetrics): Add style argument to initState call.
2578 (stringWidth(String,int,int,String)): Add style parameter.
2579 (stringWidth(String)): Add style argument to stringWidth call.
2580 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2581 (initState): Set pango font style and weight based on AWT style
2582 parameter. Pass default GTK language to
2583 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2584 simply dividing by PANGO_SCALE.
2585 (stringWidth): Set pango font style and weight based on AWT style
2588 * java/awt/Button.java (next_button_number): New field.
2589 (paramString): Change output.
2590 (generateName): New method.
2591 (getUniqueLong): New method.
2593 2004-06-14 Kim Ho <kho@redhat.com>
2595 * javax/swing/JTabbedPane.java:
2596 (setComponentAt): Set the component, not
2598 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2599 (actionPerformed): Let deiconize catch exception.
2601 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2603 * javax/swing/JPopupMenu.java:
2604 (setVisible): Corrected location of a
2605 heavyweight popup menu.
2607 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2609 * javax/swing/MenuSelectionManager.java:
2610 Ran through jalopy to fix formatting style.
2612 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2614 * javax/swing/JLayeredPane.java:
2615 (remove): Revalidate and repaint layered pane after
2616 the component was removed.
2617 javax/swing/JMenu.java:
2618 (setVisible): Display popup menu at the user location,
2619 if one was set by the user.
2620 (setMenuLocation): Reimplemented. Fixed javadoc.
2621 * javax/swing/JMenuBar.java: Added javadoc.
2622 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2623 (MODEL_CHANGED_PROPERTY): New Property.
2624 (isSelected): Implemented.
2625 (setBorderPainted): Fire PropertyChangeEvent
2626 if paintBorder property changes.
2627 (setSelected): Implemented.
2628 (setSelectionModel): Implemented.
2629 * javax/swing/JPopupMenu.java: Added Javadoc
2630 (pack): Implemented.
2631 (setVisible): Reimplemented.
2632 (show): Fixed location.
2633 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2634 Container instead of JPanel.
2635 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2636 (clearSelectedPath): Reimplemented to clear selectedPath
2638 (processMouseEvent): Reimplemented.
2639 (setSelectedPath): Fire stateChange event indicating that
2640 selected menu path has changed.
2641 (getPath): Change to use ArrayList instead of Vector.
2642 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2643 (installUI): call installKeyboardActions().
2644 (uninstallUI): call uninstallKeyboardActions().
2646 2004-06-13 Michael Koch <konqueror@gmx.de>
2648 * javax/swing/text/DefaultCaret.java,
2649 javax/swing/text/BadLocationException.java:
2652 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2654 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2655 DEFAULT_COLS): New variables.
2656 (create): Don't allow 0 rows or 0 columns. Instead, set the
2657 values to DEFAULT_ROWS or DEFAULT_COLS.
2658 (getMinimumSize): Likewise.
2659 (getPreferredSize): Likewise.
2660 (minimumSize): Likewise.
2661 (preferredSize): Likewise.
2662 (create): Set peer's editable state.
2663 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2664 zero. Update javadocs.
2665 (TextArea(String)): Likewise.
2666 (TextArea(int,int)): Fix javadocs.
2667 (TextArea(String,int,int,int)): Only throw exception if one of
2668 rows or columns is zero. Fix javadocs.
2670 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2672 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2673 addition to Components.
2675 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2676 wasn't consumed by normal processing, send it to the parent
2679 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2680 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2683 2004-06-11 David Jee <djee@redhat.com>
2685 * java/awt/MediaTracker.java
2686 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2687 (addImage(Image,int,int,int)): Likewise.
2689 2004-06-11 Michael Koch <konqueror@gmx.de>
2691 * javax/swing/text/AbstractDocument.java,
2692 javax/swing/text/Document.java,
2693 javax/swing/text/GapContent.java,
2694 javax/swing/text/JTextComponent.java,
2695 javax/swing/text/PlainDocument.java:
2698 2004-06-11 Michael Koch <konqueror@gmx.de>
2700 * javax/swing/JRootPane.java
2701 (AccessibleJRootPane.serialVersionUID): New field.
2702 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2703 (AccessibleJRootPane.getAccessibleRole): New method.
2704 (RootLayout): Implements Serializable.
2705 (RootLayout.serialVersionUID): New field.
2706 (RootLayout.RootLayout): New constructor.
2707 (setJMenuBar): Made public.
2708 (getJMenuBar): Likewise.
2709 (JRootPane): Likewise.
2710 (createContentPane): Likewise.
2711 (createGlassPane): Likewise.
2712 (createLayeredPane): Likewise.
2714 2004-06-11 Michael Koch <konqueror@gmx.de>
2716 * javax/swing/SwingUtilities.java
2717 (isLeftMouseButton): Fixed javadoc.
2718 (isMiddleMouseButton): Likewise.
2719 (isRightMouseButton): Likewise.
2721 2004-06-11 Michael Koch <konqueror@gmx.de>
2723 * javax/swing/JScrollPane.java
2724 (serialVersionUID): New field.
2725 (columnHeader): Made protected.
2726 (rowHeader): Likewise.
2727 (lowerLeft): Likewise.
2728 (lowerRight): Likewise.
2729 (upperLeft): Likewise.
2730 (upperRight): Likewise.
2731 (horizontalScrollBar): Likewise.
2732 (horizontalScrollBarPolicy): Likewise.
2733 (verticalScrollBar): Likewise.
2734 (verticalScrollBarPolicy): Likewise.
2735 (viewport): Likewise.
2737 2004-06-11 Michael Koch <konqueror@gmx.de>
2739 * javax/swing/LookAndFeel.java: Fixed javadocs.
2741 2004-06-11 Michael Koch <konqueror@gmx.de>
2743 * javax/swing/JEditorPane.java: Fixed javadocs.
2744 (JEditorPane): Removed redundant call to to this().
2745 (fireHyperlinkUpdate): Implemented.
2747 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2749 * javax/swing/JMenu.java: Fixed file name
2750 in the file comment.
2752 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2754 * javax/swing/JMenu.java: Added javadoc.
2755 (JMenu): Added MenuChangeListener to listen to
2756 ChangeEvents occuring in menu's model.
2757 (insert): Throw IllegalArgumentException if
2758 index is less than 0
2759 (setSelected): Reimplement.
2760 (setPopupMenuVisible): Call menu's model isEnabled()
2761 (setDelay): Throw IllegalArgumentException if
2762 given amount of delay is less than 0.
2763 (createActionComponent): Implemented.
2764 (createActionChangeListener): Implemented.
2765 (addSeparator): Implemented.
2766 (getItem): Throw IllegalArgumentException if index is
2768 (getItemCount): Implemented.
2769 (fireMenuSelected): Changed to use menuEvent.
2770 (fireMenuDeselected): Likewise.
2771 (fireMenuCanceled): Likewise.
2772 (setAccelerator): Changed to throw an error if this
2774 (doClick): Implemented.
2775 (JMenu.ActionChangedListener): New inner class to handle
2776 PropertyChangeEvents occuring in the actions associated with menu.
2777 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2778 (BasicMenuUI): Added PropertyChangeListener to the menu.
2779 (createChangeListener): Implemented.
2780 (createMenuDragMouseListener): Likewise.
2781 (createMenuKeyListener): Likewise.
2782 (createPropertyChangeListener): Likewise.
2783 (uninstallListeners): Likewise.
2784 (BasicMenuUI.MouseInputHandler): Reimplemented.
2785 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2786 (BasicMenuUI.ChangeHandler): Likewise.
2787 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2788 (BasicMenuUI.MenuKeyHandler): Likewise.
2790 2004-06-10 David Jee <djee@redhat.com>
2792 * java/awt/MediaTracker.java
2793 (imageUpdate): Only do notifyAll() if the image is complete.
2795 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2797 * javax/swing/JApplet.java:
2798 (getJMenuBar): Made public.
2799 (setJMenuBar): Likewise.
2800 * javax/swing/JFrame.java:
2801 (getJMenuBar): Made public.
2802 (setJMenuBar): Likewise.
2803 * javax/swing/JWindow.java:
2804 (getJMenuBar): Removed.
2805 (setJMenuBar): Removed.
2807 2004-06-10 Michael Koch <konqueror@gmx.de>
2809 * javax/swing/JEditorPane.java
2810 (createEditorKitForContentType): Fixed visibility.
2811 (fireHyperlinkUpdate): Likewise.
2812 (getContentType): Likewise.
2813 (getEditorKit): Likewise.
2814 (getEditorKitForContentType): Likewise.
2815 (getPage): Likewise.
2817 (registerEditorKitForContentTyoe): Likewise.
2818 (replaceSelection): Likewise.
2819 (setContentType): Likewise.
2820 (setEditorKit): Likewise.
2821 (setPage): Likewise.
2823 2004-06-10 Michael Koch <konqueror@gmx.de>
2825 * javax/swing/Timer.java
2826 (Timer): New constructor.
2827 * javax/swing/plaf/basic/BasicProgressBarUI.java
2828 (animationTimer): Don't initialize at construction.
2829 (startAnimationTimer): Added since tag.
2830 (stopAnimationTimer): Likewise.
2831 (installUI): Use new Timer constructor.
2832 * javax/swing/plaf/basic/BasicScrollBarUI.java
2833 (installUI): Likewise.
2834 * javax/swing/plaf/basic/BasicSliderUI.java
2835 (installUI): Likewise.
2837 2004-06-10 Michael Koch <konqueror@gmx.de>
2839 * javax/swing/ButtonGroup.java
2840 (serialVersionUID): Made private.
2841 (buttons): Renamed from v, added javadoc.
2842 (sel): Added javadoc.
2843 (ButtonGroup): Likewise.
2846 (getElements): Likewise.
2847 (getSelection): Likewise.
2848 (setSelected): Likewise.
2849 (isSelected): Likewise.
2850 (getButtonCount): Likewise.
2852 2004-06-10 Michael Koch <konqueror@gmx.de>
2854 * javax/swing/ButtonGroup.java,
2855 javax/swing/ImageIcon.java,
2856 javax/swing/JEditorPane.java,
2857 javax/swing/JRootPane.java,
2858 javax/swing/JTextField.java,
2859 javax/swing/LookAndFeel.java,
2860 javax/swing/plaf/basic/BasicTextUI.java:
2863 2004-06-10 Michael Koch <konqueror@gmx.de>
2865 * javax/swing/text/Style.java: Added javadocs.
2867 2004-06-10 Michael Koch <konqueror@gmx.de>
2869 * javax/swing/JComponent.java
2870 (fireVetoableChange): Removed redundant cast.
2871 * javax/swing/JLabel.java
2872 (getDisabledIcon): Save icon for next call.
2874 2004-06-10 Michael Koch <konqueror@gmx.de>
2876 * javax/swing/KeyStroke.java
2877 (getKeyStroke(char,boolean)): Marked deprecated.
2879 2004-06-10 Michael Koch <konqueror@gmx.de>
2881 * javax/swing/DefaultCellEditor.java,
2882 javax/swing/GrayFilter.java,
2883 javax/swing/event/DocumentEvent.java,
2884 javax/swing/text/JTextComponent.java,
2885 javax/swing/text/MutableAttributeSet.java:
2888 2004-06-10 Michael Koch <konqueror@gmx.de>
2890 * javax/swing/plaf/BorderUIResource.java:
2891 Added serialVersionUID all over.
2893 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2895 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2897 2004-06-10 Michael Koch <konqueror@gmx.de>
2899 * javax/swing/table/DefaultTableCellRenderer.java
2900 (noFocusBorder): Initialize directly.
2902 2004-06-10 Michael Koch <konqueror@gmx.de>
2904 * javax/swing/plaf/basic/BasicArrowButton.java
2905 (setDirection): Use method argument.
2907 2004-06-10 Michael Koch <konqueror@gmx.de>
2909 * javax/swing/plaf/BorderUIResource.java,
2910 javax/swing/plaf/ComponentUI.java,
2911 javax/swing/undo/CompoundEdit.java,
2912 javax/swing/undo/StateEdit.java:
2913 Fixed javadocs all over.
2915 2004-06-10 Michael Koch <konqueror@gmx.de>
2917 * javax/swing/DefaultButtonModel.java
2918 (ARMED): Made public final, fixed value.
2919 (ENABLED): Likewise.
2920 (PRESSED): Likewise.
2921 (ROLLOVER): Likewise.
2922 (SELECTED): Likewise.
2923 (stateMask): Initialize directly.
2924 (listenerList): Likewise.
2925 (mnemonic): Likewise.
2926 (fireStateChanged): Removed argument, use changeEvent as event.
2927 All places where this method is called are fixed too.
2928 (getActionCommant): Fixed javadoc.
2929 (setGroup): Fixed javadoc.
2930 (getGroup): New method.
2932 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2934 * javax/swing/AbstractButton.java
2935 (AbstractButton): Use init() to initialize the button.
2936 (init): New Method. Initializes AbstractButton.
2937 * javax/swing/JMenuItem.java: Documented.
2938 (JMenuItem): Reimplemented.
2939 (init): Implemented.
2940 (setEnabled): Changed to call super.setEnabled()
2941 (processMouseEvent): Reimplemented.
2942 (fireMenuKeyPressed): Implemented.
2943 (fireMenuKeyReleased): Implemented.
2944 (fireMenuKeyTyped): Implemented.
2945 (menuSelectionChanged): disarm the model if the menu item was
2947 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2948 (getPath): Change to use ArrayList instead of Vector.
2949 (getPreferredSize): Renamed variable.
2950 (paintMenuItem): Paint margin area of menu item.
2951 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2952 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2953 menu item's bounds before clearing the selection.
2955 2004-06-09 David Jee <djee@redhat.com>
2957 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2958 (GtkTextComponentPeer): Set caret position to 0.
2959 * java/awt/TextComponent.java
2960 (setText): Set caret position to 0.
2961 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2962 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2963 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2964 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2966 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2967 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2970 2004-06-09 Kim Ho <kho@redhat.com>
2972 * Makefile.am: New files
2973 * Makefile.in: Regenerated
2974 * java/awt/Container.java
2975 (getComponentAt): Removed.
2976 * javax/swing/AbstractAction.java
2977 (ENABLED_PROPERTY): New property.
2978 (putValue): Fire PropertyChangeEvents.
2979 (setEnabled): ditto.
2980 (firePropertyChange): Javadoc and implement
2982 * javax/swing/AbstractButton.java
2983 (setAction): Don't create PropertyChangeListener
2984 if new Action is null.
2985 (setIcon): Don't set icon till after comparing
2987 (configurePropertiesFromAction): Check mnemonic
2988 key before calling intValue().
2989 (createActionPropertyChangeListener): Check
2990 properties rather than bulk change.
2991 * javax/swing/DefaultDesktopManager.java:
2993 * javax/swing/DesktopManager.java:
2995 * javax/swing/JComponent.java
2996 (fireVetoableChange): Implement.
2997 (paintImmediately): Use root component.
2998 * javax/swing/JDesktopPane.java: Implement
2999 * javax/swing/JInternalFrame.java: Implement
3000 * javax/swing/JLabel.java
3001 (getDisabledIcon): Return grayscaled icon if
3002 no disabled icon specified.
3003 * javax/swing/JMenuBar.java
3004 (getComponentAtIndex): Use getComponent
3005 * javax/swing/JOptionPane.java
3006 (getDesktopPaneForComponent): Use SwingUtilities'
3008 (getFrameForComponent): ditto.
3009 * javax/swing/JSplitPane.java
3010 (remove): Use getComponent.
3011 * javax/swing/SwingUtilities.java
3012 (convertPoint): Implement.
3013 * javax/swing/plaf/basic/BasicButtonUI.java
3014 (paintButtonNormal): Check opaqueness before
3016 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
3018 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
3020 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
3022 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
3024 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3025 Change InternalFrame and Desktop colors.
3027 2004-06-09 David Jee <djee@redhat.com>
3029 * java/awt/Container.java
3030 (remove): Do not set component to invisible.
3032 2004-06-09 Michael Koch <konqueror@gmx.de>
3034 * javax/swing/tree/DefaultMutableTreeNode.java
3035 (getLeafCount): Renamed enum to e.
3037 2004-06-09 Michael Koch <konqueror@gmx.de>
3039 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3040 (positionForMouseEvent): Removed redundant semicolon.
3041 (continueDrag): Use method arguments.
3043 2004-06-09 Michael Koch <konqueror@gmx.de>
3045 * javax/swing/border/TitledBorder.java,
3046 javax/swing/filechooser/FileSystemView.java,
3047 javax/swing/plaf/basic/BasicButtonListener.java,
3048 javax/swing/plaf/basic/BasicGraphicsUtils.java,
3049 javax/swing/plaf/basic/BasicLabelUI.java,
3050 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
3051 javax/swing/plaf/basic/BasicScrollBarUI.java,
3052 javax/swing/plaf/basic/BasicScrollPaneUI.java,
3053 javax/swing/plaf/basic/BasicSliderUI.java,
3054 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
3055 javax/swing/plaf/basic/BasicToggleButtonUI.java,
3056 javax/swing/table/JTableHeader.java,
3057 javax/swing/text/AbstractDocument.java,
3058 javax/swing/text/DefaultCaret.java,
3059 javax/swing/text/StyledEditorKit.java,
3060 javax/swing/tree/DefaultTreeCellEditor.java:
3061 Reworked import statements.
3063 2004-06-08 Graydon Hoare <graydon@redhat.com>
3065 * javax/swing/Box.java: Temporarily comment out code
3066 broken due to visibility bug.
3068 2004-06-09 Michael Koch <konqueror@gmx.de>
3070 * javax/swing/ImageIcon.java
3071 (ImageIcon): Added missing constructor.
3073 2004-06-08 Michael Koch <konqueror@gmx.de>
3075 * javax/swing/JToggleButton.java
3076 (JToggleButton): New constructor.
3077 (getAccessibleContext): Moved documentation into javadoc.
3078 (getUIClassID): Likewise.
3080 2004-06-08 Michael Koch <konqueror@gmx.de>
3082 * javax/swing/AbstractButton.java
3083 (getDisabledIcon): Create disabled icon if none exists yet.
3085 2004-06-08 Michael Koch <konqueror@gmx.de>
3087 * javax/swing/plaf/basic/BasicLookAndFeel.java
3088 (initClassDefaults): Added FormattedTextFieldUI.
3089 (loadResourceBundle): Renamed enum to e.
3091 2004-06-08 Michael Koch <konqueror@gmx.de>
3093 * javax/swing/plaf/basic/BasicButtonUI.java
3094 (paintIcon): Simplified.
3095 (paintText): Paint disabled button correctly.
3097 2004-06-08 Michael Koch <konqueror@gmx.de>
3099 * javax/swing/JComponent.java
3100 (createToolTip): Use official JToolTip API.
3102 2004-06-08 Michael Koch <konqueror@gmx.de>
3104 * javax/swing/JToolTip.java
3105 (JToolTip): No arguments in API.
3106 (setTipText): New method.
3108 2004-06-08 Michael Koch <konqueror@gmx.de>
3110 * javax/swing/SwingUtilities.java
3111 (isLeftMouseButton): New method.
3112 (isMiddleMouseButton): New method.
3113 (isRightMouseButton): New method.
3115 2004-06-08 Michael Koch <konqueror@gmx.de>
3117 * javax/swing/AbstractButton.java,
3118 javax/swing/CellRendererPane.java,
3119 javax/swing/JCheckBoxMenuItem.java,
3120 javax/swing/JColorChooser.java,
3121 javax/swing/JComboBox.java,
3122 javax/swing/JComponent.java,
3123 javax/swing/JDesktopPane.java,
3124 javax/swing/JFileChooser.java,
3125 javax/swing/JMenu.java,
3126 javax/swing/JMenuItem.java,
3127 javax/swing/JOptionPane.java,
3128 javax/swing/JPasswordField.java,
3129 javax/swing/JPopupMenu.java,
3130 javax/swing/JProgressBar.java,
3131 javax/swing/JRadioButtonMenuItem.java,
3132 javax/swing/JScrollBar.java,
3133 javax/swing/JSeparator.java,
3134 javax/swing/JSlider.java,
3135 javax/swing/JSplitPane.java,
3136 javax/swing/JTabbedPane.java,
3137 javax/swing/JTextField.java,
3138 javax/swing/JToolBar.java,
3139 javax/swing/text/JTextComponent.java:
3140 Fixed all constructors of accessibility classes.
3142 2004-06-08 Michael Koch <konqueror@gmx.de>
3144 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
3147 2004-06-08 Michael Koch <konqueror@gmx.de>
3149 * javax/swing/Box.java
3150 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
3151 (AccessibleBoxFiller.serialVersionUID): New member variable.
3152 * javax/swing/DefaultButtonModel.java
3153 (stateMask): Made protected.
3154 (listenerList): Likewise.
3155 (changeEvent): Likewise.
3157 (mnemonic): Likewise.
3158 (actionCommand): Likewise.
3159 (getListeners): New method.
3160 (getActionListeners): New method.
3161 (getItemListeners): New method.
3162 (getChangeListeners): New method.
3163 (fireItemStateChanged): Simplified.
3164 (fireActionPerformed): Simplified.
3165 (fireStateChanged): Simplified.
3166 * javax/swing/JFrame.java
3167 (JFrame): Implements WindowContants.
3168 (HIDE_ON_CLOSE): Removed.
3169 (EXIT_ON_CLOSE): Removed.
3170 (DISPOSE_ON_CLOSE): Removed.
3171 (DO_NOTHING_ON_CLOSE): Removed.
3172 (processWindowEvent): Exit with code 0.
3173 (setDefaultCloseOperation): Do security check before setting value.
3174 * javax/swing/JOptionPane.java
3175 (message): Initialize only in constructor.
3176 * javax/swing/JToolTip.java: Removed unused imports.
3177 * javax/swing/JViewport.java
3178 (serialVersionUID): New member variable.
3179 (SIMPLE_SCROLL_MODE): Made final, fixed value.
3180 (BLIT_SCROLL_MODE): Likewise.
3181 (BACKINGSTORE_SCROLL_MODE): Likewise.
3182 (scrollUnderway): Made protected.
3183 (isViewSizeSet): Likewise.
3184 * javax/swing/ListModel.java: Fixed javadoc.
3185 * javax/swing/Popup.java: Likewise.
3186 * javax/swing/RepaintManager.java
3187 (paintDirtyRegions): Don't use internal classes of
3188 java.util.AbstractMap.
3189 * javax/swing/ScrollPaneConstants.java: Reindented.
3190 * javax/swing/ScrollPaneLayout.java
3191 (viewport): Made protected.
3192 (verticalScrollBar): Made protected, renamed to vsb.
3193 (horizontalScrollBar): Made protected, renamed to hsb.
3194 (rowHeader): Made protected, renamed to rowHead.
3195 (columnHeader): Made protected, renamed to colHead.
3196 (lowerLeft): Made protected.
3197 (lowerRight): Made protected.
3198 (upperLeft): Made protected.
3199 (upperRight): Made protected.
3200 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3201 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3203 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
3205 * java/awt/MediaTracker.java (imageUpdate): Only set status to
3206 LOADING if flags has SOMEBITS set.
3208 2004-06-07 Michael Koch <konqueror@gmx.de>
3210 * javax/swing/AbstractButton.java: Reorganized imports.
3211 * javax/swing/ActionMap.java: Likewise.
3212 * javax/swing/DefaultButtonModel.java: Likewise.
3213 * javax/swing/DefaultListModel.java: Likewise.
3214 * javax/swing/ImageIcon.java: Likewise.
3215 (serialVersionUID): New member variable.
3216 * javax/swing/JComboBox.java: Reorganized imports.
3217 * javax/swing/JComponent.java: Likewise.
3218 (ui): Made protected.
3219 (listenerList): Made protected.
3220 (TOOL_TIP_TEXT_KEY): New constant.
3221 (scrollRectToVisible): Removed redundant null check.
3222 * javax/swing/JFrame.java: Reorganized imports.
3223 * javax/swing/JInternalFrame.java: Reorganized imports.
3224 * javax/swing/JProgressBar.java: Likewise.
3225 * javax/swing/JRootPane.java: Likewise.
3226 * javax/swing/JScrollBar.java: Likewise.
3227 * javax/swing/JSeparator.java: Likewise.
3228 * javax/swing/JSlider.java: Likewise.
3229 * javax/swing/JTabbedPane.java: Likewise.
3230 * javax/swing/JTextField.java: Likewise.
3231 * javax/swing/JToolBar.java: Likewise.
3232 * javax/swing/JTree.java: Likewise.
3233 * javax/swing/JViewport.java: Likewise.
3234 * javax/swing/JWindow.java: Likewise.
3235 * javax/swing/KeyStroke.java: Likewise.
3236 * javax/swing/LookAndFeel.java: Likewise.
3237 * javax/swing/MenuSelectionManager.java: Likewise.
3238 * javax/swing/SwingUtilities.java: Likewise.
3239 * javax/swing/Timer.java: Likewise.
3240 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3241 * javax/swing/JList.java
3242 (HORIZONTAL_WRAP): Made final, fixed value.
3243 (VERTICAL): Likewise.
3244 (VERTICAL_WRAP): Likewise.
3246 2004-06-07 Michael Koch <konqueror@gmx.de>
3248 * javax/swing/AbstractButton.java
3249 (serialVersionUID): New member variable.
3250 (AccessibleAbstractButton.serialVersionUID): Likewise.
3251 (AbstractButton): Made public.
3252 * javax/swing/Box.java
3253 (AccessibleBox.serialVersionUID): New member variable.
3254 (Filler.serialVersionUID): Likewise.
3255 * javax/swing/DefaultListSelectionModel.java
3256 (serialVersionUID): Likewise.
3257 * javax/swing/JApplet.java
3258 (serialVersionUID): Likewise.
3259 * javax/swing/JCheckBox.java
3260 (serialVersionUID): Likewise.
3261 * javax/swing/JCheckBoxMenuItem.java
3262 (serialVersionUID): Likewise.
3263 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3264 * javax/swing/JColorChooser.java
3265 (serialVersionUID): Likewise.
3266 (AccessibleJColorChooser.serialVersionUID): Likewise.
3267 * javax/swing/JComponent.java
3268 (serialVersionUID): Made private.
3269 (AccessibleJComponent.serialVersionUID): New member variable.
3270 * javax/swing/JDesktopPane.java
3271 (serialVersionUID): Likewise.
3272 * javax/swing/JDialog.java
3273 (serialVersionUID): Likewise.
3274 * javax/swing/JFormattedTextField.java
3275 (serialVersionUID): Fixed value.
3276 * javax/swing/JFrame.java
3277 (serialVersionUID): New member variable.
3278 (getDefaultCloseOpertation): Made public.
3279 * javax/swing/JLayeredPane.java
3280 (serialVersionUID): Likewise.
3281 (LAYER_PROPERTY): Made final, fixed value.
3282 (JLayeredPane): Made public.
3283 * javax/swing/JMenu.java
3284 (AccessibleJMenu.serialVersionUID): New member variable.
3285 (WinListener.serialVersionUID): Likewise.
3286 * javax/swing/JMenuBar.java
3287 (serialVersionUID): Likewise.
3288 (getComponentAtIndex): Added @deprecated tag.
3289 * javax/swing/JMenuItem.java
3290 (serialVersionUID): New member variable.
3291 (AccessibleJMenuItem.serialVersionUID): Likewise.
3292 * javax/swing/JOptionPane.java
3293 (serialVersionUID): Likewise.
3294 (AccessibleJOptionPane.serialVersionUID): Likewise.
3295 * javax/swing/JPopupMenu.java
3296 (serialVersionUID): Likewise.
3297 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3298 (getPopupMenuListeners): New method.
3299 (getComponentAtIndex): Added @deprecated tag.
3300 * javax/swing/JProgressBar.java
3301 (serialVersionUID): New member variable.
3302 (AccessibleJProgressBar.serialVersionUID): Likewise.
3303 * javax/swing/JRadioButton.java
3304 (serialVersionUID): Likewise.
3305 * javax/swing/JRadioButtonMenuItem.java
3306 (serialVersionUID): Likewise.
3307 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3308 * javax/swing/JScrollBar.java
3309 (serialVersionUID): Likewise.
3310 (AccessibleJScrollBar.serialVersionUID): Likewise.
3311 * javax/swing/JSeparator.java
3312 (serialVersionUID): Likewise.
3313 (AccessibleJSeparator.serialVersionUID): Likewise.
3314 * javax/swing/JSlider.java: Fixed javadocs.
3315 (AccessibleJSlider.serialVersionUID): New member variable.
3316 * javax/swing/JSplitPane.java: Added copyright statement.
3317 (serialVersionUID): New member variable.
3318 (AccessibleJSplitPane.serialVersionUID): Likewise.
3319 * javax/swing/JTabbedPane.java
3320 (serialVersionUID): Likewise.
3321 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3322 (ModelListener.serialVersionUID): Likewise.
3323 (ModelListener.ModelListener): New constructor.
3324 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3325 (WRAP_TAB_LAYOUT): Likewise.
3326 * javax/swing/JTable.java
3327 (serialVersionUID): New member variable.
3328 * javax/swing/JToggleButton.java
3329 (serialVersionUID): Likewise.
3330 (ToggleButtonModel): Made static.
3331 (ToggleButtonModel.serialVersionUID): New member variable.
3332 * javax/swing/JToolTip.java
3333 (serialVersionUID): Likewise.
3334 * javax/swing/JTree.java
3335 (serialVersionUID): Likewise.
3336 * javax/swing/JWindow.java
3337 (serialVersionUID): Likewise.
3338 * javax/swing/Timer.java
3339 (serialVersionUID): Likewise.
3341 2004-06-06 Michael Koch <konqueror@gmx.de>
3343 * javax/swing/SwingConstants.java
3344 (NEXT): New constant.
3345 (PREVIOUS): Likewise.
3346 * javax/swing/UIManager.java
3347 (LookAndFeel): Made public.
3348 (LookAndFeel.getClassName): Likewise.
3349 (LookAndFeel.getName): Likewise.
3351 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3353 * javax/swing/JCheckBoxMenuItem.java:
3355 * javax/swing/JMenu.java: Likewise.
3356 * javax/swing/JMenuBar.java: Likewise.
3357 * javax/swing/JMenuItem.java: Likewise.
3358 * javax/swing/JPopupMenu.java: Likewise.
3359 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3360 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3361 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3362 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3363 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3364 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3365 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3367 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3369 * javax/swing/plaf/basic/BasicMenuUI.java:
3370 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3371 Call getPath() from super class instead.
3373 2004-05-31 David Jee <djee@redhat.com>
3375 * java/awt/Container.java
3376 (remove): Set component visibility to false after removing it.
3378 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3380 * java/awt/Component.java (getForeground): Return SystemColor if
3382 (getBackground): Likewise.
3384 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3385 (item_highlighted): New function.
3386 (connectSignals): Set item_highlighted as list's select
3389 * java/applet/Applet.java: Revert changes from 2004-04-29,
3390 2004-03-15 and 2004-03-14.
3392 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3393 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3396 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3397 "Dialog" as the default font.
3398 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3400 * java/awt/Component.java (getFont): Return "Dialog" font by
3402 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3403 Multiply size argument to pango_font_description_set_size by the
3404 DPI conversion factor rather than by PANGO_SCALE.
3405 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3406 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3407 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3408 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3409 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3410 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3411 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3412 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3413 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3414 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3415 Divide baseline y coordinate by DPI conversion factor rather
3416 than by PANGO_SCALE.
3417 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3418 (area_prepared): Fix typo.
3419 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3420 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3421 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3422 (dpi_conversion_factor): New global variable.
3423 (init_dpi_conversion_factor): New function to calculate and
3424 track DPI conversion factor.
3425 (dpi_changed_cb): New callback.
3426 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3428 2004-05-27 David Jee <djee@redhat.com>
3430 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3431 (getGraphics): Return a new GdkGraphics instance.
3432 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3433 (getGraphics): Call super.getGraphics().
3435 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3437 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3438 (setNativeBounds): Clamp width and height values to >= 0.
3440 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3441 (find_fg_color_widget): Handle GtkOptionMenu specially.
3443 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3444 (pre_event_handler): Only post configure events to visible
3447 2004-05-26 David Jee <djee@redhat.com>
3449 * java/awt/BorderLayout.java
3450 (layoutContainer): Fix size calculations.
3452 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3454 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3455 (window_wm_protocols_filter): Remove function.
3456 (create): Remove filter that removes WM_TAKE_FOCUS client
3459 2004-06-17 Anthony Green <green@redhat.com>
3461 * java/util/zip/ZipFile.java (getInputStream): Return null if
3464 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3465 directory contents to the class path.
3467 2004-06-15 Andrew Haley <aph@redhat.com>
3469 * java/lang/natSystem.cc (getenv0): Don't assume environment
3470 variable is Latin 1 coded.
3472 2004-06-14 Andreas Jaeger <aj@suse.de>
3474 * configure.in: Support --enable-version-specific-runtime-libs.
3475 * configure: Regenerated.
3477 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3479 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3480 to pass ClassLoader argument.
3481 * java/util/GregorianCalendar.java: Likewise.
3482 * java/util/Currency.java: Likewise.
3483 * java/text/BreakIterator.java: Likewise.
3484 * java/text/Collator.java: Likewise.
3485 * java/text/DateFormat.java: Likewise.
3486 * java/text/DateFormatSymbols.java: Likewise.
3487 * java/text/DecimalFormatSymbols.java: Likewise.
3488 * java/text/NumberFormat.java: Likewise.
3489 * java/awt/Window.java: Likewise.
3491 2004-06-14 Andrew Haley <aph@redhat.com>
3493 * java/lang/System.java: (getenv0): New method.
3494 (getenv): Add security check. Do the right thing.
3495 * java/lang/natSystem.cc (getenv0): New method.
3497 2004-06-12 Mark Wielaard <mark@klomp.org>
3499 * javax/swing/RepaintManager.java
3500 (paintDirtyRegions): Use entrySet(), not values().
3502 2004-06-10 Mark Wielaard <mark@klomp.org>
3504 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3507 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3509 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3510 when we already know the answer.
3511 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3512 (setStartRule,setEndRule): Don't take abs of day number.
3513 (getOffset): Clarify docs. Add argument checks.
3514 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3515 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3518 2004-06-10 Tom Tromey <tromey@redhat.com>
3520 * interpret.cc (run): Handle wide fload.
3522 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3524 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3526 2004-06-05 Michael Koch <konqueror@gmx.de>
3528 * javax/swing/SwingConstants.java
3529 (NEXT): New constant.
3530 (PREVIOUS): Likewise.
3532 2004-06-05 Michael Koch <konqueror@gmx.de>
3534 * javax/swing/UIManager.java
3535 (LookAndFeel): Made public.
3536 (LookAndFeel.getName): Likewise.
3537 (LookAndFeel.getClassName): Likewise.
3539 2004-06-03 Michael Koch <konqueror@gmx.de>
3541 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3542 (requestFocus): Revert last changes.
3543 (gtkRequestFocus): Removed.
3544 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3545 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3547 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3548 Reverted last patch.
3549 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3550 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3551 Reverted comment change.
3553 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3555 * javax/swing/JCheckBoxMenuItem.java:
3557 * javax/swing/JMenu.java: Likewise.
3558 * javax/swing/JMenuBar.java: Likewise.
3559 * javax/swing/JMenuItem.java: Likewise.
3560 * javax/swing/JPopupMenu.java: Likewise.
3561 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3562 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3563 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3564 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3565 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3566 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3567 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3569 2004-06-01 Tom Tromey <tromey@redhat.com>
3571 * java/io/ObjectStreamField.java: Cleaned up imports.
3573 2004-06-01 Michael Koch <konqueror@gmx.de>
3575 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3577 2004-06-01 Mark Wielaard <mark@klomp.org>
3579 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3581 2004-06-01 Michael Koch <konqueror@gmx.de>
3583 * java/security/Security.java
3584 (insertProviderAt): Use equals() instead of ==.
3585 (removeProvicer): Likewise.
3586 (getProvider): Likewise.
3587 * java/security/Signature.java
3588 (sign): Don't set state to UNINITIALIZED.
3591 2004-06-01 Mark Wielaard <mark@klomp.org>
3593 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3594 Implement by calling gtkRequestFocus.
3595 (gtkRequestFocus): New native method.
3596 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3597 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3599 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3601 (filter_expose_event_handler):
3603 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3604 (menu_pos): Mark static.
3606 2004-06-01 Michael Koch <konqueror@gmx.de>
3608 * java/text/CollationElementIterator.java,
3609 java/text/CollationKey.java,
3610 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3611 * testsuite/libjava.mauve/xfails: Removed all
3612 java.text.CollationElementIterator tests.
3614 2004-06-01 Michael Koch <konqueror@gmx.de>
3616 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3618 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3619 Java 1.5 keyword usage.
3621 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3623 * javax/swing/plaf/basic/BasicMenuUI.java:
3624 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3625 Call getPath() from super class instead.
3627 2004-05-31 Michael Koch <konqueror@gmx.de>
3629 * java/io/SequenceInputStream.java:
3630 Rename enum to e because enum is a keyword in Java 1.5.
3632 2004-05-31 Michael Koch <konqueror@gmx.de>
3634 * gnu/java/rmi/rmic/CompilerProcess.java:
3635 Fixed javadoc to by XHTML compliant.
3637 2004-05-30 Mark Wielaard <mark@klomp.org>
3639 * java/awt/Toolkit.java (loadSystemColors): Implement.
3641 2004-05-30 Michael Koch <konqueror@gmx.de>
3643 * java/lang/System.java: Reordered imports.
3645 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3647 * java/text/DecimalFormat.java
3648 (parse): Fixed parsing of decimal strings. Number of maximum
3649 digits to be read should now work.
3650 * java/text/SimpleDateFormat.java
3651 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3652 formatter. This fixes DateFormatTest.
3654 2004-05-30 Michael Koch <konqueror@gmx.de>
3656 * java/nio/Buffer.java
3657 (limit): Fixed off by one error.
3658 * java/nio/CharBuffer.java
3659 (wrap): Fixed arguments, added javadocs.
3661 2004-05-30 Michael Koch <konqueror@gmx.de>
3663 * gnu/java/beans/BeanInfoEmbryo.java,
3664 java/awt/im/InputContext.java,
3665 javax/swing/tree/DefaultMutableTreeNode.java:
3666 Rename enum to e because enum is a keyword in Java 1.5.
3668 2004-05-30 Michael Koch <konqueror@gmx.de>
3670 * gnu/java/math/MPN.java,
3671 java/awt/geom/Arc2D.java:
3672 Fixed javadocs all over.
3674 2004-05-30 Michael Koch <konqueror@gmx.de>
3676 * java/awt/DefaultKeyboardFocusManager.java
3677 (dispatchEvent): Call method to get key event dispatchers.
3678 (dispatchKeyEvent): Call method to get key event post processors.
3679 * javax/swing/JComponent.java
3680 (listenerList): Made protected.
3681 * javax/swing/JOptionPane.java
3682 (message): Don't initialize.
3683 (JOptionPane): Set message text.
3684 * javax/swing/JPopupMenu.java
3685 (show): Fixed typo in argument name.
3686 * javax/swing/RepaintManager.java
3687 (paintDirtyRegions): Use public API of java.util.Map.
3688 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3689 (positionForMouseEvent): Removed redundant ';'.
3690 (continueDrag): Use method arguments.
3692 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3694 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3697 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3699 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3701 * gnu/gcj/RawDataManaged.java: New file.
3702 * java/lang/Thread.java (data): Declare as RawDataManaged.
3703 * java/lang/natThread.cc (init_native): Cast natThread data to
3704 RawDataManaged, not jobject.
3705 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3706 * Makefile.in: Rebuilt.
3708 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3710 * java/util/SimpleTimeZone.java: Reverting my last change until I
3711 can fix it properly.
3713 2004-05-27 Michael Koch <konqueror@gmx.de>
3715 * javax/swing/JPopupMenu.java
3716 (isVisible): Do not use visible directly.
3717 (setVisible): Likewise.
3718 * javax/swing/JWindow.java
3719 (JWindow): call accessible constructor.
3720 * javax/swing/RepaintManager.java
3721 (paintDirtyRegions): Use public methods to obtain iterator.
3723 2004-05-25 David Jee <djee@redhat.com>
3725 * java/awt/Container.java
3726 (remove): Set component's parent to null only after we removed the
3727 component from its parent's layout manager.
3729 2004-05-25 David Jee <djee@redhat.com>
3731 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3732 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3734 * gnu/java/awt/peer/gtk/GtkListPeer.java
3735 (getSize): Change native method declaration.
3736 (minimumSize): Pass visible row count into getSize().
3737 (preferredSize): Likewise.
3738 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3739 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3740 natural size. Use visible row count to determine the final height
3743 2004-05-21 Graydon Hoare <graydon@redhat.com>
3745 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3746 (setClip): Minor correction to order of operations.
3748 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3749 * javax/swing/ScrollPaneLayout.java: Likewise.
3750 * javax/swing/JViewPort.java: Likewise.
3751 * javax/swing/ViewportLayout.java: Likewise.
3753 * javax/swing/JComponent.java: Rewrite.
3754 * javax/swing/RepaintManager.java: Likewise.
3756 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3757 * javax/swing/JList.java
3758 (setSelectedIndices):
3759 (getSelectedIndices):
3760 (getSelectedValues): New functions.
3761 (getPreferredScrollableViewportSize): Return preferred size.
3762 (getScrollableUnitIncrement):
3763 (getScrollableBlockIncrement): Initial implementations.
3764 * javax/swing/JRootPane.java: Clean up slightly.
3769 (isValidateRoot): Add overrides from JComponent.
3770 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3771 * javax/swing/UIManager.java (getDimension): Return the dimension.
3773 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3774 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3775 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3776 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3777 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3778 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3779 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3780 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3781 Likewise, and set background.
3782 * javax/swing/plaf/basic/BasicListUI.java:
3783 Likewise, and improve a bit.
3784 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3785 Likewise, and adjust calculations.
3786 * javax/swing/plaf/basic/BasicViewportUI.java:
3787 Likewise, and improve a bit.
3788 * javax/swing/plaf/basic/BasicLookAndFeel.java
3789 (Button.margin): Shrink.
3791 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3792 Hack to set horizontal always, workaround pango.
3794 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3795 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3796 Synchronize more often, check cairo status after ops,
3797 handle changes to cairo pattern API, check for disposal.
3799 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3801 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3802 (BasicMenuItemUI): Create propertyChangeListener.
3803 (getPath):Implemented.
3804 (installListeners): Add propertyChangeListener to menuItem.
3805 (uninstallListeners): Remove propertyChangeListener from menuItem.
3806 (update): Implemented.
3807 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3808 (mouseEntered): Take insets of popup menu into account when
3809 calculating position of popup menu.
3811 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3813 * Makefile.am: Added new file.
3814 * Makefile.in: Regenerate.
3815 * javax/swing/JMenuBar.java:
3816 Started implementation.
3817 * javax/swing/JPopupMenu.java:
3818 (setVisible): Fixed location of lightweight/mediumweight
3820 (show): Fixed location of PopupMenu.
3821 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3822 New file. UI Delegate for JMenuBar.
3823 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3824 (mouseEntered): Corrected position of the submenu.
3826 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3828 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3829 to _gtk_accel_group_attach.
3830 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3833 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3834 package access. Don't override setFont.
3835 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3836 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3837 gtkWidgetRequestFocus package access.
3838 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3840 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3841 Give gtkWidgetRequestFocus package access.
3842 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3843 gtkWidgetRequestFocus package access. Don't override setFont.
3844 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3846 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3847 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3849 (gtkSetFont): Likewise.
3850 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3852 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3853 (gtkSetFont): Whitespace fix.
3855 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3856 (gtkWidgetSetUsize): Remove method.
3858 2004-05-18 David Jee <djee@redhat.com>
3860 * java/awt/image/MemoryImageSource.java
3861 (newPixels(int,int,int,int,boolean)): Set only the specified
3862 rectangle of pixels.
3863 (newPixels(byte[],ColorModel,int,int)): Implement.
3864 (newPixels(int[],ColorModel,int,int)): Implement.
3866 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3868 * Makefile.am: Added new file.
3869 * Makefile.in: Regenerate.
3870 * javax/swing/JMenu.java: Started
3872 * javax/swing/JPopupMenu.java:
3873 (insert): If specified index is -1, then
3874 add component at the end.
3875 (isPopupTrigger): Reimplemented.
3876 (JPopupMenu.LightWeightPopup): setBounds
3877 of the lightWeightPopup before adding it
3879 (javax/swing/plaf/basic/BasicIconFactory.java):
3880 (getMenuArrowIcon): Implemented.
3881 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3882 (getPreferredSize): Add size of the arrow icon
3883 if this menu item is instance of JMenu.
3884 (paintMenuItem): Paint arrow icon if this
3885 menu item is a submenu.
3886 * javax/swing/plaf/basic/BasicMenuUI.java:
3887 New File. UI Delegate for JMenu.
3889 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3891 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3892 Post KEY_TYPED events.
3893 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3894 (generates_key_typed_event): Remove function.
3896 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3898 * javax/swing/JRootPane.java
3899 (JRootPane.RootLayout): Reimplemented to
3900 set bounds of contentPane and menuBar.
3901 (setJMenuBar): Add menu bar to the layered pane.
3902 (createLayeredPane): Set layout of layeredPane
3904 * javax/swing/JLayeredPane.java:
3905 (addImpl): Calculate index of the component in the
3906 layeredPane according to the specified position within
3909 2004-05-17 David Jee <djee@redhat.com>
3911 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3912 (setPixels): Change color model to the default model after
3914 * java/awt/image/MemoryImageSource.java
3915 (newPixels): Set only the specified rectangle of pixels.
3917 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3919 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3920 -l-java-beans -l-javax-accessibility -l-javax-swing.
3922 * java/awt/AWTEvent.java (toString): Print source's name rather
3923 than the source itself.
3925 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3927 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3929 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3930 (gdk_color_to_java_color): New function.
3931 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3933 2004-05-12 David Jee <djee@redhat.com>
3935 * java/awt/image/RGBImageFilter.java:
3936 Initialize origmodel as null.
3937 (makeColor): Fix pixel component order.
3938 (filterRGBPixels): Fix pixel iteration.
3939 (setPixels): Add extra checks for index color model. Convert pixels
3940 to default color model if necessary.
3941 (convertColorModelToDefault): New override method for byte pixels.
3942 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3943 (makeColorbyDefaultCM): New override method for byte pixels.
3944 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3945 (makeColor): Fix pixel component order.
3947 2004-05-11 Kim Ho <kho@redhat.com>
3949 * javax/swing/Box.java:
3950 Comment out more parts of Box.Filler.
3952 2004-05-11 Kim Ho <kho@redhat.com>
3954 * javax/swing/Box.java:
3955 Remove reference to AccessibleAWTComponent so
3958 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3960 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3961 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3962 implementation of list peer to use GtkTreeView instead of
3963 deprecated GtkCList.
3965 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3967 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3968 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3969 (handleEvent): Remove keyChar argument to
3970 gtkWidgetDispatchKeyEvent calls.
3971 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3973 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3974 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3975 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3978 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3980 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3981 (gtkWidgetRequestFocus): Mark protected.
3982 (GtkComponentPeer): Only set the peer's bounds if its component
3984 * java/awt/Component.java (static): Set the default keyboard
3986 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3987 requestFocusInWindow(temporary)): Don't request focus if the
3988 component is not showing. Get tree lock before traversing
3989 component hierarchy.
3990 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3991 Only set the global focus owner if it is not a Window.
3992 (processKeyEvent): Consume keystrokes associated with the focus
3993 traversal keystroke.
3994 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3995 downFocusCycle): Call requestFocusInWindow instead of
3997 * java/awt/EventDispatchThread.java (run): Move setting of
3998 default keyboard focus manager to Component.java.
3999 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4000 (awt_keycode_to_keysym): New function.
4001 (gtkWidgetDispatchKeyEvent): Finish implementation.
4002 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4003 (pre_event_handler): Add FIXME comment.
4005 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
4006 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
4007 (gtkWidgetRequestFocus): New method.
4008 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
4009 disable Tab and Shift-Tab keystrokes.
4010 (addNotify, appendText, insertText, replaceText): Simplify peer
4012 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
4013 (connectSignals): Remove connections to "commit" signals.
4014 Remove C++-style comments.
4016 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
4017 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
4018 (handleEvent): Activate GTK button when the space bar key is
4020 (gtkActivate): New method.
4022 2004-05-06 David Jee <djee@redhat.com>
4024 * java/awt/image/CropImageFilter.java
4025 (setPixels): Implement for byte array pixels.
4026 * java/awt/image/ReplicateScaleFilter.java
4027 (setPixels): Implement for byte array pixels.
4028 (replicatePixels): Overload for byte array pixels.
4030 2004-05-06 Kim Ho <kho@redhat.com>
4032 * javax/swing/Box.java:
4033 (getAccessibleContext): Return an instance of the
4036 2004-05-05 David Jee <djee@redhat.com>
4038 * gnu/java/awt/peer/gtk/GdkGraphics.java
4039 (drawImage): When component is null, use SystemColor.window as
4040 the default bgcolor.
4041 * gnu/java/awt/peer/gtk/GtkImage.java
4042 (setPixels): We can avoid iterating through the pixel rows only
4044 * java/awt/Image.java
4045 (getScaledInstance): Partially implement.
4046 * java/awt/image/CropImageFilter.java
4047 (setProperties): Fix "filter" property.
4048 (setPixels): Implement.
4049 * java/awt/image/ReplicateScaleFilter.java
4050 (setDimensions): Use scaled dimensions.
4051 (setPixels): Implement.
4052 (replicatePixels): New method.
4054 2004-05-05 David Jee <djee@redhat.com>
4056 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4057 (convertPixels): If either pixels or model is null, return null.
4058 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
4059 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
4060 is null, do nothing and return.
4062 2004-05-03 Kim Ho <kho@redhat.com>
4064 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
4065 (getGraphics): Like GtkFramePeer, the Graphics
4066 object needs to be translate to account for
4068 (postMouseEvent): New method. Account for
4070 (postExposeEvent): ditto.
4071 * javax/swing/Box.java: Stubbed.
4072 * javax/swing/JDialog.java: Ran through jalopy
4074 (JDialog): Call SwingUtilities' getOwnerFrame
4076 (setLayout): Check isRootPaneCheckingEnabled
4077 * javax/swing/JOptionPane.java: Re-implemented.
4078 * javax/swing/SwingUtilities.java:
4079 (getOwnerFrame): Static method to grab a default
4080 owner frame for Dialogs that don't specify owners.
4081 * javax/swing/event/SwingPropertyChangeSupport.java:
4082 (firePropertyChange): Fix early exit condition.
4083 * javax/swing/plaf/basic/BasicLabelUI.java:
4084 (paint): Avoid painting text if it is null
4086 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4089 2004-05-03 Olga Rodimina <rodimina@redhat.com>
4091 * Makefile.am: Added new file.
4092 * Makefile.in: Regenerate.
4093 * javax/swing/JPopupMenu.java:
4094 Started implementation.
4095 * javax/swing/JWindow.java
4096 (JWindow): call super() if parent for window
4098 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4099 New File. UI Delegate for JPopupMenu.
4101 2004-04-30 Olga Rodimina <rodimina@redhat.com>
4103 * javax/swing/JApplet.java: Indicated that JApplet
4104 implements RootPaneContainer and made method of this
4106 * javax/swing/JFrame.java: Ditto.
4107 * javax/swing/JWindow.java: Ditto.
4109 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
4111 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4112 (nativeSetBounds): Call gdk_window_move in addition to
4115 * java/applet/Applet.java (preferredSize): Call parent's
4116 preferredSize if the applet stub is null.
4117 (minimumSize): Likewise for parent's minimumSize.
4119 2004-04-27 Olga Rodimina <rodimina@redhat.com>
4121 * javax/swing/JMenuItem.java
4122 (createActionPropertyChangeListener): Implemented.
4123 (processMouseEvent): Ditto.
4124 (fireMenuDragMouseEntered): Ditto.
4125 (fireMenuDragMouseExited): Ditto.
4126 (fireMenuDragMouseDragged): Ditto.
4127 (fireMenuDragMouseReleased): Ditto.
4128 (menuSelectionChanged): Ditto.
4129 (getSubElements): Ditto.
4130 (getComponent): Ditto.
4131 (addMenuDragMouseListener): Ditto.
4132 (removeMenuDragMouseListener):Ditto.
4133 (addMenuKeyListener): Ditto.
4134 (removeMenuKeyListener): Ditto.
4135 * javax/swing/plaf/basic/BasicMenuItemUI.java
4136 (doClick): Imlemented.
4137 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
4138 Don't handle mouse events here. Pass them to
4139 MenuSelectionManager.
4141 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4142 Used correct version of jalopy configuration
4143 file to fix style in the files below.
4145 2004-04-26 Olga Rodimina <rodimina@redhat.com>
4147 * javax/swing/JCheckBoxMenuItem.java:
4148 Fixed style and removed unnecessary comments.
4149 * javax/swing/JMenuItem.java: Ditto.
4150 * javax/swing/JRadioButtonMenuItem.java: Ditto.
4151 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
4152 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
4153 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
4155 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
4157 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
4160 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
4162 * java/awt/ContainerOrderFocusTraversalPolicy.java
4163 (getComponentAfter): Start from current component and work up
4164 the component hierarchy until an acceptable component is found.
4165 Synchronize on tree lock.
4166 (getComponentBefore): Likewise.
4168 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
4170 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
4171 focus-related debugging messages.
4172 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
4173 * java/awt/EventDispatchThread.java: Likewise.
4174 * java/awt/KeyboardFocusManager.java: Likewise.
4175 * java/awt/Window.java: Likewise.
4176 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
4177 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4179 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
4180 new C++-style comments to C-style comments.
4181 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4183 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4184 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4185 (handleEvent): Dispatch key press and key release events to
4187 (requestFocus): Post a FOCUS_GAINED event to the event queue.
4188 (gtkWidgetRequestFocus): New method.
4189 (gtkWidgetDispatchKeyEvent): Likewise.
4190 * java/awt/Component.java (requestFocus, requestFocus(boolean),
4191 requestFocusInWindow, requestFocusInWindow(boolean),
4192 getFocusCycleRootAncestor, nextFocus, transferFocus,
4193 transferFocusBackward, transferFocusUpCycle, hasFocus,
4194 isFocusOwner): Implement and document focus-handling methods.
4195 (setFocusTraversalKeys): Inherit focus traversal keys when
4196 keystrokes argument is null. Fix focus-handling documentation
4198 * java/awt/Container.java (setFocusTraversalKeys,
4199 getFocusTraversalKeys, areFocusTraversalKeysSet,
4200 isFocusCycleRoot, setFocusTraversalPolicy,
4201 getFocusTraversalPolicy, isFocusTraversalPolicySet,
4202 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4203 Implement and document focus-handling methods.
4204 (transferFocusBackward): Remove method.
4205 (readObject, writeObject): Implement and document serialization
4207 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4209 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4211 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4213 * java/awt/EventDispatchThread.java (run): Set default keyboard
4214 focus manager. Attempt to dispatch each event to the keyboard
4215 focus manager before normal dispatch.
4216 * java/awt/KeyboardFocusManager.java: Implement and partially
4218 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4219 (show): Focus initial component when window is shown for the
4221 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4222 (pre_event_handler): Replace complex key press and key release
4223 logic with simple callbacks into GtkComponentPeer.
4224 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4226 2004-04-21 Olga Rodimina <rodimina@redhat.com>
4228 * javax/swing/MenuSelectionManager.java
4229 (componentForPoint): Added new method.
4230 (defaultManager): New Method. Implemented.
4231 (getSelectedPath): Ditto.
4232 (isComponentPartOfCurrentMenu): Ditto.
4233 (processKeyEvent): Added new method.
4234 (processMouseEvent): New Method. Implemented.
4235 (setSelectedPath): Ditto.
4238 2004-04-19 Kim Ho <kho@redhat.com>
4240 * java/awt/Container.java:
4241 (remove): Set the component's parent to null.
4242 (getComponentAt): Implement.
4243 * javax/swing/JComponent.java:
4244 (JComponent): Initialize defaultLocale
4245 (getDefaultLocale): Implement.
4246 (setDefaultLocale): ditto.
4247 * javax/swing/JSlider.java:
4248 (JSlider): Fix calculation of value.
4249 * javax/swing/JSplitPane.java: Implement.
4250 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4251 Change SplitPane's default divider size.
4252 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4253 (paint): Remove unused code.
4254 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4255 Added comments and ran through jalopy.
4256 (setBasicSplitPaneUI): Get reference to hidden divider
4257 and set up one touch buttons if necessary.
4258 (setBorder): Fire propertyChangeEvent only if
4259 borders are different.
4260 (getPreferredSize): Defer to layout manager.
4261 (propertyChange): Implement.
4262 (oneTouchExpandableChanged): ditto.
4263 (createLeftOneTouchButton): Use BasicArrowButton.
4264 (createRightOneTouchButton): ditto.
4265 (moveDividerTo): New method. Moves the divider
4266 to a set location based on the last divider location.
4267 (BasicSplitPaneDivider::MouseHandler): Implement.
4268 (BasicSplitPaneDivider::OneTouchButton): Removed.
4269 (BasicSplitPaneDivider::DragController): Implement.
4270 (BasicSplitPaneDivider::VerticalDragController):
4272 (BasicSplitPaneDivider::DividerLayout): ditto.
4273 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4274 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4275 (calculateLayoutInfo): Don't show component if it's
4277 (paintTab): Fix title paint logic.
4279 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
4282 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4283 (setStartRule,setEndRule): Don't take abs of day number.
4284 (getOffset): Clarify docs. Add argument checks.
4285 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4286 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4288 * testsuite/libjava.mauve/xfails
4289 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4291 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4293 Layout interfaces during preparation, not initialization.
4294 * java/lang/natClass.cc (initializeClass): Move
4295 _Jv_LayoutInterfaceMethods call...
4296 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4298 2004-05-19 Anthony Green <green@localhost.localdomain>
4300 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4302 * Makefile.in: Rebuilt.
4303 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4304 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4305 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4306 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4307 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4308 gnu/javax/rmi/CORBA/DelegateFactory.java,
4309 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4310 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4311 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4312 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4313 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4314 gnu/javax/rmi/PortableServer.java: Remove files.
4316 2004-05-19 Anthony Green <green@redhat.com>
4318 * Makefile.am: Define JAVA_EXT_DIRS.
4319 * Makefile.in: Rebuilt.
4320 * java/lang/natRuntime.cc (insertSystemProperties): Set
4321 java.ext.dirs property.
4323 2004-05-16 Mark Wielaard <mark@klomp.org>
4325 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4327 2004-05-15 Mark Wielaard <mark@klomp.org>
4329 * doc/cni.sgml: Removed, merged into gcj.texi.
4331 2004-05-15 Mark Wielaard <mark@klomp.org>
4333 * Makefile.am (ordinary_java_source_files): Add new javax.print
4335 * Makefile.in: Regenerated.
4337 2004-05-15 Michael Koch <konqueror@gmx.de>
4339 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4340 javax/print/attribute/standard/DateTimeAtCreation.java,
4341 javax/print/attribute/standard/DateTimeAtProcessing.java,
4342 javax/print/attribute/standard/DocumentName.java,
4343 javax/print/attribute/standard/JobHoldUntil.java,
4344 javax/print/attribute/standard/JobImpressionsCompleted.java,
4345 javax/print/attribute/standard/JobMessageFromOperator.java,
4346 javax/print/attribute/standard/JobName.java,
4347 javax/print/attribute/standard/JobOriginatingUserName.java,
4348 javax/print/attribute/standard/JobPriority.java,
4349 javax/print/attribute/standard/JobPrioritySupported.java,
4350 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4351 javax/print/attribute/standard/OutputDeviceAssigned.java,
4352 javax/print/attribute/standard/PrinterInfo.java,
4353 javax/print/attribute/standard/PrinterLocation.java,
4354 javax/print/attribute/standard/PrinterMakeAndModel.java,
4355 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4356 javax/print/attribute/standard/PrinterName.java,
4357 javax/print/attribute/standard/QueuedJobCount.java,
4358 javax/print/attribute/standard/RequestingUserName.java:
4359 Fixed javadocs all over.
4361 2004-05-15 Michael Koch <konqueror@gmx.de>
4363 * javax/print/DocFlavor.java,
4364 javax/print/attribute/standard/ColorSupported.java,
4365 javax/print/attribute/standard/Compression.java,
4366 javax/print/attribute/standard/CopiesSupported.java,
4367 javax/print/attribute/standard/Fidelity.java,
4368 javax/print/attribute/standard/Finishings.java,
4369 javax/print/attribute/standard/JobImpressionsSupported.java,
4370 javax/print/attribute/standard/JobKOctetsSupported.java,
4371 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4372 javax/print/attribute/standard/JobSheets.java,
4373 javax/print/attribute/standard/JobState.java,
4374 javax/print/attribute/standard/JobStateReason.java,
4375 javax/print/attribute/standard/JobStateReasons.java,
4376 javax/print/attribute/standard/Media.java,
4377 javax/print/attribute/standard/MediaSizeName.java,
4378 javax/print/attribute/standard/MultipleDocumentHandling.java,
4379 javax/print/attribute/standard/NumberUpSupported.java,
4380 javax/print/attribute/standard/OrientationRequested.java,
4381 javax/print/attribute/standard/PDLOverrideSupported.java,
4382 javax/print/attribute/standard/PageRanges.java,
4383 javax/print/attribute/standard/PresentationDirection.java,
4384 javax/print/attribute/standard/PrintQuality.java,
4385 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4386 javax/print/attribute/standard/PrinterMoreInfo.java,
4387 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4388 javax/print/attribute/standard/PrinterResolution.java,
4389 javax/print/attribute/standard/PrinterState.java,
4390 javax/print/attribute/standard/PrinterStateReason.java,
4391 javax/print/attribute/standard/PrinterStateReasons.java,
4392 javax/print/attribute/standard/PrinterURI.java,
4393 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4394 javax/print/attribute/standard/Severity.java,
4395 javax/print/attribute/standard/SheetCollate.java,
4396 javax/print/attribute/standard/Sides.java:
4397 Added serialVersionUID and removed final keyword where it doenst
4400 2004-05-15 Michael Koch <konqueror@gmx.de>
4402 * javax/print/PrintServiceLookup.java: New file.
4404 2004-05-15 Michael Koch <konqueror@gmx.de>
4406 * javax/print/DocFlavor.java:
4407 Implemented all flavor classes.
4409 2004-05-15 Michael Koch <konqueror@gmx.de>
4411 * javax/print/attribute/standard/ColorSupported.java,
4412 javax/print/attribute/standard/Compression.java,
4413 javax/print/attribute/standard/CopiesSupported.java,
4414 javax/print/attribute/standard/Fidelity.java,
4415 javax/print/attribute/standard/Finishings.java,
4416 javax/print/attribute/standard/JobImpressionsSupported.java,
4417 javax/print/attribute/standard/JobKOctetsSupported.java,
4418 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4419 javax/print/attribute/standard/JobSheets.java,
4420 javax/print/attribute/standard/JobState.java,
4421 javax/print/attribute/standard/JobStateReason.java,
4422 javax/print/attribute/standard/JobStateReasons.java,
4423 javax/print/attribute/standard/Media.java,
4424 javax/print/attribute/standard/MediaSizeName.java,
4425 javax/print/attribute/standard/MultipleDocumentHandling.java,
4426 javax/print/attribute/standard/NumberUpSupported.java,
4427 javax/print/attribute/standard/OrientationRequested.java,
4428 javax/print/attribute/standard/PDLOverrideSupported.java,
4429 javax/print/attribute/standard/PageRanges.java,
4430 javax/print/attribute/standard/PresentationDirection.java,
4431 javax/print/attribute/standard/PrintQuality.java,
4432 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4433 javax/print/attribute/standard/PrinterMoreInfo.java,
4434 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4435 javax/print/attribute/standard/PrinterResolution.java,
4436 javax/print/attribute/standard/PrinterState.java,
4437 javax/print/attribute/standard/PrinterStateReason.java,
4438 javax/print/attribute/standard/PrinterStateReasons.java,
4439 javax/print/attribute/standard/PrinterURI.java,
4440 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4441 javax/print/attribute/standard/Severity.java,
4442 javax/print/attribute/standard/SheetCollate.java,
4443 javax/print/attribute/standard/Sides.java: New files.
4445 2004-05-15 Michael Koch <konqueror@gmx.de>
4447 * javax/print/Doc.java
4448 (getPrintData): Throws IOException.
4449 (getReaderForText): Likewise.
4450 (getStreamForBytes): Likewise.
4451 * javax/print/DocFlavor.java:
4452 Fixed filename in copyright.
4453 (serialVersionUID): New field.
4454 * javax/print/ServiceUIFactory.java:
4455 Made all constants final.
4456 * javax/print/AttributeException.java
4457 javax/print/MultiDoc.java
4458 javax/print/MultiDocPrintJob.java
4459 javax/print/MultiDocPrintService.java
4460 javax/print/StreamPrintService.java
4461 javax/print/URIException.java: New files.
4462 * javax/print/Makefile.am
4463 (EXTRA_DIST): Added all new files.
4465 2004-05-15 Michael Koch <konqueror@gmx.de>
4467 * javax/print/attribute/standard/Copies.java,
4468 javax/print/attribute/standard/DateTimeAtCompleted.java,
4469 javax/print/attribute/standard/DateTimeAtCreation.java,
4470 javax/print/attribute/standard/DateTimeAtProcessing.java,
4471 javax/print/attribute/standard/DocumentName.java,
4472 javax/print/attribute/standard/JobHoldUntil.java,
4473 javax/print/attribute/standard/JobImpressions.java,
4474 javax/print/attribute/standard/JobImpressionsCompleted.java,
4475 javax/print/attribute/standard/JobKOctets.java,
4476 javax/print/attribute/standard/JobKOctetsProcessed.java,
4477 javax/print/attribute/standard/JobMediaSheets.java,
4478 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4479 javax/print/attribute/standard/JobMessageFromOperator.java,
4480 javax/print/attribute/standard/JobName.java,
4481 javax/print/attribute/standard/JobOriginatingUserName.java,
4482 javax/print/attribute/standard/JobPriority.java,
4483 javax/print/attribute/standard/JobPrioritySupported.java,
4484 javax/print/attribute/standard/NumberOfDocuments.java,
4485 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4486 javax/print/attribute/standard/NumberUp.java,
4487 javax/print/attribute/standard/OutputDeviceAssigned.java,
4488 javax/print/attribute/standard/PagesPerMinute.java,
4489 javax/print/attribute/standard/PagesPerMinuteColor.java:
4490 Fixed @return tag all over.
4492 2004-05-15 Michael Koch <konqueror@gmx.de>
4494 * javax/print/attribute/AttributeSetUtilities.java
4495 (verifyCategoryForValue): Fixed typo in javadoc.
4496 * javax/print/attribute/HashAttributeSet.java
4497 (containsKey): Fixed @return tag.
4498 (comtainsValue): Likewise.
4500 * javax/print/attribute/IntegerSyntax.java
4502 * javax/print/attribute/ResolutionSyntax.java
4504 (getCrossFeedResolution): Removed unused code.
4505 (getFeedResolution): Likewise.
4506 * javax/print/attribute/SetOfIntegerSyntax.java
4507 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4508 (equals): Fixed @return tag.
4509 * javax/print/attribute/TextSyntax.java
4510 (TextSyntax): Take locale into account.
4511 (hashCode): Better implementation.
4513 2004-05-15 Michael Koch <konqueror@gmx.de>
4515 * javax/print/CancelablePrintJob.java,
4516 javax/print/Doc.java,
4517 javax/print/DocFlavor.java,
4518 javax/print/DocPrintJob.java,
4519 javax/print/FlavorException.java,
4520 javax/print/PrintException.java,
4521 javax/print/PrintService.java,
4522 javax/print/ServiceUIFactory.java: New files.
4524 2004-05-15 Mark Wielaard <mark@klomp.org>
4526 * gnu/regexp/CharIndexedReader.java: Removed.
4527 * gnu/regexp/REFilterReader.java: Likewise.
4528 * gnu/regexp/RETokenLookAhead.java: Likewise.
4529 * Makefile.am (ordinary_java_source_files): Remove above classes.
4530 * Makefile.in: Regenerated.
4532 2004-05-14 Tom Tromey <tromey@redhat.com>
4534 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4535 not `XGraphicsConfiguration.XOffScreenImage'.
4537 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4539 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4541 2004-05-14 Steven Augart <augart@watson.ibm.com>
4543 * include/jni.h (_Jv_func): Removed.
4544 (struct JNINativeInterface): Use `void *' for reserved slots.
4545 (struct JNIInvokeInterface): Likewise.
4547 2004-05-11 Michael Koch <konqueror@gmx.de>
4549 * gnu/java/net/natPlainSocketImplPosix.cc
4550 (read): Fixed typo in expression.
4552 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4554 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4555 ld_library_additions. Adjust all calls to libjava_invoke to match
4558 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4559 path to cxxflagslist.
4560 Pass path of libstdc++ to libjava_invoke.
4562 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4563 libjava_invoke arguments.
4565 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4567 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4570 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4572 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4573 main binary against the JNI shared library.
4575 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4577 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4578 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4579 (SimpleTimeZone): Tweak docs. Add new variation.
4580 (setStartRule,setEndRule): Add new variations. Use
4581 startTimeMode and endTimeMode.
4583 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4585 * java/util/Calendar.java (getActualMinimum,
4586 getActualMaximum): Remove abstract. Implement.
4588 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4590 Run the jni tests using the interpreter.
4591 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4592 options_cxx to shared lib compile command.
4593 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4594 they are used to link the shared lib, not the main binary.
4595 Use libjava_invoke to run gij.
4597 2004-05-06 Michael Koch <konqueror@gmx.de>
4599 * java/util/logging/Level.java
4600 (parse): Use == instead of String.equals().
4602 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4604 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4605 verify_field_signature and verify_method_signature, not
4606 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4607 (_Jv_ClassReader::handleField): Likewise.
4608 (_Jv_ClassReader::handleMethod): Likewise.
4610 2004-05-06 Michael Koch <konqueror@gmx.de>
4612 * javax/swing/table/TableColumn.java:
4615 2004-05-06 Michael Koch <konqueror@gmx.de>
4617 * javax/imageio/spi/ImageReaderWriterSpi.java
4618 (ImageReaderWriterSpi): Made it public.
4619 * javax/imageio/stream/ImageInputStream.java:
4622 2004-05-06 Michael Koch <konqueror@gmx.de>
4624 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4627 2004-05-06 Michael Koch <konqueror@gmx.de>
4629 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4630 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4632 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4633 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4634 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4635 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4636 their own source file.
4637 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4638 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4639 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4640 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4641 (create): Define variable on top of function.
4642 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4643 (menu_pos): Prototyped.
4644 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4645 (setTitle): Removed.
4646 * jni/gtk-peer/gthread-jni.c
4647 (gdk_threads_wake): Removed.
4648 * Makefile.am (gtk_c_source_files): Added new files
4649 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4650 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4651 * Makefile.in: Regenerated.
4653 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4655 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4658 2004-05-05 Mark Wielaard <mark@klomp.org>
4660 * javax/swing/AbstractButton.java: Replace special HTML entities with
4662 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4663 * javax/swing/DefaultButtonModel.java: Likewise.
4664 * javax/swing/DefaultListModel.java: Likewise.
4665 * javax/swing/JList.java: Likewise.
4666 * javax/swing/JSlider.java: Likewise.
4667 * javax/swing/ListModel.java: Likewise.
4668 * javax/swing/Popup.java: Likewise.
4669 * javax/swing/SwingUtilities.java: Likewise.
4671 2004-05-05 Michael Koch <konqueror@gmx.de>
4673 * javax/swing/AbstractButton.java,
4674 javax/swing/ActionMap.java,
4675 javax/swing/DefaultButtonModel.java,
4676 javax/swing/DefaultListModel.java,
4677 javax/swing/ImageIcon.java,
4678 javax/swing/JComboBox.java,
4679 javax/swing/JComponent.java,
4680 javax/swing/JFrame.java,
4681 javax/swing/JInternalFrame.java,
4682 javax/swing/JMenuBar.java,
4683 javax/swing/JMenuItem.java,
4684 javax/swing/JOptionPane.java,
4685 javax/swing/JProgressBar.java,
4686 javax/swing/JRootPane.java,
4687 javax/swing/JScrollBar.java,
4688 javax/swing/JScrollPane.java,
4689 javax/swing/JSeparator.java,
4690 javax/swing/JSlider.java,
4691 javax/swing/JTabbedPane.java,
4692 javax/swing/JTable.java,
4693 javax/swing/JTextField.java,
4694 javax/swing/JToolBar.java,
4695 javax/swing/JToolTip.java,
4696 javax/swing/JTree.java,
4697 javax/swing/JViewport.java,
4698 javax/swing/JWindow.java,
4699 javax/swing/KeyStroke.java,
4700 javax/swing/LookAndFeel.java,
4701 javax/swing/SwingUtilities.java,
4702 javax/swing/Timer.java,
4703 javax/swing/ToolTipManager.java,
4704 javax/swing/UIDefaults.java,
4705 javax/swing/border/TitledBorder.java,
4706 javax/swing/filechooser/FileSystemView.java,
4707 javax/swing/plaf/basic/BasicButtonListener.java,
4708 javax/swing/plaf/basic/BasicButtonUI.java,
4709 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4710 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4711 javax/swing/plaf/basic/BasicLabelUI.java,
4712 javax/swing/plaf/basic/BasicMenuItemUI.java,
4713 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4714 javax/swing/plaf/basic/BasicRootPaneUI.java,
4715 javax/swing/plaf/basic/BasicScrollBarUI.java,
4716 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4717 javax/swing/plaf/basic/BasicSliderUI.java,
4718 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4719 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4720 javax/swing/table/JTableHeader.java,
4721 javax/swing/text/AbstractDocument.java,
4722 javax/swing/text/DefaultCaret.java,
4723 javax/swing/text/StyledEditorKit.java,
4724 javax/swing/tree/DefaultTreeCellEditor.java:
4727 2004-05-05 Michael Koch <konqueror@gmx.de>
4729 * java/util/prefs/AbstractPreferences.java
4730 (AbstractPreferences): Added parenthesis for clarity.
4731 Closes classpath bug #7940.
4733 2004-05-05 Tom Tromey <tromey@redhat.com>
4735 * javax/naming/CompoundName.java (endsWith): Look at correct
4736 element of source name.
4738 2004-05-05 Mark Wielaard <mark@klomp.org>
4740 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4741 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4743 2004-05-05 Tom Tromey <tromey@redhat.com>
4745 * java/io/BufferedReader.java (skip): Removed unused
4748 2004-05-05 Michael Koch <konqueror@gmx.de>
4750 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4752 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4754 * java/text/AttributedString.java,
4755 java/text/AttributedStringIterator.java,
4756 java/text/Collator.java,
4757 java/text/DecimalFormatSymbols.java,
4758 java/text/NumberFormat.java,
4759 java/text/RuleBasedCollator.java:
4762 2004-05-05 Tom Tromey <tromey@redhat.com>
4764 * java/text/Format.java: Cleaned up imports.
4765 * java/text/DecimalFormat.java: Cleaned up imports.
4766 * java/security/SecureRandom.java: Cleaned up imports.
4767 (SecureRandom): Removed unused variable.
4768 * java/security/UnresolvedPermission.java: Cleaned up imports.
4769 * java/util/Date.java (parse): Removed unused variable.
4770 * java/util/ResourceBundle.java: Cleaned up imports.
4771 (getBundle): Removed unused variable.
4772 (tryBundle): Likewise.
4773 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4775 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4777 * java/text/SimpleDateFormat.java:
4778 (formatWithAttribute): New method. It implements
4779 the formatting process with attributes.
4780 (format): Use formatWithAttribute.
4781 (formatToCharacterIterator): New method. Use
4782 formatWithAttribute.
4784 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4786 * java/text/MessageFormat.java:
4787 (class Field): New class.
4788 (formatToCharacterIterator): New method.
4789 (format): Use formatInternal now.
4790 (formatInternal): New method. String formatter should
4791 be done here (with attributes). Attributes merging supported.
4792 (parse): More documentation.
4793 (getFormatsByArgumentIndex): New method.
4794 (setFormatByArgumentIndex): New method.
4795 (setFormatsByArgumentIndex): New method.
4797 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4799 * java/text/DecimalFormat.java
4800 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4801 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4802 (parse): Fixed handling of exponentiation notation and grouping.
4804 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4806 * java/text/DecimalFormat.java
4807 (scanFix): Build attribute array. Fixed error reporting.
4808 (applyPatternWithSymbols): Store attributes for the prefix and
4810 (formatInternal): New method. Changed the way the string is
4811 computed. Implemented attributes. Cleant up rounding in
4812 exponential notation.
4813 (format): Use formatInternal.
4814 (formatToCharacterIterator): New method.
4815 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4816 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4817 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4820 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4822 * java/security/interfaces/DSAKeyPairGenerator.java,
4823 java/security/interfaces/DSAPrivateKey.java,
4824 java/security/interfaces/DSAPublicKey.java,
4825 java/security/interfaces/RSAPrivateKey.java,
4826 java/security/interfaces/RSAPublicKey.java:
4829 2004-05-04 Michael Koch <konqueror@gmx.de>
4831 * java/nio/ByteBuffer.java,
4832 java/nio/CharBuffer.java,
4833 java/nio/DoubleBuffer.java,
4834 java/nio/FloatBuffer.java,
4835 java/nio/IntBuffer.java,
4836 java/nio/LongBuffer.java,
4837 java/nio/ShortBuffer.java:
4838 (compareTo): Fixed bogus implementation in all buffer classes.
4840 2004-05-04 Ingo Proetel <proetel@aicas.com>
4842 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4843 32 bit pixels not 8 bit pixels.
4844 (isCompatibleRaster): Added javadoc comment.
4846 2004-05-04 Ingo Proetel <proetel@aicas.com>
4848 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4851 2004-05-04 Ingo Proetel <proetel@aicas.com>
4853 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4854 (getColorModel): Return the actual color model.
4855 (getRaster): Implemented.
4856 (ColorRaster): New inner class.
4857 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4859 * java/awt/Color.java (<init>): Make exception more verbose.
4860 (createContext): Use ColorModel when creating a PaintContext.
4862 2004-05-04 Michael Koch <konqueror@gmx.de>
4864 * gnu/java/text/CharacterBreakIterator.java
4865 (previous): Removed unused variable.
4867 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4869 * gnu/java/text/FormatBuffer.java,
4870 gnu/java/text/AttributedFormatBuffer.java,
4871 gnu/java/text/StringFormatBuffer.java: New classes to implement
4872 attributed iterators in java.text.
4873 * gnu/java/text/FormatCharacterIterator.java: Moved
4874 from java/text as it is an internal class.
4875 * java/text/FormatCharacterIterator.java: Removed.
4876 * java/text/Format.java:
4877 Import gnu.java.text.FormatCharacterIterator.
4878 * Makefile.am (java_source_files): Added new files.
4879 * Makefile.in: Regenerated.
4882 2004-05-04 Mark Wielaard <mark@klomp.org>
4884 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4886 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4888 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4889 * Makefile.in: Rebuilt.
4891 2004-05-03 Mark Wielaard <mark@klomp.org>
4893 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4894 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4896 (set(String, String, int, String, String, String, String, String)):
4897 Assign this.file to path or path + "?" + query.
4898 * java/util/Arrays.java: Call static methods staticly.
4899 * java/util/zip/ZipEntry.java: Likewise.
4900 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4901 dir to this.direction.
4902 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4903 Assign static field only once.
4904 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4906 2004-05-03 Mark Wielaard <mark@klomp.org>
4908 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4909 unused variables hScrollbarHeight and vScrollbarWidth.
4910 (preferredSize): Likewise.
4911 * gnu/java/security/provider/DSAParameters.java (engineToString):
4912 Removed unused call to System.getProperty("line.seperator");
4913 * java/security/Security.java (loadProviders): Return result.
4915 2004-05-03 Tom Tromey <tromey@redhat.com>
4917 * java/net/URLStreamHandler.java (toExternalForm): Removed
4920 * java/math/BigDecimal.java (divide): Removed unused variable.
4921 * java/lang/Throwable.java: Cleaned up imports.
4922 * java/lang/ClassLoader.java: Cleaned up imports.
4923 * java/io/FilePermission.java (implies): Removed unused
4925 * java/awt/TextComponent.java: Removed unused import.
4926 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4927 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4928 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4929 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4931 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4932 * gnu/java/text/CharacterBreakIterator.java: Removed
4934 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4936 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4937 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4939 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4940 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4941 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4942 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4943 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4944 (lookupProviders): Removed unused variable.
4945 (loadNextServiceProvider): Likewise.
4946 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4948 2004-05-03 Michael Koch <konqueror@gmx.de>
4950 Fixes PR libgcj/14695:
4951 * java/net/NetworkInterface.java
4952 (getByName): Return null when no interface was found.
4954 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4955 Tom Tromey <tromey@redhat.com>
4957 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4958 additional option "-Wmissing-prototypes" for compiling C sources.
4959 Print actual filename for pass/fail rather than $name.c.
4960 * testsuite/libjava.jni/PR15133.java: New testcase file.
4961 * testsuite/libjava.jni/PR15133.c: Likewise.
4962 * testsuite/libjava.jni/PR15133.out: Likewise.
4964 2004-04-30 Roger Sayle <roger@eyesopen.com>
4966 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4969 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4971 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4972 limit the maximum heap size to avoid unnecessary thrashing.
4974 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4976 * java/text/CollationElementIterator.java (reset): Reset
4977 lookahead variables.
4979 2004-04-23 Mark Wielaard <mark@klomp.org>
4981 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4983 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4985 * java/sql/DriverManager.java:
4988 2004-04-23 Michael Koch <konqueror@gmx.de>
4991 (hashcode): Don't initialize with default value explicitely.
4992 (getContent): Removed redundant "final" keyword.
4993 (openStream): Likewise.
4994 (getURLStreamHandler): Fixed coding style.
4995 * java/net/URLConnection.java
4996 (defaultAllowUserInteraction): Don't initialize with default value
4998 (connected): Likewise.
4999 (doOutput): Likewise.
5000 (ifModifiedSince): Likewise.
5001 (dateformats_initialized): Likewise.
5002 (setURLStreamHander): Use StreamTokenizer where it belongs to.
5004 2004-04-23 Michael Koch <konqueror@gmx.de>
5006 * gnu/java/nio/channels/FileChannelImpl.java
5007 (SET, CUR): Unused, removed.
5008 (read): Implement here directly.
5009 (implRead): Removed.
5010 (write): Implement here directly.
5011 (implWrite): Removed.
5013 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5015 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
5016 javax/rmi/CORBA/Stub.java,
5017 javax/rmi/CORBA/Util.java,
5018 javax/rmi/CORBA/ValueHandler.java,
5019 javax/rmi/CORBA/ValueHandler.java,
5020 javax/rmi/PortableRemoteObject.java:
5023 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5025 * java/util/jar/JarFile.java,
5026 java/util/jar/JarInputStream.java,
5027 java/util/jar/JarOutputStream.java,
5028 java/util/jar/Manifest.java:
5031 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5033 * java/util/ArrayList.java,
5034 java/util/Calendar.java,
5035 java/util/Currency.java,
5036 java/util/HashMap.java,
5037 java/util/HashSet.java,
5038 java/util/Hashtable.java,
5039 java/util/LinkedList.java,
5040 java/util/Properties.java,
5041 java/util/PropertyPermission.java,
5042 java/util/TimeZone.java,
5043 java/util/TreeMap.java,
5044 java/util/TreeSet.java,
5045 java/util/Vector.java,
5046 java/util/WeakHashMap.java:
5049 2004-04-23 Dalibor Topic <robilad@kaffe.org>
5051 * java/util/logging/FileHandler.java,
5052 java/util/logging/Formatter.java,
5053 java/util/logging/Handler.java,
5054 java/util/logging/Logger.java,
5055 java/util/logging/SimpleFormatter.java,
5056 java/util/logging/XMLFormatter.java:
5059 2004-04-22 Mark Wielaard <mark@klomp.org>
5061 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
5062 -Wno-long-long flags variable.
5063 (gtk_c_files): Use PEDANTIC_CFLAGS.
5064 * Makefile.in: Regenerated.
5066 2004-04-22 Mark Wielaard <mark@klomp.org>
5068 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5069 Changed C++ comments into C comments.
5070 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
5073 2004-04-22 Michael Koch <konqueror@gmx.de>
5075 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5076 Merged copyright year with GNU classpath.
5078 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5080 * javax/security/auth/x500/X500Principal.java:
5083 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5085 * javax/swing/JSlider.java:
5086 Fixed HTML tags in comments.
5088 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5090 * javax/accessibility/AccessibleText.java:
5093 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
5095 * java/net/URLStreamHandler.java
5096 (parseURL): Convert the file path to using '/' instead of native
5099 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
5102 (userInfo): New field.
5103 (URL): Set authority to the right value.
5104 (setURL): Fixed authority and file initialization.
5105 * java/net/URLStreamHandler.java
5106 (parseURL): Take care of the query tag. Build authority.
5107 (toExternalForm): Fixed URL building using authority.
5109 2004-04-22 Michael Koch <konqueror@gmx.de>
5111 * java/net/Socket.java
5112 (impl): Made package-private.
5113 * java/net/ServerSocket.java
5114 (implAccept): Access Socket.impl field directly.
5116 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5118 * java/util/prefs/Preferences.java,
5119 java/util/prefs/InvalidPreferencesFormatException.java,
5120 java/util/prefs/BackingStoreException.java,
5121 java/util/prefs/AbstractPreferences.java:
5124 2004-04-22 Dalibor Topic <robilad@kaffe.org>
5126 * java/util/regex/Matcher.java,
5127 java/util/regex/Pattern.java:
5130 2004-04-22 Michael Koch <konqueror@gmx.de>
5132 * java/nio/charset/IllegalCharsetNameException.java
5133 (charsetName): Made private.
5134 (IllegalCharsetNameException): Added @param tag to javadoc.
5135 (getCharsetName): Added @return tag to javadoc.
5136 * java/nio/charset/MalformedInputException.java
5137 (MalformedInputException): Added @param tag to javadoc.
5138 (getInputLength): Revised method description, added @return tag.
5139 (getMessage): Added @return tag.
5141 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
5143 * java/awt/Font.java (deriveFont): Implement missing variants.
5144 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
5147 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
5149 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
5150 Set method->index values for interface methods to their itable index.
5151 (initializeClass): Call _Jv_LayoutInterfaceMethods.
5153 2004-04-21 Michael Koch <konqueror@gmx.de>
5155 * java/nio/DirectByteBufferImpl.java
5156 (shiftDown): Made static, give address as argument and
5157 provide a convenience method that overwrites shiftDown in
5158 ByteBufferImpl and calls the native shiftDown.
5159 * java/nio/MappedByteBufferImpl.java
5160 (): Use optimized method in DirectByteBufferImpl.
5161 * java/nio/natDirectByteBufferImpl.cc
5162 (shiftDown): Changed method signature. Removed usage of array_offset.
5164 2004-04-21 Michael Koch <konqueror@gmx.de>
5166 * gnu/java/net/natPlainSocketImplPosix.cc
5167 (SocketInputStream::read): Make sure returned data is a byte value.
5169 2004-04-21 Michael Koch <konqueror@gmx.de>
5171 * gnu/classpath/ServiceFactory.java,
5172 gnu/classpath/ServiceProviderLoadingAction.java,
5173 javax/imageio/ImageReader.java,
5174 javax/imageio/ImageTranscoder.java,
5175 javax/imageio/ImageWriter.java,
5176 javax/imageio/package.html,
5177 javax/imageio/spi/IIOServiceProvider.java,
5178 javax/imageio/spi/ImageInputStreamSpi.java,
5179 javax/imageio/spi/ImageOutputStreamSpi.java,
5180 javax/imageio/spi/ImageReaderWriterSpi.java,
5181 javax/imageio/spi/ImageTranscoderSpi.java,
5182 javax/imageio/spi/RegisterableService.java,
5183 javax/imageio/spi/ServiceRegistry.java,
5184 javax/imageio/spi/package.html,
5185 javax/imageio/stream/IIOByteBuffer.java,
5186 javax/imageio/stream/ImageInputStream.java,
5187 javax/imageio/stream/ImageOutputStream.java,
5188 javax/imageio/stream/package.html:
5191 (ordinary_java_source_files): Added
5192 gnu/classpath/ServiceFactory.java and
5193 gnu/classpath/ServiceProviderLoadingAction.java.
5194 (javax_source_files): Added
5195 javax/imageio/ImageReader.java,
5196 javax/imageio/ImageTranscoder.java,
5197 javax/imageio/ImageWriter.java,
5198 javax/imageio/spi/IIOServiceProvider.java,
5199 javax/imageio/spi/ImageInputStreamSpi.java,
5200 javax/imageio/spi/ImageOutputStreamSpi.java,
5201 javax/imageio/spi/ImageReaderWriterSpi.java,
5202 javax/imageio/spi/ImageTranscoderSpi.java,
5203 javax/imageio/spi/RegisterableService.java,
5204 javax/imageio/spi/ServiceRegistry.java,
5205 javax/imageio/stream/IIOByteBuffer.java,
5206 javax/imageio/stream/ImageInputStream.java and
5207 javax/imageio/stream/ImageOutputStream.java.
5208 * Makefile.in: Regenerated.
5210 2004-04-21 Michael Koch <konqueror@gmx.de>
5212 * java/util/Properties.java
5213 (load): Fix wrongly merged fix.
5215 2004-04-21 Mark Wielaard <mark@klomp.org>
5217 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5218 malloc and free buf.
5220 2004-04-21 Dalibor Topic <robilad@kaffe.org>
5222 * javax/naming/AuthenticationException.java,
5223 javax/naming/AuthenticationNotSupportedException.java,
5224 javax/naming/CannotProceedException.java,
5225 javax/naming/CommunicationException.java,
5226 javax/naming/CompoundName.java,
5227 javax/naming/ConfigurationException.java,
5228 javax/naming/ContextNotEmptyException.java,
5229 javax/naming/InitialContext.java,
5230 javax/naming/InsufficientResourcesException.java,
5231 javax/naming/InterruptedNamingException.java,
5232 javax/naming/LimitExceededException.java,
5233 javax/naming/LinkException.java,
5234 javax/naming/LinkLoopException.java,
5235 javax/naming/LinkRef.java,
5236 javax/naming/MalformedLinkException.java,
5237 javax/naming/Name.java,
5238 javax/naming/NameAlreadyBoundException.java,
5239 javax/naming/NameNotFoundException.java,
5240 javax/naming/NamingSecurityException.java,
5241 javax/naming/NoInitialContextException.java,
5242 javax/naming/NoPermissionException.java,
5243 javax/naming/NotContextException.java,
5244 javax/naming/PartialResultException.java,
5245 javax/naming/ReferralException.java,
5246 javax/naming/ServiceUnavailableException.java,
5247 javax/naming/SizeLimitExceededException.java,
5248 javax/naming/TimeLimitExceededException.java,
5249 javax/naming/directory/Attribute.java,
5250 javax/naming/directory/Attributes.java,
5251 javax/naming/directory/SearchResult.java,
5252 javax/naming/event/NamingExceptionEvent.java,
5253 javax/naming/spi/ResolveResult.java:
5256 2004-04-21 Mark Wielaard <mark@klomp.org>
5258 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5259 Changed C++ comments into C comments. Removed commented out code.
5260 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5262 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5264 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5266 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5268 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5270 * native/jni/gtk-peer/gthread-jni.c:
5273 2004-04-21 Mark Wielaard <mark@klomp.org>
5275 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5276 static fields defined in interface.
5277 * javax/awt/JDialog.java: Likewise.
5278 (JDialog): Make constructors public.
5279 (getDefaultCloseOperation): Make public.
5280 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5281 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5282 * javax/swing/JViewport.java (JViewport): Make constructor public.
5284 2004-04-21 Michael Koch <konqueror@gmx.de>
5286 * java/util/Map.java
5287 (Entry): Removed redundant "static" modifier.
5288 * java/text/AttributedCharacterIterator.java:
5289 Updated copyright year.
5291 2004-04-20 Michael Koch <konqueror@gmx.de>
5293 * javax/naming/directory/SearchControls.java:
5294 Don't explicitely extend java.lang.Object.
5295 * javax/naming/spi/DirStateFactory.java:
5296 Merged copyright year with GNU classpath.
5298 2004-04-20 Michael Koch <konqueror@gmx.de>
5300 * java/nio/channels/Channels.java:
5301 Merged coding style with GNU classpath.
5303 2004-04-20 Michael Koch <konqueror@gmx.de>
5305 * java/net/ServerSocket.java
5306 Merged coding style from GNU classpath.
5308 2004-04-20 Michael Koch <konqueror@gmx.de>
5310 * java/io/BufferedWriter.java:
5311 Reordered variables to be at top of the class.
5312 (localFlush): Removed redundant final keyword.
5314 2004-04-20 Ingo Proetel <proetel@aicas.com>
5316 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5318 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5320 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5321 for percent and permill check.
5323 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5325 * java/text/FieldPosition.java
5326 (FieldPosition) Constructor now behaves as it should according
5327 to the java documentation.
5329 2004-04-20 Mark Wielaard <mark@klomp.org>
5331 * java/util/Properties.java: Use the word umlaut, not ä in api
5334 2004-04-20 Michael Koch <konqueror@gmx.de>
5336 * java/nio/Buffer.java,
5337 java/nio/channels/AlreadyConnectedException.java,
5338 java/nio/channels/AsynchronousCloseException.java,
5339 java/nio/channels/ByteChannel.java,
5340 java/nio/channels/CancelledKeyException.java,
5341 java/nio/channels/Channel.java,
5342 java/nio/channels/Channels.java,
5343 java/nio/channels/ClosedByInterruptException.java,
5344 java/nio/channels/ClosedChannelException.java,
5345 java/nio/channels/ClosedSelectorException.java,
5346 java/nio/channels/ConnectionPendingException.java,
5347 java/nio/channels/DatagramChannel.java,
5348 java/nio/channels/FileChannel.java,
5349 java/nio/channels/FileLock.java,
5350 java/nio/channels/FileLockInterruptionException.java,
5351 java/nio/channels/GatheringByteChannel.java,
5352 java/nio/channels/IllegalBlockingModeException.java,
5353 java/nio/channels/IllegalSelectorException.java,
5354 java/nio/channels/InterruptibleChannel.java,
5355 java/nio/channels/NoConnectionPendingException.java,
5356 java/nio/channels/NonReadableChannelException.java,
5357 java/nio/channels/NonWritableChannelException.java,
5358 java/nio/channels/NotYetBoundException.java,
5359 java/nio/channels/NotYetConnectedException.java,
5360 java/nio/channels/OverlappingFileLockException.java,
5361 java/nio/channels/Pipe.java,
5362 java/nio/channels/ReadableByteChannel.java,
5363 java/nio/channels/ScatteringByteChannel.java,
5364 java/nio/channels/SelectableChannel.java,
5365 java/nio/channels/SelectionKey.java,
5366 java/nio/channels/Selector.java,
5367 java/nio/channels/ServerSocketChannel.java,
5368 java/nio/channels/SocketChannel.java,
5369 java/nio/channels/UnresolvedAddressException.java,
5370 java/nio/channels/UnsupportedAddressTypeException.java,
5371 java/nio/channels/WritableByteChannel.java,
5372 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5373 java/nio/channels/spi/AbstractSelectableChannel.java,
5374 java/nio/channels/spi/AbstractSelectionKey.java,
5375 java/nio/channels/spi/AbstractSelector.java,
5376 java/nio/channels/spi/SelectorProvider.java,
5377 java/nio/charset/spi/CharsetProvider.java:
5378 Fixed javadocs and jalopied all over java.nio.
5380 2004-04-20 Michael Koch <konqueror@gmx.de>
5382 * java/nio/ByteBufferImpl.java,
5383 java/nio/CharBufferImpl.java,
5384 java/nio/DirectByteBufferImpl.java,
5385 java/nio/DoubleBufferImpl.java,
5386 java/nio/DoubleViewBufferImpl.java,
5387 java/nio/FloatBufferImpl.java,
5388 java/nio/FloatViewBufferImpl.java,
5389 java/nio/IntBufferImpl.java,
5390 java/nio/IntViewBufferImpl.java,
5391 java/nio/LongBufferImpl.java,
5392 java/nio/LongViewBufferImpl.java,
5393 java/nio/MappedByteBufferImpl.java,
5394 java/nio/ShortBufferImpl.java,
5395 java/nio/ShortViewBufferImpl.java:
5396 Made sure all classes are final and removed final keyword from all
5399 2004-04-20 Michael Koch <konqueror@gmx.de>
5401 * java/rmi/MarshalledObject.java,
5402 java/rmi/Naming.java,
5403 java/rmi/RemoteException.java,
5404 java/rmi/activation/ActivationException.java,
5405 java/rmi/server/ServerCloneException.java,
5406 java/security/AccessController.java,
5407 java/security/AlgorithmParameterGenerator.java,
5408 java/security/AlgorithmParameters.java,
5409 java/security/CodeSource.java,
5410 java/security/Identity.java,
5411 java/security/IdentityScope.java,
5412 java/security/KeyPairGenerator.java,
5413 java/security/KeyStore.java,
5414 java/security/Security.java,
5415 java/security/Signature.java,
5416 java/security/SignatureSpi.java,
5417 java/security/SignedObject.java,
5418 java/security/spec/DSAParameterSpec.java,
5419 java/security/spec/DSAPrivateKeySpec.java,
5420 java/security/spec/DSAPublicKeySpec.java,
5421 java/sql/Array.java,
5422 java/sql/DatabaseMetaData.java,
5423 java/sql/ResultSet.java,
5424 java/text/ChoiceFormat.java,
5425 java/text/CollationElementIterator.java,
5426 java/text/CollationKey.java,
5427 java/text/Collator.java,
5428 java/text/DateFormat.java,
5429 java/text/DateFormatSymbols.java,
5430 java/text/DecimalFormatSymbols.java,
5431 java/text/Format.java,
5432 java/text/ParsePosition.java,
5433 java/text/RuleBasedCollator.java,
5434 java/text/SimpleDateFormat.java,
5435 java/text/StringCharacterIterator.java,
5436 java/util/Collections.java,
5437 java/util/PropertyResourceBundle.java,
5438 java/util/ResourceBundle.java,
5439 java/util/StringTokenizer.java,
5440 java/util/jar/Attributes.java,
5441 java/util/logging/ConsoleHandler.java,
5442 java/util/logging/LogManager.java,
5443 java/util/logging/MemoryHandler.java,
5444 java/util/logging/SocketHandler.java,
5445 javax/naming/NamingException.java:
5446 Fixed javadoc, coding style and argument names all over.
5448 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5450 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5451 constructor. (valid) Added null check.
5453 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5455 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5456 * java/io/FileOutputStream.java
5457 (FileOutputStream) Reorganized constructors. Constructors now
5458 check whether the given path is directory.
5460 2004-04-20 Michael Koch <konqueror@gmx.de>
5462 * java/net/Authenticator.java,
5463 java/net/BindException.java,
5464 java/net/ConnectException.java,
5465 java/net/ContentHandler.java,
5466 java/net/ContentHandlerFactory.java,
5467 java/net/DatagramPacket.java,
5468 java/net/DatagramSocket.java,
5469 java/net/DatagramSocketImpl.java,
5470 java/net/DatagramSocketImplFactory.java,
5471 java/net/FileNameMap.java,
5472 java/net/HttpURLConnection.java,
5473 java/net/Inet4Address.java,
5474 java/net/Inet6Address.java,
5475 java/net/InetAddress.java,
5476 java/net/InetSocketAddress.java,
5477 java/net/JarURLConnection.java,
5478 java/net/MalformedURLException.java,
5479 java/net/MulticastSocket.java,
5480 java/net/NetPermission.java,
5481 java/net/NetworkInterface.java,
5482 java/net/NoRouteToHostException.java,
5483 java/net/PasswordAuthentication.java,
5484 java/net/PortUnreachableException.java,
5485 java/net/ProtocolException.java,
5486 java/net/ServerSocket.java,
5487 java/net/Socket.java,
5488 java/net/SocketAddress.java,
5489 java/net/SocketException.java,
5490 java/net/SocketImpl.java,
5491 java/net/SocketImplFactory.java,
5492 java/net/SocketOptions.java,
5493 java/net/SocketPermission.java,
5494 java/net/SocketTimeoutException.java,
5496 java/net/URISyntaxException.java,
5498 java/net/URLClassLoader.java,
5499 java/net/URLConnection.java,
5500 java/net/URLDecoder.java,
5501 java/net/URLEncoder.java,
5502 java/net/URLStreamHandler.java,
5503 java/net/URLStreamHandlerFactory.java,
5504 java/net/UnknownHostException.java,
5505 java/net/UnknownServiceException.java:
5506 Fixed javadocs, coding style and argument names all over.
5508 2004-04-20 Michael Koch <konqueror@gmx.de>
5510 * java/lang/Byte.java,
5511 java/lang/CharSequence.java,
5512 java/lang/ClassLoader.java,
5513 java/lang/Compiler.java,
5514 java/lang/Double.java,
5515 java/lang/Float.java,
5516 java/lang/Integer.java,
5517 java/lang/Long.java,
5518 java/lang/Math.java,
5519 java/lang/Number.java,
5520 java/lang/Package.java,
5521 java/lang/Runtime.java,
5522 java/lang/RuntimePermission.java,
5523 java/lang/SecurityManager.java,
5524 java/lang/Short.java,
5525 java/lang/StringBuffer.java,
5526 java/lang/System.java,
5527 java/lang/ThreadGroup.java,
5528 java/lang/Throwable.java,
5529 java/lang/reflect/InvocationHandler.java,
5530 java/lang/reflect/Proxy.java:
5531 Fixed javadocs, coding style and argument names all over.
5533 2004-04-20 Michael Koch <konqueror@gmx.de>
5535 * java/io/BufferedWriter.java,
5536 java/io/ByteArrayInputStream.java,
5537 java/io/CharArrayWriter.java,
5538 java/io/DataInput.java,
5539 java/io/DataInputStream.java,
5541 java/io/FilterInputStream.java,
5542 java/io/InputStream.java,
5543 java/io/InputStreamReader.java,
5544 java/io/ObjectInputStream.java,
5545 java/io/ObjectStreamClass.java,
5546 java/io/PipedInputStream.java,
5547 java/io/PipedReader.java,
5548 java/io/PushbackInputStream.java,
5549 java/io/PushbackReader.java,
5550 java/io/RandomAccessFile.java,
5551 java/io/SerializablePermission.java,
5552 java/io/StreamTokenizer.java,
5553 java/io/StringWriter.java,
5554 java/io/WriteAbortedException.java,
5555 java/io/Writer.java:
5556 Fixed javadocs all over, rename arguments to match javadocs,
5559 2004-04-20 Ingo Proetel <proetel@aicas.com>
5561 * java/awt/FontMetrics.java:
5562 (charsWidth): fixed accumulation of total_width
5563 (getWidth): simple default implementation
5564 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5565 in Rectangle constructor.
5566 * java/awt/image/Raster.java (toString): Added method.
5567 * java/awt/image/SampleModel.java (<init>): Added error cause
5568 information to thrown exception.
5569 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5571 (setDataElements): New method.
5572 (setPixels): New method.
5573 (toString): New method.
5575 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5577 * java/awt/image/ComponentColorModel.java
5578 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5579 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5580 Mauve tests on this method. Improved documentation.
5582 2004-04-20 Michael Koch <konqueror@gmx.de>
5584 * javax/swing/JLayeredPane.java,
5585 javax/swing/plaf/BorderUIResource.java,
5586 javax/swing/plaf/ComponentUI.java,
5587 javax/swing/undo/CompoundEdit.java,
5588 javax/swing/undo/StateEdit.java:
5589 Fixed HTML tags in javadocs all over.
5591 2004-04-20 Michael Koch <konqueror@gmx.de>
5593 * javax/print/attribute/EnumSyntax.java
5594 (getOffset): Made protected.
5595 * javax/print/attribute/HashAttributeSet.java
5596 (HashAttributeSet): Likewise.
5597 * javax/print/attribute/ResolutionSyntax.java
5598 (getFeedResolution): Fixed typo in exception name.
5599 (getCrossFeedResolution): Likewise.
5600 * javax/print/attribute/SetOfIntegerSyntax.java
5601 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5602 * javax/print/attribute/TextSyntax.java
5603 (TextSyntax): Handle locale correctly.
5604 (hashCode): Calc better hashcode value.
5605 (equals): Fixed @return tag.
5606 (toString): New method.
5608 2004-04-20 Michael Koch <konqueror@gmx.de>
5610 * gnu/java/nio/FileLockImpl.java
5611 (static): Removed, not needed anymore.
5612 * gnu/java/nio/channels/FileChannelImpl.java
5613 (FileChannelImpl): Made final.
5614 (mode): Made private.
5615 (READ, WRITE, APPEND): Made public.
5616 (EXCL, SYNC, DSYNC): Likewise.
5617 (static): Load native JNI library, when needed.
5618 (length): Unused, removed.
5619 (available): Made public.
5620 (implPosition): Throws IOException.
5622 (implTruncate): Likewise.
5626 2004-04-20 Michael Koch <konqueror@gmx.de>
5628 * java/awt/AWTPermission.java,
5629 java/awt/Component.java,
5630 java/awt/ComponentOrientation.java,,
5631 java/awt/Dialog.java,
5632 java/awt/FontMetrics.java,
5633 java/awt/Graphics.java,
5634 java/awt/datatransfer/DataFlavor.java,
5635 java/beans/Introspector.java,
5636 java/beans/PropertyEditor.java,
5637 java/beans/PropertyEditorManager.java,
5638 java/beans/beancontext/BeanContextServiceProvider.java:
5639 Fixed HTML tags in javadocs all over.
5641 2004-04-20 Mark Wielaard <mark@klomp.org>
5643 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5644 MissingResourceException is thrown.
5645 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5646 null when a MissingResourceException is thrown. Should never happen.
5648 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5650 * java/awt/image/DataBufferShort.java,
5651 java/awt/image/DataBufferFloat.java,
5652 java/awt/image/DataBufferDouble.java,
5653 java/awt/image/PixelInterleavedSampleModel.java: New files.
5654 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5655 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5657 2004-04-20 Michael Koch <konqueror@gmx.de>
5659 * Makefile.am (java_source_files): Added
5660 java/awt/image/DataBufferDouble.java,
5661 java/awt/image/DataBufferFloat.java,
5662 java/awt/image/DataBufferShort.java and
5663 java/awt/image/PixelInterleavedSampleModel.java.
5664 * Makefile.in: Regenerated.
5666 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5668 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5669 undocumented CNI calls.
5670 * include/java-interp.h (_Jv_InterpClass): No longer
5671 extends java.lang.Class.
5672 * java/lang/Class.h (Class): Add new field `aux_info'.
5673 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5674 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5675 Use Class->aux_info instead.
5676 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5677 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5678 Use Class->aux_info instead.
5679 * java/io/natObjectInputStream.cc (allocateObject): Use
5681 * java/lang/natClass.cc (newInstance): Likewise.
5682 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5683 * java/lang/natObject.cc (clone): Likewise.
5684 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5685 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5686 JvAllocObject. Allocate klass->aux_info here for interpreted
5689 2004-04-17 Mark Wielaard <mark@klomp.org>
5691 * javax/swing/JToggleButton.java (ToggleButtonModel):
5692 Make public static inner class.
5693 * javax/swing/JTabbedPane.java (setComponentAt):
5694 Call Page.setComponent().
5695 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5696 (WRAP_TAB_LAYOUT): Make public, value is 0.
5697 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5698 Make private static inner class.
5700 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5702 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5703 arguments to match new signature. Remove FIXME comments.
5705 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5707 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5709 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5712 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5714 * Makefile.am: Added new file.
5715 * Makefile.in: Regenerate.
5716 * javax/swing/ImageIcon.java:
5717 (ImageIcon(file)): set description of the icon
5719 * javax/swing/JCheckBoxMenuItem.java:
5720 Mostly Implemented. Work in progress.
5721 * javax/swing/JRadioButtonMenuItem.java:
5722 Reimplement constructors to use JToggleButtonModel.
5723 * javax/swing/plaf/basic/BasicIconFactory.java:
5724 (getCheckBoxMenuItemIcon): return check box
5726 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5727 paint menu item selected only when it is armed and
5730 2004-04-02 David Jee <djee@redhat.com>
5732 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5733 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5734 * java/awt/Component.java
5735 (add): Set the parent of the popup as this component.
5736 * java/awt/PopupMenu.java
5737 (addNotify): Create popup menu when peer is null.
5738 (show): Call addNotify() if peer is null.
5739 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5740 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5741 argument for gtk_menu_popup() as zero. This causes the popup menu to
5742 respond to any mouse button.
5744 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5746 * Makefile.am: Added new file.
5747 * Makefile.in: Regenerate.
5748 * javax/swing/JRadioButtonMenuItem.java:
5750 * javax/swing/plaf/basic/BasicIconFactory.java:
5751 (getRadioButtonMenuItemIcon): Return
5753 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5754 (getPreferredSize): Add size of checkIcon if it
5756 (installDefaults): Don't initialize checkIcon.
5757 It's value will be set in subclasses.
5758 (uninstallDefaults): remove uninstallation of
5760 (paint): Moved code to paintMenuItem().
5761 (paintMenuItem): Implemented.
5762 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5763 UI delegate for JRadioButtonMenuItem.
5765 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5767 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5768 Corrected position of the accelerator.
5770 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5772 * Makefile.am: Added new file.
5773 * Makefile.in: Regenerate.
5774 * javax/swing/JMenuItem.java: Partly
5775 implemented. Work in progress
5776 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5777 Changed default value of acceleratorDelimiter.
5778 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5779 New class. Partly implemented.
5781 2004-03-26 Mark Wielaard <mark@klomp.org>
5783 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5784 (item_activate): Declare label before use.
5785 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5786 (gtkSetFont): Removed unused variable label.
5787 (addExposeFilter): Declare variables before use.
5788 (removeExposeFilter): Likewise.
5789 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5790 (ok_clicked): Declare str_fileName before use.
5792 2004-03-26 David Jee <djee@redhat.com>
5794 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5795 (addSeparator): Remove.
5796 * java/awt/Menu.java
5797 (separator): Remove static final MenuItem field.
5798 (separatorLabel): New static final String field.
5799 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5800 Use separatorLabel to denote that it is a separator.
5801 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5802 of reusing the static separator instance, because a MenuItem instance
5803 can't be added more than once without being cloned.
5804 * java/awt/peer/MenuPeer.java
5805 (addSeparator): Remove from interface.
5807 2004-03-26 David Jee <djee@redhat.com>
5809 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5810 (connectSignals): New native method declaration.
5811 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5812 * java/awt/MenuItem.java
5813 (getActionCommand): Return the label if the action command is not set.
5814 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5815 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5816 gtk_menu_shell_append().
5817 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5818 (item_activate): Fix argument type.
5819 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5821 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5823 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5824 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5825 given. Add the menu widget's top-level GtkWindow to the global window
5826 group, so it can grab the pointer.
5827 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5828 gtk_menu_shell_append().
5830 2004-03-23 Graydon Hoare <graydon@redhat.com>
5832 * java/text/AttributedString.java
5833 (addAttribute): Fix off-by-one.
5834 (getIterator): Likewise.
5835 * java/text/AttributedStringIterator.java
5836 (getRunLimit): Correct logic.
5837 (getRunStart): Likewise.
5838 (getAttribute): Fix inequality.
5839 (getAttributes): Likewise.
5840 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5842 2004-03-23 Kim Ho <kho@redhat.com>
5844 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5845 (calculateSizes): Return real width and height.
5847 2004-03-23 Kim Ho <kho@redhat.com>
5849 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5850 (calculateTabRects): Set the selectedRun before
5851 trying to rotate tabs.
5853 2004-03-23 Kim Ho <kho@redhat.com>
5855 * Makefile.am: New file
5856 * Makefile.in: Regenerate
5857 * java/awt/Graphics.java: (drawRect):
5858 Draw to the correct point.
5859 * javax/swing/DefaultSingleSelectionModel.java
5860 (isSelected): Return true if the selected index
5862 * javax/swing/JLabel.java: Do not change mnemonic
5863 index if text is null.
5864 * javax/swing/JProgressBar.java: Use JComponent's
5866 * javax/swing/JScrollBar.java: Ditto.
5867 * javax/swing/JSlider.java: Ditto.
5868 * javax/swing/JTabbedPane.java: Reimplement.
5869 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5870 Add defaults for TabbedPane.
5871 * javax/swing/plaf/basic/BasicArrowButton.java:
5873 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5874 (paintDeterminate): Don't paint String if it's
5876 (paintIndeterminate): ditto.
5877 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5880 2004-03-19 Michael Koch <konqueror@gmx.de>
5882 * java/awt/image/AffineTransformOp.java
5883 (AffineTransformOp): Made public.
5884 * javax/swing/JComponent.java
5885 (listenerList): Made protected.
5886 (accessibleContext): Likewise.
5887 * javax/swing/JList.java
5888 (valueChanged): Dont use internal fields of ListSelectionEvent.
5889 * javax/swing/JViewport.java
5890 (getView): Dont use internal fields of Component.
5891 (addImpl): Likewise.
5892 * javax/swing/Timer.java
5893 (isRunning): Made public.
5896 * javax/swing/UIDefaults.java
5897 (getInt): Made public.
5898 * javax/swing/plaf/basic/BasicListUI.java
5899 (mousePressed): Dont use internal fields of MouseEvent.
5900 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5901 * javax/swing/plaf/basic/BasicScrollBarUI.java
5902 (arrowIcon): Made static.
5903 * javax/swing/plaf/basic/BasicViewportUI.java
5904 (stateChanged): Dont use internal field on ChangeEvent.
5905 * javax/swing/text/JTextComponent.java
5906 (getUI): Call UIManager.getUI().
5907 (updateUI): Use getUI().
5909 2004-03-19 Graydon Hoare <graydon@redhat.com>
5911 * javax/swing/JComponent.java: Turn off double buffer by default.
5912 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5913 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5914 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5915 Use cairo to copy areas.
5916 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5917 Initialize and set clip region.
5919 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5921 * java/applet/Applet.java (preferredSize): Override deprecated
5922 variant of getPreferredSize.
5923 (minimumSize): Override deprecated variant of getMinimumSize.
5925 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5927 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5928 (drawImage(img,xform,bgcolor,obs)): New Method.
5929 Helper function that every drawImage method will
5931 (drawRaster): Added new parameter, bgcolor. All
5932 transparent pixels are changed to bgcolor before
5934 (drawRenderedImage): Fixed to use changed drawRaster().
5935 (drawImage(image,xform,obs): Fixed to use new helper function
5936 (drawImage(image,op,x,y)): Ditto.
5937 (drawImage (img,x,y,observer)): Ditto.
5938 ((PainterThread) bgcolor): New Field.
5939 ((PainterThread) (setPixels)): Changed all transparent pixels
5941 (drawImage(img,x,y,width,height,bgcolor,observer)):
5942 Fixed FIXME - all the transparent pixels are
5943 changed to the specified bgcolor.
5944 (drawImage(img, x, y, width, height, observer): Changed to
5946 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5947 Fixed FIXME- changed all transparent pixels to bgcolor.
5948 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5949 Changed to use function above.
5951 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5953 * java/applet/Applet.java (dimensions): New field.
5954 (getDimensions): New method.
5955 (getPreferredSize): Call getDimensions.
5956 (getMinimumSize): Likewise.
5958 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5960 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5961 * jni/classpath/jnilink.c: Likewise.
5963 * java/applet/Applet.java (getPreferredSize): New method.
5964 (getMinimumSize): New method.
5966 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5968 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5969 (_Jv_AllocObjectNoFinalizer): Likewise.
5970 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5971 (_Jv_AllocPtrFreeObject): Likewise.
5972 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5973 directly even in the JVMPI case.
5974 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5975 _Jv_AllocObject calls.
5976 * gcj/javaprims.h: Update prototypes.
5977 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5978 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5979 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5981 2004-04-14 Andrew Haley <aph@redhat.com>
5982 Bryce McKinlay <mckinlay@redhat.com>
5984 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5985 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5986 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5988 * testsuite/libjava.lang/InvokeInterface.java: New file.
5989 * testsuite/libjava.lang/InvokeInterface.out: New file.
5991 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5993 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5995 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5996 StackTraceElement directly.
5997 (newElement): New native helper method to create StackTraceElement
5998 bypassing Java access control.
5999 (createStackTraceElement): Use newElement() instead of directly
6000 calling StackTraceElement's constructor.
6001 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
6003 2004-04-01 Michael Koch <konqueror@gmx.de>
6005 * java/lang/SecurityManager.java
6006 (checkAwtEventQueueAccess): Implemented.
6008 2004-04-01 Gary Benson <gbenson@redhat.com>
6010 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
6011 (_Jv_SearchMethodInClass): Likewise.
6013 2004-03-26 Peter Moon <peterm@miraculum.com>
6015 * java/text/NumberFormat.java: Fix spelling of setCurrency
6018 2004-03-21 Anthony Green <green@redhat.com>
6020 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
6021 recursion when searching for the system ClassLoader.
6023 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
6025 * java/net/ServerSocket.java
6026 (accept): Close the socket when error occured.
6028 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
6030 * java/net/URI.java (parseURI): Added unquoting.
6031 (unquote): New method.
6032 (quoteAuthority): Implemented.
6033 (quote(String,String)): New method.
6034 (quotePath): Implemented.
6035 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
6036 (getSchemeSpecificPart): Removed FIXME comment.
6037 (getRawAuthority): Return new rawAuthority field.
6038 (getAuthority): Removed FIXME comment.
6039 (getRawUserInfo): Return new rawUserInfo field.
6040 (getUserInfo): Removed FIXME comment.
6041 (getRawPath): Return new rawPath field.
6042 (getPath): Removed FIXME comment.
6043 (getRawQuery): Return new rawQuery field.
6044 (getQuery): Removed FIXME comment.
6045 (getRawFragment): Return new rawFragment field.
6046 (getFragment): Removed FIXME comment.
6048 2004-03-20 Michael Koch <konqueror@gmx.de>
6050 * java/net/URLConnection.java: Merged copyright year with classpath.
6052 2004-03-20 Norbert Frese <postfach@nfrese.net>
6054 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
6055 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
6056 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
6058 (getObjectInputStream): Return object reference, throw IOException if null.
6059 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
6060 (getObjectOutputStream): Return object reference, throw IOException if null.
6061 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
6062 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
6063 (UnicastConnectionManager): Throw RemoteException if port is not available.
6064 (getInstance): Throw RemoteException.
6065 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
6066 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
6067 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6068 Collect Exceptions which are returned by a rmi-call and fix void returns.
6069 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
6070 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6071 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
6072 (dispatch): Answer ping messages which are sent by other java implementions.
6073 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
6074 for every rmi-message and fix void return problems.
6075 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
6076 (UnicastServerRef): Throw RemoteException.
6077 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
6078 In some situations it is necessary to export a subclass of the class which has the _Stub.
6079 For instance when the class with has the _Stub is abstract.
6080 (findStubSkelClass): New method which looks for the class which has the _Stub.
6081 (getClientHost): Implementated.
6082 * gcc/libjava/java/rmi/server/RemoteServer.java
6083 (getClientHost): Implementated.
6084 * gcc/libjava/Makefile.am (rmi_java_source_files):
6085 Added gnu/java/rmi/server/RMIIncomingThread.java.
6086 * Makefile.in: Regenerated.
6088 2004-03-20 Michael Koch <konqueror@gmx.de>
6090 * java/net/InetAddress.java
6091 (getLocalHostname): Added javadoc.
6093 2004-03-19 Per Bothner <per@bothner.com>
6095 * configure.in: FILE variable overrides FLATFORM when linking
6096 natFileChannelXXX.cc.
6098 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
6099 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
6101 2004-03-19 Per Bothner <per@bothner.com>
6103 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
6104 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
6105 * Makefile.am: Update accordingly.
6106 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
6107 as aliases for UnicodeLittle and UnicodeBig.
6109 2004-03-20 Mark Wielaard <mark@klomp.org>
6111 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6112 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
6113 Don't access ws when it is null.
6114 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
6117 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
6119 * java/lang/ThreadGroup.java (list): Changed print to println.
6121 2004-03-19 Mark Wielaard <mark@klomp.org>
6123 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
6126 2004-02-10 Randolph Chung <tausq@debian.org>
6128 * configure.in: Build java for hppa target.
6129 * configure: Regenerate.
6130 * libjava/configure.host (hppa-*): Add target.
6131 * libjava/sysdeps/pa/lock.h: New file.
6133 2004-03-19 Mark Wielaard <mark@klomp.org>
6135 Reported by Stephen Crawley
6136 * java/io/FilePermission.java (implies): Use String.length() -1 to
6137 access last char of String.
6139 2004-03-19 Michael Koch <konqueror@gmx.de>
6141 * java/awt/image/AffineTransformOp.java
6142 (AffineTransformOp): Made public.
6143 * javax/swing/JComponent.java
6144 (listenerList): Made protected.
6145 (accessibleContext): Likewise.
6146 * javax/swing/JList.java
6147 (valueChanged): Dont use internal fields of ListSelectionEvent.
6148 * javax/swing/JViewport.java
6149 (getView): Dont use internal fields of Component.
6150 (addImpl): Likewise.
6151 * javax/swing/Timer.java
6152 (isRunning): Made public.
6155 * javax/swing/UIDefaults.java
6156 (getInt): Made public.
6157 * javax/swing/plaf/basic/BasicListUI.java
6158 (mousePressed): Dont use internal fields of MouseEvent.
6159 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
6160 * javax/swing/plaf/basic/BasicScrollBarUI.java
6161 (arrowIcon): Made static.
6162 * javax/swing/plaf/basic/BasicViewportUI.java
6163 (stateChanged): Dont use internal field on ChangeEvent.
6164 * javax/swing/text/JTextComponent.java
6165 (getUI): Call UIManager.getUI().
6166 (updateUI): Use getUI().
6168 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6170 * verify.cc: Undef PC.
6172 2004-03-18 Michael Koch <konqueror@gmx.de>
6174 * java/nio/channels/spi/AbstractSelectableChannel.java
6175 (keys): Initialize at declaration.
6176 (locate): keys cant be null.
6178 (addSelectionKey): New method.
6179 (removeSelectionKey): New method.
6180 * java/nio/channels/spi/AbstractSelectionKey.java
6181 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
6182 * java/nio/channels/spi/AbstractSelector.java
6183 (provider): Javadoc added.
6184 (cancelledKeys): Javadoc added.
6185 (cancelKey): Javadoc added, add key to cancelledKeys.
6186 (deregister): Implemented.
6188 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6190 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
6191 MAP_FAILED to void *.
6193 2004-03-12 Graydon Hoare <graydon@redhat.com>
6195 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6196 * javax/swing/JComponent.java (paint): Use persistent double buffer.
6197 * javax/swing/JList.java (ListListener): Revalidate on changes.
6198 * javax/swing/JScrollPane.java: Reimplement.
6199 * javax/swing/JViewport.java: Reimplement.
6200 * javax/swing/ScrollPaneLayout.java: Reimplement.
6201 * javax/swing/ViewportLayout.java: Tidy up.
6202 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6203 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6204 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6205 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6208 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6210 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6211 (window_wm_protocols_filter): New function.
6212 (window_focus_in_cb): Remove function.
6213 (window_focus_out_cb): Likewise.
6214 (window_focus_or_active_state_change_cb): New function.
6215 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6216 (connectSignals): Don't attach handlers to focus-in-event or
6217 focus-out-event signals. Handle notify signal.
6219 2004-03-11 David Jee <djee@redhat.com>
6221 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6222 (gtkSetLabel): New native method declaration.
6223 (setLabel): Use gtkSetLabel.
6224 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6225 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6227 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6229 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6230 black when color argument is null.
6232 2004-03-10 Kim Ho <kho@redhat.com>
6234 * java/awt/Container.java: Remove check
6237 2004-03-10 Kim Ho <kho@redhat.com>
6239 * java/awt/Container.java: (visitChild):
6240 Remove candidate clip. Use the component
6242 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6243 (handleEvent): Use the PaintEvent's clip.
6245 2004-03-10 Kim Ho <kho@redhat.com>
6247 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6248 (handleEvent): Don't set the clip for the
6251 2004-03-09 Graydon Hoare <graydon@redhat.com>
6253 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6254 Fix double <-> fixed macros, reset font transform.
6255 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6258 2004-03-09Â Kim Ho <kho@redhat.com>
6260 * java/awt/Container.java: (visitChild): Move
6261 the x and y coordinate of the component rectangle
6262 to correct position.
6263 (handleEvent): Forward drag events to the pressed
6265 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6267 (ArrowButtonListener::mousePressed): Stop the
6269 (mouseDragged): Implement.
6270 (TrackListener::mousePressed): Only react if
6271 the press doesn't occur on the thumb, otherwise
6272 just set the offset.
6273 (TrackListener::mouseReleased): Unset the isAdjusting
6275 (createIncreaseIcon): Switch icon.
6276 (createDecreaseIcon): Switch icon.
6277 (calculatePreferredSize): Use width.
6278 (getThumbBounds): Use the top as the lower value.
6279 (layoutVScrollBar): Switch the button locations.
6280 (paintIncreaseHighlight): Paint correct side of thumb.
6281 (paintDecreaseHighlight): ditto.
6282 (valueForYPosition): Use top as the lower value.
6283 * javax/swing/plaf/basic/BasicSliderUI.java:
6285 (mouseDragged): Implement.
6286 (mousePressed): Only react when the thumb isn't
6287 pressed, otherwise just set offset.
6288 (mouseReleased): Handle a release of the thumb.
6289 (scrollDueToClickInTrack): Stop the timer first.
6290 * javax/swing/JProgressBar.java:
6291 (setString): Fix change condition.
6292 * javax/swing/JSeparator.java:
6295 2004-03-08 David Jee <djee@redhat.com>
6297 * java/awt/image/AffineTransformOp.java:
6298 (filter): Use Graphics2D interface instead of directly using the
6301 2004-03-05 David Jee <djee@redhat.com>
6303 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6304 (handleEvent): Action events are generated upon MOUSE_RELEASED.
6305 * java/awt/Container.java
6306 (acquireComponentForMouseEvent): Fixed.
6307 (handleEvent): Fixed.
6308 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6309 (state_to_awt_mods_with_button_states): New method.
6310 (pre_event_handler): Fixed mouse event generation.
6312 2004-03-05 Olga Rodimina <rodimina@redhat.com>
6314 gnu/java/awt/peer/gtk/GdkGraphics2D.java
6315 (GdkGraphics2D (BufferedImage)): Initialize
6316 pixmap associated with specified BufferedImage.
6317 (setPaint): Changed implementation of Texture
6318 Paint to use AffineTransformOp.
6319 * java/awt/image/AffineTransformOp.java
6320 (createCompatibleDestRaster): Throw RasterFormatException
6321 if resulting width or height of raster is 0.
6323 2004-03-04 Olga Rodimina <rodimina@redhat.com>
6325 * java/awt/image/AffineTransformOp.java:
6326 Removed unnecessary field interpolationType.
6327 Formatted some of the lines to be consistent with
6329 (AffineTransformOp): Create new RenderingHints
6330 containing specified interpolation type.
6331 (createCompatibleDestImage): Implemented.
6332 (createCompatibleDestRaster): Implemented.
6333 (filter): Implemented.
6334 (getBounds2D(BufferedImage)): Implemented.
6335 (getBounds2D(Raster)): Implemented.
6336 (getInterpolationType): Get interpolation value from
6339 2004-03-04 David Jee <djee@redhat.com>
6341 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6342 (setFont): Check if child peers are null.
6344 2004-03-04 Graydon Hoare <graydon@redhat.com>
6346 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6348 (libjava_arguments): Add new libraries to argument list.
6350 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6352 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6353 * Makefile.in: Re-generated.
6354 * java/awt/image/AffineTransformOp.java: New Class.
6356 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6358 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6359 (setPaint): Interpret correctly TexturePaint's
6361 (drawImage): Fixed scale factors of the affine
6364 2004-02-27 David Jee <djee@redhat.com>
6366 * gnu/java/awt/peer/gtk/GdkGraphics.java
6367 (GdkGraphics(Component)): Inherit font from component.
6368 (drawString): Use font style.
6369 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6370 (gtkSetFont): New native method declaration.
6371 (setFont): New method.
6372 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6373 (gtkSetFont): New native method declaration.
6374 (setFont): Call new native method gtkSetFont.
6375 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6376 (setFont): For all child components who do not their fonts set,
6377 set their peers' fonts with this container's font.
6378 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6379 Move all native method declarations to the top for readability.
6380 (gtkSetFont): New native method declaration.
6381 (setFont): New method.
6382 * java/awt/Component.java
6383 (setFont): Invalidate after setting the font.
6384 * java/awt/Container.java
6385 (invalidateTree): New method.
6386 (setFont): Invalidate the container tree after setting the font.
6387 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6388 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6389 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6390 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6391 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6392 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6393 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6394 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6396 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6398 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6399 (updateBufferedImage): New helper function.
6400 Updates BufferedImage in memory if it was changed.
6401 (draw): changed to update BufferedImage in memory after
6402 this drawing operation
6404 (draw3DRect): Ditto.
6405 (fill3DRect): Ditto.
6407 (drawRaster): Ditto.
6408 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6409 no affine transformation.
6410 (drawGlyphVector): Ditto.
6412 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6414 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6415 (isBufferedImageGraphics): New Helper function.
6416 Returns true if this graphics2d can be used to draw
6417 into buffered image and false otherwise.
6418 (updateImagePixels): New Helper function.
6419 Updates pixels in the BufferedImage.
6420 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6421 (getImagePixels): New function. Returns pixels
6422 of the buffered image associated with
6425 2004-02-26 David Jee <djee@redhat.com>
6427 * java/awt/BorderLayout.java
6428 (layoutContainer): Fix width and height calculations to ensure
6429 that they're non-negative.
6430 * java/awt/Component.java
6431 (setBackground): If c is null, inherit from closest ancestor whose
6432 background color is set.
6434 2004-02-26 Kim Ho <kho@redhat.com>
6436 * Makefile.am: Add new files.
6437 * Makefile.in: Re-generate.
6438 * javax/swing/JProgressBar.java:
6439 (JProgressBar(int, int int)): Throw
6440 IllegalArgumentException if orientation is
6442 (JProgressBar(BoundedRangeModel)): Create
6443 ChangeListener and register it. UpdateUI.
6444 (getChangeListeners): Implement.
6445 (setModel): Reset ChangeListener.
6446 * javax/swing/JScrollBar.java: Implement.
6447 * javax/swing/JSeparator.java: Implement.
6448 * javax/swing/JSlider.java:
6449 (JSlider(int, int, int, int)): Throw
6450 IllegalArgumentException if orientation
6452 (getChangeListeners): Fix method name.
6453 * javax/swing/SwingUtilities.java:
6454 (layoutCompoundLabel): If there is no text,
6455 set the text rectangle dimensions to 0.
6456 * javax/swing/plaf/basic/BasicButtonUI.java:
6457 (paint): If there is no text, don't paint it.
6458 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6460 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6462 * javax/swing/plaf/basic/BasicSliderUI.java:
6463 (propertyChange): If the model changes, change
6464 the listeners accordingly.
6466 2004-02-25 Graydon Hoare <graydon@redhat.com>
6468 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6469 * javax/swing/JList.java: Reimplement.
6470 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6471 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6472 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6473 * javax/swing/ListModel.java: Javadoc.
6474 * javax/swing/ListSelectionModel.java: Add missing methods.
6475 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6476 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6477 * javax/swing/ListModel.java: Javadoc and corrections.
6478 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6480 2004-02-25 David Jee <djee@redhat.com>
6482 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6483 (GtkFontPeer): Change default size to 12.
6484 * gnu/java/awt/peer/gtk/GtkToolkit.java
6485 (getFontPeer): Change default size to 12.
6486 (getClasspathFontPeer): Likewise. Set default name to "Default".
6487 * java/awt/Font.java
6488 (Font(Map)): Call Font(String,Map).
6489 (Font(String,Map)): If attrs is null, initialize it as an empty
6490 HashMap, which will ensure that the Font will get default attributes.
6492 2004-02-25 David Jee <djee@redhat.com>
6494 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6495 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6496 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6497 * gnu/java/awt/peer/gtk/GtkToolkit.java
6498 (getFontPeer(String,int)): Call the new overload method with size 1.
6499 (getFontPeer(String,int,int)): New method. Overloaded with size
6501 (getClasspathFontPeer): Set the size of the font.
6503 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6505 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6506 (bimage): New field.
6507 (GdkGraphics2D): New Constructor. Constructs Graphics
6508 object that can be used to draw into the Buffered Image.
6509 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6510 (GdkGraphicsEnvironment): Fixed to include public
6512 (createGraphics): Implemented.
6513 * gnu/java/awt/peer/gtk/GtkToolkit.java
6514 (getLocalGraphicsEnvironment): Implemented.
6515 * java/awt/GraphicsEnvironment.java:
6516 (getLocalGraphicsEnvironment): Implemented.
6517 * java/awt/image/BufferedImage.java:
6518 (createGraphics): Implemented.
6520 2004-02-24 David Jee <djee@redhat.com>
6522 * java/awt/Component.java
6523 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6524 * java/awt/Container.java
6525 (addNotifyContainerChildren): Fix event enabling.
6527 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6529 * Makefile.am: Added
6530 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6531 * Makefile.in: Re-generated.
6532 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6535 2004-02-19 Kim Ho <kho@redhat.com>
6537 * Makefile.am: Add BasicProgressBarUI
6538 * Makefile.in: Regenerate.
6539 * javax/swing/JProgressBar.java:
6541 * javax/swing/plaf/basic/BasicLookAndFeel.java
6542 Add constants for JProgressBar.
6543 * javax/swing/plaf/basic/BasicProgressBarUI.java
6545 * javax/swing/plaf/basic/BasicSliderUI.java
6547 (calculateGeometry): New method
6548 (paint): Remove unnecessary size calculations.
6550 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6552 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6553 (drawRaster): Fixed small error that caused
6554 imageToUser transformation to be set incorrectly.
6555 (toString): Implemented.
6557 2004-02-18 David Jee <djee@redhat.com>
6559 * java/awt/CardLayout.java
6560 (addLayoutComponent): Show the first component added as the default.
6561 (removeLayoutComponent): After removing, show the next component.
6562 (gotoComponent): If there is only one component, show it and return.
6564 2004-02-18 Kim Ho <kho@redhat.com>
6566 * javax/swing/JSlider.java: Re-order
6568 * javax/swing/JLabel.java: Re-order
6570 * javax/swing/JComponent.java:
6571 (addPropertyChangeListener):
6573 (removePropertyChangeListener):
6575 (firePropertyChangeEvent):
6578 2004-02-17 David Jee <djee@redhat.com>
6580 * java/awt/Component.java
6581 (show): Dispatch ComponentEvent via system event queue.
6585 (reshape): Likewise.
6586 * java/awt/Window.java
6587 (setBoundsCallback): Likewise.
6589 2004-02-17 David Jee <djee@redhat.com>
6591 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6592 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6593 Use gtk_widget_set_size_request() instead of the deprecated
6594 gtk_widget_set_usize().
6596 2004-02-17 Kim Ho <kho@redhat.com>
6598 * javax/swing/JSlider.java: Fix comments and
6599 make property strings constants.
6600 (createStandardLabels): Use the labels
6601 preferred size as bounds.
6602 * javax/swing/plaf/basic/BasicSliderUI.java
6604 (ScrollHandler::actionPerformed): Don't
6605 calculate the timer stop value. Let the
6606 MouseListeners find the stop location.
6607 (getPreferredHorizontalSize): Re-implement.
6608 (getPreferredVerticalSize): ditto.
6609 (getMinimumHorizontalSize): ditto.
6610 (getMinimumVerticalSize): ditto.
6611 (getPreferredSize): ditto.
6612 (getMinimumSize): ditto.
6613 (getMaximumSize): ditto.
6614 (paintTicks): Use doubles to find the
6616 (paintHorizontalLabel):Â Use preferredSize
6617 as initial width and height.
6618 (paintVerticalLabel): ditto.
6620 2004-02-17 Kim Ho <kho@redhat.com>
6622 * javax/swing/JLabel.java: Changed
6623 property strings to constants.
6624 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6626 (setText): Change mnemonic index if
6628 (setDisplayedMnemonicIndex): Fire property
6630 (getDisplayedMnemonicIndex): Remove check
6633 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6635 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6636 (drawImage(img,xform,obs)): Invert xform before
6637 passing the xform to cairo.
6638 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6639 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6641 (drawImage (img,x,y,w,h,obs)): Implemented.
6642 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6643 bgcolor,obs)): Partly implemented.
6644 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6646 * java/awt/image/BufferedImage.java:
6647 (copyData): if dest is null, create raster with same
6648 dimensions as the current image.
6650 2004-02-16 Graydon Hoare <graydon@redhat.com>
6652 * javax/swing/plaf/basic/BasicLabelUI.java
6653 (getPreferredSize): Use layoutCL.
6654 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6655 (getPreferredButtonSize): Start with empty view rect, layout using
6656 component's preferred alignment.
6657 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6660 2004-02-16 David Jee <djee@redhat.com>
6662 * java/awt/Component.java
6663 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6664 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6665 (move): Erase old bounds and repaint new bounds. Dispatch
6666 COMPONENT_MOVED ComponentEvent.
6667 (resize): Erase old bounds and repaint new bounds. Dispatch
6668 COMPONENT_RESIZED ComponentEvent.
6669 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6671 * java/awt/Window.java
6672 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6675 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6677 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6678 (setRenderingHint): Added implementation of
6679 Interpolation rendering hints.
6680 (setRenderingHints): Ditto.
6681 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6682 (drawPixels): fixed to allow user to choose type
6683 of filtering that should be used when displaying images.
6684 (cairoSurfaceSetFilter): New method. Sets filter type for
6685 interpolation of pixel values.
6687 2004-02-16 David Jee <djee@redhat.com>
6689 * java/awt/GridBagLayout.java
6690 (calcCellSizes): Rows or columns with zero sizes should still be
6691 considered for extra space distribution.
6693 2004-02-16 Kim Ho <kho@redhat.com>
6695 * javax/swing/JLabel.java: Re-implement.
6696 * javax/swing/plaf/basic/BasicLabelUI.java
6698 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6701 2004-02-16 Kim Ho <kho@redhat.com>
6703 * javax/swing/JSlider.java: Fix indentation and comments.
6704 (setModel): Remove null check to conform with Sun's.
6705 (setOrientation): Throw exception if not
6706 HORIZONTAL or VERTICAL.
6707 (getInverted): Use private variable instead of
6708 ComponentOrientation.
6709 (setInverted): ditto.
6710 * javax/swing/plaf/basic/BasicSliderUI.java:
6711 Fix indentation and comments.
6712 (propertyChange): Remove check for inverted slider, handle
6714 (getMinimumSize): Return preferred size.
6715 (getMaximumSize): ditto.
6716 (calculateFocusRect): Don't relocate rectangle.
6717 (drawInverted): Return XOR of the slider's inversion and
6718 the component's orientation.
6719 (paint): Update leftToRightCache
6721 2004-02-13 David Jee <djee@redhat.com>
6723 * java/awt/GridBagLayout.java
6724 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6725 code to helper methods.
6726 (sortBySpan): New helper method.
6727 (distributeSizeAndWeight): Likewise.
6728 (calcCellWeights): Likewise.
6729 (calcCellSizes): Add comments.
6731 2004-02-13 David Jee <djee@redhat.com>
6733 * java/awt/Component.java
6734 (show): Only do something if component is invisible at the moment.
6735 (hide): Only do something if component is visible at the moment.
6736 (reshape): If lightweight, erase old bounds and repaint new bounds.
6738 2004-02-13 Kim Ho <kho@redhat.com>
6740 * Makefile.am: Updated for new file.
6741 * Makefile.in: Regenerated.
6742 * javax/swing/JSlider.java: Reimplement.
6743 * javax/swing/SwingUtilities.java
6744 (layoutCompoundLabel): Use icon height
6746 (paintComponent): Implement.
6747 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6748 Add JSlider defaults.
6749 * javax/swing/plaf/basic/BasicSliderUI.java:
6750 Implement. New file.
6752 2004-03-17 Michael Koch <konqueror@gmx.de>
6754 * gnu/java/net/PlainDatagramSocketImpl.java
6755 (RECEIVE_LOCK): New member field.
6756 (SEND_LOCK): New member field.
6757 (send0): New method.
6758 (send): Synchronize on SEND_LOCK.
6759 (receive0): New method.
6760 (receive): Synchronize on RECEIVE_LOCK.
6761 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6762 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6763 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6764 (send0): Renamed from send.
6765 (receive0): Renamed from receive.
6766 2004-03-17 Michael Koch <konqueror@gmx.de>
6768 * gnu/java/net/natPlainSocketImplPosix.cc
6769 (write): Just call write(jbyteArray, offset, len).
6770 (read): Just call read(jbyteArray, offset, len).
6772 2004-03-16 Michael Koch <konqueror@gmx.de>
6774 * javax/swing/JTabbedPane.java
6775 (serialVersionUID): New field.
6777 2004-03-16 Norbert Frese <postfach@nfrese.net>
6779 * java/net/InetAddress.java
6780 (getByName): Handle hostname == "" case.
6782 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6784 Reported by: Adam Heath <doogie@debian.org>
6785 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6788 2004-03-15 Michael Koch <konqueror@gmx.de>
6790 * java/util/Locale.java: Reverting my last patch
6791 and add a comment why the original version was okay.
6793 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6795 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6796 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6797 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6798 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6800 2004-03-12 Michael Koch <konqueror@gmx.de>
6802 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6804 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6806 * java/net/URI.java (toURL): Implemented.
6808 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6811 (URI_REGEXP) updated to contain scheme specific part.
6812 (SCHEME_SPEC_PART_GROUP) new constant.
6813 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6814 updated to make room for SCHEME_SPEC_PART_GROUP.
6815 (parseURI) parse scheme specific part.
6816 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6817 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6818 getQuery, getFragment) implemented.
6820 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6822 * libraries/javalib/java/net/URI.java
6823 partially implemented using java.util.regex.
6824 (URI_REGEXP) new constant. Used to parse URIs.
6825 (SCHEME_GROUP) new constant representing index of scheme group
6827 (AUTHORITY_GROUP) new constant representing index of authority
6828 group in parsed URI.
6829 (PATH_GROUP) new constant representing index of path group in
6831 (QUERY_GROUP) new constant representing index of query group in
6833 (FRAGMENT_GROUP) new constant representing index of fragment
6834 group in parsed URI.
6835 (getURIGroup) new static utility method.
6836 (parseURI) implemented.
6837 (quote) stub for new static utility method.
6838 (quoteAuthority) stub for new static utility method.
6839 (quoteHost) stub for new static utility method.
6840 (quotePath) stub for new static utility method.
6841 (quoteUserInfo) stub for new static utility method.
6843 (create) don't throw URISyntaxException. Implemented.
6844 (toString) implemented.
6846 2004-03-12 Michael Koch <konqueror@gmx.de>
6848 * java/net/HttpURLConnection.java
6849 (getResponseCode): Fix another typo in javadoc.
6851 2004-03-11 Michael Koch <konqueror@gmx.de>
6853 * java/util/logging/Level.java
6854 (parse): Use String.equals() instead of ==.
6856 2004-03-11 Michael Koch <konqueror@gmx.de>
6858 * gnu/java/net/protocol/jar/Connection.java
6859 (getContentLength): New method.
6861 2004-03-11 Michael Koch <konqueror@gmx.de>
6863 * gnu/java/net/PlainSocketImpl.java:
6864 Reformated to merge better with classpath's version.
6866 2004-03-11 Michael Koch <konqueror@gmx.de>
6868 * java/util/Locale.java
6869 (getISO3Language): Use String.equals() instead of ==.
6870 (getISO3Country): Likewise.
6872 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6874 * java/text/AttributedString.java
6875 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6876 Use HashMap instead of Hashtable since value can be null, and
6877 you can not store a null value in a Hashtable.
6879 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6881 * java/text/AttributedStringIterator.java
6882 (getAllAttributesKey): Return only keys concerned
6883 by the current iterator.
6884 (getAttributes): Use strict inequality for
6887 2004-03-11 Michael Koch <konqueror@gmx.de>
6889 * java/net/HttpURLConnection.java:
6890 Fixed typo in javadoc.
6892 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6894 * java/io/BufferedInputStream.java (marktarget): New field for max
6896 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6897 (mark): Use new fields.
6899 (read(byte[],int,int)): Likewise.
6903 2004-03-11 Mark Wielaard <mark@klomp.org>
6905 * java/beans/BeanDescriptor.java (BeanDescriptor):
6906 Set the FeatureDescriptor programmatic name.
6908 2004-03-11 Michael Koch <konqueror@gmx.de>
6910 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6911 This file was was just copied form java/io/natFileDescriptorEcos.cc
6912 and never changed to compile correctly.
6914 2004-03-11 Michael Koch <konqueror@gmx.de>
6916 * gnu/java/nio/PipeImpl.java
6917 (SourceChannelImpl): Made final.
6918 (read): Implemented.
6919 (SinkChannelImpl): Made final.
6920 (write): Implemented.
6922 2004-03-11 Michael Koch <konqueror@gmx.de>
6924 * gnu/java/net/PlainDatagramSocketImpl.java:
6925 Reformated to match classpath's version more.
6927 2004-03-11 Michael Koch <konqueror@gmx.de>
6929 * gnu/java/awt/peer/ClasspathFontPeer.java:
6930 Fixed javadoc to be correct xhtml.
6931 * gnu/java/awt/peer/gtk/GtkArgList.java
6932 (add): Use Boolean.valueOf() instead of new Boolean().
6934 2004-03-09 Michael Koch <konqueror@gmx.de>
6936 * java/lang/Thread.java
6937 (runnable): Moved around.
6938 (daemon): Renamed from daemon_flag.
6939 (contextClassLoader): Renamed from context_class_loader.
6940 (Thread): Reordered constructors.
6941 (activeCount): Use group directly.
6942 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6943 (holdsLock): Reworked javadoc.
6944 (setDaemon): Reworked.
6945 * java/lang/natThread.cc
6948 2004-03-08 Anthony Green <green@redhat.com>
6950 * Makefile.am: Build property resource files into libgcj.
6951 * Makefile.in: Rebuilt.
6952 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6953 java/util/regex/PatternSyntaxException.java,
6954 gnu/regexp/CharIndexed.java,
6955 gnu/regexp/CharIndexedCharArray.java,
6956 gnu/regexp/CharIndexedInputStream.java,
6957 gnu/regexp/CharIndexedReader.java,
6958 gnu/regexp/CharIndexedString.java,
6959 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6960 gnu/regexp/REException.java,
6961 gnu/regexp/REFilterInputStream.java,
6962 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6963 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6964 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6965 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6966 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6967 gnu/regexp/RETokenLookAhead.java,
6968 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6969 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6970 gnu/regexp/RETokenStart.java,
6971 gnu/regexp/RETokenWordBoundary.java,
6972 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6974 2004-03-03 Per Bothner <per@bothner.com>
6976 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6977 Optimize when argument is a FileChannelImpl.
6978 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6980 * java/nio/channels/natChannels.cc: New file for new native methods.
6981 * Makefile.am: Update accordingly.
6983 2004-03-02 Jan Hubicka <jh@suse.cz>
6985 * configure.host: Pass -fno-omit-frame-pointer for i386.
6986 * configure.in: Likewise.
6987 * configure: Regenerate.
6989 2004-03-01 Per Bothner <per@bothner.com>
6991 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6993 2004-02-29 Per Bothner <per@bothner.com>
6995 * java/nio/channels/FileChannelImpl.java: Moved to package
6996 gnu/java/nio/channels, since we need to refer to it from java.io.
6997 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6998 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6999 from java/nio/channels. Don't depend on FileDescriptor.
7000 (in, out, err): New static fields.
7002 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
7003 from FileDescriptor.
7004 (by): Removed MappedByteBuffer field.
7005 (map): New working implementation.
7006 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
7007 some code "ported" from natFileDescriptoPosix.cc.
7008 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
7009 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
7010 * java/io/FileDescriptor.java: Implement on top of FileChannel.
7011 Remove native methods.
7012 * Makefile.am, configure.in: Updated accordingly.
7014 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
7015 (ch): New FileChannelImpl field. Update constructor to match.
7016 (releaseImpl): Remove native method. Instead ...
7017 (release): Call unlock on channel.
7018 * gnu/java/nio/natFileLockImpl.cc: Removed file.
7020 * java/io/natFileDescriptorEcos.cc: Remove file.
7021 * java/io/natFileDescriptorPosix.cc: Remove file.
7022 * java/io/natFileDescriptorWin32.cc: Remove file.
7023 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
7024 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
7025 (<init>(FileChannelImpl)): New package-private constructor.
7026 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
7027 (available, close, read, skip): Implement using FileChannelImpl.
7028 (getFD): Allocate FileDescriptor if needed.
7029 (getChannel): Is now trivial.
7030 * java/io/FileOutputStream.java: Corresponding changes.
7031 * java/io/RandomAccessFile.java: Corresponding changes.
7033 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
7034 unmapImpl): New dummy methods, to be overridden by subclass.
7035 (finalize, isLoaded, load, force): New methods.
7036 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
7037 Now works, at least for read mapping.
7039 * java/lang/natPosixProcess.cc (startProcess): Implement standard
7040 streams using FileChannelImpl, not FileDescriptor.
7041 * java/lang/natWin32Process.cc (startProcess): Likewise.
7043 2004-02-28 Michael Koch <konqueror@gmx.de>
7045 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
7048 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
7050 * java/io/ObjectInputStream.java
7051 (readClassDescriptor): Keep elements of the mapping non null.
7052 (checkTypeConsistency): New method.
7053 (readFields): Fixed main loop and base logic. Small reindentation.
7054 * java/io/ObjectStreamField.java
7055 (lookupField): New method to update the field reference.
7056 (checkFieldType): New method.
7057 * java/io/ObjectStreamClass.java
7058 (setClass, setFields): Call lookupField when building the field
7059 database. Check the real field type.
7061 2004-02-28 Michael Koch <konqueror@gmx.de>
7063 * java/nio/ByteOrder.java
7064 (nativeOrder): Use equals() to compare strings.
7066 2004-02-26 Michael Koch <konqueror@gmx.de>
7068 * gnu/java/nio/FileLockImpl.java
7069 (finalize): Made protected.
7070 * java/nio/channels/FileChannel.java
7071 (MapMode.READ_ONLY): Made final.
7072 (MapMode.READ_WRITE): Made final.
7073 (MapMode.PRIVATE): Made final.
7074 * java/nio/channels/SocketChannel.java
7075 (open): Simplified code.
7076 * java/nio/channels/spi/AbstractSelectableChannel.java
7077 (registered): Unused, removed.
7078 (keyFor): Check channel is open, only locate key
7079 and not add a new one.
7080 (register): Don't delete attachments.
7082 2004-02-26 Michael Koch <konqueror@gmx.de>
7084 * gnu/java/awt/ComponentDataBlitOp.java
7085 (INSTANCE): Made final.
7086 * gnu/java/awt/image/ImageDecoder.java:
7088 (cm): Unused, removed.
7090 2004-02-26 Michael Koch <konqueror@gmx.de>
7092 * gnu/java/nio/DatagramChannelImpl.java
7093 (send): Check if target address is resolved.
7095 2004-02-26 Michael Koch <konqueror@gmx.de>
7097 * Makefile.am: Generate and install headers for inner classes in
7098 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
7099 * Makefile.in: Regenerated.
7101 2004-02-24 Anthony Green <green@redhat.com>
7103 * java/lang/StringBuffer.java: No need to NULL out remainder of
7104 buffer since ensureCapacity_unsynchronized will have done this for
7107 2004-02-20 Michael Koch <konqueror@gmx.de>
7109 * gnu/java/net/protocol/jar/Handler.java
7110 (): Removed unneeded check for file != null. java.net.URL.getFile()
7111 returns an empty string but never null.
7113 2004-02-20 Michael Koch <konqueror@gmx.de>
7115 * gnu/gcj/convert/Convert.java
7116 (main): Use equals() to compare strings.
7118 2004-02-20 Michael Koch <konqueror@gmx.de>
7120 * javax/swing/AbstractButton.java: Made several constants final.
7121 (getRolloverSelectedIcon): Made public.
7122 (getSelectedIcon): Made public.
7124 2004-02-16 Per Bothner <per@bothner.com>
7126 * java/nio/CharBufferImpl.java: Inline super constructor.
7127 * java/nio/DoubleBufferImpl.java: Likewise.
7128 * java/nio/FloatBufferImpl.java: Likewise.
7129 * java/nio/IntBufferImpl.java: Likewise.
7130 * java/nio/LongBufferImpl.java: Likewise.
7131 * java/nio/ShortBufferImpl.java: Likewise.
7132 * java/nio/CharBuffer.java: Remove unused constructor.
7133 * java/nio/DoubleBuffer.java: Likewise.
7134 * java/nio/FloatBuffer.java: Likewise.
7135 * java/nio/IntBuffer.java: Likewise.
7136 * java/nio/LongBuffer.java: Likewise.
7137 * java/nio/ShortBuffer.java: Likewise.
7138 * java/nio/CharViewBufferImpl.java: New convenience constructor.
7139 Fix buggy call to super constructor.
7140 * java/nio/DoubleViewBufferImpl.java: Likewise.
7141 * java/nio/FloatViewBufferImpl.java: Likewise.
7142 * java/nio/IntViewBufferImpl.java: Likewise.
7143 * java/nio/LongViewBufferImpl.java: Likewise.
7144 * java/nio/ShortViewBufferImpl.java: Likewise.
7146 * java/nio/ByteBuffer.java (endian): Make non-private so other
7147 java.nio classes can inherit it.
7148 (<init>): Don't bother clearing array_offset.
7149 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
7150 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
7151 Remove redundant test.
7153 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
7154 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
7155 Use new XxxViewBufferImpl constructors.
7156 * java/nio/MappedByteBufferImpl.java: Likewise.
7157 * java/nio/DirectByteBufferImpl.java: Likewise.
7159 * java/nio/ByteBufferImpl.java: Remove one constructor.
7160 Inline super in remaining constructor.
7161 * java/nio/ByteBuffer.java: Remove unused constructor.
7163 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
7165 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
7166 * java/nio/DirectByteBufferImpl.java (owner): New field.
7167 (offset): Remove unused field.
7168 (<init>): Modify one and add another constructor. Change callers.
7169 (allocateDirect): Removed - not used.
7170 (getImpl, putImpl): Make static and pass address explicitly,
7171 to make them useful for MappedByteBufferImpl.
7172 (get, put): Check for underflow. Modify for new getImpl.
7173 (getImpl): New native method where target is array.
7174 (get(byte[],int,int)): Use the above.
7175 (adjustAddress): New static native method.
7176 (slice, duplicate, asReadOnly): New implementations.
7177 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
7178 adjustAddress): New or updated native methods.
7180 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
7182 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
7183 overflow of fieldmapping.
7185 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
7187 * javax/swing/undo/UndoManager.java: Re-written from scratch.
7189 2004-02-14 Per Bothner <per@bothner.com>
7191 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
7192 Set closed before calling implCloseChannel, as in the spec.
7194 2004-02-09 Graydon Hoare <graydon@redhat.com>
7196 * javax/swing/ToggleButtonModel.java: Remove dead class.
7197 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
7198 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
7199 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
7200 * Makefile.am: Update for new and removed files.
7201 * Makefile.in: Regenerate.
7203 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
7204 * javax/swing/AbstractButton.java
7205 (AbstractButton): Initialize fields correctly in ctor.
7206 * javax/swing/JCheckbox.java
7207 (JCheckBox): Override painting flags.
7208 * javax/swing/DefaultButtonModel.java: Conform to sun.
7209 * javax/swing/JComponent.java (paint): Fill with background color
7211 (processComponentKeyEvent)
7214 (processMouseMotionEvent): Remove event-consuming empty methods.
7215 (getUIClassID): Return "ComponentUI" not "JComponent"
7216 * javax/swing/JFrame.java: Remove some debugging chatter.
7217 (JFrame): Subscribe to window events.
7218 * javax/swing/JRadioButton.java
7219 (JRadioButton): Override painting flags.
7220 * javax/swing/JRootPane.java
7221 (JRootPane): Set background from UIDefaults.
7222 * javax/swing/JToggleButton.java
7223 (ToggleButtonModel): New inner class.
7224 (JToggleButton): Override layout alighment.
7225 * javax/swing/SwingUtilities.java:
7226 (getLocalBounds): Return width and height, not x and y.
7227 (calculateInnerArea): Use local bounds, not bounds.
7228 (layoutCompoundLabel): Provide overridden form.
7229 (layoutCompoundLabel): Correct bugs.
7230 * javax/swing/UIDefaults.java: Correct comment.
7231 * javax/swing/plaf/basic/BasicButtonUI.java:
7232 Move most logic into defaults, external listener.
7233 (paintIcon): Implement icon painting.
7234 (paint): Fix state painting to conform to changes in model.
7235 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
7236 Remove most dead/wrong methods.
7237 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7238 * javax/swing/plaf/basic/BasicIconFactory.java:
7239 (DummyIcon): New class.
7240 (getMenuItemCheckIcon)
7241 (getMenuItemArrowIcon)
7243 (getCheckBoxMenuItemIcon)
7244 (getRadioButtonMenuItemIcon)
7245 (createEmptyFrameIcon): Return DummyIcons, not null.
7246 (getCheckBoxIcon): Implement an icon that looks like sun's.
7247 (getRadioButtonIcon): Implement an icon that looks like sun's.
7248 * javax/swing/plaf/basic/BasicLookAndFeel.java
7249 (initComponentDefaults): Fix impossible values, add some missing.
7250 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7251 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7252 Remove most dead/wrong methods.
7254 (getDefaultIcon): New method.
7255 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7256 Remove most dead/wrong methods.
7257 * javax/swing/plaf/metal/MetalLookAndFeel.java
7258 (getDefaults): Return super.getDefaults(), not BasicDefaults.
7259 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7260 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7261 Implement "clearing" as drawing, when on pixmap drawables.
7263 * javax/swing/JButton.java (getUIClassID):
7264 * javax/swing/JCheckBox.java (getUIClassID):
7265 * javax/swing/JEditorPane.java (getUIClassID):
7266 * javax/swing/JLabel.java (getUIClassID):
7267 * javax/swing/JList.java (getUIClassID):
7268 * javax/swing/JOptionPane.java (getUIClassID):
7269 * javax/swing/JPanel.java (getUIClassID):
7270 * javax/swing/JPasswordField.java (uiClassID):
7271 * javax/swing/JRadioButton.java (getUIClassID):
7272 * javax/swing/JRootPane.java (getUIClassID):
7273 * javax/swing/JScrollPane.java (getUIClassID):
7274 * javax/swing/JTabbedPane.java (getUIClassID):
7275 * javax/swing/JToggleButton.java (getUIClassID):
7276 * javax/swing/JTree.java (getUIClassID):
7277 * javax/swing/JViewport.java (getUIClassID):
7278 * javax/swing/text/JTextComponent.java (getUIClassID):
7279 Return "fooUI" not "Jfoo"
7281 2004-02-11 Michael Koch <konqueror@gmx.de>
7283 * java/net/DatagramSocket.java
7284 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7286 (setBroadcast): Likewise.
7287 * java/net/MulticastSocket.java
7288 (setLoopbackMode): Likewise.
7289 * java/net/ServerSocket.java
7290 (setReuseAddress): Likewise.
7291 * java/net/Socket.java
7292 (setTcpNoDelay): Likewise.
7293 (setSoLinger): Likewise.
7294 (setOOBInline): Likewise.
7295 (setKeepAlive): Likewise.
7296 (setReuseAddress): Likewise.
7297 * java/net/URLConnection.java
7298 (setContentHandler): Replace == with equals().
7299 * java/net/URLStreamHandler.java
7300 (hostSEquals): Fix checking host addresses.
7301 (toExternalForm): Dont check protocol for null. We know already its
7304 2004-02-10 David Jee <djee@redhat.com>
7306 * java/awt/BorderLayout.java
7307 (calcCompSize): Invisible components get zero dimensions.
7308 * java/awt/Button.java
7309 (setLabel): Set actionCommand.
7310 * java/awt/Component.java
7311 (show): Invalidate component and parent container.
7314 2004-02-10 David Jee <djee@redhat.com>
7316 * java/awt/GridBagLayout.java
7317 (GridBagLayout): New private field, internalcomptable.
7318 (lookupInternalConstraints): New method.
7319 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7320 (GetLayoutInfo): Reimplement.
7321 (calcCellSizes): Ignore rows/columns with size 0.
7323 2004-02-10 Michael Koch <konqueror@gmx.de>
7325 * gnu/java/awt/EmbeddedWindow.java
7326 (setHandle): Use java.awt.Component.getPeer() instead of
7327 java.awt.Component.peer directly.
7329 2004-02-10 David Jee <djee@redhat.com>
7331 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7332 (gtkSetLabel): New native method definition.
7333 (setLabel): Use gtkSetLabel.
7334 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7335 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7337 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7339 * include/powerpc-signal.h: Revert 2004-01-21 change.
7340 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7341 from syscall for ppc32 versions.
7343 2004-02-08 Per Bothner <per@bothner.com>
7345 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7346 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7347 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7348 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7349 Pass ByteOrder parameter to most methods, since the underlying
7350 ByteBuffer's order isn't always what we should use.
7351 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7352 * java/nio/DirectByteBufferImpl.java: Likewise.
7353 Use ByteBufferHelper methods.
7354 * java/nio/MappedByteBufferImpl.java: Likewise.
7355 (compact): Use shiftDown.
7356 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7357 (get, put): Use ByteBufferHelper.
7358 (compact): Use new shiftDown method.
7359 (duplicate(boolean)): New helper method.
7360 (duplicate, asReadOnlyBuffer): Use it.
7361 (order): Return endian field.
7362 * java/nio/DoubleViewBufferImpl.java: Likewise.
7363 * java/nio/FloatViewBufferImpl.java: Likewise.
7364 * java/nio/IntViewBufferImpl.java: Likewise.
7365 * java/nio/LongViewBufferImpl.java: Likewise.
7366 * java/nio/ShortViewBufferImpl.java: Likewise.
7367 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7368 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7369 (compact): Re-implement using shiftDown.
7371 2004-02-08 Andreas Jaeger <aj@suse.de>
7373 * include/x86_64-signal.h: Fix typo.
7375 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7377 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7379 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7381 2004-02-06 Michael Koch <konqueror@gmx.de>
7383 * java/io/ObjectInputStream.java
7384 (currentClassLoader): Reverted to old version of this method.
7386 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7388 * java/io/ObjectInputStream.java: Made all calls
7389 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7390 use cached info from ObjectStreamClass. (readClassDescriptor):
7391 Cache more information in ObjectStreamClass. (processResolution,
7392 readFields): Use cached info from ObjectStreamClass.
7393 (newObject): Throw exception instead of returning null for failure.
7394 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7395 setCharField, setDoubleField, setFloatField, setIntField,
7396 setLongField, setShortField, setObjectField, readObjectParams):
7397 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7399 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7400 (setClass): Added call to cacheMethods() (findMethod): New method.
7401 (cacheMethods): New method. (ObjectStreamClass): Added call to
7402 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7403 AccessController.doPrivileged to invoke setAccessible.
7404 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7405 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7407 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7408 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7409 isPrimitive): Made safe for cases where type == null.
7410 (setBooleanField, setByteField, setCharField, setShortField,
7411 setIntField, setLongField, setFloatField, setDoubleField,
7412 setObjectField): New methods.
7414 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7416 * java/awt/Component.java (getFont): Return a default font
7419 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7420 (Scrollbar (int, int, int, int, int)): Make default page
7422 (setValues): Only call peer.setValues if one of the values has
7424 (generateName): New method.
7425 (getUniqueLong): New method.
7426 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7427 (range_scrollbar): Remove structure.
7428 (post_adjustment_event): Remove function.
7429 (post_change_event): Accept jobject argument.
7430 (create): Cast jints to gdoubles. Round scrollbar values to the
7431 nearest integer. Clamp min, max and value settings.
7432 (connectJObject): Connect hook to widget->window.
7433 (connectSignals): Remove range_scrollbar structure variables.
7434 Remove "move-slider" connection. Pass global peer reference to
7435 "value-changed" callback.
7436 (setLineIncrement): Cast jint value to gdouble.
7437 (setPageIncrement): Likewise.
7438 (setValues): Likewise. Clamp min, max and value settings.
7440 2004-02-05 Michael Koch <konqueror@gmx.de>
7442 * javax/swing/AbstractCellEditor.java
7443 (getCellEditorValue): Removed.
7444 * javax/swing/Box.java: Reformated.
7445 (serialVersionUID): New field.
7446 * javax/swing/ButtonGroup.java:
7447 Removed some weird whitespace.
7448 * javax/swing/CellEditor.java: Reformated.
7449 * javax/swing/CellRendererPane.java
7450 (serialVersionUID): New field.
7451 (AccessibleCellRendererPaneserialVersionUID): New field.
7452 * javax/swing/DefaultListModel.java
7453 (serialVersionUID): New field.
7454 * javax/swing/JEditorPane.java
7455 (serialVersionUID): New field.
7456 (setPage): Throws IOException.
7457 (addHyperlinkListener): Implemented.
7458 (removeHyperlinkListener): Implemented.
7459 (getHyperlinkListener): New method.
7460 * javax/swing/JFileChooser.java
7461 (serialVersionUID): New field.
7462 (AccessibleJFileChooser.serialVersionUID): New field.
7463 (addActionListener): Implemented.
7464 (removeActionListener): Implemented.
7465 (getActionListeners): New method.
7466 * javax/swing/JFormattedTextField.java
7467 (serialVersionUID): New field.
7468 (AbstractFormatter.serialVersionUID): New field.
7469 (clone): Throws CloneNotSupportedException
7470 (setEditValid): Add missing argument.
7471 (stringToValue): Throws ParseExcpetion.
7472 (valueToString): Throws ParseException.
7473 (commitEdit): Throws ParseException.
7474 * javax/swing/JLabel.java
7475 (serialVersionUID): New field.
7476 * javax/swing/JList.java
7477 (serialVersionUID): New field.
7478 (addListSelectionListener): Reformated.
7479 (removeListSelectionListener): Reformated.
7480 (getListSelectionListeners): New method.
7481 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7483 (serialVersionUID): New field.
7484 * javax/swing/table/AbstractTableModel.java
7485 (getValueAt): Removed.
7486 (getColumnCount): Removed.
7487 (getRowCount): Removed.
7489 2004-02-05 Michael Koch <konqueror@gmx.de>
7491 * java/awt/datatransfer/DataFlavor.java
7492 (imageFlavor): Javadoc added.
7493 (javaJVMLocalObjectType): Fixed.
7495 2004-02-05 Michael Koch <konqueror@gmx.de>
7497 * java/lang/Thread.java
7498 (Thread): Reordered.
7499 (setContextClassLoader): Fixed javadoc comment.
7500 (setPriority): Reordered.
7502 (initialize_native): Reordered.
7503 (gen_name): Reordered.
7505 2004-02-05 Michael Koch <konqueror@gmx.de>
7507 * java/lang/Thread.java: Reordered fields, reformated much code,
7508 no functional changes, some variables renamed, javadoc comments
7511 2004-02-05 Michael Koch <konqueror@gmx.de>
7513 * java/util/zip/Deflater.java,
7514 java/util/zip/DeflaterOutputStream.java,
7515 java/util/zip/GZIPInputStream.java:
7516 Reformated and javadoc comments merged from classpath.
7518 2004-02-05 Michael Koch <konqueror@gmx.de>
7520 * gnu/java/nio/NIOServerSocket.java
7521 (impl): Unused, removed.
7522 * gnu/java/nio/SocketChannelImpl.java
7523 (finnishConnect): Don't throw NoConnectionPendingException if not
7524 connected or no connection pending.
7526 2004-02-02 Graydon Hoare <graydon@redhat.com>
7528 * javax/swing/SwingUtilities.java: Many new functions.
7529 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7530 * javax/swing/basic/BasicGraphicsUtils.java
7531 (getPreferredButtonSize): Start layout from top-left corner.
7533 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7535 * java/awt/geom/AffineTransform.java:
7536 Corrected comments on the field definitions for
7538 (shear): Fixed few errors that caused shear
7539 transformation to be performed incorrectly.
7540 (createInverse): Fixed to return correct
7541 inverse of the given matrix.
7543 2004-02-03 Tom Tromey <tromey@redhat.com>
7545 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7546 PATH or LD_LIBRARY_PATH is not set in parent environment.
7548 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7550 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7551 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7552 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7553 java/awt/Component.java, java/awt/Container.java,
7554 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7555 java/awt/LayoutManager2.java, java/awt/List.java,
7556 java/awt/Menu.java, java/awt/MenuBar.java,
7557 java/awt/MenuItem.java, java/awt/Polygon.java,
7558 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7559 java/awt/Scrollbar.java, java/awt/TextArea.java,
7560 java/awt/TextField.java,
7561 java/awt/image/renderable/RenderContext.java,
7562 javax/swing/JApplet.java: Fix handling of alias methods, where a
7563 method has been deprecated in favour of a new one with the same
7564 funtion but a different name. Put the method implementation in
7565 the deprecated method and have the new method call the
7566 deprecated one. Make all other code call the new method.
7568 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7570 * gnu/java/nio/DatagramChannelImpl.java
7571 (inChannelOperation): New field.
7572 (isInChannelOperation): New accessor.
7573 (setInChannelOperation): New modifier.
7574 (receive): Use capacity() - position() of destination
7575 buffer instead of remaining(). Set and reset our "in
7576 channel operation indicator" before and after delegating
7577 the receive to our datagram socket. Removed testing code.
7578 Update destination buffer's current position if it is
7579 backed by a byte array (hasArray() is true).
7580 (send): Set and reset our "in channel operation indicator"
7581 before and after delegating the send to our datagram socket.
7582 Removed testing code. Update source buffer's current position
7583 if it is backed by a byte array (hasArray() is true).
7584 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7585 Use capacity() - position() of destination buffer instead
7587 * java/net/DatagramSocket.java (receive): Don't throw an
7588 IllegalBlockingModeException if we have a non-blocking
7589 channel which initiated this operation.
7592 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7594 * configure.in: Add pkgconfig check for glib and gthread.
7595 * configure: Regenerate.
7597 2004-02-01 Michael Koch <konqueror@gmx.de>
7599 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7601 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7602 * verify.cc (debug_print): Mark 'fmt' unused.
7604 2004-01-30 Michael Koch <konqueror@gmx.de>
7606 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7607 * configure: Regenerated.
7608 * glib-2.0.m4: Removed.
7609 * gtk-2.0.m4: Removed.
7610 * libart.m4: Removed.
7613 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7615 * gnu/java/net/PlainSocketImpl.java
7616 (inChannelOperation): New field.
7617 (isInChannelOperation): New accessor.
7618 (setInChannelOperation): New modifier.
7619 * gnu/java/nio/ServerSocketChannelImpl.java
7620 (accept): Set and reset our server socket's PlainSocketImpl's
7621 "in channel operation" indicator before and after delegating
7622 the accept to our server socket.
7623 * gnu/java/nio/SocketChannelImpl.java
7624 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7625 operation" indicator before and after delegating the operation to
7629 * java/net/ServerSocket.java (implAccept): Don't throw an
7630 IllegalBlockingModeException if we have a non-blocking
7631 channel which initiated this accept operation.
7632 * java/net/Socket.java (connect): Don't throw an
7633 IllegalBlockingModeException if we have a non-blocking
7634 channel which initiated this connect operation.
7635 * java/nio/channels/spi/AbstractSelectableChannel.java
7636 (configureBlocking): Only call implConfigureBlocking() if
7637 the desired blocking mode is different from our current one.
7639 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7641 * java/io/BufferedReader.java (sbuf): New field.
7642 (readLine): Use String.valueOf instead of new String() as per
7643 Per Bothner's suggestion. Use instance sbuf field instead of a
7644 local StringBuffer instance.
7645 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7646 caller's buffer to refill().
7647 (read(void)): Pass our internal work buffer to refill if our
7648 input queue is empty.
7649 (refill): Changed return type to int. Use the specified buffer
7650 instead of our work buffer as per Bryce McKinlay's suggestion.
7651 Return the number of characters read or -1 for EOF.
7653 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7655 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7657 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7659 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7660 * Makefile.in: Re-generated.
7661 * gnu/awt/xlib/XFontPeer.java: New file.
7662 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7663 (setClip): Commented out debug printout.
7664 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7665 (getFontPeer): Return XFontPeer.
7666 (getLocalGraphicsEnvironment): New method.
7667 (getClasspathFontPeer): New method.
7668 (createFont): New method.
7670 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7672 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7675 2004-01-29 Kim Ho <kho@redhat.com>
7677 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7678 (gtkLayoutSetVisible): New method
7679 (setMenuBar): Hide layout before setting MenuBar
7680 and reshow it after.
7681 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7682 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7684 2004-01-28 Michael Koch <konqueror@gmx.de>
7686 * gnu/java/lang/ClassHelper.java
7687 (getPackagePortion): Removed.
7689 2004-01-28 Michael Koch <konqueror@gmx.de>
7691 * javax/swing/JComponent.java
7692 (listenerList): Initalize globally.
7693 (ancestor_list): Removed.
7694 (veto_list): Removed.
7695 (change_list): Removed.
7696 (get_veto_list): Removed.
7697 (get_change_list): Removed.
7698 (get_ancestor_list): Removed.
7699 (removeAncestorListener): Reimplemented.
7700 (removePropertyChangeListener): Likewise.
7701 (removeVetoableChangeListener): Likewise.
7702 (addAncestorListener): Likewise.
7703 (addPropertyChangeListener): Likewise.
7704 (addVetoableChangeListener): Likewise.
7705 (getListeners): New method.
7706 (getAncestorListeners): Likewise.
7707 (getVetoableChangeListeners): Likewise.
7708 (fireVetoableChange): Throws PropertyVetoException.
7709 * javax/swing/JEditorPane.java
7710 (JEditorPane): Throws IOException.
7712 2004-01-28 David Jee <djee@redhat.com>
7714 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7715 (create): Set the default foreground color to
7716 java.awt.SystemColor.windowText.
7718 2004-01-27 Michael Koch <konqueror@gmx.de>
7720 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7721 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7722 Reindented to merge with classpath.
7724 2004-01-27 David Jee <djee@redhat.com>
7726 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7727 (addExposeFilter): Handle GtkFramePeer separately.
7728 (removeExposeFilter): Likewise.
7730 2004-01-27 Michael Koch <konqueror@gmx.de>
7732 * gnu/java/net/protocol/http/Connection.java
7733 (getOutputStream): Fixed typo.
7735 2004-01-27 Michael Koch <konqueror@gmx.de>
7737 * java/lang/Class.java
7738 (getConstructor): Removed SecurityException from throws clause.
7739 (_getConstructors): Likewise.
7740 (getConstructors): Likewise.
7741 (getDeclaredConstructor): Likewise.
7742 (getDeclaredClasses): Likewise.
7743 (getDeclaredConstructors): Likewise.
7744 (getDeclaredField): Likewise.
7745 (getDeclaredMethod): Likewise.
7746 (getDeclaredMethods): Likewise.
7747 (getField): Likewise.
7748 (getMethod): Likewise.
7749 (getMethods): Likewise.
7751 2004-01-27 Kim Ho <kho@redhat.com>
7753 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7754 (removeMenuBarPeer): Remove MenuBarPeer argument.
7755 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7756 (dispose): Call native method.
7757 * java/awt/Frame.java (setMenuBar): Create and remove
7758 MenuBar peers only if the Frame has a peer.
7759 (addNotify): Create the MenuBar peer if one exists.
7760 (removeNotify): Remove MenuBar peer if one exists.
7761 * java/awt/Menu.java: Fix imports.
7762 (addNotify): Don't use full class name.
7763 (removeNotify): Call removeNotify on all children.
7764 * java/awt/MenuBar.java (removeNotify): Call
7765 removeNotify on all children.
7766 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7767 (removeMenuBarPeer): Remove MenuBarPeer argument.
7768 Iterate through children to find the Frame's MenuBar.
7769 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7771 (dispose): Remove references to the MenuComponent.
7773 2004-01-27 Michael Koch <konqueror@gmx.de>
7775 * javax/swing/AbstractCellEditor.java: Reformated.
7776 * javax/swing/DefaultListSelectionModel.java
7777 (listenerList): Made protected.
7778 (addListSelectionListener): Javadoc added.
7779 (removeListSelectionListener): Likewise.
7780 (getListeners): Likewise.
7781 (getListSelectionListeners): Likewise.
7782 * javax/swing/JComboBox.java: Merged copyright year.
7783 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7785 2004-01-26 Andrew Haley <aph@redhat.com>
7787 * javax/swing/table/JTableHeader.java: Extend JComponent
7789 2004-01-26 Kim Ho <kho@redhat.com>
7791 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7794 2004-01-26 Kim Ho <kho@redhat.com>
7796 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7798 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7799 height and let the Layout Managers readjust anything that
7801 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7802 (moveLayout): New method. Shift everything in the Gtk
7803 layout in the Y direction by an offset.
7805 2004-01-26 David Jee <djee@redhat.com>
7807 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7808 (handleEvent): Implemented. Handles PaintEvents.
7809 (paint): Implemented. Use GTK native methods to queue updates
7810 for this heavyweight peer.
7811 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7812 (handleEvent): Removed.
7813 * java/awt/Component.java
7814 (paint): Implemented. Explictly paint the heavyweight peer.
7815 (update): Clear the background for heavyweight components.
7816 (paintAll): No need to call peer.paint() anymore.
7817 (processEvent): Don't process PaintEvents here. It's now done in
7818 the peer's handleEvent().
7819 (processPaintEvent): Removed.
7820 * java/awt/Container.java
7821 (paint): No need to call super.paint(). Visit heavyweight
7823 (update): Don't clear the background here. It's done in
7825 (visitChildren): Added check to not recurse into Containers.
7826 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7827 (filter_expose_event_handler): New method. Filter unwanted
7828 expose events while painting heavyweight peers.
7829 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7830 New method. Connect filter and block pre_event_handler.
7831 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7832 New method. Disconnect filter and unblock pre_event_handler.
7833 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7834 New method. Invalidate and update given area.
7835 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7836 (pre_event_handler): Add checks for unwanted expose events.
7838 2004-01-26 David Jee <djee@redhat.com>
7840 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7841 (find_bg_color_widget): For GtkButton, return its child.
7843 2004-01-26 Kim Ho <kho@redhat.com>
7845 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7847 (setMenuBar): Grab MenuBar height and change insets.
7848 (setBounds): Account for MenuBar height.
7849 (postInsetsChangedEvent): Ditto.
7850 (postSizeAllocateEvent): Remove.
7851 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7852 (menubar_resize_cb): Remove
7853 (setMenuBarPeer): Remove callback.
7854 (getMenuBarHeight): Use size requisition instead of
7857 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7859 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7860 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7862 (setColumns): Remove FIXME -- peer will retrieve number of
7863 columns by calling getColumns.
7864 (setRows): Likewise for number of rows.
7865 (next_text_number): New field.
7866 (paramString): Fix param string.
7867 (generateName): New method.
7868 (getUniqueLong): New method.
7870 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7872 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7873 image observer of image loading status.
7874 (getImage (String)): Start image production.
7875 (getImage (URL)): Likewise.
7877 2004-01-25 Michael Koch <konqueror@gmx.de>
7879 * java/lang/Class.java: Imports reworked, reformated.
7880 (Class): Javadoc added.
7881 (forName): Likewise.
7882 (getClasses): Likewise.
7883 (getClassLoader): Likewise.
7884 (getComponentType): Likewise.
7885 (getConstructor): Likewise.
7886 (getConstructors): Likewise.
7887 (getDeclaredConstructor): Likewise.
7888 (getDeclaredClasses): Likewise.
7889 (getDeclaredConstructors): Likewise.
7890 (getDeclaredField): Likewise.
7891 (getDeclaredMethod): Likewise.
7892 (getDeclaredMethods): Likewise.
7893 (getDeclaringClass): Likewise.
7894 (getField): Likewise.
7895 (getInterfaces): Likewise.
7896 (getMethod): Likewise.
7897 (getMethods): Likewise.
7898 (getModifiers): Likewise.
7899 (getName): Likewise.
7900 (getResource): Likewise.
7901 (getResourceAsStream): Likewise.
7902 (getSigners): Likewise.
7903 (setSigners): Likewise.
7904 (getSuperclass): Likewise.
7905 (isArray): Likewise.
7906 (isAssignableFrom): Likewise.
7907 (isInstance): Likewise.
7908 (isInterface): Likewise.
7909 (isPrimitive): Likewise.
7910 (newInstance): Likewise.
7911 (getProtectionDomain): Likewise.
7912 (toString): Likewise.
7914 (initializeClass): Likewise.
7915 (finalize): Likewise.
7917 2004-01-24 Michael Koch <konqueror@gmx.de>
7919 * gnu/java/net/protocol/jar/Connection.java
7922 (gotHeaders): Removed.
7923 (getHeaderField): Removed.
7924 (getHeaderFields): Removed.
7925 (getHeaderFieldKey): Removed.
7927 (getField): Removed.
7928 (getHeaders): Removed.
7930 2004-01-24 Michael Koch <konqueror@gmx.de>
7932 * Makefile.am: Added library version to gtk peer lib.
7933 * Makefile.in: Regenerated.
7935 2004-01-24 Michael Koch <konqueror@gmx.de>
7937 * java/util/zip/InflaterInputStream.java: Merged class documentation
7940 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7942 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7943 header. For __powerpc64__ provide the default-signal.h definitions
7945 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7946 instead of the dummy definitions.
7947 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7948 (powerpc64*-*): Remove with_libffi_default.
7949 Only add -mminimal-toc for 64-bit compilations.
7950 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7951 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7952 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7953 * configure: Rebuilt.
7955 2004-01-23 Michael Koch <konqueror@gmx.de>
7957 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7959 2004-01-23 Michael Koch <konqueror@gmx.de>
7961 * java/lang/VMClassLoader.java: Reworked imports.
7963 2004-01-23 Michael Koch <konqueror@gmx.de>
7965 * javax/swing/AbstractAction.java: Reformated.
7967 2004-01-23 Michael Koch <konqueror@gmx.de>
7969 * java/text/CollationElementIterator.java:
7970 (setText): New method.
7972 2004-01-23 Michael Koch <konqueror@gmx.de>
7974 * gnu/java/nio/FileLockImpl.java:
7975 Fixed filename in copyright.
7976 (released): Removed.
7977 (finalize): New method.
7978 * gnu/java/nio/natFileLockImpl.cc
7979 (releaseImpl): Implemented.
7980 * java/nio/channels/FileChannelImpl.java:
7982 (lock): Implemented.
7983 (lockImpl): New method.
7984 (tryLock): Implemented.
7985 (tryLockImpl): New method.
7986 * java/nio/channels/natFileChannelImpl.cc
7987 (lockImpl): New method.
7988 (tryLockImpl): New method.
7990 2004-01-23 Michael Koch <konqueror@gmx.de>
7992 * java/io/FileDescriptor.java
7994 (tryLock): New method.
7995 (unlock): New method.
7996 * java/io/natFileDescriptorEcos.cc
7998 (tryLock): New method.
7999 (unlock): New method.
8000 * java/io/natFileDescriptorPosix.cc
8002 (tryLock): New method.
8003 (unlock): New method.
8004 * java/io/natFileDescriptorWin32.cc
8006 (tryLock): New method.
8007 (unlock): New method.
8009 2004-01-23 Michael Koch <konqueror@gmx.de>
8011 * java/io/FileDescriptor.java
8012 (sync): Moved around, added javadoc.
8017 (setLength): Likewise.
8019 (getLength): Likewise.
8020 (getFilePointer): Likewise.
8022 (available): Likewise.
8023 (finalize): Likewise.
8025 2004-01-23 Michael Koch <konqueror@gmx.de>
8027 * javax/swing/AbstractAction.java: Reformated.
8028 (getPropertyChangeListeners): New method.
8029 * javax/swing/AbstractCellEditor.java: Reformated.
8030 (getCellEditorListeners): New method.
8031 * javax/swing/DefaultListSelectionModel.java
8032 (listenerList): New field.
8033 (listeners): Removed.
8034 (get_listeners): Removed.
8035 (addListSelectionListener): Rewritten.
8036 (removeListSelectionListener): Rewritten.
8037 (getListSelectionListeners): New method.
8038 (getListeners): New method.
8039 * javax/swing/JComboBox.java: Imports reworked.
8040 (addActionListener): Implemented.
8041 (removeActionListener): Implemented.
8042 (addItemListener): Implemented.
8043 (removeItemListener): Implemented.
8044 (addPopupMenuListener): Implemented.
8045 (removePopupMenuListener): Implemented.
8046 (getActionListeners): New method.
8047 (getItemListeners): New method.
8048 (getPopupMenuListeners): New method.
8050 2004-01-23 Michael Koch <konqueror@gmx.de>
8052 * gnu/java/net/protocol/http/Connection.java
8053 (connect): Don't initialize bufferedOutputStream if not needed.
8054 (sendRequest): Set property for content length if content is present.
8055 Write content only if present.
8056 (getOutputStream): Check if already connected, dont connect,
8057 initalize bufferedOutputStream if needed.
8059 2004-01-23 Michael Koch <konqueror@gmx.de>
8061 * java/io/FileDescriptor.java
8062 (in, out, err): Added javadoc.
8063 (static): Merged loading code.
8064 (fd, position): Moved around.
8066 2004-01-23 Michael Koch <konqueror@gmx.de>
8068 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
8071 2004-01-23 Michael Koch <konqueror@gmx.de>
8073 * java/lang/Class.java,
8074 java/lang/Object.java,
8075 java/lang/Thread.java: Merged copyright with classpath.
8077 2004-01-23 Michael Koch <konqueror@gmx.de>
8079 * java/io/FileDescriptor.java: Merged copyright with classpath to
8080 start merging this class.
8082 2004-01-22 Tom Tromey <tromey@redhat.com>
8085 * testsuite/libjava.lang/pr13107_2.xfail: New file.
8086 * testsuite/libjava.lang/pr13107_3.xfail: New file.
8087 * testsuite/libjava.lang/pr13107_3.java: New file.
8088 * testsuite/libjava.lang/pr13107_3.out: New file.
8089 * testsuite/libjava.lang/pr13107_2.java: New file.
8090 * testsuite/libjava.lang/pr13107_2.out: New file.
8091 * testsuite/libjava.lang/pr13107.java: New file.
8092 * testsuite/libjava.lang/pr13107.out: New file.
8093 * verify.cc (jsr_ptrs): Removed.
8094 (entry_points): Likewise.
8095 (struct subr_info): Likewise.
8096 (struct subr_entry_info): Likewise.
8097 (type_val::unused_by_subroutine_type): Likewise.
8098 (type::merge): Don't handle unused_by_subroutine_type.
8099 (type::print): Likewise.
8100 (state::flags): Removed.
8101 (state::subroutine): Likewise.
8102 (state::seen_subrs): Likewise.
8103 (state::NO_STACK): Likewise.
8104 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
8105 (state): Updated all methods.
8106 (state::clean_subrs): Removed.
8107 (state::state): Removed `ret_semantics' flag.
8108 (state::copy): Likewise.
8109 (state::add_subr): Removed.
8110 (state::enter_subroutine): Likewise.
8111 (type::set_return_address): New method.
8112 (handle_jsr_insn): Set return address on the type. Always
8113 invalidate PC after call.
8114 (check_nonrecursive_call): Removed.
8115 (~_Jv_BytecodeVerifier): Updated.
8116 (branch_prepass): Removed special handling of jsr.
8117 (note_branch_target): Likewise.
8118 (get_subroutine): Removed.
8119 (state::merge): Don't merge subroutines and don't handle
8120 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
8121 (state::note_variable): Removed.
8122 (state::is_unmerged_ret_state): Likewise.
8123 (state::print): Updated.
8124 (set_variable): Likewise.
8125 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
8126 and jsr_semantics arguments. Updated for new reverification
8128 (pop_jump): Rewrote.
8129 (construct_primitive_array_type): Updated.
8130 (state::next): Removed.
8131 (INVALID_STATE): New define.
8132 (state::INVALID): Removed.
8133 (state::NO_NEXT): New value.
8134 (state::pc, state::next): New fields.
8135 (state::get_pc): New method.
8136 (next_verify_pc): Removed.
8137 (next_verify_state): New field.
8138 (verify_instructions_0): Always check for falling off end.
8140 (linked_utf8): Removed.
8141 (states): Changed type.
8142 (type::state_mergeable_p): New method.
8143 (state::state_mergeable_p): Likewise.
8144 (handle_ret_insn): Removed most code.
8145 (state::reverify): New method.
8146 (add_new_state): Likewise.
8147 (state::set_pc): Likewise.
8149 2004-01-22 Jeff Sturm <jsturm@one-point.com>
8152 * testsuite/libjava.compile/PR13733.java: New file.
8153 * testsuite/libjava.compile/PR13733.xfail: New file.
8155 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
8156 Michael Koch <konqueror@gmx.de>
8158 * javax/swing/table/DefaultTableCellRenderer.java
8159 (DefaultTableCellRenderer): Added javadoc for the class and for
8160 the constructor, Border instance, create an EmptyBorder.
8161 (UIResource): Removed the comment at the end of the class
8162 (setForeground): New method.
8163 (setBackground): New method.
8164 (updateUI): New method.
8165 (getTableCellRendererComponent): Rewritten with the help of
8166 dvholten and Stephane Meslin-Weber.
8167 (validate): New method.
8168 (repaint): New method.
8169 (firePropertyChange): New method.
8170 (setValue): New method.
8172 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
8174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8175 (connectJObject): Replace printf calls with g_assert statements.
8176 Move property-notify-event signal connection to ...
8177 (connectSignals): Connect property-notify-event signal. Iterate
8178 through the vbox's children to find layout.
8180 2004-01-22 Graydon Hoare <graydon@redhat.com>
8182 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
8183 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
8184 Predicate static initialization on GtkToolkit.useGraphics2D().
8185 * java/awt/Component.java (processPaintEvent): Consume event.
8186 * javax/swing/AbstractButton.java: Reimplement, document.
8187 * javax/swing/DefaultButtonModel.java: Reimplement, document.
8188 * javax/swing/JComponent.java (paint): Use double buffer.
8189 (listenerList): Enable member.
8190 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
8191 * javax/swing/JToggleButton.java
8192 (JToggleButton): Modify model constructor.
8193 * javax/swing/SwingUtilities.java
8194 (layoutCompoundLabel): Adjust arithmetic.
8195 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
8196 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8197 (getPreferredButtonSize): Include margins in calculation.
8198 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8199 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
8200 Receive up events from subordinate layout component.
8202 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
8204 * java/awt/Component.java (show): Set visible to true before
8207 2004-01-21 Kim Ho <kho@redhat.com>
8209 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
8211 (removeMenuBarPeer): Make package private.
8212 (setMenuBarPeer): Make package private.
8213 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8214 (menubar_resize_cb): Mark attributes unused.
8215 (getMenuBarHeight): ditto.
8217 2004-01-21 David Jee <djee@redhat.com>
8219 * java/awt/Container.java
8220 (LightweightDispatcher.handleEvent): Add an extra check to avoid
8221 dispatching MOUSE_ENTERED event twice. Translate the point for
8222 the mouse event target before dispatching the event.
8224 2004-01-20 Jakub Jelinek <jakub@redhat.com>
8226 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
8227 lib_org_w3c_dom_la_LDFLAGS): New.
8228 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
8229 * Makefile.in: Rebuilt.
8231 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
8233 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
8234 Calculate proper offsets for heavyweight components packed in
8235 lightweight containers.
8237 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8238 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8239 (native create): Add width parameter.
8240 (create): Calculate text entry width based on current font's
8241 metrics and number of columns. Set TextField's font if not
8242 already set. Call native create.
8243 (gtkEntryGetBorderWidth): New native method.
8244 (gtkEntryGetSize): Remove method.
8245 (getMinimumSize): Call minimumSize.
8246 (getPreferredSize): Call preferredSize.
8247 (minimumSize): Calculate minimum size based on backing
8248 GtkEntry's borders, font metrics and number of columns.
8249 (preferredSize): Likewise for preferred size.
8250 (get_border_width): New static function.
8252 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8253 Override GtkWindowPeer's setResizable method to account for menu
8254 bar height when setting the frame's size.
8256 2004-01-19 Matthias Klose <doko@debian.org>
8258 * libtool-version: Increased `current' to 6.
8260 2004-01-19 Kim Ho <kho@redhat.com>
8262 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8263 (connectJObject): Iterate through the vbox's children to find layout.
8265 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8267 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8268 isDispatchThread method to replace wrong test condition.
8270 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8272 * java/awt/EventQueue.java (pop): Prevent racing condition to add
8273 events to the queue out of order by acquiring locks in the proper
8274 order and not by releasing one before acquiring the other.
8276 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8278 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8279 visible so that dialog can be reused.
8281 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8283 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8284 events may be handled by any queue in the stack.
8286 2004-01-19 Kim Ho <kho@redhat.com>
8288 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8289 MenuBarPeer parameter.
8290 (removeMenuBarPeer): New native method.
8291 (setMenuBar): Call remove if menu bar is null. Adjust insets
8293 (postSizeAllocateEvent): New method. Called when menu bar size is
8294 allocated. Adjust insets and redo layout.
8295 (GtkFramePeer): Set menu bar during frame creation.
8296 (postConfigureEvent): Adjust position and size to accomodate
8298 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8299 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8300 (addNotify): Create the peer if it doesn't exist and call addNotify
8301 for the menu's items.
8302 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8303 * java/awt/MenuItem.java (addNotify): Create the peer if it
8305 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8306 (removeMenuBarPeer): New method. Remove menu bar on the current
8308 (setMenuBarPeer): Add the menu bar to the current frame and the
8309 callback for size-allocate events on the menu bar.
8310 (getMenuBarHeight): Add menu bar parameter.
8311 (menubar_resize_cb): New callback method for postSizeAllocate events.
8313 Also: Fix indentation on last ChangeLog entry.
8315 2004-01-16 Kim Ho <kho@redhat.com>
8317 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8318 (gtkWidgetGetDimensions): Remove.
8319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8320 (gtkWidgetGetDimensions): Remove.
8322 2004-01-16 Tom Tromey <tromey@redhat.com>
8324 * java/awt/Container.java: Typo and indentation fixes.
8326 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8327 * java/lang/natVMClassLoader.cc: ...here. New file.
8328 * Makefile.in: Rebuilt.
8329 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8331 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8333 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8334 Discard GDK_ENTER_NOTIFY related to ungrabs.
8336 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8338 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8339 is called for an intermediate queue.
8341 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8343 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8344 (window_property_changed_cb): Set id_set.
8346 2004-01-16 Kim Ho <kho@redhat.com>
8348 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8349 it is a FileDialog and has dimensions of 0 by 0, then the initial
8350 size is set to size request plus insets.
8351 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8352 (gtkWidgetGetDimensions): Override method.
8353 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8354 (gtkWidgetGetDimensions): Override method. Returns size request plus
8357 2004-01-16 Andrew Haley <aph@redhat.com>
8359 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8360 * sysdep/i386/locks.h: Likewise.
8362 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8364 * java/awt/EventDispatchThread.java (run): Stop running when
8366 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8367 Reset the queue after transferring its contents.
8368 (push): Start a new dispatch thread if none is running.
8370 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8372 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8373 (doPolygon): set fill rule of polygon to
8374 WIND_EVEN_ODD by default.
8376 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8378 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8379 Implemented rendering hints related methods.
8380 (getDefaultHints): New helper method. Returns
8381 default rendering hints.
8382 (walkPath): changed to normalize path if
8383 the KEY_STROKE_CONTROL key is in "normalize" mode.
8384 (draw3DRect): changed coordinates of rectangle by +0.5
8385 if in "normalize" mode.
8387 2004-01-15 Tom Tromey <tromey@redhat.com>
8389 * Makefile.in: Rebuilt.
8390 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8391 (%.lo: %.java) Filter out StackTrace.lo.
8393 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8395 * configure.in: Add in AC_PREREQ(2.13)
8396 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8399 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8400 Tom Tromey <tromey@redhat.com>
8403 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8404 array to superclass.
8405 (init): Changed interface; add URLs here.
8406 (initialize): New static method.
8407 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8408 (_Jv_RunMain): ... not here.
8410 2004-01-14 Michael Koch <konqueror@gmx.de>
8412 * java/text/MessageFormat.java:
8413 Added descriptions to exceptions.
8414 This fixes PR libgcj/2429.
8416 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8418 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8419 (push): Make sure push is performed at the top of the thread stack.
8421 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8423 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8424 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8425 (native create): Add width and height parameters. Set text
8426 view's size request according to new parameters.
8427 (create): Calculate text view size based on current font's
8428 metrics and number of rows and columns. Set TextArea's font if
8429 not already set. Call native create.
8430 (getMinimumSize): Call minimumSize.
8431 (getPreferredSize): Call preferredSize.
8432 (getHScrollbarHeight): New method.
8433 (getVScrollbarWidth): New method.
8434 (minimumSize): Calculate minimum size based on scrollbar
8435 visibility, scrollbar sizes, font metrics and number of rows and
8437 (preferredSize): Likewise for preferred size.
8438 (gtkTextGetSize): Remove method.
8440 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8442 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8443 (initializeInsets): Remove method.
8444 (GtkComponentPeer): Initialize insets field. Remove call to
8446 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8448 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8450 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8451 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8452 (latestInsets): Remove field.
8453 (native create): Add insets parameter. Call
8454 window_get_frame_extents. Set the window's default size and
8455 size request based on its frame extents.
8456 (create): Initialize insets.
8457 (postInsetsChangedEvent): New method.
8458 (postConfigureEvent): Remove parameters top, left, bottom,
8459 right. Remove insets-related logic.
8460 (connectJObject): Handle property-notify-event.
8461 (window_get_frame_extents, request_frame_extents,
8462 property_notify_predicate, window_property_changed_cb): New
8464 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8465 (pre_event_handler): Remove insets-related logic for configure
8467 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8468 Update postConfigureEvent signature.
8470 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8472 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8473 to handle Window "Closing" events.
8475 2004-01-13 David Jee <djee@redhat.com>
8477 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8478 (setBackground): New method. Children with no explicitly-set
8479 background will be repainted with the parent container's new
8482 2004-01-13 David Jee <djee@redhat.com>
8484 * Makefile.am: Add BitwiseXORComposite.java.
8485 * Makefile.in: Regenerated.
8486 * gcj/Makefile.in: Regenerated.
8487 * include/Makefile.in: Regenerated.
8488 * testsuite/Makefile.in: Regenerated.
8490 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8492 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8493 not show modal dialogs twice and so that it allows showing a modal
8494 dialog from another modal dialog.
8496 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8498 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8499 and run secondary dispatch thread to process event queue while this
8502 2004-01-12 Graydon Hoare <graydon@redhat.com>
8504 * gnu/java/awt/gtk/GdkGraphics2D.java
8505 (static): Check GtkToolkit before initializing static state.
8506 (Graphics2D): Don't construct transform with 0.5 unit offset.
8508 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8510 * gnu/java/awt/BitwiseXORComposite.java: Add.
8511 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8512 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8513 (BitwiseXORComposite): Remove inner class.
8515 2004-01-11 Michael Koch <konqueror@gmx.de>
8517 * gnu/java/lang/reflect/TypeSignature.java
8518 (getEncodingOfClass): Documentation fixed.
8519 (getClassForEncoding): Give class loader to Class.forName().
8520 Documentation fixed.
8522 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8524 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8526 2004-01-11 Michael Koch <konqueror@gmx.de>
8528 * javax/swing/undo/StateEditable.java
8529 (RCSID): Removed redundant modifiers.
8531 2004-01-10 Michael Koch <konqueror@gmx.de>
8533 * javax/print/attribute/EnumSyntax.java
8534 (getStringTable): Made protected.
8535 (getEnumValueTable): Likewise.
8536 * javax/print/attribute/standard/JobKOctetsProcessed.java
8537 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8538 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8539 (JobMediaSheetsCompleted): Made class final.
8540 * javax/print/attribute/standard/OutputDeviceAssigned.java
8541 (getName): Fixed typo.
8542 * javax/print/attribute/standard/RequestingUserName.java
8543 (serialVersionUID): Fixed value.
8545 2004-01-10 Michael Koch <konqueror@gmx.de>
8547 * javax/swing/plaf/basic/BasicButtonUI.java,
8548 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8549 javax/swing/plaf/basic/BasicListUI.java,
8550 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8551 javax/swing/plaf/basic/BasicPanelUI.java,
8552 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8553 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8554 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8555 javax/swing/plaf/basic/BasicViewportUI.java:
8556 Fixed import statements.
8558 2004-01-10 Michael Koch <konqueror@gmx.de>
8560 * gnu/java/awt/image/ImageDecoder.java
8561 (produce): Made public.
8562 * gnu/java/awt/peer/GLightweightPeer.java,
8563 gnu/java/awt/peer/gtk/GtkToolkit.java:
8566 2004-01-10 Michael Koch <konqueror@gmx.de>
8568 * javax/swing/JRadioButtonMenuItem.java,
8569 javax/swing/JSeparator.java,
8570 javax/swing/JSplitPane.java,
8571 javax/swing/JTextPane.java,
8572 javax/swing/JToolBar.java,
8573 javax/swing/ListCellRenderer.java,
8574 javax/swing/ListModel.java,
8575 javax/swing/MenuElement.java,
8576 javax/swing/OverlayLayout.java,
8577 javax/swing/ProgressMonitor.java,
8578 javax/swing/ProgressMonitorInputStream.java,
8579 javax/swing/Renderer.java,
8580 javax/swing/RootPaneContainer.java,
8581 javax/swing/Scrollable.java,
8582 javax/swing/SingleSelectionModel.java,
8583 javax/swing/ToolTipManager.java,
8584 javax/swing/ViewportLayout.java,
8585 javax/swing/event/DocumentEvent.java,
8586 javax/swing/event/SwingPropertyChangeSupport.java,
8587 javax/swing/event/TreeSelectionEvent.java,
8588 javax/swing/event/UndoableEditEvent.java,
8589 javax/swing/text/AbstractDocument.java,
8590 javax/swing/text/AttributeSet.java,
8591 javax/swing/text/Caret.java,
8592 javax/swing/text/ComponentView.java,
8593 javax/swing/text/DefaultCaret.java,
8594 javax/swing/text/DefaultEditorKit.java,
8595 javax/swing/text/Document.java,
8596 javax/swing/text/EditorKit.java,
8597 javax/swing/text/GapContent.java,
8598 javax/swing/text/Keymap.java,
8599 javax/swing/text/MutableAttributeSet.java,
8600 javax/swing/text/PlainEditorKit.java,
8601 javax/swing/text/Segment.java,
8602 javax/swing/text/Style.java,
8603 javax/swing/text/StyledDocument.java,
8604 javax/swing/text/StyledEditorKit.java,
8605 javax/swing/text/TextAction.java,
8606 javax/swing/text/View.java: Fixed import statements.
8608 2004-01-08 Graydon Hoare <graydon@redhat.com>
8610 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8611 djee@redhat.com's recent inverse ordering of Container elements.
8613 2004-01-09 Michael Koch <konqueror@gmx.de>
8615 * gnu/java/lang/ArrayHelper.java
8616 (equalsArray): Removed.
8618 2004-01-09 Andrew Haley <aph@redhat.com>
8620 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8621 a Utf8Const field before looking at its class.
8623 2004-01-09 Michael Koch <konqueror@gmx.de>
8625 * javax/print/attribute/standard/DocumentName.java,
8626 javax/print/attribute/standard/JobHoldUntil.java,
8627 javax/print/attribute/standard/JobMessageFromOperator.java,
8628 javax/print/attribute/standard/JobName.java,
8629 javax/print/attribute/standard/JobOriginatingUserName.java,
8630 javax/print/attribute/standard/OutputDeviceAssigned.java,
8631 javax/print/attribute/standard/PrinterInfo.java,
8632 javax/print/attribute/standard/PrinterLocation.java,
8633 javax/print/attribute/standard/PrinterMakeAndModel.java,
8634 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8635 javax/print/attribute/standard/PrinterName.java,
8636 javax/print/attribute/standard/RequestingUserName.java: New files.
8637 * Makefile.am (javax_source_files): Added new files.
8638 * Makefile.in: Regenerated.
8640 2004-01-09 Michael Koch <konqueror@gmx.de>
8642 * javax/swing/AbstractAction.java,
8643 javax/swing/AbstractSet.java,
8644 javax/swing/Action.java,
8645 javax/swing/ActionMap.java,
8646 javax/swing/BoundedRangeModel.java,
8647 javax/swing/ButtonModel.java,
8648 javax/swing/CellEditor.java,
8649 javax/swing/CellRendererPane.java,
8650 javax/swing/ComboBoxEditor.java,
8651 javax/swing/DebugGraphics.java,
8652 javax/swing/DefaultCellEditor.java,
8653 javax/swing/DefaultCellRenderer.java,
8654 javax/swing/DefaultComboBoxModel.java,
8655 javax/swing/DefaultDesktopManager.java,
8656 javax/swing/DefaultFocusManager.java,
8657 javax/swing/DefaultListCellRenderer.java,
8658 javax/swing/Icon.java,
8659 javax/swing/JButton.java,
8660 javax/swing/JCheckBoxMenuItem.java,
8661 javax/swing/JDesktopPane.java,
8662 javax/swing/JEditorPane.java,
8663 javax/swing/JMenu.java,
8664 javax/swing/JPanel.java,
8665 javax/swing/JPasswordField.java,
8666 javax/swing/JPopupMenu.java,
8667 javax/swing/JProgressBar.java: Reworked imports.
8669 2004-01-09 Michael Koch <konqueror@gmx.de>
8671 * java/awt/geom/PathIterator.java
8672 (WIND_EVEN_ODD): Removed redundant modifiers.
8673 (WIND_NON_ZERO): Likewise.
8674 (SEG_MOVETO): Likewise.
8675 (SEG_LINETO): Likewise.
8676 (SEG_QUADTO): Likewise.
8677 (SEG_CUBICTO): Likewise.
8678 (SEG_CLOSE): Likewise.
8679 * java/awt/image/SinglePixelPackedSampleModel.java:
8680 Removed redundant semicolon.
8681 * java/io/ObjectInputStream.java
8682 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8683 * java/util/logging/Filter.java
8684 (isLoggable): Removed redundant modifier.
8685 * java/util/logging/LogManager.java:
8686 Removed redundant semicolon.
8687 * java/util/logging/XMLFormatter.java
8688 (format): Removed unused variable "key".
8690 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8692 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8693 New name for the former setFile native method.
8694 (setFile): New method.
8695 (setDirectory): Implemented.
8696 (connectSignals): New native method.
8697 (setFilenameFilter): Improve comment.
8698 (getGraphics): Comment.
8699 (gtkHideFileDialog): New method.
8700 (gtkDisposeFileDialog): New method.
8701 (gtkSetFilename): New method.
8702 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8703 for FileDialog for now.
8705 (dispose): New method.
8706 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8707 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8708 deprecated creation functions. Make dialog modal. Add it to the
8710 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8712 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8714 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8716 (window_closed): New function.
8717 (ok_clicked): New function.
8718 (cancel_clicked): New function.
8720 2004-01-08 Michael Koch <konqueror@gmx.de>
8722 * javax/swing/JLayeredPane.java: Revert changes to standard
8723 boilerplate, reworked imports.
8725 2004-01-07 Tom Tromey <tromey@redhat.com>
8728 * verify.cc (state::merge): Copy changed locals out of subroutine
8730 (state::FLAG_CHANGED): New const.
8731 (state::FLAG_UNUSED): Likewise.
8732 (state::local_changed): Removed. Updated all users.
8733 (state::flags): New field.
8734 (state::merge): Added jsr_semantics argument, more logic.
8735 (push_jump_merge): Added jsr_semantics argument.
8736 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8737 merging through the jsr instruction.
8739 2004-01-07 Tom Tromey <tromey@redhat.com>
8741 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8744 2004-01-07 Graydon Hoare <graydon@redhat.com>
8746 * java/awt/Container.java (LightweightDispatcher): Implement.
8747 (visitChild): Reuse graphics object.
8748 (dispatchEventImpl): Optionally dispatch to lightweight.
8749 (addNotifyContainerChildren): Build LightweightDispatcher.
8751 2004-01-07 David Jee <djee@redhat.com>
8753 * java/awt/Container.java
8754 (update): Clear only the clipped region, instead of clearing the
8756 (visitChildren): Visit children in descending order.
8758 2004-01-07 Michael Koch <konqueror@gmx.de>
8760 * java/lang/reflect/Array.java: Merged documentation with classpath.
8762 2004-01-07 Michael Koch <konqueror@gmx.de>
8764 * java/text/CollationElementIterator.java
8765 (textIndex): Renamed from index.
8766 * java/text/CollationKey.java
8767 (collator): New member.
8768 (CollationKey): New argument for parent collator.
8769 (equals): Check for same collator, source string and key array.
8770 * java/text/RuleBasedCollator.java:
8772 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8774 (getCollationElementIterator): Rewritten.
8775 (getCollationKey): Added new argument to CollationKey constructor.
8777 2004-01-07 Michael Koch <konqueror@gmx.de>
8779 * gnu/java/nio/DatagramChannelImpl.java
8780 (blocking): Removed.
8781 (DatagramChannelImpl): Call configureBlocking().
8782 (implConfigureBlocking): Dont initialize blocking.
8783 * gnu/java/nio/ServerSocketChannelImpl.java
8784 (blocking): Removed.
8785 (ServerSocketChannelImpl): Call configureBlocking().
8786 (implConfigureBlocking): Dont initialize blocking.
8787 * gnu/java/nio/SocketChannelImpl.java
8788 (blocking): Removed.
8789 (SocketChannelImpl): Call configureBlocking().
8790 (implConfigureBlocking): Dont initialize blocking.
8791 (connect): Use isBlocking().
8792 * java/nio/channels/spi/AbstractSelectableChannel.java
8793 (configureBlocking): Use blockingLock() instead of LOCK.
8794 Set blocking after successfully called implConfigureBlocking().
8795 (register): Use blockingLock() instead of LOCK.
8797 2004-01-07 Michael Koch <konqueror@gmx.de>
8799 * java/net/ServerSocket.java (isBound): Fixed documentation.
8801 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8803 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8804 (changeEvent): Create event object on demand.
8805 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8806 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8807 fireStateChanged): Re-written.
8808 * javax/swing/event/EventListenerList.java: Reformatted, document
8810 (toString): Implemented.
8811 (getListeners): Re-written.
8812 (remove): Re-written.
8814 (NO_LISTENERS): New singleton field.
8815 (listenerList): Declare as transient; document.
8816 (serialVersionUID): Document.
8817 (getListenerCount(Class)): More efficient implementation,
8818 also accepts null argument. Improve Javadoc.
8819 (getListenerCount()): Remove unnecessary cast; docfix.
8820 * javax/swing/undo/UndoableEditSupport.java:
8821 Re-format, document.
8822 (UndoableEditSupport): Set realSource field. Improve documentation.
8823 (_postEdit): Iterate over cloned listener vector.
8824 (toString): Don't emit realSource.
8825 (beginUpdate, endUpdate): Support nested updates.
8826 (postEdit): Use compound edit if present.
8828 2004-01-06 Graydon Hoare <graydon@redhat.com>
8830 * java/awt/Container.java (swapComponents): Add forgotten
8831 function, required for JLayeredPane change.
8833 2004-01-06 Michael Koch <konqueror@gmx.de>
8835 * java/text/CollationElementIterator.java: Reformated.
8836 (CollationElementIterator): Changed order of arguments.
8837 * java/text/RuleBasedCollator.java
8838 (RuleBasedCollator): Merged class documentation.
8839 (CollationElement): Added documentation.
8840 (compare): Reformated, renamed arguments.
8842 (getCollationElementIterator): Likewise.
8843 (getCollationKey): Likewise.
8845 2004-01-06 Graydon Hoare <graydon@redhat.com>
8847 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8849 2004-01-06 Michael Koch <konqueror@gmx.de>
8851 * gnu/java/net/protocol/file/Connection.java:
8852 Reformated copyright.
8855 (gotHeaders): Removed.
8856 (getHeaderField): Removed.
8857 (getHeaderField): Removed.
8858 (getHeaderFieldKey): Removed.
8860 (getField): Removed.
8861 (getHeaders): Removed.
8863 2004-01-06 Michael Koch <konqueror@gmx.de>
8865 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8866 javax/print/attribute/standard/DateTimeAtCreation.java,
8867 javax/print/attribute/standard/DateTimeAtProcessing.java,
8868 javax/print/attribute/standard/JobImpressionsCompleted.java,
8869 javax/print/attribute/standard/JobKOctets.java,
8870 javax/print/attribute/standard/JobKOctetsProcessed.java,
8871 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8872 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8873 * Makefile.am (javax_source_files): Added new files.
8874 * Makefile.in: Regenerated.
8876 2004-01-06 Michael Koch <konqueror@gmx.de>
8878 * java/net/URLConnection.java
8879 (contentHandler): Removed.
8881 (getHeaderFields): Return an empty map instead of null.
8882 (getContent): Connect if needed, renamed "cType" to "type" and
8883 "contentHandler" to "ch" and made it a local variable.
8884 (getPermission): Don't use package in class name.
8885 (setDefaultRequestProperty): Fixed typo in documentation.
8886 (initializeDateFormats): Made locale a local variable.
8888 2004-01-06 Michael Koch <konqueror@gmx.de>
8890 * java/lang/Package.java
8891 (getPackage): Get the current class loader directly.
8892 * java/lang/SecurityManager.java
8893 (currentLoadedClass): Dont iterate over class contexts.
8894 (classLoaderDepth): Don't check class loaders if everything is allowed.
8896 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8898 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8899 (pre_event_handler): Set all insets to 0 when a Configure event
8900 is received for a GtkPlug.
8901 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8902 Make handle long, not int.
8903 (EmbeddedWindow()): New constructor.
8904 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8906 (setHandle): New method.
8907 (getHandle): Return long, not int.
8908 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8910 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8911 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8912 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8913 argument to GdkNativeWindow.
8914 (construct): New method.
8915 (embed): New method.
8917 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8918 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8919 (create(int, int)): New method.
8920 (create): Call new create method.
8921 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8923 (childResized): Remove native implementation. Implement in
8925 (getHScrollbarHeight, getVScrollbarWidth): Call
8926 gtk_widget_size_request to get scrollbar dimensions.
8927 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8928 call getVScrollbarWidth and getHScrollbarHeight when vertical
8929 and horizontal scrollbars respectively are needed.
8930 (doLayout): Enlarge child if it is smaller than the viewport.
8932 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8934 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8935 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8936 argument as per spec.
8938 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8940 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8942 (remove): Ditto. Also, Check for valid argument.
8943 (removeAll): Use peer interface method.
8944 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8945 native add function.
8946 (nativeRemove): New name for native remove function.
8947 (getHistory): New native function.
8948 (constructor): Generate ItemEvent.
8949 (add): Ditto, if selection is changed.
8950 (remove): Ditto, ditto.
8951 (removeAll): Add implementation.
8952 (handleEvent): Remove. Dead code.
8953 (choicePostItemEvent): Add comment.
8954 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8955 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8956 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8957 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8958 comments and fix condition to change selection.
8959 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8960 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8961 remove all capability.
8962 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8963 (item_activate): Add cast to remove compiler warning.
8965 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8967 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8968 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8969 (getPreferredSize): Call preferredSize.
8970 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8971 (getMinimumSize): Call minimumSize.
8972 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8973 (gtkWidgetGetDimensions): Return the peer widget's current size
8975 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8976 natural size request.
8978 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8980 Thanks to Brian Gough <bjg@network-theory.com>
8981 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8982 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8984 2004-01-04 Matthias Klose <doko@debian.org>
8986 * aclocal.m4: Rebuilt using "aclocal -I .".
8987 * configure: Rebuilt.
8989 2004-01-03 Per Bothner <per@bothner.com>
8991 * java/util/Date.java (parse): Fix a number of problems.
8992 (skipParens): Remove no-longer-needed method.