1 2000-02-16 Tom Tromey <tromey@cygnus.com>
3 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6 (_Jv_JNI_NewObject): Likewise.
7 (_Jv_JNI_NewObjectA): Likewise.
8 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
9 as "return" type to _Jv_CallAnyMethodA.
10 (_Jv_JNI_CallAnyMethodA): Likewise.
11 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
13 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
16 2000-02-15 Tom Tromey <tromey@cygnus.com>
18 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
20 (init_cif): Added `rtype_p' argument.
21 * include/java-interp.h (class _Jv_MethodBase): Added
23 (class _Jv_InterpMethod): Removed args_raw_size.
24 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
25 * jni.cc (call): Pass JNIEnv and (for static methods only) the
26 class pointer as well as the ordinary arguments.
28 * jni.cc (mangled_name): Skip leading `(' in signature.
30 * jni.cc (add_char): Added missing `else'.
32 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
35 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
39 * java/lang/natRuntime.cc (_load): Include library path with
42 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
45 * java/lang/natThread.cc (dumpStack): Removed.
46 * java/lang/Thread.java (dumpStack): Implemented.
48 2000-02-15 Tom Tromey <tromey@cygnus.com>
50 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
51 with `lib' for loadLibrary. Fixes PR gcj/150.
53 2000-02-14 Warren Levy <warrenl@cygnus.com>
55 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
57 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
61 (modPow): Rewritten to not use the naive, slow, brute force approach.
62 (isProbablePrime): Implemented.
63 (testBit): Implemented.
64 (flipBit): Implemented.
65 (getLowestSetBit): Implemented.
67 2000-02-16 Anthony Green <green@redhat.com>
69 * configure.host: Use the same options for i386 and i486 as we do
72 2000-02-12 Tom Tromey <tromey@cygnus.com>
74 * java/io/File.java (createTempFile): Use low bits from counter,
77 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
79 * THANKS: More thanks.
81 2000-02-11 Tom Tromey <tromey@cygnus.com>
83 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
84 astore instruction. From Hans Boehm.
86 2000-02-11 Warren Levy <warrenl@cygnus.com>
88 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
89 (BigInteger(String)): New constructor.
90 (not): Rewritten using version from Kawa's BitOps class.
91 (valueOf): New private methods from Kawa's BitOps class.
98 (andNot): Implemented.
99 (clearBit): Implemented.
100 (setBit): Implemented.
101 (bitCount): Implemented.
102 (toByteArray): Implemented.
104 2000-02-11 Tom Tromey <tromey@cygnus.com>
106 * java/io/File.java (nextValue): Now synchronized.
108 2000-02-10 Tom Tromey <tromey@cygnus.com>
110 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
111 * java/io/FileDescriptor.java (EXCL): New static field.
112 * java/io/File.java (tmpdir): New static field.
113 (createTempFile): New method.
114 (nextValue): New method.
115 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
118 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
119 (jboolean): Declare as an attributed int, not a bool.
120 (_Jv_func): Declare differently for C.
122 * gnu/gcj/jni/natNativeThread.cc: New file.
123 * gnu/gcj/jni/NativeThread.java: New file.
124 * java/lang/Thread.java (data): Now a RawData.
125 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
127 * Makefile.in: Rebuilt.
128 * Makefile.am (java/lang/Thread.h): New target.
129 (ordinary_java_source_files): Added NativeThread.java.
130 (nat_source_files): Added natNativeThread.cc.
131 * java/lang/natThread.cc: Include <jni.h>
132 (struct natThread): Added `jni_env' field.
133 (_Jv_GetCurrentJNIEnv): New function.
134 (_Jv_SetCurrentJNIEnv): Likewise.
135 (initialize_native): Initialize jni_env.
137 * jni.cc (ThreadGroupClass): New define.
138 (_Jv_JNI_InvokeFunctions): New structure.
139 (JNI_GetCreatedJavaVMs): New function.
140 (the_vm): New global.
141 (JNI_GetDefaultJavaVMInitArgs): New function.
142 Include NativeThread.h.
143 (NativeThreadClass): New define.
144 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
145 (_Jv_JNI_DestroyJavaVM): New function.
146 (_Jv_JNI_AttachCurrentThread): New function.
147 (_Jv_JNI_DetachCurrentThread): New function.
148 (_Jv_JNI_GetEnv): New function.
149 (JNI_CreateJavaVM): New function.
150 (_Jv_JNI_GetJavaVM): New function.
151 (_Jv_JNIFunctions): Added entry for GetJavaVM.
152 * include/jni.h (JavaVMAttachArgs): New structure.
153 (JNI_EDETACHED): New define.
154 (JNI_EVERSION): Likewise.
155 (JavaVM): Define properly.
156 (struct JNIInvokeInterface): New structure.
157 (class _Jv_JavaVM): New class.
158 (JNI_OnLoad, JNI_OnUnload): Declare.
159 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
160 JNI_GetCreatedJavaVMs): Declare.
161 (JavaVMInitArgs): New typedef.
162 (JavaVMOption): Likewise.
163 (JNI_ERR): New define.
166 2000-02-10 Andrew Haley <aph@cygnus.com>
168 * interpret.cc: Don't include fdlibm.h.
169 Replace #if with #ifdef throughout.
170 Declare extern __ieee754_fmod.
171 (continue1): Remove op_getfield, op_getstatic, op_putfield,
173 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
174 Search class hierarchy for superclass vtable.
176 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
177 off the end of a pointer list.
179 * java/lang/natThread.cc (stop): Don't abort, throw an exception
183 2000-02-09 Tom Tromey <tromey@cygnus.com>
185 * java/lang/natRuntime.cc (_load): Call add_library.
186 (loadLibraryInternal): Likewise.
188 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
189 iconv_close when handle is not NULL. Thanks to Andrew Haley.
190 (Output_iconv::finalize): Likewise.
192 2000-02-08 Tom Tromey <tromey@cygnus.com>
194 * java/util/Properties.java (setProperty): New method.
197 2000-02-07 Tom Tromey <tromey@cygnus.com>
199 * java/lang/Runtime.java (_load): Declare.
200 (load, loadLibrary): Wrote in terms of _load.
201 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
203 (loadLibrary): Likewise.
206 (loadLibrary, load): Removed.
208 * jni.cc (ThrowableClass): New define.
209 (_Jv_JNI_Throw): Check argument.
210 (_Jv_JNI_ThrowNew): Likewise.
211 (wrap_value): Don't wrap object if it is NULL.
212 (_Jv_JNI_DefineClass): Use wrap_value.
213 (_Jv_JNI_FindClass): Likewise.
214 (_Jv_JNI_GetSuperclass): Likewise.
215 (_Jv_JNI_ExceptionOccurred): Likewise.
216 (_Jv_JNI_AllocObject): Likewise.
217 (_Jv_JNI_GetObjectClass): Likewise.
218 (_Jv_JNI_NewString): Likewise.
219 (_Jv_JNI_NewStringUTF): Likewise.
220 (_Jv_JNI_NewObjectArray): Likewise.
221 (_Jv_JNI_GetObjectArrayElement): Likewise.
222 (_Jv_JNI_NewPrimitiveArray): Likewise.
223 (_Jv_JNI_ToReflectedField): Likewise.
224 (_Jv_JNI_ToReflectedMethod): Likewise.
225 (_Jv_JNI_AllocObject): Check argument.
226 (_Jv_JNI_NewObjectV): Likewise.
227 (_Jv_JNI_NewObject): Likewise.
228 (_Jv_JNI_NewObjectA): Likewise.
229 (_Jv_JNI_GetObjectClass): Likewise.
230 (_Jv_JNI_GetField): Likewise.
231 (_Jv_JNI_SetField): Likewise.
233 * interpret.cc (PUSHL): Don't use expression statement.
238 * jni.cc (add_char): Conditional on INTERPRETER.
239 (mangled_name): Likewise.
241 * include/java-interp.h (class _Jv_MethodBase): Conditional on
243 (class _Jv_JNIMethod): Likewise.
245 2000-02-04 Warren Levy <warrenl@cygnus.com>
247 * Makefile.am: Added MPN.java and BigInteger.java.
248 * Makefile.in: Rebuilt.
249 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
251 * java/math/BigInteger.java: New file. Based primarily on
252 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
254 2000-02-04 Tom Tromey <tromey@cygnus.com>
256 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
258 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
259 if the method is native.
260 * resolve.cc (ncode): Don't handle native methods.
261 (_Jv_JNIMethod::ncode): New method.
262 (_Jv_PrepareClass): Handle native methods.
263 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
264 Include AbstractMethodError.h.
265 (add_char): New function.
266 (mangled_name): Likewise.
267 * include/java-interp.h (class _Jv_JNIMethod): New class.
268 (class _Jv_MethodBase): New class.
269 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
270 (_Jv_InterpClass): Changed `interpreted_methods' field to type
273 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
274 * java/lang/natRuntime.cc (libraries_size, libraries_count,
275 libraries): New globals.
276 (add_library): New function.
277 (_Jv_FindSymbolInExecutable): New function.
279 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
282 2000-02-04 Andrew Haley <aph@cygnus.com>
284 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
285 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
286 * java/lang/natThrowable.cc (printRawStackTrace): Rename
287 printStackTrace to printRawStackTrace.
289 2000-02-03 Tom Tromey <tromey@cygnus.com>
291 * java/util/Calendar.java (toString): New method.
292 * java/util/SimpleTimeZone.java (clone): New method.
293 (toString): New method.
294 * java/util/TimeZone.java (clone): New method.
295 * java/text/SimpleDateFormat.java (clone): New method.
296 * java/text/NumberFormat.java (clone): New method.
297 (equals): New method.
298 * java/text/Format.java (clone): New method.
299 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
302 * java/text/DateFormat.java (clone): New method.
303 * java/text/Collator.java (clone): New method.
305 2000-02-03 Tom Tromey <tromey@cygnus.com>
307 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
310 2000-02-01 Tom Tromey <tromey@cygnus.com>
312 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
313 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
314 constructing the closure if the function is native.
315 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
316 a template function, #if'd out, or static.
317 Include <java-interp.h>.
319 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
321 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
323 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
324 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
326 (wrap_value): New function.
327 (_Jv_JNI_CallAnyMethodV): Use it.
328 (_Jv_JNI_CallAnyMethodA): Likewise.
329 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
330 (_Jv_JNI_GetStaticField): Likewise.
332 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
333 (_Jv_JNI_GetStaticField): Likewise.
335 2000-01-31 Tom Tromey <tromey@cygnus.com>
337 * prims.cc (_Jv_MallocUnchecked): New function.
338 (main_init): Call _Jv_JNI_Init.
339 * include/jvm.h (_Jv_MallocUnchecked): Declare.
340 (_Jv_JNI_Init): Declare.
341 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
343 (_Jv_JNI_NewGlobalRef): New function.
344 (_Jv_JNI_DeleteGlobalRef): New function.
345 (_Jv_JNI_DeleteLocalRef): New function.
346 (_Jv_JNI_conversion_call): Initialize and clear local reference
348 (_Jv_JNI_NewLocalRef): New function.
349 (struct _Jv_JNI_LocalFrame): New structure.
350 (_Jv_JNI_PushLocalFrame): New function.
351 (_Jv_JNI_EnsureLocalCapacity): New function.
352 (FRAME_SIZE): New define.
353 (_Jv_JNI_GetStringChars): Mark string, not characters.
354 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
355 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
356 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
358 (_Jv_JNI_DefineClass): Make return value a local ref.
359 (_Jv_JNI_FindClass): Likewise.
360 (_Jv_JNI_GetSuperclass): Likewise.
361 (_Jv_JNI_ExceptionOccurred): Likewise.
362 (_Jv_JNI_AllocObject): Likewise.
363 (_Jv_JNI_GetObjectClass): Likewise.
364 (_Jv_JNI_CallAnyMethodV): Likewise.
365 (_Jv_JNI_NewString): Likewise.
366 (_Jv_JNI_NewStringUTF): Likewise.
367 (_Jv_JNI_NewObjectArray): Likewise.
368 (_Jv_JNI_GetObjectArrayElement): Likewise.
369 (_Jv_JNI_ToReflectedField): Likewise.
370 (_Jv_JNI_ToReflectedMethod): Likewise.
371 (_Jv_JNIFunctions): Updated table for new functions.
372 (_Jv_JNI_Init): New function.
373 (mark_for_gc): Wrote.
374 (unmark_for_gc): Wrote.
375 * include/jni.h (struct JNINativeInterface): Removed name from
376 PopLocalFrame parameter.
377 (class _Jv_JNIEnv): Added `locals' field.
379 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
381 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
384 2000-01-30 Tom Tromey <tromey@cygnus.com>
386 * include/config.h.in: Rebuilt.
387 * acconfig.h (HAVE_ICONV): Define.
388 * configure: Rebuilt.
389 * configure.in: Check for `iconv' function.
390 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
391 no specific encoder exists.
392 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
393 no specific encoder exists.
394 * Makefile.in: Rebuilt.
395 * Makefile.am (convert_source_files): Mention Input_iconv.java and
397 (nat_source_files): Added natIconv.cc.
398 * gnu/gcj/convert/natIconv.cc: New file.
399 * gnu/gcj/convert/Input_iconv.java: New file.
400 * gnu/gcj/convert/Output_iconv.java: New file.
402 2000-01-28 Tom Tromey <tromey@cygnus.com>
404 * Makefile.in: Rebuilt.
405 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
407 2000-01-26 Tom Tromey <tromey@cygnus.com>
409 * gcj/method.h (JvNumMethods): Moved from Class.h.
410 (JvGetFirstMethod): Likewise.
411 * java/lang/Class.h (Object): Updated decl of
412 _Jv_JNI_ToReflectedField.
413 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
414 * Makefile.in: Rebuilt.
415 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
416 argument of _Jv_JNI_ToReflectedField.
417 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
419 (java/lang/reflect/Method.h): Likewise.
420 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
422 (jweak): New typedef.
423 (struct JNINativeInterface): Correctly declare remaining entries.
424 * jni.cc: Include Class.h, ClassLoader.h.
425 (_Jv_JNI_FindClass): New function.
426 (_Jv_JNI_DefineClass): New function.
427 (_Jv_JNI_conversion_call): New function.
428 (_Jv_JNI_FindClass): Use current class loader to find class.
429 (_Jv_JNI_ExceptionCheck): New function.
430 (_Jv_JNI_FromReflectedField): Now static.
431 (MethodClass): New define.
432 (_Jv_JNI_FromReflectedMethod): New function.
433 (_Jv_JNI_ToReflectedMethod): Likewise.
435 (_Jv_JNI_IsAssignableFrom): Renamed.
436 (_Jv_JNI_GetStringRegion): New function.
437 Include StringIndexOutOfBoundsException.h.
438 (_Jv_JNI_GetStringUTFRegion): New function.
439 (_Jv_JNIFunctions): Updated for new functions.
440 (_Jv_JNI_GetPrimitiveArrayCritical): New function
441 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
442 (_Jv_JNI_GetStringCritical): New function.
443 (_Jv_JNI_ReleaseStringCritical): Likewise.
444 (get_throwable): Removed.
445 (GCJ_JV_JNIENV_FRIEND): Removed.
446 (__GCJ_JNI_IMPL__): Define.
449 * resolve.cc (get_ffi_type_from_signature): Handle case where
452 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
454 * interpret.cc (run): Don't call println.
455 Don't include PrintStream.h.
457 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
458 nameIndex. Use "jint" as type for boffset.
459 * java/lang/Class.h (struct _Jv_Method): Made accflags a
461 (Class): Likewise. Also changed type of method_count,
462 vtable_method_count, size_in_bytes, field_count,
463 static_field_count, interface_count.
464 * gcj/array.h (__JArray): Made `length' a const jsize, not an
467 2000-01-21 Tom Tromey <tromey@cygnus.com>
469 * java/lang/reflect/natConstructor.cc (newInstance): Use
471 * include/jvm.h: Declare _Jv_CallAnyMethodA.
472 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
473 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
476 (invoke): Use _Jv_CallAnyMethodA.
478 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
479 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
481 (struct _Jv_Method): Added getNextMethod method.
482 (JvNumMethods): New function.
483 (JvGetFirstMethod): Likewise.
484 * gcj/field.h (JvGetFirstStaticField): New function.
485 (JvNumStaticFields): Likewise.
486 (getNextField): Renamed from getNextInstanceField.
487 (struct _Jv_Field): New method getClass.
488 * jni.cc: Wrote many new functions.
489 * include/jni.h (JNI_TRUE): Define.
490 (JNI_FALSE): Likewise.
491 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
492 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
493 jcharArray, jfloatArray, jdoubleArray): New typedefs.
494 (jfieldID, jmethodID): Likewise.
495 (JNI_COMMIT, JNI_ABORT): New defines.
496 (JNINativeMethod): New struct.
497 (struct JNINativeInterface): Correctly declared more entries.
498 (class _Jv_JNIEnv): Added `ex' member.
499 (JNI_VERSION_1_1): New define.
500 (JNI_VERSION_1_2): Likewise.
502 * boehm.cc (_Jv_MarkObj): Use getNextField, not
503 getNextInstanceField.
505 2000-01-20 Tom Tromey <tromey@cygnus.com>
507 * resolve.cc (StringClass): Removed.
508 * defineclass.cc (StringClass): Removed.
510 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
514 2000-01-19 Tom Tromey <tromey@cygnus.com>
516 * interpret.cc (PC_REGISTER_ASM): Removed.
518 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
521 * All files: Updated copyright to reflect Cygnus purchase.
523 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
525 * configure: Rebuilt.
526 * configure.in: Recognize --disable-interpreter.
528 2000-01-18 Andrew Haley <aph@cygnus.com>
530 * name-finder.cc (lookup): Check for dladdr function.
531 acconfig.h (HAVE_DLADDR): Add.
532 configure.in: Check for HAVE_DLADDR
534 include/config.h.in: Rebuilt.
536 2000-01-17 Andrew Haley <aph@cygnus.com>
538 * prims.cc (_Jv_RunMain): Set the name of this executable.
540 2000-01-17 Tom Tromey <tromey@cygnus.com>
542 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
543 when backtrace can't be computed.
545 * configure: Rebuilt.
546 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
548 * java/lang/Runtime.java (loadLibraryInternal): Declare.
549 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
550 (_Jv_FindClassInCache): Likewise.
551 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
552 (findSystemClass): Try to load class from compiled module.
554 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
555 (loadLibrary): Likewise.
556 (lt_preloaded_symbols): Define.
557 (loadLibraryInternal): New method.
558 * include/config.h.in: Rebuilt.
559 * acconfig.h (USE_LTDL): Added.
560 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
561 (INCLUDES): Added $(INCLTDL).
562 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
563 (libgcj_la_LIBADD): Likewise.
564 * aclocal.m4, configure: Rebuilt.
565 * configure.in: Added libltdl support.
567 2000-01-15 Tom Tromey <tromey@cygnus.com>
569 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
571 2000-01-14 Andrew Haley <aph@cygnus.com>
573 * java/lang/natThrowable.cc: New file.
575 * java/lang/Throwable.java (fillInStackTrace): Make native.
576 (printStackTrace): Call native method to do this.
577 (Throwable): Call fillInStackTrace.
578 (stackTrace): New variable.
580 * include/jvm.h: Add _Jv_ThisExecutable functions.
582 * prims.cc: (_Jv_execName): New variable.
583 (catch_segv): Call fillInStackTrace.
585 (_Jv_ThisExecutable): New functions.
586 (JvRunMain): Set the name of this executable.
588 * Makefile.am: Add java/lang/natThrowable.cc.
590 * Makefile.in: Rebuilt.
592 * acconfig.h: Add HAVE_PROC_SELF_EXE.
594 * configure.in: Force link with __frame_state_for in
595 FORCELIBGCCSPEC. Add new checks for backtrace.
596 * include/config.h.in: Rebuilt.
598 * name-finder.cc: New file.
599 * include/name-finder.h: New file.
601 2000-01-16 Anthony Green <green@cygnus.com>
603 * java/lang/StringBuffer.java (StringBuffer): Don't special case
606 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
608 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
610 2000-01-13 Tom Tromey <tromey@cygnus.com>
612 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
613 not system loader, as initiating loader.
615 2000-01-11 Tom Tromey <tromey@cygnus.com>
617 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
618 HP/UX. From David Scott Urban.
620 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
622 * java/lang/natMath.cc (pow): Cast args to `double', not
625 (IEEEremainder): Likewise.
626 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
627 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
629 2000-01-09 Anthony Green <green@cygnus.com>
631 * java/lang/natString.cc (init): Test for overflow condition
632 during out of bounds check.
633 (getChars): Throw StringIndexOutOfBoundsException, not
634 ArrayIndexOutOfBoundsException.
636 (regionMatches): Obey case option during string comparison.
638 * configure.host (ligcj_interpreter): New variable. Enable
639 interpreter by default on IA-32.
640 * configure.in: Examine libgcj_interpreter.
641 * configure: Rebuilt.
643 2000-01-07 Tom Tromey <tromey@cygnus.com>
645 * mauve-libgcj: Don't disable ClassTest.
647 * java/lang/natClass.cc (getClasses): Wrote.
649 2000-01-06 Tom Tromey <tromey@cygnus.com>
651 * java/lang/natClass.cc (_getConstructors): Correctly check
652 whether method name is the init name.
653 (getMethod): Look at accflags on method in `klass', not `this'.
655 2000-01-05 Tom Tromey <tromey@cygnus.com>
657 * java/lang/natClass.cc (getMethod): Compute offset relative to
658 `klass's methods table, not `this's table.
660 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
661 In unwrapping/widening case, check whether `k' is null, not
662 whether it is primitive. Initialize `num' from `argelts', not
663 `paramelts'. Correct create and pass arguments to ffi_call.
664 Don't let presence of `this' argument affect index used to look in
666 (COPY): Set appropriate element in `values' vector.
668 * java/lang/natClass.cc: Include <gcj/method.h>.
670 * java/lang/Class.h (_getMethods): Correctly declare as private,
673 * java/lang/Class.h (_getMethods): Declare.
674 * java/lang/Class.java (_getMethods): Declare.
675 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
676 (getDeclaredClasses): Always return empty array.
677 (_getMethods): New method.
679 (getDeclaredMethod): Return `rmethod'.
680 (finit_name): New global.
681 (getDeclaredMethods): Check for finit_name.
682 (_getMethods): Likewise.
683 (getMethod): Only return public methods.
685 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
686 jboolean and select correct ffi type on that basis.
687 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
688 Constructor call always has `void' return type.
690 2000-01-04 Tom Tromey <tromey@cygnus.com>
692 * java/lang/Class.h (getSignature): Updated.
693 * java/lang/Class.java (getSignature): Updated.
694 * java/lang/natClass.cc (getSignature): Added `is_constructor'
696 (getConstructor): Ensure constructor is public.
697 (_getConstructors): Check for public-ness of constructor when
698 `declared' is false, not when it is true.
700 2000-01-04 Warren Levy <warrenl@cygnus.com>
702 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
704 (receive): Set the sender's address in the DatagramPacket.
706 2000-01-04 Tom Tromey <tromey@cygnus.com>
708 * java/lang/reflect/natConstructor.cc (newInstance): Pass
709 declaring class as return_type argument to
710 _Jv_CallNonvirtualMethodA.
711 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
712 constructor case, create object and use it as `this' argument.
713 * java/lang/Class.h (_getConstructors): Declare.
714 (_getFields): Declare.
715 * java/lang/Class.java (getConstructors): Wrote.
716 (_getConstructors): New native method.
717 (getDeclaredConstructors): Wrote.
718 (_getFields): Declare new native method.
719 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
721 (getMethod): Work correctly when class is primitive.
722 (getDeclaredMethods): Likewise. Compute offset using `method',
724 (getDeclaredMethod): Likewise.
725 (getConstructor): Wrote.
726 (ConstructorClass): New define.
727 (getDeclaredConstructor): Wrote.
728 (_getConstructors): New method.
729 (_getFields): New method.
732 * Makefile.in: Rebuilt.
733 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
735 * prims.cc: Remove `#pragma implementation'.
736 * gcj/array.h: Remove `#pragma interface'.
738 * prims.cc (_Jv_equaln): New function.
739 * java/lang/Class.java (getSignature): Declare.
740 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
741 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
743 (getSignature): New method.
744 (getDeclaredMethod): Wrote.
746 Include StringBuffer.h.
747 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
748 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
750 (getSignature): Declare.
751 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
752 (_Jv_equaln): Declare.
753 (_Jv_CallNonvirtualMethodA): Declare.
754 * Makefile.in: Rebuilt.
755 * Makefile.am (nat_source_files): Added natConstructor.cc.
756 (java/lang/reflect/Constructor.h): New target.
757 * java/lang/reflect/natConstructor.cc: New file.
758 * java/lang/reflect/Constructor.java (newInstance): Now native.
759 (declaringClass): Renamed from decl_class.
760 (offset): Renamed from index.
761 (getType): New native method.
762 (getModifiers): Now native.
763 (getParameterTypes): Call getType if required.
764 (hashCode): Include hash code from declaring class.
765 (modifiers): Removed.
766 (toString): Call getType if required.
767 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
768 * java/lang/reflect/natMethod.cc (hack_call): New method.
769 Removed `#if 0' around FFI code.
770 Include <gnu/gcj/RawData.h>.
771 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
772 IllegalArgumentException when argument object and class disagree.
773 (_Jv_GetTypesFromSignature): New function.
775 (ObjectClass): New define.
776 (_Jv_CallNonvirtualMethodA): New function.
777 * java/lang/reflect/Method.java (hack_trampoline): New method.
778 (hack_call): New native method.
780 1999-12-21 Per Bothner <per@bothner.com>
782 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
783 offset in new Method.
785 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
787 * java/lang/natObject.cc (notify): Throw message with
788 IllegalMonitorStateException.
791 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
792 (isInterrupted_): New function, which does clear interrupt_flag.
793 (interrupt): Use `isInterrupted_'.
794 * java/lang/natThread.cc (interrupt): Add comment.
795 (join): Set `prev' in joiner loop.
796 Change various calls to `isInterrupted' to use `isInterrupted_'.
797 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
798 on linux. Set result to 0 on an interrupt. Test interrupted status
799 of java Thread object directly.
800 FLAG_INTERRUPTED: removed.
801 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
802 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
803 (_Jv_InitThreads): Don't block SIGINT.
804 (_Jv_ThreadWait): Don't configure SIGINT handler.
806 1999-12-21 Tom Tromey <tromey@cygnus.com>
808 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
810 1999-12-20 Tom Tromey <tromey@cygnus.com>
812 * java/lang/reflect/Modifier.java (STRICT): New constant.
813 (isStrict): New method.
814 (toString): Added `strict'.
816 1999-12-23 Anthony Green <green@cygnus.com>
818 * configure: Rebuilt.
819 * configure.in (LIBDATASTARTSPEC): Force data_start in with
822 1999-12-19 Anthony Green <green@cygnus.com>
824 * libgcjdata.c: New file.
825 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
826 * configure: Rebuilt.
827 * configure.in (LIBDATASTARTSPEC): Force data with a known name
829 * Makefile.in: Rebuilt.
830 * Makefile.am: Build libgcjdata.a.
832 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
833 * configure: Rebuilt.
834 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
837 1999-12-17 Tom Tromey <tromey@cygnus.com>
839 * java/lang/reflect/Method.java (toString): Call getType if
840 required. Partial fix for PR libgcj/111. From Per Bothner.
842 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
844 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
846 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
847 null String constructor parameter.
848 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
849 for exception messages.
850 BooleanClass: declare.
851 (setOption): Use BooleanClass instead of Class.forName() for
853 (bind): Cast 4th parameter of setsockopt to `char *' for
854 compatibility with older Solaris headers.
855 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
856 sprintf calls for exception messages.
857 BooleanClass, IntegerClass: declare.
858 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
861 1999-12-15 Tom Tromey <tromey@cygnus.com>
863 * java/lang/natSystem.cc (init_properties): Don't set user.name or
864 user.home if NO_GETUID defined. Only set user.dir if getcwd
867 * include/config.h.in: Rebuilt.
868 * acconfig.h (NO_GETUID): New define.
869 * configure.in: Rebuilt.
870 * configure.in: Define NO_GETUID in cross case. Check for getcwd
873 1999-12-08 Tom Tromey <tromey@cygnus.com>
875 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
876 where no recursive mutexes exist. Fixes PR libgcj/117.
878 1999-12-05 Anthony Green <green@cygnus.com>
880 * include/jvm.h: Declare many functions with
881 __attribute__((__malloc__)).
882 * gcj/javaprims.h: Ditto.
884 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
886 * THANKS: Giving credit where credit is due.
888 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
890 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
892 * java/lang/natString.cc (equalsIgnoreCase): return false if
893 anotherString is null.
894 * java/lang/Boolean.java (valueOf): return FALSE if argument is
897 1999-11-30 Tom Tromey <tromey@cygnus.com>
899 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
900 mutex to initialize. Initialize `count' if required.
903 1999-11-27 Per Bothner <per@bothner.com>
905 * exception.cc: Remove prototype declarations for malloc and free.
906 These clash with recent versions of glibc, which specifies `throws ()'
907 when __cplusplus is defined. Instead, #include <stdlib.h>.
909 1999-11-24 Tom Tromey <tromey@cygnus.com>
911 * prims.cc (_Jv_NewObjectArray): Use
912 _Jv_GetArrayElementFromElementType.
913 (_Jv_NewPrimArray): Likewise.
914 * java/lang/natObject.cc (clone): Use
915 _Jv_GetArrayElementFromElementType instead of sizeof.
916 * java/lang/natSystem.cc (arraycopy): Use
917 _Jv_GetArrayElementFromElementType.
918 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
921 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
923 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
924 Exception messages. PR java.net/57.
925 (bind): set SO_REUSEADDR before bind.
926 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
927 overruns. PR java.net/57.
929 1999-11-19 Tom Tromey <tromey@cygnus.com>
931 * Makefile.am (DIVIDESPEC): Removed.
932 (EXCEPTIONSPEC): Removed.
934 1999-11-19 Andrew Haley <aph@cygnus.com>
936 * Makefile.am (JCFLAGS): Add -L$(here)
938 * Makefile.in: Rebuild.
940 1999-11-18 Tom Tromey <tromey@cygnus.com>
942 * java/lang/natDouble.cc: Include <config.h>.
944 * include/config.h.in: Rebuilt.
945 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
946 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
948 * configure: Rebuilt.
949 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
950 requested by configure.host. Don't put `-D' option into
951 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
953 * configure: Rebuilt.
954 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
957 1999-11-18 Andrew Haley <aph@cygnus.com>
959 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
960 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
962 * Makefile.in: Rebuild
963 * acconfig.h: remove SJLJ_EXCEPTIONS
964 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
965 Do not AC_DEFINE SJLJ_EXCEPTIONS.
966 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
967 * gcj/Makefile.in, include/Makefile.in: rebuild.
968 * include/config.h.in: remove SJLJ_EXCEPTIONS.
970 1999-11-18 Andrew Haley <aph@cygnus.com>
972 * gij.cc (main): Rename label to prevent conflict.
974 * exception.cc (_Jv_type_matcher): Don't check the table if we're
975 using setjmp/longjmp exceptions: there isn't one.
977 1999-11-17 Andrew Haley <aph@cygnus.com>
979 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
980 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
981 (__sjthrow): Add declaration.
982 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
986 * Makefile.in: Rebuild
987 * acconfig.h: Add SJLJ_EXCEPTIONS
988 * configure.in: Add SJLJ_EXCEPTIONS
989 * configure: Rebuild.
990 * gcj/Makefile.in: Rebuild.
991 * gcj/cni.h: Add support for sjlj-exceptions.
992 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
993 * include/Makefile.in: Rebuild.
994 * include/default-signal.h: Add support for sjlj-exceptions.
996 1999-11-18 Tom Tromey <tromey@cygnus.com>
998 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
1000 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
1002 (method_cache): Made larger.
1004 1999-11-11 Tom Tromey <tromey@cygnus.com>
1006 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
1007 initializing mutex. Initialize `count' when required.
1009 1999-11-07 Anthony Green <green@trip.cygnus.com>
1011 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
1014 1999-11-05 Tom Tromey <tromey@cygnus.com>
1016 * java/lang/natThread.cc (destroy): Removed incorrect comment.
1018 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
1020 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
1021 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
1024 1999-11-05 Tom Tromey <tromey@cygnus.com>
1026 * java/lang/natThread.cc (stop): Removed argument name.
1028 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
1029 `private'; now has default access.
1030 * Makefile.in: Rebuilt.
1031 * Makefile.am (java/lang/ThreadGroup.h): Removed.
1033 1999-11-04 Tom Tromey <tromey@cygnus.com>
1035 * java/lang/natClass.cc (method_cache_count): Removed.
1036 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
1037 (_Jv_AddMethodToCache): Don't loop.
1039 * configure.in: Removed `qt' threads case.
1040 * include/quick-threads.h: Removed.
1041 * quick-threads.cc: Removed.
1043 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
1044 (_Jv_ThreadDestroy): Likewise.
1045 * include/no-threads.h (_Jv_ThreadCancel): Removed.
1046 (_Jv_ThreadDestroy): Likewise.
1047 * include/posix-threads.h (struct _Jv_Thread_t): Removed
1049 (_Jv_ThreadCancel): Removed decl.
1050 (_Jv_ThreadDestroy): Removed.
1051 * posix-threads.cc (_Jv_ThreadCancel): Removed.
1052 (throw_cleanup): Removed.
1053 (really_start): Don't push or pop cleanup.
1054 (_Jv_ThreadInitData): Don't initialize `exception' field.
1055 * java/lang/Thread.java (stop): Officially unimplemented.
1056 * java/lang/natThread.cc (stop): Officially unimplemented.
1058 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1060 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
1063 1999-11-02 Tom Tromey <tromey@cygnus.com>
1065 * boehm.cc: Don't include boehm-config.h.
1067 1999-11-01 Tom Tromey <tromey@cygnus.com>
1069 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
1070 (sum_blocks): Removed.
1071 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
1073 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
1075 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
1077 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
1078 * java/io/InputStreamReader (InputStreamReader): ditto.
1080 1999-10-22 Tom Tromey <tromey@cygnus.com>
1082 * Makefile.in: Rebuilt.
1083 * Makefile.am (java/lang/ClassLoader.h): New target.
1084 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
1087 * include/java-props.h (_Jv_Compiler_Properties): Changed
1089 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
1090 * include/jvm.h (_Jv_GCSetInitialHeapSize,
1091 _Jv_GCSetMaximumHeapSize): Declare.
1092 (JvRunMain, _Jv_RunMain): Declare.
1093 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
1094 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
1095 (_Jv_GCSetMaximumHeapSize): Likewise.
1096 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
1097 (_Jv_GCSetMaximumHeapSize): Likewise.
1098 * prims.cc (parse_heap_size): New function.
1099 (_Jv_SetInitialHeapSize): Likewise.
1100 (_Jv_SetMaximumHeapSize): Likewise.
1101 (_Jv_Compiler_Properties): New global.
1102 * gij.cc (help): New function.
1103 (version): Likewise.
1104 (heap_size): Likewise.
1105 (heap_max_size): Likewise.
1106 (main): Parse arguments. Set _Jv_Compiler_Properties.
1107 Include <config.h>, <java-props.h>.
1108 (_Jv_Compiler_Properties): Removed.
1110 1999-10-18 Tom Tromey <tromey@cygnus.com>
1112 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
1114 (redirect): New static field.
1115 * java/lang/ClassLoader.java (getSystemClassLoader): Now
1117 (getVMClassLoader0): Removed.
1118 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
1119 (redirect): Removed.
1120 (getSystemClassLoader): Implemented.
1122 1999-10-16 Anthony Green <green@cygnus.com>
1124 * java/lang/ClassLoader.java (getSystemResource): Use
1125 getSystemClassLoader instead of ClassLoader.system.
1126 (getSystemResourceAsStream): Ditto.
1128 * java/lang/natClassLoader.cc (redirect): Make static and
1129 remove #ifdef INTERPRETER so it is always defined.
1130 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
1131 returns a VMClassLoader.
1133 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
1134 PropertyResourceBundle if a properties file is found before a
1135 ResourceBundle class.
1137 1999-10-15 Tom Tromey <tromey@cygnus.com>
1139 * gij.cc (main): Formatting fixes.
1140 (_Jv_Compiler_Properties): Define.
1141 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
1143 (init_properties): Set properites from _Jv_Compiler_Properties.
1144 * include/java-props.h (_Jv_Compiler_Properties,
1145 _Jv_Environment_Properties): Declare.
1147 * include/java-props.h: Added copyright.
1149 1999-10-13 Anthony Green <green@cygnus.com>
1151 * libtool-version: Catch up by incrementing current.
1153 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
1154 * configure, include/config.h.in: Rebuilt.
1155 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
1156 * configure.in: Added --disable-getenv-properties and new define
1157 `DISABLE_GETENV_PROPERTIES'.
1159 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
1160 (next_property_key): New function.
1161 (next_property_value): New function.
1162 (process_gcj_properties): New function.
1163 (JvRunMain): Call process_gcj_properties.
1164 (_JvRunMain): Ditto.
1166 * java/lang/natSystem.cc (init_properties): Set properties defined
1169 * include/java-props.h: New file.
1171 * java/lang/natSystem.cc (init_properties): Add new properties to
1172 conform with Java Product Versioning Specification.
1174 1999-10-12 Tom Tromey <tromey@cygnus.com>
1176 * configure: Rebuilt.
1177 * configure.in: Fixed test for --disable-java-net.
1179 1999-10-06 Tom Tromey <tromey@cygnus.com>
1181 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
1182 when building Canadian cross.
1183 (NATIVE): Don't define when cross-compiling.
1185 1999-10-04 Tom Tromey <tromey@cygnus.com>
1187 * java/net/natPlainSocketImpl.cc: Don't include headers if
1188 java.net is disabled.
1190 * Makefile.in: Rebuilt.
1191 * Makefile.am (ZINCS): Removed. This is defined in configure.in
1192 when needed, and must be left empty when not needed.
1194 1999-10-01 Anthony Green <green@cygnus.com>
1196 * THANKS: Refreshed from htdocs version.
1198 1999-10-01 Steve Chamberlain <sac@pobox.com>
1200 * Makefile.in: Rebuilt.
1201 * Makefile.am (ZINCS): Define
1203 * configure: Rebuilt.
1204 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1206 * java/lang/ieeefp.h: Add definitions for picoJava.
1208 1999-10-01 Tom Tromey <tromey@cygnus.com>
1210 * configure: Rebuilt.
1211 * configure.in: Set classpath when invoking gcj. Use changequote
1212 around sed invocation.
1214 * java/net/natPlainSocketImpl.cc: Stub native functions if
1215 DISABLE_JAVA_NET is defined.
1216 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1217 typo in exception string.
1218 (getTimeToLive): Likewise.
1219 Stub native functions if DISABLE_JAVA_NET is defined.
1220 * java/net/natInetAddress.cc: Stub native functions if
1221 DISABLE_JAVA_NET is defined.
1222 * configure.host: Disable java.net for mips-tx39.
1223 * configure, include/config.h.in: Rebuilt.
1224 * acconfig.h (DISABLE_JAVA_NET): Undefine.
1225 * configure.in: Added --disable-java-net and new define
1228 1999-09-30 Tom Tromey <tromey@cygnus.com>
1230 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1232 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1236 1999-09-28 Tom Tromey <tromey@cygnus.com>
1238 * configure: Rebuilt.
1239 * configure.in (PROCESS): In POSIX case, only set if not already
1241 * configure.host (PROCESS): Set in mips-tx39 case.
1243 * aclocal.m4, configure: Rebuilt.
1244 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1245 appropriate AC_PROG_ symbol.
1247 1999-09-24 Tom Tromey <tromey@cygnus.com>
1249 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1251 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1253 Fix for PR java.util/47:
1254 * configure, include/config.h: Rebuilt.
1255 * configure.in: Don't look for ctime or ctime_r.
1256 * Makefile.in: Rebuilt.
1257 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1258 * java/util/natDate.cc: Removed.
1259 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1261 (getAvailableIDs): Rewrote.
1262 (getTimeZone): Rewrote.
1263 * java/util/Date.java (toGMTString): New method.
1264 (toLocaleString): New method.
1265 (toString): Rewrote.
1267 1999-09-23 Tom Tromey <tromey@cygnus.com>
1269 * configure: Rebuilt.
1270 * configure.in: Print message when checking to see if gcj can
1271 handle -fuse-divide-subroutine.
1273 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1275 * java/lang/FirstThread.java (run0): Renamed to `run'.
1278 * prims.cc (main_init): New function.
1279 (JvRunMain): Call it.
1280 (_Jv_RunMain): Likewise.
1282 (main_init): Ignore SIGPIPE. Fixes PR 51.
1284 1999-09-22 Tom Tromey <tromey@cygnus.com>
1286 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1288 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1290 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1292 * java/text/NumberFormat.java: Check that object is a Number. If
1293 not, throw IllegialArgumentException.
1295 1999-09-21 Tom Tromey <tromey@cygnus.com>
1297 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1298 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1300 * include/posix-threads.h (_Jv_MutexDestroy): Use
1301 _Jv_PthreadGetMutex.
1302 (_Jv_MutexLock): Likewise.
1303 (_Jv_MutexUnlock): Likewise.
1305 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1306 previous patch; it too was incorrect.
1307 * java/io/PrintStream.java (PrintStream): Likewise.
1309 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1310 refer to `this' before calling superclass constructor.
1311 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1312 before calling superclass constructor.
1314 1999-09-20 Tom Tromey <tromey@cygnus.com>
1316 * configure: Rebuilt.
1317 * configure.in: Send output of `-fuse-divide-subroutine' test
1318 compilation to /dev/null.
1320 1999-09-14 Tom Tromey <tromey@cygnus.com>
1322 * include/java-insns.h: Turned constants into an enum. Added
1323 multiple-inclusion protection.
1325 1999-09-10 Tom Tromey <tromey@cygnus.com>
1327 * configure: Rebuilt.
1328 * configure.in: Build include/Makefile.
1329 * Makefile.in: Rebuilt.
1330 * Makefile.am (SUBDIRS): Added gcj and include.
1331 (install-data-local): New target.
1332 (extra_headers): New macro.
1333 * include/Makefile.in: New file.
1334 * include/Makefile.am: New file.
1336 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1337 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1339 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1340 * resolve.cc: Include config.h.
1341 * defineclass.cc: Include config.h.
1342 * include/java-interp.h: Don't include config.h.
1343 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1346 * gcj/javaprims.h: Regenerated namespace decls.
1347 * classes.pl (scan): Don't put `;' after closing brace.
1349 * Makefile.in: Rebuilt.
1350 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1351 * configure.in: Create gcj/Makefile.
1352 * gcj/Makefile.in: New file.
1353 * gcj/Makefile.am: New file.
1354 * java/lang/Object.h: Don't include any other headers.
1355 * gcj/array.h: Renamed from include/java-array.h.
1356 * gcj/field.h: Renamed from include/java-field.h.
1357 * gcj/method.h: Renamed from include/java-method.h.
1358 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1359 Updated all files to reflect new include structure.
1361 1999-09-09 Tom Tromey <tromey@cygnus.com>
1363 * configure: Rebuilt.
1364 * configure.in: Fixed typo; variable is THREADSPEC and not
1367 1999-09-08 Tom Tromey <tromey@cygnus.com>
1369 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1370 previous change and implemented a correct test in the __m_count
1373 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1376 1999-09-07 Tom Tromey <tromey@cygnus.com>
1378 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1379 code and don't set errno.
1381 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1382 not `r'. Changed `done_sleeping' to a `bool'.
1384 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1386 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1387 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1388 by another thread, rather than by the GC.
1389 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1390 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1391 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1394 1999-09-03 Tom Tromey <tromey@cygnus.com>
1396 * configure: Rebuilt.
1397 * configure.in: Check for fstat function.
1398 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1401 1999-09-02 Tom Tromey <tromey@cygnus.com>
1403 * include/java-array.h (jobjectArrayjchar): Removed unused
1406 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1407 _Jv_PrepareCompiledClass while holding class mutex.
1409 1999-09-01 Tom Tromey <tromey@cygnus.com>
1411 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1412 (_Jv_PthreadGetMutex): Use it.
1413 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1414 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1415 (_Jv_MutexLock): Likewise.
1416 (_Jv_MutexUnlock): Likewise.
1417 * include/config.h.in: Rebuilt.
1418 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1419 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1420 * configure: Rebuilt.
1421 * libgcj.spec.in: Don't mention INTERPSPEC.
1422 * configure.in (INTERPSPEC): Removed.
1423 Only run pthreads-related checks when using POSIX threads. Check
1424 for m_count and __m_count in mutex structure.
1426 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1428 * java/lang/natClass.cc: Fixed notification of threads
1429 when class initialization is complete.
1431 1999-09-01 Tom Tromey <tromey@cygnus.com>
1433 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1434 * resolve.cc: Removed constants defined by
1435 java.lang.reflect.Modifier.
1436 Include <java/lang/reflect/Modifier.h>.
1437 (_Jv_ResolvePoolEntry): Use values from Modifier.
1438 (_Jv_DetermineVTableIndex): Likewise.
1439 (_Jv_PrepareClass): Likewise.
1441 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1442 java.lang.reflect.Modifier.
1443 Include <java/lang/reflect/Modifier.h>.
1444 (checkExtends): Use values from Modifier.
1445 (checkImplements): Likewise.
1446 (handleField): Likewise.
1447 (handleConstantValueAttribute): Likewise.
1448 (handleFieldsEnd): Likewise.
1449 (handleMethod ): Likewise.
1450 (handleMethodsEnd): Likewise.
1451 (handleClassBegin): Likewise.
1452 * interpret.cc: Removed constants defined by
1453 java.lang.reflect.Modifier.
1454 (continue1): Use values from Modifier.
1455 * java/lang/natClassLoader.cc: Removed constants defined by
1456 java.lang.reflect.Modifier.
1458 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1459 JV_STATE_NOTHING, not `0'.
1460 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1462 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1463 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1465 (_Jv_PthreadGetMutex): New function.
1466 (_Jv_PthreadCheckMonitor): Use it.
1467 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1468 (_Jv_MutexLock): Update `count'.
1469 (_Jv_MutexUnlock): Likewise.
1470 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1473 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1475 * Makefile.am (.java.lo): Add rule.
1477 * Makefile.in: Rebuilt.
1479 1999-09-01 Tom Tromey <tromey@cygnus.com>
1481 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1482 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1484 (_Jv_CondNotify): Use it.
1485 (_Jv_CondNotifyAll): Likewise.
1487 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1489 1999-08-31 Tom Tromey <tromey@cygnus.com>
1491 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1494 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1496 * posix-threads.cc: Include <errno.h>.
1498 1999-08-23 Tom Tromey <tromey@cygnus.com>
1500 * boehm.cc: Undefine TRUE and FALSE.
1502 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1504 1999-08-21 Tom Tromey <tromey@cygnus.com>
1506 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1509 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1511 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1513 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1514 (HAVE_STRUCT_IP_MREQ): Added.
1515 * configure, include/config.h.in: Rebuilt.
1516 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1518 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1519 Disable if ip_mreq is not available.
1521 * configure.in: Check types ssize_t and in_addr_t.
1522 * acconfig.h: Undefine them.
1523 * configure, include/config.h.in: Rebuilt.
1525 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1526 function that detects the signature of getpwuid_r.
1527 (init_properties): Use it.
1528 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1531 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1533 * interpret.cc (continue1): Implement explicit dispatch table.
1534 insn_target: Explicit interpreter switch table.
1535 SAVE_PC: New macro, moves pc saving code into instructions that
1537 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1538 PC_REGISTER_ASM: New macro.
1539 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1540 opcode: Remove local variable.
1541 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1542 (POKEI): Use _Jv_word.
1543 (iinc): Use _Jv_word.
1544 (dupx): Change reference argument (sp) to pointer.
1547 * interpret.cc: Remove instruction timing instrumentation.
1549 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1550 comment. Don't use _Jv_ClassNameSamePackage.
1552 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1553 URLPathEntry, CacheEntry}: Removed.
1555 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1557 (.java.lo): Rule removed.
1559 * Makefile.in: Rebuilt.
1561 1999-08-19 Tom Tromey <tromey@cygnus.com>
1563 * java/lang/natThread.cc (class locker): New class.
1564 (join): Use a locker around _Jv_CondWait.
1567 1999-08-18 Tom Tromey <tromey@cygnus.com>
1569 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1570 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1572 1999-08-18 Tom Tromey <tromey@cygnus.com>
1574 * include/javaprims.h ("Java"): Regenerated namespace decls.
1576 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1578 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1579 from _Jv_InternClassStrings.
1581 * prims.cc (_Jv_RunMain): New function.
1582 (JvRunMain): Remove gij-support.
1584 * gij.cc (main): Use _Jv_RunMain.
1586 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1588 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1589 argument in temp variable.
1590 (continue1): For all op_x2y insns, use temp variable for
1591 intermediate value. Also remove some comments.
1593 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1594 (forName): Don't call _Jv_InitClass.
1596 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1598 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1600 * java/util/jar/JarInputStream.java: New file.
1602 * java/util/jar/JarEntry.java: New file.
1604 * java/util/jar/JarFile.java: New file.
1606 * java/net/URLClassLoader.java: New file.
1608 * java/net/JarURLConnection.java: New file.
1610 * gnu/gcj/protocol/jar/Handler.java: New file.
1612 * gnu/gcj/protocol/jar/Connection.java: New file.
1614 * java/security/SecureClassLoader.java: New file.
1616 * java/lang/ClassLoader.java (parent): New variable.
1617 (ClassLoader (ClassLoader)): new constructor.
1618 (findClass): New method.
1619 (loadClass): Add default 1.2 implementation.
1620 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1621 (readfully): Removed.
1623 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1624 (findSystemClass): New method.
1625 (VMClassLoader): Constructor rewritten.
1627 All other methods removed.
1629 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1630 to gnu::gcj::runtime::VMClassLoader.
1631 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1633 (VMClassLoader::findSystemClass): renamed from findBootClass.
1635 * Makefile.am: Add new files.
1636 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1638 * Makefile.in: Rebuilt.
1640 1999-08-17 Tom Tromey <tromey@cygnus.com>
1642 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1644 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1647 1999-08-16 Tom Tromey <tromey@cygnus.com>
1649 * configure: Rebuilt.
1650 * configure.in: Set DIVIDESPEC to empty string if compiler does
1651 not support -fuse-divide-subroutine.
1653 1999-08-14 Per Bothner <per@bothner.com>
1655 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1656 * java/lang/natClass.cc (initializeClass): Likewise.
1657 * java/lang/ClassLoader.java (resolveClass0): New static method.
1658 (resolveClass): Call resolveClass0.
1659 (findSystemClass): No longer static.
1661 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1663 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1665 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1667 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1670 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1672 * Makefile: Rebuilt.
1673 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1676 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1679 * configure: Rebuilt.
1680 * configure.in: Properly align --help output, fix capitalization
1682 * acinclude.m4: Likewise.
1684 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1686 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1688 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1689 (_Jv_callInterpretedMethod): Unused. Remove.
1690 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1692 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1693 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1694 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1695 * interpret.cc: use _Jv_word.
1696 * defineclass.cc: use_Jv_word.
1697 * resolve.cc: Use _Jv_word.
1698 (_Jv_ResolvePoolEntry): Return _Jv_word.
1699 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1700 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1702 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1705 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1707 * configure: Rebuilt.
1708 * configure.in (sched_yield): Try librt first, then libposix4.
1709 Add -lrt, -lposix4 to THREADSPEC.
1711 1999-08-08 Anthony Green <green@cygnus.com>
1713 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1715 1999-08-08 Anthony Green <green@cygnus.com>
1717 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1720 1999-08-08 Anthony Green <green@cygnus.com>
1724 * include/config.h.in: Rebuilt.
1725 * acconfig.h: Add INTERPRETER.
1727 * Makefile.in: Rebuilt.
1728 * Makefile.am (libffi_files): Identify the libffi object files for
1729 inclusion in libgcj.
1730 (LIBFFIINCS): Define.
1732 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1733 Dummy definition for configurations without an interpreter.
1735 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1736 java::lang::Boolean constructor.
1738 * include/java-interp.h: Always include java-cpool.h.
1740 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1741 when INTERPRETER not defined.
1743 * java/lang/Class.h (finalize): Define.
1745 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1746 IOException from File.getCanonicalPath.
1747 (getStream): Likewise.
1750 * THANKS: More thanks.
1752 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1754 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1756 (_Jv_PrepareClass): Allow non-abstract classes to
1757 have abstract subclasses.
1758 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1760 * interpret.cc (continue1/perform_invoke): Don't sign extend
1762 (continue1/lshl,lshr): Push long, not int.
1763 (continue1/ulshr): Use UINT64, not long long.
1764 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1766 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1767 * java/lang/FirstThread.java (run): Add top-level exception
1769 (run0): Renamed from run.
1771 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1773 * configure.in (--with-interpreter): Added.
1774 * include/config.h.in (INTERPRETER): Added.
1776 * java/lang/ClassLoader.java: File replaced.
1777 * java/lang/VMClassLoader.java: New file.
1778 * java/lang/natClassLoader.cc: New file.
1779 * gnu/gcj/runtime/MethodInvocation.java: New file.
1780 * gnu/gcj/util/path/SearchPath.java: New file.
1781 * gnu/gcj/util/path/PathEntry.java: New file.
1782 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1783 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1784 * gnu/gcj/util/path/URLPathEntry.java: New file.
1785 * gnu/gcj/util/path/CacheEntry.java: New file.
1786 * include/java-interp.h: New file.
1787 * include/java-cpool.h: New file.
1788 * include/java-insns.h: New file.
1789 * defineclass.cc: New file.
1790 * interpret.cc: New file.
1791 * resolve.cc: New file.
1793 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1794 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1795 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1797 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1798 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1800 (initializeClass): Use new JV_ prefixed names. Also, call
1801 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1803 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1804 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1805 JV_STATE_LINKED): New.
1806 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1807 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1808 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1809 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1810 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1811 _Jv_InterpMethodInvocation): New friends for interpreter.
1813 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1814 include/java-cpool.h and renamed with JV_ prefix.
1816 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1818 (_Jv_UnregisterClass): New decl.
1820 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1821 class loader argument.
1822 (_Jv_FindClass): Use class loader.
1824 * prims.cc (_Jv_makeUtf8Const): New function.
1825 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1826 (_Jv_NewPrimArray): Ditto.
1827 (_Jv_FindClassFromSignature): Ditto.
1828 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1829 * java/lang/reflect/natMethod.cc (getType): Ditto.
1831 * include/java-field.h (_Jv_Field::isRef): Make robust for
1832 non-resolved contexts.
1834 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1835 Also, don't mark class->next field.
1837 * java/lang/VirtualMachineError.java: Added FIXME note.
1839 * configure.in (INTERPSPEC): New spec.
1840 * libgcj.spec.in: Added INTERPSPEC.
1841 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1842 gnu/gcj/runtime/MethodInvocation.
1843 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1844 (ordinary_java_source_files): Added above mentioned java classes.
1846 * configure: Rebuilt.
1847 * Makefile.in: Rebuilt.
1849 1999-08-06 Tom Tromey <tromey@cygnus.com>
1851 * configure: Rebuilt.
1852 * configure.in: Look for sched_yield in -lrt.
1854 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1856 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1857 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1858 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1860 (toString): Print correctly when `country' is empty.
1862 1999-08-04 Per Bothner <per@bothner.com>
1864 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1866 1999-08-02 Tom Tromey <tromey@cygnus.com>
1868 * aclocal.m4, configure: Rebuilt for new libtool.
1870 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1872 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1873 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1874 * java/net/ServerSocket.java: Define ANY_IF.
1875 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1876 all network interfaces.
1877 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1878 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1880 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1882 * java/io/natFile.cc (performMkdir): Remove FIXME.
1883 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1885 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1887 * configure.in: Check for bstring.h.
1888 * configure, include/config.h.in: Rebuilt.
1889 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1890 * java/net/natPlainSocketImpl.cc: Likewise.
1892 1999-07-31 Tom Tromey <tromey@cygnus.com>
1897 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1899 * configure.in: Check for struct hostent_data and need for
1900 -D_REENTRANT for gethostbyname_r declaration.
1901 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1902 (lookup): Use hostent_data for fixed_buffer.
1903 * configure, include/config.h.in: Rebuilt.
1905 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1907 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1908 available. Don't cast memmove args to (void*).
1909 * configure.in: Do not abort if memmove is not available.
1911 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1913 * java/lang/natString.cc (substring): optimize where substring is
1915 * java/io/File.java (getName): don't return separator with file name.
1916 * java/io/natFile.cc (attr): fix overflow.
1918 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1920 * mauve-libgcj: Disable Object Serialization tests.
1922 1999-07-20 Warren Levy <warrenl@cygnus.com>
1924 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1925 Default to using PlainDatagramSocketImpl.
1926 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1928 1999-07-19 Tom Tromey <tromey@cygnus.com>
1930 * include/stamp-h.in: New file.
1932 1999-07-12 Tom Tromey <tromey@cygnus.com>
1934 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1937 1999-07-07 Andrew Haley <aph@cygnus.com>
1939 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1940 bytes to make it point after the instruction where the trap
1942 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1944 1999-07-07 Tom Tromey <tromey@cygnus.com>
1946 * mauve-libgcj: Explicitly enable formerly disabled java.text
1949 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1952 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1954 * java/net/URL.java (equals): Compare strings using String.equals.
1955 * java/net/URL.java (sameFile): Ditto.
1957 1999-07-02 Warren Levy <warrenl@cygnus.com>
1959 * configure: Rebuilt.
1960 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1961 * include/config.h.in: Rebuilt.
1962 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1963 (mcastGrp): Updated FIXME comments.
1964 (setOption): Fixed typo.
1965 (getOption):Implemented IP_MULTICAST_IF.
1967 1999-07-02 Warren Levy <warrenl@cygnus.com>
1969 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1970 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1971 (getTimeToLive): Implemented.
1972 (setOption): Implemented IP_MULTICAST_IF.
1974 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1976 * java/lang/String.java (toString): Check for this == null and throw
1977 NullPointerException.
1979 1999-07-01 Warren Levy <warrenl@cygnus.com>
1981 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1982 to count and revised comments to match.
1983 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1984 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1985 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1986 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1987 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1988 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1990 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1992 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1993 properly as count rather than outlength.
1994 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1995 output on overflow rather than buffer fill.
1996 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1997 if markPos is 0 and there is still room in the buffer.
1999 1999-07-01 Andrew Haley <aph@cygnus.com>
2001 * include/i386-signal.h: Replace sigaction () with __sigaction ().
2002 This is a workaround for a bug in glibc's pthreads package which
2003 doesn't deliver any sigcontext information to a signal handler.
2005 1999-06-24 Tom Tromey <tromey@cygnus.com>
2007 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
2008 * java/lang/fdlibm.h (HUGE): Conditionally define.
2010 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
2012 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
2013 * java/lang/e_log.c: Don't use __uint32_t.
2015 1999-05-27 Eric Christopher <echristo@cygnus.com>
2017 * configure: Rebuilt
2018 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
2019 * acconfig.h: Rebuilt
2020 * include/config.h.in: Rebuilt
2022 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
2023 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
2024 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
2025 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
2026 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
2027 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
2028 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
2029 and namespace collision with __uint32_t
2031 1999-06-23 Tom Tromey <tromey@cygnus.com>
2033 * java/util/zip/InflaterInputStream.java (read): Throw
2034 ZipException if inflater throws a DataFormatException.
2036 1999-06-23 Warren Levy <warrenl@cygnus.com>
2038 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
2039 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
2040 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
2041 is not final per JDK.
2042 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
2044 * java/util/zip/DataFormatException.java: Class extends Exception.
2045 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
2046 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
2047 * java/util/zip/ZipInputStream.java: ditto.
2048 (closeEntry): Changed method name to match JDK spec.
2050 1999-06-21 Tom Tromey <tromey@cygnus.com>
2052 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
2055 * Makefile.in: Rebuilt.
2056 * Makefile.am (toolexeclibdir): Define as libdir when
2058 * configure: Rebuilt.
2059 * configure.in (USE_LIBDIR): New conditional.
2061 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
2063 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
2064 hostname in returned InetAddress objects.
2065 (getLocalHostname): Fix typo.
2066 * java/net/InetAddress.java (getByName): Set hostname on return
2068 (getLocalHost): Call lookup directly to ensure that a fully-qualified
2071 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
2073 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
2074 interfaces if host==NULL.
2075 (accept): Throw message with InterruptedIOException.
2076 (getOption): Cache localAddress.
2077 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
2078 'address' for DatagramSocket.
2079 (setTimeToLive): Fix compiler warnings.
2080 (getOption): Cache localAddress.
2081 * java/net/Socket.java (getLocalAddress): Don't need local
2082 InetAddress object. Add FIXME comment about calling checkConnect().
2083 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
2084 connection queue to 50 as per JDK 1.2 docs.
2085 (ServerSocket(int,int)): Listen on all network interfaces by
2086 default, per JDK 1.2 docs.
2087 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
2088 Add localAddress caching.
2090 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2092 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
2094 (write(byte[],int,int)): ditto.
2096 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
2098 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
2100 1999-06-11 Warren Levy <warrenl@cygnus.com>
2102 * mauve-libgcj: Activated java.net Mauve tests.
2104 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
2106 * java/net/natInetAddress.cc (aton): Fix typos.
2107 (lookup): Use a bigger buffer size for gethostbyname_r on all
2108 versions of glibc. Updated FIXME comment explaining this.
2109 Modified while loops to not set herr = ERANGE to work around glibc
2110 problems. Use user specified hostname in InetAddress result when
2111 available (consistent with JDK).
2113 1999-06-10 Warren Levy <warrenl@cygnus.com>
2115 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
2116 Throw FileNotFoundException instead of IOException.
2118 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
2120 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
2121 in static field name.
2122 * java/text/DecimalFormat.java: Throw IllegalArgumentException
2123 throughout rather than ParseException.
2125 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
2127 * java/lang/Runtime.java (exec): Convert prog name and arguments
2129 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
2130 environment array conversion. Preserve current environment if envp
2131 not passed. Preserve PATH unless explicitly specified.
2132 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
2133 followed by EOF. Set a flag when a line is terminated by '\r' and
2134 ignore following '\n' if set.
2136 1999-06-02 Warren Levy <warrenl@cygnus.com>
2138 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
2139 Ignore context if spec is an absolute URL. Fix braindead
2141 (hashCode): Use JDK 1.2 style algorithm.
2142 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
2143 context URL properly.
2145 1999-05-30 Anthony Green <green@cygnus.com>
2147 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
2148 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
2150 1999-05-28 Warren Levy <warrenl@cygnus.com>
2152 * java/net/DatagramSocket.java (laddr): Removed.
2153 (DatagramSocket): Removed attempts to get or set laddr if null.
2154 (getLocalAddress): Reimplemented per spec.
2155 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
2157 (joinGroup): Throw NullPointerException if any argument is null.
2158 (leaveGroup): ditto.
2159 * java/net/PlainDatagramSocketImpl.java: Updated comments.
2160 * java/net/PlainSocketImpl.java (timeout): Added.
2161 (getInputStream): Added FIXME comment on how to support timeouts
2163 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
2164 * java/net/Socket.java: Added FIXME comments to identify
2165 conflicting specs between the JCL and JDK 1.2 documents.
2166 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
2167 if host is null. Get localport value resolved by kernel if bind
2169 (receive): Implemented support for timeouts in UDP.
2170 (setOption): Implemented based on natPlainSocketImpl version.
2172 * java/net/natPlainSocketImpl.cc (bind): Get localport value
2173 resolved by kernel if bind lport is 0.
2174 (connect): Get localport value resolved by kernel if bind wasn't
2175 done to set localport.
2176 (accept): Implemented support for timeouts for ServerSocket.
2177 (setOption): Save value for SO_TIMEOUT.
2178 (getOption): Return timeout for SO_TIMEOUT.
2180 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
2182 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
2183 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
2184 (setOption): Made abstract.
2185 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
2186 to avoid cpp conflicts in native code.
2187 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
2188 cpp conflicts in native code.
2189 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
2190 * java/net/Socket.java (getLocalAddress): Implemented.
2191 (setTcpNoDelay): Implemented.
2192 (getTcpNoDelay): Implemented.
2193 (setSoLinger): Implemented.
2194 (getSoLinger): Implemented.
2195 (getSoTimeout): Verify class type.
2196 (setSendBufferSize): Implemented.
2197 (getSendBufferSize): Implemented.
2198 (setReceiveBufferSize): Implemented.
2199 (getReceiveBufferSize): Implemented.
2200 (toString): Prepended "Socket".
2201 * java/net/SocketImpl.java (toString): Rewritten.
2202 (getOption): Made abstract.
2203 (setOption): Made abstract.
2204 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2205 (setOption): Implemented.
2206 (getOption): Implemented.
2208 1999-05-26 Warren Levy <warrenl@cygnus.com>
2210 * java/net/DatagramSocket.java (DatagramSocket): Get local host
2211 address when null. Set SO_REUSEADDR for multicasts.
2212 (getSoTimeout): Implemented.
2213 (setSoTimeout): Implemented.
2214 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2215 * java/net/MulticastSocket.java (getInterface): Implemented.
2216 (setInterface): Implemented.
2217 (setTimeToLive): Check for invalid ttl.
2218 (joinGroup): Verify multicast address and security.
2219 (leaveGroup): Verify multicast address and security.
2220 (send): Implemented.
2221 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2227 (getTTL): Implemented as non-native.
2231 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2232 (getSoTimeout): Implemented.
2233 (setSocketFactory): Made synchronized.
2234 * java/net/Socket.java (setSoTimeout): Implemented.
2235 (getSoTimeout): Implemented.
2236 (close): Made synchronized.
2237 (setSocketImplFactory): Made synchronized.
2238 * java/net/SocketImpl.java: Implement SocketOptions interface.
2239 * java/net/natInetAddress.cc: Corrected module name at top of file.
2240 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2241 (bind): Added FIXME.
2242 (peek): Implemented.
2248 (setOption): Implemented for SO_REUSEADDR.
2249 (getOption): Implemented for SO_REUSEADDR.
2251 1999-05-24 Tom Tromey <tromey@cygnus.com>
2253 * java/util/ResourceBundle.java (getBundle): Throw
2254 NullPointerException if baseName is null.
2256 1999-05-22 Tom Tromey <tromey@cygnus.com>
2258 * java/util/zip/ZipInputStream.java (fill): New method.
2259 (compressed_len): New instance variable.
2260 (getNextStream): Set it.
2261 (read): Reset inflater on EOF. Only read via `super' if entry is
2263 (skip): Only skip via `super' if entry is deflated.
2264 * java/util/zip/Deflater.java (last_input_count): Removed.
2265 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2267 (needsInput): Don't use last_input_count.
2268 (setInput): Don't set last_input_count.
2269 * java/util/zip/natInflater.cc (getRemaining): Return correct
2271 (inflate): Return 0 if input array is length 0.
2272 (setInput): Don't set last_input_count.
2273 * java/util/zip/Inflater.java (last_input_count): Removed.
2275 1999-05-21 Tom Tromey <tromey@cygnus.com>
2277 * Makefile.in: Rebuilt.
2278 * Makefile.am (INCLUDES): Added $(ZINCS).
2279 * configure: Rebuilt.
2280 * configure.in (ZINCS): New subst.
2282 1999-05-21 Andrew Haley <aph@cygnus.com>
2284 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2285 to signal options to allow the same exceptions to be rethrown
2288 1999-05-20 Andrew Haley <aph@cygnus.com>
2290 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2292 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2293 (INIT_FPE): Exception string made more informative.
2294 * include/sparc-signal.h (INIT_FPE): Exception string made more
2296 * testsuite/libjava.lang/Divide_1.java: New file.
2297 * testsuite/libjava.lang/Divide_1.out: New file.
2299 1999-05-19 Tom Tromey <tromey@cygnus.com>
2301 * aclocal.m4, configure: Rebuilt.
2302 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2304 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2307 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2309 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2311 (update): Fail in default case. Always initialize `strat'.
2313 * mauve-libgcj: Enable java.util.zip.
2315 1999-05-18 Warren Levy <warrenl@cygnus.com>
2317 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2318 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2319 PlainDatagramSocketImpl.java, and SocketOptions.java.
2320 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2321 * Makefile.in: Rebuilt.
2323 * java/net/DatagramPacket.java: New file.
2324 * java/net/DatagramSocket.java: New file.
2325 * java/net/DatagramSocketImpl.java: New file.
2326 * java/net/MulticastSocket.java: New file.
2327 * java/net/PlainDatagramSocketImpl.java: New file.
2328 * java/net/SocketOptions.java: New file.
2329 * java/net/natPlainDatagramSocketImpl.cc: New file.
2331 1999-05-18 Tom Tromey <tromey@cygnus.com>
2333 * java/util/zip/ZipOutputStream.java (level): Initial value is
2334 Deflater.DEFAULT_COMPRESSION.
2335 (close): New method.
2336 (closeEntry): Likewise.
2338 (put_version): Likewise.
2339 (write_entry): Likewise.
2340 (put2, put4): Now return `int'.
2341 (comment): Default to empty string.
2342 (bytes_written): New instance variable.
2344 * java/util/zip/ZipEntry.java (setComment): Limit length of
2346 (setCrc): Check CRC validity.
2347 (setExtra): Check argument validity.
2348 (setMethod): Likewise.
2349 (setSize): Likewise.
2350 (ZipEntry): Likewise.
2351 * include/javaprims.h: Updated namespace declarations.
2352 * Makefile.in: Rebuilt.
2353 * Makefile.am (ordinary_java_source_files): Mention new files.
2354 (nat_source_files): Likewise.
2355 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2358 (getInputStream): Handle compressed entries.
2359 * java/util/zip/GZIPOutputStream.java: New file.
2360 * java/util/zip/GZIPInputStream.java: New file.
2361 * java/util/zip/DataFormatException.java: New file.
2362 * java/util/zip/CheckedInputStream.java: New file.
2363 * java/util/zip/CheckedOutputStream.java: New file.
2364 * java/util/zip/InflaterInputStream.java: Implemented.
2365 * java/util/zip/natInflater.cc: New file.
2366 * java/util/zip/Deflater.java: Implemented.
2367 * java/util/zip/natDeflater.cc: New file.
2368 * java/util/zip/DeflaterOutputStream.java: Implemented.
2370 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2371 ZipException, not IOException.
2372 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2375 1999-05-17 Tom Tromey <tromey@cygnus.com>
2377 * java/lang/natSystem.cc (init_properties): URL now points to
2380 1999-05-12 Per Bothner <bothner@cygnus.com>
2382 * java/util/Calendar.java (set): First call computeFields if needed.
2383 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2385 1999-05-12 Tom Tromey <tromey@cygnus.com>
2387 * configure: Rebuilt.
2388 * configure.in: Look for -ldl when using the Boehm collector.
2389 Look for sched_yield in -lposix4.
2391 1999-05-12 Per Bothner <bothner@cygnus.com>
2393 * java/io/File.java (mkdirs): Handle a null parent directory.
2395 1999-05-12 Tom Tromey <tromey@cygnus.com>
2397 * include/javaprims.h: Updated namespace declarations.
2398 * classes.pl (scan): Uniquify class list.
2399 * Makefile.in, configure: Rebuilt.
2400 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2401 (built_java_source_files): New macro.
2402 (nat_headers): Added built_java_source_files.
2403 (javao_files): Likewise.
2404 (EXTRA_libgcj_la_SOURCES): Likewise.
2405 (libgcj.zip): Create built class files.
2406 ($(built_java_source_files:.java=.class)): New target.
2407 (jv_convert_LDADD): Added -L$(here)/.libs.
2408 * configure.in: Create links for ConcreteProcess.java and
2409 natConcreteProcess.cc.
2410 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2411 * java/lang/natEcosProcess.cc: New file.
2412 * java/lang/EcosProcess.java: New file.
2413 * java/lang/PosixProcess.java: New file.
2414 * java/lang/natPosixProcess.cc: New file.
2416 1999-05-12 Warren Levy <warrenl@cygnus.com>
2418 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2419 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2420 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2421 (connect): Throw ConnectException.
2423 1999-05-11 Tom Tromey <tromey@cygnus.com>
2425 * Makefile.in: Rebuilt.
2426 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2427 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2430 * Makefile.in: Rebuilt.
2431 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2432 and it causes problems with libtool.
2434 * Makefile.in, configure: Rebuilt.
2435 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2436 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2437 (jv_convert_DEPENDENCIES): Added ZDEPS.
2438 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2440 (THREADSPEC): Added `-L' to point to qthreads build directory.
2444 * configure, Makefile.in: Rebuilt.
2445 * Makefile.am (toolexeclib_DATA): New macro.
2446 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2447 Recognize --with-system-zlib.
2448 (GCSPEC): New subst.
2449 (THREADSPEC): New subst.
2450 (SYSTEMSPEC): New subst.
2451 (ZLIBSPEC): New subst.
2452 * libgcj.spec.in: New file.
2454 1999-05-10 Tom Tromey <tromey@cygnus.com>
2456 * java/io/InputStreamReader.java (read): If length is 0, return
2457 0. Reset `wpos' and `wcount' when buffer has been filled and
2460 * java/util/Properties.java (save): Removed `FIXME' comment.
2461 (load): Invalid characters in \u now treated as terminators.
2462 Make sure to append character resulting from `\' handling.
2463 Cast to `char' when appending to key or value.
2464 (skip_ws): Inverted test for whitespace.
2466 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2468 (readLine): Likewise.
2469 (readFully): Implemented.
2471 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2473 * java/awt/natToolkit.cc: Added copyright header.
2474 * java/util/zip/InflaterInputStream.java: Added copyright header.
2476 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2478 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2480 (getNextStream): Likewise.
2482 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2484 (getBundle): Don't explicitly throw null pointer exception.
2486 * gnu/gcj/RawData.java: Added copyright header.
2488 * include/jni.h (_Jv_va_list): Always define as va_list.
2490 1999-05-9 Anthony Green <green@cygnus.com>
2492 * java/text/DateFormat.java (computeInstance): Separate time
2494 (getDateTimeInstance): Ditto.
2495 (getDateTimeInstance(int,int)): New method.
2497 * Makefile.in: Rebuilt.
2498 * Makefile.am (ordinary_java_source_files): Add new classes.
2500 * java/util/PropertyResourceBundle.java: New file.
2501 * gnu/gcj/util/EnumerationChain.java: New file.
2503 1999-05-07 Tom Tromey <tromey@cygnus.com>
2505 * acconfig.h (GCJVERSION): New undef.
2506 * java/lang/natSystem.cc (init_properties): Define java.version,
2507 java.class.version, os.name, os.arch, os.version.
2508 Include <sys/utsname.h> if required.
2509 * configure: Rebuilt.
2510 * configure.in: Compute and define GCJVERSION.
2512 * java/lang/natSystem.cc (default_file_encoding): Now static.
2514 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2516 * libtool-version: New file.
2517 * Makefile.in: Rebuilt.
2518 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2521 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2522 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2525 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2526 (we pick those up already).
2528 1999-05-05 Per Bothner <bothner@cygnus.com>
2530 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2531 stub classes. (This is enough to get Kawa to compile against libgcj.)
2533 * gnu/gcj/RawData.java: New class.
2534 * doc/cni.sgml: Document RawData.
2536 * java/util/zip/InflaterInputStream.java: New stub class.
2537 * java/util/zip/ZipInputStream.java: New class. Partly works.
2538 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2539 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2540 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2541 * java/util/zip/ZipOutputStream.java: Start implementation.
2543 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2544 (default_file_encoding): New global, initial value is above macro.
2545 (init_properties): Default file.encoding to default_file_encoding.
2547 * Makefile.am: Add new classes.
2549 1999-05-05 Tom Tromey <tromey@cygnus.com>
2551 * Makefile.in: Rebuilt.
2552 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2553 (clean-local): New target
2555 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2556 (load, loadLibrary): Now native.
2558 * java/lang/Runtime.java (load, loadLibrary): Now native.
2559 (init): New native method.
2560 (Runtime): Use init.
2561 * prims.cc: Include <ltdl.h> if required.
2562 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2564 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2566 * configure.in: Switch from irix threads to posix threads
2567 * configure: Regenerate.
2569 1999-04-30 Tom Tromey <tromey@cygnus.com>
2571 * Makefile.in: Rebuilt.
2572 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2574 1999-04-29 Tom Tromey <tromey@cygnus.com>
2576 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2579 * java/util/Locale.java (Locale(String,String)): Implement in
2580 terms of 3-argument version; variant now defaults to empty
2582 (toString): Assume variant is not null.
2583 (equals): Assume all strings are not null.
2584 (Locale): Throw NullPointerException if any argument is null.
2586 * java/util/ResourceBundle.java (getBundle): Don't try the base
2587 name; now implicit in partialGetBundle call.
2588 (trySomeGetBundle): Search for parent bundles and call setParent
2590 (partialGetBundle): Added `langStop' argument. Use
2591 `Locale.toString' to compute bundleName.
2592 (resource_cache): New static field.
2593 (partialGetBundle): Cache the returned resource bundle. Now
2596 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2599 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2600 * java/text/natCollator.cc (decomposeCharacter): `base' now
2602 * Makefile.in: Rebuilt.
2603 * Makefile.am (ordinary_java_source_files): Added
2604 CollationElementIterator, CollationKey, Collator,
2606 (nat_source_files): Added natCollator.cc.
2607 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2608 (compare): Pass `this' to CollationElementIterator constructor.
2609 (getCollationElementIterator): Likewise.
2610 (ceiNext): Fix off-by-one error when finding initial substring.
2611 (next): Correctly mask off bits when computing return value.
2612 Fixed return values when one string is shorter than the other.
2613 * java/text/CollationElementIterator.java (collator): New field.
2614 (CollationElementIterator): Added collator argument.
2615 (next): Call ceiNext on collator object.
2617 1999-04-26 Tom Tromey <tromey@cygnus.com>
2619 * natCollator.cc: New file.
2621 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2622 (GregorianCalendar): Use it in all constructors.
2623 * java/util/Calendar.java (Calendar): Changed argument name to
2624 `zone' to match code.
2626 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2627 * java/text/CollationKey.java: New file.
2628 * java/text/CollationElementIterator.java: New file.
2629 * java/text/Collator.java: New file.
2630 * java/text/RuleBasedCollator.java: New file.
2632 * Makefile.in: Rebuilt.
2633 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2634 (jv_convert_LDADD): Explicltly add -lm -lc.
2636 1999-04-26 Tom Tromey <tromey@cygnus.com>
2638 * configure, Makefile.in: Rebuilt.
2639 * configure.in: Added AM_PROG_LIBTOOL.
2640 (GCOBJS): Use `.lo' form of files.
2641 (THREADOBJS): Likewise.
2642 (GCDEPS): Use `.la' form of library.
2643 (GCLIBS): Set to be the same as GCDEPS.
2644 (THREADDEPS): Use `.la' form of library.
2645 (THREADLIBS): Set to be the same as THREADDEPS.
2646 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2647 toolexeclib_LIBRARIES.
2648 (libgcj_la_SOURCES): Renamed for libtoolization.
2649 (EXTRA_libgcj_la_SOURCES): Likewise.
2650 (libgcj_la_DEPENDENCIES): Likewise.
2651 (libgcj_la_LIBADD): Likewise.
2652 ($(nat_files)): Use LTCXXCOMPILE.
2653 ($(c_files)): Use LTCOMPILE.
2654 (GCJCOMPILE): New macro.
2656 (.java.o): Likewise.
2657 ($(javao_files)): Likewise.
2658 (jv_convert_LINK): Use LIBTOOL.
2659 (nat_files): Use `.lo' files.
2660 (c_files): Likewise.
2661 (javao_files): Likewise.
2662 (.class.lo): Renamed.
2663 (.java.lo): Likewise.
2664 ($(nat_files)): Depend on %.lo.
2665 ($(c_files)): Likewise.
2666 ($(javao_files)): Likewise.
2667 (jv_convert_LDADD): Link against .lo files.
2668 (jv_convert_DEPENDENCIES): Depend on .lo files.
2669 (maintainer-check): Depend on libgcj.la, but examine .a file.
2670 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2671 (libgcj_la_LDFLAGS): New macro.
2673 1999-04-23 Warren Levy <warrenl@cygnus.com>
2675 * Makefile.am: Added URLDecoder and URLEncoder.
2676 * Makefile.in: Rebuilt.
2678 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2679 setSocketImplFactory to match spec.
2680 * java/net/Socket.java (getSoLinger): Changed return type to
2683 * java/net/URLDecoder.java: New file.
2684 * java/net/URLEncoder.java: New file.
2686 1999-04-21 Tom Tromey <tromey@cygnus.com>
2688 * java/lang/natString.cc (getBytes): Reverted earlier change and
2689 applied correct fix from Per Bothner.
2691 * java/lang/String.java: Don't throw
2692 UnsupportedEncodingException.
2694 * java/lang/natString.cc (getBytes): Correctly size result
2695 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2697 1999-04-20 Andrew Haley <aph@cygnus.com>
2699 * include/sparc-signal.h: new file.
2700 * configure.in: include/sparc-signal.h added.
2701 * configure: regenerated.
2702 * prims.cc (JvRunMain): signal handling code rewritten to be more
2704 (catch_segv): ditto.
2706 * include/i386-signal.h: reorganized.
2707 * include/default-signal.h: reorganized.
2709 1999-04-19 Tom Tromey <tromey@cygnus.com>
2711 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2712 once. From Anthony Green.
2714 1999-04-19 Andrew Haley <aph@cygnus.com>
2716 * Makefile.in: Processed with new automake.
2718 1999-04-19 Tom Tromey <tromey@cygnus.com>
2720 * include/javaprims.h: Removed security namespace.
2722 1999-04-20 Anthony Green <green@cygnus.com>
2724 * java/io/PrintStream.java (println): Remove extra println.
2726 1999-04-19 Anthony Green <green@cygnus.com>
2728 * Makefile.in: Rebuilt.
2729 * Makefile.am (ordinary_java_source_files): Add new security files.
2731 * java/security/NoSuchAlgorithmException.java,
2732 java/security/MessageDigest.java: New files.
2734 * include/javaprims.h: Add security namespace.
2736 1999-04-16 Per Bothner <bothner@cygnus.com>
2738 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2739 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2740 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2741 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2742 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2743 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2744 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2745 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2746 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2747 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2748 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2749 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2750 * Makefile.am: Various changes for new files and conversions.
2752 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2753 New overloading, allows greater efficiency.
2754 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2755 New overloading (for efficiency - avoids copying).
2757 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2758 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2760 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2761 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2762 (writeChars): Don't be quite so eager to flush.
2763 * java/io/PrintStream.java: Rewrite. Now more similar to
2764 OutputStreamWriter, using explicit UnicodeToBytes converter.
2765 Also, autoflush does not need to flush so often.
2766 * java/lang/natString.cc (getBytes): More efficient algorithm.
2767 (init(jbyteArray,jint,jint,jstring)): More efficient.
2769 1999-04-15 Warren Levy <warrenl@cygnus.com>
2771 * Makefile.am (ordinary_java_source_files): Added new Connection
2772 and Handler classes in gnu.gcj.protocol.file package.
2773 * Makefile.in: Rebuilt.
2775 * gnu/gcj/protocol/file/Connection.java: New file.
2776 * gnu/gcj/protocol/file/Handler.java: New file.
2777 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2778 if doInput allows input.
2779 (getOutputStream): Check if doOutput allows output.
2780 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2782 1999-04-14 Tom Tromey <tromey@cygnus.com>
2784 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2785 buffer larger to work around bug.
2786 From Bryce McKinlay <bryce@albatross.co.nz>.
2788 1999-04-14 Andrew Haley <aph@cygnus.com>
2790 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2791 NaNs are always converted to the same long value.
2792 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2795 1999-04-13 Tom Tromey <tromey@cygnus.com>
2797 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2798 instead switch on actual element type.
2800 * Makefile.in: Rebuilt.
2801 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2803 1999-04-13 Andrew Haley <aph@cygnus.com>
2805 * include/i386-signal.h, include/default-signal.h: New files.
2806 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2808 (catch_fpe): New function.
2809 * configure.in: Make link to appropriate include/java-signal.h.
2810 * configure: Rebuilt.
2811 * Makefile.am: include/java-signal.h added to dependency list.
2812 * Makefile.in: Rebuilt.
2814 1999-04-12 Urban Widmark <urban@svenskatest.se>
2816 * java/io/DataInputStream.java (readLine): Corrected handling of
2817 empty lines, from null to "".
2819 1999-04-12 Tom Tromey <tromey@cygnus.com>
2821 * Makefile.in: Rebuilt.
2822 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2824 * java/lang/natSystem.cc (SystemClass): New define.
2825 (init_properties): Synchronize.
2827 1999-04-08 Geoff Berry <gcb@gnu.org>
2829 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2830 * natPlainSocketImpl.cc (accept): Add missing else if check
2833 1999-04-08 Tom Tromey <tromey@cygnus.com>
2835 * java/lang/Long.java (parseLong): Corrected overflow detection
2837 * java/lang/Integer.java (parseInt): Corrected overflow detection
2840 * java/io/PrintStream.java (print): Handle null string argument.
2841 (println): Likewise.
2843 1999-04-07 Warren Levy <warrenl@cygnus.com>
2845 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2846 Set count to 0 when InputStreamReader returns -1 for EOF.
2848 1999-04-07 Tom Tromey <tromey@cygnus.com>
2850 * mauve-libgcj: Omit java.text.Collator,
2851 java.text.RuleBasedCollator.
2853 1999-04-06 Tom Tromey <tromey@cygnus.com>
2855 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2856 IOException from getHttpHeaders().
2857 (getHeaderFieldKey): Likewise.
2859 * include/javaprims.h: Regenerated declarations.
2861 * Makefile.in: Rebuilt.
2862 * Makefile.am (ordinary_java_source_files): Updated for removed
2865 1999-04-06 Per Bothner <bothner@cygnus.com>
2867 * java/util/zip/Adler32.java: New class.
2868 * java/util/zip/CRC32.java: Add working method bodies.
2869 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2870 * Makefile.in: Re-generate.
2872 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2874 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2875 from version in removed www hierarchy.
2876 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2877 version in removed www hierarchy.
2879 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2880 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2881 * gnu/gcj/www/protocol/http: Removed dir.
2882 * gnu/gcj/www/protocol: Removed dir.
2883 * gnu/gcj/www: Removed dir.
2885 * java/net/HttpURLConnection.java: Revised comments to indicate
2886 missing JDK 1.2 methods.
2888 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2889 hierarchy rather than the gnu/gcj/www/protocol one.
2890 * java/net/URLConnection.java: Updated status comments.
2891 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2892 the gnu/gcj/www/content one.
2894 1999-04-06 Per Bothner <bothner@cygnus.com>
2896 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2897 The gen-from-JIS program is in $(CONVERT_DIR).
2899 1999-04-06 Tom Tromey <tromey@cygnus.com>
2901 * mauve-libgcj: Renamed from mauve-libjava.
2903 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2905 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2906 (getResponseMessage): Implemented.
2907 (getResponseVals): New private method.
2909 * java/net/URLConnection.java (getContent): Implemented.
2910 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2912 1999-04-05 Tom Tromey <tromey@cygnus.com>
2914 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2915 (jv_convert_SOURCES): Renamed.
2916 (EXTRA_jv_convert_SOURCES): Likewise.
2917 (jv_convert_LDFLAGS): Likewise.
2918 (jv_convert_LINK): Likewise.
2919 (jv_convert_LDADD): Likewise.
2920 (jv_convert_DEPENDENCIES): Likewise.
2922 * Makefile.in: Rebuilt.
2923 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2926 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2928 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2929 method for comparison.
2931 * java/net/URLConnection.java (getContentLength): Implemented.
2932 (getContentType): Implemented.
2933 (getContentEncoding): Implemented.
2934 (getExpiration): Implemented.
2935 (getDate): Implemented.
2936 (getLastModified): Implemented.
2937 (getHeaderFieldInt): Implemented.
2938 (getHeaderFieldDate): Implemented.
2940 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2942 * java/net/URLConnection.java (toString): Implemented.
2943 (setContentHandlerFactory): Implemented.
2944 (setContentHandler): Wrote new private helper method.
2946 1999-04-01 Tom Tromey <tromey@cygnus.com>
2948 * Makefile.in: Rebuilt.
2949 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2950 of 1999-03-31; we always want to build all the .class files.
2951 Depend on java_source_files, not libgcj.zip.
2952 (nat_headers): Define in terms of ordinary_java_source_files.
2954 1999-03-31 Tom Tromey <tromey@cygnus.com>
2956 * Makefile.in: Rebuilt.
2957 * Makefile.am (special_java_source_files): New macro.
2958 (java_source_files): Use it.
2959 (ordinary_java_source_files): New macro.
2960 (java_source_files): Use it.
2961 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2962 creating headers for those files with hand-maintained headers.
2964 * include/javaprims.h: Regenerated namespace declarations.
2965 * classes.pl (scan): Include [0-9] in regexp for matching class
2966 names; for java.util.zip.CRC32.
2968 * Makefile.in: Rebuilt.
2969 * Makefile.am (nat_headers): Redefined to generate all possible
2972 * java/util/zip/ZipException.java: In package java.util.zip, not
2975 1999-03-30 Tom Tromey <tromey@cygnus.com>
2977 * configure: Rebuilt.
2978 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2979 eh-common.h when not building in tree with gcc.
2981 * Makefile.in: Rebuilt.
2982 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2983 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2985 ($(java_source_files:.java=.class)): New target.
2987 * Makefile.in: Rebuilt.
2988 * Makefile.am (java_source_files): Added
2989 java/net/HttpURLConnection.java and
2990 gnu/gcj/www/protocol/http/Connection.java.
2992 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2994 * gnu/gcj/www/protocol/http/Connection.java: New file.
2995 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2996 * java/net/HttpURLConnection.java: New file.
2997 * java/net/URLConnection.java (getHeaderField): Implemented default.
2998 (getHeaderFieldKey): Implemented default method.
3000 1999-03-30 Tom Tromey <tromey@cygnus.com>
3002 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
3004 * java/util/zip/Deflater.java: Added copyright header.
3005 * java/util/zip/CRC32.java: Added copyright header.
3007 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
3008 that it is automatically generated.
3009 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
3011 * gnu/gcj/convert/BytesToUnicode.java,
3012 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
3013 gnu/gcj/convert/Input_EUCJIS.java,
3014 gnu/gcj/convert/Input_UTF8.java,
3015 gnu/gcj/convert/JIS0208_to_Unicode.cc,
3016 gnu/gcj/convert/JIS0212_to_Unicode.cc,
3017 gnu/gcj/convert/Output_8859_1.java,
3018 gnu/gcj/convert/Output_JavaSrc.java,
3019 gnu/gcj/convert/Output_UTF8.java,
3020 gnu/gcj/convert/UnicodeToBytes.java,
3021 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
3023 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
3025 * Makefile.in, configure: Rebuilt.
3026 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
3027 not if test subdir exists.
3028 (--enable-gcj-classes): Removed; gcj always used to generate
3030 (JAVA, JAVAC): Removed.
3031 (--enable-single-compilation, --enable-source-compilation):
3034 (NATIVE): New conditional.
3035 * Makefile.am (toolexecdir): Renamed from tooldir to allow
3036 `install-exec' to work.
3037 (toolexeclibdir): Likewise.
3038 (toollib_LIBRARIES): Likewise.
3039 (AM_MAKEFLAGS): Don't pass tooldir.
3041 (javao_files): Redefined.
3042 (java_source_files): New macro.
3043 (c_source_files): New macro.
3044 (c_files): Redefined in terms of c_source_files.
3045 (java_io_files, java_lang_files, java_net_files, java_text_files,
3046 java_util_files, gnu_files, java_files): Removed.
3047 (class_io_files, class_lang_files, class_net_files,
3048 class_text_files, class_util_files, class_gnu_files, class_files):
3050 (nat_source_files): New macro.
3051 (nat_files): Redefined in terms of nat_source_files.
3052 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
3053 java_source_files. Removed no-such-file.c.
3055 (ETAGS_ARGS): Removed.
3056 (TAGS_DEPENDENCIES): Likewise.
3057 (libgcj.zip): Depend on java_source_files. Use $(here) and not
3059 (src_io_files, src_lang_files, src_text_files, src_util_files,
3060 src_gnu_files): Removed.
3061 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
3062 (BUILT_SOURCES): Removed.
3063 (header-check): New target.
3065 (noinst_PROGRAMS): New macro.
3066 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
3068 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
3069 (gen-from-JIS): Build in top directory.
3070 (convert_source_files): New macro.
3071 (convert_SOURCES): New macro.
3072 (convert_LDFLAGS): Likewise.
3073 (convert_LINK): Likewise.
3074 (convert_LDADD): Likewise.
3075 (convert_DEPENDENCIES): Likewise.
3077 (gen-from-JIS): Removed.
3078 (gen_from_JIS_SOURCES): New macro.
3079 (gen_from_JIS_LDADD): Likewise.
3080 (gen_from_JIS_DEPENDENCIES): Likewise.
3082 * configure: Rebuilt.
3083 * configure.in (CANADIAN): Set to `yes', not `canadian'.
3084 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
3085 when defining conditional.
3087 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
3089 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
3090 The Unicode Consortium does not permit their re-distribution.
3091 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
3092 (JIS0208.h, JIS0212.h): Do not depend on removed files.
3094 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
3096 * natSystem.c (init_properties): Use malloc, realloc, free after all.
3098 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
3100 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
3101 from Unicode Consortium.
3102 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
3103 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
3104 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
3105 New tables, generated using gen-from-JIS.
3106 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
3107 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
3108 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
3109 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
3111 * gnu/gcj/convert/Convert.java: New application.
3112 * Makefile.am, Makefile.in (convert): New program, using Convert.
3113 Build the various JIS conversion tables (in maintainer mode).
3115 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
3117 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
3119 * java/net/URL.java (URL): Deal with null property value. Use "."
3120 as separator in building class name.
3121 * java/net/URLConnection.java: Implemented majority of stubbed methods.
3122 * java/net/URLStreamHandler.java (parseURL): Use "" in string
3123 manipulations instead of 'null'. Comment cleanup. Use 0 for the
3124 beginning of the substring rather than 'start'.
3126 1999-03-26 Tom Tromey <tromey@cygnus.com>
3128 * include/java-chartables.h: Rebuilt.
3129 * include/java-chardecomp.h: New file.
3130 * chartables.pl: Generate output files directly. Added support
3131 for generating decomposition header.
3132 (canonical_decomposition, full_decomposition): New globals.
3133 (DECOMPOSITION): New constant.
3134 (process_char): Call add_decomposition.
3135 (add_decomposition): New sub.
3136 (write_decompositions): New sub.
3138 1999-03-25 Tom Tromey <tromey@cygnus.com>
3140 * java/text/CollationElementIterator.java: New file.
3142 * mauve-libjava: Omit StringTest.
3144 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
3146 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
3147 without a '/' when parsing protocol. Handle ref outside of parseURL.
3148 (hashCode): Implemented.
3149 (set): Don't expand -1 to default port.
3150 (getDefaultPort): Removed.
3152 * java/net/URLStreamHandler.java (parseURL): Implemented.
3153 (toExternalForm): Implemented.
3155 1999-03-23 Tom Tromey <tromey@cygnus.com>
3157 * java/text/BreakIterator.java (getSentenceInstance):
3159 * gnu/gcj/text/SentenceBreakIterator.java: New file.
3161 * Makefile.in: Rebuilt.
3162 * Makefile.am (nat_headers): Added IllegalAccessException.
3163 * java/lang/natClass.cc (newInstance): Throw
3164 IllegalAccessException, not IllegalAccessError.
3165 Include IllegalAccessException.h.
3167 1999-03-22 Tom Tromey <tromey@cygnus.com>
3169 * gnu/gcj/text/LineBreakIterator.java: New file.
3170 * java/text/BreakIterator.java (getLineInstance): Implemented.
3172 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
3173 copy constructor private.
3174 (previous, next): Removed erroneous comment about line
3176 (previous): Correctly recognize break between non-letter on the
3177 left and letter on the right. Handle apostrophes correctly.
3179 * java/text/BreakIterator.java (getWordInstance): Implemented.
3180 * gnu/gcj/text/WordBreakIterator.java: New file.
3181 * gnu/gcj/text/CharacterBreakIterator.java: Extend
3183 * gnu/gcj/text/BaseBreakIterator.java: New file.
3185 1999-03-19 Tom Tromey <tromey@cygnus.com>
3187 * java/text/BreakIterator.java: New file (partially stubbed out).
3188 * gnu/gcj/text/CharacterBreakIterator.java: New file.
3190 * include/config.h.in: Rebuilt.
3191 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
3192 (HAVE_TIMEZONE): Likewise.
3193 * configure: Rebuilt.
3194 * configure.in: Added timezone checks.
3195 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3198 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
3200 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
3201 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
3202 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
3203 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
3204 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
3205 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
3206 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
3207 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
3209 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
3210 (BSD_COMP): Kludge needed for Solaris2.
3212 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
3214 * java/net/URL.java (URL(java.net.URL, string): Moved code to
3215 URL(java.net.URL, string, URLStreamHandler) and call it with a
3216 null handler. In latter constructor, added SecurityManager check.
3217 (set): Expect null handler on bad protocol rather than an exception.
3218 (setURLStreamHandler): Simplified exception handling; return null
3219 on invalid protocol.
3221 1999-03-18 Tom Tromey <tromey@cygnus.com>
3223 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3225 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3227 Include PrintStream.h, InputStream.h.
3228 * java/lang/System.java (ForwardingInputStream,
3229 ForwardingOutputStream): Removed.
3230 (setErr, setIn, setOut): Now native.
3232 Reverted patch from 1999-02-12 to work around problem in
3234 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3235 (_Jv_eh_free): Use free.
3237 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3238 for path name. Minor formatting fixes.
3240 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3242 * prims.cc (fail_on_finalization): New function.
3243 (_Jv_GCWatch): Likewise.
3245 * prims.cc (JvRunMain): Initialize `nullp'.
3246 (nullp): New global.
3247 (catch_segv): Throw nullp.
3249 * Makefile.in: Rebuilt.
3250 * Makefile.am (ZIP): In "null target" case, zip is found in the
3253 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3257 * java/lang/StringBuffer.java (StringBuffer): Don't use
3258 ensureCapacity to set initial capacity.
3259 (capacity): Subtract `length' from return result.
3261 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3263 * java/io/natFileDescriptorPosix.cc (open): Throw
3264 FileNotFoundException, but with filename and errno in msg.
3266 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3268 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3269 functionality folded into java/net/URL.java per spec.
3271 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3272 than EEXIST for throwing FileNotFoundException.
3274 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3275 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3277 * java/net/URLStreamHandler.java (parseURL): Added stub.
3279 1999-03-15 Andrew Haley <aph@cygnus.com>
3281 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3284 1999-03-15 Andrew Haley <aph@cygnus.com>
3286 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3289 1999-03-12 Tom Tromey <tromey@cygnus.com>
3291 * prims.cc (catch_segv): New function.
3292 Include <signal.h> if HANDLE_SEGV defined. Include
3293 NullPointerException.h.
3294 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3297 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3298 a SimpleDateFormat, not just a DateFormat.
3299 (defaultCenturyStart, formatData, pattern): Now private.
3300 (append): Now `final'. Use `NumberFormat.format'.
3302 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3304 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3307 * java/text/MessageFormat.java (format): Use default MessageFormat
3309 (parse, parseObject): Wrote.
3311 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3314 1999-03-12 Andrew Haley <aph@cygnus.com>
3316 * java/lang/String.java (indexOf): Replace with native method for
3318 * java/lang/natString.cc (IndexOf): As above.
3320 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3321 Argument check corrected.
3322 (init(jbyteArray,jint,jint,jstring)): Likewise.
3324 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3325 1.2 compliant method.
3327 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3329 * java/lang/Float.java (byteValue, shortValue): Likewise.
3331 1999-03-11 Tom Tromey <tromey@cygnus.com>
3333 * java/text/DecimalFormat.java (parse): Wrote.
3335 * java/text/ChoiceFormat.java (parse): Set error index on
3336 ParsePosition object.
3338 * java/lang/Integer.java (parseInt): Throw exception on overflow
3339 when intermediate result is most negative number. Changed
3340 overflow detection as well.
3341 * java/lang/Long.java (parseLong): Likewise.
3343 * configure, Makefile.in: Rebuilt.
3344 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3345 CANADIAN when building in source tree that doesn't include gcc.
3346 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3349 * java/text/ChoiceFormat.java (nextDouble): Correct some
3350 off-by-one errors when masking or adding.
3352 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3353 parameter, if given. Use `%', not IEEEremainder.
3354 (scanFix): Throw error if multiplier already set.
3355 (computePattern): Wrote.
3357 1999-03-11 Andrew Haley <aph@cygnus.com>
3359 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3361 (nextDouble): Corrected masking logic. Handle interaction between
3362 `next' and negative numbers.
3364 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3366 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3367 * java/net/URL.java: Added general comments.
3369 1999-03-10 Tom Tromey <tromey@cygnus.com>
3371 * java/text/ChoiceFormat.java (parse): Wrote.
3373 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3375 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3376 Create ChoiceFormat objects.
3377 (format): Special-case ChoiceFormat.
3378 (scanFormatElement): Include { and } in generated style string.
3380 1999-03-09 Tom Tromey <tromey@cygnus.com>
3382 * java/text/ChoiceFormat.java: New file.
3384 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3386 * java/net/BindException.java: Created.
3387 * java/net/ConnectException.java: Created.
3388 * java/net/ContentHandler.java: Created.
3389 * java/net/ContentHandlerFactory.java: Created.
3390 * java/net/FileNameMap.java: Created.
3391 * java/net/MalformedURLException.java: Created.
3392 * java/net/NoRouteToHostException.java: Created.
3393 * java/net/ProtocolException.java: Created.
3394 * java/net/ServerSocket.java (@author): Fixed typo.
3395 * java/net/Socket.java (@author): Fixed typo.
3396 * java/net/SocketImpl.java (@author): Fixed typo.
3397 * java/net/SocketImplFactory.java (@author): Fixed typo.
3398 * java/net/URL.java: Created - nearly complete.
3399 * java/net/URLConnection.java: Created - near-empty stub.
3400 * java/net/URLStreamHandler.java: Created - incomplete stub.
3401 * java/net/URLStreamHandlerFactory.java: Created.
3402 * java/net/UnknownServiceException.java: Created.
3404 1999-03-09 Tom Tromey <tromey@cygnus.com>
3406 * java/lang/System.java (ForwardingInputStream): New class.
3407 (ForwardingOutputStream): Likewise.
3408 (in, out, err): Now `final' forwarding streams.
3409 (setIn, setOut, setErr): Use appropriate method on forwarding
3412 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3415 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3417 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3418 * java/util/zip/Checksum.java: New interface (complete).
3419 * java/util/zip/Deflater.java: New class (near-empty stub).
3420 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3421 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3422 * java/util/zip/ZipEntry.java: New class (complete).
3423 * java/util/zip/ZipException.java: New class (complete).
3424 * java/util/zip/ZipFile.java: New class (incomplete stub).
3425 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3427 1999-03-09 Tom Tromey <tromey@cygnus.com>
3429 * java/text/MessageFormat.java (MessageFormatElement): Removed
3430 `public' specifiers.
3432 * java/text/DecimalFormat.java (scanFormat): Increment index
3433 before processing exponential format. Fixed a couple typos in
3435 (format): Correct normalization of exponent.
3437 1999-03-08 Tom Tromey <tromey@cygnus.com>
3439 * java/text/SimpleDateFormat.java (parse): Throw
3440 IllegalArgumentException, not ParseException.
3442 1999-03-05 Tom Tromey <tromey@cygnus.com>
3444 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3445 when constructing DateFormatSymbols. Initialize numberFormat
3446 field of superclass.
3448 * java/text/DateFormat.java (equals): Rewrote.
3449 (getAvailableLocales): New method.
3450 (getDateInstance): New methods.
3451 (getDateTimeInstance): Likewise.
3452 (getTimeInstance): Likewise.
3453 (getInstance): New method.
3454 (computeInstance): New method.
3456 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3458 (safeGetResource): New method.
3459 (DateFormatSymbols): Use Locale paramater.
3460 (equals): Now protected.
3461 Made instance variables private.
3463 1999-03-04 Tom Tromey <tromey@cygnus.com>
3465 * java/text/DecimalFormat.java: New file.
3467 * java/text/NumberFormat.java (groupingUsed,
3468 maximumFractionDigits, maximumIntegerDigits,
3469 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3471 (setDecimalSeparatorAlwaysShown, setMultiplier,
3472 setPositivePrefix): Removed.
3473 (setMinimumFractionDigits, setMaximumFractionDigits):
3475 (format): Now final.
3476 Added many new methods.
3478 * Makefile.in: Rebuilt.
3479 * Makefile.am (gnu_files): New macro.
3480 (java_files): Added gnu_files.
3481 (class_gnu_files): New macro.
3482 (class_files): Use it.
3483 (src_gnu_files): New macro.
3484 (gnu.o): New target.
3485 (javao_files): Added gnu.o.
3487 * gnu/gcj/text/LocaleData_en_US.java: New file.
3488 * gnu/gcj/text/LocaleData_en.java: New file.
3489 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3490 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3491 (safeGetString): New method.
3492 (safeGetChar): Likewise.
3494 1999-03-03 Tom Tromey <tromey@cygnus.com>
3496 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3499 * java/text/FieldPosition.java (equals): Don't check for null
3500 object; instanceof does this.
3502 * java/util/Locale.java (clone): New method.
3505 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3507 * doc/cni.sgml: New file.
3509 1999-03-03 Tom Tromey <tromey@cygnus.com>
3511 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3513 * java/text/DecimalFormatSymbols.java: New file.
3515 1999-03-02 Tom Tromey <tromey@cygnus.com>
3517 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3519 * configure: Rebuilt.
3520 * configure.in: Check for sys/filio.h.
3522 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3524 (load): Always throw UnsatisfiedLinkError.
3525 (loadLibrary): Likewise.
3527 1999-03-02 Anthony Green <green@cygnus.com>
3529 * LIBGCJ_LICENSE: New file.
3530 * LIBJAVA_LICENSE: Removed.
3531 * Many files: libjava now libgcj.
3533 1999-03-02 Tom Tromey <tromey@cygnus.com>
3535 * include/java-chartables.h: Rebuilt.
3536 * chartables.pl (print_block): Make table `const'.
3537 (print_numerics): Likewise.
3538 (print_single_map): Likewise.
3539 (print_all_block): Likewise.
3540 (print_case_table): Likewise.
3541 (print_fast_tables): Likewise.
3542 * java/lang/natCharacter.cc (table_search): `table' argument now
3545 1999-03-01 Tom Tromey <tromey@cygnus.com>
3547 * java/util/Date.java (before, after): Inverted logic.
3549 * java/util/Date.java (parse): Handle case where first character
3550 in string is open parenthesis.
3551 (skipParens): Rewrote.
3553 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3554 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3556 * java/util/Date.java (parse): Correctly compute beginning of
3559 * java/util/Hashtable.java (get): Throw NullPointerException if
3561 (containsKey): Likewise.
3563 * java/util/Properties.java (list): Truncate value to 37
3564 characters and add `...'.
3566 * java/lang/Byte.java (parseByte): Pass `radix' to
3569 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3571 Include System.h, PrintStream.h.
3573 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3576 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3578 * configure: Rebuilt.
3579 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3582 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3584 * java/lang/SecurityManager.java: Import java.net.*.
3585 (checkMulticast): New methods.
3587 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3589 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3590 (nat_files): Add java/lang/reflect/natArray.o.
3591 (nat_headers): Add Field.h and NoSuchFieldException.h.
3593 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3594 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3595 (_Jv_FromReflectedField): Fix buglet.
3596 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3597 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3598 * prims.cc (_Jv_Abort): Include message in print-out.
3600 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3601 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3602 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3604 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3605 * include/config.h.in (HAVE_PWD_H): New feature macro.
3606 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3607 user.name, user.home, user.dir.
3609 * java/lang/reflect/Array.java: New class.
3610 * java/lang/reflect/natArray.cc: New native methods.
3611 * include/javaprims.h: Declare java::lang::reflect::Array.
3613 * java/lang/Class.h (getField): New private method. Add friends.
3614 * java/lang/Class.java (getField): Add private overload.
3615 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3616 getDeclaredMethods): Add working implementations.
3617 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3618 Finish implementation, except for access control.
3620 * java/lang/reflect/Modifier.java (toString): New overload.
3621 * include/java-method.h: New file.
3622 * java/lang/reflect/Method.java (index): Replaced by offset field.
3623 Remove various private fields - get them from _Jv_Field instead.
3624 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3625 New method implementations.
3627 * java/text/NumberFormat.java: Add a bunch of methods.
3629 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3631 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3633 1999-02-26 Tom Tromey <tromey@cygnus.com>
3635 * include/config.h.in: Rebuilt.
3636 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3637 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3638 HAVE_GETHOSTBYADDR_R): New defines.
3639 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3640 gethostbyaddr_r if available.
3642 * configure: Rebuilt.
3643 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3645 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3649 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3650 * prims.cc (_Jv_AllocBytesChecked): New function.
3652 * Makefile.in: Rebuilt.
3653 * Makefile.am (SUBDIRS): Removed `test'.
3654 * configure: Rebuilt.
3655 * configure.in: Don't build test/Makefile.
3656 * test/*: Removed all files.
3658 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3660 * java/lang/reflect/Constructor.java: Make class final to match spec.
3661 * java/lang/reflect/Method.java: Ditto.
3663 1999-02-25 Tom Tromey <tromey@cygnus.com>
3665 * java/net/natInetAddress.cc: Include <sys/types.h> before
3667 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3670 * java/net/natInetAddress.cc: Declare gethostname if required.
3671 * include/config.h.in: Rebuilt.
3672 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3673 * configure: Rebuilt.
3674 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3675 declared in unistd.h.
3677 1999-02-24 Tom Tromey <tromey@cygnus.com>
3679 * Makefile.in: Rebuilt.
3680 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3681 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3682 from private to "none".
3684 * include/javaprims.h: Regenerated class declarations with new
3686 * classes.pl (scan): Only generate decls for java.lang, java.io,
3689 1999-02-24 Tom Tromey <tromey@cygnus.com>
3691 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3692 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3694 1999-02-23 Tom Tromey <tromey@cygnus.com>
3696 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3697 not already defined.
3698 * java/io/natFile.cc (_REENTRANT): Only define if not already
3700 * include/config.h.in: Rebuilt.
3701 * acconfig.h (HAVE_BOEHM_GC): New define.
3702 * configure: Rebuilt.
3703 * configure.in: Define HAVE_BOEHM_GC if using it.
3704 * posix-threads.cc: Include boehm-config.h and gc.h if
3706 * include/posix-threads.h: Added explanatory note about Boehm GC.
3708 * java/io/BufferedReader.java (readLine): Only return null when
3709 EOF seen before any characters read. (In particular, an empty
3710 line should not return null.)
3712 * java/io/BufferedInputStream.java (read): Only refill once per
3715 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3716 java.lang.Character.classify12, java.lang.String.hash,
3717 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3718 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3720 * java/text/StringCharacterIterator.java (setIndex): No error if
3722 (next): Check for `pos == end', not `end - 1'.
3723 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3724 for null text in each constructor.
3725 (clone): Fixed order of arguments to constructor.
3727 1999-02-22 Tom Tromey <tromey@cygnus.com>
3729 * include/config.h.in: Rebuilt.
3730 * acconfig.h (HAVE_INET6): New define.
3731 (HAVE_SOCKLEN_T): Likewise.
3732 * java/net/PlainSocketImpl.java: Added copyright header.
3733 * java/net/natPlainSocketImpl.cc: Added copyright header.
3734 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3736 (connect): Likewise.
3738 (socklen_t): New typedef.
3739 (accept): Use socklen_t.
3740 * java/net/natInetAddress.cc: Added copyright header.
3741 (HAVE_GETHOSTNAME): Don't define.
3742 (HAVE_INET_ADDR): Likewise.
3743 (lookup): Fixed typo.
3744 (aton): Don't use `address' as name of local variable.
3745 (lookup): Use HAVE_INET6, not AF_INET6.
3747 * configure: Rebuilt.
3748 * configure.in: Look for functions inet_aton, inet_addr,
3749 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3750 Check for socklen_t typedef.
3752 * exception.cc (__throw): Declare as __noreturn__.
3754 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3756 * Makefile.am, Makefile.in: Also build java/net.
3757 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3759 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3760 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3762 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3763 * include/cni.h (JvMalloc, JvFree): New inline functions.
3764 (JvThrow): Add __noreturn__ attribute.
3765 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3766 (_Jv_Throw): Add __noreturn__ attribute.
3768 * java/net/PlainSocketImpl.java: Init fnum to -1.
3769 * java/net/ServerSocket.java: Add missing throws clauses.
3770 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3771 don't call create on the latter. Instead, other constructors
3772 have to explicitly call SocketImpl.create.
3773 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3774 from size_t to int, to match ::accept prototype.
3775 * java/net/natInetAddress.cc: Use JvFree rather than free.
3778 1999-02-22 Tom Tromey <tromey@cygnus.com>
3780 * include/javaprims.h: Added new classes.
3781 * java/text/StringCharacterIterator.java: New file.
3782 * java/text/CharacterIterator.java: New file.
3784 * java/text/ParseException.java (errorOffset): Now private.
3786 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3788 * java/net: New package.
3789 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3790 Socket.java,SocketException.java,SocketImpl.java,
3791 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3792 natPlainSocketImpl.cc}: New classes.
3794 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3795 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3796 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3797 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3799 * classes.pl: Translate package into "namespace", not "class".
3800 * include/javaprims.h: Update class list, using "namespace".
3802 1999-02-21 Tom Tromey <tromey@cygnus.com>
3804 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3805 Define when appropriate.
3807 1999-02-20 Tom Tromey <tromey@cygnus.com>
3809 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3810 as a single byte and \u07ff as two bytes.
3811 (_Jv_GetStringUTFLength): Likewise.
3812 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3813 with 0x0f, not 0x1f.
3815 1999-02-19 Tom Tromey <tromey@cygnus.com>
3817 * java/io/DataOutputStream.java (writeUTF): When encoding
3818 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3819 * java/io/DataInputStream.java (readUTF): Mask second byte of
3820 3-byte character with 0x3f, not 0x1f.
3822 * java/io/DataInputStream.java (readLong): Cast result of
3823 readUnsignedByte to long before using.
3825 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3828 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3829 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3830 argument to avoid warning.
3831 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3832 argument to avoid warning.
3834 1999-02-18 Tom Tromey <tromey@cygnus.com>
3836 * mauve-libjava: Omit java.io.DataInputOutput and
3837 java.io.Utf8Encoding.
3839 1999-02-17 Tom Tromey <tromey@cygnus.com>
3841 * Makefile.in: Rebuilt.
3842 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3843 * java/io/natFileDescriptorPosix.cc: Include
3844 InterruptedIOException.h, Thread.h.
3845 (write): Throw InterruptedIOException when required.
3847 * posix-threads.cc: Include <signal.h>.
3848 (_Jv_ThreadInterrupt): New function.
3850 (handle_intr): New function.
3851 (_Jv_InitThreads): Register handle_intr via sigaction.
3852 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3853 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3854 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3855 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3857 1999-02-19 Andrew Haley <aph@cygnus.com>
3859 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3861 (ThreadGroup (int)): Set the maximum priority of the initial
3864 1999-02-18 Andrew Haley <aph@cygnus.com>
3866 * java/lang/natClass.cc (forName): Check for the case where a
3867 classname is the name of an array and call FindClassFromSignature
3870 1999-02-18 Andrew Haley <aph@cygnus.com>
3872 * java/lang/StringBuffer (insert (int, String)): Move up any
3873 characters above the insert position and increase the length of
3874 the string buffer by the length of the argument.
3875 (insert (int, char[])): Likewise.
3876 (insert (int, char)): Likewise.
3877 (StringBuffer (String)): The initial capacity of the string buffer
3878 is 16 plus the length of the argument.
3879 (getChars): Add a JDK 1.2 FIXME.
3881 1999-02-18 Andrew Haley <aph@cygnus.com>
3883 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3886 1999-02-18 Andrew Haley <aph@cygnus.com>
3888 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3889 instead of floating-point equality. This is necessary for
3890 correct floating-point Hashtables.
3891 * java/lang/Float.java (equals): Ditto.
3893 1999-02-16 Tom Tromey <tromey@cygnus.com>
3895 * java/util/Properties.java (list): Truncate value to 37
3896 characters and add "...".
3898 1999-02-16 Tom Tromey <tromey@cygnus.com>
3900 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3901 if initCap is negative.
3902 (contains): Implement JDK1.2-style handling of null argument.
3903 (removeElement): Likewise.
3904 (indexOf): Likewise. Also, correctly handle case where idx is
3906 (lastIndexOf): Likewise.
3908 1999-02-16 Tom Tromey <tromey@cygnus.com>
3910 * java/lang/natString.cc (init): Increment source pointer in
3913 1999-02-16 Tom Tromey <tromey@cygnus.com>
3915 * exception.cc: Include NullPointerException.h.
3916 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3918 1999-02-16 Tom Tromey <tromey@cygnus.com>
3920 * Makefile.in: Rebuilt.
3921 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3923 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3925 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3926 we're compiling canadian.
3927 * configure: Regenerated.
3929 1999-02-12 Andrew Haley <aph@cygnus.com>
3931 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3932 deleted from libgcj.
3934 1999-02-12 Tom Tromey <tromey@cygnus.com>
3936 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3937 (_Jv_eh_free): Don't call free.
3938 Don't declare malloc or free.
3940 1999-02-11 Tom Tromey <tromey@cygnus.com>
3942 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3944 1999-02-11 Andrew Haley <aph@cygnus.com>
3946 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3947 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3948 needed by java.lang.*.
3949 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3950 wf_fmod.o: Removed from libjava.a.
3952 1999-02-11 Tom Tromey <tromey@cygnus.com>
3954 * include/javaprims.h: Reverted previous change; with it
3955 exception.cc can't compile.
3957 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3959 * include/config.h.in: Rebuilt.
3960 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3962 * configure: Rebuilt.
3963 * configure.in: Check for sched_yield. Look in thread library for
3964 all thread functions.
3966 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3967 no recursive mutexes.
3968 (_Jv_MutexDestroy): Define when required.
3969 (_Jv_MutexLock): Likewise.
3970 (_Jv_MutexUnlock): Likewise.
3971 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3972 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3973 (_Jv_Mutex_t): New structure.
3974 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3975 (_Jv_MutexLock): Likewise.
3976 (_Jv_MutexUnlock): Likewise.
3978 1999-02-10 Tom Tromey <tromey@cygnus.com>
3980 * aclocal.m4, configure, Makefile.in: Rebuilt.
3981 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3983 * configure.in: Changed to track library changes.
3984 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3985 (AM_CXXFLAGS): Likewise.
3986 (data_DATA): Likewise.
3987 (AM_CFLAGS): Likewise.
3988 (JC1FLAGS): Likewise.
3989 (libgcj_a_SOURCES): Likewise.
3990 (EXTRA_libgcj_a_SOURCES): Likewise.
3991 (libgcj_a_DEPENDENCIES): Likewise.
3992 (libgcj_a_LIBADD): Likewise.
3993 (libgcj.zip): Likewise.
3994 (CLEANFILES): Likewise.
3995 ($(nat_headers)): Likewise.
3996 (java/lang/FirstThread.h): Likewise.
3997 (java/lang/ThreadGroup.h): Likewise.
3998 (java/lang/String.h): Likewise.
3999 (java/lang/reflect/Field.h): Likewise.
4000 (BUILT_SOURCES): Likewise.
4001 (maintainer-check): Likewise.
4002 (CONFIG_STATUS_DEPENDENCIES): Likewise.
4003 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
4005 * java/util/natGregorianCalendar.cc (computeFields): Only use
4006 gmtime_r and localtime_r when configured for posix threads.
4008 * java/io/natFile.cc (get_entry): Only use readdir_r when
4009 configured for posix threads.
4011 * java/util/natGregorianCalendar.cc: Update copyright notice.
4012 * java/util/TimeZone.java: Ditto.
4013 * java/util/SimpleTimeZone.java: Ditto.
4015 1999-02-08 Tom Tromey <tromey@cygnus.com>
4017 * java/io/PrintStream.java (line_separator): New constant.
4018 (print): Use line_separator, not `file.separator' property.
4019 (println): Use line_separator.
4021 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
4022 when trying to instantiate Class.
4024 * java/lang/ThreadGroup.java (ThreadGroup): Throw
4025 NullPointerException if argument is null.
4027 * java/lang/Thread.java (setName): Throw NullPointerException, not
4028 IllegalArgumentException.
4031 1999-02-08 Andrew Haley <aph@cygnus.com>
4033 * java/lang/natClass.cc (newInstance): Don't allow anyone to
4034 create new Classes with Class.newInstance().
4036 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
4037 semiciolon to end of an array Class's signature if the elements of
4038 the array aren't themselves arrays.
4040 * java/lang/natSystem.cc (arraycopy): The size of an element of an
4041 array of objects is always sizeof(jobject), not the size of the
4042 object to which the reference points.
4044 1999-02-08 Tom Tromey <tromey@cygnus.com>
4046 * java/util/BitSet.java (and): Throw NullPointerException when
4051 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
4052 if argument is negative.
4053 (clear): Correctly compute `offset'. Throw
4054 IndexOutOfBoundsException when required.
4056 (get): Likewise. Also, return correct value.
4057 (ensure): Changed meaning of argument.
4058 (toString): Wrap contents in `{}'; put spaces after commas.
4059 (hashCode): Don't try to examine elements off the end of array.
4060 (or): Correctly include bits past the end of this bit set.
4063 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
4065 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
4066 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
4068 1999-02-04 Andrew Haley <aph@cygnus.com>
4070 * java/lang/natClass.cc (Class::forName): Remove code which mapped
4071 '/' in signatures to '.'
4072 (Class::getName): Likewise,
4073 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
4075 * java/lang/natFirstThread.cc (run): Change '/' in main's
4078 1999-02-03 Andrew Haley <aph@cygnus.com>
4080 * configure.host: -ffloat-store added when compiling libjava on
4081 x86. fdlibm apparently relies on this.
4083 * java/lang/ThreadGroup.java (add): throw an exception if the
4084 ThreadGroup has been destroyed.
4086 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
4089 1999-01-27 Tom Tromey <tromey@cygnus.com>
4091 * java/lang/StringBuffer.java (StringBuffer): Handle null
4094 1999-01-21 Tom Tromey <tromey@cygnus.com>
4096 * java/lang/natFirstThread.cc (run): Don't require main to be
4099 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
4101 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
4103 1999-01-20 Tom Tromey <tromey@cygnus.com>
4105 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
4109 (unintern): Likewise.
4110 (_Jv_NewStringUtf8Const): Likewise.
4112 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
4113 Character.isLetter, to see if character is self-quoting. Also,
4114 correctly handle quoted characters.
4115 (parse): Fixed typo. Also now throws ParseException.
4117 1999-01-15 Tom Tromey <tromey@cygnus.com>
4119 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
4121 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
4122 _Jv_SyncInfo has `init' member.
4124 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
4127 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
4128 IllegalMonitorStateException if unlock fails.
4130 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
4132 (_Jv_NewObjectArray): Likewise.
4134 1999-01-14 Tom Tromey <tromey@cygnus.com>
4136 * java/lang/Character.java (isJavaIdentifierPart): Allow
4137 LETTER_NUMBER characters.
4139 * chartables.pl (process_char): Fixed error messages.
4141 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
4142 * chartables.pl: Updated comments. Changed detection of non-digit
4143 numeric values (no longer miss \u00b2 and friends).
4145 * java/lang/Character.java (isJavaIdentifierPart): Recognize
4146 currency symbols and connector punctuation.
4147 (isIdentifierIgnorable): Make 7f-9f ignorable.
4149 * prims.cc (_Jv_NewObjectArray): Check for overflow.
4150 (_Jv_NewPrimArray): Likewise.
4151 (SIZE_T_MAX): New define.
4153 * java/lang/ClassLoader.java (system): Now private and final.
4155 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
4158 * configure: Rebuilt.
4159 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
4161 * exception.cc: Include gansidecl.h.
4163 1999-01-14 Andrew Haley <aph@cygnus.com>
4165 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
4166 corrected: they didn't treat -0.0 and NaNs correctly.
4168 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
4170 * nogc.cc: Use calloc to zero out memory.
4172 1999-01-11 Tom Tromey <tromey@cygnus.com>
4174 * java/lang/natClass.cc (isInstance): Return false if this class
4175 is primitive, not if class of `obj' is primitive.
4176 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
4178 * java/io/SequenceInputStream.java (close): Handle case where `in'
4181 * java/text/DateFormat.java (format): New method.
4183 * mauve-libjava: Omit java.text.DateFormat.
4185 1999-01-08 Tom Tromey <tromey@cygnus.com>
4187 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
4189 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
4191 (_Jv_CondNotifyAll): Likewise.
4193 * configure: Rebuilt.
4194 * configure.in: Change --enable-source-compilation logic to work
4197 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
4199 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4200 and RUNTESTFLAGS from AM_MAKEFLAGS.
4201 * configure.in: AM_RUNTESTFLAGS added.
4202 * configure.host: AM_RUNTESTFLAGS added.
4203 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4204 * configure: rebuilt.
4205 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4207 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4208 argv[] made conditional because embedded targets may not have
4210 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4211 explanatory comments added in call to super.
4213 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4214 exception thrown in the test harness itself added.
4215 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4217 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
4219 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
4221 1999-01-06 Tom Tromey <tromey@cygnus.com>
4223 * java/io/natFile.cc (get_entry): New function.
4224 (performList): Use get_entry.
4225 * include/config.h.in: Rebuilt.
4226 * acconfig.h (HAVE_READDIR_R): New define.
4227 * configure: Rebuilt.
4228 * configure.in: Look for readdir_r.
4230 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4232 * java/util/natDate.cc: Added copyright header.
4234 1999-01-05 Tom Tromey <tromey@cygnus.com>
4236 * include/config.h.in: Rebuilt.
4237 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4238 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4239 * configure: Rebuilt.
4240 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4241 unlink, and realpath.
4242 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4243 (stat): Conditionalize on HAVE_STAT.
4245 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4246 (performMkdir): Conditionalize on HAVE_MKDIR.
4247 (performRenameTo): Conditionalize on HAVE_RENAME.
4248 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4250 * include/config.h.in: Rebuilt.
4251 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4252 * configure: Rebuilt.
4253 * configure.in: Check for gmtime_r and localtime_r. For cross
4254 builds, assume they exist.
4256 * mauve-libjava: Include java.text.DateFormatSymbols again.
4257 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4258 from setAmPmStrings.
4260 * mauve-libjava: Omit java.text.DateFormatSymbols.
4262 1999-01-04 Tom Tromey <tromey@cygnus.com>
4264 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4266 * java/io/LineNumberReader.java (read): Decrement `count' in
4269 * java/io/BufferedWriter.java (write): Correctly determine when
4270 incoming data would overrun buffer. Flush buffer if write causes
4273 * java/io/BufferedOutputStream.java (write): Increment `count'
4274 after copying data into buffer.
4276 * java/io/FilterOutputStream.java (close): Call flush first.
4278 * java/io/PipedReader.java (read): If read causes `out' to catch
4279 up with `in', then set `in' to -1.
4281 * java/io/LineNumberInputStream.java (read): If no bytes read,
4282 return -1. If no bytes requested, return 0.
4284 * java/lang/StringBuffer.java (insert): If `str' is null, use
4287 1998-12-30 Anthony Green <green@cygnus.com>
4290 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4292 1998-12-23 Tom Tromey <tromey@cygnus.com>
4294 * java/io/PushbackInputStream.java (read): `off' already includes
4297 1998-12-17 Tom Tromey <tromey@cygnus.com>
4299 * Makefile.in: Rebuilt.
4300 * Makefile.am (GCJ_canadian): Include target_alias.
4302 * java/lang/natFirstThread.cc (run): Require main's class to be
4305 1998-12-16 Tom Tromey <tromey@cygnus.com>
4307 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4309 * java/util/ResourceBundle.java (getBundle): Throw
4310 NullPointerException if locale argument is null.
4312 * java/lang/natClass.cc (forName): Throw NullPointerException if
4314 Include NullPointerException.h.
4316 1998-12-14 Tom Tromey <tromey@cygnus.com>
4318 * java/lang/Character.java (Character): Implement Comparable.
4319 (compareTo): New methods.
4321 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4322 correct country and language codes.
4323 (UK, US): New constants.
4324 (setDefault): Language codes are lower-case.
4326 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4327 (getDeclaredConstructors): Likewise.
4328 (getDeclaredField): Likewise.
4329 (getDeclaredFields): Likewise.
4330 (getDeclaredMethod): Likewise.
4331 (getDeclaredMethods): Likewise.
4332 (getField): Likewise.
4333 (getFields): Likewise.
4334 (getMethod): Likewise.
4335 (getMethods): Likewise.
4336 * java/lang/Class.java: Declare new methods.
4337 * java/lang/Class.h: Declare new methods.
4339 * java/lang/natString.cc: Removed `#pragma implementation'.
4340 * include/cni.h (_Jv_GetStringChars): New function.
4341 * Makefile.in: Rebuilt.
4342 * Makefile.am (java/lang/String.h): Don't generate definition for
4345 * java/lang/natString.cc: Added `#pragma implementation'.
4347 * Makefile.in: Rebuilt.
4348 * Makefile.am (libjava.zip): Put build directory first in class
4349 path to avoid bug in compiler.
4351 1998-12-14 Anthony Green <green@cygnus.com>
4353 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4355 * include/javaprims.h: Add EventObject, ListResourceBundle and
4358 1998-12-13 Anthony Green <green@cygnus.com>
4360 * mauve-libjava: Run the ResourceBundle tests.
4362 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4365 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4367 * configure.in, configure: Make --enable-gcj-classes and
4368 --enable-source-compilation the default. (Nervously...) Yeah!
4369 Based on a patch from Tom Tromey.
4371 1998-12-13 Tom Tromey <tromey@cygnus.com>
4373 * java/util/EventObject.java: New file.
4374 * java/util/EventListener.java: New file.
4376 * include/javaprims.h: Updated class declarations.
4377 * Makefile.in: Rebuilt.
4378 * Makefile.am (nat_headers): Added Constructor.h.
4379 (java/lang/String.h): Don't inline String::length().
4380 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4381 * java/lang/Class.java (initializeClass, hackRunInitializers,
4382 hackTrampoline): No need to mark `final'.
4383 (getConstructor, getConstructors): Declare.
4384 * java/lang/reflect/Field.java (equals): New method.
4385 * java/lang/natClass.cc (getConstructor): New method.
4386 (getConstructors): Likewise.
4387 Include Method.h, Field.h, Constructor.h.
4388 * java/lang/reflect/Constructor.java: New file.
4389 * java/lang/reflect/Method.java (toString): No space before open
4391 (equals): Simplified.
4393 1998-12-13 Anthony Green <green@cygnus.com>
4395 * java/util/ResourceBundle.java: New file.
4396 * java/util/ListResourceBundle.java: New file.
4398 1998-12-12 Tom Tromey <tromey@cygnus.com>
4400 * java/lang/System.java (in, out, err): Now buffered streams by
4403 * include/javaprims.h: Updated class declarations.
4404 * Makefile.in: Rebuilt.
4405 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4406 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4408 (nat_files): Added natMethod.o.
4409 * java/lang/reflect/natMethod.cc: New file.
4410 * java/lang/reflect/Field.java (Field): Now extends
4412 * java/lang/reflect/AccessibleObject.java: New file.
4413 * java/lang/reflect/InvocationTargetException.java: New file.
4415 1998-12-11 Tom Tromey <tromey@cygnus.com>
4417 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4418 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4419 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4421 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4423 1998-12-09 Tom Tromey <tromey@cygnus.com>
4425 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4428 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4429 character is already titlecase.
4431 * java/lang/Character.java (isJavaLetter): Follow spec.
4432 (isJavaLetterOrDigit): Likewise.
4434 * java/util/GregorianCalendar.java (gregorianCutover): Append
4437 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4439 1998-12-08 Tom Tromey <tromey@cygnus.com>
4441 * java/lang/reflect/Modifier.java (toString): Replace second
4442 `static' with `synchronized'.
4444 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4445 * java/lang/Object.h (Object::hack12_6): Declare.
4446 * java/lang/Object.java (hack12_6): New function.
4448 1998-12-07 Tom Tromey <tromey@cygnus.com>
4450 * include/java-array.h (__JArray::clone): Removed decl.
4451 * prims.cc (__JArray::clone): Removed.
4452 * java/lang/natObject.cc (clone): Incorporate code to clone an
4455 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4456 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4457 Correctly use dtable_method_count.
4459 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4461 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4464 1998-12-06 Anthony Green <green@cygnus.com>
4466 * mauve-libjava: Don't test ResourceBundle.
4468 1998-12-04 Tom Tromey <tromey@cygnus.com>
4470 More JDK 1.2 spec fixes:
4471 * java/util/Date.java (millis): Now private.
4472 * java/text/DateFormat.java (DateFormat): Constructor now
4474 * java/lang/Void.java (Void): New private constructor.
4475 * java/lang/System.java (System): New private constructor.
4476 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4478 (currentClassLoader): New method.
4479 (currentLoadedClass): New method.
4480 * java/lang/Math.java (Math): New private constructor.
4481 * java/lang/Compiler.java (Compiler): New private constructor.
4482 * java/lang/Class.java (Class): New private constructor.
4483 * java/lang/Double.java (toString): Removed access specifier from
4484 two-argument `toString' method.
4486 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4488 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4489 causes it to be flushed from an fp register (where it may be
4490 longer than double precision) to a double in memory. This is
4491 essential to ensure correct rounding behaviour.
4493 1998-12-04 Tom Tromey <tromey@cygnus.com>
4495 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4498 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4499 explaining apparent divergence from JDK 1.2.
4501 1998-12-04 Per Bothner <bothner@cygnus.com>
4503 * include/no-threads.h: Remove unused parameter names.
4504 This silences a bunch of warnings.
4506 1998-12-04 Tom Tromey <tromey@cygnus.com>
4508 * include/config.h.in: Rebuilt.
4509 * acconfig.h (HAVE_CTIME_R): New symbol.
4511 1998-12-03 Tom Tromey <tromey@cygnus.com>
4513 * mauve-libjava: Added many more categories to reject.
4515 Changes to follow JDK1.2 spec:
4516 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4517 setErr, setIn, setOut): No need to be `final'.
4518 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4519 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4520 * java/lang/Object.java (wait): `nanos' argument is an int.
4521 * java/lang/VirtualMachineError.java: Class is abstract.
4522 * java/lang/ThreadDeath.java: Made constructors public.
4523 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4526 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4528 * java/text/DateFormatSymbols.java (getAmPmStrings,
4529 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4531 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4533 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4534 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4535 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4538 * java/lang/IllegalThreadStateException.java
4539 (IllegalThreadStateException): Changed extending class to match spec.
4541 * java/lang/NumberFormatException.java
4542 (java/lang/NumberFormatException): Changed extending class to match
4545 * java/util/Observer.java (Observer): Changed sig to match JCL.
4547 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4549 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4550 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4551 signature to match JDK 1.1 and 1.2.
4553 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4555 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4556 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4557 * Makefile.in, configure: Rebuilt.
4559 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4562 1998-12-02 Tom Tromey <tromey@cygnus.com>
4564 * mauve-libjava: New file.
4566 The remaining `-W -Wall' fixes:
4567 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4569 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4571 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4573 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4575 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4577 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4579 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4581 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4583 * java/lang/mprec.c (Balloc): Removed unused variable.
4584 (mult): Added parentheses per gcc suggestion.
4585 (pow5mult): Likewise.
4590 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4591 suggestion. Added cast to `int' to avoid signed/unsigned
4593 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4595 (IsAssignableFrom): Likewise.
4596 (_Jv_JNI_GetObjectField): Likewise.
4597 (_Jv_JNI_GetByteField): Likewise.
4598 (_Jv_JNI_GetShortField): Likewise.
4599 (_Jv_JNI_GetIntField): Likewise.
4600 (_Jv_JNI_GetLongField): Likewise.
4601 (_Jv_JNI_GetStringLength): Likewise.
4602 (_Jv_JNI_ToReflectedField): Likewise.
4603 (_Jv_JNI_FromReflectedField): Likewise.
4604 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4606 * Makefile.in: Rebuilt.
4607 * Makefile.am (AM_CFLAGS): Define conditionally.
4608 (WARNINGS): New macro.
4609 (AM_CXXFLAGS): Include WARNINGS.
4610 * configure: Rebuilt.
4611 * configure.in (USING_GCC): New conditional.
4613 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4615 * java/lang/Character.java: Changed classification constants to
4616 type `byte' to match JDK 1.2 docs.
4618 1998-12-01 Tom Tromey <tromey@cygnus.com>
4620 Some fixes to be `-W -Wall' clean:
4621 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4622 (_Jv_MarkArray): Likewise.
4623 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4624 (to_upper_title): Likewise.
4625 (isTitleCase): Likewise.
4626 (toTitleCase): Likewise.
4627 (getNumericValue): Likewise.
4628 (isLowerCase): Likewise.
4629 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4630 (avoids compiler warning).
4631 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4633 (getDeclaringClass): Likewise.
4634 (_Jv_LookupInterfaceMethod): Likewise.
4635 (_Jv_NewClass): Removed name of unused parameter.
4636 * exception.cc (_Jv_type_matcher): Removed unused variable.
4637 (_Jv_setup_eh_info): Removed name of unused parameter.
4638 * prims.cc (_Jv_NewArray): Always return a value.
4639 (_Jv_FindClassFromSignature): Likewise.
4640 * include/java-field.h (getNameUtf8Const): Removed name of unused
4642 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4644 (_Jv_ThreadSetPriority): Likewise.
4646 * java/lang/natString.cc (hashChars): Now static.
4648 * java/lang/FirstThread.java (FirstThread): Now final.
4650 * java/io/File.java (performMkdir, performRenameTo): Now private.
4652 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4653 if no time function defined.
4655 * configure: Rebuilt.
4656 * configure.in: Look for ctime_r, ctime.
4657 * java/util/Date.java (toString): Now native.
4658 * java/util/natDate.cc (toString): Rewrote.
4660 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4662 * Add LDFLAGS line to allow TX39 test cases to link when cross
4665 1998-11-23 Anthony Green <green@cygnus.com>
4667 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4668 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4669 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4670 include/java-array.h, include/java-assert.h, include/java-field.h,
4671 include/javaprims.h, include/jni.h, include/jvm.h,
4672 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4673 include/quick-threads.h, java/io/BufferedInputStream.java,
4674 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4675 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4676 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4677 java/io/CharArrayWriter.java,
4678 java/io/CharConversionException.java, java/io/DataInput.java,
4679 java/io/DataInputStream.java, java/io/DataOutput.java,
4680 java/io/DataOutputStream.java, java/io/EOFException.java,
4681 java/io/File.java, java/io/FileDescriptor.java,
4682 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4683 java/io/FileOutputStream.java, java/io/FileReader.java,
4684 java/io/FileWriter.java, java/io/FilenameFilter.java,
4685 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4686 java/io/FilterReader.java, java/io/FilterWriter.java,
4687 java/io/IOException.java, java/io/InputStream.java,
4688 java/io/InputStreamReader.java,
4689 java/io/InterruptedIOException.java,
4690 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4691 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4692 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4693 java/io/PipedReader.java, java/io/PipedWriter.java,
4694 java/io/PrintStream.java, java/io/PrintWriter.java,
4695 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4696 java/io/RandomAccessFile.java, java/io/Reader.java,
4697 java/io/SequenceInputStream.java, java/io/Serializable.java,
4698 java/io/StreamTokenizer.java,
4699 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4700 java/io/StringWriter.java, java/io/SyncFailedException.java,
4701 java/io/UTFDataFormatException.java,
4702 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4703 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4704 java/io/natFileDescriptorPosix.cc,
4705 java/lang/AbstractMethodError.java,
4706 java/lang/ArithmeticException.java,
4707 java/lang/ArrayIndexOutOfBoundsException.java,
4708 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4709 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4710 java/lang/Class.java, java/lang/ClassCastException.java,
4711 java/lang/ClassCircularityError.java,
4712 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4713 java/lang/ClassNotFoundException.java,
4714 java/lang/CloneNotSupportedException.java,
4715 java/lang/Cloneable.java, java/lang/Comparable.java,
4716 java/lang/Compiler.java, java/lang/Double.java,
4717 java/lang/Error.java, java/lang/Exception.java,
4718 java/lang/ExceptionInInitializerError.java,
4719 java/lang/FirstThread.java, java/lang/Float.java,
4720 java/lang/IllegalAccessError.java,
4721 java/lang/IllegalAccessException.java,
4722 java/lang/IllegalArgumentException.java,
4723 java/lang/IllegalMonitorStateException.java,
4724 java/lang/IllegalStateException.java,
4725 java/lang/IllegalThreadStateException.java,
4726 java/lang/IncompatibleClassChangeError.java,
4727 java/lang/IndexOutOfBoundsException.java,
4728 java/lang/InstantiationError.java,
4729 java/lang/InstantiationException.java, java/lang/Integer.java,
4730 java/lang/InternalError.java, java/lang/InterruptedException.java,
4731 java/lang/LinkageError.java, java/lang/Long.java,
4732 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4733 java/lang/NoClassDefFoundError.java,
4734 java/lang/NoSuchFieldError.java,
4735 java/lang/NoSuchFieldException.java,
4736 java/lang/NoSuchMethodError.java,
4737 java/lang/NoSuchMethodException.java,
4738 java/lang/NullPointerException.java, java/lang/Number.java,
4739 java/lang/NumberFormatException.java, java/lang/Object.h,
4740 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4741 java/lang/Process.java, java/lang/Runnable.java,
4742 java/lang/Runtime.java, java/lang/RuntimeException.java,
4743 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4744 java/lang/Short.java, java/lang/StackOverflowError.java,
4745 java/lang/String.java, java/lang/StringBuffer.java,
4746 java/lang/StringIndexOutOfBoundsException.java,
4747 java/lang/System.java, java/lang/Thread.java,
4748 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4749 java/lang/Throwable.java, java/lang/UnknownError.java,
4750 java/lang/UnsatisfiedLinkError.java,
4751 java/lang/UnsupportedOperationException.java,
4752 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4753 java/lang/Void.java, java/lang/natCharacter.cc,
4754 java/lang/natClass.cc, java/lang/natDouble.cc,
4755 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4756 java/lang/natMath.cc, java/lang/natObject.cc,
4757 java/lang/natRuntime.cc, java/lang/natString.cc,
4758 java/lang/natSystem.cc, java/lang/natThread.cc,
4759 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4760 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4761 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4762 java/text/FieldPosition.java, java/text/Format.java,
4763 java/text/NumberFormat.java, java/text/ParseException.java,
4764 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4765 java/util/BitSet.java, java/util/Calendar.java,
4766 java/util/ConcurrentModificationException.java,
4767 java/util/Date.java, java/util/Dictionary.java,
4768 java/util/EmptyStackException.java, java/util/Enumeration.java,
4769 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4770 java/util/Locale.java, java/util/MissingResourceException.java,
4771 java/util/NoSuchElementException.java, java/util/Observable.java,
4772 java/util/Observer.java, java/util/Properties.java,
4773 java/util/Random.java, java/util/SimpleTimeZone.java,
4774 java/util/Stack.java, java/util/StringTokenizer.java,
4775 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4776 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4779 * exception.cc: Include eh-common.h instead of duplicating
4782 1998-11-23 Tom Tromey <tromey@cygnus.com>
4784 * configure.host: Don't add `-O2' to libjava_flags. Only add
4785 `-Os' to libjava_flags once.
4787 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4789 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4790 * Makefile.in: likewise
4791 * acconfig.h: add ECOS conditional for configure.h
4792 * config.h.in: likewise
4793 * configure: add test for --with-ecos
4794 * configure.in: likewise
4795 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4796 rename call to avoid name clash.
4797 * java/lang/natSystem.cc: add eCos clock support.
4798 * java/util/natGregorianCalendar.cc: add eCos support.
4800 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4802 * Makefile.am, Makefile.in, configure.host: tx39 build option
4805 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4807 * java/io/BufferedReader.java: Added more comments for clarity.
4808 (mark): Used more mnemonic name for local var extraBuffSpace.
4810 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4811 confusion with private method of same name in superclass.
4812 (skipRedundantLF): Set fields in special case to avoid infinite
4813 recursion. Check if markPos has been invalidated in special case.
4814 (readLine): Rewritten to use readLine method of superclass.
4815 (skip): Incorporated code from lineEnd.
4817 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4819 * java/io/BufferedReader.java (readLine): New method.
4820 (lineEnd): new private method.
4821 (mark): Track special case for readLine of getting '\r' at the
4828 * java/io/InputStreamReader.java (read): Return number chars skipped
4829 rather than requested.
4831 * java/lang/StringBuffer.java (append): Update count and differentiate
4832 between field and local variable.
4834 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4835 seconds. Deal with military style time.
4836 (parse): Consistently treat all timezones in minutes until final
4837 calculation. Flag as non-local timezone. Return value in milliseconds.
4838 (setTime): Adjust for year offset from 1900.
4839 (UTC): Adjust for year offset from 1900.
4841 1998-11-17 Tom Tromey <tromey@cygnus.com>
4843 * configure: Rebuilt.
4844 * configure.in: Switch on host, not target.
4846 * Makefile.in: Rebuilt.
4847 * Makefile.am (GCJ_no): New macro.
4848 (GCJ): Use @CANADIAN@.
4849 (GCJH_no): New macro
4850 (GCJH_canadian): New macro.
4851 (GCJH): Use @CANADIAN@.
4852 (ZIP_no): New macro.
4853 (ZIP_canadian): New macro.
4854 (ZIP): Use @CANADIAN@.
4855 * aclocal.m4, configure: Rebuilt.
4856 * configure.in (CANADIAN): Compute and subst.
4858 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4860 * java/io/FileDescriptor.java (finalize): Only close file
4861 descriptor if valid.
4863 1998-11-17 Tom Tromey <tromey@cygnus.com>
4865 * prims.cc (_Jv_InitRuntime): Removed.
4867 1998-11-16 Tom Tromey <tromey@cygnus.com>
4869 * java/io/FileOutputStream.java (close): Only close file
4870 descriptor if valid.
4871 (finalize): New method.
4873 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4874 (_Jv_NewPrimArray): Likewise.
4875 * boehm.cc (_Jv_RegisterFinalizer): Use
4876 GC_REGISTER_FINALIZER_NO_ORDER.
4877 (GC_GENERIC_MALLOC): New define.
4878 (_Jv_AllocObj): Use it.
4879 (_Jv_AllocArray): Likewise.
4880 (_Jv_AllocBytes): Likewise.
4881 (_Jv_MarkObj): Just return if vtbl not set.
4882 (_Jv_MarkArray): Likewise.
4883 (MAYBE_MARK): New macro; use everywhere.
4884 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4886 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4888 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4889 to a jlong before calculation to prevent overflow.
4891 1998-11-16 Tom Tromey <tromey@cygnus.com>
4893 * Makefile.in: Rebuilt.
4894 * Makefile.am (nat_headers): Fixed typo.
4896 1998-11-15 Tom Tromey <tromey@cygnus.com>
4898 * java/lang/Class.h (Class::getName): Removed definition.
4899 * Makefile.in: Rebuilt.
4900 * Makefile.am (nat_headers): Added InstantiationException.h,
4901 NoSuchMethodException.h.
4902 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4903 (init_name): New global.
4904 (hackRunInitializers): Use clinit_name.
4905 Include InstantiationException.h, NoSuchMethodException.h.
4906 (newInstance): Do some error checking (but not all). Call
4908 (forName): Throw exception if class not found.
4909 (getName): New method.
4910 (forName): Transform class name from external format to internal
4911 format before lookup.
4913 1998-11-15 Anthony Green <green@cygnus.com>
4915 * java/lang/Class.h (Class::forName): Method is static.
4917 * java/lang/natClass.cc (newInstance): Add simple implementation.
4920 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4922 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4923 int), for compatibility with jc1.
4925 1998-11-14 Tom Tromey <tromey@cygnus.com>
4927 * include/config.h.in: Rebuilt.
4928 * acconfig.h (LINUX_THREADS): New define.
4929 * configure: Rebuilt.
4930 * configure.in: Define LINUX_THREADS if using POSIX threads on
4931 Linux. Look for pthread_mutexattr_setkind_np function.
4932 * posix-threads.cc (throw_cleanup): New function.
4933 (really_start): Push cleanup function.
4934 (_Jv_ThreadCancel): New function.
4935 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4936 (_Jv_ThreadInitData): Set `exception' field in new structure.
4937 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4939 (_Jv_ThreadWait): New function.
4940 (_Jv_InitThreads): Initialize daemon globals.
4941 (FLAG_DAEMON): New macro.
4942 (really_start): Notify daemon_cond when non-daemon thread exits.
4943 Include <java/lang/System.h>.
4944 (struct starter): `object' field now a thread.
4945 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4946 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4947 (_Jv_ThreadWait): Removed definition.
4948 (_Jv_Thread_t): Added `exception' field.
4949 (_Jv_ThreadCancel): Removed definition.
4951 1998-11-13 Tom Tromey <tromey@cygnus.com>
4953 * Makefile.in: Rebuilt.
4954 * Makefile.am (libjava.zip): Compute javac before changing
4957 * Makefile.in: Rebuilt.
4958 * Makefile.am (libjava.zip): Include directory entries.
4960 * Makefile.in: Rebuilt.
4961 * Makefile.am (expanded): New macro.
4964 1998-11-12 Tom Tromey <tromey@cygnus.com>
4966 * prims.cc (clone): New function.
4967 * include/java-array.h (__JArray::clone): Removed definition.
4969 * java/lang/natObject.cc (clone): Don't assert that class is not
4970 an array; array's `clone' method just calls this one.
4972 * Makefile.in: Rebuilt.
4973 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4974 Now creates zip file. Changed all users.
4976 (data_DATA): New macro.
4978 1998-11-11 Tom Tromey <tromey@cygnus.com>
4980 * configure: Rebuilt.
4981 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4983 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4985 * java/io/InputStream.java (reset): Add msg to thrown exception.
4987 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4989 * java/io/LineNumberInputStream.java: Rewritten.
4991 * java/io/StringBufferInputStream.java: Removed extraneous import.
4993 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4995 * java/io/StringBufferInputStream.java: Rewritten.
4997 * java/util/Date.java (parseMonth): Optimize.
4998 (parseDayOfWeek): Created.
4999 (parse): Optimize to use parseDayOfWeek.
5001 1998-11-11 Tom Tromey <tromey@cygnus.com>
5003 * java/lang/StringBuffer.java (append): Handle case where STR is
5006 * include/javaprims.h: Regenerated class declarations.
5008 * configure: Rebuilt.
5009 * configure.in: Added --enable-gcj-classes,
5010 --enable-single-compilation, --enable-source-compilation flags.
5011 * Makefile.in: Rebuilt.
5012 * Makefile.am (java_io_files): New macro.
5013 (java_lang_files): Likewise.
5014 (java_text_files): Likewise.
5015 (java_util_files): Likewise.
5016 (java_files): Use new macros.
5017 (java-io.o): New target.
5018 (java-lang.o): Likewise.
5019 (java-text.o): Likewise.
5020 (java-util.o): Likewise.
5021 (src_io_files): New macro.
5022 (src_lang_files): Likewise.
5023 (src_text_files): Likewise.
5024 (src_util_files): Likewise.
5025 (class_io_files): New macro.
5026 (class_lang_files): Likewise.
5027 (class_text_files): Likewise.
5028 (class_util_files): Likewise.
5029 (class_files): Use new macros.
5030 (javao_files): Define conditionally.
5031 (.java.o): New target.
5032 ($(javao_files)): New target.
5034 (GCJH): Added $(EXEEXT).
5035 (CLASSPATH_ENV): Removed.
5036 (GCJCOMPILE): New macro.
5038 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
5040 * java/util/Date.java (parse): Written from scratch.
5042 1998-11-11 Tom Tromey <tromey@cygnus.com>
5044 * java/lang/Throwable.java (toString): Correct sense of test for
5045 determining when to include detail message in result.
5047 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
5050 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
5052 * java/lang/Class.h: Use _Jv_RegisterClasses, not
5054 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
5055 (_Jv_RegisterClass): Use it.
5056 * include/jvm.h (_Jv_RegisterClasses): Declare.
5057 * java/lang/natObject.cc (init): Removed.
5058 (sync_init): Never call _Jv_InitializeSyncMutex.
5059 (_Jv_InitializeSyncMutex): Don't set `init'.
5060 * prims.cc (JvRunMain): Don't run init functions.
5062 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
5064 * java/lang/natClass.cc (initializeClass): Set state before
5065 resolving constants.
5067 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
5068 (STATE_RESOLVED): New macro.
5069 (initializeClass): Call resolveConstants.
5070 (hackRunInitializers): Don't call resolveConstants.
5071 (_Jv_FindArrayClass): Move short-circuit return for primitive
5072 element types earlier in function.
5074 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
5076 * prims.cc (no_memory): New global.
5077 (_Jv_makeUtf8Const): Throw no_memory.
5078 (_Jv_AllocObject): Likewise.
5079 (_Jv_NewObjectArray): Likewise.
5080 (_Jv_NewPrimArray): Likewise.
5081 (JvRunMain): Initialize no_memory.
5083 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
5085 * java/io/FileInputStream.java: Corrected date comment.
5086 * java/io/SequenceInputStream.java: Rewritten.
5088 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
5090 * java/lang/FirstThread.java (die): New method.
5091 * java/lang/natFirstThread.cc (die): Removed.
5093 (run): Use `DIE', not `die'.
5095 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
5097 * java/io/CharArrayReader.java (read): Move check into synchronized
5098 block to prevent a close while in progress.
5101 * java/io/PushbackReader.java (read): Ditto.
5104 * java/io/StringReader.java (mark): Ditto.
5109 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
5111 * java/io/PipedInputStream.java: Updated status.
5112 (connect): Added code to prevent infinite recursion and to
5113 differentiate exception causes.
5114 (read): Added code to differentiate exception causes.
5115 (receive): Made exception pass string with the cause.
5117 * java/io/PipedOutputStream.java: Updated status.
5118 (connect): Added code to call connect at the other end of the pipe.
5120 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
5122 * java/io/PipedInputStream.java (connect): Throw exception if
5123 already connected to the same output stream.
5124 (read): Do bounds checking first.
5126 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
5128 * java/io/PipedInputStream.java: Added private boolean outClosed.
5129 (available): Removed check if output stream is open.
5130 (close): Mark the buffer as empty so available returns 0.
5131 (read): Check if the output stream was closed and then return EOF
5132 when the buffer is empty.
5133 (receive): Mark the output stream as closed when passed a -1.
5135 * java/io/PipedOutputStream.java (close): Notify the input stream
5136 that there's no more data coming.
5137 (connect): Added a FIXME comment to note more coordination needed
5138 with PipedInputStream.
5139 (flush): Added a FIXME comment to mark what this method might do
5142 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
5144 * java/io/PipedInputStream.java: Rewritten.
5146 1998-10-30 Tom Tromey <tromey@cygnus.com>
5148 * java/lang/Throwable.java: Rewrote from scratch.
5150 * java/lang/Class.h (Class): Don't mention newMultiArray.
5151 * prims.cc (newMultiArray): Removed.
5152 (_Jv_NewMultiArray): Removed.
5153 (newArray): Removed.
5154 (new_multi_array): New function.
5155 (_Jv_NewMultiArray): Rewrote from scratch.
5157 * include/javaprims.h: Regenerated class declarations.
5158 * classes.pl (scan): Don't declare PrimClass.
5159 * include/cni.h (JvPrimClass): Use new names for classes.
5160 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
5161 added _Jv_PrimClass.
5162 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
5163 (_Jv_initPrimClass): Removed.
5164 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
5165 (_Jv_AllocObject): Added comment.
5166 (_Jv_NewObjectArray): Likewise.
5167 (_Jv_NewPrimArray): Likewise.
5169 1998-10-29 Tom Tromey <tromey@cygnus.com>
5171 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
5172 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
5174 * java/lang/Class.h (Class): Added `dtable_method_count' field.
5176 * java/lang/natObject.cc (init): New global.
5177 (sync_init): Call _Jv_InitializeSyncMutex if required.
5179 * Makefile.in: Rebuilt.
5180 * Makefile.am (nat_headers): Added ClassLoader.h.
5181 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
5182 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
5183 internalAddClass, lookupArray no longer friends.
5184 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
5185 _Jv_FindArrayClass now friends.
5186 * java/lang/natClass.cc (HASH_LEN): New macro.
5187 (HASH_UTF): Likewise.
5188 (loaded_classes): New global.
5189 (_Jv_FindClass): New function.
5190 (ClassClass): New define.
5191 (_Jv_FindClassInCache): New function.
5192 (_Jv_RegisterClass): Likewise.
5193 (_Jv_NewClass): Likewise.
5195 (ObjectClass): New define.
5196 (CloneableClass): New define.
5197 * prims.cc (_Jv_FindClass): Removed.
5198 (simpleLookupClass): Removed.
5199 (insertClass): Removed.
5200 (CLASSHASHSZ): Removed.
5201 (classPool): Removed.
5202 (_Jv_RegisterClass): Removed.
5203 (internalAddClass): Removed.
5204 (ClassClass): Removed.
5205 (RuntimeClass): Removed.
5206 (lookupArray): Removed.
5207 (CloneableClass): Removed.
5208 (CLASSMAXSIG): Removed.
5209 Rearranged file to group related functions together.
5210 (_Jv_IsInstanceOf): Moved to natClass.cc.
5211 (abort_final): Removed.
5212 Removed some unused includes.
5213 (classFromSig): Removed.
5214 (_Jv_FindClassFromSignature): New function.
5215 (_Jv_initPrimClass): Renamed.
5216 (getClass): Removed.
5218 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
5220 * java/io/FileDescriptor.java (finalize): Throws IOException
5221 instead of Throwable.
5223 * java/io/FileInputStream.java: Rewritten.
5225 * java/io/StreamTokenizer.java (nextToken): Unread newline character
5226 at the end of a comment.
5228 1998-10-29 Tom Tromey <tromey@cygnus.com>
5230 * include/javaprims.h: Regenerated class declarations.
5231 * classes.pl (scan): Don't special-case ClassLoader.
5233 * prims.cc (processClass): Removed.
5234 (_Jv_InitClass): Removed.
5235 Removed all CSTATE_ macros.
5236 (resolveConstants): Removed.
5238 (_Jv_NewMultiArray): Cleaned up.
5239 * Makefile.in: Rebuilt.
5240 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5241 * java/lang/Class.h (Class): Declare new methods. processClass no
5243 * java/lang/Class.java (hackTrampoline): New method.
5244 (initializeClass): Declare.
5245 (hackRunInitializers): Declare.
5246 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5247 (initializeClass): New method.
5248 (hackRunInitializers): New method.
5249 (init_name, void_signature): Moved from prims.cc.
5250 (_Jv_InitClass): New function.
5251 (isAssignableFrom): Don't call processClass.
5252 (STATE_NOTHING): New macro.
5253 (resolveConstants): New function.
5255 (ErrorClass): New define.
5257 * java/lang/Class.java (getClassLoader): Declare.
5258 * java/lang/ClassLoader.java: Rewrote from scratch.
5260 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5261 AbstractMethodError.h, IllegalAccessError.h,
5262 NoClassDefFoundError.h.
5263 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5264 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5265 longer static. Changed return type.
5266 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5267 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5268 * prims.cc (findMethodLocal): Removed.
5269 (processClass): Use _Jv_GetMethodLocal.
5271 1998-10-28 Tom Tromey <tromey@cygnus.com>
5273 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5274 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5276 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5277 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5279 * include/jni.h: Added copyright header.
5280 * include/javaprims.h: Added copyright header.
5281 * include/java-field.h: Added copyright header.
5282 * include/java-array.h: Added copyright header.
5283 * include/cni.h: Added copyright header.
5285 * include/javaprims.h: Regenerated class declarations using
5286 classes.pl; now they are complete.
5287 * classes.pl: New file.
5289 * java/lang/natMath.cc: Include <config.h>.
5290 * java/lang/reflect/natField.cc: Include <config.h>.
5291 * java/util/NativeUtil.java: Removed.
5292 * Makefile.in: Rebuilt.
5293 * Makefile.am (nat_headers): Added Math.h.
5294 * java/lang/Math.h: Removed.
5295 * java/util/natGregorianCalendar.cc: Added copyright header.
5297 * java/lang/natFloat.cc: Added copyright header.
5298 * java/lang/Byte.java: Added copyright header.
5299 * java/lang/Void.java: Added copyright header.
5300 * java/lang/Short.java: Added copyright header.
5302 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5304 * include/javaprims.h (java::io): Added bunch of missing classes.
5306 * java/io/DataInputStream.java (readLine): Added a special case
5307 for handling BufferedInputStream data to reduce the likelihood
5308 of a pushback error.
5309 (skipBytes): Added code to handle negative number of skip bytes.
5311 * java/io/StreamTokenizer.java: Rewritten.
5313 1998-10-28 Tom Tromey <tromey@cygnus.com>
5315 * java/util/natGregorianCalendar.cc (computeFields): Call
5316 getRawOffset as a method.
5318 * include/javaprims.h (java::io): Added FilterOutputStream.
5319 * Makefile.in: Rebuilt.
5320 * Makefile.am (nat_headers): Added PrintStream.h,
5321 FilterOutputStream.h.
5322 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5324 (die): New function.
5325 (run): Die if `main' not found, is not public, or is not static.
5327 * boehm.cc (_Jv_MarkObj): Use new field names.
5328 * include/java-field.h (JvGetFirstInstanceField): Use new field
5330 (JvNumInstanceFields): Likewise.
5331 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5332 (getInterfaces): Likewise.
5333 * prims.cc (CLASS_CONSTANTS): Removed.
5334 (CLASS_CONST_SIZE): Likewise.
5335 (CLASS_CONST_TAG): Likewise.
5336 (CLASS_CONST_DATA): Likewise.
5337 (CLASS_CONST_UTF8): Likewise.
5338 (WORD2UTF): Likewise.
5339 (CLASS_CLASS): Likewise.
5340 (CLASS_PRIM_SIG): Likewise.
5341 (CLASS_ARRAY_CACHE): Likewise.
5342 (HASH_CHARS): Likewise.
5343 (hashClassName): Likewise.
5344 Many changes to use new field names.
5345 * java/lang/Class.h (Class): Renamed fields to track compiler.
5347 1998-10-27 Tom Tromey <tromey@cygnus.com>
5349 * java/lang/natClass.cc: Use #pragma implementation.
5350 (getComponentType): Moved into header.
5351 (getModifiers): Likewise.
5352 (getName): Likewise.
5353 (getSuperclass): Likewise.
5354 (isArray): Likewise.
5355 (isPrimitive): Likewise.
5356 * include/jvm.h (_Jv_FindClass): Declare.
5357 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5358 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5359 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5360 * java/lang/Class.h: Rewrote from scratch.
5361 * prims.cc: Many changes to work with new Class.h.
5362 * include/java-field.h (CLASS_FIELDS): Removed.
5363 (CLASS_SFIELDS): Likewise.
5364 (CLASS_IFIELDS): Likewise.
5365 (CLASS_NFIELDS): Likewise.
5366 (CLASS_NIFIELDS): Likewise.
5367 (CLASS_NSFIELDS): Likewise.
5368 (CLASS_FSIZE): Likewise.
5369 (JvGetFirstInstanceField): Rewrote.
5370 (JvNumInstanceFields): Likewise.
5372 * java/lang/Object.h: Added copyright comment.
5374 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5376 * java/text: New package directory.
5377 * java/text/FieldPosition.java: New class.
5378 * java/text/ParsePosition.java: New class.
5379 * java/text/ParseException.java: New Exception class.
5380 * java/text/Format.java: New class.
5381 * java/text/NumberFormat.java: New (empty placeholder) class.
5382 * java/text/DateFormatSymbols.java: New class (no Locales support).
5383 * java/text/DateFormat.java: New Format class (incomplete).
5384 * java/text/SimpleDateFormat.java: New DateFormat class.
5386 * include/javaprims.h (java::test): Added new package and classes.
5387 * java/util/Calendar.java (clone): New method.
5388 * java/util/Date.java (toString): Added non-native implementation.
5389 (parse): Made public instead of synchronized.
5390 * java/util/natDate.cc (toString): Removed.
5391 * java/util/natGregorianCalendar.cc (computeFields):
5392 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5394 1998-10-27 Tom Tromey <tromey@cygnus.com>
5396 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5398 * prims.cc (lookupArray): Added explanatory comment.
5399 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5400 class. Mark the class of each object.
5401 (_Jv_MarkArray): Mark the object's class.
5403 * configure: Rebuilt.
5404 * configure.in: Create java-gc.h.
5405 * include/boehm-gc.h: New file.
5406 * include/no-gc.h: New file.
5407 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5409 * java/lang/Object.h: Include java-gc.h.
5410 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5411 friends, if defined.
5412 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5414 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5416 1998-10-26 Tom Tromey <tromey@cygnus.com>
5418 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5419 paragraph separators, not numbers.
5421 * java/io/Writer.java (write): Removed write(char) to avoid
5423 * java/util/Properties.java: Rewrote from scratch.
5424 * include/javaprims.h (java::io): Added PrintWriter,
5425 BufferedWriter, PushbackReader.
5427 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5429 * java/lang/System.java: exit() is a static method.
5431 1998-10-26 Tom Tromey <tromey@cygnus.com>
5433 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5435 (_Jv_NewStringUtf8Const): Likewise.
5436 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5437 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5439 * java/lang/Object.h (Object): Add mark_array as friend function.
5440 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5441 _Jv_AllocBytes, to ensure that header is marked.
5442 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5444 (mark_array): Push sync_info field for array.
5446 1998-10-24 Tom Tromey <tromey@cygnus.com>
5448 * java/lang/String.java (String): Updated for StringBuffer
5450 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5452 * java/lang/StringBuffer.java: Renamed fields to conform to
5453 serialization spec: buffer->value, next->count, copy->shared.
5455 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5457 * java/util/TimeZone.java: New class.
5458 * java/util/SimpleTimeZone.java: New class.
5459 * java/util/Locale.java: New file.
5460 * java/util/Calendar.java: Make almost complete.
5461 * java/util/GregorianCalendar.java
5462 * java/util/natGregorianCalendar.cc: New file.
5463 * java/util/Date.java: Re-written from scratch.
5464 * java/util/natDate.cc (setTime): Removed - no longer native.
5465 * include/javaprims.h (java::util): Add new classes.
5466 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5467 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5469 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5471 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5472 returning it as a jint.
5474 1998-10-23 Tom Tromey <tromey@cygnus.com>
5476 * prims.cc (arg_vec, main_group, main_thread): New globals.
5477 (JvRunMain): Use them.
5479 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5481 * java/io/DataInputStream.java: Rewritten.
5483 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5484 tertiary bytes with 0x80 per spec.
5486 1998-10-23 Tom Tromey <tromey@cygnus.com>
5488 * java/lang/String.java (init): Changed name of `copy' argument.
5489 * java/lang/natString.cc (init): Inverted sense of `copy'
5492 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5493 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5494 * boehm.cc (ObjectClass): New define.
5495 (ClassClass): Likewise.
5496 (mark_obj): Special-case Object and Class.
5498 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5500 * java/util/BitSet.java: Rewrote from scratch.
5502 * prims.cc (lookupArray): Removed useless cast.
5504 * java/lang/natObject.cc: Use `#pragma implementation'.
5506 * java/lang/String.java (init): Added `copy' argument.
5507 (String): Look in StringBuffer to find char array.
5508 * java/lang/natString.cc (init): Added `copy' argument.
5509 * java/lang/StringBuffer.java: Rewrote from scratch.
5511 * java/lang/Compiler.java: Rewrote from scratch.
5512 * java/lang/Throwable.java: Don't use NativeLang.
5513 * include/javaprims.h (java::lang): Don't mention NativeLang.
5514 * java/lang/Process.java: Rewrote from scratch.
5515 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5517 (currentClassLoader): Likewise.
5518 (currentLoadedClass): Likewise.
5519 * java/lang/natClass.cc (getClassLoader): Commented out.
5520 * java/lang/Class.java (getClassLoader): Commented out.
5521 * java/lang/Compiler.java: Removed.
5522 * java/lang/NativeLang.java: Removed.
5524 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5525 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5526 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5527 (_Jv_hashUtf8String): Now static.
5528 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5529 name of return type.
5531 * java/lang/Class.h (Class): Declare checkMemberAccess.
5532 * Makefile.in: Rebuilt.
5533 * Makefile.am (nat_headers): Added Member.h.
5534 * java/lang/natClass.cc: Include Member.h.
5535 (getDeclaredClasses): Call checkMemberAccess.
5536 * java/lang/Class.java (checkMemberAccess): Call
5537 SecurityManager.checkMemberAccess.
5539 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5541 * java/lang/SecurityManager.java: Rewritten.
5543 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5545 * java/applet/Applet.java, java/applet/AppletContext.java,
5546 java/applet/AppletStub.java, java/applet/AudioClip.java,
5547 java/awt/AWTError.java, java/awt/AWTException.java,
5548 java/awt/BorderLayout.java, java/awt/Button.java,
5549 java/awt/Canvas.java, java/awt/CardLayout.java,
5550 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5551 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5552 java/awt/Color.java, java/awt/Component.java,
5553 java/awt/Container.java, java/awt/Dialog.java,
5554 java/awt/Dimension.java, java/awt/Event.java,
5555 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5556 java/awt/Font.java, java/awt/FontMetrics.java,
5557 java/awt/Frame.java, java/awt/Graphics.java,
5558 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5559 java/awt/GridLayout.java, java/awt/Image.java,
5560 java/awt/Insets.java, java/awt/Label.java,
5561 java/awt/LayoutManager.java, java/awt/List.java,
5562 java/awt/MediaTracker.java, java/awt/Menu.java,
5563 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5564 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5565 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5566 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5567 java/awt/TextArea.java, java/awt/TextComponent.java,
5568 java/awt/TextField.java, java/awt/Toolkit.java,
5569 java/awt/Window.java, java/awt/image/ColorModel.java,
5570 java/awt/image/CropImageFilter.java,
5571 java/awt/image/DirectColorModel.java,
5572 java/awt/image/FilteredImageSource.java,
5573 java/awt/image/ImageConsumer.java,
5574 java/awt/image/ImageFilter.java,
5575 java/awt/image/ImageObserver.java,
5576 java/awt/image/ImageProducer.java,
5577 java/awt/image/IndexColorModel.java,
5578 java/awt/image/MemoryImageSource.java,
5579 java/awt/image/PixelGrabber.java,
5580 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5581 java/awt/peer/CanvasPeer.java,
5582 java/awt/peer/CheckboxMenuItemPeer.java,
5583 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5584 java/awt/peer/ComponentPeer.java,
5585 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5586 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5587 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5588 java/awt/peer/MenuBarPeer.java,
5589 java/awt/peer/MenuComponentPeer.java,
5590 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5591 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5592 java/awt/peer/TextAreaPeer.java,
5593 java/awt/peer/TextComponentPeer.java,
5594 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5595 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5596 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5597 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5598 java/net/MalformedURLException.java, java/net/NativeNet.java,
5599 java/net/ProtocolException.java, java/net/ServerSocket.java,
5600 java/net/Socket.java, java/net/SocketException.java,
5601 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5602 java/net/URL.java, java/net/URLConnection.java,
5603 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5604 java/net/URLStreamHandlerFactory.java,
5605 java/net/UnknownHostException.java,
5606 java/net/UnknownServiceException.java: Removed.
5608 1998-10-22 Tom Tromey <tromey@cygnus.com>
5610 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5611 finalizer is not Object.finalize.
5612 (internalAddClass): Don't set `final' member of class.
5613 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5614 other places that know about finalize() location.
5615 * java/lang/Class.h (Class): Removed `final' field.
5617 * aclocal.m4, configure: Rebuilt.
5618 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5619 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5621 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5622 * Makefile.in: Rebuilt.
5623 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5625 1998-10-21 Tom Tromey <tromey@cygnus.com>
5627 * java/lang/Object.java (finalize): Move to be first method in
5630 * configure: Rebuilt.
5631 * configure.in (GCINCS): Include contents of boehm-cflags file.
5633 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5635 * java/lang/ArrayIndexOutOfBoundsException.java
5636 (ArrayIndexOutOfBoundsException): Fixed string literal.
5637 * java/lang/StringIndexOutOfBoundsException.java
5638 (StringIndexOutOfBoundsException): Fixed string literal.
5640 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5642 * natFileDescriptorEcos.cc added.
5643 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5645 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5647 * acconfig.h: test for __int32_t and __uint32_t added.
5648 * include/config.h.in: test for __int32_t and __uint32_t added.
5649 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5650 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5651 * configure.in: test for __int32_t and __uint32_t added.
5652 * configure: test for __int32_t and __uint32_t added.
5654 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5656 * configure.in: Test for --enable ecos and link
5657 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5658 natFileDescriptorPosix.cc
5660 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5662 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5664 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5667 * java/io/CharArrayReader.java (close): Synchronize on lock
5668 object per Reader contract.
5669 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5670 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5671 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5672 Ensure that arg passed in isn't negative.
5674 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5675 constructing the superclass.
5677 * java/io/PushbackReader.java (close): Synchronize on lock
5678 object per Reader contract.
5679 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5680 (ready): Synchronize on lock obj. Throw IOException if reader
5682 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5683 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5684 Ensure that arg passed in isn't negative.
5685 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5687 * java/io/StringReader.java: Created.
5689 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5691 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5693 (read): Removed synchronized modifier to match JCL.
5694 (reset): Removed synchronized modifier to match JCL.
5695 (skip): Removed synchronized modifier to match JCL.
5697 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5699 * java/io/PushbackReader.java (PushbackReader): Made
5700 constructors public.
5702 1998-10-17 Tom Tromey <tromey@cygnus.com>
5704 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5705 constructors public.
5707 1998-10-16 Anthony Green <green@cygnus.com>
5709 * aclocal.m4, configure: Rebuilt.
5710 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5712 * configure.host: Rewrote.
5713 * Makefile.in: Rebuilt.
5714 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5715 (AM_CFLAGS): New macro.
5716 ($(c_files)): Use COMPILE macro.
5717 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5718 automake problem(s).
5720 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5722 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5724 * java/io/CharArrayReader.java: Created.
5726 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5728 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5729 size check to allow 0 per JCL.
5731 * java/io/PushbackReader.java: Created.
5733 1998-10-16 Tom Tromey <tromey@cygnus.com>
5735 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5736 <sys/time.h> includes.
5737 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5738 * include/no-threads.h: Conditionalize <unistd.h> include on
5741 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5743 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5746 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5748 * java/io/FilterReader.java: Created.
5750 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5752 * java/io/PushbackInputStream.java: Rewritten.
5754 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5755 that size passed to constructor is legal.
5756 (read): Check that args passed in are legal.
5757 (skip): Rewritten to get rid of the temporary buffer.
5758 (refill): Added marklimit check to grow the buffer.
5760 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5762 (bytesAvail): Removed.
5763 (read): Changed bytesAvail to Math.min.
5764 (skip): Changed bytesAvail to Math.min.
5766 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5767 from the throws clause.
5768 (skip): Rewritten to use a temporary buffer.
5770 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5772 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5775 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5777 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5778 to write the double one word at a time.
5780 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5782 * java/io/BufferedInputStream.java: Rewritten.
5784 1998-10-12 Tom Tromey <tromey@cygnus.com>
5786 * jni.cc: Include config.h and stddef.h.
5788 * java/lang/Class.h (_dispatchTable): Removed again.
5789 Removed all ACC_* defines again.
5791 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5793 * Makefile.am (nat_files): Add netField.o.
5794 (libjava_a_SOURCES): Add jni.cc.
5795 (java/lang/reflect/Field.h): New rule.
5796 * Makefile.in: Re-generated.
5797 * include/javaprims.h: Add some extra class and typedefs.
5798 * include/jni.h: New file.
5801 * include/java-field.h: New file.
5802 * include/jvm.h: #include <java-field.h>.
5803 * boehm.cc: #include <java-field.h>.
5804 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5805 * java/lang/reflect/Member.java: New class.
5806 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5807 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5809 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5811 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5812 testsuite/Makefile.in: Rebuilt.
5813 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5814 * configure.host: Created.
5816 1998-10-10 Tom Tromey <tromey@cygnus.com>
5818 * java/lang/natObject.cc (sync_init): Always allocate a new
5821 1998-10-09 Tom Tromey <tromey@cygnus.com>
5823 * java/io/ByteArrayInputStream.java (mark): Renamed from
5826 * java/io/FileOutputStream.java (finalize): Removed.
5827 * java/io/FileDescriptor.java (finalize): New method.
5829 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5831 * ByteArrayInputStream.java: Corrected status comment.
5833 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5835 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5837 1998-10-08 Tom Tromey <tromey@cygnus.com>
5839 * prims.cc (lookupArray): Use static array to initialize list of
5842 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5844 * prims.cc (lookupArray): Initialize the msize for new
5847 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5849 * configure: Rebuilt.
5850 * configure.in: Check for fsync and sleep.
5851 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5853 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5854 HAVE_SLEEP. Include config.h.
5856 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5857 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5860 1998-10-08 Tom Tromey <tromey@cygnus.com>
5862 * java/io/natFile.cc: Don't include SecurityManager.h.
5863 (performList): Renamed.
5864 (performMkdir): Likewise.
5865 (performRenameTo): Likewise.
5866 (performDelete): Likewise.
5868 * java/io/File.java (performDelete): Renamed from natDelete.
5869 (list): Now written in Java.
5870 (performList): New method.
5871 (performMkdir): New method.
5872 (mkdir): Now written in Java.
5873 (performRenameTo): New method.
5874 (renameTo): Now written in Java.
5876 1998-10-06 Tom Tromey <tromey@cygnus.com>
5878 * Makefile.in: Rebuilt.
5879 * Makefile.am (ETAGS_ARGS): New macro.
5880 (TAGS_DEPENDENCIES): Likewise.
5882 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5884 * Makefile.in: Rebuilt.
5885 * Makefile.am: Use -classpath option with javac.
5887 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5889 * java/io/FileOutputStream.java (finalize): Call
5892 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5894 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5896 * java/lang/mprec.c: Ditto.
5898 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5901 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5903 * java/io/InputStream.java (skip): Make local var i a long.
5905 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5907 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5908 * prims.cc (lookupArray): Use memcpy, not memmove.
5909 * include/config.h.in: Rebuilt.
5910 * acconfig.h (HAVE_MEMCPY): Added.
5911 * configure: Rebuilt.
5912 * configure.in: Check for memcpy again.
5914 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5915 String.compareTo, not ==.
5917 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5918 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5919 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5920 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5921 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5922 into new array's dtable.
5923 (_Jv_AllocObject): Use _Jv_DispatchTable.
5924 (_Jv_NewPrimArray): Likewise.
5925 (_Jv_NewObjectArray): Likewise.
5927 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5929 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5930 offending index value.
5931 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5933 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5934 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5936 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5938 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5940 * java/io/OutputStream.java (write): Use off and len parameters to
5941 output partial byte array.
5943 * java/io/BufferedReader.java, java/io/FileReader.java,
5944 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5945 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5946 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5947 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5949 * include/javaprims.h (java::lang): Added
5950 ExceptionInInitializerError, IllegalStateException,
5951 NoSuchFieldException, and UnsupportedOperationException.
5953 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5955 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5958 * include/java-array.h (__JArray): Added clone method.
5959 * prims.cc (CloneableClass): New define.
5960 (lookupArray): Initialize array class to indicate that it
5961 implements Cloneable.
5963 * java/lang/Class.h: Removed all ACC_* defines.
5964 * prims.cc: Include Modifier.h.
5965 (_Jv_LookupInterfaceMethod): Use methods in
5966 java.lang.reflect.Modifier, not ACC_ defines.
5968 * java/lang/Class.h (Class): Declare getClasses,
5969 getDeclaredClasses, getDeclaringClass, getModifiers,
5970 * java/lang/Class.java: Rewrote from scratch.
5972 * include/javaprims.h (java::lang): Added reflect and
5974 * Makefile.in: Rebuilt.
5975 * Makefile.am (nat_headers): Added Modifier.h.
5977 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5980 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5982 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5983 instead of test and abort.
5985 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5986 remove compiler warning.
5988 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5990 * java/lang/natDouble.cc: zero terminate string.
5991 * strtod.c: Set errno if no digits are found in fraction.
5993 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5995 * java/lang/reflect/Modifier.java: New file.
5997 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5998 * java/lang/VerifyError.java: Rewrote from scratch.
5999 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
6000 * java/lang/UnknownError.java: Rewrote from scratch.
6001 * java/lang/StackOverflowError.java: Rewrote from scratch.
6002 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
6003 * java/lang/InternalError.java: Rewrote from scratch.
6004 * java/lang/IllegalAccessError.java: Rewrote from scratch.
6005 * java/lang/ExceptionInInitializerError.java: New file.
6006 * java/lang/Error.java: Rewrote from scratch.
6007 * java/lang/ClassFormatError.java: Rewrote from scratch.
6008 * java/lang/ClassCircularityError.java: Rewrote from scratch.
6009 * java/lang/AbstractMethodError.java: Rewrote from scratch.
6010 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
6011 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
6012 * java/lang/LinkageError.java: Rewrote from scratch.
6013 * java/lang/IncompatibleClassChangeError.java: Rewrote from
6015 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
6017 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
6018 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
6020 * include/cni.h (JvAllocObject): Moved from prims.cc.
6022 * prims.cc (JvAllocObject): Moved to cni.h.
6023 (_Jv_AllocObject): Use _Jv_FinalizeObject.
6024 (finalize_name): Removed.
6026 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
6028 * java/lang/Class.h (Class): Added size() method.
6029 * prims.cc (_Jv_MonitorEnter): Removed.
6030 (_Jv_MonitorExit): Removed.
6031 * java/lang/Object.h (JvSyncInfo): Removed.
6032 * Makefile.in: Rebuilt.
6033 * Makefile.am (nat_headers): Added Cloneable.h,
6034 CloneNotSupportedException.h.
6035 * java/lang/Object.h: Rewrote.
6036 * java/lang/natObject.cc: Rewrote from scratch.
6037 * java/lang/Object.java: Rewrote from scratch.
6039 * java/io/natFile.cc: Conditionally include <dirent.h>.
6040 (list): If no <dirent.h>, always return NULL.
6041 * configure: Rebuilt.
6042 * configure.in: Check for dirent.h.
6044 * prims.cc (lookupArray): Don't use sprintf.
6046 * java/util/Hashtable.java (containsKey): Use `abs' to compute
6053 * java/util/Hashtable.java (hsize): Renamed from size to avoid
6054 name conflict with method.
6056 * include/javaprims.h (java::util): Added HashtableEntry.
6058 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
6060 * java/util/Hashtable.java: Rewritten.
6062 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6064 * java/io/natFileDescriptor.cc (write): Correctly test `write'
6068 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
6071 * posix-threads.cc (_Jv_CondWait): Now returns int.
6072 * include/javaprims.h (java::lang): Added
6073 IllegalMonitorStateException.
6074 * Makefile.in: Rebuilt.
6075 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
6076 * include/no-threads.h (_Jv_CondDestroy): Removed.
6077 (_Jv_MutexDestroy): Removed.
6078 (_Jv_CondWait): Now returns int.
6079 (_Jv_CondNotify): Likewise. Added mutex argument.
6080 (_Jv_CondNotifyAll): Likewise.
6081 (_Jv_MutexLock): Always succeed.
6082 (_Jv_MutexUnlock): Likewise.
6083 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
6084 (_Jv_HaveMutexDestroy): Define.
6085 (_Jv_CondNotify): Now returns int. Added mutex argument.
6086 (_Jv_CondNotifyAll): Likewise.
6087 * include/quick-threads.h (_Jv_CondDestroy): Removed.
6088 (_Jv_MutexDestroy): Removed.
6089 (_Jv_CondWait): Now returns int.
6090 (_Jv_CondNotify): Likewise. Added mutex argument.
6091 (_Jv_CondNotifyAll): Likewise.
6092 * java/lang/natObject.cc (finalize_sync_info): New function.
6093 (init_mutex): Initialize `init' and register finalizer if
6096 (init_mutex): Use it.
6098 (notifyAll): Use it.
6100 (notify): Throw IllegalMonitorStateException on failure.
6101 (notifyAll): Likewise.
6102 (wait): Likewise. Also, throw InterruptedException if
6104 Include cni.h, Thread.h, IllegalMonitorStateException.h,
6105 InterruptedException.h, IllegalArgumentException.h.
6106 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
6108 * java/lang/natString.cc: Renamed all `JvPriv' functions.
6109 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
6110 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
6111 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
6112 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
6113 * quick-threads.cc: Renamed all `JvPriv' functions.
6114 * prims.cc: Renamed all `JvPriv' functions.
6115 * posix-threads.cc: Renamed all `JvPriv' functions.
6116 * nogc.cc: Renamed all `JvPriv' functions.
6117 * no-threads.cc: Renamed all `JvPriv' functions.
6118 * boehm.cc: Renamed all `JvPriv' functions.
6119 * include/quick-threads.h: Renamed all `JvPriv' functions.
6120 * include/posix-threads.h: Renamed all `JvPriv' functions.
6121 * include/no-threads.h: Renamed all `JvPriv' functions.
6122 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
6124 * include/no-threads.h (JvPrivCondWait): Wrote minimal
6126 (JvPrivCondNotify): Do nothing.
6127 (JvPrivCondNotifyAll): Do nothing.
6129 * prims.cc (processClass): Handle case where state is
6132 * java/lang/natFirstThread.cc: Include <stdlib.h>
6134 * configure: Rebuilt.
6135 * configure.in: Fixed sense of --enable-libjava-debug.
6137 * java/lang/natThread.cc (join): Declare `t' outside the loop so
6138 it can be used afterward by the assertion.
6140 * configure: Rebuilt.
6141 * configure.in: When cross-compiling, assume alloca.
6143 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
6144 __builtin_alloca (autoconf docs are wrong here).
6146 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
6148 (available): Use `FD_ZERO' (typo fix).
6150 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6152 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6153 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
6155 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6156 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
6159 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
6161 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
6163 * java/lang/natDouble.cc: Declare alloca safely.
6165 * configure, include/config.h.in: Rebuilt.
6166 * configure.in: Add alloca check.
6168 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6170 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
6171 condition while calling notify.
6172 (join): Remove `curr_nt' from `nt's join list, not vice versa.
6173 (interrupt): Hold mutex for interrupt condition while calling
6176 * java/lang/natString.cc (init): Allocate and try to read `count'
6177 characters, not `count - offset' characters.
6179 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
6180 Correctly compute `count'.
6182 * java/lang/Boolean.java (getBoolean): Return false if property
6185 * java/lang/System.java (setProperties): Set prop_init.
6187 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
6189 * java/io/PrintStream.java (println): Use line.separator, not
6191 * java/lang/System.java (out, err): Make both autoflush streams.
6192 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
6194 * include/config.h.in: Rebuilt.
6195 * acconfig.h (HAVE_MEMCPY): Removed.
6196 * configure: Rebuilt.
6197 * configure.in: Never define HAVE_MEMCPY.
6199 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6201 (_Jv_AllocString): Use JvAllocObject again.
6202 * java/lang/Class.h (thread): New field.
6203 (_Jv_AllocString): No longer a friend.
6204 * prims.cc (processClass): Removed dead code. Changed to more
6205 closely follow the Java Language Specification.
6206 (processClass): Return early if already at the right state.
6208 * prims.cc (JvNewStringUTF): Removed.
6209 * include/cni.h (JvNewStringUTF): New function.
6210 (_Jv_NewStringUTF): Declare as `extern "C"'.
6211 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6213 * java/lang/natDouble.cc: Added copyright info and header
6214 comment. Include <stdlib.h>.
6215 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
6216 bytes as are chars in string.
6218 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
6220 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6224 * java/lang/System.java (init_properties): Now native.
6225 * java/lang/natSystem.cc (init_properties): New method.
6226 Include java/util/Properties.h.
6228 * Makefile.in: Rebuilt.
6229 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6230 OutputStreamWriter.h, ByteArrayInputStream.h,
6231 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6232 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6233 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6234 Properties.h, Hashtable.h, Dictionary.h.
6237 * include/javaprims.h (java::io): Added Reader, Writer,
6238 InputStreamReader, OutputStreamWriter,
6239 UnsupportedEncodingException, ByteArrayInputStream,
6240 ByteArrayOutputStream, EOFException, SyncFailedException,
6241 PushbackInputStream.
6242 (java::lang): Added Cloneable.
6243 (java::util): Added NoSuchElementException, VectorEnumeration,
6244 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6246 * java/io/PipedReader.java: New file.
6248 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6250 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6253 * java/io/io-defs.h: Removed.
6255 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6256 (FileInputStream): Use new constructor. Can throw IOException.
6258 * java/lang/System.java (getProperty): Don't throw
6259 NullPointerException.
6261 * java/io/RandomAccessFile.java: Rewrote from scratch.
6263 * java/io/natFileDescriptor.cc: Include EOFException.h.
6265 (length): New method.
6266 (getFilePointer): New method.
6268 (available): New method.
6269 * java/io/FileDescriptor.java (SET, CUR): New constants.
6270 (seek, length, getFilePointer, read, available): New decls.
6272 * java/io/PipedWriter.java: New file.
6273 * java/io/StringWriter.java: New file.
6274 * java/io/CharArrayWriter.java: New file.
6275 * java/io/CharConversionException.java: New file.
6276 * java/io/BufferedWriter.java: New file.
6277 * java/io/FilterWriter.java: New file.
6278 * java/io/FileWriter.java: New file.
6280 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6281 OutputStreamWriter.h, NullPointerException.h,
6282 ByteArrayInputStream.h, InputStreamReader.h.
6283 (getBytes): New method.
6284 (init): Throw NullPointerException.
6285 (init): New function.
6286 * java/lang/String.java (getBytes): Added missing decl.
6287 (getBytes): New method.
6288 (String): Added byte[]-based constructors.
6289 (copyValueOf): Wrote.
6290 (init): Declare variant which takes byte array and encoding.
6291 Import java.io.UnsupportedEncodingException.
6293 * java/io/File.java: Rewrote from scratch.
6294 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6295 * java/io/FileDescriptor.java: Rewrote from scratch.
6296 * java/io/FilenameFilter.java: Rewrote from scratch.
6298 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6300 * java/io/SyncFailedException.java: New file.
6301 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6302 * java/io/InterruptedIOException.java: Rewrote from scratch.
6303 * java/io/FileNotFoundException.java: Rewrote from scratch.
6304 * java/io/EOFException.java: Rewrote from scratch.
6305 * java/io/IOException.java: Rewrote from scratch.
6306 * java/io/PrintStream.java: Rewrote from scratch.
6307 * java/io/DataOutputStream.java: Rewrote from scratch.
6308 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6309 * java/io/FilterOutputStream.java: Rewrote from scratch.
6310 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6311 * java/io/PipedOutputStream.java: Rewrote from scratch.
6312 * java/io/FileOutputStream.java: Rewrote from scratch.
6313 * java/io/OutputStream.java: Rewrote from scratch.
6314 * java/io/DataOutput.java: Rewrote from scratch.
6316 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6318 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6320 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6322 * configure.in: Add --enable-libjava-debug
6324 * Makefile.am (nat_headers): Add java/lang/Float.h and
6327 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6329 * Makefile.in, configure, include/config.h.in: Rebuilt.
6331 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6333 * java/lang/Float.java: Rewritten
6334 * java/lang/Double.java: Rewritten
6335 * java/lang/natFloat.cc: toString() added.
6336 * java/lang/natDouble.cc: toString() added.
6337 * java/lang/natDouble.cc: doubleValueOf() added.
6338 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6339 java/lang/strtod.c: added.
6340 * ieeefp.h: __sparc added.
6341 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6343 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6345 * include/javaprims.h (java::lang): Added
6346 CloneNotSupportedException.
6348 * java/lang/Object.java (clone): No longer native. Implemented.
6349 * java/lang/natObject.cc (clone): Removed.
6351 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6353 * prims.cc: Don't make definitions `extern "C"'.
6354 (_Jv_RegisterClass): Renamed from registerClass.
6355 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6356 (_Jv_NewArray): Likewise.
6357 (_Jv_NewMultiArray): Likewise.
6358 (_Jv_CheckCast): Likewise.
6359 (_Jv_LookupInterfaceMethod): Likewise.
6360 (_Jv_CheckArrayStore): Likewise.
6361 (_Jv_RegisterClass): Likewise.
6363 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6364 * configure: Rebuilt.
6365 * configure.in: Don't check for fmod; it is provided by the fdlibm
6367 * prims.cc (fmod): Removed.
6369 * java/lang/natString.cc (charAt): Use _Jv_uint.
6370 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6371 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6372 (equalUtf8Consts): Likewise.
6373 (internalAddClass): Use _Jv_uint.
6374 (processClass): Likewise.
6375 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6376 (_Jv_uint): Renamed from uint32.
6377 (struct _Jv_Utf8Const): Changed members to use new type names.
6379 * configure: Rebuilt.
6380 * configure.in: Don't check for memcpy. Require memmove and a way
6382 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6384 (currentTimeMillis): Don't use #error.
6386 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6388 * java/lang/Math.java: static member random renamed to random_ to
6389 avoid conflict with member function of the same name.
6390 * include/javaprims.h: java.util.Random added.
6392 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6394 * include/java-chartables.h: Regenerated.
6395 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6398 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6400 * java/lang/Math.java: Rewritten.
6401 * java/lang/natMath.cc: New file.
6402 * Files added from fdlibm:
6403 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6404 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6405 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6406 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6407 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6408 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6409 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6410 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6411 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6412 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6413 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6414 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6415 java/lang/k_cos.c, java/lang/sf_ceil.c,
6416 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6417 java/lang/ieeefp.h, java/lang/fdlibm.h
6418 * Makefile.am: rules added for compiling C files from fdlibm.
6420 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6422 * chartables.pl: Minor documentation fixes.
6424 * configure: Rebuilt.
6425 * configure.in: Fixed --help output for --enable-fast-character.
6427 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6429 * configure: Rebuilt.
6430 * configure.in: Recognize --enable-fast-character.
6431 * acconfig.h (COMPACT_CHARACTER): New define.
6432 * include/config.h.in: Rebuilt.
6433 * include/java-chartables.h: New file.
6434 * Makefile.in: Rebuilt.
6435 * Makefile.am (nat_files): Added natCharacter.o.
6436 * java/lang/natCharacter.cc: New file.
6437 * chartables.pl (set_attribute): New function.
6438 (@attributes, @second_attributes): New globals.
6439 ($ROMAN_START, $ROMAN_END): Likewise.
6440 (process_char): Call set_attribute when required.
6441 (print_char): Just print hex value.
6442 (print_block): Generate C++ syntax.
6443 (print_numerics): Likewise.
6444 (print_single_map): Likewise.
6445 (print_all_block): Likewise.
6446 (print_case_table): Likewise.
6447 (print_fast_tables): New function.
6448 Generate C++ code suitable for a header file.
6449 * java/lang/Character.java (table_search): Removed.
6450 (digit_value): Now native.
6451 (getNumericValue): Likewise.
6452 (getType): Likewise.
6453 Removed all automatically-generated tables.
6454 (Tamil_Digit_One): Removed.
6455 (isSpaceChar): Now native.
6456 (isTitleCase): Likewise.
6457 (isLowerCase): Likewise.
6458 (isUpperCase): Likewise.
6459 (toLowerCase): Likewise.
6460 (toTitleCase): Likewise.
6461 (toUpperCase): Likewise.
6462 (isDefined): Fixed sense of test.
6464 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6466 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6468 (regionMatches): Likewise.
6470 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6472 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6474 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6476 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6479 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6482 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6484 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6486 * prims.cc (instanceof_class): Removed.
6487 (instanceof_array): Likewise.
6488 (instanceof): Likewise.
6489 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6490 (_Jv_CheckCast): Likewise.
6491 * java/lang/natClass.cc (isAssignableFrom): New method.
6492 * java/lang/Class.java (isAssignableFrom): Now native.
6494 * include/cni.h (JvThrow): Use `extern inline'.
6495 (JvAllocObject): Likewise.
6496 (JvInitClass): Likewise.
6498 * java/lang/natSystem.cc (arraycopy): Only check class of source
6501 * prims.cc (_Jv_CheckArrayStore): Wrote.
6502 (_Jv_MonitorEnter): Prefer `JvThrow'.
6503 Include ArrayStoreException.h.
6504 (_Jv_CheckCast): Indentation cleanup.
6506 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6508 * chartables.pl: New file.
6509 * java/lang/Character.java: Rewrote from scratch.
6511 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6513 * java/lang/ArithmeticException.java,
6514 java/lang/ArrayIndexOutOfBoundsException.java,
6515 java/lang/ArrayStoreException.java,
6516 java/lang/ClassCastException.java,
6517 java/lang/ClassNotFoundException.java,
6518 java/lang/CloneNotSupportedException.java,
6519 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6520 java/lang/IllegalArgumentException.java,
6521 java/lang/IllegalMonitorStateException.java,
6522 java/lang/IllegalThreadStateException.java,
6523 java/lang/IndexOutOfBoundsException.java,
6524 java/lang/InstantiationException.java,
6525 java/lang/InterruptedException.java,
6526 java/lang/NegativeArraySizeException.java,
6527 java/lang/NoSuchMethodException.java,
6528 java/lang/NullPointerException.java,
6529 java/lang/NumberFormatException.java,
6530 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6531 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6533 * java/lang/IllegalStateException.java,
6534 java/lang/NoSuchFieldException.java,
6535 java/lang/UnsupportedOperationException.java: Created.
6537 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6539 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6540 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6542 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6544 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6546 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6548 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6550 * Makefile.in: Rebuilt.
6552 * include/javaprims.h (java::lang): Added
6553 StringIndexOutOfBoundsException.
6555 * java/lang/String.java: Added header comment and FIXME comment for
6556 missing constructors/methods.
6557 (endsWith): Adjusted offset into string to look at just the last chars.
6558 Commented out undocumented method.
6560 * java/lang/natString.cc: Added includes for
6561 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6562 (String::init): Throw StringIndexOutOfBoundsException.
6563 (String::charAt): Throw StringIndexOutOfBoundsException.
6564 (String::substring): Throw StringIndexOutOfBoundsException.
6565 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6566 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6567 (String::compareTo): Return difference/offset between chars/strings.
6569 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6571 * java/lang/Boolean.java (TYPE): Added comment.
6573 * java/lang/Byte.java (decode): Added - commented out until dependent
6574 code for Integer is written.
6575 (compareTo): JDK 1.2 methods written.
6576 (hashCode): Added comment to note that values have been verified.
6578 * java/lang/Short.java (decode): Added - commented out until dependent
6579 code for Integer is written.
6580 (compareTo): JDK 1.2 methods written.
6581 (hashCode): Added comment to note that values have been verified.
6583 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6585 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6587 * include/javaprims.h (java::lang): Added VirtualMachineError,
6589 * Makefile.in: Rebuilt.
6590 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6591 VirtualMachineError.h.
6592 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6593 (lookupArray): Likewise.
6594 (makeUtf8Const): Likewise.
6595 (_Jv_AllocObject): Likewise.
6596 (_Jv_NewObjectArray): Likewise.
6597 Include OutOfMemoryError.h.
6599 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6600 to use JvNewStringLatin1.
6602 * java/io/io-defs.h: Include java/lang/IOException.h.
6603 * Makefile.in: Rebuilt.
6604 * Makefile.am (nat_headers): Added
6605 ArrayIndexOutOfBoundsException.h,
6606 ClassFormatError.h,ClassNotFoundException.h,
6607 ClassCircularityError.h, ClassCastException.h,
6608 IncompatibleClassChangeError.h, AbstractMethodError.h,
6609 IllegalAccessError.h, LinkageError.h, Error.h,
6610 NegativeArraySizeException.h, IOException.h.
6611 * include/cni.h (SignalError): Removed declaration.
6612 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6613 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6614 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6615 (newInstance): Likewise.
6616 (forName): Likewise.
6617 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6619 (read): Use JvThrow, not SignalError.
6624 (open_read): Likewise.
6625 (open_write): Likewise.
6628 (newstr): New function.
6629 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6631 (lastModifiedUnchecked): Likewise.
6632 (lengthUnchecked): Likewise.
6633 * include/javaprims.h (sorry): Removed declaration.
6634 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6635 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6636 ClassCastException, IncompatibleClassChangeError,
6637 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6638 * prims.cc (instanceof_array): Use JvFail, not sorry.
6640 Include ArrayIndexOutOfBoundsException.h,
6641 ClassFormatError.h,ClassNotFoundException.h,
6642 ClassCircularityError.h, ClassCastException.h,
6643 IncompatibleClassChangeError.h, AbstractMethodError.h,
6644 IllegalAccessError.h, NegativeArraySizeException.h.
6645 (_Jv_ThrowBadArrayIndex): Implemented.
6646 (JvNewStringUTF): Use JvFail, not sorry.
6647 (_Jv_FindClass): Likewise.
6648 (_Jv_NewArray): Likewise.
6649 (throwException): Removed.
6650 (getClass): Use JvThrow.
6651 (processClass): Likewise.
6652 (_Jv_NewObjectArray): Likewise.
6653 (_Jv_NewMultiArray): Likewise.
6654 (_Jv_CheckCast): Likewise.
6655 (_Jv_LookupInterfaceMethod): Likewise.
6656 (SignalError): Removed.
6657 (getClass): Use _Jv_NewStringUtf8Const to create String.
6659 * java/lang/natSystem.cc (arraycopy): Throw
6660 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6662 * Makefile.in: Rebuilt.
6663 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6665 * include/java-array.h: Mention gcjh, not gjavah.
6667 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6668 (canReadUnchecked): Likewise.
6669 (canWriteUnchecked): Likewise.
6670 (isFileUnchecked): Likewise.
6671 * java/io/natFileDescriptor.cc: Don't include cni.h.
6673 * java/lang/Thread.java (run__): Declare.
6674 * java/lang/natThread.cc (run__): New method, to avoid compiler
6676 (start): Use run__, not run_.
6678 * java/io/io-defs.h: Include cni.h and jvm.h.
6680 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6682 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6683 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6684 to natString.cc (with suitable renaming, inlines etc).
6685 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6686 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6687 * java/lang/String.h: Removed - now generated using gjavah.
6688 * java/lang/String.java: Re-written from scratch. Many native methods.
6689 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6690 * java/lang/natString.cc: Many functions re-written for "compact
6691 strings" representation, or native java.lang.String methods added.
6692 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6693 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6694 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6695 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6696 * include/cni.h: Add inline method.
6697 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6698 * include/javaprims.h: Moved some stuff frm String.h.
6699 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6700 * Makefile.am (nat_header): Added Character.h and String.h.
6701 (String.h): Add new rule.
6703 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6705 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6707 * posix-threads.cc: Include cni.h, jvm.h.
6708 * quick-threads.cc: Include cni.h, jvm.h.
6709 * nogc.cc: Include cni.h, not javaprims.h.
6710 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6711 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6712 include java-assert.h.
6713 * java/lang/natSystem.cc: Include cni.h. Don't include
6715 * java/lang/natRuntime.cc: Include cni.h. Don't include
6717 * prims.cc: Rearranged #include ordering. Don't include
6718 java-array.h or java-assert.h.
6719 * boehm.cc: Include config.h, cni.h.
6720 * exception.cc: Include config.h, cni.h.
6721 * include/jvm.h: Include java-assert.h.
6722 * include/cni.h: Include java/lang/Object.h. Don't include
6723 java-threads.h or java-array.h.
6725 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6727 * java/lang/Boolean.java: Rewritten.
6729 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6731 * java/lang/natFirstThread.cc (main_func): New typedef.
6732 (run): Use main_func, not JvPrivThreadStartFunc.
6733 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6735 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6737 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6740 Can't throw Java exceptions with C++ `throw':
6741 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6742 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6743 (setPriority): Likewise.
6747 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6748 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6750 Can't catch Java exceptions from C++:
6751 * java/lang/natThread.cc (finish_): New method.
6753 * java/lang/Thread.java (run_): Rewrote in Java.
6754 (finish_): New native method.
6756 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6758 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6760 * include/javaprims.h (java::io): Added Serializable.
6762 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6764 * java/util/EmptyStackException.java,
6765 java/util/NoSuchElementException.java: Rewritten.
6767 * java/util/ConcurrentModificationException.java,
6768 java/util/MissingResourceException.java,
6769 java/util/TooManyListenersException.java: Created.
6771 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6773 * include/cni.h (JvThrow): New function.
6774 * include/javaprims.h (_Jv_Throw): Declare.
6776 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6778 * java/util/Observable.java: Rewritten.
6780 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6782 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6783 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6784 Include NullPointerException.h.
6786 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6788 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6789 assignability checks. Don't bother using memcpy.
6791 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6793 * include/quick-threads.h (JvPrivThreadWait): New function.
6794 * include/no-threads.h (JvPrivThreadWait): New function.
6795 * include/posix-threads.h (JvPrivThreadWait): New function.
6796 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6798 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6800 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6801 offsets by size of type that is being copied.
6803 * java/lang/natThread.cc (start): Don't pass `object' argument to
6805 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6806 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6808 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6809 always pass thread as object.
6810 * include/quick-threads.h, include/posix-threads.h,
6811 include/no-threads.h (JvPrivThreadStart): Removed `object'
6814 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6816 * java/util/Dictionary.java: Rewritten.
6818 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6820 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6821 (JvPrivThreadDestroy): Likewise.
6823 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6825 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6827 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6829 * java/lang/natSystem.cc: Rewrote from scratch.
6830 * java/lang/System.java: Rewrote from scratch.
6831 * java/lang/Class.h (Class): Declare isAssignableFrom.
6832 * include/javaprims.h (java::lang): Added ArrayStoreException,
6833 IndexOutOfBoundsException.
6834 * Makefile.in: Rebuilt.
6835 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6836 IndexOutOfBoundsException.h.
6837 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6838 * include/jvm.h (_Jv_HashCode): New function.
6840 * java/lang/natThread.cc (suspend): Call checkAccess.
6842 * java/lang/Thread.java (setDaemon): Call checkAccess.
6844 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6846 * java/lang/Runtime.java: Rewrote from scratch.
6847 * java/lang/natRuntime.cc: Rewrote from scratch.
6849 * nogc.cc (JvPrivGCTotalMemory): New function.
6850 (JvPrivGCFreeMemory): Likewise.
6851 (total): New global.
6852 (JvPrivAllocObj): Increment total.
6853 (JvPrivAllocArray): Likewise.
6854 (JvPrivAllocBytes): Likewise.
6855 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6856 * boehm.cc (JvPrivGCTotalMemory): New function.
6857 (sum_blocks): Likewise.
6858 (JvPrivGCFreeMemory): Likewise.
6860 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6862 * include/javaprims.h (java::lang): Added FirstThread.
6863 * java/lang/natFirstThread.cc: New file.
6864 * java/lang/FirstThread.java: New file.
6865 * prims.cc (main_signature): Removed.
6866 (main_name): Removed.
6867 #include FirstThread.h.
6868 * Makefile.in: Rebuilt.
6869 * Makefile.am (TFRIEND): Removed.
6870 (java/lang/Thread.h): Likewise.
6871 (FTFRIEND): New macro.
6872 (java/lang/FirstThread.h): New target.
6873 (nat_files): Added natFirstThread.o.
6874 (nat_headers): Added FirstThread.h.
6875 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6876 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6878 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6882 * java/lang/natThread.cc (start): Synchronize the thread.
6883 (stop): Synchronize the thread.
6885 * java/lang/ThreadDeath.java: Rewrote from scratch.
6887 * Makefile.in: Rebuilt.
6888 * Makefile.am (TGFRIEND): New macro.
6889 (java/lang/ThreadGroup.h): New target.
6890 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6892 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6894 * nogc.cc: Include config.h.
6896 * java/lang/ThreadGroup.java: Rewrote from scratch.
6898 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6900 * java/lang/Thread.java (checkAccess): Only call in to security
6901 manager if it exists.
6902 (Thread): Don't check access when creating the first thread. Add
6903 this thread to the appropriate ThreadGroup.
6905 * java/lang/natThread.cc (run_): Call uncaughtException method on
6908 * java/lang/Runnable.java: Rewrote from scratch.
6909 * java/lang/Thread.java: Updated copyright comment to correct
6912 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6914 * java/util/Random.java: Rewritten.
6916 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6918 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6919 trailing 0 in array[].
6921 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6923 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6924 and RUNTESTFLAGS from AM_MAKEFLAGS.
6925 (SUBDIRS): Conditionally include testsuite.
6926 * Makefile.in: Rebuilt.
6928 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6930 * java/lang/Object.h: Include java-assert.h.
6932 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6934 * Makefile.am: Add testsuite directory.
6935 * configure.in: Build testsuite/Makefile.
6936 * Makefile.in, configure: Rebuilt.
6938 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6940 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6941 * include/jvm.h (_Jv_StartFirstThread): Declare.
6943 * include/javaprims.h (java::lang): Added Exception,
6946 * Makefile.in: Rebuilt.
6947 * Makefile.am (nat_headers): Added NullPointerException.h,
6948 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6949 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6950 (java/lang/Thread.h): New target.
6951 (TFRIEND): New macro
6953 * include/java-assert.h (JvFail): Use 0 and not NULL.
6955 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6956 instead of assuming we are a friend of Thread.
6957 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6958 instead of assuming we are a friend of Thread.
6960 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6962 * java/lang/natThread.cc: Rewrote from scratch.
6963 * java/lang/Thread.java: Rewrote from scratch.
6964 * prims.cc (JvRunMain): Use new Thread constructor.
6965 * include/javaprims.h (java::lang): Added InterruptedException.
6966 * Makefile.in: Rebuilt.
6967 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6968 * java/lang/Thread.h: Removed.
6969 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6970 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6972 * posix-threads.cc (JvPrivThreadJoin): Removed.
6973 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6974 (really_start): Don't notify join_cond.
6975 (JvPrivThreadStart): Added `data' argument.
6976 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6977 (JvPrivThreadJoin): Likewise.
6978 Use JvFail instead of sorry.
6979 (JvPrivThreadSuspend): Removed.
6980 (JvPrivThreadResume): Removed.
6981 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6982 (JvPrivThreadJoin): Likewise.
6983 (JvPrivThreadSuspend): Use JvFail.
6984 (JvPrivThreadResume): Likewise.
6985 (JvPrivThreadSuspend): Removed.
6986 (JvPrivThreadResume): Likewise.
6987 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6988 (JvPrivThread_t): Removed join_mutex, join_cond.
6989 Use JvFail instead of sorry.
6990 (JvPrivThreadSuspend): Removed.
6991 (JvPrivThreadResume): Likewise.
6993 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6995 * java/util/Observer.java: Rewritten
6996 * java/util/Enumeration.java: Rewritten
6998 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
7000 * java/util/StringTokenizer.java: Rewritten
7001 * java/util/Stack.java: Added COPYRIGHT-TBD comment
7002 * java/util/Vector.java: Added COPYRIGHT-TBD comment
7003 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
7005 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
7007 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
7010 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
7011 Include java-assert.h.
7012 * include/java-assert.h: New file.
7013 * prims.cc (_Jv_Abort): New function.
7014 Include java-assert.h, not assert.h.
7015 (_Jv_MonitorExit): Use JvAssert.
7016 (resolveConstants): Likewise.
7017 (processClass): Likewise.
7018 (JvRunMain): Assert that method is found.
7020 * configure: Rebuilt.
7021 * configure.in: Check for test subdir.
7022 * Makefile.in: Rebuilt.
7023 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
7025 * prims.cc (JvRunMain): Use NORM_PRIORITY.
7026 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
7028 * prims.cc (resolveConstants): Removed unused variables.
7029 (processClass): Likewise.
7031 * include/quick-threads.h (JvPrivThreadCurrent): Use
7033 * quick-threads.cc (destroy_data): New function.
7034 (JvPrivInitThreads): Create key.
7035 (JvPrivThreadKey): New global.
7036 (JvPrivThreadStart): Use coop_setspecific.
7038 * include/quick-threads.h, include/posix-threads.h,
7039 include/no-threads.h, no-threads.cc, quick-threads.cc,
7040 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
7042 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
7044 * include/no-threads.h (JvPrivThreadInitData): Don't set
7047 * include/quick-threads.h (JvPrivCondWait): coop function now
7049 (JvPrivThreadJoin): Likewise.
7051 * java/lang/Thread.h (Thread): Updated declaration of
7053 * include/quick-threads.h, include/posix-threads.h: Updated
7054 declaration of JvPrivThreadStart.
7055 * include/no-threads.h (JvPrivThreadStart): Changed definition
7057 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
7058 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
7059 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
7061 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
7063 * quick-threads.cc (qthrow): New function.
7064 (JvPrivInitThreads): New function.
7065 (started): New global.
7066 (JvPrivThreadStart): Call coop_start if required.
7067 * include/quick-threads.h (JvPrivThreadCancel): Implement.
7068 (JvPrivThreadDestroy): Likewise.
7069 (JvPrivInitThreads): Removed.
7070 * include/posix-threads.h (JvPrivThreadCancel): Added error
7072 * java/lang/natThread.cc (stop_): Pass exception to
7075 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
7077 * include/javaprims.h (java::lang): Added
7078 IllegalArgumentException, IllegalThreadStateException, Math,
7079 NullPointerException, ThreadDeath.
7080 (java::util): Added Enumeration.
7082 * Makefile.in: Rebuilt.
7083 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
7085 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
7087 (threadsv): Renamed from threads to avoid clash in C++ header.
7088 (groupsv): Likewise.
7089 * include/no-threads.h (JvPrivThreadStart): Removed.
7090 * no-threads.cc (JvPrivThreadStart): New function.
7091 * java/lang/Thread.java (Thread): New constructor for internal use.
7092 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
7093 (Thread): Declare constructor.
7094 * prims.cc (JvRunMain): Create the initial Thread and
7096 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
7097 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
7098 Removed `daemon' argument.
7100 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
7101 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
7103 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
7105 * Makefile.in: Rebuilt.
7106 * Makefile.am (INCLUDES): Include THREADINCS.
7108 * configure: Rebuilt.
7109 * configure.in: Recognize `qt' as a threads package.
7111 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
7113 * java/util/Stack.java (pop): Null out topmost node for robustness.
7115 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
7117 * java/util/Stack.java: Rewritten.
7118 * java/util/Vector.java (isEmpty): Simplified expression.
7120 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
7122 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
7123 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
7125 * include/java-array.h (JvNewObjectArray): Created inline to
7128 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
7131 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
7133 * java/util/Vector.java: Rewritten.
7134 * java/io/Serializable.java: Created.
7136 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
7138 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
7139 Infinity is 1/0, not 1/1.
7141 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
7143 * configure: Rebuilt.
7144 * configure.in: Removed duplicate AC_ARG_WITH.
7146 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
7148 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
7150 (_Jv_InitClass): Renamed from soft_initialise_class.
7151 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
7152 (_Jv_CheckCast): Renamed from soft_checkcast.
7153 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
7154 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
7155 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
7156 * include/cni.h (JvInitClass): New function.
7157 (_Jv_InitClass): Renamed from soft_initialise_class.
7159 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
7161 * configure: Rebuilt.
7162 * configure.in (CXX): Don't set.
7163 * Makefile.in: Rebuilt.
7164 * Makefile.am (AM_CXXFLAGS): New macro.
7166 * Makefile.in: Rebuilt.
7167 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
7168 nogc.o): New target.
7170 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
7172 (mark_array): Likewise.
7174 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
7176 * java/lang/Class.h (JvMethod): Removed some unused fields.
7177 (JvField.info): Removed unused idx union variant.
7179 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
7181 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
7184 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
7186 * configure.in, configure (CXX): Add -fvtable-thunks.
7188 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
7190 * java/lang/Object.java (finalize): Move first.
7191 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
7192 (Object): Re-arrange order to match Object.java.
7194 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
7196 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
7197 * java/lang/natString.cc (hashChars): Likewise.
7199 * prims.cc (RuntimeClass): New macro.
7200 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
7202 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
7204 * Makefile.in: Rebuilt.
7205 * Makefile.am (AM_MAKEFLAGS): New macro.
7207 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
7209 * nogc.cc: Include <javaprims.h>.
7211 * Makefile.in: Rebuilt.
7212 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7214 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
7216 * exception.cc (terminate): Removed.
7217 (unexpected): Removed.
7219 * configure: Rebuilt.
7220 * configure.in: Handle case where target subdir is ".".
7222 * configure: Rebuilt.
7223 * configure.in: Compute COMPPATH based on --with-target-subdir
7224 option. Added --with-target-subdir and --with-cross-host. Use
7225 --with-cross-host to determine when a cross compiler is in use.
7227 * Makefile.in: Rebuilt.
7228 * Makefile.am (GJAVAH): Include COMPPATH.
7229 * configure: Rebuilt.
7230 * configure.in: Subst COMPPATH.
7232 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7234 * prims.cc (lockMutex): Removed.
7235 (unlockMutex): Likewise.
7236 (processClass): Lock the class using a JvSynchronize object.
7238 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7240 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7241 (gc_free_fixed): Removed.
7242 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7243 freeing old value of strhash.
7245 * exception.cc (_Jv_type_matcher): Cast first argument to
7248 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7250 * include/java-array.h (jstringArray): New type.
7251 * java/lang/natSystem.cc (setProperty): Removed.
7252 (initProperties): Directly call JvNewStringLatin1 for arguments.
7253 * java/util/natDate.cc: Include java/util/Date.h, not
7256 * java/io/FileDescriptor.java (available): No longer static.
7257 * java/lang/natDouble.cc (Double): Removed class definition.
7258 * include/javaprims.h (java::lang::Number): Declare.
7259 (java::lang::NumberFormatException): Likewise.
7260 (java::io::FilenameFilter): Likewise.
7261 (java::lang::Character): Likewise.
7262 (java::lang::Error): Likewise.
7263 (java::lang::SecurityManager): Likewise.
7264 (java::util::Vector): Likewise.
7265 (java::io::FileNotFoundException): Likewise.
7266 (java::io::IOException): Likewise.
7267 (java::lang::NativeLang): Likewise.
7268 (java::lang::UnsatisfiedLinkError): Likewise.
7269 (java::util::StringTokenizer): Likewise.
7270 (java::io::InputStream, java::io::OutputStream): Likewise.
7271 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7272 (java::util::Hashtable): Likewise.
7273 * Makefile.in: Rebuilt.
7274 * Makefile.am (nat_headers): Added java/lang/Double.h,
7275 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7276 (MOSTLYCLEANFILES): Added nat_headers.
7277 * include/jvm.h: Moved many defines, declarations, and functions
7278 to java/lang/Class.h.
7279 (struct JvSyncInfo): Moved to java/lang/Object.h.
7280 (UTF8_GET): Moved to java/lang/String.h.
7282 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7284 * java/io/io-defs.h: Don't include java-io.h.
7285 * include/java-io.h: Removed.
7286 * include/javaprims.h: Include java::io.
7288 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7290 * include/java-io.h (File): Removed
7291 (FileDescriptor): Likewise.
7293 * java/io/io-defs.h: Include java/io/File.h and
7294 java/io/FileDescriptor.h.
7296 * Makefile.in: Rebuilt.
7297 * Makefile.am (GJAVAH): New macro.
7298 (.class.h): New rule.
7299 (SUFFIXES): Added .h.
7300 (nat_headers): New macro.
7301 ($(nat_headers)): New target.
7302 (BUILT_SOURCES): Added nat_headers.
7304 * include/java-util.h: Removed.
7306 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7308 * include/java-io.h: Changed to avoid java-lang.h.
7309 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7311 * java/lang/natSystem.cc: Include java/lang/System.h, not
7313 * java/lang/natString.cc: Include java/lang/String.h, not
7315 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7317 * java/lang/natClass.cc: Include java/lang/Class.h, not
7319 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7321 * java/lang/natObject.cc: Include java/lang/Object.h, not
7323 * exception.cc: Don't include java-lang.h.
7324 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7325 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7326 * nogc.cc: Don't include java-lang.h.
7327 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7328 * prims.cc (processClass): Don't use `init_type'; just cast to
7330 Include java/lang/Class.h and jvm.h, not java-lang.h.
7331 (JvAllocObject): Wrote single-argument version.
7332 (PrimClass): Inherit from Class.
7333 (initPrimClass): Removed.
7334 * include/java-lang.h: Removed.
7335 * include/jvm.h: Declare struct _dispatchTable.
7336 * include/cni.h: Don't declare _Jv_MonitorEnter,
7337 _Jv_MonitorExit, struct _dispatchTable.
7338 * include/javaprims.h: Moved all typedefs here, from cni.h.
7339 * java/lang/Class.h: New file.
7340 * include/java-array.h: New file.
7341 * java/lang/Object.h: New file.
7343 * prims.cc (classFromSig): Now static.
7345 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7347 * include/cni.h: Don't mention soft_new.
7348 * include/java-lang.h (Object): Don't mention soft_new. Mention
7349 _Jv_NewPrimArray, not newPrimArray.
7350 * prims.cc (soft_new): Removed.
7351 (_Jv_NewArray): Renamed from soft_newarray.
7352 (soft_anewarray): Use JvNewObjectArray.
7353 (newArray): Likewise.
7354 (newRefArray): Removed.
7355 (_Jv_NewPrimArray): Renamed from newPrimArray.
7356 (equalUtf8Consts): Now static.
7357 (soft_instanceof): Removed.
7358 * java/lang/natDouble.cc (doubleToString): Now static.
7360 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7361 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7364 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7366 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7368 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7370 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7371 (JvPrivMutexUnlock): Likewise.
7372 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7373 Return value now jint.
7374 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7377 * Makefile.in: Rebuilt.
7378 * Makefile.am: Don't allow `jV' names.
7379 (maintainer-check): Depend on libjava.a.
7380 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7382 * Makefile.in: Rebuilt.
7383 * Makefile.am (NM): New macro.
7384 (maintainer-check): New target.
7386 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7388 * configure: Rebuilt.
7389 * configure.in: Use --enable-threads, not --enable-gc. Fix
7390 documentation for --enable-threads. Changed option to work like
7391 identical option in gcc/configure.
7393 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7395 * boehm.cc (mark_array): Use JvGetArrayLength.
7397 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7399 * exception.cc: New file (mostly written by Andrew MacLeod),
7400 exception handling support.
7401 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7402 Remove -fexceptions - it is now the default.
7404 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7405 (JvAllocObject): Renamed to _Jv_AllocObject.
7406 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7407 (loadClass): Renamed to _Jv_FindClass.
7408 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7409 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7410 * include/java-lang.h (JvGetArrayLength): New CNI function.
7411 * include/jvm.h (_Jv_FindClass): Added declaration.
7413 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7415 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7417 * java/lang/natClass.cc (getName): Add implementation.
7418 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7420 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7422 * Makefile.in: Rebuilt.
7423 * Makefile.am (.class.o): Added -fexceptions.
7425 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7427 * configure: Rebuilt.
7428 * configure.in: Don't check for __nanosleep.
7429 * posix-threads.cc (nanosleep): Never define.
7431 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7433 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7436 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7438 * java/lang/natThread.cc (enumerate): Uncommented.
7439 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7440 (interrupt): Call it.
7442 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7444 * configure: Rebuilt.
7445 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7447 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7449 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7450 * include/java-lang.h (Thread): Added `interrupted_' method.
7451 * java/lang/Thread.java (interrupted_): New method.
7452 * java/lang/natThread.cc (join): Possibly throw interrupted
7453 exception after join finishes.
7454 (interrupted_): New method.
7455 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7457 (JvPrivThreadJoin): New function.
7458 (really_start): Notify all threads waiting for this thread.
7459 (struct starter): Added `data' member.
7460 (JvPrivThreadStart): Set it.
7461 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7463 (JvPrivThreadJoin): No longer inline.
7464 (JvPrivThreadInterrupt): New function.
7466 * include/no-threads.h (JvPrivThreadSleep): Removed.
7467 * posix-threads.cc (JvPrivThreadSleep): Removed.
7469 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7471 * configure: Rebuilt.
7472 * configure.in (THREADOBJS): Initialize to no-threads.o in
7474 * posix-threads.cc (key): New global.
7475 (JvPrivInitThreads): New function.
7476 (really_start): Set thread-specific data to point to object.
7477 (JvPrivThreadStart): Added `daemon' argument.
7478 (JvPrivThreadSleep): Added `data' argument.
7479 * include/posix-threads.h (JvPrivInitThreads): Removed
7481 (JvPrivThreadCurrent): New function.
7482 * include/no-threads.h (JvPrivThreadInitData): Initialize
7483 JvPrivOnlyThread. Added `thread' argument.
7484 (JvPrivThreadCurrent): New function.
7485 (JvPrivThreadStart): Added `daemon' argument.
7486 * no-threads.cc: New file.
7487 * java/lang/natThread.cc (init_data): New function.
7489 (start): Set `alive' member.
7490 (stop_): Clear `alive' member.
7491 (destroy): Likewise.
7492 (currentThread): Implemented.
7493 (start): Pass `daemon' argument to JvPrivThreadStart.
7495 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7496 (Thread): Added `init_data' method.
7497 * java/lang/Thread.java (alive, data): New instance variables.
7498 (init_data): New private method.
7499 (isAlive): No longer native.
7501 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7503 * include/java-lang.h (JvRunMain): Declare.
7504 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7505 * prims.cc (JvRunMain): New function.
7506 (main_signature, main_name): New globals.
7508 * boehm.cc (mark_array): Use `elements' function and not
7509 operator[] on jarray.
7511 * posix-threads.cc: Include <config.h>. Define nanosleep if
7514 * configure: Rebuilt.
7515 * configure.in: Check for _nanosleep.
7517 * configure: Rebuilt.
7518 * configure.in: Check for pthread_mutexattr_settype.
7520 * include/cni.h (class JvSynchronize): New class.
7521 * java/lang/Thread.java (sleep): Throws InterruptedException.
7522 (join): Throws InterruptedException.
7523 (resume): Not native.
7524 (resume_): New method.
7525 (start): Now synchronized.
7526 (stop_): New method.
7527 (Thread): Synchronize when accessing threadNumber.
7529 * java/lang/natThread.cc (throwException): New macro.
7530 (sleep): Throw InterruptedException.
7533 * include/java-lang.h (Runtime): Added interrupted().
7535 * boehm.cc (call_finalizer): Correctly initialize jobj.
7536 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7538 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7541 * configure: Rebuilt.
7542 * configure.in: Added support for --disable-threads.
7543 * include/no-threads.h: New file.
7545 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7547 * Makefile.in: Rebuilt.
7548 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7549 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7550 (libjava_a_LIBADD): Added THREADOBJS.
7551 * configure: Rebuilt.
7552 * configure.in: Added --with-threads option.
7553 * posix-threads.cc: New file.
7554 * include/posix-threads.h: New file.
7555 * include/java-lang.h (Object): Added static member sync_mutex,
7556 member sync_info, method init_mutex.
7557 (struct JvSyncInfo): New struct.
7558 Include "java-threads.h".
7559 * prims.cc (soft_monitorenter): Wrote.
7560 (soft_monitorexit): Likewise.
7561 * java/lang/natObject.cc (init_mutex): New method.
7565 (sync_mutex): Define.
7566 Include "java-threads.h".
7568 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7570 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7571 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7573 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7575 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7576 Added extern "Java" in places to tell G++ Object is a "Java" type.
7577 Other minor renaming and fixes.
7578 * include/java-io.h (FileDescriptor): Add friend class declarations.
7579 G++ no longer allows non-Java types in method parameters and results
7580 of Java classes. Converted most offending methods to friends.
7581 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7582 * java/lang/natSystem.cc (setProperty): Make friend.
7583 * java/lang/natString.cc, include/java-lang.h (String): Rename
7584 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7585 * include/java-lang.h (JArray): Remove getData and eoprator[].
7586 Add elements friend function instead.
7587 * java/lang/natSystem.cc (arraycopy): Use elements function.
7588 * java/io/natFileDescriptor.cc (read, write): Likewise.
7589 * include/java-lang.h (Object): Remove unused make method.
7590 (System::setProperty(char*,char*)): Turn into friend function.
7591 (Class): Rename newObject by JvAllocObject.
7592 * prims.cc: Update to use JvAllocObject, and elements.
7594 * java/lang/natDouble.cc: Fix double -> jdouble.
7596 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7598 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7600 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7602 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7603 * include/java-lang.h (Runtime): finalize_on_exit and
7604 runFinalizersOnExit now static.
7605 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7607 (finalize_on_exit): Now static.
7609 * boehm.cc (mark_obj): Get class using getClass() method on
7611 (_dispatchTable): Removed.
7613 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7615 * java/io/natFileDescriptor.cc (open_read): Only call open if
7617 (open_write): Likewise.
7619 * Makefile.in: Rebuilt.
7620 * Makefile.am ($(nat_files)): Depend on config.h.
7622 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7624 * prims.cc (ObjectClass): Now a macro; updated for new class name
7626 (StringClass): Likewise.
7627 (ClassClass): Likewise.
7629 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7631 * java/io/natFileDescriptor.cc (available): Do nothing unless
7632 HAVE_SELECT defined.
7633 * java/util/natDate.cc (setTime): Conditional on
7635 (toString): Conditional on HAVE_TIME.
7636 * aclocal.m4, configure: Rebuilt.
7637 * acinclude.m4: New file.
7638 * configure.in: Don't actually call AM_EXEEXT. Call
7639 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7640 --with-target-subdir option. Check for select and open
7643 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7645 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7646 (call_finalizer): Likewise.
7647 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7648 * prims.cc (newObject): Pass actual method pointer to
7649 JvPrivRegisterFinalizer.
7650 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7651 (JvPrivRegisterFinalizer): Changed interface.
7653 * Makefile.in: Rebuilt.
7654 * Makefile.am (MOSTLYCLEANFILES): New macro.
7655 (CLEANFILES): Removed javao_files.
7657 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7659 * nogc.cc: New file.
7660 * Makefile.in: Rebuilt.
7661 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7662 (EXTRA_libjava_a_SOURCES): New macro.
7663 (libjava_a_SOURCES): Removed boehm.cc.
7664 (libjava_a_DEPENDENCIES): Added GCOBJS.
7665 (libjava_a_LIBADD): Likewise.
7666 * configure: Rebuilt.
7667 * configure.in: Added code for --enable-gc=TYPE.
7669 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7671 * boehm.cc (mark_array): Don't further dereference pointer from
7674 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7675 * Makefile.in: Rebuilt.
7676 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7677 one for boehm-gc build directory.
7679 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7681 * include/java-lang.h (finalize_on_exit): New instance variable in
7682 java::lang::Runtime.
7683 (runFinalizersOnExit): New method.
7684 * java/lang/Runtime.java (finalize_on_exit): New instance
7686 (runAllFinalizers_): New private method.
7687 (runFinalizersOnExit): New method.
7688 * boehm.cc (JvPrivRunFinalizers): New function.
7689 (JvPrivRunAllFinalizers): Likewise.
7690 (JvPrivRunGC): Likewise.
7691 * java/lang/natRuntime.cc: Include "jvm.h".
7692 (gc): Call JvPrivRunGC.
7693 (runFinalization): Call JvPrivRunFinalizers.
7694 (runFinalizersOnExit): New method.
7695 (exit_): Call JvPrivRunAllFinalizers if required.
7696 * include/jvm.h: Declare JvPrivRunFinalizers,
7697 JvPrivRunAllFinalizers, JvPrivRunGC.
7699 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7701 * boehm.cc (JvPrivRegisterFinalizer): New function.
7702 (call_finalizer): Likewise.
7703 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7704 * prims.cc (finalize_name): New global.
7705 (newObject): Just call other newObject.
7706 (newObject): Register finalizer if it exists.
7708 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7710 * prims.cc (gc_malloc): Removed.
7711 (makeUtf8Const): Use JvPrivAllocBytes.
7712 (lookupArray): Likewise.
7713 (newPrimArray): Likewise.
7714 (JvNewObjectArray): Use JvPrivAllocArray.
7715 (newObject): Use JvPrivAllocObj.
7716 (newObject): Likewise.
7717 Changed Method -> JvMethod everywhere.
7718 Changed Field -> JvField everywhere.
7719 * include/java-lang.h (Object): Changed type of `fields' to
7721 (jmethodID, jfieldID): New typedefs.
7722 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7724 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7726 (METHOD_NATIVECODE): Moved from java-lang.h.
7727 (class JvField): New class.
7728 (JvGetFirstInstanceField): New function.
7729 (JvFieldIsRef): Likewise.
7730 (JvGetObjectField): Likewise.
7731 (JvNumInstanceFields): Likewise.
7733 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7735 * boehm.cc: New file.
7736 * Makefile.in: Rebuilt.
7737 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7738 (INCLUDES): Added -I options to find boehm-gc files.
7740 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7742 * configure: Rebuilt.
7743 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7745 * Makefile.in: Rebuilt.
7746 * Makefile.am (nat_files): New macro.
7747 (libjava_a_DEPENDENCIES): Use it.
7748 (libjava_a_LIBADD): Likewise.
7749 ($(nat_files)): New static pattern rule.
7750 (class_files): Run separate find to find .class files.
7751 (javao_files): Compute based on class_files.
7752 (BUILT_SOURCES): New macro.
7754 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7756 * Makefile.am (java_files): New macro.
7757 (class_files): Likewise.
7758 (javao_files): Likewise.
7759 (libjava_a_DEPENDENCIES): Include $(javao_files).
7760 (libjava_a_LIBADD): Likewise.
7761 (classes.stamp): Depend on $(java_files); only recompile changed
7764 (CLEANFILES): Don't run find; use macros. Don't mention
7766 (.class.o): New target.
7767 (compiled.stamp): Removed.
7769 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7771 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7772 LineNumberReader}>java: Newly-implemented standard classes.
7774 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7776 * Makefile.in: Rebuilt.
7777 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7779 * Makefile.in: Rebuilt.
7780 * Makefile.am (hack): New macro.
7781 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7783 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7785 * include/config.h.in: New file.
7786 * include/config.h: Removed.
7787 * acconfig.h: New file.
7788 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7789 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7790 libjava_a_LIBADD): New macros.
7791 (INCLUDES): New macro.
7794 (SUFFIXES): Removed.
7796 (libjava.a): Removed.
7798 * configure: Rebuilt.
7799 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7800 Look for headers and functions we require. Create
7803 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7805 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7806 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7807 soft_lookupinterfacemethod): New functions.
7808 (PrimClass): Actually initialize the primitive classes.
7809 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7811 * include/java-util.h: Removed java::util definition.
7812 * include/cni.h: Moved java::util here and added Properties.
7813 Added more function prototypes.
7814 * include/java-lang.h: Added mroe methods and friend declarations.
7815 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7816 * include/jvm.h (strLengthUtf8): Add declaration.
7818 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7820 * java/lang/{Byte,Short,Void}.java: New classes.
7821 * java/lang/Character.java (isJavaIdentifierStart,
7822 JavaIdentifierPart): New static methods.
7823 * java/lang/Number.java (byteValue, shortValue): New methods.
7825 * java/lang/String.java (intern, hashCode): Make native.
7826 * java/lang/natString.cc: New file. Handle the string pool.
7827 * Makefile.am: Build natString.o. Use CXXFLAGS.
7829 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7830 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7831 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7832 * java/lang/System.java (setProperty): New private method.
7833 (initProperties): Take argument, and make native.
7834 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7835 (currentTimeMillis): Make more robust.
7837 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7838 * java/io/UnsupportedEncodingException.java: New exception class.
7840 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7841 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7843 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7845 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7846 * prims.cc: Added bunch of stuff.
7847 * include/cni.h: Added various definitions.
7848 * include/java-lang.h: Added Method, various friends, some macros.
7850 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7851 * java/lang/System.java (arraycopy): Make native.
7853 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7855 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7856 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7857 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7858 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7860 * java/lang/Runtime.java: Declare methods as native instead of
7862 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7863 * java/lang/System.java: Comment out some stuff, for now.
7864 * java/lang/Thread.java: Re-write. Use native methods.
7865 * java/lang/NativeLang.java: Remove most of it.
7867 * java/util/natDate.cc: Native (C++) methods for Date.
7868 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7869 * java/util/Date.java: Complete re-write.
7871 * java/io/io-defs.h: New header file.
7872 * java/io/FileDescriptor.java: Add a bunch of private methods,
7873 mostly moved from NativeIO.java and natNativeIO.cc.
7874 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7875 * java/io/File.java: Use new code.
7876 * java/io/{FileInputStream.java.FileOutputStream.java,
7877 RandomAccessFile.java}: Use new private FileDescriptor methods.
7878 * java/io/NativeIO.java: Removed, no longer used.
7880 * java/io/StreamTokenizer.java (numericChars): Make char array.
7882 * include/*.h: Various header files used by the C++ native code.
7884 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7885 New autoconf+automake-based setup.
7886 * prims.cc: New file for Java "primitives".