1 2001-06-15 Tom Tromey <tromey@redhat.com>
3 * jni.cc (ClassClass): Removed; updated all users.
4 (ObjectClass): Likewise.
5 (ThrowableClass): Likewise.
6 (MethodClass): Likewise.
7 (ThreadGroupClass): Likewise.
8 (local_ref_table): Renamed from `ref_table'.
9 (global_ref_table): New global.
10 (_Jv_JNI_Init): Initialize both ref tables.
11 (mark_for_gc): Added `ref_table' parameter.
12 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
14 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
15 (_Jv_JNI_DeleteGlobalRef): Likewise.
16 (_Jv_JNI_DeleteLocalRef): Likewise.
17 (_Jv_JNI_NewLocalRef): Likewise.
18 (_Jv_JNI_PopLocalFrame): Likewise.
19 (_Jv_JNI_GetStringChars): Likewise.
20 (_Jv_JNI_ReleaseStringChars): Likewise.
21 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
22 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
24 2001-06-14 Tom Tromey <tromey@redhat.com>
26 Fix for PR libgcj/3144:
27 * java/util/Date.java: Merged with Classpath.
29 2001-06-12 Tom Tromey <tromey@redhat.com>
31 * aclocal.m4, configure: Rebuilt.
32 * acinclude.m4: Find configure.host in srcdir.
34 2001-06-07 Tom Tromey <tromey@redhat.com>
36 Fix for PR libgcj/3059:
37 * java/lang/natSystem.cc (init_properties): Define `java.home'.
38 * Makefile.in: Rebuilt.
39 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
41 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
43 * exception.cc (cstdlib): Replaces stdlib.h.
44 (_Jv_Throw): Use std::abort().
45 (PERSONALITY_FUNCTION): Likewise.
47 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
49 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
50 nothing, as in autoconf 2.50.
51 * aclocal.m4, configure: Rebuilt.
53 2001-06-08 Tom Tromey <tromey@redhat.com>
56 * configure.in: Compute new aux dir using `pwd'.
58 2001-06-07 Tom Tromey <tromey@redhat.com>
60 For PR bootstrap/3075:
61 * configure, aclocal.m4, Makefile.am: Rebuilt.
62 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
63 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
64 relative to libgcj_basedir.
65 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
66 AC_CANONICAL_SYSTEM here.
67 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
69 ($(extra_headers)): New target.
71 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
72 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
74 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
75 table index is within allowed bounds. Ensure that we dont try to access
76 class itable at a negative offset. Avoid an ancestor table lookup if
77 source is a primitive type class.
78 (isInstance): Remove redundant isPrimitive() check.
80 2001-06-04 Tom Tromey <tromey@redhat.com>
82 * java/security/PublicKey.java: Extend Key.
83 * java/security/PrivateKey.java: Extend Key.
85 2001-06-02 Anthony Green <green@redhat.com>
87 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
88 alternate when USE_LTDL not defined.
90 2001-06-02 Anthony Green <green@redhat.com>
93 * configure.in: Remove data_start hack.
94 * libgcj.spec.in: Ditto.
95 * Makefile.in: Rebuild.
97 * libgcjdata.c: Remove.
99 2001-06-02 Anthony Green <green@redhat.com>
101 * configure: Rebuild.
102 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
103 --without-libffi option. Tweak --disable-java-net processing.
104 * Makefile.in: Rebuild.
105 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
106 * include/config.h.in: Rebuild.
107 * acconfig.h (USE_LIBFFI): Define.
108 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
110 2001-06-02 Anthony Green <green@redhat.com>
112 * configure: Rebuilt.
113 * configure.in: Test for sigaction on native builds.
114 * prims.cc: Check HAVE_SIGACTION.
115 * include/config.h.in: Rebuilt.
117 2001-05-31 Jeff Sturm <jsturm@one-point.com>
119 * natFile.cc (get_entry): Removed functions.
120 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
121 Allocate enough storage for d_name if using readdir_r.
123 2001-05-31 Tom Tromey <tromey@redhat.com>
125 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
127 (write): Loop until write completes. From Corey Minyard.
129 2001-05-29 Laurent Guerby <guerby@acm.org>
131 * java/awt/geom/Rectangle2D.java: fix doc typo.
133 2001-05-31 Tom Tromey <tromey@redhat.com>
135 * java/sql/DriverManager.java (getDrivers): Handle case where
136 driver's class loader is null. From Corey Minyard.
138 2001-05-29 Tom Tromey <tromey@redhat.com>
140 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
142 * configure: Rebuilt.
143 * configure.in: Only add multilib support code if we just rebuilt
146 2001-05-29 Andrew Haley <aph@redhat.com>
148 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
149 pointer: the dwarf unwinder in libgcc will do everything that's
151 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
152 more than we absolutely need to.
153 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
154 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
156 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
158 * configure: Rebuilt.
159 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
161 (SIGNAL_HANDLER): Use siginfo style handler.
162 (INIT_SEGV): Likewise.
163 (INIT_FPE): Likewise.
164 * include/ppc-signal.h: Delete whole file.
166 2001-05-24 Tom Tromey <tromey@redhat.com>
168 * java/lang/natString.cc (init): Throw
169 ArrayIndexOutOfBoundsException.
170 (getChars): Likewise.
171 (getBytes): Likewise.
174 * configure.in: Only allow hash synchronization when POSIX threads
176 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
179 2001-05-23 Tom Tromey <tromey@redhat.com>
181 * Makefile.in: Rebuilt.
182 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
184 Revert patch of 2001-05-21:
185 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
186 (libgcj_la_LIBADD): Likewise.
187 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
188 (libgcjx_la_LIBADD): Likewise.
190 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
191 * gcj/Makefile.in: Rebuilt.
192 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
193 * gcj/javaprims.h: Include gcj/libgcj-config.h.
194 * gcj/libgcj-config.h.in: New file.
195 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
196 * configure: Rebuilt.
197 * configure.in: Enable hash synchronization by default on some
199 (HASH_SYNC_SPEC): New subst.
200 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
201 Correctly use `test -z' instead of `test -n' in a couple places.
202 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
204 * configure.host (enable_java_net_default): Initialize.
205 (enable_hash_synchronization_default): New variable.
207 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
209 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
210 synchronization in use.
211 (_Jv_MarkArray): Likewise.
212 (_Jv_AllocBytes): Don't check return result.
213 (handle_out_of_memory): New function.
214 (_Jv_InitGC): Set GC_oom_fn.
215 (trace_one_vtable): New global.
216 (_Jv_AllocTraceOne): New function.
217 * configure.in: Added --enable-hash-synchronization.
218 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
219 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
220 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
221 (_Jv_AllocArray): Likewise.
222 (_Jv_AllocBytes): Likewise.
223 (_Jv_AllocPtrFreeObject): New function.
224 (_Jv_AllocTraceOne): Likewise.
225 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
227 (self_cache): New global.
228 (_Jv_ThreadSelf_out_of_line): New function.
229 * prims.cc (_Jv_AllocBytesChecked): Removed.
230 (_Jv_ThrowNoMemory): New function.
231 (_Jv_AllocObject): Don't check for null return from allocator.
232 (_Jv_NewObjectArray): Likewise.
233 (_Jv_AllocPtrFreeObject): New function.
234 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
235 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
236 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
237 * include/boehm-gc.h (_Jv_AllocObj): Define.
238 (_Jv_AllocPtrFreeObj): Define.
239 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
240 (_Jv_ThrowNoMemory): Declare.
241 (_Jv_AllocTraceOne): Declare.
242 (_Jv_AllocBytesChecked): Removed.
243 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
244 _Jv_MutexUnlock): Handle LOCK_DEBUG.
245 (_Jv_ThreadSelf): Handle case where system pthread_self() is
247 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
249 * java/lang/Object.h (sync_info): Conditional upon presence of
250 hash synchronization.
251 * java/lang/natObject.cc: Much new code to handle thin locks and
252 hash synchronization.
253 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
256 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
258 * gij.cc (version): Update copyright year.
260 2001-05-22 Anthony Green <green@redhat.com>
262 * configure.in: Tweak canadian cross test, and don't redefine GCJ
265 2001-05-21 Per Bothner <per@bothner.com>
267 Implement invocation interface; don't create new thread for main.
268 * java/lang/Thread.java (gen_name): Make native.
269 (<init>(Thread,THreadGroup,Runnable,String)): New private
270 constructor, used by other constructors, and _Jv_AttachCurrentThread.
271 * java/lang/natThread.cc (gen_name): New implementation.
272 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
273 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
274 (_Jv_CreateJavaVM): New runtime initialization procedure.
275 (runFirst): New proecdure - mostly code from old FirstThread::run.
276 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
277 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
278 JvDetachCurrentThread): New inline wrappers.
279 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
280 _Jv_DetachCurrentThread): New declarations.
281 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
282 (getMain): new static method.
283 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
284 by runFirst in prims.cc.
285 (java/lang/Thread.h): Update for new invocation interface.
286 * include/posix-threads.h (_Jv_ThreadRegister,
287 _Jv_ThreadUnRegister): New declarations.
288 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
289 (really_start): Use new _Jv_ThreadRegister.
290 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
291 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
292 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
293 Complain of called when _Jv_OnlyThread already set.
294 (_Jv_ThreadStart): Always JvFail.
295 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
296 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
297 * win32-threads.cc (struct starter): Remove objet field -
298 we use _Jv_Thread_t's new thread_obj field instead.
299 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
300 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
301 (really_start): Use new _Jv_ThreadRegister.
302 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
303 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
304 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
305 Removed - no longer needed with new invocation interface.
306 * Makefile.am: Update for removed/added files.
308 2001-05-21 Per Bothner <per@bothner.com>
310 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
311 (libgcj_la_LIBADD): Likewise.
312 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
314 2001-05-21 Per Bothner <per@bothner.com>
316 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
317 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
318 taken from old Integer.toString code.
319 (Integer::valueOf): Use _Jv_FormatInt.
320 * java/lang/Integer.java (toString): Just use call String.valueOf.
321 * java/lang/Long.java (toString): Fix typo in comment.
322 * java/lang/String.java (valueOf(int)): Make native.
323 * java/lang/StringBuffer.java (append(int)): Make native.
324 * java/lang/natStringBuffer.cc: New file, for append(jint).
325 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
327 2001-05-21 Tom Tromey <tromey@redhat.com>
329 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
331 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
333 * include/dwarf2-signal.h: New file.
334 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
335 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
336 * configure: Rebuilt.
338 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
340 * configure.in: Update boehm-gc include dir for new GC version.
341 * configure: Rebuilt.
342 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
344 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
345 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
346 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
349 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
351 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
352 (_Jv_MutexInit): Likewise.
354 2001-05-18 Tom Tromey <tromey@redhat.com>
356 * Makefile.in: Rebuilt.
357 * Makefile.am (awt_java_source_files): Added Polygon.java.
359 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
361 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
362 * gcj/javaprims.h: ... here.
363 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
365 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
367 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
368 with length of ioffset table.
369 (_Jv_IsAssignableFrom): Likewise.
371 2001-05-17 Per Bothner <per@bothner.com>
373 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
375 2001-05-16 Tom Tromey <tromey@redhat.com>
377 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
380 2001-05-15 Tom Tromey <tromey@redhat.com>
382 * java/util/GregorianCalendar.java (computeTime): Only call
385 2001-05-14 Tom Tromey <tromey@redhat.com>
387 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
388 ZONE_OFFSET just before computing the time.
390 2001-05-12 Zack Weinberg <zackw@stanford.edu>
392 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
393 * Makefile.in: Regenerate (by hand).
394 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
395 * doc/cni.sgml: Document #pragma GCC java_exceptions.
397 2001-05-11 Richard Henderson <rth@redhat.com>
399 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
400 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
402 2001-05-11 Richard Henderson <rth@redhat.com>
404 * exception.cc: Include unwind-pe.h. Remove all pointer
407 2001-05-10 Tom Tromey <tromey@redhat.com>
409 * Makefile.in: Rebuilt.
410 * Makefile.am (awt_java_source_files): Added Polygon.java.
411 * java/awt/Polygon.java: New file.
413 * java/awt/geom/AffineTransform.java
414 (setToRotation(double,double,double)): New method.
415 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
416 (setToShear): Likewise.
418 2001-05-10 Tom Tromey <tromey@redhat.com>
420 * java/util/GregorianCalendar.java: Imported from Classpath.
421 * gnu/java/locale/LocaleInformation_nl.java: New file from
423 * gnu/java/locale/LocaleInformation_en.java: Likewise.
424 * gnu/java/locale/LocaleInformation_de.java: Likewise.
425 * gnu/java/locale/LocaleInformation.java: Likewise.
426 * natGregorianCalendar.cc: Removed.
427 * Makefile.in: Rebuilt.
428 * Makefile.am (nat_source_files): Removed
429 natGregorianCalendar.cc.
431 2001-05-10 Tom Tromey <tromey@redhat.com>
433 * java/text/SimpleDateFormat.java (computeCenturyStart): New
435 (defaultCenturyStart): Use it.
436 (readObject): Likewise.
437 (SimpleDateFormat): Clear the calendar. Set the grouping on the
439 (parse): Copy the calendar before modifying it. Correctly handle
442 * java/util/Calendar.java (clear): Set field value(s) to 0.
444 2001-05-10 Jeff Sturm <jsturm@one-point.com>
446 * Calendar.java (get): Clear areFieldsSet if requested field
448 (set): Unset fields that depend on new value.
450 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
452 * java/lang/Class.h (_Jv_Self): New union type.
453 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
454 Jeff Sturm and Fergus Henderson.
456 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
458 * java/lang/ClassLoader.java: Remove dead code fragment.
460 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
462 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
464 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
466 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
468 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
469 * configure.host (EXCEPTIONSPEC): New.
470 * configure.in (EXCEPTIONSPEC): New.
471 * configure: Rebuilt.
473 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
475 * doc/*.texi: Remove generated documentation.
477 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
479 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
480 (performDelete): Fix #endif placement.
482 2001-04-27 Zack Weinberg <zackw@stanford.edu>
484 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
485 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
486 (_Jv_ThreadDestroyData): Use _Jv_Free.
487 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
490 2001-04-27 Tom Tromey <tromey@redhat.com>
492 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
494 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
496 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
498 * include/jni.h (struct JNINativeInterface): Fixed types in
499 Get/Set*ArrayRegion declarations.
500 (class _Jv_JNIEnv): Likewise.
502 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
504 * configure.in: Obtain THREADS with `gcc -v'.
505 * configure: Rebuilt.
507 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
510 * java/io/ObjectStreamClass.java (setClass): Calculate
511 serialVersionUID for local class and compare it against the UID
512 from the Object Stream. Throw InvalidClassException upon mismatch.
513 (setUID): Renamed to...
514 (getClassUID): this. Return the calculated class UID rather than
515 setting uid field directly.
516 (getDefinedSUID): Removed.
517 * java/io/ObjectInputStream.java (resolveClass): Use the
518 three-argument Class.forName().
519 * java/io/InvalidClassException (toString): Don't include classname in
520 result if it is null.
522 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
524 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
525 Wrap use of inet_pton in HAVE_INET6.
527 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
529 java.security merge and ClassLoader compliance fixes.
531 * java/lang/Class.h (Class): Include ProtectionDomain.h.
532 New protectionDomain field.
533 (forName): Add initialize parameter. Fixes declaration to comply with
535 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
536 variant. Honour "initialize" flag.
537 (getProtectionDomain0): New method.
538 * java/lang/Class.java: Fix forName() declaration.
539 (getPackage): New method based on Classpath implementation.
540 (getProtectionDomain0): New native method decl.
541 (getProtectionDomain): New method.
542 * java/lang/ClassLoader.java (getParent): Now final.
543 (definedPackages): New field.
545 (defineClass): New variant with protectionDomain argument.
546 (definePackage): New.
548 (findSystemClass): Now final.
549 (getSystemResourceAsStream): Remove redundant "final" modifier.
550 (getSystemResource): Remove redundant "final" modifier.
551 (getResources): Now final.
552 (protectionDomainPermission): New static field.
553 (unknownProtectionDomain): Ditto.
554 (defaultProtectionDomain): Ditto.
555 (getSystemClassLoader): Now non-native.
556 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
557 arguments for Class.forName().
558 * java/lang/Package.java: New file.
559 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
560 (instance): Static initialize singleton.
561 (findClass): Override this, not findSystemClass.
562 * java/lang/natClassLoader.cc (defineClass0): Set class's
563 protectionDomain field as specified.
564 (getSystemClassLoader): Removed.
565 (findClass): Renamed from findSystemClass. Call the interpreter via
566 URLClassLoader.findClass if loading class via dlopen fails.
568 * java/security/*.java: java.security import/merge with Classpath.
569 * java/security/acl/*.java: Likewise.
570 * java/security/interfaces/*.java: Likewise.
571 * java/security/spec/*.java: Likewise.
572 * java/net/NetPermission.java: Likewise.
573 * java/net/SocketPermission.java: Likewise.
574 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
576 * Makefile.am: Add new classes.
577 * Makefile.in: Rebuilt.
578 * gcj/javaprims.h: CNI namespace rebuild.
580 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
582 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
583 for libtool tests. Pre-create gnu/classpath/Configuration.java.
584 * configure: Rebuilt.
586 2001-04-21 Tom Tromey <tromey@redhat.com>
588 * Makefile.in: Rebuilt.
589 * Makefile.am (awt_java_source_files): Added Line2D.java.
590 * java/awt/geom/Line2D.java: Wrote.
592 * java/awt/Menu.java (addNotify): Wrote.
594 * java/awt/PopupMenu.java (addNotify): Implemented.
597 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
598 * java/awt/List.java (addNotify): Call super.addNotify.
599 * java/awt/Label.java (addNotify): Call super.addNotify.
600 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
601 * java/awt/Dialog.java (addNotify): Call super.addNotify.
602 * java/awt/Choice.java (addNotify): Call super.addNotify.
603 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
604 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
606 * java/awt/List.java (replaceItem): Notify peer.
608 * java/awt/geom/Rectangle2D.java
609 (Float.setRect(float,float,float,float)): New method.
611 * java/awt/event/ContainerEvent.java (getContainer): Now returns
614 * java/awt/RenderingHints.java (Key): Class now public.
616 * java/awt/Rectangle.java (Rectangle): Now implements
618 (getPathIterator): Removed.
620 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
623 * java/awt/FileDialog.java: Wrote.
625 * java/awt/EventQueue.java (isDispatchThread): Now public.
626 (invokeLater): Likewise.
628 * java/awt/Component.java (setCursor): Update peer.
629 (getFontMetrics): Use peer.
631 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
634 2001-04-20 Tom Tromey <tromey@redhat.com>
636 * java/awt/List.java: Wrote.
637 * java/awt/Dialog.java: Wrote.
639 2001-04-20 Warren Levy <warrenl@redhat.com>
641 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
642 * java/text/SimpleDateFormat.java
643 (indexInArray): Removed private method.
644 (processYear): Removed private method.
645 (parseLenient): Removed private method.
646 (parseLeadingZeros): Removed private method.
647 (parseStrict): Removed private method.
648 (expect): Added new private method.
649 (parse): Reverted to pre-Classpath merge version with minor fixes.
650 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
653 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
655 * java/io/File.java (normalizePath): New private method.
656 (File (String)): Use normalizePath().
657 (File (String, String)): Likewise.
659 * Makefile.am (libffi_files): Removed.
660 (libgcj.la): Link libffi as a convenience library instead of
661 refering to its object files directly.
662 * Makefile.in: Rebuilt.
664 2001-04-08 Per Bothner <per@bothner.com>
666 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
667 Recalculate hash, since Utf8Const's hash is only 16 bits.
669 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
670 bits of hash to calculate step for chaining.
672 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
673 when 2/3 full, rather than 3/4 full.
675 2001-04-06 Tom Tromey <tromey@redhat.com>
677 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
678 (wrap_value<T*>): New specialization.
679 (_Jv_JNI_PopLocalFrame): Update env->locals.
681 2001-04-05 Tom Tromey <tromey@redhat.com>
683 * libtool-version: Updated current.
685 2001-04-04 Andreas Jaeger <aj@suse.de>
687 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
688 * gcj/Makefile.in: Rebuilt.
689 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
690 * Makefile.in: Rebuilt.
691 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
692 * testsuite/Makefile.in: Rebuild.
693 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
694 * include/Makefile.in: Rebuild.
696 2001-04-02 Zack Weinberg <zackw@stanford.edu>
698 * testsuite/lib/libjava.exp: Correct typo: 'output from source
699 compiled test', not 'execution from source compiled test'.
700 Use UNTESTED, not XFAIL, for tests which are not run because
701 they depend on a previous test which failed.
703 2001-04-02 Richard Henderson <rth@redhat.com>
705 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
706 the same tree as gcc.
707 * configure: Rebuilt.
709 * exception.cc (_Jv_Throw): Clarify commentary.
711 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
713 * jni.cc (wrap_value<jclass>): New specialization.
715 2001-04-02 Tom Tromey <tromey@redhat.com>
717 * java/io/PrintStream.java (out): Removed field. Fixes PR
719 (write): Call flush, not out.flush, per spec.
720 (close): Flush output stream, per spec. Handle
721 InterruptedIOException.
722 (checkError): Likewise.
723 (flush, print, write): Handle InterruptedIOException per spec.
724 (PrintStream): Don't create BufferedOutputStream.
725 (work_bytes): New field.
726 (writeChars): Use work_bytes. Don't assume `out' is a
727 BufferedOutputStream.
729 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
731 * java/text/MessageFormat.java (setLocale): Added missing `else'.
734 2001-03-30 Tom Tromey <tromey@redhat.com>
736 * jni.cc (add_char): Correctly encode non-ascii characters.
737 (add_char): Define even when INTERPRETER not defined.
738 (mangled_name): Likewise.
739 (_Jv_GetJNIEnvNewFrame): Likewise.
740 (_Jv_LookupJNIMethod): Likewise.
742 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
744 * configure.host: Enable interpreter for PPC.
746 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
748 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
749 to "file.separator", "path.separator", and "java.io.tmpdir" property
751 * java/io/File.java: Likewise.
752 * java/io/natFile.cc (init_native): Likewise.
753 * java/io/natFileWin32.cc (init_native): Likewise.
755 2001-04-01 Per Bothner <per@bothner.com>
757 * java/lang/natString.cc (intern): If string's data does not point to
758 this String, make a fresh String that does.
760 * java/lang/natString.cc (unintern): Replace by static function.
761 * java/lang/String.java (unintern): Remove method.
763 2001-04-01 Per Bothner <per@bothner.com>
765 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
766 (finish): def.deflate needs to be called in a loop.
767 (inbuf, inbufLength): New private fields.
768 (write(int)): Use inbuf.
769 (write(byte[],int,int): Check if pending output in inbuf.
770 * ZipOutputStream.java: Don't use Deflater if stored.
771 Use a Checksum object directly, not via a CheckedOutputStream.
772 (uncompressed_size): New field,
773 (closeEntry): Only write data_directory if needed.
774 (write): If STORED, write directly.
775 Always update crc, and uncompressed_size.
776 (write_entry): Fix lots of protocol erors.
778 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
780 1.3-Compliant Implementation of java.io.File.
781 * java/lang/natSystem.cc (init_properties): Get "file.separator",
782 "path.separator", and "java.io.tmpdir" from the File class, instead
783 of setting them explicitly.
784 * java/io/File.java: Do not canonicalize paths for security manager
785 checks. Call init_native() from static initializer. Do not pass path
786 argument to native methods. New native method declarations. Some
787 security manager checks moved to checkWrite().
788 (equals): Check file system case sensitivity and act appropriatly.
789 (hashCode): Likewise.
790 (isHidden): New method implemented.
791 (performList): Changed prototype. Now takes a class argument specifying
792 the class of the returned array: Strings or File objects. Also added
794 (listFiles): New variants with "File" return type implemented.
795 (createTempFile): Use createNewFile(). Use maxPathLen.
796 (setReadOnly): New method implemented.
797 (listRoots): Likewise.
798 (compareTo): Likewise.
799 (setLastModified): Likewise.
800 (checkWrite): New method.
802 * java/io/natFile.cc: Various functions no longer take canonical path
804 (stat): Handle ISHIDDEN query.
805 (isAbsolute): Remove WIN32 cruft.
806 (performList): New arguments. Handle returning either File[] or String[]
807 arrays. Check with FileFilter or FilenameFilter arguments as
808 appropriate. Use an ArrayList, not a Vector, for the temporary list.
809 (performSetReadOnly): New method implemented.
810 (performListRoots): Likewise.
811 (performSetLastModified): Likewise.
812 (performCreate): Likewise.
813 (init_native): New initialization function.
814 * java/io/natFileWin32.cc: Various functions no longer take canonical
816 (stat): Add FIXME about ISHIDDEN query.
817 (performList): New arguments. Handle returning either File[] or String[]
818 arrays. Check with FileFilter or FilenameFilter arguments as
819 appropriate. Use an ArrayList, not a Vector, for the temporary list.
820 (performSetReadOnly): New. Stubbed.
821 (performListRoots): Likewise.
822 (performSetLastModified): Likewise.
823 (performCreate): Likewise.
824 (init_native) New initialization function.
825 * configure.in: Check for utime() and chmod().
826 * configure: Rebuilt.
827 * include/config.h.in: Rebuilt.
829 Resolves PR libgcj/1759.
831 2001-03-28 Richard Henderson <rth@redhat.com>
833 IA-64 ABI Exception Handling:
834 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
835 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
836 Remove EXCEPTIONSPEC.
837 * configure.host (libgcj_sjlj): Remove.
838 * configure.in (EXCEPTIONSPEC): Remove.
839 (enable-sjlj-exceptions): Detect if not specified.
840 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
841 what header we're looking for.
842 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
843 * Makefile.in, configure: Regenerate.
844 * exception.cc: Don't declare libgcc2 stuff.
845 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
846 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
847 (win32_get_restart_frame): Remove.
848 (struct java_exception_header): New.
849 (__gcj_exception_class): New.
850 (get_exception_header_from_ue): New.
851 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
852 (size_of_encoded_value, read_encoded_value): New.
853 (read_uleb128, read_sleb128, parse_lsda_header): New.
854 (get_ttype_entry, __gcj_personality_sj0): New.
855 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
857 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
859 * javax/naming/InitialContext.java (init): Fix typo.
860 (composeName): Remove unnecessary semicolon.
861 (addToEnvironment): Remove unnecessary semicolon.
862 (addToEnvironment): Use put() instead of add().
864 * javax/naming/InitialContext.java (InitialContext):
866 (destroySubcontext): Method doesn't return a result.
867 * javax/naming/Context.java: Import java.util.Hashtable.
868 * javax/naming/Name.java: Import java.util.Enumeration.
870 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
872 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
873 objects in subdirectories.
874 * Makefile.in: Rebuilt.
876 2001-03-25 Richard Henderson <rth@redhat.com>
878 * exception.cc (java_eh_info): Make value type jthrowable.
879 (_Jv_type_matcher): Remove now unneeded cast.
880 (_Jv_Throw): Make argument type jthrowable. Munge name
881 for SJLJ_EXCEPTIONS here ...
882 * gcj/cni.h: ... not here.
884 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
886 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
887 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
888 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
889 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
890 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
891 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
892 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
893 java/lang/natClass.cc, java/lang/natClassLoader.cc,
894 java/lang/natDouble.cc, java/lang/natObject.cc,
895 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
896 java/lang/natString.cc, java/lang/natSystem.cc,
897 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
898 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
899 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
900 java/util/zip/natInflater.cc:
901 Use throw, not JvThrow or _Jv_Throw.
903 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
905 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
906 paramater, bump it to 1.
907 * java/util/Hashtable.java (Hashtable): Likewise.
909 2001-03-23 Per Bothner <per@bothner.com>
911 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
912 check for errors, since we don't want to throw exception on
913 overflow/underflow. Instead, trim whitespace, and then check that
914 _strtod_r uses up all the rest of the string.
916 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
917 ancestors array is invalid for interfaces, so do that *after*
918 check that the target type is not an interface.
920 2000-03-23 Jeff Sturm <jsturm@one-point.com>
922 * prims.cc (_Jv_FindClassFromSignature): Check return of
923 recursive call. Do not abort on invalid signature; return NULL
926 2001-03-22 Tom Tromey <tromey@redhat.com>
928 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
929 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
931 * include/jvm.h (_Jv_ResolveField): Declare.
932 * include/java-interp.h (_Jv_ResolveField): Don't declare.
933 * resolve.cc (_Jv_ResolveField): No longer conditional on
936 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
938 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
940 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
941 to a temporary file, then invoke libtool with the -objectlist
943 (libgcjx.la): Likewise.
944 * Makefile.in: Rebuilt.
946 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
948 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
950 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
952 * jni.cc (add_char): Handle `.' like `/'.
954 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
956 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
957 initialize if exception_types is null.
958 * java/lang/reflect/Constructor.java: Likewise.
959 * java/lang/reflect/natConstructor.cc (getType): Initialize
960 exception_types to an empty Object array.
962 2001-03-21 Tom Tromey <tromey@redhat.com>
964 * configure: Rebuilt.
965 * configure.in (GCJFLAGS): Subst.
966 * Makefile.in: Rebuilt.
967 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
968 (gij_LDFLAGS): Likewise.
969 (JC1FLAGS): Added GCJFLAGS and removed -g.
971 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
972 read/write case. Fixes PR libgcj/2338.
974 2001-03-20 Warren Levy <warrenl@redhat.com>
976 * java/util/TimeZone.java: Sync up with Classpath. Includes new
977 and corrected SimpleTimeZone's for the timezones hash table.
979 2001-03-19 Per Bothner <per@bothner.com>
981 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
982 "canonicalize" "../../xxx" to "/xxx".
984 2001-03-19 Mark Wielaard <mark@klomp.org>
986 * java/util/ArrayList.java: Remove RCS keywords from comments
987 * java/util/BasicMapEntry.java: idem
988 * java/util/Dictionary.java: idem
989 * java/util/HashSet.java: idem
991 * java/util/EventObject.java: reindent
992 * java/util/Properties.java: idem
993 * java/util/SortedMap.java: idem
995 * java/util/Enumeration.java: Merge with Classpath
996 * java/util/EventListener.java: idem
997 * java/util/Observable.java: idem
998 * java/util/Observer.java: idem
999 * java/util/Stack.java: idem
1001 2001-03-17 Tom Tromey <tromey@redhat.com>
1003 * java/lang/natString.cc (rehash): Don't bother with memset;
1004 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1006 (UNMASK_PTR): New macro.
1007 (intern): Unmask pointer before returning it. Register finalizer
1009 (unintern): Handle case where
1010 (MASK_PTR): New macro.
1011 (PTR_MAKSED): Likewise.
1012 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1014 2001-03-01 Andrew Haley <aph@redhat.com>
1016 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1017 stackTrace buffer to a correctly aligned pointer array.
1019 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1021 * java/lang/Runtime.java (_exit): Declare new package-private native.
1022 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1023 without a security manager check.
1024 (exit): Call _exit after security check.
1025 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1027 * java/lang/System.java (setSecurityManager): If a security manager
1028 is already in place, call checkPermission.
1029 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1030 throws an exception, try to deal with it gracefully.
1031 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1032 Only try to print the subordinate stack trace if "exception" is set.
1033 Print our class name first.
1035 2001-03-08 Tom Tromey <tromey@redhat.com>
1037 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1038 info for array classes.
1039 Fixes PR libgcj/1971.
1041 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1043 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1046 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1048 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1049 instead of the new JDK1.2 API. This is simpler and makes
1050 back-porting the classes to JDK1.1 trivial.
1051 (readObject): likewise.
1053 2001-03-01 Per Bothner <per@bothner.com>
1055 Changes merged from Kawa's gnu.math.
1056 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1057 (rshift(int[],int[],int,int): Removed - not needed.
1058 (gcd): Use rshift0 rather than rshift.
1059 * java/math/BigInteger.java (setShiftRight): Likewise.
1060 (divide): Simplify by using rshift0.
1061 (divide): Zero-extend results if high-order bit set.
1063 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1065 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1068 2001-02-23 Per Bothner <per@bothner.com>
1070 Change to sometimes include class name in ClassFormatError message.
1071 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1072 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1073 boolean instead of throwing ClassFormatError on failure.
1074 (throw_class_format_error): Change static function to method.
1075 (_Jv_ClassReader): New inline methods verify_identifier,
1076 two overloads of verify_classname, verify_field_signature, and
1077 verify_method_signature
1078 * include/java-interp.h: Update declarations to return bool.
1079 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1080 ClassFormatError since _Jv_VerifyClassName now returns bool.
1082 2001-02-23 Per Bothner <per@bothner.com>
1084 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1085 c++filt to select java-style output.
1087 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1089 Fix for PR java/2040:
1090 * java/util/HashMap.java (HashMap): Don't throw exception for
1091 loadFactor > 1. Add exception messages.
1092 * java/util/Hashtable.java (Hashtable): Likewise.
1094 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1096 Disable libgcjx by default.
1097 * configure.in: Add support for --enable-java-awt configure option.
1098 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1099 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1100 * Makefile.in: Rebuilt.
1101 * configure: Rebuilt.
1103 2001-02-20 Tom Tromey <tromey@redhat.com>
1105 * java/io/PipedWriter.java (flush): Throw exception if stream
1107 * java/io/OutputStreamWriter.java (write): Throw exception if
1109 (writeChars): Don't throw exception if stream closed.
1110 * java/io/CharArrayWriter.java (closed): New field.
1112 (flush): Throw exception if stream closed.
1113 (reset): Synchronize on correct lock. Allow stream to be
1115 (toCharArray, toString, writeTo): Synchronize.
1116 (write): Throwe exception if stream closed.
1117 * java/io/BufferedWriter.java (close): Clear `buffer'.
1118 (flush): Throw IOException if stream is closed.
1121 2001-02-16 Tom Tromey <tromey@cygnus.com>
1123 * java/lang/ThreadGroup.java (activeCount): Only include threads
1125 (enumerate): Likewise.
1127 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1129 * java/lang/Integer.java (getInteger): Return default argument if
1130 property is not set. Don't call decode with null argument.
1131 * java/lang/Long.java (getLong): Likewise.
1133 * java/io/CharArrayReader.java (CharArrayReader): Throw
1134 IllegalArgumentException if constructor arguments are illegal.
1135 (ready): Return false if no more characters can be read.
1136 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1138 2001-02-17 Mark Wielaard <mark@klomp.org>
1140 * java/util/TimerTask.java: New version from Classpath.
1142 2001-02-17 Mark Wielaard <mark@klomp.org>
1144 Remerge with Classpath
1145 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1146 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1147 (readByte): Use convertToByte().
1148 (readChar): Use convertToChar().
1149 (readInt): Use convertToInt().
1150 (readLong): Use convertToLong().
1151 (readShort): Use convertToShort().
1152 (readUnsignedByte): Use convertToUnsignedByte().
1153 (readUnsignedShort): Use convertToUnsignedShort().
1154 (readUTF): Use convertToUTF().
1156 (convertToBoolean): Resurrected.
1157 (convertToByte): Ditto.
1158 (convertToChar): Ditto.
1159 (convertToInt): Ditto.
1160 (convertToLong): Ditto.
1161 (convertToShort): Ditto.
1162 (convertToUnsignedByte): Ditto.
1163 (convertToUnsignedShort): Ditto.
1164 (convertToUTF): Ditto.
1166 2001-02-17 Mark Wielaard <mark@klomp.org>
1170 2001-02-17 Mark Wielaard <mark@klomp.org>
1172 * java/io/DataInputStream.java: update copyright notice
1173 * java/io/PrintWriter.java: idem
1174 * java/io/Reader.java: idem
1175 * java/io/StreamTokenizer.java: idem
1176 * java/io/StringReader.java: idem
1177 * java/lang/reflect/ReflectPermission.java: idem
1179 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1181 * java/util/TreeSet.java (clone): Made subclass safe, use
1182 super.clone(), not new.
1183 * java/util/TreeMap.java (clone): Likewise.
1185 * java/util/TreeMap.java (nil): Made non-final.
1186 (clone): Create new nil node for copy.
1188 * java/util/HashSet.java (clone): Made subclass safe, use
1189 super.clone(), not new.
1191 2001-02-14 Andrew Haley <aph@redhat.com>
1193 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1196 2001-02-15 Anthony Green <green@redhat.com>
1198 * defineclass.cc: Don't include alloca.h.
1199 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1200 * interpret.cc (run_normal): Ditto.
1202 * java/lang/natDouble.cc (parseDouble): Ditto.
1204 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1206 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1208 * java/util/Collections.java (ReverseComparator): New static class.
1209 (reverseOrder): Return static instance of ReverseComparator.
1211 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1212 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1213 Rectangle.clone(), not Object.clone().
1215 * java/util/HashSet.java (clone): Remove try/catch.
1217 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1218 * java/util/Collection.java: Likewise.
1219 * java/util/Comparator.java: Likewise.
1220 * java/util/Dictionary.java: Likewise.
1221 * java/util/Iterator.java: Likewise.
1222 * java/util/ListIterator.java: Likewise.
1223 * java/util/Map.java: Likewise.
1224 * java/util/Set.java: Likewise.
1226 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1228 * java/util/TreeMap.java: New file.
1229 * java/util/TreeSet.java: New file.
1230 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1231 * Makefile.in: Rebuilt.
1232 * java/util/HashSet.java (clone): Use constructor instead of calling
1234 * java/util/SortedSet.java: Sync with classpath.
1235 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1238 * java/lang/natClass.cc (getSignature): Don't try to dereference
1239 param_types if it is null. Instead, take this to mean "no parameters".
1240 * java/lang/TreeMap.java (TreeIterator.next): Throw
1241 NoSuchElementException in preference to ConcurrentModificationException.
1242 (TreeIterator.remove): Throw IllegalStateException in preference to
1243 ConcurrentModificationException.
1244 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1245 throw a NoSuchElementException.
1246 (SubMap.lastKey): Likewise.
1248 2001-02-13 Tom Tromey <tromey@redhat.com>
1250 * java/io/PipedReader.java (ready): Throw IOException if pipe
1252 * java/io/FilterReader.java (close): Don't clear `in'.
1253 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1255 (read, ready, reset, skip): Added exception message.
1256 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1257 Perform checkStatus check inside synchronized block.
1259 2001-02-13 Tom Tromey <tromey@redhat.com>
1261 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1263 2001-02-13 Tom Tromey <tromey@redhat.com>
1265 Fix for PR libgcj/1351:
1266 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1268 Include Thread.h and InterruptedIOException.h.
1270 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1272 * java/io/BlockDataException.java: Removed.
1273 * java/io/ObjectInputStream.java (readObject): Throw
1274 StreamCorruptedException, not BlockDataException.
1275 * Makefile.am: Remove BlockDataException.
1276 * Makefile.in: Rebuild.
1278 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1279 Tom Tromey <tromey@redhat.com>
1281 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1284 2001-02-09 Tom Tromey <tromey@redhat.com>
1286 * java/util/Timer.java: New version from Classpath.
1288 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1290 * java/lang/Double.java (doubleToRawLongBits): Now native.
1291 * java/lang/Float.java (floatToRawIntBits): Likewise.
1292 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1293 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1295 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1297 * java/io/File.java (java.net): Imported.
1298 (getAbsoluteFile): Added.
1299 (getCanonicalPath): Likewise.
1302 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1304 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1305 * java/lang/Integer.java: Likewise.
1306 * java/lang/Long.java: Likewise.
1307 * java/lang/Short.java: Likewise.
1308 * java/lang/Double.java: Likewise.
1309 (doubleToRawLongBits): New method.
1310 * java/lang/Float.java: As above.
1311 (floatToRawIntBits): New method.
1313 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1314 IOException if stream closed.
1316 2001-02-08 Tom Tromey <tromey@redhat.com>
1318 * java/lang/Float.java (parseFloat): New method.
1320 2001-02-08 Tom Tromey <tromey@redhat.com>
1322 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1323 * java/io/InputStreamReader.java (ready, read): Throw IOException
1324 if stream has been closed.
1326 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1328 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1329 Change sources.redhat.com and sourceware.cygnus.com references to
1332 2001-02-07 Tom Tromey <tromey@redhat.com>
1334 Fix for PR libgcj/1906:
1335 * java/text/MessageFormat.java (setLocale): Use named class
1338 (format(Object,StringBuffer,FieldPosition)): Special case if
1339 argument is an Object[].
1341 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1343 * java/util/Arrays.java: Removed "cmp" methods.
1344 (qsort): Don't use "cmp".
1347 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1349 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1350 sort. Fix for PR java/1895.
1352 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1354 * configure.host: Use sjlj-exceptions for Alpha.
1356 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1358 * libgcj.spec.in: Don't force static libgcc into the executable.
1359 * configure.in (FORCELIBGCCSPEC): Removed.
1360 * configure: Rebuilt.
1362 2001-01-31 Tom Tromey <tromey@redhat.com>
1364 * Makefile.in: Rebuilt.
1365 * Makefile.am (LTCXXCOMPILE): New macro.
1367 2001-01-26 Andrew Haley <aph@redhat.com>
1369 (INIT_FPE): Use a direct system call to set the handler.
1371 2001-01-27 Richard Henderson <rth@redhat.com>
1373 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1375 2001-01-27 Tom Tromey <tromey@redhat.com>
1377 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1378 native interface structure.
1380 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1382 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1384 (read (byte[], int, int)): Only call readNextBlock() if the block
1385 buffer would actually be overrun. Increment blockDataPosition.
1386 (callReadMethod): Propagate exceptions from invocation target.
1387 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1388 exceptions from invocation target.
1390 2001-01-26 Tom Tromey <tromey@redhat.com>
1392 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1393 to internal representation.
1394 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1395 _Jv_FindClassFromSignature.
1397 2001-01-26 Warren Levy <warrenl@redhat.com>
1399 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1400 and timezone if they are available on the system.
1402 2001-01-24 Tom Tromey <tromey@redhat.com>
1404 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1406 2001-01-24 Tom Tromey <tromey@redhat.com>
1408 * Makefile.in: Rebuilt.
1409 * Makefile.am (c_source_files): Added sf_fabs.c.
1410 * java/lang/sf_fabs.c: New file.
1412 2001-01-19 Warren Levy <warrenl@redhat.com>
1414 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1415 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1416 correctly. Adjust properly from 0-23 clock hour.
1418 2001-01-17 Mark Wielaard <mark@klomp.org>
1420 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1422 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1424 * java/lang/Class.h (isInterface): Move implementation from
1425 natClass.cc. Declare inline.
1426 (Class): Add default constructor.
1427 * java/lang/Object.h: Update comments.
1428 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1429 initialize superclass, saving a call if super is already initialized.
1431 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1433 * prims.cc (init_prim_class): Deleted.
1434 (DECLARE_PRIM_TYPE): Rewritten.
1435 * java/lang/Class.h (stdio.h): Include removed.
1436 (stddef.h): Included.
1437 (java/lang/reflect/Modifier.h): Likewise.
1438 (Class): Contructor now takes arguments, initializes fields.
1439 (initializePrim): Prototype deleted.
1440 * java/lang/natClass.cc (initializePrim): Deleted.
1442 2001-01-16 Warren Levy <warrenl@redhat.com>
1444 * java/math/BigInteger.java: Update Copyright year.
1446 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1448 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1451 2001-01-14 Mark Wielaard <mark@klomp.org>
1452 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1453 (decode): Merge comments with Classpath, don't throw Exception
1455 2001-01-12 Tom Tromey <tromey@redhat.com>
1457 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1461 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1462 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1463 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1464 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1465 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1467 * java/lang/natSystem.cc: Include locale.h if it exists.
1468 * configure: Rebuilt.
1469 * configure.in: Check for locale.h.
1471 2001-01-11 Tom Tromey <tromey@redhat.com>
1473 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1474 (Cursor(int), getPredefinedCursor): Throw exception if argument
1477 2001-01-03 Tom Tromey <tromey@redhat.com>
1479 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1480 (getLocationOnScreen): Wrote.
1482 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1484 * Makefile.am: Re-enable dependencies.
1485 * Makefile.in: Rebuilt.
1487 2001-01-10 Warren Levy <warrenl@redhat.com>
1489 * java/math/BigDecimal.java (divide): Fixed comment.
1491 2001-01-10 Warren Levy <warrenl@redhat.com>
1493 Fix for PR libgcj/1596:
1494 * java/math/BigDecimal.java (divide): Check newScale for validity.
1495 Ensure that BigInteger.pow() is called with a non-negative value.
1496 (setScale (int)): New public method.
1497 (setScale (int,int)): New public method.
1499 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1501 Fix for PR libgcj/1338:
1502 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1503 commentChar. Fixed typos in comments.
1505 2001-01-08 Warren Levy <warrenl@redhat.com>
1507 Fix for PR libgcj/1411:
1508 * Makefile.am: Removed java/util/natTimeZone.cc.
1509 * Makefile.in: Rebuilt.
1510 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1511 missing localized timezone names.
1512 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1513 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1514 (init_properties): Set user.timezone property.
1515 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1516 default timezone names; removed non-standard ones. Use standard
1518 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1520 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1522 (getDefaultTimeZoneId): Removed.
1524 * java/util/natTimeZone.cc: Removed.
1526 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1528 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1529 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1530 (_Jv_GetArrayClass): New inline function.
1531 (arrayclass): New field.
1532 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1533 _Jv_GetArrayElementFromElementType.
1534 (_Jv_NewPrimArray): Ditto.
1535 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1536 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1537 Set Modifier::ABSTRACT.
1538 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1539 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1540 Now synchronized. Array classes are now referenced from
1541 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1542 Set array classes' accessibility flags correctly. Optimize so that
1543 all array classes share the same IDT.
1544 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1545 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1546 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1547 in superclasses from overwriting classes own fields.
1548 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1549 Modifier::isAbstract().
1550 (null_idt): New static field.
1551 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1553 (_Jv_IndexOf): Made inline.
1554 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1556 2001-01-08 Tom Tromey <tromey@redhat.com>
1558 Fix for PR java/1586:
1559 * Makefile.in: Rebuilt.
1560 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1562 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1564 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1565 from the c++ compiler.
1566 * Makefile.in: Rebuilt.
1568 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1570 All files with updated copyright.
1571 * prims.cc (class _Jv_PrimClass): Removed.
1572 (init_prim_class): New function.
1573 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1574 `_Jv_PrimClass' in primitive type declarations. Assign to the
1575 value returned by `init_prim_class.'
1576 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1577 primitive type declarations.
1578 (JvPrimClass): Cast to `jclass' removed.
1579 * java/lang/Class.h (Class): New constructor.
1580 (Class): New copy constructor.
1581 (initializePrim): New prototype.
1582 (_Jv_PrimClass): Field removed.
1583 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1584 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1585 (class java::lang::Object): `finalize' moved up front.
1586 * java/lang/natClass.cc
1587 (isAssignableFrom): Turned outline.
1588 (isInstance): Likewise.
1589 (isInterface): Likewise, fixed indentation.
1590 (initializePrim): New function.
1592 2001-01-07 Anthony Green <green@redhat.com>
1594 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1596 * Makefile.in: Rebuilt.
1598 * scripts/TexinfoDoclet.java: New file.
1600 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1601 doc/java-awt-color.texi, doc/java-lang.texi,
1602 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1603 doc/java-awt-event.texi, doc/java-net.texi,
1604 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1605 doc/java-awt-image.texi, doc/java-security.texi,
1606 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1607 doc/java-text.texi, doc/java-beans-beancontext.texi,
1608 doc/java-util-jar.texi, doc/java-beans.texi,
1609 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1610 doc/java-lang-ref.texi: New files.
1612 2001-01-07 Anthony Green <green@redhat.com>
1614 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1615 be used for both input and output, so don't clear doInput.
1617 * java/lang/StringBuffer.java: Fix comments.
1619 2001-01-06 Anthony Green <green@redhat.com>
1621 * java/beans/PropertyDescriptor.java: Fix comment.
1622 * java/io/PushbackReader.java: Fix comment.
1623 * java/io/ObjectStreamClass.java: Fix comment.
1624 * java/io/DataInputStream.java: Fix comment.
1625 * java/io/PipedInputStream.java: Fix comments.
1626 * java/io/PipedReader.java: Fix comments.
1627 * java/sql/DatabaseMetaData.java: Fix comments.
1629 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1631 * java/io/PipedReader: Synchronize on "lock" instead of this.
1633 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1635 * java/lang/Thread.java: Update comment.
1637 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1638 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1639 * java/io/PipedReader: New implementation based on new
1641 * java/io/PipedWriter: Updated to match new PipedReader.
1643 2001-01-03 Tom Tromey <tromey@redhat.com>
1645 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1646 (getViewportSize): Insets include scrollbar size.
1647 (doLayout): Finished.
1648 (getScrollPosition): Wrote.
1649 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1651 2001-01-02 Tom Tromey <tromey@redhat.com>
1653 * java/awt/ScrollPane.java: Wrote.
1654 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1657 * java/awt/Panel.java (Panel()): Fixed.
1659 * java/awt/Component.java (isShowing): Return false if no peer
1660 exists, and true if component is visible and no parent exists.
1661 (getLocationOnScreen): Wrote.
1662 (getPreferredSize): Removed FIXME comment.
1663 (getMinimumSize): Likewise.
1664 (getAlignmentX, getAlignmentY): Wrote.
1666 (requestFocus): Wrote.
1667 (transferFocus): Wrote.
1668 (findNextFocusComponent): New method.
1669 (hasFocus()): Wrote.
1670 (checkImage): Wrote.
1671 (enableEvents): Call setEventMask on the peer.
1673 * java/awt/Container.java (list): Use super.list() to print self.
1674 (findNextFocusComponent): New method.
1675 (setLayout): Call invalidate.
1676 (findComponentAt): Wrote.
1678 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1680 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1681 the correct versions of various linuxthreads functions get linked.
1682 * Makefile.in: Rebuilt.
1683 * java/lang/natThread.cc (finalize_native): New static function. Call
1684 _Jv_ThreadDestroyData.
1685 (initialize_native): Register finalizer for "data".
1686 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1687 (_Jv_ThreadDestroyData): New prototype.
1688 * include/win32-threads.h: Ditto.
1689 * include/no-threads.h: Ditto.
1690 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1691 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1692 move mutex and condition variable destroy code from:
1693 (really_start): ...here.
1694 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1695 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1696 (_Jv_ThreadDestroyData): Implemented.
1697 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1698 (_Jv_AllocArray): Ditto.
1700 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1702 * java/sql/DriverManager.java (getConnection): Don't set user/password
1705 2000-12-27 Warren Levy <warrenl@redhat.com>
1707 Fix for PR libgcj/1358:
1708 * java/lang/System.java: Update Copyright date properly.
1709 * java/util/Calendar.java: Fix typo in comment.
1710 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1711 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1712 initialize times. Spec says to set H:M:S values to zero only if
1714 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1715 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1716 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1717 timezones and GMT offsets, being careful to account for units of
1718 milliseconds vs. seconds.
1720 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1722 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1723 not be assigned to Object.
1725 Fix for PR libgcj/1516:
1726 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1728 (can_widen): Declared inline. Remove redundant checks for void
1729 arguments and char->short conversion. Add special case for boolean
1731 (ffi_type): Declared inline.
1732 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1734 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1736 * java/sql/SQLWarning.java: Fixed typo in comment.
1738 2000-12-26 Tom Tromey <tromey@redhat.com>
1740 * java/awt/MenuItem.java (paramString): Now protected.
1742 * java/awt/MenuShortcut.java: Implements Serializable.
1744 * java/awt/MenuBar.java: Rewrote from scratch.
1746 * java/awt/MenuComponent.java (removeNotify): Wrote.
1747 Implements Serializable.
1749 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1752 * java/awt/CheckboxMenuItem.java: Wrote.
1754 2000-12-25 Tom Tromey <tromey@redhat.com>
1756 * java/awt/MenuContainer.java: Fixed typo.
1758 * Makefile.in: Rebuilt.
1759 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1760 * java/awt/SystemColor.java: New file.
1762 * java/awt/Color.java (rgba): Now package-private.
1764 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1766 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1769 * java/awt/MenuItem.java (addNotify): New method.
1770 (MenuItem(String,MenuShortcut)): New constructor.
1771 (setLabel): Notify peer of change.
1772 (setEnabled): Likewise.
1774 * java/awt/GridLayout.java (toString): New method.
1776 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1777 (FlowLayout): Check for LEADING and TRAILING.
1778 (setAlignment): Likewise.
1779 (layoutContainer): Handle component orientation.
1781 * java/awt/Component.java (orientatin): New field.
1782 (setComponentOrientation): Wrote.
1783 (getComponentOrientation): Wrote.
1785 * java/awt/Event.java (Event): Implements Serializable.
1786 (consumed): New field for serialization.
1787 * java/awt/Dimension.java (Dimension): Implements Serializable.
1788 * java/awt/Cursor.java (Cursor): Implements Serializable.
1789 * java/awt/Container.java (Container): No longer abstract.
1791 * java/awt/Choice.java: Wrote.
1792 * java/awt/Checkbox.java: Wrote.
1793 * java/awt/ItemSelectable.java: Documented.
1794 * java/awt/CheckboxGroup.java: Wrote.
1796 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1798 (getSize): Likewise.
1800 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1802 * java/io/FileDescriptor.java: Initialize fd to -1.
1803 Remove default constructor.
1805 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1807 * java/lang/mprec.h: Change C9X reference to refer to C99.
1809 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1811 * java/lang/Throwable.java (trace_enabled): New static field.
1812 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1813 trace_enabled not set.
1814 * prims.cc (main_init): Turn off trace_enabled while creating
1815 default exception objects.
1817 2000-12-21 Tom Tromey <tromey@redhat.com>
1819 * java/beans/PropertyChangeListener.java: Extends EventListener.
1820 * java/beans/VetoableChangeListener.java: Extends EventListener.
1822 * java/util/zip/Deflater.java (update, init): Now private.
1824 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1826 * java/util/BasicMapEntry.java: Re-added.
1827 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1828 (putAll): Test for BasicMapEntry.
1829 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1830 (putAll): Test for BasicMapEntry.
1831 Change references from `HashMap.Entry' to `Entry' in various places.
1832 * Makefile.am: Add BasicMapEntry.java.
1833 * Makefile.in: Rebuilt.
1835 2000-12-18 Warren Levy <warrenl@redhat.com>
1837 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1838 need to set timezone to a valid non-null value. Partial fix for
1841 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1843 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1845 * java/awt/Button.java (addNotify): Likewise.
1846 * java/awt/Label.java (addNotify): Likewise.
1847 * java/awt/Panel.java (addNotify): Likewise.
1848 * java/awt/Scrollbar.java (addNotify): Likewise.
1849 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1850 Remove redundant null checks.
1852 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1854 * COPYING: Update to current
1855 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1856 to 19yy as example year in copyright notice).
1858 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1860 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1861 end-of-stream if avail_in is 0.
1863 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1865 * java/util/ArrayList.java (data): Declare transient.
1866 (serialPersistantFields): Removed.
1867 (readObject): Use defaultReadObject(), not readFields().
1868 (writeObject): Use defaultWriteObject(), not writeFields().
1870 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1872 * java/util/Hashtable.java (put): Remove `last' variable.
1873 Link new entry to head of list.
1874 * java/util/HashMap.java (put): Ditto.
1876 2000-12-15 Tom Tromey <tromey@redhat.com>
1878 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1879 loader to Class.forName.
1881 2000-12-14 Tom Tromey <tromey@redhat.com>
1883 * java/util/ResourceBundle.java
1884 (getBundle(String,Locale,ClassLoader)): New method.
1885 (trySomeGetBundle): Added `loader' argument.
1886 (partialGetBundle): Likewise.
1888 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1889 maximumFractionDigits, maximumIntegerDigits,
1890 minimumFractionDigits, minimumIntegerDigits): Now
1893 * java/lang/Thread.java (checkAccess): Now final.
1895 * java/lang/RuntimePermission.java: Class now final.
1897 * java/io/StringWriter.java (StringWriter(int)): Now public.
1899 * java/io/SerializablePermission.java (legal_names): Now private.
1901 * java/lang/Character.java: Updated UnicodeBlock constants.
1902 * scripts/blocks.pl: Special case private use and surrogate
1905 2000-12-12 Tom Tromey <tromey@redhat.com>
1907 * Makefile.in: Rebuilt.
1908 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1910 (GCJCOMPILE): Use it.
1913 2000-12-11 Tom Tromey <tromey@redhat.com>
1915 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1916 New static final fields.
1918 * scripts/classes.pl (scan): Skip lines with leading `*'.
1919 Fix for PR libgcj/378.
1921 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1923 * configure.in: Remove check for -fuse-divide-subroutine.
1924 * configure: Rebuilt.
1926 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1928 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1930 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1932 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1933 Remove BasicMapEntry.java and Bucket.java.
1934 * Makefile.in: Rebuilt.
1935 * java/util/HashMap.java: Rewritten.
1936 * java/util/HashSet.java: Imported from classpath.
1937 * java/util/WeakHashMap.java: Imported from classpath.
1938 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1939 * java/util/Bucket.java: Deleted.
1940 * java/util/BasicMapEntry.java: Deleted.
1941 * java/util/Collections.java (search): Use a for-loop, not iterator
1943 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1944 of elements in source.
1945 (max): Use a for-loop.
1947 (reverse): Keep track of positions instead of using Iterator's
1948 nextIndex() and previousIndex().
1949 (shuffle(List)): Initialize defaultRandom if required using
1950 double-check thread safety idiom. Call two-argument shuffle method
1951 using defaultRandom.
1952 (defaultRandom): New field.
1953 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1954 using previousIndex() and nextIndex().
1955 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1956 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1957 * java/util/AbstractMap.java (toString): Use StringBuffer.
1958 * java/lang/ref/PhantomReference.java: Imported from classpath.
1959 * java/lang/ref/SoftReference.java: Ditto.
1960 * java/lang/ref/Reference.java: Ditto.
1961 * java/lang/ref/WeakReference.java: Ditto.
1962 * java/lang/ref/ReferenceQueue.java: Ditto.
1964 2000-12-10 Richard Henderson <rth@redhat.com>
1966 * configure.host: Recognize alpha*-*, not alphaev6-*.
1968 2000-12-09 Anthony Green <green@redhat.com>
1970 * configure.host: Enable interpreter for Alpha.
1972 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1974 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1975 (ZIP): Points at fastjar instead of zip.
1976 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1977 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1978 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1979 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1980 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1981 ($(x_java_source_files:.java=.class):): Likewise.
1982 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1984 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1985 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1986 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1987 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1988 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1989 gnu/gcj/runtime/VMClassLoader.h:,
1990 java/io/ObjectInputStream$$GetField.h:,
1991 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1992 (Makefile.in): Rebuilt.
1994 2000-12-08 Tom Tromey <tromey@redhat.com>
1997 * configure: Rebuilt.
1998 * configure.in: Use echo, not `:', to create .d files.
2000 2000-12-08 Warren Levy <warrenl@redhat.com>
2002 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2003 NullPointerException so proper check of offset can be done.
2005 2000-12-08 Warren Levy <warrenl@redhat.com>
2007 * java/io/FileInputStream.java (close): Check if the fd is valid.
2008 * java/io/RandomAccessFile.java (close): Ditto.
2009 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2010 * java/net/PlainSocketImpl.java (close): Ditto.
2012 2000-12-06 Tom Tromey <tromey@redhat.com>
2014 * java/awt/GridBagConstraints.java: Filled in values for static
2017 * java/util/BitSet.java: Updated copyright notice.
2019 * Makefile.in: Rebuilt.
2020 * Makefile.am (awt_java_source_files): Added new file.
2021 * java/awt/GridBagConstraints.java: New file.
2023 2000-12-05 Tom Tromey <tromey@redhat.com>
2025 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2026 Now package-private, not protected.
2027 * java/text/DateFormatSymbols.java (equals): Now private.
2028 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2029 * java/util/BitSet.java: Class no longer final.
2031 2000-12-04 Warren Levy <warrenl@redhat.com>
2033 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2034 out code dependent on compiler and library changes.
2036 2000-12-04 Warren Levy <warrenl@redhat.com>
2038 * java/io/FilePermission.java: Made class final per spec.
2039 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2040 method name to match spec (fixed typo).
2041 * java/util/LinkedList.java: Implements List.
2043 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2045 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2046 Edgar Villanueva <edgarvil@home.com>.
2048 2000-12-03 Tom Tromey <tromey@redhat.com>
2050 * java/awt/geom/Point2D.java: Added protected constructor.
2051 (equals): New method.
2052 (Float.setLocation(float,float)): New method.
2053 * java/awt/geom/Dimension2D.java: Added protected constructor.
2054 * java/awt/geom/AffineTransform.java: Made all constants public.
2055 (concatenate): Fixed typo in name.
2056 * java/awt/event/WindowAdapter.java: Class now abstract.
2057 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2058 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2061 * java/awt/AWTError.java: Extend Error, not
2062 IllegalStateException.
2064 * Makefile.in: Rebuilt.
2065 * Makefile.am (awt_java_source_files): Added new file.
2066 * java/awt/geom/RoundRectangle2D.java: New file.
2068 * Makefile.in: Rebuilt.
2069 * Makefile.am (awt_java_source_files): Added new file.
2070 * java/awt/FlowLayout.java: New file.
2072 * Makefile.in: Rebuilt.
2073 * Makefile.am (awt_java_source_files): Added new file.
2074 * java/awt/GridLayout.java: New file.
2076 2000-12-02 Tom Tromey <tromey@redhat.com>
2078 * Makefile.in: Rebuilt.
2079 * Makefile.am (awt_java_source_files): Added new files.
2080 * java/awt/CardLayout.java: New file.
2081 * java/awt/AWTPermission.java: New file.
2083 2000-12-01 Tom Tromey <tromey@redhat.com>
2085 * java/util/Vector.java (insertElementAt): Unconditionally
2086 increment elementCount.
2087 (removeRange): Clear unused slots in vector.
2089 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2091 * java/lang/natMath.cc: Declare fabsf() function.
2092 * java/lang/mprec.h: Don't include math.h.
2093 * java/lang/dtoa.c: Include string.h.
2094 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2097 From Adam Welc <welc@cs.purdue.edu>:
2098 * java/util/LinkedList.java (removeFirst): Update `first' field.
2099 Handle the last == first case.
2100 (removeLast): Update `last' field. Handle the last == first case.
2102 2000-12-01 Warren Levy <warrenl@cygnus.com>
2104 * Makefile.am: Added entries for new java.sql modules.
2105 * Makefile.in: Rebuilt.
2107 2000-12-01 Warren Levy <warrenl@cygnus.com>
2109 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2110 that aren't quite 1.2 compatible yet.
2112 2000-11-30 Warren Levy <warrenl@cygnus.com>
2114 * java/sql/Array.java: New file from classpath.
2115 * java/sql/BatchUpdateException.java: Ditto.
2116 * java/sql/Blob.java: Ditto.
2117 * java/sql/Clob.java: Ditto.
2118 * java/sql/Ref.java: Ditto.
2119 * java/sql/SQLData.java: Ditto.
2120 * java/sql/SQLInput.java: Ditto.
2121 * java/sql/SQLOutput.java: Ditto.
2122 * java/sql/Struct.java: Ditto.
2123 * java/sql/CallableStatement.java: Merged file from claspath.
2124 * java/sql/Connection.java: Ditto.
2125 * java/sql/DataTruncation.java: Ditto.
2126 * java/sql/DatabaseMetaData.java: Ditto.
2127 * java/sql/DriverManager.java: Ditto.
2128 * java/sql/PreparedStatement.java: Ditto.
2129 * java/sql/ResultSet.java: Ditto.
2130 * java/sql/ResultSetMetaData.java: Ditto.
2131 * java/sql/SQLException.java: Ditto.
2132 * java/sql/SQLWarning.java: Ditto.
2133 * java/sql/Statement.java: Ditto.
2134 * java/sql/Types.java: Ditto.
2136 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2138 * java/lang/natSystem.cc (init_properties): Set user.language and
2140 * configure.in: Check for setlocale.
2141 * configure: Rebuilt.
2142 * include/config.h.in: Rebuilt.
2144 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2145 the infate() call didn't deliver any output. Throw a ZipException if
2146 the needsDictionary() call returns true.
2147 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2148 * java/io/InputStreamReader: Use the default buffer size for the
2149 contained BufferedInputStream.
2151 2000-11-28 Warren Levy <warrenl@cygnus.com>
2153 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2154 more time zone entries.
2155 * java/text/SimpleDateFormat.java (format): Added case for
2158 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2160 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2161 directly rather than read() in all cases. Make primitive read
2162 implementations more efficient, as defined in JDK online docs.
2163 (skipBytes): Behave like the JDK's implementation.
2164 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2165 closed stream with checkStatus() whenever an IOException can be
2167 (checkStatus): New private method.
2169 2000-11-27 Warren Levy <warrenl@cygnus.com>
2171 * Makefile.am: Added natTimeZone.cc.
2172 * Makefile.in: Rebuilt.
2173 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2174 * java/text/DateFormatSymbols.java (ampms): Made package private.
2175 (eras): Made package private.
2176 (months): Made package private.
2177 (shortMonths): Made package private.
2178 (shortWeekdays): Made package private.
2179 (weekdays): Made package private.
2180 (formatPrefixes): New private field.
2181 (localPatternCharsDefault): Made private.
2182 (dateFormats): New package private field.
2183 (timeFormats): New package private field.
2184 (formatsForKey): New private method.
2185 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2186 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2187 * java/text/SimpleDateFormat.java: Merged with Classpath.
2188 * java/util/TimeZone.java: Merged with Classpath.
2189 * java/util/natTimeZone.cc: New file.
2191 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2193 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2194 (addElement): Don't increment elementCount twice. Doh.
2195 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2196 array needs to be expanded.
2198 * java/util/Collections.java (UnmodifiableCollection): Implement
2200 (UnmodifiableList): Throw UnsupportedOperationException from
2201 modification methods. Set `l' from the one-parameter constructor.
2202 (UnmodifiableMap): Implement toString().
2203 (SynchronizedCollection): Ditto.
2204 (SynchronizedList): Set `l' from the one-parameter constructor.
2205 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2206 (SynchronizedMap): Implement toString().
2208 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2210 * javax/naming/NameParser.java,
2211 javax/naming/directory/AttributeInUseException.java,
2212 javax/naming/directory/AttributeModificationException.java,
2213 javax/naming/directory/InvalidAttributeIdentifierException.java,
2214 javax/naming/directory/InvalidAttributesException.java,
2215 javax/naming/directory/InvalidAttributeValueException.java,
2216 javax/naming/directory/InvalidSearchControlsException.java,
2217 javax/naming/directory/InvalidSearchFilterException.java,
2218 javax/naming/directory/NoSuchAttributeException.java,
2219 javax/naming/directory/SchemaViolationException.java: New files.
2221 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2223 * javax/naming/InitialContext.java (rebind): Implement.
2224 (unbind): Implement.
2225 (rename): Implement.
2227 (listBindings): Implement.
2228 (destroySubcontext): Implement.
2229 (createSubcontext): Implement.
2230 (lookupLink): Implement.
2231 (getNameParser): Implement.
2232 (composeName): Implement.
2233 (addToEnvironment): Implement.
2235 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2237 * javax/naming/AuthenticationException.java,
2238 javax/naming/AuthenticationNotSupportedException.java,
2239 javax/naming/CannotProceedException.java,
2240 javax/naming/CommunicationException.java,
2241 javax/naming/ConfigurationException.java,
2242 javax/naming/ContextNotEmptyException.java,
2243 javax/naming/InsufficientResourcesException.java,
2244 javax/naming/InterruptedNamingException.java,
2245 javax/naming/InvalidNameException.java,
2246 javax/naming/LimitExceededException.java,
2247 javax/naming/LinkException.java,
2248 javax/naming/LinkLoopException.java,
2249 javax/naming/MalformedLinkException.java,
2250 javax/naming/NameAlreadyBoundException.java,
2251 javax/naming/NameNotFoundException.java,
2252 javax/naming/NamingSecurityException.java,
2253 javax/naming/NoPermissionException.java,
2254 javax/naming/NotContextException.java,
2255 javax/naming/PartialResultException.java,
2256 javax/naming/ReferralException.java,
2257 javax/naming/ServiceUnavailableException.java,
2258 javax/naming/SizeLimitExceededException.java,
2259 javax/naming/TimeLimitExceededException.java: New files.
2261 * javax/naming/Name.java (clone): New method.
2262 (compareTo): New method.
2263 (isEmpty): New method.
2264 (getAll): New method.
2265 (getPrefix): New method.
2266 (getSuffix): New method.
2267 (startsWith): New method.
2268 (endsWith): New method.
2269 (addAll): New method.
2270 (addAll): New method.
2273 (remove): New method.
2275 * javax/naming/Context.java (lookup): New method.
2276 (rebind): New method.
2277 (unbind): New method.
2278 (rename): New method.
2280 (listBindings): New method.
2281 (destroySubcontext): New method.
2282 (createSubcontext): New method.
2283 (lookupLink): New method.
2284 (getNameParser): New method.
2285 (composeName): New method.
2286 (addToEnvironment): New method.
2287 (removeFromEnvironment): New method.
2288 (getEnvironment): New method.
2289 (close): New method.
2290 (getNameInNamespace): New method.
2292 * javax/naming/InitialContext.java (lookup): New method.
2293 (rebind): New method.
2294 (unbind): New method.
2295 (rename): New method.
2297 (listBindings): New method.
2298 (destroySubcontext): New method.
2299 (createSubcontext): New method.
2300 (lookupLink): New method.
2301 (getNameParser): New method.
2302 (composeName): New method.
2303 (addToEnvironment): New method.
2304 (removeFromEnvironment): New method.
2305 (getEnvironment): New method.
2306 (close): New method.
2307 (getNameInNamespace): New method.
2309 2000-11-26 Tom Tromey <tromey@cygnus.com>
2311 * Makefile.in: Rebuilt.
2312 * Makefile.am (core_java_source_files): Added
2313 RuntimePermission.java.
2314 * java/lang/RuntimePermission.java: Imported from Classpath.
2315 * java/lang/Thread.java (getContextClassLoader): Now
2316 synchronized. Added security code.
2317 (setContextClassLoader): Likewise.
2319 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2320 length field of array.
2321 (_Jv_NewPrimArray): Likewise.
2322 * gcj/array.h (__JArray): `length' field now const. Added
2325 2000-11-26 Anthony Green <green@redhat.com>
2327 * javax/naming/spi/NamingManager.java,
2328 javax/naming/spi/ObjectFactory.java,
2329 javax/naming/spi/InitialContextFactory.java,
2330 javax/naming/spi/InitialContextFactoryBuilder.java,
2331 javax/naming/RefAddr.java, javax/naming/Reference.java,
2332 javax/naming/NamingException.java, javax/naming/Context.java,
2333 javax/naming/Referenceable.java,
2334 javax/naming/directory/InitialDirContext.java,
2335 javax/naming/directory/DirContext.java,
2336 javax/naming/directory/Attributes.java,
2337 javax/naming/directory/Attribute.java,
2338 javax/naming/StringRefAddr.java,
2339 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2340 javax/naming/InitialContext.java,
2341 javax/naming/NoInitialContextException.java: New files.
2343 2000-11-25 Anthony Green <green@redhat.com>
2345 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2346 (_Jv_NewPrimArray): Likewise.
2347 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2348 (class JArray): Removed constructor.
2350 * java/lang/Thread.java (context_class_loader): New private data.
2351 (getContextClassLoader): New method.
2352 (setContextClassLoader): New method.
2353 (Thread): Initialize context_class_loader.
2355 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2356 (getResource): Rename to findResource.
2357 (findResource): New method. Used to be getResource.
2358 (getResourceAsStream): Deleted.
2359 (jarFileize): Extracted logic from URLClassLoader constructor into
2360 this new private method.
2361 (addURL): New protected method.
2362 (URLClassLoader): Call jarFileize. Use addElement instead of
2364 (findResources): New method.
2366 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2367 (getResource): Implement correct logic.
2368 (findResource): New method.
2369 (getResources): New method.
2370 (findClass): Create a ClassNotFoundException with the name of the
2371 class rather than nothing at all.
2372 (defineClass) Only throw ClassFormatError.
2374 * java/lang/Class.java (forName): New method.
2375 * java/lang/Class.h (forName): New method.
2376 * java/lang/natClass.cc (forName): New method.
2378 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2380 * java/lang/System.java (setProperties): Only call init_properties()
2381 if properties is null.
2382 (getProperties): Ditto.
2383 (getProperty): Ditto.
2384 (setProperty): Call init_properties if properties are null.
2385 (prop_init): Remove field.
2386 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2387 method. Check for null properties after synchronizing instead of
2388 prop_init flag. Set the properties field last for thread safety.
2390 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2391 test for gcj.dumpobjects property and enable object stream dumping
2393 (dumpElement): No longer native.
2394 (dumpElementln): Ditto.
2395 (setDump): Do not define.
2396 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2397 (dumpElementln): Removed.
2400 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2402 * configure: Rebuilt.
2403 * Makefile.in: Rebuilt.
2404 * Makefile.am (built_java_source_files): Add Configuration.java.
2405 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2406 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2407 Create `gnu' directory in the build tree.
2408 * gnu/classpath/Configuration.java.in: New file.
2410 2000-11-24 Tom Tromey <tromey@cygnus.com>
2412 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2414 (_Jv_NewPrimArray): Likewise.
2416 * gcj/array.h (__JArray): `length' field now const. Added
2418 (class JArray): Added constructor.
2420 2000-11-23 Mark Wielaard <mark@klomp.org>
2422 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2425 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2427 * java/util/Vector.java: Improve exception messages.
2428 (Vector): Check initialCapacity for IllegalArgumentException.
2429 (tromToSize): Don't check for elementCount == elementData.length
2431 (toArray): Don't try to set null marker if target array is the same
2432 length as the vector.
2434 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2436 * Makefile.in: Rebuilt.
2437 * Makefile.am (core_java_source_files): Added Collections.java.
2438 * java/util/List.java: Merged from classpath.
2439 * java/util/Vector.java: Ditto.
2440 * java/util/Collections.java: From classpath.
2441 * java/util/ArrayList.java (addAll(Collection)): Call
2442 addAll(int,Collection) instead of duplicating code.
2443 (indexOf): Clean up int initialization.
2444 (clear): Set cleared array entries to null, to allow garbage
2446 * java/util/List.java: Minor formatting fixes.
2447 * java/util/SimpleTimeZone.java: ditto.
2449 2000-11-18 Tom Tromey <tromey@cygnus.com>
2451 * Makefile.in: Rebuilt.
2452 * Makefile.am (core_java_source_files): Added new files.
2453 * java/lang/reflect/ReflectPermission.java: New class.
2454 * java/io/FileFilter.java: From Classpath
2455 * java/io/FilePermission.java: From Classpath.
2457 2000-11-17 Tom Tromey <tromey@cygnus.com>
2459 * java/lang/reflect/AccessibleObject.java (isAccessible,
2460 setAccessible): Now public.
2462 * java/lang/natString.cc: Include Locale.h.
2463 (toUpperCase): Added `locale' argument. Handle locale
2465 (toLowerCase): Added `locale' argument. Handle locale
2467 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2468 CAPITAL_I): New defines.
2469 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2472 (toUpperCase, toLowerCase): New methods. Variants which accept
2475 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2478 * java/util/PropertyPermission.java: Re-merged from Classpath.
2480 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2482 * java/text/StringCharacterIterator.java: Reindented.
2483 (setText): New method.
2485 2000-11-17 Mark Wielaard <mark@klomp.org>
2487 Merge with Classpath (changes by Bryce McKinlay)
2488 * java/util/jar/*.java: Reformat all to unofficial standard coding
2489 style. No changes of substance.
2491 2000-11-17 Mark Wielaard <mark@klomp.org>
2493 * java/util/zip/*.java: Javadoc updates.
2495 2000-11-17 Tom Tromey <tromey@cygnus.com>
2497 * java/text/CollationKey.java: Implement Comparable.
2498 (compareTo(Object)): New method.
2499 * java/text/Collator.java (compare(Object,Object)): New method.
2500 Implement Comparator.
2502 * java/util/zip/InflaterInputStream.java (available): New method.
2503 (close): New method.
2504 (read, available, skip, fill): Throw exception if stream closed.
2505 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2506 getNextEntry): Throw exception if closed.
2508 2000-11-16 Tom Tromey <tromey@cygnus.com>
2510 * java/io/PushbackReader.java: Merged with Classpath.
2511 * java/util/Arrays.java: Updated from Classpath.
2513 * scripts/blocks.pl: New file.
2514 * java/lang/Character.java (Subset): New class.
2515 (UnicodeBlock): New class.
2517 * java/lang/Math.java (toDegrees, toRadians): New methods.
2519 * java/lang/Float.java: Implement Comparable.
2520 (compareTo): New methods.
2521 * java/lang/Double.java: Implement Comparable.
2522 (compareTo): New methods.
2524 2000-11-16 Warren Levy <warrenl@cygnus.com>
2526 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2528 (listeners): Made transient.
2529 (source): Renamed from 'bean'.
2530 (children): New field for serialization.
2531 (propertyChangeSupportSerializedDataVersion): Ditto.
2532 (serialVersionUID): Ditto.
2533 (writeObject): New serialization method.
2534 (readObject): New serialization method.
2535 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2537 (listeners): Made transient.
2538 (source): Renamed from 'bean'.
2539 (children): New field for serialization.
2540 (vetoableChangeSupportSerializedDataVersion): Ditto.
2541 (serialVersionUID): Ditto.
2542 (writeObject): New serialization method.
2543 (readObject): New serialization method.
2544 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2545 to allow constructor to have a return type (i.e. the class that the
2546 constructor constructs).
2548 2000-11-14 Tom Tromey <tromey@cygnus.com>
2550 * Makefile.in: Rebuilt.
2551 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2554 2000-11-02 Warren Levy <warrenl@cygnus.com>
2556 * java/io/ObjectInputStream.java (readObject): Added code to
2557 conditionally dump out the serialized data.
2558 Handle ENDBLOCKDATA case a bit more gracefully since the current
2559 behavior doesn't seem to work as expected.
2560 (readStreamHeader): Added code for serialized data dumper.
2561 (readNextBlock): Ditto.
2562 (readFields): Ditto.
2563 (dump): New private static field for turning on/off dumper.
2564 (setDump): New native method.
2565 (dumpElement): New native method.
2566 (dumpElementln): New native method.
2567 * java/io/natObjectInputStream.cc (setDump): New method.
2568 (dumpElement): New method.
2569 (dumpElementln): New method.
2571 2000-11-02 Warren Levy <warrenl@cygnus.com>
2573 * java/net/InetAddress.java (addr): Renamed from 'address'.
2574 (address): New field to match Serialized Form doc.
2575 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2576 (family): New serialization field.
2577 (serialVersionUID): New field.
2578 (readObject): New method.
2579 (writeObject): New method.
2580 (getFamily): New native method.
2581 (InetAddress): Set family.
2582 * java/net/natInetAddress.cc (getFamily): New method.
2583 (addr): Renamed from 'address'.
2584 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2585 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2586 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2588 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2590 * java/util/AbstractList.java (SubList): Make it a top-level private
2592 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2594 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2595 * Makefile.in: Rebuilt.
2597 2000-11-02 Tom Tromey <tromey@cygnus.com>
2599 * Makefile.in: Rebuilt.
2600 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2603 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2605 * java/util/AbstractList.java (remove): Comment out modCount increment
2606 to work around compiler bug.
2609 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2611 * java/util/AbstractList.java: Throw messages with
2612 IndexOutOfBoundsExceptions.
2613 (listIterator()): Call listIterator(0).
2614 (size): New field. Initialize to size().
2615 (hasNext): Test position against size, not size().
2616 (remove): Increment knownMod by one instead of resetting it from
2619 (SubList.upMod): Removed.
2620 (SubList.set): Don't call upMod() or update knownMod.
2621 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2622 (SubList.remove): Ditto.
2623 (SubList.addAll): Don't call backingList.size(). Increment size from
2625 (SubList.iterator): New method. Call listIterator(0).
2626 (SubList.listIterator): New method. Restore code to return an anonymous
2627 listIterator implementation (with some changes).
2628 * java/util/AbstractSequentialList.java: Throw messages with
2629 IndexOutOfBoundsExceptions.
2630 (addAll): Add a specnote.
2631 * java/util/ArrayList.java (removeRange): Get the math right.
2632 (addAll): Increment modCount _before_ creating iterator.
2633 * java/util/LinkedList.java: Rewritten, mostly.
2635 2000-11-01 Tom Tromey <tromey@cygnus.com>
2637 * scripts/encodings.pl: Added `ASCII' alias.
2638 * Makefile.in: Rebuilt.
2639 * Makefile.am (convert_source_files): Added new files.
2640 * gnu/gcj/convert/Input_ASCII.java: New file.
2641 * gnu/gcj/convert/Output_ASCII.java: New file.
2642 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2643 out-of-range characters.
2644 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2645 (read): Swap bytes if required. Treat `count' as character count,
2647 (write): Likewise. Also, handle case where iconv fails on a given
2649 (init): Put encoding into exception.
2650 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2651 (static): Call iconv_init. Rebuilt alias list.
2652 (iconv_init): New private method.
2654 2000-11-01 Tom Tromey <tromey@cygnus.com>
2656 * Makefile.in: Rebuilt.
2657 * Makefile.am (install-exec-hook): Only make a single symlink, and
2658 remove the destination before making the link.
2659 * configure: Rebuilt.
2660 * configure.in: Call AC_PROG_LN_S.
2662 2000-10-31 Warren Levy <warrenl@cygnus.com>
2664 * jni.cc: Added include of java/lang/ThreadGroup.h.
2665 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2666 per change of 2000-10-05.
2668 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2670 * java/util/BitSet.java: Updated @specnote.
2672 * java/io/Reader.java: Merge docs from classpath.
2673 (skip): Synchronize on `lock'.
2674 * java/io/FileReader.java: Import correct implementation from
2676 * java/io/StringReader.java: Merge docs from classpath.
2677 (ready): Throw IOException if stream is closed.
2679 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2681 * java/util/AbstractCollection.java (addAll): Use size() instead of
2682 hasNext() in iterator loop.
2684 (contains): Ditto. Simplify loop.
2685 (containsAll): Ditto.
2690 (toString): Ditto. Use string concatenation operators, not
2692 * java/util/AbstractList.java (addAll): Use size() instead of
2693 hasNext() in iterator loop.
2696 (indexOf): Ditto. Don't take null check outside of the loop.
2697 (iterator): Return an AbstractListItr instead of anonymous class.
2698 (lastIndexOf): Use a for loop bounded by size() instead of
2699 hasPrevious() in iterator loop.
2700 (listIterator): Return an AbstractListItr.
2701 (removeRange): Remove bounds checking code and docs.
2702 (AbstractListItr): New inner class. Code moved here from
2704 (SubList.iterator): Removed. Use default implementation from
2705 AbstractList instead.
2706 (SubList.listIterator): As above.
2707 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2708 instead of hasNext() in iterator loop.
2709 (containsValue): Ditto.
2715 (toString): Ditto. Use string concatenation operators, not
2717 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2718 bounded by size() instead of hasNext() in iterator loop.
2719 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2720 part of normal execution flow. Do an explicit null check instead.
2721 * java/util/ArrayList.java (_iSize): Rename to `size'.
2722 (_arData): Rename to `data'.
2723 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2726 (removeRange): Make protected. Don't check bounds.
2727 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2729 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2731 (addAll (int, Collection)): Check lower bounds. Simplify exception
2733 (clone): Clone the data array too.
2734 (indexOf): Inline doesEqual().
2735 (lastIndexOf): Ditto.
2736 (clear): Don't set array data to null.
2737 (set): Check lower bounds. Simplify exception string.
2738 (toArray): Correct comment.
2739 (trimToSize): Don't update modCount, this is not a structural change.
2742 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2744 (toString): Declare `bit' as long, not int.
2745 (data): Made package-private, not private.
2747 2000-10-27 Warren Levy <warrenl@cygnus.com>
2749 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2750 array elements to true.
2752 2000-10-27 Warren Levy <warrenl@cygnus.com>
2754 * Makefile.am: Added locale files from Classpath.
2755 * Makefile.in: Rebuilt.
2756 * gnu/java/locale/Calendar.java: New file.
2757 * gnu/java/locale/Calendar_de.java: New file.
2758 * gnu/java/locale/Calendar_en.java: New file.
2759 * gnu/java/locale/Calendar_nl.java: New file.
2760 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2761 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2762 serialization compatibility.
2763 (scale): Made private.
2764 (serialVersionUID): New field.
2765 * java/math/BigInteger.java (ival): Made transient.
2766 (words): Made transient.
2767 (bitCount): New serialization field.
2769 (firstNonzeroByteNum): Ditto.
2770 (lowestSetBit): Ditto.
2773 (serialVersionUID): New field.
2774 (readObject): New method.
2775 (writeObject): New method.
2776 * java/util/BitSet.java (serialVersionUID): New field.
2777 * java/util/Calendar.java: Replaced with Classpath file.
2778 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2779 of getDefault() for TimeZone or Locale instead of passing nulls.
2780 * java/util/Locale.java (serialVersionUID): New field.
2781 (writeObject): New method.
2782 (readObject): New method.
2783 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2785 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2787 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2788 (core_java_source_files): Put java.lang, java.io, and java.util here.
2789 (ordinary_java_source_files): Order so that core_java_source_files are
2791 (java_source_files): Reorder so that special_java_source_files are
2793 * configure.in: Don't pass -I flag to gcj.
2794 * Makefile.in: Rebuilt.
2795 * configure: Rebuilt.
2797 2000-10-25 Tom Tromey <tromey@cygnus.com>
2799 * Makefile.in: Rebuilt.
2800 * Makefile.am (install-exec-hook): New target.
2802 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2804 * java/util/EventObject.java: Merged from classpath.
2806 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2809 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2811 * java/util/AbstractSet.java (equals): Re-installed original code.
2813 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2815 * Makefile.am: Added rules for libgcjx library.
2816 * Makefile.in: Rebuilt.
2817 * configure.in: Added check for X.
2818 * configure: Rebuilt.
2819 * gnu/awt/LightweightRedirector.java: New file.
2820 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2821 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2822 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2823 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2824 * gnu/awt/j2d/MappedRaster.java: New file.
2825 * gnu/awt/xlib/XCanvasPeer.java: New file.
2826 * gnu/awt/xlib/XEventLoop.java: New file.
2827 * gnu/awt/xlib/XEventQueue.java: New file.
2828 * gnu/awt/xlib/XFontMetrics.java: New file.
2829 * gnu/awt/xlib/XFramePeer.java: New file.
2830 * gnu/awt/xlib/XGraphics.java: New file.
2831 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2832 * gnu/awt/xlib/XPanelPeer.java: New file.
2833 * gnu/awt/xlib/XToolkit.java: New file.
2834 * gnu/gcj/xlib/Clip.java: New file.
2835 * gnu/gcj/xlib/Colormap.java: New file.
2836 * gnu/gcj/xlib/Display.java: New file.
2837 * gnu/gcj/xlib/Drawable.java: New file.
2838 * gnu/gcj/xlib/Font.java: New file.
2839 * gnu/gcj/xlib/GC.java: New file.
2840 * gnu/gcj/xlib/Pixmap.java: New file.
2841 * gnu/gcj/xlib/Screen.java: New file.
2842 * gnu/gcj/xlib/Visual.java: New file.
2843 * gnu/gcj/xlib/WMSizeHints.java: New file.
2844 * gnu/gcj/xlib/Window.java: New file.
2845 * gnu/gcj/xlib/WindowAttributes.java: New file.
2846 * gnu/gcj/xlib/XAnyEvent.java: New file.
2847 * gnu/gcj/xlib/XButtonEvent.java: New file.
2848 * gnu/gcj/xlib/XColor.java: New file.
2849 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2850 * gnu/gcj/xlib/XConnectException.java: New file.
2851 * gnu/gcj/xlib/XEvent.java: New file.
2852 * gnu/gcj/xlib/XException.java: New file.
2853 * gnu/gcj/xlib/XExposeEvent.java: New file.
2854 * gnu/gcj/xlib/XID.java: New file.
2855 * gnu/gcj/xlib/XImage.java: New file.
2856 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2857 * gnu/gcj/xlib/natClip.cc: New file.
2858 * gnu/gcj/xlib/natColormap.cc: New file.
2859 * gnu/gcj/xlib/natDisplay.cc: New file.
2860 * gnu/gcj/xlib/natDrawable.cc: New file.
2861 * gnu/gcj/xlib/natFont.cc: New file.
2862 * gnu/gcj/xlib/natGC.cc: New file.
2863 * gnu/gcj/xlib/natPixmap.cc: New file.
2864 * gnu/gcj/xlib/natScreen.cc: New file.
2865 * gnu/gcj/xlib/natVisual.cc: New file.
2866 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2867 * gnu/gcj/xlib/natWindow.cc: New file.
2868 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2869 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2870 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2871 * gnu/gcj/xlib/natXColor.cc: New file.
2872 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2873 * gnu/gcj/xlib/natXException.cc: New file.
2874 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2875 * gnu/gcj/xlib/natXImage.cc: New file.
2876 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2877 * java/awt/EventDispatchThread.java: Start thead on creation.
2879 2000-10-20 Tom Tromey <tromey@cygnus.com>
2881 From Arno J. Klaassen:
2882 * interpret.cc: Include <stdlib.h> for alloca.
2883 * defineclass.cc: Include <stdlib.h> for alloca.
2885 * Makefile.in: Rebuilt.
2886 * Makefile.am: Include deps.mk.
2887 (GCJCOMPILE): Added -MD, -MT, and -MF.
2888 ($(javao_files)): Don't depend on libgcj.zip.
2889 (all-recursive): New target.
2890 (%.lo:%.cc): Do dependency tracking.
2891 ($(nat_headers)): Don't depend on libgcj.zip.
2892 * configure: Rebuilt.
2893 * configure.in: Make .d files and deps.mk.
2895 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2897 * exception.cc: Don't #include "exception".
2898 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2900 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2901 * Makefile.in: Updated.
2903 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2905 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2906 * java/awt/peer/ComponentPeer.java (disable): Removed.
2909 (minimumSize): Removed.
2910 (preferredSize): Removed.
2913 * java/awt/peer/ListPeer.java (addItem): Removed.
2915 (minimumSize): Removed.
2916 (preferredSize): Removed.
2917 (setMultipleSelections): Removed.
2918 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2919 (remove): Renamed from removeMenu.
2920 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2922 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2923 (remove): Renamed from removeItem.
2924 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2925 (getMinimumSize): Removed.
2926 (getPreferredSize): Removed.
2927 (minimumSize): Removed.
2928 (preferredSize): Removed.
2929 (replaceText): Removed.
2930 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2931 (preferredSize): Removed.
2932 (getMinimumSize): Removed.
2933 (getPreferredSize): Removed.
2934 (setEchoCharacter): Removed.
2936 2000-10-10 Warren Levy <warrenl@cygnus.com>
2938 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2939 * java/sql/Date.java (serialVersionUID): New field.
2940 * java/sql/Time.java (serialVersionUID): New field.
2941 * java/sql/Timestamp.java (serialVersionUID): New field.
2942 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2943 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2944 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2945 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2946 (readObject): New serialization method.
2947 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2948 (serialVersionOnStream): New field.
2949 (readObject): New serialization method.
2950 (getMonetaryDecimalSeparator): New method.
2951 (setMonetaryDecimalSeparator): New method.
2952 * java/text/NumberFormat.java (maxFractionDigits): New field.
2953 (maxIntegerDigits): New field.
2954 (minFractionDigits): New field.
2955 (minIntegerDigits): New field.
2956 (serialVersionOnStream): New field.
2957 (serialVersionUID): New field.
2958 (readObject): New serialization method.
2959 (writeObject): New serialization method.
2960 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2961 (serialVersionOnStream): New field.
2962 (serialVersionUID): New field.
2963 (readObject): New serialization method.
2965 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2967 * configure.in (GCJ): Avoid bogus error message when looking for
2968 (and not finding) gcj in the build tree.
2969 * configure: Rebuilt.
2971 2000-10-09 Tom Tromey <tromey@cygnus.com>
2973 * configure: Rebuilt.
2974 * configure.in: Include sys/types.h when checking for socklen_t.
2975 From Arno J. Klaassen.
2977 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2979 * include/jvm.h: Enable __builtin_expect().
2981 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2982 the main program. Fix for PR libgcj/341.
2984 2000-10-07 Tom Tromey <tromey@cygnus.com>
2986 * java/util/Properties.java: Merged with Classpath version.
2988 2000-10-05 Tom Tromey <tromey@cygnus.com>
2990 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2991 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2992 * java/lang/Class.h (Object): Added `class$' field.
2993 * java/lang/Object.h (Object): Added `class$' field.
2994 * defineclass.cc (ClassClass): Use `class$' form.
2995 (ClassObject): Likewise.
2996 * resolve.cc (ClassObject): Use `class$' form.
2997 (ObjectClass): Likewise.
2998 * interpret.cc (ClassError): Removed.
2999 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3001 (IntegerClass): Likewise.
3002 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3004 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3005 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3006 SerializableClass): Likewise.
3007 Include Serializable.h, Cloneable.h.
3008 * java/lang/natSystem.cc (SystemClass): Removed.
3009 (init_properties): Use `class$' form.
3010 * java/lang/natObject.cc (CloneableClass): Removed.
3011 (clone): Use `class$' form.
3012 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3013 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3014 ConstructorClass): Likewise.
3015 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3016 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3017 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3018 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3020 (ClassClass): Likewise.
3021 * include/jvm.h (StringClass): Use `class$' form.
3022 * prims.cc (ObjectClass): Removed.
3023 (_Jv_RunMain): Use `class$' form.
3024 (_Jv_AllocObject): Likewise.
3025 * jni.cc (ClassClass): Use `class$' form.
3026 (ThrowableClass): Likewise.
3027 (ObjectClass): Likewise.
3028 (MethodClass): Likewise.
3029 (ThreadGroupClass): Likewise.
3030 (NativeThreadClass): Likewise.
3031 * boehm.cc (ObjectClass): Removed.
3032 (ClassClass): Removed.
3033 (_Jv_MarkObj): Use `class$' form.
3034 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3037 2000-10-05 Warren Levy <warrenl@cygnus.com>
3039 * Makefile.am: Removed java/io/Replaceable.java and
3040 java/io/Resolvable.java.
3041 * Makefile.in: Rebuilt.
3042 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3044 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3046 (processResolution): Handle readResolve method via reflection with
3047 removal of Resolvable interface.
3048 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3049 method via reflection with removal of Replaceable interface.
3050 * java/io/Replaceable.java: Removed.
3051 * java/io/Resolvable.java: Removed.
3052 * java/security/Key.java (serialVersionUID): New field.
3053 * java/security/Provider.java (serialVersionUID): New field.
3054 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3056 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3058 * java/sql/DataTruncation.java (serialVersionUID): New field.
3059 * java/sql/SQLException.java (serialVersionUID): New field.
3060 * java/sql/SQLWarning.java (serialVersionUID): New field.
3061 * java/util/Date.java (serialVersionUID): New field.
3062 (millis): Made transient.
3063 (readObject): New method.
3064 (writeObject): New method.
3066 2000-10-05 Tom Tromey <tromey@cygnus.com>
3068 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3070 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3072 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3073 (JvRunMain): Set _Jv_argv and _Jv_argc.
3074 * java/awt/Component.java: Minor fixes.
3075 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3076 * java/awt/Toolkit.java (systemEventQueue): Removed.
3077 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3078 * java/awt/Window.java (getToolkit): Don't call super.
3079 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3080 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3081 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3082 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3083 * gnu/awt/gtk/GtkFramePeer.java: New file.
3084 * gnu/awt/gtk/GtkMainThread.java: New file.
3085 * gnu/awt/gtk/GtkToolkit.java: New file.
3086 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3087 * gnu/awt/gtk/gtkcommon.cc: New file.
3088 * gnu/awt/gtk/gtkcommon.h: New file.
3089 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3090 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3091 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3092 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3093 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3094 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3096 2000-09-30 Tom Tromey <tromey@cygnus.com>
3098 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3099 interrupted before modifying the cv's wait set.
3102 2000-09-30 Hans Boehm <boehm@acm.org>
3103 Bryce McKinlay <bryce@albatross.co.nz>
3105 Implement bitmap descriptor based marking for Boehm GC.
3107 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3108 * configure: Rebuilt.
3109 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3110 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3111 method get_finalizer().
3112 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3113 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3114 (_Jv_AllocObj): Add new jclass parameter.
3115 (_Jv_AllocArray): Ditto.
3116 (_Jv_BuildGCDescr): New prototype.
3117 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3118 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3119 get_finalizer() instead of direct finalizer vtable offset.
3120 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3121 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3122 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3123 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3124 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3125 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3126 (_Jv_DetermineVTableIndex): Ditto.
3127 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3128 calculations to account for new gc_descr field.
3129 * boehm.cc: #include gc_gcj.h.
3130 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3131 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3132 New commentary from HB. Mark the classes vtable.
3133 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3134 (GC_DEFAULT_DESCR): New #define.
3135 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3136 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3137 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3138 scan conservativly if size is less than min_heap_addr. Set vtable
3139 pointer of new object before returning.
3140 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3141 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3142 allocation for obj_kind_x.
3143 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3144 (_Jv_AllocObj): Set vtable on returned object.
3145 (_Jv_AllocArray): Ditto.
3146 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3147 (_Jv_NewPrimArray): Ditto.
3148 (_Jv_AllocObj): Declare as a friend.
3149 (_Jv_AllocArray): Ditto.
3150 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3151 from &ObjectClass into new array class. Remove offset-by-one
3152 adjustments from `method' size calculations to account for gc_descr
3155 2000-09-26 Tom Tromey <tromey@cygnus.com>
3157 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3158 `remove', not `add'.
3160 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3162 * java/lang/natSystem.cc (file_encoding): Added return statement.
3164 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3166 * Makefile.am: Re-work shell commands that exceeded command-line
3168 * Makefile.in: Rebuilt.
3170 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3172 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3173 * java/lang/natDouble.cc: Likewise.
3174 * java/lang/reflect/natMethod.cc: Likewise.
3175 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3177 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3179 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3181 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3182 * acinclude.m4: Arrange for automake to not bring in a new
3183 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3184 * Makefile.am: Leave it up to automake to subst GCJ.
3185 * aclocal.m4, configure, Makefile.in: Rebuilt.
3187 2000-09-13 Tom Tromey <tromey@cygnus.com>
3189 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3190 (get): Ensure Boolean class is initialized.
3191 * java/lang/reflect/natField.cc (BooleanClass): New define.
3192 (get): Ensure Boolean class is initialized.
3194 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3196 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3197 Initialize with anonymous class.
3198 (compareToIgnoreCase): New method.
3200 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3201 (uncaughtException): Set had_uncaught_exception.
3202 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3203 exit with error status if set.
3204 (_Jv_RunMain): Ditto.
3206 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3208 * configure: Rebuilt with new ../libtool.m4.
3210 2000-09-11 Tom Tromey <tromey@cygnus.com>
3212 * java/lang/reflect/Field.java (toString): Don't rely on
3215 2000-09-08 Tom Tromey <tromey@cygnus.com>
3217 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3218 default decoder use iconv.
3219 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3220 Let default encoder use iconv.
3221 * configure: Rebuilt.
3222 * configure.in: Check for nl_langinfo and <langinfo.h>.
3223 * java/lang/natSystem.cc (file_encoding): New function.
3224 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3226 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3228 * acinclude.m4: Simplify the tests for CC and CXX.
3229 * aclocal.m4, configure: Rebuilt.
3231 * acinclude.m4: Include libtool macros from the source tree.
3232 * aclocal.m4, configure: Rebuilt.
3234 2000-09-08 Warren Levy <warrenl@cygnus.com>
3236 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3237 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3238 * java/io/File.java (writeObject): Added.
3239 (readObject): Added.
3240 (serialVersionUID): Added.
3241 * java/io/ObjectOutputStream.java (writeObject): Initialized
3242 fieldsAlreadyWritten before recursion rather than after.
3243 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3244 * java/io/OptionalDataException.java (serialVersionUID): Added.
3245 (OptionalDataException): Made package private.
3246 * java/io/SyncFailedException.java (SyncFailedException): Removed
3247 default constructor to match spec.
3248 * java/lang/Boolean.java (serialVersionUID): Added.
3249 * java/lang/Byte.java (serialVersionUID): Added.
3250 * java/lang/Character.java (serialVersionUID): Added.
3251 * java/lang/Double.java (serialVersionUID): Added.
3252 * java/lang/Float.java (serialVersionUID): Added.
3253 * java/lang/Integer.java (serialVersionUID): Added.
3254 * java/lang/Long.java (serialVersionUID): Added.
3255 * java/lang/Number.java (serialVersionUID): Added.
3256 * java/lang/Short.java (serialVersionUID): Added.
3257 * java/lang/String.java (serialVersionUID): Added.
3258 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3260 * java/lang/reflect/InvocationTargetException.java
3261 (serialVersionUID): Added.
3262 * java/net/URL.java (handler): Made transient.
3263 (hashCode): Added field for serialization, per spec. and use
3264 cached value if available.
3265 (serialVersionUID): Added.
3266 (URL): Initialize hashCode.
3267 (set): Adjust hashCode.
3268 (readObject): New Method to initialize the protocol handler when
3270 (writeObject): New method.
3271 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3272 * java/text/Collator.java: Removed 'implements Serializable'.
3273 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3274 * java/util/Properties.java (serialVersionUID): Added.
3275 * java/util/Random.java (serialVersionUID): Added.
3276 (seed): Made private.
3277 (nextNextGaussian): Made private.
3278 (haveNextNextGaussian): Made private.
3279 * java/util/Stack.java (serialVersionUID): Added.
3280 * java/util/TimeZone.java (serialVersionUID): Added.
3281 * java/util/Vector.java (serialVersionUID): Added.
3283 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3285 * Makefile.am (Thread.h): Don't be friends with native threads
3287 * Makefile.in: Rebuilt.
3288 * java/lang/Thread.java (interrupt_flag): Make package-private.
3290 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3292 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3293 to avoid long long division.
3295 2000-09-06 Tom Tromey <tromey@cygnus.com>
3297 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3299 * java/lang/reflect/Method.java (toString): Use `getName' for
3302 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3303 `args' if method takes no parameters.
3305 Fix for PR java.lang/339:
3306 * java/lang/natPosixProcess.cc (fail): New function.
3307 (cleanup): New function.
3308 (startProcess): Use them. Create pipe so child can communicate
3309 exec failure back to parent.
3311 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3313 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3315 (send): Undo last patch. Remove the label only.
3317 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3319 * java/net/natInetAdress.cc: Ditto.
3321 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3323 2000-09-05 Tom Tromey <tromey@cygnus.com>
3325 * doc/cni.sgml: Updated from master copy.
3327 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3329 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3331 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3333 * java/lang/fdlibm.h: #undef __P if previously defined.
3334 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3335 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3339 2000-09-04 Tom Tromey <tromey@cygnus.com>
3341 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3344 2000-09-04 Anthony Green <green@redhat.com>
3346 Fix for PR java.io/203:
3347 * java/io/File.java (createTempFile): Obey directory argument.
3348 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3349 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3350 variable to set java.io.tmpdir on non-WIN32 systems.
3352 2000-09-04 Anthony Green <green@redhat.com>
3354 * java/io/File.java (deleteOnExit): New method.
3355 * gnu/gcj/runtime/FileDeleter.java: New class.
3356 * java/lang/natRuntime.cc (exit): Call
3357 FileDeleter.deleteOnExitNow()
3358 * Makefile.am: Add FileDeleter.java.
3359 * Makefile.in: Rebuilt.
3361 2000-09-02 Tom Tromey <tromey@cygnus.com>
3363 * Makefile.in: Rebuilt.
3364 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3365 environment variable.
3367 2000-09-01 Andrew Haley <aph@redhat.com>
3369 * java/io/StreamTokenizer.java: Don't throw a
3370 NumberFormatException if a field is numeric as far as the
3371 StreamTokenizer is concerned but not as far as Double.valueOf() is
3372 concerned: return a zero instead.
3374 2000-08-30 Tom Tromey <tromey@cygnus.com>
3376 * Makefile.in: Rebuilt.
3377 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3379 2000-08-28 Tom Tromey <tromey@cygnus.com>
3381 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3382 gnu/gcj/awt/ComponentDataBlitOp.java,
3383 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3384 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3385 java/awt/color/ICC_ColorSpace.java,
3386 java/awt/color/ICC_Profile.java,
3387 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3388 java/awt/image/ComponentColorModel.java,
3389 java/awt/image/ComponentSampleModel.java,
3390 java/awt/image/DataBuffer.java,
3391 java/awt/image/DataBufferByte.java,
3392 java/awt/image/DataBufferInt.java,
3393 java/awt/image/DataBufferUShort.java,
3394 java/awt/image/DirectColorModel.java,
3395 java/awt/image/IndexColorModel.java,
3396 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3397 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3398 java/awt/image/SinglePixelPackedSampleModel.java,
3399 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3400 Removed Latin-1 copyright symbols.
3401 * java/util/zip/ZipFile.java: Indentation fixes.
3403 2000-08-27 Mark Wielaard <mark@klomp.org>
3405 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3406 constructor, close can delete the file, finalize calls close.
3407 * java/util/jar/JarFile.java: Constructor that takes mode now
3410 2000-08-27 Anthony Green <green@redhat.com>
3412 * java/util/ArrayList.java, java/util/Timer.java,
3413 java/util/LinkedList.java, java/util/TimerTask.java,
3414 java/util/HashMap.java, java/util/AbstractMap.java,
3415 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3416 java/util/SortedSet.java: Imported from GNU Classpath.
3417 * Makefile.in: Rebuilt.
3418 * Makefile.am: Added new files.
3420 2000-08-26 Anthony Green <green@redhat.com>
3422 * Makefile.in: Rebuilt.
3423 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3426 * prims.cc: Include ClassLoader.h.
3427 (_Jv_RunMain): When executing jar files, classpath must be the jar
3428 file only. Lose our reference to the system ClassLoader in order
3429 to get a new one with the correct classpath.
3430 * java/lang/natSystem.cc (init_properties): When executing a jar
3431 file, only use the jar file for java.class.path.
3433 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3434 for bytecode archives.
3436 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3437 exists, but not Main-Class.
3439 2000-08-23 Mark Wielaard <mark@klomp.org>
3441 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3442 return -1 when fill() has no more data for the Inflater.
3444 2000-08-23 Mark Wielaard <mark@klomp.org>
3446 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3447 write(String) already does.
3449 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3451 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3452 to `alive_flag', call `init'.
3453 (init): New native method.
3454 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3457 2000-08-21 Mark Wielaard <mark@klomp.org>
3459 * Makefile.in: Rebuilt.
3460 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3462 (java/lang/reflect/Field.h): Likewise.
3463 (java/lang/reflect/Method.h): Likewise.
3464 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3467 2000-08-21 Tom Tromey <tromey@cygnus.com>
3469 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3472 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3474 * java/lang/natSystem.cc (init_properties): Change sourceware
3475 reference to sources.redhat.com.
3477 * include/java-props.h: Add _Jv_Jar_Class_Path.
3478 * prims.cc: Ditto. Set it from `gij -jar file' option.
3480 * java/lang/natSystem.cc (init_properties): Set java.class.path
3482 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3484 * java/util/PropertyPermission.java: Import from GNU Classpath.
3485 * Makefile.in: Rebuilt.
3486 * Makefile.am: Add java/util/PropertyPermission.java.
3487 * java/lang/System.java: Add setProperty method.
3489 * gij.cc (main): Add -jar option to execute jar files.
3490 (help): Describe -jar option.
3491 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3492 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3493 * gnu/gcj/runtime/FirstThread.java (main): New method.
3495 * java/util/jar/Attributes.java: Correct comment spelling.
3497 2000-08-20 Mark Wielaard <mark@klomp.org>
3499 * java/util/zip/Adler32.java: Make private variables really private
3500 * java/util/zip/CRC32.java: Make private variables really private
3501 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3503 * java/util/zip/InflaterInputStream.java: skip() could skip to
3505 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3506 * java/util/zip/ZipFile.java: size() new 1.2 method
3507 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3508 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3511 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3513 * java/util/jar/JarFile.java: Don't call
3514 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3517 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3519 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3520 Read the entire contents of the class file, not just what is
3523 * java/net/JarURLConnection.java: getEntry doesn't take any
3524 arguments. Return null if element is null.
3526 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3527 size from the archive, not the inflated size.
3529 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3530 java.util.zip.ZipFile.getEntry.
3532 * gij.cc (help): Change sourceware reference to
3535 2000-08-19 Tom Tromey <tromey@cygnus.com>
3537 * java/util/zip/ZipInputStream.java (createZipEntry):
3540 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3542 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3543 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3544 java/util/jar/JarInputStream.java,
3545 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3546 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3547 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3548 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3549 java/security/cert/Certificate.java,
3550 java/security/cert/CertificateEncodingException.java,
3551 java/security/cert/CertificateException.java,
3552 java/security/cert/CertificateExpiredException.java,
3553 java/security/cert/CertificateFactory.java,
3554 java/security/cert/CertificateFactorySpi.java,
3555 java/security/cert/CertificateNotYetValidException.java,
3556 java/security/cert/CertificateParsingException.java,
3557 java/security/cert/X509CRL.java,
3558 java/security/cert/X509CRLEntry.java,
3559 java/security/cert/X509Certificate.java,
3560 java/security/cert/X509Extension.java: Imported from Classpath.
3561 * java/util/Hashtable.java: Imported from Classpath.
3563 * java/util/zip/ZipInputStream.java: Create stub for
3566 * gcj/javaprims.h: Updated class list.
3568 * Makefile.in, gcj/Makefile.in: Rebuilt.
3569 * Makefile.am (ordinary_java_source_files): Add these new classes.
3571 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3573 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3574 * gnu/gcj/awt/GLightweightPeer.java: New file.
3575 * java/awt/BorderLayout.java: Implemented all methods.
3576 * java/awt/Button.java (actionListener, actionCommand): Renamed
3577 and modifier change.
3578 (addNotify): Call super.
3579 (dispatchEventImpl): New method.
3580 (getListeners): New method.
3581 (label): Made package-private, not private.
3582 * java/awt/Canvas.java: Implemented class body.
3583 * java/awt/Color.java (brighter): New method.
3584 (darker): New method.
3585 (hashCode): New method.
3586 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3587 (getGraphicsConfiguration): Delegate to
3588 getGraphicsConfigurationImpl().
3589 (getGraphicsConfigurationImpl): New method.
3590 (getToolkit): Only return value from peer if not null.
3591 (isDisplayable): Check with parent.
3592 (isShowing): No parent implies not showing.
3593 (getForeground): Check parent property if local is null.
3594 (getBackground): Likewise.
3595 (getFont): Likewise.
3596 (setForeground): Inform peer.
3597 (setBackground): Likewise
3598 (setLocale): Invalidate component.
3599 (getColorModel): Implemented.
3600 (setLocation): Invalidate, or ignore if no change.
3601 (setSize): Invalidate, or ignore if no change.
3602 (setBounds): Invalidate, or ignore if no change.
3603 (isOpaque): By default, heavyweight implies opaque.
3604 (isLightweight): Implemented.
3605 (getMaximumSize): Implemented.
3606 (doLayout): Implemented, NOP.
3607 (validate): Implemented, NOP.
3608 (invalidate): Only propagate to parent if parent was valid.
3609 (getGraphics): Implemented.
3610 (getFontMetrics): Implemented.
3611 (update): Implemented.
3612 (paintAll): Implemented.
3613 (repaint): Implemented all repaint methods.
3614 (print): Implemented.
3615 (printAll): Implemented.
3616 (createImage): Implemented.
3617 (dispatchEvent): Give the peer a chance to handle the event.
3618 (dispatchEventImpl): Dispatch paint events.
3619 (enableEvents): Lightweights enable events on parent component.
3620 (coalesceEvents): Coalesce paint events, and select event type
3622 (coalescePaintEvents): New method.
3623 (processEvent): Fix unfortunate ordering of statements, and call
3624 correct method for MOUSE_CLICKED.
3625 (processPaintEvent): New method.
3626 (addNotify): Allow container to notify children before event
3627 mask is set in peer.
3628 (addNotifyContainerChildren): New method.
3629 (removeNotify): Visibility should not change on removeNotify.
3630 (paramString): Implemented.
3631 (list): Implemented two of the list methods.
3632 * Container (myInsets): Removed, insets are managed by peer.
3633 (getInsets): Query peer.
3634 (addImpl): Fix reparenting, enable events for lightweights,
3635 initialize component array.
3636 (validate): Call doLayout in validateTree() instead.
3637 (validateTree): Do nothing if already valid. Call beginValidate(),
3638 endValidate() on peer. Call validateTree() instead of validate()
3639 for children that are containers. Mark valid after validation of
3641 (setFont): Partial implementation.
3642 (paint): Implemented.
3643 (visitChildren): New method.
3644 (visitChild): New method.
3645 (update): Implemented.
3646 (print): Implemented.
3647 (paintComponents): Implemented.
3648 (printComponents): Consider translation and clipping.
3649 (getComponentAt): Ignore invisible children. Return this if no
3651 (addNotify): Call super.
3652 (addNotifyContainerChildren): New method.
3653 (paramString): Implemented.
3654 (list): Implemented.
3655 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3657 (invokeLater): Likewise.
3658 (isDispatchThread): Likewise.
3659 * java/awt/FontMetrics (getLeading): Formula change.
3660 (getDescent): Consider leading also.
3661 (getMaxAscent): Default to getAscent().
3662 (getMaxDescent): Default to getDescent.
3663 (getMaxAdvance): Return value signifying unknown.
3664 (charWidth): Both methods implemented.
3665 (charsWidth): Implemented.
3666 (bytesWidth): Implemented.
3667 (getWidths): Implemented.
3668 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3670 (Frame): Rearragend constuctor chaining to disallow null being
3671 passed as a graphics configuration.
3672 (getTitle): Return empty string if null.
3674 (getIconImage): New method.
3675 (setIconImage): New method.
3676 (finalize): New method.
3677 (setMenuBar): Notify peer.
3678 (isResizable): New method.
3679 (setResizable): New method.
3680 (getState): New method.
3682 (remove): Implemented.
3683 (removeNotify): New method.
3684 (getFrames): New method.
3685 * java/awt/Graphics.java: Implemented body of class.
3686 * java/awt/Graphics2D.java: New file.
3687 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3688 * java/awt/Image.java: Implemented body of class.
3689 * java/awt/Panel.java (Panel): Call correct super constructor.
3690 (addNotify): Implemented.
3691 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3692 * java/awt/RenderingHints.java: New file.
3693 * java/awt/Toolkit.java (createComponent): Implemented.
3694 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3695 * java/awt/Window.java (Window): Two new constructors. Reordered
3696 constructor chaining.
3697 (getGraphicsConfigurationImpl): New method.
3698 (finalize): Call super.
3699 (addNotify): Call super.
3700 (pack): Do layout stuff.
3701 (show): Ensure that peer exists and that component is valid.
3702 (dispose): Dispose owned children.
3703 (getOwner): Simplify code, casting null pointers is valid.
3704 (getGraphicsConfiguration): Ask peer if local value is null.
3705 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3707 * java/awt/image/BufferedImage.java: New file.
3708 * java/awt/image/RasterOp.java: New file.
3709 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3710 More powerfull replacement for getColorModel().
3711 (getColorModel) Removed.
3712 (setEventMask) New method.
3713 * Makefile.am: Added new files.
3714 * Makefile.in: Rebuilt.
3716 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3718 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3719 (finit_leg_name): New global.
3720 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3721 `$finit$'. This is a backward compatibility hack.
3722 (java::lang::Class::_getMethods): Likewise.
3724 2000-08-15 Andrew Haley <aph@cygnus.com>
3726 * include/jvm.h (_Jv_HashCode): New hash code.
3728 2000-08-15 Tom Tromey <tromey@cygnus.com>
3730 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3732 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3734 * THANKS: More thanks.
3736 2000-08-10 Tom Tromey <tromey@cygnus.com>
3738 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3740 (connect): Likewise.
3742 (getOption): Likewise.
3743 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3744 case when errno not set.
3747 (receive): Likewise.
3748 (mcastGrp): Likewise.
3749 (setOption): Likewise.
3750 (getOption): Likewise.
3752 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3753 John Stracke <francis@ecal.com>
3755 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3756 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3758 (disconnect): Don't unset connected flag.
3759 (getHeaderField (String)): Call connect() if not connected.
3760 (getHeaderField (int)): Ditto.
3761 (getHeaderFieldKey): Ditto.
3762 (getHttpHeaders): Don't call connect().
3763 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3764 gotResponseVals): New fields.
3765 (getResponseCode): Call getResponseVals() conditionally.
3766 (getResponseMessage): Ditto.
3767 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3769 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3771 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3772 * Makefile.in: Rebuilt.
3773 * java/awt/Color.java (getTransparency): New method.
3774 * java/awt/Component.java: Various updates.
3775 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3776 after dealing with children.
3777 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3778 * java/awt/Window.java: Various new methods and updates.
3779 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3781 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3782 * java/awt/event/WindowEvent.java (paramString): Ditto.
3783 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3785 * java/awt/geom/Point2D.java (clone): Ditto.
3786 * java/awt/geom/RectangularShape.java (clone): Ditto.
3787 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3788 isAlphaPremultiplied): Make package-private, not private.
3790 2000-08-08 Tom Tromey <tromey@cygnus.com>
3792 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3793 surrogate characters.
3794 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3796 (write): Correct handling of surrogate characters.
3798 2000-08-07 Tom Tromey <tromey@cygnus.com>
3800 * java/lang/reflect/Method.java (hashCode): Use getName().
3801 (toString): Likewise.
3802 * java/lang/reflect/natMethod.cc (getType): Initialize
3805 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3807 * java/lang/reflect/Field.java (toString): Correct formatting.
3810 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3812 (receive): Streamlined.
3814 2000-08-05 Tom Tromey <tromey@cygnus.com>
3816 * java/io/PrintWriter.java: Merged comments from Classpath.
3817 (printlnUnsynchronized): Removed.
3818 (println()): Print the separator.
3819 (println): Call println(), not printlnUnsynchronized.
3820 (out): Now protected, to match spec.
3822 2000-08-04 Tom Tromey <tromey@cygnus.com>
3824 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3825 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3828 2000-08-03 Warren Levy <warrenl@cygnus.com>
3830 * java/io/ObjectInputStream.java (readFields): Turn off
3831 readDataFromBlock while reading via GetField.
3832 (GetField$1.get(String, Object)): Pass Class of default value to
3834 (getField): Allow for null default values.
3836 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3837 (PutField$1.put): Fixed calls of checkType in most of the put
3838 methods to pass the correct parameter.
3839 (PutField$1.put(String, Object)): Allow for null value arg.
3840 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3843 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3844 typo in spec'ed field name.
3845 (getSerialPersistentFields): Changed spelling of method to match
3846 the correct spelling of the spec'ed field name.
3848 2000-08-03 Tom Tromey <tromey@cygnus.com>
3850 * Makefile.in: Rebuilt.
3851 * Makefile.am (awt_java_source_files): Added new files.
3853 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3855 * Makefile.am: Add new AWT stubs.
3856 * java/awt/Canvas.java: New placeholder class.
3857 * java/awt/Checkbox.java: Ditto.
3858 * java/awt/CheckboxMenuItem.java: Ditto.
3859 * java/awt/Choice.java: Ditto.
3860 * java/awt/Dialog.java: Ditto.
3861 * java/awt/FileDialog.java: Ditto.
3862 * java/awt/List.java: Ditto.
3863 * java/awt/ScrollPane.java: Ditto.
3864 * java/awt/TextField.java: Ditto.
3865 * java/awt/datatransfer/Clipboard.java: Ditto.
3866 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3867 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3868 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3869 Some commented out. Partially implemented.
3870 * java/awt/natToolkit.cc: Removed file.
3872 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3874 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3875 Fixes "make -j" builds.
3876 * Makefile.in: Rebuild.
3878 2000-08-02 Tom Tromey <tromey@cygnus.com>
3880 * Makefile.in: Rebuilt.
3881 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3882 * java/net/natPlainSocketImpl.cc: Include posix.h.
3883 (accept): Use _Jv_select.
3884 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3885 (receive): Use _Jv_select.
3886 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3887 (available): Use _Jv_select.
3888 * java/lang/natSystem.cc: Include posix.h.
3889 (currentTimeMillis): Use _Jv_gettimeofday.
3890 * include/posix.h: New file.
3891 * posix.cc: New file.
3893 * scripts/encodings.pl: New file.
3894 * Makefile.in: Rebuilt.
3895 * Makefile.am (convert_source_files): Added IOConverter.java.
3896 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3898 (getDefaultDecodingClass): Canonicalize default encoding name.
3899 (getEncoder): Likewise.
3900 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3902 (getDefaultDecodingClass): Canonicalize default encoding name.
3903 (getDecoder): Likewise.
3904 * gnu/gcj/convert/IOConverter.java: New file.
3906 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3908 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3909 to match C declaration in ffi.h.
3910 * Makefile.am: Add java/awt/Button.java.
3911 * Makefile.in: Rebuilt.
3913 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3915 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3916 cast of the second argument to `ffi_raw_call' changed to match
3919 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3921 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3922 argument to `ffi_raw_call' changed to match prototype.
3924 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3926 * java/awt/Component.java (toString): Implemented.
3927 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3928 dispatchEvent() to dispatch the event.
3929 (removeImpl): Ditto.
3931 2000-07-30 Anthony Green <green@redhat.com>
3933 * java/awt/Component.java: Add treeLock object.
3934 (getTreeLock): Implement.
3935 (isShowing): Implement.
3937 2000-07-30 Tom Tromey <tromey@cygnus.com>
3939 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3941 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3943 * java/awt/Window.java (addNotify): Wrote.
3944 (addWindowListener): Wrote.
3946 (getWarningString): Wrote.
3947 (processEvent): Wrote.
3948 (processWindowEvent): Wrote.
3949 (removeWindowListener): Wrote.
3950 (show): Call validate(), setVisible().
3954 * java/awt/Toolkit.java (createWindow): Declare.
3956 * java/awt/Frame.java (addNotify): Use getToolkit to find
3959 * java/awt/Component.java (invalidate): Wrote.
3961 (getToolkit): Wrote.
3963 * java/awt/Container.java (addContainerListener): Removed
3965 (removeContainerListener): Likewise.
3967 (add(Component)): Use it.
3968 (add(String,Component)): Likewise.
3969 (add(Component,int)): Likewise.
3970 (add(Component,Object)): Likewise.
3971 (add(Component,Object,int)): Likewise.
3973 (getAlignmentX): Wrote.
3974 (getAlignmentY): Wrote.
3975 (getComponentAt): Wrote.
3976 (getMaximumSize): Wrote.
3977 (invalidate): Wrote.
3978 (list(PrintStream,int)): Wrote.
3979 (list(PrintWriter,int)): Wrote.
3980 (getMinimumSize): Wrote.
3981 (getPreferredSize): Wrote.
3982 (printComponents): Wrote.
3983 (processContainerEvent): Look at containerListener, not
3985 (remove): Added event processing and peer destruction.
3986 (removeAll): Use remove.
3987 (removeNotify): Wrote.
3989 (validateTree): Wrote.
3991 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3992 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3993 * java/awt/Container.java (addNotify): Don't create Container
3995 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3997 2000-07-30 Tom Tromey <tromey@cygnus.com>
3999 * java/awt/Container.java (remove(int)): Wrote.
4000 (remove(Component)): Wrote.
4001 (add(Component)): Wrote.
4002 (add(Component,int)): Wrote.
4004 (addNotify): Set our own peer.
4005 * java/awt/Scrollbar.java (listeners): Changed type.
4006 (Scrollbar): Don't initialize listeners.
4008 (setValue): Call setValues.
4009 (setMinimum): Likewise.
4010 (setMaxPriority): Likewise.
4011 (setVisibleAmount): Likewise.
4013 (setUnitIncrement): Forward to peer.
4014 (setLineIncrement): Call setUnitIncrement.
4015 (setPageIncrement): Call setBlockIncrement.
4016 (setBlockIncrement): Forward to peer.
4017 (addAdjustmentListener): Rewrote.
4018 (removeAdjustmentListener): Rewrote.
4019 (processAdjustmentEvent): Rewrote.
4020 (paramString): Wrote.
4021 * Makefile.in: Rebuilt.
4022 * Makefile.am (awt_java_source_files): Added Button.java.
4023 * java/awt/Button.java: New file.
4024 * java/awt/Toolkit.java (createLabel): Declare.
4025 (createButton): Likewise.
4026 (createScrollbar): Likewise.
4027 (createContainer): Likewise.
4028 * java/awt/Label.java (addNotify): Wrote.
4029 (setAlignment): Call setAlignment in the peer.
4030 (setText): Call setText in the peer.
4032 2000-07-28 Warren Levy <warrenl@cygnus.com>
4034 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4035 NotSerializableException with just the class name.
4037 2000-07-26 Andrew Haley <aph@cygnus.com>
4039 * interpret.cc (continue1): Insert missing break into switch.
4041 2000-07-28 Warren Levy <warrenl@cygnus.com>
4043 * java/io/ObjectStreamException.java: Made constructors protected.
4045 2000-07-27 Tom Tromey <tromey@cygnus.com>
4047 * java/io/OutputStreamWriter.java (close): Only flush if not
4050 2000-07-27 Warren Levy <warrenl@cygnus.com>
4052 * mauve-libgcj: Activated serialization tests.
4053 * gcj/field.h (getModifiers): Mask off unknown flags.
4054 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4055 spurious bits don't cause discrepancies.
4056 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4057 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4058 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4059 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4060 * java/lang/Throwable.java (serialVersionUID): New field.
4061 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4062 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4064 * java/lang/reflect/natMethod.cc: Ditto.
4065 * java/security/Key.java (serialVersionUID): Removed field for now.
4066 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4067 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4069 2000-07-22 Tom Tromey <tromey@cygnus.com>
4071 * java/awt/geom/RectangularShape.java (getPathIterator):
4074 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4076 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4077 stub libjava/java/awt/ColorModel.java which was located in the
4079 * libjava/java/awt/image/ComponentColorModel.java: New file.
4080 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4081 * libjava/java/awt/image/DataBuffer.java: New file.
4082 * libjava/java/awt/image/DataBufferByte.java: New file.
4083 * libjava/java/awt/image/DataBufferInt.java: New file.
4084 * libjava/java/awt/image/DataBufferUShort.java: New file.
4085 * libjava/java/awt/image/DirectColorModel.java: New file.
4086 * libjava/java/awt/image/PackedColorModel.java: New file.
4087 * libjava/java/awt/image/Raster.java: New file.
4088 * libjava/java/awt/image/SampleModel.java: New file.
4089 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4091 * libjava/java/awt/image/IndexColorModel.java: New file.
4092 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4093 java.awt.ColorModel stub.
4095 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4096 * gnu/gcj/util/Buffers.java: New file, utility class.
4098 * libjava/Makefile.am: Updated to include new files.
4099 * libjava/Makefile.in: Rebuilt.
4101 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4103 * java/io/StreamTokenizer.java: Merged with classpath.
4105 2000-07-20 Tom Tromey <tromey@cygnus.com>
4107 * Makefile.in: Rebuilt.
4108 * Makefile.am (awt_java_source_files): Updated for new files.
4109 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4110 * java/awt/Label.java: New file.
4111 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4112 (createIntersection, createUnion, getBounds2D): New methods.
4113 * java/awt/Scrollbar.java: New file.
4114 * java/awt/Shape.java: Updated to 1.2.
4115 * java/awt/geom/AffineTransform.java: New file.
4116 * java/awt/geom/Ellipse2D.java: New file.
4117 * java/awt/geom/NoninvertibleTransformException.java: New file.
4118 * java/awt/geom/PathIterator.java: New file.
4119 * java/awt/geom/Rectangle2D.java: New file.
4120 * java/awt/geom/RectangularShape.java: New file.
4121 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4122 * java/awt/geom/IllegalPathStateException.java: New file.
4124 * scripts/showval.java: New file.
4126 * scripts/classes.pl (scan): Print inner classes properly.
4127 * gcj/javaprims.h: Updated class list.
4129 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4130 initialize String fields for interpreted classes. Fixes bug
4131 reported by Hans Boehm.
4133 * java/io/File.java (getParentFile): New method, from Classpath
4134 via Oskar Liljeblad.
4136 * java/util/Vector.java (remove(Object)): Implemented.
4138 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4140 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4141 zero return from backtrace().
4143 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4145 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4147 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4148 before calling notifyAll().
4150 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4152 Add missing files from last check-in:
4153 * java/awt/image/ImageConsumer.java: New file.
4154 * java/awt/image/ImageProducer.java: New file.
4155 * java/awt/image/ImageObserver.java: New file.
4157 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4159 Merged implementation of java.applet from classpath:
4160 * java/applet/Applet.java: New file.
4161 * java/applet/AppletContext.java: New file.
4162 * java/applet/AppletStub.java: New file.
4163 * java/applet/AudioClip.java: New file.
4165 * Makefile.am: Added new java.applet classes.
4166 * Makefile.in: Rebuilt.
4168 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4171 * java/util/ResourceBundle.java (getLocale): stub.
4172 * Makefile.am: Added new AWT classes.
4173 * Makefile.in: Rebuilt.
4174 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4175 constructors. Fix toString() and paramString().
4176 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4177 * java/awt/CheckboxGroup.java: New class.
4178 * java/awt/ColorModel.java: New class.
4179 * java/awt/Component.java: Added stubs for most methods. Implemented
4181 * java/awt/Container.java: ditto.
4182 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4183 * java/awt/Cursor.java: ditto.
4184 * java/awt/Event.java: Fix paramString().
4185 * java/awt/EventQueue.java: New class. Implemented.
4186 * java/awt/Font.java: Added additional stub methods. Implemented
4188 * java/awt/FontMetrics.java: New class. Stubbed.
4189 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4191 * java/awt/Insets.java: New class. Implemented.
4192 * java/awt/Menu.java: Add new methods. Partially implemented.
4193 * java/awt/MenuItem.java: Add new methods and fields. Partially
4195 * java/awt/MenuShortcut.java: New class. Implemented.
4196 * java/awt/Panel.java: New class. Placeholder.
4197 * java/awt/PopupMenu.java: New class. Stubbed.
4198 * java/awt/Rectangle.java: New class. Implemented.
4199 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4200 * java/awt/event/ActionEvent.java: Implement paramString().
4201 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4202 * java/awt/event/ComponentEvent.java: Implement paramString().
4203 * java/awt/event/ContainerEvent.java: Implement paramString().
4204 * java/awt/event/FocusEvent.java: Implement paramString().
4205 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4206 * java/awt/event/HierarchyBoundsListener.java: New class.
4207 * java/awt/event/HierarchyEvent.java: New class.
4208 * java/awt/event/HierarchyListener.java: New class.
4209 * java/awt/event/InputMethodEvent.java: Implement paramString().
4210 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4211 exception if !catchExceptions.
4212 * java/awt/event/ItemEvent.java: Implement paramString().
4213 * java/awt/event/KeyEvent.java: Implement paramString().
4214 * java/awt/event/MouseEvent.java: Implement paramString().
4215 * java/awt/event/PaintEvent.java: Implement paramString().
4216 * java/awt/event/TextEvent.java: Implement paramString().
4217 * java/awt/event/WindowEvent.java: Implement paramString().
4219 AWT Peer interfaces:
4220 * java/awt/peer/ButtonPeer.java: New file.
4221 * java/awt/peer/ListPeer.java: New file.
4222 * java/awt/peer/CanvasPeer.java: New file.
4223 * java/awt/peer/MenuBarPeer.java: New file.
4224 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4225 * java/awt/peer/MenuComponentPeer.java: New file.
4226 * java/awt/peer/CheckboxPeer.java: New file.
4227 * java/awt/peer/MenuItemPeer.java: New file.
4228 * java/awt/peer/ChoicePeer.java: New file.
4229 * java/awt/peer/MenuPeer.java: New file.
4230 * java/awt/peer/ComponentPeer.java: Implemented.
4231 * java/awt/peer/PanelPeer.java: New file.
4232 * java/awt/peer/ContainerPeer.java: Implemented.
4233 * java/awt/peer/PopupMenuPeer.java: New file.
4234 * java/awt/peer/DialogPeer.java: New file.
4235 * java/awt/peer/ScrollPanePeer.java: New file.
4236 * java/awt/peer/FileDialogPeer.java: New file.
4237 * java/awt/peer/ScrollbarPeer.java: New file.
4238 * java/awt/peer/FontPeer.java: New file.
4239 * java/awt/peer/TextAreaPeer.java: New file.
4240 * java/awt/peer/FramePeer.java: Implemented.
4241 * java/awt/peer/TextComponentPeer.java: New file.
4242 * java/awt/peer/LabelPeer.java: New file.
4243 * java/awt/peer/TextFieldPeer.java: New file.
4244 * java/awt/peer/LightweightPeer.java: New file.
4245 * java/awt/peer/WindowPeer.java: Implemented.
4247 2000-07-06 Tom Tromey <tromey@cygnus.com>
4249 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4250 Initialize static final String fields.
4252 2000-07-03 Tom Tromey <tromey@cygnus.com>
4254 * java/io/PrintWriter.java (print): Call write(String), not
4255 print(String). See PR libgcj/277.
4256 (print(String)): Use write, not out.write.
4258 2000-06-30 Tom Tromey <tromey@cygnus.com>
4260 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4262 2000-06-27 Andrew Haley <aph@cygnus.com>
4264 * java/io/File.java (createTempFile): Close the FileDescriptor
4265 used to create a temp file. Fixes some of PR 203.
4266 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4267 collection if we run out of file handles.
4269 2000-06-28 Warren Levy <warrenl@cygnus.com>
4271 * gnu/java/security/provider/Gnu.java: New file.
4272 * gnu/java/security/provider/SHA.java: New file.
4273 * gnu/java/security/provider/SHA1PRNG.java: New file.
4274 * Makefile.am: Added the above files.
4275 * Makefile.in: Rebuilt.
4277 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4279 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4281 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4282 (destroyed_flag): Removed.
4283 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4284 (activeCount): Added spec note.
4286 2000-06-27 Warren Levy <warrenl@cygnus.com>
4288 * java/security/Principal.java: New file.
4289 * Makefile.am: Added Principal.java.
4290 * Makefile.in: Rebuilt.
4292 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4294 * java/awt/event/MouseEvent.java: Fixed coordinate space
4297 2000-06-27 Tom Tromey <tromey@cygnus.com>
4299 * java/io/PushbackInputStream.java (read): If there are characters
4300 in the buffer, don't also call super.read().
4301 * java/io/PushbackReader.java (read): If there are characters in
4302 the buffer, don't also call super.read().
4304 * java/lang/Double.java (valueOf): Call parseDouble().
4306 2000-06-26 Warren Levy <warrenl@cygnus.com>
4308 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4309 (newVal): Renamed to newValue.
4310 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4311 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4312 (revokeNow): Renamed to invalidateRefs.
4313 * java/io/OptionalDataException.java: Updated FIXME.
4314 (eof): New placeholder field.
4316 * java/io/WriteAbortedException.java (message): Made transient.
4317 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4318 * java/lang/Throwable.java (stackTrace): Made transient.
4319 * java/net/InetAddress.java: Made Serializable.
4320 * java/security/KeyPair.java: Made Serializable.
4321 * java/security/Provider.java: Replaced with Classpath version that
4322 implements serialization and proper methods.
4323 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4324 (limits): Renamed to choiceLimits.
4326 2000-06-24 Tom Tromey <tromey@cygnus.com>
4328 * java/lang/natDouble.cc (parseDouble): Renamed from
4330 * java/lang/Double.java (parseDouble): Renamed from
4331 doubleValueOf. Now public.
4333 2000-06-23 Andrew Haley <aph@cygnus.com>
4335 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4336 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4338 2000-06-23 Tom Tromey <tromey@cygnus.com>
4340 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4341 * java/lang/natDouble.cc: Always include <alloca.h>.
4342 Fix for PR libgcj/267.
4344 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4346 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4347 comply with classpath VM spec.
4348 (add(Group)): Rename to addGroup().
4349 * java/lang/Thread.java (Thread): Use addThread().
4350 * java/lang/natThread.cc (finish_): Use removeThread().
4352 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4354 * java/lang/ThreadGroup.java: Merged with classpath.
4355 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4356 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4358 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4359 ThreadGroup.root if Thread.currentThread is null. Honour the
4360 ThreadGroup's max priority setting.
4362 2000-06-18 Tom Tromey <tromey@cygnus.com>
4364 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4365 returned class. For PR gcj/260.
4367 2000-06-16 Tom Tromey <tromey@cygnus.com>
4369 Fix for PR libgcj/261:
4370 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4372 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4373 argument. (This is a patch from long ago that somehow went
4376 2000-06-15 Tom Tromey <tromey@cygnus.com>
4378 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4382 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4384 Fix for PR java.lang/258:
4385 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4386 JV_STATE_DONE, to prevent accidental initialization.
4387 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4388 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4389 interface or an abstract class. Remove redundant initializeClass calls.
4390 Remove duplicate if_idt test.
4391 (_Jv_InterfaceAssignableFrom): New function.
4392 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4394 2000-05-31 Tom Tromey <tromey@cygnus.com>
4396 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4397 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4398 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4399 (NUM_OBJECT_METHODS): New define.
4400 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4401 `array_vtable' parameter. Added assertion.
4402 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4405 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4407 * gcj/cni.h: Include <string.h>.
4408 * defineclass.cc: Include <alloca.h>.
4409 * interpret.cc: Ditto.
4410 * gij.cc: Include <stdlib.h>.
4412 2000-05-30 Tom Tromey <tromey@cygnus.com>
4414 * include/name-finder.h: Include <sys/wait.h>.
4415 (_Jv_name_finder::pid): Now of type `pid_t'.
4416 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4417 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4420 2000-05-24 Warren Levy <warrenl@cygnus.com>
4422 * java/io/ObjectOutputStream.java (writeObject): Use component type
4423 when writing arrays.
4426 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4428 Fix for PR libgcj/226:
4429 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4430 since this is an installed header.
4432 Fix for PR libgcj/228:
4433 * java/util/zip/ZipFile (getInputStream): Create inflater with
4436 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4437 with DataFormatException.
4439 2000-05-20 Tom Tromey <tromey@cygnus.com>
4441 * Makefile.in: Rebuilt.
4442 * Makefile.am (hack1): Removed.
4443 (awto_files): Likewise.
4444 (libgcjawt_la_SOURCES): Likewise.
4445 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4446 (libgcjawt_la_DEPENDENCIES): Likewise.
4447 (libgcjawt_la_LIBADD): Likewise.
4448 (libgcjawt_la_LDFLAGS): Likewise.
4449 (libgcjawt_la_LINK): Likewise.
4450 ($(awt_java_source_files:.java=.class)): Likewise.
4451 (libgcj.zip): Don't depend on AWT files.
4452 (MOSTLYCLEANFILES): Don't include AWT files.
4453 ($(awto_files)): Removed.
4454 (nat_headers): Removed AWT files.
4455 (cond_awt_java_source_files): Removed.
4456 (ordinary_java_source_files): Added awt_java_source_files.
4457 * libgcj.spec.in (*lib): Removed -lgcjawt.
4458 * configure: Rebuilt.
4459 * configure.in: Removed --enable-java-awt option.
4461 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4463 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4464 (ZipEntry): Copy the `name' field.
4465 (clone): Implement JDK1.2 method.
4466 (setCompressedSize): ditto.
4469 2000-05-19 Tom Tromey <tromey@cygnus.com>
4471 * java/io/BufferedWriter.java: Merged with Classpath.
4472 * java/io/BufferedOutputStream.java: Merged with Classpath.
4474 2000-05-16 Andrew Haley <aph@cygnus.com>
4476 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4477 build_ia64_frame_state.
4478 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4481 2000-05-15 Warren Levy <warrenl@cygnus.com>
4483 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4484 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4485 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4486 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4487 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4488 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4489 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4490 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4491 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4492 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4493 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4494 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4495 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4496 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4497 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4498 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4499 * gnu/gcj/io/NullOutputStream.java: Removed.
4500 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4501 * gnu/gcj/lang/ArrayHelper.java: Removed.
4502 * gnu/gcj/lang/ClassHelper.java: Removed.
4503 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4505 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4506 * gnu/java/beans/EmptyBeanInfo.java: New file.
4507 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4508 * gnu/java/beans/IntrospectionIncubator.java: New file.
4509 * gnu/java/beans/editors/ColorEditor.java: New file.
4510 * gnu/java/beans/editors/FontEditor.java: New file.
4511 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4512 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4513 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4514 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4515 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4516 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4517 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4518 * gnu/java/beans/editors/StringEditor.java: New file.
4519 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4520 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4521 * gnu/java/io/NullOutputStream.java: New file.
4522 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4523 * gnu/java/lang/ArrayHelper.java: New file.
4524 * gnu/java/lang/ClassHelper.java: New file.
4525 * gnu/java/lang/reflect/TypeSignature.java: New file.
4527 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4528 namespace back to the original Classpath gnu/java namespace.
4529 * Makefile.in: Rebuilt.
4531 * java/beans/Beans.java: Namespace change.
4532 * java/beans/EventSetDescriptor.java: Namespace change.
4533 * java/beans/Introspector.java: Namespace change.
4534 * java/beans/PropertyEditorManager.java: Namespace change.
4535 * java/io/ObjectInputStream.java: Namespace change.
4536 * java/io/ObjectOutputStream.java: Namespace change.
4537 * java/io/ObjectStreamClass.java: Namespace change.
4538 * java/io/ObjectStreamField.java: Namespace change.
4540 2000-04-21 Warren Levy <warrenl@cygnus.com>
4542 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4543 now that compiler patch is available.
4544 Removed unneeded System.loadLibrary.
4545 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4546 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4548 2000-04-19 Andrew Haley <aph@cygnus.com>
4550 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4551 and target classes have been initialized.
4553 2000-04-19 Andrew Haley <aph@cygnus.com>
4555 * java/lang/String.java: implement Serializable, Comparable.
4556 (compareTo (Object)): New method.
4558 2000-04-19 Warren Levy <warrenl@cygnus.com>
4560 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4561 instead of getField to retrieve non-public field.
4562 (getSerialPersistantFields): Ditto.
4564 2000-04-18 Warren Levy <warrenl@cygnus.com>
4566 * mauve-libgcj: Turned off object serialization tests temporarily
4567 due to compiler error.
4569 2000-04-17 Warren Levy <warrenl@cygnus.com>
4571 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4572 to avoid build problem.
4574 * mauve-libgcj: Turned on object serialization tests.
4576 2000-04-17 Tom Tromey <tromey@cygnus.com>
4578 * libgcj.spec.in (*lib): Added -lgcjawt.
4580 2000-04-17 Andrew Haley <aph@cygnus.com>
4582 * Makefile.am: Add new files:
4583 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4585 * Makefile.in: Rebuilt.
4587 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4588 interface that has no implementations.
4589 Check for an attempt to assign an abstract class to an interface.
4591 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4592 if we fail to find MessageDigest.getInstance ("SHA").
4594 * gnu/gcj/io/SimpleSHSStream.java: New file.
4595 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4596 * gnu/gcj/io/shs.cc: New file.
4597 * gnu/gcj/io/shs.h: new file.
4599 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4602 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4603 punctuation from the classname of an array element.
4605 * gcj/javaprims.h: Add SimpleDigestStream.
4607 2000-04-17 Andrew Haley <aph@cygnus.com>
4609 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4610 to getPrivateField for superclasses.
4612 2000-04-14 Andrew Haley <aph@cygnus.com>
4614 * Makefile.am: Add new files:
4615 java/io/ObjectOutputStream$PutField.h,
4616 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4617 java/io/natObjectOutputStream.cc
4618 * Makefile.in: Rebuilt.
4619 * gcj/Makefile.in: Rebuilt.
4620 * include/Makefile.in: Rebuilt.
4621 * java/lang/Class.h (getPrivateField): New method.
4622 (getPrivateMethod): Ditto.
4623 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4624 and java::io::ObjectStreamClass our friends.
4625 * java/lang/natClass.cc (getPrivateField): New method.
4626 (getPrivateMethod): Ditto.
4627 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4628 * gcj/javaprims.h: Add serialization classes.
4629 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4630 (setByteField): Ditto.
4631 (setCharField): Ditto.
4632 (setDoubleField): Ditto.
4633 (setFloatField): Ditto.
4634 (setIntField): Ditto.
4635 (setLongField): Ditto.
4636 (setShortField): Ditto.
4637 (setObjectField): Ditto.
4638 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4640 (getByteField): Ditto.
4641 (getCharField): Ditto.
4642 (getDoubleField): Ditto.
4643 (getFloatField): Ditto.
4644 (getIntField): Ditto.
4645 (getLongField): Ditto.
4646 (getShortField): Ditto.
4647 (getObjectField): Ditto.
4648 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4650 (getSerialPersistantFields): Ditto.
4651 (getDefinedSUID): Ditto.
4652 * java/io/natObjectOutputStream.cc: New file.
4653 * java/io/natObjectInputStream.cc: New file.
4655 2000-04-13 Warren Levy <warrenl@cygnus.com>
4657 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4658 problems. Revert to previous version to reproduce and when fixed.
4660 2000-04-13 Warren Levy <warrenl@cygnus.com>
4662 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4663 * gnu/gcj/io/NullOutputStream.java: New file.
4664 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4665 * java/io/BlockDataException.java: New file.
4666 * java/io/Externalizable.java: New file.
4667 * java/io/InvalidClassException.java: New file.
4668 * java/io/InvalidObjectException.java: New file.
4669 * java/io/NotActiveException.java: New file.
4670 * java/io/NotSerializableException.java: New file.
4671 * java/io/ObjectInput.java: New file.
4672 * java/io/ObjectInputStream.java: New file.
4673 * java/io/ObjectInputValidation.java: New file.
4674 * java/io/ObjectOutput.java: New file.
4675 * java/io/ObjectOutputStream.java: New file.
4676 * java/io/ObjectStreamClass.java: New file.
4677 * java/io/ObjectStreamConstants.java: New file.
4678 * java/io/ObjectStreamField.java: New file.
4679 * java/io/Replaceable.java: New file.
4680 * java/io/Resolvable.java: New file.
4681 * java/io/SerializablePermission.java: New file.
4682 * java/io/WriteAbortedException.java: New file.
4683 * java/security/BasicPermission.java: New file.
4684 * java/security/DigestOutputStream.java: New file.
4685 * java/security/Guard.java: New file.
4686 * java/security/Permission.java: New file.
4687 * java/security/PermissionCollection.java: New file.
4688 * Makefile.am: Added above files.
4689 * Makefile.in: Rebuilt.
4691 * java/beans/Beans.java (instantiate): Activated serialization code.
4692 * java/lang/SecurityManager.java (checkPermission): New method.
4694 2000-04-12 Warren Levy <warrenl@cygnus.com>
4696 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4697 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4698 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4699 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4700 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4701 * gnu/gcj/beans/editors/FontEditor.java: New file.
4702 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4703 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4704 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4705 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4706 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4707 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4708 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4709 * gnu/gcj/beans/editors/StringEditor.java: New file.
4710 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4711 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4712 * gnu/gcj/lang/ArrayHelper.java: New file.
4713 * gnu/gcj/lang/ClassHelper.java: New file.
4714 * java/beans/BeanDescriptor.java: New file.
4715 * java/beans/BeanInfo.java: New file.
4716 * java/beans/Beans.java: New file.
4717 * java/beans/Customizer.java: New file.
4718 * java/beans/DesignMode.java: New file.
4719 * java/beans/EventSetDescriptor.java: New file.
4720 * java/beans/FeatureDescriptor.java: New file.
4721 * java/beans/IndexedPropertyDescriptor.java: New file.
4722 * java/beans/IntrospectionException.java: New file.
4723 * java/beans/Introspector.java: New file.
4724 * java/beans/MethodDescriptor.java: New file.
4725 * java/beans/ParameterDescriptor.java: New file.
4726 * java/beans/PropertyChangeEvent.java: New file.
4727 * java/beans/PropertyChangeListener.java: New file.
4728 * java/beans/PropertyChangeSupport.java: New file.
4729 * java/beans/PropertyDescriptor.java: New file.
4730 * java/beans/PropertyEditor.java: New file.
4731 * java/beans/PropertyEditorManager.java: New file.
4732 * java/beans/PropertyEditorSupport.java: New file.
4733 * java/beans/PropertyVetoException.java: New file.
4734 * java/beans/SimpleBeanInfo.java: New file.
4735 * java/beans/VetoableChangeListener.java: New file.
4736 * java/beans/VetoableChangeSupport.java: New file.
4737 * java/beans/Visibility.java: New file.
4738 * java/beans/beancontext/BeanContext.java: New file.
4739 * java/beans/beancontext/BeanContextChild.java: New file.
4740 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4741 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4742 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4743 * java/beans/beancontext/BeanContextEvent.java: New file.
4744 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4745 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4746 * java/beans/beancontext/BeanContextProxy.java: New file.
4747 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4749 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4750 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4752 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4753 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4755 * java/beans/beancontext/BeanContextServices.java: New file.
4756 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4757 * java/util/AbstractCollection.java: New file.
4758 * java/util/AbstractList.java: New file.
4759 * java/util/Arrays.java: New file.
4760 * Makefile.am: Added above files.
4761 * Makefile.in: Rebuilt.
4763 2000-04-11 Warren Levy <warrenl@cygnus.com>
4765 * java/awt/AWTError.java: New file.
4766 * java/awt/AWTEvent.java: New file.
4767 * java/awt/AWTException.java: New file.
4768 * java/awt/ActiveEvent.java: New file.
4769 * java/awt/Adjustable.java: New file.
4770 * java/awt/BorderLayout.java: New file.
4771 * java/awt/Color.java: New file.
4772 * java/awt/Component.java: New file.
4773 * java/awt/Container.java: New file.
4774 * java/awt/Dimension.java: New file.
4775 * java/awt/Event.java: New file.
4776 * java/awt/Font.java: New file.
4777 * java/awt/Frame.java: New file.
4778 * java/awt/Graphics.java: New file.
4779 * java/awt/IllegalComponentStateException.java: New file.
4780 * java/awt/Image.java: New file.
4781 * java/awt/ItemSelectable.java: New file.
4782 * java/awt/LayoutManager.java: New file.
4783 * java/awt/LayoutManager2.java: New file.
4784 * java/awt/Menu.java: New file.
4785 * java/awt/MenuBar.java: New file.
4786 * java/awt/MenuComponent.java: New file.
4787 * java/awt/MenuContainer.java: New file.
4788 * java/awt/MenuItem.java: New file.
4789 * java/awt/Paint.java: New file.
4790 * java/awt/PaintContext.java: New file.
4791 * java/awt/Point.java: New file.
4792 * java/awt/Rectangle.java: New file.
4793 * java/awt/Shape.java: New file.
4794 * java/awt/TextArea.java: New file.
4795 * java/awt/TextComponent.java: New file.
4796 * java/awt/Toolkit.java: New file.
4797 * java/awt/Transparency.java: New file.
4798 * java/awt/Window.java: New file.
4799 * java/awt/natToolkit.cc: New file.
4800 * java/awt/event/AWTEventListener.java: New file.
4801 * java/awt/event/ActionEvent.java: New file.
4802 * java/awt/event/ActionListener.java: New file.
4803 * java/awt/event/AdjustmentEvent.java: New file.
4804 * java/awt/event/AdjustmentListener.java: New file.
4805 * java/awt/event/ComponentAdapter.java: New file.
4806 * java/awt/event/ComponentEvent.java: New file.
4807 * java/awt/event/ComponentListener.java: New file.
4808 * java/awt/event/ContainerAdapter.java: New file.
4809 * java/awt/event/ContainerEvent.java: New file.
4810 * java/awt/event/ContainerListener.java: New file.
4811 * java/awt/event/FocusAdapter.java: New file.
4812 * java/awt/event/FocusEvent.java: New file.
4813 * java/awt/event/FocusListener.java: New file.
4814 * java/awt/event/InputEvent.java: New file.
4815 * java/awt/event/InputMethodEvent.java: New file.
4816 * java/awt/event/InputMethodListener.java: New file.
4817 * java/awt/event/InvocationEvent.java: New file.
4818 * java/awt/event/ItemEvent.java: New file.
4819 * java/awt/event/ItemListener.java: New file.
4820 * java/awt/event/KeyAdapter.java: New file.
4821 * java/awt/event/KeyEvent.java: New file.
4822 * java/awt/event/KeyListener.java: New file.
4823 * java/awt/event/MouseAdapter.java: New file.
4824 * java/awt/event/MouseEvent.java: New file.
4825 * java/awt/event/MouseListener.java: New file.
4826 * java/awt/event/MouseMotionAdapter.java: New file.
4827 * java/awt/event/MouseMotionListener.java: New file.
4828 * java/awt/event/PaintEvent.java: New file.
4829 * java/awt/event/TextEvent.java: New file.
4830 * java/awt/event/TextListener.java: New file.
4831 * java/awt/event/WindowAdapter.java: New file.
4832 * java/awt/event/WindowEvent.java: New file.
4833 * java/awt/event/WindowListener.java: New file.
4834 * java/awt/geom/Dimension2D.java: New file.
4835 * java/awt/geom/Point2D.java: New file.
4836 * java/awt/peer/ComponentPeer.java: New file.
4837 * java/awt/peer/ContainerPeer.java: New file.
4838 * java/awt/peer/FramePeer.java: New file.
4839 * java/awt/peer/WindowPeer.java: New file.
4840 * java/util/Collection.java: New file.
4841 * java/util/Comparator.java: New file.
4842 * java/util/Iterator.java: New file.
4843 * java/util/List.java: New file.
4844 * java/util/ListIterator.java: New file.
4845 * Makefile.am: Added above files.
4846 * Makefile.in: Rebuilt.
4848 2000-04-10 Warren Levy <warrenl@cygnus.com>
4850 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4851 * java/lang/FirstThread.java: Ditto.
4852 * java/lang/StringBuffer.java: Ditto.
4853 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4855 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4856 Special case handled in java.math.BigInteger.
4857 * java/math/BigInteger.java (divide): Handle the special case when
4858 dividing by 1 and the high bit of the dividend is set.
4859 (setShiftRight): Handle case when count == 0.
4861 2000-04-05 Andrew Haley <aph@cygnus.com>
4863 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4866 2000-04-05 Andrew Haley <aph@cygnus.com>
4868 * sysdep/ia64.c (rse_address_add): Delete.
4869 (IS_NaT_COLLECTION_ADDR): Delete.
4870 (ia64_backtrace_helper): check for null unwind_info.
4872 * sysdep/ia64-frame.h: add calc_caller_bsp.
4874 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4877 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4878 (_Jv_remI): Likewise.
4879 (_Jv_divJ): Likewise.
4880 (_Jv_remJ): Likewise.
4882 * interpret.cc (continue1): Use divide subroutines to guarantee
4883 correct Java standard behaviour.
4884 Floating-point division should not abort; make it so.
4886 2000-03-29 Tom Tromey <tromey@cygnus.com>
4888 * configure: Rebuilt.
4889 * configure.in: Test against `libgcj_sjlj', not
4890 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4891 to be set even when using sjlj.
4893 2000-03-24 Andrew Haley <aph@cygnus.com>
4895 * Makefile.am: Add file addr2name.awk.
4896 * Makefile.in: Rebuilt.
4897 * addr2name.awk: New file.
4898 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4900 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4903 2000-03-22 Andrew Haley <aph@cygnus.com>
4905 * configure.host: Add -funwind-tables for IA64.
4906 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4907 * Makefile.in: Rebuilt.
4908 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4909 * sysdep/ia64.c: New file.
4910 * sysdep/ia64-frame.h: New file.
4911 * configure.in: Add sysdep/ia64.c for ia64.
4912 * configure: Rebuilt.
4914 2000-03-17 Andrew Haley <aph@cygnus.com>
4916 * java/lang/natString.cc: Remove `register' keyword.
4917 interpret.cc: ditto.
4919 2000-03-16 Andrew Haley <aph@cygnus.com>
4921 * configure.host (ia64): Enable interpreter.
4923 2000-03-14 Hans Boehm <boehm@acm.org>
4925 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4927 2000-03-14 Andrew Haley <aph@cygnus.com>
4929 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4932 2000-03-10 Andrew Haley <aph@cygnus.com>
4934 * java/lang/ieeefp.h: Import latest version from fdlibm.
4936 2000-03-14 Andrew Haley <aph@cygnus.com>
4938 * prims.cc (_Jv_ThrowSignal): New function.
4939 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4941 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4942 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4943 * include/ppc-signal.h: New file.
4945 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4947 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4948 * java/lang/natThread.java (initialize_native): Cast `data' to
4950 * gnu/gcj/RawData.java: Clarify documentation.
4952 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4953 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4954 `jarFile', not `jarFileURL'.
4956 2000-05-15 Andrew Haley <aph@cygnus.com>
4958 * include/ppc-signal.h: New file.
4960 2000-05-11 Tom Tromey <tromey@cygnus.com>
4962 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4963 file headers, don't include `size' in the skip call.
4965 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4967 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4968 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4970 (replace): Reimplemented. Fix javadoc.
4971 (reverse): Call ensureCapacity_unsynchronized().
4972 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4974 (replace): Calculate length for arraycopy() correctly.
4976 2000-05-09 Tom Tromey <tromey@cygnus.com>
4978 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4980 (insert(int,char[],int,int): New method.
4981 (delete): New method from Classpath.
4982 (deleteCharAt): Likewise.
4983 (substring): Likewise.
4984 (shared): No longer private.
4985 Added JavaDoc comments from Classpath.
4986 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4989 2000-05-07 Tom Tromey <tromey@cygnus.com>
4991 * Makefile.in: Rebuilt.
4992 * Makefile.am (LIBLINK): New macro.
4993 (libgcj_la_LINK): Use it.
4994 (libgcjawt_la_LINK): Likewise.
4996 2000-05-06 Tom Tromey <tromey@cygnus.com>
4998 * Makefile.in: Rebuilt.
4999 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5001 2000-05-05 Tom Tromey <tromey@cygnus.com>
5003 Fix for PR libgcj/220:
5004 * Makefile.in: Rebuilt.
5005 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5006 (jv_convert_LDFLAGS): Likewise.
5007 (libgcj_la_LDFLAGS): Likewise.
5008 (GCJLINK): New macro.
5009 (jv_convert_LINK): Use it.
5010 (gij_LINK): Likewise.
5011 (libgcj_la_LINK): New macro.
5012 (libgcjawt_la_LINK): Likewise.
5014 2000-05-04 Tom Tromey <tromey@cygnus.com>
5016 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5018 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5022 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5024 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5025 (_Jv_IsAssignableFrom): Ditto.
5026 (_Jv_IsInstanceOf): Ditto.
5027 (_Jv_CheckCast): Ditto.
5028 (_Jv_CheckArrayStore): Ditto.
5029 * java/lang/Class.h (_Jv_InitClass): Ditto.
5030 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5035 (_Jv_MonitorExit): Ditto.
5036 * boehm.cc (_Jv_MarkObj): Ditto.
5037 (_Jv_MarkObj): Ditto.
5038 (_Jv_MarkArray): Ditto.
5039 * prims.cc (_Jv_AllocObject): Ditto.
5040 (_Jv_NewObjectArray): Ditto.
5041 (_Jv_NewPrimArray): Ditto.
5042 (_Jv_Malloc): Ditto.
5043 (_Jv_Realloc): Ditto.
5044 (_Jv_MallocUnchecked): Ditto.
5050 2000-05-04 Tom Tromey <tromey@cygnus.com>
5052 * java/util/Locale.java (Locale): Don't explicitly check for
5054 * java/util/Hashtable.java (containsKey): Don't explicitly check
5057 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5059 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5061 * java/text/StringCharacterIterator.java
5062 (StringCharacterIterator): Don't check for null.
5063 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5065 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5066 check for null pointer.
5067 (leaveGroup): Likewise.
5068 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5070 (setData): Likewise.
5071 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5074 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5076 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5077 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5078 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5079 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5080 -rpath for in-gcc builds.
5081 * Makefile.in: Rebuilt.
5083 2000-04-28 Tom Tromey <tromey@cygnus.com>
5085 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5088 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5090 * libjava/java/lang/String.java (toString): Remove `final' hack.
5092 2000-04-05 Tom Tromey <tromey@cygnus.com>
5094 Runtime support for PR gcj/2:
5095 * prims.cc (_Jv_ThrowNullPointerException): New function.
5096 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5098 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5100 * prims.cc (_Jv_NewObjectArray): Fix typo.
5102 2000-04-26 Tom Tromey <tromey@cygnus.com>
5104 * Makefile.in: Rebuilt.
5105 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5107 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5109 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5112 2000-04-22 Anthony Green <green@cygnus.com>
5114 * include/jvm.h (__builtin_expect): Define as unused for now.
5115 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5119 (_Jv_MonitorExit): Ditto.
5120 * boehm.cc (_Jv_MarkObj): Ditto.
5121 (_Jv_MarkObj): Ditto.
5122 (_Jv_MarkArray): Ditto.
5123 (_Jv_AllocBytes): Ditto.
5124 * prims.cc (_Jv_AllocObject): Ditto.
5125 (_Jv_NewObjectArray): Ditto.
5126 (_Jv_NewPrimArray): Ditto.
5127 (_Jv_Malloc): Ditto.
5128 (_Jv_Realloc): Ditto.
5129 (_Jv_MallocUnchecked): Ditto.
5135 * include/Makefile.in: Rebuilt.
5136 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5138 2000-04-21 Tom Tromey <tromey@cygnus.com>
5140 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5141 Yet another new version from Classpath.
5143 Fix for PR libgcj/15:
5144 * java/util/natGregorianCalendar.cc (_REENTRANT,
5145 _POSIX_PTHREAD_SEMANTICS): Don't define.
5146 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5147 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5149 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5151 * configure: Rebuilt.
5152 * configure.in: If using POSIX threads, define _REENTRANT if
5153 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5154 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5156 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5157 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5158 version from Classpath.
5160 Fix for PR libgcj/213:
5161 * Makefile.in: Rebuilt.
5162 * Makefile.am (gij_SOURCES): Added gij.cc.
5163 (EXTRA_gij_SOURCES): Removed.
5164 (gij_LDADD): Removed gij.lo.
5165 (gij_DEPENDENCIES): Likewise.
5166 ($(gij_OBJECTS)): Depend on nat_headers.
5168 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5169 `setURL', not `url.set'.
5171 2000-04-20 Tom Tromey <tromey@cygnus.com>
5173 Fix for PR java.io/204:
5174 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5175 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5178 Fix for PR libgcj/212:
5179 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5180 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5181 * java/lang/Class.h (_Jv_word): Declare.
5183 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5185 2000-04-19 Tom Tromey <tromey@cygnus.com>
5187 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5188 doesn't have a loader.
5190 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5192 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5193 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5195 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5197 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5199 (available): Initialize `where' to prevent bogus compiler warning.
5201 2000-04-12 Tom Tromey <tromey@cygnus.com>
5203 * java/lang/natString.cc (intern): Temporarily disable finalizer
5206 * java/lang/natString.cc (unintern): Added `obj' argument.
5207 (intern): Register finalizer for string.
5208 * java/lang/String.java (unintern): Now static; added obj
5211 2000-04-11 Tom Tromey <tromey@cygnus.com>
5213 * java/util/Vector.java (VectorEnumeration): Now `final'.
5214 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5215 (HashtableEnumeration): Likewise.
5216 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5217 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5219 2000-04-10 Warren Levy <warrenl@cygnus.com>
5221 * java/io/ObjectStreamException.java: New file.
5222 * java/io/OptionalDataException.java: New file.
5223 * java/io/StreamCorruptedException.java: New file.
5224 * java/math/BigDecimal.java: New file.
5225 * java/sql/CallableStatement.java: New file.
5226 * java/sql/Connection.java: New file.
5227 * java/sql/DataTruncation.java: New file.
5228 * java/sql/DatabaseMetaData.java: New file.
5229 * java/sql/Date.java: New file.
5230 * java/sql/Driver.java: New file.
5231 * java/sql/DriverManager.java: New file.
5232 * java/sql/DriverPropertyInfo.java: New file.
5233 * java/sql/PreparedStatement.java: New file.
5234 * java/sql/ResultSet.java: New file.
5235 * java/sql/ResultSetMetaData.java: New file.
5236 * java/sql/SQLException.java: New file.
5237 * java/sql/SQLWarning.java: New file.
5238 * java/sql/Statement.java: New file.
5239 * java/sql/Time.java: New file.
5240 * java/sql/Timestamp.java: New file.
5241 * java/sql/Types.java: New file.
5242 * Makefile.am: Added above new files.
5243 * Makefile.in: Rebuilt.
5245 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5246 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5247 DatagramSocket constructor instead of null.
5249 2000-04-08 Anthony Green <green@cygnus.com>
5251 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5254 2000-04-08 Anthony Green <green@cygnus.com>
5256 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5257 (_Jv_MutexUnlock): Ditto.
5258 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5259 (_Jv_MutexUnlock): Ditto.
5261 2000-04-08 Anthony Green <green@cygnus.com>
5263 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5264 (ensureCapacity_unsynchronized): New private method.
5265 (append): Use ensureCapacity_unsynchronized.
5267 2000-04-08 Tom Tromey <tromey@cygnus.com>
5269 * Makefile.in: Rebuilt.
5270 * Makefile.am (awt_java_source_files): Added new files.
5271 * java/awt/IllegalComponentStateException.java: New file.
5272 * java/awt/ItemSelectable.java: New file.
5273 * java/awt/event/WindowEvent.java: Finished.
5274 * java/awt/event/TextEvent.java: Finished.
5275 * java/awt/event/ContainerEvent.java: New file.
5276 * java/awt/Component.java (getX, getY): New methods.
5277 * java/awt/event/PaintEvent.java: New file.
5278 * java/awt/event/MouseEvent.java: New file.
5279 * java/awt/ActiveEvent.java: New file.
5280 * java/awt/event/KeyEvent.java: Finished.
5281 * java/awt/event/ItemEvent.java: New file.
5282 * java/awt/Adjustable.java: New file.
5283 * java/awt/event/InputMethodEvent.java: New file.
5284 * java/awt/event/InputEvent.java: Finished.
5285 * java/awt/event/FocusEvent.java: New file.
5286 * java/awt/event/MouseMotionAdapter.java: New file.
5287 * java/awt/event/MouseAdapter.java: New file.
5288 * java/awt/event/KeyAdapter.java: New file.
5289 * java/awt/event/FocusAdapter.java: New file.
5290 * java/awt/event/ContainerAdapter.java: New file.
5291 * java/awt/event/ComponentEvent.java: Finished.
5292 * java/awt/event/AdjustmentEvent.java: New file.
5293 * java/awt/event/ComponentAdapter.java: New file.
5294 * java/awt/event/ActionEvent.java: Finished.
5295 * java/awt/event/MouseMotionListener.java: New file.
5296 * java/awt/event/MouseListener.java: New file.
5297 * java/awt/event/ItemListener.java: New file.
5298 * java/awt/event/InputMethodListener.java: New file.
5299 * java/awt/event/ContainerListener.java: New file.
5300 * java/awt/event/FocusListener.java: New file.
5301 * java/awt/event/ComponentListener.java: New file.
5302 * java/awt/event/AWTEventListener.java: New file.
5303 * java/awt/event/AdjustmentListener.java: New file.
5305 2000-04-08 Anthony Green <green@cygnus.com>
5307 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5308 check when we have to.
5310 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5313 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5316 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5317 inline hasMoreElements.
5319 2000-04-05 Tom Tromey <tromey@cygnus.com>
5321 * configure: Rebuilt.
5322 * configure.in: Recognize --enable-java-awt.
5323 (AWT): New conditional.
5324 * Makefile.in: Rebuilt.
5325 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5327 (libgcjawt_la_SOURCES): New macro.
5328 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5329 (libgcjawt_la_DEPENDENCIES): Likewise.
5330 (libgcjawt_la_LIBADD): Likewise.
5331 (libgcjawt_la_LDFLAGS): Likewise.
5332 (libgcj.zip): Depend on cond_java_awt_source_files
5333 (cond_awt_java_source_files): New macro.
5334 (MOSTLYCLEANFILES): Added awto_files.
5335 (awto_files): New macro. Use where javao_files used.
5336 (nat_headers): Use cond_awt_java_source_files.
5338 2000-04-04 Tom Tromey <tromey@cygnus.com>
5340 * Makefile.in: Rebuilt.
5341 * Makefile.am (awt_java_source_files): Added AWTException.java.
5342 * java/awt/AWTException.java: New file.
5344 2000-04-03 Tom Tromey <tromey@cygnus.com>
5346 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5347 commentary from Alex.
5349 * Makefile.in: Rebuilt.
5350 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5353 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5355 * configure: Rebuilt.
5356 * configure.in: Add --disable-jvmpi.
5357 * include/config.h.in: Rebuilt.
5358 * acconfig.h: Add ENABLE_JVMPI.
5360 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5361 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5362 (_Jv_JVMPI_Notify_THREAD_END): New define.
5363 (_Jv_JVMPI_Notify_THREAD_END): New define.
5364 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5365 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5366 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5368 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5371 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5372 (finish_): Generate JVMPI thread end events.
5373 (run_): Generate JVMPI thread start events.
5374 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5375 preloaded JNI library.
5376 Include JVMPI headers if necessary.
5377 (run): Generate JVMPI thread start events.
5379 * boehm.cc: Define GC_disable and GC_enable.
5380 (_Jv_DisableGC): New function.
5381 (_Jv_EnableGC): New function.
5382 (disable_gc_mutex): Declare.
5383 * nogc.cc (_Jv_DisableGC): New function.
5384 (_Jv_EnableGC): New function.
5386 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5387 (_Jv_JVMPI_Interface): Define.
5388 (jvmpiEnableEvent): New function.
5389 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5391 * include/jvmpi.h: New file.
5393 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5395 * Makefile.in: New #defines and friends for Thread.h.
5396 * Makefile.am: Ditto.
5397 * posix-threads.cc: (struct starter): Remove `object'.
5398 (_Jv_CondWait): Use interruptable condition variables and new
5399 recursive mutexes. New return codes on interrupt or non-ownership
5401 (_Jv_CondNotify): Ditto.
5402 (_Jv_CondNotifyAll): Ditto.
5403 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5404 the target thread by signaling its wait condition.
5405 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5406 not the starter struct. Initialize wait_mutex and wait_cond.
5407 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5409 (_Jv_MutexUnlock): Ditto.
5410 (really_start): Set info->data->thread from pthread_self() to work
5411 around a race condition. Destroy wait_mutex and wait_cond when run()
5413 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5414 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5416 startable_flag: New private field.
5417 (Thread): Initialize `startable_flag'.
5418 (toString): Check for null thread group.
5419 * java/lang/natThread.cc: (struct natThread): New fields
5420 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5421 (class locker): Removed.
5422 (initialize_native): Initialize `join_cond' and `join_mutex'.
5423 (interrupt): Now just calls _Jv_ThreadInterrupt().
5424 (join): Simplified. Just wait on the target thread's join condition.
5425 (finish_): Remove join list code. Unset thread group. Signal
5426 potential joiners by notifying the dying threads join_cond.
5427 (start): Check for illegal restarts.
5428 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5430 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5431 #defines and #ifdefs.
5432 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5433 `wait_mutex', `next'.
5434 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5435 directly mapping to pthread_cond_t.
5436 (struct _Jv_Mutex_t): New recursive implementation.
5437 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5438 _Jv_HaveCondDestroy: Never define this for posix-threads.
5439 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5440 (_Jv_CondNotifyAll): Ditto.
5441 (_Jv_MutexLock): Ditto.
5442 (_Jv_MutexUnlock): Ditto.
5443 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5444 (_Jv_MutexDestroy): Ditto.
5445 (_Jv_CondDestroy): Removed.
5446 (_Jv_PthreadGetMutex): Removed.
5447 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5448 error. Add a FIXME about this.
5449 (_Jv_CondNotifyAll): Ditto.
5450 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5451 _JV_NOT_OWNER on other errors. Add FIXME.
5453 2000-03-26 Tom Tromey <tromey@cygnus.com>
5455 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5457 (call): Don't throw exception here.
5459 2000-03-26 Tom Tromey <tromey@cygnus.com>
5461 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5462 * interpret.cc: Use SIZEOF_VOID_P.
5463 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5464 (_Jv_loadLong): Likewise.
5465 (_Jv_storeDouble): Likewise.
5466 * configure: Rebuilt.
5467 * configure.in: Check size of void*.
5469 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5471 2000-03-26 Hans Boehm <boehm@acm.org>
5473 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5474 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5476 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5477 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5478 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5479 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5481 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5482 (FFI_RAW_SIZE): Likewise.
5483 (_Jv_InterpMethod::ncode): Use them.
5484 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5485 STORED): Define differently on a 64 bit machine.
5486 (continue1): Use ffi_java_raw_call when appropriate.
5488 2000-03-24 Warren Levy <warrenl@cygnus.com>
5490 * java/math/BigInteger.java(divide): Handle the special case when
5491 dividing by 1 and the high bit of the dividend is set.
5492 (setShiftRight): Handle case when count == 0.
5494 2000-03-24 Warren Levy <warrenl@cygnus.com>
5496 * java/awt/Font.java(isBold): Fix syntax error.
5498 * java/awt/Frame.java(postEvent): ditto.
5499 * java/awt/Menu.java(postEvent): ditto.
5500 * java/awt/MenuBar.java(postEvent): ditto.
5501 * java/awt/Toolkit.java(init): Included a stub.
5503 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5505 * java/awt/Event.java: Add all the event type constants.
5506 (Event): Implemented constructors.
5507 (controlDown): Implemented.
5508 (metaDown): Implemented.
5509 (paramString): Stubbed.
5510 (shiftDown): Implemented.
5511 (toString): Implemented.
5512 (translate): Implemented.
5514 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5516 * java/lang/natClass.cc (isInstance): Initialize `this'.
5517 (isAssignableFrom): Initialize `this' and `klass'.
5518 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5519 implemented by any loaded class, so return false.
5520 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5521 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5523 2000-03-19 Warren Levy <warrenl@cygnus.com>
5525 * java/awt/Color.java: Specified java.io for Serializable.
5526 * java/awt/Toolkit.java: Imported java.net.URL.
5528 2000-03-19 Warren Levy <warrenl@cygnus.com>
5530 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5532 2000-03-16 Warren Levy <warrenl@cygnus.com>
5534 * java/awt/Color.java: New file.
5535 * java/awt/Graphics.java: New file.
5536 * java/awt/Image.java: New file.
5537 * java/awt/Paint.java: New file.
5538 * java/awt/PaintContext.java: New file.
5539 * java/awt/Transparency.java: New file.
5540 * java/util/Collection.java: New file.
5541 * java/util/Comparator.java: New file.
5542 * java/util/Iterator.java: New file.
5543 * java/util/List.java: New file.
5544 * java/util/ListIterator.java: New file.
5545 * Makefile.am: Added above new files.
5546 * Makefile.in: Rebuilt.
5548 * java/awt/Font.java (PLAIN): New field.
5550 (ITALIC): New field.
5551 (ROMAN_BASELINE): New field.
5552 (CENTER_BASELINE): New field.
5553 (HANGING_BASELINE): New field.
5557 (pointSize): New field.
5558 (Font): Implemented constructor.
5559 (isPlain): Implemented method.
5560 (isBold): Implemented method.
5561 (isItalic): Implemented method.
5562 (getName): Implemented method.
5563 (getStyle): Implemented method.
5564 (getSize): Implemented method.
5565 (getSize2D): Implemented method.
5567 * java/awt/Frame.java (getFont): Stubbed.
5568 (postEvent): Stubbed.
5570 * java/awt/Menu.java (postEvent): Stubbed.
5571 * java/awt/MenuBar.java (getFont): Stubbed.
5572 (postEvent): Stubbed.
5573 * java/awt/Toolkit.java (getImage): Added abstract method.
5575 2000-03-15 Tom Tromey <tromey@cygnus.com>
5577 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5579 * prims.cc (win32_exception_handler): Reformatted.
5581 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5582 (_Jv_HaveMutexDestroy): Likewise.
5584 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5586 * java/io/natFileDescriptorWin32.cc: New file.
5587 * java/io/natFileWin32.cc: New file.
5588 * java/net/natInetAddress.cc: Added conditional inclusion of
5589 Windows / Winsock headers.
5590 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5591 inclusion of Windows / Winsock headers.
5592 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5593 Windows / Winsock headers.
5594 * include/win32-signal.h: New file.
5595 * include/win32-threads.h: New file.
5596 * win32-threads.cc: New file.
5597 * exception.cc (win32_get_restart_frame): New function.
5598 * prims.cc (win32_exception_handler): New function.
5599 (main_init) Performs Winsock initialisation.
5600 (main_init) Installs exeception handler.
5602 2000-03-14 Tom Tromey <tromey@cygnus.com>
5604 * jni.cc (mangled_name): Fixed assertion.
5605 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5606 turned assert into actual failure.
5608 2000-03-09 Warren Levy <warrenl@cygnus.com>
5610 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5611 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5612 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5614 2000-03-09 Warren Levy <warrenl@cygnus.com>
5616 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5617 * java/security/DigestException.java: New file.
5618 * java/security/GeneralSecurityException.java: New file.
5619 * java/security/InvalidAlgorithmParameterException.java: New file.
5620 * java/security/InvalidKeyException.java: New file.
5621 * java/security/InvalidParameterException.java: New file.
5622 * java/security/Key.java: New file.
5623 * java/security/KeyException.java: New file.
5624 * java/security/KeyPair.java: New file.
5625 * java/security/KeyPairGenerator.java: New file.
5626 * java/security/KeyPairGeneratorSpi.java: New file.
5627 * java/security/NoSuchProviderException.java: New file.
5628 * java/security/PrivateKey.java: New file.
5629 * java/security/Provider.java: New file.
5630 * java/security/PublicKey.java: New file.
5631 * java/security/SecureRandom.java: New file.
5632 * java/security/Security.java: New file.
5633 * java/security/Signature.java: New file.
5634 * java/security/SignatureException.java: New file.
5635 * java/security/interfaces/DSAKey.java: New file.
5636 * java/security/interfaces/DSAParams.java: New file.
5637 * java/security/interfaces/DSAPrivateKey.java: New file.
5638 * java/security/interfaces/DSAPublicKey.java: New file.
5639 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5640 * java/security/interfaces/RSAPrivateKey.java: New file.
5641 * java/security/interfaces/RSAPublicKey.java: New file.
5642 * java/security/spec/AlgorithmParameterSpec.java: New file.
5643 * java/security/spec/InvalidKeySpecException.java: New file.
5644 * java/security/spec/InvalidParameterSpecException.java: New file.
5645 * java/security/spec/KeySpec.java: New file.
5646 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5647 * java/security/spec/RSAPrivateKeySpec.java: New file.
5648 * java/security/spec/RSAPublicKeySpec.java: New file.
5649 * Makefile.am: Added above java.security files.
5650 * Makefile.in: Rebuilt.
5652 * java/security/MessageDigest.java: Rewritten.
5653 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5655 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5659 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5661 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5662 _Jv_PrepareConstantTimeTables.
5663 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5664 classes should have an IDT, so don't return if klass is an array
5667 2000-03-08 Tom Tromey <tromey@cygnus.com>
5669 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5670 of `void' to be created.
5672 2000-03-08 Warren Levy <warrenl@cygnus.com>
5674 * java/math/BigInteger.java(signum): Handle zero properly.
5676 2000-03-07 Tom Tromey <tromey@cygnus.com>
5678 * All files: Updated copyright information.
5679 * COPYING: New file.
5680 * COPYING.LIB: Removed.
5681 * LIBGCJ_LICENSE: We now use GPL + special exception.
5683 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5685 * resolve.cc (_Jv_SearchMethodInClass): New function.
5686 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5687 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5689 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5691 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5692 (struct _Jv_ifaces): New declaration.
5693 JV_CLASS: New macro definition.
5694 (getComponentType): Relocate below isArray() for inlining.
5695 (getModifiers): Declare `inline'.
5696 (getSuperclass): Ditto.
5698 (isPrimitive): Ditto.
5699 (_Jv_IsAssignableFrom): New prototype.
5700 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5702 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5703 Check for JV_STATE_DONE before invoking initializeClass().
5704 (_Jv_PrepareConstantTimeTables): New prototype.
5705 (_Jv_GetInterfaces): Ditto.
5706 (_Jv_GenerateITable): Ditto.
5707 (_Jv_GetMethodString): Ditto.
5708 (_Jv_AppendPartialITable): Ditto.
5709 (_Jv_FindIIndex): Ditto.
5710 depth, ancestors, idt: New class fields.
5712 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5713 inline function `_Jv_IsAssignableFrom'. Use that function.
5714 (isInstance): Declare `inline'.
5715 (initializeClass): Get lock on class before checking `state'. Unlock
5716 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5718 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5719 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5720 class->depth and ancestor table.
5721 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5722 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5723 _Jv_IsAssignableFrom.
5724 (_Jv_CheckArrayStore): Ditto.
5725 (_Jv_LookupInterfaceMethodIdx): New function.
5726 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5727 (_Jv_PrepareConstantTimeTables): New function.
5728 (_Jv_IndexOf): Ditto.
5729 (_Jv_GetInterfaces): Ditto.
5730 (_Jv_GenerateITable): Ditto.
5731 (_Jv_GetMethodString): Ditto.
5732 (_Jv_AppendPartialITable): Ditto.
5733 iindex_mutex, iindex_mutex_initialized: New static fields.
5734 (_Jv_FindIIndex): New function.
5736 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5738 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5739 (_Jv_CheckArrayStore): Ditto.
5740 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5741 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5742 Moved to gcj/array.h.
5743 (_Jv_Realloc): New function.
5745 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5747 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5748 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5749 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5750 JvNewDoubleArray): Implementations moved from prims.cc and
5753 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5755 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5757 2000-03-06 Tom Tromey <tromey@cygnus.com>
5759 * jni.cc (MARK_NONE): New define.
5760 (MARK_USER): Likewise.
5761 (MARK_SYSTEM): Likewise.
5762 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5764 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5765 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5766 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5767 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5769 (call): Use MARK_SYSTEM.
5770 (_Jv_GetJNIEnvNewFrame): New function.
5771 (_Jv_LookupJNIMethod): New function.
5772 (_Jv_JNI_PopSystemFrame): New function.
5773 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5775 2000-03-05 Tom Tromey <tromey@cygnus.com>
5777 Fix for PR libgcj/43:
5778 * include/Makefile.in: Rebuilt.
5779 * include/Makefile.am (include_HEADERS): New define.
5781 2000-03-05 Anthony Green <green@redhat.com>
5783 * gcj/javaprims.h ("Java"): Remove FirstThread.
5785 * configure.host: Fix __NO_MATH_INLNES botch.
5787 * Makefile.in: Rebuilt.
5788 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5789 (gnu/gcj/runtime/FirstThread.h): Moved.
5790 (ordinary_java_source_files): Move FirstThread.java.
5791 * prims.cc: Deal with FirstThread movement.
5793 (_Jv_RunMain): Ditto.
5795 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5796 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5798 2000-03-05 Warren Levy <warrenl@cygnus.com>
5800 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5801 Handle null addresses.
5803 2000-03-04 Anthony Green <green@redhat.com>
5805 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5808 2000-03-04 Anthony Green <green@redhat.com>
5810 * configure: Rebuilt.
5811 * configure.in (ZLIBTESTSPEC): New macro.
5812 (GCTESTSPEC): New macro.
5813 (LIBGCJTESTSPEC): New macro.
5814 * libgcj-test.spec.in: New file.
5816 2000-03-02 Tom Tromey <tromey@cygnus.com>
5818 * include/java-interp.h: Don't include MethodInvocation.h.
5819 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5820 * Makefile.in: Rebuilt.
5821 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5822 (ordinary_java_source_files): Don't mention
5823 MethodInvocation.java.
5824 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5825 * interpret.cc (MethodInvocation::continue1): Removed.
5826 (run): Handle exceptions here.
5827 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5829 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5831 (defineClass2): Removed.
5833 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5835 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5837 (hack_call): Removed.
5839 * java/lang/Class.h (Class): Removed hackRunInitializers,
5841 * java/lang/natClass.cc (hackRunInitializers): Removed.
5842 (initializeClass): Catch exceptions here.
5843 Include ExceptionInInitializerError.h.
5844 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5847 * java/lang/Object.h (Object): Don't mention hack12_6.
5848 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5850 * java/lang/Object.java (hack12_6): Removed.
5852 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5853 (start): Use run_, not run__.
5854 * java/lang/Thread.java (run_): Renamed from run__; old run_
5857 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5858 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5859 (_Jv_JNI_DefineClass): Likewise.
5860 (_Jv_JNI_ThrowNew): Likewise.
5861 (_Jv_JNI_AllocObject): Likewise.
5862 (_Jv_JNI_GetAnyMethodID): Likewise.
5863 (_Jv_JNI_CallAnyMethodV): Likewise.
5864 (_Jv_JNI_CallAnyMethodA): Likewise.
5865 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5866 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5867 (_Jv_JNI_GetAnyFieldID): Likewise.
5868 (_Jv_JNI_NewString): Likewise.
5869 (_Jv_JNI_NewStringUTF): Likewise.
5870 (_Jv_JNI_GetStringUTFChars): Likewise.
5871 (_Jv_JNI_NewObjectArray): Likewise.
5872 (_Jv_JNI_NewPrimitiveArray): Likewise.
5873 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5874 (_Jv_JNI_GetStringRegion): Likewise.
5875 (_Jv_JNI_GetStringUTFRegion): Likewise.
5876 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5877 (_Jv_JNI_MonitorEnter): Likewise.
5878 (_Jv_JNI_MonitorExit): Likewise.
5879 (_Jv_JNI_ToReflectedField): Likewise.
5880 (_Jv_JNI_ToReflectedMethod): Likewise.
5881 (_Jv_JNI_RegisterNatives): Likewise.
5882 (_Jv_JNI_AttachCurrentThread): Likewise.
5883 (_Jv_JNI_DestroyJavaVM): Likewise.
5885 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5887 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5888 error caused by the incorrect casting of a long to an int.
5890 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5892 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5893 SIGSEV caused by use of the wrong instance variable.
5895 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5897 * java/io/File.java (File(String, String)): For dirPath, treat an
5898 empty String the same as `null'.
5900 2000-02-26 Anthony Green <green@cygnus.com>
5902 * gnu/gcj/io/MimeTypes.java: Test for null.
5904 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5905 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5907 * java/net/URLConnection.java: Update copyright notice.
5909 2000-02-25 Tom Tromey <tromey@cygnus.com>
5911 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5914 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5916 * java/net/URLConnection.java (initializeDateFormats): New
5918 (getHeaderFieldDate): Call initializeDateFormats if required.
5919 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5921 Fix for PR libgcj/38.
5923 2000-02-24 Warren Levy <warrenl@cygnus.com>
5925 * java/math/BigInteger.java(ival): Made private.
5929 2000-02-20 Anthony Green <green@cygnus.com>
5931 * Makefile.in: Rebuilt.
5932 * Makefile.am (ordinary_java_source_files): Add
5933 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5935 * scripts/MakeDefaultMimeTypes.java: New file.
5936 * scripts/mime.types: New file.
5937 * scripts/classes.pl: Moved from top level.
5938 * classes.pl: Moved to scripts directory.
5940 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5942 * gnu/gcj/io/MimeTypes.java: New file.
5943 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5945 2000-02-20 Tom Tromey <tromey@cygnus.com>
5947 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5949 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5951 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5954 2000-02-18 Tom Tromey <tromey@cygnus.com>
5956 * include/jvm.h (_Jv_GetJavaVM): Declare.
5957 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5958 (_Jv_MethodBase::get_method): New method.
5959 (_Jv_JNIMethod::set_function): New method.
5960 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5961 (_Jv_JNI_RegisterNatives): New function.
5962 (_Jv_JNIFunctions): Updated for new functions.
5963 (_Jv_GetJavaVM): New function.
5964 (_Jv_JNI_GetJavaVM): Use it. Now static.
5965 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5966 is already a Java thread but does not have a JNIEnv yet.
5968 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5971 2000-02-17 Tom Tromey <tromey@cygnus.com>
5973 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5976 2000-02-16 Tom Tromey <tromey@cygnus.com>
5978 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5980 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5981 (_Jv_JNI_NewObject): Likewise.
5982 (_Jv_JNI_NewObjectA): Likewise.
5983 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5984 as "return" type to _Jv_CallAnyMethodA.
5985 (_Jv_JNI_CallAnyMethodA): Likewise.
5986 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5988 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5991 2000-02-15 Tom Tromey <tromey@cygnus.com>
5993 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5995 (init_cif): Added `rtype_p' argument.
5996 * include/java-interp.h (class _Jv_MethodBase): Added
5998 (class _Jv_InterpMethod): Removed args_raw_size.
5999 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6000 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6001 class pointer as well as the ordinary arguments.
6003 * jni.cc (mangled_name): Skip leading `(' in signature.
6005 * jni.cc (add_char): Added missing `else'.
6007 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6010 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6014 * java/lang/natRuntime.cc (_load): Include library path with
6017 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6020 * java/lang/natThread.cc (dumpStack): Removed.
6021 * java/lang/Thread.java (dumpStack): Implemented.
6023 2000-02-15 Tom Tromey <tromey@cygnus.com>
6025 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6026 with `lib' for loadLibrary. Fixes PR gcj/150.
6028 2000-02-14 Warren Levy <warrenl@cygnus.com>
6030 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6032 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6036 (modPow): Rewritten to not use the naive, slow, brute force approach.
6037 (isProbablePrime): Implemented.
6038 (testBit): Implemented.
6039 (flipBit): Implemented.
6040 (getLowestSetBit): Implemented.
6042 2000-02-16 Anthony Green <green@redhat.com>
6044 * configure.host: Use the same options for i386 and i486 as we do
6047 2000-02-12 Tom Tromey <tromey@cygnus.com>
6049 * java/io/File.java (createTempFile): Use low bits from counter,
6052 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6054 * THANKS: More thanks.
6056 2000-02-11 Tom Tromey <tromey@cygnus.com>
6058 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6059 astore instruction. From Hans Boehm.
6061 2000-02-11 Warren Levy <warrenl@cygnus.com>
6063 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6064 (BigInteger(String)): New constructor.
6065 (not): Rewritten using version from Kawa's BitOps class.
6066 (valueOf): New private methods from Kawa's BitOps class.
6073 (andNot): Implemented.
6074 (clearBit): Implemented.
6075 (setBit): Implemented.
6076 (bitCount): Implemented.
6077 (toByteArray): Implemented.
6079 2000-02-11 Tom Tromey <tromey@cygnus.com>
6081 * java/io/File.java (nextValue): Now synchronized.
6083 2000-02-10 Tom Tromey <tromey@cygnus.com>
6085 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6086 * java/io/FileDescriptor.java (EXCL): New static field.
6087 * java/io/File.java (tmpdir): New static field.
6088 (createTempFile): New method.
6089 (nextValue): New method.
6090 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6093 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6094 (jboolean): Declare as an attributed int, not a bool.
6095 (_Jv_func): Declare differently for C.
6097 * gnu/gcj/jni/natNativeThread.cc: New file.
6098 * gnu/gcj/jni/NativeThread.java: New file.
6099 * java/lang/Thread.java (data): Now a RawData.
6100 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6102 * Makefile.in: Rebuilt.
6103 * Makefile.am (java/lang/Thread.h): New target.
6104 (ordinary_java_source_files): Added NativeThread.java.
6105 (nat_source_files): Added natNativeThread.cc.
6106 * java/lang/natThread.cc: Include <jni.h>
6107 (struct natThread): Added `jni_env' field.
6108 (_Jv_GetCurrentJNIEnv): New function.
6109 (_Jv_SetCurrentJNIEnv): Likewise.
6110 (initialize_native): Initialize jni_env.
6112 * jni.cc (ThreadGroupClass): New define.
6113 (_Jv_JNI_InvokeFunctions): New structure.
6114 (JNI_GetCreatedJavaVMs): New function.
6115 (the_vm): New global.
6116 (JNI_GetDefaultJavaVMInitArgs): New function.
6117 Include NativeThread.h.
6118 (NativeThreadClass): New define.
6119 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6120 (_Jv_JNI_DestroyJavaVM): New function.
6121 (_Jv_JNI_AttachCurrentThread): New function.
6122 (_Jv_JNI_DetachCurrentThread): New function.
6123 (_Jv_JNI_GetEnv): New function.
6124 (JNI_CreateJavaVM): New function.
6125 (_Jv_JNI_GetJavaVM): New function.
6126 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6127 * include/jni.h (JavaVMAttachArgs): New structure.
6128 (JNI_EDETACHED): New define.
6129 (JNI_EVERSION): Likewise.
6130 (JavaVM): Define properly.
6131 (struct JNIInvokeInterface): New structure.
6132 (class _Jv_JavaVM): New class.
6133 (JNI_OnLoad, JNI_OnUnload): Declare.
6134 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6135 JNI_GetCreatedJavaVMs): Declare.
6136 (JavaVMInitArgs): New typedef.
6137 (JavaVMOption): Likewise.
6138 (JNI_ERR): New define.
6141 2000-02-10 Andrew Haley <aph@cygnus.com>
6143 * interpret.cc: Don't include fdlibm.h.
6144 Replace #if with #ifdef throughout.
6145 Declare extern __ieee754_fmod.
6146 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6148 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6149 Search class hierarchy for superclass vtable.
6151 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6152 off the end of a pointer list.
6154 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6158 2000-02-09 Tom Tromey <tromey@cygnus.com>
6160 * java/lang/natRuntime.cc (_load): Call add_library.
6161 (loadLibraryInternal): Likewise.
6163 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6164 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6165 (Output_iconv::finalize): Likewise.
6167 2000-02-08 Tom Tromey <tromey@cygnus.com>
6169 * java/util/Properties.java (setProperty): New method.
6170 (store): New method.
6172 2000-02-07 Tom Tromey <tromey@cygnus.com>
6174 * java/lang/Runtime.java (_load): Declare.
6175 (load, loadLibrary): Wrote in terms of _load.
6176 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6178 (loadLibrary): Likewise.
6180 (_load): New method.
6181 (loadLibrary, load): Removed.
6183 * jni.cc (ThrowableClass): New define.
6184 (_Jv_JNI_Throw): Check argument.
6185 (_Jv_JNI_ThrowNew): Likewise.
6186 (wrap_value): Don't wrap object if it is NULL.
6187 (_Jv_JNI_DefineClass): Use wrap_value.
6188 (_Jv_JNI_FindClass): Likewise.
6189 (_Jv_JNI_GetSuperclass): Likewise.
6190 (_Jv_JNI_ExceptionOccurred): Likewise.
6191 (_Jv_JNI_AllocObject): Likewise.
6192 (_Jv_JNI_GetObjectClass): Likewise.
6193 (_Jv_JNI_NewString): Likewise.
6194 (_Jv_JNI_NewStringUTF): Likewise.
6195 (_Jv_JNI_NewObjectArray): Likewise.
6196 (_Jv_JNI_GetObjectArrayElement): Likewise.
6197 (_Jv_JNI_NewPrimitiveArray): Likewise.
6198 (_Jv_JNI_ToReflectedField): Likewise.
6199 (_Jv_JNI_ToReflectedMethod): Likewise.
6200 (_Jv_JNI_AllocObject): Check argument.
6201 (_Jv_JNI_NewObjectV): Likewise.
6202 (_Jv_JNI_NewObject): Likewise.
6203 (_Jv_JNI_NewObjectA): Likewise.
6204 (_Jv_JNI_GetObjectClass): Likewise.
6205 (_Jv_JNI_GetField): Likewise.
6206 (_Jv_JNI_SetField): Likewise.
6208 * interpret.cc (PUSHL): Don't use expression statement.
6213 * jni.cc (add_char): Conditional on INTERPRETER.
6214 (mangled_name): Likewise.
6216 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6218 (class _Jv_JNIMethod): Likewise.
6220 2000-02-04 Warren Levy <warrenl@cygnus.com>
6222 * Makefile.am: Added MPN.java and BigInteger.java.
6223 * Makefile.in: Rebuilt.
6224 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6226 * java/math/BigInteger.java: New file. Based primarily on
6227 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6229 2000-02-04 Tom Tromey <tromey@cygnus.com>
6231 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6233 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6234 if the method is native.
6235 * resolve.cc (ncode): Don't handle native methods.
6236 (_Jv_JNIMethod::ncode): New method.
6237 (_Jv_PrepareClass): Handle native methods.
6238 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6239 Include AbstractMethodError.h.
6240 (add_char): New function.
6241 (mangled_name): Likewise.
6242 * include/java-interp.h (class _Jv_JNIMethod): New class.
6243 (class _Jv_MethodBase): New class.
6244 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6245 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6248 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6249 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6250 libraries): New globals.
6251 (add_library): New function.
6252 (_Jv_FindSymbolInExecutable): New function.
6254 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6257 2000-02-04 Andrew Haley <aph@cygnus.com>
6259 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6260 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6261 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6262 printStackTrace to printRawStackTrace.
6264 2000-02-03 Tom Tromey <tromey@cygnus.com>
6266 * java/util/Calendar.java (toString): New method.
6267 * java/util/SimpleTimeZone.java (clone): New method.
6268 (toString): New method.
6269 * java/util/TimeZone.java (clone): New method.
6270 * java/text/SimpleDateFormat.java (clone): New method.
6271 * java/text/NumberFormat.java (clone): New method.
6272 (equals): New method.
6273 * java/text/Format.java (clone): New method.
6274 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6276 (clone): New method.
6277 * java/text/DateFormat.java (clone): New method.
6278 * java/text/Collator.java (clone): New method.
6280 2000-02-03 Tom Tromey <tromey@cygnus.com>
6282 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6285 2000-02-01 Tom Tromey <tromey@cygnus.com>
6287 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6288 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6289 constructing the closure if the function is native.
6290 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6291 a template function, #if'd out, or static.
6292 Include <java-interp.h>.
6294 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6296 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6298 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6299 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6301 (wrap_value): New function.
6302 (_Jv_JNI_CallAnyMethodV): Use it.
6303 (_Jv_JNI_CallAnyMethodA): Likewise.
6304 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6305 (_Jv_JNI_GetStaticField): Likewise.
6307 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6308 (_Jv_JNI_GetStaticField): Likewise.
6310 2000-01-31 Tom Tromey <tromey@cygnus.com>
6312 * prims.cc (_Jv_MallocUnchecked): New function.
6313 (main_init): Call _Jv_JNI_Init.
6314 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6315 (_Jv_JNI_Init): Declare.
6316 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6318 (_Jv_JNI_NewGlobalRef): New function.
6319 (_Jv_JNI_DeleteGlobalRef): New function.
6320 (_Jv_JNI_DeleteLocalRef): New function.
6321 (_Jv_JNI_conversion_call): Initialize and clear local reference
6323 (_Jv_JNI_NewLocalRef): New function.
6324 (struct _Jv_JNI_LocalFrame): New structure.
6325 (_Jv_JNI_PushLocalFrame): New function.
6326 (_Jv_JNI_EnsureLocalCapacity): New function.
6327 (FRAME_SIZE): New define.
6328 (_Jv_JNI_GetStringChars): Mark string, not characters.
6329 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6330 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6331 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6333 (_Jv_JNI_DefineClass): Make return value a local ref.
6334 (_Jv_JNI_FindClass): Likewise.
6335 (_Jv_JNI_GetSuperclass): Likewise.
6336 (_Jv_JNI_ExceptionOccurred): Likewise.
6337 (_Jv_JNI_AllocObject): Likewise.
6338 (_Jv_JNI_GetObjectClass): Likewise.
6339 (_Jv_JNI_CallAnyMethodV): Likewise.
6340 (_Jv_JNI_NewString): Likewise.
6341 (_Jv_JNI_NewStringUTF): Likewise.
6342 (_Jv_JNI_NewObjectArray): Likewise.
6343 (_Jv_JNI_GetObjectArrayElement): Likewise.
6344 (_Jv_JNI_ToReflectedField): Likewise.
6345 (_Jv_JNI_ToReflectedMethod): Likewise.
6346 (_Jv_JNIFunctions): Updated table for new functions.
6347 (_Jv_JNI_Init): New function.
6348 (mark_for_gc): Wrote.
6349 (unmark_for_gc): Wrote.
6350 * include/jni.h (struct JNINativeInterface): Removed name from
6351 PopLocalFrame parameter.
6352 (class _Jv_JNIEnv): Added `locals' field.
6354 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6356 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6359 2000-01-30 Tom Tromey <tromey@cygnus.com>
6361 * include/config.h.in: Rebuilt.
6362 * acconfig.h (HAVE_ICONV): Define.
6363 * configure: Rebuilt.
6364 * configure.in: Check for `iconv' function.
6365 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6366 no specific encoder exists.
6367 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6368 no specific encoder exists.
6369 * Makefile.in: Rebuilt.
6370 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6372 (nat_source_files): Added natIconv.cc.
6373 * gnu/gcj/convert/natIconv.cc: New file.
6374 * gnu/gcj/convert/Input_iconv.java: New file.
6375 * gnu/gcj/convert/Output_iconv.java: New file.
6377 2000-01-28 Tom Tromey <tromey@cygnus.com>
6379 * Makefile.in: Rebuilt.
6380 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6382 2000-01-26 Tom Tromey <tromey@cygnus.com>
6384 * gcj/method.h (JvNumMethods): Moved from Class.h.
6385 (JvGetFirstMethod): Likewise.
6386 * java/lang/Class.h (Object): Updated decl of
6387 _Jv_JNI_ToReflectedField.
6388 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6389 * Makefile.in: Rebuilt.
6390 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6391 argument of _Jv_JNI_ToReflectedField.
6392 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6394 (java/lang/reflect/Method.h): Likewise.
6395 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6397 (jweak): New typedef.
6398 (struct JNINativeInterface): Correctly declare remaining entries.
6399 * jni.cc: Include Class.h, ClassLoader.h.
6400 (_Jv_JNI_FindClass): New function.
6401 (_Jv_JNI_DefineClass): New function.
6402 (_Jv_JNI_conversion_call): New function.
6403 (_Jv_JNI_FindClass): Use current class loader to find class.
6404 (_Jv_JNI_ExceptionCheck): New function.
6405 (_Jv_JNI_FromReflectedField): Now static.
6406 (MethodClass): New define.
6407 (_Jv_JNI_FromReflectedMethod): New function.
6408 (_Jv_JNI_ToReflectedMethod): Likewise.
6410 (_Jv_JNI_IsAssignableFrom): Renamed.
6411 (_Jv_JNI_GetStringRegion): New function.
6412 Include StringIndexOutOfBoundsException.h.
6413 (_Jv_JNI_GetStringUTFRegion): New function.
6414 (_Jv_JNIFunctions): Updated for new functions.
6415 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6416 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6417 (_Jv_JNI_GetStringCritical): New function.
6418 (_Jv_JNI_ReleaseStringCritical): Likewise.
6419 (get_throwable): Removed.
6420 (GCJ_JV_JNIENV_FRIEND): Removed.
6421 (__GCJ_JNI_IMPL__): Define.
6424 * resolve.cc (get_ffi_type_from_signature): Handle case where
6427 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6429 * interpret.cc (run): Don't call println.
6430 Don't include PrintStream.h.
6432 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6433 nameIndex. Use "jint" as type for boffset.
6434 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6436 (Class): Likewise. Also changed type of method_count,
6437 vtable_method_count, size_in_bytes, field_count,
6438 static_field_count, interface_count.
6439 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6442 2000-01-21 Tom Tromey <tromey@cygnus.com>
6444 * java/lang/reflect/natConstructor.cc (newInstance): Use
6446 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6447 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6448 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6451 (invoke): Use _Jv_CallAnyMethodA.
6453 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6454 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6456 (struct _Jv_Method): Added getNextMethod method.
6457 (JvNumMethods): New function.
6458 (JvGetFirstMethod): Likewise.
6459 * gcj/field.h (JvGetFirstStaticField): New function.
6460 (JvNumStaticFields): Likewise.
6461 (getNextField): Renamed from getNextInstanceField.
6462 (struct _Jv_Field): New method getClass.
6463 * jni.cc: Wrote many new functions.
6464 * include/jni.h (JNI_TRUE): Define.
6465 (JNI_FALSE): Likewise.
6466 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6467 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6468 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6469 (jfieldID, jmethodID): Likewise.
6470 (JNI_COMMIT, JNI_ABORT): New defines.
6471 (JNINativeMethod): New struct.
6472 (struct JNINativeInterface): Correctly declared more entries.
6473 (class _Jv_JNIEnv): Added `ex' member.
6474 (JNI_VERSION_1_1): New define.
6475 (JNI_VERSION_1_2): Likewise.
6477 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6478 getNextInstanceField.
6480 2000-01-20 Tom Tromey <tromey@cygnus.com>
6482 * resolve.cc (StringClass): Removed.
6483 * defineclass.cc (StringClass): Removed.
6485 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6489 2000-01-19 Tom Tromey <tromey@cygnus.com>
6491 * interpret.cc (PC_REGISTER_ASM): Removed.
6493 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6494 From Bryce McKinlay.
6496 * All files: Updated copyright to reflect Cygnus purchase.
6498 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6500 * configure: Rebuilt.
6501 * configure.in: Recognize --disable-interpreter.
6503 2000-01-18 Andrew Haley <aph@cygnus.com>
6505 * name-finder.cc (lookup): Check for dladdr function.
6506 acconfig.h (HAVE_DLADDR): Add.
6507 configure.in: Check for HAVE_DLADDR
6509 include/config.h.in: Rebuilt.
6511 2000-01-17 Andrew Haley <aph@cygnus.com>
6513 * prims.cc (_Jv_RunMain): Set the name of this executable.
6515 2000-01-17 Tom Tromey <tromey@cygnus.com>
6517 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6518 when backtrace can't be computed.
6520 * configure: Rebuilt.
6521 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6523 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6524 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6525 (_Jv_FindClassInCache): Likewise.
6526 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6527 (findSystemClass): Try to load class from compiled module.
6529 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6530 (loadLibrary): Likewise.
6531 (lt_preloaded_symbols): Define.
6532 (loadLibraryInternal): New method.
6533 * include/config.h.in: Rebuilt.
6534 * acconfig.h (USE_LTDL): Added.
6535 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6536 (INCLUDES): Added $(INCLTDL).
6537 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6538 (libgcj_la_LIBADD): Likewise.
6539 * aclocal.m4, configure: Rebuilt.
6540 * configure.in: Added libltdl support.
6542 2000-01-15 Tom Tromey <tromey@cygnus.com>
6544 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6546 2000-01-14 Andrew Haley <aph@cygnus.com>
6548 * java/lang/natThrowable.cc: New file.
6550 * java/lang/Throwable.java (fillInStackTrace): Make native.
6551 (printStackTrace): Call native method to do this.
6552 (Throwable): Call fillInStackTrace.
6553 (stackTrace): New variable.
6555 * include/jvm.h: Add _Jv_ThisExecutable functions.
6557 * prims.cc: (_Jv_execName): New variable.
6558 (catch_segv): Call fillInStackTrace.
6560 (_Jv_ThisExecutable): New functions.
6561 (JvRunMain): Set the name of this executable.
6563 * Makefile.am: Add java/lang/natThrowable.cc.
6565 * Makefile.in: Rebuilt.
6567 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6569 * configure.in: Force link with __frame_state_for in
6570 FORCELIBGCCSPEC. Add new checks for backtrace.
6571 * include/config.h.in: Rebuilt.
6573 * name-finder.cc: New file.
6574 * include/name-finder.h: New file.
6576 2000-01-16 Anthony Green <green@cygnus.com>
6578 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6581 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6583 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6585 2000-01-13 Tom Tromey <tromey@cygnus.com>
6587 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6588 not system loader, as initiating loader.
6590 2000-01-11 Tom Tromey <tromey@cygnus.com>
6592 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6593 HP/UX. From David Scott Urban.
6595 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6597 * java/lang/natMath.cc (pow): Cast args to `double', not
6600 (IEEEremainder): Likewise.
6601 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6602 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6604 2000-01-09 Anthony Green <green@cygnus.com>
6606 * java/lang/natString.cc (init): Test for overflow condition
6607 during out of bounds check.
6608 (getChars): Throw StringIndexOutOfBoundsException, not
6609 ArrayIndexOutOfBoundsException.
6611 (regionMatches): Obey case option during string comparison.
6613 * configure.host (ligcj_interpreter): New variable. Enable
6614 interpreter by default on IA-32.
6615 * configure.in: Examine libgcj_interpreter.
6616 * configure: Rebuilt.
6618 2000-01-07 Tom Tromey <tromey@cygnus.com>
6620 * mauve-libgcj: Don't disable ClassTest.
6622 * java/lang/natClass.cc (getClasses): Wrote.
6624 2000-01-06 Tom Tromey <tromey@cygnus.com>
6626 * java/lang/natClass.cc (_getConstructors): Correctly check
6627 whether method name is the init name.
6628 (getMethod): Look at accflags on method in `klass', not `this'.
6630 2000-01-05 Tom Tromey <tromey@cygnus.com>
6632 * java/lang/natClass.cc (getMethod): Compute offset relative to
6633 `klass's methods table, not `this's table.
6635 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6636 In unwrapping/widening case, check whether `k' is null, not
6637 whether it is primitive. Initialize `num' from `argelts', not
6638 `paramelts'. Correct create and pass arguments to ffi_call.
6639 Don't let presence of `this' argument affect index used to look in
6641 (COPY): Set appropriate element in `values' vector.
6643 * java/lang/natClass.cc: Include <gcj/method.h>.
6645 * java/lang/Class.h (_getMethods): Correctly declare as private,
6648 * java/lang/Class.h (_getMethods): Declare.
6649 * java/lang/Class.java (_getMethods): Declare.
6650 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6651 (getDeclaredClasses): Always return empty array.
6652 (_getMethods): New method.
6653 (getMethods): Wrote.
6654 (getDeclaredMethod): Return `rmethod'.
6655 (finit_name): New global.
6656 (getDeclaredMethods): Check for finit_name.
6657 (_getMethods): Likewise.
6658 (getMethod): Only return public methods.
6660 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6661 jboolean and select correct ffi type on that basis.
6662 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6663 Constructor call always has `void' return type.
6665 2000-01-04 Tom Tromey <tromey@cygnus.com>
6667 * java/lang/Class.h (getSignature): Updated.
6668 * java/lang/Class.java (getSignature): Updated.
6669 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6671 (getConstructor): Ensure constructor is public.
6672 (_getConstructors): Check for public-ness of constructor when
6673 `declared' is false, not when it is true.
6675 2000-01-04 Warren Levy <warrenl@cygnus.com>
6677 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6679 (receive): Set the sender's address in the DatagramPacket.
6681 2000-01-04 Tom Tromey <tromey@cygnus.com>
6683 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6684 declaring class as return_type argument to
6685 _Jv_CallNonvirtualMethodA.
6686 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6687 constructor case, create object and use it as `this' argument.
6688 * java/lang/Class.h (_getConstructors): Declare.
6689 (_getFields): Declare.
6690 * java/lang/Class.java (getConstructors): Wrote.
6691 (_getConstructors): New native method.
6692 (getDeclaredConstructors): Wrote.
6693 (_getFields): Declare new native method.
6694 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6696 (getMethod): Work correctly when class is primitive.
6697 (getDeclaredMethods): Likewise. Compute offset using `method',
6699 (getDeclaredMethod): Likewise.
6700 (getConstructor): Wrote.
6701 (ConstructorClass): New define.
6702 (getDeclaredConstructor): Wrote.
6703 (_getConstructors): New method.
6704 (_getFields): New method.
6707 * Makefile.in: Rebuilt.
6708 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6710 * prims.cc: Remove `#pragma implementation'.
6711 * gcj/array.h: Remove `#pragma interface'.
6713 * prims.cc (_Jv_equaln): New function.
6714 * java/lang/Class.java (getSignature): Declare.
6715 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6716 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6718 (getSignature): New method.
6719 (getDeclaredMethod): Wrote.
6721 Include StringBuffer.h.
6722 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6723 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6725 (getSignature): Declare.
6726 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6727 (_Jv_equaln): Declare.
6728 (_Jv_CallNonvirtualMethodA): Declare.
6729 * Makefile.in: Rebuilt.
6730 * Makefile.am (nat_source_files): Added natConstructor.cc.
6731 (java/lang/reflect/Constructor.h): New target.
6732 * java/lang/reflect/natConstructor.cc: New file.
6733 * java/lang/reflect/Constructor.java (newInstance): Now native.
6734 (declaringClass): Renamed from decl_class.
6735 (offset): Renamed from index.
6736 (getType): New native method.
6737 (getModifiers): Now native.
6738 (getParameterTypes): Call getType if required.
6739 (hashCode): Include hash code from declaring class.
6740 (modifiers): Removed.
6741 (toString): Call getType if required.
6742 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6743 * java/lang/reflect/natMethod.cc (hack_call): New method.
6744 Removed `#if 0' around FFI code.
6745 Include <gnu/gcj/RawData.h>.
6746 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6747 IllegalArgumentException when argument object and class disagree.
6748 (_Jv_GetTypesFromSignature): New function.
6750 (ObjectClass): New define.
6751 (_Jv_CallNonvirtualMethodA): New function.
6752 * java/lang/reflect/Method.java (hack_trampoline): New method.
6753 (hack_call): New native method.