1 2001-06-15 Tom Tromey <tromey@redhat.com>
3 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
4 NULL if no library on the list has the symbol.
5 (init): Call add_library on the program itself.
6 * prims.cc (JvRunMain): Initialize Runtime before searching for
8 (_Jv_RunMain): Likewise.
10 2001-06-15 Tom Tromey <tromey@redhat.com>
12 * jni.cc (ClassClass): Removed; updated all users.
13 (ObjectClass): Likewise.
14 (ThrowableClass): Likewise.
15 (MethodClass): Likewise.
16 (ThreadGroupClass): Likewise.
17 (local_ref_table): Renamed from `ref_table'.
18 (global_ref_table): New global.
19 (_Jv_JNI_Init): Initialize both ref tables.
20 (mark_for_gc): Added `ref_table' parameter.
21 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
23 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
24 (_Jv_JNI_DeleteGlobalRef): Likewise.
25 (_Jv_JNI_DeleteLocalRef): Likewise.
26 (_Jv_JNI_NewLocalRef): Likewise.
27 (_Jv_JNI_PopLocalFrame): Likewise.
28 (_Jv_JNI_GetStringChars): Likewise.
29 (_Jv_JNI_ReleaseStringChars): Likewise.
30 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
31 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
33 2001-06-14 Tom Tromey <tromey@redhat.com>
35 Fix for PR libgcj/3144:
36 * java/util/Date.java: Merged with Classpath.
38 2001-06-12 Tom Tromey <tromey@redhat.com>
40 * aclocal.m4, configure: Rebuilt.
41 * acinclude.m4: Find configure.host in srcdir.
43 2001-06-07 Tom Tromey <tromey@redhat.com>
45 Fix for PR libgcj/3059:
46 * java/lang/natSystem.cc (init_properties): Define `java.home'.
47 * Makefile.in: Rebuilt.
48 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
50 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
52 * exception.cc (cstdlib): Replaces stdlib.h.
53 (_Jv_Throw): Use std::abort().
54 (PERSONALITY_FUNCTION): Likewise.
56 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
58 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
59 nothing, as in autoconf 2.50.
60 * aclocal.m4, configure: Rebuilt.
62 2001-06-08 Tom Tromey <tromey@redhat.com>
65 * configure.in: Compute new aux dir using `pwd'.
67 2001-06-07 Tom Tromey <tromey@redhat.com>
69 For PR bootstrap/3075:
70 * configure, aclocal.m4, Makefile.am: Rebuilt.
71 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
72 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
73 relative to libgcj_basedir.
74 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
75 AC_CANONICAL_SYSTEM here.
76 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
78 ($(extra_headers)): New target.
80 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
81 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
83 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
84 table index is within allowed bounds. Ensure that we dont try to access
85 class itable at a negative offset. Avoid an ancestor table lookup if
86 source is a primitive type class.
87 (isInstance): Remove redundant isPrimitive() check.
89 2001-06-04 Tom Tromey <tromey@redhat.com>
91 * java/security/PublicKey.java: Extend Key.
92 * java/security/PrivateKey.java: Extend Key.
94 2001-06-02 Anthony Green <green@redhat.com>
96 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
97 alternate when USE_LTDL not defined.
99 2001-06-02 Anthony Green <green@redhat.com>
101 * configure: Rebuild.
102 * configure.in: Remove data_start hack.
103 * libgcj.spec.in: Ditto.
104 * Makefile.in: Rebuild.
105 * Makefile.am: Ditto.
106 * libgcjdata.c: Remove.
108 2001-06-02 Anthony Green <green@redhat.com>
110 * configure: Rebuild.
111 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
112 --without-libffi option. Tweak --disable-java-net processing.
113 * Makefile.in: Rebuild.
114 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
115 * include/config.h.in: Rebuild.
116 * acconfig.h (USE_LIBFFI): Define.
117 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
119 2001-06-02 Anthony Green <green@redhat.com>
121 * configure: Rebuilt.
122 * configure.in: Test for sigaction on native builds.
123 * prims.cc: Check HAVE_SIGACTION.
124 * include/config.h.in: Rebuilt.
126 2001-05-31 Jeff Sturm <jsturm@one-point.com>
128 * natFile.cc (get_entry): Removed functions.
129 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
130 Allocate enough storage for d_name if using readdir_r.
132 2001-05-31 Tom Tromey <tromey@redhat.com>
134 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
136 (write): Loop until write completes. From Corey Minyard.
138 2001-05-29 Laurent Guerby <guerby@acm.org>
140 * java/awt/geom/Rectangle2D.java: fix doc typo.
142 2001-05-31 Tom Tromey <tromey@redhat.com>
144 * java/sql/DriverManager.java (getDrivers): Handle case where
145 driver's class loader is null. From Corey Minyard.
147 2001-05-29 Tom Tromey <tromey@redhat.com>
149 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
151 * configure: Rebuilt.
152 * configure.in: Only add multilib support code if we just rebuilt
155 2001-05-29 Andrew Haley <aph@redhat.com>
157 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
158 pointer: the dwarf unwinder in libgcc will do everything that's
160 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
161 more than we absolutely need to.
162 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
163 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
165 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
167 * configure: Rebuilt.
168 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
170 (SIGNAL_HANDLER): Use siginfo style handler.
171 (INIT_SEGV): Likewise.
172 (INIT_FPE): Likewise.
173 * include/ppc-signal.h: Delete whole file.
175 2001-05-24 Tom Tromey <tromey@redhat.com>
177 * java/lang/natString.cc (init): Throw
178 ArrayIndexOutOfBoundsException.
179 (getChars): Likewise.
180 (getBytes): Likewise.
183 * configure.in: Only allow hash synchronization when POSIX threads
185 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
188 2001-05-23 Tom Tromey <tromey@redhat.com>
190 * Makefile.in: Rebuilt.
191 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
193 Revert patch of 2001-05-21:
194 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
195 (libgcj_la_LIBADD): Likewise.
196 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
197 (libgcjx_la_LIBADD): Likewise.
199 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
200 * gcj/Makefile.in: Rebuilt.
201 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
202 * gcj/javaprims.h: Include gcj/libgcj-config.h.
203 * gcj/libgcj-config.h.in: New file.
204 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
205 * configure: Rebuilt.
206 * configure.in: Enable hash synchronization by default on some
208 (HASH_SYNC_SPEC): New subst.
209 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
210 Correctly use `test -z' instead of `test -n' in a couple places.
211 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
213 * configure.host (enable_java_net_default): Initialize.
214 (enable_hash_synchronization_default): New variable.
216 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
218 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
219 synchronization in use.
220 (_Jv_MarkArray): Likewise.
221 (_Jv_AllocBytes): Don't check return result.
222 (handle_out_of_memory): New function.
223 (_Jv_InitGC): Set GC_oom_fn.
224 (trace_one_vtable): New global.
225 (_Jv_AllocTraceOne): New function.
226 * configure.in: Added --enable-hash-synchronization.
227 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
228 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
229 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
230 (_Jv_AllocArray): Likewise.
231 (_Jv_AllocBytes): Likewise.
232 (_Jv_AllocPtrFreeObject): New function.
233 (_Jv_AllocTraceOne): Likewise.
234 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
236 (self_cache): New global.
237 (_Jv_ThreadSelf_out_of_line): New function.
238 * prims.cc (_Jv_AllocBytesChecked): Removed.
239 (_Jv_ThrowNoMemory): New function.
240 (_Jv_AllocObject): Don't check for null return from allocator.
241 (_Jv_NewObjectArray): Likewise.
242 (_Jv_AllocPtrFreeObject): New function.
243 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
244 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
245 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
246 * include/boehm-gc.h (_Jv_AllocObj): Define.
247 (_Jv_AllocPtrFreeObj): Define.
248 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
249 (_Jv_ThrowNoMemory): Declare.
250 (_Jv_AllocTraceOne): Declare.
251 (_Jv_AllocBytesChecked): Removed.
252 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
253 _Jv_MutexUnlock): Handle LOCK_DEBUG.
254 (_Jv_ThreadSelf): Handle case where system pthread_self() is
256 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
258 * java/lang/Object.h (sync_info): Conditional upon presence of
259 hash synchronization.
260 * java/lang/natObject.cc: Much new code to handle thin locks and
261 hash synchronization.
262 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
265 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
267 * gij.cc (version): Update copyright year.
269 2001-05-22 Anthony Green <green@redhat.com>
271 * configure.in: Tweak canadian cross test, and don't redefine GCJ
274 2001-05-21 Per Bothner <per@bothner.com>
276 Implement invocation interface; don't create new thread for main.
277 * java/lang/Thread.java (gen_name): Make native.
278 (<init>(Thread,THreadGroup,Runnable,String)): New private
279 constructor, used by other constructors, and _Jv_AttachCurrentThread.
280 * java/lang/natThread.cc (gen_name): New implementation.
281 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
282 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
283 (_Jv_CreateJavaVM): New runtime initialization procedure.
284 (runFirst): New proecdure - mostly code from old FirstThread::run.
285 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
286 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
287 JvDetachCurrentThread): New inline wrappers.
288 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
289 _Jv_DetachCurrentThread): New declarations.
290 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
291 (getMain): new static method.
292 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
293 by runFirst in prims.cc.
294 (java/lang/Thread.h): Update for new invocation interface.
295 * include/posix-threads.h (_Jv_ThreadRegister,
296 _Jv_ThreadUnRegister): New declarations.
297 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
298 (really_start): Use new _Jv_ThreadRegister.
299 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
300 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
301 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
302 Complain of called when _Jv_OnlyThread already set.
303 (_Jv_ThreadStart): Always JvFail.
304 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
305 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
306 * win32-threads.cc (struct starter): Remove objet field -
307 we use _Jv_Thread_t's new thread_obj field instead.
308 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
309 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
310 (really_start): Use new _Jv_ThreadRegister.
311 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
312 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
313 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
314 Removed - no longer needed with new invocation interface.
315 * Makefile.am: Update for removed/added files.
317 2001-05-21 Per Bothner <per@bothner.com>
319 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
320 (libgcj_la_LIBADD): Likewise.
321 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
323 2001-05-21 Per Bothner <per@bothner.com>
325 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
326 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
327 taken from old Integer.toString code.
328 (Integer::valueOf): Use _Jv_FormatInt.
329 * java/lang/Integer.java (toString): Just use call String.valueOf.
330 * java/lang/Long.java (toString): Fix typo in comment.
331 * java/lang/String.java (valueOf(int)): Make native.
332 * java/lang/StringBuffer.java (append(int)): Make native.
333 * java/lang/natStringBuffer.cc: New file, for append(jint).
334 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
336 2001-05-21 Tom Tromey <tromey@redhat.com>
338 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
340 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
342 * include/dwarf2-signal.h: New file.
343 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
344 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
345 * configure: Rebuilt.
347 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
349 * configure.in: Update boehm-gc include dir for new GC version.
350 * configure: Rebuilt.
351 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
353 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
354 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
355 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
358 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
360 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
361 (_Jv_MutexInit): Likewise.
363 2001-05-18 Tom Tromey <tromey@redhat.com>
365 * Makefile.in: Rebuilt.
366 * Makefile.am (awt_java_source_files): Added Polygon.java.
368 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
370 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
371 * gcj/javaprims.h: ... here.
372 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
374 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
376 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
377 with length of ioffset table.
378 (_Jv_IsAssignableFrom): Likewise.
380 2001-05-17 Per Bothner <per@bothner.com>
382 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
384 2001-05-16 Tom Tromey <tromey@redhat.com>
386 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
389 2001-05-15 Tom Tromey <tromey@redhat.com>
391 * java/util/GregorianCalendar.java (computeTime): Only call
394 2001-05-14 Tom Tromey <tromey@redhat.com>
396 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
397 ZONE_OFFSET just before computing the time.
399 2001-05-12 Zack Weinberg <zackw@stanford.edu>
401 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
402 * Makefile.in: Regenerate (by hand).
403 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
404 * doc/cni.sgml: Document #pragma GCC java_exceptions.
406 2001-05-11 Richard Henderson <rth@redhat.com>
408 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
409 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
411 2001-05-11 Richard Henderson <rth@redhat.com>
413 * exception.cc: Include unwind-pe.h. Remove all pointer
416 2001-05-10 Tom Tromey <tromey@redhat.com>
418 * Makefile.in: Rebuilt.
419 * Makefile.am (awt_java_source_files): Added Polygon.java.
420 * java/awt/Polygon.java: New file.
422 * java/awt/geom/AffineTransform.java
423 (setToRotation(double,double,double)): New method.
424 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
425 (setToShear): Likewise.
427 2001-05-10 Tom Tromey <tromey@redhat.com>
429 * java/util/GregorianCalendar.java: Imported from Classpath.
430 * gnu/java/locale/LocaleInformation_nl.java: New file from
432 * gnu/java/locale/LocaleInformation_en.java: Likewise.
433 * gnu/java/locale/LocaleInformation_de.java: Likewise.
434 * gnu/java/locale/LocaleInformation.java: Likewise.
435 * natGregorianCalendar.cc: Removed.
436 * Makefile.in: Rebuilt.
437 * Makefile.am (nat_source_files): Removed
438 natGregorianCalendar.cc.
440 2001-05-10 Tom Tromey <tromey@redhat.com>
442 * java/text/SimpleDateFormat.java (computeCenturyStart): New
444 (defaultCenturyStart): Use it.
445 (readObject): Likewise.
446 (SimpleDateFormat): Clear the calendar. Set the grouping on the
448 (parse): Copy the calendar before modifying it. Correctly handle
451 * java/util/Calendar.java (clear): Set field value(s) to 0.
453 2001-05-10 Jeff Sturm <jsturm@one-point.com>
455 * Calendar.java (get): Clear areFieldsSet if requested field
457 (set): Unset fields that depend on new value.
459 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
461 * java/lang/Class.h (_Jv_Self): New union type.
462 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
463 Jeff Sturm and Fergus Henderson.
465 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
467 * java/lang/ClassLoader.java: Remove dead code fragment.
469 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
471 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
473 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
475 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
477 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
478 * configure.host (EXCEPTIONSPEC): New.
479 * configure.in (EXCEPTIONSPEC): New.
480 * configure: Rebuilt.
482 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
484 * doc/*.texi: Remove generated documentation.
486 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
488 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
489 (performDelete): Fix #endif placement.
491 2001-04-27 Zack Weinberg <zackw@stanford.edu>
493 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
494 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
495 (_Jv_ThreadDestroyData): Use _Jv_Free.
496 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
499 2001-04-27 Tom Tromey <tromey@redhat.com>
501 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
503 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
505 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
507 * include/jni.h (struct JNINativeInterface): Fixed types in
508 Get/Set*ArrayRegion declarations.
509 (class _Jv_JNIEnv): Likewise.
511 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
513 * configure.in: Obtain THREADS with `gcc -v'.
514 * configure: Rebuilt.
516 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
519 * java/io/ObjectStreamClass.java (setClass): Calculate
520 serialVersionUID for local class and compare it against the UID
521 from the Object Stream. Throw InvalidClassException upon mismatch.
522 (setUID): Renamed to...
523 (getClassUID): this. Return the calculated class UID rather than
524 setting uid field directly.
525 (getDefinedSUID): Removed.
526 * java/io/ObjectInputStream.java (resolveClass): Use the
527 three-argument Class.forName().
528 * java/io/InvalidClassException (toString): Don't include classname in
529 result if it is null.
531 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
533 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
534 Wrap use of inet_pton in HAVE_INET6.
536 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
538 java.security merge and ClassLoader compliance fixes.
540 * java/lang/Class.h (Class): Include ProtectionDomain.h.
541 New protectionDomain field.
542 (forName): Add initialize parameter. Fixes declaration to comply with
544 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
545 variant. Honour "initialize" flag.
546 (getProtectionDomain0): New method.
547 * java/lang/Class.java: Fix forName() declaration.
548 (getPackage): New method based on Classpath implementation.
549 (getProtectionDomain0): New native method decl.
550 (getProtectionDomain): New method.
551 * java/lang/ClassLoader.java (getParent): Now final.
552 (definedPackages): New field.
554 (defineClass): New variant with protectionDomain argument.
555 (definePackage): New.
557 (findSystemClass): Now final.
558 (getSystemResourceAsStream): Remove redundant "final" modifier.
559 (getSystemResource): Remove redundant "final" modifier.
560 (getResources): Now final.
561 (protectionDomainPermission): New static field.
562 (unknownProtectionDomain): Ditto.
563 (defaultProtectionDomain): Ditto.
564 (getSystemClassLoader): Now non-native.
565 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
566 arguments for Class.forName().
567 * java/lang/Package.java: New file.
568 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
569 (instance): Static initialize singleton.
570 (findClass): Override this, not findSystemClass.
571 * java/lang/natClassLoader.cc (defineClass0): Set class's
572 protectionDomain field as specified.
573 (getSystemClassLoader): Removed.
574 (findClass): Renamed from findSystemClass. Call the interpreter via
575 URLClassLoader.findClass if loading class via dlopen fails.
577 * java/security/*.java: java.security import/merge with Classpath.
578 * java/security/acl/*.java: Likewise.
579 * java/security/interfaces/*.java: Likewise.
580 * java/security/spec/*.java: Likewise.
581 * java/net/NetPermission.java: Likewise.
582 * java/net/SocketPermission.java: Likewise.
583 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
585 * Makefile.am: Add new classes.
586 * Makefile.in: Rebuilt.
587 * gcj/javaprims.h: CNI namespace rebuild.
589 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
591 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
592 for libtool tests. Pre-create gnu/classpath/Configuration.java.
593 * configure: Rebuilt.
595 2001-04-21 Tom Tromey <tromey@redhat.com>
597 * Makefile.in: Rebuilt.
598 * Makefile.am (awt_java_source_files): Added Line2D.java.
599 * java/awt/geom/Line2D.java: Wrote.
601 * java/awt/Menu.java (addNotify): Wrote.
603 * java/awt/PopupMenu.java (addNotify): Implemented.
606 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
607 * java/awt/List.java (addNotify): Call super.addNotify.
608 * java/awt/Label.java (addNotify): Call super.addNotify.
609 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
610 * java/awt/Dialog.java (addNotify): Call super.addNotify.
611 * java/awt/Choice.java (addNotify): Call super.addNotify.
612 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
613 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
615 * java/awt/List.java (replaceItem): Notify peer.
617 * java/awt/geom/Rectangle2D.java
618 (Float.setRect(float,float,float,float)): New method.
620 * java/awt/event/ContainerEvent.java (getContainer): Now returns
623 * java/awt/RenderingHints.java (Key): Class now public.
625 * java/awt/Rectangle.java (Rectangle): Now implements
627 (getPathIterator): Removed.
629 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
632 * java/awt/FileDialog.java: Wrote.
634 * java/awt/EventQueue.java (isDispatchThread): Now public.
635 (invokeLater): Likewise.
637 * java/awt/Component.java (setCursor): Update peer.
638 (getFontMetrics): Use peer.
640 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
643 2001-04-20 Tom Tromey <tromey@redhat.com>
645 * java/awt/List.java: Wrote.
646 * java/awt/Dialog.java: Wrote.
648 2001-04-20 Warren Levy <warrenl@redhat.com>
650 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
651 * java/text/SimpleDateFormat.java
652 (indexInArray): Removed private method.
653 (processYear): Removed private method.
654 (parseLenient): Removed private method.
655 (parseLeadingZeros): Removed private method.
656 (parseStrict): Removed private method.
657 (expect): Added new private method.
658 (parse): Reverted to pre-Classpath merge version with minor fixes.
659 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
662 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
664 * java/io/File.java (normalizePath): New private method.
665 (File (String)): Use normalizePath().
666 (File (String, String)): Likewise.
668 * Makefile.am (libffi_files): Removed.
669 (libgcj.la): Link libffi as a convenience library instead of
670 refering to its object files directly.
671 * Makefile.in: Rebuilt.
673 2001-04-08 Per Bothner <per@bothner.com>
675 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
676 Recalculate hash, since Utf8Const's hash is only 16 bits.
678 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
679 bits of hash to calculate step for chaining.
681 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
682 when 2/3 full, rather than 3/4 full.
684 2001-04-06 Tom Tromey <tromey@redhat.com>
686 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
687 (wrap_value<T*>): New specialization.
688 (_Jv_JNI_PopLocalFrame): Update env->locals.
690 2001-04-05 Tom Tromey <tromey@redhat.com>
692 * libtool-version: Updated current.
694 2001-04-04 Andreas Jaeger <aj@suse.de>
696 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
697 * gcj/Makefile.in: Rebuilt.
698 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
699 * Makefile.in: Rebuilt.
700 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
701 * testsuite/Makefile.in: Rebuild.
702 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
703 * include/Makefile.in: Rebuild.
705 2001-04-02 Zack Weinberg <zackw@stanford.edu>
707 * testsuite/lib/libjava.exp: Correct typo: 'output from source
708 compiled test', not 'execution from source compiled test'.
709 Use UNTESTED, not XFAIL, for tests which are not run because
710 they depend on a previous test which failed.
712 2001-04-02 Richard Henderson <rth@redhat.com>
714 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
715 the same tree as gcc.
716 * configure: Rebuilt.
718 * exception.cc (_Jv_Throw): Clarify commentary.
720 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
722 * jni.cc (wrap_value<jclass>): New specialization.
724 2001-04-02 Tom Tromey <tromey@redhat.com>
726 * java/io/PrintStream.java (out): Removed field. Fixes PR
728 (write): Call flush, not out.flush, per spec.
729 (close): Flush output stream, per spec. Handle
730 InterruptedIOException.
731 (checkError): Likewise.
732 (flush, print, write): Handle InterruptedIOException per spec.
733 (PrintStream): Don't create BufferedOutputStream.
734 (work_bytes): New field.
735 (writeChars): Use work_bytes. Don't assume `out' is a
736 BufferedOutputStream.
738 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
740 * java/text/MessageFormat.java (setLocale): Added missing `else'.
743 2001-03-30 Tom Tromey <tromey@redhat.com>
745 * jni.cc (add_char): Correctly encode non-ascii characters.
746 (add_char): Define even when INTERPRETER not defined.
747 (mangled_name): Likewise.
748 (_Jv_GetJNIEnvNewFrame): Likewise.
749 (_Jv_LookupJNIMethod): Likewise.
751 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
753 * configure.host: Enable interpreter for PPC.
755 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
757 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
758 to "file.separator", "path.separator", and "java.io.tmpdir" property
760 * java/io/File.java: Likewise.
761 * java/io/natFile.cc (init_native): Likewise.
762 * java/io/natFileWin32.cc (init_native): Likewise.
764 2001-04-01 Per Bothner <per@bothner.com>
766 * java/lang/natString.cc (intern): If string's data does not point to
767 this String, make a fresh String that does.
769 * java/lang/natString.cc (unintern): Replace by static function.
770 * java/lang/String.java (unintern): Remove method.
772 2001-04-01 Per Bothner <per@bothner.com>
774 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
775 (finish): def.deflate needs to be called in a loop.
776 (inbuf, inbufLength): New private fields.
777 (write(int)): Use inbuf.
778 (write(byte[],int,int): Check if pending output in inbuf.
779 * ZipOutputStream.java: Don't use Deflater if stored.
780 Use a Checksum object directly, not via a CheckedOutputStream.
781 (uncompressed_size): New field,
782 (closeEntry): Only write data_directory if needed.
783 (write): If STORED, write directly.
784 Always update crc, and uncompressed_size.
785 (write_entry): Fix lots of protocol erors.
787 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
789 1.3-Compliant Implementation of java.io.File.
790 * java/lang/natSystem.cc (init_properties): Get "file.separator",
791 "path.separator", and "java.io.tmpdir" from the File class, instead
792 of setting them explicitly.
793 * java/io/File.java: Do not canonicalize paths for security manager
794 checks. Call init_native() from static initializer. Do not pass path
795 argument to native methods. New native method declarations. Some
796 security manager checks moved to checkWrite().
797 (equals): Check file system case sensitivity and act appropriatly.
798 (hashCode): Likewise.
799 (isHidden): New method implemented.
800 (performList): Changed prototype. Now takes a class argument specifying
801 the class of the returned array: Strings or File objects. Also added
803 (listFiles): New variants with "File" return type implemented.
804 (createTempFile): Use createNewFile(). Use maxPathLen.
805 (setReadOnly): New method implemented.
806 (listRoots): Likewise.
807 (compareTo): Likewise.
808 (setLastModified): Likewise.
809 (checkWrite): New method.
811 * java/io/natFile.cc: Various functions no longer take canonical path
813 (stat): Handle ISHIDDEN query.
814 (isAbsolute): Remove WIN32 cruft.
815 (performList): New arguments. Handle returning either File[] or String[]
816 arrays. Check with FileFilter or FilenameFilter arguments as
817 appropriate. Use an ArrayList, not a Vector, for the temporary list.
818 (performSetReadOnly): New method implemented.
819 (performListRoots): Likewise.
820 (performSetLastModified): Likewise.
821 (performCreate): Likewise.
822 (init_native): New initialization function.
823 * java/io/natFileWin32.cc: Various functions no longer take canonical
825 (stat): Add FIXME about ISHIDDEN query.
826 (performList): New arguments. Handle returning either File[] or String[]
827 arrays. Check with FileFilter or FilenameFilter arguments as
828 appropriate. Use an ArrayList, not a Vector, for the temporary list.
829 (performSetReadOnly): New. Stubbed.
830 (performListRoots): Likewise.
831 (performSetLastModified): Likewise.
832 (performCreate): Likewise.
833 (init_native) New initialization function.
834 * configure.in: Check for utime() and chmod().
835 * configure: Rebuilt.
836 * include/config.h.in: Rebuilt.
838 Resolves PR libgcj/1759.
840 2001-03-28 Richard Henderson <rth@redhat.com>
842 IA-64 ABI Exception Handling:
843 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
844 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
845 Remove EXCEPTIONSPEC.
846 * configure.host (libgcj_sjlj): Remove.
847 * configure.in (EXCEPTIONSPEC): Remove.
848 (enable-sjlj-exceptions): Detect if not specified.
849 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
850 what header we're looking for.
851 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
852 * Makefile.in, configure: Regenerate.
853 * exception.cc: Don't declare libgcc2 stuff.
854 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
855 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
856 (win32_get_restart_frame): Remove.
857 (struct java_exception_header): New.
858 (__gcj_exception_class): New.
859 (get_exception_header_from_ue): New.
860 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
861 (size_of_encoded_value, read_encoded_value): New.
862 (read_uleb128, read_sleb128, parse_lsda_header): New.
863 (get_ttype_entry, __gcj_personality_sj0): New.
864 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
866 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
868 * javax/naming/InitialContext.java (init): Fix typo.
869 (composeName): Remove unnecessary semicolon.
870 (addToEnvironment): Remove unnecessary semicolon.
871 (addToEnvironment): Use put() instead of add().
873 * javax/naming/InitialContext.java (InitialContext):
875 (destroySubcontext): Method doesn't return a result.
876 * javax/naming/Context.java: Import java.util.Hashtable.
877 * javax/naming/Name.java: Import java.util.Enumeration.
879 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
881 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
882 objects in subdirectories.
883 * Makefile.in: Rebuilt.
885 2001-03-25 Richard Henderson <rth@redhat.com>
887 * exception.cc (java_eh_info): Make value type jthrowable.
888 (_Jv_type_matcher): Remove now unneeded cast.
889 (_Jv_Throw): Make argument type jthrowable. Munge name
890 for SJLJ_EXCEPTIONS here ...
891 * gcj/cni.h: ... not here.
893 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
895 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
896 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
897 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
898 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
899 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
900 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
901 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
902 java/lang/natClass.cc, java/lang/natClassLoader.cc,
903 java/lang/natDouble.cc, java/lang/natObject.cc,
904 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
905 java/lang/natString.cc, java/lang/natSystem.cc,
906 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
907 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
908 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
909 java/util/zip/natInflater.cc:
910 Use throw, not JvThrow or _Jv_Throw.
912 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
914 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
915 paramater, bump it to 1.
916 * java/util/Hashtable.java (Hashtable): Likewise.
918 2001-03-23 Per Bothner <per@bothner.com>
920 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
921 check for errors, since we don't want to throw exception on
922 overflow/underflow. Instead, trim whitespace, and then check that
923 _strtod_r uses up all the rest of the string.
925 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
926 ancestors array is invalid for interfaces, so do that *after*
927 check that the target type is not an interface.
929 2000-03-23 Jeff Sturm <jsturm@one-point.com>
931 * prims.cc (_Jv_FindClassFromSignature): Check return of
932 recursive call. Do not abort on invalid signature; return NULL
935 2001-03-22 Tom Tromey <tromey@redhat.com>
937 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
938 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
940 * include/jvm.h (_Jv_ResolveField): Declare.
941 * include/java-interp.h (_Jv_ResolveField): Don't declare.
942 * resolve.cc (_Jv_ResolveField): No longer conditional on
945 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
947 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
949 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
950 to a temporary file, then invoke libtool with the -objectlist
952 (libgcjx.la): Likewise.
953 * Makefile.in: Rebuilt.
955 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
957 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
959 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
961 * jni.cc (add_char): Handle `.' like `/'.
963 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
965 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
966 initialize if exception_types is null.
967 * java/lang/reflect/Constructor.java: Likewise.
968 * java/lang/reflect/natConstructor.cc (getType): Initialize
969 exception_types to an empty Object array.
971 2001-03-21 Tom Tromey <tromey@redhat.com>
973 * configure: Rebuilt.
974 * configure.in (GCJFLAGS): Subst.
975 * Makefile.in: Rebuilt.
976 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
977 (gij_LDFLAGS): Likewise.
978 (JC1FLAGS): Added GCJFLAGS and removed -g.
980 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
981 read/write case. Fixes PR libgcj/2338.
983 2001-03-20 Warren Levy <warrenl@redhat.com>
985 * java/util/TimeZone.java: Sync up with Classpath. Includes new
986 and corrected SimpleTimeZone's for the timezones hash table.
988 2001-03-19 Per Bothner <per@bothner.com>
990 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
991 "canonicalize" "../../xxx" to "/xxx".
993 2001-03-19 Mark Wielaard <mark@klomp.org>
995 * java/util/ArrayList.java: Remove RCS keywords from comments
996 * java/util/BasicMapEntry.java: idem
997 * java/util/Dictionary.java: idem
998 * java/util/HashSet.java: idem
1000 * java/util/EventObject.java: reindent
1001 * java/util/Properties.java: idem
1002 * java/util/SortedMap.java: idem
1004 * java/util/Enumeration.java: Merge with Classpath
1005 * java/util/EventListener.java: idem
1006 * java/util/Observable.java: idem
1007 * java/util/Observer.java: idem
1008 * java/util/Stack.java: idem
1010 2001-03-17 Tom Tromey <tromey@redhat.com>
1012 * java/lang/natString.cc (rehash): Don't bother with memset;
1013 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1015 (UNMASK_PTR): New macro.
1016 (intern): Unmask pointer before returning it. Register finalizer
1018 (unintern): Handle case where
1019 (MASK_PTR): New macro.
1020 (PTR_MAKSED): Likewise.
1021 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1023 2001-03-01 Andrew Haley <aph@redhat.com>
1025 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1026 stackTrace buffer to a correctly aligned pointer array.
1028 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1030 * java/lang/Runtime.java (_exit): Declare new package-private native.
1031 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1032 without a security manager check.
1033 (exit): Call _exit after security check.
1034 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1036 * java/lang/System.java (setSecurityManager): If a security manager
1037 is already in place, call checkPermission.
1038 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1039 throws an exception, try to deal with it gracefully.
1040 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1041 Only try to print the subordinate stack trace if "exception" is set.
1042 Print our class name first.
1044 2001-03-08 Tom Tromey <tromey@redhat.com>
1046 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1047 info for array classes.
1048 Fixes PR libgcj/1971.
1050 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1052 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1055 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1057 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1058 instead of the new JDK1.2 API. This is simpler and makes
1059 back-porting the classes to JDK1.1 trivial.
1060 (readObject): likewise.
1062 2001-03-01 Per Bothner <per@bothner.com>
1064 Changes merged from Kawa's gnu.math.
1065 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1066 (rshift(int[],int[],int,int): Removed - not needed.
1067 (gcd): Use rshift0 rather than rshift.
1068 * java/math/BigInteger.java (setShiftRight): Likewise.
1069 (divide): Simplify by using rshift0.
1070 (divide): Zero-extend results if high-order bit set.
1072 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1074 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1077 2001-02-23 Per Bothner <per@bothner.com>
1079 Change to sometimes include class name in ClassFormatError message.
1080 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1081 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1082 boolean instead of throwing ClassFormatError on failure.
1083 (throw_class_format_error): Change static function to method.
1084 (_Jv_ClassReader): New inline methods verify_identifier,
1085 two overloads of verify_classname, verify_field_signature, and
1086 verify_method_signature
1087 * include/java-interp.h: Update declarations to return bool.
1088 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1089 ClassFormatError since _Jv_VerifyClassName now returns bool.
1091 2001-02-23 Per Bothner <per@bothner.com>
1093 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1094 c++filt to select java-style output.
1096 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1098 Fix for PR java/2040:
1099 * java/util/HashMap.java (HashMap): Don't throw exception for
1100 loadFactor > 1. Add exception messages.
1101 * java/util/Hashtable.java (Hashtable): Likewise.
1103 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1105 Disable libgcjx by default.
1106 * configure.in: Add support for --enable-java-awt configure option.
1107 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1108 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1109 * Makefile.in: Rebuilt.
1110 * configure: Rebuilt.
1112 2001-02-20 Tom Tromey <tromey@redhat.com>
1114 * java/io/PipedWriter.java (flush): Throw exception if stream
1116 * java/io/OutputStreamWriter.java (write): Throw exception if
1118 (writeChars): Don't throw exception if stream closed.
1119 * java/io/CharArrayWriter.java (closed): New field.
1121 (flush): Throw exception if stream closed.
1122 (reset): Synchronize on correct lock. Allow stream to be
1124 (toCharArray, toString, writeTo): Synchronize.
1125 (write): Throwe exception if stream closed.
1126 * java/io/BufferedWriter.java (close): Clear `buffer'.
1127 (flush): Throw IOException if stream is closed.
1130 2001-02-16 Tom Tromey <tromey@cygnus.com>
1132 * java/lang/ThreadGroup.java (activeCount): Only include threads
1134 (enumerate): Likewise.
1136 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1138 * java/lang/Integer.java (getInteger): Return default argument if
1139 property is not set. Don't call decode with null argument.
1140 * java/lang/Long.java (getLong): Likewise.
1142 * java/io/CharArrayReader.java (CharArrayReader): Throw
1143 IllegalArgumentException if constructor arguments are illegal.
1144 (ready): Return false if no more characters can be read.
1145 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1147 2001-02-17 Mark Wielaard <mark@klomp.org>
1149 * java/util/TimerTask.java: New version from Classpath.
1151 2001-02-17 Mark Wielaard <mark@klomp.org>
1153 Remerge with Classpath
1154 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1155 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1156 (readByte): Use convertToByte().
1157 (readChar): Use convertToChar().
1158 (readInt): Use convertToInt().
1159 (readLong): Use convertToLong().
1160 (readShort): Use convertToShort().
1161 (readUnsignedByte): Use convertToUnsignedByte().
1162 (readUnsignedShort): Use convertToUnsignedShort().
1163 (readUTF): Use convertToUTF().
1165 (convertToBoolean): Resurrected.
1166 (convertToByte): Ditto.
1167 (convertToChar): Ditto.
1168 (convertToInt): Ditto.
1169 (convertToLong): Ditto.
1170 (convertToShort): Ditto.
1171 (convertToUnsignedByte): Ditto.
1172 (convertToUnsignedShort): Ditto.
1173 (convertToUTF): Ditto.
1175 2001-02-17 Mark Wielaard <mark@klomp.org>
1179 2001-02-17 Mark Wielaard <mark@klomp.org>
1181 * java/io/DataInputStream.java: update copyright notice
1182 * java/io/PrintWriter.java: idem
1183 * java/io/Reader.java: idem
1184 * java/io/StreamTokenizer.java: idem
1185 * java/io/StringReader.java: idem
1186 * java/lang/reflect/ReflectPermission.java: idem
1188 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1190 * java/util/TreeSet.java (clone): Made subclass safe, use
1191 super.clone(), not new.
1192 * java/util/TreeMap.java (clone): Likewise.
1194 * java/util/TreeMap.java (nil): Made non-final.
1195 (clone): Create new nil node for copy.
1197 * java/util/HashSet.java (clone): Made subclass safe, use
1198 super.clone(), not new.
1200 2001-02-14 Andrew Haley <aph@redhat.com>
1202 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1205 2001-02-15 Anthony Green <green@redhat.com>
1207 * defineclass.cc: Don't include alloca.h.
1208 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1209 * interpret.cc (run_normal): Ditto.
1211 * java/lang/natDouble.cc (parseDouble): Ditto.
1213 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1215 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1217 * java/util/Collections.java (ReverseComparator): New static class.
1218 (reverseOrder): Return static instance of ReverseComparator.
1220 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1221 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1222 Rectangle.clone(), not Object.clone().
1224 * java/util/HashSet.java (clone): Remove try/catch.
1226 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1227 * java/util/Collection.java: Likewise.
1228 * java/util/Comparator.java: Likewise.
1229 * java/util/Dictionary.java: Likewise.
1230 * java/util/Iterator.java: Likewise.
1231 * java/util/ListIterator.java: Likewise.
1232 * java/util/Map.java: Likewise.
1233 * java/util/Set.java: Likewise.
1235 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1237 * java/util/TreeMap.java: New file.
1238 * java/util/TreeSet.java: New file.
1239 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1240 * Makefile.in: Rebuilt.
1241 * java/util/HashSet.java (clone): Use constructor instead of calling
1243 * java/util/SortedSet.java: Sync with classpath.
1244 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1247 * java/lang/natClass.cc (getSignature): Don't try to dereference
1248 param_types if it is null. Instead, take this to mean "no parameters".
1249 * java/lang/TreeMap.java (TreeIterator.next): Throw
1250 NoSuchElementException in preference to ConcurrentModificationException.
1251 (TreeIterator.remove): Throw IllegalStateException in preference to
1252 ConcurrentModificationException.
1253 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1254 throw a NoSuchElementException.
1255 (SubMap.lastKey): Likewise.
1257 2001-02-13 Tom Tromey <tromey@redhat.com>
1259 * java/io/PipedReader.java (ready): Throw IOException if pipe
1261 * java/io/FilterReader.java (close): Don't clear `in'.
1262 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1264 (read, ready, reset, skip): Added exception message.
1265 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1266 Perform checkStatus check inside synchronized block.
1268 2001-02-13 Tom Tromey <tromey@redhat.com>
1270 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1272 2001-02-13 Tom Tromey <tromey@redhat.com>
1274 Fix for PR libgcj/1351:
1275 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1277 Include Thread.h and InterruptedIOException.h.
1279 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1281 * java/io/BlockDataException.java: Removed.
1282 * java/io/ObjectInputStream.java (readObject): Throw
1283 StreamCorruptedException, not BlockDataException.
1284 * Makefile.am: Remove BlockDataException.
1285 * Makefile.in: Rebuild.
1287 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1288 Tom Tromey <tromey@redhat.com>
1290 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1293 2001-02-09 Tom Tromey <tromey@redhat.com>
1295 * java/util/Timer.java: New version from Classpath.
1297 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1299 * java/lang/Double.java (doubleToRawLongBits): Now native.
1300 * java/lang/Float.java (floatToRawIntBits): Likewise.
1301 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1302 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1304 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1306 * java/io/File.java (java.net): Imported.
1307 (getAbsoluteFile): Added.
1308 (getCanonicalPath): Likewise.
1311 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1313 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1314 * java/lang/Integer.java: Likewise.
1315 * java/lang/Long.java: Likewise.
1316 * java/lang/Short.java: Likewise.
1317 * java/lang/Double.java: Likewise.
1318 (doubleToRawLongBits): New method.
1319 * java/lang/Float.java: As above.
1320 (floatToRawIntBits): New method.
1322 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1323 IOException if stream closed.
1325 2001-02-08 Tom Tromey <tromey@redhat.com>
1327 * java/lang/Float.java (parseFloat): New method.
1329 2001-02-08 Tom Tromey <tromey@redhat.com>
1331 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1332 * java/io/InputStreamReader.java (ready, read): Throw IOException
1333 if stream has been closed.
1335 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1337 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1338 Change sources.redhat.com and sourceware.cygnus.com references to
1341 2001-02-07 Tom Tromey <tromey@redhat.com>
1343 Fix for PR libgcj/1906:
1344 * java/text/MessageFormat.java (setLocale): Use named class
1347 (format(Object,StringBuffer,FieldPosition)): Special case if
1348 argument is an Object[].
1350 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1352 * java/util/Arrays.java: Removed "cmp" methods.
1353 (qsort): Don't use "cmp".
1356 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1358 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1359 sort. Fix for PR java/1895.
1361 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1363 * configure.host: Use sjlj-exceptions for Alpha.
1365 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1367 * libgcj.spec.in: Don't force static libgcc into the executable.
1368 * configure.in (FORCELIBGCCSPEC): Removed.
1369 * configure: Rebuilt.
1371 2001-01-31 Tom Tromey <tromey@redhat.com>
1373 * Makefile.in: Rebuilt.
1374 * Makefile.am (LTCXXCOMPILE): New macro.
1376 2001-01-26 Andrew Haley <aph@redhat.com>
1378 (INIT_FPE): Use a direct system call to set the handler.
1380 2001-01-27 Richard Henderson <rth@redhat.com>
1382 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1384 2001-01-27 Tom Tromey <tromey@redhat.com>
1386 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1387 native interface structure.
1389 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1391 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1393 (read (byte[], int, int)): Only call readNextBlock() if the block
1394 buffer would actually be overrun. Increment blockDataPosition.
1395 (callReadMethod): Propagate exceptions from invocation target.
1396 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1397 exceptions from invocation target.
1399 2001-01-26 Tom Tromey <tromey@redhat.com>
1401 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1402 to internal representation.
1403 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1404 _Jv_FindClassFromSignature.
1406 2001-01-26 Warren Levy <warrenl@redhat.com>
1408 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1409 and timezone if they are available on the system.
1411 2001-01-24 Tom Tromey <tromey@redhat.com>
1413 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1415 2001-01-24 Tom Tromey <tromey@redhat.com>
1417 * Makefile.in: Rebuilt.
1418 * Makefile.am (c_source_files): Added sf_fabs.c.
1419 * java/lang/sf_fabs.c: New file.
1421 2001-01-19 Warren Levy <warrenl@redhat.com>
1423 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1424 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1425 correctly. Adjust properly from 0-23 clock hour.
1427 2001-01-17 Mark Wielaard <mark@klomp.org>
1429 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1431 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1433 * java/lang/Class.h (isInterface): Move implementation from
1434 natClass.cc. Declare inline.
1435 (Class): Add default constructor.
1436 * java/lang/Object.h: Update comments.
1437 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1438 initialize superclass, saving a call if super is already initialized.
1440 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1442 * prims.cc (init_prim_class): Deleted.
1443 (DECLARE_PRIM_TYPE): Rewritten.
1444 * java/lang/Class.h (stdio.h): Include removed.
1445 (stddef.h): Included.
1446 (java/lang/reflect/Modifier.h): Likewise.
1447 (Class): Contructor now takes arguments, initializes fields.
1448 (initializePrim): Prototype deleted.
1449 * java/lang/natClass.cc (initializePrim): Deleted.
1451 2001-01-16 Warren Levy <warrenl@redhat.com>
1453 * java/math/BigInteger.java: Update Copyright year.
1455 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1457 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1460 2001-01-14 Mark Wielaard <mark@klomp.org>
1461 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1462 (decode): Merge comments with Classpath, don't throw Exception
1464 2001-01-12 Tom Tromey <tromey@redhat.com>
1466 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1470 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1471 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1472 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1473 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1474 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1476 * java/lang/natSystem.cc: Include locale.h if it exists.
1477 * configure: Rebuilt.
1478 * configure.in: Check for locale.h.
1480 2001-01-11 Tom Tromey <tromey@redhat.com>
1482 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1483 (Cursor(int), getPredefinedCursor): Throw exception if argument
1486 2001-01-03 Tom Tromey <tromey@redhat.com>
1488 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1489 (getLocationOnScreen): Wrote.
1491 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1493 * Makefile.am: Re-enable dependencies.
1494 * Makefile.in: Rebuilt.
1496 2001-01-10 Warren Levy <warrenl@redhat.com>
1498 * java/math/BigDecimal.java (divide): Fixed comment.
1500 2001-01-10 Warren Levy <warrenl@redhat.com>
1502 Fix for PR libgcj/1596:
1503 * java/math/BigDecimal.java (divide): Check newScale for validity.
1504 Ensure that BigInteger.pow() is called with a non-negative value.
1505 (setScale (int)): New public method.
1506 (setScale (int,int)): New public method.
1508 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1510 Fix for PR libgcj/1338:
1511 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1512 commentChar. Fixed typos in comments.
1514 2001-01-08 Warren Levy <warrenl@redhat.com>
1516 Fix for PR libgcj/1411:
1517 * Makefile.am: Removed java/util/natTimeZone.cc.
1518 * Makefile.in: Rebuilt.
1519 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1520 missing localized timezone names.
1521 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1522 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1523 (init_properties): Set user.timezone property.
1524 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1525 default timezone names; removed non-standard ones. Use standard
1527 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1529 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1531 (getDefaultTimeZoneId): Removed.
1533 * java/util/natTimeZone.cc: Removed.
1535 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1537 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1538 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1539 (_Jv_GetArrayClass): New inline function.
1540 (arrayclass): New field.
1541 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1542 _Jv_GetArrayElementFromElementType.
1543 (_Jv_NewPrimArray): Ditto.
1544 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1545 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1546 Set Modifier::ABSTRACT.
1547 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1548 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1549 Now synchronized. Array classes are now referenced from
1550 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1551 Set array classes' accessibility flags correctly. Optimize so that
1552 all array classes share the same IDT.
1553 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1554 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1555 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1556 in superclasses from overwriting classes own fields.
1557 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1558 Modifier::isAbstract().
1559 (null_idt): New static field.
1560 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1562 (_Jv_IndexOf): Made inline.
1563 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1565 2001-01-08 Tom Tromey <tromey@redhat.com>
1567 Fix for PR java/1586:
1568 * Makefile.in: Rebuilt.
1569 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1571 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1573 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1574 from the c++ compiler.
1575 * Makefile.in: Rebuilt.
1577 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1579 All files with updated copyright.
1580 * prims.cc (class _Jv_PrimClass): Removed.
1581 (init_prim_class): New function.
1582 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1583 `_Jv_PrimClass' in primitive type declarations. Assign to the
1584 value returned by `init_prim_class.'
1585 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1586 primitive type declarations.
1587 (JvPrimClass): Cast to `jclass' removed.
1588 * java/lang/Class.h (Class): New constructor.
1589 (Class): New copy constructor.
1590 (initializePrim): New prototype.
1591 (_Jv_PrimClass): Field removed.
1592 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1593 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1594 (class java::lang::Object): `finalize' moved up front.
1595 * java/lang/natClass.cc
1596 (isAssignableFrom): Turned outline.
1597 (isInstance): Likewise.
1598 (isInterface): Likewise, fixed indentation.
1599 (initializePrim): New function.
1601 2001-01-07 Anthony Green <green@redhat.com>
1603 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1605 * Makefile.in: Rebuilt.
1607 * scripts/TexinfoDoclet.java: New file.
1609 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1610 doc/java-awt-color.texi, doc/java-lang.texi,
1611 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1612 doc/java-awt-event.texi, doc/java-net.texi,
1613 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1614 doc/java-awt-image.texi, doc/java-security.texi,
1615 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1616 doc/java-text.texi, doc/java-beans-beancontext.texi,
1617 doc/java-util-jar.texi, doc/java-beans.texi,
1618 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1619 doc/java-lang-ref.texi: New files.
1621 2001-01-07 Anthony Green <green@redhat.com>
1623 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1624 be used for both input and output, so don't clear doInput.
1626 * java/lang/StringBuffer.java: Fix comments.
1628 2001-01-06 Anthony Green <green@redhat.com>
1630 * java/beans/PropertyDescriptor.java: Fix comment.
1631 * java/io/PushbackReader.java: Fix comment.
1632 * java/io/ObjectStreamClass.java: Fix comment.
1633 * java/io/DataInputStream.java: Fix comment.
1634 * java/io/PipedInputStream.java: Fix comments.
1635 * java/io/PipedReader.java: Fix comments.
1636 * java/sql/DatabaseMetaData.java: Fix comments.
1638 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1640 * java/io/PipedReader: Synchronize on "lock" instead of this.
1642 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1644 * java/lang/Thread.java: Update comment.
1646 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1647 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1648 * java/io/PipedReader: New implementation based on new
1650 * java/io/PipedWriter: Updated to match new PipedReader.
1652 2001-01-03 Tom Tromey <tromey@redhat.com>
1654 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1655 (getViewportSize): Insets include scrollbar size.
1656 (doLayout): Finished.
1657 (getScrollPosition): Wrote.
1658 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1660 2001-01-02 Tom Tromey <tromey@redhat.com>
1662 * java/awt/ScrollPane.java: Wrote.
1663 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1666 * java/awt/Panel.java (Panel()): Fixed.
1668 * java/awt/Component.java (isShowing): Return false if no peer
1669 exists, and true if component is visible and no parent exists.
1670 (getLocationOnScreen): Wrote.
1671 (getPreferredSize): Removed FIXME comment.
1672 (getMinimumSize): Likewise.
1673 (getAlignmentX, getAlignmentY): Wrote.
1675 (requestFocus): Wrote.
1676 (transferFocus): Wrote.
1677 (findNextFocusComponent): New method.
1678 (hasFocus()): Wrote.
1679 (checkImage): Wrote.
1680 (enableEvents): Call setEventMask on the peer.
1682 * java/awt/Container.java (list): Use super.list() to print self.
1683 (findNextFocusComponent): New method.
1684 (setLayout): Call invalidate.
1685 (findComponentAt): Wrote.
1687 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1689 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1690 the correct versions of various linuxthreads functions get linked.
1691 * Makefile.in: Rebuilt.
1692 * java/lang/natThread.cc (finalize_native): New static function. Call
1693 _Jv_ThreadDestroyData.
1694 (initialize_native): Register finalizer for "data".
1695 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1696 (_Jv_ThreadDestroyData): New prototype.
1697 * include/win32-threads.h: Ditto.
1698 * include/no-threads.h: Ditto.
1699 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1700 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1701 move mutex and condition variable destroy code from:
1702 (really_start): ...here.
1703 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1704 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1705 (_Jv_ThreadDestroyData): Implemented.
1706 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1707 (_Jv_AllocArray): Ditto.
1709 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1711 * java/sql/DriverManager.java (getConnection): Don't set user/password
1714 2000-12-27 Warren Levy <warrenl@redhat.com>
1716 Fix for PR libgcj/1358:
1717 * java/lang/System.java: Update Copyright date properly.
1718 * java/util/Calendar.java: Fix typo in comment.
1719 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1720 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1721 initialize times. Spec says to set H:M:S values to zero only if
1723 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1724 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1725 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1726 timezones and GMT offsets, being careful to account for units of
1727 milliseconds vs. seconds.
1729 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1731 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1732 not be assigned to Object.
1734 Fix for PR libgcj/1516:
1735 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1737 (can_widen): Declared inline. Remove redundant checks for void
1738 arguments and char->short conversion. Add special case for boolean
1740 (ffi_type): Declared inline.
1741 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1743 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1745 * java/sql/SQLWarning.java: Fixed typo in comment.
1747 2000-12-26 Tom Tromey <tromey@redhat.com>
1749 * java/awt/MenuItem.java (paramString): Now protected.
1751 * java/awt/MenuShortcut.java: Implements Serializable.
1753 * java/awt/MenuBar.java: Rewrote from scratch.
1755 * java/awt/MenuComponent.java (removeNotify): Wrote.
1756 Implements Serializable.
1758 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1761 * java/awt/CheckboxMenuItem.java: Wrote.
1763 2000-12-25 Tom Tromey <tromey@redhat.com>
1765 * java/awt/MenuContainer.java: Fixed typo.
1767 * Makefile.in: Rebuilt.
1768 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1769 * java/awt/SystemColor.java: New file.
1771 * java/awt/Color.java (rgba): Now package-private.
1773 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1775 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1778 * java/awt/MenuItem.java (addNotify): New method.
1779 (MenuItem(String,MenuShortcut)): New constructor.
1780 (setLabel): Notify peer of change.
1781 (setEnabled): Likewise.
1783 * java/awt/GridLayout.java (toString): New method.
1785 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1786 (FlowLayout): Check for LEADING and TRAILING.
1787 (setAlignment): Likewise.
1788 (layoutContainer): Handle component orientation.
1790 * java/awt/Component.java (orientatin): New field.
1791 (setComponentOrientation): Wrote.
1792 (getComponentOrientation): Wrote.
1794 * java/awt/Event.java (Event): Implements Serializable.
1795 (consumed): New field for serialization.
1796 * java/awt/Dimension.java (Dimension): Implements Serializable.
1797 * java/awt/Cursor.java (Cursor): Implements Serializable.
1798 * java/awt/Container.java (Container): No longer abstract.
1800 * java/awt/Choice.java: Wrote.
1801 * java/awt/Checkbox.java: Wrote.
1802 * java/awt/ItemSelectable.java: Documented.
1803 * java/awt/CheckboxGroup.java: Wrote.
1805 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1807 (getSize): Likewise.
1809 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1811 * java/io/FileDescriptor.java: Initialize fd to -1.
1812 Remove default constructor.
1814 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1816 * java/lang/mprec.h: Change C9X reference to refer to C99.
1818 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1820 * java/lang/Throwable.java (trace_enabled): New static field.
1821 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1822 trace_enabled not set.
1823 * prims.cc (main_init): Turn off trace_enabled while creating
1824 default exception objects.
1826 2000-12-21 Tom Tromey <tromey@redhat.com>
1828 * java/beans/PropertyChangeListener.java: Extends EventListener.
1829 * java/beans/VetoableChangeListener.java: Extends EventListener.
1831 * java/util/zip/Deflater.java (update, init): Now private.
1833 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1835 * java/util/BasicMapEntry.java: Re-added.
1836 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1837 (putAll): Test for BasicMapEntry.
1838 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1839 (putAll): Test for BasicMapEntry.
1840 Change references from `HashMap.Entry' to `Entry' in various places.
1841 * Makefile.am: Add BasicMapEntry.java.
1842 * Makefile.in: Rebuilt.
1844 2000-12-18 Warren Levy <warrenl@redhat.com>
1846 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1847 need to set timezone to a valid non-null value. Partial fix for
1850 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1852 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1854 * java/awt/Button.java (addNotify): Likewise.
1855 * java/awt/Label.java (addNotify): Likewise.
1856 * java/awt/Panel.java (addNotify): Likewise.
1857 * java/awt/Scrollbar.java (addNotify): Likewise.
1858 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1859 Remove redundant null checks.
1861 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1863 * COPYING: Update to current
1864 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1865 to 19yy as example year in copyright notice).
1867 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1869 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1870 end-of-stream if avail_in is 0.
1872 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1874 * java/util/ArrayList.java (data): Declare transient.
1875 (serialPersistantFields): Removed.
1876 (readObject): Use defaultReadObject(), not readFields().
1877 (writeObject): Use defaultWriteObject(), not writeFields().
1879 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1881 * java/util/Hashtable.java (put): Remove `last' variable.
1882 Link new entry to head of list.
1883 * java/util/HashMap.java (put): Ditto.
1885 2000-12-15 Tom Tromey <tromey@redhat.com>
1887 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1888 loader to Class.forName.
1890 2000-12-14 Tom Tromey <tromey@redhat.com>
1892 * java/util/ResourceBundle.java
1893 (getBundle(String,Locale,ClassLoader)): New method.
1894 (trySomeGetBundle): Added `loader' argument.
1895 (partialGetBundle): Likewise.
1897 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1898 maximumFractionDigits, maximumIntegerDigits,
1899 minimumFractionDigits, minimumIntegerDigits): Now
1902 * java/lang/Thread.java (checkAccess): Now final.
1904 * java/lang/RuntimePermission.java: Class now final.
1906 * java/io/StringWriter.java (StringWriter(int)): Now public.
1908 * java/io/SerializablePermission.java (legal_names): Now private.
1910 * java/lang/Character.java: Updated UnicodeBlock constants.
1911 * scripts/blocks.pl: Special case private use and surrogate
1914 2000-12-12 Tom Tromey <tromey@redhat.com>
1916 * Makefile.in: Rebuilt.
1917 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1919 (GCJCOMPILE): Use it.
1922 2000-12-11 Tom Tromey <tromey@redhat.com>
1924 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1925 New static final fields.
1927 * scripts/classes.pl (scan): Skip lines with leading `*'.
1928 Fix for PR libgcj/378.
1930 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1932 * configure.in: Remove check for -fuse-divide-subroutine.
1933 * configure: Rebuilt.
1935 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1937 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1939 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1941 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1942 Remove BasicMapEntry.java and Bucket.java.
1943 * Makefile.in: Rebuilt.
1944 * java/util/HashMap.java: Rewritten.
1945 * java/util/HashSet.java: Imported from classpath.
1946 * java/util/WeakHashMap.java: Imported from classpath.
1947 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1948 * java/util/Bucket.java: Deleted.
1949 * java/util/BasicMapEntry.java: Deleted.
1950 * java/util/Collections.java (search): Use a for-loop, not iterator
1952 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1953 of elements in source.
1954 (max): Use a for-loop.
1956 (reverse): Keep track of positions instead of using Iterator's
1957 nextIndex() and previousIndex().
1958 (shuffle(List)): Initialize defaultRandom if required using
1959 double-check thread safety idiom. Call two-argument shuffle method
1960 using defaultRandom.
1961 (defaultRandom): New field.
1962 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1963 using previousIndex() and nextIndex().
1964 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1965 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1966 * java/util/AbstractMap.java (toString): Use StringBuffer.
1967 * java/lang/ref/PhantomReference.java: Imported from classpath.
1968 * java/lang/ref/SoftReference.java: Ditto.
1969 * java/lang/ref/Reference.java: Ditto.
1970 * java/lang/ref/WeakReference.java: Ditto.
1971 * java/lang/ref/ReferenceQueue.java: Ditto.
1973 2000-12-10 Richard Henderson <rth@redhat.com>
1975 * configure.host: Recognize alpha*-*, not alphaev6-*.
1977 2000-12-09 Anthony Green <green@redhat.com>
1979 * configure.host: Enable interpreter for Alpha.
1981 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1983 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1984 (ZIP): Points at fastjar instead of zip.
1985 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1986 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1987 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1988 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1989 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1990 ($(x_java_source_files:.java=.class):): Likewise.
1991 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1993 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1994 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1995 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1996 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1997 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1998 gnu/gcj/runtime/VMClassLoader.h:,
1999 java/io/ObjectInputStream$$GetField.h:,
2000 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2001 (Makefile.in): Rebuilt.
2003 2000-12-08 Tom Tromey <tromey@redhat.com>
2006 * configure: Rebuilt.
2007 * configure.in: Use echo, not `:', to create .d files.
2009 2000-12-08 Warren Levy <warrenl@redhat.com>
2011 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2012 NullPointerException so proper check of offset can be done.
2014 2000-12-08 Warren Levy <warrenl@redhat.com>
2016 * java/io/FileInputStream.java (close): Check if the fd is valid.
2017 * java/io/RandomAccessFile.java (close): Ditto.
2018 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2019 * java/net/PlainSocketImpl.java (close): Ditto.
2021 2000-12-06 Tom Tromey <tromey@redhat.com>
2023 * java/awt/GridBagConstraints.java: Filled in values for static
2026 * java/util/BitSet.java: Updated copyright notice.
2028 * Makefile.in: Rebuilt.
2029 * Makefile.am (awt_java_source_files): Added new file.
2030 * java/awt/GridBagConstraints.java: New file.
2032 2000-12-05 Tom Tromey <tromey@redhat.com>
2034 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2035 Now package-private, not protected.
2036 * java/text/DateFormatSymbols.java (equals): Now private.
2037 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2038 * java/util/BitSet.java: Class no longer final.
2040 2000-12-04 Warren Levy <warrenl@redhat.com>
2042 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2043 out code dependent on compiler and library changes.
2045 2000-12-04 Warren Levy <warrenl@redhat.com>
2047 * java/io/FilePermission.java: Made class final per spec.
2048 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2049 method name to match spec (fixed typo).
2050 * java/util/LinkedList.java: Implements List.
2052 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2054 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2055 Edgar Villanueva <edgarvil@home.com>.
2057 2000-12-03 Tom Tromey <tromey@redhat.com>
2059 * java/awt/geom/Point2D.java: Added protected constructor.
2060 (equals): New method.
2061 (Float.setLocation(float,float)): New method.
2062 * java/awt/geom/Dimension2D.java: Added protected constructor.
2063 * java/awt/geom/AffineTransform.java: Made all constants public.
2064 (concatenate): Fixed typo in name.
2065 * java/awt/event/WindowAdapter.java: Class now abstract.
2066 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2067 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2070 * java/awt/AWTError.java: Extend Error, not
2071 IllegalStateException.
2073 * Makefile.in: Rebuilt.
2074 * Makefile.am (awt_java_source_files): Added new file.
2075 * java/awt/geom/RoundRectangle2D.java: New file.
2077 * Makefile.in: Rebuilt.
2078 * Makefile.am (awt_java_source_files): Added new file.
2079 * java/awt/FlowLayout.java: New file.
2081 * Makefile.in: Rebuilt.
2082 * Makefile.am (awt_java_source_files): Added new file.
2083 * java/awt/GridLayout.java: New file.
2085 2000-12-02 Tom Tromey <tromey@redhat.com>
2087 * Makefile.in: Rebuilt.
2088 * Makefile.am (awt_java_source_files): Added new files.
2089 * java/awt/CardLayout.java: New file.
2090 * java/awt/AWTPermission.java: New file.
2092 2000-12-01 Tom Tromey <tromey@redhat.com>
2094 * java/util/Vector.java (insertElementAt): Unconditionally
2095 increment elementCount.
2096 (removeRange): Clear unused slots in vector.
2098 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2100 * java/lang/natMath.cc: Declare fabsf() function.
2101 * java/lang/mprec.h: Don't include math.h.
2102 * java/lang/dtoa.c: Include string.h.
2103 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2106 From Adam Welc <welc@cs.purdue.edu>:
2107 * java/util/LinkedList.java (removeFirst): Update `first' field.
2108 Handle the last == first case.
2109 (removeLast): Update `last' field. Handle the last == first case.
2111 2000-12-01 Warren Levy <warrenl@cygnus.com>
2113 * Makefile.am: Added entries for new java.sql modules.
2114 * Makefile.in: Rebuilt.
2116 2000-12-01 Warren Levy <warrenl@cygnus.com>
2118 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2119 that aren't quite 1.2 compatible yet.
2121 2000-11-30 Warren Levy <warrenl@cygnus.com>
2123 * java/sql/Array.java: New file from classpath.
2124 * java/sql/BatchUpdateException.java: Ditto.
2125 * java/sql/Blob.java: Ditto.
2126 * java/sql/Clob.java: Ditto.
2127 * java/sql/Ref.java: Ditto.
2128 * java/sql/SQLData.java: Ditto.
2129 * java/sql/SQLInput.java: Ditto.
2130 * java/sql/SQLOutput.java: Ditto.
2131 * java/sql/Struct.java: Ditto.
2132 * java/sql/CallableStatement.java: Merged file from claspath.
2133 * java/sql/Connection.java: Ditto.
2134 * java/sql/DataTruncation.java: Ditto.
2135 * java/sql/DatabaseMetaData.java: Ditto.
2136 * java/sql/DriverManager.java: Ditto.
2137 * java/sql/PreparedStatement.java: Ditto.
2138 * java/sql/ResultSet.java: Ditto.
2139 * java/sql/ResultSetMetaData.java: Ditto.
2140 * java/sql/SQLException.java: Ditto.
2141 * java/sql/SQLWarning.java: Ditto.
2142 * java/sql/Statement.java: Ditto.
2143 * java/sql/Types.java: Ditto.
2145 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2147 * java/lang/natSystem.cc (init_properties): Set user.language and
2149 * configure.in: Check for setlocale.
2150 * configure: Rebuilt.
2151 * include/config.h.in: Rebuilt.
2153 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2154 the infate() call didn't deliver any output. Throw a ZipException if
2155 the needsDictionary() call returns true.
2156 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2157 * java/io/InputStreamReader: Use the default buffer size for the
2158 contained BufferedInputStream.
2160 2000-11-28 Warren Levy <warrenl@cygnus.com>
2162 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2163 more time zone entries.
2164 * java/text/SimpleDateFormat.java (format): Added case for
2167 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2169 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2170 directly rather than read() in all cases. Make primitive read
2171 implementations more efficient, as defined in JDK online docs.
2172 (skipBytes): Behave like the JDK's implementation.
2173 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2174 closed stream with checkStatus() whenever an IOException can be
2176 (checkStatus): New private method.
2178 2000-11-27 Warren Levy <warrenl@cygnus.com>
2180 * Makefile.am: Added natTimeZone.cc.
2181 * Makefile.in: Rebuilt.
2182 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2183 * java/text/DateFormatSymbols.java (ampms): Made package private.
2184 (eras): Made package private.
2185 (months): Made package private.
2186 (shortMonths): Made package private.
2187 (shortWeekdays): Made package private.
2188 (weekdays): Made package private.
2189 (formatPrefixes): New private field.
2190 (localPatternCharsDefault): Made private.
2191 (dateFormats): New package private field.
2192 (timeFormats): New package private field.
2193 (formatsForKey): New private method.
2194 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2195 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2196 * java/text/SimpleDateFormat.java: Merged with Classpath.
2197 * java/util/TimeZone.java: Merged with Classpath.
2198 * java/util/natTimeZone.cc: New file.
2200 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2202 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2203 (addElement): Don't increment elementCount twice. Doh.
2204 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2205 array needs to be expanded.
2207 * java/util/Collections.java (UnmodifiableCollection): Implement
2209 (UnmodifiableList): Throw UnsupportedOperationException from
2210 modification methods. Set `l' from the one-parameter constructor.
2211 (UnmodifiableMap): Implement toString().
2212 (SynchronizedCollection): Ditto.
2213 (SynchronizedList): Set `l' from the one-parameter constructor.
2214 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2215 (SynchronizedMap): Implement toString().
2217 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2219 * javax/naming/NameParser.java,
2220 javax/naming/directory/AttributeInUseException.java,
2221 javax/naming/directory/AttributeModificationException.java,
2222 javax/naming/directory/InvalidAttributeIdentifierException.java,
2223 javax/naming/directory/InvalidAttributesException.java,
2224 javax/naming/directory/InvalidAttributeValueException.java,
2225 javax/naming/directory/InvalidSearchControlsException.java,
2226 javax/naming/directory/InvalidSearchFilterException.java,
2227 javax/naming/directory/NoSuchAttributeException.java,
2228 javax/naming/directory/SchemaViolationException.java: New files.
2230 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2232 * javax/naming/InitialContext.java (rebind): Implement.
2233 (unbind): Implement.
2234 (rename): Implement.
2236 (listBindings): Implement.
2237 (destroySubcontext): Implement.
2238 (createSubcontext): Implement.
2239 (lookupLink): Implement.
2240 (getNameParser): Implement.
2241 (composeName): Implement.
2242 (addToEnvironment): Implement.
2244 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2246 * javax/naming/AuthenticationException.java,
2247 javax/naming/AuthenticationNotSupportedException.java,
2248 javax/naming/CannotProceedException.java,
2249 javax/naming/CommunicationException.java,
2250 javax/naming/ConfigurationException.java,
2251 javax/naming/ContextNotEmptyException.java,
2252 javax/naming/InsufficientResourcesException.java,
2253 javax/naming/InterruptedNamingException.java,
2254 javax/naming/InvalidNameException.java,
2255 javax/naming/LimitExceededException.java,
2256 javax/naming/LinkException.java,
2257 javax/naming/LinkLoopException.java,
2258 javax/naming/MalformedLinkException.java,
2259 javax/naming/NameAlreadyBoundException.java,
2260 javax/naming/NameNotFoundException.java,
2261 javax/naming/NamingSecurityException.java,
2262 javax/naming/NoPermissionException.java,
2263 javax/naming/NotContextException.java,
2264 javax/naming/PartialResultException.java,
2265 javax/naming/ReferralException.java,
2266 javax/naming/ServiceUnavailableException.java,
2267 javax/naming/SizeLimitExceededException.java,
2268 javax/naming/TimeLimitExceededException.java: New files.
2270 * javax/naming/Name.java (clone): New method.
2271 (compareTo): New method.
2272 (isEmpty): New method.
2273 (getAll): New method.
2274 (getPrefix): New method.
2275 (getSuffix): New method.
2276 (startsWith): New method.
2277 (endsWith): New method.
2278 (addAll): New method.
2279 (addAll): New method.
2282 (remove): New method.
2284 * javax/naming/Context.java (lookup): New method.
2285 (rebind): New method.
2286 (unbind): New method.
2287 (rename): New method.
2289 (listBindings): New method.
2290 (destroySubcontext): New method.
2291 (createSubcontext): New method.
2292 (lookupLink): New method.
2293 (getNameParser): New method.
2294 (composeName): New method.
2295 (addToEnvironment): New method.
2296 (removeFromEnvironment): New method.
2297 (getEnvironment): New method.
2298 (close): New method.
2299 (getNameInNamespace): New method.
2301 * javax/naming/InitialContext.java (lookup): New method.
2302 (rebind): New method.
2303 (unbind): New method.
2304 (rename): New method.
2306 (listBindings): New method.
2307 (destroySubcontext): New method.
2308 (createSubcontext): New method.
2309 (lookupLink): New method.
2310 (getNameParser): New method.
2311 (composeName): New method.
2312 (addToEnvironment): New method.
2313 (removeFromEnvironment): New method.
2314 (getEnvironment): New method.
2315 (close): New method.
2316 (getNameInNamespace): New method.
2318 2000-11-26 Tom Tromey <tromey@cygnus.com>
2320 * Makefile.in: Rebuilt.
2321 * Makefile.am (core_java_source_files): Added
2322 RuntimePermission.java.
2323 * java/lang/RuntimePermission.java: Imported from Classpath.
2324 * java/lang/Thread.java (getContextClassLoader): Now
2325 synchronized. Added security code.
2326 (setContextClassLoader): Likewise.
2328 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2329 length field of array.
2330 (_Jv_NewPrimArray): Likewise.
2331 * gcj/array.h (__JArray): `length' field now const. Added
2334 2000-11-26 Anthony Green <green@redhat.com>
2336 * javax/naming/spi/NamingManager.java,
2337 javax/naming/spi/ObjectFactory.java,
2338 javax/naming/spi/InitialContextFactory.java,
2339 javax/naming/spi/InitialContextFactoryBuilder.java,
2340 javax/naming/RefAddr.java, javax/naming/Reference.java,
2341 javax/naming/NamingException.java, javax/naming/Context.java,
2342 javax/naming/Referenceable.java,
2343 javax/naming/directory/InitialDirContext.java,
2344 javax/naming/directory/DirContext.java,
2345 javax/naming/directory/Attributes.java,
2346 javax/naming/directory/Attribute.java,
2347 javax/naming/StringRefAddr.java,
2348 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2349 javax/naming/InitialContext.java,
2350 javax/naming/NoInitialContextException.java: New files.
2352 2000-11-25 Anthony Green <green@redhat.com>
2354 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2355 (_Jv_NewPrimArray): Likewise.
2356 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2357 (class JArray): Removed constructor.
2359 * java/lang/Thread.java (context_class_loader): New private data.
2360 (getContextClassLoader): New method.
2361 (setContextClassLoader): New method.
2362 (Thread): Initialize context_class_loader.
2364 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2365 (getResource): Rename to findResource.
2366 (findResource): New method. Used to be getResource.
2367 (getResourceAsStream): Deleted.
2368 (jarFileize): Extracted logic from URLClassLoader constructor into
2369 this new private method.
2370 (addURL): New protected method.
2371 (URLClassLoader): Call jarFileize. Use addElement instead of
2373 (findResources): New method.
2375 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2376 (getResource): Implement correct logic.
2377 (findResource): New method.
2378 (getResources): New method.
2379 (findClass): Create a ClassNotFoundException with the name of the
2380 class rather than nothing at all.
2381 (defineClass) Only throw ClassFormatError.
2383 * java/lang/Class.java (forName): New method.
2384 * java/lang/Class.h (forName): New method.
2385 * java/lang/natClass.cc (forName): New method.
2387 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2389 * java/lang/System.java (setProperties): Only call init_properties()
2390 if properties is null.
2391 (getProperties): Ditto.
2392 (getProperty): Ditto.
2393 (setProperty): Call init_properties if properties are null.
2394 (prop_init): Remove field.
2395 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2396 method. Check for null properties after synchronizing instead of
2397 prop_init flag. Set the properties field last for thread safety.
2399 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2400 test for gcj.dumpobjects property and enable object stream dumping
2402 (dumpElement): No longer native.
2403 (dumpElementln): Ditto.
2404 (setDump): Do not define.
2405 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2406 (dumpElementln): Removed.
2409 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2411 * configure: Rebuilt.
2412 * Makefile.in: Rebuilt.
2413 * Makefile.am (built_java_source_files): Add Configuration.java.
2414 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2415 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2416 Create `gnu' directory in the build tree.
2417 * gnu/classpath/Configuration.java.in: New file.
2419 2000-11-24 Tom Tromey <tromey@cygnus.com>
2421 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2423 (_Jv_NewPrimArray): Likewise.
2425 * gcj/array.h (__JArray): `length' field now const. Added
2427 (class JArray): Added constructor.
2429 2000-11-23 Mark Wielaard <mark@klomp.org>
2431 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2434 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2436 * java/util/Vector.java: Improve exception messages.
2437 (Vector): Check initialCapacity for IllegalArgumentException.
2438 (tromToSize): Don't check for elementCount == elementData.length
2440 (toArray): Don't try to set null marker if target array is the same
2441 length as the vector.
2443 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2445 * Makefile.in: Rebuilt.
2446 * Makefile.am (core_java_source_files): Added Collections.java.
2447 * java/util/List.java: Merged from classpath.
2448 * java/util/Vector.java: Ditto.
2449 * java/util/Collections.java: From classpath.
2450 * java/util/ArrayList.java (addAll(Collection)): Call
2451 addAll(int,Collection) instead of duplicating code.
2452 (indexOf): Clean up int initialization.
2453 (clear): Set cleared array entries to null, to allow garbage
2455 * java/util/List.java: Minor formatting fixes.
2456 * java/util/SimpleTimeZone.java: ditto.
2458 2000-11-18 Tom Tromey <tromey@cygnus.com>
2460 * Makefile.in: Rebuilt.
2461 * Makefile.am (core_java_source_files): Added new files.
2462 * java/lang/reflect/ReflectPermission.java: New class.
2463 * java/io/FileFilter.java: From Classpath
2464 * java/io/FilePermission.java: From Classpath.
2466 2000-11-17 Tom Tromey <tromey@cygnus.com>
2468 * java/lang/reflect/AccessibleObject.java (isAccessible,
2469 setAccessible): Now public.
2471 * java/lang/natString.cc: Include Locale.h.
2472 (toUpperCase): Added `locale' argument. Handle locale
2474 (toLowerCase): Added `locale' argument. Handle locale
2476 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2477 CAPITAL_I): New defines.
2478 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2481 (toUpperCase, toLowerCase): New methods. Variants which accept
2484 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2487 * java/util/PropertyPermission.java: Re-merged from Classpath.
2489 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2491 * java/text/StringCharacterIterator.java: Reindented.
2492 (setText): New method.
2494 2000-11-17 Mark Wielaard <mark@klomp.org>
2496 Merge with Classpath (changes by Bryce McKinlay)
2497 * java/util/jar/*.java: Reformat all to unofficial standard coding
2498 style. No changes of substance.
2500 2000-11-17 Mark Wielaard <mark@klomp.org>
2502 * java/util/zip/*.java: Javadoc updates.
2504 2000-11-17 Tom Tromey <tromey@cygnus.com>
2506 * java/text/CollationKey.java: Implement Comparable.
2507 (compareTo(Object)): New method.
2508 * java/text/Collator.java (compare(Object,Object)): New method.
2509 Implement Comparator.
2511 * java/util/zip/InflaterInputStream.java (available): New method.
2512 (close): New method.
2513 (read, available, skip, fill): Throw exception if stream closed.
2514 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2515 getNextEntry): Throw exception if closed.
2517 2000-11-16 Tom Tromey <tromey@cygnus.com>
2519 * java/io/PushbackReader.java: Merged with Classpath.
2520 * java/util/Arrays.java: Updated from Classpath.
2522 * scripts/blocks.pl: New file.
2523 * java/lang/Character.java (Subset): New class.
2524 (UnicodeBlock): New class.
2526 * java/lang/Math.java (toDegrees, toRadians): New methods.
2528 * java/lang/Float.java: Implement Comparable.
2529 (compareTo): New methods.
2530 * java/lang/Double.java: Implement Comparable.
2531 (compareTo): New methods.
2533 2000-11-16 Warren Levy <warrenl@cygnus.com>
2535 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2537 (listeners): Made transient.
2538 (source): Renamed from 'bean'.
2539 (children): New field for serialization.
2540 (propertyChangeSupportSerializedDataVersion): Ditto.
2541 (serialVersionUID): Ditto.
2542 (writeObject): New serialization method.
2543 (readObject): New serialization method.
2544 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2546 (listeners): Made transient.
2547 (source): Renamed from 'bean'.
2548 (children): New field for serialization.
2549 (vetoableChangeSupportSerializedDataVersion): Ditto.
2550 (serialVersionUID): Ditto.
2551 (writeObject): New serialization method.
2552 (readObject): New serialization method.
2553 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2554 to allow constructor to have a return type (i.e. the class that the
2555 constructor constructs).
2557 2000-11-14 Tom Tromey <tromey@cygnus.com>
2559 * Makefile.in: Rebuilt.
2560 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2563 2000-11-02 Warren Levy <warrenl@cygnus.com>
2565 * java/io/ObjectInputStream.java (readObject): Added code to
2566 conditionally dump out the serialized data.
2567 Handle ENDBLOCKDATA case a bit more gracefully since the current
2568 behavior doesn't seem to work as expected.
2569 (readStreamHeader): Added code for serialized data dumper.
2570 (readNextBlock): Ditto.
2571 (readFields): Ditto.
2572 (dump): New private static field for turning on/off dumper.
2573 (setDump): New native method.
2574 (dumpElement): New native method.
2575 (dumpElementln): New native method.
2576 * java/io/natObjectInputStream.cc (setDump): New method.
2577 (dumpElement): New method.
2578 (dumpElementln): New method.
2580 2000-11-02 Warren Levy <warrenl@cygnus.com>
2582 * java/net/InetAddress.java (addr): Renamed from 'address'.
2583 (address): New field to match Serialized Form doc.
2584 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2585 (family): New serialization field.
2586 (serialVersionUID): New field.
2587 (readObject): New method.
2588 (writeObject): New method.
2589 (getFamily): New native method.
2590 (InetAddress): Set family.
2591 * java/net/natInetAddress.cc (getFamily): New method.
2592 (addr): Renamed from 'address'.
2593 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2594 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2595 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2597 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2599 * java/util/AbstractList.java (SubList): Make it a top-level private
2601 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2603 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2604 * Makefile.in: Rebuilt.
2606 2000-11-02 Tom Tromey <tromey@cygnus.com>
2608 * Makefile.in: Rebuilt.
2609 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2612 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2614 * java/util/AbstractList.java (remove): Comment out modCount increment
2615 to work around compiler bug.
2618 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2620 * java/util/AbstractList.java: Throw messages with
2621 IndexOutOfBoundsExceptions.
2622 (listIterator()): Call listIterator(0).
2623 (size): New field. Initialize to size().
2624 (hasNext): Test position against size, not size().
2625 (remove): Increment knownMod by one instead of resetting it from
2628 (SubList.upMod): Removed.
2629 (SubList.set): Don't call upMod() or update knownMod.
2630 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2631 (SubList.remove): Ditto.
2632 (SubList.addAll): Don't call backingList.size(). Increment size from
2634 (SubList.iterator): New method. Call listIterator(0).
2635 (SubList.listIterator): New method. Restore code to return an anonymous
2636 listIterator implementation (with some changes).
2637 * java/util/AbstractSequentialList.java: Throw messages with
2638 IndexOutOfBoundsExceptions.
2639 (addAll): Add a specnote.
2640 * java/util/ArrayList.java (removeRange): Get the math right.
2641 (addAll): Increment modCount _before_ creating iterator.
2642 * java/util/LinkedList.java: Rewritten, mostly.
2644 2000-11-01 Tom Tromey <tromey@cygnus.com>
2646 * scripts/encodings.pl: Added `ASCII' alias.
2647 * Makefile.in: Rebuilt.
2648 * Makefile.am (convert_source_files): Added new files.
2649 * gnu/gcj/convert/Input_ASCII.java: New file.
2650 * gnu/gcj/convert/Output_ASCII.java: New file.
2651 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2652 out-of-range characters.
2653 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2654 (read): Swap bytes if required. Treat `count' as character count,
2656 (write): Likewise. Also, handle case where iconv fails on a given
2658 (init): Put encoding into exception.
2659 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2660 (static): Call iconv_init. Rebuilt alias list.
2661 (iconv_init): New private method.
2663 2000-11-01 Tom Tromey <tromey@cygnus.com>
2665 * Makefile.in: Rebuilt.
2666 * Makefile.am (install-exec-hook): Only make a single symlink, and
2667 remove the destination before making the link.
2668 * configure: Rebuilt.
2669 * configure.in: Call AC_PROG_LN_S.
2671 2000-10-31 Warren Levy <warrenl@cygnus.com>
2673 * jni.cc: Added include of java/lang/ThreadGroup.h.
2674 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2675 per change of 2000-10-05.
2677 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2679 * java/util/BitSet.java: Updated @specnote.
2681 * java/io/Reader.java: Merge docs from classpath.
2682 (skip): Synchronize on `lock'.
2683 * java/io/FileReader.java: Import correct implementation from
2685 * java/io/StringReader.java: Merge docs from classpath.
2686 (ready): Throw IOException if stream is closed.
2688 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2690 * java/util/AbstractCollection.java (addAll): Use size() instead of
2691 hasNext() in iterator loop.
2693 (contains): Ditto. Simplify loop.
2694 (containsAll): Ditto.
2699 (toString): Ditto. Use string concatenation operators, not
2701 * java/util/AbstractList.java (addAll): Use size() instead of
2702 hasNext() in iterator loop.
2705 (indexOf): Ditto. Don't take null check outside of the loop.
2706 (iterator): Return an AbstractListItr instead of anonymous class.
2707 (lastIndexOf): Use a for loop bounded by size() instead of
2708 hasPrevious() in iterator loop.
2709 (listIterator): Return an AbstractListItr.
2710 (removeRange): Remove bounds checking code and docs.
2711 (AbstractListItr): New inner class. Code moved here from
2713 (SubList.iterator): Removed. Use default implementation from
2714 AbstractList instead.
2715 (SubList.listIterator): As above.
2716 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2717 instead of hasNext() in iterator loop.
2718 (containsValue): Ditto.
2724 (toString): Ditto. Use string concatenation operators, not
2726 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2727 bounded by size() instead of hasNext() in iterator loop.
2728 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2729 part of normal execution flow. Do an explicit null check instead.
2730 * java/util/ArrayList.java (_iSize): Rename to `size'.
2731 (_arData): Rename to `data'.
2732 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2735 (removeRange): Make protected. Don't check bounds.
2736 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2738 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2740 (addAll (int, Collection)): Check lower bounds. Simplify exception
2742 (clone): Clone the data array too.
2743 (indexOf): Inline doesEqual().
2744 (lastIndexOf): Ditto.
2745 (clear): Don't set array data to null.
2746 (set): Check lower bounds. Simplify exception string.
2747 (toArray): Correct comment.
2748 (trimToSize): Don't update modCount, this is not a structural change.
2751 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2753 (toString): Declare `bit' as long, not int.
2754 (data): Made package-private, not private.
2756 2000-10-27 Warren Levy <warrenl@cygnus.com>
2758 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2759 array elements to true.
2761 2000-10-27 Warren Levy <warrenl@cygnus.com>
2763 * Makefile.am: Added locale files from Classpath.
2764 * Makefile.in: Rebuilt.
2765 * gnu/java/locale/Calendar.java: New file.
2766 * gnu/java/locale/Calendar_de.java: New file.
2767 * gnu/java/locale/Calendar_en.java: New file.
2768 * gnu/java/locale/Calendar_nl.java: New file.
2769 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2770 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2771 serialization compatibility.
2772 (scale): Made private.
2773 (serialVersionUID): New field.
2774 * java/math/BigInteger.java (ival): Made transient.
2775 (words): Made transient.
2776 (bitCount): New serialization field.
2778 (firstNonzeroByteNum): Ditto.
2779 (lowestSetBit): Ditto.
2782 (serialVersionUID): New field.
2783 (readObject): New method.
2784 (writeObject): New method.
2785 * java/util/BitSet.java (serialVersionUID): New field.
2786 * java/util/Calendar.java: Replaced with Classpath file.
2787 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2788 of getDefault() for TimeZone or Locale instead of passing nulls.
2789 * java/util/Locale.java (serialVersionUID): New field.
2790 (writeObject): New method.
2791 (readObject): New method.
2792 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2794 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2796 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2797 (core_java_source_files): Put java.lang, java.io, and java.util here.
2798 (ordinary_java_source_files): Order so that core_java_source_files are
2800 (java_source_files): Reorder so that special_java_source_files are
2802 * configure.in: Don't pass -I flag to gcj.
2803 * Makefile.in: Rebuilt.
2804 * configure: Rebuilt.
2806 2000-10-25 Tom Tromey <tromey@cygnus.com>
2808 * Makefile.in: Rebuilt.
2809 * Makefile.am (install-exec-hook): New target.
2811 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2813 * java/util/EventObject.java: Merged from classpath.
2815 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2818 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2820 * java/util/AbstractSet.java (equals): Re-installed original code.
2822 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2824 * Makefile.am: Added rules for libgcjx library.
2825 * Makefile.in: Rebuilt.
2826 * configure.in: Added check for X.
2827 * configure: Rebuilt.
2828 * gnu/awt/LightweightRedirector.java: New file.
2829 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2830 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2831 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2832 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2833 * gnu/awt/j2d/MappedRaster.java: New file.
2834 * gnu/awt/xlib/XCanvasPeer.java: New file.
2835 * gnu/awt/xlib/XEventLoop.java: New file.
2836 * gnu/awt/xlib/XEventQueue.java: New file.
2837 * gnu/awt/xlib/XFontMetrics.java: New file.
2838 * gnu/awt/xlib/XFramePeer.java: New file.
2839 * gnu/awt/xlib/XGraphics.java: New file.
2840 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2841 * gnu/awt/xlib/XPanelPeer.java: New file.
2842 * gnu/awt/xlib/XToolkit.java: New file.
2843 * gnu/gcj/xlib/Clip.java: New file.
2844 * gnu/gcj/xlib/Colormap.java: New file.
2845 * gnu/gcj/xlib/Display.java: New file.
2846 * gnu/gcj/xlib/Drawable.java: New file.
2847 * gnu/gcj/xlib/Font.java: New file.
2848 * gnu/gcj/xlib/GC.java: New file.
2849 * gnu/gcj/xlib/Pixmap.java: New file.
2850 * gnu/gcj/xlib/Screen.java: New file.
2851 * gnu/gcj/xlib/Visual.java: New file.
2852 * gnu/gcj/xlib/WMSizeHints.java: New file.
2853 * gnu/gcj/xlib/Window.java: New file.
2854 * gnu/gcj/xlib/WindowAttributes.java: New file.
2855 * gnu/gcj/xlib/XAnyEvent.java: New file.
2856 * gnu/gcj/xlib/XButtonEvent.java: New file.
2857 * gnu/gcj/xlib/XColor.java: New file.
2858 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2859 * gnu/gcj/xlib/XConnectException.java: New file.
2860 * gnu/gcj/xlib/XEvent.java: New file.
2861 * gnu/gcj/xlib/XException.java: New file.
2862 * gnu/gcj/xlib/XExposeEvent.java: New file.
2863 * gnu/gcj/xlib/XID.java: New file.
2864 * gnu/gcj/xlib/XImage.java: New file.
2865 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2866 * gnu/gcj/xlib/natClip.cc: New file.
2867 * gnu/gcj/xlib/natColormap.cc: New file.
2868 * gnu/gcj/xlib/natDisplay.cc: New file.
2869 * gnu/gcj/xlib/natDrawable.cc: New file.
2870 * gnu/gcj/xlib/natFont.cc: New file.
2871 * gnu/gcj/xlib/natGC.cc: New file.
2872 * gnu/gcj/xlib/natPixmap.cc: New file.
2873 * gnu/gcj/xlib/natScreen.cc: New file.
2874 * gnu/gcj/xlib/natVisual.cc: New file.
2875 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2876 * gnu/gcj/xlib/natWindow.cc: New file.
2877 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2878 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2879 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2880 * gnu/gcj/xlib/natXColor.cc: New file.
2881 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2882 * gnu/gcj/xlib/natXException.cc: New file.
2883 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2884 * gnu/gcj/xlib/natXImage.cc: New file.
2885 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2886 * java/awt/EventDispatchThread.java: Start thead on creation.
2888 2000-10-20 Tom Tromey <tromey@cygnus.com>
2890 From Arno J. Klaassen:
2891 * interpret.cc: Include <stdlib.h> for alloca.
2892 * defineclass.cc: Include <stdlib.h> for alloca.
2894 * Makefile.in: Rebuilt.
2895 * Makefile.am: Include deps.mk.
2896 (GCJCOMPILE): Added -MD, -MT, and -MF.
2897 ($(javao_files)): Don't depend on libgcj.zip.
2898 (all-recursive): New target.
2899 (%.lo:%.cc): Do dependency tracking.
2900 ($(nat_headers)): Don't depend on libgcj.zip.
2901 * configure: Rebuilt.
2902 * configure.in: Make .d files and deps.mk.
2904 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2906 * exception.cc: Don't #include "exception".
2907 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2909 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2910 * Makefile.in: Updated.
2912 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2914 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2915 * java/awt/peer/ComponentPeer.java (disable): Removed.
2918 (minimumSize): Removed.
2919 (preferredSize): Removed.
2922 * java/awt/peer/ListPeer.java (addItem): Removed.
2924 (minimumSize): Removed.
2925 (preferredSize): Removed.
2926 (setMultipleSelections): Removed.
2927 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2928 (remove): Renamed from removeMenu.
2929 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2931 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2932 (remove): Renamed from removeItem.
2933 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2934 (getMinimumSize): Removed.
2935 (getPreferredSize): Removed.
2936 (minimumSize): Removed.
2937 (preferredSize): Removed.
2938 (replaceText): Removed.
2939 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2940 (preferredSize): Removed.
2941 (getMinimumSize): Removed.
2942 (getPreferredSize): Removed.
2943 (setEchoCharacter): Removed.
2945 2000-10-10 Warren Levy <warrenl@cygnus.com>
2947 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2948 * java/sql/Date.java (serialVersionUID): New field.
2949 * java/sql/Time.java (serialVersionUID): New field.
2950 * java/sql/Timestamp.java (serialVersionUID): New field.
2951 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2952 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2953 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2954 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2955 (readObject): New serialization method.
2956 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2957 (serialVersionOnStream): New field.
2958 (readObject): New serialization method.
2959 (getMonetaryDecimalSeparator): New method.
2960 (setMonetaryDecimalSeparator): New method.
2961 * java/text/NumberFormat.java (maxFractionDigits): New field.
2962 (maxIntegerDigits): New field.
2963 (minFractionDigits): New field.
2964 (minIntegerDigits): New field.
2965 (serialVersionOnStream): New field.
2966 (serialVersionUID): New field.
2967 (readObject): New serialization method.
2968 (writeObject): New serialization method.
2969 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2970 (serialVersionOnStream): New field.
2971 (serialVersionUID): New field.
2972 (readObject): New serialization method.
2974 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2976 * configure.in (GCJ): Avoid bogus error message when looking for
2977 (and not finding) gcj in the build tree.
2978 * configure: Rebuilt.
2980 2000-10-09 Tom Tromey <tromey@cygnus.com>
2982 * configure: Rebuilt.
2983 * configure.in: Include sys/types.h when checking for socklen_t.
2984 From Arno J. Klaassen.
2986 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2988 * include/jvm.h: Enable __builtin_expect().
2990 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2991 the main program. Fix for PR libgcj/341.
2993 2000-10-07 Tom Tromey <tromey@cygnus.com>
2995 * java/util/Properties.java: Merged with Classpath version.
2997 2000-10-05 Tom Tromey <tromey@cygnus.com>
2999 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3000 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3001 * java/lang/Class.h (Object): Added `class$' field.
3002 * java/lang/Object.h (Object): Added `class$' field.
3003 * defineclass.cc (ClassClass): Use `class$' form.
3004 (ClassObject): Likewise.
3005 * resolve.cc (ClassObject): Use `class$' form.
3006 (ObjectClass): Likewise.
3007 * interpret.cc (ClassError): Removed.
3008 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3010 (IntegerClass): Likewise.
3011 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3013 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3014 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3015 SerializableClass): Likewise.
3016 Include Serializable.h, Cloneable.h.
3017 * java/lang/natSystem.cc (SystemClass): Removed.
3018 (init_properties): Use `class$' form.
3019 * java/lang/natObject.cc (CloneableClass): Removed.
3020 (clone): Use `class$' form.
3021 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3022 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3023 ConstructorClass): Likewise.
3024 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3025 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3026 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3027 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3029 (ClassClass): Likewise.
3030 * include/jvm.h (StringClass): Use `class$' form.
3031 * prims.cc (ObjectClass): Removed.
3032 (_Jv_RunMain): Use `class$' form.
3033 (_Jv_AllocObject): Likewise.
3034 * jni.cc (ClassClass): Use `class$' form.
3035 (ThrowableClass): Likewise.
3036 (ObjectClass): Likewise.
3037 (MethodClass): Likewise.
3038 (ThreadGroupClass): Likewise.
3039 (NativeThreadClass): Likewise.
3040 * boehm.cc (ObjectClass): Removed.
3041 (ClassClass): Removed.
3042 (_Jv_MarkObj): Use `class$' form.
3043 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3046 2000-10-05 Warren Levy <warrenl@cygnus.com>
3048 * Makefile.am: Removed java/io/Replaceable.java and
3049 java/io/Resolvable.java.
3050 * Makefile.in: Rebuilt.
3051 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3053 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3055 (processResolution): Handle readResolve method via reflection with
3056 removal of Resolvable interface.
3057 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3058 method via reflection with removal of Replaceable interface.
3059 * java/io/Replaceable.java: Removed.
3060 * java/io/Resolvable.java: Removed.
3061 * java/security/Key.java (serialVersionUID): New field.
3062 * java/security/Provider.java (serialVersionUID): New field.
3063 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3065 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3067 * java/sql/DataTruncation.java (serialVersionUID): New field.
3068 * java/sql/SQLException.java (serialVersionUID): New field.
3069 * java/sql/SQLWarning.java (serialVersionUID): New field.
3070 * java/util/Date.java (serialVersionUID): New field.
3071 (millis): Made transient.
3072 (readObject): New method.
3073 (writeObject): New method.
3075 2000-10-05 Tom Tromey <tromey@cygnus.com>
3077 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3079 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3081 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3082 (JvRunMain): Set _Jv_argv and _Jv_argc.
3083 * java/awt/Component.java: Minor fixes.
3084 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3085 * java/awt/Toolkit.java (systemEventQueue): Removed.
3086 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3087 * java/awt/Window.java (getToolkit): Don't call super.
3088 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3089 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3090 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3091 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3092 * gnu/awt/gtk/GtkFramePeer.java: New file.
3093 * gnu/awt/gtk/GtkMainThread.java: New file.
3094 * gnu/awt/gtk/GtkToolkit.java: New file.
3095 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3096 * gnu/awt/gtk/gtkcommon.cc: New file.
3097 * gnu/awt/gtk/gtkcommon.h: New file.
3098 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3099 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3100 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3101 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3102 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3103 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3105 2000-09-30 Tom Tromey <tromey@cygnus.com>
3107 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3108 interrupted before modifying the cv's wait set.
3111 2000-09-30 Hans Boehm <boehm@acm.org>
3112 Bryce McKinlay <bryce@albatross.co.nz>
3114 Implement bitmap descriptor based marking for Boehm GC.
3116 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3117 * configure: Rebuilt.
3118 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3119 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3120 method get_finalizer().
3121 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3122 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3123 (_Jv_AllocObj): Add new jclass parameter.
3124 (_Jv_AllocArray): Ditto.
3125 (_Jv_BuildGCDescr): New prototype.
3126 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3127 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3128 get_finalizer() instead of direct finalizer vtable offset.
3129 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3130 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3131 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3132 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3133 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3134 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3135 (_Jv_DetermineVTableIndex): Ditto.
3136 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3137 calculations to account for new gc_descr field.
3138 * boehm.cc: #include gc_gcj.h.
3139 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3140 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3141 New commentary from HB. Mark the classes vtable.
3142 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3143 (GC_DEFAULT_DESCR): New #define.
3144 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3145 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3146 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3147 scan conservativly if size is less than min_heap_addr. Set vtable
3148 pointer of new object before returning.
3149 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3150 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3151 allocation for obj_kind_x.
3152 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3153 (_Jv_AllocObj): Set vtable on returned object.
3154 (_Jv_AllocArray): Ditto.
3155 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3156 (_Jv_NewPrimArray): Ditto.
3157 (_Jv_AllocObj): Declare as a friend.
3158 (_Jv_AllocArray): Ditto.
3159 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3160 from &ObjectClass into new array class. Remove offset-by-one
3161 adjustments from `method' size calculations to account for gc_descr
3164 2000-09-26 Tom Tromey <tromey@cygnus.com>
3166 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3167 `remove', not `add'.
3169 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3171 * java/lang/natSystem.cc (file_encoding): Added return statement.
3173 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3175 * Makefile.am: Re-work shell commands that exceeded command-line
3177 * Makefile.in: Rebuilt.
3179 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3181 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3182 * java/lang/natDouble.cc: Likewise.
3183 * java/lang/reflect/natMethod.cc: Likewise.
3184 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3186 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3188 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3190 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3191 * acinclude.m4: Arrange for automake to not bring in a new
3192 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3193 * Makefile.am: Leave it up to automake to subst GCJ.
3194 * aclocal.m4, configure, Makefile.in: Rebuilt.
3196 2000-09-13 Tom Tromey <tromey@cygnus.com>
3198 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3199 (get): Ensure Boolean class is initialized.
3200 * java/lang/reflect/natField.cc (BooleanClass): New define.
3201 (get): Ensure Boolean class is initialized.
3203 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3205 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3206 Initialize with anonymous class.
3207 (compareToIgnoreCase): New method.
3209 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3210 (uncaughtException): Set had_uncaught_exception.
3211 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3212 exit with error status if set.
3213 (_Jv_RunMain): Ditto.
3215 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3217 * configure: Rebuilt with new ../libtool.m4.
3219 2000-09-11 Tom Tromey <tromey@cygnus.com>
3221 * java/lang/reflect/Field.java (toString): Don't rely on
3224 2000-09-08 Tom Tromey <tromey@cygnus.com>
3226 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3227 default decoder use iconv.
3228 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3229 Let default encoder use iconv.
3230 * configure: Rebuilt.
3231 * configure.in: Check for nl_langinfo and <langinfo.h>.
3232 * java/lang/natSystem.cc (file_encoding): New function.
3233 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3235 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3237 * acinclude.m4: Simplify the tests for CC and CXX.
3238 * aclocal.m4, configure: Rebuilt.
3240 * acinclude.m4: Include libtool macros from the source tree.
3241 * aclocal.m4, configure: Rebuilt.
3243 2000-09-08 Warren Levy <warrenl@cygnus.com>
3245 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3246 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3247 * java/io/File.java (writeObject): Added.
3248 (readObject): Added.
3249 (serialVersionUID): Added.
3250 * java/io/ObjectOutputStream.java (writeObject): Initialized
3251 fieldsAlreadyWritten before recursion rather than after.
3252 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3253 * java/io/OptionalDataException.java (serialVersionUID): Added.
3254 (OptionalDataException): Made package private.
3255 * java/io/SyncFailedException.java (SyncFailedException): Removed
3256 default constructor to match spec.
3257 * java/lang/Boolean.java (serialVersionUID): Added.
3258 * java/lang/Byte.java (serialVersionUID): Added.
3259 * java/lang/Character.java (serialVersionUID): Added.
3260 * java/lang/Double.java (serialVersionUID): Added.
3261 * java/lang/Float.java (serialVersionUID): Added.
3262 * java/lang/Integer.java (serialVersionUID): Added.
3263 * java/lang/Long.java (serialVersionUID): Added.
3264 * java/lang/Number.java (serialVersionUID): Added.
3265 * java/lang/Short.java (serialVersionUID): Added.
3266 * java/lang/String.java (serialVersionUID): Added.
3267 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3269 * java/lang/reflect/InvocationTargetException.java
3270 (serialVersionUID): Added.
3271 * java/net/URL.java (handler): Made transient.
3272 (hashCode): Added field for serialization, per spec. and use
3273 cached value if available.
3274 (serialVersionUID): Added.
3275 (URL): Initialize hashCode.
3276 (set): Adjust hashCode.
3277 (readObject): New Method to initialize the protocol handler when
3279 (writeObject): New method.
3280 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3281 * java/text/Collator.java: Removed 'implements Serializable'.
3282 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3283 * java/util/Properties.java (serialVersionUID): Added.
3284 * java/util/Random.java (serialVersionUID): Added.
3285 (seed): Made private.
3286 (nextNextGaussian): Made private.
3287 (haveNextNextGaussian): Made private.
3288 * java/util/Stack.java (serialVersionUID): Added.
3289 * java/util/TimeZone.java (serialVersionUID): Added.
3290 * java/util/Vector.java (serialVersionUID): Added.
3292 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3294 * Makefile.am (Thread.h): Don't be friends with native threads
3296 * Makefile.in: Rebuilt.
3297 * java/lang/Thread.java (interrupt_flag): Make package-private.
3299 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3301 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3302 to avoid long long division.
3304 2000-09-06 Tom Tromey <tromey@cygnus.com>
3306 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3308 * java/lang/reflect/Method.java (toString): Use `getName' for
3311 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3312 `args' if method takes no parameters.
3314 Fix for PR java.lang/339:
3315 * java/lang/natPosixProcess.cc (fail): New function.
3316 (cleanup): New function.
3317 (startProcess): Use them. Create pipe so child can communicate
3318 exec failure back to parent.
3320 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3322 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3324 (send): Undo last patch. Remove the label only.
3326 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3328 * java/net/natInetAdress.cc: Ditto.
3330 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3332 2000-09-05 Tom Tromey <tromey@cygnus.com>
3334 * doc/cni.sgml: Updated from master copy.
3336 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3338 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3340 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3342 * java/lang/fdlibm.h: #undef __P if previously defined.
3343 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3344 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3348 2000-09-04 Tom Tromey <tromey@cygnus.com>
3350 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3353 2000-09-04 Anthony Green <green@redhat.com>
3355 Fix for PR java.io/203:
3356 * java/io/File.java (createTempFile): Obey directory argument.
3357 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3358 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3359 variable to set java.io.tmpdir on non-WIN32 systems.
3361 2000-09-04 Anthony Green <green@redhat.com>
3363 * java/io/File.java (deleteOnExit): New method.
3364 * gnu/gcj/runtime/FileDeleter.java: New class.
3365 * java/lang/natRuntime.cc (exit): Call
3366 FileDeleter.deleteOnExitNow()
3367 * Makefile.am: Add FileDeleter.java.
3368 * Makefile.in: Rebuilt.
3370 2000-09-02 Tom Tromey <tromey@cygnus.com>
3372 * Makefile.in: Rebuilt.
3373 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3374 environment variable.
3376 2000-09-01 Andrew Haley <aph@redhat.com>
3378 * java/io/StreamTokenizer.java: Don't throw a
3379 NumberFormatException if a field is numeric as far as the
3380 StreamTokenizer is concerned but not as far as Double.valueOf() is
3381 concerned: return a zero instead.
3383 2000-08-30 Tom Tromey <tromey@cygnus.com>
3385 * Makefile.in: Rebuilt.
3386 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3388 2000-08-28 Tom Tromey <tromey@cygnus.com>
3390 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3391 gnu/gcj/awt/ComponentDataBlitOp.java,
3392 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3393 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3394 java/awt/color/ICC_ColorSpace.java,
3395 java/awt/color/ICC_Profile.java,
3396 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3397 java/awt/image/ComponentColorModel.java,
3398 java/awt/image/ComponentSampleModel.java,
3399 java/awt/image/DataBuffer.java,
3400 java/awt/image/DataBufferByte.java,
3401 java/awt/image/DataBufferInt.java,
3402 java/awt/image/DataBufferUShort.java,
3403 java/awt/image/DirectColorModel.java,
3404 java/awt/image/IndexColorModel.java,
3405 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3406 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3407 java/awt/image/SinglePixelPackedSampleModel.java,
3408 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3409 Removed Latin-1 copyright symbols.
3410 * java/util/zip/ZipFile.java: Indentation fixes.
3412 2000-08-27 Mark Wielaard <mark@klomp.org>
3414 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3415 constructor, close can delete the file, finalize calls close.
3416 * java/util/jar/JarFile.java: Constructor that takes mode now
3419 2000-08-27 Anthony Green <green@redhat.com>
3421 * java/util/ArrayList.java, java/util/Timer.java,
3422 java/util/LinkedList.java, java/util/TimerTask.java,
3423 java/util/HashMap.java, java/util/AbstractMap.java,
3424 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3425 java/util/SortedSet.java: Imported from GNU Classpath.
3426 * Makefile.in: Rebuilt.
3427 * Makefile.am: Added new files.
3429 2000-08-26 Anthony Green <green@redhat.com>
3431 * Makefile.in: Rebuilt.
3432 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3435 * prims.cc: Include ClassLoader.h.
3436 (_Jv_RunMain): When executing jar files, classpath must be the jar
3437 file only. Lose our reference to the system ClassLoader in order
3438 to get a new one with the correct classpath.
3439 * java/lang/natSystem.cc (init_properties): When executing a jar
3440 file, only use the jar file for java.class.path.
3442 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3443 for bytecode archives.
3445 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3446 exists, but not Main-Class.
3448 2000-08-23 Mark Wielaard <mark@klomp.org>
3450 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3451 return -1 when fill() has no more data for the Inflater.
3453 2000-08-23 Mark Wielaard <mark@klomp.org>
3455 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3456 write(String) already does.
3458 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3460 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3461 to `alive_flag', call `init'.
3462 (init): New native method.
3463 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3466 2000-08-21 Mark Wielaard <mark@klomp.org>
3468 * Makefile.in: Rebuilt.
3469 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3471 (java/lang/reflect/Field.h): Likewise.
3472 (java/lang/reflect/Method.h): Likewise.
3473 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3476 2000-08-21 Tom Tromey <tromey@cygnus.com>
3478 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3481 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3483 * java/lang/natSystem.cc (init_properties): Change sourceware
3484 reference to sources.redhat.com.
3486 * include/java-props.h: Add _Jv_Jar_Class_Path.
3487 * prims.cc: Ditto. Set it from `gij -jar file' option.
3489 * java/lang/natSystem.cc (init_properties): Set java.class.path
3491 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3493 * java/util/PropertyPermission.java: Import from GNU Classpath.
3494 * Makefile.in: Rebuilt.
3495 * Makefile.am: Add java/util/PropertyPermission.java.
3496 * java/lang/System.java: Add setProperty method.
3498 * gij.cc (main): Add -jar option to execute jar files.
3499 (help): Describe -jar option.
3500 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3501 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3502 * gnu/gcj/runtime/FirstThread.java (main): New method.
3504 * java/util/jar/Attributes.java: Correct comment spelling.
3506 2000-08-20 Mark Wielaard <mark@klomp.org>
3508 * java/util/zip/Adler32.java: Make private variables really private
3509 * java/util/zip/CRC32.java: Make private variables really private
3510 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3512 * java/util/zip/InflaterInputStream.java: skip() could skip to
3514 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3515 * java/util/zip/ZipFile.java: size() new 1.2 method
3516 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3517 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3520 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3522 * java/util/jar/JarFile.java: Don't call
3523 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3526 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3528 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3529 Read the entire contents of the class file, not just what is
3532 * java/net/JarURLConnection.java: getEntry doesn't take any
3533 arguments. Return null if element is null.
3535 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3536 size from the archive, not the inflated size.
3538 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3539 java.util.zip.ZipFile.getEntry.
3541 * gij.cc (help): Change sourceware reference to
3544 2000-08-19 Tom Tromey <tromey@cygnus.com>
3546 * java/util/zip/ZipInputStream.java (createZipEntry):
3549 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3551 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3552 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3553 java/util/jar/JarInputStream.java,
3554 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3555 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3556 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3557 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3558 java/security/cert/Certificate.java,
3559 java/security/cert/CertificateEncodingException.java,
3560 java/security/cert/CertificateException.java,
3561 java/security/cert/CertificateExpiredException.java,
3562 java/security/cert/CertificateFactory.java,
3563 java/security/cert/CertificateFactorySpi.java,
3564 java/security/cert/CertificateNotYetValidException.java,
3565 java/security/cert/CertificateParsingException.java,
3566 java/security/cert/X509CRL.java,
3567 java/security/cert/X509CRLEntry.java,
3568 java/security/cert/X509Certificate.java,
3569 java/security/cert/X509Extension.java: Imported from Classpath.
3570 * java/util/Hashtable.java: Imported from Classpath.
3572 * java/util/zip/ZipInputStream.java: Create stub for
3575 * gcj/javaprims.h: Updated class list.
3577 * Makefile.in, gcj/Makefile.in: Rebuilt.
3578 * Makefile.am (ordinary_java_source_files): Add these new classes.
3580 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3582 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3583 * gnu/gcj/awt/GLightweightPeer.java: New file.
3584 * java/awt/BorderLayout.java: Implemented all methods.
3585 * java/awt/Button.java (actionListener, actionCommand): Renamed
3586 and modifier change.
3587 (addNotify): Call super.
3588 (dispatchEventImpl): New method.
3589 (getListeners): New method.
3590 (label): Made package-private, not private.
3591 * java/awt/Canvas.java: Implemented class body.
3592 * java/awt/Color.java (brighter): New method.
3593 (darker): New method.
3594 (hashCode): New method.
3595 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3596 (getGraphicsConfiguration): Delegate to
3597 getGraphicsConfigurationImpl().
3598 (getGraphicsConfigurationImpl): New method.
3599 (getToolkit): Only return value from peer if not null.
3600 (isDisplayable): Check with parent.
3601 (isShowing): No parent implies not showing.
3602 (getForeground): Check parent property if local is null.
3603 (getBackground): Likewise.
3604 (getFont): Likewise.
3605 (setForeground): Inform peer.
3606 (setBackground): Likewise
3607 (setLocale): Invalidate component.
3608 (getColorModel): Implemented.
3609 (setLocation): Invalidate, or ignore if no change.
3610 (setSize): Invalidate, or ignore if no change.
3611 (setBounds): Invalidate, or ignore if no change.
3612 (isOpaque): By default, heavyweight implies opaque.
3613 (isLightweight): Implemented.
3614 (getMaximumSize): Implemented.
3615 (doLayout): Implemented, NOP.
3616 (validate): Implemented, NOP.
3617 (invalidate): Only propagate to parent if parent was valid.
3618 (getGraphics): Implemented.
3619 (getFontMetrics): Implemented.
3620 (update): Implemented.
3621 (paintAll): Implemented.
3622 (repaint): Implemented all repaint methods.
3623 (print): Implemented.
3624 (printAll): Implemented.
3625 (createImage): Implemented.
3626 (dispatchEvent): Give the peer a chance to handle the event.
3627 (dispatchEventImpl): Dispatch paint events.
3628 (enableEvents): Lightweights enable events on parent component.
3629 (coalesceEvents): Coalesce paint events, and select event type
3631 (coalescePaintEvents): New method.
3632 (processEvent): Fix unfortunate ordering of statements, and call
3633 correct method for MOUSE_CLICKED.
3634 (processPaintEvent): New method.
3635 (addNotify): Allow container to notify children before event
3636 mask is set in peer.
3637 (addNotifyContainerChildren): New method.
3638 (removeNotify): Visibility should not change on removeNotify.
3639 (paramString): Implemented.
3640 (list): Implemented two of the list methods.
3641 * Container (myInsets): Removed, insets are managed by peer.
3642 (getInsets): Query peer.
3643 (addImpl): Fix reparenting, enable events for lightweights,
3644 initialize component array.
3645 (validate): Call doLayout in validateTree() instead.
3646 (validateTree): Do nothing if already valid. Call beginValidate(),
3647 endValidate() on peer. Call validateTree() instead of validate()
3648 for children that are containers. Mark valid after validation of
3650 (setFont): Partial implementation.
3651 (paint): Implemented.
3652 (visitChildren): New method.
3653 (visitChild): New method.
3654 (update): Implemented.
3655 (print): Implemented.
3656 (paintComponents): Implemented.
3657 (printComponents): Consider translation and clipping.
3658 (getComponentAt): Ignore invisible children. Return this if no
3660 (addNotify): Call super.
3661 (addNotifyContainerChildren): New method.
3662 (paramString): Implemented.
3663 (list): Implemented.
3664 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3666 (invokeLater): Likewise.
3667 (isDispatchThread): Likewise.
3668 * java/awt/FontMetrics (getLeading): Formula change.
3669 (getDescent): Consider leading also.
3670 (getMaxAscent): Default to getAscent().
3671 (getMaxDescent): Default to getDescent.
3672 (getMaxAdvance): Return value signifying unknown.
3673 (charWidth): Both methods implemented.
3674 (charsWidth): Implemented.
3675 (bytesWidth): Implemented.
3676 (getWidths): Implemented.
3677 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3679 (Frame): Rearragend constuctor chaining to disallow null being
3680 passed as a graphics configuration.
3681 (getTitle): Return empty string if null.
3683 (getIconImage): New method.
3684 (setIconImage): New method.
3685 (finalize): New method.
3686 (setMenuBar): Notify peer.
3687 (isResizable): New method.
3688 (setResizable): New method.
3689 (getState): New method.
3691 (remove): Implemented.
3692 (removeNotify): New method.
3693 (getFrames): New method.
3694 * java/awt/Graphics.java: Implemented body of class.
3695 * java/awt/Graphics2D.java: New file.
3696 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3697 * java/awt/Image.java: Implemented body of class.
3698 * java/awt/Panel.java (Panel): Call correct super constructor.
3699 (addNotify): Implemented.
3700 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3701 * java/awt/RenderingHints.java: New file.
3702 * java/awt/Toolkit.java (createComponent): Implemented.
3703 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3704 * java/awt/Window.java (Window): Two new constructors. Reordered
3705 constructor chaining.
3706 (getGraphicsConfigurationImpl): New method.
3707 (finalize): Call super.
3708 (addNotify): Call super.
3709 (pack): Do layout stuff.
3710 (show): Ensure that peer exists and that component is valid.
3711 (dispose): Dispose owned children.
3712 (getOwner): Simplify code, casting null pointers is valid.
3713 (getGraphicsConfiguration): Ask peer if local value is null.
3714 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3716 * java/awt/image/BufferedImage.java: New file.
3717 * java/awt/image/RasterOp.java: New file.
3718 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3719 More powerfull replacement for getColorModel().
3720 (getColorModel) Removed.
3721 (setEventMask) New method.
3722 * Makefile.am: Added new files.
3723 * Makefile.in: Rebuilt.
3725 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3727 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3728 (finit_leg_name): New global.
3729 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3730 `$finit$'. This is a backward compatibility hack.
3731 (java::lang::Class::_getMethods): Likewise.
3733 2000-08-15 Andrew Haley <aph@cygnus.com>
3735 * include/jvm.h (_Jv_HashCode): New hash code.
3737 2000-08-15 Tom Tromey <tromey@cygnus.com>
3739 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3741 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3743 * THANKS: More thanks.
3745 2000-08-10 Tom Tromey <tromey@cygnus.com>
3747 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3749 (connect): Likewise.
3751 (getOption): Likewise.
3752 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3753 case when errno not set.
3756 (receive): Likewise.
3757 (mcastGrp): Likewise.
3758 (setOption): Likewise.
3759 (getOption): Likewise.
3761 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3762 John Stracke <francis@ecal.com>
3764 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3765 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3767 (disconnect): Don't unset connected flag.
3768 (getHeaderField (String)): Call connect() if not connected.
3769 (getHeaderField (int)): Ditto.
3770 (getHeaderFieldKey): Ditto.
3771 (getHttpHeaders): Don't call connect().
3772 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3773 gotResponseVals): New fields.
3774 (getResponseCode): Call getResponseVals() conditionally.
3775 (getResponseMessage): Ditto.
3776 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3778 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3780 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3781 * Makefile.in: Rebuilt.
3782 * java/awt/Color.java (getTransparency): New method.
3783 * java/awt/Component.java: Various updates.
3784 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3785 after dealing with children.
3786 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3787 * java/awt/Window.java: Various new methods and updates.
3788 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3790 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3791 * java/awt/event/WindowEvent.java (paramString): Ditto.
3792 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3794 * java/awt/geom/Point2D.java (clone): Ditto.
3795 * java/awt/geom/RectangularShape.java (clone): Ditto.
3796 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3797 isAlphaPremultiplied): Make package-private, not private.
3799 2000-08-08 Tom Tromey <tromey@cygnus.com>
3801 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3802 surrogate characters.
3803 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3805 (write): Correct handling of surrogate characters.
3807 2000-08-07 Tom Tromey <tromey@cygnus.com>
3809 * java/lang/reflect/Method.java (hashCode): Use getName().
3810 (toString): Likewise.
3811 * java/lang/reflect/natMethod.cc (getType): Initialize
3814 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3816 * java/lang/reflect/Field.java (toString): Correct formatting.
3819 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3821 (receive): Streamlined.
3823 2000-08-05 Tom Tromey <tromey@cygnus.com>
3825 * java/io/PrintWriter.java: Merged comments from Classpath.
3826 (printlnUnsynchronized): Removed.
3827 (println()): Print the separator.
3828 (println): Call println(), not printlnUnsynchronized.
3829 (out): Now protected, to match spec.
3831 2000-08-04 Tom Tromey <tromey@cygnus.com>
3833 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3834 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3837 2000-08-03 Warren Levy <warrenl@cygnus.com>
3839 * java/io/ObjectInputStream.java (readFields): Turn off
3840 readDataFromBlock while reading via GetField.
3841 (GetField$1.get(String, Object)): Pass Class of default value to
3843 (getField): Allow for null default values.
3845 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3846 (PutField$1.put): Fixed calls of checkType in most of the put
3847 methods to pass the correct parameter.
3848 (PutField$1.put(String, Object)): Allow for null value arg.
3849 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3852 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3853 typo in spec'ed field name.
3854 (getSerialPersistentFields): Changed spelling of method to match
3855 the correct spelling of the spec'ed field name.
3857 2000-08-03 Tom Tromey <tromey@cygnus.com>
3859 * Makefile.in: Rebuilt.
3860 * Makefile.am (awt_java_source_files): Added new files.
3862 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3864 * Makefile.am: Add new AWT stubs.
3865 * java/awt/Canvas.java: New placeholder class.
3866 * java/awt/Checkbox.java: Ditto.
3867 * java/awt/CheckboxMenuItem.java: Ditto.
3868 * java/awt/Choice.java: Ditto.
3869 * java/awt/Dialog.java: Ditto.
3870 * java/awt/FileDialog.java: Ditto.
3871 * java/awt/List.java: Ditto.
3872 * java/awt/ScrollPane.java: Ditto.
3873 * java/awt/TextField.java: Ditto.
3874 * java/awt/datatransfer/Clipboard.java: Ditto.
3875 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3876 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3877 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3878 Some commented out. Partially implemented.
3879 * java/awt/natToolkit.cc: Removed file.
3881 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3883 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3884 Fixes "make -j" builds.
3885 * Makefile.in: Rebuild.
3887 2000-08-02 Tom Tromey <tromey@cygnus.com>
3889 * Makefile.in: Rebuilt.
3890 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3891 * java/net/natPlainSocketImpl.cc: Include posix.h.
3892 (accept): Use _Jv_select.
3893 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3894 (receive): Use _Jv_select.
3895 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3896 (available): Use _Jv_select.
3897 * java/lang/natSystem.cc: Include posix.h.
3898 (currentTimeMillis): Use _Jv_gettimeofday.
3899 * include/posix.h: New file.
3900 * posix.cc: New file.
3902 * scripts/encodings.pl: New file.
3903 * Makefile.in: Rebuilt.
3904 * Makefile.am (convert_source_files): Added IOConverter.java.
3905 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3907 (getDefaultDecodingClass): Canonicalize default encoding name.
3908 (getEncoder): Likewise.
3909 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3911 (getDefaultDecodingClass): Canonicalize default encoding name.
3912 (getDecoder): Likewise.
3913 * gnu/gcj/convert/IOConverter.java: New file.
3915 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3917 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3918 to match C declaration in ffi.h.
3919 * Makefile.am: Add java/awt/Button.java.
3920 * Makefile.in: Rebuilt.
3922 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3924 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3925 cast of the second argument to `ffi_raw_call' changed to match
3928 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3930 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3931 argument to `ffi_raw_call' changed to match prototype.
3933 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3935 * java/awt/Component.java (toString): Implemented.
3936 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3937 dispatchEvent() to dispatch the event.
3938 (removeImpl): Ditto.
3940 2000-07-30 Anthony Green <green@redhat.com>
3942 * java/awt/Component.java: Add treeLock object.
3943 (getTreeLock): Implement.
3944 (isShowing): Implement.
3946 2000-07-30 Tom Tromey <tromey@cygnus.com>
3948 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3950 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3952 * java/awt/Window.java (addNotify): Wrote.
3953 (addWindowListener): Wrote.
3955 (getWarningString): Wrote.
3956 (processEvent): Wrote.
3957 (processWindowEvent): Wrote.
3958 (removeWindowListener): Wrote.
3959 (show): Call validate(), setVisible().
3963 * java/awt/Toolkit.java (createWindow): Declare.
3965 * java/awt/Frame.java (addNotify): Use getToolkit to find
3968 * java/awt/Component.java (invalidate): Wrote.
3970 (getToolkit): Wrote.
3972 * java/awt/Container.java (addContainerListener): Removed
3974 (removeContainerListener): Likewise.
3976 (add(Component)): Use it.
3977 (add(String,Component)): Likewise.
3978 (add(Component,int)): Likewise.
3979 (add(Component,Object)): Likewise.
3980 (add(Component,Object,int)): Likewise.
3982 (getAlignmentX): Wrote.
3983 (getAlignmentY): Wrote.
3984 (getComponentAt): Wrote.
3985 (getMaximumSize): Wrote.
3986 (invalidate): Wrote.
3987 (list(PrintStream,int)): Wrote.
3988 (list(PrintWriter,int)): Wrote.
3989 (getMinimumSize): Wrote.
3990 (getPreferredSize): Wrote.
3991 (printComponents): Wrote.
3992 (processContainerEvent): Look at containerListener, not
3994 (remove): Added event processing and peer destruction.
3995 (removeAll): Use remove.
3996 (removeNotify): Wrote.
3998 (validateTree): Wrote.
4000 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4001 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4002 * java/awt/Container.java (addNotify): Don't create Container
4004 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4006 2000-07-30 Tom Tromey <tromey@cygnus.com>
4008 * java/awt/Container.java (remove(int)): Wrote.
4009 (remove(Component)): Wrote.
4010 (add(Component)): Wrote.
4011 (add(Component,int)): Wrote.
4013 (addNotify): Set our own peer.
4014 * java/awt/Scrollbar.java (listeners): Changed type.
4015 (Scrollbar): Don't initialize listeners.
4017 (setValue): Call setValues.
4018 (setMinimum): Likewise.
4019 (setMaxPriority): Likewise.
4020 (setVisibleAmount): Likewise.
4022 (setUnitIncrement): Forward to peer.
4023 (setLineIncrement): Call setUnitIncrement.
4024 (setPageIncrement): Call setBlockIncrement.
4025 (setBlockIncrement): Forward to peer.
4026 (addAdjustmentListener): Rewrote.
4027 (removeAdjustmentListener): Rewrote.
4028 (processAdjustmentEvent): Rewrote.
4029 (paramString): Wrote.
4030 * Makefile.in: Rebuilt.
4031 * Makefile.am (awt_java_source_files): Added Button.java.
4032 * java/awt/Button.java: New file.
4033 * java/awt/Toolkit.java (createLabel): Declare.
4034 (createButton): Likewise.
4035 (createScrollbar): Likewise.
4036 (createContainer): Likewise.
4037 * java/awt/Label.java (addNotify): Wrote.
4038 (setAlignment): Call setAlignment in the peer.
4039 (setText): Call setText in the peer.
4041 2000-07-28 Warren Levy <warrenl@cygnus.com>
4043 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4044 NotSerializableException with just the class name.
4046 2000-07-26 Andrew Haley <aph@cygnus.com>
4048 * interpret.cc (continue1): Insert missing break into switch.
4050 2000-07-28 Warren Levy <warrenl@cygnus.com>
4052 * java/io/ObjectStreamException.java: Made constructors protected.
4054 2000-07-27 Tom Tromey <tromey@cygnus.com>
4056 * java/io/OutputStreamWriter.java (close): Only flush if not
4059 2000-07-27 Warren Levy <warrenl@cygnus.com>
4061 * mauve-libgcj: Activated serialization tests.
4062 * gcj/field.h (getModifiers): Mask off unknown flags.
4063 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4064 spurious bits don't cause discrepancies.
4065 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4066 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4067 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4068 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4069 * java/lang/Throwable.java (serialVersionUID): New field.
4070 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4071 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4073 * java/lang/reflect/natMethod.cc: Ditto.
4074 * java/security/Key.java (serialVersionUID): Removed field for now.
4075 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4076 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4078 2000-07-22 Tom Tromey <tromey@cygnus.com>
4080 * java/awt/geom/RectangularShape.java (getPathIterator):
4083 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4085 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4086 stub libjava/java/awt/ColorModel.java which was located in the
4088 * libjava/java/awt/image/ComponentColorModel.java: New file.
4089 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4090 * libjava/java/awt/image/DataBuffer.java: New file.
4091 * libjava/java/awt/image/DataBufferByte.java: New file.
4092 * libjava/java/awt/image/DataBufferInt.java: New file.
4093 * libjava/java/awt/image/DataBufferUShort.java: New file.
4094 * libjava/java/awt/image/DirectColorModel.java: New file.
4095 * libjava/java/awt/image/PackedColorModel.java: New file.
4096 * libjava/java/awt/image/Raster.java: New file.
4097 * libjava/java/awt/image/SampleModel.java: New file.
4098 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4100 * libjava/java/awt/image/IndexColorModel.java: New file.
4101 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4102 java.awt.ColorModel stub.
4104 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4105 * gnu/gcj/util/Buffers.java: New file, utility class.
4107 * libjava/Makefile.am: Updated to include new files.
4108 * libjava/Makefile.in: Rebuilt.
4110 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4112 * java/io/StreamTokenizer.java: Merged with classpath.
4114 2000-07-20 Tom Tromey <tromey@cygnus.com>
4116 * Makefile.in: Rebuilt.
4117 * Makefile.am (awt_java_source_files): Updated for new files.
4118 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4119 * java/awt/Label.java: New file.
4120 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4121 (createIntersection, createUnion, getBounds2D): New methods.
4122 * java/awt/Scrollbar.java: New file.
4123 * java/awt/Shape.java: Updated to 1.2.
4124 * java/awt/geom/AffineTransform.java: New file.
4125 * java/awt/geom/Ellipse2D.java: New file.
4126 * java/awt/geom/NoninvertibleTransformException.java: New file.
4127 * java/awt/geom/PathIterator.java: New file.
4128 * java/awt/geom/Rectangle2D.java: New file.
4129 * java/awt/geom/RectangularShape.java: New file.
4130 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4131 * java/awt/geom/IllegalPathStateException.java: New file.
4133 * scripts/showval.java: New file.
4135 * scripts/classes.pl (scan): Print inner classes properly.
4136 * gcj/javaprims.h: Updated class list.
4138 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4139 initialize String fields for interpreted classes. Fixes bug
4140 reported by Hans Boehm.
4142 * java/io/File.java (getParentFile): New method, from Classpath
4143 via Oskar Liljeblad.
4145 * java/util/Vector.java (remove(Object)): Implemented.
4147 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4149 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4150 zero return from backtrace().
4152 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4154 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4156 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4157 before calling notifyAll().
4159 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4161 Add missing files from last check-in:
4162 * java/awt/image/ImageConsumer.java: New file.
4163 * java/awt/image/ImageProducer.java: New file.
4164 * java/awt/image/ImageObserver.java: New file.
4166 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4168 Merged implementation of java.applet from classpath:
4169 * java/applet/Applet.java: New file.
4170 * java/applet/AppletContext.java: New file.
4171 * java/applet/AppletStub.java: New file.
4172 * java/applet/AudioClip.java: New file.
4174 * Makefile.am: Added new java.applet classes.
4175 * Makefile.in: Rebuilt.
4177 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4180 * java/util/ResourceBundle.java (getLocale): stub.
4181 * Makefile.am: Added new AWT classes.
4182 * Makefile.in: Rebuilt.
4183 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4184 constructors. Fix toString() and paramString().
4185 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4186 * java/awt/CheckboxGroup.java: New class.
4187 * java/awt/ColorModel.java: New class.
4188 * java/awt/Component.java: Added stubs for most methods. Implemented
4190 * java/awt/Container.java: ditto.
4191 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4192 * java/awt/Cursor.java: ditto.
4193 * java/awt/Event.java: Fix paramString().
4194 * java/awt/EventQueue.java: New class. Implemented.
4195 * java/awt/Font.java: Added additional stub methods. Implemented
4197 * java/awt/FontMetrics.java: New class. Stubbed.
4198 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4200 * java/awt/Insets.java: New class. Implemented.
4201 * java/awt/Menu.java: Add new methods. Partially implemented.
4202 * java/awt/MenuItem.java: Add new methods and fields. Partially
4204 * java/awt/MenuShortcut.java: New class. Implemented.
4205 * java/awt/Panel.java: New class. Placeholder.
4206 * java/awt/PopupMenu.java: New class. Stubbed.
4207 * java/awt/Rectangle.java: New class. Implemented.
4208 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4209 * java/awt/event/ActionEvent.java: Implement paramString().
4210 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4211 * java/awt/event/ComponentEvent.java: Implement paramString().
4212 * java/awt/event/ContainerEvent.java: Implement paramString().
4213 * java/awt/event/FocusEvent.java: Implement paramString().
4214 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4215 * java/awt/event/HierarchyBoundsListener.java: New class.
4216 * java/awt/event/HierarchyEvent.java: New class.
4217 * java/awt/event/HierarchyListener.java: New class.
4218 * java/awt/event/InputMethodEvent.java: Implement paramString().
4219 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4220 exception if !catchExceptions.
4221 * java/awt/event/ItemEvent.java: Implement paramString().
4222 * java/awt/event/KeyEvent.java: Implement paramString().
4223 * java/awt/event/MouseEvent.java: Implement paramString().
4224 * java/awt/event/PaintEvent.java: Implement paramString().
4225 * java/awt/event/TextEvent.java: Implement paramString().
4226 * java/awt/event/WindowEvent.java: Implement paramString().
4228 AWT Peer interfaces:
4229 * java/awt/peer/ButtonPeer.java: New file.
4230 * java/awt/peer/ListPeer.java: New file.
4231 * java/awt/peer/CanvasPeer.java: New file.
4232 * java/awt/peer/MenuBarPeer.java: New file.
4233 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4234 * java/awt/peer/MenuComponentPeer.java: New file.
4235 * java/awt/peer/CheckboxPeer.java: New file.
4236 * java/awt/peer/MenuItemPeer.java: New file.
4237 * java/awt/peer/ChoicePeer.java: New file.
4238 * java/awt/peer/MenuPeer.java: New file.
4239 * java/awt/peer/ComponentPeer.java: Implemented.
4240 * java/awt/peer/PanelPeer.java: New file.
4241 * java/awt/peer/ContainerPeer.java: Implemented.
4242 * java/awt/peer/PopupMenuPeer.java: New file.
4243 * java/awt/peer/DialogPeer.java: New file.
4244 * java/awt/peer/ScrollPanePeer.java: New file.
4245 * java/awt/peer/FileDialogPeer.java: New file.
4246 * java/awt/peer/ScrollbarPeer.java: New file.
4247 * java/awt/peer/FontPeer.java: New file.
4248 * java/awt/peer/TextAreaPeer.java: New file.
4249 * java/awt/peer/FramePeer.java: Implemented.
4250 * java/awt/peer/TextComponentPeer.java: New file.
4251 * java/awt/peer/LabelPeer.java: New file.
4252 * java/awt/peer/TextFieldPeer.java: New file.
4253 * java/awt/peer/LightweightPeer.java: New file.
4254 * java/awt/peer/WindowPeer.java: Implemented.
4256 2000-07-06 Tom Tromey <tromey@cygnus.com>
4258 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4259 Initialize static final String fields.
4261 2000-07-03 Tom Tromey <tromey@cygnus.com>
4263 * java/io/PrintWriter.java (print): Call write(String), not
4264 print(String). See PR libgcj/277.
4265 (print(String)): Use write, not out.write.
4267 2000-06-30 Tom Tromey <tromey@cygnus.com>
4269 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4271 2000-06-27 Andrew Haley <aph@cygnus.com>
4273 * java/io/File.java (createTempFile): Close the FileDescriptor
4274 used to create a temp file. Fixes some of PR 203.
4275 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4276 collection if we run out of file handles.
4278 2000-06-28 Warren Levy <warrenl@cygnus.com>
4280 * gnu/java/security/provider/Gnu.java: New file.
4281 * gnu/java/security/provider/SHA.java: New file.
4282 * gnu/java/security/provider/SHA1PRNG.java: New file.
4283 * Makefile.am: Added the above files.
4284 * Makefile.in: Rebuilt.
4286 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4288 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4290 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4291 (destroyed_flag): Removed.
4292 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4293 (activeCount): Added spec note.
4295 2000-06-27 Warren Levy <warrenl@cygnus.com>
4297 * java/security/Principal.java: New file.
4298 * Makefile.am: Added Principal.java.
4299 * Makefile.in: Rebuilt.
4301 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4303 * java/awt/event/MouseEvent.java: Fixed coordinate space
4306 2000-06-27 Tom Tromey <tromey@cygnus.com>
4308 * java/io/PushbackInputStream.java (read): If there are characters
4309 in the buffer, don't also call super.read().
4310 * java/io/PushbackReader.java (read): If there are characters in
4311 the buffer, don't also call super.read().
4313 * java/lang/Double.java (valueOf): Call parseDouble().
4315 2000-06-26 Warren Levy <warrenl@cygnus.com>
4317 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4318 (newVal): Renamed to newValue.
4319 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4320 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4321 (revokeNow): Renamed to invalidateRefs.
4322 * java/io/OptionalDataException.java: Updated FIXME.
4323 (eof): New placeholder field.
4325 * java/io/WriteAbortedException.java (message): Made transient.
4326 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4327 * java/lang/Throwable.java (stackTrace): Made transient.
4328 * java/net/InetAddress.java: Made Serializable.
4329 * java/security/KeyPair.java: Made Serializable.
4330 * java/security/Provider.java: Replaced with Classpath version that
4331 implements serialization and proper methods.
4332 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4333 (limits): Renamed to choiceLimits.
4335 2000-06-24 Tom Tromey <tromey@cygnus.com>
4337 * java/lang/natDouble.cc (parseDouble): Renamed from
4339 * java/lang/Double.java (parseDouble): Renamed from
4340 doubleValueOf. Now public.
4342 2000-06-23 Andrew Haley <aph@cygnus.com>
4344 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4345 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4347 2000-06-23 Tom Tromey <tromey@cygnus.com>
4349 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4350 * java/lang/natDouble.cc: Always include <alloca.h>.
4351 Fix for PR libgcj/267.
4353 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4355 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4356 comply with classpath VM spec.
4357 (add(Group)): Rename to addGroup().
4358 * java/lang/Thread.java (Thread): Use addThread().
4359 * java/lang/natThread.cc (finish_): Use removeThread().
4361 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4363 * java/lang/ThreadGroup.java: Merged with classpath.
4364 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4365 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4367 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4368 ThreadGroup.root if Thread.currentThread is null. Honour the
4369 ThreadGroup's max priority setting.
4371 2000-06-18 Tom Tromey <tromey@cygnus.com>
4373 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4374 returned class. For PR gcj/260.
4376 2000-06-16 Tom Tromey <tromey@cygnus.com>
4378 Fix for PR libgcj/261:
4379 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4381 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4382 argument. (This is a patch from long ago that somehow went
4385 2000-06-15 Tom Tromey <tromey@cygnus.com>
4387 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4391 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4393 Fix for PR java.lang/258:
4394 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4395 JV_STATE_DONE, to prevent accidental initialization.
4396 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4397 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4398 interface or an abstract class. Remove redundant initializeClass calls.
4399 Remove duplicate if_idt test.
4400 (_Jv_InterfaceAssignableFrom): New function.
4401 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4403 2000-05-31 Tom Tromey <tromey@cygnus.com>
4405 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4406 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4407 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4408 (NUM_OBJECT_METHODS): New define.
4409 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4410 `array_vtable' parameter. Added assertion.
4411 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4414 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4416 * gcj/cni.h: Include <string.h>.
4417 * defineclass.cc: Include <alloca.h>.
4418 * interpret.cc: Ditto.
4419 * gij.cc: Include <stdlib.h>.
4421 2000-05-30 Tom Tromey <tromey@cygnus.com>
4423 * include/name-finder.h: Include <sys/wait.h>.
4424 (_Jv_name_finder::pid): Now of type `pid_t'.
4425 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4426 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4429 2000-05-24 Warren Levy <warrenl@cygnus.com>
4431 * java/io/ObjectOutputStream.java (writeObject): Use component type
4432 when writing arrays.
4435 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4437 Fix for PR libgcj/226:
4438 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4439 since this is an installed header.
4441 Fix for PR libgcj/228:
4442 * java/util/zip/ZipFile (getInputStream): Create inflater with
4445 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4446 with DataFormatException.
4448 2000-05-20 Tom Tromey <tromey@cygnus.com>
4450 * Makefile.in: Rebuilt.
4451 * Makefile.am (hack1): Removed.
4452 (awto_files): Likewise.
4453 (libgcjawt_la_SOURCES): Likewise.
4454 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4455 (libgcjawt_la_DEPENDENCIES): Likewise.
4456 (libgcjawt_la_LIBADD): Likewise.
4457 (libgcjawt_la_LDFLAGS): Likewise.
4458 (libgcjawt_la_LINK): Likewise.
4459 ($(awt_java_source_files:.java=.class)): Likewise.
4460 (libgcj.zip): Don't depend on AWT files.
4461 (MOSTLYCLEANFILES): Don't include AWT files.
4462 ($(awto_files)): Removed.
4463 (nat_headers): Removed AWT files.
4464 (cond_awt_java_source_files): Removed.
4465 (ordinary_java_source_files): Added awt_java_source_files.
4466 * libgcj.spec.in (*lib): Removed -lgcjawt.
4467 * configure: Rebuilt.
4468 * configure.in: Removed --enable-java-awt option.
4470 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4472 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4473 (ZipEntry): Copy the `name' field.
4474 (clone): Implement JDK1.2 method.
4475 (setCompressedSize): ditto.
4478 2000-05-19 Tom Tromey <tromey@cygnus.com>
4480 * java/io/BufferedWriter.java: Merged with Classpath.
4481 * java/io/BufferedOutputStream.java: Merged with Classpath.
4483 2000-05-16 Andrew Haley <aph@cygnus.com>
4485 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4486 build_ia64_frame_state.
4487 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4490 2000-05-15 Warren Levy <warrenl@cygnus.com>
4492 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4493 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4494 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4495 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4496 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4497 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4498 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4499 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4500 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4501 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4502 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4503 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4504 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4505 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4506 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4507 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4508 * gnu/gcj/io/NullOutputStream.java: Removed.
4509 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4510 * gnu/gcj/lang/ArrayHelper.java: Removed.
4511 * gnu/gcj/lang/ClassHelper.java: Removed.
4512 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4514 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4515 * gnu/java/beans/EmptyBeanInfo.java: New file.
4516 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4517 * gnu/java/beans/IntrospectionIncubator.java: New file.
4518 * gnu/java/beans/editors/ColorEditor.java: New file.
4519 * gnu/java/beans/editors/FontEditor.java: New file.
4520 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4521 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4522 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4523 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4524 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4525 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4526 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4527 * gnu/java/beans/editors/StringEditor.java: New file.
4528 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4529 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4530 * gnu/java/io/NullOutputStream.java: New file.
4531 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4532 * gnu/java/lang/ArrayHelper.java: New file.
4533 * gnu/java/lang/ClassHelper.java: New file.
4534 * gnu/java/lang/reflect/TypeSignature.java: New file.
4536 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4537 namespace back to the original Classpath gnu/java namespace.
4538 * Makefile.in: Rebuilt.
4540 * java/beans/Beans.java: Namespace change.
4541 * java/beans/EventSetDescriptor.java: Namespace change.
4542 * java/beans/Introspector.java: Namespace change.
4543 * java/beans/PropertyEditorManager.java: Namespace change.
4544 * java/io/ObjectInputStream.java: Namespace change.
4545 * java/io/ObjectOutputStream.java: Namespace change.
4546 * java/io/ObjectStreamClass.java: Namespace change.
4547 * java/io/ObjectStreamField.java: Namespace change.
4549 2000-04-21 Warren Levy <warrenl@cygnus.com>
4551 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4552 now that compiler patch is available.
4553 Removed unneeded System.loadLibrary.
4554 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4555 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4557 2000-04-19 Andrew Haley <aph@cygnus.com>
4559 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4560 and target classes have been initialized.
4562 2000-04-19 Andrew Haley <aph@cygnus.com>
4564 * java/lang/String.java: implement Serializable, Comparable.
4565 (compareTo (Object)): New method.
4567 2000-04-19 Warren Levy <warrenl@cygnus.com>
4569 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4570 instead of getField to retrieve non-public field.
4571 (getSerialPersistantFields): Ditto.
4573 2000-04-18 Warren Levy <warrenl@cygnus.com>
4575 * mauve-libgcj: Turned off object serialization tests temporarily
4576 due to compiler error.
4578 2000-04-17 Warren Levy <warrenl@cygnus.com>
4580 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4581 to avoid build problem.
4583 * mauve-libgcj: Turned on object serialization tests.
4585 2000-04-17 Tom Tromey <tromey@cygnus.com>
4587 * libgcj.spec.in (*lib): Added -lgcjawt.
4589 2000-04-17 Andrew Haley <aph@cygnus.com>
4591 * Makefile.am: Add new files:
4592 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4594 * Makefile.in: Rebuilt.
4596 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4597 interface that has no implementations.
4598 Check for an attempt to assign an abstract class to an interface.
4600 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4601 if we fail to find MessageDigest.getInstance ("SHA").
4603 * gnu/gcj/io/SimpleSHSStream.java: New file.
4604 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4605 * gnu/gcj/io/shs.cc: New file.
4606 * gnu/gcj/io/shs.h: new file.
4608 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4611 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4612 punctuation from the classname of an array element.
4614 * gcj/javaprims.h: Add SimpleDigestStream.
4616 2000-04-17 Andrew Haley <aph@cygnus.com>
4618 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4619 to getPrivateField for superclasses.
4621 2000-04-14 Andrew Haley <aph@cygnus.com>
4623 * Makefile.am: Add new files:
4624 java/io/ObjectOutputStream$PutField.h,
4625 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4626 java/io/natObjectOutputStream.cc
4627 * Makefile.in: Rebuilt.
4628 * gcj/Makefile.in: Rebuilt.
4629 * include/Makefile.in: Rebuilt.
4630 * java/lang/Class.h (getPrivateField): New method.
4631 (getPrivateMethod): Ditto.
4632 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4633 and java::io::ObjectStreamClass our friends.
4634 * java/lang/natClass.cc (getPrivateField): New method.
4635 (getPrivateMethod): Ditto.
4636 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4637 * gcj/javaprims.h: Add serialization classes.
4638 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4639 (setByteField): Ditto.
4640 (setCharField): Ditto.
4641 (setDoubleField): Ditto.
4642 (setFloatField): Ditto.
4643 (setIntField): Ditto.
4644 (setLongField): Ditto.
4645 (setShortField): Ditto.
4646 (setObjectField): Ditto.
4647 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4649 (getByteField): Ditto.
4650 (getCharField): Ditto.
4651 (getDoubleField): Ditto.
4652 (getFloatField): Ditto.
4653 (getIntField): Ditto.
4654 (getLongField): Ditto.
4655 (getShortField): Ditto.
4656 (getObjectField): Ditto.
4657 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4659 (getSerialPersistantFields): Ditto.
4660 (getDefinedSUID): Ditto.
4661 * java/io/natObjectOutputStream.cc: New file.
4662 * java/io/natObjectInputStream.cc: New file.
4664 2000-04-13 Warren Levy <warrenl@cygnus.com>
4666 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4667 problems. Revert to previous version to reproduce and when fixed.
4669 2000-04-13 Warren Levy <warrenl@cygnus.com>
4671 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4672 * gnu/gcj/io/NullOutputStream.java: New file.
4673 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4674 * java/io/BlockDataException.java: New file.
4675 * java/io/Externalizable.java: New file.
4676 * java/io/InvalidClassException.java: New file.
4677 * java/io/InvalidObjectException.java: New file.
4678 * java/io/NotActiveException.java: New file.
4679 * java/io/NotSerializableException.java: New file.
4680 * java/io/ObjectInput.java: New file.
4681 * java/io/ObjectInputStream.java: New file.
4682 * java/io/ObjectInputValidation.java: New file.
4683 * java/io/ObjectOutput.java: New file.
4684 * java/io/ObjectOutputStream.java: New file.
4685 * java/io/ObjectStreamClass.java: New file.
4686 * java/io/ObjectStreamConstants.java: New file.
4687 * java/io/ObjectStreamField.java: New file.
4688 * java/io/Replaceable.java: New file.
4689 * java/io/Resolvable.java: New file.
4690 * java/io/SerializablePermission.java: New file.
4691 * java/io/WriteAbortedException.java: New file.
4692 * java/security/BasicPermission.java: New file.
4693 * java/security/DigestOutputStream.java: New file.
4694 * java/security/Guard.java: New file.
4695 * java/security/Permission.java: New file.
4696 * java/security/PermissionCollection.java: New file.
4697 * Makefile.am: Added above files.
4698 * Makefile.in: Rebuilt.
4700 * java/beans/Beans.java (instantiate): Activated serialization code.
4701 * java/lang/SecurityManager.java (checkPermission): New method.
4703 2000-04-12 Warren Levy <warrenl@cygnus.com>
4705 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4706 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4707 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4708 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4709 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4710 * gnu/gcj/beans/editors/FontEditor.java: New file.
4711 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4712 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4713 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4714 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4715 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4716 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4717 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4718 * gnu/gcj/beans/editors/StringEditor.java: New file.
4719 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4720 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4721 * gnu/gcj/lang/ArrayHelper.java: New file.
4722 * gnu/gcj/lang/ClassHelper.java: New file.
4723 * java/beans/BeanDescriptor.java: New file.
4724 * java/beans/BeanInfo.java: New file.
4725 * java/beans/Beans.java: New file.
4726 * java/beans/Customizer.java: New file.
4727 * java/beans/DesignMode.java: New file.
4728 * java/beans/EventSetDescriptor.java: New file.
4729 * java/beans/FeatureDescriptor.java: New file.
4730 * java/beans/IndexedPropertyDescriptor.java: New file.
4731 * java/beans/IntrospectionException.java: New file.
4732 * java/beans/Introspector.java: New file.
4733 * java/beans/MethodDescriptor.java: New file.
4734 * java/beans/ParameterDescriptor.java: New file.
4735 * java/beans/PropertyChangeEvent.java: New file.
4736 * java/beans/PropertyChangeListener.java: New file.
4737 * java/beans/PropertyChangeSupport.java: New file.
4738 * java/beans/PropertyDescriptor.java: New file.
4739 * java/beans/PropertyEditor.java: New file.
4740 * java/beans/PropertyEditorManager.java: New file.
4741 * java/beans/PropertyEditorSupport.java: New file.
4742 * java/beans/PropertyVetoException.java: New file.
4743 * java/beans/SimpleBeanInfo.java: New file.
4744 * java/beans/VetoableChangeListener.java: New file.
4745 * java/beans/VetoableChangeSupport.java: New file.
4746 * java/beans/Visibility.java: New file.
4747 * java/beans/beancontext/BeanContext.java: New file.
4748 * java/beans/beancontext/BeanContextChild.java: New file.
4749 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4750 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4751 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4752 * java/beans/beancontext/BeanContextEvent.java: New file.
4753 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4754 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4755 * java/beans/beancontext/BeanContextProxy.java: New file.
4756 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4758 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4759 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4761 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4762 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4764 * java/beans/beancontext/BeanContextServices.java: New file.
4765 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4766 * java/util/AbstractCollection.java: New file.
4767 * java/util/AbstractList.java: New file.
4768 * java/util/Arrays.java: New file.
4769 * Makefile.am: Added above files.
4770 * Makefile.in: Rebuilt.
4772 2000-04-11 Warren Levy <warrenl@cygnus.com>
4774 * java/awt/AWTError.java: New file.
4775 * java/awt/AWTEvent.java: New file.
4776 * java/awt/AWTException.java: New file.
4777 * java/awt/ActiveEvent.java: New file.
4778 * java/awt/Adjustable.java: New file.
4779 * java/awt/BorderLayout.java: New file.
4780 * java/awt/Color.java: New file.
4781 * java/awt/Component.java: New file.
4782 * java/awt/Container.java: New file.
4783 * java/awt/Dimension.java: New file.
4784 * java/awt/Event.java: New file.
4785 * java/awt/Font.java: New file.
4786 * java/awt/Frame.java: New file.
4787 * java/awt/Graphics.java: New file.
4788 * java/awt/IllegalComponentStateException.java: New file.
4789 * java/awt/Image.java: New file.
4790 * java/awt/ItemSelectable.java: New file.
4791 * java/awt/LayoutManager.java: New file.
4792 * java/awt/LayoutManager2.java: New file.
4793 * java/awt/Menu.java: New file.
4794 * java/awt/MenuBar.java: New file.
4795 * java/awt/MenuComponent.java: New file.
4796 * java/awt/MenuContainer.java: New file.
4797 * java/awt/MenuItem.java: New file.
4798 * java/awt/Paint.java: New file.
4799 * java/awt/PaintContext.java: New file.
4800 * java/awt/Point.java: New file.
4801 * java/awt/Rectangle.java: New file.
4802 * java/awt/Shape.java: New file.
4803 * java/awt/TextArea.java: New file.
4804 * java/awt/TextComponent.java: New file.
4805 * java/awt/Toolkit.java: New file.
4806 * java/awt/Transparency.java: New file.
4807 * java/awt/Window.java: New file.
4808 * java/awt/natToolkit.cc: New file.
4809 * java/awt/event/AWTEventListener.java: New file.
4810 * java/awt/event/ActionEvent.java: New file.
4811 * java/awt/event/ActionListener.java: New file.
4812 * java/awt/event/AdjustmentEvent.java: New file.
4813 * java/awt/event/AdjustmentListener.java: New file.
4814 * java/awt/event/ComponentAdapter.java: New file.
4815 * java/awt/event/ComponentEvent.java: New file.
4816 * java/awt/event/ComponentListener.java: New file.
4817 * java/awt/event/ContainerAdapter.java: New file.
4818 * java/awt/event/ContainerEvent.java: New file.
4819 * java/awt/event/ContainerListener.java: New file.
4820 * java/awt/event/FocusAdapter.java: New file.
4821 * java/awt/event/FocusEvent.java: New file.
4822 * java/awt/event/FocusListener.java: New file.
4823 * java/awt/event/InputEvent.java: New file.
4824 * java/awt/event/InputMethodEvent.java: New file.
4825 * java/awt/event/InputMethodListener.java: New file.
4826 * java/awt/event/InvocationEvent.java: New file.
4827 * java/awt/event/ItemEvent.java: New file.
4828 * java/awt/event/ItemListener.java: New file.
4829 * java/awt/event/KeyAdapter.java: New file.
4830 * java/awt/event/KeyEvent.java: New file.
4831 * java/awt/event/KeyListener.java: New file.
4832 * java/awt/event/MouseAdapter.java: New file.
4833 * java/awt/event/MouseEvent.java: New file.
4834 * java/awt/event/MouseListener.java: New file.
4835 * java/awt/event/MouseMotionAdapter.java: New file.
4836 * java/awt/event/MouseMotionListener.java: New file.
4837 * java/awt/event/PaintEvent.java: New file.
4838 * java/awt/event/TextEvent.java: New file.
4839 * java/awt/event/TextListener.java: New file.
4840 * java/awt/event/WindowAdapter.java: New file.
4841 * java/awt/event/WindowEvent.java: New file.
4842 * java/awt/event/WindowListener.java: New file.
4843 * java/awt/geom/Dimension2D.java: New file.
4844 * java/awt/geom/Point2D.java: New file.
4845 * java/awt/peer/ComponentPeer.java: New file.
4846 * java/awt/peer/ContainerPeer.java: New file.
4847 * java/awt/peer/FramePeer.java: New file.
4848 * java/awt/peer/WindowPeer.java: New file.
4849 * java/util/Collection.java: New file.
4850 * java/util/Comparator.java: New file.
4851 * java/util/Iterator.java: New file.
4852 * java/util/List.java: New file.
4853 * java/util/ListIterator.java: New file.
4854 * Makefile.am: Added above files.
4855 * Makefile.in: Rebuilt.
4857 2000-04-10 Warren Levy <warrenl@cygnus.com>
4859 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4860 * java/lang/FirstThread.java: Ditto.
4861 * java/lang/StringBuffer.java: Ditto.
4862 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4864 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4865 Special case handled in java.math.BigInteger.
4866 * java/math/BigInteger.java (divide): Handle the special case when
4867 dividing by 1 and the high bit of the dividend is set.
4868 (setShiftRight): Handle case when count == 0.
4870 2000-04-05 Andrew Haley <aph@cygnus.com>
4872 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4875 2000-04-05 Andrew Haley <aph@cygnus.com>
4877 * sysdep/ia64.c (rse_address_add): Delete.
4878 (IS_NaT_COLLECTION_ADDR): Delete.
4879 (ia64_backtrace_helper): check for null unwind_info.
4881 * sysdep/ia64-frame.h: add calc_caller_bsp.
4883 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4886 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4887 (_Jv_remI): Likewise.
4888 (_Jv_divJ): Likewise.
4889 (_Jv_remJ): Likewise.
4891 * interpret.cc (continue1): Use divide subroutines to guarantee
4892 correct Java standard behaviour.
4893 Floating-point division should not abort; make it so.
4895 2000-03-29 Tom Tromey <tromey@cygnus.com>
4897 * configure: Rebuilt.
4898 * configure.in: Test against `libgcj_sjlj', not
4899 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4900 to be set even when using sjlj.
4902 2000-03-24 Andrew Haley <aph@cygnus.com>
4904 * Makefile.am: Add file addr2name.awk.
4905 * Makefile.in: Rebuilt.
4906 * addr2name.awk: New file.
4907 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4909 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4912 2000-03-22 Andrew Haley <aph@cygnus.com>
4914 * configure.host: Add -funwind-tables for IA64.
4915 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4916 * Makefile.in: Rebuilt.
4917 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4918 * sysdep/ia64.c: New file.
4919 * sysdep/ia64-frame.h: New file.
4920 * configure.in: Add sysdep/ia64.c for ia64.
4921 * configure: Rebuilt.
4923 2000-03-17 Andrew Haley <aph@cygnus.com>
4925 * java/lang/natString.cc: Remove `register' keyword.
4926 interpret.cc: ditto.
4928 2000-03-16 Andrew Haley <aph@cygnus.com>
4930 * configure.host (ia64): Enable interpreter.
4932 2000-03-14 Hans Boehm <boehm@acm.org>
4934 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4936 2000-03-14 Andrew Haley <aph@cygnus.com>
4938 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4941 2000-03-10 Andrew Haley <aph@cygnus.com>
4943 * java/lang/ieeefp.h: Import latest version from fdlibm.
4945 2000-03-14 Andrew Haley <aph@cygnus.com>
4947 * prims.cc (_Jv_ThrowSignal): New function.
4948 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4950 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4951 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4952 * include/ppc-signal.h: New file.
4954 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4956 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4957 * java/lang/natThread.java (initialize_native): Cast `data' to
4959 * gnu/gcj/RawData.java: Clarify documentation.
4961 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4962 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4963 `jarFile', not `jarFileURL'.
4965 2000-05-15 Andrew Haley <aph@cygnus.com>
4967 * include/ppc-signal.h: New file.
4969 2000-05-11 Tom Tromey <tromey@cygnus.com>
4971 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4972 file headers, don't include `size' in the skip call.
4974 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4976 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4977 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4979 (replace): Reimplemented. Fix javadoc.
4980 (reverse): Call ensureCapacity_unsynchronized().
4981 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4983 (replace): Calculate length for arraycopy() correctly.
4985 2000-05-09 Tom Tromey <tromey@cygnus.com>
4987 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4989 (insert(int,char[],int,int): New method.
4990 (delete): New method from Classpath.
4991 (deleteCharAt): Likewise.
4992 (substring): Likewise.
4993 (shared): No longer private.
4994 Added JavaDoc comments from Classpath.
4995 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4998 2000-05-07 Tom Tromey <tromey@cygnus.com>
5000 * Makefile.in: Rebuilt.
5001 * Makefile.am (LIBLINK): New macro.
5002 (libgcj_la_LINK): Use it.
5003 (libgcjawt_la_LINK): Likewise.
5005 2000-05-06 Tom Tromey <tromey@cygnus.com>
5007 * Makefile.in: Rebuilt.
5008 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5010 2000-05-05 Tom Tromey <tromey@cygnus.com>
5012 Fix for PR libgcj/220:
5013 * Makefile.in: Rebuilt.
5014 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5015 (jv_convert_LDFLAGS): Likewise.
5016 (libgcj_la_LDFLAGS): Likewise.
5017 (GCJLINK): New macro.
5018 (jv_convert_LINK): Use it.
5019 (gij_LINK): Likewise.
5020 (libgcj_la_LINK): New macro.
5021 (libgcjawt_la_LINK): Likewise.
5023 2000-05-04 Tom Tromey <tromey@cygnus.com>
5025 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5027 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5031 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5033 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5034 (_Jv_IsAssignableFrom): Ditto.
5035 (_Jv_IsInstanceOf): Ditto.
5036 (_Jv_CheckCast): Ditto.
5037 (_Jv_CheckArrayStore): Ditto.
5038 * java/lang/Class.h (_Jv_InitClass): Ditto.
5039 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5044 (_Jv_MonitorExit): Ditto.
5045 * boehm.cc (_Jv_MarkObj): Ditto.
5046 (_Jv_MarkObj): Ditto.
5047 (_Jv_MarkArray): Ditto.
5048 * prims.cc (_Jv_AllocObject): Ditto.
5049 (_Jv_NewObjectArray): Ditto.
5050 (_Jv_NewPrimArray): Ditto.
5051 (_Jv_Malloc): Ditto.
5052 (_Jv_Realloc): Ditto.
5053 (_Jv_MallocUnchecked): Ditto.
5059 2000-05-04 Tom Tromey <tromey@cygnus.com>
5061 * java/util/Locale.java (Locale): Don't explicitly check for
5063 * java/util/Hashtable.java (containsKey): Don't explicitly check
5066 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5068 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5070 * java/text/StringCharacterIterator.java
5071 (StringCharacterIterator): Don't check for null.
5072 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5074 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5075 check for null pointer.
5076 (leaveGroup): Likewise.
5077 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5079 (setData): Likewise.
5080 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5083 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5085 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5086 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5087 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5088 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5089 -rpath for in-gcc builds.
5090 * Makefile.in: Rebuilt.
5092 2000-04-28 Tom Tromey <tromey@cygnus.com>
5094 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5097 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5099 * libjava/java/lang/String.java (toString): Remove `final' hack.
5101 2000-04-05 Tom Tromey <tromey@cygnus.com>
5103 Runtime support for PR gcj/2:
5104 * prims.cc (_Jv_ThrowNullPointerException): New function.
5105 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5107 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5109 * prims.cc (_Jv_NewObjectArray): Fix typo.
5111 2000-04-26 Tom Tromey <tromey@cygnus.com>
5113 * Makefile.in: Rebuilt.
5114 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5116 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5118 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5121 2000-04-22 Anthony Green <green@cygnus.com>
5123 * include/jvm.h (__builtin_expect): Define as unused for now.
5124 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5128 (_Jv_MonitorExit): Ditto.
5129 * boehm.cc (_Jv_MarkObj): Ditto.
5130 (_Jv_MarkObj): Ditto.
5131 (_Jv_MarkArray): Ditto.
5132 (_Jv_AllocBytes): Ditto.
5133 * prims.cc (_Jv_AllocObject): Ditto.
5134 (_Jv_NewObjectArray): Ditto.
5135 (_Jv_NewPrimArray): Ditto.
5136 (_Jv_Malloc): Ditto.
5137 (_Jv_Realloc): Ditto.
5138 (_Jv_MallocUnchecked): Ditto.
5144 * include/Makefile.in: Rebuilt.
5145 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5147 2000-04-21 Tom Tromey <tromey@cygnus.com>
5149 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5150 Yet another new version from Classpath.
5152 Fix for PR libgcj/15:
5153 * java/util/natGregorianCalendar.cc (_REENTRANT,
5154 _POSIX_PTHREAD_SEMANTICS): Don't define.
5155 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5156 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5158 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5160 * configure: Rebuilt.
5161 * configure.in: If using POSIX threads, define _REENTRANT if
5162 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5163 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5165 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5166 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5167 version from Classpath.
5169 Fix for PR libgcj/213:
5170 * Makefile.in: Rebuilt.
5171 * Makefile.am (gij_SOURCES): Added gij.cc.
5172 (EXTRA_gij_SOURCES): Removed.
5173 (gij_LDADD): Removed gij.lo.
5174 (gij_DEPENDENCIES): Likewise.
5175 ($(gij_OBJECTS)): Depend on nat_headers.
5177 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5178 `setURL', not `url.set'.
5180 2000-04-20 Tom Tromey <tromey@cygnus.com>
5182 Fix for PR java.io/204:
5183 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5184 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5187 Fix for PR libgcj/212:
5188 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5189 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5190 * java/lang/Class.h (_Jv_word): Declare.
5192 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5194 2000-04-19 Tom Tromey <tromey@cygnus.com>
5196 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5197 doesn't have a loader.
5199 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5201 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5202 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5204 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5206 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5208 (available): Initialize `where' to prevent bogus compiler warning.
5210 2000-04-12 Tom Tromey <tromey@cygnus.com>
5212 * java/lang/natString.cc (intern): Temporarily disable finalizer
5215 * java/lang/natString.cc (unintern): Added `obj' argument.
5216 (intern): Register finalizer for string.
5217 * java/lang/String.java (unintern): Now static; added obj
5220 2000-04-11 Tom Tromey <tromey@cygnus.com>
5222 * java/util/Vector.java (VectorEnumeration): Now `final'.
5223 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5224 (HashtableEnumeration): Likewise.
5225 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5226 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5228 2000-04-10 Warren Levy <warrenl@cygnus.com>
5230 * java/io/ObjectStreamException.java: New file.
5231 * java/io/OptionalDataException.java: New file.
5232 * java/io/StreamCorruptedException.java: New file.
5233 * java/math/BigDecimal.java: New file.
5234 * java/sql/CallableStatement.java: New file.
5235 * java/sql/Connection.java: New file.
5236 * java/sql/DataTruncation.java: New file.
5237 * java/sql/DatabaseMetaData.java: New file.
5238 * java/sql/Date.java: New file.
5239 * java/sql/Driver.java: New file.
5240 * java/sql/DriverManager.java: New file.
5241 * java/sql/DriverPropertyInfo.java: New file.
5242 * java/sql/PreparedStatement.java: New file.
5243 * java/sql/ResultSet.java: New file.
5244 * java/sql/ResultSetMetaData.java: New file.
5245 * java/sql/SQLException.java: New file.
5246 * java/sql/SQLWarning.java: New file.
5247 * java/sql/Statement.java: New file.
5248 * java/sql/Time.java: New file.
5249 * java/sql/Timestamp.java: New file.
5250 * java/sql/Types.java: New file.
5251 * Makefile.am: Added above new files.
5252 * Makefile.in: Rebuilt.
5254 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5255 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5256 DatagramSocket constructor instead of null.
5258 2000-04-08 Anthony Green <green@cygnus.com>
5260 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5263 2000-04-08 Anthony Green <green@cygnus.com>
5265 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5266 (_Jv_MutexUnlock): Ditto.
5267 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5268 (_Jv_MutexUnlock): Ditto.
5270 2000-04-08 Anthony Green <green@cygnus.com>
5272 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5273 (ensureCapacity_unsynchronized): New private method.
5274 (append): Use ensureCapacity_unsynchronized.
5276 2000-04-08 Tom Tromey <tromey@cygnus.com>
5278 * Makefile.in: Rebuilt.
5279 * Makefile.am (awt_java_source_files): Added new files.
5280 * java/awt/IllegalComponentStateException.java: New file.
5281 * java/awt/ItemSelectable.java: New file.
5282 * java/awt/event/WindowEvent.java: Finished.
5283 * java/awt/event/TextEvent.java: Finished.
5284 * java/awt/event/ContainerEvent.java: New file.
5285 * java/awt/Component.java (getX, getY): New methods.
5286 * java/awt/event/PaintEvent.java: New file.
5287 * java/awt/event/MouseEvent.java: New file.
5288 * java/awt/ActiveEvent.java: New file.
5289 * java/awt/event/KeyEvent.java: Finished.
5290 * java/awt/event/ItemEvent.java: New file.
5291 * java/awt/Adjustable.java: New file.
5292 * java/awt/event/InputMethodEvent.java: New file.
5293 * java/awt/event/InputEvent.java: Finished.
5294 * java/awt/event/FocusEvent.java: New file.
5295 * java/awt/event/MouseMotionAdapter.java: New file.
5296 * java/awt/event/MouseAdapter.java: New file.
5297 * java/awt/event/KeyAdapter.java: New file.
5298 * java/awt/event/FocusAdapter.java: New file.
5299 * java/awt/event/ContainerAdapter.java: New file.
5300 * java/awt/event/ComponentEvent.java: Finished.
5301 * java/awt/event/AdjustmentEvent.java: New file.
5302 * java/awt/event/ComponentAdapter.java: New file.
5303 * java/awt/event/ActionEvent.java: Finished.
5304 * java/awt/event/MouseMotionListener.java: New file.
5305 * java/awt/event/MouseListener.java: New file.
5306 * java/awt/event/ItemListener.java: New file.
5307 * java/awt/event/InputMethodListener.java: New file.
5308 * java/awt/event/ContainerListener.java: New file.
5309 * java/awt/event/FocusListener.java: New file.
5310 * java/awt/event/ComponentListener.java: New file.
5311 * java/awt/event/AWTEventListener.java: New file.
5312 * java/awt/event/AdjustmentListener.java: New file.
5314 2000-04-08 Anthony Green <green@cygnus.com>
5316 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5317 check when we have to.
5319 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5322 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5325 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5326 inline hasMoreElements.
5328 2000-04-05 Tom Tromey <tromey@cygnus.com>
5330 * configure: Rebuilt.
5331 * configure.in: Recognize --enable-java-awt.
5332 (AWT): New conditional.
5333 * Makefile.in: Rebuilt.
5334 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5336 (libgcjawt_la_SOURCES): New macro.
5337 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5338 (libgcjawt_la_DEPENDENCIES): Likewise.
5339 (libgcjawt_la_LIBADD): Likewise.
5340 (libgcjawt_la_LDFLAGS): Likewise.
5341 (libgcj.zip): Depend on cond_java_awt_source_files
5342 (cond_awt_java_source_files): New macro.
5343 (MOSTLYCLEANFILES): Added awto_files.
5344 (awto_files): New macro. Use where javao_files used.
5345 (nat_headers): Use cond_awt_java_source_files.
5347 2000-04-04 Tom Tromey <tromey@cygnus.com>
5349 * Makefile.in: Rebuilt.
5350 * Makefile.am (awt_java_source_files): Added AWTException.java.
5351 * java/awt/AWTException.java: New file.
5353 2000-04-03 Tom Tromey <tromey@cygnus.com>
5355 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5356 commentary from Alex.
5358 * Makefile.in: Rebuilt.
5359 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5362 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5364 * configure: Rebuilt.
5365 * configure.in: Add --disable-jvmpi.
5366 * include/config.h.in: Rebuilt.
5367 * acconfig.h: Add ENABLE_JVMPI.
5369 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5370 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5371 (_Jv_JVMPI_Notify_THREAD_END): New define.
5372 (_Jv_JVMPI_Notify_THREAD_END): New define.
5373 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5374 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5375 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5377 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5380 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5381 (finish_): Generate JVMPI thread end events.
5382 (run_): Generate JVMPI thread start events.
5383 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5384 preloaded JNI library.
5385 Include JVMPI headers if necessary.
5386 (run): Generate JVMPI thread start events.
5388 * boehm.cc: Define GC_disable and GC_enable.
5389 (_Jv_DisableGC): New function.
5390 (_Jv_EnableGC): New function.
5391 (disable_gc_mutex): Declare.
5392 * nogc.cc (_Jv_DisableGC): New function.
5393 (_Jv_EnableGC): New function.
5395 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5396 (_Jv_JVMPI_Interface): Define.
5397 (jvmpiEnableEvent): New function.
5398 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5400 * include/jvmpi.h: New file.
5402 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5404 * Makefile.in: New #defines and friends for Thread.h.
5405 * Makefile.am: Ditto.
5406 * posix-threads.cc: (struct starter): Remove `object'.
5407 (_Jv_CondWait): Use interruptable condition variables and new
5408 recursive mutexes. New return codes on interrupt or non-ownership
5410 (_Jv_CondNotify): Ditto.
5411 (_Jv_CondNotifyAll): Ditto.
5412 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5413 the target thread by signaling its wait condition.
5414 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5415 not the starter struct. Initialize wait_mutex and wait_cond.
5416 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5418 (_Jv_MutexUnlock): Ditto.
5419 (really_start): Set info->data->thread from pthread_self() to work
5420 around a race condition. Destroy wait_mutex and wait_cond when run()
5422 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5423 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5425 startable_flag: New private field.
5426 (Thread): Initialize `startable_flag'.
5427 (toString): Check for null thread group.
5428 * java/lang/natThread.cc: (struct natThread): New fields
5429 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5430 (class locker): Removed.
5431 (initialize_native): Initialize `join_cond' and `join_mutex'.
5432 (interrupt): Now just calls _Jv_ThreadInterrupt().
5433 (join): Simplified. Just wait on the target thread's join condition.
5434 (finish_): Remove join list code. Unset thread group. Signal
5435 potential joiners by notifying the dying threads join_cond.
5436 (start): Check for illegal restarts.
5437 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5439 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5440 #defines and #ifdefs.
5441 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5442 `wait_mutex', `next'.
5443 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5444 directly mapping to pthread_cond_t.
5445 (struct _Jv_Mutex_t): New recursive implementation.
5446 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5447 _Jv_HaveCondDestroy: Never define this for posix-threads.
5448 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5449 (_Jv_CondNotifyAll): Ditto.
5450 (_Jv_MutexLock): Ditto.
5451 (_Jv_MutexUnlock): Ditto.
5452 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5453 (_Jv_MutexDestroy): Ditto.
5454 (_Jv_CondDestroy): Removed.
5455 (_Jv_PthreadGetMutex): Removed.
5456 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5457 error. Add a FIXME about this.
5458 (_Jv_CondNotifyAll): Ditto.
5459 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5460 _JV_NOT_OWNER on other errors. Add FIXME.
5462 2000-03-26 Tom Tromey <tromey@cygnus.com>
5464 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5466 (call): Don't throw exception here.
5468 2000-03-26 Tom Tromey <tromey@cygnus.com>
5470 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5471 * interpret.cc: Use SIZEOF_VOID_P.
5472 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5473 (_Jv_loadLong): Likewise.
5474 (_Jv_storeDouble): Likewise.
5475 * configure: Rebuilt.
5476 * configure.in: Check size of void*.
5478 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5480 2000-03-26 Hans Boehm <boehm@acm.org>
5482 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5483 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5485 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5486 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5487 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5488 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5490 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5491 (FFI_RAW_SIZE): Likewise.
5492 (_Jv_InterpMethod::ncode): Use them.
5493 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5494 STORED): Define differently on a 64 bit machine.
5495 (continue1): Use ffi_java_raw_call when appropriate.
5497 2000-03-24 Warren Levy <warrenl@cygnus.com>
5499 * java/math/BigInteger.java(divide): Handle the special case when
5500 dividing by 1 and the high bit of the dividend is set.
5501 (setShiftRight): Handle case when count == 0.
5503 2000-03-24 Warren Levy <warrenl@cygnus.com>
5505 * java/awt/Font.java(isBold): Fix syntax error.
5507 * java/awt/Frame.java(postEvent): ditto.
5508 * java/awt/Menu.java(postEvent): ditto.
5509 * java/awt/MenuBar.java(postEvent): ditto.
5510 * java/awt/Toolkit.java(init): Included a stub.
5512 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5514 * java/awt/Event.java: Add all the event type constants.
5515 (Event): Implemented constructors.
5516 (controlDown): Implemented.
5517 (metaDown): Implemented.
5518 (paramString): Stubbed.
5519 (shiftDown): Implemented.
5520 (toString): Implemented.
5521 (translate): Implemented.
5523 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5525 * java/lang/natClass.cc (isInstance): Initialize `this'.
5526 (isAssignableFrom): Initialize `this' and `klass'.
5527 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5528 implemented by any loaded class, so return false.
5529 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5530 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5532 2000-03-19 Warren Levy <warrenl@cygnus.com>
5534 * java/awt/Color.java: Specified java.io for Serializable.
5535 * java/awt/Toolkit.java: Imported java.net.URL.
5537 2000-03-19 Warren Levy <warrenl@cygnus.com>
5539 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5541 2000-03-16 Warren Levy <warrenl@cygnus.com>
5543 * java/awt/Color.java: New file.
5544 * java/awt/Graphics.java: New file.
5545 * java/awt/Image.java: New file.
5546 * java/awt/Paint.java: New file.
5547 * java/awt/PaintContext.java: New file.
5548 * java/awt/Transparency.java: New file.
5549 * java/util/Collection.java: New file.
5550 * java/util/Comparator.java: New file.
5551 * java/util/Iterator.java: New file.
5552 * java/util/List.java: New file.
5553 * java/util/ListIterator.java: New file.
5554 * Makefile.am: Added above new files.
5555 * Makefile.in: Rebuilt.
5557 * java/awt/Font.java (PLAIN): New field.
5559 (ITALIC): New field.
5560 (ROMAN_BASELINE): New field.
5561 (CENTER_BASELINE): New field.
5562 (HANGING_BASELINE): New field.
5566 (pointSize): New field.
5567 (Font): Implemented constructor.
5568 (isPlain): Implemented method.
5569 (isBold): Implemented method.
5570 (isItalic): Implemented method.
5571 (getName): Implemented method.
5572 (getStyle): Implemented method.
5573 (getSize): Implemented method.
5574 (getSize2D): Implemented method.
5576 * java/awt/Frame.java (getFont): Stubbed.
5577 (postEvent): Stubbed.
5579 * java/awt/Menu.java (postEvent): Stubbed.
5580 * java/awt/MenuBar.java (getFont): Stubbed.
5581 (postEvent): Stubbed.
5582 * java/awt/Toolkit.java (getImage): Added abstract method.
5584 2000-03-15 Tom Tromey <tromey@cygnus.com>
5586 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5588 * prims.cc (win32_exception_handler): Reformatted.
5590 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5591 (_Jv_HaveMutexDestroy): Likewise.
5593 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5595 * java/io/natFileDescriptorWin32.cc: New file.
5596 * java/io/natFileWin32.cc: New file.
5597 * java/net/natInetAddress.cc: Added conditional inclusion of
5598 Windows / Winsock headers.
5599 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5600 inclusion of Windows / Winsock headers.
5601 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5602 Windows / Winsock headers.
5603 * include/win32-signal.h: New file.
5604 * include/win32-threads.h: New file.
5605 * win32-threads.cc: New file.
5606 * exception.cc (win32_get_restart_frame): New function.
5607 * prims.cc (win32_exception_handler): New function.
5608 (main_init) Performs Winsock initialisation.
5609 (main_init) Installs exeception handler.
5611 2000-03-14 Tom Tromey <tromey@cygnus.com>
5613 * jni.cc (mangled_name): Fixed assertion.
5614 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5615 turned assert into actual failure.
5617 2000-03-09 Warren Levy <warrenl@cygnus.com>
5619 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5620 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5621 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5623 2000-03-09 Warren Levy <warrenl@cygnus.com>
5625 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5626 * java/security/DigestException.java: New file.
5627 * java/security/GeneralSecurityException.java: New file.
5628 * java/security/InvalidAlgorithmParameterException.java: New file.
5629 * java/security/InvalidKeyException.java: New file.
5630 * java/security/InvalidParameterException.java: New file.
5631 * java/security/Key.java: New file.
5632 * java/security/KeyException.java: New file.
5633 * java/security/KeyPair.java: New file.
5634 * java/security/KeyPairGenerator.java: New file.
5635 * java/security/KeyPairGeneratorSpi.java: New file.
5636 * java/security/NoSuchProviderException.java: New file.
5637 * java/security/PrivateKey.java: New file.
5638 * java/security/Provider.java: New file.
5639 * java/security/PublicKey.java: New file.
5640 * java/security/SecureRandom.java: New file.
5641 * java/security/Security.java: New file.
5642 * java/security/Signature.java: New file.
5643 * java/security/SignatureException.java: New file.
5644 * java/security/interfaces/DSAKey.java: New file.
5645 * java/security/interfaces/DSAParams.java: New file.
5646 * java/security/interfaces/DSAPrivateKey.java: New file.
5647 * java/security/interfaces/DSAPublicKey.java: New file.
5648 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5649 * java/security/interfaces/RSAPrivateKey.java: New file.
5650 * java/security/interfaces/RSAPublicKey.java: New file.
5651 * java/security/spec/AlgorithmParameterSpec.java: New file.
5652 * java/security/spec/InvalidKeySpecException.java: New file.
5653 * java/security/spec/InvalidParameterSpecException.java: New file.
5654 * java/security/spec/KeySpec.java: New file.
5655 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5656 * java/security/spec/RSAPrivateKeySpec.java: New file.
5657 * java/security/spec/RSAPublicKeySpec.java: New file.
5658 * Makefile.am: Added above java.security files.
5659 * Makefile.in: Rebuilt.
5661 * java/security/MessageDigest.java: Rewritten.
5662 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5664 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5668 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5670 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5671 _Jv_PrepareConstantTimeTables.
5672 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5673 classes should have an IDT, so don't return if klass is an array
5676 2000-03-08 Tom Tromey <tromey@cygnus.com>
5678 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5679 of `void' to be created.
5681 2000-03-08 Warren Levy <warrenl@cygnus.com>
5683 * java/math/BigInteger.java(signum): Handle zero properly.
5685 2000-03-07 Tom Tromey <tromey@cygnus.com>
5687 * All files: Updated copyright information.
5688 * COPYING: New file.
5689 * COPYING.LIB: Removed.
5690 * LIBGCJ_LICENSE: We now use GPL + special exception.
5692 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5694 * resolve.cc (_Jv_SearchMethodInClass): New function.
5695 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5696 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5698 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5700 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5701 (struct _Jv_ifaces): New declaration.
5702 JV_CLASS: New macro definition.
5703 (getComponentType): Relocate below isArray() for inlining.
5704 (getModifiers): Declare `inline'.
5705 (getSuperclass): Ditto.
5707 (isPrimitive): Ditto.
5708 (_Jv_IsAssignableFrom): New prototype.
5709 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5711 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5712 Check for JV_STATE_DONE before invoking initializeClass().
5713 (_Jv_PrepareConstantTimeTables): New prototype.
5714 (_Jv_GetInterfaces): Ditto.
5715 (_Jv_GenerateITable): Ditto.
5716 (_Jv_GetMethodString): Ditto.
5717 (_Jv_AppendPartialITable): Ditto.
5718 (_Jv_FindIIndex): Ditto.
5719 depth, ancestors, idt: New class fields.
5721 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5722 inline function `_Jv_IsAssignableFrom'. Use that function.
5723 (isInstance): Declare `inline'.
5724 (initializeClass): Get lock on class before checking `state'. Unlock
5725 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5727 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5728 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5729 class->depth and ancestor table.
5730 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5731 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5732 _Jv_IsAssignableFrom.
5733 (_Jv_CheckArrayStore): Ditto.
5734 (_Jv_LookupInterfaceMethodIdx): New function.
5735 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5736 (_Jv_PrepareConstantTimeTables): New function.
5737 (_Jv_IndexOf): Ditto.
5738 (_Jv_GetInterfaces): Ditto.
5739 (_Jv_GenerateITable): Ditto.
5740 (_Jv_GetMethodString): Ditto.
5741 (_Jv_AppendPartialITable): Ditto.
5742 iindex_mutex, iindex_mutex_initialized: New static fields.
5743 (_Jv_FindIIndex): New function.
5745 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5747 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5748 (_Jv_CheckArrayStore): Ditto.
5749 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5750 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5751 Moved to gcj/array.h.
5752 (_Jv_Realloc): New function.
5754 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5756 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5757 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5758 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5759 JvNewDoubleArray): Implementations moved from prims.cc and
5762 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5764 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5766 2000-03-06 Tom Tromey <tromey@cygnus.com>
5768 * jni.cc (MARK_NONE): New define.
5769 (MARK_USER): Likewise.
5770 (MARK_SYSTEM): Likewise.
5771 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5773 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5774 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5775 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5776 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5778 (call): Use MARK_SYSTEM.
5779 (_Jv_GetJNIEnvNewFrame): New function.
5780 (_Jv_LookupJNIMethod): New function.
5781 (_Jv_JNI_PopSystemFrame): New function.
5782 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5784 2000-03-05 Tom Tromey <tromey@cygnus.com>
5786 Fix for PR libgcj/43:
5787 * include/Makefile.in: Rebuilt.
5788 * include/Makefile.am (include_HEADERS): New define.
5790 2000-03-05 Anthony Green <green@redhat.com>
5792 * gcj/javaprims.h ("Java"): Remove FirstThread.
5794 * configure.host: Fix __NO_MATH_INLNES botch.
5796 * Makefile.in: Rebuilt.
5797 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5798 (gnu/gcj/runtime/FirstThread.h): Moved.
5799 (ordinary_java_source_files): Move FirstThread.java.
5800 * prims.cc: Deal with FirstThread movement.
5802 (_Jv_RunMain): Ditto.
5804 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5805 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5807 2000-03-05 Warren Levy <warrenl@cygnus.com>
5809 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5810 Handle null addresses.
5812 2000-03-04 Anthony Green <green@redhat.com>
5814 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5817 2000-03-04 Anthony Green <green@redhat.com>
5819 * configure: Rebuilt.
5820 * configure.in (ZLIBTESTSPEC): New macro.
5821 (GCTESTSPEC): New macro.
5822 (LIBGCJTESTSPEC): New macro.
5823 * libgcj-test.spec.in: New file.
5825 2000-03-02 Tom Tromey <tromey@cygnus.com>
5827 * include/java-interp.h: Don't include MethodInvocation.h.
5828 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5829 * Makefile.in: Rebuilt.
5830 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5831 (ordinary_java_source_files): Don't mention
5832 MethodInvocation.java.
5833 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5834 * interpret.cc (MethodInvocation::continue1): Removed.
5835 (run): Handle exceptions here.
5836 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5838 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5840 (defineClass2): Removed.
5842 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5844 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5846 (hack_call): Removed.
5848 * java/lang/Class.h (Class): Removed hackRunInitializers,
5850 * java/lang/natClass.cc (hackRunInitializers): Removed.
5851 (initializeClass): Catch exceptions here.
5852 Include ExceptionInInitializerError.h.
5853 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5856 * java/lang/Object.h (Object): Don't mention hack12_6.
5857 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5859 * java/lang/Object.java (hack12_6): Removed.
5861 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5862 (start): Use run_, not run__.
5863 * java/lang/Thread.java (run_): Renamed from run__; old run_
5866 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5867 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5868 (_Jv_JNI_DefineClass): Likewise.
5869 (_Jv_JNI_ThrowNew): Likewise.
5870 (_Jv_JNI_AllocObject): Likewise.
5871 (_Jv_JNI_GetAnyMethodID): Likewise.
5872 (_Jv_JNI_CallAnyMethodV): Likewise.
5873 (_Jv_JNI_CallAnyMethodA): Likewise.
5874 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5875 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5876 (_Jv_JNI_GetAnyFieldID): Likewise.
5877 (_Jv_JNI_NewString): Likewise.
5878 (_Jv_JNI_NewStringUTF): Likewise.
5879 (_Jv_JNI_GetStringUTFChars): Likewise.
5880 (_Jv_JNI_NewObjectArray): Likewise.
5881 (_Jv_JNI_NewPrimitiveArray): Likewise.
5882 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5883 (_Jv_JNI_GetStringRegion): Likewise.
5884 (_Jv_JNI_GetStringUTFRegion): Likewise.
5885 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5886 (_Jv_JNI_MonitorEnter): Likewise.
5887 (_Jv_JNI_MonitorExit): Likewise.
5888 (_Jv_JNI_ToReflectedField): Likewise.
5889 (_Jv_JNI_ToReflectedMethod): Likewise.
5890 (_Jv_JNI_RegisterNatives): Likewise.
5891 (_Jv_JNI_AttachCurrentThread): Likewise.
5892 (_Jv_JNI_DestroyJavaVM): Likewise.
5894 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5896 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5897 error caused by the incorrect casting of a long to an int.
5899 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5901 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5902 SIGSEV caused by use of the wrong instance variable.
5904 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5906 * java/io/File.java (File(String, String)): For dirPath, treat an
5907 empty String the same as `null'.
5909 2000-02-26 Anthony Green <green@cygnus.com>
5911 * gnu/gcj/io/MimeTypes.java: Test for null.
5913 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5914 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5916 * java/net/URLConnection.java: Update copyright notice.
5918 2000-02-25 Tom Tromey <tromey@cygnus.com>
5920 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5923 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5925 * java/net/URLConnection.java (initializeDateFormats): New
5927 (getHeaderFieldDate): Call initializeDateFormats if required.
5928 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5930 Fix for PR libgcj/38.
5932 2000-02-24 Warren Levy <warrenl@cygnus.com>
5934 * java/math/BigInteger.java(ival): Made private.
5938 2000-02-20 Anthony Green <green@cygnus.com>
5940 * Makefile.in: Rebuilt.
5941 * Makefile.am (ordinary_java_source_files): Add
5942 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5944 * scripts/MakeDefaultMimeTypes.java: New file.
5945 * scripts/mime.types: New file.
5946 * scripts/classes.pl: Moved from top level.
5947 * classes.pl: Moved to scripts directory.
5949 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5951 * gnu/gcj/io/MimeTypes.java: New file.
5952 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5954 2000-02-20 Tom Tromey <tromey@cygnus.com>
5956 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5958 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5960 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5963 2000-02-18 Tom Tromey <tromey@cygnus.com>
5965 * include/jvm.h (_Jv_GetJavaVM): Declare.
5966 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5967 (_Jv_MethodBase::get_method): New method.
5968 (_Jv_JNIMethod::set_function): New method.
5969 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5970 (_Jv_JNI_RegisterNatives): New function.
5971 (_Jv_JNIFunctions): Updated for new functions.
5972 (_Jv_GetJavaVM): New function.
5973 (_Jv_JNI_GetJavaVM): Use it. Now static.
5974 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5975 is already a Java thread but does not have a JNIEnv yet.
5977 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5980 2000-02-17 Tom Tromey <tromey@cygnus.com>
5982 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5985 2000-02-16 Tom Tromey <tromey@cygnus.com>
5987 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5989 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5990 (_Jv_JNI_NewObject): Likewise.
5991 (_Jv_JNI_NewObjectA): Likewise.
5992 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5993 as "return" type to _Jv_CallAnyMethodA.
5994 (_Jv_JNI_CallAnyMethodA): Likewise.
5995 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5997 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6000 2000-02-15 Tom Tromey <tromey@cygnus.com>
6002 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6004 (init_cif): Added `rtype_p' argument.
6005 * include/java-interp.h (class _Jv_MethodBase): Added
6007 (class _Jv_InterpMethod): Removed args_raw_size.
6008 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6009 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6010 class pointer as well as the ordinary arguments.
6012 * jni.cc (mangled_name): Skip leading `(' in signature.
6014 * jni.cc (add_char): Added missing `else'.
6016 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6019 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6023 * java/lang/natRuntime.cc (_load): Include library path with
6026 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6029 * java/lang/natThread.cc (dumpStack): Removed.
6030 * java/lang/Thread.java (dumpStack): Implemented.
6032 2000-02-15 Tom Tromey <tromey@cygnus.com>
6034 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6035 with `lib' for loadLibrary. Fixes PR gcj/150.
6037 2000-02-14 Warren Levy <warrenl@cygnus.com>
6039 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6041 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6045 (modPow): Rewritten to not use the naive, slow, brute force approach.
6046 (isProbablePrime): Implemented.
6047 (testBit): Implemented.
6048 (flipBit): Implemented.
6049 (getLowestSetBit): Implemented.
6051 2000-02-16 Anthony Green <green@redhat.com>
6053 * configure.host: Use the same options for i386 and i486 as we do
6056 2000-02-12 Tom Tromey <tromey@cygnus.com>
6058 * java/io/File.java (createTempFile): Use low bits from counter,
6061 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6063 * THANKS: More thanks.
6065 2000-02-11 Tom Tromey <tromey@cygnus.com>
6067 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6068 astore instruction. From Hans Boehm.
6070 2000-02-11 Warren Levy <warrenl@cygnus.com>
6072 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6073 (BigInteger(String)): New constructor.
6074 (not): Rewritten using version from Kawa's BitOps class.
6075 (valueOf): New private methods from Kawa's BitOps class.
6082 (andNot): Implemented.
6083 (clearBit): Implemented.
6084 (setBit): Implemented.
6085 (bitCount): Implemented.
6086 (toByteArray): Implemented.
6088 2000-02-11 Tom Tromey <tromey@cygnus.com>
6090 * java/io/File.java (nextValue): Now synchronized.
6092 2000-02-10 Tom Tromey <tromey@cygnus.com>
6094 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6095 * java/io/FileDescriptor.java (EXCL): New static field.
6096 * java/io/File.java (tmpdir): New static field.
6097 (createTempFile): New method.
6098 (nextValue): New method.
6099 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6102 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6103 (jboolean): Declare as an attributed int, not a bool.
6104 (_Jv_func): Declare differently for C.
6106 * gnu/gcj/jni/natNativeThread.cc: New file.
6107 * gnu/gcj/jni/NativeThread.java: New file.
6108 * java/lang/Thread.java (data): Now a RawData.
6109 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6111 * Makefile.in: Rebuilt.
6112 * Makefile.am (java/lang/Thread.h): New target.
6113 (ordinary_java_source_files): Added NativeThread.java.
6114 (nat_source_files): Added natNativeThread.cc.
6115 * java/lang/natThread.cc: Include <jni.h>
6116 (struct natThread): Added `jni_env' field.
6117 (_Jv_GetCurrentJNIEnv): New function.
6118 (_Jv_SetCurrentJNIEnv): Likewise.
6119 (initialize_native): Initialize jni_env.
6121 * jni.cc (ThreadGroupClass): New define.
6122 (_Jv_JNI_InvokeFunctions): New structure.
6123 (JNI_GetCreatedJavaVMs): New function.
6124 (the_vm): New global.
6125 (JNI_GetDefaultJavaVMInitArgs): New function.
6126 Include NativeThread.h.
6127 (NativeThreadClass): New define.
6128 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6129 (_Jv_JNI_DestroyJavaVM): New function.
6130 (_Jv_JNI_AttachCurrentThread): New function.
6131 (_Jv_JNI_DetachCurrentThread): New function.
6132 (_Jv_JNI_GetEnv): New function.
6133 (JNI_CreateJavaVM): New function.
6134 (_Jv_JNI_GetJavaVM): New function.
6135 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6136 * include/jni.h (JavaVMAttachArgs): New structure.
6137 (JNI_EDETACHED): New define.
6138 (JNI_EVERSION): Likewise.
6139 (JavaVM): Define properly.
6140 (struct JNIInvokeInterface): New structure.
6141 (class _Jv_JavaVM): New class.
6142 (JNI_OnLoad, JNI_OnUnload): Declare.
6143 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6144 JNI_GetCreatedJavaVMs): Declare.
6145 (JavaVMInitArgs): New typedef.
6146 (JavaVMOption): Likewise.
6147 (JNI_ERR): New define.
6150 2000-02-10 Andrew Haley <aph@cygnus.com>
6152 * interpret.cc: Don't include fdlibm.h.
6153 Replace #if with #ifdef throughout.
6154 Declare extern __ieee754_fmod.
6155 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6157 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6158 Search class hierarchy for superclass vtable.
6160 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6161 off the end of a pointer list.
6163 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6167 2000-02-09 Tom Tromey <tromey@cygnus.com>
6169 * java/lang/natRuntime.cc (_load): Call add_library.
6170 (loadLibraryInternal): Likewise.
6172 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6173 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6174 (Output_iconv::finalize): Likewise.
6176 2000-02-08 Tom Tromey <tromey@cygnus.com>
6178 * java/util/Properties.java (setProperty): New method.
6179 (store): New method.
6181 2000-02-07 Tom Tromey <tromey@cygnus.com>
6183 * java/lang/Runtime.java (_load): Declare.
6184 (load, loadLibrary): Wrote in terms of _load.
6185 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6187 (loadLibrary): Likewise.
6189 (_load): New method.
6190 (loadLibrary, load): Removed.
6192 * jni.cc (ThrowableClass): New define.
6193 (_Jv_JNI_Throw): Check argument.
6194 (_Jv_JNI_ThrowNew): Likewise.
6195 (wrap_value): Don't wrap object if it is NULL.
6196 (_Jv_JNI_DefineClass): Use wrap_value.
6197 (_Jv_JNI_FindClass): Likewise.
6198 (_Jv_JNI_GetSuperclass): Likewise.
6199 (_Jv_JNI_ExceptionOccurred): Likewise.
6200 (_Jv_JNI_AllocObject): Likewise.
6201 (_Jv_JNI_GetObjectClass): Likewise.
6202 (_Jv_JNI_NewString): Likewise.
6203 (_Jv_JNI_NewStringUTF): Likewise.
6204 (_Jv_JNI_NewObjectArray): Likewise.
6205 (_Jv_JNI_GetObjectArrayElement): Likewise.
6206 (_Jv_JNI_NewPrimitiveArray): Likewise.
6207 (_Jv_JNI_ToReflectedField): Likewise.
6208 (_Jv_JNI_ToReflectedMethod): Likewise.
6209 (_Jv_JNI_AllocObject): Check argument.
6210 (_Jv_JNI_NewObjectV): Likewise.
6211 (_Jv_JNI_NewObject): Likewise.
6212 (_Jv_JNI_NewObjectA): Likewise.
6213 (_Jv_JNI_GetObjectClass): Likewise.
6214 (_Jv_JNI_GetField): Likewise.
6215 (_Jv_JNI_SetField): Likewise.
6217 * interpret.cc (PUSHL): Don't use expression statement.
6222 * jni.cc (add_char): Conditional on INTERPRETER.
6223 (mangled_name): Likewise.
6225 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6227 (class _Jv_JNIMethod): Likewise.
6229 2000-02-04 Warren Levy <warrenl@cygnus.com>
6231 * Makefile.am: Added MPN.java and BigInteger.java.
6232 * Makefile.in: Rebuilt.
6233 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6235 * java/math/BigInteger.java: New file. Based primarily on
6236 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6238 2000-02-04 Tom Tromey <tromey@cygnus.com>
6240 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6242 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6243 if the method is native.
6244 * resolve.cc (ncode): Don't handle native methods.
6245 (_Jv_JNIMethod::ncode): New method.
6246 (_Jv_PrepareClass): Handle native methods.
6247 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6248 Include AbstractMethodError.h.
6249 (add_char): New function.
6250 (mangled_name): Likewise.
6251 * include/java-interp.h (class _Jv_JNIMethod): New class.
6252 (class _Jv_MethodBase): New class.
6253 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6254 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6257 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6258 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6259 libraries): New globals.
6260 (add_library): New function.
6261 (_Jv_FindSymbolInExecutable): New function.
6263 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6266 2000-02-04 Andrew Haley <aph@cygnus.com>
6268 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6269 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6270 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6271 printStackTrace to printRawStackTrace.
6273 2000-02-03 Tom Tromey <tromey@cygnus.com>
6275 * java/util/Calendar.java (toString): New method.
6276 * java/util/SimpleTimeZone.java (clone): New method.
6277 (toString): New method.
6278 * java/util/TimeZone.java (clone): New method.
6279 * java/text/SimpleDateFormat.java (clone): New method.
6280 * java/text/NumberFormat.java (clone): New method.
6281 (equals): New method.
6282 * java/text/Format.java (clone): New method.
6283 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6285 (clone): New method.
6286 * java/text/DateFormat.java (clone): New method.
6287 * java/text/Collator.java (clone): New method.
6289 2000-02-03 Tom Tromey <tromey@cygnus.com>
6291 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6294 2000-02-01 Tom Tromey <tromey@cygnus.com>
6296 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6297 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6298 constructing the closure if the function is native.
6299 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6300 a template function, #if'd out, or static.
6301 Include <java-interp.h>.
6303 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6305 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6307 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6308 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6310 (wrap_value): New function.
6311 (_Jv_JNI_CallAnyMethodV): Use it.
6312 (_Jv_JNI_CallAnyMethodA): Likewise.
6313 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6314 (_Jv_JNI_GetStaticField): Likewise.
6316 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6317 (_Jv_JNI_GetStaticField): Likewise.
6319 2000-01-31 Tom Tromey <tromey@cygnus.com>
6321 * prims.cc (_Jv_MallocUnchecked): New function.
6322 (main_init): Call _Jv_JNI_Init.
6323 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6324 (_Jv_JNI_Init): Declare.
6325 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6327 (_Jv_JNI_NewGlobalRef): New function.
6328 (_Jv_JNI_DeleteGlobalRef): New function.
6329 (_Jv_JNI_DeleteLocalRef): New function.
6330 (_Jv_JNI_conversion_call): Initialize and clear local reference
6332 (_Jv_JNI_NewLocalRef): New function.
6333 (struct _Jv_JNI_LocalFrame): New structure.
6334 (_Jv_JNI_PushLocalFrame): New function.
6335 (_Jv_JNI_EnsureLocalCapacity): New function.
6336 (FRAME_SIZE): New define.
6337 (_Jv_JNI_GetStringChars): Mark string, not characters.
6338 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6339 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6340 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6342 (_Jv_JNI_DefineClass): Make return value a local ref.
6343 (_Jv_JNI_FindClass): Likewise.
6344 (_Jv_JNI_GetSuperclass): Likewise.
6345 (_Jv_JNI_ExceptionOccurred): Likewise.
6346 (_Jv_JNI_AllocObject): Likewise.
6347 (_Jv_JNI_GetObjectClass): Likewise.
6348 (_Jv_JNI_CallAnyMethodV): Likewise.
6349 (_Jv_JNI_NewString): Likewise.
6350 (_Jv_JNI_NewStringUTF): Likewise.
6351 (_Jv_JNI_NewObjectArray): Likewise.
6352 (_Jv_JNI_GetObjectArrayElement): Likewise.
6353 (_Jv_JNI_ToReflectedField): Likewise.
6354 (_Jv_JNI_ToReflectedMethod): Likewise.
6355 (_Jv_JNIFunctions): Updated table for new functions.
6356 (_Jv_JNI_Init): New function.
6357 (mark_for_gc): Wrote.
6358 (unmark_for_gc): Wrote.
6359 * include/jni.h (struct JNINativeInterface): Removed name from
6360 PopLocalFrame parameter.
6361 (class _Jv_JNIEnv): Added `locals' field.
6363 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6365 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6368 2000-01-30 Tom Tromey <tromey@cygnus.com>
6370 * include/config.h.in: Rebuilt.
6371 * acconfig.h (HAVE_ICONV): Define.
6372 * configure: Rebuilt.
6373 * configure.in: Check for `iconv' function.
6374 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6375 no specific encoder exists.
6376 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6377 no specific encoder exists.
6378 * Makefile.in: Rebuilt.
6379 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6381 (nat_source_files): Added natIconv.cc.
6382 * gnu/gcj/convert/natIconv.cc: New file.
6383 * gnu/gcj/convert/Input_iconv.java: New file.
6384 * gnu/gcj/convert/Output_iconv.java: New file.
6386 2000-01-28 Tom Tromey <tromey@cygnus.com>
6388 * Makefile.in: Rebuilt.
6389 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6391 2000-01-26 Tom Tromey <tromey@cygnus.com>
6393 * gcj/method.h (JvNumMethods): Moved from Class.h.
6394 (JvGetFirstMethod): Likewise.
6395 * java/lang/Class.h (Object): Updated decl of
6396 _Jv_JNI_ToReflectedField.
6397 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6398 * Makefile.in: Rebuilt.
6399 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6400 argument of _Jv_JNI_ToReflectedField.
6401 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6403 (java/lang/reflect/Method.h): Likewise.
6404 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6406 (jweak): New typedef.
6407 (struct JNINativeInterface): Correctly declare remaining entries.
6408 * jni.cc: Include Class.h, ClassLoader.h.
6409 (_Jv_JNI_FindClass): New function.
6410 (_Jv_JNI_DefineClass): New function.
6411 (_Jv_JNI_conversion_call): New function.
6412 (_Jv_JNI_FindClass): Use current class loader to find class.
6413 (_Jv_JNI_ExceptionCheck): New function.
6414 (_Jv_JNI_FromReflectedField): Now static.
6415 (MethodClass): New define.
6416 (_Jv_JNI_FromReflectedMethod): New function.
6417 (_Jv_JNI_ToReflectedMethod): Likewise.
6419 (_Jv_JNI_IsAssignableFrom): Renamed.
6420 (_Jv_JNI_GetStringRegion): New function.
6421 Include StringIndexOutOfBoundsException.h.
6422 (_Jv_JNI_GetStringUTFRegion): New function.
6423 (_Jv_JNIFunctions): Updated for new functions.
6424 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6425 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6426 (_Jv_JNI_GetStringCritical): New function.
6427 (_Jv_JNI_ReleaseStringCritical): Likewise.
6428 (get_throwable): Removed.
6429 (GCJ_JV_JNIENV_FRIEND): Removed.
6430 (__GCJ_JNI_IMPL__): Define.
6433 * resolve.cc (get_ffi_type_from_signature): Handle case where
6436 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6438 * interpret.cc (run): Don't call println.
6439 Don't include PrintStream.h.
6441 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6442 nameIndex. Use "jint" as type for boffset.
6443 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6445 (Class): Likewise. Also changed type of method_count,
6446 vtable_method_count, size_in_bytes, field_count,
6447 static_field_count, interface_count.
6448 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6451 2000-01-21 Tom Tromey <tromey@cygnus.com>
6453 * java/lang/reflect/natConstructor.cc (newInstance): Use
6455 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6456 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6457 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6460 (invoke): Use _Jv_CallAnyMethodA.
6462 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6463 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6465 (struct _Jv_Method): Added getNextMethod method.
6466 (JvNumMethods): New function.
6467 (JvGetFirstMethod): Likewise.
6468 * gcj/field.h (JvGetFirstStaticField): New function.
6469 (JvNumStaticFields): Likewise.
6470 (getNextField): Renamed from getNextInstanceField.
6471 (struct _Jv_Field): New method getClass.
6472 * jni.cc: Wrote many new functions.
6473 * include/jni.h (JNI_TRUE): Define.
6474 (JNI_FALSE): Likewise.
6475 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6476 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6477 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6478 (jfieldID, jmethodID): Likewise.
6479 (JNI_COMMIT, JNI_ABORT): New defines.
6480 (JNINativeMethod): New struct.
6481 (struct JNINativeInterface): Correctly declared more entries.
6482 (class _Jv_JNIEnv): Added `ex' member.
6483 (JNI_VERSION_1_1): New define.
6484 (JNI_VERSION_1_2): Likewise.
6486 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6487 getNextInstanceField.
6489 2000-01-20 Tom Tromey <tromey@cygnus.com>
6491 * resolve.cc (StringClass): Removed.
6492 * defineclass.cc (StringClass): Removed.
6494 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6498 2000-01-19 Tom Tromey <tromey@cygnus.com>
6500 * interpret.cc (PC_REGISTER_ASM): Removed.
6502 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6503 From Bryce McKinlay.
6505 * All files: Updated copyright to reflect Cygnus purchase.
6507 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6509 * configure: Rebuilt.
6510 * configure.in: Recognize --disable-interpreter.
6512 2000-01-18 Andrew Haley <aph@cygnus.com>
6514 * name-finder.cc (lookup): Check for dladdr function.
6515 acconfig.h (HAVE_DLADDR): Add.
6516 configure.in: Check for HAVE_DLADDR
6518 include/config.h.in: Rebuilt.
6520 2000-01-17 Andrew Haley <aph@cygnus.com>
6522 * prims.cc (_Jv_RunMain): Set the name of this executable.
6524 2000-01-17 Tom Tromey <tromey@cygnus.com>
6526 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6527 when backtrace can't be computed.
6529 * configure: Rebuilt.
6530 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6532 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6533 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6534 (_Jv_FindClassInCache): Likewise.
6535 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6536 (findSystemClass): Try to load class from compiled module.
6538 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6539 (loadLibrary): Likewise.
6540 (lt_preloaded_symbols): Define.
6541 (loadLibraryInternal): New method.
6542 * include/config.h.in: Rebuilt.
6543 * acconfig.h (USE_LTDL): Added.
6544 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6545 (INCLUDES): Added $(INCLTDL).
6546 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6547 (libgcj_la_LIBADD): Likewise.
6548 * aclocal.m4, configure: Rebuilt.
6549 * configure.in: Added libltdl support.
6551 2000-01-15 Tom Tromey <tromey@cygnus.com>
6553 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6555 2000-01-14 Andrew Haley <aph@cygnus.com>
6557 * java/lang/natThrowable.cc: New file.
6559 * java/lang/Throwable.java (fillInStackTrace): Make native.
6560 (printStackTrace): Call native method to do this.
6561 (Throwable): Call fillInStackTrace.
6562 (stackTrace): New variable.
6564 * include/jvm.h: Add _Jv_ThisExecutable functions.
6566 * prims.cc: (_Jv_execName): New variable.
6567 (catch_segv): Call fillInStackTrace.
6569 (_Jv_ThisExecutable): New functions.
6570 (JvRunMain): Set the name of this executable.
6572 * Makefile.am: Add java/lang/natThrowable.cc.
6574 * Makefile.in: Rebuilt.
6576 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6578 * configure.in: Force link with __frame_state_for in
6579 FORCELIBGCCSPEC. Add new checks for backtrace.
6580 * include/config.h.in: Rebuilt.
6582 * name-finder.cc: New file.
6583 * include/name-finder.h: New file.
6585 2000-01-16 Anthony Green <green@cygnus.com>
6587 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6590 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6592 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6594 2000-01-13 Tom Tromey <tromey@cygnus.com>
6596 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6597 not system loader, as initiating loader.
6599 2000-01-11 Tom Tromey <tromey@cygnus.com>
6601 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6602 HP/UX. From David Scott Urban.
6604 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6606 * java/lang/natMath.cc (pow): Cast args to `double', not
6609 (IEEEremainder): Likewise.
6610 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6611 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6613 2000-01-09 Anthony Green <green@cygnus.com>
6615 * java/lang/natString.cc (init): Test for overflow condition
6616 during out of bounds check.
6617 (getChars): Throw StringIndexOutOfBoundsException, not
6618 ArrayIndexOutOfBoundsException.
6620 (regionMatches): Obey case option during string comparison.
6622 * configure.host (ligcj_interpreter): New variable. Enable
6623 interpreter by default on IA-32.
6624 * configure.in: Examine libgcj_interpreter.
6625 * configure: Rebuilt.
6627 2000-01-07 Tom Tromey <tromey@cygnus.com>
6629 * mauve-libgcj: Don't disable ClassTest.
6631 * java/lang/natClass.cc (getClasses): Wrote.
6633 2000-01-06 Tom Tromey <tromey@cygnus.com>
6635 * java/lang/natClass.cc (_getConstructors): Correctly check
6636 whether method name is the init name.
6637 (getMethod): Look at accflags on method in `klass', not `this'.
6639 2000-01-05 Tom Tromey <tromey@cygnus.com>
6641 * java/lang/natClass.cc (getMethod): Compute offset relative to
6642 `klass's methods table, not `this's table.
6644 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6645 In unwrapping/widening case, check whether `k' is null, not
6646 whether it is primitive. Initialize `num' from `argelts', not
6647 `paramelts'. Correct create and pass arguments to ffi_call.
6648 Don't let presence of `this' argument affect index used to look in
6650 (COPY): Set appropriate element in `values' vector.
6652 * java/lang/natClass.cc: Include <gcj/method.h>.
6654 * java/lang/Class.h (_getMethods): Correctly declare as private,
6657 * java/lang/Class.h (_getMethods): Declare.
6658 * java/lang/Class.java (_getMethods): Declare.
6659 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6660 (getDeclaredClasses): Always return empty array.
6661 (_getMethods): New method.
6662 (getMethods): Wrote.
6663 (getDeclaredMethod): Return `rmethod'.
6664 (finit_name): New global.
6665 (getDeclaredMethods): Check for finit_name.
6666 (_getMethods): Likewise.
6667 (getMethod): Only return public methods.
6669 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6670 jboolean and select correct ffi type on that basis.
6671 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6672 Constructor call always has `void' return type.
6674 2000-01-04 Tom Tromey <tromey@cygnus.com>
6676 * java/lang/Class.h (getSignature): Updated.
6677 * java/lang/Class.java (getSignature): Updated.
6678 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6680 (getConstructor): Ensure constructor is public.
6681 (_getConstructors): Check for public-ness of constructor when
6682 `declared' is false, not when it is true.
6684 2000-01-04 Warren Levy <warrenl@cygnus.com>
6686 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6688 (receive): Set the sender's address in the DatagramPacket.
6690 2000-01-04 Tom Tromey <tromey@cygnus.com>
6692 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6693 declaring class as return_type argument to
6694 _Jv_CallNonvirtualMethodA.
6695 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6696 constructor case, create object and use it as `this' argument.
6697 * java/lang/Class.h (_getConstructors): Declare.
6698 (_getFields): Declare.
6699 * java/lang/Class.java (getConstructors): Wrote.
6700 (_getConstructors): New native method.
6701 (getDeclaredConstructors): Wrote.
6702 (_getFields): Declare new native method.
6703 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6705 (getMethod): Work correctly when class is primitive.
6706 (getDeclaredMethods): Likewise. Compute offset using `method',
6708 (getDeclaredMethod): Likewise.
6709 (getConstructor): Wrote.
6710 (ConstructorClass): New define.
6711 (getDeclaredConstructor): Wrote.
6712 (_getConstructors): New method.
6713 (_getFields): New method.
6716 * Makefile.in: Rebuilt.
6717 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6719 * prims.cc: Remove `#pragma implementation'.
6720 * gcj/array.h: Remove `#pragma interface'.
6722 * prims.cc (_Jv_equaln): New function.
6723 * java/lang/Class.java (getSignature): Declare.
6724 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6725 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6727 (getSignature): New method.
6728 (getDeclaredMethod): Wrote.
6730 Include StringBuffer.h.
6731 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6732 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6734 (getSignature): Declare.
6735 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6736 (_Jv_equaln): Declare.
6737 (_Jv_CallNonvirtualMethodA): Declare.
6738 * Makefile.in: Rebuilt.
6739 * Makefile.am (nat_source_files): Added natConstructor.cc.
6740 (java/lang/reflect/Constructor.h): New target.
6741 * java/lang/reflect/natConstructor.cc: New file.
6742 * java/lang/reflect/Constructor.java (newInstance): Now native.
6743 (declaringClass): Renamed from decl_class.
6744 (offset): Renamed from index.
6745 (getType): New native method.
6746 (getModifiers): Now native.
6747 (getParameterTypes): Call getType if required.
6748 (hashCode): Include hash code from declaring class.
6749 (modifiers): Removed.
6750 (toString): Call getType if required.
6751 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6752 * java/lang/reflect/natMethod.cc (hack_call): New method.
6753 Removed `#if 0' around FFI code.
6754 Include <gnu/gcj/RawData.h>.
6755 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6756 IllegalArgumentException when argument object and class disagree.
6757 (_Jv_GetTypesFromSignature): New function.
6759 (ObjectClass): New define.
6760 (_Jv_CallNonvirtualMethodA): New function.
6761 * java/lang/reflect/Method.java (hack_trampoline): New method.
6762 (hack_call): New native method.