]> git.ipfire.org Git - thirdparty/gcc.git/blame - libjava/ChangeLog
expr.c (expand_expr_addr_expr): New.
[thirdparty/gcc.git] / libjava / ChangeLog
CommitLineData
b6e9851a
TT
12004-08-30 Tom Tromey <tromey@redhat.com>
2
3 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
4 return result from `add'.
5
05502144
TT
62004-08-30 Tom Tromey <tromey@redhat.com>
7
8 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
9
e7023b0f
AT
102004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
11
12 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
13
2c64dead
JF
142004-08-30 Jeroen Frijters <jeroen@frijters.net>
15
16 * java/io/File.java File(String,String): Fixed handling of empty
17 path.
18
bd8a2e96
CM
192004-08-30 Casey Marshall <csm@gnu.org>
20
21 Author e-mail updated for all files.
22 * gnu/java/security/OID.java (equals): Test if the aurgment is an
23 instance of OID.
24 (compareTo): Use `equals'.
25 * gnu/java/security/der/BitString.java (equals): Test if the
26 argument is an instance of BitString.
27 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
28 class final. Made fields private.
29 (<init>): New constructor.
30 (skip): New method.
31 (makeString): Made static; don't use NIO.
32 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
33 * gnu/java/security/der/DERWriter.java: Fixed imports.
34 (writeString): Don't use NIO.
35 (toIso88591, toUtf16Be, toUtf8): New methods.
36 * gnu/java/security/der/DERValue.java: Formatting changes only.
37 * gnu/java/security/der/DER.java: Likewise.
38
68760aee
AT
392004-08-30 Tom Tromey <tromey@redhat.com>
40
41 * java/nio/CharBuffer.java (put): Fix typo.
42 * java/nio/DoubleBuffer.java (put): Fix typo.
43 * java/nio/FloatBuffer.java (put): Fix typo.
44 * java/nio/IntBuffer.java (put): Fix typo.
45 * java/nio/LongBuffer.java (put): Fix typo.
46 * java/nio/ShortBuffer.java (put): Fix typo.
47
482004-08-30 Florian Weimer <fw@deneb.enyo.de>
49
50 * java/nio/ByteBuffer.java (put): Fix typo.
51
28839b70
CM
522004-08-30 Casey Marshall <csm@gnu.org>
53
54 * java/security/DummyKeyPairGenerator.java (clone): Removed
55 useless instanceof check.
56 * java/security/DummyMessageDigest.java (clone): Likewise.
57 * java/security/DummySignature.java (clone): Likewise.
58 * java/security/MessageDigest.java (clone): Remove useless
59 instanceof check.
60 * java/security/MessageDigestSpi.java (clone): Likewise.
61 * java/security/Signature.java (clone): Provide meaningful
62 implementation.
63 * java/security/SignatureSpi.java (clone): Likewise.
64
6cd655a3
MW
652004-08-29 Mark Wielaard <mark@klomp.org>
66
67 * java/util/Arrays.java
68 (sort(byte[], int, int)): Check fromIndex < 0.
69 (sort(char[], int, int)): Likewise.
70 (sort(short[], int, int)): Likewise.
71 (sort(int[], int, int)): Likewise.
72 (sort(long[], int, int)): Likewise.
73 (sort(float[], int, int)): Likewise.
74 (sort(double[], int, int)): Likewise.
75 (sort(Object[], int, int, Comparator)): Likewise.
76 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
77 (qsort(char[], int, int)): Likewise.
78 (qsort(short[], int, int)): Likewise.
79 (qsort(int[], int, int)): Likewise.
80 (qsort(long[], int, int)): Likewise.
81 (qsort(float[], int, int)): Likewise.
82 (qsort(double[], int, int)): Likewise.
83
477a21f7
AJH
842004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
85
86 * java/util/AbstractCollection.java, java/util/AbstractList.java,
87 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
88 java/util/ArrayList.java, java/util/Arrays.java,
89 java/util/BitSet.java, java/util/Calendar.java,
90 java/util/Collection.java, java/util/ListIterator.java,
91 java/util/Map.java, java/util/SortedSet.java:
92 Added additional exceptions to documentation, along
93 with some additions and corrections.
94
ed347998
HB
952004-08-27 Hans Boehm <Hans.Boehm@hp.com>
96
97 * configure.ac: Handle --enable-gc-debug.
98 * configure: Regenerate.
99 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
100 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
101 Rearrange include file order.
102 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
103 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
104 (disable_gc_mutex): Delete along with all references.
105 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
106 adjust for debug header size.
107 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
108 debug case.
109 (_Jv_AllocArray): Declare min_heap_addr only if needed.
110 (gcj_describe_type_fn): New.
111 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
112 Register gcj_describe_type_fn.
113 * include/boehm-gc.h:
114 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
115 Don't define, but declare, for debug case.
116 * java/lang/natObject.cc:
117 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
118
42348101
MW
1192004-08-26 Mark Wielaard <mark@klomp.org>
120
121 Fixes PR libgcj/17002:
122 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
123 a TimeZoneId string and then try to convert that to a TimeZone with
124 getDefaultSystemTimeZone(String).
125 (timezones0): Changed type from Hashtable to HashMap.
126 (timezones): Create HashMap, not Hashtable.
127 (getDefaultTimeZone): New method, rewritten from CNI version.
128 (readTimeZoneFile): New method.
129 (readtzFile): Likewise.
130 (skipFully): Likewise.
131 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
132 getDefaultTimeZoneId and rewritten.
133 (getDefaultTimeZoneId): Rewritten in java.
134
ed89de94
DD
1352004-08-25 David Daney <daney@avtrex.com>
136
137 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
138 * Makefile.in: Regenerated.
139
8ba14152
BM
1402004-08-23 Bryce McKinlay <mckinlay@redhat.com>
141
142 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
143 only if jvmpi is enabled.
144 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
145 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
146 (_Jv_AllocString): Likewise.
147 (_Jv_AllocPtrFreeObject): Likewise.
148
0039c16d 1492004-08-23 Hans Boehm <Hans.Boehm@hp.com>
8ba14152 150
0039c16d
HB
151 * defineclass.cc: Include <stdio.h>.
152 * java/lang/natClassLoader.cc: Include <stdio.h>.
153
be2043db
AT
1542004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
155 Michael Koch <konqueror@gmx.de>
156
157 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
158 * Makefile.in: Regenerated.
159
b7d9c3ae
MK
1602004-08-20 Michael Koch <konqueror@gmx.de>
161
162 * configure.ac: Replaced all AC_TRY_COMPILE macros with
163 AC_COMPILE_IFELSE macros.
164
80d8905c
MK
1652004-08-20 Michael Koch <konqueror@gmx.de>
166
167 * configure.in: Renamed to configure.ac.
168 * configure.ac: New file.
169 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
170 include/config.h.in, testsuite/Makefile.in: Regenerated.
171
cad90591
MK
1722004-08-20 Michael Koch <konqueror@gmx.de>
173
174 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
175 * aclocal.m4, configure: Regenerated.
176
e3f92d3b
MK
1772004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
178 Michael Koch <konqueror@gmx.de>
179
438c7f23
BM
180 * configure.in, Makefile.am: Ported to automake 1.9.
181 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
182 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
e3f92d3b
MK
183 Regenerated.
184
476a918f
TT
1852004-08-19 Tom Tromey <tromey@redhat.com>
186
187 * java/net/DatagramSocket.java: Fixed typo.
188
bb0452b1
BM
1892004-08-18 Bryce McKinlay <mckinlay@redhat.com>
190
191 PR libgcj/17081
192 * java/net/URI.java (string): New field. Make all other fields
193 transient.
194 (readObject): Implemented.
195 (writeObject): Implemented.
196 (URI): Set 'string'.
197
b4b3435e
BM
1982004-08-18 Bryce McKinlay <mckinlay@redhat.com>
199
200 PR libgcj/17079
201 * java/util/logging/Handler.java (isLoggable): Accept record if its
202 log level equals the threshold level. From Robin Green.
203
720086cd
DD
2042004-08-18 David Daney <ddaney@avtrex.com>
205
206 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
207 instead of sigwait.
208
baeff970
MK
2092004-08-17 Michael Koch <konqueror@gmx.de>
210
211 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
212 * Makefile.in: Regenerated.
213
0e5b1376
TT
2142004-08-16 Tom Tromey <tromey@redhat.com>
215
216 PR java/8473:
217 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
218
be170ef2
MK
2192004-08-16 Michael Koch <konqueror@gmx.de>
220
221 * Makefile.am
222 (math_c_files): Renamed from c_files.
223 (math_c_source_files): Renamed from c_source_files.
224 * Makefile.in,
225 gcj/Makefile.in,
226 include/Makefile.in,
227 testsuite/Makefile.in: Regenerated.
228
7614fd28
BM
2292004-08-16 Bryce McKinlay <mckinlay@redhat.com>
230
231 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
232 to avoid autoconf warning.
233 * configure: Rebuilt.
234
1c5192e4
AT
2352004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
236
237 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
238 localhostAddress to loopbackAddress.
239 * java/net/natInetAddressWin32.cc (lookup): Likewise.
240
4109fe85
BM
2412004-08-13 Bryce McKinlay <mckinlay@redhat.com>
242
243 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
244 boehm-gc's include dirs.
245 * configure: Rebuilt.
246 * include/boehm-gc.h: Include gc_config.h.
247
d7945faf
BM
2482004-08-13 Bryce McKinlay <mckinlay@redhat.com>
249
250 * java/net/InetAddress.java (loopbackAddress): Renamed from
251 localhostAddress.
252 (getByName): Return loopback address for null hostname, without
253 security check. Use lookup(), not getAllByName.
254 (getAllByName): Return loopback address for null hostname, without
255 security check.
256 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
257 check here.
258
73389fa4
BM
2592004-08-13 Bryce McKinlay <mckinlay@redhat.com>
260
261 PR libgcj/17020
262 Reported by Robin Green.
263 * defineclass.cc (handleField): Don't throw exception on unrecognised
264 modifier. Add FIXME comments for spec compliance.
265 (handleMethod): Likewise.
266
28e99c62
HB
2672004-08-10 Hans Boehm <Hans.Boehm@hp.com>
268
269 PR libgcj/16662
270 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
271 (Almost everywhere): add LOG calls, fix, add comments.
272 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
273 Add explicit check for LOCKED bit in slow case (PR 16662).
274 (_Jv_MonitorExit): Add casts in debug-only code.
275 Always release LOCKED bit before throwing exception.
276 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
277 isn't. Handle easy cases without lock acquisition.
278 (Object::wait): Use NotifyAll for lock inflation.
279
faa03cf1
DD
2802004-08-12 David Daney <ddaney@avtrex.com>
281
282 * testsuite/libjava.lang/Process_1.java: New test.
283 * testsuite/libjava.lang/Process_2.java: New test.
284 * testsuite/libjava.lang/Process_3.java: New test.
285 * testsuite/libjava.lang/Process_4.java: New test.
286 * testsuite/libjava.lang/Process_5.java: New test.
287 * testsuite/libjava.lang/Process_6.java: New test.
288 * testsuite/libjava.lang/Process_1.out: Expected result.
289 * testsuite/libjava.lang/Process_2.out: Expected result.
290 * testsuite/libjava.lang/Process_3.out: Expected result.
291 * testsuite/libjava.lang/Process_4.out: Expected result.
292 * testsuite/libjava.lang/Process_5.out: Expected result.
293 * testsuite/libjava.lang/Process_6.out: Expected result.
294
2952004-08-12 David Daney <ddaney@avtrex.com>
296
297 PR libgcj/11801
298 * java/lang/PosixProcess.java: Rewrote.
299 * java/lang/natPosixProcess.cc: Rewrote.
300 * java/lang/Runtime.java (execInternal): Declare throws IOException.
301 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
302 * posix-threads.cc (block_sigchld) New function.
303 (_Jv_ThreadRegister) Use it.
304 (_Jv_ThreadStart) Use it.
305 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
306 * Makefile.am: ... to specify extra native headers.
307 * configure: Regenerated.
308 * include/config.h: Regenerated.
309 * Makefile.in: Regenerated.
310 * gcj/Makefile.in: Regenerated.
311 * include/Makefile.in: Regenerated.
312 * testsuite/Makefile.in: Regenerated.
313
c597ef4e
DN
3142004-08-12 Diego Novillo <dnovillo@redhat.com>
315
316 PR tree-optimization/16867
317 * testsuite/libjava.lang/PR16867.java: New test.
318
b4d49f49
PB
3192004-08-09 Per Bothner <per@bothner.com>
320
321 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
322 with private fields and access methods.
323 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
324 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
325 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
326 ( _Jv_makeUtf8Const): Rewrite using new constructors.
327 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
328 * defineclass.cc: Use new _Utf8Const access/convenience methods.
329 * jni.cc: Likewise.
330 * resolve.cc: Likewise.
331 * gcj/field.h: Likewise.
332 * include/jvm.h: Likewise.
333 * java/lang/Class.h: Likewise.
334 * java/lang/natClass.cc: Likwise.
335 * java/lang/natClassLoader.cc: Likewise
336 * java/lang/reflect/natMethod.cc: Likewise
337 * verify.cc: Likewise.
338 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
339 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
340
7e04b67b
AH
3412004-08-10 Andrew Haley <aph@redhat.com>
342
343 * testsuite/libjava.lang/err14.java: New file.
344 * testsuite/libjava.lang/err14.out: New file.
345
48a8c565
AT
3462004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
347
348 * Makefile.am: Fix missing rename from x_nat_headers to
349 xlib_nat_headers.
350 * Makefile.in: Regenerated.
351
26be638d
AH
3522004-08-04 Andrew Haley <aph@redhat.com>
353
354 * java/security/BasicPermission.java: Don't check wildcards.
355
614c0fc2
TF
3562004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
357 Michael Koch <konqueror@gmx.de>
358
359 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
360 * configure.in: Replaced all usages of AC_LINK_FILES by
361 AC_CONFIG_LINKS.
362 * aclocal.m4,
363 configure: Regenerated.
364
ff78c80b
TF
3652004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
366 Michael Koch <konqueror@gmx.de>
367
368 * acconfig.h: Removed.
369 * Makefile.am: Rename variables for xlib peer to include xlib and
370 gtk_c_headers to gtk_jni_headers.
371 * Makefile.in: Regenerated.
372
76207f7c
AH
3732004-08-04 Andrew Haley <aph@redhat.com>
374
375 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
376 debugging.
377
aed6152d
NN
3782004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
379
380 * configure.in: Eliminate uses of changequote (mostly by quoting []).
381 Replace most top level 'dnl' comments with '#' comments, conforming
382 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
383 help strings.
384 * configure: Rebuilt.
385
ed698112
NN
3862004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
387
388 * acinclude.m4: Include no-executables.m4.
389 * aclocal.m4: Rebuild.
390 * configure.in: Convert to the autoconf 2.59 version of
391 of the no-executables hack, and also of the nonstandard CXX
392 hack and the multilibbed CC and CXX hack. Change prerequisite
393 to autoconf 2.59.
394 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
395 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
396 testsuite/Makefile.in: Regenerate.
397
8e9031ec
TT
3982004-08-03 Tom Tromey <tromey@redhat.com>
399
400 * jni.cc: Reindented.
401
474f5417
BM
4022004-08-02 Bryce McKinlay <mckinlay@redhat.com>
403
404 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
405
899deeca
BM
4062004-08-02 Bryce McKinlay <mckinlay@redhat.com>
407
408 * testsuite/libjava.compile/PR16701.java: New test.
409
b828123e
AJH
4102004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
411
412 * java/util/Collection.java, java/util/List.java,
413 java/util/Map.java, java/util/Set.java,
414 java/util/SortedMap.java, java/util/SortedSet.java:
415 Added additional exceptions to documentation.
416
5b5662ee
DS
4172004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
418
419 PR libgcj/16814
420 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
421 * configure. Regenerate.
422 * include/win32.h: Explicitly include winsock2.h
423 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
424 Winsock api.
425
f370ef24
MK
4262004-07-30 Michael Koch <konqueror@gmx.de>
427
428 * java/util/zip/GZIPInputStream.java
429 (GZIPInputStream): Increase buffer size to 4k.
430 * java/util/zip/GZIPOutputStream.java
431 (GZIPOutputStream): Likewise.
432 * java/util/zip/Inflater.java
433 (setInput): Merged formating with GNU classpath.
434 * java/util/zip/InflaterInputStream.java
435 (InflaterInputStream): Increase buffer size to 4k.
436 (fill): Throw exception if stream ends early.
437 (read): Merged endless-loop with GNU classpath.
438 (skip): Increase buffer size to 2k.
439
2afed683
MK
4402004-07-30 Michael Koch <konqueror@gmx.de>
441
442 * gnu/java/awt/EmbeddedWindow.java
443 (addNotify): Use AccessController to allow execution of privileged
444 code.
445
a639e504
MK
4462004-07-29 Michael Koch <konqueror@gmx.de>
447
448 * gnu/java/lang/MainThread.java:
449 Explicitely import used classes.
450 (args): Make it type String[].
451
1cc49b13
DT
4522004-07-29 Dalibor Topic <robilad@kaffe.org>
453
454 * gnu/java/awt/ComponentDataBlitOp.java,
455 gnu/java/beans/ExplicitBeanInfo.java,
456 gnu/java/beans/IntrospectionIncubator.java,
457 gnu/java/beans/editors/ColorEditor.java,
458 gnu/java/beans/editors/FontEditor.java,
459 gnu/java/beans/editors/NativeBooleanEditor.java,
460 gnu/java/beans/editors/NativeByteEditor.java,
461 gnu/java/beans/editors/NativeDoubleEditor.java,
462 gnu/java/beans/editors/NativeFloatEditor.java,
463 gnu/java/beans/editors/NativeIntEditor.java,
464 gnu/java/beans/editors/NativeLongEditor.java,
465 gnu/java/beans/editors/NativeShortEditor.java,
466 gnu/java/beans/editors/StringEditor.java,
467 gnu/java/io/ClassLoaderObjectInputStream.java,
468 gnu/java/io/decode/Decoder.java,
469 gnu/java/io/encode/Encoder.java,
470 gnu/java/lang/ClassHelper.java,
471 gnu/java/locale/Calendar.java,
472 gnu/java/locale/Calendar_de.java,
473 gnu/java/locale/Calendar_en.java,
474 gnu/java/locale/Calendar_nl.java,
475 gnu/java/locale/LocaleInformation_de.java,
476 gnu/java/locale/LocaleInformation_en.java,
477 gnu/java/locale/LocaleInformation_nl.java:
478 Cleaned up imports.
479
4d4fed15
BM
4802004-07-28 Bryce McKinlay <mckinlay@redhat.com>
481
482 * README: Remove obsolete info. Update bug URL.
483 * THANKS: Updated.
e90bcbf5 484 * NEWS: Updated with news up to GCC 3.4 release.
4d4fed15 485
64d696b6
BM
4862004-07-28 Bryce McKinlay <mckinlay@redhat.com>
487
488 * gnu/java/security/action/GetPropertyAction.java (setParameters):
489 Renamed from 'setName'. New 2-argument form with default value.
490 (run): Pass default 'value' parameter to System.getProperty().
491 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
492 typos.
493 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
494 not 'setName'.
495
f0faf24b
BM
4962004-07-28 Bryce McKinlay <mckinlay@redhat.com>
497
498 * configure.in: Check for minimum GTK version 2.4 requirement.
499 * configure: Rebuilt.
500
ce961468
BM
5012004-07-27 Bryce McKinlay <mckinlay@redhat.com>
502
503 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
504 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
505 Reduce sleep time.
506 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
507 compiler bug.
508 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
509 address. Reduce sleep times. Synchronize with target threads before
510 attempting to interrupt them. Don't try to calibrate yeild count,
511 instead, always loop for a fixed time.
512 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
513 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
514 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
515 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
516 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
517 * testsuite/libjava.lang/pr179.java: Likewise.
518 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
519 time. Remove upper bounds check on sleep time.
520
0954f3eb
BM
5212004-07-27 Bryce McKinlay <mckinlay@redhat.com>
522
523 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
524 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
525
d078f7c0
BM
5262004-07-27 Bryce McKinlay <mckinlay@redhat.com>
527
528 * java/io/File.java (toURI): Throw RuntimeException, not
529 InternalError.
530 * java/lang/Runtime.java (exit): Qualify static sleep() call with
531 class name, not instance.
532
8b66a9e9
BM
5332004-07-24 Bryce McKinlay <mckinlay@redhat.com>
534
535 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
536 and gnu/java/security/action/SetAccessibleAction.java.
537 * Makefile.in: Rebuilt.
538
ffe4e037
BM
5392004-07-23 Bryce McKinlay <mckinlay@redhat.com>
540
541 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
542 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
543 _Jv_InitPrimClass.
544 (DECLARE_PRIM_TYPE): Don't declare array vtables.
545 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
546 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
547
ef05818b
TF
5482004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
549
550 * Makefile.am: Replace jar, rmic and rmiregistry references with
551 gjar, grmic and grmiregistry.
552 * configure.in: Likewise.
553 * Makefile.in: Regenerate.
554 * configure: Likewise.
555 * gcj/Makefile.in: Likewise.
556 * include/Makefile.in: Likewise.
557 * testsuite/Makefile.in: Likewise.
558
ae066484
BM
5592004-07-23 Bryce McKinlay <mckinlay@redhat.com>
560
ec5c28ec
BM
561 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
562 for privileged getProperty calls.
563 * java/io/ObjectOutputStream.java (getField): No longer static. Use
564 SetAccessibleAction instead of anonymous class for doPrivileged call.
565 (getMethod): Likewise.
566 (setAccessible): New field. PrivilegedAction object to use when
567 calling setAccessible.
568 * java/io/ObjectStreamClass.java (calculateOffsets): Use
569 SetAccessibleAction instead of anonymous class for diPrivileged call.
570 (setFields): Likewise.
571 (getClassUID): Likewise.
572 (findMethod): Likewise.
573 * gnu/java/security/action/GetPropertyAction.java: New class.
574 * gnu/java/security/action/SetAccessibleAction.java: New class.
575
5762004-07-23 Bryce McKinlay <mckinlay@redhat.com>
577
578 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
579 for final fields.
ae066484
BM
580 * testsuite/libjava.lang/Serialization.java: New test.
581 * testsuite/libjava.lang/Serialization.out: New.
582
5832004-07-23 Bryce McKinlay <mckinlay@redhat.com>
694e657a
MW
584
585 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
586 missed in last commit.
587
392abf6b
MW
5882004-07-23 Mark Wielaard <mark@klomp.org>
589
590 * java/lang/System.java (static): Set http.agent system property when
591 not yet set.
592 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
593 from system property inside AccessController.doPrivileged() call.
594 (proxyPort): Made package private.
595 (proxyInUse): Likewise.
596 (proxyHost): Likewise.
597 (userAgent): Likewise.
598
6d97cb60
MW
5992004-07-23 Mark Wielaard <mark@klomp.org>
600
601 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
602 implementation.
603
f1f90ae0
BM
6042004-07-22 Bryce McKinlay <mckinlay@redhat.com>
605
606 * Makefile.am (ordinary_java_source_files): Add
607 DefaultContentHandlerFactory.java.
608 * Makefile.in: Rebuilt.
609 * java/net/URLConnection.java (defaultFactory): New field.
610 (getContent):
611 (getContentHandler): Renamed from 'setContentHandler'. Try
612 defaultFactory after user-set factory, if any. Search for content
613 handler implementations in gnu.java.net.content, not gnu.gcj.content.
614 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
615 Implemented.
616 (getLastModified): Implemented.
617 (getPermission): Create file permission here, instead of in
618 constructor.
619 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
620 Implemented.
621 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
622 Implemented.
623 (getLastModified): Implemented.
624 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
625 Default implementation.
626 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
627 Implement using GdkPixbufDecoder.
628
8e99fb4f
GH
6292004-07-21 Michael Koch <konqueror@gmx.de>
630
631 * javax/swing/JTextArea.java
632 (setLineWrap): Fire property change event after new value is set.
633 (setTabSize): Likewise.
634
6352004-07-21 Michael Koch <konqueror@gmx.de>
636
637 * javax/swing/JTable.java
638 (autoCreateColumnsFromModel): New field.
639 (autoResizeMode): Likewise.
640 (cellEditor): Likewise.
641 (cellSelectionEnabled): Likewise.
642 (columnModel): Likewise.
643 (dataModel): Likewise.
644 (defaultEditorsByColumnClass): Likewise.
645 (defaultRenderersByColumnClass): Likewise.
646 (editingColumn): Likewise.
647 (editingRow): Likewise.
648 (gridColor): Likewise.
649 (preferredViewportSize): Likewise.
650 (rowHeight): Likewise.
651 (rowMargin): Likewise.
652 (rowSelectionAllowed): Likewise.
653 (selectionBackground): Likewise.
654 (selectionForeground): Likewise.
655 (selectionModel): Likewise.
656 (showHorizontalLines): Likewise.
657 (showVerticalLines): Likewise.
658 (tableHeader): Likewise.
659 (JTable): Implemented.
660 (getColumnModel): Likewise.
661 (getSelectedRow): Likewise.
662 (getSelectionModel): Likewise.
663 (setModel): Likewise.
664 (setSelectionModel): Likewise.
665 (createScrollPaneForTable): New method.
666 (createDefaultDataModel): Likewise.
667 (createDefaultListSelectionModel): Likewise.
668 (getModel): Likewise.
669 (getTableHeader): Likewise.
670 (setTableHeader): Likewise.
671 (getColumnSelectionAllowed): Likewise.
672 (setColumnSelectionAllowed): Likewise.
673 (getRowSelectionAllowed): Likewise.
674 (setRowSelectionAllowed): Likewise.
675 (getAutoResizeMode): Likewise.
676 (setAutoResizeMode): Likewise.
677 (getColumnCount): Likewise.
678 (getRowCount): Likewise.
679 (getCellRenderer): Likewise.
680 * javax/swing/JTree.java
681 (cellRenderer): New field.
682 (editable): Likewise.
683 (rootVisible): Likewise.
684 (showsRootHandles): Likewise.
685 (getModel): New method.
686 (setModel): Likewise.
687 (isEditable): Likewise.
688 (setEditable): Likewise.
689 (isRootVisbile): Likewise.
690 (setRootVisible): Likewise.
691 (getShowsRootHandles): Likewise.
692 (setShowRootHandles): Likewise.
693 (getCellRenderer): Likewise.
694 (setCellRenderer): Likewise.
695
6962004-07-21 Michael Koch <konqueror@gmx.de>
697
698 * javax/swing/JFormattedTextField.java
699 (setDocument): Implemented.
700 * javax/swing/JRootPane.java:
701 Fixed javadocs.
702 * javax/swing/JTable.java
703 (getDefaultRenderer): New method.
704 * javax/swing/JTextField.java
705 (setFont): Likewise.
706 (getPreferredSize): Likewise.
707 * javax/swing/JToggleButton.java
708 (getAccessibleContext): Fix javadoc.
709 * javax/swing/JTree.java:
710 Add some javadocs.
711 * javax/swing/JViewport.java:
712 Likewise.
713
7142004-07-21 David Jee <djee@redhat.com>
715
716 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
717 Collect all native method declaration at the top.
718 (create): Set the filename filter if necessary.
719 (setDirectory): Call nativeSetDirectory().
720 (setFilenameFilter): Implement.
721 (filenameFilterCallback): New method.
722 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
723 (create): Configure dialog to show hidden files.
724 (filenameFilterCallback): New function.
725 (nativeSetFilenameFilter): New function.
726 (nativeSetDirectory): New function.
727
7282004-07-21 Kim Ho <kho@redhat.com>
729
730 * javax/swing/plaf/basic/BasicSliderUI.java:
731 Ran Jalopy.
732 (paintTrack): Fill the track before painting
733 the borders.
734
7352004-07-21 Graydon Hoare <graydon@redhat.com>
736
737 patch from Roman Kennke <roman@ontographics.com>
738 * javax/swing/Spring.java: New file.
739 * javax/swing/SpringLayout.java: New file.
740 * Makefile.am: Add new files.
741 * Makefile.in: Regenerate.
742
7432004-07-21 Graydon Hoare <graydon@redhat.com>
744
745 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
746 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
747 * javax/swing/ScrollPaneLayout.java: Likewise.
748
7492004-07-21 Kim Ho <kho@redhat.com>
750
751 * javax/swing/DefaultDesktopManager.java:
752 (findMinimum): Removed.
753 (resizeFrame): Trust the UI to pass valid
754 bounds.
755 * javax/swing/JOptionPane.java:
756 Implemented showInternalXXXDialog methods.
757 (startModal): New method.
758 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
759 (BorderListener::mouseDragged): Verify that the new
760 bounds are valid before passing them to the DesktopManager.
761 (preferredLayoutSize): Delegate
762 to getSize.
763 (minimumLayoutSize): Ditto.
764 (getSize): New method.
765 (GlassPaneDispatcher): Reimplemented by copying
766 a stripped down LightweightDispatcher from Container.
767 (getMinimumSize): Call minimumLayoutSize.
768 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
769 Ran Jalopy.
770 (mousePressed): Add ability to properly close
771 JInternalFrames.
772 * javax/swing/plaf/basic/BasicToolBarUI.java:
773 (DragWindow): Set owner for DragWindow.
774
7752004-07-21 Jerry Quinn <jlquinn@optonline.net>
776
777 * java/awt/image/ShortLookupTable.java: New file.
778 * java/awt/image/ByteLookupTable.java: New file.
779 * Makefile.am: Added new files.
780 * Makefile.in: Regenerated.
781
7822004-07-21 David Jee <djee@redhat.com>
783
784 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
785 (create(GtkContainerPeer)): New native method.
786 (create()): Call native create(), passing in the parent frame
787 as the paramter. Natively set the current file and directory.
788 (setFile): Construct an absolute filename before passing it to
789 the native peer.
790 (nativeGetDirectory): New method.
791 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
792 (window_closed): Removed.
793 (ok_clicked): Likewise.
794 (cancel_clicked): Likewise.
795 (handle_response): New method.
796 (create): Use GtkFileChooserDialog.
797 (connectSignals): Connect to handle_response.
798 (nativeGetDirectory): New method.
799 (nativeSetFile): Use GtkFileChooserDialog.
800
8012004-07-21 Jerry Quinn <jlquinn@optonline.net>
802
803 * java/awt/image/LookupTable.java: New file.
804 * Makefile.am: Added new file.
805 * Makefile.in: Regenerated.
806
8072004-07-21 Jerry Quinn <jlquinn@optonline.net>
808
809 * java/awt/image/Kernel.java: New file.
810 * Makefile.am: Added new file.
811 * Makefile.in: Regenerated.
812
8132004-07-21 Olga Rodimina <rodimina@redhat.com>
814
815 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
816 * javax/swing/JMenu.java: Likewise.
817 * javax/swing/JMenuBar.java: Likewise.
818 (MARGIN_CHANGED_PROPERTY): New property.
819 (setMargin): Implemented.
820 * javax/swing/JMenuItem.java: Fixed javadocs.
821 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
822 (LABEL_CHANGED_PROPERTY): New property.
823 (add): changed to use createActionComponent.
824 (createActionComponent): Implemented.
825 (setLabel): Fire PropertyChangeEvent if label property
826 changes.
827 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
828 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
829 (ContainerHandler): Repaint if margin property has changed.
830 * javax/swing/plaf/basic/BasicMenuItemUI.java:
831 (installUI): Call installComponents().
832 (uninstallUI): Call uinstallComponents().
833 * javax/swing/plaf/basic/BasicMenuUI.java:
834 Fixed javadocs.
835 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
836 Likewise.
837
8382004-07-21 Kim Ho <kho@redhat.com>
839
840 * javax/swing/plaf/basic/BasicToolBarUI.java:
841 (DragWindow): Use the right constructor.
842
8432004-07-21 Kim Ho <kho@redhat.com>
844
845 * javax/swing/JToolBar.java:
846 (layoutContainer): Use getComponents.
847 * javax/swing/plaf/basic/BasicToolBarUI.java:
848 (DragWindow): Don't use SwingUtilities'
849 getOwnerFrame
850 (ToolBarDialog): ditto.
851
8522004-07-21 Kim Ho <kho@redhat.com>
853
854 * javax/swing/JRootPane.java:
855 Ran jalopy.
856 (layoutContainer): Set the glasspane's size to
857 be the same as the content pane.
858 (createGlassPane): Set opaque property to false.
859
8602004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
861
862 * java/awt/Component.java (requestFocus()): Don't handle Panels
863 specially.
864 (requestFocus(boolean)): Likewise.
865 (requestFocusInWindow(boolean)): Likewise.
866 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
867 Set GTK_CAN_FOCUS flag.
868
8692004-07-21 Kim Ho <kho@redhat.com>
870
871 * Makefile.am: Added new file.
872 * Makefile.in: Regenerated.
873 * gcj/Makefile.in: Regenerated.
874 * include/Makefile.in: Regenerated.
875 * javax/swing/AbstractButton.java:
876 Add rollOverEnabled property.
877 (setRolloverEnabled): Use new property.
878 (isRolloverEnabled): Use new property.
879 * javax/swing/JTabbedPane.java:
880 (setComponent): Remove useless JTabbedPane.this.
881 * javax/swing/JToolBar.java: Finish implementation.
882 * javax/swing/plaf/basic/BasicArrowButton.java:
883 (paint): Moved border painting to a border.
884 * javax/swing/plaf/basic/BasicLookAndFeel.java:
885 Change JToolBar look and feel defaults.
886 * javax/swing/plaf/basic/BasicOptionPaneUI.java
887 (actionPerformed): Return Integer index instead of name.
888 (addButtonComponents): Check to see if component is
889 JButton last.
890 (createMessageArea): Don't use components that are not
891 completed yet.
892 (getIconForType): Use temporary icons.
893 * javax/swing/plaf/basic/BasicSliderUI.java:
894 (mousePressed): Do not return if it's on thumb.
895 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
896 (paintMinorTickForVertSlider): ditto.
897 (paintMajorTickForHorizSlider): ditto.
898 (paintMajorTickForVertSlider): ditto.
899 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
900 Add a border around the SplitPaneDivider.
901 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
902 Remove comments.
903 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
904 New file. Implemented.
905 * javax/swing/plaf/basic/BasicToolBarUI.java:
906 Implemented.
907 * testsuite/Makefile.in: Regenerated.
908
9092004-07-21 Graydon Hoare <graydon@redhat.com>
910
911 * javax/swing/Timer.java (run): Queue events each time cycle.
912
9132004-07-21 David Jee <djee@redhat.com>
914
915 * gnu/java/awt/peer/gtk/GtkImagePainter.java
916 (imageComplete): Call image.imageComplete().
917 * java/awt/image/MemoryImageSource.java:
918 Reimplement consumers as a Vector instead of a Hashtable. This is
919 because enumeration on a Hashtable is not thread-safe.
920 (addConsumer): Adapt to Vector consumers.
921 (isConsumer): Adapt to Vector consumers.
922 (removeConsumer): Adapt to Vector consumers.
923 (startProduction): Adapt to Vector consumers. Call imageComplete()
924 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
925 (newPixels): Adapt to Vector consumers.
926 (sendPicture): Set the color model of the image consumer.
927 (newPixels(IIII)): Adapt to Vector consumers.
928 (newPixels(IIIIB)): Adapt to Vector consumers.
929
9302004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
931
932 * java/awt/Component.java (deliverEvent): Implement.
933 (postEvent): Implement.
934 (handleEvent): Implement.
935 (translateEvent): New method.
936 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
937 * java/awt/Container.java (deliverEvent): Implement.
938 * java/awt/Event.java (paramString): Fix formatting.
939 * java/awt/Font.java (toString): Likewise.
940 * java/awt/Window.java (postEvent): Implement.
941
9422004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
943
944 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
945 Set window's focus owner upon receiving a FOCUS_LOST event.
946 * java/awt/Window.java (Window()): Refocus the previously
947 focused component within the window when the window regains the
948 top-level focus.
949 (setFocusOwner): New method.
950 * java/awt/Component.java (requestFocus): Add FIXME.
951
952 * libgcj.pc.in: Remove library flags.
953
9542004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
955
956 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
957 MOUSE_PRESSED event.
958 * java/awt/Component.java (requestFocus()): Handle Panel
959 specially. Post FOCUS_LOST event on opposite component.
960 (requestFocus(boolean)): Likewise.
961 (requestFocusInWindow(boolean)): Likewise.
962 (paramString): Reorder dimension fields.
963 * java/awt/Container.java (paramString): Fix string format.
964 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
965 Handle FOCUS_LOST events. Don't handle Windows specially. Only
966 process key events if the focus owner is non-null.
967 (dispatchKeyEvent): Likewise.
968 * java/awt/Frame.java (paramString): Fix formatting.
969 (generateName): New method.
970 (getUniqueLong): Likewise.
971 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
972 the temporary focus owner is null. If so, return the permanent
973 focus owner.
974 * java/awt/Panel.java (generateName): New method.
975 (getUniqueLong): Likewise.
976 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
977 signal handling to make callbacks more specific.
978
9792004-07-21 Michael Koch <konqueror@gmx.de>
980
981 * javax/swing/text/Position.java
982 (Bias): Implemented.
983
9842004-07-21 Michael Koch <konqueror@gmx.de>
985
986 * javax/swing/LookAndFeel.java
987 (provideErrorFeedback): New method.
988
9892004-07-21 Michael Koch <konqueror@gmx.de>
990
991 * javax/swing/JTextArea.java
992 (tabSize): New field.
993 (getTabSize): New method.
994 (setTabSize): Likewise.
995
9962004-07-21 Michael Koch <konqueror@gmx.de>
997
998 * javax/swing/ActionMap.java:
999 Fixed javadocs all over.
1000 (serialVersionUID): Made private.
1001 (parent): Don't explicitely initialize with default value.
1002 (get): SImplified.
1003 (keys): Reimplemented.
1004 (allKeys): Likewise.
1005 (convertSet): Removed.
1006 * javax/swing/ComponentInputMap.java:
1007 Fixed javadocs all over.
1008 (ComponentInputMap): Implemented.
1009 (put): Likewise.
1010 (clear): Likewise.
1011 (remove): Likewise.
1012 (SetParent): Likewise.
1013 (getComponent): Likewise.
1014 * javax/swing/InputMap.java:
1015 Fixed javadocs all over.
1016 (serialVersionUID): Made private.
1017 (parent): Don't explicitely initialize with default value.
1018 (get): SImplified.
1019 (keys): Reimplemented.
1020 (allKeys): Likewise.
1021 (convertSet): Removed.
1022
10232004-07-21 Michael Koch <konqueror@gmx.de>
1024
1025 * javax/swing/ActionMap.java,
1026 javax/swing/ComponentInputMap.java,
1027 javax/swing/InputMap.java,
1028 javax/swing/table/DefaultTableColumnModel.java,
1029 javax/swing/table/TableColumn.java,
1030 javax/swing/table/TableColumnModel.java,
1031 javax/swing/table/TableModel.java,
1032 javax/swing/text/AbstractDocument.java,
1033 javax/swing/text/TextAction.java:
1034 Reformated.
1035
10362004-07-21 Graydon Hoare <graydon@redhat.com>
1037
1038 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
1039 Make method non-static.
1040 * javax/swing/AbstractButton.java:
1041 Rename fields to match property names where possible.
1042 (iconTextGap): New property.
1043 * javax/swing/JCheckBox.java: Match AbstractButton changes.
1044 (init) New method, call from after various constructors.
1045 * javax/swing/JComponent.java (revalidate):
1046 Invalidate before queueing repair.
1047 * javax/swing/JList.java (getPreferredScrollableViewportSize):
1048 Reimplement in terms of visibleRowCount property.
1049 * javax/swing/JMenuButton.java: Match AbstractButton changes.
1050 * javax/swing/JScrollPane.java (createScrollListener):
1051 Remove tracing chatter.
1052 * javax/swing/JToggleButton.java: Match AbstractButton changes.
1053 * javax/swing/RepaintManager.java (addInvalidComponent):
1054 Don't invalidate.
1055 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
1056 calculations.
1057 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
1058 Mimic sun behavior on top left/right positioning.
1059 * javax/swing/ViewportLayout.java (preferredLayoutSize):
1060 Remove mistaken use of preferredScrollableViewportSize here.
1061 (layoutContainer): Use view's preferred size as basis.
1062 * javax/swing/plaf/basic/BasicButtonUI.java:
1063 Set, get, and use textIconGap property.
1064 (paint) Paint text returned from layout (with ellipsis).
1065 * javax/swing/plaf/basic/BasicListUI.java:
1066 Remove tracing chatter, correct various minor calculations.
1067 (getCellBounds): Update layout state before calculating.
1068 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
1069 Use margin default similar to sun's.
1070 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
1071 (createIncreaseIcon): Center icon, minimize margins.
1072 (createDecreaseIcon): Likewise.
1073 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
1074 Implement.
1075 (installUI): Call it.
1076 (uninstallDefaults): Implement.
1077 (uninstallUI): Call it.
1078 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
1079 Call existing Window constructor.
1080 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
1081 Set clip before painting.
1082
10832004-07-21 Olga Rodimina <rodimina@redhat.com>
1084
1085 * javax/swing/JMenuItem.java:
1086 (processMouseEvent): Reimplemented to deal with
1087 mouse drag events.
1088 (createMenuDragMouseEvent): New private helper method.
1089 Creates MenuDragMouseEvent.
1090 * javax/swing/MenuSelectionManager.java
1091 (componentForPoint): Implemented.
1092 (isComponentPartOfCurrentMenu): Made public.
1093 (processMouseEvent): Reimplemented to deal with
1094 mouse drag events.
1095 (setSelectedPath): Corrected small mistake that caused
1096 path to be set incorrectly.
1097 (getPath): If given component is JMenu then also add this
1098 menu's popup menu to the selected path.
1099 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1100 (getPath): Ditto.
1101 (getPreferredSize): Call getPreferredMenuItemSize().
1102 (getPreferredItemSize): Moved code from getPreferredSize to here.
1103 (installListeners): Install MouseMotionListeners.
1104 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
1105 if mouse wasn't released in the bounds of this menu item.
1106 (MenuDragMouseHandler): Implemented.
1107 * javax/swing/plaf/basic/BasicMenuUI.java:
1108 (installListeners): Install MouseMotionListener and
1109 MenuDrageMouseListener.
1110 (MenuDragMouseHandler): Implemented.
1111 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1112 (uninstallListeners): Implemented.
1113
11142004-07-21 Michael Koch <konqueror@gmx.de>
1115
1116 * javax/swing/JCheckBox.java: Reformated.
1117 (JCheckBox): Fixed all constructors.
1118 (isBorderPaintedFlat): New method.
1119 (setBorderPaintedFlat): New method.
1120 * javax/swing/JEditorPane.java
1121 (createEditorKitForContentType): Made public.
1122 (scrollToReference): Likewise.
1123 * javax/swing/JTextArea.java
1124 (setLineWrap): Fire property change.
1125 * javax/swing/JToggleButton.java
1126 (JToggleButton): New constructor.
1127 (JToggleButton): Simplified.
1128 * javax/swing/text/AttributeSet.java
1129 (FontAttribute): Renamed from FontCharacterAttribute.
1130 * javax/swing/text/JTextComponent.java
1131 (KeyBinBinding): Added javadoc.
1132 (JTextComponent): Likewise.
1133 (getAccessibleContext): Fixed javadoc.
1134 * javax/swing/text/View.java
1135 (View): Added javadoc.
1136 * javax/swing/text/TabableView.java: New file.
1137 * Makefile.am: Added javax/swing/text/TabableView.java.
1138 * Makefile.in: Regenerated.
1139
11402004-07-21 Graydon Hoare <graydon@redhat.com>
1141
1142 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
1143 * gnu/java/awt/peer/gtk/GtkToolkit.java
1144 (GtkErrorImage): New helper class.
1145 (bufferedImageOrError): New helper method.
1146 (createImage): Use it.
1147
11482004-07-21 David Jee <djee@redhat.com>
1149
1150 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
1151 (setCaretPosition): Scroll the text view so the new caret position
1152 is visible on screen.
1153
11542004-07-21 David Jee <djee@redhat.com>
1155
1156 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1157 (setBounds): Do not validate awtComponent here.
1158 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
1159 (getPreferredSize): New method.
1160 * java/awt/ScrollPane.java
1161 (ScrollPane): Set default size to 100x100.
1162 (addNotify): If child is not a Panel, wrap it with a new Panel.
1163 (paramString): Implement.
1164
11652004-07-21 Olga Rodimina <rodimina@redhat.com>
1166
1167 * javax/swing/JMenu.java:
1168 (setSelected): Display popup menu only if this menu
1169 is showing on the screen.
1170 * javax/swing/JPopupMenu.java:
1171 (processMouseEvent): Added comment.
1172 (processKeyEvent): Likewise.
1173 * javax/swing/MenuSelectionManager.java:
1174 (clearSelectedPath): Only fireStateChanged() after
1175 selected path was changed, not before.
1176 (setSelectedPath): Likewise.
1177 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1178 (paintMenuItem): Corrected position of menu item's
1179 icon.
1180 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1181 (installUI): Correct setDefaultLightWeightPopupEnabled call.
1182 (popupMenuCanceled): Reimplemented.
1183 (popupMenuWillBecomeVisible): Select first menu item by default
1184 when displaying free floating popup menus.
1185 (TopWindowListener): Reimplemented.
1186
11872004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1188
1189 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
1190 Panel from being painted twice when it is first shown.
1191
11922004-07-21 Olga Rodimina <rodimina@redhat.com>
1193
1194 * java/awt/Window.java: Reverted changes from my
1195 previous patch for creating window without an owner.
1196 * javax/swing/SwingUtilities.java:
1197 (SwingUtilities.OwnerFrame): made static.
1198 (OwnerFrame.setVisible): New method. Overridden with
1199 empty implementation.
1200 (OwnerFrame.isShowing): New method. Ovverridden
1201 to return always true.
1202
12032004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1204
1205 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1206 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1207 (GtkComponentPeer): Remove temporary try/catch block.
1208 (setVisible): Call show and hide.
1209 (show): Make native.
1210 (hide): Likewise.
1211 (getArgs): Don't add "visible" argument.
1212 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1213 (property_notify_predicate): Return Bool instead of int.
1214 (find_layout): New function.
1215 (connectJObject): Call find_layout.
1216 (connectSignals): Likewise.
1217 (moveLayout): Likewise.
1218 (gtkLayoutSetVisible): Likewise.
1219
12202004-07-21 Mark Wielaard <mark@klomp.org>
1221
1222 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1223 on notifier object before calling notifyAll().
1224
12252004-07-21 Olga Rodimina <rodimina@redhat.com>
1226
1227 * java/awt/Window.java: Changed constructors to use new
1228 method that is described below. Constructors call this
1229 methods only if newly created window should have an owner.
1230 (setWindowOwner): New method. Implementation for
1231 this method is moved from this(owner,configuration).
1232 * javax/swing/JWindow.java:
1233 (JWindow): Reimplement to use SwingUtilities.ownerFrame
1234 instead of owner.
1235 * javax/swing/SwingUtilities.java:
1236 (ownerFrame): Change type of this field to OwnerFrame.
1237 (getOwnerFrame): Changed to return object of type OwnerFrame.
1238 (SwingUtilities.OwnerFrame): New class. Represents owner
1239 of a Window that is not provided with one.
1240
12412004-07-21 Olga Rodimina <rodimina@redhat.com>
1242
1243 * javax/swing/AbstractButton.java:
1244 (configurePropertiesFromAction): Set action command
1245 to button's text by default if action command is not
1246 explicitely specified.
1247 * javax/swing/JMenu.java: Remove unnecessary listener
1248 and methods relevant to it.
1249 (setSelected): Reimplemented.
1250 (menuSelectionChanged): Moved most part of implementation to
1251 setSelected() and call it instead.
1252 * javax/swing/JMenuItem.java:
1253 (init): Comment out statement that sets paint_border to false.
1254 (configurePropertiesFromAction): Do not set accelerator
1255 for JMenu.
1256 (menuSelectionChanged): Change selected index in the selection
1257 model of menu item's parent.
1258 * javax/swing/JPopupMenu.java:
1259 (remove): Set constraints.fill field to GridBagConstraints.BOTH
1260 instead of GridBagConstraints.HORIZONTAL.
1261 (insert): Likewise.
1262 (createActionChangeListener): Implemented.
1263 (setVisible): Correct location of HeavyWeightMenu and
1264 don't firePopupMenuCanceled().
1265 (menuSelectionChanged): Implemented.
1266 (ActionChangeListener): New Listener. Implemented.
1267 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1268 (BasicMenuBarUI.ContainerHandler): Implemented.
1269 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1270 (paintMenuItem): Uncommented out code that paints
1271 icon, now that icons are working properly.
1272 (PropertyChangeListener): Implemented.
1273 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1274 Added javadocs.
1275 (topWindowListener): New field.
1276 (Constructor): initialize topWindowListener.
1277 (BasicPopupMenuUI.TopWindowListener): Implemented.
1278 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
1279 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
1280 Implemented.
8e99fb4f
GH
1281
12822004-07-21 Michael Koch <konqueror@gmx.de>
1283
1284 * javax/swing/plaf/basic/BasicButtonUI.java
1285 (paintFocus): Fixed method signature.
1286 (paintButtonPressed): Likewise.
1287 (paintButtonNormal): Likewise.
1288 (paintText): New method.
1289 * javax/swing/plaf/basic/BasicLabelUI.java
1290 (paint): Re-indented.
1291 * javax/swing/plaf/basic/BasicTextUI.java
1292 (installUI): Set parent textComponent to opaque.
1293 * javax/swing/text/DefaultHighlighter.java
1294 (checkPositions): New helper method.
1295 (addHighlight): Throws BadLocationException, check positions.
1296 (changeHighlight): Likewise.
1297 * javax/swing/text/EditorKit.java
1298 (EditorKit): Implements Serializable.
1299 * javax/swing/text/JTextComponent.java
1300 (getUI): Added javadoc.
1301 (setUI): Likewise.
1302 (upadteUI): Added javadoc, don't revalidate and repaint.
1303
13042004-07-21 David Jee <djee@redhat.com>
1305
1306 * java/awt/GridBagLayout.java
1307 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
1308 * javax/swing/AbstractButton.java
1309 (setText): Reindent.
1310 * javax/swing/RepaintManager.java
1311 (addInvalidComponent): Find the first ancestor that isValidateRoot().
1312
13132004-07-21 Michael Koch <konqueror@gmx.de>
1314
1315 * javax/swing/JFormattedTextField.java
1316 (value): New field.
1317 (JFormattedTextField): Implemented.
1318 (getValue): Likewise.
1319 (setValue): Likewise.
1320 * javax/swing/LookAndFeel.java
1321 (getSupportsWindowDecorations): New method.
1322 * javax/swing/UIDefaults.java:
1323 Use java.beans.PropertyChangeSupport instead of doing all ourself.
1324 (addPropertyChangeListener): Made public.
1325 (addResourceBundle): Likewise.
1326 (removeResourceBundle): Likewise.
1327 (setDefaultLocale): Likewise.
1328 * javax/swing/plaf/basic/BasicRootPaneUI.java
1329 (BasicRootPaneUI): Implements PropertyChangeListener.
1330 (propertyChange): New method.
1331 * javax/swing/plaf/basic/BasicTextUI.java
1332 (BasicHighlighter): New inner class.
1333 (createHighlighter): New method.
1334 * javax/swing/plaf/basic/BasicToolBarUI.java
1335 (DragWindow): Extends java.awt.Window.
1336 * javax/swing/text/JTextComponent.java
1337 (getDocument): Removed debug output.
1338 * javax/swing/plaf/basic/BasicTextFieldUI.java,
1339 javax/swing/text/DefaultHighlighter.java,
1340 javax/swing/text/FieldView.java,
1341 javax/swing/text/PlainView.java: New files.
1342 * Makefile.am: Added new files.
1343 * Makefile.in: Regenerated.
1344
13452004-07-21 Michael Koch <konqueror@gmx.de>
1346
1347 * javax/swing/JEditorPane.java
1348 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
1349 (createEditorKitForContentType): Likewise.
1350 * javax/swing/text/DefaultEditorKit.java
1351 (serialVersionUID): Added constant field.
1352 (EndOfLineStringPropery): Fixed typo.
1353 (DefaultEditorKit): New constructor.
1354 * javax/swing/text/Segment.java:
1355 Import java.text.CharacterIterator.
1356 * javax/swing/text/CharacterIterator.java,
1357 javax/swing/text/PlainEditorKit.java: Removed.
1358 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1359 javax/swing/text/PlainEditorKit.java.
1360 * Makefile.in: Regenerated.
1361
13622004-07-21 Michael Koch <konqueror@gmx.de>
1363
1364 * javax/swing/JButton.java,
1365 javax/swing/text/DefaultEditorKit.java,
1366 javax/swing/text/EditorKit.java,
1367 javax/swing/text/Segment.java,
1368 javax/swing/text/StyledEditorKit.java:
1369 Reformatted.
1370
13712004-07-21 Michael Koch <konqueror@gmx.de>
1372
1373 * javax/swing/ImageIcon.java
1374 (file): Removed.
1375 (description): Renamed from descr.
1376 (ImageIcon): Added missing constructors.
1377 (setParent): Removed.
1378 (setImageObserver): New method.
1379 (getImageObserver): New method.
1380 (paintIcon): Handle observer = null.
1381 * javax/swing/JButton.java
1382 (removeNotify): Fixed javadoc.
1383 (updateUI): Simplified.
1384 * javax/swing/JRootPane.java
1385 (serialVersionUID): New constant field.
1386 * javax/swing/UIManager.java:
1387 Fixed javadocs all over.
1388 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1389 * javax/swing/text/AbstractDocument.java
1390 (createPosition): Throws BadLocationException.
1391 (getText): Likewise.
1392 (remove): Likewise.
1393 * javax/swing/text/ComponentView.java
1394 (modelToView): Likewise.
1395 * javax/swing/text/DefaultEditorKit.java:
1396 Made all public methods public.
1397 (read): Throws BadLocationException and IOException.
1398 (write): Likewise.
1399 * javax/swing/text/EditorKit.java:
1400 Made all public methods public.
1401 (serialVersionUID): New constant field.
1402 (clone): New method.
1403 (read): Throws BadLocationException and IOException.
1404 (write): Likewise.
1405 * javax/swing/text/Segment.java
1406 (array): Made public.
1407 (count): Likewise.
1408 (offset): Likewise.
1409 (Segment): New constructors.
1410 (clone): Reimplemented.
1411 * javax/swing/text/StyledEditorKit.java
1412 (serialVersionUID): New constant field.
1413
14142004-07-21 Graydon Hoare <graydon@redhat.com>
1415
1416 * java/awt/image/BufferedImage.java
1417 (getSource): Implement.
1418 * javax/swing/ImageIcon.java
1419 (ImageIcon): Implement ctor.
1420 * javax/swing/ScrollPaneLayout.java
1421 (preferredLayoutSize): Be more careful about nulls.
1422
14232004-07-21 Michael Koch <konqueror@gmx.de>
1424
1425 * javax/swing/text/AttributeSet.java
1426 (CharacterAttribute): New interface
1427 (ColorAttribute): Likewise.
1428 (FontCharacterAttribute): Likewise.
1429 (ParagraphAttribute): Likewise.
1430 * javax/swing/text/DefaultCaret.java
1431 (moveCaret): New method.
1432 (positionCaret): Likewise.
1433 (repaint): Made protected.
1434 * javax/swing/text/JTextComponent.java
1435 (KeyBinding): Made it static.
1436 * javax/swing/text/View.java
1437 (getContainer): Honor parent == null.
1438
14392004-07-21 Michael Koch <konqueror@gmx.de>
1440
1441 * javax/swing/text/AbstractDocument.java:
1442 Reformatted.
1443
14442004-07-21 Michael Koch <konqueror@gmx.de>
1445
1446 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1447 Import javax.swing.UIManager explicitely.
1448 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1449 (ScrollingButton): Made it static.
1450
14512004-07-21 Michael Koch <konqueror@gmx.de>
1452
1453 * javax/swing/UIDefaults.java
1454 (ActiveValue): Made public.
1455 (LazyValue): Likewise.
1456 * javax/swing/plaf/basic/BasicTextUI.java
1457 (RootView): Reintroduced.
1458 (view): Removed.
1459 (rootView): New field.
1460 (installUI): Create document if needed, initialize rootView.
1461 (uninstallUI): Hanle rootView.
1462 (paint): Likewise.
1463 (getRootView): Likewise.
1464 (setView): Likewise.
1465 * javax/swing/text/DefaultCaret.java:
1466 Renamed all "evt" variables to "event".
1467
14682004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1469
1470 * libgcj.spec.in: Add -l-java-util-logging.
1471
14722004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1473
1474 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1475 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1476 gtk-xft-dpi can no calculate the right value.
1477 (dpi_changed_cb): Mark *pspec as unsused.
1478
14792004-07-21 David Jee <djee@redhat.com>
1480
1481 * java/awt/Component.java
1482 (move): Delegate to setBounds().
1483 (resize): Likewise.
1484 (reshape): Fix so it repaints parent and self only when necessary.
1485
14862004-07-21 David Jee <djee@redhat.com>
1487
1488 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1489 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1490 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1491 (setVisible): Likewise.
1492 (show): Likewise.
1493 (hide): Likewise.
1494 (getArgs): Likewise.
1495 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1496 (property_notify_predicate): Likewise.
1497 (find_layout): Likewise.
1498 (connectJObject): Likewise.
1499 (connectSignals): Likewise.
1500 (moveLayout): Likewise.
1501 (gtkLayoutSetVisible): Likewise.
1502
15032004-07-21 Graydon Hoare <graydon@redhat.com>
1504
1505 * Makefile.am
1506 (jv_convert_LDADD):
1507 (gij_LDADD):
1508 (rmic_LDADD):
1509 (rmiregistry_LDADD): Add lib-java-util-logging.la
1510 * Makefile.in: Regenerate.
1511
15122004-07-21 Michael Koch <konqueror@gmx.de>
1513
1514 * javax/swing/text/AbstractDocument.java
1515 (replace): Dont use protected method of java.util.Vector directly.
1516
15172004-07-21 Michael Koch <konqueror@gmx.de>
1518
1519 * javax/swing/plaf/basic/BasicTextUI.java
1520 (installUI): Call specialized install methods.
1521 (installDefaults): New method.
1522 (installListeners): Likewise.
1523 (installKeyboardActions): Likewise.
1524 (uninstallUI): Likewise.
1525 (uninstallDefaults): New method.
1526 (uninstallListeners): Likewise.
1527 (uninstallKeyboardActions): Likewise.
1528 (getPropertyPrefix): New abstract method.
1529 (paint): Made final, just call paintSafely().
1530 (paintSavely): New method.
1531 (paintBackground): Likewise.
1532 (getVisibleEditorRect): Likewise.
1533 * javax/swing/text/LayeredHighlighter.java,
1534 javax/swing/text/TabExpander.java: New files.
1535 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1536 and javax/swing/text/TabExpander.java.
1537 * Makefile.in: Regenerated.
1538
15392004-07-21 Michael Koch <konqueror@gmx.de>
1540
1541 * javax/swing/plaf/basic/BasicTextUI.java
1542 (BasicTextUI): Made abstract.
1543 (BasicCaret): New inner class.
1544 (view): Don't explicitely initialize with "null".
1545 (textComponent): New field.
1546 (textColor): Removed.
1547 (disabledTextColor): Removed.
1548 (normalBackgroundColor): Removed.
1549 (RootView): Removed commented out inner class.
1550 (createUI): Removed.
1551 (createCaret): New method.
1552 (getComponent): Likewise.
1553 (installUI): Initialize textComponent only.
1554 (getPreferredSize): Use installed JTextComponent.
1555 (setView): New method.
1556 (create): Likewise.
1557 * javax/swing/text/JTextComponent.java
1558 (highlighter): New field.
1559 (caretColor): Likewise.
1560 (disabledTextColor): Likewise.
1561 (seletedTextColor): Likewise.
1562 (selectionColor): Likewise.
1563 (setUI): New method.
1564 (getCaretColor): Likewise.
1565 (setCaretColor): Likewise.
1566 (getDisabledColor): Likewise.
1567 (setDisabledColor): Likewise.
1568 (getSelectedTextColor): Likewise.
1569 (setSelectedTextColor): Likewise.
1570 (getSelectionColor): Likewise.
1571 (setSelectionColor): Likewise.
1572 (getHighlighter): Likewise.
1573 (setHighlighter): Likewise.
1574 (replaceSelection): Likewise.
1575
15762004-07-21 Michael Koch <konqueror@gmx.de>
1577
1578 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1579 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1580 * javax/swing/plaf/basic/BasicToolBarUI.java
1581 (BasicToolBarUI): Implements SwingConstants.
1582
15832004-07-21 Michael Koch <konqueror@gmx.de>
1584
1585 * javax/swing/JPopupMenu.java: Removed CVS tags.
1586 * javax/swing/UIDefaults.java: Reformatted.
1587 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1588 Explicitely import used classes.
1589
15902004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1591
1592 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1593 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1594 (GtkComponentPeer): Remove temporary try/catch block.
1595 (setVisible): Call show and hide.
1596 (show): Make native.
1597 (hide): Likewise.
1598 (getArgs): Don't add "visible" argument.
1599 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1600 (property_notify_predicate): Return Bool instead of int.
1601 (find_layout): New function.
1602 (connectJObject): Call find_layout.
1603 (connectSignals): Likewise.
1604 (moveLayout): Likewise.
1605 (gtkLayoutSetVisible): Likewise.
1606
16072004-07-21 Olga Rodimina <rodimina@redhat.com>
1608
1609 * javax/swing/AbstractButton.java:
1610 (setDisplayedMnemonicIndex): Check if button
1611 text is not null before checking its length.
1612 * javax/swing/JMenuItem.java:
1613 (processMouseEvent): Disarm menu item if mouse has
1614 exited it.
1615 * javax/swing/plaf/basic/BasicMenuUI.java:
1616 (MouseInputHandler.mouseEntered): Do not raise
1617 popup menu if this menu is already selected.
1618 (MouseInputHandler.mousePressed): Do not fire
1619 MenuEvents.
1620 (MenuHandler): Implemented.
1621
16222004-07-21 Olga Rodimina <rodimina@redhat.com>
1623
1624 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1625 (getSelectedObjects): Implemented.
1626 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1627 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1628 Added javadoc for few methods.
1629 (processMouseEvent): Made public.
1630 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1631 (processMouseEvent): Likewise.
1632
16332004-07-21 Olga Rodimina <rodimina@redhat.com>
1634
1635 * javax/swing/AbstractButton.java:
1636 (init): Set display mnemonic index to -1.
1637 (setMnemonic(char)): Use setMnemonic(int).
1638 (setMnemonic(int)): Set display mnemonic index.
1639 (getDisplayedMnemonicIndex): Change method signature
1640 by removing 'index' parameter.
1641 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1642 Added default for Menu.selectionBackground.
1643 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1644 (paintMenuItem): Change background color of the selected
1645 menu item.
1646 (paintText): Paint differently when menu item is disabled.
1647 Also paint mnemonic if it appears in the menu item's label.
1648 (paintAccelerator): Paint accelerator differently
1649 if menu item is disabled.
1650 * javax/swing/plaf/basic/BasicMenuUI.java:
1651 (installDefaults): Install defaults for
1652 selectionForeground and selectionBackground.
1653 (uninstallDefaults): Uninstall defauls for
1654 selectionForeground and selectionBackground.
1655
16562004-07-21 Michael Koch <konqueror@gmx.de>
1657
1658 * javax/swing/text/AbstractDocument.java
1659 (BranchElement): Implemented.
1660 (LeafElement): Implemented.
1661 * javax/swing/text/DefaultCaret.java:
1662 Import used classes.
1663 (serialVersionUID): New constant.
1664 * javax/swing/text/JTextComponent.java
1665 (AccessibleJTextComponent): Removed dead declaration.
1666 (caretPos): Removed.
1667 (setCaret): New method.
1668 * javax/swing/text/PlainDocument.java
1669 (rootElement): New field.
1670 (PlainDocument): Initialize rootElement.
1671 (createDefaultRoot): New method.
1672 (getDefaultRootElement): Implemented.
1673 * javax/swing/text/View.java: Reformatted.
1674 * javax/swing/text/ViewFactory.java
1675 (create): Added javadoc.
1676
16772004-07-21 Michael Koch <konqueror@gmx.de>
1678
1679 * javax/swing/ToolTipManager.java: Reformatted.
1680
16812004-07-21 Rodimina Olga <rodimina@redhat.com>
1682
1683 * javax/swing/AbstractButton.java
1684 (changeEvent): New field.
1685 (fireItemStateChanged): Change source of the event
1686 to 'this' before firing it to button listeners.
1687 (fireActionPerformed): Likewise.
1688 (fireStateChanged): Likewise.
1689 (createActionListener): Do not set source
1690 of the event to AbstractButton.
1691 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1692 (ContainerHandler.componentAdded): Removed
1693 print out statement.
1694 (ContainerHandler.componentRemoved): Likewise.
1695
16962004-07-21 Michael Koch <konqueror@gmx.de>
1697
1698 * javax/swing/text/Highlighter.java: New file.
1699 * Makefile.am: Added javax/swing/text/Highlighter.java.
1700 * Makefile.in: Regenerated.
1701
17022004-07-21 Michael Koch <konqueror@gmx.de>
1703
1704 * javax/swing/ToolTipManager.java
1705 (stillInsideTimerAction): Fixed constructor arguments.
1706 (outsideTimerAction): Likewise.
1707 (insideTimerAction): Likewise.
1708
17092004-07-21 Michael Koch <konqueror@gmx.de>
1710
1711 * javax/swing/JButton.java: Reformatted.
1712 * javax/swing/JFormattedTextField.java
1713 (getUIClassID): Implemented.
1714 * javax/swing/JRootPane.java
1715 (serialVersionUID): New constant.
1716 * javax/swing/JTextField.java
1717 (align): New field.
1718 (JTextField): Simplified.
1719 (getUIClassID): New method.
1720 (getActionListeners): Added @since tag.
1721 (setColumns): Invalidate layout and repaint.
1722 (getHorizontalAlignment): New method.
1723 (setHorizontalAlignment): New method.
1724 (selectAll): Removed.
1725 * javax/swing/SwingUtilities.java
1726 (getAncestorOfClass): Removed redundant @see tag.
1727 (isLeftMouseButton): Fixed implementation.
1728 (isMiddleMouseButton): Likewise.
1729 (isRightMouseButton): Likewise.
1730 * javax/swing/text/AbstractDocument.java
1731 (AttributeContext.addAttribute): New method.
1732 (AttributeContext.addAttributes): New method.
1733 (AttributeContext.getEmptySet): New method.
1734 (AttributeContext.reclaim): New method.
1735 (AttributeContext.removeAttribute): New method.
1736 (AttributeContext.removeAttributes): New method.
1737 * javax/swing/text/Document.java
1738 (createPosition): Throws BadLocationException.
1739 (getText): Likewise.
1740 (remove): Likewise.
1741 * javax/swing/text/JTextComponent.java
1742 (getText): Return null if no document is set. Catch
1743 BadLocationException.
1744 (getUI): Return ui.
1745 (updateUI): Simplified.
1746
17472004-07-21 Michael Koch <konqueror@gmx.de>
1748
1749 * javax/swing/JButton.java
1750 (removeNotify): Fixed javadoc.
1751 (updateUI): Simplified.
1752
17532004-07-21 David Jee <djee@redhat.com>
1754
1755 * gnu/java/awt/image/ImageDecoder.java
1756 (startProduction): Only add consumer if it's not added yet.
1757 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1758 (GdkPixbufDecoder): Don't call initState() here.
1759 (produce): Call initState() here, to ensure area_prepared and
1760 area_updated signals are properly connected.
1761 * gnu/java/awt/peer/gtk/GtkImage.java
1762 (setColorModel): Use equals() to compare ColorModel objects.
1763 (setPixels): Likewise.
1764 * java/awt/image/ColorModel.java
1765 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1766 * java/awt/image/RGBImageFilter.java
1767 (setColorModel): Set consumer's color model.
1768 (setPixels): Use equals() to compare ColorModel objects.
1769
eecbcf54
BM
17702004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1771
1772 * java/net/URLConnection.java (position): New field.
1773 (dateFormat1, dateFormat2, dateFormat3): Removed.
1774 (dateFormats): New field.
1775 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1776 each time instead of re-allocating.
1777 (initializeDateFormats): Initialize 'dateFormats'.
1778
f82bb1be
BM
17792004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1780
1781 PR libgcj/16591
1782 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1783 is defined.
1784
f6bbce40
BM
17852004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1786
1787 * java/net/Socket.java (getImpl): Now private. Remove comment.
1788
8246c778
BM
17892004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1790
1791 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1792 of chained Writer when calling super-constructor.
1793 * java/io/FilterWriter.java (FilterWriter): Likewise.
1794 * java/io/PrintWriter.java (PrintWriter): Likewise.
1795
b4ffdef7
BM
17962004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1797
1798 * prims.cc (process_gcj_properties): Don't increment i within LHS
1799 of assignment.
1800
963ddbd5
PB
18012004-07-19 Per Bothner <per@bothner.com>
1802
1803 Print -verbose:message on "loading", not initialization.
1804 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1805 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1806 gcj::verbose_class_flag.
1807 * java/lang/natClass.cc (initializeClass): Don't print message here.
1808 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1809 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1810 (_Jv_PrepareCompiledClass): Likewise.
1811
60557047
MK
18122004-07-18 Matthias Klose <doko@debian.org>
1813
1814 * configure.in: Substitute target_noncanonical.
1815 * configure: Regenerate
1816
1792f52d
MK
18172004-07-17 Michael Koch <konqueror@gmx.de>
1818
1819 * java/lang/String.java: Fixed javadocs all over.
1820
baa61e09
MK
18212004-07-17 Mark Wielaard <mark@klomp.org>
1822
1823 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1824 when size is smaller.
1825 * java/io/RandomAccessFile.java (setLength): Use truncate for
1826 shrinking the file and seek plus write for expanding the file.
1827
18282004-07-17 Michael Koch <konqueror@gmx.de>
1829
1830 * gnu/java/nio/channels/natFileChannelPosix.cc
1831 (implTruncate): Always save current position. Only reposition file
1832 pointer to where we started if not beyond new lenght. Reposition file
1833 pointer to file length if it points beyond the end of file.
1834
6fd3cc05
MW
18352004-07-17 Mark Wielaard <mark@klomp.org>
1836
1837 * javax/swing/Box.java: Put FIXME comment above class declaration.
1838 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1839 * javax/swing/JCheckBox.java: Likewise.
1840 * javax/swing/JDialog.java: Likewise.
1841 * javax/swing/JRadioButton.java: Likewise.
1842 * javax/swing/JToggleButton.java: Likewise.
1843 * javax/swing/UIManager.java: Likewise.
1844 * javax/swing/border/TitledBorder.java: Likewise.
1845 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1846 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1847 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1848 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1849 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1850 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1851 * javax/swing/text/JTextComponent.java: Likewise.
1852
320e32f6
MK
18532004-07-17 Jeroen Frijters <jeroen@frijters.net>
1854
1855 * java/net/DatagramPacket.java (setAddress): Removed check for
1856 null address.
1857
18582004-07-17 Michael Koch <konqueror@gmx.de>
1859
1860 * java/net/DatagramSocket.java
1861 (getLocalAddress): Check if socket is bound or not.
1862 * java/net/Socket.java
1863 (getLocalAddrss): Check if socket is bound or not.
1864 (getPort): Return -1 when not connected. Dont check getImpl() for
1865 null.
1866 (setReuseAddress): Check if socket is closed.
1867 (isConnected): Check if getImpl() returns null.
1868
10c383a4
MW
18692004-07-17 Mark Wielaard <mark@klomp.org>
1870
1871 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1872 on notifier object before calling notifyAll().
1873
2ccc5a95
MK
18742004-07-17 Michael Koch <konqueror@gmx.de>
1875
1876 * gnu/java/nio/channels/FileChannelImpl.java
1877 (finalize): Added javadoc.
1878
61ce29b1
GL
18792004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1880
1881 * java/text/CollationElementIterator.java
1882 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1883 (setText): Use ArrayList instead of Vector.
1884
651ba822
MK
18852004-07-17 Michael Koch <konqueror@gmx.de>
1886
1887 * java/nio/ByteOrder.java
1888 (static): Removed. Not needed.
1889 Thanks to Patrick Reali for noticing.
1890 * java/nio/charset/CharsetDecoder.java
1891 (decode): Fix for classpath bug #9177: Reset state before flipping.
1892
e3fe5b9c
MK
18932004-07-17 Michael Koch <konqueror@gmx.de>
1894
1895 * java/security/Security.java: Fixed javadocs all over.
1896
316a1df4
MK
18972004-07-17 Michael Koch <konqueror@gmx.de>
1898
1899 * gnu/java/awt/EmbeddedWindow.java
1900 (static): Removed.
1901 (addNotify): Set peer via reflection.
1902 (setWindowPeer): Removed.
1903 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1904 * Makefile.am (nat_source_files):
1905 Removed gnu/java/awt/natEmbeddedWindow.cc.
1906 * Makefile.in: Regenerated.
1907
c0f43fa7
RE
19082004-07-17 Richard Earnshaw <rearnsha@arm.com>
1909
1910 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1911 assignment.
1912 * configure: Regenerated.
1913
4c86f325
NN
19142004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1915
b764adea
NN
1916 * configure.in: Use build_noncanonical rather than build_alias.
1917 * configure: Rebuild.
1918
f11d297f
NN
1919 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1920 by logic refactoring. Move default definition of NATIVE closer
1921 to first alternate definition.
1922 * configure: Regenerate.
1923
4c86f325
NN
1924 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1925 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1926 gcj/Makefile.in: Regenerate.
1927 * configure.in: Set ZIP and GCJH. Remove redundant condition
1928 in AM_CONDITIONAL(NATIVE,...)
1929 * configure: Regenerate.
1930
bc03b358
NN
19312004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1932
ed2e3d33
NN
1933 * configure.in: Use target_noncanonical rather than
1934 target_alias for forward-compatibility with autoconf 2.59.
1935 * configure: Regenerate.
1936 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1937 testsuite/Makefile.am: Substitute target_noncanonical.
1938 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1939 testsuite/Makefile.in: Regenerate.
1940
bc03b358
NN
1941 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1942 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1943 * acinclude.m4: Include acx.m4.
1944 * aclocal.m4: Regenerate.
1945 * configure: Regenerate.
1946
cbd7a79b
BM
19472004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1948
1949 PR libgcj/16574
1950 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1951 (decimalFormat): New static variable.
1952 (sbuf): Likewise.
1953 (getTime): New. Override Date.getTime().
1954 (toString): Synchronize. Use decimalFormat to format nanos value
1955 correctly. Truncate extra zeros.
1956 (before): Compare getNanos() only if getTime() is equal.
1957 (after): Likewise.
1958
b2281cb3
NN
19592004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1960
36609570
NN
1961 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1962 * configure.in: ...here.
1963 * aclocal.m4: Regenerate.
1964 * configure: Regenerate.
1965
b2281cb3
NN
1966 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1967 * configure: Rebuilt with autoconf 2.13.
1968 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1969 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1970
b845ed9f
BM
19712004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1972
1973 PR libgcj/16204
1974 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1975 large file support.
1976 * Makefile.in: Rebuilt.
1977 * testsuite/libjava.lang/LargeFile.java: New test case.
1978 * testsuite/libjava.lang/LargeFile.out: New file.
1979
ade1907d
JQ
19802004-07-14 Jerry Quinn <jlquinn@optonline.net>
1981
1982 * java/beans/EventHandler.java: Remove debugging statements.
1983
12e8e7ea
JQ
19842004-07-14 Jerry Quinn <jlquinn@optonline.net>
1985
1986 * java/beans/EventHandler.java: New file.
1987 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1988 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1989 testsuite/Makefile.in: Regenerate.
1990
7cb73054
AT
19912004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1992
1993 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1994 flag to the gcj_setup.
1995 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1996 the tclsh.
1997 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1998 deprecation flag change. 58 XFAILS removed.
1999
220a826e
UW
20002004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
2001
2002 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
2003 -fno-use-divide-subroutine.
2004 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
2005 (HANDLE_FPE): Define.
2006 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
2007 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
2008 (HANDLE_DIVIDE_OVERFLOW): Define.
2009
c1b4f64d
MK
20102004-07-14 Michael Koch <konqueror@gmx.de>
2011 Matthias Klose <doko@debian.org>
2012
12e8e7ea 2013 * java/awt/im/InputContext.java: Initialize in, line.
c1b4f64d 2014
5549179f
UW
20152004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
2016
2017 * interpret.cc (run): Correctly access libffi return values of
2018 integral smaller-than-int type; these are implicitly promoted.
2019
6187fd28
BM
20202004-07-13 Bryce McKinlay <mckinlay@redhat.com>
2021
2022 PR libgcj/7587
2023 * interpret.cc (compile_mutex): New.
2024 (_Jv_InitInterpreter): New. Initialize compile_mutex.
2025 (run): Lock compile_mutex before calling compile() if compilation is
2026 required.
2027 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
2028 * include/java-interp.h (_Jv_InitInterpreter): Declare.
2029
7a1c3d48
BM
20302004-07-12 Bryce McKinlay <mckinlay@redhat.com>
2031
2032 PR libgcj/15713
2033 * include/jvm.h (_Jv_value): New union type.
2034 * gcj/field.h (_Jv_Field): Add new _addr union field variants
2035 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
2036 union members.
2037
717b2091
SG
20382004-07-12 Scott Gilbertson <scottg@mantatest.com>
2039
2040 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
2041 * gnu/awt/xlib/XOffScreenImage.java
2042 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
2043 constructor argument. Add constructor using ImageProducer.
2044 (getSource): Implement.
2045 (imageComplete): New method.
2046 (setColorModel): New method.
2047 (setDimensions): New method.
2048 (setHints): New method.
2049 (setPixels): New method.
2050 (setProperties): New method.
2051 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
2052 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
2053
31a7b755
BM
20542004-07-11 Bryce McKinlay <mckinlay@redhat.com>
2055
abd1b60d 2056 PR libgcj/16478
31a7b755
BM
2057 * prims.cc (_Jv_CreateJavaVM): Fix comment.
2058 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
2059 (finalizerReady): Now native.
2060 (run): Likewise.
2061 (runFinalizers): Removed.
2062 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
2063 a primitive lock, and don't hold it while running the finalizers.
2064 (runFinalizers): Implement. Don't aquire any Java lock.
2065 (finalizerReady): Use lock primitives to signal finalizer thread.
2066
eeb32988
MW
20672004-07-11 Mark Wielaard <mark@klomp.org>
2068
2069 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
2070 * java/net/URLStreamHandler.java (parseURL): When url file part
2071 doesn't contain a '/' just ignore context.
2072
bbb362e6
UW
20732004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
2074
2075 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
2076 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
2077 (MAKE_THROW_FRAME): Do not modify PSW address.
2078 (INIT_SEGV): Install SIGINFO-style signal handler.
2079 (INIT_FPE): Likewise.
2080
33dc5b0b
BM
20812004-07-10 Bryce McKinlay <mckinlay@redhat.com>
2082
2083 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
2084 status. 21 xfail's removed, 1 added.
2085
a4548f27
BM
20862004-07-10 Bryce McKinlay <mckinlay@redhat.com>
2087
2088 * gcj/javaprims.h: Regenerate CNI namespace definitions.
2089
8f0ce8da
IK
20902004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
2091
2092 * java/text/MessageFormat.java
2093 (formatInternal): Append "{n}" if argument n is unavailable.
2094 (format(Object, StringBuffer, FieldPosition)): This
2095 should be equivalent to format(Object[],
2096 StringBuffer, FieldPosition).
2097
3ee7acd1
BM
20982004-07-09 Bryce McKinlay <mckinlay@redhat.com>
2099
2100 * java.util.Calendar.java (cache): New private static field. Cached
2101 mappings of locales->calendar classes.
2102 (ctorArgTypes): New private static field. Singleton argument for
2103 calendar class constructor lookup.
2104 (getInstance): Cache Locale->Calendar class mappings using HashMap.
2105 Optimize by bypassing reflection instantiation for the
2106 GregorianCalendar case.
2107
284d6a1f
BM
21082004-07-09 Bryce McKinlay <mckinlay@redhat.com>
2109
2110 * java/util/Calendar.java: Use getSystemClassLoader as argument for
2111 ResourceBundle.getBundle() calls.
2112 * java/util/GregorianCalendar.java: Likewise.
2113 * java/util/Currency.java: Likewise.
2114 * java/text/BreakIterator.java: Likewise.
2115 * java/text/Collator.java: Likewise.
2116 * java/text/DateFormat.java: Likewise.
2117 * java/text/DateFormatSymbols.java: Likewise.
2118 * java/text/DecimalFormatSymbols.java: Likewise.
2119 * java/text/NumberFormat.java: Likewise.
2120 * java/awt/Window.java: Likewise.
2121
21f56031
BM
21222004-07-09 Bryce McKinlay <mckinlay@redhat.com>
2123
2124 * java/util/ResourceBundle.java (bundleCache): Renamed from
2125 resourceBundleCache. Update comments.
2126 (getObject): Don't catch MissingResourceException.
2127 (getBundle(String)): Remove 'final'. Use system classloader if
2128 getCallingClassLoader returned null.
2129 (getBundle(String, Locale)): Likewise.
2130 (BundleKey): New private class. HashMap key for bundle cache lookup.
2131 (lookupKey): New. Singleton instance of BundleKey.
2132 (nullEntry): New. Cache entry to represent failed lookups.
2133 (getBundle(String, Locale, ClassLoader)): Re-written to use new
2134 caching strategy, no-allocation lookup, and new tryBundle methods.
2135 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
2136 name using given classloader.
2137 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
2138 baseName for given Locale and attempt to load bundle.
2139
42c00752
BM
21402004-07-09 Bryce McKinlay <mckinlay@redhat.com>
2141
2142 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
2143 illegal protected method calls.
2144
6e342fc1
BM
21452004-07-09 Bryce McKinlay <mckinlay@redhat.com>
2146
2147 Fix or remove some bogus test cases.
2148 * testsuite/libjava.compile/pr10459_2.java: Removed.
2149 * testsuite/libjava.compile/pr10459.java: Test using its own method,
2150 not Object.clone().
2151 * testsuite/libjava.compile/inner_data.java: Test against its own
2152 protected field.
2153
1f33f6b4
MK
21542004-07-09 Michael Koch <konqueror@gmx.de>
2155
2156 * scripts/unicode-muncher.pl: Updated to version 2.1
2157 from GNU classpath. Added some clarifications on where to find the
2158 needed files from www.unicode.org.
2159 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
2160 gnu/gcj/convert/UnicodeData-3.0.0.txt:
2161 Removed, these can directly be downloaded from www.unicode.org if
2162 needed.
2163 * gnu/java/lang/CharData.java: Regenerated.
2164 * include/java-chartables.h: Regenerated.
2165 * Makefile.am (ordinary_java_source_files):
2166 Removed gnu/java/lang/CharData.java.
2167 * Makefile.in: Regenerated.
2168
771aacd3
MK
21692004-07-09 Michael Koch <konqueror@gmx.de>
2170
2171 * java/security/AccessControlContext.java,
2172 java/security/SecureClassLoader.java:
2173 Fixed javadocs.
2174
3d5f053c
MK
21752004-07-09 Michael Koch <konqueror@gmx.de>
2176
2177 * java/io/ObjectInputStream.java (readFields): Use long datatype
2178 when shifting byte values more then 24 bits left.
2179
d642571f
MK
21802004-07-09 Michael Koch <konqueror@gmx.de>
2181
2182 * java/util/zip/DeflaterOutputStream.java,
2183 java/util/zip/GZIPInputStream.java,
2184 java/util/zip/GZIPOutputStream.java,
2185 java/util/zip/InflaterInputStream.java:
2186 Reformatted. Added javadocs. Reordered all stuff.
2187 Renamed variables to be more clear.
2188
3042e24b
MK
21892004-07-09 Michael Koch <konqueror@gmx.de>
2190
2191 * javax/imageio/IIOException.java,
2192 javax/imageio/event/IIOReadProgressListener.java,
2193 javax/imageio/event/IIOReadUpdateListener.java,
2194 javax/imageio/event/IIOReadWarningListener.java,
2195 javax/imageio/event/IIOWriteProgressListener.java,
2196 javax/imageio/event/IIOWriteWarningListener.java:
2197 New files.
2198 * Makefile.am: Added new files.
2199 * Makefile.in: Regenerated.
2200
4a738a82
GL
22012004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
2202
2203 * java/text/RuleBasedCollator.java
2204 (mergeRules): Use ArrayList instead of Vector.
2205 (subParseString): likewise.
2206 (parseString): likewise.
2207 (buildCollationVector): likewise.
2208 (getCollationKey): likewise.
2209
28e0ee76
DT
22102004-07-09 Dalibor Topic <robilad@kaffe.org>
2211
2212 * java/text/DateFormat.java (parse):
2213 Improved javadoc. Improved exception message.
2214
2e54a860
MW
22152004-07-09 Mark Wielaard <mark@klomp.org>
2216
2217 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
2218 interrupted() method to clear interupt flag of our Thread.
2219
23c41c08
DT
22202004-07-09 Dalibor Topic <robilad@kaffe.org>
2221
2222 * java/nio/Buffer.java,
2223 java/nio/ByteBuffer.java,
2224 java/nio/ByteBufferHelper.java,
2225 java/nio/ByteBufferImpl.java,
2226 java/nio/CharBuffer.java,
2227 java/nio/CharBufferImpl.java,
2228 java/nio/CharViewBufferImpl.java,
2229 java/nio/DirectByteBufferImpl.java,
2230 java/nio/DoubleBuffer.java,
2231 java/nio/DoubleBufferImpl.java,
2232 java/nio/DoubleViewBufferImpl.java,
2233 java/nio/FloatBuffer.java,
2234 java/nio/FloatBufferImpl.java,
2235 java/nio/FloatViewBufferImpl.java,
2236 java/nio/IntBuffer.java,
2237 java/nio/IntBufferImpl.java,
2238 java/nio/IntViewBufferImpl.java,
2239 java/nio/LongBuffer.java,
2240 java/nio/LongBufferImpl.java,
2241 java/nio/LongViewBufferImpl.java,
2242 java/nio/MappedByteBufferImpl.java,
2243 java/nio/ShortBuffer.java,
2244 java/nio/ShortBufferImpl.java,
2245 java/nio/ShortViewBufferImpl.java:
2246 Fixed javadocs all over. Improved input error
2247 checking.
2248
2249 * java/nio/Buffer.java
2250 (checkForUnderflow, checkForOverflow, checkIndex,
2251 checkIfReadOnly, checkArraySize): New helper methods
2252 for error checking.
2253
2254 * java/nio/ByteBufferHelper.java
2255 (checkRemainingForRead, checkRemainingForWrite,
2256 checkAvailableForRead, checkAvailableForWrite): Removed
2257 no longer needed methods.
2258
e484d7d5
MK
22592004-07-09 Michael Koch <konqueror@gmx.de>
2260
2261 * gnu/regexp/CharIndexedInputStream.java:
2262 Reordered imports to match classpath.
2263
3e518ab0
MK
22642004-07-09 Michael Koch <konqueror@gmx.de>
2265
2266 * gnu/java/awt/EmbeddedWindow.java:
2267 Load native library for setWindowPeer method.
2268
8c5ac2c4
RC
22692004-07-08 Randolph Chung <tausq@debian.org>
2270
2271 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
2272 * configure: Regenerate.
2273 * configure.host: Set can_unwind_signal for hppa*-linux.
2274 * include/pa-signal.h: New file.
2275
0bd24153
PB
22762004-07-07 Per Bothner <per@bothner.com>
2277
fedf5454
PB
2278 * Makefile.am: Add rules to build libgij from just gij.cc.
2279
0bd24153
PB
2280 * include/jvm.h (namespace jcj): Declare verbose_class_flag
2281 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
2282 (initializeClass): If verbose_class_flag, print message.
2283 * gij.cc (main): Handle -verbose:class flag.
2284
0e497b6c
AT
22852004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
2286
2287 * configure.host: Enable hash synchronization on Darwin.
2288 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
2289 ';', since this is a comment on Darwin.
2290 (compare_and_swap_release): Likewise.
2291
c09bade6
ME
22922004-07-06 Mohan Embar <gnustuff@thisiscool.com>
2293
2294 * java/net/URLStreamHandler.java (parseURL): Canonicalize
2295 file portion of URL in addition to spec for file: protocol.
2296
23f99379 22972004-07-05 Anthony Green <green@redhat.com>
0e497b6c 2298
23f99379
AG
2299 * java/io/File.java (toURI): Merge from Classpath.
2300
a1433c46
BM
23012004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2302
2303 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
2304 before passing to URL constructor. Rethrow any MalformedURLException
2305 as a RuntimeException. Catch MalformedURLException specifically, not
2306 all exceptions.
0e497b6c 2307
a86f0372
BM
23082004-07-05 Bryce McKinlay <mckinlay@redhat.com>
2309
2310 * java/util/Locale.java (readObject): Intern strings read from object
2311 stream.
2312
74fa958e
MK
23132004-07-04 Michael Koch <konqueror@gmx.de>
2314
2315 * gnu/gcj/runtime/FirstThread.java,
2316 gnu/gcj/runtime/natFirstThread.cc: Removed.
2317 * gnu/java/lang/MainThread.java,
2318 gnu/java/lang/natMainThread.cc: New files.
2319 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
2320 * Makefile.am: Added new files and removed deleted ones.
2321 * Makefile.in: Regenerated.
2322
94fbf267 23232004-07-03 Mark Wielaard <mark@klomp.org>
0e497b6c 2324 Anthony Green <green@redhat.com>
94fbf267
AG
2325
2326 * java/net/URL.java (getFile): Clarify return value doc.
2327 (getPath): Return null if file is empty - not empty String.
2328 (set): Convert protocol to lower case before doing anything.
2329 Only change the protocol handler if it's different.
2330
23312004-07-03 Anthony Green <green@redhat.com>
2332
2333 * java/net/URL.java (URL): Convert protocol to lower case before
2334 doing anything, so we getURLStreamHandler() with the proper value.
2335
b5349c07
BM
23362004-07-02 Bryce McKinlay <mckinlay@redhat.com>
2337
2338 * java/util/Locale.java (hashcode): Made transient.
2339 (hashCode): No longer synchronized.
2340 (equals): Remove comment.
2341 (writeObject): No longer synchronized. Implement using writeObject
2342 calls instead of tweaking hashCode field. Update doc.
2343 (readObject): Implement using readObject calls.
2344
f8a57be8
GK
23452004-06-26 Geoffrey Keating <geoffk@apple.com>
2346 Andreas Tobler <a.tobler@schweiz.ch>
2347
2348 * configure.host (powerpc-*-darwin*): New case, define
2349 can_unwind_signal.
2350 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
2351 * configure: Regenerate.
2352 * include/darwin-signal.h: New.
2353
dcfbe7c7
JQ
23542004-06-30 Jerry Quinn <jlquinn@optonline.net>
2355
2356 * java/beans/Statement.java (doExecute): Fix formatting.
2357
8319dc87
PB
23582004-06-29 Per Bothner <per@bothner.com>
2359
2360 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2361 etc etc): Remove needless parenthesis, which causes __stdcall__
2362 attribute on MinGW to get ignored.
2363
b4bbd47e
BM
23642004-06-29 Bryce McKinlay <mckinlay@redhat.com>
2365
2366 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2367
b5493719
BM
23682004-06-28 Bryce McKinlay <mckinlay@redhat.com>
2369
b4bbd47e 2370 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
b5493719 2371
7b63e340
JQ
23722004-06-28 Jerry Quinn <jlquinn@optonline.net>
2373
2374 * java/beans/Expression.java: New file.
2375 * java/beans/Statement.java: New file.
2376 * Makefile.am: Added new files.
2377 * Makefile.in: Re-generate.
2378
01036503
MW
23792004-06-27 Mark Wielaard <mark@klomp.org>
2380
2381 * java/io/FilePermission.java (usingPerms): Removed.
2382 (actionsString): Made final.
2383 (cachePerms): Renamed to checkPerms.
2384 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2385 on action String.
2386 (FilePermission): Check arguments, call checkPerms().
2387 (equals): Remove cachePerms() call.
2388 (implies): Likewise.
2389
ce6230c4
MW
23902004-06-27 Mark Wielaard <mark@klomp.org>
2391
2392 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2393 final field.
2394 (sendRequest): Use new field in user-agent http agent.
2395
66a74d2a
MW
23962004-06-27 Mark Wielaard <mark@klomp.org>
2397
2398 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2399 when argument is null.
2400
24012004-06-26 Mark Wielaard <mark@klomp.org>
2402
2403 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2404 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2405 GetMethodID call.
2406 (cancel_clicked): Likewise.
2407
d168da74
AT
24082004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2409
2410 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2411 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2412 can not calculate the right value.
2413 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2414
cc21f43e
BM
24152004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2416
2417 * testsuite/libjava.jacks/jacks.xfail: Remove
2418 15.9.1-qualified-concrete-20.
2419
eb8163ab
BM
24202004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2421
2422 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2423 encoding name to iconv.
2424 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2425
f50aa505
BM
24262004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2427
2428 PR libgcj/16134:
e9cb3dac
BM
2429 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2430 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2431 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
f50aa505 2432
deb3d52f
AH
24332004-06-21 Andrew Haley <aph@redhat.com>
2434
2435 * java/io/ObjectOutputStream.java: Add DEBUG statements
2436 everywhere.
2437 (dumpElementln): New method.
2438 (depth): New field.
2439 * java/io/ObjectInputStream.java
2440 (currentClassLoader): Make native.
2441 (callersClassLoader): New field.
2442 (depth): New field.
2443 (readObject): ENDBLOCKDATA is generated if the class has a write
2444 method, not if it has a read method.
2445 (readObject): Save and restore this.currentObject and
2446 this.currentObjectStreamClass around calls to callReadMethod().
2447 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2448 method.
2449
cfc74dce
AT
24502004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2451
2452 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2453 darwin.
2454
bd760894
RM
24552004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2456
2457 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2458 if desired, before the default class loader is initialised.
2459 Call INIT_SEGV only if HANDLE_SEGV is defined.
2460
6ca77e6f
RM
24612004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2462
2463 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2464 directory only if it actually exists.
2465
67a69e82
GH
24662004-06-18 Graydon Hoare <graydon@redhat.com>
2467
2468 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2469 Fix up non-ansi comments.
2470
24712004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2472
2473 * javax/swing/text/AbstractDocument.java: Adding missing import
2474 for javax.swing.event.EventListenerList.
2475 * javax/swing/text/DefaultCaret.java: Likewise.
2476
4dfcdad1
GH
24772004-06-17 Michael Koch <konqueror@gmx.de>
2478
2479 * javax/swing/JToolBar.java
2480 (name): Removed.
2481 (JToolBar): Use Component.setName(String) instead of doing it all
2482 alone.
2483 * javax/swing/Timer.java
2484 (queueEvent): Added missing modifier.
2485
24862004-06-17 Olga Rodimina <rodimina@redhat.coom>
2487
2488 * Makefile.am: Added new file.
2489 * Makefile.in: Re-generate.
2490 * javax/swing/JMenu.java:
2491 (insertSeparator): Implemented.
2492 * javax/swing/JPopupMenu.java:
2493 (JPopupMenu.Separator): Implemented.
2494 * javax/swing/MenuSelectionManager.java:
2495 (processMouseEvent): Use java.awt.Component
2496 for event source instead of javax.swing.JComponent.
2497 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2498 New File. Implemented.
2499
25002004-06-16 David Jee <djee@redhat.com>
2501
2502 * java/awt/GridBagLayout.java
2503 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2504 Make sure pos_x and pos_y are never negative.
2505
25062004-04-16 Andrew Overholt <overholt@redhat.com>
2507
2508 * Makefile.am: Add new file.
2509 * Makefile.in: Re-generate.
2510 * javax/swing/JToolBar.java
2511 Partially implemented.
2512 * javax/swing/plaf/basic/BasicToolBarUI.java
2513 New file. Partially implemented.
2514
25152004-06-16 Graydon Hoare <graydon@redhat.com>
2516
2517 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2518 (setComposite): Accept AlphaComposite arguments.
2519 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2520 (createBufferedImage): Add new overloads.
2521 * gnu/java/awt/peer/gtk/GtkToolkit.java
2522 (createImage): Use GdkPixbufDecoder.createBufferedImage
2523 when useGraphics2D() is true.
2524 (getImage): Delegate to createImage.
2525 * javax/swing/JList.java
2526 (isSelectionEmpty):
2527 (getFirstVisibleIndex):
2528 (getLastVisibleIndex):
2529 (setSelectedValue):
2530 (ensureIndexIsVisible): New methods.
2531 * javax/swing/Timer.java: Reimplement.
2532
25332004-06-16 Michael Koch <konqueror@gmx.de>
2534
2535 * javax/swing/text/AbstractDocument.java
2536 (AbstracElement): Made public, implements java.io.Serializable.
2537 (AttributeContext): Made public.
2538 (BranchElement): Likewise.
2539 (Content): Likewise.
2540 (DefaultDocumentEvent): Made public, extends
2541 javax.swing.undo.CompoundEdit.
2542 (ElementEdit): Made public, extends
2543 javax.swing.undo.AbstractUndoableEdit.
2544 (LeafElement): Made public.
2545 (LeafElement.LeafElement): Made public.
2546
25472004-06-16 Michael Koch <konqueror@gmx.de>
2548
2549 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2550 methods (that were obviously never be intended to get included hi this
2551 class. Added some methods too.
2552
25532004-06-16 Michael Koch <konqueror@gmx.de>
2554
2555 * javax/swing/text/PlainDocument.java
2556 (serialVersionUID): New constant.
2557 (lineLimitAttribute): Likewise.
2558 (tabSizeAttribute): Likewise.
2559 (tabSize): New field.
2560 (PlainDocument): Made public.
2561 (PlainDocument): New constructor.
2562
25632004-06-16 Michael Koch <konqueror@gmx.de>
2564
2565 * javax/swing/text/AbstractDocument.java
2566 (insertString): Throws BadLocationException.
2567 * javax/swing/text/Document.java
2568 (insertString): Likewise.
2569 * javax/swing/text/JTextComponent.java:
2570 Javadocs and comments cleaned up.
2571
25722004-06-16 Michael Koch <konqueror@gmx.de>
2573
2574 * javax/swing/event/UndoableEditListener.java: Reformatted.
2575 * javax/swing/text/AbstractDocument.java
2576 (AbstractDocument): Implements java.io.Serializable.
2577 (doc_list): Removed.
2578 (undo_list): Removed.
2579 (AbstractElement.serialVerionUID): New field.
2580 (BranchElement.serialVerionUID): Likewise.
2581 (DefaultDocumentEvent.serialVerionUID): Likewise.
2582 (ElementEdit.serialVerionUID): Likewise.
2583 (LeafElement.serialVerionUID): Likewise.
2584 (serialVerionUID): Likewise.
2585 (BAD_LOCATION): New constant.
2586 (BidiElementName): Likewise.
2587 (ContentElementName): Likewise.
2588 (ParagraphElementName): Likewise.
2589 (SectionElementName): Likewise.
2590 (ElementNameAttribute): Likewise.
2591 (AbstractDocument): Made protected.
2592 (AbstractDocument): New construtor.
2593 (listenerList): New field.
2594 (fireChangedUpdate): Implemented.
2595 (fireInsertUpdate): Likewise.
2596 (fireRemoveUpdate): Likewise.
2597 (fireUndoableEditUpdate): Likewise.
2598 (getListeners): Likewise.
2599 (addDocumentListener): Likewise.
2600 (removeDocumentListener): Likewise.
2601 (addUndoableEditListener): Likewise.
2602 (removeUndoableEditListener): Likewise.
2603 (getDocumentListeners): New method.
2604 (getUndoableEditListeners): Likewise.
2605 (getAsynchronousLoadPriority): Made public.
2606 (getBidiRootElement): Likewise.
2607 (setAsynchronousLoadPriority): Likewise.
2608 (setDocumentProperties): Likewise.
2609 * javax/swing/text/BadLocationException.java
2610 (serialVerionUID): New field.
2611 * javax/swing/text/DefaultCaret.java
2612 (changeEvent): New field.
2613 (listenerList): Likewise.
2614 (changes): Removed.
2615 (addChangeListener): Reimplemented.
2616 (removeChangeListener): Likewise.
2617 (getListeners): New method.
2618 (getChangeListeners): Likwise.
2619 (getComponent): Likewise.
2620 * javax/swing/text/GapContent.java
2621 (GapContent): Implements java.io.Serializable.
2622 (serialVerionUID): New field.
2623
26242004-06-16 Michael Koch <konqueror@gmx.de>
2625
2626 * javax/swing/JTree.java
2627 (treeModel): New field.
2628 (JTree): New constructors, one existing one made public.
2629 (createTreeModel): New method.
2630 (addTreeExpansionListener): Likewise.
2631 (removeTreeExpansionListener): Likewise.
2632 (getTreeExpansionListeners): Likewise.
2633 (fireTreeCollapsed): Likewise.
2634 (fireTreeExpanded): Likewise.
2635 (addTreeSelectionListener): Likewise.
2636 (removeTreeSelectionListener): Likewise.
2637 (getTreeSelectionListeners): Likewise.
2638 (fireValueChanged): Likewise.
2639 (addTreeWillExpandListener): Likewise.
2640 (removeTreeWillExpandListener): Likewise.
2641 (getTreeWillExpandListeners): Likewise.
2642 (fireTreeWillCollapse): Likewise.
2643 (fireTreeWillExpand): Likewise.
2644
26452004-06-16 Michael Koch <konqueror@gmx.de>
2646
2647 * javax/swing/JTree.java: Reformatted.
2648
26492004-06-16 Michael Koch <konqueror@gmx.de>
2650
2651 * javax/swing/JTextArea.java: New file.
2652 * javax/swing/JTextField.java
2653 (actions): Removed.
2654 (notifyAction): New constant.
2655 (columns): New field.
2656 (JTextField): New constructors.
2657 (createDefaultModel): New method.
2658 (addActionListener): Reimplmemented.
2659 (removeActionListener): Reimplemented.
2660 (getActionListeners): New method.
2661 (fireActionPerformed): New method.
2662 (getColumns): New method.
2663 (setColumne): New method.
2664 * javax/swing/text/JTextComponent.java
2665 (AccessibleJTextComponent.serialVersionUID): New field.
2666 (serialVersionUID): Likewise.
2667 (DEFAULT_KEYMAP): Likewise.
2668 (FOCUS_ACCELERATOR_KEY): Likewise.
2669 (doc): Made private.
2670 (icon_gap): Likewise.
2671 (icon): Likewise.
2672 (align): Likewise.
2673 (JTextComponent): Some constructors removed.
2674 (getScrollableTracksViewportHeight): New method.
2675 (getScrollableTracksViewportWidth): Likewise.
2676 * Makefile.am: Added javax/swing/JTextArea.java.
2677 * Makefile.in: Regenerated.
2678
26792004-06-15 Graydon Hoare <graydon@redhat.com>
2680
2681 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2682 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2683 * javax/swing/JViewport.java
2684 (getExtentSize): Return size rather than preferred size.
2685 (toViewCoordinates): New methods.
2686 (getViewSize): Return size rather than preferred size.
2687 (setViewSize): Note view size as set.
2688 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2689 * javax/swing/plaf/basic/BasicScrollBarUI.java
2690 (getPreferredSize): Don't redo layout.
2691 * javax/swing/plaf/basic/BasicViewportUI.java
2692 (paint): Translate image properly and eat exceptions.
2693
26942004-06-15 Kim Ho <kho@redhat.com>
2695
2696 * javax/swing/JTabbedPane.java
2697 (setComponent): Remove old component and
2698 add new component.
2699 (setSelectedIndex): Don't operate on the
2700 components if they're null. Don't set index
2701 on the model if the index is the same.
2702 (insertTab): Don't add or hide the component
2703 if it's null. Repaint the container.
2704 * javax/swing/plaf/basic/BasicLookAndFeel.java
2705 Change colors for TabbedPane.
2706 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2707 (mousePressed): Re-layout and paint the component.
2708 (layoutContainer): Don't set location on the view.
2709 (ScrollingViewport::paint): Remove.
2710
27112004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2712
2713 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2714 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2715
2716 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2717 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2718 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2719 critical region.
2720 (drawLine): Call gdk_flush before leaving GDK critical region.
2721 (fillRect): Likewise.
2722 (drawRect): Likewise.
2723 (copyArea): Likewise.
2724 (copyPixmap): Likewise.
2725 (clearRect): Likewise.
2726 (drawArc): Likewise.
2727 (drawPolyline): Likewise.
2728 (drawPolygon): Likewise.
2729 (fillPolygon): Likewise.
2730 (fillArc): Likewise.
2731 (drawOval): Likewise.
2732 (fillOval): Likewise.
2733
2734 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2735 style parameter.
2736 (GdkFontMetrics): Add style argument to initState call.
2737 (stringWidth(String,int,int,String)): Add style parameter.
2738 (stringWidth(String)): Add style argument to stringWidth call.
2739 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2740 (initState): Set pango font style and weight based on AWT style
2741 parameter. Pass default GTK language to
2742 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2743 simply dividing by PANGO_SCALE.
2744 (stringWidth): Set pango font style and weight based on AWT style
2745 parameter.
2746
2747 * java/awt/Button.java (next_button_number): New field.
2748 (paramString): Change output.
2749 (generateName): New method.
2750 (getUniqueLong): New method.
2751
27522004-06-14 Kim Ho <kho@redhat.com>
2753
2754 * javax/swing/JTabbedPane.java:
2755 (setComponentAt): Set the component, not
2756 the enabled status.
2757 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2758 (actionPerformed): Let deiconize catch exception.
2759
27602004-06-14 Olga Rodimina <rodimina@redhat.com>
2761
2762 * javax/swing/JPopupMenu.java:
2763 (setVisible): Corrected location of a
2764 heavyweight popup menu.
2765
27662004-06-14 Olga Rodimina <rodimina@redhat.com>
2767
2768 * javax/swing/MenuSelectionManager.java:
2769 Ran through jalopy to fix formatting style.
2770
27712004-06-14 Olga Rodimina <rodimina@redhat.com>
2772
2773 * javax/swing/JLayeredPane.java:
2774 (remove): Revalidate and repaint layered pane after
2775 the component was removed.
2776 javax/swing/JMenu.java:
2777 (setVisible): Display popup menu at the user location,
2778 if one was set by the user.
2779 (setMenuLocation): Reimplemented. Fixed javadoc.
2780 * javax/swing/JMenuBar.java: Added javadoc.
2781 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2782 (MODEL_CHANGED_PROPERTY): New Property.
2783 (isSelected): Implemented.
2784 (setBorderPainted): Fire PropertyChangeEvent
2785 if paintBorder property changes.
2786 (setSelected): Implemented.
2787 (setSelectionModel): Implemented.
2788 * javax/swing/JPopupMenu.java: Added Javadoc
2789 (pack): Implemented.
2790 (setVisible): Reimplemented.
2791 (show): Fixed location.
2792 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2793 Container instead of JPanel.
2794 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2795 (clearSelectedPath): Reimplemented to clear selectedPath
2796 in reverse order.
2797 (processMouseEvent): Reimplemented.
2798 (setSelectedPath): Fire stateChange event indicating that
2799 selected menu path has changed.
2800 (getPath): Change to use ArrayList instead of Vector.
2801 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2802 (installUI): call installKeyboardActions().
2803 (uninstallUI): call uninstallKeyboardActions().
2804
28052004-06-13 Michael Koch <konqueror@gmx.de>
2806
2807 * javax/swing/text/DefaultCaret.java,
2808 javax/swing/text/BadLocationException.java:
2809 Reformatted.
2810
28112004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2812
2813 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2814 DEFAULT_COLS): New variables.
2815 (create): Don't allow 0 rows or 0 columns. Instead, set the
2816 values to DEFAULT_ROWS or DEFAULT_COLS.
2817 (getMinimumSize): Likewise.
2818 (getPreferredSize): Likewise.
2819 (minimumSize): Likewise.
2820 (preferredSize): Likewise.
2821 (create): Set peer's editable state.
2822 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2823 zero. Update javadocs.
2824 (TextArea(String)): Likewise.
2825 (TextArea(int,int)): Fix javadocs.
2826 (TextArea(String,int,int,int)): Only throw exception if one of
2827 rows or columns is zero. Fix javadocs.
2828
28292004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2830
2831 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2832 addition to Components.
2833
2834 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2835 wasn't consumed by normal processing, send it to the parent
2836 menu.
2837
2838 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2839 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2840 translation.
2841
28422004-06-11 David Jee <djee@redhat.com>
2843
2844 * java/awt/MediaTracker.java
2845 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2846 (addImage(Image,int,int,int)): Likewise.
2847
28482004-06-11 Michael Koch <konqueror@gmx.de>
2849
2850 * javax/swing/text/AbstractDocument.java,
2851 javax/swing/text/Document.java,
2852 javax/swing/text/GapContent.java,
2853 javax/swing/text/JTextComponent.java,
2854 javax/swing/text/PlainDocument.java:
2855 Reformatted.
2856
28572004-06-11 Michael Koch <konqueror@gmx.de>
2858
2859 * javax/swing/JRootPane.java
2860 (AccessibleJRootPane.serialVersionUID): New field.
2861 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2862 (AccessibleJRootPane.getAccessibleRole): New method.
2863 (RootLayout): Implements Serializable.
2864 (RootLayout.serialVersionUID): New field.
2865 (RootLayout.RootLayout): New constructor.
2866 (setJMenuBar): Made public.
2867 (getJMenuBar): Likewise.
2868 (JRootPane): Likewise.
2869 (createContentPane): Likewise.
2870 (createGlassPane): Likewise.
2871 (createLayeredPane): Likewise.
2872
28732004-06-11 Michael Koch <konqueror@gmx.de>
2874
2875 * javax/swing/SwingUtilities.java
2876 (isLeftMouseButton): Fixed javadoc.
2877 (isMiddleMouseButton): Likewise.
2878 (isRightMouseButton): Likewise.
2879
28802004-06-11 Michael Koch <konqueror@gmx.de>
2881
2882 * javax/swing/JScrollPane.java
2883 (serialVersionUID): New field.
2884 (columnHeader): Made protected.
2885 (rowHeader): Likewise.
2886 (lowerLeft): Likewise.
2887 (lowerRight): Likewise.
2888 (upperLeft): Likewise.
2889 (upperRight): Likewise.
2890 (horizontalScrollBar): Likewise.
2891 (horizontalScrollBarPolicy): Likewise.
2892 (verticalScrollBar): Likewise.
2893 (verticalScrollBarPolicy): Likewise.
2894 (viewport): Likewise.
2895
28962004-06-11 Michael Koch <konqueror@gmx.de>
2897
2898 * javax/swing/LookAndFeel.java: Fixed javadocs.
2899
29002004-06-11 Michael Koch <konqueror@gmx.de>
2901
2902 * javax/swing/JEditorPane.java: Fixed javadocs.
2903 (JEditorPane): Removed redundant call to to this().
2904 (fireHyperlinkUpdate): Implemented.
2905
29062004-06-10 Olga Rodimina <rodimina@redhat.com>
2907
2908 * javax/swing/JMenu.java: Fixed file name
2909 in the file comment.
2910
29112004-06-10 Olga Rodimina <rodimina@redhat.com>
2912
2913 * javax/swing/JMenu.java: Added javadoc.
2914 (JMenu): Added MenuChangeListener to listen to
2915 ChangeEvents occuring in menu's model.
2916 (insert): Throw IllegalArgumentException if
2917 index is less than 0
2918 (setSelected): Reimplement.
2919 (setPopupMenuVisible): Call menu's model isEnabled()
2920 (setDelay): Throw IllegalArgumentException if
2921 given amount of delay is less than 0.
2922 (createActionComponent): Implemented.
2923 (createActionChangeListener): Implemented.
2924 (addSeparator): Implemented.
2925 (getItem): Throw IllegalArgumentException if index is
2926 less than 0.
2927 (getItemCount): Implemented.
2928 (fireMenuSelected): Changed to use menuEvent.
2929 (fireMenuDeselected): Likewise.
2930 (fireMenuCanceled): Likewise.
2931 (setAccelerator): Changed to throw an error if this
2932 method is used.
2933 (doClick): Implemented.
2934 (JMenu.ActionChangedListener): New inner class to handle
2935 PropertyChangeEvents occuring in the actions associated with menu.
2936 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2937 (BasicMenuUI): Added PropertyChangeListener to the menu.
2938 (createChangeListener): Implemented.
2939 (createMenuDragMouseListener): Likewise.
2940 (createMenuKeyListener): Likewise.
2941 (createPropertyChangeListener): Likewise.
2942 (uninstallListeners): Likewise.
2943 (BasicMenuUI.MouseInputHandler): Reimplemented.
2944 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2945 (BasicMenuUI.ChangeHandler): Likewise.
2946 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2947 (BasicMenuUI.MenuKeyHandler): Likewise.
2948
29492004-06-10 David Jee <djee@redhat.com>
2950
2951 * java/awt/MediaTracker.java
2952 (imageUpdate): Only do notifyAll() if the image is complete.
2953
29542004-06-10 Olga Rodimina <rodimina@redhat.com>
2955
2956 * javax/swing/JApplet.java:
2957 (getJMenuBar): Made public.
2958 (setJMenuBar): Likewise.
2959 * javax/swing/JFrame.java:
2960 (getJMenuBar): Made public.
2961 (setJMenuBar): Likewise.
2962 * javax/swing/JWindow.java:
2963 (getJMenuBar): Removed.
2964 (setJMenuBar): Removed.
2965
29662004-06-10 Michael Koch <konqueror@gmx.de>
2967
2968 * javax/swing/JEditorPane.java
2969 (createEditorKitForContentType): Fixed visibility.
2970 (fireHyperlinkUpdate): Likewise.
2971 (getContentType): Likewise.
2972 (getEditorKit): Likewise.
2973 (getEditorKitForContentType): Likewise.
2974 (getPage): Likewise.
2975 (read): Likewise.
2976 (registerEditorKitForContentTyoe): Likewise.
2977 (replaceSelection): Likewise.
2978 (setContentType): Likewise.
2979 (setEditorKit): Likewise.
2980 (setPage): Likewise.
2981
29822004-06-10 Michael Koch <konqueror@gmx.de>
2983
2984 * javax/swing/Timer.java
2985 (Timer): New constructor.
2986 * javax/swing/plaf/basic/BasicProgressBarUI.java
2987 (animationTimer): Don't initialize at construction.
2988 (startAnimationTimer): Added since tag.
2989 (stopAnimationTimer): Likewise.
2990 (installUI): Use new Timer constructor.
2991 * javax/swing/plaf/basic/BasicScrollBarUI.java
2992 (installUI): Likewise.
2993 * javax/swing/plaf/basic/BasicSliderUI.java
2994 (installUI): Likewise.
2995
29962004-06-10 Michael Koch <konqueror@gmx.de>
2997
2998 * javax/swing/ButtonGroup.java
2999 (serialVersionUID): Made private.
3000 (buttons): Renamed from v, added javadoc.
3001 (sel): Added javadoc.
3002 (ButtonGroup): Likewise.
3003 (add): Likewise.
3004 (remove): Likewise.
3005 (getElements): Likewise.
3006 (getSelection): Likewise.
3007 (setSelected): Likewise.
3008 (isSelected): Likewise.
3009 (getButtonCount): Likewise.
3010
30112004-06-10 Michael Koch <konqueror@gmx.de>
3012
3013 * javax/swing/ButtonGroup.java,
3014 javax/swing/ImageIcon.java,
3015 javax/swing/JEditorPane.java,
3016 javax/swing/JRootPane.java,
3017 javax/swing/JTextField.java,
3018 javax/swing/LookAndFeel.java,
3019 javax/swing/plaf/basic/BasicTextUI.java:
3020 Reindented.
3021
30222004-06-10 Michael Koch <konqueror@gmx.de>
3023
3024 * javax/swing/text/Style.java: Added javadocs.
3025
30262004-06-10 Michael Koch <konqueror@gmx.de>
3027
3028 * javax/swing/JComponent.java
3029 (fireVetoableChange): Removed redundant cast.
3030 * javax/swing/JLabel.java
3031 (getDisabledIcon): Save icon for next call.
3032
30332004-06-10 Michael Koch <konqueror@gmx.de>
3034
3035 * javax/swing/KeyStroke.java
3036 (getKeyStroke(char,boolean)): Marked deprecated.
3037
30382004-06-10 Michael Koch <konqueror@gmx.de>
3039
3040 * javax/swing/DefaultCellEditor.java,
3041 javax/swing/GrayFilter.java,
3042 javax/swing/event/DocumentEvent.java,
3043 javax/swing/text/JTextComponent.java,
3044 javax/swing/text/MutableAttributeSet.java:
3045 Reindented.
3046
30472004-06-10 Michael Koch <konqueror@gmx.de>
3048
3049 * javax/swing/plaf/BorderUIResource.java:
3050 Added serialVersionUID all over.
3051
30522004-06-10 Sascha Brawer <brawer@dandelis.ch>
3053
3054 * javax/swing/undo/UndoManager.java: Re-written from scratch.
3055
30562004-06-10 Michael Koch <konqueror@gmx.de>
3057
3058 * javax/swing/table/DefaultTableCellRenderer.java
3059 (noFocusBorder): Initialize directly.
3060
30612004-06-10 Michael Koch <konqueror@gmx.de>
3062
3063 * javax/swing/plaf/basic/BasicArrowButton.java
3064 (setDirection): Use method argument.
3065
30662004-06-10 Michael Koch <konqueror@gmx.de>
3067
3068 * javax/swing/plaf/BorderUIResource.java,
3069 javax/swing/plaf/ComponentUI.java,
3070 javax/swing/undo/CompoundEdit.java,
3071 javax/swing/undo/StateEdit.java:
3072 Fixed javadocs all over.
3073
30742004-06-10 Michael Koch <konqueror@gmx.de>
3075
3076 * javax/swing/DefaultButtonModel.java
3077 (ARMED): Made public final, fixed value.
3078 (ENABLED): Likewise.
3079 (PRESSED): Likewise.
3080 (ROLLOVER): Likewise.
3081 (SELECTED): Likewise.
3082 (stateMask): Initialize directly.
3083 (listenerList): Likewise.
3084 (mnemonic): Likewise.
3085 (fireStateChanged): Removed argument, use changeEvent as event.
3086 All places where this method is called are fixed too.
3087 (getActionCommant): Fixed javadoc.
3088 (setGroup): Fixed javadoc.
3089 (getGroup): New method.
3090
30912004-06-09 Olga Rodimina <rodimina@redhat.com>
3092
3093 * javax/swing/AbstractButton.java
3094 (AbstractButton): Use init() to initialize the button.
3095 (init): New Method. Initializes AbstractButton.
3096 * javax/swing/JMenuItem.java: Documented.
3097 (JMenuItem): Reimplemented.
3098 (init): Implemented.
3099 (setEnabled): Changed to call super.setEnabled()
3100 (processMouseEvent): Reimplemented.
3101 (fireMenuKeyPressed): Implemented.
3102 (fireMenuKeyReleased): Implemented.
3103 (fireMenuKeyTyped): Implemented.
3104 (menuSelectionChanged): disarm the model if the menu item was
3105 deselected.
3106 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
3107 (getPath): Change to use ArrayList instead of Vector.
3108 (getPreferredSize): Renamed variable.
3109 (paintMenuItem): Paint margin area of menu item.
3110 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
3111 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
3112 menu item's bounds before clearing the selection.
3113
31142004-06-09 David Jee <djee@redhat.com>
3115
3116 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
3117 (GtkTextComponentPeer): Set caret position to 0.
3118 * java/awt/TextComponent.java
3119 (setText): Set caret position to 0.
3120 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3121 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
3122 Handle GtkScrolledWindow separately. Fix signal handler blocking.
3123 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
3124 Likewise.
3125 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3126 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
3127 visible.
3128
31292004-06-09 Kim Ho <kho@redhat.com>
3130
3131 * Makefile.am: New files
3132 * Makefile.in: Regenerated
3133 * java/awt/Container.java
3134 (getComponentAt): Removed.
3135 * javax/swing/AbstractAction.java
3136 (ENABLED_PROPERTY): New property.
3137 (putValue): Fire PropertyChangeEvents.
3138 (setEnabled): ditto.
3139 (firePropertyChange): Javadoc and implement
3140 convenience method.
3141 * javax/swing/AbstractButton.java
3142 (setAction): Don't create PropertyChangeListener
3143 if new Action is null.
3144 (setIcon): Don't set icon till after comparing
3145 it.
3146 (configurePropertiesFromAction): Check mnemonic
3147 key before calling intValue().
3148 (createActionPropertyChangeListener): Check
3149 properties rather than bulk change.
3150 * javax/swing/DefaultDesktopManager.java:
3151 Implement.
3152 * javax/swing/DesktopManager.java:
3153 Jalopy and javadoc.
3154 * javax/swing/JComponent.java
3155 (fireVetoableChange): Implement.
3156 (paintImmediately): Use root component.
3157 * javax/swing/JDesktopPane.java: Implement
3158 * javax/swing/JInternalFrame.java: Implement
3159 * javax/swing/JLabel.java
3160 (getDisabledIcon): Return grayscaled icon if
3161 no disabled icon specified.
3162 * javax/swing/JMenuBar.java
3163 (getComponentAtIndex): Use getComponent
3164 * javax/swing/JOptionPane.java
3165 (getDesktopPaneForComponent): Use SwingUtilities'
3166 getAncestorOfClass
3167 (getFrameForComponent): ditto.
3168 * javax/swing/JSplitPane.java
3169 (remove): Use getComponent.
3170 * javax/swing/SwingUtilities.java
3171 (convertPoint): Implement.
3172 * javax/swing/plaf/basic/BasicButtonUI.java
3173 (paintButtonNormal): Check opaqueness before
3174 filling background.
3175 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
3176 Implement
3177 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
3178 Implement.
3179 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
3180 Implement.
3181 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
3182 Implement.
3183 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3184 Change InternalFrame and Desktop colors.
3185
31862004-06-09 David Jee <djee@redhat.com>
3187
3188 * java/awt/Container.java
3189 (remove): Do not set component to invisible.
3190
31912004-06-09 Michael Koch <konqueror@gmx.de>
3192
3193 * javax/swing/tree/DefaultMutableTreeNode.java
3194 (getLeafCount): Renamed enum to e.
3195
31962004-06-09 Michael Koch <konqueror@gmx.de>
3197
3198 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3199 (positionForMouseEvent): Removed redundant semicolon.
3200 (continueDrag): Use method arguments.
3201
32022004-06-09 Michael Koch <konqueror@gmx.de>
3203
3204 * javax/swing/border/TitledBorder.java,
3205 javax/swing/filechooser/FileSystemView.java,
3206 javax/swing/plaf/basic/BasicButtonListener.java,
3207 javax/swing/plaf/basic/BasicGraphicsUtils.java,
3208 javax/swing/plaf/basic/BasicLabelUI.java,
3209 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
3210 javax/swing/plaf/basic/BasicScrollBarUI.java,
3211 javax/swing/plaf/basic/BasicScrollPaneUI.java,
3212 javax/swing/plaf/basic/BasicSliderUI.java,
3213 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
3214 javax/swing/plaf/basic/BasicToggleButtonUI.java,
3215 javax/swing/table/JTableHeader.java,
3216 javax/swing/text/AbstractDocument.java,
3217 javax/swing/text/DefaultCaret.java,
3218 javax/swing/text/StyledEditorKit.java,
3219 javax/swing/tree/DefaultTreeCellEditor.java:
3220 Reworked import statements.
3221
32222004-06-08 Graydon Hoare <graydon@redhat.com>
3223
3224 * javax/swing/Box.java: Temporarily comment out code
3225 broken due to visibility bug.
3226
32272004-06-09 Michael Koch <konqueror@gmx.de>
3228
3229 * javax/swing/ImageIcon.java
3230 (ImageIcon): Added missing constructor.
3231
32322004-06-08 Michael Koch <konqueror@gmx.de>
3233
3234 * javax/swing/JToggleButton.java
3235 (JToggleButton): New constructor.
3236 (getAccessibleContext): Moved documentation into javadoc.
3237 (getUIClassID): Likewise.
3238
32392004-06-08 Michael Koch <konqueror@gmx.de>
3240
3241 * javax/swing/AbstractButton.java
3242 (getDisabledIcon): Create disabled icon if none exists yet.
3243
32442004-06-08 Michael Koch <konqueror@gmx.de>
3245
3246 * javax/swing/plaf/basic/BasicLookAndFeel.java
3247 (initClassDefaults): Added FormattedTextFieldUI.
3248 (loadResourceBundle): Renamed enum to e.
3249
32502004-06-08 Michael Koch <konqueror@gmx.de>
3251
3252 * javax/swing/plaf/basic/BasicButtonUI.java
3253 (paintIcon): Simplified.
3254 (paintText): Paint disabled button correctly.
3255
32562004-06-08 Michael Koch <konqueror@gmx.de>
3257
3258 * javax/swing/JComponent.java
3259 (createToolTip): Use official JToolTip API.
3260
32612004-06-08 Michael Koch <konqueror@gmx.de>
3262
3263 * javax/swing/JToolTip.java
3264 (JToolTip): No arguments in API.
3265 (setTipText): New method.
3266
32672004-06-08 Michael Koch <konqueror@gmx.de>
3268
3269 * javax/swing/SwingUtilities.java
3270 (isLeftMouseButton): New method.
3271 (isMiddleMouseButton): New method.
3272 (isRightMouseButton): New method.
3273
32742004-06-08 Michael Koch <konqueror@gmx.de>
3275
3276 * javax/swing/AbstractButton.java,
3277 javax/swing/CellRendererPane.java,
3278 javax/swing/JCheckBoxMenuItem.java,
3279 javax/swing/JColorChooser.java,
3280 javax/swing/JComboBox.java,
3281 javax/swing/JComponent.java,
3282 javax/swing/JDesktopPane.java,
3283 javax/swing/JFileChooser.java,
3284 javax/swing/JMenu.java,
3285 javax/swing/JMenuItem.java,
3286 javax/swing/JOptionPane.java,
3287 javax/swing/JPasswordField.java,
3288 javax/swing/JPopupMenu.java,
3289 javax/swing/JProgressBar.java,
3290 javax/swing/JRadioButtonMenuItem.java,
3291 javax/swing/JScrollBar.java,
3292 javax/swing/JSeparator.java,
3293 javax/swing/JSlider.java,
3294 javax/swing/JSplitPane.java,
3295 javax/swing/JTabbedPane.java,
3296 javax/swing/JTextField.java,
3297 javax/swing/JToolBar.java,
3298 javax/swing/text/JTextComponent.java:
3299 Fixed all constructors of accessibility classes.
3300
33012004-06-08 Michael Koch <konqueror@gmx.de>
3302
3303 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
3304 over.
3305
33062004-06-08 Michael Koch <konqueror@gmx.de>
3307
3308 * javax/swing/Box.java
3309 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
3310 (AccessibleBoxFiller.serialVersionUID): New member variable.
3311 * javax/swing/DefaultButtonModel.java
3312 (stateMask): Made protected.
3313 (listenerList): Likewise.
3314 (changeEvent): Likewise.
3315 (group): Likewise.
3316 (mnemonic): Likewise.
3317 (actionCommand): Likewise.
3318 (getListeners): New method.
3319 (getActionListeners): New method.
3320 (getItemListeners): New method.
3321 (getChangeListeners): New method.
3322 (fireItemStateChanged): Simplified.
3323 (fireActionPerformed): Simplified.
3324 (fireStateChanged): Simplified.
3325 * javax/swing/JFrame.java
3326 (JFrame): Implements WindowContants.
3327 (HIDE_ON_CLOSE): Removed.
3328 (EXIT_ON_CLOSE): Removed.
3329 (DISPOSE_ON_CLOSE): Removed.
3330 (DO_NOTHING_ON_CLOSE): Removed.
3331 (processWindowEvent): Exit with code 0.
3332 (setDefaultCloseOperation): Do security check before setting value.
3333 * javax/swing/JOptionPane.java
3334 (message): Initialize only in constructor.
3335 * javax/swing/JToolTip.java: Removed unused imports.
3336 * javax/swing/JViewport.java
3337 (serialVersionUID): New member variable.
3338 (SIMPLE_SCROLL_MODE): Made final, fixed value.
3339 (BLIT_SCROLL_MODE): Likewise.
3340 (BACKINGSTORE_SCROLL_MODE): Likewise.
3341 (scrollUnderway): Made protected.
3342 (isViewSizeSet): Likewise.
3343 * javax/swing/ListModel.java: Fixed javadoc.
3344 * javax/swing/Popup.java: Likewise.
3345 * javax/swing/RepaintManager.java
3346 (paintDirtyRegions): Don't use internal classes of
3347 java.util.AbstractMap.
3348 * javax/swing/ScrollPaneConstants.java: Reindented.
3349 * javax/swing/ScrollPaneLayout.java
3350 (viewport): Made protected.
3351 (verticalScrollBar): Made protected, renamed to vsb.
3352 (horizontalScrollBar): Made protected, renamed to hsb.
3353 (rowHeader): Made protected, renamed to rowHead.
3354 (columnHeader): Made protected, renamed to colHead.
3355 (lowerLeft): Made protected.
3356 (lowerRight): Made protected.
3357 (upperLeft): Made protected.
3358 (upperRight): Made protected.
3359 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3360 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3361
33622004-06-07 Bernd Schmidt <bernds@btinternet.com>
3363
3364 * java/awt/MediaTracker.java (imageUpdate): Only set status to
3365 LOADING if flags has SOMEBITS set.
3366
33672004-06-07 Michael Koch <konqueror@gmx.de>
3368
3369 * javax/swing/AbstractButton.java: Reorganized imports.
3370 * javax/swing/ActionMap.java: Likewise.
3371 * javax/swing/DefaultButtonModel.java: Likewise.
3372 * javax/swing/DefaultListModel.java: Likewise.
3373 * javax/swing/ImageIcon.java: Likewise.
3374 (serialVersionUID): New member variable.
3375 * javax/swing/JComboBox.java: Reorganized imports.
3376 * javax/swing/JComponent.java: Likewise.
3377 (ui): Made protected.
3378 (listenerList): Made protected.
3379 (TOOL_TIP_TEXT_KEY): New constant.
3380 (scrollRectToVisible): Removed redundant null check.
3381 * javax/swing/JFrame.java: Reorganized imports.
3382 * javax/swing/JInternalFrame.java: Reorganized imports.
3383 * javax/swing/JProgressBar.java: Likewise.
3384 * javax/swing/JRootPane.java: Likewise.
3385 * javax/swing/JScrollBar.java: Likewise.
3386 * javax/swing/JSeparator.java: Likewise.
3387 * javax/swing/JSlider.java: Likewise.
3388 * javax/swing/JTabbedPane.java: Likewise.
3389 * javax/swing/JTextField.java: Likewise.
3390 * javax/swing/JToolBar.java: Likewise.
3391 * javax/swing/JTree.java: Likewise.
3392 * javax/swing/JViewport.java: Likewise.
3393 * javax/swing/JWindow.java: Likewise.
3394 * javax/swing/KeyStroke.java: Likewise.
3395 * javax/swing/LookAndFeel.java: Likewise.
3396 * javax/swing/MenuSelectionManager.java: Likewise.
3397 * javax/swing/SwingUtilities.java: Likewise.
3398 * javax/swing/Timer.java: Likewise.
3399 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3400 * javax/swing/JList.java
3401 (HORIZONTAL_WRAP): Made final, fixed value.
3402 (VERTICAL): Likewise.
3403 (VERTICAL_WRAP): Likewise.
3404
34052004-06-07 Michael Koch <konqueror@gmx.de>
3406
3407 * javax/swing/AbstractButton.java
3408 (serialVersionUID): New member variable.
3409 (AccessibleAbstractButton.serialVersionUID): Likewise.
3410 (AbstractButton): Made public.
3411 * javax/swing/Box.java
3412 (AccessibleBox.serialVersionUID): New member variable.
3413 (Filler.serialVersionUID): Likewise.
3414 * javax/swing/DefaultListSelectionModel.java
3415 (serialVersionUID): Likewise.
3416 * javax/swing/JApplet.java
3417 (serialVersionUID): Likewise.
3418 * javax/swing/JCheckBox.java
3419 (serialVersionUID): Likewise.
3420 * javax/swing/JCheckBoxMenuItem.java
3421 (serialVersionUID): Likewise.
3422 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3423 * javax/swing/JColorChooser.java
3424 (serialVersionUID): Likewise.
3425 (AccessibleJColorChooser.serialVersionUID): Likewise.
3426 * javax/swing/JComponent.java
3427 (serialVersionUID): Made private.
3428 (AccessibleJComponent.serialVersionUID): New member variable.
3429 * javax/swing/JDesktopPane.java
3430 (serialVersionUID): Likewise.
3431 * javax/swing/JDialog.java
3432 (serialVersionUID): Likewise.
3433 * javax/swing/JFormattedTextField.java
3434 (serialVersionUID): Fixed value.
3435 * javax/swing/JFrame.java
3436 (serialVersionUID): New member variable.
3437 (getDefaultCloseOpertation): Made public.
3438 * javax/swing/JLayeredPane.java
3439 (serialVersionUID): Likewise.
3440 (LAYER_PROPERTY): Made final, fixed value.
3441 (JLayeredPane): Made public.
3442 * javax/swing/JMenu.java
3443 (AccessibleJMenu.serialVersionUID): New member variable.
3444 (WinListener.serialVersionUID): Likewise.
3445 * javax/swing/JMenuBar.java
3446 (serialVersionUID): Likewise.
3447 (getComponentAtIndex): Added @deprecated tag.
3448 * javax/swing/JMenuItem.java
3449 (serialVersionUID): New member variable.
3450 (AccessibleJMenuItem.serialVersionUID): Likewise.
3451 * javax/swing/JOptionPane.java
3452 (serialVersionUID): Likewise.
3453 (AccessibleJOptionPane.serialVersionUID): Likewise.
3454 * javax/swing/JPopupMenu.java
3455 (serialVersionUID): Likewise.
3456 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3457 (getPopupMenuListeners): New method.
3458 (getComponentAtIndex): Added @deprecated tag.
3459 * javax/swing/JProgressBar.java
3460 (serialVersionUID): New member variable.
3461 (AccessibleJProgressBar.serialVersionUID): Likewise.
3462 * javax/swing/JRadioButton.java
3463 (serialVersionUID): Likewise.
3464 * javax/swing/JRadioButtonMenuItem.java
3465 (serialVersionUID): Likewise.
3466 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3467 * javax/swing/JScrollBar.java
3468 (serialVersionUID): Likewise.
3469 (AccessibleJScrollBar.serialVersionUID): Likewise.
3470 * javax/swing/JSeparator.java
3471 (serialVersionUID): Likewise.
3472 (AccessibleJSeparator.serialVersionUID): Likewise.
3473 * javax/swing/JSlider.java: Fixed javadocs.
3474 (AccessibleJSlider.serialVersionUID): New member variable.
3475 * javax/swing/JSplitPane.java: Added copyright statement.
3476 (serialVersionUID): New member variable.
3477 (AccessibleJSplitPane.serialVersionUID): Likewise.
3478 * javax/swing/JTabbedPane.java
3479 (serialVersionUID): Likewise.
3480 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3481 (ModelListener.serialVersionUID): Likewise.
3482 (ModelListener.ModelListener): New constructor.
3483 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3484 (WRAP_TAB_LAYOUT): Likewise.
3485 * javax/swing/JTable.java
3486 (serialVersionUID): New member variable.
3487 * javax/swing/JToggleButton.java
3488 (serialVersionUID): Likewise.
3489 (ToggleButtonModel): Made static.
3490 (ToggleButtonModel.serialVersionUID): New member variable.
3491 * javax/swing/JToolTip.java
3492 (serialVersionUID): Likewise.
3493 * javax/swing/JTree.java
3494 (serialVersionUID): Likewise.
3495 * javax/swing/JWindow.java
3496 (serialVersionUID): Likewise.
3497 * javax/swing/Timer.java
3498 (serialVersionUID): Likewise.
3499
35002004-06-06 Michael Koch <konqueror@gmx.de>
3501
3502 * javax/swing/SwingConstants.java
3503 (NEXT): New constant.
3504 (PREVIOUS): Likewise.
3505 * javax/swing/UIManager.java
3506 (LookAndFeel): Made public.
3507 (LookAndFeel.getClassName): Likewise.
3508 (LookAndFeel.getName): Likewise.
3509
35102004-06-02 Olga Rodimina <rodimina@redhat.com>
3511
3512 * javax/swing/JCheckBoxMenuItem.java:
3513 Removed CVS tags.
3514 * javax/swing/JMenu.java: Likewise.
3515 * javax/swing/JMenuBar.java: Likewise.
3516 * javax/swing/JMenuItem.java: Likewise.
3517 * javax/swing/JPopupMenu.java: Likewise.
3518 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3519 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3520 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3521 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3522 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3523 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3524 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3525
35262004-05-31 Olga Rodimina <rodimina@redhat.com>
3527
3528 * javax/swing/plaf/basic/BasicMenuUI.java:
3529 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3530 Call getPath() from super class instead.
3531
35322004-05-31 David Jee <djee@redhat.com>
3533
3534 * java/awt/Container.java
3535 (remove): Set component visibility to false after removing it.
3536
35372004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3538
3539 * java/awt/Component.java (getForeground): Return SystemColor if
3540 parent is null.
3541 (getBackground): Likewise.
3542
3543 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3544 (item_highlighted): New function.
3545 (connectSignals): Set item_highlighted as list's select
3546 function.
3547
3548 * java/applet/Applet.java: Revert changes from 2004-04-29,
3549 2004-03-15 and 2004-03-14.
3550
3551 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3552 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3553 factor.
3554
3555 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3556 "Dialog" as the default font.
3557 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3558 Likewise.
3559 * java/awt/Component.java (getFont): Return "Dialog" font by
3560 default.
3561 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3562 Multiply size argument to pango_font_description_set_size by the
3563 DPI conversion factor rather than by PANGO_SCALE.
3564 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3565 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3566 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3567 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3568 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3569 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3570 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3571 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3572 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3573 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3574 Divide baseline y coordinate by DPI conversion factor rather
3575 than by PANGO_SCALE.
3576 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3577 (area_prepared): Fix typo.
3578 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3579 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3580 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3581 (dpi_conversion_factor): New global variable.
3582 (init_dpi_conversion_factor): New function to calculate and
3583 track DPI conversion factor.
3584 (dpi_changed_cb): New callback.
3585 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3586
35872004-05-27 David Jee <djee@redhat.com>
3588
3589 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3590 (getGraphics): Return a new GdkGraphics instance.
3591 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3592 (getGraphics): Call super.getGraphics().
3593
35942004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3595
3596 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3597 (setNativeBounds): Clamp width and height values to >= 0.
3598
3599 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3600 (find_fg_color_widget): Handle GtkOptionMenu specially.
3601
3602 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3603 (pre_event_handler): Only post configure events to visible
3604 top-level windows.
3605
36062004-05-26 David Jee <djee@redhat.com>
3607
3608 * java/awt/BorderLayout.java
3609 (layoutContainer): Fix size calculations.
3610
36112004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3612
3613 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3614 (window_wm_protocols_filter): Remove function.
3615 (create): Remove filter that removes WM_TAKE_FOCUS client
3616 messages.
3617
794c3bee
AG
36182004-06-17 Anthony Green <green@redhat.com>
3619
1616280e
AG
3620 * java/util/zip/ZipFile.java (getInputStream): Return null if
3621 entry not found.
3622
794c3bee
AG
3623 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3624 directory contents to the class path.
3625
d1238423
AH
36262004-06-15 Andrew Haley <aph@redhat.com>
3627
3628 * java/lang/natSystem.cc (getenv0): Don't assume environment
3629 variable is Latin 1 coded.
3630
f1c3e0a6
AJ
36312004-06-14 Andreas Jaeger <aj@suse.de>
3632
3633 * configure.in: Support --enable-version-specific-runtime-libs.
3634 * configure: Regenerated.
3635
84b1d821
BM
36362004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3637
3638 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3639 to pass ClassLoader argument.
3640 * java/util/GregorianCalendar.java: Likewise.
3641 * java/util/Currency.java: Likewise.
3642 * java/text/BreakIterator.java: Likewise.
3643 * java/text/Collator.java: Likewise.
3644 * java/text/DateFormat.java: Likewise.
3645 * java/text/DateFormatSymbols.java: Likewise.
3646 * java/text/DecimalFormatSymbols.java: Likewise.
3647 * java/text/NumberFormat.java: Likewise.
3648 * java/awt/Window.java: Likewise.
3649
df94fa14
AH
36502004-06-14 Andrew Haley <aph@redhat.com>
3651
3652 * java/lang/System.java: (getenv0): New method.
3653 (getenv): Add security check. Do the right thing.
3654 * java/lang/natSystem.cc (getenv0): New method.
3655
ff6ea709
MW
36562004-06-12 Mark Wielaard <mark@klomp.org>
3657
3658 * javax/swing/RepaintManager.java
3659 (paintDirtyRegions): Use entrySet(), not values().
3660
d1ee8381
MW
36612004-06-10 Mark Wielaard <mark@klomp.org>
3662
3663 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3664 NoSuchMethodError.
3665
b092552d
JQ
36662004-06-11 Jerry Quinn <jlquinn@optonline.net>
3667
3668 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3669 when we already know the answer.
3670 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3671 (setStartRule,setEndRule): Don't take abs of day number.
3672 (getOffset): Clarify docs. Add argument checks.
3673 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3674 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3675 endTimeMode.
3676
618df745
TT
36772004-06-10 Tom Tromey <tromey@redhat.com>
3678
3679 * interpret.cc (run): Handle wide fload.
3680
648b6075
JQ
36812004-06-06 Jerry Quinn <jlquinn@optonline.net>
3682
3683 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3684
9fc3ed51
MK
36852004-06-05 Michael Koch <konqueror@gmx.de>
3686
3687 * javax/swing/SwingConstants.java
3688 (NEXT): New constant.
3689 (PREVIOUS): Likewise.
3690
c6dd0441
MK
36912004-06-05 Michael Koch <konqueror@gmx.de>
3692
3693 * javax/swing/UIManager.java
3694 (LookAndFeel): Made public.
3695 (LookAndFeel.getName): Likewise.
3696 (LookAndFeel.getClassName): Likewise.
3697
53ef271f
MK
36982004-06-03 Michael Koch <konqueror@gmx.de>
3699
3700 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3701 (requestFocus): Revert last changes.
3702 (gtkRequestFocus): Removed.
3703 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3704 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3705 Renamed to ...
3706 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3707 Reverted last patch.
3708 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3709 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3710 Reverted comment change.
3711
26f4ba86
OR
37122004-06-02 Olga Rodimina <rodimina@redhat.com>
3713
3714 * javax/swing/JCheckBoxMenuItem.java:
3715 Removed CVS tags.
3716 * javax/swing/JMenu.java: Likewise.
3717 * javax/swing/JMenuBar.java: Likewise.
3718 * javax/swing/JMenuItem.java: Likewise.
3719 * javax/swing/JPopupMenu.java: Likewise.
3720 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3721 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3722 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3723 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3724 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3725 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3726 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3727
c05e85e2
MK
37282004-06-01 Tom Tromey <tromey@redhat.com>
3729
3730 * java/io/ObjectStreamField.java: Cleaned up imports.
3731
37322004-06-01 Michael Koch <konqueror@gmx.de>
3733
3734 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3735
37362004-06-01 Mark Wielaard <mark@klomp.org>
3737
3738 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3739
6ef44cfd
MK
37402004-06-01 Michael Koch <konqueror@gmx.de>
3741
3742 * java/security/Security.java
3743 (insertProviderAt): Use equals() instead of ==.
3744 (removeProvicer): Likewise.
3745 (getProvider): Likewise.
3746 * java/security/Signature.java
3747 (sign): Don't set state to UNINITIALIZED.
3748 (verify): Likewise.
3749
1900c4c6
MW
37502004-06-01 Mark Wielaard <mark@klomp.org>
3751
3752 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3753 Implement by calling gtkRequestFocus.
3754 (gtkRequestFocus): New native method.
3755 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3756 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3757 Renamed to ...
3758 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3759 New function name.
3760 (filter_expose_event_handler):
3761 Mark static.
3762 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3763 (menu_pos): Mark static.
3764
57807c31
MK
37652004-06-01 Michael Koch <konqueror@gmx.de>
3766
3767 * java/text/CollationElementIterator.java,
3768 java/text/CollationKey.java,
3769 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3770 * testsuite/libjava.mauve/xfails: Removed all
3771 java.text.CollationElementIterator tests.
3772
f7dbd56c
MK
37732004-06-01 Michael Koch <konqueror@gmx.de>
3774
3775 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3776 version.
3777 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3778 Java 1.5 keyword usage.
3779
44a4b8db
OR
37802004-05-31 Olga Rodimina <rodimina@redhat.com>
3781
3782 * javax/swing/plaf/basic/BasicMenuUI.java:
3783 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3784 Call getPath() from super class instead.
3785
58128b9d
MK
37862004-05-31 Michael Koch <konqueror@gmx.de>
3787
3788 * java/io/SequenceInputStream.java:
3789 Rename enum to e because enum is a keyword in Java 1.5.
3790
771b9ca3
MK
37912004-05-31 Michael Koch <konqueror@gmx.de>
3792
3793 * gnu/java/rmi/rmic/CompilerProcess.java:
3794 Fixed javadoc to by XHTML compliant.
3795
7a70d70c
MW
37962004-05-30 Mark Wielaard <mark@klomp.org>
3797
3798 * java/awt/Toolkit.java (loadSystemColors): Implement.
3799
289f9db7
MK
38002004-05-30 Michael Koch <konqueror@gmx.de>
3801
071917b0
MK
3802 * java/lang/System.java: Reordered imports.
3803
38042004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3805
289f9db7
MK
3806 * java/text/DecimalFormat.java
3807 (parse): Fixed parsing of decimal strings. Number of maximum
3808 digits to be read should now work.
3809 * java/text/SimpleDateFormat.java
3810 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3811 formatter. This fixes DateFormatTest.
3812
1b2545bc
MK
38132004-05-30 Michael Koch <konqueror@gmx.de>
3814
3815 * java/nio/Buffer.java
3816 (limit): Fixed off by one error.
3817 * java/nio/CharBuffer.java
3818 (wrap): Fixed arguments, added javadocs.
3819
74c2dbf7
MK
38202004-05-30 Michael Koch <konqueror@gmx.de>
3821
3822 * gnu/java/beans/BeanInfoEmbryo.java,
3823 java/awt/im/InputContext.java,
3824 javax/swing/tree/DefaultMutableTreeNode.java:
3825 Rename enum to e because enum is a keyword in Java 1.5.
3826
27d14326
MK
38272004-05-30 Michael Koch <konqueror@gmx.de>
3828
3829 * gnu/java/math/MPN.java,
3830 java/awt/geom/Arc2D.java:
3831 Fixed javadocs all over.
3832
933592af
MK
38332004-05-30 Michael Koch <konqueror@gmx.de>
3834
3835 * java/awt/DefaultKeyboardFocusManager.java
3836 (dispatchEvent): Call method to get key event dispatchers.
3837 (dispatchKeyEvent): Call method to get key event post processors.
3838 * javax/swing/JComponent.java
3839 (listenerList): Made protected.
3840 * javax/swing/JOptionPane.java
3841 (message): Don't initialize.
3842 (JOptionPane): Set message text.
3843 * javax/swing/JPopupMenu.java
3844 (show): Fixed typo in argument name.
3845 * javax/swing/RepaintManager.java
3846 (paintDirtyRegions): Use public API of java.util.Map.
3847 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3848 (positionForMouseEvent): Removed redundant ';'.
3849 (continueDrag): Use method arguments.
3850
5ba95354
RM
38512004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3852
3853 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3854 results.
3855
ca60dce2
BM
38562004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3857
3858 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3859 _Jv_AllocBytes.
3860 * gnu/gcj/RawDataManaged.java: New file.
3861 * java/lang/Thread.java (data): Declare as RawDataManaged.
3862 * java/lang/natThread.cc (init_native): Cast natThread data to
3863 RawDataManaged, not jobject.
3864 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3865 * Makefile.in: Rebuilt.
3866
b9f065be
JQ
38672004-05-27 Jerry Quinn <jlquinn@optonline.net>
3868
3869 * java/util/SimpleTimeZone.java: Reverting my last change until I
3870 can fix it properly.
3871
a4171ce1
MK
38722004-05-27 Michael Koch <konqueror@gmx.de>
3873
3874 * javax/swing/JPopupMenu.java
3875 (isVisible): Do not use visible directly.
3876 (setVisible): Likewise.
3877 * javax/swing/JWindow.java
3878 (JWindow): call accessible constructor.
3879 * javax/swing/RepaintManager.java
3880 (paintDirtyRegions): Use public methods to obtain iterator.
3881
c5d2de6b
GH
38822004-05-25 David Jee <djee@redhat.com>
3883
3884 * java/awt/Container.java
3885 (remove): Set component's parent to null only after we removed the
3886 component from its parent's layout manager.
3887
38882004-05-25 David Jee <djee@redhat.com>
3889
3890 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3891 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3892 is valid.
3893 * gnu/java/awt/peer/gtk/GtkListPeer.java
3894 (getSize): Change native method declaration.
3895 (minimumSize): Pass visible row count into getSize().
3896 (preferredSize): Likewise.
3897 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3898 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3899 natural size. Use visible row count to determine the final height
3900 value to return.
3901
39022004-05-21 Graydon Hoare <graydon@redhat.com>
3903
3904 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3905 (setClip): Minor correction to order of operations.
3906
3907 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3908 * javax/swing/ScrollPaneLayout.java: Likewise.
3909 * javax/swing/JViewPort.java: Likewise.
3910 * javax/swing/ViewportLayout.java: Likewise.
3911
3912 * javax/swing/JComponent.java: Rewrite.
3913 * javax/swing/RepaintManager.java: Likewise.
3914
3915 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3916 * javax/swing/JList.java
3917 (setSelectedIndices):
3918 (getSelectedIndices):
3919 (getSelectedValues): New functions.
3920 (getPreferredScrollableViewportSize): Return preferred size.
3921 (getScrollableUnitIncrement):
3922 (getScrollableBlockIncrement): Initial implementations.
3923 * javax/swing/JRootPane.java: Clean up slightly.
3924 (getUI):
3925 (setUI):
3926 (updateUI):
3927 (getUIClassID):
3928 (isValidateRoot): Add overrides from JComponent.
3929 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3930 * javax/swing/UIManager.java (getDimension): Return the dimension.
3931
3932 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3933 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3934 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3935 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3936 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3937 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3938 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3939 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3940 Likewise, and set background.
3941 * javax/swing/plaf/basic/BasicListUI.java:
3942 Likewise, and improve a bit.
3943 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3944 Likewise, and adjust calculations.
3945 * javax/swing/plaf/basic/BasicViewportUI.java:
3946 Likewise, and improve a bit.
3947 * javax/swing/plaf/basic/BasicLookAndFeel.java
3948 (Button.margin): Shrink.
3949
3950 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3951 Hack to set horizontal always, workaround pango.
3952
3953 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3954 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3955 Synchronize more often, check cairo status after ops,
3956 handle changes to cairo pattern API, check for disposal.
3957
39582004-05-21 Olga Rodimina <rodimina@redhat.com>
3959
3960 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3961 (BasicMenuItemUI): Create propertyChangeListener.
3962 (getPath):Implemented.
3963 (installListeners): Add propertyChangeListener to menuItem.
3964 (uninstallListeners): Remove propertyChangeListener from menuItem.
3965 (update): Implemented.
3966 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3967 (mouseEntered): Take insets of popup menu into account when
3968 calculating position of popup menu.
3969
39702004-05-18 Olga Rodimina <rodimina@redhat.com>
3971
3972 * Makefile.am: Added new file.
3973 * Makefile.in: Regenerate.
3974 * javax/swing/JMenuBar.java:
3975 Started implementation.
3976 * javax/swing/JPopupMenu.java:
3977 (setVisible): Fixed location of lightweight/mediumweight
3978 popup menu.
3979 (show): Fixed location of PopupMenu.
3980 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3981 New file. UI Delegate for JMenuBar.
3982 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3983 (mouseEntered): Corrected position of the submenu.
3984
39852004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3986
3987 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3988 to _gtk_accel_group_attach.
3989 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3990 Likewise.
3991
3992 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3993 package access. Don't override setFont.
3994 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3995 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3996 gtkWidgetRequestFocus package access.
3997 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3998 setFont.
3999 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
4000 Give gtkWidgetRequestFocus package access.
4001 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
4002 gtkWidgetRequestFocus package access. Don't override setFont.
4003 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
4004 setFont.
4005 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
4006 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
4007 region.
4008 (gtkSetFont): Likewise.
4009 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
4010 Implement.
4011 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
4012 (gtkSetFont): Whitespace fix.
4013
4014 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4015 (gtkWidgetSetUsize): Remove method.
4016
40172004-05-18 David Jee <djee@redhat.com>
4018
4019 * java/awt/image/MemoryImageSource.java
4020 (newPixels(int,int,int,int,boolean)): Set only the specified
4021 rectangle of pixels.
4022 (newPixels(byte[],ColorModel,int,int)): Implement.
4023 (newPixels(int[],ColorModel,int,int)): Implement.
4024
40252004-05-18 Olga Rodimina <rodimina@redhat.com>
4026
4027 * Makefile.am: Added new file.
4028 * Makefile.in: Regenerate.
4029 * javax/swing/JMenu.java: Started
4030 implementation.
4031 * javax/swing/JPopupMenu.java:
4032 (insert): If specified index is -1, then
4033 add component at the end.
4034 (isPopupTrigger): Reimplemented.
4035 (JPopupMenu.LightWeightPopup): setBounds
4036 of the lightWeightPopup before adding it
4037 to the layeredPane.
4038 (javax/swing/plaf/basic/BasicIconFactory.java):
4039 (getMenuArrowIcon): Implemented.
4040 * javax/swing/plaf/basic/BasicMenuItemUI.java:
4041 (getPreferredSize): Add size of the arrow icon
4042 if this menu item is instance of JMenu.
4043 (paintMenuItem): Paint arrow icon if this
4044 menu item is a submenu.
4045 * javax/swing/plaf/basic/BasicMenuUI.java:
4046 New File. UI Delegate for JMenu.
4047
40482004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
4049
4050 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
4051 Post KEY_TYPED events.
4052 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4053 (generates_key_typed_event): Remove function.
4054
40552004-05-17 Olga Rodimina <rodimina@redhat.com>
4056
4057 * javax/swing/JRootPane.java
4058 (JRootPane.RootLayout): Reimplemented to
4059 set bounds of contentPane and menuBar.
4060 (setJMenuBar): Add menu bar to the layered pane.
4061 (createLayeredPane): Set layout of layeredPane
4062 to null.
4063 * javax/swing/JLayeredPane.java:
4064 (addImpl): Calculate index of the component in the
4065 layeredPane according to the specified position within
4066 the layer.
4067
40682004-05-17 David Jee <djee@redhat.com>
4069
4070 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4071 (setPixels): Change color model to the default model after
4072 converting pixels.
4073 * java/awt/image/MemoryImageSource.java
4074 (newPixels): Set only the specified rectangle of pixels.
4075
40762004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
4077
4078 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
4079 -l-java-beans -l-javax-accessibility -l-javax-swing.
4080
4081 * java/awt/AWTEvent.java (toString): Print source's name rather
4082 than the source itself.
4083
40842004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4085
4086 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
4087 native.
4088 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
4089 (gdk_color_to_java_color): New function.
4090 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
4091
40922004-05-12 David Jee <djee@redhat.com>
4093
4094 * java/awt/image/RGBImageFilter.java:
4095 Initialize origmodel as null.
4096 (makeColor): Fix pixel component order.
4097 (filterRGBPixels): Fix pixel iteration.
4098 (setPixels): Add extra checks for index color model. Convert pixels
4099 to default color model if necessary.
4100 (convertColorModelToDefault): New override method for byte pixels.
4101 (convertColorModelToDefault): For int pixels, fix pixel iteration.
4102 (makeColorbyDefaultCM): New override method for byte pixels.
4103 (makeColorbyDefaultCM): For int pixel, add color model as argument.
4104 (makeColor): Fix pixel component order.
4105
41062004-05-11 Kim Ho <kho@redhat.com>
4107
4108 * javax/swing/Box.java:
4109 Comment out more parts of Box.Filler.
4110
41112004-05-11 Kim Ho <kho@redhat.com>
4112
4113 * javax/swing/Box.java:
4114 Remove reference to AccessibleAWTComponent so
4115 it compiles again.
4116
41172004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
4118
4119 * gnu/java/awt/peer/gtk/GtkListPeer.java,
4120 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
4121 implementation of list peer to use GtkTreeView instead of
4122 deprecated GtkCList.
4123
41242004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
4125
4126 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
4127 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
4128 (handleEvent): Remove keyChar argument to
4129 gtkWidgetDispatchKeyEvent calls.
4130 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
4131 compiler warnings.
4132 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4133 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
4134 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
4135 Likewise.
4136
41372004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
4138
4139 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
4140 (gtkWidgetRequestFocus): Mark protected.
4141 (GtkComponentPeer): Only set the peer's bounds if its component
4142 is valid.
4143 * java/awt/Component.java (static): Set the default keyboard
4144 focus manager.
4145 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
4146 requestFocusInWindow(temporary)): Don't request focus if the
4147 component is not showing. Get tree lock before traversing
4148 component hierarchy.
4149 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
4150 Only set the global focus owner if it is not a Window.
4151 (processKeyEvent): Consume keystrokes associated with the focus
4152 traversal keystroke.
4153 (focusPreviousComponent, focusNextComponent, upFocusCycle,
4154 downFocusCycle): Call requestFocusInWindow instead of
4155 requestFocus.
4156 * java/awt/EventDispatchThread.java (run): Move setting of
4157 default keyboard focus manager to Component.java.
4158 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4159 (awt_keycode_to_keysym): New function.
4160 (gtkWidgetDispatchKeyEvent): Finish implementation.
4161 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4162 (pre_event_handler): Add FIXME comment.
4163
4164 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
4165 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
4166 (gtkWidgetRequestFocus): New method.
4167 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
4168 disable Tab and Shift-Tab keystrokes.
4169 (addNotify, appendText, insertText, replaceText): Simplify peer
4170 retrieval code.
4171 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
4172 (connectSignals): Remove connections to "commit" signals.
4173 Remove C++-style comments.
4174
4175 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
4176 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
4177 (handleEvent): Activate GTK button when the space bar key is
4178 pressed.
4179 (gtkActivate): New method.
4180
41812004-05-06 David Jee <djee@redhat.com>
4182
4183 * java/awt/image/CropImageFilter.java
4184 (setPixels): Implement for byte array pixels.
4185 * java/awt/image/ReplicateScaleFilter.java
4186 (setPixels): Implement for byte array pixels.
4187 (replicatePixels): Overload for byte array pixels.
4188
41892004-05-06 Kim Ho <kho@redhat.com>
4190
4191 * javax/swing/Box.java:
4192 (getAccessibleContext): Return an instance of the
4193 correct class.
4194
41952004-05-05 David Jee <djee@redhat.com>
4196
4197 * gnu/java/awt/peer/gtk/GdkGraphics.java
4198 (drawImage): When component is null, use SystemColor.window as
4199 the default bgcolor.
4200 * gnu/java/awt/peer/gtk/GtkImage.java
4201 (setPixels): We can avoid iterating through the pixel rows only
4202 when height is 1.
4203 * java/awt/Image.java
4204 (getScaledInstance): Partially implement.
4205 * java/awt/image/CropImageFilter.java
4206 (setProperties): Fix "filter" property.
4207 (setPixels): Implement.
4208 * java/awt/image/ReplicateScaleFilter.java
4209 (setDimensions): Use scaled dimensions.
4210 (setPixels): Implement.
4211 (replicatePixels): New method.
4212
42132004-05-05 David Jee <djee@redhat.com>
4214
4215 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4216 (convertPixels): If either pixels or model is null, return null.
4217 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
4218 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
4219 is null, do nothing and return.
4220
42212004-05-03 Kim Ho <kho@redhat.com>
4222
4223 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
4224 (getGraphics): Like GtkFramePeer, the Graphics
4225 object needs to be translate to account for
4226 window decorations.
4227 (postMouseEvent): New method. Account for
4228 translation.
4229 (postExposeEvent): ditto.
4230 * javax/swing/Box.java: Stubbed.
4231 * javax/swing/JDialog.java: Ran through jalopy
4232 to fix indentation.
4233 (JDialog): Call SwingUtilities' getOwnerFrame
4234 for null owners.
4235 (setLayout): Check isRootPaneCheckingEnabled
4236 * javax/swing/JOptionPane.java: Re-implemented.
4237 * javax/swing/SwingUtilities.java:
4238 (getOwnerFrame): Static method to grab a default
4239 owner frame for Dialogs that don't specify owners.
4240 * javax/swing/event/SwingPropertyChangeSupport.java:
4241 (firePropertyChange): Fix early exit condition.
4242 * javax/swing/plaf/basic/BasicLabelUI.java:
4243 (paint): Avoid painting text if it is null
4244 or empty.
4245 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4246 Implement.
4247
42482004-05-03 Olga Rodimina <rodimina@redhat.com>
4249
4250 * Makefile.am: Added new file.
4251 * Makefile.in: Regenerate.
4252 * javax/swing/JPopupMenu.java:
4253 Started implementation.
4254 * javax/swing/JWindow.java
4255 (JWindow): call super() if parent for window
4256 is not specified.
4257 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4258 New File. UI Delegate for JPopupMenu.
4259
42602004-04-30 Olga Rodimina <rodimina@redhat.com>
4261
4262 * javax/swing/JApplet.java: Indicated that JApplet
4263 implements RootPaneContainer and made method of this
4264 interface public.
4265 * javax/swing/JFrame.java: Ditto.
4266 * javax/swing/JWindow.java: Ditto.
4267
42682004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
4269
4270 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4271 (nativeSetBounds): Call gdk_window_move in addition to
4272 gtk_window_move.
4273
4274 * java/applet/Applet.java (preferredSize): Call parent's
4275 preferredSize if the applet stub is null.
4276 (minimumSize): Likewise for parent's minimumSize.
4277
42782004-04-27 Olga Rodimina <rodimina@redhat.com>
4279
4280 * javax/swing/JMenuItem.java
4281 (createActionPropertyChangeListener): Implemented.
4282 (processMouseEvent): Ditto.
4283 (fireMenuDragMouseEntered): Ditto.
4284 (fireMenuDragMouseExited): Ditto.
4285 (fireMenuDragMouseDragged): Ditto.
4286 (fireMenuDragMouseReleased): Ditto.
4287 (menuSelectionChanged): Ditto.
4288 (getSubElements): Ditto.
4289 (getComponent): Ditto.
4290 (addMenuDragMouseListener): Ditto.
4291 (removeMenuDragMouseListener):Ditto.
4292 (addMenuKeyListener): Ditto.
4293 (removeMenuKeyListener): Ditto.
4294 * javax/swing/plaf/basic/BasicMenuItemUI.java
4295 (doClick): Imlemented.
4296 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
4297 Don't handle mouse events here. Pass them to
4298 MenuSelectionManager.
4299
43002004-04-26 Olga Rodimina <rodimina@redhat.com>
4301 Used correct version of jalopy configuration
4302 file to fix style in the files below.
4303
43042004-04-26 Olga Rodimina <rodimina@redhat.com>
4305
4306 * javax/swing/JCheckBoxMenuItem.java:
4307 Fixed style and removed unnecessary comments.
4308 * javax/swing/JMenuItem.java: Ditto.
4309 * javax/swing/JRadioButtonMenuItem.java: Ditto.
4310 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
4311 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
4312 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
4313
43142004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
4315
4316 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
4317 C-style.
4318
4319 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
4320
4321 * java/awt/ContainerOrderFocusTraversalPolicy.java
4322 (getComponentAfter): Start from current component and work up
4323 the component hierarchy until an acceptable component is found.
4324 Synchronize on tree lock.
4325 (getComponentBefore): Likewise.
4326
43272004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
4328
4329 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
4330 focus-related debugging messages.
4331 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
4332 * java/awt/EventDispatchThread.java: Likewise.
4333 * java/awt/KeyboardFocusManager.java: Likewise.
4334 * java/awt/Window.java: Likewise.
4335 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
4336 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4337
4338 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
4339 new C++-style comments to C-style comments.
4340 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4341
4342 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4343 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4344 (handleEvent): Dispatch key press and key release events to
4345 backing widget.
4346 (requestFocus): Post a FOCUS_GAINED event to the event queue.
4347 (gtkWidgetRequestFocus): New method.
4348 (gtkWidgetDispatchKeyEvent): Likewise.
4349 * java/awt/Component.java (requestFocus, requestFocus(boolean),
4350 requestFocusInWindow, requestFocusInWindow(boolean),
4351 getFocusCycleRootAncestor, nextFocus, transferFocus,
4352 transferFocusBackward, transferFocusUpCycle, hasFocus,
4353 isFocusOwner): Implement and document focus-handling methods.
4354 (setFocusTraversalKeys): Inherit focus traversal keys when
4355 keystrokes argument is null. Fix focus-handling documentation
4356 throughout class.
4357 * java/awt/Container.java (setFocusTraversalKeys,
4358 getFocusTraversalKeys, areFocusTraversalKeysSet,
4359 isFocusCycleRoot, setFocusTraversalPolicy,
4360 getFocusTraversalPolicy, isFocusTraversalPolicySet,
4361 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4362 Implement and document focus-handling methods.
4363 (transferFocusBackward): Remove method.
4364 (readObject, writeObject): Implement and document serialization
4365 methods.
4366 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4367 and document.
4368 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4369 document.
4370 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4371 partially document.
4372 * java/awt/EventDispatchThread.java (run): Set default keyboard
4373 focus manager. Attempt to dispatch each event to the keyboard
4374 focus manager before normal dispatch.
4375 * java/awt/KeyboardFocusManager.java: Implement and partially
4376 document.
4377 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4378 (show): Focus initial component when window is shown for the
4379 first time.
4380 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4381 (pre_event_handler): Replace complex key press and key release
4382 logic with simple callbacks into GtkComponentPeer.
4383 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4384
43852004-04-21 Olga Rodimina <rodimina@redhat.com>
4386
4387 * javax/swing/MenuSelectionManager.java
4388 (componentForPoint): Added new method.
4389 (defaultManager): New Method. Implemented.
4390 (getSelectedPath): Ditto.
4391 (isComponentPartOfCurrentMenu): Ditto.
4392 (processKeyEvent): Added new method.
4393 (processMouseEvent): New Method. Implemented.
4394 (setSelectedPath): Ditto.
4395 (getPath): Ditto.
4396
43972004-04-19 Kim Ho <kho@redhat.com>
4398
4399 * java/awt/Container.java:
4400 (remove): Set the component's parent to null.
4401 (getComponentAt): Implement.
4402 * javax/swing/JComponent.java:
4403 (JComponent): Initialize defaultLocale
4404 (getDefaultLocale): Implement.
4405 (setDefaultLocale): ditto.
4406 * javax/swing/JSlider.java:
4407 (JSlider): Fix calculation of value.
4408 * javax/swing/JSplitPane.java: Implement.
4409 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4410 Change SplitPane's default divider size.
4411 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4412 (paint): Remove unused code.
4413 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4414 Added comments and ran through jalopy.
4415 (setBasicSplitPaneUI): Get reference to hidden divider
4416 and set up one touch buttons if necessary.
4417 (setBorder): Fire propertyChangeEvent only if
4418 borders are different.
4419 (getPreferredSize): Defer to layout manager.
4420 (propertyChange): Implement.
4421 (oneTouchExpandableChanged): ditto.
4422 (createLeftOneTouchButton): Use BasicArrowButton.
4423 (createRightOneTouchButton): ditto.
4424 (moveDividerTo): New method. Moves the divider
4425 to a set location based on the last divider location.
4426 (BasicSplitPaneDivider::MouseHandler): Implement.
4427 (BasicSplitPaneDivider::OneTouchButton): Removed.
4428 (BasicSplitPaneDivider::DragController): Implement.
4429 (BasicSplitPaneDivider::VerticalDragController):
4430 ditto.
4431 (BasicSplitPaneDivider::DividerLayout): ditto.
4432 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4433 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4434 (calculateLayoutInfo): Don't show component if it's
4435 null.
4436 (paintTab): Fix title paint logic.
4437
2140214f
JQ
44382004-05-26 Jerry Quinn <jlquinn@optonline.net>
4439
4440 PR libgcj/8321
4441 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4442 (setStartRule,setEndRule): Don't take abs of day number.
4443 (getOffset): Clarify docs. Add argument checks.
4444 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4445 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4446 endTimeMode.
4447 * testsuite/libjava.mauve/xfails
4448 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4449
17abdabc
BM
44502004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4451
4452 Layout interfaces during preparation, not initialization.
4453 * java/lang/natClass.cc (initializeClass): Move
4454 _Jv_LayoutInterfaceMethods call...
4455 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4456
0fa13661
AG
44572004-05-19 Anthony Green <green@localhost.localdomain>
4458
4459 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4460 gnu.javax.rmi code.
4461 * Makefile.in: Rebuilt.
4462 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4463 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4464 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4465 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4466 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4467 gnu/javax/rmi/CORBA/DelegateFactory.java,
4468 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4469 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4470 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4471 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4472 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4473 gnu/javax/rmi/PortableServer.java: Remove files.
4474
0f22079e
AG
44752004-05-19 Anthony Green <green@redhat.com>
4476
4477 * Makefile.am: Define JAVA_EXT_DIRS.
4478 * Makefile.in: Rebuilt.
4479 * java/lang/natRuntime.cc (insertSystemProperties): Set
4480 java.ext.dirs property.
4481
9152dcf4
MW
44822004-05-16 Mark Wielaard <mark@klomp.org>
4483
4484 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4485
fb0e7ec0
MW
44862004-05-15 Mark Wielaard <mark@klomp.org>
4487
4488 * doc/cni.sgml: Removed, merged into gcj.texi.
4489
85ff6f62
MW
44902004-05-15 Mark Wielaard <mark@klomp.org>
4491
4492 * Makefile.am (ordinary_java_source_files): Add new javax.print
4493 classes.
4494 * Makefile.in: Regenerated.
4495
44962004-05-15 Michael Koch <konqueror@gmx.de>
4497
4498 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4499 javax/print/attribute/standard/DateTimeAtCreation.java,
4500 javax/print/attribute/standard/DateTimeAtProcessing.java,
4501 javax/print/attribute/standard/DocumentName.java,
4502 javax/print/attribute/standard/JobHoldUntil.java,
4503 javax/print/attribute/standard/JobImpressionsCompleted.java,
4504 javax/print/attribute/standard/JobMessageFromOperator.java,
4505 javax/print/attribute/standard/JobName.java,
4506 javax/print/attribute/standard/JobOriginatingUserName.java,
4507 javax/print/attribute/standard/JobPriority.java,
4508 javax/print/attribute/standard/JobPrioritySupported.java,
4509 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4510 javax/print/attribute/standard/OutputDeviceAssigned.java,
4511 javax/print/attribute/standard/PrinterInfo.java,
4512 javax/print/attribute/standard/PrinterLocation.java,
4513 javax/print/attribute/standard/PrinterMakeAndModel.java,
4514 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4515 javax/print/attribute/standard/PrinterName.java,
4516 javax/print/attribute/standard/QueuedJobCount.java,
4517 javax/print/attribute/standard/RequestingUserName.java:
4518 Fixed javadocs all over.
4519
45202004-05-15 Michael Koch <konqueror@gmx.de>
4521
4522 * javax/print/DocFlavor.java,
4523 javax/print/attribute/standard/ColorSupported.java,
4524 javax/print/attribute/standard/Compression.java,
4525 javax/print/attribute/standard/CopiesSupported.java,
4526 javax/print/attribute/standard/Fidelity.java,
4527 javax/print/attribute/standard/Finishings.java,
4528 javax/print/attribute/standard/JobImpressionsSupported.java,
4529 javax/print/attribute/standard/JobKOctetsSupported.java,
4530 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4531 javax/print/attribute/standard/JobSheets.java,
4532 javax/print/attribute/standard/JobState.java,
4533 javax/print/attribute/standard/JobStateReason.java,
4534 javax/print/attribute/standard/JobStateReasons.java,
4535 javax/print/attribute/standard/Media.java,
4536 javax/print/attribute/standard/MediaSizeName.java,
4537 javax/print/attribute/standard/MultipleDocumentHandling.java,
4538 javax/print/attribute/standard/NumberUpSupported.java,
4539 javax/print/attribute/standard/OrientationRequested.java,
4540 javax/print/attribute/standard/PDLOverrideSupported.java,
4541 javax/print/attribute/standard/PageRanges.java,
4542 javax/print/attribute/standard/PresentationDirection.java,
4543 javax/print/attribute/standard/PrintQuality.java,
4544 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4545 javax/print/attribute/standard/PrinterMoreInfo.java,
4546 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4547 javax/print/attribute/standard/PrinterResolution.java,
4548 javax/print/attribute/standard/PrinterState.java,
4549 javax/print/attribute/standard/PrinterStateReason.java,
4550 javax/print/attribute/standard/PrinterStateReasons.java,
4551 javax/print/attribute/standard/PrinterURI.java,
4552 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4553 javax/print/attribute/standard/Severity.java,
4554 javax/print/attribute/standard/SheetCollate.java,
4555 javax/print/attribute/standard/Sides.java:
4556 Added serialVersionUID and removed final keyword where it doenst
4557 belong.
4558
45592004-05-15 Michael Koch <konqueror@gmx.de>
4560
4561 * javax/print/PrintServiceLookup.java: New file.
4562
45632004-05-15 Michael Koch <konqueror@gmx.de>
4564
4565 * javax/print/DocFlavor.java:
4566 Implemented all flavor classes.
4567
45682004-05-15 Michael Koch <konqueror@gmx.de>
4569
4570 * javax/print/attribute/standard/ColorSupported.java,
4571 javax/print/attribute/standard/Compression.java,
4572 javax/print/attribute/standard/CopiesSupported.java,
4573 javax/print/attribute/standard/Fidelity.java,
4574 javax/print/attribute/standard/Finishings.java,
4575 javax/print/attribute/standard/JobImpressionsSupported.java,
4576 javax/print/attribute/standard/JobKOctetsSupported.java,
4577 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4578 javax/print/attribute/standard/JobSheets.java,
4579 javax/print/attribute/standard/JobState.java,
4580 javax/print/attribute/standard/JobStateReason.java,
4581 javax/print/attribute/standard/JobStateReasons.java,
4582 javax/print/attribute/standard/Media.java,
4583 javax/print/attribute/standard/MediaSizeName.java,
4584 javax/print/attribute/standard/MultipleDocumentHandling.java,
4585 javax/print/attribute/standard/NumberUpSupported.java,
4586 javax/print/attribute/standard/OrientationRequested.java,
4587 javax/print/attribute/standard/PDLOverrideSupported.java,
4588 javax/print/attribute/standard/PageRanges.java,
4589 javax/print/attribute/standard/PresentationDirection.java,
4590 javax/print/attribute/standard/PrintQuality.java,
4591 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4592 javax/print/attribute/standard/PrinterMoreInfo.java,
4593 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4594 javax/print/attribute/standard/PrinterResolution.java,
4595 javax/print/attribute/standard/PrinterState.java,
4596 javax/print/attribute/standard/PrinterStateReason.java,
4597 javax/print/attribute/standard/PrinterStateReasons.java,
4598 javax/print/attribute/standard/PrinterURI.java,
4599 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4600 javax/print/attribute/standard/Severity.java,
4601 javax/print/attribute/standard/SheetCollate.java,
4602 javax/print/attribute/standard/Sides.java: New files.
4603
46042004-05-15 Michael Koch <konqueror@gmx.de>
4605
4606 * javax/print/Doc.java
4607 (getPrintData): Throws IOException.
4608 (getReaderForText): Likewise.
4609 (getStreamForBytes): Likewise.
4610 * javax/print/DocFlavor.java:
4611 Fixed filename in copyright.
4612 (serialVersionUID): New field.
4613 * javax/print/ServiceUIFactory.java:
4614 Made all constants final.
4615 * javax/print/AttributeException.java
4616 javax/print/MultiDoc.java
4617 javax/print/MultiDocPrintJob.java
4618 javax/print/MultiDocPrintService.java
4619 javax/print/StreamPrintService.java
4620 javax/print/URIException.java: New files.
4621 * javax/print/Makefile.am
4622 (EXTRA_DIST): Added all new files.
4623
46242004-05-15 Michael Koch <konqueror@gmx.de>
4625
4626 * javax/print/attribute/standard/Copies.java,
4627 javax/print/attribute/standard/DateTimeAtCompleted.java,
4628 javax/print/attribute/standard/DateTimeAtCreation.java,
4629 javax/print/attribute/standard/DateTimeAtProcessing.java,
4630 javax/print/attribute/standard/DocumentName.java,
4631 javax/print/attribute/standard/JobHoldUntil.java,
4632 javax/print/attribute/standard/JobImpressions.java,
4633 javax/print/attribute/standard/JobImpressionsCompleted.java,
4634 javax/print/attribute/standard/JobKOctets.java,
4635 javax/print/attribute/standard/JobKOctetsProcessed.java,
4636 javax/print/attribute/standard/JobMediaSheets.java,
4637 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4638 javax/print/attribute/standard/JobMessageFromOperator.java,
4639 javax/print/attribute/standard/JobName.java,
4640 javax/print/attribute/standard/JobOriginatingUserName.java,
4641 javax/print/attribute/standard/JobPriority.java,
4642 javax/print/attribute/standard/JobPrioritySupported.java,
4643 javax/print/attribute/standard/NumberOfDocuments.java,
4644 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4645 javax/print/attribute/standard/NumberUp.java,
4646 javax/print/attribute/standard/OutputDeviceAssigned.java,
4647 javax/print/attribute/standard/PagesPerMinute.java,
4648 javax/print/attribute/standard/PagesPerMinuteColor.java:
4649 Fixed @return tag all over.
4650
46512004-05-15 Michael Koch <konqueror@gmx.de>
4652
4653 * javax/print/attribute/AttributeSetUtilities.java
4654 (verifyCategoryForValue): Fixed typo in javadoc.
4655 * javax/print/attribute/HashAttributeSet.java
4656 (containsKey): Fixed @return tag.
4657 (comtainsValue): Likewise.
4658 (equals): Likewise.
4659 * javax/print/attribute/IntegerSyntax.java
4660 (equals): Likewise.
4661 * javax/print/attribute/ResolutionSyntax.java
4662 (equals): Likewise.
4663 (getCrossFeedResolution): Removed unused code.
4664 (getFeedResolution): Likewise.
4665 * javax/print/attribute/SetOfIntegerSyntax.java
4666 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4667 (equals): Fixed @return tag.
4668 * javax/print/attribute/TextSyntax.java
4669 (TextSyntax): Take locale into account.
4670 (hashCode): Better implementation.
4671
46722004-05-15 Michael Koch <konqueror@gmx.de>
4673
4674 * javax/print/CancelablePrintJob.java,
4675 javax/print/Doc.java,
4676 javax/print/DocFlavor.java,
4677 javax/print/DocPrintJob.java,
4678 javax/print/FlavorException.java,
4679 javax/print/PrintException.java,
4680 javax/print/PrintService.java,
4681 javax/print/ServiceUIFactory.java: New files.
4682
f437e359
MW
46832004-05-15 Mark Wielaard <mark@klomp.org>
4684
4685 * gnu/regexp/CharIndexedReader.java: Removed.
4686 * gnu/regexp/REFilterReader.java: Likewise.
4687 * gnu/regexp/RETokenLookAhead.java: Likewise.
4688 * Makefile.am (ordinary_java_source_files): Remove above classes.
4689 * Makefile.in: Regenerated.
4690
ae0d0d59
TT
46912004-05-14 Tom Tromey <tromey@redhat.com>
4692
4693 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4694 not `XGraphicsConfiguration.XOffScreenImage'.
4695
1cd29ad2
SG
46962004-05-14 Scott Gilbertson <scottg@mantatest.com>
4697
4698 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4699
a01a235c
SA
47002004-05-14 Steven Augart <augart@watson.ibm.com>
4701
4702 * include/jni.h (_Jv_func): Removed.
4703 (struct JNINativeInterface): Use `void *' for reserved slots.
4704 (struct JNIInvokeInterface): Likewise.
4705
8f0b9daa
MK
47062004-05-11 Michael Koch <konqueror@gmx.de>
4707
4708 * gnu/java/net/natPlainSocketImplPosix.cc
4709 (read): Fixed typo in expression.
4710
3f68457e
AT
47112004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4712
4713 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4714 ld_library_additions. Adjust all calls to libjava_invoke to match
4715 the new argument.
4716
4717 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4718 path to cxxflagslist.
4719 Pass path of libstdc++ to libjava_invoke.
4720
4721 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4722 libjava_invoke arguments.
4723
731d47a6
RM
47242004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4725
4726 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4727 reality.
4728
8e31e128
RM
47292004-05-07 Ranjit Mathew <rmathew@gmail.com>
4730
4731 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4732 main binary against the JNI shared library.
4733
61af3d86
JQ
47342004-05-07 Jerry Quinn <jlquinn@optonline.net>
4735
4736 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4737 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4738 (SimpleTimeZone): Tweak docs. Add new variation.
4739 (setStartRule,setEndRule): Add new variations. Use
4740 startTimeMode and endTimeMode.
4741
47422004-05-07 Jerry Quinn <jlquinn@optonline.net>
4743
4744 * java/util/Calendar.java (getActualMinimum,
4745 getActualMaximum): Remove abstract. Implement.
4746
579f9640
BM
47472004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4748
4749 Run the jni tests using the interpreter.
4750 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4751 options_cxx to shared lib compile command.
4752 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4753 they are used to link the shared lib, not the main binary.
4754 Use libjava_invoke to run gij.
4755
0a215a11
MK
47562004-05-06 Michael Koch <konqueror@gmx.de>
4757
4758 * java/util/logging/Level.java
4759 (parse): Use == instead of String.equals().
4760
e51f7aeb
BM
47612004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4762
4763 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4764 verify_field_signature and verify_method_signature, not
4765 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4766 (_Jv_ClassReader::handleField): Likewise.
4767 (_Jv_ClassReader::handleMethod): Likewise.
4768
c8395524
MK
47692004-05-06 Michael Koch <konqueror@gmx.de>
4770
4771 * javax/swing/table/TableColumn.java:
4772 Reformated.
4773
c8b86f1a
MK
47742004-05-06 Michael Koch <konqueror@gmx.de>
4775
4776 * javax/imageio/spi/ImageReaderWriterSpi.java
4777 (ImageReaderWriterSpi): Made it public.
4778 * javax/imageio/stream/ImageInputStream.java:
4779 Clean up imports.
4780
9f2eefb7
MK
47812004-05-06 Michael Koch <konqueror@gmx.de>
4782
4783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4784 Removed empty line.
4785
45505d4d
MK
47862004-05-06 Michael Koch <konqueror@gmx.de>
4787
4788 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4789 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4790 New files.
4791 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4792 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4793 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4794 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4795 their own source file.
4796 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4797 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4798 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4799 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4800 (create): Define variable on top of function.
4801 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4802 (menu_pos): Prototyped.
4803 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4804 (setTitle): Removed.
4805 * jni/gtk-peer/gthread-jni.c
4806 (gdk_threads_wake): Removed.
4807 * Makefile.am (gtk_c_source_files): Added new files
4808 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4809 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4810 * Makefile.in: Regenerated.
4811
74e94435
BM
48122004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4813
4814 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4815 call.
4816
68ea5833
MW
48172004-05-05 Mark Wielaard <mark@klomp.org>
4818
4819 * javax/swing/AbstractButton.java: Replace special HTML entities with
4820 ASCII equivalent.
4821 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4822 * javax/swing/DefaultButtonModel.java: Likewise.
4823 * javax/swing/DefaultListModel.java: Likewise.
4824 * javax/swing/JList.java: Likewise.
4825 * javax/swing/JSlider.java: Likewise.
4826 * javax/swing/ListModel.java: Likewise.
4827 * javax/swing/Popup.java: Likewise.
4828 * javax/swing/SwingUtilities.java: Likewise.
4829
880fa238
MK
48302004-05-05 Michael Koch <konqueror@gmx.de>
4831
4832 * javax/swing/AbstractButton.java,
4833 javax/swing/ActionMap.java,
4834 javax/swing/DefaultButtonModel.java,
4835 javax/swing/DefaultListModel.java,
4836 javax/swing/ImageIcon.java,
4837 javax/swing/JComboBox.java,
4838 javax/swing/JComponent.java,
4839 javax/swing/JFrame.java,
4840 javax/swing/JInternalFrame.java,
4841 javax/swing/JMenuBar.java,
4842 javax/swing/JMenuItem.java,
4843 javax/swing/JOptionPane.java,
4844 javax/swing/JProgressBar.java,
4845 javax/swing/JRootPane.java,
4846 javax/swing/JScrollBar.java,
4847 javax/swing/JScrollPane.java,
4848 javax/swing/JSeparator.java,
4849 javax/swing/JSlider.java,
4850 javax/swing/JTabbedPane.java,
4851 javax/swing/JTable.java,
4852 javax/swing/JTextField.java,
4853 javax/swing/JToolBar.java,
4854 javax/swing/JToolTip.java,
4855 javax/swing/JTree.java,
4856 javax/swing/JViewport.java,
4857 javax/swing/JWindow.java,
4858 javax/swing/KeyStroke.java,
4859 javax/swing/LookAndFeel.java,
4860 javax/swing/SwingUtilities.java,
4861 javax/swing/Timer.java,
4862 javax/swing/ToolTipManager.java,
4863 javax/swing/UIDefaults.java,
4864 javax/swing/border/TitledBorder.java,
4865 javax/swing/filechooser/FileSystemView.java,
4866 javax/swing/plaf/basic/BasicButtonListener.java,
4867 javax/swing/plaf/basic/BasicButtonUI.java,
4868 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4869 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4870 javax/swing/plaf/basic/BasicLabelUI.java,
4871 javax/swing/plaf/basic/BasicMenuItemUI.java,
4872 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4873 javax/swing/plaf/basic/BasicRootPaneUI.java,
4874 javax/swing/plaf/basic/BasicScrollBarUI.java,
4875 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4876 javax/swing/plaf/basic/BasicSliderUI.java,
4877 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4878 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4879 javax/swing/table/JTableHeader.java,
4880 javax/swing/text/AbstractDocument.java,
4881 javax/swing/text/DefaultCaret.java,
4882 javax/swing/text/StyledEditorKit.java,
4883 javax/swing/tree/DefaultTreeCellEditor.java:
4884 Cleaned up imports.
4885
4a93a226
MK
48862004-05-05 Michael Koch <konqueror@gmx.de>
4887
4888 * java/util/prefs/AbstractPreferences.java
4889 (AbstractPreferences): Added parenthesis for clarity.
4890 Closes classpath bug #7940.
4891
aaec686e
TT
48922004-05-05 Tom Tromey <tromey@redhat.com>
4893
4894 * javax/naming/CompoundName.java (endsWith): Look at correct
4895 element of source name.
4896
b1210ca2
MW
48972004-05-05 Mark Wielaard <mark@klomp.org>
4898
4899 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4900 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4901
a54f498a
TT
49022004-05-05 Tom Tromey <tromey@redhat.com>
4903
4904 * java/io/BufferedReader.java (skip): Removed unused
4905 variable.
4906
e8430418
MK
49072004-05-05 Michael Koch <konqueror@gmx.de>
4908
4909 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4910
f32c742c
DT
49112004-05-05 Dalibor Topic <robilad@kaffe.org>
4912
4913 * java/text/AttributedString.java,
4914 java/text/AttributedStringIterator.java,
4915 java/text/Collator.java,
4916 java/text/DecimalFormatSymbols.java,
4917 java/text/NumberFormat.java,
4918 java/text/RuleBasedCollator.java:
4919 Cleaned up imports.
4920
d70bd7ff
TT
49212004-05-05 Tom Tromey <tromey@redhat.com>
4922
4923 * java/text/Format.java: Cleaned up imports.
4924 * java/text/DecimalFormat.java: Cleaned up imports.
4925 * java/security/SecureRandom.java: Cleaned up imports.
4926 (SecureRandom): Removed unused variable.
4927 * java/security/UnresolvedPermission.java: Cleaned up imports.
4928 * java/util/Date.java (parse): Removed unused variable.
4929 * java/util/ResourceBundle.java: Cleaned up imports.
4930 (getBundle): Removed unused variable.
4931 (tryBundle): Likewise.
4932 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4933
2225a42a
GL
49342004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4935
4936 * java/text/SimpleDateFormat.java:
4937 (formatWithAttribute): New method. It implements
4938 the formatting process with attributes.
4939 (format): Use formatWithAttribute.
4940 (formatToCharacterIterator): New method. Use
4941 formatWithAttribute.
4942
1f646142
GL
49432004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4944
4945 * java/text/MessageFormat.java:
4946 (class Field): New class.
4947 (formatToCharacterIterator): New method.
4948 (format): Use formatInternal now.
4949 (formatInternal): New method. String formatter should
4950 be done here (with attributes). Attributes merging supported.
4951 (parse): More documentation.
4952 (getFormatsByArgumentIndex): New method.
4953 (setFormatByArgumentIndex): New method.
4954 (setFormatsByArgumentIndex): New method.
4955
8cf1edb3
GL
49562004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4957
4958 * java/text/DecimalFormat.java
4959 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4960 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4961 (parse): Fixed handling of exponentiation notation and grouping.
4962
49632004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4964
4965 * java/text/DecimalFormat.java
4966 (scanFix): Build attribute array. Fixed error reporting.
4967 (applyPatternWithSymbols): Store attributes for the prefix and
4968 suffix.
4969 (formatInternal): New method. Changed the way the string is
4970 computed. Implemented attributes. Cleant up rounding in
4971 exponential notation.
4972 (format): Use formatInternal.
4973 (formatToCharacterIterator): New method.
4974 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4975 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4976 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4977 New fields.
4978
aff9d141
DT
49792004-05-04 Dalibor Topic <robilad@kaffe.org>
4980
4981 * java/security/interfaces/DSAKeyPairGenerator.java,
4982 java/security/interfaces/DSAPrivateKey.java,
4983 java/security/interfaces/DSAPublicKey.java,
4984 java/security/interfaces/RSAPrivateKey.java,
4985 java/security/interfaces/RSAPublicKey.java:
4986 Cleaned up imports.
4987
933522fb
MK
49882004-05-04 Michael Koch <konqueror@gmx.de>
4989
4990 * java/nio/ByteBuffer.java,
4991 java/nio/CharBuffer.java,
4992 java/nio/DoubleBuffer.java,
4993 java/nio/FloatBuffer.java,
4994 java/nio/IntBuffer.java,
4995 java/nio/LongBuffer.java,
4996 java/nio/ShortBuffer.java:
4997 (compareTo): Fixed bogus implementation in all buffer classes.
4998
27c2c3ec
IP
49992004-05-04 Ingo Proetel <proetel@aicas.com>
5000
5001 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
5002 32 bit pixels not 8 bit pixels.
5003 (isCompatibleRaster): Added javadoc comment.
5004
50052004-05-04 Ingo Proetel <proetel@aicas.com>
5006
5007 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
5008 scanline stride.
5009
50102004-05-04 Ingo Proetel <proetel@aicas.com>
5011
5012 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
5013 (getColorModel): Return the actual color model.
5014 (getRaster): Implemented.
5015 (ColorRaster): New inner class.
5016 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
5017 a PaintContext.
5018 * java/awt/Color.java (<init>): Make exception more verbose.
5019 (createContext): Use ColorModel when creating a PaintContext.
5020
a31d9d6c
MK
50212004-05-04 Michael Koch <konqueror@gmx.de>
5022
5023 * gnu/java/text/CharacterBreakIterator.java
5024 (previous): Removed unused variable.
5025
065afdfa
GL
50262004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
5027
5028 * gnu/java/text/FormatBuffer.java,
5029 gnu/java/text/AttributedFormatBuffer.java,
5030 gnu/java/text/StringFormatBuffer.java: New classes to implement
5031 attributed iterators in java.text.
5032 * gnu/java/text/FormatCharacterIterator.java: Moved
5033 from java/text as it is an internal class.
5034 * java/text/FormatCharacterIterator.java: Removed.
5035 * java/text/Format.java:
5036 Import gnu.java.text.FormatCharacterIterator.
5037 * Makefile.am (java_source_files): Added new files.
5038 * Makefile.in: Regenerated.
5039
5040
af62fd12
MW
50412004-05-04 Mark Wielaard <mark@klomp.org>
5042
53c87e49 5043 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
af62fd12 5044
a3c44036
AT
50452004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
5046
5047 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
5048 * Makefile.in: Rebuilt.
5049
007265b8
MW
50502004-05-03 Mark Wielaard <mark@klomp.org>
5051
5052 * gnu/java/security/der/DERReader.java: Call static methods staticly.
5053 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
5054 * java/net/URL.java
5055 (set(String, String, int, String, String, String, String, String)):
5056 Assign this.file to path or path + "?" + query.
5057 * java/util/Arrays.java: Call static methods staticly.
5058 * java/util/zip/ZipEntry.java: Likewise.
5059 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
5060 dir to this.direction.
5061 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
5062 Assign static field only once.
5063 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
5064
a00d3b3c
MW
50652004-05-03 Mark Wielaard <mark@klomp.org>
5066
5067 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
5068 unused variables hScrollbarHeight and vScrollbarWidth.
5069 (preferredSize): Likewise.
5070 * gnu/java/security/provider/DSAParameters.java (engineToString):
5071 Removed unused call to System.getProperty("line.seperator");
5072 * java/security/Security.java (loadProviders): Return result.
5073
7b68f0bf
TT
50742004-05-03 Tom Tromey <tromey@redhat.com>
5075
5076 * java/net/URLStreamHandler.java (toExternalForm): Removed
5077 unused variables.
5078 unused constructor.
5079 * java/math/BigDecimal.java (divide): Removed unused variable.
5080 * java/lang/Throwable.java: Cleaned up imports.
5081 * java/lang/ClassLoader.java: Cleaned up imports.
5082 * java/io/FilePermission.java (implies): Removed unused
5083 variable.
5084 * java/awt/TextComponent.java: Removed unused import.
5085 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
5086 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
5087 * gnu/java/text/WordBreakIterator.java: Removed unused import.
5088 * gnu/java/text/SentenceBreakIterator.java: Removed unused
5089 import.
5090 * gnu/java/text/LineBreakIterator.java: Removed unused import.
5091 * gnu/java/text/CharacterBreakIterator.java: Removed
5092 unused import.
5093 * gnu/java/security/provider/DSAKeyPairGenerator.java:
5094 Cleaned up imports.
5095 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
5096 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
5097 unused method.
5098 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
5099 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
5100 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
5101 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
5102 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
5103 (lookupProviders): Removed unused variable.
5104 (loadNextServiceProvider): Likewise.
5105 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
5106
493b3c9c
MK
51072004-05-03 Michael Koch <konqueror@gmx.de>
5108
5109 Fixes PR libgcj/14695:
5110 * java/net/NetworkInterface.java
5111 (getByName): Return null when no interface was found.
5112
55ce9c52
RM
51132004-04-30 Ranjit Mathew <rmathew@hotmail.com>
5114 Tom Tromey <tromey@redhat.com>
5115
5116 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
5117 additional option "-Wmissing-prototypes" for compiling C sources.
5118 Print actual filename for pass/fail rather than $name.c.
5119 * testsuite/libjava.jni/PR15133.java: New testcase file.
5120 * testsuite/libjava.jni/PR15133.c: Likewise.
5121 * testsuite/libjava.jni/PR15133.out: Likewise.
5122
2d99c042
RS
51232004-04-30 Roger Sayle <roger@eyesopen.com>
5124
5125 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
5126 ceil and floor.
5127
c1fcbbc3
RM
51282004-04-25 Ranjit Mathew <rmathew@hotmail.com>
5129
5130 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
5131 limit the maximum heap size to avoid unnecessary thrashing.
5132
6f0b1fa5
JQ
51332004-04-24 Jerry Quinn <jlquinn@optonline.net>
5134
5135 * java/text/CollationElementIterator.java (reset): Reset
5136 lookahead variables.
5137
99a88816
MW
51382004-04-23 Mark Wielaard <mark@klomp.org>
5139
5140 * jni/classpath/jcl.c: Changed C++ comments into C comments.
5141
b4e7ef8d
DT
51422004-04-23 Dalibor Topic <robilad@kaffe.org>
5143
5144 * java/sql/DriverManager.java:
5145 Cleaned up imports.
5146
e9d34968
MK
51472004-04-23 Michael Koch <konqueror@gmx.de>
5148
5149 * java/net/URL.java
5150 (hashcode): Don't initialize with default value explicitely.
5151 (getContent): Removed redundant "final" keyword.
5152 (openStream): Likewise.
5153 (getURLStreamHandler): Fixed coding style.
5154 * java/net/URLConnection.java
5155 (defaultAllowUserInteraction): Don't initialize with default value
5156 explicitely.
5157 (connected): Likewise.
5158 (doOutput): Likewise.
5159 (ifModifiedSince): Likewise.
5160 (dateformats_initialized): Likewise.
5161 (setURLStreamHander): Use StreamTokenizer where it belongs to.
5162
87939d70
MK
51632004-04-23 Michael Koch <konqueror@gmx.de>
5164
5165 * gnu/java/nio/channels/FileChannelImpl.java
5166 (SET, CUR): Unused, removed.
5167 (read): Implement here directly.
5168 (implRead): Removed.
5169 (write): Implement here directly.
5170 (implWrite): Removed.
5171
5d837a58
DT
51722004-04-23 Dalibor Topic <robilad@kaffe.org>
5173
5174 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
5175 javax/rmi/CORBA/Stub.java,
5176 javax/rmi/CORBA/Util.java,
5177 javax/rmi/CORBA/ValueHandler.java,
5178 javax/rmi/CORBA/ValueHandler.java,
5179 javax/rmi/PortableRemoteObject.java:
5180 Cleaned up imports.
5181
ace7ed7c
DT
51822004-04-23 Dalibor Topic <robilad@kaffe.org>
5183
5184 * java/util/jar/JarFile.java,
5185 java/util/jar/JarInputStream.java,
5186 java/util/jar/JarOutputStream.java,
5187 java/util/jar/Manifest.java:
5188 Cleaned up imports.
5189
51902004-04-23 Dalibor Topic <robilad@kaffe.org>
5191
5192 * java/util/ArrayList.java,
5193 java/util/Calendar.java,
5194 java/util/Currency.java,
5195 java/util/HashMap.java,
5196 java/util/HashSet.java,
5197 java/util/Hashtable.java,
5198 java/util/LinkedList.java,
5199 java/util/Properties.java,
5200 java/util/PropertyPermission.java,
5201 java/util/TimeZone.java,
5202 java/util/TreeMap.java,
5203 java/util/TreeSet.java,
5204 java/util/Vector.java,
5205 java/util/WeakHashMap.java:
5206 Cleaned up imports.
5207
52082004-04-23 Dalibor Topic <robilad@kaffe.org>
5209
5210 * java/util/logging/FileHandler.java,
5211 java/util/logging/Formatter.java,
5212 java/util/logging/Handler.java,
5213 java/util/logging/Logger.java,
5214 java/util/logging/SimpleFormatter.java,
5215 java/util/logging/XMLFormatter.java:
5216 Cleaned up imports.
5217
ae522139
MW
52182004-04-22 Mark Wielaard <mark@klomp.org>
5219
5220 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
5221 -Wno-long-long flags variable.
5222 (gtk_c_files): Use PEDANTIC_CFLAGS.
5223 * Makefile.in: Regenerated.
5224
838a4849
MK
52252004-04-22 Mark Wielaard <mark@klomp.org>
5226
5227 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5228 Changed C++ comments into C comments.
5229 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
5230 Likewise.
5231
52322004-04-22 Michael Koch <konqueror@gmx.de>
5233
5234 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5235 Merged copyright year with GNU classpath.
5236
fe2235d1
DT
52372004-04-22 Dalibor Topic <robilad@kaffe.org>
5238
5239 * javax/security/auth/x500/X500Principal.java:
5240 Cleaned up imports.
5241
b7db3d0a
DT
52422004-04-22 Dalibor Topic <robilad@kaffe.org>
5243
5244 * javax/swing/JSlider.java:
5245 Fixed HTML tags in comments.
5246
32bfc773
DT
52472004-04-22 Dalibor Topic <robilad@kaffe.org>
5248
5249 * javax/accessibility/AccessibleText.java:
5250 Cleaned up imports.
5251
e930d01a
MK
52522004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
5253
5254 * java/net/URLStreamHandler.java
5255 (parseURL): Convert the file path to using '/' instead of native
5256 file separator.
5257
52582004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
5259
5260 * java/net/URL.java
5261 (userInfo): New field.
5262 (URL): Set authority to the right value.
5263 (setURL): Fixed authority and file initialization.
5264 * java/net/URLStreamHandler.java
5265 (parseURL): Take care of the query tag. Build authority.
5266 (toExternalForm): Fixed URL building using authority.
5267
5d79367d
MK
52682004-04-22 Michael Koch <konqueror@gmx.de>
5269
5270 * java/net/Socket.java
5271 (impl): Made package-private.
5272 * java/net/ServerSocket.java
5273 (implAccept): Access Socket.impl field directly.
5274
c0dce235
DT
52752004-04-22 Dalibor Topic <robilad@kaffe.org>
5276
5277 * java/util/prefs/Preferences.java,
5278 java/util/prefs/InvalidPreferencesFormatException.java,
5279 java/util/prefs/BackingStoreException.java,
5280 java/util/prefs/AbstractPreferences.java:
5281 Cleaned up imports.
5282
52832004-04-22 Dalibor Topic <robilad@kaffe.org>
5284
5285 * java/util/regex/Matcher.java,
5286 java/util/regex/Pattern.java:
5287 Cleaned up imports.
5288
5c09d725
MK
52892004-04-22 Michael Koch <konqueror@gmx.de>
5290
5291 * java/nio/charset/IllegalCharsetNameException.java
5292 (charsetName): Made private.
5293 (IllegalCharsetNameException): Added @param tag to javadoc.
5294 (getCharsetName): Added @return tag to javadoc.
5295 * java/nio/charset/MalformedInputException.java
5296 (MalformedInputException): Added @param tag to javadoc.
5297 (getInputLength): Revised method description, added @return tag.
5298 (getMessage): Added @return tag.
5299
83ef3f2b
JQ
53002004-04-22 Jerry Quinn <jlquinn@optonline.net>
5301
5302 * java/awt/Font.java (deriveFont): Implement missing variants.
5303 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
5304 missing variants.
5305
746ecc78
BM
53062004-04-21 Bryce McKinlay <mckinlay@redhat.com>
5307
5308 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
5309 Set method->index values for interface methods to their itable index.
5310 (initializeClass): Call _Jv_LayoutInterfaceMethods.
5311
86a80fc3
MK
53122004-04-21 Michael Koch <konqueror@gmx.de>
5313
5314 * java/nio/DirectByteBufferImpl.java
5315 (shiftDown): Made static, give address as argument and
5316 provide a convenience method that overwrites shiftDown in
5317 ByteBufferImpl and calls the native shiftDown.
5318 * java/nio/MappedByteBufferImpl.java
5319 (): Use optimized method in DirectByteBufferImpl.
5320 * java/nio/natDirectByteBufferImpl.cc
5321 (shiftDown): Changed method signature. Removed usage of array_offset.
5322
6e90ed19
MK
53232004-04-21 Michael Koch <konqueror@gmx.de>
5324
5325 * gnu/java/net/natPlainSocketImplPosix.cc
5326 (SocketInputStream::read): Make sure returned data is a byte value.
5327
96d22b12
MK
53282004-04-21 Michael Koch <konqueror@gmx.de>
5329
5330 * gnu/classpath/ServiceFactory.java,
5331 gnu/classpath/ServiceProviderLoadingAction.java,
5332 javax/imageio/ImageReader.java,
5333 javax/imageio/ImageTranscoder.java,
5334 javax/imageio/ImageWriter.java,
5335 javax/imageio/package.html,
5336 javax/imageio/spi/IIOServiceProvider.java,
5337 javax/imageio/spi/ImageInputStreamSpi.java,
5338 javax/imageio/spi/ImageOutputStreamSpi.java,
5339 javax/imageio/spi/ImageReaderWriterSpi.java,
5340 javax/imageio/spi/ImageTranscoderSpi.java,
5341 javax/imageio/spi/RegisterableService.java,
5342 javax/imageio/spi/ServiceRegistry.java,
5343 javax/imageio/spi/package.html,
5344 javax/imageio/stream/IIOByteBuffer.java,
5345 javax/imageio/stream/ImageInputStream.java,
5346 javax/imageio/stream/ImageOutputStream.java,
5347 javax/imageio/stream/package.html:
5348 New files.
5349 * Makefile.am
5350 (ordinary_java_source_files): Added
5351 gnu/classpath/ServiceFactory.java and
5352 gnu/classpath/ServiceProviderLoadingAction.java.
5353 (javax_source_files): Added
5354 javax/imageio/ImageReader.java,
5355 javax/imageio/ImageTranscoder.java,
5356 javax/imageio/ImageWriter.java,
5357 javax/imageio/spi/IIOServiceProvider.java,
5358 javax/imageio/spi/ImageInputStreamSpi.java,
5359 javax/imageio/spi/ImageOutputStreamSpi.java,
5360 javax/imageio/spi/ImageReaderWriterSpi.java,
5361 javax/imageio/spi/ImageTranscoderSpi.java,
5362 javax/imageio/spi/RegisterableService.java,
5363 javax/imageio/spi/ServiceRegistry.java,
5364 javax/imageio/stream/IIOByteBuffer.java,
5365 javax/imageio/stream/ImageInputStream.java and
5366 javax/imageio/stream/ImageOutputStream.java.
5367 * Makefile.in: Regenerated.
5368
ca17d211
MK
53692004-04-21 Michael Koch <konqueror@gmx.de>
5370
5371 * java/util/Properties.java
5372 (load): Fix wrongly merged fix.
5373
60e957d0
MW
53742004-04-21 Mark Wielaard <mark@klomp.org>
5375
5376 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5377 malloc and free buf.
5378
27dd18cf
DT
53792004-04-21 Dalibor Topic <robilad@kaffe.org>
5380
5381 * javax/naming/AuthenticationException.java,
5382 javax/naming/AuthenticationNotSupportedException.java,
5383 javax/naming/CannotProceedException.java,
5384 javax/naming/CommunicationException.java,
5385 javax/naming/CompoundName.java,
5386 javax/naming/ConfigurationException.java,
5387 javax/naming/ContextNotEmptyException.java,
5388 javax/naming/InitialContext.java,
5389 javax/naming/InsufficientResourcesException.java,
5390 javax/naming/InterruptedNamingException.java,
5391 javax/naming/LimitExceededException.java,
5392 javax/naming/LinkException.java,
5393 javax/naming/LinkLoopException.java,
5394 javax/naming/LinkRef.java,
5395 javax/naming/MalformedLinkException.java,
5396 javax/naming/Name.java,
5397 javax/naming/NameAlreadyBoundException.java,
5398 javax/naming/NameNotFoundException.java,
5399 javax/naming/NamingSecurityException.java,
5400 javax/naming/NoInitialContextException.java,
5401 javax/naming/NoPermissionException.java,
5402 javax/naming/NotContextException.java,
5403 javax/naming/PartialResultException.java,
5404 javax/naming/ReferralException.java,
5405 javax/naming/ServiceUnavailableException.java,
5406 javax/naming/SizeLimitExceededException.java,
5407 javax/naming/TimeLimitExceededException.java,
5408 javax/naming/directory/Attribute.java,
5409 javax/naming/directory/Attributes.java,
5410 javax/naming/directory/SearchResult.java,
5411 javax/naming/event/NamingExceptionEvent.java,
5412 javax/naming/spi/ResolveResult.java:
5413 Cleaned up imports.
5414
2635995a
MW
54152004-04-21 Mark Wielaard <mark@klomp.org>
5416
5417 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5418 Changed C++ comments into C comments. Removed commented out code.
5419 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5420 Likewise.
5421 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5422 Likewise.
5423 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5424 Likewise.
5425 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5426 Likewise.
5427 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5428 Likewise.
5429 * native/jni/gtk-peer/gthread-jni.c:
5430 Likewise.
5431
1c3d6bb2
MW
54322004-04-21 Mark Wielaard <mark@klomp.org>
5433
5434 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5435 static fields defined in interface.
5436 * javax/awt/JDialog.java: Likewise.
5437 (JDialog): Make constructors public.
5438 (getDefaultCloseOperation): Make public.
5439 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5440 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5441 * javax/swing/JViewport.java (JViewport): Make constructor public.
5442
387fa012
MK
54432004-04-21 Michael Koch <konqueror@gmx.de>
5444
5445 * java/util/Map.java
5446 (Entry): Removed redundant "static" modifier.
5447 * java/text/AttributedCharacterIterator.java:
5448 Updated copyright year.
5449
bf9f06ae
MK
54502004-04-20 Michael Koch <konqueror@gmx.de>
5451
5452 * javax/naming/directory/SearchControls.java:
5453 Don't explicitely extend java.lang.Object.
5454 * javax/naming/spi/DirStateFactory.java:
5455 Merged copyright year with GNU classpath.
5456
8a6c1d29
MK
54572004-04-20 Michael Koch <konqueror@gmx.de>
5458
5459 * java/nio/channels/Channels.java:
5460 Merged coding style with GNU classpath.
5461
f5874634
MK
54622004-04-20 Michael Koch <konqueror@gmx.de>
5463
5464 * java/net/ServerSocket.java
5465 Merged coding style from GNU classpath.
5466
90cb5151
MK
54672004-04-20 Michael Koch <konqueror@gmx.de>
5468
5469 * java/io/BufferedWriter.java:
5470 Reordered variables to be at top of the class.
5471 (localFlush): Removed redundant final keyword.
5472
5ede96a4
IP
54732004-04-20 Ingo Proetel <proetel@aicas.com>
5474
5475 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5476
391d8ef5
MK
54772004-04-20 Jeroen Frijters <jeroen@frijters.net>
5478
5479 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5480 for percent and permill check.
5481
54822004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5483
5484 * java/text/FieldPosition.java
5485 (FieldPosition) Constructor now behaves as it should according
5486 to the java documentation.
5487
54882004-04-20 Mark Wielaard <mark@klomp.org>
5489
5490 * java/util/Properties.java: Use the word umlaut, not &auml; in api
5491 documentation.
5492
92e1fe67
MK
54932004-04-20 Michael Koch <konqueror@gmx.de>
5494
5495 * java/nio/Buffer.java,
5496 java/nio/channels/AlreadyConnectedException.java,
5497 java/nio/channels/AsynchronousCloseException.java,
5498 java/nio/channels/ByteChannel.java,
5499 java/nio/channels/CancelledKeyException.java,
5500 java/nio/channels/Channel.java,
5501 java/nio/channels/Channels.java,
5502 java/nio/channels/ClosedByInterruptException.java,
5503 java/nio/channels/ClosedChannelException.java,
5504 java/nio/channels/ClosedSelectorException.java,
5505 java/nio/channels/ConnectionPendingException.java,
5506 java/nio/channels/DatagramChannel.java,
5507 java/nio/channels/FileChannel.java,
5508 java/nio/channels/FileLock.java,
5509 java/nio/channels/FileLockInterruptionException.java,
5510 java/nio/channels/GatheringByteChannel.java,
5511 java/nio/channels/IllegalBlockingModeException.java,
5512 java/nio/channels/IllegalSelectorException.java,
5513 java/nio/channels/InterruptibleChannel.java,
5514 java/nio/channels/NoConnectionPendingException.java,
5515 java/nio/channels/NonReadableChannelException.java,
5516 java/nio/channels/NonWritableChannelException.java,
5517 java/nio/channels/NotYetBoundException.java,
5518 java/nio/channels/NotYetConnectedException.java,
5519 java/nio/channels/OverlappingFileLockException.java,
5520 java/nio/channels/Pipe.java,
5521 java/nio/channels/ReadableByteChannel.java,
5522 java/nio/channels/ScatteringByteChannel.java,
5523 java/nio/channels/SelectableChannel.java,
5524 java/nio/channels/SelectionKey.java,
5525 java/nio/channels/Selector.java,
5526 java/nio/channels/ServerSocketChannel.java,
5527 java/nio/channels/SocketChannel.java,
5528 java/nio/channels/UnresolvedAddressException.java,
5529 java/nio/channels/UnsupportedAddressTypeException.java,
5530 java/nio/channels/WritableByteChannel.java,
5531 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5532 java/nio/channels/spi/AbstractSelectableChannel.java,
5533 java/nio/channels/spi/AbstractSelectionKey.java,
5534 java/nio/channels/spi/AbstractSelector.java,
5535 java/nio/channels/spi/SelectorProvider.java,
5536 java/nio/charset/spi/CharsetProvider.java:
5537 Fixed javadocs and jalopied all over java.nio.
5538
08c5d757
MK
55392004-04-20 Michael Koch <konqueror@gmx.de>
5540
5541 * java/nio/ByteBufferImpl.java,
5542 java/nio/CharBufferImpl.java,
5543 java/nio/DirectByteBufferImpl.java,
5544 java/nio/DoubleBufferImpl.java,
5545 java/nio/DoubleViewBufferImpl.java,
5546 java/nio/FloatBufferImpl.java,
5547 java/nio/FloatViewBufferImpl.java,
5548 java/nio/IntBufferImpl.java,
5549 java/nio/IntViewBufferImpl.java,
5550 java/nio/LongBufferImpl.java,
5551 java/nio/LongViewBufferImpl.java,
5552 java/nio/MappedByteBufferImpl.java,
5553 java/nio/ShortBufferImpl.java,
5554 java/nio/ShortViewBufferImpl.java:
5555 Made sure all classes are final and removed final keyword from all
5556 methods.
5557
a17c9f2e
MK
55582004-04-20 Michael Koch <konqueror@gmx.de>
5559
5560 * java/rmi/MarshalledObject.java,
5561 java/rmi/Naming.java,
5562 java/rmi/RemoteException.java,
5563 java/rmi/activation/ActivationException.java,
5564 java/rmi/server/ServerCloneException.java,
5565 java/security/AccessController.java,
5566 java/security/AlgorithmParameterGenerator.java,
5567 java/security/AlgorithmParameters.java,
5568 java/security/CodeSource.java,
5569 java/security/Identity.java,
5570 java/security/IdentityScope.java,
5571 java/security/KeyPairGenerator.java,
5572 java/security/KeyStore.java,
5573 java/security/Security.java,
5574 java/security/Signature.java,
5575 java/security/SignatureSpi.java,
5576 java/security/SignedObject.java,
5577 java/security/spec/DSAParameterSpec.java,
5578 java/security/spec/DSAPrivateKeySpec.java,
5579 java/security/spec/DSAPublicKeySpec.java,
5580 java/sql/Array.java,
5581 java/sql/DatabaseMetaData.java,
5582 java/sql/ResultSet.java,
5583 java/text/ChoiceFormat.java,
5584 java/text/CollationElementIterator.java,
5585 java/text/CollationKey.java,
5586 java/text/Collator.java,
5587 java/text/DateFormat.java,
5588 java/text/DateFormatSymbols.java,
5589 java/text/DecimalFormatSymbols.java,
5590 java/text/Format.java,
5591 java/text/ParsePosition.java,
5592 java/text/RuleBasedCollator.java,
5593 java/text/SimpleDateFormat.java,
5594 java/text/StringCharacterIterator.java,
5595 java/util/Collections.java,
5596 java/util/PropertyResourceBundle.java,
5597 java/util/ResourceBundle.java,
5598 java/util/StringTokenizer.java,
5599 java/util/jar/Attributes.java,
5600 java/util/logging/ConsoleHandler.java,
5601 java/util/logging/LogManager.java,
5602 java/util/logging/MemoryHandler.java,
5603 java/util/logging/SocketHandler.java,
5604 javax/naming/NamingException.java:
5605 Fixed javadoc, coding style and argument names all over.
5606
0fc920c8
MK
56072004-04-20 Jeroen Frijters <jeroen@frijters.net>
5608
5609 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5610 constructor. (valid) Added null check.
5611
56122004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5613
5614 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5615 * java/io/FileOutputStream.java
5616 (FileOutputStream) Reorganized constructors. Constructors now
5617 check whether the given path is directory.
5618
f6d49f66
MK
56192004-04-20 Michael Koch <konqueror@gmx.de>
5620
5621 * java/net/Authenticator.java,
5622 java/net/BindException.java,
5623 java/net/ConnectException.java,
5624 java/net/ContentHandler.java,
5625 java/net/ContentHandlerFactory.java,
5626 java/net/DatagramPacket.java,
5627 java/net/DatagramSocket.java,
5628 java/net/DatagramSocketImpl.java,
5629 java/net/DatagramSocketImplFactory.java,
5630 java/net/FileNameMap.java,
5631 java/net/HttpURLConnection.java,
5632 java/net/Inet4Address.java,
5633 java/net/Inet6Address.java,
5634 java/net/InetAddress.java,
5635 java/net/InetSocketAddress.java,
5636 java/net/JarURLConnection.java,
5637 java/net/MalformedURLException.java,
5638 java/net/MulticastSocket.java,
5639 java/net/NetPermission.java,
5640 java/net/NetworkInterface.java,
5641 java/net/NoRouteToHostException.java,
5642 java/net/PasswordAuthentication.java,
5643 java/net/PortUnreachableException.java,
5644 java/net/ProtocolException.java,
5645 java/net/ServerSocket.java,
5646 java/net/Socket.java,
5647 java/net/SocketAddress.java,
5648 java/net/SocketException.java,
5649 java/net/SocketImpl.java,
5650 java/net/SocketImplFactory.java,
5651 java/net/SocketOptions.java,
5652 java/net/SocketPermission.java,
5653 java/net/SocketTimeoutException.java,
5654 java/net/URI.java,
5655 java/net/URISyntaxException.java,
5656 java/net/URL.java,
5657 java/net/URLClassLoader.java,
5658 java/net/URLConnection.java,
5659 java/net/URLDecoder.java,
5660 java/net/URLEncoder.java,
5661 java/net/URLStreamHandler.java,
5662 java/net/URLStreamHandlerFactory.java,
5663 java/net/UnknownHostException.java,
5664 java/net/UnknownServiceException.java:
5665 Fixed javadocs, coding style and argument names all over.
5666
cf6f7d55
MK
56672004-04-20 Michael Koch <konqueror@gmx.de>
5668
5669 * java/lang/Byte.java,
5670 java/lang/CharSequence.java,
5671 java/lang/ClassLoader.java,
5672 java/lang/Compiler.java,
5673 java/lang/Double.java,
5674 java/lang/Float.java,
5675 java/lang/Integer.java,
5676 java/lang/Long.java,
5677 java/lang/Math.java,
5678 java/lang/Number.java,
5679 java/lang/Package.java,
5680 java/lang/Runtime.java,
5681 java/lang/RuntimePermission.java,
5682 java/lang/SecurityManager.java,
5683 java/lang/Short.java,
5684 java/lang/StringBuffer.java,
5685 java/lang/System.java,
5686 java/lang/ThreadGroup.java,
5687 java/lang/Throwable.java,
5688 java/lang/reflect/InvocationHandler.java,
5689 java/lang/reflect/Proxy.java:
5690 Fixed javadocs, coding style and argument names all over.
5691
9f714d5e
MK
56922004-04-20 Michael Koch <konqueror@gmx.de>
5693
5694 * java/io/BufferedWriter.java,
5695 java/io/ByteArrayInputStream.java,
5696 java/io/CharArrayWriter.java,
5697 java/io/DataInput.java,
5698 java/io/DataInputStream.java,
5699 java/io/File.java,
5700 java/io/FilterInputStream.java,
5701 java/io/InputStream.java,
5702 java/io/InputStreamReader.java,
5703 java/io/ObjectInputStream.java,
5704 java/io/ObjectStreamClass.java,
5705 java/io/PipedInputStream.java,
5706 java/io/PipedReader.java,
5707 java/io/PushbackInputStream.java,
5708 java/io/PushbackReader.java,
5709 java/io/RandomAccessFile.java,
5710 java/io/SerializablePermission.java,
5711 java/io/StreamTokenizer.java,
5712 java/io/StringWriter.java,
5713 java/io/WriteAbortedException.java,
5714 java/io/Writer.java:
5715 Fixed javadocs all over, rename arguments to match javadocs,
5716 fixed coding style.
5717
23f0ecff
MK
57182004-04-20 Ingo Proetel <proetel@aicas.com>
5719
5720 * java/awt/FontMetrics.java:
5721 (charsWidth): fixed accumulation of total_width
5722 (getWidth): simple default implementation
5723 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5724 in Rectangle constructor.
5725 * java/awt/image/Raster.java (toString): Added method.
5726 * java/awt/image/SampleModel.java (<init>): Added error cause
5727 information to thrown exception.
5728 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5729 New method.
5730 (setDataElements): New method.
5731 (setPixels): New method.
5732 (toString): New method.
5733
57342004-04-20 Sascha Brawer <brawer@dandelis.ch>
5735
5736 * java/awt/image/ComponentColorModel.java
5737 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5738 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5739 Mauve tests on this method. Improved documentation.
5740
2c4d54e6
MK
57412004-04-20 Michael Koch <konqueror@gmx.de>
5742
5743 * javax/swing/JLayeredPane.java,
5744 javax/swing/plaf/BorderUIResource.java,
5745 javax/swing/plaf/ComponentUI.java,
5746 javax/swing/undo/CompoundEdit.java,
5747 javax/swing/undo/StateEdit.java:
5748 Fixed HTML tags in javadocs all over.
5749
5589f3e5
MK
57502004-04-20 Michael Koch <konqueror@gmx.de>
5751
5752 * javax/print/attribute/EnumSyntax.java
5753 (getOffset): Made protected.
5754 * javax/print/attribute/HashAttributeSet.java
5755 (HashAttributeSet): Likewise.
5756 * javax/print/attribute/ResolutionSyntax.java
5757 (getFeedResolution): Fixed typo in exception name.
5758 (getCrossFeedResolution): Likewise.
5759 * javax/print/attribute/SetOfIntegerSyntax.java
5760 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5761 * javax/print/attribute/TextSyntax.java
5762 (TextSyntax): Handle locale correctly.
5763 (hashCode): Calc better hashcode value.
5764 (equals): Fixed @return tag.
5765 (toString): New method.
5766
0150fc22
MK
57672004-04-20 Michael Koch <konqueror@gmx.de>
5768
5769 * gnu/java/nio/FileLockImpl.java
5770 (static): Removed, not needed anymore.
5771 * gnu/java/nio/channels/FileChannelImpl.java
5772 (FileChannelImpl): Made final.
5773 (mode): Made private.
5774 (READ, WRITE, APPEND): Made public.
5775 (EXCL, SYNC, DSYNC): Likewise.
5776 (static): Load native JNI library, when needed.
5777 (length): Unused, removed.
5778 (available): Made public.
5779 (implPosition): Throws IOException.
5780 (seek): Likewise.
5781 (implTruncate): Likewise.
5782 (unlock): Likewise.
5783 (lock): Likewise.
5784
7431acbe
MK
57852004-04-20 Michael Koch <konqueror@gmx.de>
5786
5787 * java/awt/AWTPermission.java,
5788 java/awt/Component.java,
5789 java/awt/ComponentOrientation.java,,
5790 java/awt/Dialog.java,
5791 java/awt/FontMetrics.java,
5792 java/awt/Graphics.java,
5793 java/awt/datatransfer/DataFlavor.java,
5794 java/beans/Introspector.java,
5795 java/beans/PropertyEditor.java,
5796 java/beans/PropertyEditorManager.java,
5797 java/beans/beancontext/BeanContextServiceProvider.java:
5798 Fixed HTML tags in javadocs all over.
5799
7f6f517f
MW
58002004-04-20 Mark Wielaard <mark@klomp.org>
5801
5802 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5803 MissingResourceException is thrown.
5804 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5805 null when a MissingResourceException is thrown. Should never happen.
5806
8ecb0346
MK
58072004-04-20 Sascha Brawer <brawer@dandelis.ch>
5808
5809 * java/awt/image/DataBufferShort.java,
5810 java/awt/image/DataBufferFloat.java,
5811 java/awt/image/DataBufferDouble.java,
5812 java/awt/image/PixelInterleavedSampleModel.java: New files.
5813 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5814 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5815
58162004-04-20 Michael Koch <konqueror@gmx.de>
5817
5818 * Makefile.am (java_source_files): Added
5819 java/awt/image/DataBufferDouble.java,
5820 java/awt/image/DataBufferFloat.java,
5821 java/awt/image/DataBufferShort.java and
5822 java/awt/image/PixelInterleavedSampleModel.java.
5823 * Makefile.in: Regenerated.
5824
f5310108
BM
58252004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5826
5827 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5828 undocumented CNI calls.
5829 * include/java-interp.h (_Jv_InterpClass): No longer
5830 extends java.lang.Class.
5831 * java/lang/Class.h (Class): Add new field `aux_info'.
5832 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5833 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5834 Use Class->aux_info instead.
5835 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5836 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5837 Use Class->aux_info instead.
5838 * java/io/natObjectInputStream.cc (allocateObject): Use
5839 _Jv_AllocObject.
5840 * java/lang/natClass.cc (newInstance): Likewise.
5841 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5842 * java/lang/natObject.cc (clone): Likewise.
5843 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5844 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5845 JvAllocObject. Allocate klass->aux_info here for interpreted
5846 class.
5847
afd7c0dc
MW
58482004-04-17 Mark Wielaard <mark@klomp.org>
5849
5850 * javax/swing/JToggleButton.java (ToggleButtonModel):
5851 Make public static inner class.
5852 * javax/swing/JTabbedPane.java (setComponentAt):
5853 Call Page.setComponent().
5854 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5855 (WRAP_TAB_LAYOUT): Make public, value is 0.
5856 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5857 Make private static inner class.
5858
bf7ad402
BM
58592004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5860
5861 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5862 arguments to match new signature. Remove FIXME comments.
5863
31e632d3
GH
58642004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5865
5866 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5867 Remove method.
5868 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5869 unused code.
5870
58712004-04-02 Olga Rodimina <rodimina@redhat.com>
5872
5873 * Makefile.am: Added new file.
5874 * Makefile.in: Regenerate.
5875 * javax/swing/ImageIcon.java:
5876 (ImageIcon(file)): set description of the icon
5877 to the file name
5878 * javax/swing/JCheckBoxMenuItem.java:
5879 Mostly Implemented. Work in progress.
5880 * javax/swing/JRadioButtonMenuItem.java:
5881 Reimplement constructors to use JToggleButtonModel.
5882 * javax/swing/plaf/basic/BasicIconFactory.java:
5883 (getCheckBoxMenuItemIcon): return check box
5884 icon.
5885 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5886 paint menu item selected only when it is armed and
5887 pressed.
5888
58892004-04-02 David Jee <djee@redhat.com>
5890
5891 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5892 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5893 * java/awt/Component.java
5894 (add): Set the parent of the popup as this component.
5895 * java/awt/PopupMenu.java
5896 (addNotify): Create popup menu when peer is null.
5897 (show): Call addNotify() if peer is null.
5898 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5899 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5900 argument for gtk_menu_popup() as zero. This causes the popup menu to
5901 respond to any mouse button.
5902
59032004-03-31 Olga Rodimina <rodimina@redhat.com>
5904
5905 * Makefile.am: Added new file.
5906 * Makefile.in: Regenerate.
5907 * javax/swing/JRadioButtonMenuItem.java:
5908 Implemented.
5909 * javax/swing/plaf/basic/BasicIconFactory.java:
5910 (getRadioButtonMenuItemIcon): Return
5911 radio button icon.
5912 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5913 (getPreferredSize): Add size of checkIcon if it
5914 exists.
5915 (installDefaults): Don't initialize checkIcon.
5916 It's value will be set in subclasses.
5917 (uninstallDefaults): remove uninstallation of
5918 checkIcon.
5919 (paint): Moved code to paintMenuItem().
5920 (paintMenuItem): Implemented.
5921 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5922 UI delegate for JRadioButtonMenuItem.
5923
59242004-03-29 Olga Rodimina <rodimina@redhat.com>
5925
5926 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5927 Corrected position of the accelerator.
5928
59292004-03-29 Olga Rodimina <rodimina@redhat.com>
5930
5931 * Makefile.am: Added new file.
5932 * Makefile.in: Regenerate.
5933 * javax/swing/JMenuItem.java: Partly
5934 implemented. Work in progress
5935 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5936 Changed default value of acceleratorDelimiter.
5937 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5938 New class. Partly implemented.
5939
59402004-03-26 Mark Wielaard <mark@klomp.org>
5941
5942 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5943 (item_activate): Declare label before use.
5944 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5945 (gtkSetFont): Removed unused variable label.
5946 (addExposeFilter): Declare variables before use.
5947 (removeExposeFilter): Likewise.
5948 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5949 (ok_clicked): Declare str_fileName before use.
5950
59512004-03-26 David Jee <djee@redhat.com>
5952
5953 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5954 (addSeparator): Remove.
5955 * java/awt/Menu.java
5956 (separator): Remove static final MenuItem field.
5957 (separatorLabel): New static final String field.
5958 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5959 Use separatorLabel to denote that it is a separator.
5960 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5961 of reusing the static separator instance, because a MenuItem instance
5962 can't be added more than once without being cloned.
5963 * java/awt/peer/MenuPeer.java
5964 (addSeparator): Remove from interface.
5965
59662004-03-26 David Jee <djee@redhat.com>
5967
5968 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5969 (connectSignals): New native method declaration.
5970 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5971 * java/awt/MenuItem.java
5972 (getActionCommand): Return the label if the action command is not set.
5973 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5974 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5975 gtk_menu_shell_append().
5976 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5977 (item_activate): Fix argument type.
5978 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5979 signal here.
5980 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5981 method.
5982 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5983 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5984 given. Add the menu widget's top-level GtkWindow to the global window
5985 group, so it can grab the pointer.
5986 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5987 gtk_menu_shell_append().
5988
59892004-03-23 Graydon Hoare <graydon@redhat.com>
5990
5991 * java/text/AttributedString.java
5992 (addAttribute): Fix off-by-one.
5993 (getIterator): Likewise.
5994 * java/text/AttributedStringIterator.java
5995 (getRunLimit): Correct logic.
5996 (getRunStart): Likewise.
5997 (getAttribute): Fix inequality.
5998 (getAttributes): Likewise.
5999 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
6000
60012004-03-23 Kim Ho <kho@redhat.com>
6002
6003 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6004 (calculateSizes): Return real width and height.
6005
60062004-03-23 Kim Ho <kho@redhat.com>
6007
6008 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
6009 (calculateTabRects): Set the selectedRun before
6010 trying to rotate tabs.
6011
60122004-03-23 Kim Ho <kho@redhat.com>
6013
6014 * Makefile.am: New file
6015 * Makefile.in: Regenerate
6016 * java/awt/Graphics.java: (drawRect):
6017 Draw to the correct point.
6018 * javax/swing/DefaultSingleSelectionModel.java
6019 (isSelected): Return true if the selected index
6020 is not -1.
6021 * javax/swing/JLabel.java: Do not change mnemonic
6022 index if text is null.
6023 * javax/swing/JProgressBar.java: Use JComponent's
6024 EventListenerList.
6025 * javax/swing/JScrollBar.java: Ditto.
6026 * javax/swing/JSlider.java: Ditto.
6027 * javax/swing/JTabbedPane.java: Reimplement.
6028 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6029 Add defaults for TabbedPane.
6030 * javax/swing/plaf/basic/BasicArrowButton.java:
6031 Implement
6032 * javax/swing/plaf/basic/BasicProgressBarUI.java:
6033 (paintDeterminate): Don't paint String if it's
6034 empty.
6035 (paintIndeterminate): ditto.
6036 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6037 Reimplement.
6038
60392004-03-19 Michael Koch <konqueror@gmx.de>
6040
6041 * java/awt/image/AffineTransformOp.java
6042 (AffineTransformOp): Made public.
6043 * javax/swing/JComponent.java
6044 (listenerList): Made protected.
6045 (accessibleContext): Likewise.
6046 * javax/swing/JList.java
6047 (valueChanged): Dont use internal fields of ListSelectionEvent.
6048 * javax/swing/JViewport.java
6049 (getView): Dont use internal fields of Component.
6050 (addImpl): Likewise.
6051 * javax/swing/Timer.java
6052 (isRunning): Made public.
6053 (start): Likewise.
6054 (stop): Likewise.
6055 * javax/swing/UIDefaults.java
6056 (getInt): Made public.
6057 * javax/swing/plaf/basic/BasicListUI.java
6058 (mousePressed): Dont use internal fields of MouseEvent.
6059 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
6060 * javax/swing/plaf/basic/BasicScrollBarUI.java
6061 (arrowIcon): Made static.
6062 * javax/swing/plaf/basic/BasicViewportUI.java
6063 (stateChanged): Dont use internal field on ChangeEvent.
6064 * javax/swing/text/JTextComponent.java
6065 (getUI): Call UIManager.getUI().
6066 (updateUI): Use getUI().
6067
60682004-03-19 Graydon Hoare <graydon@redhat.com>
6069
6070 * javax/swing/JComponent.java: Turn off double buffer by default.
6071 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
6072 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6073 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
6074 Use cairo to copy areas.
6075 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
6076 Initialize and set clip region.
6077
60782004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
6079
6080 * java/applet/Applet.java (preferredSize): Override deprecated
6081 variant of getPreferredSize.
6082 (minimumSize): Override deprecated variant of getMinimumSize.
6083
60842004-03-15 Olga Rodimina <rodimina@redhat.com>
6085
6086 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6087 (drawImage(img,xform,bgcolor,obs)): New Method.
6088 Helper function that every drawImage method will
6089 use.
6090 (drawRaster): Added new parameter, bgcolor. All
6091 transparent pixels are changed to bgcolor before
6092 image is drawn.
6093 (drawRenderedImage): Fixed to use changed drawRaster().
6094 (drawImage(image,xform,obs): Fixed to use new helper function
6095 (drawImage(image,op,x,y)): Ditto.
6096 (drawImage (img,x,y,observer)): Ditto.
6097 ((PainterThread) bgcolor): New Field.
6098 ((PainterThread) (setPixels)): Changed all transparent pixels
6099 to bgcolor.
6100 (drawImage(img,x,y,width,height,bgcolor,observer)):
6101 Fixed FIXME - all the transparent pixels are
6102 changed to the specified bgcolor.
6103 (drawImage(img, x, y, width, height, observer): Changed to
6104 use function above.
6105 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
6106 Fixed FIXME- changed all transparent pixels to bgcolor.
6107 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
6108 Changed to use function above.
6109
61102004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
6111
6112 * java/applet/Applet.java (dimensions): New field.
6113 (getDimensions): New method.
6114 (getPreferredSize): Call getDimensions.
6115 (getMinimumSize): Likewise.
6116
61172004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6118
6119 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
6120 * jni/classpath/jnilink.c: Likewise.
6121
6122 * java/applet/Applet.java (getPreferredSize): New method.
6123 (getMinimumSize): New method.
6124
245c3c04
BM
61252004-04-15 Bryce McKinlay <mckinlay@redhat.com>
6126
6127 * prims.cc (_Jv_AllocObject): Remove `size' argument.
6128 (_Jv_AllocObjectNoFinalizer): Likewise.
6129 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
6130 (_Jv_AllocPtrFreeObject): Likewise.
6131 (_Jv_AllocString): Moved from natString.cc. Call collector interface
6132 directly even in the JVMPI case.
6133 * gcj/cni.h (JvAllocObject): Remove `size' argument from
6134 _Jv_AllocObject calls.
6135 * gcj/javaprims.h: Update prototypes.
6136 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
6137 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
6138 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
6139
d7afe286
BM
61402004-04-14 Andrew Haley <aph@redhat.com>
6141 Bryce McKinlay <mckinlay@redhat.com>
6142
6143 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
6144 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
6145 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
6146
6147 * testsuite/libjava.lang/InvokeInterface.java: New file.
6148 * testsuite/libjava.lang/InvokeInterface.out: New file.
6149
84264cb6
RM
61502004-04-09 Ranjit Mathew <rmathew@hotmail.com>
6151
6152 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
6153 modified lookup().
6154 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
6155 StackTraceElement directly.
6156 (newElement): New native helper method to create StackTraceElement
6157 bypassing Java access control.
6158 (createStackTraceElement): Use newElement() instead of directly
6159 calling StackTraceElement's constructor.
6160 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
6161
2b6b5c35
MK
61622004-04-01 Michael Koch <konqueror@gmx.de>
6163
6164 * java/lang/SecurityManager.java
6165 (checkAwtEventQueueAccess): Implemented.
6166
1c19eacc
GB
61672004-04-01 Gary Benson <gbenson@redhat.com>
6168
6169 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
6170 (_Jv_SearchMethodInClass): Likewise.
6171
99b43239
PM
61722004-03-26 Peter Moon <peterm@miraculum.com>
6173
6174 * java/text/NumberFormat.java: Fix spelling of setCurrency
6175 method.
6176
95e59f1a
AG
61772004-03-21 Anthony Green <green@redhat.com>
6178
6179 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
6180 recursion when searching for the system ClassLoader.
6181
de205e06
IK
61822004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
6183
6184 * java/net/ServerSocket.java
6185 (accept): Close the socket when error occured.
6186
bdf11d55
JF
61872004-03-21 Jeroen Frijters <jeroen@frijters.net>
6188
6189 * java/net/URI.java (parseURI): Added unquoting.
6190 (unquote): New method.
6191 (quoteAuthority): Implemented.
6192 (quote(String,String)): New method.
6193 (quotePath): Implemented.
6194 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
6195 (getSchemeSpecificPart): Removed FIXME comment.
6196 (getRawAuthority): Return new rawAuthority field.
6197 (getAuthority): Removed FIXME comment.
6198 (getRawUserInfo): Return new rawUserInfo field.
6199 (getUserInfo): Removed FIXME comment.
6200 (getRawPath): Return new rawPath field.
6201 (getPath): Removed FIXME comment.
6202 (getRawQuery): Return new rawQuery field.
6203 (getQuery): Removed FIXME comment.
6204 (getRawFragment): Return new rawFragment field.
6205 (getFragment): Removed FIXME comment.
6206
0d13be1e
MK
62072004-03-20 Michael Koch <konqueror@gmx.de>
6208
6209 * java/net/URLConnection.java: Merged copyright year with classpath.
6210
f903e73b
NF
62112004-03-20 Norbert Frese <postfach@nfrese.net>
6212
6213 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
6214 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
6215 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
6216 rmi-message.
6217 (getObjectInputStream): Return object reference, throw IOException if null.
6218 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
6219 (getObjectOutputStream): Return object reference, throw IOException if null.
6220 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
6221 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
6222 (UnicastConnectionManager): Throw RemoteException if port is not available.
6223 (getInstance): Throw RemoteException.
6224 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
6225 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
6226 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6227 Collect Exceptions which are returned by a rmi-call and fix void returns.
6228 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
6229 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6230 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
6231 (dispatch): Answer ping messages which are sent by other java implementions.
6232 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
6233 for every rmi-message and fix void return problems.
6234 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
6235 (UnicastServerRef): Throw RemoteException.
6236 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
6237 In some situations it is necessary to export a subclass of the class which has the _Stub.
6238 For instance when the class with has the _Stub is abstract.
6239 (findStubSkelClass): New method which looks for the class which has the _Stub.
6240 (getClientHost): Implementated.
6241 * gcc/libjava/java/rmi/server/RemoteServer.java
6242 (getClientHost): Implementated.
6243 * gcc/libjava/Makefile.am (rmi_java_source_files):
6244 Added gnu/java/rmi/server/RMIIncomingThread.java.
6245 * Makefile.in: Regenerated.
6246
7f5773c6
MK
62472004-03-20 Michael Koch <konqueror@gmx.de>
6248
6249 * java/net/InetAddress.java
6250 (getLocalHostname): Added javadoc.
6251
ab16524d
PB
62522004-03-19 Per Bothner <per@bothner.com>
6253
6254 * configure.in: FILE variable overrides FLATFORM when linking
6255 natFileChannelXXX.cc.
6256
6257 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
6258 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
6259
0fca95f5
PB
62602004-03-19 Per Bothner <per@bothner.com>
6261
6262 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
6263 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
6264 * Makefile.am: Update accordingly.
6265 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
6266 as aliases for UnicodeLittle and UnicodeBig.
6267
edb3d426
MW
62682004-03-20 Mark Wielaard <mark@klomp.org>
6269
6270 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6271 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
6272 Don't access ws when it is null.
6273 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
6274 Likewise.
6275
b121dcb5
JF
62762004-03-19 Jeroen Frijters <jeroen@frijters.net>
6277
6278 * java/lang/ThreadGroup.java (list): Changed print to println.
6279
44b20223
MW
62802004-03-19 Mark Wielaard <mark@klomp.org>
6281
6282 * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
6283 happy.
6284
f94b0887
RC
62852004-02-10 Randolph Chung <tausq@debian.org>
6286
6287 * configure.in: Build java for hppa target.
6288 * configure: Regenerate.
6289 * libjava/configure.host (hppa-*): Add target.
6290 * libjava/sysdeps/pa/lock.h: New file.
6291
d511a273
MW
62922004-03-19 Mark Wielaard <mark@klomp.org>
6293
6294 Reported by Stephen Crawley
6295 * java/io/FilePermission.java (implies): Use String.length() -1 to
6296 access last char of String.
6297
9c6637c8
MK
62982004-03-19 Michael Koch <konqueror@gmx.de>
6299
6300 * java/awt/image/AffineTransformOp.java
6301 (AffineTransformOp): Made public.
6302 * javax/swing/JComponent.java
6303 (listenerList): Made protected.
6304 (accessibleContext): Likewise.
6305 * javax/swing/JList.java
6306 (valueChanged): Dont use internal fields of ListSelectionEvent.
6307 * javax/swing/JViewport.java
6308 (getView): Dont use internal fields of Component.
6309 (addImpl): Likewise.
6310 * javax/swing/Timer.java
6311 (isRunning): Made public.
6312 (start): Likewise.
6313 (stop): Likewise.
6314 * javax/swing/UIDefaults.java
6315 (getInt): Made public.
6316 * javax/swing/plaf/basic/BasicListUI.java
6317 (mousePressed): Dont use internal fields of MouseEvent.
6318 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
6319 * javax/swing/plaf/basic/BasicScrollBarUI.java
6320 (arrowIcon): Made static.
6321 * javax/swing/plaf/basic/BasicViewportUI.java
6322 (stateChanged): Dont use internal field on ChangeEvent.
6323 * javax/swing/text/JTextComponent.java
6324 (getUI): Call UIManager.getUI().
6325 (updateUI): Use getUI().
6326
165c9b04
RO
63272004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6328
6329 * verify.cc: Undef PC.
6330
138f5109
MK
63312004-03-18 Michael Koch <konqueror@gmx.de>
6332
6333 * java/nio/channels/spi/AbstractSelectableChannel.java
6334 (keys): Initialize at declaration.
6335 (locate): keys cant be null.
6336 (add): Removed.
6337 (addSelectionKey): New method.
6338 (removeSelectionKey): New method.
6339 * java/nio/channels/spi/AbstractSelectionKey.java
6340 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
6341 * java/nio/channels/spi/AbstractSelector.java
6342 (provider): Javadoc added.
6343 (cancelledKeys): Javadoc added.
6344 (cancelKey): Javadoc added, add key to cancelledKeys.
6345 (deregister): Implemented.
6346
acc63e4c
RO
63472004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6348
6349 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
6350 MAP_FAILED to void *.
6351
86881a7b
GH
63522004-03-12 Graydon Hoare <graydon@redhat.com>
6353
6354 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6355 * javax/swing/JComponent.java (paint): Use persistent double buffer.
6356 * javax/swing/JList.java (ListListener): Revalidate on changes.
6357 * javax/swing/JScrollPane.java: Reimplement.
6358 * javax/swing/JViewport.java: Reimplement.
6359 * javax/swing/ScrollPaneLayout.java: Reimplement.
6360 * javax/swing/ViewportLayout.java: Tidy up.
6361 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6362 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6363 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6364 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6365 backing store only.
6366
63672004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6368
6369 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6370 (window_wm_protocols_filter): New function.
6371 (window_focus_in_cb): Remove function.
6372 (window_focus_out_cb): Likewise.
6373 (window_focus_or_active_state_change_cb): New function.
6374 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6375 (connectSignals): Don't attach handlers to focus-in-event or
6376 focus-out-event signals. Handle notify signal.
6377
63782004-03-11 David Jee <djee@redhat.com>
6379
6380 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6381 (gtkSetLabel): New native method declaration.
6382 (setLabel): Use gtkSetLabel.
6383 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6384 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6385
63862004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6387
6388 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6389 black when color argument is null.
6390
63912004-03-10 Kim Ho <kho@redhat.com>
6392
6393 * java/awt/Container.java: Remove check
6394 for drag events.
6395
63962004-03-10 Kim Ho <kho@redhat.com>
6397
6398 * java/awt/Container.java: (visitChild):
6399 Remove candidate clip. Use the component
6400 clip to intersect.
6401 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6402 (handleEvent): Use the PaintEvent's clip.
6403
64042004-03-10 Kim Ho <kho@redhat.com>
6405
6406 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6407 (handleEvent): Don't set the clip for the
6408 Graphics object.
6409
64102004-03-09 Graydon Hoare <graydon@redhat.com>
6411
6412 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6413 Fix double <-> fixed macros, reset font transform.
6414 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6415 Likewise.
6416
6417