1 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
3 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
4 extraneous/malformed sign word.
6 2001-06-15 Tom Tromey <tromey@redhat.com>
8 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
10 2001-06-15 Tom Tromey <tromey@redhat.com>
12 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
13 NULL if no library on the list has the symbol.
14 (init): Call add_library on the program itself.
15 * prims.cc (JvRunMain): Initialize Runtime before searching for
17 (_Jv_RunMain): Likewise.
19 2001-06-15 Tom Tromey <tromey@redhat.com>
21 * jni.cc (ClassClass): Removed; updated all users.
22 (ObjectClass): Likewise.
23 (ThrowableClass): Likewise.
24 (MethodClass): Likewise.
25 (ThreadGroupClass): Likewise.
26 (local_ref_table): Renamed from `ref_table'.
27 (global_ref_table): New global.
28 (_Jv_JNI_Init): Initialize both ref tables.
29 (mark_for_gc): Added `ref_table' parameter.
30 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
32 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
33 (_Jv_JNI_DeleteGlobalRef): Likewise.
34 (_Jv_JNI_DeleteLocalRef): Likewise.
35 (_Jv_JNI_NewLocalRef): Likewise.
36 (_Jv_JNI_PopLocalFrame): Likewise.
37 (_Jv_JNI_GetStringChars): Likewise.
38 (_Jv_JNI_ReleaseStringChars): Likewise.
39 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
40 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
42 2001-06-14 Tom Tromey <tromey@redhat.com>
44 Fix for PR libgcj/3144:
45 * java/util/Date.java: Merged with Classpath.
47 2001-06-12 Tom Tromey <tromey@redhat.com>
49 * aclocal.m4, configure: Rebuilt.
50 * acinclude.m4: Find configure.host in srcdir.
52 2001-06-07 Tom Tromey <tromey@redhat.com>
54 Fix for PR libgcj/3059:
55 * java/lang/natSystem.cc (init_properties): Define `java.home'.
56 * Makefile.in: Rebuilt.
57 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
59 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
61 * exception.cc (cstdlib): Replaces stdlib.h.
62 (_Jv_Throw): Use std::abort().
63 (PERSONALITY_FUNCTION): Likewise.
65 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
67 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
68 nothing, as in autoconf 2.50.
69 * aclocal.m4, configure: Rebuilt.
71 2001-06-08 Tom Tromey <tromey@redhat.com>
74 * configure.in: Compute new aux dir using `pwd'.
76 2001-06-07 Tom Tromey <tromey@redhat.com>
78 For PR bootstrap/3075:
79 * configure, aclocal.m4, Makefile.am: Rebuilt.
80 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
81 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
82 relative to libgcj_basedir.
83 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
84 AC_CANONICAL_SYSTEM here.
85 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
87 ($(extra_headers)): New target.
89 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
90 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
92 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
93 table index is within allowed bounds. Ensure that we dont try to access
94 class itable at a negative offset. Avoid an ancestor table lookup if
95 source is a primitive type class.
96 (isInstance): Remove redundant isPrimitive() check.
98 2001-06-04 Tom Tromey <tromey@redhat.com>
100 * java/security/PublicKey.java: Extend Key.
101 * java/security/PrivateKey.java: Extend Key.
103 2001-06-02 Anthony Green <green@redhat.com>
105 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
106 alternate when USE_LTDL not defined.
108 2001-06-02 Anthony Green <green@redhat.com>
110 * configure: Rebuild.
111 * configure.in: Remove data_start hack.
112 * libgcj.spec.in: Ditto.
113 * Makefile.in: Rebuild.
114 * Makefile.am: Ditto.
115 * libgcjdata.c: Remove.
117 2001-06-02 Anthony Green <green@redhat.com>
119 * configure: Rebuild.
120 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
121 --without-libffi option. Tweak --disable-java-net processing.
122 * Makefile.in: Rebuild.
123 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
124 * include/config.h.in: Rebuild.
125 * acconfig.h (USE_LIBFFI): Define.
126 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
128 2001-06-02 Anthony Green <green@redhat.com>
130 * configure: Rebuilt.
131 * configure.in: Test for sigaction on native builds.
132 * prims.cc: Check HAVE_SIGACTION.
133 * include/config.h.in: Rebuilt.
135 2001-05-31 Jeff Sturm <jsturm@one-point.com>
137 * natFile.cc (get_entry): Removed functions.
138 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
139 Allocate enough storage for d_name if using readdir_r.
141 2001-05-31 Tom Tromey <tromey@redhat.com>
143 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
145 (write): Loop until write completes. From Corey Minyard.
147 2001-05-29 Laurent Guerby <guerby@acm.org>
149 * java/awt/geom/Rectangle2D.java: fix doc typo.
151 2001-05-31 Tom Tromey <tromey@redhat.com>
153 * java/sql/DriverManager.java (getDrivers): Handle case where
154 driver's class loader is null. From Corey Minyard.
156 2001-05-29 Tom Tromey <tromey@redhat.com>
158 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
160 * configure: Rebuilt.
161 * configure.in: Only add multilib support code if we just rebuilt
164 2001-05-29 Andrew Haley <aph@redhat.com>
166 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
167 pointer: the dwarf unwinder in libgcc will do everything that's
169 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
170 more than we absolutely need to.
171 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
172 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
174 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
176 * configure: Rebuilt.
177 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
179 (SIGNAL_HANDLER): Use siginfo style handler.
180 (INIT_SEGV): Likewise.
181 (INIT_FPE): Likewise.
182 * include/ppc-signal.h: Delete whole file.
184 2001-05-24 Tom Tromey <tromey@redhat.com>
186 * java/lang/natString.cc (init): Throw
187 ArrayIndexOutOfBoundsException.
188 (getChars): Likewise.
189 (getBytes): Likewise.
192 * configure.in: Only allow hash synchronization when POSIX threads
194 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
197 2001-05-23 Tom Tromey <tromey@redhat.com>
199 * Makefile.in: Rebuilt.
200 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
202 Revert patch of 2001-05-21:
203 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
204 (libgcj_la_LIBADD): Likewise.
205 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
206 (libgcjx_la_LIBADD): Likewise.
208 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
209 * gcj/Makefile.in: Rebuilt.
210 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
211 * gcj/javaprims.h: Include gcj/libgcj-config.h.
212 * gcj/libgcj-config.h.in: New file.
213 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
214 * configure: Rebuilt.
215 * configure.in: Enable hash synchronization by default on some
217 (HASH_SYNC_SPEC): New subst.
218 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
219 Correctly use `test -z' instead of `test -n' in a couple places.
220 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
222 * configure.host (enable_java_net_default): Initialize.
223 (enable_hash_synchronization_default): New variable.
225 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
227 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
228 synchronization in use.
229 (_Jv_MarkArray): Likewise.
230 (_Jv_AllocBytes): Don't check return result.
231 (handle_out_of_memory): New function.
232 (_Jv_InitGC): Set GC_oom_fn.
233 (trace_one_vtable): New global.
234 (_Jv_AllocTraceOne): New function.
235 * configure.in: Added --enable-hash-synchronization.
236 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
237 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
238 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
239 (_Jv_AllocArray): Likewise.
240 (_Jv_AllocBytes): Likewise.
241 (_Jv_AllocPtrFreeObject): New function.
242 (_Jv_AllocTraceOne): Likewise.
243 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
245 (self_cache): New global.
246 (_Jv_ThreadSelf_out_of_line): New function.
247 * prims.cc (_Jv_AllocBytesChecked): Removed.
248 (_Jv_ThrowNoMemory): New function.
249 (_Jv_AllocObject): Don't check for null return from allocator.
250 (_Jv_NewObjectArray): Likewise.
251 (_Jv_AllocPtrFreeObject): New function.
252 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
253 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
254 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
255 * include/boehm-gc.h (_Jv_AllocObj): Define.
256 (_Jv_AllocPtrFreeObj): Define.
257 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
258 (_Jv_ThrowNoMemory): Declare.
259 (_Jv_AllocTraceOne): Declare.
260 (_Jv_AllocBytesChecked): Removed.
261 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
262 _Jv_MutexUnlock): Handle LOCK_DEBUG.
263 (_Jv_ThreadSelf): Handle case where system pthread_self() is
265 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
267 * java/lang/Object.h (sync_info): Conditional upon presence of
268 hash synchronization.
269 * java/lang/natObject.cc: Much new code to handle thin locks and
270 hash synchronization.
271 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
274 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
276 * gij.cc (version): Update copyright year.
278 2001-05-22 Anthony Green <green@redhat.com>
280 * configure.in: Tweak canadian cross test, and don't redefine GCJ
283 2001-05-21 Per Bothner <per@bothner.com>
285 Implement invocation interface; don't create new thread for main.
286 * java/lang/Thread.java (gen_name): Make native.
287 (<init>(Thread,THreadGroup,Runnable,String)): New private
288 constructor, used by other constructors, and _Jv_AttachCurrentThread.
289 * java/lang/natThread.cc (gen_name): New implementation.
290 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
291 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
292 (_Jv_CreateJavaVM): New runtime initialization procedure.
293 (runFirst): New proecdure - mostly code from old FirstThread::run.
294 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
295 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
296 JvDetachCurrentThread): New inline wrappers.
297 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
298 _Jv_DetachCurrentThread): New declarations.
299 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
300 (getMain): new static method.
301 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
302 by runFirst in prims.cc.
303 (java/lang/Thread.h): Update for new invocation interface.
304 * include/posix-threads.h (_Jv_ThreadRegister,
305 _Jv_ThreadUnRegister): New declarations.
306 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
307 (really_start): Use new _Jv_ThreadRegister.
308 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
309 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
310 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
311 Complain of called when _Jv_OnlyThread already set.
312 (_Jv_ThreadStart): Always JvFail.
313 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
314 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
315 * win32-threads.cc (struct starter): Remove objet field -
316 we use _Jv_Thread_t's new thread_obj field instead.
317 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
318 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
319 (really_start): Use new _Jv_ThreadRegister.
320 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
321 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
322 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
323 Removed - no longer needed with new invocation interface.
324 * Makefile.am: Update for removed/added files.
326 2001-05-21 Per Bothner <per@bothner.com>
328 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
329 (libgcj_la_LIBADD): Likewise.
330 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
332 2001-05-21 Per Bothner <per@bothner.com>
334 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
335 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
336 taken from old Integer.toString code.
337 (Integer::valueOf): Use _Jv_FormatInt.
338 * java/lang/Integer.java (toString): Just use call String.valueOf.
339 * java/lang/Long.java (toString): Fix typo in comment.
340 * java/lang/String.java (valueOf(int)): Make native.
341 * java/lang/StringBuffer.java (append(int)): Make native.
342 * java/lang/natStringBuffer.cc: New file, for append(jint).
343 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
345 2001-05-21 Tom Tromey <tromey@redhat.com>
347 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
349 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
351 * include/dwarf2-signal.h: New file.
352 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
353 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
354 * configure: Rebuilt.
356 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
358 * configure.in: Update boehm-gc include dir for new GC version.
359 * configure: Rebuilt.
360 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
362 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
363 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
364 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
367 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
369 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
370 (_Jv_MutexInit): Likewise.
372 2001-05-18 Tom Tromey <tromey@redhat.com>
374 * Makefile.in: Rebuilt.
375 * Makefile.am (awt_java_source_files): Added Polygon.java.
377 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
379 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
380 * gcj/javaprims.h: ... here.
381 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
383 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
385 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
386 with length of ioffset table.
387 (_Jv_IsAssignableFrom): Likewise.
389 2001-05-17 Per Bothner <per@bothner.com>
391 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
393 2001-05-16 Tom Tromey <tromey@redhat.com>
395 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
398 2001-05-15 Tom Tromey <tromey@redhat.com>
400 * java/util/GregorianCalendar.java (computeTime): Only call
403 2001-05-14 Tom Tromey <tromey@redhat.com>
405 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
406 ZONE_OFFSET just before computing the time.
408 2001-05-12 Zack Weinberg <zackw@stanford.edu>
410 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
411 * Makefile.in: Regenerate (by hand).
412 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
413 * doc/cni.sgml: Document #pragma GCC java_exceptions.
415 2001-05-11 Richard Henderson <rth@redhat.com>
417 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
418 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
420 2001-05-11 Richard Henderson <rth@redhat.com>
422 * exception.cc: Include unwind-pe.h. Remove all pointer
425 2001-05-10 Tom Tromey <tromey@redhat.com>
427 * Makefile.in: Rebuilt.
428 * Makefile.am (awt_java_source_files): Added Polygon.java.
429 * java/awt/Polygon.java: New file.
431 * java/awt/geom/AffineTransform.java
432 (setToRotation(double,double,double)): New method.
433 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
434 (setToShear): Likewise.
436 2001-05-10 Tom Tromey <tromey@redhat.com>
438 * java/util/GregorianCalendar.java: Imported from Classpath.
439 * gnu/java/locale/LocaleInformation_nl.java: New file from
441 * gnu/java/locale/LocaleInformation_en.java: Likewise.
442 * gnu/java/locale/LocaleInformation_de.java: Likewise.
443 * gnu/java/locale/LocaleInformation.java: Likewise.
444 * natGregorianCalendar.cc: Removed.
445 * Makefile.in: Rebuilt.
446 * Makefile.am (nat_source_files): Removed
447 natGregorianCalendar.cc.
449 2001-05-10 Tom Tromey <tromey@redhat.com>
451 * java/text/SimpleDateFormat.java (computeCenturyStart): New
453 (defaultCenturyStart): Use it.
454 (readObject): Likewise.
455 (SimpleDateFormat): Clear the calendar. Set the grouping on the
457 (parse): Copy the calendar before modifying it. Correctly handle
460 * java/util/Calendar.java (clear): Set field value(s) to 0.
462 2001-05-10 Jeff Sturm <jsturm@one-point.com>
464 * Calendar.java (get): Clear areFieldsSet if requested field
466 (set): Unset fields that depend on new value.
468 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
470 * java/lang/Class.h (_Jv_Self): New union type.
471 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
472 Jeff Sturm and Fergus Henderson.
474 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
476 * java/lang/ClassLoader.java: Remove dead code fragment.
478 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
480 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
482 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
484 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
486 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
487 * configure.host (EXCEPTIONSPEC): New.
488 * configure.in (EXCEPTIONSPEC): New.
489 * configure: Rebuilt.
491 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
493 * doc/*.texi: Remove generated documentation.
495 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
497 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
498 (performDelete): Fix #endif placement.
500 2001-04-27 Zack Weinberg <zackw@stanford.edu>
502 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
503 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
504 (_Jv_ThreadDestroyData): Use _Jv_Free.
505 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
508 2001-04-27 Tom Tromey <tromey@redhat.com>
510 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
512 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
514 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
516 * include/jni.h (struct JNINativeInterface): Fixed types in
517 Get/Set*ArrayRegion declarations.
518 (class _Jv_JNIEnv): Likewise.
520 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
522 * configure.in: Obtain THREADS with `gcc -v'.
523 * configure: Rebuilt.
525 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
528 * java/io/ObjectStreamClass.java (setClass): Calculate
529 serialVersionUID for local class and compare it against the UID
530 from the Object Stream. Throw InvalidClassException upon mismatch.
531 (setUID): Renamed to...
532 (getClassUID): this. Return the calculated class UID rather than
533 setting uid field directly.
534 (getDefinedSUID): Removed.
535 * java/io/ObjectInputStream.java (resolveClass): Use the
536 three-argument Class.forName().
537 * java/io/InvalidClassException (toString): Don't include classname in
538 result if it is null.
540 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
542 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
543 Wrap use of inet_pton in HAVE_INET6.
545 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
547 java.security merge and ClassLoader compliance fixes.
549 * java/lang/Class.h (Class): Include ProtectionDomain.h.
550 New protectionDomain field.
551 (forName): Add initialize parameter. Fixes declaration to comply with
553 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
554 variant. Honour "initialize" flag.
555 (getProtectionDomain0): New method.
556 * java/lang/Class.java: Fix forName() declaration.
557 (getPackage): New method based on Classpath implementation.
558 (getProtectionDomain0): New native method decl.
559 (getProtectionDomain): New method.
560 * java/lang/ClassLoader.java (getParent): Now final.
561 (definedPackages): New field.
563 (defineClass): New variant with protectionDomain argument.
564 (definePackage): New.
566 (findSystemClass): Now final.
567 (getSystemResourceAsStream): Remove redundant "final" modifier.
568 (getSystemResource): Remove redundant "final" modifier.
569 (getResources): Now final.
570 (protectionDomainPermission): New static field.
571 (unknownProtectionDomain): Ditto.
572 (defaultProtectionDomain): Ditto.
573 (getSystemClassLoader): Now non-native.
574 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
575 arguments for Class.forName().
576 * java/lang/Package.java: New file.
577 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
578 (instance): Static initialize singleton.
579 (findClass): Override this, not findSystemClass.
580 * java/lang/natClassLoader.cc (defineClass0): Set class's
581 protectionDomain field as specified.
582 (getSystemClassLoader): Removed.
583 (findClass): Renamed from findSystemClass. Call the interpreter via
584 URLClassLoader.findClass if loading class via dlopen fails.
586 * java/security/*.java: java.security import/merge with Classpath.
587 * java/security/acl/*.java: Likewise.
588 * java/security/interfaces/*.java: Likewise.
589 * java/security/spec/*.java: Likewise.
590 * java/net/NetPermission.java: Likewise.
591 * java/net/SocketPermission.java: Likewise.
592 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
594 * Makefile.am: Add new classes.
595 * Makefile.in: Rebuilt.
596 * gcj/javaprims.h: CNI namespace rebuild.
598 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
600 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
601 for libtool tests. Pre-create gnu/classpath/Configuration.java.
602 * configure: Rebuilt.
604 2001-04-21 Tom Tromey <tromey@redhat.com>
606 * Makefile.in: Rebuilt.
607 * Makefile.am (awt_java_source_files): Added Line2D.java.
608 * java/awt/geom/Line2D.java: Wrote.
610 * java/awt/Menu.java (addNotify): Wrote.
612 * java/awt/PopupMenu.java (addNotify): Implemented.
615 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
616 * java/awt/List.java (addNotify): Call super.addNotify.
617 * java/awt/Label.java (addNotify): Call super.addNotify.
618 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
619 * java/awt/Dialog.java (addNotify): Call super.addNotify.
620 * java/awt/Choice.java (addNotify): Call super.addNotify.
621 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
622 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
624 * java/awt/List.java (replaceItem): Notify peer.
626 * java/awt/geom/Rectangle2D.java
627 (Float.setRect(float,float,float,float)): New method.
629 * java/awt/event/ContainerEvent.java (getContainer): Now returns
632 * java/awt/RenderingHints.java (Key): Class now public.
634 * java/awt/Rectangle.java (Rectangle): Now implements
636 (getPathIterator): Removed.
638 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
641 * java/awt/FileDialog.java: Wrote.
643 * java/awt/EventQueue.java (isDispatchThread): Now public.
644 (invokeLater): Likewise.
646 * java/awt/Component.java (setCursor): Update peer.
647 (getFontMetrics): Use peer.
649 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
652 2001-04-20 Tom Tromey <tromey@redhat.com>
654 * java/awt/List.java: Wrote.
655 * java/awt/Dialog.java: Wrote.
657 2001-04-20 Warren Levy <warrenl@redhat.com>
659 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
660 * java/text/SimpleDateFormat.java
661 (indexInArray): Removed private method.
662 (processYear): Removed private method.
663 (parseLenient): Removed private method.
664 (parseLeadingZeros): Removed private method.
665 (parseStrict): Removed private method.
666 (expect): Added new private method.
667 (parse): Reverted to pre-Classpath merge version with minor fixes.
668 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
671 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
673 * java/io/File.java (normalizePath): New private method.
674 (File (String)): Use normalizePath().
675 (File (String, String)): Likewise.
677 * Makefile.am (libffi_files): Removed.
678 (libgcj.la): Link libffi as a convenience library instead of
679 refering to its object files directly.
680 * Makefile.in: Rebuilt.
682 2001-04-08 Per Bothner <per@bothner.com>
684 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
685 Recalculate hash, since Utf8Const's hash is only 16 bits.
687 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
688 bits of hash to calculate step for chaining.
690 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
691 when 2/3 full, rather than 3/4 full.
693 2001-04-06 Tom Tromey <tromey@redhat.com>
695 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
696 (wrap_value<T*>): New specialization.
697 (_Jv_JNI_PopLocalFrame): Update env->locals.
699 2001-04-05 Tom Tromey <tromey@redhat.com>
701 * libtool-version: Updated current.
703 2001-04-04 Andreas Jaeger <aj@suse.de>
705 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
706 * gcj/Makefile.in: Rebuilt.
707 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
708 * Makefile.in: Rebuilt.
709 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
710 * testsuite/Makefile.in: Rebuild.
711 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
712 * include/Makefile.in: Rebuild.
714 2001-04-02 Zack Weinberg <zackw@stanford.edu>
716 * testsuite/lib/libjava.exp: Correct typo: 'output from source
717 compiled test', not 'execution from source compiled test'.
718 Use UNTESTED, not XFAIL, for tests which are not run because
719 they depend on a previous test which failed.
721 2001-04-02 Richard Henderson <rth@redhat.com>
723 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
724 the same tree as gcc.
725 * configure: Rebuilt.
727 * exception.cc (_Jv_Throw): Clarify commentary.
729 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
731 * jni.cc (wrap_value<jclass>): New specialization.
733 2001-04-02 Tom Tromey <tromey@redhat.com>
735 * java/io/PrintStream.java (out): Removed field. Fixes PR
737 (write): Call flush, not out.flush, per spec.
738 (close): Flush output stream, per spec. Handle
739 InterruptedIOException.
740 (checkError): Likewise.
741 (flush, print, write): Handle InterruptedIOException per spec.
742 (PrintStream): Don't create BufferedOutputStream.
743 (work_bytes): New field.
744 (writeChars): Use work_bytes. Don't assume `out' is a
745 BufferedOutputStream.
747 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
749 * java/text/MessageFormat.java (setLocale): Added missing `else'.
752 2001-03-30 Tom Tromey <tromey@redhat.com>
754 * jni.cc (add_char): Correctly encode non-ascii characters.
755 (add_char): Define even when INTERPRETER not defined.
756 (mangled_name): Likewise.
757 (_Jv_GetJNIEnvNewFrame): Likewise.
758 (_Jv_LookupJNIMethod): Likewise.
760 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
762 * configure.host: Enable interpreter for PPC.
764 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
766 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
767 to "file.separator", "path.separator", and "java.io.tmpdir" property
769 * java/io/File.java: Likewise.
770 * java/io/natFile.cc (init_native): Likewise.
771 * java/io/natFileWin32.cc (init_native): Likewise.
773 2001-04-01 Per Bothner <per@bothner.com>
775 * java/lang/natString.cc (intern): If string's data does not point to
776 this String, make a fresh String that does.
778 * java/lang/natString.cc (unintern): Replace by static function.
779 * java/lang/String.java (unintern): Remove method.
781 2001-04-01 Per Bothner <per@bothner.com>
783 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
784 (finish): def.deflate needs to be called in a loop.
785 (inbuf, inbufLength): New private fields.
786 (write(int)): Use inbuf.
787 (write(byte[],int,int): Check if pending output in inbuf.
788 * ZipOutputStream.java: Don't use Deflater if stored.
789 Use a Checksum object directly, not via a CheckedOutputStream.
790 (uncompressed_size): New field,
791 (closeEntry): Only write data_directory if needed.
792 (write): If STORED, write directly.
793 Always update crc, and uncompressed_size.
794 (write_entry): Fix lots of protocol erors.
796 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
798 1.3-Compliant Implementation of java.io.File.
799 * java/lang/natSystem.cc (init_properties): Get "file.separator",
800 "path.separator", and "java.io.tmpdir" from the File class, instead
801 of setting them explicitly.
802 * java/io/File.java: Do not canonicalize paths for security manager
803 checks. Call init_native() from static initializer. Do not pass path
804 argument to native methods. New native method declarations. Some
805 security manager checks moved to checkWrite().
806 (equals): Check file system case sensitivity and act appropriatly.
807 (hashCode): Likewise.
808 (isHidden): New method implemented.
809 (performList): Changed prototype. Now takes a class argument specifying
810 the class of the returned array: Strings or File objects. Also added
812 (listFiles): New variants with "File" return type implemented.
813 (createTempFile): Use createNewFile(). Use maxPathLen.
814 (setReadOnly): New method implemented.
815 (listRoots): Likewise.
816 (compareTo): Likewise.
817 (setLastModified): Likewise.
818 (checkWrite): New method.
820 * java/io/natFile.cc: Various functions no longer take canonical path
822 (stat): Handle ISHIDDEN query.
823 (isAbsolute): Remove WIN32 cruft.
824 (performList): New arguments. Handle returning either File[] or String[]
825 arrays. Check with FileFilter or FilenameFilter arguments as
826 appropriate. Use an ArrayList, not a Vector, for the temporary list.
827 (performSetReadOnly): New method implemented.
828 (performListRoots): Likewise.
829 (performSetLastModified): Likewise.
830 (performCreate): Likewise.
831 (init_native): New initialization function.
832 * java/io/natFileWin32.cc: Various functions no longer take canonical
834 (stat): Add FIXME about ISHIDDEN query.
835 (performList): New arguments. Handle returning either File[] or String[]
836 arrays. Check with FileFilter or FilenameFilter arguments as
837 appropriate. Use an ArrayList, not a Vector, for the temporary list.
838 (performSetReadOnly): New. Stubbed.
839 (performListRoots): Likewise.
840 (performSetLastModified): Likewise.
841 (performCreate): Likewise.
842 (init_native) New initialization function.
843 * configure.in: Check for utime() and chmod().
844 * configure: Rebuilt.
845 * include/config.h.in: Rebuilt.
847 Resolves PR libgcj/1759.
849 2001-03-28 Richard Henderson <rth@redhat.com>
851 IA-64 ABI Exception Handling:
852 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
853 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
854 Remove EXCEPTIONSPEC.
855 * configure.host (libgcj_sjlj): Remove.
856 * configure.in (EXCEPTIONSPEC): Remove.
857 (enable-sjlj-exceptions): Detect if not specified.
858 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
859 what header we're looking for.
860 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
861 * Makefile.in, configure: Regenerate.
862 * exception.cc: Don't declare libgcc2 stuff.
863 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
864 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
865 (win32_get_restart_frame): Remove.
866 (struct java_exception_header): New.
867 (__gcj_exception_class): New.
868 (get_exception_header_from_ue): New.
869 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
870 (size_of_encoded_value, read_encoded_value): New.
871 (read_uleb128, read_sleb128, parse_lsda_header): New.
872 (get_ttype_entry, __gcj_personality_sj0): New.
873 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
875 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
877 * javax/naming/InitialContext.java (init): Fix typo.
878 (composeName): Remove unnecessary semicolon.
879 (addToEnvironment): Remove unnecessary semicolon.
880 (addToEnvironment): Use put() instead of add().
882 * javax/naming/InitialContext.java (InitialContext):
884 (destroySubcontext): Method doesn't return a result.
885 * javax/naming/Context.java: Import java.util.Hashtable.
886 * javax/naming/Name.java: Import java.util.Enumeration.
888 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
890 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
891 objects in subdirectories.
892 * Makefile.in: Rebuilt.
894 2001-03-25 Richard Henderson <rth@redhat.com>
896 * exception.cc (java_eh_info): Make value type jthrowable.
897 (_Jv_type_matcher): Remove now unneeded cast.
898 (_Jv_Throw): Make argument type jthrowable. Munge name
899 for SJLJ_EXCEPTIONS here ...
900 * gcj/cni.h: ... not here.
902 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
904 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
905 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
906 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
907 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
908 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
909 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
910 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
911 java/lang/natClass.cc, java/lang/natClassLoader.cc,
912 java/lang/natDouble.cc, java/lang/natObject.cc,
913 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
914 java/lang/natString.cc, java/lang/natSystem.cc,
915 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
916 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
917 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
918 java/util/zip/natInflater.cc:
919 Use throw, not JvThrow or _Jv_Throw.
921 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
923 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
924 paramater, bump it to 1.
925 * java/util/Hashtable.java (Hashtable): Likewise.
927 2001-03-23 Per Bothner <per@bothner.com>
929 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
930 check for errors, since we don't want to throw exception on
931 overflow/underflow. Instead, trim whitespace, and then check that
932 _strtod_r uses up all the rest of the string.
934 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
935 ancestors array is invalid for interfaces, so do that *after*
936 check that the target type is not an interface.
938 2000-03-23 Jeff Sturm <jsturm@one-point.com>
940 * prims.cc (_Jv_FindClassFromSignature): Check return of
941 recursive call. Do not abort on invalid signature; return NULL
944 2001-03-22 Tom Tromey <tromey@redhat.com>
946 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
947 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
949 * include/jvm.h (_Jv_ResolveField): Declare.
950 * include/java-interp.h (_Jv_ResolveField): Don't declare.
951 * resolve.cc (_Jv_ResolveField): No longer conditional on
954 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
956 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
958 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
959 to a temporary file, then invoke libtool with the -objectlist
961 (libgcjx.la): Likewise.
962 * Makefile.in: Rebuilt.
964 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
966 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
968 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
970 * jni.cc (add_char): Handle `.' like `/'.
972 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
974 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
975 initialize if exception_types is null.
976 * java/lang/reflect/Constructor.java: Likewise.
977 * java/lang/reflect/natConstructor.cc (getType): Initialize
978 exception_types to an empty Object array.
980 2001-03-21 Tom Tromey <tromey@redhat.com>
982 * configure: Rebuilt.
983 * configure.in (GCJFLAGS): Subst.
984 * Makefile.in: Rebuilt.
985 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
986 (gij_LDFLAGS): Likewise.
987 (JC1FLAGS): Added GCJFLAGS and removed -g.
989 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
990 read/write case. Fixes PR libgcj/2338.
992 2001-03-20 Warren Levy <warrenl@redhat.com>
994 * java/util/TimeZone.java: Sync up with Classpath. Includes new
995 and corrected SimpleTimeZone's for the timezones hash table.
997 2001-03-19 Per Bothner <per@bothner.com>
999 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1000 "canonicalize" "../../xxx" to "/xxx".
1002 2001-03-19 Mark Wielaard <mark@klomp.org>
1004 * java/util/ArrayList.java: Remove RCS keywords from comments
1005 * java/util/BasicMapEntry.java: idem
1006 * java/util/Dictionary.java: idem
1007 * java/util/HashSet.java: idem
1009 * java/util/EventObject.java: reindent
1010 * java/util/Properties.java: idem
1011 * java/util/SortedMap.java: idem
1013 * java/util/Enumeration.java: Merge with Classpath
1014 * java/util/EventListener.java: idem
1015 * java/util/Observable.java: idem
1016 * java/util/Observer.java: idem
1017 * java/util/Stack.java: idem
1019 2001-03-17 Tom Tromey <tromey@redhat.com>
1021 * java/lang/natString.cc (rehash): Don't bother with memset;
1022 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1024 (UNMASK_PTR): New macro.
1025 (intern): Unmask pointer before returning it. Register finalizer
1027 (unintern): Handle case where
1028 (MASK_PTR): New macro.
1029 (PTR_MAKSED): Likewise.
1030 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1032 2001-03-01 Andrew Haley <aph@redhat.com>
1034 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1035 stackTrace buffer to a correctly aligned pointer array.
1037 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1039 * java/lang/Runtime.java (_exit): Declare new package-private native.
1040 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1041 without a security manager check.
1042 (exit): Call _exit after security check.
1043 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1045 * java/lang/System.java (setSecurityManager): If a security manager
1046 is already in place, call checkPermission.
1047 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1048 throws an exception, try to deal with it gracefully.
1049 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1050 Only try to print the subordinate stack trace if "exception" is set.
1051 Print our class name first.
1053 2001-03-08 Tom Tromey <tromey@redhat.com>
1055 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1056 info for array classes.
1057 Fixes PR libgcj/1971.
1059 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1061 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1064 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1066 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1067 instead of the new JDK1.2 API. This is simpler and makes
1068 back-porting the classes to JDK1.1 trivial.
1069 (readObject): likewise.
1071 2001-03-01 Per Bothner <per@bothner.com>
1073 Changes merged from Kawa's gnu.math.
1074 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1075 (rshift(int[],int[],int,int): Removed - not needed.
1076 (gcd): Use rshift0 rather than rshift.
1077 * java/math/BigInteger.java (setShiftRight): Likewise.
1078 (divide): Simplify by using rshift0.
1079 (divide): Zero-extend results if high-order bit set.
1081 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1083 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1086 2001-02-23 Per Bothner <per@bothner.com>
1088 Change to sometimes include class name in ClassFormatError message.
1089 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1090 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1091 boolean instead of throwing ClassFormatError on failure.
1092 (throw_class_format_error): Change static function to method.
1093 (_Jv_ClassReader): New inline methods verify_identifier,
1094 two overloads of verify_classname, verify_field_signature, and
1095 verify_method_signature
1096 * include/java-interp.h: Update declarations to return bool.
1097 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1098 ClassFormatError since _Jv_VerifyClassName now returns bool.
1100 2001-02-23 Per Bothner <per@bothner.com>
1102 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1103 c++filt to select java-style output.
1105 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1107 Fix for PR java/2040:
1108 * java/util/HashMap.java (HashMap): Don't throw exception for
1109 loadFactor > 1. Add exception messages.
1110 * java/util/Hashtable.java (Hashtable): Likewise.
1112 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1114 Disable libgcjx by default.
1115 * configure.in: Add support for --enable-java-awt configure option.
1116 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1117 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1118 * Makefile.in: Rebuilt.
1119 * configure: Rebuilt.
1121 2001-02-20 Tom Tromey <tromey@redhat.com>
1123 * java/io/PipedWriter.java (flush): Throw exception if stream
1125 * java/io/OutputStreamWriter.java (write): Throw exception if
1127 (writeChars): Don't throw exception if stream closed.
1128 * java/io/CharArrayWriter.java (closed): New field.
1130 (flush): Throw exception if stream closed.
1131 (reset): Synchronize on correct lock. Allow stream to be
1133 (toCharArray, toString, writeTo): Synchronize.
1134 (write): Throwe exception if stream closed.
1135 * java/io/BufferedWriter.java (close): Clear `buffer'.
1136 (flush): Throw IOException if stream is closed.
1139 2001-02-16 Tom Tromey <tromey@cygnus.com>
1141 * java/lang/ThreadGroup.java (activeCount): Only include threads
1143 (enumerate): Likewise.
1145 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1147 * java/lang/Integer.java (getInteger): Return default argument if
1148 property is not set. Don't call decode with null argument.
1149 * java/lang/Long.java (getLong): Likewise.
1151 * java/io/CharArrayReader.java (CharArrayReader): Throw
1152 IllegalArgumentException if constructor arguments are illegal.
1153 (ready): Return false if no more characters can be read.
1154 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1156 2001-02-17 Mark Wielaard <mark@klomp.org>
1158 * java/util/TimerTask.java: New version from Classpath.
1160 2001-02-17 Mark Wielaard <mark@klomp.org>
1162 Remerge with Classpath
1163 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1164 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1165 (readByte): Use convertToByte().
1166 (readChar): Use convertToChar().
1167 (readInt): Use convertToInt().
1168 (readLong): Use convertToLong().
1169 (readShort): Use convertToShort().
1170 (readUnsignedByte): Use convertToUnsignedByte().
1171 (readUnsignedShort): Use convertToUnsignedShort().
1172 (readUTF): Use convertToUTF().
1174 (convertToBoolean): Resurrected.
1175 (convertToByte): Ditto.
1176 (convertToChar): Ditto.
1177 (convertToInt): Ditto.
1178 (convertToLong): Ditto.
1179 (convertToShort): Ditto.
1180 (convertToUnsignedByte): Ditto.
1181 (convertToUnsignedShort): Ditto.
1182 (convertToUTF): Ditto.
1184 2001-02-17 Mark Wielaard <mark@klomp.org>
1188 2001-02-17 Mark Wielaard <mark@klomp.org>
1190 * java/io/DataInputStream.java: update copyright notice
1191 * java/io/PrintWriter.java: idem
1192 * java/io/Reader.java: idem
1193 * java/io/StreamTokenizer.java: idem
1194 * java/io/StringReader.java: idem
1195 * java/lang/reflect/ReflectPermission.java: idem
1197 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1199 * java/util/TreeSet.java (clone): Made subclass safe, use
1200 super.clone(), not new.
1201 * java/util/TreeMap.java (clone): Likewise.
1203 * java/util/TreeMap.java (nil): Made non-final.
1204 (clone): Create new nil node for copy.
1206 * java/util/HashSet.java (clone): Made subclass safe, use
1207 super.clone(), not new.
1209 2001-02-14 Andrew Haley <aph@redhat.com>
1211 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1214 2001-02-15 Anthony Green <green@redhat.com>
1216 * defineclass.cc: Don't include alloca.h.
1217 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1218 * interpret.cc (run_normal): Ditto.
1220 * java/lang/natDouble.cc (parseDouble): Ditto.
1222 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1224 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1226 * java/util/Collections.java (ReverseComparator): New static class.
1227 (reverseOrder): Return static instance of ReverseComparator.
1229 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1230 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1231 Rectangle.clone(), not Object.clone().
1233 * java/util/HashSet.java (clone): Remove try/catch.
1235 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1236 * java/util/Collection.java: Likewise.
1237 * java/util/Comparator.java: Likewise.
1238 * java/util/Dictionary.java: Likewise.
1239 * java/util/Iterator.java: Likewise.
1240 * java/util/ListIterator.java: Likewise.
1241 * java/util/Map.java: Likewise.
1242 * java/util/Set.java: Likewise.
1244 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1246 * java/util/TreeMap.java: New file.
1247 * java/util/TreeSet.java: New file.
1248 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1249 * Makefile.in: Rebuilt.
1250 * java/util/HashSet.java (clone): Use constructor instead of calling
1252 * java/util/SortedSet.java: Sync with classpath.
1253 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1256 * java/lang/natClass.cc (getSignature): Don't try to dereference
1257 param_types if it is null. Instead, take this to mean "no parameters".
1258 * java/lang/TreeMap.java (TreeIterator.next): Throw
1259 NoSuchElementException in preference to ConcurrentModificationException.
1260 (TreeIterator.remove): Throw IllegalStateException in preference to
1261 ConcurrentModificationException.
1262 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1263 throw a NoSuchElementException.
1264 (SubMap.lastKey): Likewise.
1266 2001-02-13 Tom Tromey <tromey@redhat.com>
1268 * java/io/PipedReader.java (ready): Throw IOException if pipe
1270 * java/io/FilterReader.java (close): Don't clear `in'.
1271 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1273 (read, ready, reset, skip): Added exception message.
1274 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1275 Perform checkStatus check inside synchronized block.
1277 2001-02-13 Tom Tromey <tromey@redhat.com>
1279 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1281 2001-02-13 Tom Tromey <tromey@redhat.com>
1283 Fix for PR libgcj/1351:
1284 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1286 Include Thread.h and InterruptedIOException.h.
1288 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1290 * java/io/BlockDataException.java: Removed.
1291 * java/io/ObjectInputStream.java (readObject): Throw
1292 StreamCorruptedException, not BlockDataException.
1293 * Makefile.am: Remove BlockDataException.
1294 * Makefile.in: Rebuild.
1296 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1297 Tom Tromey <tromey@redhat.com>
1299 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1302 2001-02-09 Tom Tromey <tromey@redhat.com>
1304 * java/util/Timer.java: New version from Classpath.
1306 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1308 * java/lang/Double.java (doubleToRawLongBits): Now native.
1309 * java/lang/Float.java (floatToRawIntBits): Likewise.
1310 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1311 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1313 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1315 * java/io/File.java (java.net): Imported.
1316 (getAbsoluteFile): Added.
1317 (getCanonicalPath): Likewise.
1320 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1322 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1323 * java/lang/Integer.java: Likewise.
1324 * java/lang/Long.java: Likewise.
1325 * java/lang/Short.java: Likewise.
1326 * java/lang/Double.java: Likewise.
1327 (doubleToRawLongBits): New method.
1328 * java/lang/Float.java: As above.
1329 (floatToRawIntBits): New method.
1331 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1332 IOException if stream closed.
1334 2001-02-08 Tom Tromey <tromey@redhat.com>
1336 * java/lang/Float.java (parseFloat): New method.
1338 2001-02-08 Tom Tromey <tromey@redhat.com>
1340 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1341 * java/io/InputStreamReader.java (ready, read): Throw IOException
1342 if stream has been closed.
1344 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1346 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1347 Change sources.redhat.com and sourceware.cygnus.com references to
1350 2001-02-07 Tom Tromey <tromey@redhat.com>
1352 Fix for PR libgcj/1906:
1353 * java/text/MessageFormat.java (setLocale): Use named class
1356 (format(Object,StringBuffer,FieldPosition)): Special case if
1357 argument is an Object[].
1359 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1361 * java/util/Arrays.java: Removed "cmp" methods.
1362 (qsort): Don't use "cmp".
1365 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1367 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1368 sort. Fix for PR java/1895.
1370 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1372 * configure.host: Use sjlj-exceptions for Alpha.
1374 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1376 * libgcj.spec.in: Don't force static libgcc into the executable.
1377 * configure.in (FORCELIBGCCSPEC): Removed.
1378 * configure: Rebuilt.
1380 2001-01-31 Tom Tromey <tromey@redhat.com>
1382 * Makefile.in: Rebuilt.
1383 * Makefile.am (LTCXXCOMPILE): New macro.
1385 2001-01-26 Andrew Haley <aph@redhat.com>
1387 (INIT_FPE): Use a direct system call to set the handler.
1389 2001-01-27 Richard Henderson <rth@redhat.com>
1391 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1393 2001-01-27 Tom Tromey <tromey@redhat.com>
1395 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1396 native interface structure.
1398 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1400 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1402 (read (byte[], int, int)): Only call readNextBlock() if the block
1403 buffer would actually be overrun. Increment blockDataPosition.
1404 (callReadMethod): Propagate exceptions from invocation target.
1405 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1406 exceptions from invocation target.
1408 2001-01-26 Tom Tromey <tromey@redhat.com>
1410 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1411 to internal representation.
1412 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1413 _Jv_FindClassFromSignature.
1415 2001-01-26 Warren Levy <warrenl@redhat.com>
1417 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1418 and timezone if they are available on the system.
1420 2001-01-24 Tom Tromey <tromey@redhat.com>
1422 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1424 2001-01-24 Tom Tromey <tromey@redhat.com>
1426 * Makefile.in: Rebuilt.
1427 * Makefile.am (c_source_files): Added sf_fabs.c.
1428 * java/lang/sf_fabs.c: New file.
1430 2001-01-19 Warren Levy <warrenl@redhat.com>
1432 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1433 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1434 correctly. Adjust properly from 0-23 clock hour.
1436 2001-01-17 Mark Wielaard <mark@klomp.org>
1438 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1440 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1442 * java/lang/Class.h (isInterface): Move implementation from
1443 natClass.cc. Declare inline.
1444 (Class): Add default constructor.
1445 * java/lang/Object.h: Update comments.
1446 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1447 initialize superclass, saving a call if super is already initialized.
1449 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1451 * prims.cc (init_prim_class): Deleted.
1452 (DECLARE_PRIM_TYPE): Rewritten.
1453 * java/lang/Class.h (stdio.h): Include removed.
1454 (stddef.h): Included.
1455 (java/lang/reflect/Modifier.h): Likewise.
1456 (Class): Contructor now takes arguments, initializes fields.
1457 (initializePrim): Prototype deleted.
1458 * java/lang/natClass.cc (initializePrim): Deleted.
1460 2001-01-16 Warren Levy <warrenl@redhat.com>
1462 * java/math/BigInteger.java: Update Copyright year.
1464 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1466 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1469 2001-01-14 Mark Wielaard <mark@klomp.org>
1470 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1471 (decode): Merge comments with Classpath, don't throw Exception
1473 2001-01-12 Tom Tromey <tromey@redhat.com>
1475 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1479 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1480 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1481 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1482 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1483 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1485 * java/lang/natSystem.cc: Include locale.h if it exists.
1486 * configure: Rebuilt.
1487 * configure.in: Check for locale.h.
1489 2001-01-11 Tom Tromey <tromey@redhat.com>
1491 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1492 (Cursor(int), getPredefinedCursor): Throw exception if argument
1495 2001-01-03 Tom Tromey <tromey@redhat.com>
1497 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1498 (getLocationOnScreen): Wrote.
1500 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1502 * Makefile.am: Re-enable dependencies.
1503 * Makefile.in: Rebuilt.
1505 2001-01-10 Warren Levy <warrenl@redhat.com>
1507 * java/math/BigDecimal.java (divide): Fixed comment.
1509 2001-01-10 Warren Levy <warrenl@redhat.com>
1511 Fix for PR libgcj/1596:
1512 * java/math/BigDecimal.java (divide): Check newScale for validity.
1513 Ensure that BigInteger.pow() is called with a non-negative value.
1514 (setScale (int)): New public method.
1515 (setScale (int,int)): New public method.
1517 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1519 Fix for PR libgcj/1338:
1520 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1521 commentChar. Fixed typos in comments.
1523 2001-01-08 Warren Levy <warrenl@redhat.com>
1525 Fix for PR libgcj/1411:
1526 * Makefile.am: Removed java/util/natTimeZone.cc.
1527 * Makefile.in: Rebuilt.
1528 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1529 missing localized timezone names.
1530 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1531 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1532 (init_properties): Set user.timezone property.
1533 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1534 default timezone names; removed non-standard ones. Use standard
1536 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1538 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1540 (getDefaultTimeZoneId): Removed.
1542 * java/util/natTimeZone.cc: Removed.
1544 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1546 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1547 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1548 (_Jv_GetArrayClass): New inline function.
1549 (arrayclass): New field.
1550 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1551 _Jv_GetArrayElementFromElementType.
1552 (_Jv_NewPrimArray): Ditto.
1553 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1554 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1555 Set Modifier::ABSTRACT.
1556 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1557 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1558 Now synchronized. Array classes are now referenced from
1559 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1560 Set array classes' accessibility flags correctly. Optimize so that
1561 all array classes share the same IDT.
1562 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1563 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1564 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1565 in superclasses from overwriting classes own fields.
1566 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1567 Modifier::isAbstract().
1568 (null_idt): New static field.
1569 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1571 (_Jv_IndexOf): Made inline.
1572 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1574 2001-01-08 Tom Tromey <tromey@redhat.com>
1576 Fix for PR java/1586:
1577 * Makefile.in: Rebuilt.
1578 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1580 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1582 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1583 from the c++ compiler.
1584 * Makefile.in: Rebuilt.
1586 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1588 All files with updated copyright.
1589 * prims.cc (class _Jv_PrimClass): Removed.
1590 (init_prim_class): New function.
1591 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1592 `_Jv_PrimClass' in primitive type declarations. Assign to the
1593 value returned by `init_prim_class.'
1594 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1595 primitive type declarations.
1596 (JvPrimClass): Cast to `jclass' removed.
1597 * java/lang/Class.h (Class): New constructor.
1598 (Class): New copy constructor.
1599 (initializePrim): New prototype.
1600 (_Jv_PrimClass): Field removed.
1601 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1602 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1603 (class java::lang::Object): `finalize' moved up front.
1604 * java/lang/natClass.cc
1605 (isAssignableFrom): Turned outline.
1606 (isInstance): Likewise.
1607 (isInterface): Likewise, fixed indentation.
1608 (initializePrim): New function.
1610 2001-01-07 Anthony Green <green@redhat.com>
1612 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1614 * Makefile.in: Rebuilt.
1616 * scripts/TexinfoDoclet.java: New file.
1618 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1619 doc/java-awt-color.texi, doc/java-lang.texi,
1620 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1621 doc/java-awt-event.texi, doc/java-net.texi,
1622 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1623 doc/java-awt-image.texi, doc/java-security.texi,
1624 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1625 doc/java-text.texi, doc/java-beans-beancontext.texi,
1626 doc/java-util-jar.texi, doc/java-beans.texi,
1627 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1628 doc/java-lang-ref.texi: New files.
1630 2001-01-07 Anthony Green <green@redhat.com>
1632 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1633 be used for both input and output, so don't clear doInput.
1635 * java/lang/StringBuffer.java: Fix comments.
1637 2001-01-06 Anthony Green <green@redhat.com>
1639 * java/beans/PropertyDescriptor.java: Fix comment.
1640 * java/io/PushbackReader.java: Fix comment.
1641 * java/io/ObjectStreamClass.java: Fix comment.
1642 * java/io/DataInputStream.java: Fix comment.
1643 * java/io/PipedInputStream.java: Fix comments.
1644 * java/io/PipedReader.java: Fix comments.
1645 * java/sql/DatabaseMetaData.java: Fix comments.
1647 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1649 * java/io/PipedReader: Synchronize on "lock" instead of this.
1651 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1653 * java/lang/Thread.java: Update comment.
1655 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1656 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1657 * java/io/PipedReader: New implementation based on new
1659 * java/io/PipedWriter: Updated to match new PipedReader.
1661 2001-01-03 Tom Tromey <tromey@redhat.com>
1663 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1664 (getViewportSize): Insets include scrollbar size.
1665 (doLayout): Finished.
1666 (getScrollPosition): Wrote.
1667 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1669 2001-01-02 Tom Tromey <tromey@redhat.com>
1671 * java/awt/ScrollPane.java: Wrote.
1672 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1675 * java/awt/Panel.java (Panel()): Fixed.
1677 * java/awt/Component.java (isShowing): Return false if no peer
1678 exists, and true if component is visible and no parent exists.
1679 (getLocationOnScreen): Wrote.
1680 (getPreferredSize): Removed FIXME comment.
1681 (getMinimumSize): Likewise.
1682 (getAlignmentX, getAlignmentY): Wrote.
1684 (requestFocus): Wrote.
1685 (transferFocus): Wrote.
1686 (findNextFocusComponent): New method.
1687 (hasFocus()): Wrote.
1688 (checkImage): Wrote.
1689 (enableEvents): Call setEventMask on the peer.
1691 * java/awt/Container.java (list): Use super.list() to print self.
1692 (findNextFocusComponent): New method.
1693 (setLayout): Call invalidate.
1694 (findComponentAt): Wrote.
1696 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1698 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1699 the correct versions of various linuxthreads functions get linked.
1700 * Makefile.in: Rebuilt.
1701 * java/lang/natThread.cc (finalize_native): New static function. Call
1702 _Jv_ThreadDestroyData.
1703 (initialize_native): Register finalizer for "data".
1704 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1705 (_Jv_ThreadDestroyData): New prototype.
1706 * include/win32-threads.h: Ditto.
1707 * include/no-threads.h: Ditto.
1708 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1709 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1710 move mutex and condition variable destroy code from:
1711 (really_start): ...here.
1712 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1713 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1714 (_Jv_ThreadDestroyData): Implemented.
1715 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1716 (_Jv_AllocArray): Ditto.
1718 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1720 * java/sql/DriverManager.java (getConnection): Don't set user/password
1723 2000-12-27 Warren Levy <warrenl@redhat.com>
1725 Fix for PR libgcj/1358:
1726 * java/lang/System.java: Update Copyright date properly.
1727 * java/util/Calendar.java: Fix typo in comment.
1728 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1729 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1730 initialize times. Spec says to set H:M:S values to zero only if
1732 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1733 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1734 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1735 timezones and GMT offsets, being careful to account for units of
1736 milliseconds vs. seconds.
1738 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1740 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1741 not be assigned to Object.
1743 Fix for PR libgcj/1516:
1744 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1746 (can_widen): Declared inline. Remove redundant checks for void
1747 arguments and char->short conversion. Add special case for boolean
1749 (ffi_type): Declared inline.
1750 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1752 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1754 * java/sql/SQLWarning.java: Fixed typo in comment.
1756 2000-12-26 Tom Tromey <tromey@redhat.com>
1758 * java/awt/MenuItem.java (paramString): Now protected.
1760 * java/awt/MenuShortcut.java: Implements Serializable.
1762 * java/awt/MenuBar.java: Rewrote from scratch.
1764 * java/awt/MenuComponent.java (removeNotify): Wrote.
1765 Implements Serializable.
1767 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1770 * java/awt/CheckboxMenuItem.java: Wrote.
1772 2000-12-25 Tom Tromey <tromey@redhat.com>
1774 * java/awt/MenuContainer.java: Fixed typo.
1776 * Makefile.in: Rebuilt.
1777 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1778 * java/awt/SystemColor.java: New file.
1780 * java/awt/Color.java (rgba): Now package-private.
1782 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1784 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1787 * java/awt/MenuItem.java (addNotify): New method.
1788 (MenuItem(String,MenuShortcut)): New constructor.
1789 (setLabel): Notify peer of change.
1790 (setEnabled): Likewise.
1792 * java/awt/GridLayout.java (toString): New method.
1794 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1795 (FlowLayout): Check for LEADING and TRAILING.
1796 (setAlignment): Likewise.
1797 (layoutContainer): Handle component orientation.
1799 * java/awt/Component.java (orientatin): New field.
1800 (setComponentOrientation): Wrote.
1801 (getComponentOrientation): Wrote.
1803 * java/awt/Event.java (Event): Implements Serializable.
1804 (consumed): New field for serialization.
1805 * java/awt/Dimension.java (Dimension): Implements Serializable.
1806 * java/awt/Cursor.java (Cursor): Implements Serializable.
1807 * java/awt/Container.java (Container): No longer abstract.
1809 * java/awt/Choice.java: Wrote.
1810 * java/awt/Checkbox.java: Wrote.
1811 * java/awt/ItemSelectable.java: Documented.
1812 * java/awt/CheckboxGroup.java: Wrote.
1814 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1816 (getSize): Likewise.
1818 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1820 * java/io/FileDescriptor.java: Initialize fd to -1.
1821 Remove default constructor.
1823 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1825 * java/lang/mprec.h: Change C9X reference to refer to C99.
1827 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1829 * java/lang/Throwable.java (trace_enabled): New static field.
1830 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1831 trace_enabled not set.
1832 * prims.cc (main_init): Turn off trace_enabled while creating
1833 default exception objects.
1835 2000-12-21 Tom Tromey <tromey@redhat.com>
1837 * java/beans/PropertyChangeListener.java: Extends EventListener.
1838 * java/beans/VetoableChangeListener.java: Extends EventListener.
1840 * java/util/zip/Deflater.java (update, init): Now private.
1842 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1844 * java/util/BasicMapEntry.java: Re-added.
1845 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1846 (putAll): Test for BasicMapEntry.
1847 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1848 (putAll): Test for BasicMapEntry.
1849 Change references from `HashMap.Entry' to `Entry' in various places.
1850 * Makefile.am: Add BasicMapEntry.java.
1851 * Makefile.in: Rebuilt.
1853 2000-12-18 Warren Levy <warrenl@redhat.com>
1855 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1856 need to set timezone to a valid non-null value. Partial fix for
1859 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1861 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1863 * java/awt/Button.java (addNotify): Likewise.
1864 * java/awt/Label.java (addNotify): Likewise.
1865 * java/awt/Panel.java (addNotify): Likewise.
1866 * java/awt/Scrollbar.java (addNotify): Likewise.
1867 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1868 Remove redundant null checks.
1870 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1872 * COPYING: Update to current
1873 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1874 to 19yy as example year in copyright notice).
1876 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1878 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1879 end-of-stream if avail_in is 0.
1881 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1883 * java/util/ArrayList.java (data): Declare transient.
1884 (serialPersistantFields): Removed.
1885 (readObject): Use defaultReadObject(), not readFields().
1886 (writeObject): Use defaultWriteObject(), not writeFields().
1888 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1890 * java/util/Hashtable.java (put): Remove `last' variable.
1891 Link new entry to head of list.
1892 * java/util/HashMap.java (put): Ditto.
1894 2000-12-15 Tom Tromey <tromey@redhat.com>
1896 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1897 loader to Class.forName.
1899 2000-12-14 Tom Tromey <tromey@redhat.com>
1901 * java/util/ResourceBundle.java
1902 (getBundle(String,Locale,ClassLoader)): New method.
1903 (trySomeGetBundle): Added `loader' argument.
1904 (partialGetBundle): Likewise.
1906 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1907 maximumFractionDigits, maximumIntegerDigits,
1908 minimumFractionDigits, minimumIntegerDigits): Now
1911 * java/lang/Thread.java (checkAccess): Now final.
1913 * java/lang/RuntimePermission.java: Class now final.
1915 * java/io/StringWriter.java (StringWriter(int)): Now public.
1917 * java/io/SerializablePermission.java (legal_names): Now private.
1919 * java/lang/Character.java: Updated UnicodeBlock constants.
1920 * scripts/blocks.pl: Special case private use and surrogate
1923 2000-12-12 Tom Tromey <tromey@redhat.com>
1925 * Makefile.in: Rebuilt.
1926 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1928 (GCJCOMPILE): Use it.
1931 2000-12-11 Tom Tromey <tromey@redhat.com>
1933 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1934 New static final fields.
1936 * scripts/classes.pl (scan): Skip lines with leading `*'.
1937 Fix for PR libgcj/378.
1939 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1941 * configure.in: Remove check for -fuse-divide-subroutine.
1942 * configure: Rebuilt.
1944 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1946 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1948 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1950 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1951 Remove BasicMapEntry.java and Bucket.java.
1952 * Makefile.in: Rebuilt.
1953 * java/util/HashMap.java: Rewritten.
1954 * java/util/HashSet.java: Imported from classpath.
1955 * java/util/WeakHashMap.java: Imported from classpath.
1956 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1957 * java/util/Bucket.java: Deleted.
1958 * java/util/BasicMapEntry.java: Deleted.
1959 * java/util/Collections.java (search): Use a for-loop, not iterator
1961 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1962 of elements in source.
1963 (max): Use a for-loop.
1965 (reverse): Keep track of positions instead of using Iterator's
1966 nextIndex() and previousIndex().
1967 (shuffle(List)): Initialize defaultRandom if required using
1968 double-check thread safety idiom. Call two-argument shuffle method
1969 using defaultRandom.
1970 (defaultRandom): New field.
1971 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1972 using previousIndex() and nextIndex().
1973 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1974 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1975 * java/util/AbstractMap.java (toString): Use StringBuffer.
1976 * java/lang/ref/PhantomReference.java: Imported from classpath.
1977 * java/lang/ref/SoftReference.java: Ditto.
1978 * java/lang/ref/Reference.java: Ditto.
1979 * java/lang/ref/WeakReference.java: Ditto.
1980 * java/lang/ref/ReferenceQueue.java: Ditto.
1982 2000-12-10 Richard Henderson <rth@redhat.com>
1984 * configure.host: Recognize alpha*-*, not alphaev6-*.
1986 2000-12-09 Anthony Green <green@redhat.com>
1988 * configure.host: Enable interpreter for Alpha.
1990 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1992 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1993 (ZIP): Points at fastjar instead of zip.
1994 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1995 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1996 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1997 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1998 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1999 ($(x_java_source_files:.java=.class):): Likewise.
2000 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2002 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2003 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2004 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2005 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2006 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2007 gnu/gcj/runtime/VMClassLoader.h:,
2008 java/io/ObjectInputStream$$GetField.h:,
2009 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2010 (Makefile.in): Rebuilt.
2012 2000-12-08 Tom Tromey <tromey@redhat.com>
2015 * configure: Rebuilt.
2016 * configure.in: Use echo, not `:', to create .d files.
2018 2000-12-08 Warren Levy <warrenl@redhat.com>
2020 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2021 NullPointerException so proper check of offset can be done.
2023 2000-12-08 Warren Levy <warrenl@redhat.com>
2025 * java/io/FileInputStream.java (close): Check if the fd is valid.
2026 * java/io/RandomAccessFile.java (close): Ditto.
2027 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2028 * java/net/PlainSocketImpl.java (close): Ditto.
2030 2000-12-06 Tom Tromey <tromey@redhat.com>
2032 * java/awt/GridBagConstraints.java: Filled in values for static
2035 * java/util/BitSet.java: Updated copyright notice.
2037 * Makefile.in: Rebuilt.
2038 * Makefile.am (awt_java_source_files): Added new file.
2039 * java/awt/GridBagConstraints.java: New file.
2041 2000-12-05 Tom Tromey <tromey@redhat.com>
2043 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2044 Now package-private, not protected.
2045 * java/text/DateFormatSymbols.java (equals): Now private.
2046 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2047 * java/util/BitSet.java: Class no longer final.
2049 2000-12-04 Warren Levy <warrenl@redhat.com>
2051 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2052 out code dependent on compiler and library changes.
2054 2000-12-04 Warren Levy <warrenl@redhat.com>
2056 * java/io/FilePermission.java: Made class final per spec.
2057 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2058 method name to match spec (fixed typo).
2059 * java/util/LinkedList.java: Implements List.
2061 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2063 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2064 Edgar Villanueva <edgarvil@home.com>.
2066 2000-12-03 Tom Tromey <tromey@redhat.com>
2068 * java/awt/geom/Point2D.java: Added protected constructor.
2069 (equals): New method.
2070 (Float.setLocation(float,float)): New method.
2071 * java/awt/geom/Dimension2D.java: Added protected constructor.
2072 * java/awt/geom/AffineTransform.java: Made all constants public.
2073 (concatenate): Fixed typo in name.
2074 * java/awt/event/WindowAdapter.java: Class now abstract.
2075 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2076 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2079 * java/awt/AWTError.java: Extend Error, not
2080 IllegalStateException.
2082 * Makefile.in: Rebuilt.
2083 * Makefile.am (awt_java_source_files): Added new file.
2084 * java/awt/geom/RoundRectangle2D.java: New file.
2086 * Makefile.in: Rebuilt.
2087 * Makefile.am (awt_java_source_files): Added new file.
2088 * java/awt/FlowLayout.java: New file.
2090 * Makefile.in: Rebuilt.
2091 * Makefile.am (awt_java_source_files): Added new file.
2092 * java/awt/GridLayout.java: New file.
2094 2000-12-02 Tom Tromey <tromey@redhat.com>
2096 * Makefile.in: Rebuilt.
2097 * Makefile.am (awt_java_source_files): Added new files.
2098 * java/awt/CardLayout.java: New file.
2099 * java/awt/AWTPermission.java: New file.
2101 2000-12-01 Tom Tromey <tromey@redhat.com>
2103 * java/util/Vector.java (insertElementAt): Unconditionally
2104 increment elementCount.
2105 (removeRange): Clear unused slots in vector.
2107 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2109 * java/lang/natMath.cc: Declare fabsf() function.
2110 * java/lang/mprec.h: Don't include math.h.
2111 * java/lang/dtoa.c: Include string.h.
2112 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2115 From Adam Welc <welc@cs.purdue.edu>:
2116 * java/util/LinkedList.java (removeFirst): Update `first' field.
2117 Handle the last == first case.
2118 (removeLast): Update `last' field. Handle the last == first case.
2120 2000-12-01 Warren Levy <warrenl@cygnus.com>
2122 * Makefile.am: Added entries for new java.sql modules.
2123 * Makefile.in: Rebuilt.
2125 2000-12-01 Warren Levy <warrenl@cygnus.com>
2127 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2128 that aren't quite 1.2 compatible yet.
2130 2000-11-30 Warren Levy <warrenl@cygnus.com>
2132 * java/sql/Array.java: New file from classpath.
2133 * java/sql/BatchUpdateException.java: Ditto.
2134 * java/sql/Blob.java: Ditto.
2135 * java/sql/Clob.java: Ditto.
2136 * java/sql/Ref.java: Ditto.
2137 * java/sql/SQLData.java: Ditto.
2138 * java/sql/SQLInput.java: Ditto.
2139 * java/sql/SQLOutput.java: Ditto.
2140 * java/sql/Struct.java: Ditto.
2141 * java/sql/CallableStatement.java: Merged file from claspath.
2142 * java/sql/Connection.java: Ditto.
2143 * java/sql/DataTruncation.java: Ditto.
2144 * java/sql/DatabaseMetaData.java: Ditto.
2145 * java/sql/DriverManager.java: Ditto.
2146 * java/sql/PreparedStatement.java: Ditto.
2147 * java/sql/ResultSet.java: Ditto.
2148 * java/sql/ResultSetMetaData.java: Ditto.
2149 * java/sql/SQLException.java: Ditto.
2150 * java/sql/SQLWarning.java: Ditto.
2151 * java/sql/Statement.java: Ditto.
2152 * java/sql/Types.java: Ditto.
2154 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2156 * java/lang/natSystem.cc (init_properties): Set user.language and
2158 * configure.in: Check for setlocale.
2159 * configure: Rebuilt.
2160 * include/config.h.in: Rebuilt.
2162 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2163 the infate() call didn't deliver any output. Throw a ZipException if
2164 the needsDictionary() call returns true.
2165 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2166 * java/io/InputStreamReader: Use the default buffer size for the
2167 contained BufferedInputStream.
2169 2000-11-28 Warren Levy <warrenl@cygnus.com>
2171 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2172 more time zone entries.
2173 * java/text/SimpleDateFormat.java (format): Added case for
2176 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2178 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2179 directly rather than read() in all cases. Make primitive read
2180 implementations more efficient, as defined in JDK online docs.
2181 (skipBytes): Behave like the JDK's implementation.
2182 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2183 closed stream with checkStatus() whenever an IOException can be
2185 (checkStatus): New private method.
2187 2000-11-27 Warren Levy <warrenl@cygnus.com>
2189 * Makefile.am: Added natTimeZone.cc.
2190 * Makefile.in: Rebuilt.
2191 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2192 * java/text/DateFormatSymbols.java (ampms): Made package private.
2193 (eras): Made package private.
2194 (months): Made package private.
2195 (shortMonths): Made package private.
2196 (shortWeekdays): Made package private.
2197 (weekdays): Made package private.
2198 (formatPrefixes): New private field.
2199 (localPatternCharsDefault): Made private.
2200 (dateFormats): New package private field.
2201 (timeFormats): New package private field.
2202 (formatsForKey): New private method.
2203 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2204 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2205 * java/text/SimpleDateFormat.java: Merged with Classpath.
2206 * java/util/TimeZone.java: Merged with Classpath.
2207 * java/util/natTimeZone.cc: New file.
2209 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2211 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2212 (addElement): Don't increment elementCount twice. Doh.
2213 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2214 array needs to be expanded.
2216 * java/util/Collections.java (UnmodifiableCollection): Implement
2218 (UnmodifiableList): Throw UnsupportedOperationException from
2219 modification methods. Set `l' from the one-parameter constructor.
2220 (UnmodifiableMap): Implement toString().
2221 (SynchronizedCollection): Ditto.
2222 (SynchronizedList): Set `l' from the one-parameter constructor.
2223 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2224 (SynchronizedMap): Implement toString().
2226 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2228 * javax/naming/NameParser.java,
2229 javax/naming/directory/AttributeInUseException.java,
2230 javax/naming/directory/AttributeModificationException.java,
2231 javax/naming/directory/InvalidAttributeIdentifierException.java,
2232 javax/naming/directory/InvalidAttributesException.java,
2233 javax/naming/directory/InvalidAttributeValueException.java,
2234 javax/naming/directory/InvalidSearchControlsException.java,
2235 javax/naming/directory/InvalidSearchFilterException.java,
2236 javax/naming/directory/NoSuchAttributeException.java,
2237 javax/naming/directory/SchemaViolationException.java: New files.
2239 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2241 * javax/naming/InitialContext.java (rebind): Implement.
2242 (unbind): Implement.
2243 (rename): Implement.
2245 (listBindings): Implement.
2246 (destroySubcontext): Implement.
2247 (createSubcontext): Implement.
2248 (lookupLink): Implement.
2249 (getNameParser): Implement.
2250 (composeName): Implement.
2251 (addToEnvironment): Implement.
2253 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2255 * javax/naming/AuthenticationException.java,
2256 javax/naming/AuthenticationNotSupportedException.java,
2257 javax/naming/CannotProceedException.java,
2258 javax/naming/CommunicationException.java,
2259 javax/naming/ConfigurationException.java,
2260 javax/naming/ContextNotEmptyException.java,
2261 javax/naming/InsufficientResourcesException.java,
2262 javax/naming/InterruptedNamingException.java,
2263 javax/naming/InvalidNameException.java,
2264 javax/naming/LimitExceededException.java,
2265 javax/naming/LinkException.java,
2266 javax/naming/LinkLoopException.java,
2267 javax/naming/MalformedLinkException.java,
2268 javax/naming/NameAlreadyBoundException.java,
2269 javax/naming/NameNotFoundException.java,
2270 javax/naming/NamingSecurityException.java,
2271 javax/naming/NoPermissionException.java,
2272 javax/naming/NotContextException.java,
2273 javax/naming/PartialResultException.java,
2274 javax/naming/ReferralException.java,
2275 javax/naming/ServiceUnavailableException.java,
2276 javax/naming/SizeLimitExceededException.java,
2277 javax/naming/TimeLimitExceededException.java: New files.
2279 * javax/naming/Name.java (clone): New method.
2280 (compareTo): New method.
2281 (isEmpty): New method.
2282 (getAll): New method.
2283 (getPrefix): New method.
2284 (getSuffix): New method.
2285 (startsWith): New method.
2286 (endsWith): New method.
2287 (addAll): New method.
2288 (addAll): New method.
2291 (remove): New method.
2293 * javax/naming/Context.java (lookup): New method.
2294 (rebind): New method.
2295 (unbind): New method.
2296 (rename): New method.
2298 (listBindings): New method.
2299 (destroySubcontext): New method.
2300 (createSubcontext): New method.
2301 (lookupLink): New method.
2302 (getNameParser): New method.
2303 (composeName): New method.
2304 (addToEnvironment): New method.
2305 (removeFromEnvironment): New method.
2306 (getEnvironment): New method.
2307 (close): New method.
2308 (getNameInNamespace): New method.
2310 * javax/naming/InitialContext.java (lookup): New method.
2311 (rebind): New method.
2312 (unbind): New method.
2313 (rename): New method.
2315 (listBindings): New method.
2316 (destroySubcontext): New method.
2317 (createSubcontext): New method.
2318 (lookupLink): New method.
2319 (getNameParser): New method.
2320 (composeName): New method.
2321 (addToEnvironment): New method.
2322 (removeFromEnvironment): New method.
2323 (getEnvironment): New method.
2324 (close): New method.
2325 (getNameInNamespace): New method.
2327 2000-11-26 Tom Tromey <tromey@cygnus.com>
2329 * Makefile.in: Rebuilt.
2330 * Makefile.am (core_java_source_files): Added
2331 RuntimePermission.java.
2332 * java/lang/RuntimePermission.java: Imported from Classpath.
2333 * java/lang/Thread.java (getContextClassLoader): Now
2334 synchronized. Added security code.
2335 (setContextClassLoader): Likewise.
2337 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2338 length field of array.
2339 (_Jv_NewPrimArray): Likewise.
2340 * gcj/array.h (__JArray): `length' field now const. Added
2343 2000-11-26 Anthony Green <green@redhat.com>
2345 * javax/naming/spi/NamingManager.java,
2346 javax/naming/spi/ObjectFactory.java,
2347 javax/naming/spi/InitialContextFactory.java,
2348 javax/naming/spi/InitialContextFactoryBuilder.java,
2349 javax/naming/RefAddr.java, javax/naming/Reference.java,
2350 javax/naming/NamingException.java, javax/naming/Context.java,
2351 javax/naming/Referenceable.java,
2352 javax/naming/directory/InitialDirContext.java,
2353 javax/naming/directory/DirContext.java,
2354 javax/naming/directory/Attributes.java,
2355 javax/naming/directory/Attribute.java,
2356 javax/naming/StringRefAddr.java,
2357 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2358 javax/naming/InitialContext.java,
2359 javax/naming/NoInitialContextException.java: New files.
2361 2000-11-25 Anthony Green <green@redhat.com>
2363 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2364 (_Jv_NewPrimArray): Likewise.
2365 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2366 (class JArray): Removed constructor.
2368 * java/lang/Thread.java (context_class_loader): New private data.
2369 (getContextClassLoader): New method.
2370 (setContextClassLoader): New method.
2371 (Thread): Initialize context_class_loader.
2373 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2374 (getResource): Rename to findResource.
2375 (findResource): New method. Used to be getResource.
2376 (getResourceAsStream): Deleted.
2377 (jarFileize): Extracted logic from URLClassLoader constructor into
2378 this new private method.
2379 (addURL): New protected method.
2380 (URLClassLoader): Call jarFileize. Use addElement instead of
2382 (findResources): New method.
2384 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2385 (getResource): Implement correct logic.
2386 (findResource): New method.
2387 (getResources): New method.
2388 (findClass): Create a ClassNotFoundException with the name of the
2389 class rather than nothing at all.
2390 (defineClass) Only throw ClassFormatError.
2392 * java/lang/Class.java (forName): New method.
2393 * java/lang/Class.h (forName): New method.
2394 * java/lang/natClass.cc (forName): New method.
2396 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2398 * java/lang/System.java (setProperties): Only call init_properties()
2399 if properties is null.
2400 (getProperties): Ditto.
2401 (getProperty): Ditto.
2402 (setProperty): Call init_properties if properties are null.
2403 (prop_init): Remove field.
2404 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2405 method. Check for null properties after synchronizing instead of
2406 prop_init flag. Set the properties field last for thread safety.
2408 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2409 test for gcj.dumpobjects property and enable object stream dumping
2411 (dumpElement): No longer native.
2412 (dumpElementln): Ditto.
2413 (setDump): Do not define.
2414 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2415 (dumpElementln): Removed.
2418 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2420 * configure: Rebuilt.
2421 * Makefile.in: Rebuilt.
2422 * Makefile.am (built_java_source_files): Add Configuration.java.
2423 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2424 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2425 Create `gnu' directory in the build tree.
2426 * gnu/classpath/Configuration.java.in: New file.
2428 2000-11-24 Tom Tromey <tromey@cygnus.com>
2430 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2432 (_Jv_NewPrimArray): Likewise.
2434 * gcj/array.h (__JArray): `length' field now const. Added
2436 (class JArray): Added constructor.
2438 2000-11-23 Mark Wielaard <mark@klomp.org>
2440 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2443 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2445 * java/util/Vector.java: Improve exception messages.
2446 (Vector): Check initialCapacity for IllegalArgumentException.
2447 (tromToSize): Don't check for elementCount == elementData.length
2449 (toArray): Don't try to set null marker if target array is the same
2450 length as the vector.
2452 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2454 * Makefile.in: Rebuilt.
2455 * Makefile.am (core_java_source_files): Added Collections.java.
2456 * java/util/List.java: Merged from classpath.
2457 * java/util/Vector.java: Ditto.
2458 * java/util/Collections.java: From classpath.
2459 * java/util/ArrayList.java (addAll(Collection)): Call
2460 addAll(int,Collection) instead of duplicating code.
2461 (indexOf): Clean up int initialization.
2462 (clear): Set cleared array entries to null, to allow garbage
2464 * java/util/List.java: Minor formatting fixes.
2465 * java/util/SimpleTimeZone.java: ditto.
2467 2000-11-18 Tom Tromey <tromey@cygnus.com>
2469 * Makefile.in: Rebuilt.
2470 * Makefile.am (core_java_source_files): Added new files.
2471 * java/lang/reflect/ReflectPermission.java: New class.
2472 * java/io/FileFilter.java: From Classpath
2473 * java/io/FilePermission.java: From Classpath.
2475 2000-11-17 Tom Tromey <tromey@cygnus.com>
2477 * java/lang/reflect/AccessibleObject.java (isAccessible,
2478 setAccessible): Now public.
2480 * java/lang/natString.cc: Include Locale.h.
2481 (toUpperCase): Added `locale' argument. Handle locale
2483 (toLowerCase): Added `locale' argument. Handle locale
2485 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2486 CAPITAL_I): New defines.
2487 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2490 (toUpperCase, toLowerCase): New methods. Variants which accept
2493 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2496 * java/util/PropertyPermission.java: Re-merged from Classpath.
2498 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2500 * java/text/StringCharacterIterator.java: Reindented.
2501 (setText): New method.
2503 2000-11-17 Mark Wielaard <mark@klomp.org>
2505 Merge with Classpath (changes by Bryce McKinlay)
2506 * java/util/jar/*.java: Reformat all to unofficial standard coding
2507 style. No changes of substance.
2509 2000-11-17 Mark Wielaard <mark@klomp.org>
2511 * java/util/zip/*.java: Javadoc updates.
2513 2000-11-17 Tom Tromey <tromey@cygnus.com>
2515 * java/text/CollationKey.java: Implement Comparable.
2516 (compareTo(Object)): New method.
2517 * java/text/Collator.java (compare(Object,Object)): New method.
2518 Implement Comparator.
2520 * java/util/zip/InflaterInputStream.java (available): New method.
2521 (close): New method.
2522 (read, available, skip, fill): Throw exception if stream closed.
2523 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2524 getNextEntry): Throw exception if closed.
2526 2000-11-16 Tom Tromey <tromey@cygnus.com>
2528 * java/io/PushbackReader.java: Merged with Classpath.
2529 * java/util/Arrays.java: Updated from Classpath.
2531 * scripts/blocks.pl: New file.
2532 * java/lang/Character.java (Subset): New class.
2533 (UnicodeBlock): New class.
2535 * java/lang/Math.java (toDegrees, toRadians): New methods.
2537 * java/lang/Float.java: Implement Comparable.
2538 (compareTo): New methods.
2539 * java/lang/Double.java: Implement Comparable.
2540 (compareTo): New methods.
2542 2000-11-16 Warren Levy <warrenl@cygnus.com>
2544 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2546 (listeners): Made transient.
2547 (source): Renamed from 'bean'.
2548 (children): New field for serialization.
2549 (propertyChangeSupportSerializedDataVersion): Ditto.
2550 (serialVersionUID): Ditto.
2551 (writeObject): New serialization method.
2552 (readObject): New serialization method.
2553 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2555 (listeners): Made transient.
2556 (source): Renamed from 'bean'.
2557 (children): New field for serialization.
2558 (vetoableChangeSupportSerializedDataVersion): Ditto.
2559 (serialVersionUID): Ditto.
2560 (writeObject): New serialization method.
2561 (readObject): New serialization method.
2562 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2563 to allow constructor to have a return type (i.e. the class that the
2564 constructor constructs).
2566 2000-11-14 Tom Tromey <tromey@cygnus.com>
2568 * Makefile.in: Rebuilt.
2569 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2572 2000-11-02 Warren Levy <warrenl@cygnus.com>
2574 * java/io/ObjectInputStream.java (readObject): Added code to
2575 conditionally dump out the serialized data.
2576 Handle ENDBLOCKDATA case a bit more gracefully since the current
2577 behavior doesn't seem to work as expected.
2578 (readStreamHeader): Added code for serialized data dumper.
2579 (readNextBlock): Ditto.
2580 (readFields): Ditto.
2581 (dump): New private static field for turning on/off dumper.
2582 (setDump): New native method.
2583 (dumpElement): New native method.
2584 (dumpElementln): New native method.
2585 * java/io/natObjectInputStream.cc (setDump): New method.
2586 (dumpElement): New method.
2587 (dumpElementln): New method.
2589 2000-11-02 Warren Levy <warrenl@cygnus.com>
2591 * java/net/InetAddress.java (addr): Renamed from 'address'.
2592 (address): New field to match Serialized Form doc.
2593 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2594 (family): New serialization field.
2595 (serialVersionUID): New field.
2596 (readObject): New method.
2597 (writeObject): New method.
2598 (getFamily): New native method.
2599 (InetAddress): Set family.
2600 * java/net/natInetAddress.cc (getFamily): New method.
2601 (addr): Renamed from 'address'.
2602 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2603 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2604 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2606 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2608 * java/util/AbstractList.java (SubList): Make it a top-level private
2610 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2612 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2613 * Makefile.in: Rebuilt.
2615 2000-11-02 Tom Tromey <tromey@cygnus.com>
2617 * Makefile.in: Rebuilt.
2618 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2621 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2623 * java/util/AbstractList.java (remove): Comment out modCount increment
2624 to work around compiler bug.
2627 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2629 * java/util/AbstractList.java: Throw messages with
2630 IndexOutOfBoundsExceptions.
2631 (listIterator()): Call listIterator(0).
2632 (size): New field. Initialize to size().
2633 (hasNext): Test position against size, not size().
2634 (remove): Increment knownMod by one instead of resetting it from
2637 (SubList.upMod): Removed.
2638 (SubList.set): Don't call upMod() or update knownMod.
2639 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2640 (SubList.remove): Ditto.
2641 (SubList.addAll): Don't call backingList.size(). Increment size from
2643 (SubList.iterator): New method. Call listIterator(0).
2644 (SubList.listIterator): New method. Restore code to return an anonymous
2645 listIterator implementation (with some changes).
2646 * java/util/AbstractSequentialList.java: Throw messages with
2647 IndexOutOfBoundsExceptions.
2648 (addAll): Add a specnote.
2649 * java/util/ArrayList.java (removeRange): Get the math right.
2650 (addAll): Increment modCount _before_ creating iterator.
2651 * java/util/LinkedList.java: Rewritten, mostly.
2653 2000-11-01 Tom Tromey <tromey@cygnus.com>
2655 * scripts/encodings.pl: Added `ASCII' alias.
2656 * Makefile.in: Rebuilt.
2657 * Makefile.am (convert_source_files): Added new files.
2658 * gnu/gcj/convert/Input_ASCII.java: New file.
2659 * gnu/gcj/convert/Output_ASCII.java: New file.
2660 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2661 out-of-range characters.
2662 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2663 (read): Swap bytes if required. Treat `count' as character count,
2665 (write): Likewise. Also, handle case where iconv fails on a given
2667 (init): Put encoding into exception.
2668 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2669 (static): Call iconv_init. Rebuilt alias list.
2670 (iconv_init): New private method.
2672 2000-11-01 Tom Tromey <tromey@cygnus.com>
2674 * Makefile.in: Rebuilt.
2675 * Makefile.am (install-exec-hook): Only make a single symlink, and
2676 remove the destination before making the link.
2677 * configure: Rebuilt.
2678 * configure.in: Call AC_PROG_LN_S.
2680 2000-10-31 Warren Levy <warrenl@cygnus.com>
2682 * jni.cc: Added include of java/lang/ThreadGroup.h.
2683 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2684 per change of 2000-10-05.
2686 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2688 * java/util/BitSet.java: Updated @specnote.
2690 * java/io/Reader.java: Merge docs from classpath.
2691 (skip): Synchronize on `lock'.
2692 * java/io/FileReader.java: Import correct implementation from
2694 * java/io/StringReader.java: Merge docs from classpath.
2695 (ready): Throw IOException if stream is closed.
2697 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2699 * java/util/AbstractCollection.java (addAll): Use size() instead of
2700 hasNext() in iterator loop.
2702 (contains): Ditto. Simplify loop.
2703 (containsAll): Ditto.
2708 (toString): Ditto. Use string concatenation operators, not
2710 * java/util/AbstractList.java (addAll): Use size() instead of
2711 hasNext() in iterator loop.
2714 (indexOf): Ditto. Don't take null check outside of the loop.
2715 (iterator): Return an AbstractListItr instead of anonymous class.
2716 (lastIndexOf): Use a for loop bounded by size() instead of
2717 hasPrevious() in iterator loop.
2718 (listIterator): Return an AbstractListItr.
2719 (removeRange): Remove bounds checking code and docs.
2720 (AbstractListItr): New inner class. Code moved here from
2722 (SubList.iterator): Removed. Use default implementation from
2723 AbstractList instead.
2724 (SubList.listIterator): As above.
2725 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2726 instead of hasNext() in iterator loop.
2727 (containsValue): Ditto.
2733 (toString): Ditto. Use string concatenation operators, not
2735 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2736 bounded by size() instead of hasNext() in iterator loop.
2737 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2738 part of normal execution flow. Do an explicit null check instead.
2739 * java/util/ArrayList.java (_iSize): Rename to `size'.
2740 (_arData): Rename to `data'.
2741 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2744 (removeRange): Make protected. Don't check bounds.
2745 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2747 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2749 (addAll (int, Collection)): Check lower bounds. Simplify exception
2751 (clone): Clone the data array too.
2752 (indexOf): Inline doesEqual().
2753 (lastIndexOf): Ditto.
2754 (clear): Don't set array data to null.
2755 (set): Check lower bounds. Simplify exception string.
2756 (toArray): Correct comment.
2757 (trimToSize): Don't update modCount, this is not a structural change.
2760 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2762 (toString): Declare `bit' as long, not int.
2763 (data): Made package-private, not private.
2765 2000-10-27 Warren Levy <warrenl@cygnus.com>
2767 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2768 array elements to true.
2770 2000-10-27 Warren Levy <warrenl@cygnus.com>
2772 * Makefile.am: Added locale files from Classpath.
2773 * Makefile.in: Rebuilt.
2774 * gnu/java/locale/Calendar.java: New file.
2775 * gnu/java/locale/Calendar_de.java: New file.
2776 * gnu/java/locale/Calendar_en.java: New file.
2777 * gnu/java/locale/Calendar_nl.java: New file.
2778 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2779 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2780 serialization compatibility.
2781 (scale): Made private.
2782 (serialVersionUID): New field.
2783 * java/math/BigInteger.java (ival): Made transient.
2784 (words): Made transient.
2785 (bitCount): New serialization field.
2787 (firstNonzeroByteNum): Ditto.
2788 (lowestSetBit): Ditto.
2791 (serialVersionUID): New field.
2792 (readObject): New method.
2793 (writeObject): New method.
2794 * java/util/BitSet.java (serialVersionUID): New field.
2795 * java/util/Calendar.java: Replaced with Classpath file.
2796 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2797 of getDefault() for TimeZone or Locale instead of passing nulls.
2798 * java/util/Locale.java (serialVersionUID): New field.
2799 (writeObject): New method.
2800 (readObject): New method.
2801 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2803 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2805 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2806 (core_java_source_files): Put java.lang, java.io, and java.util here.
2807 (ordinary_java_source_files): Order so that core_java_source_files are
2809 (java_source_files): Reorder so that special_java_source_files are
2811 * configure.in: Don't pass -I flag to gcj.
2812 * Makefile.in: Rebuilt.
2813 * configure: Rebuilt.
2815 2000-10-25 Tom Tromey <tromey@cygnus.com>
2817 * Makefile.in: Rebuilt.
2818 * Makefile.am (install-exec-hook): New target.
2820 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2822 * java/util/EventObject.java: Merged from classpath.
2824 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2827 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2829 * java/util/AbstractSet.java (equals): Re-installed original code.
2831 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2833 * Makefile.am: Added rules for libgcjx library.
2834 * Makefile.in: Rebuilt.
2835 * configure.in: Added check for X.
2836 * configure: Rebuilt.
2837 * gnu/awt/LightweightRedirector.java: New file.
2838 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2839 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2840 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2841 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2842 * gnu/awt/j2d/MappedRaster.java: New file.
2843 * gnu/awt/xlib/XCanvasPeer.java: New file.
2844 * gnu/awt/xlib/XEventLoop.java: New file.
2845 * gnu/awt/xlib/XEventQueue.java: New file.
2846 * gnu/awt/xlib/XFontMetrics.java: New file.
2847 * gnu/awt/xlib/XFramePeer.java: New file.
2848 * gnu/awt/xlib/XGraphics.java: New file.
2849 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2850 * gnu/awt/xlib/XPanelPeer.java: New file.
2851 * gnu/awt/xlib/XToolkit.java: New file.
2852 * gnu/gcj/xlib/Clip.java: New file.
2853 * gnu/gcj/xlib/Colormap.java: New file.
2854 * gnu/gcj/xlib/Display.java: New file.
2855 * gnu/gcj/xlib/Drawable.java: New file.
2856 * gnu/gcj/xlib/Font.java: New file.
2857 * gnu/gcj/xlib/GC.java: New file.
2858 * gnu/gcj/xlib/Pixmap.java: New file.
2859 * gnu/gcj/xlib/Screen.java: New file.
2860 * gnu/gcj/xlib/Visual.java: New file.
2861 * gnu/gcj/xlib/WMSizeHints.java: New file.
2862 * gnu/gcj/xlib/Window.java: New file.
2863 * gnu/gcj/xlib/WindowAttributes.java: New file.
2864 * gnu/gcj/xlib/XAnyEvent.java: New file.
2865 * gnu/gcj/xlib/XButtonEvent.java: New file.
2866 * gnu/gcj/xlib/XColor.java: New file.
2867 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2868 * gnu/gcj/xlib/XConnectException.java: New file.
2869 * gnu/gcj/xlib/XEvent.java: New file.
2870 * gnu/gcj/xlib/XException.java: New file.
2871 * gnu/gcj/xlib/XExposeEvent.java: New file.
2872 * gnu/gcj/xlib/XID.java: New file.
2873 * gnu/gcj/xlib/XImage.java: New file.
2874 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2875 * gnu/gcj/xlib/natClip.cc: New file.
2876 * gnu/gcj/xlib/natColormap.cc: New file.
2877 * gnu/gcj/xlib/natDisplay.cc: New file.
2878 * gnu/gcj/xlib/natDrawable.cc: New file.
2879 * gnu/gcj/xlib/natFont.cc: New file.
2880 * gnu/gcj/xlib/natGC.cc: New file.
2881 * gnu/gcj/xlib/natPixmap.cc: New file.
2882 * gnu/gcj/xlib/natScreen.cc: New file.
2883 * gnu/gcj/xlib/natVisual.cc: New file.
2884 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2885 * gnu/gcj/xlib/natWindow.cc: New file.
2886 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2887 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2888 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2889 * gnu/gcj/xlib/natXColor.cc: New file.
2890 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2891 * gnu/gcj/xlib/natXException.cc: New file.
2892 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2893 * gnu/gcj/xlib/natXImage.cc: New file.
2894 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2895 * java/awt/EventDispatchThread.java: Start thead on creation.
2897 2000-10-20 Tom Tromey <tromey@cygnus.com>
2899 From Arno J. Klaassen:
2900 * interpret.cc: Include <stdlib.h> for alloca.
2901 * defineclass.cc: Include <stdlib.h> for alloca.
2903 * Makefile.in: Rebuilt.
2904 * Makefile.am: Include deps.mk.
2905 (GCJCOMPILE): Added -MD, -MT, and -MF.
2906 ($(javao_files)): Don't depend on libgcj.zip.
2907 (all-recursive): New target.
2908 (%.lo:%.cc): Do dependency tracking.
2909 ($(nat_headers)): Don't depend on libgcj.zip.
2910 * configure: Rebuilt.
2911 * configure.in: Make .d files and deps.mk.
2913 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2915 * exception.cc: Don't #include "exception".
2916 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2918 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2919 * Makefile.in: Updated.
2921 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2923 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2924 * java/awt/peer/ComponentPeer.java (disable): Removed.
2927 (minimumSize): Removed.
2928 (preferredSize): Removed.
2931 * java/awt/peer/ListPeer.java (addItem): Removed.
2933 (minimumSize): Removed.
2934 (preferredSize): Removed.
2935 (setMultipleSelections): Removed.
2936 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2937 (remove): Renamed from removeMenu.
2938 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2940 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2941 (remove): Renamed from removeItem.
2942 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2943 (getMinimumSize): Removed.
2944 (getPreferredSize): Removed.
2945 (minimumSize): Removed.
2946 (preferredSize): Removed.
2947 (replaceText): Removed.
2948 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2949 (preferredSize): Removed.
2950 (getMinimumSize): Removed.
2951 (getPreferredSize): Removed.
2952 (setEchoCharacter): Removed.
2954 2000-10-10 Warren Levy <warrenl@cygnus.com>
2956 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2957 * java/sql/Date.java (serialVersionUID): New field.
2958 * java/sql/Time.java (serialVersionUID): New field.
2959 * java/sql/Timestamp.java (serialVersionUID): New field.
2960 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2961 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2962 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2963 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2964 (readObject): New serialization method.
2965 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2966 (serialVersionOnStream): New field.
2967 (readObject): New serialization method.
2968 (getMonetaryDecimalSeparator): New method.
2969 (setMonetaryDecimalSeparator): New method.
2970 * java/text/NumberFormat.java (maxFractionDigits): New field.
2971 (maxIntegerDigits): New field.
2972 (minFractionDigits): New field.
2973 (minIntegerDigits): New field.
2974 (serialVersionOnStream): New field.
2975 (serialVersionUID): New field.
2976 (readObject): New serialization method.
2977 (writeObject): New serialization method.
2978 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2979 (serialVersionOnStream): New field.
2980 (serialVersionUID): New field.
2981 (readObject): New serialization method.
2983 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2985 * configure.in (GCJ): Avoid bogus error message when looking for
2986 (and not finding) gcj in the build tree.
2987 * configure: Rebuilt.
2989 2000-10-09 Tom Tromey <tromey@cygnus.com>
2991 * configure: Rebuilt.
2992 * configure.in: Include sys/types.h when checking for socklen_t.
2993 From Arno J. Klaassen.
2995 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2997 * include/jvm.h: Enable __builtin_expect().
2999 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3000 the main program. Fix for PR libgcj/341.
3002 2000-10-07 Tom Tromey <tromey@cygnus.com>
3004 * java/util/Properties.java: Merged with Classpath version.
3006 2000-10-05 Tom Tromey <tromey@cygnus.com>
3008 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3009 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3010 * java/lang/Class.h (Object): Added `class$' field.
3011 * java/lang/Object.h (Object): Added `class$' field.
3012 * defineclass.cc (ClassClass): Use `class$' form.
3013 (ClassObject): Likewise.
3014 * resolve.cc (ClassObject): Use `class$' form.
3015 (ObjectClass): Likewise.
3016 * interpret.cc (ClassError): Removed.
3017 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3019 (IntegerClass): Likewise.
3020 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3022 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3023 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3024 SerializableClass): Likewise.
3025 Include Serializable.h, Cloneable.h.
3026 * java/lang/natSystem.cc (SystemClass): Removed.
3027 (init_properties): Use `class$' form.
3028 * java/lang/natObject.cc (CloneableClass): Removed.
3029 (clone): Use `class$' form.
3030 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3031 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3032 ConstructorClass): Likewise.
3033 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3034 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3035 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3036 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3038 (ClassClass): Likewise.
3039 * include/jvm.h (StringClass): Use `class$' form.
3040 * prims.cc (ObjectClass): Removed.
3041 (_Jv_RunMain): Use `class$' form.
3042 (_Jv_AllocObject): Likewise.
3043 * jni.cc (ClassClass): Use `class$' form.
3044 (ThrowableClass): Likewise.
3045 (ObjectClass): Likewise.
3046 (MethodClass): Likewise.
3047 (ThreadGroupClass): Likewise.
3048 (NativeThreadClass): Likewise.
3049 * boehm.cc (ObjectClass): Removed.
3050 (ClassClass): Removed.
3051 (_Jv_MarkObj): Use `class$' form.
3052 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3055 2000-10-05 Warren Levy <warrenl@cygnus.com>
3057 * Makefile.am: Removed java/io/Replaceable.java and
3058 java/io/Resolvable.java.
3059 * Makefile.in: Rebuilt.
3060 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3062 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3064 (processResolution): Handle readResolve method via reflection with
3065 removal of Resolvable interface.
3066 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3067 method via reflection with removal of Replaceable interface.
3068 * java/io/Replaceable.java: Removed.
3069 * java/io/Resolvable.java: Removed.
3070 * java/security/Key.java (serialVersionUID): New field.
3071 * java/security/Provider.java (serialVersionUID): New field.
3072 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3074 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3076 * java/sql/DataTruncation.java (serialVersionUID): New field.
3077 * java/sql/SQLException.java (serialVersionUID): New field.
3078 * java/sql/SQLWarning.java (serialVersionUID): New field.
3079 * java/util/Date.java (serialVersionUID): New field.
3080 (millis): Made transient.
3081 (readObject): New method.
3082 (writeObject): New method.
3084 2000-10-05 Tom Tromey <tromey@cygnus.com>
3086 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3088 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3090 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3091 (JvRunMain): Set _Jv_argv and _Jv_argc.
3092 * java/awt/Component.java: Minor fixes.
3093 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3094 * java/awt/Toolkit.java (systemEventQueue): Removed.
3095 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3096 * java/awt/Window.java (getToolkit): Don't call super.
3097 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3098 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3099 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3100 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3101 * gnu/awt/gtk/GtkFramePeer.java: New file.
3102 * gnu/awt/gtk/GtkMainThread.java: New file.
3103 * gnu/awt/gtk/GtkToolkit.java: New file.
3104 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3105 * gnu/awt/gtk/gtkcommon.cc: New file.
3106 * gnu/awt/gtk/gtkcommon.h: New file.
3107 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3108 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3109 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3110 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3111 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3112 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3114 2000-09-30 Tom Tromey <tromey@cygnus.com>
3116 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3117 interrupted before modifying the cv's wait set.
3120 2000-09-30 Hans Boehm <boehm@acm.org>
3121 Bryce McKinlay <bryce@albatross.co.nz>
3123 Implement bitmap descriptor based marking for Boehm GC.
3125 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3126 * configure: Rebuilt.
3127 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3128 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3129 method get_finalizer().
3130 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3131 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3132 (_Jv_AllocObj): Add new jclass parameter.
3133 (_Jv_AllocArray): Ditto.
3134 (_Jv_BuildGCDescr): New prototype.
3135 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3136 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3137 get_finalizer() instead of direct finalizer vtable offset.
3138 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3139 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3140 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3141 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3142 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3143 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3144 (_Jv_DetermineVTableIndex): Ditto.
3145 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3146 calculations to account for new gc_descr field.
3147 * boehm.cc: #include gc_gcj.h.
3148 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3149 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3150 New commentary from HB. Mark the classes vtable.
3151 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3152 (GC_DEFAULT_DESCR): New #define.
3153 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3154 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3155 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3156 scan conservativly if size is less than min_heap_addr. Set vtable
3157 pointer of new object before returning.
3158 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3159 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3160 allocation for obj_kind_x.
3161 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3162 (_Jv_AllocObj): Set vtable on returned object.
3163 (_Jv_AllocArray): Ditto.
3164 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3165 (_Jv_NewPrimArray): Ditto.
3166 (_Jv_AllocObj): Declare as a friend.
3167 (_Jv_AllocArray): Ditto.
3168 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3169 from &ObjectClass into new array class. Remove offset-by-one
3170 adjustments from `method' size calculations to account for gc_descr
3173 2000-09-26 Tom Tromey <tromey@cygnus.com>
3175 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3176 `remove', not `add'.
3178 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3180 * java/lang/natSystem.cc (file_encoding): Added return statement.
3182 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3184 * Makefile.am: Re-work shell commands that exceeded command-line
3186 * Makefile.in: Rebuilt.
3188 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3190 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3191 * java/lang/natDouble.cc: Likewise.
3192 * java/lang/reflect/natMethod.cc: Likewise.
3193 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3195 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3197 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3199 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3200 * acinclude.m4: Arrange for automake to not bring in a new
3201 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3202 * Makefile.am: Leave it up to automake to subst GCJ.
3203 * aclocal.m4, configure, Makefile.in: Rebuilt.
3205 2000-09-13 Tom Tromey <tromey@cygnus.com>
3207 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3208 (get): Ensure Boolean class is initialized.
3209 * java/lang/reflect/natField.cc (BooleanClass): New define.
3210 (get): Ensure Boolean class is initialized.
3212 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3214 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3215 Initialize with anonymous class.
3216 (compareToIgnoreCase): New method.
3218 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3219 (uncaughtException): Set had_uncaught_exception.
3220 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3221 exit with error status if set.
3222 (_Jv_RunMain): Ditto.
3224 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3226 * configure: Rebuilt with new ../libtool.m4.
3228 2000-09-11 Tom Tromey <tromey@cygnus.com>
3230 * java/lang/reflect/Field.java (toString): Don't rely on
3233 2000-09-08 Tom Tromey <tromey@cygnus.com>
3235 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3236 default decoder use iconv.
3237 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3238 Let default encoder use iconv.
3239 * configure: Rebuilt.
3240 * configure.in: Check for nl_langinfo and <langinfo.h>.
3241 * java/lang/natSystem.cc (file_encoding): New function.
3242 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3244 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3246 * acinclude.m4: Simplify the tests for CC and CXX.
3247 * aclocal.m4, configure: Rebuilt.
3249 * acinclude.m4: Include libtool macros from the source tree.
3250 * aclocal.m4, configure: Rebuilt.
3252 2000-09-08 Warren Levy <warrenl@cygnus.com>
3254 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3255 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3256 * java/io/File.java (writeObject): Added.
3257 (readObject): Added.
3258 (serialVersionUID): Added.
3259 * java/io/ObjectOutputStream.java (writeObject): Initialized
3260 fieldsAlreadyWritten before recursion rather than after.
3261 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3262 * java/io/OptionalDataException.java (serialVersionUID): Added.
3263 (OptionalDataException): Made package private.
3264 * java/io/SyncFailedException.java (SyncFailedException): Removed
3265 default constructor to match spec.
3266 * java/lang/Boolean.java (serialVersionUID): Added.
3267 * java/lang/Byte.java (serialVersionUID): Added.
3268 * java/lang/Character.java (serialVersionUID): Added.
3269 * java/lang/Double.java (serialVersionUID): Added.
3270 * java/lang/Float.java (serialVersionUID): Added.
3271 * java/lang/Integer.java (serialVersionUID): Added.
3272 * java/lang/Long.java (serialVersionUID): Added.
3273 * java/lang/Number.java (serialVersionUID): Added.
3274 * java/lang/Short.java (serialVersionUID): Added.
3275 * java/lang/String.java (serialVersionUID): Added.
3276 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3278 * java/lang/reflect/InvocationTargetException.java
3279 (serialVersionUID): Added.
3280 * java/net/URL.java (handler): Made transient.
3281 (hashCode): Added field for serialization, per spec. and use
3282 cached value if available.
3283 (serialVersionUID): Added.
3284 (URL): Initialize hashCode.
3285 (set): Adjust hashCode.
3286 (readObject): New Method to initialize the protocol handler when
3288 (writeObject): New method.
3289 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3290 * java/text/Collator.java: Removed 'implements Serializable'.
3291 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3292 * java/util/Properties.java (serialVersionUID): Added.
3293 * java/util/Random.java (serialVersionUID): Added.
3294 (seed): Made private.
3295 (nextNextGaussian): Made private.
3296 (haveNextNextGaussian): Made private.
3297 * java/util/Stack.java (serialVersionUID): Added.
3298 * java/util/TimeZone.java (serialVersionUID): Added.
3299 * java/util/Vector.java (serialVersionUID): Added.
3301 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3303 * Makefile.am (Thread.h): Don't be friends with native threads
3305 * Makefile.in: Rebuilt.
3306 * java/lang/Thread.java (interrupt_flag): Make package-private.
3308 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3310 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3311 to avoid long long division.
3313 2000-09-06 Tom Tromey <tromey@cygnus.com>
3315 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3317 * java/lang/reflect/Method.java (toString): Use `getName' for
3320 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3321 `args' if method takes no parameters.
3323 Fix for PR java.lang/339:
3324 * java/lang/natPosixProcess.cc (fail): New function.
3325 (cleanup): New function.
3326 (startProcess): Use them. Create pipe so child can communicate
3327 exec failure back to parent.
3329 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3331 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3333 (send): Undo last patch. Remove the label only.
3335 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3337 * java/net/natInetAdress.cc: Ditto.
3339 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3341 2000-09-05 Tom Tromey <tromey@cygnus.com>
3343 * doc/cni.sgml: Updated from master copy.
3345 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3347 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3349 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3351 * java/lang/fdlibm.h: #undef __P if previously defined.
3352 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3353 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3357 2000-09-04 Tom Tromey <tromey@cygnus.com>
3359 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3362 2000-09-04 Anthony Green <green@redhat.com>
3364 Fix for PR java.io/203:
3365 * java/io/File.java (createTempFile): Obey directory argument.
3366 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3367 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3368 variable to set java.io.tmpdir on non-WIN32 systems.
3370 2000-09-04 Anthony Green <green@redhat.com>
3372 * java/io/File.java (deleteOnExit): New method.
3373 * gnu/gcj/runtime/FileDeleter.java: New class.
3374 * java/lang/natRuntime.cc (exit): Call
3375 FileDeleter.deleteOnExitNow()
3376 * Makefile.am: Add FileDeleter.java.
3377 * Makefile.in: Rebuilt.
3379 2000-09-02 Tom Tromey <tromey@cygnus.com>
3381 * Makefile.in: Rebuilt.
3382 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3383 environment variable.
3385 2000-09-01 Andrew Haley <aph@redhat.com>
3387 * java/io/StreamTokenizer.java: Don't throw a
3388 NumberFormatException if a field is numeric as far as the
3389 StreamTokenizer is concerned but not as far as Double.valueOf() is
3390 concerned: return a zero instead.
3392 2000-08-30 Tom Tromey <tromey@cygnus.com>
3394 * Makefile.in: Rebuilt.
3395 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3397 2000-08-28 Tom Tromey <tromey@cygnus.com>
3399 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3400 gnu/gcj/awt/ComponentDataBlitOp.java,
3401 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3402 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3403 java/awt/color/ICC_ColorSpace.java,
3404 java/awt/color/ICC_Profile.java,
3405 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3406 java/awt/image/ComponentColorModel.java,
3407 java/awt/image/ComponentSampleModel.java,
3408 java/awt/image/DataBuffer.java,
3409 java/awt/image/DataBufferByte.java,
3410 java/awt/image/DataBufferInt.java,
3411 java/awt/image/DataBufferUShort.java,
3412 java/awt/image/DirectColorModel.java,
3413 java/awt/image/IndexColorModel.java,
3414 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3415 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3416 java/awt/image/SinglePixelPackedSampleModel.java,
3417 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3418 Removed Latin-1 copyright symbols.
3419 * java/util/zip/ZipFile.java: Indentation fixes.
3421 2000-08-27 Mark Wielaard <mark@klomp.org>
3423 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3424 constructor, close can delete the file, finalize calls close.
3425 * java/util/jar/JarFile.java: Constructor that takes mode now
3428 2000-08-27 Anthony Green <green@redhat.com>
3430 * java/util/ArrayList.java, java/util/Timer.java,
3431 java/util/LinkedList.java, java/util/TimerTask.java,
3432 java/util/HashMap.java, java/util/AbstractMap.java,
3433 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3434 java/util/SortedSet.java: Imported from GNU Classpath.
3435 * Makefile.in: Rebuilt.
3436 * Makefile.am: Added new files.
3438 2000-08-26 Anthony Green <green@redhat.com>
3440 * Makefile.in: Rebuilt.
3441 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3444 * prims.cc: Include ClassLoader.h.
3445 (_Jv_RunMain): When executing jar files, classpath must be the jar
3446 file only. Lose our reference to the system ClassLoader in order
3447 to get a new one with the correct classpath.
3448 * java/lang/natSystem.cc (init_properties): When executing a jar
3449 file, only use the jar file for java.class.path.
3451 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3452 for bytecode archives.
3454 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3455 exists, but not Main-Class.
3457 2000-08-23 Mark Wielaard <mark@klomp.org>
3459 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3460 return -1 when fill() has no more data for the Inflater.
3462 2000-08-23 Mark Wielaard <mark@klomp.org>
3464 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3465 write(String) already does.
3467 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3469 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3470 to `alive_flag', call `init'.
3471 (init): New native method.
3472 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3475 2000-08-21 Mark Wielaard <mark@klomp.org>
3477 * Makefile.in: Rebuilt.
3478 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3480 (java/lang/reflect/Field.h): Likewise.
3481 (java/lang/reflect/Method.h): Likewise.
3482 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3485 2000-08-21 Tom Tromey <tromey@cygnus.com>
3487 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3490 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3492 * java/lang/natSystem.cc (init_properties): Change sourceware
3493 reference to sources.redhat.com.
3495 * include/java-props.h: Add _Jv_Jar_Class_Path.
3496 * prims.cc: Ditto. Set it from `gij -jar file' option.
3498 * java/lang/natSystem.cc (init_properties): Set java.class.path
3500 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3502 * java/util/PropertyPermission.java: Import from GNU Classpath.
3503 * Makefile.in: Rebuilt.
3504 * Makefile.am: Add java/util/PropertyPermission.java.
3505 * java/lang/System.java: Add setProperty method.
3507 * gij.cc (main): Add -jar option to execute jar files.
3508 (help): Describe -jar option.
3509 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3510 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3511 * gnu/gcj/runtime/FirstThread.java (main): New method.
3513 * java/util/jar/Attributes.java: Correct comment spelling.
3515 2000-08-20 Mark Wielaard <mark@klomp.org>
3517 * java/util/zip/Adler32.java: Make private variables really private
3518 * java/util/zip/CRC32.java: Make private variables really private
3519 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3521 * java/util/zip/InflaterInputStream.java: skip() could skip to
3523 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3524 * java/util/zip/ZipFile.java: size() new 1.2 method
3525 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3526 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3529 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3531 * java/util/jar/JarFile.java: Don't call
3532 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3535 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3537 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3538 Read the entire contents of the class file, not just what is
3541 * java/net/JarURLConnection.java: getEntry doesn't take any
3542 arguments. Return null if element is null.
3544 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3545 size from the archive, not the inflated size.
3547 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3548 java.util.zip.ZipFile.getEntry.
3550 * gij.cc (help): Change sourceware reference to
3553 2000-08-19 Tom Tromey <tromey@cygnus.com>
3555 * java/util/zip/ZipInputStream.java (createZipEntry):
3558 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3560 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3561 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3562 java/util/jar/JarInputStream.java,
3563 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3564 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3565 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3566 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3567 java/security/cert/Certificate.java,
3568 java/security/cert/CertificateEncodingException.java,
3569 java/security/cert/CertificateException.java,
3570 java/security/cert/CertificateExpiredException.java,
3571 java/security/cert/CertificateFactory.java,
3572 java/security/cert/CertificateFactorySpi.java,
3573 java/security/cert/CertificateNotYetValidException.java,
3574 java/security/cert/CertificateParsingException.java,
3575 java/security/cert/X509CRL.java,
3576 java/security/cert/X509CRLEntry.java,
3577 java/security/cert/X509Certificate.java,
3578 java/security/cert/X509Extension.java: Imported from Classpath.
3579 * java/util/Hashtable.java: Imported from Classpath.
3581 * java/util/zip/ZipInputStream.java: Create stub for
3584 * gcj/javaprims.h: Updated class list.
3586 * Makefile.in, gcj/Makefile.in: Rebuilt.
3587 * Makefile.am (ordinary_java_source_files): Add these new classes.
3589 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3591 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3592 * gnu/gcj/awt/GLightweightPeer.java: New file.
3593 * java/awt/BorderLayout.java: Implemented all methods.
3594 * java/awt/Button.java (actionListener, actionCommand): Renamed
3595 and modifier change.
3596 (addNotify): Call super.
3597 (dispatchEventImpl): New method.
3598 (getListeners): New method.
3599 (label): Made package-private, not private.
3600 * java/awt/Canvas.java: Implemented class body.
3601 * java/awt/Color.java (brighter): New method.
3602 (darker): New method.
3603 (hashCode): New method.
3604 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3605 (getGraphicsConfiguration): Delegate to
3606 getGraphicsConfigurationImpl().
3607 (getGraphicsConfigurationImpl): New method.
3608 (getToolkit): Only return value from peer if not null.
3609 (isDisplayable): Check with parent.
3610 (isShowing): No parent implies not showing.
3611 (getForeground): Check parent property if local is null.
3612 (getBackground): Likewise.
3613 (getFont): Likewise.
3614 (setForeground): Inform peer.
3615 (setBackground): Likewise
3616 (setLocale): Invalidate component.
3617 (getColorModel): Implemented.
3618 (setLocation): Invalidate, or ignore if no change.
3619 (setSize): Invalidate, or ignore if no change.
3620 (setBounds): Invalidate, or ignore if no change.
3621 (isOpaque): By default, heavyweight implies opaque.
3622 (isLightweight): Implemented.
3623 (getMaximumSize): Implemented.
3624 (doLayout): Implemented, NOP.
3625 (validate): Implemented, NOP.
3626 (invalidate): Only propagate to parent if parent was valid.
3627 (getGraphics): Implemented.
3628 (getFontMetrics): Implemented.
3629 (update): Implemented.
3630 (paintAll): Implemented.
3631 (repaint): Implemented all repaint methods.
3632 (print): Implemented.
3633 (printAll): Implemented.
3634 (createImage): Implemented.
3635 (dispatchEvent): Give the peer a chance to handle the event.
3636 (dispatchEventImpl): Dispatch paint events.
3637 (enableEvents): Lightweights enable events on parent component.
3638 (coalesceEvents): Coalesce paint events, and select event type
3640 (coalescePaintEvents): New method.
3641 (processEvent): Fix unfortunate ordering of statements, and call
3642 correct method for MOUSE_CLICKED.
3643 (processPaintEvent): New method.
3644 (addNotify): Allow container to notify children before event
3645 mask is set in peer.
3646 (addNotifyContainerChildren): New method.
3647 (removeNotify): Visibility should not change on removeNotify.
3648 (paramString): Implemented.
3649 (list): Implemented two of the list methods.
3650 * Container (myInsets): Removed, insets are managed by peer.
3651 (getInsets): Query peer.
3652 (addImpl): Fix reparenting, enable events for lightweights,
3653 initialize component array.
3654 (validate): Call doLayout in validateTree() instead.
3655 (validateTree): Do nothing if already valid. Call beginValidate(),
3656 endValidate() on peer. Call validateTree() instead of validate()
3657 for children that are containers. Mark valid after validation of
3659 (setFont): Partial implementation.
3660 (paint): Implemented.
3661 (visitChildren): New method.
3662 (visitChild): New method.
3663 (update): Implemented.
3664 (print): Implemented.
3665 (paintComponents): Implemented.
3666 (printComponents): Consider translation and clipping.
3667 (getComponentAt): Ignore invisible children. Return this if no
3669 (addNotify): Call super.
3670 (addNotifyContainerChildren): New method.
3671 (paramString): Implemented.
3672 (list): Implemented.
3673 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3675 (invokeLater): Likewise.
3676 (isDispatchThread): Likewise.
3677 * java/awt/FontMetrics (getLeading): Formula change.
3678 (getDescent): Consider leading also.
3679 (getMaxAscent): Default to getAscent().
3680 (getMaxDescent): Default to getDescent.
3681 (getMaxAdvance): Return value signifying unknown.
3682 (charWidth): Both methods implemented.
3683 (charsWidth): Implemented.
3684 (bytesWidth): Implemented.
3685 (getWidths): Implemented.
3686 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3688 (Frame): Rearragend constuctor chaining to disallow null being
3689 passed as a graphics configuration.
3690 (getTitle): Return empty string if null.
3692 (getIconImage): New method.
3693 (setIconImage): New method.
3694 (finalize): New method.
3695 (setMenuBar): Notify peer.
3696 (isResizable): New method.
3697 (setResizable): New method.
3698 (getState): New method.
3700 (remove): Implemented.
3701 (removeNotify): New method.
3702 (getFrames): New method.
3703 * java/awt/Graphics.java: Implemented body of class.
3704 * java/awt/Graphics2D.java: New file.
3705 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3706 * java/awt/Image.java: Implemented body of class.
3707 * java/awt/Panel.java (Panel): Call correct super constructor.
3708 (addNotify): Implemented.
3709 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3710 * java/awt/RenderingHints.java: New file.
3711 * java/awt/Toolkit.java (createComponent): Implemented.
3712 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3713 * java/awt/Window.java (Window): Two new constructors. Reordered
3714 constructor chaining.
3715 (getGraphicsConfigurationImpl): New method.
3716 (finalize): Call super.
3717 (addNotify): Call super.
3718 (pack): Do layout stuff.
3719 (show): Ensure that peer exists and that component is valid.
3720 (dispose): Dispose owned children.
3721 (getOwner): Simplify code, casting null pointers is valid.
3722 (getGraphicsConfiguration): Ask peer if local value is null.
3723 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3725 * java/awt/image/BufferedImage.java: New file.
3726 * java/awt/image/RasterOp.java: New file.
3727 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3728 More powerfull replacement for getColorModel().
3729 (getColorModel) Removed.
3730 (setEventMask) New method.
3731 * Makefile.am: Added new files.
3732 * Makefile.in: Rebuilt.
3734 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3736 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3737 (finit_leg_name): New global.
3738 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3739 `$finit$'. This is a backward compatibility hack.
3740 (java::lang::Class::_getMethods): Likewise.
3742 2000-08-15 Andrew Haley <aph@cygnus.com>
3744 * include/jvm.h (_Jv_HashCode): New hash code.
3746 2000-08-15 Tom Tromey <tromey@cygnus.com>
3748 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3750 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3752 * THANKS: More thanks.
3754 2000-08-10 Tom Tromey <tromey@cygnus.com>
3756 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3758 (connect): Likewise.
3760 (getOption): Likewise.
3761 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3762 case when errno not set.
3765 (receive): Likewise.
3766 (mcastGrp): Likewise.
3767 (setOption): Likewise.
3768 (getOption): Likewise.
3770 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3771 John Stracke <francis@ecal.com>
3773 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3774 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3776 (disconnect): Don't unset connected flag.
3777 (getHeaderField (String)): Call connect() if not connected.
3778 (getHeaderField (int)): Ditto.
3779 (getHeaderFieldKey): Ditto.
3780 (getHttpHeaders): Don't call connect().
3781 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3782 gotResponseVals): New fields.
3783 (getResponseCode): Call getResponseVals() conditionally.
3784 (getResponseMessage): Ditto.
3785 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3787 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3789 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3790 * Makefile.in: Rebuilt.
3791 * java/awt/Color.java (getTransparency): New method.
3792 * java/awt/Component.java: Various updates.
3793 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3794 after dealing with children.
3795 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3796 * java/awt/Window.java: Various new methods and updates.
3797 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3799 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3800 * java/awt/event/WindowEvent.java (paramString): Ditto.
3801 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3803 * java/awt/geom/Point2D.java (clone): Ditto.
3804 * java/awt/geom/RectangularShape.java (clone): Ditto.
3805 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3806 isAlphaPremultiplied): Make package-private, not private.
3808 2000-08-08 Tom Tromey <tromey@cygnus.com>
3810 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3811 surrogate characters.
3812 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3814 (write): Correct handling of surrogate characters.
3816 2000-08-07 Tom Tromey <tromey@cygnus.com>
3818 * java/lang/reflect/Method.java (hashCode): Use getName().
3819 (toString): Likewise.
3820 * java/lang/reflect/natMethod.cc (getType): Initialize
3823 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3825 * java/lang/reflect/Field.java (toString): Correct formatting.
3828 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3830 (receive): Streamlined.
3832 2000-08-05 Tom Tromey <tromey@cygnus.com>
3834 * java/io/PrintWriter.java: Merged comments from Classpath.
3835 (printlnUnsynchronized): Removed.
3836 (println()): Print the separator.
3837 (println): Call println(), not printlnUnsynchronized.
3838 (out): Now protected, to match spec.
3840 2000-08-04 Tom Tromey <tromey@cygnus.com>
3842 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3843 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3846 2000-08-03 Warren Levy <warrenl@cygnus.com>
3848 * java/io/ObjectInputStream.java (readFields): Turn off
3849 readDataFromBlock while reading via GetField.
3850 (GetField$1.get(String, Object)): Pass Class of default value to
3852 (getField): Allow for null default values.
3854 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3855 (PutField$1.put): Fixed calls of checkType in most of the put
3856 methods to pass the correct parameter.
3857 (PutField$1.put(String, Object)): Allow for null value arg.
3858 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3861 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3862 typo in spec'ed field name.
3863 (getSerialPersistentFields): Changed spelling of method to match
3864 the correct spelling of the spec'ed field name.
3866 2000-08-03 Tom Tromey <tromey@cygnus.com>
3868 * Makefile.in: Rebuilt.
3869 * Makefile.am (awt_java_source_files): Added new files.
3871 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3873 * Makefile.am: Add new AWT stubs.
3874 * java/awt/Canvas.java: New placeholder class.
3875 * java/awt/Checkbox.java: Ditto.
3876 * java/awt/CheckboxMenuItem.java: Ditto.
3877 * java/awt/Choice.java: Ditto.
3878 * java/awt/Dialog.java: Ditto.
3879 * java/awt/FileDialog.java: Ditto.
3880 * java/awt/List.java: Ditto.
3881 * java/awt/ScrollPane.java: Ditto.
3882 * java/awt/TextField.java: Ditto.
3883 * java/awt/datatransfer/Clipboard.java: Ditto.
3884 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3885 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3886 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3887 Some commented out. Partially implemented.
3888 * java/awt/natToolkit.cc: Removed file.
3890 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3892 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3893 Fixes "make -j" builds.
3894 * Makefile.in: Rebuild.
3896 2000-08-02 Tom Tromey <tromey@cygnus.com>
3898 * Makefile.in: Rebuilt.
3899 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3900 * java/net/natPlainSocketImpl.cc: Include posix.h.
3901 (accept): Use _Jv_select.
3902 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3903 (receive): Use _Jv_select.
3904 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3905 (available): Use _Jv_select.
3906 * java/lang/natSystem.cc: Include posix.h.
3907 (currentTimeMillis): Use _Jv_gettimeofday.
3908 * include/posix.h: New file.
3909 * posix.cc: New file.
3911 * scripts/encodings.pl: New file.
3912 * Makefile.in: Rebuilt.
3913 * Makefile.am (convert_source_files): Added IOConverter.java.
3914 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3916 (getDefaultDecodingClass): Canonicalize default encoding name.
3917 (getEncoder): Likewise.
3918 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3920 (getDefaultDecodingClass): Canonicalize default encoding name.
3921 (getDecoder): Likewise.
3922 * gnu/gcj/convert/IOConverter.java: New file.
3924 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3926 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3927 to match C declaration in ffi.h.
3928 * Makefile.am: Add java/awt/Button.java.
3929 * Makefile.in: Rebuilt.
3931 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3933 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3934 cast of the second argument to `ffi_raw_call' changed to match
3937 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3939 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3940 argument to `ffi_raw_call' changed to match prototype.
3942 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3944 * java/awt/Component.java (toString): Implemented.
3945 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3946 dispatchEvent() to dispatch the event.
3947 (removeImpl): Ditto.
3949 2000-07-30 Anthony Green <green@redhat.com>
3951 * java/awt/Component.java: Add treeLock object.
3952 (getTreeLock): Implement.
3953 (isShowing): Implement.
3955 2000-07-30 Tom Tromey <tromey@cygnus.com>
3957 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3959 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3961 * java/awt/Window.java (addNotify): Wrote.
3962 (addWindowListener): Wrote.
3964 (getWarningString): Wrote.
3965 (processEvent): Wrote.
3966 (processWindowEvent): Wrote.
3967 (removeWindowListener): Wrote.
3968 (show): Call validate(), setVisible().
3972 * java/awt/Toolkit.java (createWindow): Declare.
3974 * java/awt/Frame.java (addNotify): Use getToolkit to find
3977 * java/awt/Component.java (invalidate): Wrote.
3979 (getToolkit): Wrote.
3981 * java/awt/Container.java (addContainerListener): Removed
3983 (removeContainerListener): Likewise.
3985 (add(Component)): Use it.
3986 (add(String,Component)): Likewise.
3987 (add(Component,int)): Likewise.
3988 (add(Component,Object)): Likewise.
3989 (add(Component,Object,int)): Likewise.
3991 (getAlignmentX): Wrote.
3992 (getAlignmentY): Wrote.
3993 (getComponentAt): Wrote.
3994 (getMaximumSize): Wrote.
3995 (invalidate): Wrote.
3996 (list(PrintStream,int)): Wrote.
3997 (list(PrintWriter,int)): Wrote.
3998 (getMinimumSize): Wrote.
3999 (getPreferredSize): Wrote.
4000 (printComponents): Wrote.
4001 (processContainerEvent): Look at containerListener, not
4003 (remove): Added event processing and peer destruction.
4004 (removeAll): Use remove.
4005 (removeNotify): Wrote.
4007 (validateTree): Wrote.
4009 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4010 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4011 * java/awt/Container.java (addNotify): Don't create Container
4013 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4015 2000-07-30 Tom Tromey <tromey@cygnus.com>
4017 * java/awt/Container.java (remove(int)): Wrote.
4018 (remove(Component)): Wrote.
4019 (add(Component)): Wrote.
4020 (add(Component,int)): Wrote.
4022 (addNotify): Set our own peer.
4023 * java/awt/Scrollbar.java (listeners): Changed type.
4024 (Scrollbar): Don't initialize listeners.
4026 (setValue): Call setValues.
4027 (setMinimum): Likewise.
4028 (setMaxPriority): Likewise.
4029 (setVisibleAmount): Likewise.
4031 (setUnitIncrement): Forward to peer.
4032 (setLineIncrement): Call setUnitIncrement.
4033 (setPageIncrement): Call setBlockIncrement.
4034 (setBlockIncrement): Forward to peer.
4035 (addAdjustmentListener): Rewrote.
4036 (removeAdjustmentListener): Rewrote.
4037 (processAdjustmentEvent): Rewrote.
4038 (paramString): Wrote.
4039 * Makefile.in: Rebuilt.
4040 * Makefile.am (awt_java_source_files): Added Button.java.
4041 * java/awt/Button.java: New file.
4042 * java/awt/Toolkit.java (createLabel): Declare.
4043 (createButton): Likewise.
4044 (createScrollbar): Likewise.
4045 (createContainer): Likewise.
4046 * java/awt/Label.java (addNotify): Wrote.
4047 (setAlignment): Call setAlignment in the peer.
4048 (setText): Call setText in the peer.
4050 2000-07-28 Warren Levy <warrenl@cygnus.com>
4052 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4053 NotSerializableException with just the class name.
4055 2000-07-26 Andrew Haley <aph@cygnus.com>
4057 * interpret.cc (continue1): Insert missing break into switch.
4059 2000-07-28 Warren Levy <warrenl@cygnus.com>
4061 * java/io/ObjectStreamException.java: Made constructors protected.
4063 2000-07-27 Tom Tromey <tromey@cygnus.com>
4065 * java/io/OutputStreamWriter.java (close): Only flush if not
4068 2000-07-27 Warren Levy <warrenl@cygnus.com>
4070 * mauve-libgcj: Activated serialization tests.
4071 * gcj/field.h (getModifiers): Mask off unknown flags.
4072 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4073 spurious bits don't cause discrepancies.
4074 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4075 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4076 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4077 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4078 * java/lang/Throwable.java (serialVersionUID): New field.
4079 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4080 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4082 * java/lang/reflect/natMethod.cc: Ditto.
4083 * java/security/Key.java (serialVersionUID): Removed field for now.
4084 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4085 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4087 2000-07-22 Tom Tromey <tromey@cygnus.com>
4089 * java/awt/geom/RectangularShape.java (getPathIterator):
4092 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4094 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4095 stub libjava/java/awt/ColorModel.java which was located in the
4097 * libjava/java/awt/image/ComponentColorModel.java: New file.
4098 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4099 * libjava/java/awt/image/DataBuffer.java: New file.
4100 * libjava/java/awt/image/DataBufferByte.java: New file.
4101 * libjava/java/awt/image/DataBufferInt.java: New file.
4102 * libjava/java/awt/image/DataBufferUShort.java: New file.
4103 * libjava/java/awt/image/DirectColorModel.java: New file.
4104 * libjava/java/awt/image/PackedColorModel.java: New file.
4105 * libjava/java/awt/image/Raster.java: New file.
4106 * libjava/java/awt/image/SampleModel.java: New file.
4107 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4109 * libjava/java/awt/image/IndexColorModel.java: New file.
4110 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4111 java.awt.ColorModel stub.
4113 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4114 * gnu/gcj/util/Buffers.java: New file, utility class.
4116 * libjava/Makefile.am: Updated to include new files.
4117 * libjava/Makefile.in: Rebuilt.
4119 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4121 * java/io/StreamTokenizer.java: Merged with classpath.
4123 2000-07-20 Tom Tromey <tromey@cygnus.com>
4125 * Makefile.in: Rebuilt.
4126 * Makefile.am (awt_java_source_files): Updated for new files.
4127 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4128 * java/awt/Label.java: New file.
4129 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4130 (createIntersection, createUnion, getBounds2D): New methods.
4131 * java/awt/Scrollbar.java: New file.
4132 * java/awt/Shape.java: Updated to 1.2.
4133 * java/awt/geom/AffineTransform.java: New file.
4134 * java/awt/geom/Ellipse2D.java: New file.
4135 * java/awt/geom/NoninvertibleTransformException.java: New file.
4136 * java/awt/geom/PathIterator.java: New file.
4137 * java/awt/geom/Rectangle2D.java: New file.
4138 * java/awt/geom/RectangularShape.java: New file.
4139 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4140 * java/awt/geom/IllegalPathStateException.java: New file.
4142 * scripts/showval.java: New file.
4144 * scripts/classes.pl (scan): Print inner classes properly.
4145 * gcj/javaprims.h: Updated class list.
4147 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4148 initialize String fields for interpreted classes. Fixes bug
4149 reported by Hans Boehm.
4151 * java/io/File.java (getParentFile): New method, from Classpath
4152 via Oskar Liljeblad.
4154 * java/util/Vector.java (remove(Object)): Implemented.
4156 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4158 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4159 zero return from backtrace().
4161 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4163 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4165 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4166 before calling notifyAll().
4168 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4170 Add missing files from last check-in:
4171 * java/awt/image/ImageConsumer.java: New file.
4172 * java/awt/image/ImageProducer.java: New file.
4173 * java/awt/image/ImageObserver.java: New file.
4175 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4177 Merged implementation of java.applet from classpath:
4178 * java/applet/Applet.java: New file.
4179 * java/applet/AppletContext.java: New file.
4180 * java/applet/AppletStub.java: New file.
4181 * java/applet/AudioClip.java: New file.
4183 * Makefile.am: Added new java.applet classes.
4184 * Makefile.in: Rebuilt.
4186 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4189 * java/util/ResourceBundle.java (getLocale): stub.
4190 * Makefile.am: Added new AWT classes.
4191 * Makefile.in: Rebuilt.
4192 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4193 constructors. Fix toString() and paramString().
4194 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4195 * java/awt/CheckboxGroup.java: New class.
4196 * java/awt/ColorModel.java: New class.
4197 * java/awt/Component.java: Added stubs for most methods. Implemented
4199 * java/awt/Container.java: ditto.
4200 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4201 * java/awt/Cursor.java: ditto.
4202 * java/awt/Event.java: Fix paramString().
4203 * java/awt/EventQueue.java: New class. Implemented.
4204 * java/awt/Font.java: Added additional stub methods. Implemented
4206 * java/awt/FontMetrics.java: New class. Stubbed.
4207 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4209 * java/awt/Insets.java: New class. Implemented.
4210 * java/awt/Menu.java: Add new methods. Partially implemented.
4211 * java/awt/MenuItem.java: Add new methods and fields. Partially
4213 * java/awt/MenuShortcut.java: New class. Implemented.
4214 * java/awt/Panel.java: New class. Placeholder.
4215 * java/awt/PopupMenu.java: New class. Stubbed.
4216 * java/awt/Rectangle.java: New class. Implemented.
4217 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4218 * java/awt/event/ActionEvent.java: Implement paramString().
4219 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4220 * java/awt/event/ComponentEvent.java: Implement paramString().
4221 * java/awt/event/ContainerEvent.java: Implement paramString().
4222 * java/awt/event/FocusEvent.java: Implement paramString().
4223 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4224 * java/awt/event/HierarchyBoundsListener.java: New class.
4225 * java/awt/event/HierarchyEvent.java: New class.
4226 * java/awt/event/HierarchyListener.java: New class.
4227 * java/awt/event/InputMethodEvent.java: Implement paramString().
4228 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4229 exception if !catchExceptions.
4230 * java/awt/event/ItemEvent.java: Implement paramString().
4231 * java/awt/event/KeyEvent.java: Implement paramString().
4232 * java/awt/event/MouseEvent.java: Implement paramString().
4233 * java/awt/event/PaintEvent.java: Implement paramString().
4234 * java/awt/event/TextEvent.java: Implement paramString().
4235 * java/awt/event/WindowEvent.java: Implement paramString().
4237 AWT Peer interfaces:
4238 * java/awt/peer/ButtonPeer.java: New file.
4239 * java/awt/peer/ListPeer.java: New file.
4240 * java/awt/peer/CanvasPeer.java: New file.
4241 * java/awt/peer/MenuBarPeer.java: New file.
4242 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4243 * java/awt/peer/MenuComponentPeer.java: New file.
4244 * java/awt/peer/CheckboxPeer.java: New file.
4245 * java/awt/peer/MenuItemPeer.java: New file.
4246 * java/awt/peer/ChoicePeer.java: New file.
4247 * java/awt/peer/MenuPeer.java: New file.
4248 * java/awt/peer/ComponentPeer.java: Implemented.
4249 * java/awt/peer/PanelPeer.java: New file.
4250 * java/awt/peer/ContainerPeer.java: Implemented.
4251 * java/awt/peer/PopupMenuPeer.java: New file.
4252 * java/awt/peer/DialogPeer.java: New file.
4253 * java/awt/peer/ScrollPanePeer.java: New file.
4254 * java/awt/peer/FileDialogPeer.java: New file.
4255 * java/awt/peer/ScrollbarPeer.java: New file.
4256 * java/awt/peer/FontPeer.java: New file.
4257 * java/awt/peer/TextAreaPeer.java: New file.
4258 * java/awt/peer/FramePeer.java: Implemented.
4259 * java/awt/peer/TextComponentPeer.java: New file.
4260 * java/awt/peer/LabelPeer.java: New file.
4261 * java/awt/peer/TextFieldPeer.java: New file.
4262 * java/awt/peer/LightweightPeer.java: New file.
4263 * java/awt/peer/WindowPeer.java: Implemented.
4265 2000-07-06 Tom Tromey <tromey@cygnus.com>
4267 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4268 Initialize static final String fields.
4270 2000-07-03 Tom Tromey <tromey@cygnus.com>
4272 * java/io/PrintWriter.java (print): Call write(String), not
4273 print(String). See PR libgcj/277.
4274 (print(String)): Use write, not out.write.
4276 2000-06-30 Tom Tromey <tromey@cygnus.com>
4278 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4280 2000-06-27 Andrew Haley <aph@cygnus.com>
4282 * java/io/File.java (createTempFile): Close the FileDescriptor
4283 used to create a temp file. Fixes some of PR 203.
4284 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4285 collection if we run out of file handles.
4287 2000-06-28 Warren Levy <warrenl@cygnus.com>
4289 * gnu/java/security/provider/Gnu.java: New file.
4290 * gnu/java/security/provider/SHA.java: New file.
4291 * gnu/java/security/provider/SHA1PRNG.java: New file.
4292 * Makefile.am: Added the above files.
4293 * Makefile.in: Rebuilt.
4295 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4297 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4299 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4300 (destroyed_flag): Removed.
4301 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4302 (activeCount): Added spec note.
4304 2000-06-27 Warren Levy <warrenl@cygnus.com>
4306 * java/security/Principal.java: New file.
4307 * Makefile.am: Added Principal.java.
4308 * Makefile.in: Rebuilt.
4310 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4312 * java/awt/event/MouseEvent.java: Fixed coordinate space
4315 2000-06-27 Tom Tromey <tromey@cygnus.com>
4317 * java/io/PushbackInputStream.java (read): If there are characters
4318 in the buffer, don't also call super.read().
4319 * java/io/PushbackReader.java (read): If there are characters in
4320 the buffer, don't also call super.read().
4322 * java/lang/Double.java (valueOf): Call parseDouble().
4324 2000-06-26 Warren Levy <warrenl@cygnus.com>
4326 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4327 (newVal): Renamed to newValue.
4328 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4329 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4330 (revokeNow): Renamed to invalidateRefs.
4331 * java/io/OptionalDataException.java: Updated FIXME.
4332 (eof): New placeholder field.
4334 * java/io/WriteAbortedException.java (message): Made transient.
4335 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4336 * java/lang/Throwable.java (stackTrace): Made transient.
4337 * java/net/InetAddress.java: Made Serializable.
4338 * java/security/KeyPair.java: Made Serializable.
4339 * java/security/Provider.java: Replaced with Classpath version that
4340 implements serialization and proper methods.
4341 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4342 (limits): Renamed to choiceLimits.
4344 2000-06-24 Tom Tromey <tromey@cygnus.com>
4346 * java/lang/natDouble.cc (parseDouble): Renamed from
4348 * java/lang/Double.java (parseDouble): Renamed from
4349 doubleValueOf. Now public.
4351 2000-06-23 Andrew Haley <aph@cygnus.com>
4353 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4354 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4356 2000-06-23 Tom Tromey <tromey@cygnus.com>
4358 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4359 * java/lang/natDouble.cc: Always include <alloca.h>.
4360 Fix for PR libgcj/267.
4362 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4364 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4365 comply with classpath VM spec.
4366 (add(Group)): Rename to addGroup().
4367 * java/lang/Thread.java (Thread): Use addThread().
4368 * java/lang/natThread.cc (finish_): Use removeThread().
4370 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4372 * java/lang/ThreadGroup.java: Merged with classpath.
4373 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4374 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4376 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4377 ThreadGroup.root if Thread.currentThread is null. Honour the
4378 ThreadGroup's max priority setting.
4380 2000-06-18 Tom Tromey <tromey@cygnus.com>
4382 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4383 returned class. For PR gcj/260.
4385 2000-06-16 Tom Tromey <tromey@cygnus.com>
4387 Fix for PR libgcj/261:
4388 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4390 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4391 argument. (This is a patch from long ago that somehow went
4394 2000-06-15 Tom Tromey <tromey@cygnus.com>
4396 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4400 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4402 Fix for PR java.lang/258:
4403 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4404 JV_STATE_DONE, to prevent accidental initialization.
4405 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4406 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4407 interface or an abstract class. Remove redundant initializeClass calls.
4408 Remove duplicate if_idt test.
4409 (_Jv_InterfaceAssignableFrom): New function.
4410 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4412 2000-05-31 Tom Tromey <tromey@cygnus.com>
4414 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4415 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4416 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4417 (NUM_OBJECT_METHODS): New define.
4418 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4419 `array_vtable' parameter. Added assertion.
4420 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4423 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4425 * gcj/cni.h: Include <string.h>.
4426 * defineclass.cc: Include <alloca.h>.
4427 * interpret.cc: Ditto.
4428 * gij.cc: Include <stdlib.h>.
4430 2000-05-30 Tom Tromey <tromey@cygnus.com>
4432 * include/name-finder.h: Include <sys/wait.h>.
4433 (_Jv_name_finder::pid): Now of type `pid_t'.
4434 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4435 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4438 2000-05-24 Warren Levy <warrenl@cygnus.com>
4440 * java/io/ObjectOutputStream.java (writeObject): Use component type
4441 when writing arrays.
4444 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4446 Fix for PR libgcj/226:
4447 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4448 since this is an installed header.
4450 Fix for PR libgcj/228:
4451 * java/util/zip/ZipFile (getInputStream): Create inflater with
4454 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4455 with DataFormatException.
4457 2000-05-20 Tom Tromey <tromey@cygnus.com>
4459 * Makefile.in: Rebuilt.
4460 * Makefile.am (hack1): Removed.
4461 (awto_files): Likewise.
4462 (libgcjawt_la_SOURCES): Likewise.
4463 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4464 (libgcjawt_la_DEPENDENCIES): Likewise.
4465 (libgcjawt_la_LIBADD): Likewise.
4466 (libgcjawt_la_LDFLAGS): Likewise.
4467 (libgcjawt_la_LINK): Likewise.
4468 ($(awt_java_source_files:.java=.class)): Likewise.
4469 (libgcj.zip): Don't depend on AWT files.
4470 (MOSTLYCLEANFILES): Don't include AWT files.
4471 ($(awto_files)): Removed.
4472 (nat_headers): Removed AWT files.
4473 (cond_awt_java_source_files): Removed.
4474 (ordinary_java_source_files): Added awt_java_source_files.
4475 * libgcj.spec.in (*lib): Removed -lgcjawt.
4476 * configure: Rebuilt.
4477 * configure.in: Removed --enable-java-awt option.
4479 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4481 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4482 (ZipEntry): Copy the `name' field.
4483 (clone): Implement JDK1.2 method.
4484 (setCompressedSize): ditto.
4487 2000-05-19 Tom Tromey <tromey@cygnus.com>
4489 * java/io/BufferedWriter.java: Merged with Classpath.
4490 * java/io/BufferedOutputStream.java: Merged with Classpath.
4492 2000-05-16 Andrew Haley <aph@cygnus.com>
4494 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4495 build_ia64_frame_state.
4496 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4499 2000-05-15 Warren Levy <warrenl@cygnus.com>
4501 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4502 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4503 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4504 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4505 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4506 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4507 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4508 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4509 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4510 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4511 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4512 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4513 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4514 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4515 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4516 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4517 * gnu/gcj/io/NullOutputStream.java: Removed.
4518 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4519 * gnu/gcj/lang/ArrayHelper.java: Removed.
4520 * gnu/gcj/lang/ClassHelper.java: Removed.
4521 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4523 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4524 * gnu/java/beans/EmptyBeanInfo.java: New file.
4525 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4526 * gnu/java/beans/IntrospectionIncubator.java: New file.
4527 * gnu/java/beans/editors/ColorEditor.java: New file.
4528 * gnu/java/beans/editors/FontEditor.java: New file.
4529 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4530 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4531 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4532 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4533 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4534 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4535 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4536 * gnu/java/beans/editors/StringEditor.java: New file.
4537 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4538 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4539 * gnu/java/io/NullOutputStream.java: New file.
4540 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4541 * gnu/java/lang/ArrayHelper.java: New file.
4542 * gnu/java/lang/ClassHelper.java: New file.
4543 * gnu/java/lang/reflect/TypeSignature.java: New file.
4545 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4546 namespace back to the original Classpath gnu/java namespace.
4547 * Makefile.in: Rebuilt.
4549 * java/beans/Beans.java: Namespace change.
4550 * java/beans/EventSetDescriptor.java: Namespace change.
4551 * java/beans/Introspector.java: Namespace change.
4552 * java/beans/PropertyEditorManager.java: Namespace change.
4553 * java/io/ObjectInputStream.java: Namespace change.
4554 * java/io/ObjectOutputStream.java: Namespace change.
4555 * java/io/ObjectStreamClass.java: Namespace change.
4556 * java/io/ObjectStreamField.java: Namespace change.
4558 2000-04-21 Warren Levy <warrenl@cygnus.com>
4560 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4561 now that compiler patch is available.
4562 Removed unneeded System.loadLibrary.
4563 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4564 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4566 2000-04-19 Andrew Haley <aph@cygnus.com>
4568 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4569 and target classes have been initialized.
4571 2000-04-19 Andrew Haley <aph@cygnus.com>
4573 * java/lang/String.java: implement Serializable, Comparable.
4574 (compareTo (Object)): New method.
4576 2000-04-19 Warren Levy <warrenl@cygnus.com>
4578 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4579 instead of getField to retrieve non-public field.
4580 (getSerialPersistantFields): Ditto.
4582 2000-04-18 Warren Levy <warrenl@cygnus.com>
4584 * mauve-libgcj: Turned off object serialization tests temporarily
4585 due to compiler error.
4587 2000-04-17 Warren Levy <warrenl@cygnus.com>
4589 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4590 to avoid build problem.
4592 * mauve-libgcj: Turned on object serialization tests.
4594 2000-04-17 Tom Tromey <tromey@cygnus.com>
4596 * libgcj.spec.in (*lib): Added -lgcjawt.
4598 2000-04-17 Andrew Haley <aph@cygnus.com>
4600 * Makefile.am: Add new files:
4601 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4603 * Makefile.in: Rebuilt.
4605 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4606 interface that has no implementations.
4607 Check for an attempt to assign an abstract class to an interface.
4609 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4610 if we fail to find MessageDigest.getInstance ("SHA").
4612 * gnu/gcj/io/SimpleSHSStream.java: New file.
4613 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4614 * gnu/gcj/io/shs.cc: New file.
4615 * gnu/gcj/io/shs.h: new file.
4617 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4620 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4621 punctuation from the classname of an array element.
4623 * gcj/javaprims.h: Add SimpleDigestStream.
4625 2000-04-17 Andrew Haley <aph@cygnus.com>
4627 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4628 to getPrivateField for superclasses.
4630 2000-04-14 Andrew Haley <aph@cygnus.com>
4632 * Makefile.am: Add new files:
4633 java/io/ObjectOutputStream$PutField.h,
4634 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4635 java/io/natObjectOutputStream.cc
4636 * Makefile.in: Rebuilt.
4637 * gcj/Makefile.in: Rebuilt.
4638 * include/Makefile.in: Rebuilt.
4639 * java/lang/Class.h (getPrivateField): New method.
4640 (getPrivateMethod): Ditto.
4641 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4642 and java::io::ObjectStreamClass our friends.
4643 * java/lang/natClass.cc (getPrivateField): New method.
4644 (getPrivateMethod): Ditto.
4645 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4646 * gcj/javaprims.h: Add serialization classes.
4647 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4648 (setByteField): Ditto.
4649 (setCharField): Ditto.
4650 (setDoubleField): Ditto.
4651 (setFloatField): Ditto.
4652 (setIntField): Ditto.
4653 (setLongField): Ditto.
4654 (setShortField): Ditto.
4655 (setObjectField): Ditto.
4656 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4658 (getByteField): Ditto.
4659 (getCharField): Ditto.
4660 (getDoubleField): Ditto.
4661 (getFloatField): Ditto.
4662 (getIntField): Ditto.
4663 (getLongField): Ditto.
4664 (getShortField): Ditto.
4665 (getObjectField): Ditto.
4666 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4668 (getSerialPersistantFields): Ditto.
4669 (getDefinedSUID): Ditto.
4670 * java/io/natObjectOutputStream.cc: New file.
4671 * java/io/natObjectInputStream.cc: New file.
4673 2000-04-13 Warren Levy <warrenl@cygnus.com>
4675 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4676 problems. Revert to previous version to reproduce and when fixed.
4678 2000-04-13 Warren Levy <warrenl@cygnus.com>
4680 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4681 * gnu/gcj/io/NullOutputStream.java: New file.
4682 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4683 * java/io/BlockDataException.java: New file.
4684 * java/io/Externalizable.java: New file.
4685 * java/io/InvalidClassException.java: New file.
4686 * java/io/InvalidObjectException.java: New file.
4687 * java/io/NotActiveException.java: New file.
4688 * java/io/NotSerializableException.java: New file.
4689 * java/io/ObjectInput.java: New file.
4690 * java/io/ObjectInputStream.java: New file.
4691 * java/io/ObjectInputValidation.java: New file.
4692 * java/io/ObjectOutput.java: New file.
4693 * java/io/ObjectOutputStream.java: New file.
4694 * java/io/ObjectStreamClass.java: New file.
4695 * java/io/ObjectStreamConstants.java: New file.
4696 * java/io/ObjectStreamField.java: New file.
4697 * java/io/Replaceable.java: New file.
4698 * java/io/Resolvable.java: New file.
4699 * java/io/SerializablePermission.java: New file.
4700 * java/io/WriteAbortedException.java: New file.
4701 * java/security/BasicPermission.java: New file.
4702 * java/security/DigestOutputStream.java: New file.
4703 * java/security/Guard.java: New file.
4704 * java/security/Permission.java: New file.
4705 * java/security/PermissionCollection.java: New file.
4706 * Makefile.am: Added above files.
4707 * Makefile.in: Rebuilt.
4709 * java/beans/Beans.java (instantiate): Activated serialization code.
4710 * java/lang/SecurityManager.java (checkPermission): New method.
4712 2000-04-12 Warren Levy <warrenl@cygnus.com>
4714 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4715 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4716 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4717 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4718 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4719 * gnu/gcj/beans/editors/FontEditor.java: New file.
4720 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4721 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4722 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4723 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4724 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4725 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4726 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4727 * gnu/gcj/beans/editors/StringEditor.java: New file.
4728 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4729 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4730 * gnu/gcj/lang/ArrayHelper.java: New file.
4731 * gnu/gcj/lang/ClassHelper.java: New file.
4732 * java/beans/BeanDescriptor.java: New file.
4733 * java/beans/BeanInfo.java: New file.
4734 * java/beans/Beans.java: New file.
4735 * java/beans/Customizer.java: New file.
4736 * java/beans/DesignMode.java: New file.
4737 * java/beans/EventSetDescriptor.java: New file.
4738 * java/beans/FeatureDescriptor.java: New file.
4739 * java/beans/IndexedPropertyDescriptor.java: New file.
4740 * java/beans/IntrospectionException.java: New file.
4741 * java/beans/Introspector.java: New file.
4742 * java/beans/MethodDescriptor.java: New file.
4743 * java/beans/ParameterDescriptor.java: New file.
4744 * java/beans/PropertyChangeEvent.java: New file.
4745 * java/beans/PropertyChangeListener.java: New file.
4746 * java/beans/PropertyChangeSupport.java: New file.
4747 * java/beans/PropertyDescriptor.java: New file.
4748 * java/beans/PropertyEditor.java: New file.
4749 * java/beans/PropertyEditorManager.java: New file.
4750 * java/beans/PropertyEditorSupport.java: New file.
4751 * java/beans/PropertyVetoException.java: New file.
4752 * java/beans/SimpleBeanInfo.java: New file.
4753 * java/beans/VetoableChangeListener.java: New file.
4754 * java/beans/VetoableChangeSupport.java: New file.
4755 * java/beans/Visibility.java: New file.
4756 * java/beans/beancontext/BeanContext.java: New file.
4757 * java/beans/beancontext/BeanContextChild.java: New file.
4758 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4759 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4760 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4761 * java/beans/beancontext/BeanContextEvent.java: New file.
4762 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4763 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4764 * java/beans/beancontext/BeanContextProxy.java: New file.
4765 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4767 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4768 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4770 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4771 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4773 * java/beans/beancontext/BeanContextServices.java: New file.
4774 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4775 * java/util/AbstractCollection.java: New file.
4776 * java/util/AbstractList.java: New file.
4777 * java/util/Arrays.java: New file.
4778 * Makefile.am: Added above files.
4779 * Makefile.in: Rebuilt.
4781 2000-04-11 Warren Levy <warrenl@cygnus.com>
4783 * java/awt/AWTError.java: New file.
4784 * java/awt/AWTEvent.java: New file.
4785 * java/awt/AWTException.java: New file.
4786 * java/awt/ActiveEvent.java: New file.
4787 * java/awt/Adjustable.java: New file.
4788 * java/awt/BorderLayout.java: New file.
4789 * java/awt/Color.java: New file.
4790 * java/awt/Component.java: New file.
4791 * java/awt/Container.java: New file.
4792 * java/awt/Dimension.java: New file.
4793 * java/awt/Event.java: New file.
4794 * java/awt/Font.java: New file.
4795 * java/awt/Frame.java: New file.
4796 * java/awt/Graphics.java: New file.
4797 * java/awt/IllegalComponentStateException.java: New file.
4798 * java/awt/Image.java: New file.
4799 * java/awt/ItemSelectable.java: New file.
4800 * java/awt/LayoutManager.java: New file.
4801 * java/awt/LayoutManager2.java: New file.
4802 * java/awt/Menu.java: New file.
4803 * java/awt/MenuBar.java: New file.
4804 * java/awt/MenuComponent.java: New file.
4805 * java/awt/MenuContainer.java: New file.
4806 * java/awt/MenuItem.java: New file.
4807 * java/awt/Paint.java: New file.
4808 * java/awt/PaintContext.java: New file.
4809 * java/awt/Point.java: New file.
4810 * java/awt/Rectangle.java: New file.
4811 * java/awt/Shape.java: New file.
4812 * java/awt/TextArea.java: New file.
4813 * java/awt/TextComponent.java: New file.
4814 * java/awt/Toolkit.java: New file.
4815 * java/awt/Transparency.java: New file.
4816 * java/awt/Window.java: New file.
4817 * java/awt/natToolkit.cc: New file.
4818 * java/awt/event/AWTEventListener.java: New file.
4819 * java/awt/event/ActionEvent.java: New file.
4820 * java/awt/event/ActionListener.java: New file.
4821 * java/awt/event/AdjustmentEvent.java: New file.
4822 * java/awt/event/AdjustmentListener.java: New file.
4823 * java/awt/event/ComponentAdapter.java: New file.
4824 * java/awt/event/ComponentEvent.java: New file.
4825 * java/awt/event/ComponentListener.java: New file.
4826 * java/awt/event/ContainerAdapter.java: New file.
4827 * java/awt/event/ContainerEvent.java: New file.
4828 * java/awt/event/ContainerListener.java: New file.
4829 * java/awt/event/FocusAdapter.java: New file.
4830 * java/awt/event/FocusEvent.java: New file.
4831 * java/awt/event/FocusListener.java: New file.
4832 * java/awt/event/InputEvent.java: New file.
4833 * java/awt/event/InputMethodEvent.java: New file.
4834 * java/awt/event/InputMethodListener.java: New file.
4835 * java/awt/event/InvocationEvent.java: New file.
4836 * java/awt/event/ItemEvent.java: New file.
4837 * java/awt/event/ItemListener.java: New file.
4838 * java/awt/event/KeyAdapter.java: New file.
4839 * java/awt/event/KeyEvent.java: New file.
4840 * java/awt/event/KeyListener.java: New file.
4841 * java/awt/event/MouseAdapter.java: New file.
4842 * java/awt/event/MouseEvent.java: New file.
4843 * java/awt/event/MouseListener.java: New file.
4844 * java/awt/event/MouseMotionAdapter.java: New file.
4845 * java/awt/event/MouseMotionListener.java: New file.
4846 * java/awt/event/PaintEvent.java: New file.
4847 * java/awt/event/TextEvent.java: New file.
4848 * java/awt/event/TextListener.java: New file.
4849 * java/awt/event/WindowAdapter.java: New file.
4850 * java/awt/event/WindowEvent.java: New file.
4851 * java/awt/event/WindowListener.java: New file.
4852 * java/awt/geom/Dimension2D.java: New file.
4853 * java/awt/geom/Point2D.java: New file.
4854 * java/awt/peer/ComponentPeer.java: New file.
4855 * java/awt/peer/ContainerPeer.java: New file.
4856 * java/awt/peer/FramePeer.java: New file.
4857 * java/awt/peer/WindowPeer.java: New file.
4858 * java/util/Collection.java: New file.
4859 * java/util/Comparator.java: New file.
4860 * java/util/Iterator.java: New file.
4861 * java/util/List.java: New file.
4862 * java/util/ListIterator.java: New file.
4863 * Makefile.am: Added above files.
4864 * Makefile.in: Rebuilt.
4866 2000-04-10 Warren Levy <warrenl@cygnus.com>
4868 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4869 * java/lang/FirstThread.java: Ditto.
4870 * java/lang/StringBuffer.java: Ditto.
4871 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4873 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4874 Special case handled in java.math.BigInteger.
4875 * java/math/BigInteger.java (divide): Handle the special case when
4876 dividing by 1 and the high bit of the dividend is set.
4877 (setShiftRight): Handle case when count == 0.
4879 2000-04-05 Andrew Haley <aph@cygnus.com>
4881 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4884 2000-04-05 Andrew Haley <aph@cygnus.com>
4886 * sysdep/ia64.c (rse_address_add): Delete.
4887 (IS_NaT_COLLECTION_ADDR): Delete.
4888 (ia64_backtrace_helper): check for null unwind_info.
4890 * sysdep/ia64-frame.h: add calc_caller_bsp.
4892 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4895 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4896 (_Jv_remI): Likewise.
4897 (_Jv_divJ): Likewise.
4898 (_Jv_remJ): Likewise.
4900 * interpret.cc (continue1): Use divide subroutines to guarantee
4901 correct Java standard behaviour.
4902 Floating-point division should not abort; make it so.
4904 2000-03-29 Tom Tromey <tromey@cygnus.com>
4906 * configure: Rebuilt.
4907 * configure.in: Test against `libgcj_sjlj', not
4908 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4909 to be set even when using sjlj.
4911 2000-03-24 Andrew Haley <aph@cygnus.com>
4913 * Makefile.am: Add file addr2name.awk.
4914 * Makefile.in: Rebuilt.
4915 * addr2name.awk: New file.
4916 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4918 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4921 2000-03-22 Andrew Haley <aph@cygnus.com>
4923 * configure.host: Add -funwind-tables for IA64.
4924 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4925 * Makefile.in: Rebuilt.
4926 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4927 * sysdep/ia64.c: New file.
4928 * sysdep/ia64-frame.h: New file.
4929 * configure.in: Add sysdep/ia64.c for ia64.
4930 * configure: Rebuilt.
4932 2000-03-17 Andrew Haley <aph@cygnus.com>
4934 * java/lang/natString.cc: Remove `register' keyword.
4935 interpret.cc: ditto.
4937 2000-03-16 Andrew Haley <aph@cygnus.com>
4939 * configure.host (ia64): Enable interpreter.
4941 2000-03-14 Hans Boehm <boehm@acm.org>
4943 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4945 2000-03-14 Andrew Haley <aph@cygnus.com>
4947 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4950 2000-03-10 Andrew Haley <aph@cygnus.com>
4952 * java/lang/ieeefp.h: Import latest version from fdlibm.
4954 2000-03-14 Andrew Haley <aph@cygnus.com>
4956 * prims.cc (_Jv_ThrowSignal): New function.
4957 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4959 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4960 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4961 * include/ppc-signal.h: New file.
4963 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4965 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4966 * java/lang/natThread.java (initialize_native): Cast `data' to
4968 * gnu/gcj/RawData.java: Clarify documentation.
4970 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4971 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4972 `jarFile', not `jarFileURL'.
4974 2000-05-15 Andrew Haley <aph@cygnus.com>
4976 * include/ppc-signal.h: New file.
4978 2000-05-11 Tom Tromey <tromey@cygnus.com>
4980 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4981 file headers, don't include `size' in the skip call.
4983 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4985 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4986 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4988 (replace): Reimplemented. Fix javadoc.
4989 (reverse): Call ensureCapacity_unsynchronized().
4990 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4992 (replace): Calculate length for arraycopy() correctly.
4994 2000-05-09 Tom Tromey <tromey@cygnus.com>
4996 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4998 (insert(int,char[],int,int): New method.
4999 (delete): New method from Classpath.
5000 (deleteCharAt): Likewise.
5001 (substring): Likewise.
5002 (shared): No longer private.
5003 Added JavaDoc comments from Classpath.
5004 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5007 2000-05-07 Tom Tromey <tromey@cygnus.com>
5009 * Makefile.in: Rebuilt.
5010 * Makefile.am (LIBLINK): New macro.
5011 (libgcj_la_LINK): Use it.
5012 (libgcjawt_la_LINK): Likewise.
5014 2000-05-06 Tom Tromey <tromey@cygnus.com>
5016 * Makefile.in: Rebuilt.
5017 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5019 2000-05-05 Tom Tromey <tromey@cygnus.com>
5021 Fix for PR libgcj/220:
5022 * Makefile.in: Rebuilt.
5023 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5024 (jv_convert_LDFLAGS): Likewise.
5025 (libgcj_la_LDFLAGS): Likewise.
5026 (GCJLINK): New macro.
5027 (jv_convert_LINK): Use it.
5028 (gij_LINK): Likewise.
5029 (libgcj_la_LINK): New macro.
5030 (libgcjawt_la_LINK): Likewise.
5032 2000-05-04 Tom Tromey <tromey@cygnus.com>
5034 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5036 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5040 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5042 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5043 (_Jv_IsAssignableFrom): Ditto.
5044 (_Jv_IsInstanceOf): Ditto.
5045 (_Jv_CheckCast): Ditto.
5046 (_Jv_CheckArrayStore): Ditto.
5047 * java/lang/Class.h (_Jv_InitClass): Ditto.
5048 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5053 (_Jv_MonitorExit): Ditto.
5054 * boehm.cc (_Jv_MarkObj): Ditto.
5055 (_Jv_MarkObj): Ditto.
5056 (_Jv_MarkArray): Ditto.
5057 * prims.cc (_Jv_AllocObject): Ditto.
5058 (_Jv_NewObjectArray): Ditto.
5059 (_Jv_NewPrimArray): Ditto.
5060 (_Jv_Malloc): Ditto.
5061 (_Jv_Realloc): Ditto.
5062 (_Jv_MallocUnchecked): Ditto.
5068 2000-05-04 Tom Tromey <tromey@cygnus.com>
5070 * java/util/Locale.java (Locale): Don't explicitly check for
5072 * java/util/Hashtable.java (containsKey): Don't explicitly check
5075 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5077 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5079 * java/text/StringCharacterIterator.java
5080 (StringCharacterIterator): Don't check for null.
5081 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5083 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5084 check for null pointer.
5085 (leaveGroup): Likewise.
5086 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5088 (setData): Likewise.
5089 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5092 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5094 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5095 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5096 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5097 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5098 -rpath for in-gcc builds.
5099 * Makefile.in: Rebuilt.
5101 2000-04-28 Tom Tromey <tromey@cygnus.com>
5103 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5106 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5108 * libjava/java/lang/String.java (toString): Remove `final' hack.
5110 2000-04-05 Tom Tromey <tromey@cygnus.com>
5112 Runtime support for PR gcj/2:
5113 * prims.cc (_Jv_ThrowNullPointerException): New function.
5114 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5116 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5118 * prims.cc (_Jv_NewObjectArray): Fix typo.
5120 2000-04-26 Tom Tromey <tromey@cygnus.com>
5122 * Makefile.in: Rebuilt.
5123 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5125 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5127 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5130 2000-04-22 Anthony Green <green@cygnus.com>
5132 * include/jvm.h (__builtin_expect): Define as unused for now.
5133 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5137 (_Jv_MonitorExit): Ditto.
5138 * boehm.cc (_Jv_MarkObj): Ditto.
5139 (_Jv_MarkObj): Ditto.
5140 (_Jv_MarkArray): Ditto.
5141 (_Jv_AllocBytes): Ditto.
5142 * prims.cc (_Jv_AllocObject): Ditto.
5143 (_Jv_NewObjectArray): Ditto.
5144 (_Jv_NewPrimArray): Ditto.
5145 (_Jv_Malloc): Ditto.
5146 (_Jv_Realloc): Ditto.
5147 (_Jv_MallocUnchecked): Ditto.
5153 * include/Makefile.in: Rebuilt.
5154 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5156 2000-04-21 Tom Tromey <tromey@cygnus.com>
5158 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5159 Yet another new version from Classpath.
5161 Fix for PR libgcj/15:
5162 * java/util/natGregorianCalendar.cc (_REENTRANT,
5163 _POSIX_PTHREAD_SEMANTICS): Don't define.
5164 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5165 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5167 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5169 * configure: Rebuilt.
5170 * configure.in: If using POSIX threads, define _REENTRANT if
5171 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5172 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5174 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5175 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5176 version from Classpath.
5178 Fix for PR libgcj/213:
5179 * Makefile.in: Rebuilt.
5180 * Makefile.am (gij_SOURCES): Added gij.cc.
5181 (EXTRA_gij_SOURCES): Removed.
5182 (gij_LDADD): Removed gij.lo.
5183 (gij_DEPENDENCIES): Likewise.
5184 ($(gij_OBJECTS)): Depend on nat_headers.
5186 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5187 `setURL', not `url.set'.
5189 2000-04-20 Tom Tromey <tromey@cygnus.com>
5191 Fix for PR java.io/204:
5192 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5193 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5196 Fix for PR libgcj/212:
5197 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5198 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5199 * java/lang/Class.h (_Jv_word): Declare.
5201 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5203 2000-04-19 Tom Tromey <tromey@cygnus.com>
5205 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5206 doesn't have a loader.
5208 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5210 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5211 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5213 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5215 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5217 (available): Initialize `where' to prevent bogus compiler warning.
5219 2000-04-12 Tom Tromey <tromey@cygnus.com>
5221 * java/lang/natString.cc (intern): Temporarily disable finalizer
5224 * java/lang/natString.cc (unintern): Added `obj' argument.
5225 (intern): Register finalizer for string.
5226 * java/lang/String.java (unintern): Now static; added obj
5229 2000-04-11 Tom Tromey <tromey@cygnus.com>
5231 * java/util/Vector.java (VectorEnumeration): Now `final'.
5232 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5233 (HashtableEnumeration): Likewise.
5234 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5235 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5237 2000-04-10 Warren Levy <warrenl@cygnus.com>
5239 * java/io/ObjectStreamException.java: New file.
5240 * java/io/OptionalDataException.java: New file.
5241 * java/io/StreamCorruptedException.java: New file.
5242 * java/math/BigDecimal.java: New file.
5243 * java/sql/CallableStatement.java: New file.
5244 * java/sql/Connection.java: New file.
5245 * java/sql/DataTruncation.java: New file.
5246 * java/sql/DatabaseMetaData.java: New file.
5247 * java/sql/Date.java: New file.
5248 * java/sql/Driver.java: New file.
5249 * java/sql/DriverManager.java: New file.
5250 * java/sql/DriverPropertyInfo.java: New file.
5251 * java/sql/PreparedStatement.java: New file.
5252 * java/sql/ResultSet.java: New file.
5253 * java/sql/ResultSetMetaData.java: New file.
5254 * java/sql/SQLException.java: New file.
5255 * java/sql/SQLWarning.java: New file.
5256 * java/sql/Statement.java: New file.
5257 * java/sql/Time.java: New file.
5258 * java/sql/Timestamp.java: New file.
5259 * java/sql/Types.java: New file.
5260 * Makefile.am: Added above new files.
5261 * Makefile.in: Rebuilt.
5263 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5264 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5265 DatagramSocket constructor instead of null.
5267 2000-04-08 Anthony Green <green@cygnus.com>
5269 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5272 2000-04-08 Anthony Green <green@cygnus.com>
5274 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5275 (_Jv_MutexUnlock): Ditto.
5276 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5277 (_Jv_MutexUnlock): Ditto.
5279 2000-04-08 Anthony Green <green@cygnus.com>
5281 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5282 (ensureCapacity_unsynchronized): New private method.
5283 (append): Use ensureCapacity_unsynchronized.
5285 2000-04-08 Tom Tromey <tromey@cygnus.com>
5287 * Makefile.in: Rebuilt.
5288 * Makefile.am (awt_java_source_files): Added new files.
5289 * java/awt/IllegalComponentStateException.java: New file.
5290 * java/awt/ItemSelectable.java: New file.
5291 * java/awt/event/WindowEvent.java: Finished.
5292 * java/awt/event/TextEvent.java: Finished.
5293 * java/awt/event/ContainerEvent.java: New file.
5294 * java/awt/Component.java (getX, getY): New methods.
5295 * java/awt/event/PaintEvent.java: New file.
5296 * java/awt/event/MouseEvent.java: New file.
5297 * java/awt/ActiveEvent.java: New file.
5298 * java/awt/event/KeyEvent.java: Finished.
5299 * java/awt/event/ItemEvent.java: New file.
5300 * java/awt/Adjustable.java: New file.
5301 * java/awt/event/InputMethodEvent.java: New file.
5302 * java/awt/event/InputEvent.java: Finished.
5303 * java/awt/event/FocusEvent.java: New file.
5304 * java/awt/event/MouseMotionAdapter.java: New file.
5305 * java/awt/event/MouseAdapter.java: New file.
5306 * java/awt/event/KeyAdapter.java: New file.
5307 * java/awt/event/FocusAdapter.java: New file.
5308 * java/awt/event/ContainerAdapter.java: New file.
5309 * java/awt/event/ComponentEvent.java: Finished.
5310 * java/awt/event/AdjustmentEvent.java: New file.
5311 * java/awt/event/ComponentAdapter.java: New file.
5312 * java/awt/event/ActionEvent.java: Finished.
5313 * java/awt/event/MouseMotionListener.java: New file.
5314 * java/awt/event/MouseListener.java: New file.
5315 * java/awt/event/ItemListener.java: New file.
5316 * java/awt/event/InputMethodListener.java: New file.
5317 * java/awt/event/ContainerListener.java: New file.
5318 * java/awt/event/FocusListener.java: New file.
5319 * java/awt/event/ComponentListener.java: New file.
5320 * java/awt/event/AWTEventListener.java: New file.
5321 * java/awt/event/AdjustmentListener.java: New file.
5323 2000-04-08 Anthony Green <green@cygnus.com>
5325 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5326 check when we have to.
5328 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5331 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5334 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5335 inline hasMoreElements.
5337 2000-04-05 Tom Tromey <tromey@cygnus.com>
5339 * configure: Rebuilt.
5340 * configure.in: Recognize --enable-java-awt.
5341 (AWT): New conditional.
5342 * Makefile.in: Rebuilt.
5343 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5345 (libgcjawt_la_SOURCES): New macro.
5346 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5347 (libgcjawt_la_DEPENDENCIES): Likewise.
5348 (libgcjawt_la_LIBADD): Likewise.
5349 (libgcjawt_la_LDFLAGS): Likewise.
5350 (libgcj.zip): Depend on cond_java_awt_source_files
5351 (cond_awt_java_source_files): New macro.
5352 (MOSTLYCLEANFILES): Added awto_files.
5353 (awto_files): New macro. Use where javao_files used.
5354 (nat_headers): Use cond_awt_java_source_files.
5356 2000-04-04 Tom Tromey <tromey@cygnus.com>
5358 * Makefile.in: Rebuilt.
5359 * Makefile.am (awt_java_source_files): Added AWTException.java.
5360 * java/awt/AWTException.java: New file.
5362 2000-04-03 Tom Tromey <tromey@cygnus.com>
5364 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5365 commentary from Alex.
5367 * Makefile.in: Rebuilt.
5368 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5371 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5373 * configure: Rebuilt.
5374 * configure.in: Add --disable-jvmpi.
5375 * include/config.h.in: Rebuilt.
5376 * acconfig.h: Add ENABLE_JVMPI.
5378 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5379 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5380 (_Jv_JVMPI_Notify_THREAD_END): New define.
5381 (_Jv_JVMPI_Notify_THREAD_END): New define.
5382 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5383 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5384 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5386 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5389 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5390 (finish_): Generate JVMPI thread end events.
5391 (run_): Generate JVMPI thread start events.
5392 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5393 preloaded JNI library.
5394 Include JVMPI headers if necessary.
5395 (run): Generate JVMPI thread start events.
5397 * boehm.cc: Define GC_disable and GC_enable.
5398 (_Jv_DisableGC): New function.
5399 (_Jv_EnableGC): New function.
5400 (disable_gc_mutex): Declare.
5401 * nogc.cc (_Jv_DisableGC): New function.
5402 (_Jv_EnableGC): New function.
5404 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5405 (_Jv_JVMPI_Interface): Define.
5406 (jvmpiEnableEvent): New function.
5407 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5409 * include/jvmpi.h: New file.
5411 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5413 * Makefile.in: New #defines and friends for Thread.h.
5414 * Makefile.am: Ditto.
5415 * posix-threads.cc: (struct starter): Remove `object'.
5416 (_Jv_CondWait): Use interruptable condition variables and new
5417 recursive mutexes. New return codes on interrupt or non-ownership
5419 (_Jv_CondNotify): Ditto.
5420 (_Jv_CondNotifyAll): Ditto.
5421 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5422 the target thread by signaling its wait condition.
5423 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5424 not the starter struct. Initialize wait_mutex and wait_cond.
5425 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5427 (_Jv_MutexUnlock): Ditto.
5428 (really_start): Set info->data->thread from pthread_self() to work
5429 around a race condition. Destroy wait_mutex and wait_cond when run()
5431 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5432 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5434 startable_flag: New private field.
5435 (Thread): Initialize `startable_flag'.
5436 (toString): Check for null thread group.
5437 * java/lang/natThread.cc: (struct natThread): New fields
5438 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5439 (class locker): Removed.
5440 (initialize_native): Initialize `join_cond' and `join_mutex'.
5441 (interrupt): Now just calls _Jv_ThreadInterrupt().
5442 (join): Simplified. Just wait on the target thread's join condition.
5443 (finish_): Remove join list code. Unset thread group. Signal
5444 potential joiners by notifying the dying threads join_cond.
5445 (start): Check for illegal restarts.
5446 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5448 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5449 #defines and #ifdefs.
5450 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5451 `wait_mutex', `next'.
5452 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5453 directly mapping to pthread_cond_t.
5454 (struct _Jv_Mutex_t): New recursive implementation.
5455 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5456 _Jv_HaveCondDestroy: Never define this for posix-threads.
5457 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5458 (_Jv_CondNotifyAll): Ditto.
5459 (_Jv_MutexLock): Ditto.
5460 (_Jv_MutexUnlock): Ditto.
5461 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5462 (_Jv_MutexDestroy): Ditto.
5463 (_Jv_CondDestroy): Removed.
5464 (_Jv_PthreadGetMutex): Removed.
5465 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5466 error. Add a FIXME about this.
5467 (_Jv_CondNotifyAll): Ditto.
5468 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5469 _JV_NOT_OWNER on other errors. Add FIXME.
5471 2000-03-26 Tom Tromey <tromey@cygnus.com>
5473 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5475 (call): Don't throw exception here.
5477 2000-03-26 Tom Tromey <tromey@cygnus.com>
5479 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5480 * interpret.cc: Use SIZEOF_VOID_P.
5481 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5482 (_Jv_loadLong): Likewise.
5483 (_Jv_storeDouble): Likewise.
5484 * configure: Rebuilt.
5485 * configure.in: Check size of void*.
5487 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5489 2000-03-26 Hans Boehm <boehm@acm.org>
5491 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5492 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5494 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5495 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5496 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5497 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5499 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5500 (FFI_RAW_SIZE): Likewise.
5501 (_Jv_InterpMethod::ncode): Use them.
5502 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5503 STORED): Define differently on a 64 bit machine.
5504 (continue1): Use ffi_java_raw_call when appropriate.
5506 2000-03-24 Warren Levy <warrenl@cygnus.com>
5508 * java/math/BigInteger.java(divide): Handle the special case when
5509 dividing by 1 and the high bit of the dividend is set.
5510 (setShiftRight): Handle case when count == 0.
5512 2000-03-24 Warren Levy <warrenl@cygnus.com>
5514 * java/awt/Font.java(isBold): Fix syntax error.
5516 * java/awt/Frame.java(postEvent): ditto.
5517 * java/awt/Menu.java(postEvent): ditto.
5518 * java/awt/MenuBar.java(postEvent): ditto.
5519 * java/awt/Toolkit.java(init): Included a stub.
5521 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5523 * java/awt/Event.java: Add all the event type constants.
5524 (Event): Implemented constructors.
5525 (controlDown): Implemented.
5526 (metaDown): Implemented.
5527 (paramString): Stubbed.
5528 (shiftDown): Implemented.
5529 (toString): Implemented.
5530 (translate): Implemented.
5532 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5534 * java/lang/natClass.cc (isInstance): Initialize `this'.
5535 (isAssignableFrom): Initialize `this' and `klass'.
5536 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5537 implemented by any loaded class, so return false.
5538 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5539 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5541 2000-03-19 Warren Levy <warrenl@cygnus.com>
5543 * java/awt/Color.java: Specified java.io for Serializable.
5544 * java/awt/Toolkit.java: Imported java.net.URL.
5546 2000-03-19 Warren Levy <warrenl@cygnus.com>
5548 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5550 2000-03-16 Warren Levy <warrenl@cygnus.com>
5552 * java/awt/Color.java: New file.
5553 * java/awt/Graphics.java: New file.
5554 * java/awt/Image.java: New file.
5555 * java/awt/Paint.java: New file.
5556 * java/awt/PaintContext.java: New file.
5557 * java/awt/Transparency.java: New file.
5558 * java/util/Collection.java: New file.
5559 * java/util/Comparator.java: New file.
5560 * java/util/Iterator.java: New file.
5561 * java/util/List.java: New file.
5562 * java/util/ListIterator.java: New file.
5563 * Makefile.am: Added above new files.
5564 * Makefile.in: Rebuilt.
5566 * java/awt/Font.java (PLAIN): New field.
5568 (ITALIC): New field.
5569 (ROMAN_BASELINE): New field.
5570 (CENTER_BASELINE): New field.
5571 (HANGING_BASELINE): New field.
5575 (pointSize): New field.
5576 (Font): Implemented constructor.
5577 (isPlain): Implemented method.
5578 (isBold): Implemented method.
5579 (isItalic): Implemented method.
5580 (getName): Implemented method.
5581 (getStyle): Implemented method.
5582 (getSize): Implemented method.
5583 (getSize2D): Implemented method.
5585 * java/awt/Frame.java (getFont): Stubbed.
5586 (postEvent): Stubbed.
5588 * java/awt/Menu.java (postEvent): Stubbed.
5589 * java/awt/MenuBar.java (getFont): Stubbed.
5590 (postEvent): Stubbed.
5591 * java/awt/Toolkit.java (getImage): Added abstract method.
5593 2000-03-15 Tom Tromey <tromey@cygnus.com>
5595 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5597 * prims.cc (win32_exception_handler): Reformatted.
5599 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5600 (_Jv_HaveMutexDestroy): Likewise.
5602 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5604 * java/io/natFileDescriptorWin32.cc: New file.
5605 * java/io/natFileWin32.cc: New file.
5606 * java/net/natInetAddress.cc: Added conditional inclusion of
5607 Windows / Winsock headers.
5608 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5609 inclusion of Windows / Winsock headers.
5610 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5611 Windows / Winsock headers.
5612 * include/win32-signal.h: New file.
5613 * include/win32-threads.h: New file.
5614 * win32-threads.cc: New file.
5615 * exception.cc (win32_get_restart_frame): New function.
5616 * prims.cc (win32_exception_handler): New function.
5617 (main_init) Performs Winsock initialisation.
5618 (main_init) Installs exeception handler.
5620 2000-03-14 Tom Tromey <tromey@cygnus.com>
5622 * jni.cc (mangled_name): Fixed assertion.
5623 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5624 turned assert into actual failure.
5626 2000-03-09 Warren Levy <warrenl@cygnus.com>
5628 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5629 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5630 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5632 2000-03-09 Warren Levy <warrenl@cygnus.com>
5634 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5635 * java/security/DigestException.java: New file.
5636 * java/security/GeneralSecurityException.java: New file.
5637 * java/security/InvalidAlgorithmParameterException.java: New file.
5638 * java/security/InvalidKeyException.java: New file.
5639 * java/security/InvalidParameterException.java: New file.
5640 * java/security/Key.java: New file.
5641 * java/security/KeyException.java: New file.
5642 * java/security/KeyPair.java: New file.
5643 * java/security/KeyPairGenerator.java: New file.
5644 * java/security/KeyPairGeneratorSpi.java: New file.
5645 * java/security/NoSuchProviderException.java: New file.
5646 * java/security/PrivateKey.java: New file.
5647 * java/security/Provider.java: New file.
5648 * java/security/PublicKey.java: New file.
5649 * java/security/SecureRandom.java: New file.
5650 * java/security/Security.java: New file.
5651 * java/security/Signature.java: New file.
5652 * java/security/SignatureException.java: New file.
5653 * java/security/interfaces/DSAKey.java: New file.
5654 * java/security/interfaces/DSAParams.java: New file.
5655 * java/security/interfaces/DSAPrivateKey.java: New file.
5656 * java/security/interfaces/DSAPublicKey.java: New file.
5657 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5658 * java/security/interfaces/RSAPrivateKey.java: New file.
5659 * java/security/interfaces/RSAPublicKey.java: New file.
5660 * java/security/spec/AlgorithmParameterSpec.java: New file.
5661 * java/security/spec/InvalidKeySpecException.java: New file.
5662 * java/security/spec/InvalidParameterSpecException.java: New file.
5663 * java/security/spec/KeySpec.java: New file.
5664 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5665 * java/security/spec/RSAPrivateKeySpec.java: New file.
5666 * java/security/spec/RSAPublicKeySpec.java: New file.
5667 * Makefile.am: Added above java.security files.
5668 * Makefile.in: Rebuilt.
5670 * java/security/MessageDigest.java: Rewritten.
5671 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5673 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5677 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5679 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5680 _Jv_PrepareConstantTimeTables.
5681 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5682 classes should have an IDT, so don't return if klass is an array
5685 2000-03-08 Tom Tromey <tromey@cygnus.com>
5687 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5688 of `void' to be created.
5690 2000-03-08 Warren Levy <warrenl@cygnus.com>
5692 * java/math/BigInteger.java(signum): Handle zero properly.
5694 2000-03-07 Tom Tromey <tromey@cygnus.com>
5696 * All files: Updated copyright information.
5697 * COPYING: New file.
5698 * COPYING.LIB: Removed.
5699 * LIBGCJ_LICENSE: We now use GPL + special exception.
5701 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5703 * resolve.cc (_Jv_SearchMethodInClass): New function.
5704 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5705 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5707 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5709 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5710 (struct _Jv_ifaces): New declaration.
5711 JV_CLASS: New macro definition.
5712 (getComponentType): Relocate below isArray() for inlining.
5713 (getModifiers): Declare `inline'.
5714 (getSuperclass): Ditto.
5716 (isPrimitive): Ditto.
5717 (_Jv_IsAssignableFrom): New prototype.
5718 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5720 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5721 Check for JV_STATE_DONE before invoking initializeClass().
5722 (_Jv_PrepareConstantTimeTables): New prototype.
5723 (_Jv_GetInterfaces): Ditto.
5724 (_Jv_GenerateITable): Ditto.
5725 (_Jv_GetMethodString): Ditto.
5726 (_Jv_AppendPartialITable): Ditto.
5727 (_Jv_FindIIndex): Ditto.
5728 depth, ancestors, idt: New class fields.
5730 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5731 inline function `_Jv_IsAssignableFrom'. Use that function.
5732 (isInstance): Declare `inline'.
5733 (initializeClass): Get lock on class before checking `state'. Unlock
5734 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5736 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5737 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5738 class->depth and ancestor table.
5739 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5740 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5741 _Jv_IsAssignableFrom.
5742 (_Jv_CheckArrayStore): Ditto.
5743 (_Jv_LookupInterfaceMethodIdx): New function.
5744 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5745 (_Jv_PrepareConstantTimeTables): New function.
5746 (_Jv_IndexOf): Ditto.
5747 (_Jv_GetInterfaces): Ditto.
5748 (_Jv_GenerateITable): Ditto.
5749 (_Jv_GetMethodString): Ditto.
5750 (_Jv_AppendPartialITable): Ditto.
5751 iindex_mutex, iindex_mutex_initialized: New static fields.
5752 (_Jv_FindIIndex): New function.
5754 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5756 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5757 (_Jv_CheckArrayStore): Ditto.
5758 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5759 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5760 Moved to gcj/array.h.
5761 (_Jv_Realloc): New function.
5763 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5765 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5766 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5767 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5768 JvNewDoubleArray): Implementations moved from prims.cc and
5771 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5773 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5775 2000-03-06 Tom Tromey <tromey@cygnus.com>
5777 * jni.cc (MARK_NONE): New define.
5778 (MARK_USER): Likewise.
5779 (MARK_SYSTEM): Likewise.
5780 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5782 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5783 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5784 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5785 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5787 (call): Use MARK_SYSTEM.
5788 (_Jv_GetJNIEnvNewFrame): New function.
5789 (_Jv_LookupJNIMethod): New function.
5790 (_Jv_JNI_PopSystemFrame): New function.
5791 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5793 2000-03-05 Tom Tromey <tromey@cygnus.com>
5795 Fix for PR libgcj/43:
5796 * include/Makefile.in: Rebuilt.
5797 * include/Makefile.am (include_HEADERS): New define.
5799 2000-03-05 Anthony Green <green@redhat.com>
5801 * gcj/javaprims.h ("Java"): Remove FirstThread.
5803 * configure.host: Fix __NO_MATH_INLNES botch.
5805 * Makefile.in: Rebuilt.
5806 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5807 (gnu/gcj/runtime/FirstThread.h): Moved.
5808 (ordinary_java_source_files): Move FirstThread.java.
5809 * prims.cc: Deal with FirstThread movement.
5811 (_Jv_RunMain): Ditto.
5813 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5814 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5816 2000-03-05 Warren Levy <warrenl@cygnus.com>
5818 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5819 Handle null addresses.
5821 2000-03-04 Anthony Green <green@redhat.com>
5823 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5826 2000-03-04 Anthony Green <green@redhat.com>
5828 * configure: Rebuilt.
5829 * configure.in (ZLIBTESTSPEC): New macro.
5830 (GCTESTSPEC): New macro.
5831 (LIBGCJTESTSPEC): New macro.
5832 * libgcj-test.spec.in: New file.
5834 2000-03-02 Tom Tromey <tromey@cygnus.com>
5836 * include/java-interp.h: Don't include MethodInvocation.h.
5837 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5838 * Makefile.in: Rebuilt.
5839 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5840 (ordinary_java_source_files): Don't mention
5841 MethodInvocation.java.
5842 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5843 * interpret.cc (MethodInvocation::continue1): Removed.
5844 (run): Handle exceptions here.
5845 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5847 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5849 (defineClass2): Removed.
5851 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5853 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5855 (hack_call): Removed.
5857 * java/lang/Class.h (Class): Removed hackRunInitializers,
5859 * java/lang/natClass.cc (hackRunInitializers): Removed.
5860 (initializeClass): Catch exceptions here.
5861 Include ExceptionInInitializerError.h.
5862 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5865 * java/lang/Object.h (Object): Don't mention hack12_6.
5866 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5868 * java/lang/Object.java (hack12_6): Removed.
5870 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5871 (start): Use run_, not run__.
5872 * java/lang/Thread.java (run_): Renamed from run__; old run_
5875 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5876 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5877 (_Jv_JNI_DefineClass): Likewise.
5878 (_Jv_JNI_ThrowNew): Likewise.
5879 (_Jv_JNI_AllocObject): Likewise.
5880 (_Jv_JNI_GetAnyMethodID): Likewise.
5881 (_Jv_JNI_CallAnyMethodV): Likewise.
5882 (_Jv_JNI_CallAnyMethodA): Likewise.
5883 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5884 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5885 (_Jv_JNI_GetAnyFieldID): Likewise.
5886 (_Jv_JNI_NewString): Likewise.
5887 (_Jv_JNI_NewStringUTF): Likewise.
5888 (_Jv_JNI_GetStringUTFChars): Likewise.
5889 (_Jv_JNI_NewObjectArray): Likewise.
5890 (_Jv_JNI_NewPrimitiveArray): Likewise.
5891 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5892 (_Jv_JNI_GetStringRegion): Likewise.
5893 (_Jv_JNI_GetStringUTFRegion): Likewise.
5894 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5895 (_Jv_JNI_MonitorEnter): Likewise.
5896 (_Jv_JNI_MonitorExit): Likewise.
5897 (_Jv_JNI_ToReflectedField): Likewise.
5898 (_Jv_JNI_ToReflectedMethod): Likewise.
5899 (_Jv_JNI_RegisterNatives): Likewise.
5900 (_Jv_JNI_AttachCurrentThread): Likewise.
5901 (_Jv_JNI_DestroyJavaVM): Likewise.
5903 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5905 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5906 error caused by the incorrect casting of a long to an int.
5908 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5910 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5911 SIGSEV caused by use of the wrong instance variable.
5913 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5915 * java/io/File.java (File(String, String)): For dirPath, treat an
5916 empty String the same as `null'.
5918 2000-02-26 Anthony Green <green@cygnus.com>
5920 * gnu/gcj/io/MimeTypes.java: Test for null.
5922 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5923 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5925 * java/net/URLConnection.java: Update copyright notice.
5927 2000-02-25 Tom Tromey <tromey@cygnus.com>
5929 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5932 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5934 * java/net/URLConnection.java (initializeDateFormats): New
5936 (getHeaderFieldDate): Call initializeDateFormats if required.
5937 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5939 Fix for PR libgcj/38.
5941 2000-02-24 Warren Levy <warrenl@cygnus.com>
5943 * java/math/BigInteger.java(ival): Made private.
5947 2000-02-20 Anthony Green <green@cygnus.com>
5949 * Makefile.in: Rebuilt.
5950 * Makefile.am (ordinary_java_source_files): Add
5951 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5953 * scripts/MakeDefaultMimeTypes.java: New file.
5954 * scripts/mime.types: New file.
5955 * scripts/classes.pl: Moved from top level.
5956 * classes.pl: Moved to scripts directory.
5958 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5960 * gnu/gcj/io/MimeTypes.java: New file.
5961 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5963 2000-02-20 Tom Tromey <tromey@cygnus.com>
5965 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5967 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5969 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5972 2000-02-18 Tom Tromey <tromey@cygnus.com>
5974 * include/jvm.h (_Jv_GetJavaVM): Declare.
5975 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5976 (_Jv_MethodBase::get_method): New method.
5977 (_Jv_JNIMethod::set_function): New method.
5978 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5979 (_Jv_JNI_RegisterNatives): New function.
5980 (_Jv_JNIFunctions): Updated for new functions.
5981 (_Jv_GetJavaVM): New function.
5982 (_Jv_JNI_GetJavaVM): Use it. Now static.
5983 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5984 is already a Java thread but does not have a JNIEnv yet.
5986 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5989 2000-02-17 Tom Tromey <tromey@cygnus.com>
5991 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5994 2000-02-16 Tom Tromey <tromey@cygnus.com>
5996 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5998 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5999 (_Jv_JNI_NewObject): Likewise.
6000 (_Jv_JNI_NewObjectA): Likewise.
6001 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6002 as "return" type to _Jv_CallAnyMethodA.
6003 (_Jv_JNI_CallAnyMethodA): Likewise.
6004 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6006 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6009 2000-02-15 Tom Tromey <tromey@cygnus.com>
6011 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6013 (init_cif): Added `rtype_p' argument.
6014 * include/java-interp.h (class _Jv_MethodBase): Added
6016 (class _Jv_InterpMethod): Removed args_raw_size.
6017 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6018 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6019 class pointer as well as the ordinary arguments.
6021 * jni.cc (mangled_name): Skip leading `(' in signature.
6023 * jni.cc (add_char): Added missing `else'.
6025 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6028 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6032 * java/lang/natRuntime.cc (_load): Include library path with
6035 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6038 * java/lang/natThread.cc (dumpStack): Removed.
6039 * java/lang/Thread.java (dumpStack): Implemented.
6041 2000-02-15 Tom Tromey <tromey@cygnus.com>
6043 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6044 with `lib' for loadLibrary. Fixes PR gcj/150.
6046 2000-02-14 Warren Levy <warrenl@cygnus.com>
6048 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6050 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6054 (modPow): Rewritten to not use the naive, slow, brute force approach.
6055 (isProbablePrime): Implemented.
6056 (testBit): Implemented.
6057 (flipBit): Implemented.
6058 (getLowestSetBit): Implemented.
6060 2000-02-16 Anthony Green <green@redhat.com>
6062 * configure.host: Use the same options for i386 and i486 as we do
6065 2000-02-12 Tom Tromey <tromey@cygnus.com>
6067 * java/io/File.java (createTempFile): Use low bits from counter,
6070 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6072 * THANKS: More thanks.
6074 2000-02-11 Tom Tromey <tromey@cygnus.com>
6076 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6077 astore instruction. From Hans Boehm.
6079 2000-02-11 Warren Levy <warrenl@cygnus.com>
6081 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6082 (BigInteger(String)): New constructor.
6083 (not): Rewritten using version from Kawa's BitOps class.
6084 (valueOf): New private methods from Kawa's BitOps class.
6091 (andNot): Implemented.
6092 (clearBit): Implemented.
6093 (setBit): Implemented.
6094 (bitCount): Implemented.
6095 (toByteArray): Implemented.
6097 2000-02-11 Tom Tromey <tromey@cygnus.com>
6099 * java/io/File.java (nextValue): Now synchronized.
6101 2000-02-10 Tom Tromey <tromey@cygnus.com>
6103 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6104 * java/io/FileDescriptor.java (EXCL): New static field.
6105 * java/io/File.java (tmpdir): New static field.
6106 (createTempFile): New method.
6107 (nextValue): New method.
6108 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6111 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6112 (jboolean): Declare as an attributed int, not a bool.
6113 (_Jv_func): Declare differently for C.
6115 * gnu/gcj/jni/natNativeThread.cc: New file.
6116 * gnu/gcj/jni/NativeThread.java: New file.
6117 * java/lang/Thread.java (data): Now a RawData.
6118 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6120 * Makefile.in: Rebuilt.
6121 * Makefile.am (java/lang/Thread.h): New target.
6122 (ordinary_java_source_files): Added NativeThread.java.
6123 (nat_source_files): Added natNativeThread.cc.
6124 * java/lang/natThread.cc: Include <jni.h>
6125 (struct natThread): Added `jni_env' field.
6126 (_Jv_GetCurrentJNIEnv): New function.
6127 (_Jv_SetCurrentJNIEnv): Likewise.
6128 (initialize_native): Initialize jni_env.
6130 * jni.cc (ThreadGroupClass): New define.
6131 (_Jv_JNI_InvokeFunctions): New structure.
6132 (JNI_GetCreatedJavaVMs): New function.
6133 (the_vm): New global.
6134 (JNI_GetDefaultJavaVMInitArgs): New function.
6135 Include NativeThread.h.
6136 (NativeThreadClass): New define.
6137 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6138 (_Jv_JNI_DestroyJavaVM): New function.
6139 (_Jv_JNI_AttachCurrentThread): New function.
6140 (_Jv_JNI_DetachCurrentThread): New function.
6141 (_Jv_JNI_GetEnv): New function.
6142 (JNI_CreateJavaVM): New function.
6143 (_Jv_JNI_GetJavaVM): New function.
6144 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6145 * include/jni.h (JavaVMAttachArgs): New structure.
6146 (JNI_EDETACHED): New define.
6147 (JNI_EVERSION): Likewise.
6148 (JavaVM): Define properly.
6149 (struct JNIInvokeInterface): New structure.
6150 (class _Jv_JavaVM): New class.
6151 (JNI_OnLoad, JNI_OnUnload): Declare.
6152 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6153 JNI_GetCreatedJavaVMs): Declare.
6154 (JavaVMInitArgs): New typedef.
6155 (JavaVMOption): Likewise.
6156 (JNI_ERR): New define.
6159 2000-02-10 Andrew Haley <aph@cygnus.com>
6161 * interpret.cc: Don't include fdlibm.h.
6162 Replace #if with #ifdef throughout.
6163 Declare extern __ieee754_fmod.
6164 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6166 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6167 Search class hierarchy for superclass vtable.
6169 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6170 off the end of a pointer list.
6172 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6176 2000-02-09 Tom Tromey <tromey@cygnus.com>
6178 * java/lang/natRuntime.cc (_load): Call add_library.
6179 (loadLibraryInternal): Likewise.
6181 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6182 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6183 (Output_iconv::finalize): Likewise.
6185 2000-02-08 Tom Tromey <tromey@cygnus.com>
6187 * java/util/Properties.java (setProperty): New method.
6188 (store): New method.
6190 2000-02-07 Tom Tromey <tromey@cygnus.com>
6192 * java/lang/Runtime.java (_load): Declare.
6193 (load, loadLibrary): Wrote in terms of _load.
6194 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6196 (loadLibrary): Likewise.
6198 (_load): New method.
6199 (loadLibrary, load): Removed.
6201 * jni.cc (ThrowableClass): New define.
6202 (_Jv_JNI_Throw): Check argument.
6203 (_Jv_JNI_ThrowNew): Likewise.
6204 (wrap_value): Don't wrap object if it is NULL.
6205 (_Jv_JNI_DefineClass): Use wrap_value.
6206 (_Jv_JNI_FindClass): Likewise.
6207 (_Jv_JNI_GetSuperclass): Likewise.
6208 (_Jv_JNI_ExceptionOccurred): Likewise.
6209 (_Jv_JNI_AllocObject): Likewise.
6210 (_Jv_JNI_GetObjectClass): Likewise.
6211 (_Jv_JNI_NewString): Likewise.
6212 (_Jv_JNI_NewStringUTF): Likewise.
6213 (_Jv_JNI_NewObjectArray): Likewise.
6214 (_Jv_JNI_GetObjectArrayElement): Likewise.
6215 (_Jv_JNI_NewPrimitiveArray): Likewise.
6216 (_Jv_JNI_ToReflectedField): Likewise.
6217 (_Jv_JNI_ToReflectedMethod): Likewise.
6218 (_Jv_JNI_AllocObject): Check argument.
6219 (_Jv_JNI_NewObjectV): Likewise.
6220 (_Jv_JNI_NewObject): Likewise.
6221 (_Jv_JNI_NewObjectA): Likewise.
6222 (_Jv_JNI_GetObjectClass): Likewise.
6223 (_Jv_JNI_GetField): Likewise.
6224 (_Jv_JNI_SetField): Likewise.
6226 * interpret.cc (PUSHL): Don't use expression statement.
6231 * jni.cc (add_char): Conditional on INTERPRETER.
6232 (mangled_name): Likewise.
6234 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6236 (class _Jv_JNIMethod): Likewise.
6238 2000-02-04 Warren Levy <warrenl@cygnus.com>
6240 * Makefile.am: Added MPN.java and BigInteger.java.
6241 * Makefile.in: Rebuilt.
6242 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6244 * java/math/BigInteger.java: New file. Based primarily on
6245 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6247 2000-02-04 Tom Tromey <tromey@cygnus.com>
6249 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6251 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6252 if the method is native.
6253 * resolve.cc (ncode): Don't handle native methods.
6254 (_Jv_JNIMethod::ncode): New method.
6255 (_Jv_PrepareClass): Handle native methods.
6256 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6257 Include AbstractMethodError.h.
6258 (add_char): New function.
6259 (mangled_name): Likewise.
6260 * include/java-interp.h (class _Jv_JNIMethod): New class.
6261 (class _Jv_MethodBase): New class.
6262 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6263 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6266 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6267 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6268 libraries): New globals.
6269 (add_library): New function.
6270 (_Jv_FindSymbolInExecutable): New function.
6272 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6275 2000-02-04 Andrew Haley <aph@cygnus.com>
6277 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6278 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6279 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6280 printStackTrace to printRawStackTrace.
6282 2000-02-03 Tom Tromey <tromey@cygnus.com>
6284 * java/util/Calendar.java (toString): New method.
6285 * java/util/SimpleTimeZone.java (clone): New method.
6286 (toString): New method.
6287 * java/util/TimeZone.java (clone): New method.
6288 * java/text/SimpleDateFormat.java (clone): New method.
6289 * java/text/NumberFormat.java (clone): New method.
6290 (equals): New method.
6291 * java/text/Format.java (clone): New method.
6292 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6294 (clone): New method.
6295 * java/text/DateFormat.java (clone): New method.
6296 * java/text/Collator.java (clone): New method.
6298 2000-02-03 Tom Tromey <tromey@cygnus.com>
6300 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6303 2000-02-01 Tom Tromey <tromey@cygnus.com>
6305 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6306 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6307 constructing the closure if the function is native.
6308 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6309 a template function, #if'd out, or static.
6310 Include <java-interp.h>.
6312 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6314 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6316 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6317 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6319 (wrap_value): New function.
6320 (_Jv_JNI_CallAnyMethodV): Use it.
6321 (_Jv_JNI_CallAnyMethodA): Likewise.
6322 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6323 (_Jv_JNI_GetStaticField): Likewise.
6325 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6326 (_Jv_JNI_GetStaticField): Likewise.
6328 2000-01-31 Tom Tromey <tromey@cygnus.com>
6330 * prims.cc (_Jv_MallocUnchecked): New function.
6331 (main_init): Call _Jv_JNI_Init.
6332 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6333 (_Jv_JNI_Init): Declare.
6334 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6336 (_Jv_JNI_NewGlobalRef): New function.
6337 (_Jv_JNI_DeleteGlobalRef): New function.
6338 (_Jv_JNI_DeleteLocalRef): New function.
6339 (_Jv_JNI_conversion_call): Initialize and clear local reference
6341 (_Jv_JNI_NewLocalRef): New function.
6342 (struct _Jv_JNI_LocalFrame): New structure.
6343 (_Jv_JNI_PushLocalFrame): New function.
6344 (_Jv_JNI_EnsureLocalCapacity): New function.
6345 (FRAME_SIZE): New define.
6346 (_Jv_JNI_GetStringChars): Mark string, not characters.
6347 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6348 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6349 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6351 (_Jv_JNI_DefineClass): Make return value a local ref.
6352 (_Jv_JNI_FindClass): Likewise.
6353 (_Jv_JNI_GetSuperclass): Likewise.
6354 (_Jv_JNI_ExceptionOccurred): Likewise.
6355 (_Jv_JNI_AllocObject): Likewise.
6356 (_Jv_JNI_GetObjectClass): Likewise.
6357 (_Jv_JNI_CallAnyMethodV): Likewise.
6358 (_Jv_JNI_NewString): Likewise.
6359 (_Jv_JNI_NewStringUTF): Likewise.
6360 (_Jv_JNI_NewObjectArray): Likewise.
6361 (_Jv_JNI_GetObjectArrayElement): Likewise.
6362 (_Jv_JNI_ToReflectedField): Likewise.
6363 (_Jv_JNI_ToReflectedMethod): Likewise.
6364 (_Jv_JNIFunctions): Updated table for new functions.
6365 (_Jv_JNI_Init): New function.
6366 (mark_for_gc): Wrote.
6367 (unmark_for_gc): Wrote.
6368 * include/jni.h (struct JNINativeInterface): Removed name from
6369 PopLocalFrame parameter.
6370 (class _Jv_JNIEnv): Added `locals' field.
6372 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6374 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6377 2000-01-30 Tom Tromey <tromey@cygnus.com>
6379 * include/config.h.in: Rebuilt.
6380 * acconfig.h (HAVE_ICONV): Define.
6381 * configure: Rebuilt.
6382 * configure.in: Check for `iconv' function.
6383 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6384 no specific encoder exists.
6385 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6386 no specific encoder exists.
6387 * Makefile.in: Rebuilt.
6388 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6390 (nat_source_files): Added natIconv.cc.
6391 * gnu/gcj/convert/natIconv.cc: New file.
6392 * gnu/gcj/convert/Input_iconv.java: New file.
6393 * gnu/gcj/convert/Output_iconv.java: New file.
6395 2000-01-28 Tom Tromey <tromey@cygnus.com>
6397 * Makefile.in: Rebuilt.
6398 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6400 2000-01-26 Tom Tromey <tromey@cygnus.com>
6402 * gcj/method.h (JvNumMethods): Moved from Class.h.
6403 (JvGetFirstMethod): Likewise.
6404 * java/lang/Class.h (Object): Updated decl of
6405 _Jv_JNI_ToReflectedField.
6406 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6407 * Makefile.in: Rebuilt.
6408 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6409 argument of _Jv_JNI_ToReflectedField.
6410 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6412 (java/lang/reflect/Method.h): Likewise.
6413 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6415 (jweak): New typedef.
6416 (struct JNINativeInterface): Correctly declare remaining entries.
6417 * jni.cc: Include Class.h, ClassLoader.h.
6418 (_Jv_JNI_FindClass): New function.
6419 (_Jv_JNI_DefineClass): New function.
6420 (_Jv_JNI_conversion_call): New function.
6421 (_Jv_JNI_FindClass): Use current class loader to find class.
6422 (_Jv_JNI_ExceptionCheck): New function.
6423 (_Jv_JNI_FromReflectedField): Now static.
6424 (MethodClass): New define.
6425 (_Jv_JNI_FromReflectedMethod): New function.
6426 (_Jv_JNI_ToReflectedMethod): Likewise.
6428 (_Jv_JNI_IsAssignableFrom): Renamed.
6429 (_Jv_JNI_GetStringRegion): New function.
6430 Include StringIndexOutOfBoundsException.h.
6431 (_Jv_JNI_GetStringUTFRegion): New function.
6432 (_Jv_JNIFunctions): Updated for new functions.
6433 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6434 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6435 (_Jv_JNI_GetStringCritical): New function.
6436 (_Jv_JNI_ReleaseStringCritical): Likewise.
6437 (get_throwable): Removed.
6438 (GCJ_JV_JNIENV_FRIEND): Removed.
6439 (__GCJ_JNI_IMPL__): Define.
6442 * resolve.cc (get_ffi_type_from_signature): Handle case where
6445 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6447 * interpret.cc (run): Don't call println.
6448 Don't include PrintStream.h.
6450 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6451 nameIndex. Use "jint" as type for boffset.
6452 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6454 (Class): Likewise. Also changed type of method_count,
6455 vtable_method_count, size_in_bytes, field_count,
6456 static_field_count, interface_count.
6457 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6460 2000-01-21 Tom Tromey <tromey@cygnus.com>
6462 * java/lang/reflect/natConstructor.cc (newInstance): Use
6464 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6465 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6466 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6469 (invoke): Use _Jv_CallAnyMethodA.
6471 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6472 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6474 (struct _Jv_Method): Added getNextMethod method.
6475 (JvNumMethods): New function.
6476 (JvGetFirstMethod): Likewise.
6477 * gcj/field.h (JvGetFirstStaticField): New function.
6478 (JvNumStaticFields): Likewise.
6479 (getNextField): Renamed from getNextInstanceField.
6480 (struct _Jv_Field): New method getClass.
6481 * jni.cc: Wrote many new functions.
6482 * include/jni.h (JNI_TRUE): Define.
6483 (JNI_FALSE): Likewise.
6484 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6485 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6486 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6487 (jfieldID, jmethodID): Likewise.
6488 (JNI_COMMIT, JNI_ABORT): New defines.
6489 (JNINativeMethod): New struct.
6490 (struct JNINativeInterface): Correctly declared more entries.
6491 (class _Jv_JNIEnv): Added `ex' member.
6492 (JNI_VERSION_1_1): New define.
6493 (JNI_VERSION_1_2): Likewise.
6495 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6496 getNextInstanceField.
6498 2000-01-20 Tom Tromey <tromey@cygnus.com>
6500 * resolve.cc (StringClass): Removed.
6501 * defineclass.cc (StringClass): Removed.
6503 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6507 2000-01-19 Tom Tromey <tromey@cygnus.com>
6509 * interpret.cc (PC_REGISTER_ASM): Removed.
6511 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6512 From Bryce McKinlay.
6514 * All files: Updated copyright to reflect Cygnus purchase.
6516 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6518 * configure: Rebuilt.
6519 * configure.in: Recognize --disable-interpreter.
6521 2000-01-18 Andrew Haley <aph@cygnus.com>
6523 * name-finder.cc (lookup): Check for dladdr function.
6524 acconfig.h (HAVE_DLADDR): Add.
6525 configure.in: Check for HAVE_DLADDR
6527 include/config.h.in: Rebuilt.
6529 2000-01-17 Andrew Haley <aph@cygnus.com>
6531 * prims.cc (_Jv_RunMain): Set the name of this executable.
6533 2000-01-17 Tom Tromey <tromey@cygnus.com>
6535 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6536 when backtrace can't be computed.
6538 * configure: Rebuilt.
6539 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6541 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6542 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6543 (_Jv_FindClassInCache): Likewise.
6544 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6545 (findSystemClass): Try to load class from compiled module.
6547 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6548 (loadLibrary): Likewise.
6549 (lt_preloaded_symbols): Define.
6550 (loadLibraryInternal): New method.
6551 * include/config.h.in: Rebuilt.
6552 * acconfig.h (USE_LTDL): Added.
6553 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6554 (INCLUDES): Added $(INCLTDL).
6555 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6556 (libgcj_la_LIBADD): Likewise.
6557 * aclocal.m4, configure: Rebuilt.
6558 * configure.in: Added libltdl support.
6560 2000-01-15 Tom Tromey <tromey@cygnus.com>
6562 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6564 2000-01-14 Andrew Haley <aph@cygnus.com>
6566 * java/lang/natThrowable.cc: New file.
6568 * java/lang/Throwable.java (fillInStackTrace): Make native.
6569 (printStackTrace): Call native method to do this.
6570 (Throwable): Call fillInStackTrace.
6571 (stackTrace): New variable.
6573 * include/jvm.h: Add _Jv_ThisExecutable functions.
6575 * prims.cc: (_Jv_execName): New variable.
6576 (catch_segv): Call fillInStackTrace.
6578 (_Jv_ThisExecutable): New functions.
6579 (JvRunMain): Set the name of this executable.
6581 * Makefile.am: Add java/lang/natThrowable.cc.
6583 * Makefile.in: Rebuilt.
6585 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6587 * configure.in: Force link with __frame_state_for in
6588 FORCELIBGCCSPEC. Add new checks for backtrace.
6589 * include/config.h.in: Rebuilt.
6591 * name-finder.cc: New file.
6592 * include/name-finder.h: New file.
6594 2000-01-16 Anthony Green <green@cygnus.com>
6596 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6599 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6601 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6603 2000-01-13 Tom Tromey <tromey@cygnus.com>
6605 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6606 not system loader, as initiating loader.
6608 2000-01-11 Tom Tromey <tromey@cygnus.com>
6610 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6611 HP/UX. From David Scott Urban.
6613 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6615 * java/lang/natMath.cc (pow): Cast args to `double', not
6618 (IEEEremainder): Likewise.
6619 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6620 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6622 2000-01-09 Anthony Green <green@cygnus.com>
6624 * java/lang/natString.cc (init): Test for overflow condition
6625 during out of bounds check.
6626 (getChars): Throw StringIndexOutOfBoundsException, not
6627 ArrayIndexOutOfBoundsException.
6629 (regionMatches): Obey case option during string comparison.
6631 * configure.host (ligcj_interpreter): New variable. Enable
6632 interpreter by default on IA-32.
6633 * configure.in: Examine libgcj_interpreter.
6634 * configure: Rebuilt.
6636 2000-01-07 Tom Tromey <tromey@cygnus.com>
6638 * mauve-libgcj: Don't disable ClassTest.
6640 * java/lang/natClass.cc (getClasses): Wrote.
6642 2000-01-06 Tom Tromey <tromey@cygnus.com>
6644 * java/lang/natClass.cc (_getConstructors): Correctly check
6645 whether method name is the init name.
6646 (getMethod): Look at accflags on method in `klass', not `this'.
6648 2000-01-05 Tom Tromey <tromey@cygnus.com>
6650 * java/lang/natClass.cc (getMethod): Compute offset relative to
6651 `klass's methods table, not `this's table.
6653 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6654 In unwrapping/widening case, check whether `k' is null, not
6655 whether it is primitive. Initialize `num' from `argelts', not
6656 `paramelts'. Correct create and pass arguments to ffi_call.
6657 Don't let presence of `this' argument affect index used to look in
6659 (COPY): Set appropriate element in `values' vector.
6661 * java/lang/natClass.cc: Include <gcj/method.h>.
6663 * java/lang/Class.h (_getMethods): Correctly declare as private,
6666 * java/lang/Class.h (_getMethods): Declare.
6667 * java/lang/Class.java (_getMethods): Declare.
6668 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6669 (getDeclaredClasses): Always return empty array.
6670 (_getMethods): New method.
6671 (getMethods): Wrote.
6672 (getDeclaredMethod): Return `rmethod'.
6673 (finit_name): New global.
6674 (getDeclaredMethods): Check for finit_name.
6675 (_getMethods): Likewise.
6676 (getMethod): Only return public methods.
6678 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6679 jboolean and select correct ffi type on that basis.
6680 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6681 Constructor call always has `void' return type.
6683 2000-01-04 Tom Tromey <tromey@cygnus.com>
6685 * java/lang/Class.h (getSignature): Updated.
6686 * java/lang/Class.java (getSignature): Updated.
6687 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6689 (getConstructor): Ensure constructor is public.
6690 (_getConstructors): Check for public-ness of constructor when
6691 `declared' is false, not when it is true.
6693 2000-01-04 Warren Levy <warrenl@cygnus.com>
6695 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6697 (receive): Set the sender's address in the DatagramPacket.
6699 2000-01-04 Tom Tromey <tromey@cygnus.com>
6701 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6702 declaring class as return_type argument to
6703 _Jv_CallNonvirtualMethodA.
6704 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6705 constructor case, create object and use it as `this' argument.
6706 * java/lang/Class.h (_getConstructors): Declare.
6707 (_getFields): Declare.
6708 * java/lang/Class.java (getConstructors): Wrote.
6709 (_getConstructors): New native method.
6710 (getDeclaredConstructors): Wrote.
6711 (_getFields): Declare new native method.
6712 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6714 (getMethod): Work correctly when class is primitive.
6715 (getDeclaredMethods): Likewise. Compute offset using `method',
6717 (getDeclaredMethod): Likewise.
6718 (getConstructor): Wrote.
6719 (ConstructorClass): New define.
6720 (getDeclaredConstructor): Wrote.
6721 (_getConstructors): New method.
6722 (_getFields): New method.
6725 * Makefile.in: Rebuilt.
6726 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6728 * prims.cc: Remove `#pragma implementation'.
6729 * gcj/array.h: Remove `#pragma interface'.
6731 * prims.cc (_Jv_equaln): New function.
6732 * java/lang/Class.java (getSignature): Declare.
6733 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6734 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6736 (getSignature): New method.
6737 (getDeclaredMethod): Wrote.
6739 Include StringBuffer.h.
6740 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6741 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6743 (getSignature): Declare.
6744 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6745 (_Jv_equaln): Declare.
6746 (_Jv_CallNonvirtualMethodA): Declare.
6747 * Makefile.in: Rebuilt.
6748 * Makefile.am (nat_source_files): Added natConstructor.cc.
6749 (java/lang/reflect/Constructor.h): New target.
6750 * java/lang/reflect/natConstructor.cc: New file.
6751 * java/lang/reflect/Constructor.java (newInstance): Now native.
6752 (declaringClass): Renamed from decl_class.
6753 (offset): Renamed from index.
6754 (getType): New native method.
6755 (getModifiers): Now native.
6756 (getParameterTypes): Call getType if required.
6757 (hashCode): Include hash code from declaring class.
6758 (modifiers): Removed.
6759 (toString): Call getType if required.
6760 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6761 * java/lang/reflect/natMethod.cc (hack_call): New method.
6762 Removed `#if 0' around FFI code.
6763 Include <gnu/gcj/RawData.h>.
6764 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6765 IllegalArgumentException when argument object and class disagree.
6766 (_Jv_GetTypesFromSignature): New function.
6768 (ObjectClass): New define.
6769 (_Jv_CallNonvirtualMethodA): New function.
6770 * java/lang/reflect/Method.java (hack_trampoline): New method.
6771 (hack_call): New native method.