1 2000-02-14 Warren Levy <warrenl@cygnus.com>
3 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
9 (modPow): Rewritten to not use the naive, slow, brute force approach.
10 (isProbablePrime): Implemented.
11 (testBit): Implemented.
12 (flipBit): Implemented.
13 (getLowestSetBit): Implemented.
15 2000-02-16 Anthony Green <green@redhat.com>
17 * configure.host: Use the same options for i386 and i486 as we do
20 2000-02-12 Tom Tromey <tromey@cygnus.com>
22 * java/io/File.java (createTempFile): Use low bits from counter,
25 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
27 * THANKS: More thanks.
29 2000-02-11 Tom Tromey <tromey@cygnus.com>
31 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
32 astore instruction. From Hans Boehm.
34 2000-02-11 Warren Levy <warrenl@cygnus.com>
36 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
37 (BigInteger(String)): New constructor.
38 (not): Rewritten using version from Kawa's BitOps class.
39 (valueOf): New private methods from Kawa's BitOps class.
46 (andNot): Implemented.
47 (clearBit): Implemented.
48 (setBit): Implemented.
49 (bitCount): Implemented.
50 (toByteArray): Implemented.
52 2000-02-11 Tom Tromey <tromey@cygnus.com>
54 * java/io/File.java (nextValue): Now synchronized.
56 2000-02-10 Tom Tromey <tromey@cygnus.com>
58 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
59 * java/io/FileDescriptor.java (EXCL): New static field.
60 * java/io/File.java (tmpdir): New static field.
61 (createTempFile): New method.
62 (nextValue): New method.
63 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
66 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
67 (jboolean): Declare as an attributed int, not a bool.
68 (_Jv_func): Declare differently for C.
70 * gnu/gcj/jni/natNativeThread.cc: New file.
71 * gnu/gcj/jni/NativeThread.java: New file.
72 * java/lang/Thread.java (data): Now a RawData.
73 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
75 * Makefile.in: Rebuilt.
76 * Makefile.am (java/lang/Thread.h): New target.
77 (ordinary_java_source_files): Added NativeThread.java.
78 (nat_source_files): Added natNativeThread.cc.
79 * java/lang/natThread.cc: Include <jni.h>
80 (struct natThread): Added `jni_env' field.
81 (_Jv_GetCurrentJNIEnv): New function.
82 (_Jv_SetCurrentJNIEnv): Likewise.
83 (initialize_native): Initialize jni_env.
85 * jni.cc (ThreadGroupClass): New define.
86 (_Jv_JNI_InvokeFunctions): New structure.
87 (JNI_GetCreatedJavaVMs): New function.
89 (JNI_GetDefaultJavaVMInitArgs): New function.
90 Include NativeThread.h.
91 (NativeThreadClass): New define.
92 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
93 (_Jv_JNI_DestroyJavaVM): New function.
94 (_Jv_JNI_AttachCurrentThread): New function.
95 (_Jv_JNI_DetachCurrentThread): New function.
96 (_Jv_JNI_GetEnv): New function.
97 (JNI_CreateJavaVM): New function.
98 (_Jv_JNI_GetJavaVM): New function.
99 (_Jv_JNIFunctions): Added entry for GetJavaVM.
100 * include/jni.h (JavaVMAttachArgs): New structure.
101 (JNI_EDETACHED): New define.
102 (JNI_EVERSION): Likewise.
103 (JavaVM): Define properly.
104 (struct JNIInvokeInterface): New structure.
105 (class _Jv_JavaVM): New class.
106 (JNI_OnLoad, JNI_OnUnload): Declare.
107 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
108 JNI_GetCreatedJavaVMs): Declare.
109 (JavaVMInitArgs): New typedef.
110 (JavaVMOption): Likewise.
111 (JNI_ERR): New define.
114 2000-02-10 Andrew Haley <aph@cygnus.com>
116 * interpret.cc: Don't include fdlibm.h.
117 Replace #if with #ifdef throughout.
118 Declare extern __ieee754_fmod.
119 (continue1): Remove op_getfield, op_getstatic, op_putfield,
121 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
122 Search class hierarchy for superclass vtable.
124 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
125 off the end of a pointer list.
127 * java/lang/natThread.cc (stop): Don't abort, throw an exception
131 2000-02-09 Tom Tromey <tromey@cygnus.com>
133 * java/lang/natRuntime.cc (_load): Call add_library.
134 (loadLibraryInternal): Likewise.
136 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
137 iconv_close when handle is not NULL. Thanks to Andrew Haley.
138 (Output_iconv::finalize): Likewise.
140 2000-02-08 Tom Tromey <tromey@cygnus.com>
142 * java/util/Properties.java (setProperty): New method.
145 2000-02-07 Tom Tromey <tromey@cygnus.com>
147 * java/lang/Runtime.java (_load): Declare.
148 (load, loadLibrary): Wrote in terms of _load.
149 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
151 (loadLibrary): Likewise.
154 (loadLibrary, load): Removed.
156 * jni.cc (ThrowableClass): New define.
157 (_Jv_JNI_Throw): Check argument.
158 (_Jv_JNI_ThrowNew): Likewise.
159 (wrap_value): Don't wrap object if it is NULL.
160 (_Jv_JNI_DefineClass): Use wrap_value.
161 (_Jv_JNI_FindClass): Likewise.
162 (_Jv_JNI_GetSuperclass): Likewise.
163 (_Jv_JNI_ExceptionOccurred): Likewise.
164 (_Jv_JNI_AllocObject): Likewise.
165 (_Jv_JNI_GetObjectClass): Likewise.
166 (_Jv_JNI_NewString): Likewise.
167 (_Jv_JNI_NewStringUTF): Likewise.
168 (_Jv_JNI_NewObjectArray): Likewise.
169 (_Jv_JNI_GetObjectArrayElement): Likewise.
170 (_Jv_JNI_NewPrimitiveArray): Likewise.
171 (_Jv_JNI_ToReflectedField): Likewise.
172 (_Jv_JNI_ToReflectedMethod): Likewise.
173 (_Jv_JNI_AllocObject): Check argument.
174 (_Jv_JNI_NewObjectV): Likewise.
175 (_Jv_JNI_NewObject): Likewise.
176 (_Jv_JNI_NewObjectA): Likewise.
177 (_Jv_JNI_GetObjectClass): Likewise.
178 (_Jv_JNI_GetField): Likewise.
179 (_Jv_JNI_SetField): Likewise.
181 * interpret.cc (PUSHL): Don't use expression statement.
186 * jni.cc (add_char): Conditional on INTERPRETER.
187 (mangled_name): Likewise.
189 * include/java-interp.h (class _Jv_MethodBase): Conditional on
191 (class _Jv_JNIMethod): Likewise.
193 2000-02-04 Warren Levy <warrenl@cygnus.com>
195 * Makefile.am: Added MPN.java and BigInteger.java.
196 * Makefile.in: Rebuilt.
197 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
199 * java/math/BigInteger.java: New file. Based primarily on
200 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
202 2000-02-04 Tom Tromey <tromey@cygnus.com>
204 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
206 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
207 if the method is native.
208 * resolve.cc (ncode): Don't handle native methods.
209 (_Jv_JNIMethod::ncode): New method.
210 (_Jv_PrepareClass): Handle native methods.
211 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
212 Include AbstractMethodError.h.
213 (add_char): New function.
214 (mangled_name): Likewise.
215 * include/java-interp.h (class _Jv_JNIMethod): New class.
216 (class _Jv_MethodBase): New class.
217 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
218 (_Jv_InterpClass): Changed `interpreted_methods' field to type
221 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
222 * java/lang/natRuntime.cc (libraries_size, libraries_count,
223 libraries): New globals.
224 (add_library): New function.
225 (_Jv_FindSymbolInExecutable): New function.
227 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
230 2000-02-04 Andrew Haley <aph@cygnus.com>
232 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
233 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
234 * java/lang/natThrowable.cc (printRawStackTrace): Rename
235 printStackTrace to printRawStackTrace.
237 2000-02-03 Tom Tromey <tromey@cygnus.com>
239 * java/util/Calendar.java (toString): New method.
240 * java/util/SimpleTimeZone.java (clone): New method.
241 (toString): New method.
242 * java/util/TimeZone.java (clone): New method.
243 * java/text/SimpleDateFormat.java (clone): New method.
244 * java/text/NumberFormat.java (clone): New method.
245 (equals): New method.
246 * java/text/Format.java (clone): New method.
247 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
250 * java/text/DateFormat.java (clone): New method.
251 * java/text/Collator.java (clone): New method.
253 2000-02-03 Tom Tromey <tromey@cygnus.com>
255 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
258 2000-02-01 Tom Tromey <tromey@cygnus.com>
260 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
261 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
262 constructing the closure if the function is native.
263 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
264 a template function, #if'd out, or static.
265 Include <java-interp.h>.
267 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
269 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
271 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
272 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
274 (wrap_value): New function.
275 (_Jv_JNI_CallAnyMethodV): Use it.
276 (_Jv_JNI_CallAnyMethodA): Likewise.
277 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
278 (_Jv_JNI_GetStaticField): Likewise.
280 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
281 (_Jv_JNI_GetStaticField): Likewise.
283 2000-01-31 Tom Tromey <tromey@cygnus.com>
285 * prims.cc (_Jv_MallocUnchecked): New function.
286 (main_init): Call _Jv_JNI_Init.
287 * include/jvm.h (_Jv_MallocUnchecked): Declare.
288 (_Jv_JNI_Init): Declare.
289 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
291 (_Jv_JNI_NewGlobalRef): New function.
292 (_Jv_JNI_DeleteGlobalRef): New function.
293 (_Jv_JNI_DeleteLocalRef): New function.
294 (_Jv_JNI_conversion_call): Initialize and clear local reference
296 (_Jv_JNI_NewLocalRef): New function.
297 (struct _Jv_JNI_LocalFrame): New structure.
298 (_Jv_JNI_PushLocalFrame): New function.
299 (_Jv_JNI_EnsureLocalCapacity): New function.
300 (FRAME_SIZE): New define.
301 (_Jv_JNI_GetStringChars): Mark string, not characters.
302 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
303 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
304 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
306 (_Jv_JNI_DefineClass): Make return value a local ref.
307 (_Jv_JNI_FindClass): Likewise.
308 (_Jv_JNI_GetSuperclass): Likewise.
309 (_Jv_JNI_ExceptionOccurred): Likewise.
310 (_Jv_JNI_AllocObject): Likewise.
311 (_Jv_JNI_GetObjectClass): Likewise.
312 (_Jv_JNI_CallAnyMethodV): Likewise.
313 (_Jv_JNI_NewString): Likewise.
314 (_Jv_JNI_NewStringUTF): Likewise.
315 (_Jv_JNI_NewObjectArray): Likewise.
316 (_Jv_JNI_GetObjectArrayElement): Likewise.
317 (_Jv_JNI_ToReflectedField): Likewise.
318 (_Jv_JNI_ToReflectedMethod): Likewise.
319 (_Jv_JNIFunctions): Updated table for new functions.
320 (_Jv_JNI_Init): New function.
321 (mark_for_gc): Wrote.
322 (unmark_for_gc): Wrote.
323 * include/jni.h (struct JNINativeInterface): Removed name from
324 PopLocalFrame parameter.
325 (class _Jv_JNIEnv): Added `locals' field.
327 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
329 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
332 2000-01-30 Tom Tromey <tromey@cygnus.com>
334 * include/config.h.in: Rebuilt.
335 * acconfig.h (HAVE_ICONV): Define.
336 * configure: Rebuilt.
337 * configure.in: Check for `iconv' function.
338 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
339 no specific encoder exists.
340 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
341 no specific encoder exists.
342 * Makefile.in: Rebuilt.
343 * Makefile.am (convert_source_files): Mention Input_iconv.java and
345 (nat_source_files): Added natIconv.cc.
346 * gnu/gcj/convert/natIconv.cc: New file.
347 * gnu/gcj/convert/Input_iconv.java: New file.
348 * gnu/gcj/convert/Output_iconv.java: New file.
350 2000-01-28 Tom Tromey <tromey@cygnus.com>
352 * Makefile.in: Rebuilt.
353 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
355 2000-01-26 Tom Tromey <tromey@cygnus.com>
357 * gcj/method.h (JvNumMethods): Moved from Class.h.
358 (JvGetFirstMethod): Likewise.
359 * java/lang/Class.h (Object): Updated decl of
360 _Jv_JNI_ToReflectedField.
361 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
362 * Makefile.in: Rebuilt.
363 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
364 argument of _Jv_JNI_ToReflectedField.
365 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
367 (java/lang/reflect/Method.h): Likewise.
368 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
370 (jweak): New typedef.
371 (struct JNINativeInterface): Correctly declare remaining entries.
372 * jni.cc: Include Class.h, ClassLoader.h.
373 (_Jv_JNI_FindClass): New function.
374 (_Jv_JNI_DefineClass): New function.
375 (_Jv_JNI_conversion_call): New function.
376 (_Jv_JNI_FindClass): Use current class loader to find class.
377 (_Jv_JNI_ExceptionCheck): New function.
378 (_Jv_JNI_FromReflectedField): Now static.
379 (MethodClass): New define.
380 (_Jv_JNI_FromReflectedMethod): New function.
381 (_Jv_JNI_ToReflectedMethod): Likewise.
383 (_Jv_JNI_IsAssignableFrom): Renamed.
384 (_Jv_JNI_GetStringRegion): New function.
385 Include StringIndexOutOfBoundsException.h.
386 (_Jv_JNI_GetStringUTFRegion): New function.
387 (_Jv_JNIFunctions): Updated for new functions.
388 (_Jv_JNI_GetPrimitiveArrayCritical): New function
389 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
390 (_Jv_JNI_GetStringCritical): New function.
391 (_Jv_JNI_ReleaseStringCritical): Likewise.
392 (get_throwable): Removed.
393 (GCJ_JV_JNIENV_FRIEND): Removed.
394 (__GCJ_JNI_IMPL__): Define.
397 * resolve.cc (get_ffi_type_from_signature): Handle case where
400 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
402 * interpret.cc (run): Don't call println.
403 Don't include PrintStream.h.
405 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
406 nameIndex. Use "jint" as type for boffset.
407 * java/lang/Class.h (struct _Jv_Method): Made accflags a
409 (Class): Likewise. Also changed type of method_count,
410 vtable_method_count, size_in_bytes, field_count,
411 static_field_count, interface_count.
412 * gcj/array.h (__JArray): Made `length' a const jsize, not an
415 2000-01-21 Tom Tromey <tromey@cygnus.com>
417 * java/lang/reflect/natConstructor.cc (newInstance): Use
419 * include/jvm.h: Declare _Jv_CallAnyMethodA.
420 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
421 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
424 (invoke): Use _Jv_CallAnyMethodA.
426 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
427 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
429 (struct _Jv_Method): Added getNextMethod method.
430 (JvNumMethods): New function.
431 (JvGetFirstMethod): Likewise.
432 * gcj/field.h (JvGetFirstStaticField): New function.
433 (JvNumStaticFields): Likewise.
434 (getNextField): Renamed from getNextInstanceField.
435 (struct _Jv_Field): New method getClass.
436 * jni.cc: Wrote many new functions.
437 * include/jni.h (JNI_TRUE): Define.
438 (JNI_FALSE): Likewise.
439 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
440 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
441 jcharArray, jfloatArray, jdoubleArray): New typedefs.
442 (jfieldID, jmethodID): Likewise.
443 (JNI_COMMIT, JNI_ABORT): New defines.
444 (JNINativeMethod): New struct.
445 (struct JNINativeInterface): Correctly declared more entries.
446 (class _Jv_JNIEnv): Added `ex' member.
447 (JNI_VERSION_1_1): New define.
448 (JNI_VERSION_1_2): Likewise.
450 * boehm.cc (_Jv_MarkObj): Use getNextField, not
451 getNextInstanceField.
453 2000-01-20 Tom Tromey <tromey@cygnus.com>
455 * resolve.cc (StringClass): Removed.
456 * defineclass.cc (StringClass): Removed.
458 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
462 2000-01-19 Tom Tromey <tromey@cygnus.com>
464 * interpret.cc (PC_REGISTER_ASM): Removed.
466 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
469 * All files: Updated copyright to reflect Cygnus purchase.
471 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
473 * configure: Rebuilt.
474 * configure.in: Recognize --disable-interpreter.
476 2000-01-18 Andrew Haley <aph@cygnus.com>
478 * name-finder.cc (lookup): Check for dladdr function.
479 acconfig.h (HAVE_DLADDR): Add.
480 configure.in: Check for HAVE_DLADDR
482 include/config.h.in: Rebuilt.
484 2000-01-17 Andrew Haley <aph@cygnus.com>
486 * prims.cc (_Jv_RunMain): Set the name of this executable.
488 2000-01-17 Tom Tromey <tromey@cygnus.com>
490 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
491 when backtrace can't be computed.
493 * configure: Rebuilt.
494 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
496 * java/lang/Runtime.java (loadLibraryInternal): Declare.
497 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
498 (_Jv_FindClassInCache): Likewise.
499 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
500 (findSystemClass): Try to load class from compiled module.
502 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
503 (loadLibrary): Likewise.
504 (lt_preloaded_symbols): Define.
505 (loadLibraryInternal): New method.
506 * include/config.h.in: Rebuilt.
507 * acconfig.h (USE_LTDL): Added.
508 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
509 (INCLUDES): Added $(INCLTDL).
510 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
511 (libgcj_la_LIBADD): Likewise.
512 * aclocal.m4, configure: Rebuilt.
513 * configure.in: Added libltdl support.
515 2000-01-15 Tom Tromey <tromey@cygnus.com>
517 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
519 2000-01-14 Andrew Haley <aph@cygnus.com>
521 * java/lang/natThrowable.cc: New file.
523 * java/lang/Throwable.java (fillInStackTrace): Make native.
524 (printStackTrace): Call native method to do this.
525 (Throwable): Call fillInStackTrace.
526 (stackTrace): New variable.
528 * include/jvm.h: Add _Jv_ThisExecutable functions.
530 * prims.cc: (_Jv_execName): New variable.
531 (catch_segv): Call fillInStackTrace.
533 (_Jv_ThisExecutable): New functions.
534 (JvRunMain): Set the name of this executable.
536 * Makefile.am: Add java/lang/natThrowable.cc.
538 * Makefile.in: Rebuilt.
540 * acconfig.h: Add HAVE_PROC_SELF_EXE.
542 * configure.in: Force link with __frame_state_for in
543 FORCELIBGCCSPEC. Add new checks for backtrace.
544 * include/config.h.in: Rebuilt.
546 * name-finder.cc: New file.
547 * include/name-finder.h: New file.
549 2000-01-16 Anthony Green <green@cygnus.com>
551 * java/lang/StringBuffer.java (StringBuffer): Don't special case
554 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
556 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
558 2000-01-13 Tom Tromey <tromey@cygnus.com>
560 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
561 not system loader, as initiating loader.
563 2000-01-11 Tom Tromey <tromey@cygnus.com>
565 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
566 HP/UX. From David Scott Urban.
568 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
570 * java/lang/natMath.cc (pow): Cast args to `double', not
573 (IEEEremainder): Likewise.
574 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
575 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
577 2000-01-09 Anthony Green <green@cygnus.com>
579 * java/lang/natString.cc (init): Test for overflow condition
580 during out of bounds check.
581 (getChars): Throw StringIndexOutOfBoundsException, not
582 ArrayIndexOutOfBoundsException.
584 (regionMatches): Obey case option during string comparison.
586 * configure.host (ligcj_interpreter): New variable. Enable
587 interpreter by default on IA-32.
588 * configure.in: Examine libgcj_interpreter.
589 * configure: Rebuilt.
591 2000-01-07 Tom Tromey <tromey@cygnus.com>
593 * mauve-libgcj: Don't disable ClassTest.
595 * java/lang/natClass.cc (getClasses): Wrote.
597 2000-01-06 Tom Tromey <tromey@cygnus.com>
599 * java/lang/natClass.cc (_getConstructors): Correctly check
600 whether method name is the init name.
601 (getMethod): Look at accflags on method in `klass', not `this'.
603 2000-01-05 Tom Tromey <tromey@cygnus.com>
605 * java/lang/natClass.cc (getMethod): Compute offset relative to
606 `klass's methods table, not `this's table.
608 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
609 In unwrapping/widening case, check whether `k' is null, not
610 whether it is primitive. Initialize `num' from `argelts', not
611 `paramelts'. Correct create and pass arguments to ffi_call.
612 Don't let presence of `this' argument affect index used to look in
614 (COPY): Set appropriate element in `values' vector.
616 * java/lang/natClass.cc: Include <gcj/method.h>.
618 * java/lang/Class.h (_getMethods): Correctly declare as private,
621 * java/lang/Class.h (_getMethods): Declare.
622 * java/lang/Class.java (_getMethods): Declare.
623 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
624 (getDeclaredClasses): Always return empty array.
625 (_getMethods): New method.
627 (getDeclaredMethod): Return `rmethod'.
628 (finit_name): New global.
629 (getDeclaredMethods): Check for finit_name.
630 (_getMethods): Likewise.
631 (getMethod): Only return public methods.
633 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
634 jboolean and select correct ffi type on that basis.
635 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
636 Constructor call always has `void' return type.
638 2000-01-04 Tom Tromey <tromey@cygnus.com>
640 * java/lang/Class.h (getSignature): Updated.
641 * java/lang/Class.java (getSignature): Updated.
642 * java/lang/natClass.cc (getSignature): Added `is_constructor'
644 (getConstructor): Ensure constructor is public.
645 (_getConstructors): Check for public-ness of constructor when
646 `declared' is false, not when it is true.
648 2000-01-04 Warren Levy <warrenl@cygnus.com>
650 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
652 (receive): Set the sender's address in the DatagramPacket.
654 2000-01-04 Tom Tromey <tromey@cygnus.com>
656 * java/lang/reflect/natConstructor.cc (newInstance): Pass
657 declaring class as return_type argument to
658 _Jv_CallNonvirtualMethodA.
659 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
660 constructor case, create object and use it as `this' argument.
661 * java/lang/Class.h (_getConstructors): Declare.
662 (_getFields): Declare.
663 * java/lang/Class.java (getConstructors): Wrote.
664 (_getConstructors): New native method.
665 (getDeclaredConstructors): Wrote.
666 (_getFields): Declare new native method.
667 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
669 (getMethod): Work correctly when class is primitive.
670 (getDeclaredMethods): Likewise. Compute offset using `method',
672 (getDeclaredMethod): Likewise.
673 (getConstructor): Wrote.
674 (ConstructorClass): New define.
675 (getDeclaredConstructor): Wrote.
676 (_getConstructors): New method.
677 (_getFields): New method.
680 * Makefile.in: Rebuilt.
681 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
683 * prims.cc: Remove `#pragma implementation'.
684 * gcj/array.h: Remove `#pragma interface'.
686 * prims.cc (_Jv_equaln): New function.
687 * java/lang/Class.java (getSignature): Declare.
688 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
689 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
691 (getSignature): New method.
692 (getDeclaredMethod): Wrote.
694 Include StringBuffer.h.
695 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
696 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
698 (getSignature): Declare.
699 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
700 (_Jv_equaln): Declare.
701 (_Jv_CallNonvirtualMethodA): Declare.
702 * Makefile.in: Rebuilt.
703 * Makefile.am (nat_source_files): Added natConstructor.cc.
704 (java/lang/reflect/Constructor.h): New target.
705 * java/lang/reflect/natConstructor.cc: New file.
706 * java/lang/reflect/Constructor.java (newInstance): Now native.
707 (declaringClass): Renamed from decl_class.
708 (offset): Renamed from index.
709 (getType): New native method.
710 (getModifiers): Now native.
711 (getParameterTypes): Call getType if required.
712 (hashCode): Include hash code from declaring class.
713 (modifiers): Removed.
714 (toString): Call getType if required.
715 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
716 * java/lang/reflect/natMethod.cc (hack_call): New method.
717 Removed `#if 0' around FFI code.
718 Include <gnu/gcj/RawData.h>.
719 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
720 IllegalArgumentException when argument object and class disagree.
721 (_Jv_GetTypesFromSignature): New function.
723 (ObjectClass): New define.
724 (_Jv_CallNonvirtualMethodA): New function.
725 * java/lang/reflect/Method.java (hack_trampoline): New method.
726 (hack_call): New native method.
728 1999-12-21 Per Bothner <per@bothner.com>
730 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
731 offset in new Method.
733 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
735 * java/lang/natObject.cc (notify): Throw message with
736 IllegalMonitorStateException.
739 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
740 (isInterrupted_): New function, which does clear interrupt_flag.
741 (interrupt): Use `isInterrupted_'.
742 * java/lang/natThread.cc (interrupt): Add comment.
743 (join): Set `prev' in joiner loop.
744 Change various calls to `isInterrupted' to use `isInterrupted_'.
745 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
746 on linux. Set result to 0 on an interrupt. Test interrupted status
747 of java Thread object directly.
748 FLAG_INTERRUPTED: removed.
749 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
750 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
751 (_Jv_InitThreads): Don't block SIGINT.
752 (_Jv_ThreadWait): Don't configure SIGINT handler.
754 1999-12-21 Tom Tromey <tromey@cygnus.com>
756 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
758 1999-12-20 Tom Tromey <tromey@cygnus.com>
760 * java/lang/reflect/Modifier.java (STRICT): New constant.
761 (isStrict): New method.
762 (toString): Added `strict'.
764 1999-12-23 Anthony Green <green@cygnus.com>
766 * configure: Rebuilt.
767 * configure.in (LIBDATASTARTSPEC): Force data_start in with
770 1999-12-19 Anthony Green <green@cygnus.com>
772 * libgcjdata.c: New file.
773 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
774 * configure: Rebuilt.
775 * configure.in (LIBDATASTARTSPEC): Force data with a known name
777 * Makefile.in: Rebuilt.
778 * Makefile.am: Build libgcjdata.a.
780 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
781 * configure: Rebuilt.
782 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
785 1999-12-17 Tom Tromey <tromey@cygnus.com>
787 * java/lang/reflect/Method.java (toString): Call getType if
788 required. Partial fix for PR libgcj/111. From Per Bothner.
790 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
792 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
794 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
795 null String constructor parameter.
796 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
797 for exception messages.
798 BooleanClass: declare.
799 (setOption): Use BooleanClass instead of Class.forName() for
801 (bind): Cast 4th parameter of setsockopt to `char *' for
802 compatibility with older Solaris headers.
803 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
804 sprintf calls for exception messages.
805 BooleanClass, IntegerClass: declare.
806 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
809 1999-12-15 Tom Tromey <tromey@cygnus.com>
811 * java/lang/natSystem.cc (init_properties): Don't set user.name or
812 user.home if NO_GETUID defined. Only set user.dir if getcwd
815 * include/config.h.in: Rebuilt.
816 * acconfig.h (NO_GETUID): New define.
817 * configure.in: Rebuilt.
818 * configure.in: Define NO_GETUID in cross case. Check for getcwd
821 1999-12-08 Tom Tromey <tromey@cygnus.com>
823 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
824 where no recursive mutexes exist. Fixes PR libgcj/117.
826 1999-12-05 Anthony Green <green@cygnus.com>
828 * include/jvm.h: Declare many functions with
829 __attribute__((__malloc__)).
830 * gcj/javaprims.h: Ditto.
832 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
834 * THANKS: Giving credit where credit is due.
836 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
838 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
840 * java/lang/natString.cc (equalsIgnoreCase): return false if
841 anotherString is null.
842 * java/lang/Boolean.java (valueOf): return FALSE if argument is
845 1999-11-30 Tom Tromey <tromey@cygnus.com>
847 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
848 mutex to initialize. Initialize `count' if required.
851 1999-11-27 Per Bothner <per@bothner.com>
853 * exception.cc: Remove prototype declarations for malloc and free.
854 These clash with recent versions of glibc, which specifies `throws ()'
855 when __cplusplus is defined. Instead, #include <stdlib.h>.
857 1999-11-24 Tom Tromey <tromey@cygnus.com>
859 * prims.cc (_Jv_NewObjectArray): Use
860 _Jv_GetArrayElementFromElementType.
861 (_Jv_NewPrimArray): Likewise.
862 * java/lang/natObject.cc (clone): Use
863 _Jv_GetArrayElementFromElementType instead of sizeof.
864 * java/lang/natSystem.cc (arraycopy): Use
865 _Jv_GetArrayElementFromElementType.
866 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
869 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
871 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
872 Exception messages. PR java.net/57.
873 (bind): set SO_REUSEADDR before bind.
874 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
875 overruns. PR java.net/57.
877 1999-11-19 Tom Tromey <tromey@cygnus.com>
879 * Makefile.am (DIVIDESPEC): Removed.
880 (EXCEPTIONSPEC): Removed.
882 1999-11-19 Andrew Haley <aph@cygnus.com>
884 * Makefile.am (JCFLAGS): Add -L$(here)
886 * Makefile.in: Rebuild.
888 1999-11-18 Tom Tromey <tromey@cygnus.com>
890 * java/lang/natDouble.cc: Include <config.h>.
892 * include/config.h.in: Rebuilt.
893 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
894 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
896 * configure: Rebuilt.
897 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
898 requested by configure.host. Don't put `-D' option into
899 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
901 * configure: Rebuilt.
902 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
905 1999-11-18 Andrew Haley <aph@cygnus.com>
907 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
908 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
910 * Makefile.in: Rebuild
911 * acconfig.h: remove SJLJ_EXCEPTIONS
912 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
913 Do not AC_DEFINE SJLJ_EXCEPTIONS.
914 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
915 * gcj/Makefile.in, include/Makefile.in: rebuild.
916 * include/config.h.in: remove SJLJ_EXCEPTIONS.
918 1999-11-18 Andrew Haley <aph@cygnus.com>
920 * gij.cc (main): Rename label to prevent conflict.
922 * exception.cc (_Jv_type_matcher): Don't check the table if we're
923 using setjmp/longjmp exceptions: there isn't one.
925 1999-11-17 Andrew Haley <aph@cygnus.com>
927 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
928 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
929 (__sjthrow): Add declaration.
930 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
934 * Makefile.in: Rebuild
935 * acconfig.h: Add SJLJ_EXCEPTIONS
936 * configure.in: Add SJLJ_EXCEPTIONS
937 * configure: Rebuild.
938 * gcj/Makefile.in: Rebuild.
939 * gcj/cni.h: Add support for sjlj-exceptions.
940 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
941 * include/Makefile.in: Rebuild.
942 * include/default-signal.h: Add support for sjlj-exceptions.
944 1999-11-18 Tom Tromey <tromey@cygnus.com>
946 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
948 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
950 (method_cache): Made larger.
952 1999-11-11 Tom Tromey <tromey@cygnus.com>
954 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
955 initializing mutex. Initialize `count' when required.
957 1999-11-07 Anthony Green <green@trip.cygnus.com>
959 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
962 1999-11-05 Tom Tromey <tromey@cygnus.com>
964 * java/lang/natThread.cc (destroy): Removed incorrect comment.
966 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
968 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
969 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
972 1999-11-05 Tom Tromey <tromey@cygnus.com>
974 * java/lang/natThread.cc (stop): Removed argument name.
976 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
977 `private'; now has default access.
978 * Makefile.in: Rebuilt.
979 * Makefile.am (java/lang/ThreadGroup.h): Removed.
981 1999-11-04 Tom Tromey <tromey@cygnus.com>
983 * java/lang/natClass.cc (method_cache_count): Removed.
984 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
985 (_Jv_AddMethodToCache): Don't loop.
987 * configure.in: Removed `qt' threads case.
988 * include/quick-threads.h: Removed.
989 * quick-threads.cc: Removed.
991 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
992 (_Jv_ThreadDestroy): Likewise.
993 * include/no-threads.h (_Jv_ThreadCancel): Removed.
994 (_Jv_ThreadDestroy): Likewise.
995 * include/posix-threads.h (struct _Jv_Thread_t): Removed
997 (_Jv_ThreadCancel): Removed decl.
998 (_Jv_ThreadDestroy): Removed.
999 * posix-threads.cc (_Jv_ThreadCancel): Removed.
1000 (throw_cleanup): Removed.
1001 (really_start): Don't push or pop cleanup.
1002 (_Jv_ThreadInitData): Don't initialize `exception' field.
1003 * java/lang/Thread.java (stop): Officially unimplemented.
1004 * java/lang/natThread.cc (stop): Officially unimplemented.
1006 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1008 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
1011 1999-11-02 Tom Tromey <tromey@cygnus.com>
1013 * boehm.cc: Don't include boehm-config.h.
1015 1999-11-01 Tom Tromey <tromey@cygnus.com>
1017 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
1018 (sum_blocks): Removed.
1019 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
1021 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
1023 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
1025 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
1026 * java/io/InputStreamReader (InputStreamReader): ditto.
1028 1999-10-22 Tom Tromey <tromey@cygnus.com>
1030 * Makefile.in: Rebuilt.
1031 * Makefile.am (java/lang/ClassLoader.h): New target.
1032 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
1035 * include/java-props.h (_Jv_Compiler_Properties): Changed
1037 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
1038 * include/jvm.h (_Jv_GCSetInitialHeapSize,
1039 _Jv_GCSetMaximumHeapSize): Declare.
1040 (JvRunMain, _Jv_RunMain): Declare.
1041 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
1042 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
1043 (_Jv_GCSetMaximumHeapSize): Likewise.
1044 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
1045 (_Jv_GCSetMaximumHeapSize): Likewise.
1046 * prims.cc (parse_heap_size): New function.
1047 (_Jv_SetInitialHeapSize): Likewise.
1048 (_Jv_SetMaximumHeapSize): Likewise.
1049 (_Jv_Compiler_Properties): New global.
1050 * gij.cc (help): New function.
1051 (version): Likewise.
1052 (heap_size): Likewise.
1053 (heap_max_size): Likewise.
1054 (main): Parse arguments. Set _Jv_Compiler_Properties.
1055 Include <config.h>, <java-props.h>.
1056 (_Jv_Compiler_Properties): Removed.
1058 1999-10-18 Tom Tromey <tromey@cygnus.com>
1060 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
1062 (redirect): New static field.
1063 * java/lang/ClassLoader.java (getSystemClassLoader): Now
1065 (getVMClassLoader0): Removed.
1066 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
1067 (redirect): Removed.
1068 (getSystemClassLoader): Implemented.
1070 1999-10-16 Anthony Green <green@cygnus.com>
1072 * java/lang/ClassLoader.java (getSystemResource): Use
1073 getSystemClassLoader instead of ClassLoader.system.
1074 (getSystemResourceAsStream): Ditto.
1076 * java/lang/natClassLoader.cc (redirect): Make static and
1077 remove #ifdef INTERPRETER so it is always defined.
1078 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
1079 returns a VMClassLoader.
1081 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
1082 PropertyResourceBundle if a properties file is found before a
1083 ResourceBundle class.
1085 1999-10-15 Tom Tromey <tromey@cygnus.com>
1087 * gij.cc (main): Formatting fixes.
1088 (_Jv_Compiler_Properties): Define.
1089 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
1091 (init_properties): Set properites from _Jv_Compiler_Properties.
1092 * include/java-props.h (_Jv_Compiler_Properties,
1093 _Jv_Environment_Properties): Declare.
1095 * include/java-props.h: Added copyright.
1097 1999-10-13 Anthony Green <green@cygnus.com>
1099 * libtool-version: Catch up by incrementing current.
1101 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
1102 * configure, include/config.h.in: Rebuilt.
1103 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
1104 * configure.in: Added --disable-getenv-properties and new define
1105 `DISABLE_GETENV_PROPERTIES'.
1107 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
1108 (next_property_key): New function.
1109 (next_property_value): New function.
1110 (process_gcj_properties): New function.
1111 (JvRunMain): Call process_gcj_properties.
1112 (_JvRunMain): Ditto.
1114 * java/lang/natSystem.cc (init_properties): Set properties defined
1117 * include/java-props.h: New file.
1119 * java/lang/natSystem.cc (init_properties): Add new properties to
1120 conform with Java Product Versioning Specification.
1122 1999-10-12 Tom Tromey <tromey@cygnus.com>
1124 * configure: Rebuilt.
1125 * configure.in: Fixed test for --disable-java-net.
1127 1999-10-06 Tom Tromey <tromey@cygnus.com>
1129 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
1130 when building Canadian cross.
1131 (NATIVE): Don't define when cross-compiling.
1133 1999-10-04 Tom Tromey <tromey@cygnus.com>
1135 * java/net/natPlainSocketImpl.cc: Don't include headers if
1136 java.net is disabled.
1138 * Makefile.in: Rebuilt.
1139 * Makefile.am (ZINCS): Removed. This is defined in configure.in
1140 when needed, and must be left empty when not needed.
1142 1999-10-01 Anthony Green <green@cygnus.com>
1144 * THANKS: Refreshed from htdocs version.
1146 1999-10-01 Steve Chamberlain <sac@pobox.com>
1148 * Makefile.in: Rebuilt.
1149 * Makefile.am (ZINCS): Define
1151 * configure: Rebuilt.
1152 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1154 * java/lang/ieeefp.h: Add definitions for picoJava.
1156 1999-10-01 Tom Tromey <tromey@cygnus.com>
1158 * configure: Rebuilt.
1159 * configure.in: Set classpath when invoking gcj. Use changequote
1160 around sed invocation.
1162 * java/net/natPlainSocketImpl.cc: Stub native functions if
1163 DISABLE_JAVA_NET is defined.
1164 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1165 typo in exception string.
1166 (getTimeToLive): Likewise.
1167 Stub native functions if DISABLE_JAVA_NET is defined.
1168 * java/net/natInetAddress.cc: Stub native functions if
1169 DISABLE_JAVA_NET is defined.
1170 * configure.host: Disable java.net for mips-tx39.
1171 * configure, include/config.h.in: Rebuilt.
1172 * acconfig.h (DISABLE_JAVA_NET): Undefine.
1173 * configure.in: Added --disable-java-net and new define
1176 1999-09-30 Tom Tromey <tromey@cygnus.com>
1178 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1180 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1184 1999-09-28 Tom Tromey <tromey@cygnus.com>
1186 * configure: Rebuilt.
1187 * configure.in (PROCESS): In POSIX case, only set if not already
1189 * configure.host (PROCESS): Set in mips-tx39 case.
1191 * aclocal.m4, configure: Rebuilt.
1192 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1193 appropriate AC_PROG_ symbol.
1195 1999-09-24 Tom Tromey <tromey@cygnus.com>
1197 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1199 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1201 Fix for PR java.util/47:
1202 * configure, include/config.h: Rebuilt.
1203 * configure.in: Don't look for ctime or ctime_r.
1204 * Makefile.in: Rebuilt.
1205 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1206 * java/util/natDate.cc: Removed.
1207 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1209 (getAvailableIDs): Rewrote.
1210 (getTimeZone): Rewrote.
1211 * java/util/Date.java (toGMTString): New method.
1212 (toLocaleString): New method.
1213 (toString): Rewrote.
1215 1999-09-23 Tom Tromey <tromey@cygnus.com>
1217 * configure: Rebuilt.
1218 * configure.in: Print message when checking to see if gcj can
1219 handle -fuse-divide-subroutine.
1221 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1223 * java/lang/FirstThread.java (run0): Renamed to `run'.
1226 * prims.cc (main_init): New function.
1227 (JvRunMain): Call it.
1228 (_Jv_RunMain): Likewise.
1230 (main_init): Ignore SIGPIPE. Fixes PR 51.
1232 1999-09-22 Tom Tromey <tromey@cygnus.com>
1234 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1236 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1238 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1240 * java/text/NumberFormat.java: Check that object is a Number. If
1241 not, throw IllegialArgumentException.
1243 1999-09-21 Tom Tromey <tromey@cygnus.com>
1245 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1246 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1248 * include/posix-threads.h (_Jv_MutexDestroy): Use
1249 _Jv_PthreadGetMutex.
1250 (_Jv_MutexLock): Likewise.
1251 (_Jv_MutexUnlock): Likewise.
1253 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1254 previous patch; it too was incorrect.
1255 * java/io/PrintStream.java (PrintStream): Likewise.
1257 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1258 refer to `this' before calling superclass constructor.
1259 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1260 before calling superclass constructor.
1262 1999-09-20 Tom Tromey <tromey@cygnus.com>
1264 * configure: Rebuilt.
1265 * configure.in: Send output of `-fuse-divide-subroutine' test
1266 compilation to /dev/null.
1268 1999-09-14 Tom Tromey <tromey@cygnus.com>
1270 * include/java-insns.h: Turned constants into an enum. Added
1271 multiple-inclusion protection.
1273 1999-09-10 Tom Tromey <tromey@cygnus.com>
1275 * configure: Rebuilt.
1276 * configure.in: Build include/Makefile.
1277 * Makefile.in: Rebuilt.
1278 * Makefile.am (SUBDIRS): Added gcj and include.
1279 (install-data-local): New target.
1280 (extra_headers): New macro.
1281 * include/Makefile.in: New file.
1282 * include/Makefile.am: New file.
1284 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1285 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1287 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1288 * resolve.cc: Include config.h.
1289 * defineclass.cc: Include config.h.
1290 * include/java-interp.h: Don't include config.h.
1291 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1294 * gcj/javaprims.h: Regenerated namespace decls.
1295 * classes.pl (scan): Don't put `;' after closing brace.
1297 * Makefile.in: Rebuilt.
1298 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1299 * configure.in: Create gcj/Makefile.
1300 * gcj/Makefile.in: New file.
1301 * gcj/Makefile.am: New file.
1302 * java/lang/Object.h: Don't include any other headers.
1303 * gcj/array.h: Renamed from include/java-array.h.
1304 * gcj/field.h: Renamed from include/java-field.h.
1305 * gcj/method.h: Renamed from include/java-method.h.
1306 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1307 Updated all files to reflect new include structure.
1309 1999-09-09 Tom Tromey <tromey@cygnus.com>
1311 * configure: Rebuilt.
1312 * configure.in: Fixed typo; variable is THREADSPEC and not
1315 1999-09-08 Tom Tromey <tromey@cygnus.com>
1317 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1318 previous change and implemented a correct test in the __m_count
1321 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1324 1999-09-07 Tom Tromey <tromey@cygnus.com>
1326 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1327 code and don't set errno.
1329 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1330 not `r'. Changed `done_sleeping' to a `bool'.
1332 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1334 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1335 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1336 by another thread, rather than by the GC.
1337 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1338 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1339 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1342 1999-09-03 Tom Tromey <tromey@cygnus.com>
1344 * configure: Rebuilt.
1345 * configure.in: Check for fstat function.
1346 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1349 1999-09-02 Tom Tromey <tromey@cygnus.com>
1351 * include/java-array.h (jobjectArrayjchar): Removed unused
1354 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1355 _Jv_PrepareCompiledClass while holding class mutex.
1357 1999-09-01 Tom Tromey <tromey@cygnus.com>
1359 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1360 (_Jv_PthreadGetMutex): Use it.
1361 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1362 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1363 (_Jv_MutexLock): Likewise.
1364 (_Jv_MutexUnlock): Likewise.
1365 * include/config.h.in: Rebuilt.
1366 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1367 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1368 * configure: Rebuilt.
1369 * libgcj.spec.in: Don't mention INTERPSPEC.
1370 * configure.in (INTERPSPEC): Removed.
1371 Only run pthreads-related checks when using POSIX threads. Check
1372 for m_count and __m_count in mutex structure.
1374 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1376 * java/lang/natClass.cc: Fixed notification of threads
1377 when class initialization is complete.
1379 1999-09-01 Tom Tromey <tromey@cygnus.com>
1381 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1382 * resolve.cc: Removed constants defined by
1383 java.lang.reflect.Modifier.
1384 Include <java/lang/reflect/Modifier.h>.
1385 (_Jv_ResolvePoolEntry): Use values from Modifier.
1386 (_Jv_DetermineVTableIndex): Likewise.
1387 (_Jv_PrepareClass): Likewise.
1389 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1390 java.lang.reflect.Modifier.
1391 Include <java/lang/reflect/Modifier.h>.
1392 (checkExtends): Use values from Modifier.
1393 (checkImplements): Likewise.
1394 (handleField): Likewise.
1395 (handleConstantValueAttribute): Likewise.
1396 (handleFieldsEnd): Likewise.
1397 (handleMethod ): Likewise.
1398 (handleMethodsEnd): Likewise.
1399 (handleClassBegin): Likewise.
1400 * interpret.cc: Removed constants defined by
1401 java.lang.reflect.Modifier.
1402 (continue1): Use values from Modifier.
1403 * java/lang/natClassLoader.cc: Removed constants defined by
1404 java.lang.reflect.Modifier.
1406 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1407 JV_STATE_NOTHING, not `0'.
1408 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1410 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1411 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1413 (_Jv_PthreadGetMutex): New function.
1414 (_Jv_PthreadCheckMonitor): Use it.
1415 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1416 (_Jv_MutexLock): Update `count'.
1417 (_Jv_MutexUnlock): Likewise.
1418 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1421 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1423 * Makefile.am (.java.lo): Add rule.
1425 * Makefile.in: Rebuilt.
1427 1999-09-01 Tom Tromey <tromey@cygnus.com>
1429 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1430 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1432 (_Jv_CondNotify): Use it.
1433 (_Jv_CondNotifyAll): Likewise.
1435 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1437 1999-08-31 Tom Tromey <tromey@cygnus.com>
1439 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1442 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1444 * posix-threads.cc: Include <errno.h>.
1446 1999-08-23 Tom Tromey <tromey@cygnus.com>
1448 * boehm.cc: Undefine TRUE and FALSE.
1450 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1452 1999-08-21 Tom Tromey <tromey@cygnus.com>
1454 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1457 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1459 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1461 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1462 (HAVE_STRUCT_IP_MREQ): Added.
1463 * configure, include/config.h.in: Rebuilt.
1464 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1466 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1467 Disable if ip_mreq is not available.
1469 * configure.in: Check types ssize_t and in_addr_t.
1470 * acconfig.h: Undefine them.
1471 * configure, include/config.h.in: Rebuilt.
1473 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1474 function that detects the signature of getpwuid_r.
1475 (init_properties): Use it.
1476 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1479 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1481 * interpret.cc (continue1): Implement explicit dispatch table.
1482 insn_target: Explicit interpreter switch table.
1483 SAVE_PC: New macro, moves pc saving code into instructions that
1485 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1486 PC_REGISTER_ASM: New macro.
1487 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1488 opcode: Remove local variable.
1489 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1490 (POKEI): Use _Jv_word.
1491 (iinc): Use _Jv_word.
1492 (dupx): Change reference argument (sp) to pointer.
1495 * interpret.cc: Remove instruction timing instrumentation.
1497 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1498 comment. Don't use _Jv_ClassNameSamePackage.
1500 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1501 URLPathEntry, CacheEntry}: Removed.
1503 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1505 (.java.lo): Rule removed.
1507 * Makefile.in: Rebuilt.
1509 1999-08-19 Tom Tromey <tromey@cygnus.com>
1511 * java/lang/natThread.cc (class locker): New class.
1512 (join): Use a locker around _Jv_CondWait.
1515 1999-08-18 Tom Tromey <tromey@cygnus.com>
1517 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1518 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1520 1999-08-18 Tom Tromey <tromey@cygnus.com>
1522 * include/javaprims.h ("Java"): Regenerated namespace decls.
1524 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1526 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1527 from _Jv_InternClassStrings.
1529 * prims.cc (_Jv_RunMain): New function.
1530 (JvRunMain): Remove gij-support.
1532 * gij.cc (main): Use _Jv_RunMain.
1534 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1536 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1537 argument in temp variable.
1538 (continue1): For all op_x2y insns, use temp variable for
1539 intermediate value. Also remove some comments.
1541 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1542 (forName): Don't call _Jv_InitClass.
1544 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1546 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1548 * java/util/jar/JarInputStream.java: New file.
1550 * java/util/jar/JarEntry.java: New file.
1552 * java/util/jar/JarFile.java: New file.
1554 * java/net/URLClassLoader.java: New file.
1556 * java/net/JarURLConnection.java: New file.
1558 * gnu/gcj/protocol/jar/Handler.java: New file.
1560 * gnu/gcj/protocol/jar/Connection.java: New file.
1562 * java/security/SecureClassLoader.java: New file.
1564 * java/lang/ClassLoader.java (parent): New variable.
1565 (ClassLoader (ClassLoader)): new constructor.
1566 (findClass): New method.
1567 (loadClass): Add default 1.2 implementation.
1568 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1569 (readfully): Removed.
1571 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1572 (findSystemClass): New method.
1573 (VMClassLoader): Constructor rewritten.
1575 All other methods removed.
1577 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1578 to gnu::gcj::runtime::VMClassLoader.
1579 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1581 (VMClassLoader::findSystemClass): renamed from findBootClass.
1583 * Makefile.am: Add new files.
1584 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1586 * Makefile.in: Rebuilt.
1588 1999-08-17 Tom Tromey <tromey@cygnus.com>
1590 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1592 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1595 1999-08-16 Tom Tromey <tromey@cygnus.com>
1597 * configure: Rebuilt.
1598 * configure.in: Set DIVIDESPEC to empty string if compiler does
1599 not support -fuse-divide-subroutine.
1601 1999-08-14 Per Bothner <per@bothner.com>
1603 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1604 * java/lang/natClass.cc (initializeClass): Likewise.
1605 * java/lang/ClassLoader.java (resolveClass0): New static method.
1606 (resolveClass): Call resolveClass0.
1607 (findSystemClass): No longer static.
1609 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1611 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1613 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1615 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1618 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1620 * Makefile: Rebuilt.
1621 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1624 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1627 * configure: Rebuilt.
1628 * configure.in: Properly align --help output, fix capitalization
1630 * acinclude.m4: Likewise.
1632 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1634 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1636 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1637 (_Jv_callInterpretedMethod): Unused. Remove.
1638 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1640 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1641 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1642 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1643 * interpret.cc: use _Jv_word.
1644 * defineclass.cc: use_Jv_word.
1645 * resolve.cc: Use _Jv_word.
1646 (_Jv_ResolvePoolEntry): Return _Jv_word.
1647 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1648 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1650 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1653 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1655 * configure: Rebuilt.
1656 * configure.in (sched_yield): Try librt first, then libposix4.
1657 Add -lrt, -lposix4 to THREADSPEC.
1659 1999-08-08 Anthony Green <green@cygnus.com>
1661 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1663 1999-08-08 Anthony Green <green@cygnus.com>
1665 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1668 1999-08-08 Anthony Green <green@cygnus.com>
1672 * include/config.h.in: Rebuilt.
1673 * acconfig.h: Add INTERPRETER.
1675 * Makefile.in: Rebuilt.
1676 * Makefile.am (libffi_files): Identify the libffi object files for
1677 inclusion in libgcj.
1678 (LIBFFIINCS): Define.
1680 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1681 Dummy definition for configurations without an interpreter.
1683 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1684 java::lang::Boolean constructor.
1686 * include/java-interp.h: Always include java-cpool.h.
1688 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1689 when INTERPRETER not defined.
1691 * java/lang/Class.h (finalize): Define.
1693 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1694 IOException from File.getCanonicalPath.
1695 (getStream): Likewise.
1698 * THANKS: More thanks.
1700 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1702 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1704 (_Jv_PrepareClass): Allow non-abstract classes to
1705 have abstract subclasses.
1706 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1708 * interpret.cc (continue1/perform_invoke): Don't sign extend
1710 (continue1/lshl,lshr): Push long, not int.
1711 (continue1/ulshr): Use UINT64, not long long.
1712 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1714 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1715 * java/lang/FirstThread.java (run): Add top-level exception
1717 (run0): Renamed from run.
1719 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1721 * configure.in (--with-interpreter): Added.
1722 * include/config.h.in (INTERPRETER): Added.
1724 * java/lang/ClassLoader.java: File replaced.
1725 * java/lang/VMClassLoader.java: New file.
1726 * java/lang/natClassLoader.cc: New file.
1727 * gnu/gcj/runtime/MethodInvocation.java: New file.
1728 * gnu/gcj/util/path/SearchPath.java: New file.
1729 * gnu/gcj/util/path/PathEntry.java: New file.
1730 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1731 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1732 * gnu/gcj/util/path/URLPathEntry.java: New file.
1733 * gnu/gcj/util/path/CacheEntry.java: New file.
1734 * include/java-interp.h: New file.
1735 * include/java-cpool.h: New file.
1736 * include/java-insns.h: New file.
1737 * defineclass.cc: New file.
1738 * interpret.cc: New file.
1739 * resolve.cc: New file.
1741 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1742 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1743 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1745 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1746 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1748 (initializeClass): Use new JV_ prefixed names. Also, call
1749 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1751 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1752 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1753 JV_STATE_LINKED): New.
1754 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1755 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1756 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1757 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1758 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1759 _Jv_InterpMethodInvocation): New friends for interpreter.
1761 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1762 include/java-cpool.h and renamed with JV_ prefix.
1764 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1766 (_Jv_UnregisterClass): New decl.
1768 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1769 class loader argument.
1770 (_Jv_FindClass): Use class loader.
1772 * prims.cc (_Jv_makeUtf8Const): New function.
1773 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1774 (_Jv_NewPrimArray): Ditto.
1775 (_Jv_FindClassFromSignature): Ditto.
1776 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1777 * java/lang/reflect/natMethod.cc (getType): Ditto.
1779 * include/java-field.h (_Jv_Field::isRef): Make robust for
1780 non-resolved contexts.
1782 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1783 Also, don't mark class->next field.
1785 * java/lang/VirtualMachineError.java: Added FIXME note.
1787 * configure.in (INTERPSPEC): New spec.
1788 * libgcj.spec.in: Added INTERPSPEC.
1789 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1790 gnu/gcj/runtime/MethodInvocation.
1791 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1792 (ordinary_java_source_files): Added above mentioned java classes.
1794 * configure: Rebuilt.
1795 * Makefile.in: Rebuilt.
1797 1999-08-06 Tom Tromey <tromey@cygnus.com>
1799 * configure: Rebuilt.
1800 * configure.in: Look for sched_yield in -lrt.
1802 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1804 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1805 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1806 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1808 (toString): Print correctly when `country' is empty.
1810 1999-08-04 Per Bothner <per@bothner.com>
1812 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1814 1999-08-02 Tom Tromey <tromey@cygnus.com>
1816 * aclocal.m4, configure: Rebuilt for new libtool.
1818 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1820 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1821 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1822 * java/net/ServerSocket.java: Define ANY_IF.
1823 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1824 all network interfaces.
1825 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1826 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1828 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1830 * java/io/natFile.cc (performMkdir): Remove FIXME.
1831 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1833 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1835 * configure.in: Check for bstring.h.
1836 * configure, include/config.h.in: Rebuilt.
1837 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1838 * java/net/natPlainSocketImpl.cc: Likewise.
1840 1999-07-31 Tom Tromey <tromey@cygnus.com>
1845 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1847 * configure.in: Check for struct hostent_data and need for
1848 -D_REENTRANT for gethostbyname_r declaration.
1849 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1850 (lookup): Use hostent_data for fixed_buffer.
1851 * configure, include/config.h.in: Rebuilt.
1853 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1855 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1856 available. Don't cast memmove args to (void*).
1857 * configure.in: Do not abort if memmove is not available.
1859 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1861 * java/lang/natString.cc (substring): optimize where substring is
1863 * java/io/File.java (getName): don't return separator with file name.
1864 * java/io/natFile.cc (attr): fix overflow.
1866 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1868 * mauve-libgcj: Disable Object Serialization tests.
1870 1999-07-20 Warren Levy <warrenl@cygnus.com>
1872 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1873 Default to using PlainDatagramSocketImpl.
1874 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1876 1999-07-19 Tom Tromey <tromey@cygnus.com>
1878 * include/stamp-h.in: New file.
1880 1999-07-12 Tom Tromey <tromey@cygnus.com>
1882 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1885 1999-07-07 Andrew Haley <aph@cygnus.com>
1887 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1888 bytes to make it point after the instruction where the trap
1890 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1892 1999-07-07 Tom Tromey <tromey@cygnus.com>
1894 * mauve-libgcj: Explicitly enable formerly disabled java.text
1897 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1900 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1902 * java/net/URL.java (equals): Compare strings using String.equals.
1903 * java/net/URL.java (sameFile): Ditto.
1905 1999-07-02 Warren Levy <warrenl@cygnus.com>
1907 * configure: Rebuilt.
1908 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1909 * include/config.h.in: Rebuilt.
1910 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1911 (mcastGrp): Updated FIXME comments.
1912 (setOption): Fixed typo.
1913 (getOption):Implemented IP_MULTICAST_IF.
1915 1999-07-02 Warren Levy <warrenl@cygnus.com>
1917 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1918 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1919 (getTimeToLive): Implemented.
1920 (setOption): Implemented IP_MULTICAST_IF.
1922 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1924 * java/lang/String.java (toString): Check for this == null and throw
1925 NullPointerException.
1927 1999-07-01 Warren Levy <warrenl@cygnus.com>
1929 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1930 to count and revised comments to match.
1931 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1932 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1933 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1934 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1935 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1936 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1938 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1940 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1941 properly as count rather than outlength.
1942 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1943 output on overflow rather than buffer fill.
1944 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1945 if markPos is 0 and there is still room in the buffer.
1947 1999-07-01 Andrew Haley <aph@cygnus.com>
1949 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1950 This is a workaround for a bug in glibc's pthreads package which
1951 doesn't deliver any sigcontext information to a signal handler.
1953 1999-06-24 Tom Tromey <tromey@cygnus.com>
1955 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1956 * java/lang/fdlibm.h (HUGE): Conditionally define.
1958 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1960 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1961 * java/lang/e_log.c: Don't use __uint32_t.
1963 1999-05-27 Eric Christopher <echristo@cygnus.com>
1965 * configure: Rebuilt
1966 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1967 * acconfig.h: Rebuilt
1968 * include/config.h.in: Rebuilt
1970 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1971 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1972 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1973 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1974 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1975 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1976 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1977 and namespace collision with __uint32_t
1979 1999-06-23 Tom Tromey <tromey@cygnus.com>
1981 * java/util/zip/InflaterInputStream.java (read): Throw
1982 ZipException if inflater throws a DataFormatException.
1984 1999-06-23 Warren Levy <warrenl@cygnus.com>
1986 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1987 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1988 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1989 is not final per JDK.
1990 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1992 * java/util/zip/DataFormatException.java: Class extends Exception.
1993 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1994 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1995 * java/util/zip/ZipInputStream.java: ditto.
1996 (closeEntry): Changed method name to match JDK spec.
1998 1999-06-21 Tom Tromey <tromey@cygnus.com>
2000 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
2003 * Makefile.in: Rebuilt.
2004 * Makefile.am (toolexeclibdir): Define as libdir when
2006 * configure: Rebuilt.
2007 * configure.in (USE_LIBDIR): New conditional.
2009 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
2011 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
2012 hostname in returned InetAddress objects.
2013 (getLocalHostname): Fix typo.
2014 * java/net/InetAddress.java (getByName): Set hostname on return
2016 (getLocalHost): Call lookup directly to ensure that a fully-qualified
2019 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
2021 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
2022 interfaces if host==NULL.
2023 (accept): Throw message with InterruptedIOException.
2024 (getOption): Cache localAddress.
2025 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
2026 'address' for DatagramSocket.
2027 (setTimeToLive): Fix compiler warnings.
2028 (getOption): Cache localAddress.
2029 * java/net/Socket.java (getLocalAddress): Don't need local
2030 InetAddress object. Add FIXME comment about calling checkConnect().
2031 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
2032 connection queue to 50 as per JDK 1.2 docs.
2033 (ServerSocket(int,int)): Listen on all network interfaces by
2034 default, per JDK 1.2 docs.
2035 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
2036 Add localAddress caching.
2038 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2040 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
2042 (write(byte[],int,int)): ditto.
2044 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
2046 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
2048 1999-06-11 Warren Levy <warrenl@cygnus.com>
2050 * mauve-libgcj: Activated java.net Mauve tests.
2052 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
2054 * java/net/natInetAddress.cc (aton): Fix typos.
2055 (lookup): Use a bigger buffer size for gethostbyname_r on all
2056 versions of glibc. Updated FIXME comment explaining this.
2057 Modified while loops to not set herr = ERANGE to work around glibc
2058 problems. Use user specified hostname in InetAddress result when
2059 available (consistent with JDK).
2061 1999-06-10 Warren Levy <warrenl@cygnus.com>
2063 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
2064 Throw FileNotFoundException instead of IOException.
2066 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
2068 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
2069 in static field name.
2070 * java/text/DecimalFormat.java: Throw IllegalArgumentException
2071 throughout rather than ParseException.
2073 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
2075 * java/lang/Runtime.java (exec): Convert prog name and arguments
2077 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
2078 environment array conversion. Preserve current environment if envp
2079 not passed. Preserve PATH unless explicitly specified.
2080 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
2081 followed by EOF. Set a flag when a line is terminated by '\r' and
2082 ignore following '\n' if set.
2084 1999-06-02 Warren Levy <warrenl@cygnus.com>
2086 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
2087 Ignore context if spec is an absolute URL. Fix braindead
2089 (hashCode): Use JDK 1.2 style algorithm.
2090 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
2091 context URL properly.
2093 1999-05-30 Anthony Green <green@cygnus.com>
2095 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
2096 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
2098 1999-05-28 Warren Levy <warrenl@cygnus.com>
2100 * java/net/DatagramSocket.java (laddr): Removed.
2101 (DatagramSocket): Removed attempts to get or set laddr if null.
2102 (getLocalAddress): Reimplemented per spec.
2103 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
2105 (joinGroup): Throw NullPointerException if any argument is null.
2106 (leaveGroup): ditto.
2107 * java/net/PlainDatagramSocketImpl.java: Updated comments.
2108 * java/net/PlainSocketImpl.java (timeout): Added.
2109 (getInputStream): Added FIXME comment on how to support timeouts
2111 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
2112 * java/net/Socket.java: Added FIXME comments to identify
2113 conflicting specs between the JCL and JDK 1.2 documents.
2114 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
2115 if host is null. Get localport value resolved by kernel if bind
2117 (receive): Implemented support for timeouts in UDP.
2118 (setOption): Implemented based on natPlainSocketImpl version.
2120 * java/net/natPlainSocketImpl.cc (bind): Get localport value
2121 resolved by kernel if bind lport is 0.
2122 (connect): Get localport value resolved by kernel if bind wasn't
2123 done to set localport.
2124 (accept): Implemented support for timeouts for ServerSocket.
2125 (setOption): Save value for SO_TIMEOUT.
2126 (getOption): Return timeout for SO_TIMEOUT.
2128 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
2130 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
2131 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
2132 (setOption): Made abstract.
2133 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
2134 to avoid cpp conflicts in native code.
2135 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
2136 cpp conflicts in native code.
2137 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
2138 * java/net/Socket.java (getLocalAddress): Implemented.
2139 (setTcpNoDelay): Implemented.
2140 (getTcpNoDelay): Implemented.
2141 (setSoLinger): Implemented.
2142 (getSoLinger): Implemented.
2143 (getSoTimeout): Verify class type.
2144 (setSendBufferSize): Implemented.
2145 (getSendBufferSize): Implemented.
2146 (setReceiveBufferSize): Implemented.
2147 (getReceiveBufferSize): Implemented.
2148 (toString): Prepended "Socket".
2149 * java/net/SocketImpl.java (toString): Rewritten.
2150 (getOption): Made abstract.
2151 (setOption): Made abstract.
2152 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2153 (setOption): Implemented.
2154 (getOption): Implemented.
2156 1999-05-26 Warren Levy <warrenl@cygnus.com>
2158 * java/net/DatagramSocket.java (DatagramSocket): Get local host
2159 address when null. Set SO_REUSEADDR for multicasts.
2160 (getSoTimeout): Implemented.
2161 (setSoTimeout): Implemented.
2162 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2163 * java/net/MulticastSocket.java (getInterface): Implemented.
2164 (setInterface): Implemented.
2165 (setTimeToLive): Check for invalid ttl.
2166 (joinGroup): Verify multicast address and security.
2167 (leaveGroup): Verify multicast address and security.
2168 (send): Implemented.
2169 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2175 (getTTL): Implemented as non-native.
2179 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2180 (getSoTimeout): Implemented.
2181 (setSocketFactory): Made synchronized.
2182 * java/net/Socket.java (setSoTimeout): Implemented.
2183 (getSoTimeout): Implemented.
2184 (close): Made synchronized.
2185 (setSocketImplFactory): Made synchronized.
2186 * java/net/SocketImpl.java: Implement SocketOptions interface.
2187 * java/net/natInetAddress.cc: Corrected module name at top of file.
2188 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2189 (bind): Added FIXME.
2190 (peek): Implemented.
2196 (setOption): Implemented for SO_REUSEADDR.
2197 (getOption): Implemented for SO_REUSEADDR.
2199 1999-05-24 Tom Tromey <tromey@cygnus.com>
2201 * java/util/ResourceBundle.java (getBundle): Throw
2202 NullPointerException if baseName is null.
2204 1999-05-22 Tom Tromey <tromey@cygnus.com>
2206 * java/util/zip/ZipInputStream.java (fill): New method.
2207 (compressed_len): New instance variable.
2208 (getNextStream): Set it.
2209 (read): Reset inflater on EOF. Only read via `super' if entry is
2211 (skip): Only skip via `super' if entry is deflated.
2212 * java/util/zip/Deflater.java (last_input_count): Removed.
2213 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2215 (needsInput): Don't use last_input_count.
2216 (setInput): Don't set last_input_count.
2217 * java/util/zip/natInflater.cc (getRemaining): Return correct
2219 (inflate): Return 0 if input array is length 0.
2220 (setInput): Don't set last_input_count.
2221 * java/util/zip/Inflater.java (last_input_count): Removed.
2223 1999-05-21 Tom Tromey <tromey@cygnus.com>
2225 * Makefile.in: Rebuilt.
2226 * Makefile.am (INCLUDES): Added $(ZINCS).
2227 * configure: Rebuilt.
2228 * configure.in (ZINCS): New subst.
2230 1999-05-21 Andrew Haley <aph@cygnus.com>
2232 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2233 to signal options to allow the same exceptions to be rethrown
2236 1999-05-20 Andrew Haley <aph@cygnus.com>
2238 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2240 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2241 (INIT_FPE): Exception string made more informative.
2242 * include/sparc-signal.h (INIT_FPE): Exception string made more
2244 * testsuite/libjava.lang/Divide_1.java: New file.
2245 * testsuite/libjava.lang/Divide_1.out: New file.
2247 1999-05-19 Tom Tromey <tromey@cygnus.com>
2249 * aclocal.m4, configure: Rebuilt.
2250 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2252 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2255 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2257 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2259 (update): Fail in default case. Always initialize `strat'.
2261 * mauve-libgcj: Enable java.util.zip.
2263 1999-05-18 Warren Levy <warrenl@cygnus.com>
2265 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2266 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2267 PlainDatagramSocketImpl.java, and SocketOptions.java.
2268 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2269 * Makefile.in: Rebuilt.
2271 * java/net/DatagramPacket.java: New file.
2272 * java/net/DatagramSocket.java: New file.
2273 * java/net/DatagramSocketImpl.java: New file.
2274 * java/net/MulticastSocket.java: New file.
2275 * java/net/PlainDatagramSocketImpl.java: New file.
2276 * java/net/SocketOptions.java: New file.
2277 * java/net/natPlainDatagramSocketImpl.cc: New file.
2279 1999-05-18 Tom Tromey <tromey@cygnus.com>
2281 * java/util/zip/ZipOutputStream.java (level): Initial value is
2282 Deflater.DEFAULT_COMPRESSION.
2283 (close): New method.
2284 (closeEntry): Likewise.
2286 (put_version): Likewise.
2287 (write_entry): Likewise.
2288 (put2, put4): Now return `int'.
2289 (comment): Default to empty string.
2290 (bytes_written): New instance variable.
2292 * java/util/zip/ZipEntry.java (setComment): Limit length of
2294 (setCrc): Check CRC validity.
2295 (setExtra): Check argument validity.
2296 (setMethod): Likewise.
2297 (setSize): Likewise.
2298 (ZipEntry): Likewise.
2299 * include/javaprims.h: Updated namespace declarations.
2300 * Makefile.in: Rebuilt.
2301 * Makefile.am (ordinary_java_source_files): Mention new files.
2302 (nat_source_files): Likewise.
2303 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2306 (getInputStream): Handle compressed entries.
2307 * java/util/zip/GZIPOutputStream.java: New file.
2308 * java/util/zip/GZIPInputStream.java: New file.
2309 * java/util/zip/DataFormatException.java: New file.
2310 * java/util/zip/CheckedInputStream.java: New file.
2311 * java/util/zip/CheckedOutputStream.java: New file.
2312 * java/util/zip/InflaterInputStream.java: Implemented.
2313 * java/util/zip/natInflater.cc: New file.
2314 * java/util/zip/Deflater.java: Implemented.
2315 * java/util/zip/natDeflater.cc: New file.
2316 * java/util/zip/DeflaterOutputStream.java: Implemented.
2318 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2319 ZipException, not IOException.
2320 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2323 1999-05-17 Tom Tromey <tromey@cygnus.com>
2325 * java/lang/natSystem.cc (init_properties): URL now points to
2328 1999-05-12 Per Bothner <bothner@cygnus.com>
2330 * java/util/Calendar.java (set): First call computeFields if needed.
2331 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2333 1999-05-12 Tom Tromey <tromey@cygnus.com>
2335 * configure: Rebuilt.
2336 * configure.in: Look for -ldl when using the Boehm collector.
2337 Look for sched_yield in -lposix4.
2339 1999-05-12 Per Bothner <bothner@cygnus.com>
2341 * java/io/File.java (mkdirs): Handle a null parent directory.
2343 1999-05-12 Tom Tromey <tromey@cygnus.com>
2345 * include/javaprims.h: Updated namespace declarations.
2346 * classes.pl (scan): Uniquify class list.
2347 * Makefile.in, configure: Rebuilt.
2348 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2349 (built_java_source_files): New macro.
2350 (nat_headers): Added built_java_source_files.
2351 (javao_files): Likewise.
2352 (EXTRA_libgcj_la_SOURCES): Likewise.
2353 (libgcj.zip): Create built class files.
2354 ($(built_java_source_files:.java=.class)): New target.
2355 (jv_convert_LDADD): Added -L$(here)/.libs.
2356 * configure.in: Create links for ConcreteProcess.java and
2357 natConcreteProcess.cc.
2358 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2359 * java/lang/natEcosProcess.cc: New file.
2360 * java/lang/EcosProcess.java: New file.
2361 * java/lang/PosixProcess.java: New file.
2362 * java/lang/natPosixProcess.cc: New file.
2364 1999-05-12 Warren Levy <warrenl@cygnus.com>
2366 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2367 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2368 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2369 (connect): Throw ConnectException.
2371 1999-05-11 Tom Tromey <tromey@cygnus.com>
2373 * Makefile.in: Rebuilt.
2374 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2375 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2378 * Makefile.in: Rebuilt.
2379 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2380 and it causes problems with libtool.
2382 * Makefile.in, configure: Rebuilt.
2383 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2384 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2385 (jv_convert_DEPENDENCIES): Added ZDEPS.
2386 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2388 (THREADSPEC): Added `-L' to point to qthreads build directory.
2392 * configure, Makefile.in: Rebuilt.
2393 * Makefile.am (toolexeclib_DATA): New macro.
2394 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2395 Recognize --with-system-zlib.
2396 (GCSPEC): New subst.
2397 (THREADSPEC): New subst.
2398 (SYSTEMSPEC): New subst.
2399 (ZLIBSPEC): New subst.
2400 * libgcj.spec.in: New file.
2402 1999-05-10 Tom Tromey <tromey@cygnus.com>
2404 * java/io/InputStreamReader.java (read): If length is 0, return
2405 0. Reset `wpos' and `wcount' when buffer has been filled and
2408 * java/util/Properties.java (save): Removed `FIXME' comment.
2409 (load): Invalid characters in \u now treated as terminators.
2410 Make sure to append character resulting from `\' handling.
2411 Cast to `char' when appending to key or value.
2412 (skip_ws): Inverted test for whitespace.
2414 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2416 (readLine): Likewise.
2417 (readFully): Implemented.
2419 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2421 * java/awt/natToolkit.cc: Added copyright header.
2422 * java/util/zip/InflaterInputStream.java: Added copyright header.
2424 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2426 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2428 (getNextStream): Likewise.
2430 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2432 (getBundle): Don't explicitly throw null pointer exception.
2434 * gnu/gcj/RawData.java: Added copyright header.
2436 * include/jni.h (_Jv_va_list): Always define as va_list.
2438 1999-05-9 Anthony Green <green@cygnus.com>
2440 * java/text/DateFormat.java (computeInstance): Separate time
2442 (getDateTimeInstance): Ditto.
2443 (getDateTimeInstance(int,int)): New method.
2445 * Makefile.in: Rebuilt.
2446 * Makefile.am (ordinary_java_source_files): Add new classes.
2448 * java/util/PropertyResourceBundle.java: New file.
2449 * gnu/gcj/util/EnumerationChain.java: New file.
2451 1999-05-07 Tom Tromey <tromey@cygnus.com>
2453 * acconfig.h (GCJVERSION): New undef.
2454 * java/lang/natSystem.cc (init_properties): Define java.version,
2455 java.class.version, os.name, os.arch, os.version.
2456 Include <sys/utsname.h> if required.
2457 * configure: Rebuilt.
2458 * configure.in: Compute and define GCJVERSION.
2460 * java/lang/natSystem.cc (default_file_encoding): Now static.
2462 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2464 * libtool-version: New file.
2465 * Makefile.in: Rebuilt.
2466 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2469 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2470 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2473 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2474 (we pick those up already).
2476 1999-05-05 Per Bothner <bothner@cygnus.com>
2478 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2479 stub classes. (This is enough to get Kawa to compile against libgcj.)
2481 * gnu/gcj/RawData.java: New class.
2482 * doc/cni.sgml: Document RawData.
2484 * java/util/zip/InflaterInputStream.java: New stub class.
2485 * java/util/zip/ZipInputStream.java: New class. Partly works.
2486 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2487 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2488 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2489 * java/util/zip/ZipOutputStream.java: Start implementation.
2491 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2492 (default_file_encoding): New global, initial value is above macro.
2493 (init_properties): Default file.encoding to default_file_encoding.
2495 * Makefile.am: Add new classes.
2497 1999-05-05 Tom Tromey <tromey@cygnus.com>
2499 * Makefile.in: Rebuilt.
2500 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2501 (clean-local): New target
2503 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2504 (load, loadLibrary): Now native.
2506 * java/lang/Runtime.java (load, loadLibrary): Now native.
2507 (init): New native method.
2508 (Runtime): Use init.
2509 * prims.cc: Include <ltdl.h> if required.
2510 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2512 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2514 * configure.in: Switch from irix threads to posix threads
2515 * configure: Regenerate.
2517 1999-04-30 Tom Tromey <tromey@cygnus.com>
2519 * Makefile.in: Rebuilt.
2520 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2522 1999-04-29 Tom Tromey <tromey@cygnus.com>
2524 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2527 * java/util/Locale.java (Locale(String,String)): Implement in
2528 terms of 3-argument version; variant now defaults to empty
2530 (toString): Assume variant is not null.
2531 (equals): Assume all strings are not null.
2532 (Locale): Throw NullPointerException if any argument is null.
2534 * java/util/ResourceBundle.java (getBundle): Don't try the base
2535 name; now implicit in partialGetBundle call.
2536 (trySomeGetBundle): Search for parent bundles and call setParent
2538 (partialGetBundle): Added `langStop' argument. Use
2539 `Locale.toString' to compute bundleName.
2540 (resource_cache): New static field.
2541 (partialGetBundle): Cache the returned resource bundle. Now
2544 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2547 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2548 * java/text/natCollator.cc (decomposeCharacter): `base' now
2550 * Makefile.in: Rebuilt.
2551 * Makefile.am (ordinary_java_source_files): Added
2552 CollationElementIterator, CollationKey, Collator,
2554 (nat_source_files): Added natCollator.cc.
2555 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2556 (compare): Pass `this' to CollationElementIterator constructor.
2557 (getCollationElementIterator): Likewise.
2558 (ceiNext): Fix off-by-one error when finding initial substring.
2559 (next): Correctly mask off bits when computing return value.
2560 Fixed return values when one string is shorter than the other.
2561 * java/text/CollationElementIterator.java (collator): New field.
2562 (CollationElementIterator): Added collator argument.
2563 (next): Call ceiNext on collator object.
2565 1999-04-26 Tom Tromey <tromey@cygnus.com>
2567 * natCollator.cc: New file.
2569 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2570 (GregorianCalendar): Use it in all constructors.
2571 * java/util/Calendar.java (Calendar): Changed argument name to
2572 `zone' to match code.
2574 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2575 * java/text/CollationKey.java: New file.
2576 * java/text/CollationElementIterator.java: New file.
2577 * java/text/Collator.java: New file.
2578 * java/text/RuleBasedCollator.java: New file.
2580 * Makefile.in: Rebuilt.
2581 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2582 (jv_convert_LDADD): Explicltly add -lm -lc.
2584 1999-04-26 Tom Tromey <tromey@cygnus.com>
2586 * configure, Makefile.in: Rebuilt.
2587 * configure.in: Added AM_PROG_LIBTOOL.
2588 (GCOBJS): Use `.lo' form of files.
2589 (THREADOBJS): Likewise.
2590 (GCDEPS): Use `.la' form of library.
2591 (GCLIBS): Set to be the same as GCDEPS.
2592 (THREADDEPS): Use `.la' form of library.
2593 (THREADLIBS): Set to be the same as THREADDEPS.
2594 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2595 toolexeclib_LIBRARIES.
2596 (libgcj_la_SOURCES): Renamed for libtoolization.
2597 (EXTRA_libgcj_la_SOURCES): Likewise.
2598 (libgcj_la_DEPENDENCIES): Likewise.
2599 (libgcj_la_LIBADD): Likewise.
2600 ($(nat_files)): Use LTCXXCOMPILE.
2601 ($(c_files)): Use LTCOMPILE.
2602 (GCJCOMPILE): New macro.
2604 (.java.o): Likewise.
2605 ($(javao_files)): Likewise.
2606 (jv_convert_LINK): Use LIBTOOL.
2607 (nat_files): Use `.lo' files.
2608 (c_files): Likewise.
2609 (javao_files): Likewise.
2610 (.class.lo): Renamed.
2611 (.java.lo): Likewise.
2612 ($(nat_files)): Depend on %.lo.
2613 ($(c_files)): Likewise.
2614 ($(javao_files)): Likewise.
2615 (jv_convert_LDADD): Link against .lo files.
2616 (jv_convert_DEPENDENCIES): Depend on .lo files.
2617 (maintainer-check): Depend on libgcj.la, but examine .a file.
2618 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2619 (libgcj_la_LDFLAGS): New macro.
2621 1999-04-23 Warren Levy <warrenl@cygnus.com>
2623 * Makefile.am: Added URLDecoder and URLEncoder.
2624 * Makefile.in: Rebuilt.
2626 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2627 setSocketImplFactory to match spec.
2628 * java/net/Socket.java (getSoLinger): Changed return type to
2631 * java/net/URLDecoder.java: New file.
2632 * java/net/URLEncoder.java: New file.
2634 1999-04-21 Tom Tromey <tromey@cygnus.com>
2636 * java/lang/natString.cc (getBytes): Reverted earlier change and
2637 applied correct fix from Per Bothner.
2639 * java/lang/String.java: Don't throw
2640 UnsupportedEncodingException.
2642 * java/lang/natString.cc (getBytes): Correctly size result
2643 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2645 1999-04-20 Andrew Haley <aph@cygnus.com>
2647 * include/sparc-signal.h: new file.
2648 * configure.in: include/sparc-signal.h added.
2649 * configure: regenerated.
2650 * prims.cc (JvRunMain): signal handling code rewritten to be more
2652 (catch_segv): ditto.
2654 * include/i386-signal.h: reorganized.
2655 * include/default-signal.h: reorganized.
2657 1999-04-19 Tom Tromey <tromey@cygnus.com>
2659 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2660 once. From Anthony Green.
2662 1999-04-19 Andrew Haley <aph@cygnus.com>
2664 * Makefile.in: Processed with new automake.
2666 1999-04-19 Tom Tromey <tromey@cygnus.com>
2668 * include/javaprims.h: Removed security namespace.
2670 1999-04-20 Anthony Green <green@cygnus.com>
2672 * java/io/PrintStream.java (println): Remove extra println.
2674 1999-04-19 Anthony Green <green@cygnus.com>
2676 * Makefile.in: Rebuilt.
2677 * Makefile.am (ordinary_java_source_files): Add new security files.
2679 * java/security/NoSuchAlgorithmException.java,
2680 java/security/MessageDigest.java: New files.
2682 * include/javaprims.h: Add security namespace.
2684 1999-04-16 Per Bothner <bothner@cygnus.com>
2686 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2687 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2688 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2689 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2690 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2691 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2692 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2693 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2694 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2695 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2696 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2697 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2698 * Makefile.am: Various changes for new files and conversions.
2700 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2701 New overloading, allows greater efficiency.
2702 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2703 New overloading (for efficiency - avoids copying).
2705 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2706 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2708 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2709 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2710 (writeChars): Don't be quite so eager to flush.
2711 * java/io/PrintStream.java: Rewrite. Now more similar to
2712 OutputStreamWriter, using explicit UnicodeToBytes converter.
2713 Also, autoflush does not need to flush so often.
2714 * java/lang/natString.cc (getBytes): More efficient algorithm.
2715 (init(jbyteArray,jint,jint,jstring)): More efficient.
2717 1999-04-15 Warren Levy <warrenl@cygnus.com>
2719 * Makefile.am (ordinary_java_source_files): Added new Connection
2720 and Handler classes in gnu.gcj.protocol.file package.
2721 * Makefile.in: Rebuilt.
2723 * gnu/gcj/protocol/file/Connection.java: New file.
2724 * gnu/gcj/protocol/file/Handler.java: New file.
2725 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2726 if doInput allows input.
2727 (getOutputStream): Check if doOutput allows output.
2728 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2730 1999-04-14 Tom Tromey <tromey@cygnus.com>
2732 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2733 buffer larger to work around bug.
2734 From Bryce McKinlay <bryce@albatross.co.nz>.
2736 1999-04-14 Andrew Haley <aph@cygnus.com>
2738 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2739 NaNs are always converted to the same long value.
2740 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2743 1999-04-13 Tom Tromey <tromey@cygnus.com>
2745 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2746 instead switch on actual element type.
2748 * Makefile.in: Rebuilt.
2749 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2751 1999-04-13 Andrew Haley <aph@cygnus.com>
2753 * include/i386-signal.h, include/default-signal.h: New files.
2754 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2756 (catch_fpe): New function.
2757 * configure.in: Make link to appropriate include/java-signal.h.
2758 * configure: Rebuilt.
2759 * Makefile.am: include/java-signal.h added to dependency list.
2760 * Makefile.in: Rebuilt.
2762 1999-04-12 Urban Widmark <urban@svenskatest.se>
2764 * java/io/DataInputStream.java (readLine): Corrected handling of
2765 empty lines, from null to "".
2767 1999-04-12 Tom Tromey <tromey@cygnus.com>
2769 * Makefile.in: Rebuilt.
2770 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2772 * java/lang/natSystem.cc (SystemClass): New define.
2773 (init_properties): Synchronize.
2775 1999-04-08 Geoff Berry <gcb@gnu.org>
2777 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2778 * natPlainSocketImpl.cc (accept): Add missing else if check
2781 1999-04-08 Tom Tromey <tromey@cygnus.com>
2783 * java/lang/Long.java (parseLong): Corrected overflow detection
2785 * java/lang/Integer.java (parseInt): Corrected overflow detection
2788 * java/io/PrintStream.java (print): Handle null string argument.
2789 (println): Likewise.
2791 1999-04-07 Warren Levy <warrenl@cygnus.com>
2793 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2794 Set count to 0 when InputStreamReader returns -1 for EOF.
2796 1999-04-07 Tom Tromey <tromey@cygnus.com>
2798 * mauve-libgcj: Omit java.text.Collator,
2799 java.text.RuleBasedCollator.
2801 1999-04-06 Tom Tromey <tromey@cygnus.com>
2803 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2804 IOException from getHttpHeaders().
2805 (getHeaderFieldKey): Likewise.
2807 * include/javaprims.h: Regenerated declarations.
2809 * Makefile.in: Rebuilt.
2810 * Makefile.am (ordinary_java_source_files): Updated for removed
2813 1999-04-06 Per Bothner <bothner@cygnus.com>
2815 * java/util/zip/Adler32.java: New class.
2816 * java/util/zip/CRC32.java: Add working method bodies.
2817 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2818 * Makefile.in: Re-generate.
2820 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2822 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2823 from version in removed www hierarchy.
2824 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2825 version in removed www hierarchy.
2827 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2828 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2829 * gnu/gcj/www/protocol/http: Removed dir.
2830 * gnu/gcj/www/protocol: Removed dir.
2831 * gnu/gcj/www: Removed dir.
2833 * java/net/HttpURLConnection.java: Revised comments to indicate
2834 missing JDK 1.2 methods.
2836 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2837 hierarchy rather than the gnu/gcj/www/protocol one.
2838 * java/net/URLConnection.java: Updated status comments.
2839 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2840 the gnu/gcj/www/content one.
2842 1999-04-06 Per Bothner <bothner@cygnus.com>
2844 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2845 The gen-from-JIS program is in $(CONVERT_DIR).
2847 1999-04-06 Tom Tromey <tromey@cygnus.com>
2849 * mauve-libgcj: Renamed from mauve-libjava.
2851 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2853 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2854 (getResponseMessage): Implemented.
2855 (getResponseVals): New private method.
2857 * java/net/URLConnection.java (getContent): Implemented.
2858 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2860 1999-04-05 Tom Tromey <tromey@cygnus.com>
2862 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2863 (jv_convert_SOURCES): Renamed.
2864 (EXTRA_jv_convert_SOURCES): Likewise.
2865 (jv_convert_LDFLAGS): Likewise.
2866 (jv_convert_LINK): Likewise.
2867 (jv_convert_LDADD): Likewise.
2868 (jv_convert_DEPENDENCIES): Likewise.
2870 * Makefile.in: Rebuilt.
2871 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2874 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2876 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2877 method for comparison.
2879 * java/net/URLConnection.java (getContentLength): Implemented.
2880 (getContentType): Implemented.
2881 (getContentEncoding): Implemented.
2882 (getExpiration): Implemented.
2883 (getDate): Implemented.
2884 (getLastModified): Implemented.
2885 (getHeaderFieldInt): Implemented.
2886 (getHeaderFieldDate): Implemented.
2888 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2890 * java/net/URLConnection.java (toString): Implemented.
2891 (setContentHandlerFactory): Implemented.
2892 (setContentHandler): Wrote new private helper method.
2894 1999-04-01 Tom Tromey <tromey@cygnus.com>
2896 * Makefile.in: Rebuilt.
2897 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2898 of 1999-03-31; we always want to build all the .class files.
2899 Depend on java_source_files, not libgcj.zip.
2900 (nat_headers): Define in terms of ordinary_java_source_files.
2902 1999-03-31 Tom Tromey <tromey@cygnus.com>
2904 * Makefile.in: Rebuilt.
2905 * Makefile.am (special_java_source_files): New macro.
2906 (java_source_files): Use it.
2907 (ordinary_java_source_files): New macro.
2908 (java_source_files): Use it.
2909 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2910 creating headers for those files with hand-maintained headers.
2912 * include/javaprims.h: Regenerated namespace declarations.
2913 * classes.pl (scan): Include [0-9] in regexp for matching class
2914 names; for java.util.zip.CRC32.
2916 * Makefile.in: Rebuilt.
2917 * Makefile.am (nat_headers): Redefined to generate all possible
2920 * java/util/zip/ZipException.java: In package java.util.zip, not
2923 1999-03-30 Tom Tromey <tromey@cygnus.com>
2925 * configure: Rebuilt.
2926 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2927 eh-common.h when not building in tree with gcc.
2929 * Makefile.in: Rebuilt.
2930 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2931 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2933 ($(java_source_files:.java=.class)): New target.
2935 * Makefile.in: Rebuilt.
2936 * Makefile.am (java_source_files): Added
2937 java/net/HttpURLConnection.java and
2938 gnu/gcj/www/protocol/http/Connection.java.
2940 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2942 * gnu/gcj/www/protocol/http/Connection.java: New file.
2943 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2944 * java/net/HttpURLConnection.java: New file.
2945 * java/net/URLConnection.java (getHeaderField): Implemented default.
2946 (getHeaderFieldKey): Implemented default method.
2948 1999-03-30 Tom Tromey <tromey@cygnus.com>
2950 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2952 * java/util/zip/Deflater.java: Added copyright header.
2953 * java/util/zip/CRC32.java: Added copyright header.
2955 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2956 that it is automatically generated.
2957 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2959 * gnu/gcj/convert/BytesToUnicode.java,
2960 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2961 gnu/gcj/convert/Input_EUCJIS.java,
2962 gnu/gcj/convert/Input_UTF8.java,
2963 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2964 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2965 gnu/gcj/convert/Output_8859_1.java,
2966 gnu/gcj/convert/Output_JavaSrc.java,
2967 gnu/gcj/convert/Output_UTF8.java,
2968 gnu/gcj/convert/UnicodeToBytes.java,
2969 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2971 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2973 * Makefile.in, configure: Rebuilt.
2974 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2975 not if test subdir exists.
2976 (--enable-gcj-classes): Removed; gcj always used to generate
2978 (JAVA, JAVAC): Removed.
2979 (--enable-single-compilation, --enable-source-compilation):
2982 (NATIVE): New conditional.
2983 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2984 `install-exec' to work.
2985 (toolexeclibdir): Likewise.
2986 (toollib_LIBRARIES): Likewise.
2987 (AM_MAKEFLAGS): Don't pass tooldir.
2989 (javao_files): Redefined.
2990 (java_source_files): New macro.
2991 (c_source_files): New macro.
2992 (c_files): Redefined in terms of c_source_files.
2993 (java_io_files, java_lang_files, java_net_files, java_text_files,
2994 java_util_files, gnu_files, java_files): Removed.
2995 (class_io_files, class_lang_files, class_net_files,
2996 class_text_files, class_util_files, class_gnu_files, class_files):
2998 (nat_source_files): New macro.
2999 (nat_files): Redefined in terms of nat_source_files.
3000 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
3001 java_source_files. Removed no-such-file.c.
3003 (ETAGS_ARGS): Removed.
3004 (TAGS_DEPENDENCIES): Likewise.
3005 (libgcj.zip): Depend on java_source_files. Use $(here) and not
3007 (src_io_files, src_lang_files, src_text_files, src_util_files,
3008 src_gnu_files): Removed.
3009 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
3010 (BUILT_SOURCES): Removed.
3011 (header-check): New target.
3013 (noinst_PROGRAMS): New macro.
3014 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
3016 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
3017 (gen-from-JIS): Build in top directory.
3018 (convert_source_files): New macro.
3019 (convert_SOURCES): New macro.
3020 (convert_LDFLAGS): Likewise.
3021 (convert_LINK): Likewise.
3022 (convert_LDADD): Likewise.
3023 (convert_DEPENDENCIES): Likewise.
3025 (gen-from-JIS): Removed.
3026 (gen_from_JIS_SOURCES): New macro.
3027 (gen_from_JIS_LDADD): Likewise.
3028 (gen_from_JIS_DEPENDENCIES): Likewise.
3030 * configure: Rebuilt.
3031 * configure.in (CANADIAN): Set to `yes', not `canadian'.
3032 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
3033 when defining conditional.
3035 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
3037 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
3038 The Unicode Consortium does not permit their re-distribution.
3039 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
3040 (JIS0208.h, JIS0212.h): Do not depend on removed files.
3042 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
3044 * natSystem.c (init_properties): Use malloc, realloc, free after all.
3046 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
3048 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
3049 from Unicode Consortium.
3050 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
3051 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
3052 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
3053 New tables, generated using gen-from-JIS.
3054 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
3055 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
3056 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
3057 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
3059 * gnu/gcj/convert/Convert.java: New application.
3060 * Makefile.am, Makefile.in (convert): New program, using Convert.
3061 Build the various JIS conversion tables (in maintainer mode).
3063 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
3065 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
3067 * java/net/URL.java (URL): Deal with null property value. Use "."
3068 as separator in building class name.
3069 * java/net/URLConnection.java: Implemented majority of stubbed methods.
3070 * java/net/URLStreamHandler.java (parseURL): Use "" in string
3071 manipulations instead of 'null'. Comment cleanup. Use 0 for the
3072 beginning of the substring rather than 'start'.
3074 1999-03-26 Tom Tromey <tromey@cygnus.com>
3076 * include/java-chartables.h: Rebuilt.
3077 * include/java-chardecomp.h: New file.
3078 * chartables.pl: Generate output files directly. Added support
3079 for generating decomposition header.
3080 (canonical_decomposition, full_decomposition): New globals.
3081 (DECOMPOSITION): New constant.
3082 (process_char): Call add_decomposition.
3083 (add_decomposition): New sub.
3084 (write_decompositions): New sub.
3086 1999-03-25 Tom Tromey <tromey@cygnus.com>
3088 * java/text/CollationElementIterator.java: New file.
3090 * mauve-libjava: Omit StringTest.
3092 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
3094 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
3095 without a '/' when parsing protocol. Handle ref outside of parseURL.
3096 (hashCode): Implemented.
3097 (set): Don't expand -1 to default port.
3098 (getDefaultPort): Removed.
3100 * java/net/URLStreamHandler.java (parseURL): Implemented.
3101 (toExternalForm): Implemented.
3103 1999-03-23 Tom Tromey <tromey@cygnus.com>
3105 * java/text/BreakIterator.java (getSentenceInstance):
3107 * gnu/gcj/text/SentenceBreakIterator.java: New file.
3109 * Makefile.in: Rebuilt.
3110 * Makefile.am (nat_headers): Added IllegalAccessException.
3111 * java/lang/natClass.cc (newInstance): Throw
3112 IllegalAccessException, not IllegalAccessError.
3113 Include IllegalAccessException.h.
3115 1999-03-22 Tom Tromey <tromey@cygnus.com>
3117 * gnu/gcj/text/LineBreakIterator.java: New file.
3118 * java/text/BreakIterator.java (getLineInstance): Implemented.
3120 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
3121 copy constructor private.
3122 (previous, next): Removed erroneous comment about line
3124 (previous): Correctly recognize break between non-letter on the
3125 left and letter on the right. Handle apostrophes correctly.
3127 * java/text/BreakIterator.java (getWordInstance): Implemented.
3128 * gnu/gcj/text/WordBreakIterator.java: New file.
3129 * gnu/gcj/text/CharacterBreakIterator.java: Extend
3131 * gnu/gcj/text/BaseBreakIterator.java: New file.
3133 1999-03-19 Tom Tromey <tromey@cygnus.com>
3135 * java/text/BreakIterator.java: New file (partially stubbed out).
3136 * gnu/gcj/text/CharacterBreakIterator.java: New file.
3138 * include/config.h.in: Rebuilt.
3139 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
3140 (HAVE_TIMEZONE): Likewise.
3141 * configure: Rebuilt.
3142 * configure.in: Added timezone checks.
3143 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3146 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
3148 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
3149 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
3150 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
3151 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
3152 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
3153 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
3154 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
3155 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
3157 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
3158 (BSD_COMP): Kludge needed for Solaris2.
3160 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
3162 * java/net/URL.java (URL(java.net.URL, string): Moved code to
3163 URL(java.net.URL, string, URLStreamHandler) and call it with a
3164 null handler. In latter constructor, added SecurityManager check.
3165 (set): Expect null handler on bad protocol rather than an exception.
3166 (setURLStreamHandler): Simplified exception handling; return null
3167 on invalid protocol.
3169 1999-03-18 Tom Tromey <tromey@cygnus.com>
3171 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3173 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3175 Include PrintStream.h, InputStream.h.
3176 * java/lang/System.java (ForwardingInputStream,
3177 ForwardingOutputStream): Removed.
3178 (setErr, setIn, setOut): Now native.
3180 Reverted patch from 1999-02-12 to work around problem in
3182 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3183 (_Jv_eh_free): Use free.
3185 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3186 for path name. Minor formatting fixes.
3188 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3190 * prims.cc (fail_on_finalization): New function.
3191 (_Jv_GCWatch): Likewise.
3193 * prims.cc (JvRunMain): Initialize `nullp'.
3194 (nullp): New global.
3195 (catch_segv): Throw nullp.
3197 * Makefile.in: Rebuilt.
3198 * Makefile.am (ZIP): In "null target" case, zip is found in the
3201 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3205 * java/lang/StringBuffer.java (StringBuffer): Don't use
3206 ensureCapacity to set initial capacity.
3207 (capacity): Subtract `length' from return result.
3209 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3211 * java/io/natFileDescriptorPosix.cc (open): Throw
3212 FileNotFoundException, but with filename and errno in msg.
3214 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3216 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3217 functionality folded into java/net/URL.java per spec.
3219 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3220 than EEXIST for throwing FileNotFoundException.
3222 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3223 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3225 * java/net/URLStreamHandler.java (parseURL): Added stub.
3227 1999-03-15 Andrew Haley <aph@cygnus.com>
3229 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3232 1999-03-15 Andrew Haley <aph@cygnus.com>
3234 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3237 1999-03-12 Tom Tromey <tromey@cygnus.com>
3239 * prims.cc (catch_segv): New function.
3240 Include <signal.h> if HANDLE_SEGV defined. Include
3241 NullPointerException.h.
3242 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3245 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3246 a SimpleDateFormat, not just a DateFormat.
3247 (defaultCenturyStart, formatData, pattern): Now private.
3248 (append): Now `final'. Use `NumberFormat.format'.
3250 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3252 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3255 * java/text/MessageFormat.java (format): Use default MessageFormat
3257 (parse, parseObject): Wrote.
3259 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3262 1999-03-12 Andrew Haley <aph@cygnus.com>
3264 * java/lang/String.java (indexOf): Replace with native method for
3266 * java/lang/natString.cc (IndexOf): As above.
3268 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3269 Argument check corrected.
3270 (init(jbyteArray,jint,jint,jstring)): Likewise.
3272 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3273 1.2 compliant method.
3275 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3277 * java/lang/Float.java (byteValue, shortValue): Likewise.
3279 1999-03-11 Tom Tromey <tromey@cygnus.com>
3281 * java/text/DecimalFormat.java (parse): Wrote.
3283 * java/text/ChoiceFormat.java (parse): Set error index on
3284 ParsePosition object.
3286 * java/lang/Integer.java (parseInt): Throw exception on overflow
3287 when intermediate result is most negative number. Changed
3288 overflow detection as well.
3289 * java/lang/Long.java (parseLong): Likewise.
3291 * configure, Makefile.in: Rebuilt.
3292 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3293 CANADIAN when building in source tree that doesn't include gcc.
3294 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3297 * java/text/ChoiceFormat.java (nextDouble): Correct some
3298 off-by-one errors when masking or adding.
3300 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3301 parameter, if given. Use `%', not IEEEremainder.
3302 (scanFix): Throw error if multiplier already set.
3303 (computePattern): Wrote.
3305 1999-03-11 Andrew Haley <aph@cygnus.com>
3307 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3309 (nextDouble): Corrected masking logic. Handle interaction between
3310 `next' and negative numbers.
3312 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3314 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3315 * java/net/URL.java: Added general comments.
3317 1999-03-10 Tom Tromey <tromey@cygnus.com>
3319 * java/text/ChoiceFormat.java (parse): Wrote.
3321 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3323 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3324 Create ChoiceFormat objects.
3325 (format): Special-case ChoiceFormat.
3326 (scanFormatElement): Include { and } in generated style string.
3328 1999-03-09 Tom Tromey <tromey@cygnus.com>
3330 * java/text/ChoiceFormat.java: New file.
3332 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3334 * java/net/BindException.java: Created.
3335 * java/net/ConnectException.java: Created.
3336 * java/net/ContentHandler.java: Created.
3337 * java/net/ContentHandlerFactory.java: Created.
3338 * java/net/FileNameMap.java: Created.
3339 * java/net/MalformedURLException.java: Created.
3340 * java/net/NoRouteToHostException.java: Created.
3341 * java/net/ProtocolException.java: Created.
3342 * java/net/ServerSocket.java (@author): Fixed typo.
3343 * java/net/Socket.java (@author): Fixed typo.
3344 * java/net/SocketImpl.java (@author): Fixed typo.
3345 * java/net/SocketImplFactory.java (@author): Fixed typo.
3346 * java/net/URL.java: Created - nearly complete.
3347 * java/net/URLConnection.java: Created - near-empty stub.
3348 * java/net/URLStreamHandler.java: Created - incomplete stub.
3349 * java/net/URLStreamHandlerFactory.java: Created.
3350 * java/net/UnknownServiceException.java: Created.
3352 1999-03-09 Tom Tromey <tromey@cygnus.com>
3354 * java/lang/System.java (ForwardingInputStream): New class.
3355 (ForwardingOutputStream): Likewise.
3356 (in, out, err): Now `final' forwarding streams.
3357 (setIn, setOut, setErr): Use appropriate method on forwarding
3360 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3363 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3365 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3366 * java/util/zip/Checksum.java: New interface (complete).
3367 * java/util/zip/Deflater.java: New class (near-empty stub).
3368 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3369 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3370 * java/util/zip/ZipEntry.java: New class (complete).
3371 * java/util/zip/ZipException.java: New class (complete).
3372 * java/util/zip/ZipFile.java: New class (incomplete stub).
3373 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3375 1999-03-09 Tom Tromey <tromey@cygnus.com>
3377 * java/text/MessageFormat.java (MessageFormatElement): Removed
3378 `public' specifiers.
3380 * java/text/DecimalFormat.java (scanFormat): Increment index
3381 before processing exponential format. Fixed a couple typos in
3383 (format): Correct normalization of exponent.
3385 1999-03-08 Tom Tromey <tromey@cygnus.com>
3387 * java/text/SimpleDateFormat.java (parse): Throw
3388 IllegalArgumentException, not ParseException.
3390 1999-03-05 Tom Tromey <tromey@cygnus.com>
3392 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3393 when constructing DateFormatSymbols. Initialize numberFormat
3394 field of superclass.
3396 * java/text/DateFormat.java (equals): Rewrote.
3397 (getAvailableLocales): New method.
3398 (getDateInstance): New methods.
3399 (getDateTimeInstance): Likewise.
3400 (getTimeInstance): Likewise.
3401 (getInstance): New method.
3402 (computeInstance): New method.
3404 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3406 (safeGetResource): New method.
3407 (DateFormatSymbols): Use Locale paramater.
3408 (equals): Now protected.
3409 Made instance variables private.
3411 1999-03-04 Tom Tromey <tromey@cygnus.com>
3413 * java/text/DecimalFormat.java: New file.
3415 * java/text/NumberFormat.java (groupingUsed,
3416 maximumFractionDigits, maximumIntegerDigits,
3417 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3419 (setDecimalSeparatorAlwaysShown, setMultiplier,
3420 setPositivePrefix): Removed.
3421 (setMinimumFractionDigits, setMaximumFractionDigits):
3423 (format): Now final.
3424 Added many new methods.
3426 * Makefile.in: Rebuilt.
3427 * Makefile.am (gnu_files): New macro.
3428 (java_files): Added gnu_files.
3429 (class_gnu_files): New macro.
3430 (class_files): Use it.
3431 (src_gnu_files): New macro.
3432 (gnu.o): New target.
3433 (javao_files): Added gnu.o.
3435 * gnu/gcj/text/LocaleData_en_US.java: New file.
3436 * gnu/gcj/text/LocaleData_en.java: New file.
3437 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3438 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3439 (safeGetString): New method.
3440 (safeGetChar): Likewise.
3442 1999-03-03 Tom Tromey <tromey@cygnus.com>
3444 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3447 * java/text/FieldPosition.java (equals): Don't check for null
3448 object; instanceof does this.
3450 * java/util/Locale.java (clone): New method.
3453 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3455 * doc/cni.sgml: New file.
3457 1999-03-03 Tom Tromey <tromey@cygnus.com>
3459 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3461 * java/text/DecimalFormatSymbols.java: New file.
3463 1999-03-02 Tom Tromey <tromey@cygnus.com>
3465 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3467 * configure: Rebuilt.
3468 * configure.in: Check for sys/filio.h.
3470 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3472 (load): Always throw UnsatisfiedLinkError.
3473 (loadLibrary): Likewise.
3475 1999-03-02 Anthony Green <green@cygnus.com>
3477 * LIBGCJ_LICENSE: New file.
3478 * LIBJAVA_LICENSE: Removed.
3479 * Many files: libjava now libgcj.
3481 1999-03-02 Tom Tromey <tromey@cygnus.com>
3483 * include/java-chartables.h: Rebuilt.
3484 * chartables.pl (print_block): Make table `const'.
3485 (print_numerics): Likewise.
3486 (print_single_map): Likewise.
3487 (print_all_block): Likewise.
3488 (print_case_table): Likewise.
3489 (print_fast_tables): Likewise.
3490 * java/lang/natCharacter.cc (table_search): `table' argument now
3493 1999-03-01 Tom Tromey <tromey@cygnus.com>
3495 * java/util/Date.java (before, after): Inverted logic.
3497 * java/util/Date.java (parse): Handle case where first character
3498 in string is open parenthesis.
3499 (skipParens): Rewrote.
3501 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3502 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3504 * java/util/Date.java (parse): Correctly compute beginning of
3507 * java/util/Hashtable.java (get): Throw NullPointerException if
3509 (containsKey): Likewise.
3511 * java/util/Properties.java (list): Truncate value to 37
3512 characters and add `...'.
3514 * java/lang/Byte.java (parseByte): Pass `radix' to
3517 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3519 Include System.h, PrintStream.h.
3521 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3524 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3526 * configure: Rebuilt.
3527 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3530 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3532 * java/lang/SecurityManager.java: Import java.net.*.
3533 (checkMulticast): New methods.
3535 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3537 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3538 (nat_files): Add java/lang/reflect/natArray.o.
3539 (nat_headers): Add Field.h and NoSuchFieldException.h.
3541 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3542 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3543 (_Jv_FromReflectedField): Fix buglet.
3544 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3545 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3546 * prims.cc (_Jv_Abort): Include message in print-out.
3548 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3549 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3550 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3552 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3553 * include/config.h.in (HAVE_PWD_H): New feature macro.
3554 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3555 user.name, user.home, user.dir.
3557 * java/lang/reflect/Array.java: New class.
3558 * java/lang/reflect/natArray.cc: New native methods.
3559 * include/javaprims.h: Declare java::lang::reflect::Array.
3561 * java/lang/Class.h (getField): New private method. Add friends.
3562 * java/lang/Class.java (getField): Add private overload.
3563 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3564 getDeclaredMethods): Add working implementations.
3565 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3566 Finish implementation, except for access control.
3568 * java/lang/reflect/Modifier.java (toString): New overload.
3569 * include/java-method.h: New file.
3570 * java/lang/reflect/Method.java (index): Replaced by offset field.
3571 Remove various private fields - get them from _Jv_Field instead.
3572 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3573 New method implementations.
3575 * java/text/NumberFormat.java: Add a bunch of methods.
3577 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3579 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3581 1999-02-26 Tom Tromey <tromey@cygnus.com>
3583 * include/config.h.in: Rebuilt.
3584 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3585 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3586 HAVE_GETHOSTBYADDR_R): New defines.
3587 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3588 gethostbyaddr_r if available.
3590 * configure: Rebuilt.
3591 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3593 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3597 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3598 * prims.cc (_Jv_AllocBytesChecked): New function.
3600 * Makefile.in: Rebuilt.
3601 * Makefile.am (SUBDIRS): Removed `test'.
3602 * configure: Rebuilt.
3603 * configure.in: Don't build test/Makefile.
3604 * test/*: Removed all files.
3606 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3608 * java/lang/reflect/Constructor.java: Make class final to match spec.
3609 * java/lang/reflect/Method.java: Ditto.
3611 1999-02-25 Tom Tromey <tromey@cygnus.com>
3613 * java/net/natInetAddress.cc: Include <sys/types.h> before
3615 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3618 * java/net/natInetAddress.cc: Declare gethostname if required.
3619 * include/config.h.in: Rebuilt.
3620 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3621 * configure: Rebuilt.
3622 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3623 declared in unistd.h.
3625 1999-02-24 Tom Tromey <tromey@cygnus.com>
3627 * Makefile.in: Rebuilt.
3628 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3629 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3630 from private to "none".
3632 * include/javaprims.h: Regenerated class declarations with new
3634 * classes.pl (scan): Only generate decls for java.lang, java.io,
3637 1999-02-24 Tom Tromey <tromey@cygnus.com>
3639 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3640 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3642 1999-02-23 Tom Tromey <tromey@cygnus.com>
3644 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3645 not already defined.
3646 * java/io/natFile.cc (_REENTRANT): Only define if not already
3648 * include/config.h.in: Rebuilt.
3649 * acconfig.h (HAVE_BOEHM_GC): New define.
3650 * configure: Rebuilt.
3651 * configure.in: Define HAVE_BOEHM_GC if using it.
3652 * posix-threads.cc: Include boehm-config.h and gc.h if
3654 * include/posix-threads.h: Added explanatory note about Boehm GC.
3656 * java/io/BufferedReader.java (readLine): Only return null when
3657 EOF seen before any characters read. (In particular, an empty
3658 line should not return null.)
3660 * java/io/BufferedInputStream.java (read): Only refill once per
3663 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3664 java.lang.Character.classify12, java.lang.String.hash,
3665 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3666 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3668 * java/text/StringCharacterIterator.java (setIndex): No error if
3670 (next): Check for `pos == end', not `end - 1'.
3671 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3672 for null text in each constructor.
3673 (clone): Fixed order of arguments to constructor.
3675 1999-02-22 Tom Tromey <tromey@cygnus.com>
3677 * include/config.h.in: Rebuilt.
3678 * acconfig.h (HAVE_INET6): New define.
3679 (HAVE_SOCKLEN_T): Likewise.
3680 * java/net/PlainSocketImpl.java: Added copyright header.
3681 * java/net/natPlainSocketImpl.cc: Added copyright header.
3682 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3684 (connect): Likewise.
3686 (socklen_t): New typedef.
3687 (accept): Use socklen_t.
3688 * java/net/natInetAddress.cc: Added copyright header.
3689 (HAVE_GETHOSTNAME): Don't define.
3690 (HAVE_INET_ADDR): Likewise.
3691 (lookup): Fixed typo.
3692 (aton): Don't use `address' as name of local variable.
3693 (lookup): Use HAVE_INET6, not AF_INET6.
3695 * configure: Rebuilt.
3696 * configure.in: Look for functions inet_aton, inet_addr,
3697 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3698 Check for socklen_t typedef.
3700 * exception.cc (__throw): Declare as __noreturn__.
3702 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3704 * Makefile.am, Makefile.in: Also build java/net.
3705 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3707 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3708 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3710 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3711 * include/cni.h (JvMalloc, JvFree): New inline functions.
3712 (JvThrow): Add __noreturn__ attribute.
3713 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3714 (_Jv_Throw): Add __noreturn__ attribute.
3716 * java/net/PlainSocketImpl.java: Init fnum to -1.
3717 * java/net/ServerSocket.java: Add missing throws clauses.
3718 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3719 don't call create on the latter. Instead, other constructors
3720 have to explicitly call SocketImpl.create.
3721 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3722 from size_t to int, to match ::accept prototype.
3723 * java/net/natInetAddress.cc: Use JvFree rather than free.
3726 1999-02-22 Tom Tromey <tromey@cygnus.com>
3728 * include/javaprims.h: Added new classes.
3729 * java/text/StringCharacterIterator.java: New file.
3730 * java/text/CharacterIterator.java: New file.
3732 * java/text/ParseException.java (errorOffset): Now private.
3734 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3736 * java/net: New package.
3737 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3738 Socket.java,SocketException.java,SocketImpl.java,
3739 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3740 natPlainSocketImpl.cc}: New classes.
3742 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3743 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3744 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3745 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3747 * classes.pl: Translate package into "namespace", not "class".
3748 * include/javaprims.h: Update class list, using "namespace".
3750 1999-02-21 Tom Tromey <tromey@cygnus.com>
3752 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3753 Define when appropriate.
3755 1999-02-20 Tom Tromey <tromey@cygnus.com>
3757 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3758 as a single byte and \u07ff as two bytes.
3759 (_Jv_GetStringUTFLength): Likewise.
3760 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3761 with 0x0f, not 0x1f.
3763 1999-02-19 Tom Tromey <tromey@cygnus.com>
3765 * java/io/DataOutputStream.java (writeUTF): When encoding
3766 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3767 * java/io/DataInputStream.java (readUTF): Mask second byte of
3768 3-byte character with 0x3f, not 0x1f.
3770 * java/io/DataInputStream.java (readLong): Cast result of
3771 readUnsignedByte to long before using.
3773 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3776 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3777 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3778 argument to avoid warning.
3779 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3780 argument to avoid warning.
3782 1999-02-18 Tom Tromey <tromey@cygnus.com>
3784 * mauve-libjava: Omit java.io.DataInputOutput and
3785 java.io.Utf8Encoding.
3787 1999-02-17 Tom Tromey <tromey@cygnus.com>
3789 * Makefile.in: Rebuilt.
3790 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3791 * java/io/natFileDescriptorPosix.cc: Include
3792 InterruptedIOException.h, Thread.h.
3793 (write): Throw InterruptedIOException when required.
3795 * posix-threads.cc: Include <signal.h>.
3796 (_Jv_ThreadInterrupt): New function.
3798 (handle_intr): New function.
3799 (_Jv_InitThreads): Register handle_intr via sigaction.
3800 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3801 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3802 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3803 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3805 1999-02-19 Andrew Haley <aph@cygnus.com>
3807 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3809 (ThreadGroup (int)): Set the maximum priority of the initial
3812 1999-02-18 Andrew Haley <aph@cygnus.com>
3814 * java/lang/natClass.cc (forName): Check for the case where a
3815 classname is the name of an array and call FindClassFromSignature
3818 1999-02-18 Andrew Haley <aph@cygnus.com>
3820 * java/lang/StringBuffer (insert (int, String)): Move up any
3821 characters above the insert position and increase the length of
3822 the string buffer by the length of the argument.
3823 (insert (int, char[])): Likewise.
3824 (insert (int, char)): Likewise.
3825 (StringBuffer (String)): The initial capacity of the string buffer
3826 is 16 plus the length of the argument.
3827 (getChars): Add a JDK 1.2 FIXME.
3829 1999-02-18 Andrew Haley <aph@cygnus.com>
3831 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3834 1999-02-18 Andrew Haley <aph@cygnus.com>
3836 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3837 instead of floating-point equality. This is necessary for
3838 correct floating-point Hashtables.
3839 * java/lang/Float.java (equals): Ditto.
3841 1999-02-16 Tom Tromey <tromey@cygnus.com>
3843 * java/util/Properties.java (list): Truncate value to 37
3844 characters and add "...".
3846 1999-02-16 Tom Tromey <tromey@cygnus.com>
3848 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3849 if initCap is negative.
3850 (contains): Implement JDK1.2-style handling of null argument.
3851 (removeElement): Likewise.
3852 (indexOf): Likewise. Also, correctly handle case where idx is
3854 (lastIndexOf): Likewise.
3856 1999-02-16 Tom Tromey <tromey@cygnus.com>
3858 * java/lang/natString.cc (init): Increment source pointer in
3861 1999-02-16 Tom Tromey <tromey@cygnus.com>
3863 * exception.cc: Include NullPointerException.h.
3864 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3866 1999-02-16 Tom Tromey <tromey@cygnus.com>
3868 * Makefile.in: Rebuilt.
3869 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3871 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3873 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3874 we're compiling canadian.
3875 * configure: Regenerated.
3877 1999-02-12 Andrew Haley <aph@cygnus.com>
3879 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3880 deleted from libgcj.
3882 1999-02-12 Tom Tromey <tromey@cygnus.com>
3884 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3885 (_Jv_eh_free): Don't call free.
3886 Don't declare malloc or free.
3888 1999-02-11 Tom Tromey <tromey@cygnus.com>
3890 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3892 1999-02-11 Andrew Haley <aph@cygnus.com>
3894 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3895 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3896 needed by java.lang.*.
3897 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3898 wf_fmod.o: Removed from libjava.a.
3900 1999-02-11 Tom Tromey <tromey@cygnus.com>
3902 * include/javaprims.h: Reverted previous change; with it
3903 exception.cc can't compile.
3905 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3907 * include/config.h.in: Rebuilt.
3908 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3910 * configure: Rebuilt.
3911 * configure.in: Check for sched_yield. Look in thread library for
3912 all thread functions.
3914 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3915 no recursive mutexes.
3916 (_Jv_MutexDestroy): Define when required.
3917 (_Jv_MutexLock): Likewise.
3918 (_Jv_MutexUnlock): Likewise.
3919 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3920 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3921 (_Jv_Mutex_t): New structure.
3922 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3923 (_Jv_MutexLock): Likewise.
3924 (_Jv_MutexUnlock): Likewise.
3926 1999-02-10 Tom Tromey <tromey@cygnus.com>
3928 * aclocal.m4, configure, Makefile.in: Rebuilt.
3929 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3931 * configure.in: Changed to track library changes.
3932 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3933 (AM_CXXFLAGS): Likewise.
3934 (data_DATA): Likewise.
3935 (AM_CFLAGS): Likewise.
3936 (JC1FLAGS): Likewise.
3937 (libgcj_a_SOURCES): Likewise.
3938 (EXTRA_libgcj_a_SOURCES): Likewise.
3939 (libgcj_a_DEPENDENCIES): Likewise.
3940 (libgcj_a_LIBADD): Likewise.
3941 (libgcj.zip): Likewise.
3942 (CLEANFILES): Likewise.
3943 ($(nat_headers)): Likewise.
3944 (java/lang/FirstThread.h): Likewise.
3945 (java/lang/ThreadGroup.h): Likewise.
3946 (java/lang/String.h): Likewise.
3947 (java/lang/reflect/Field.h): Likewise.
3948 (BUILT_SOURCES): Likewise.
3949 (maintainer-check): Likewise.
3950 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3951 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3953 * java/util/natGregorianCalendar.cc (computeFields): Only use
3954 gmtime_r and localtime_r when configured for posix threads.
3956 * java/io/natFile.cc (get_entry): Only use readdir_r when
3957 configured for posix threads.
3959 * java/util/natGregorianCalendar.cc: Update copyright notice.
3960 * java/util/TimeZone.java: Ditto.
3961 * java/util/SimpleTimeZone.java: Ditto.
3963 1999-02-08 Tom Tromey <tromey@cygnus.com>
3965 * java/io/PrintStream.java (line_separator): New constant.
3966 (print): Use line_separator, not `file.separator' property.
3967 (println): Use line_separator.
3969 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3970 when trying to instantiate Class.
3972 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3973 NullPointerException if argument is null.
3975 * java/lang/Thread.java (setName): Throw NullPointerException, not
3976 IllegalArgumentException.
3979 1999-02-08 Andrew Haley <aph@cygnus.com>
3981 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3982 create new Classes with Class.newInstance().
3984 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3985 semiciolon to end of an array Class's signature if the elements of
3986 the array aren't themselves arrays.
3988 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3989 array of objects is always sizeof(jobject), not the size of the
3990 object to which the reference points.
3992 1999-02-08 Tom Tromey <tromey@cygnus.com>
3994 * java/util/BitSet.java (and): Throw NullPointerException when
3999 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
4000 if argument is negative.
4001 (clear): Correctly compute `offset'. Throw
4002 IndexOutOfBoundsException when required.
4004 (get): Likewise. Also, return correct value.
4005 (ensure): Changed meaning of argument.
4006 (toString): Wrap contents in `{}'; put spaces after commas.
4007 (hashCode): Don't try to examine elements off the end of array.
4008 (or): Correctly include bits past the end of this bit set.
4011 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
4013 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
4014 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
4016 1999-02-04 Andrew Haley <aph@cygnus.com>
4018 * java/lang/natClass.cc (Class::forName): Remove code which mapped
4019 '/' in signatures to '.'
4020 (Class::getName): Likewise,
4021 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
4023 * java/lang/natFirstThread.cc (run): Change '/' in main's
4026 1999-02-03 Andrew Haley <aph@cygnus.com>
4028 * configure.host: -ffloat-store added when compiling libjava on
4029 x86. fdlibm apparently relies on this.
4031 * java/lang/ThreadGroup.java (add): throw an exception if the
4032 ThreadGroup has been destroyed.
4034 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
4037 1999-01-27 Tom Tromey <tromey@cygnus.com>
4039 * java/lang/StringBuffer.java (StringBuffer): Handle null
4042 1999-01-21 Tom Tromey <tromey@cygnus.com>
4044 * java/lang/natFirstThread.cc (run): Don't require main to be
4047 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
4049 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
4051 1999-01-20 Tom Tromey <tromey@cygnus.com>
4053 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
4057 (unintern): Likewise.
4058 (_Jv_NewStringUtf8Const): Likewise.
4060 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
4061 Character.isLetter, to see if character is self-quoting. Also,
4062 correctly handle quoted characters.
4063 (parse): Fixed typo. Also now throws ParseException.
4065 1999-01-15 Tom Tromey <tromey@cygnus.com>
4067 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
4069 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
4070 _Jv_SyncInfo has `init' member.
4072 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
4075 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
4076 IllegalMonitorStateException if unlock fails.
4078 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
4080 (_Jv_NewObjectArray): Likewise.
4082 1999-01-14 Tom Tromey <tromey@cygnus.com>
4084 * java/lang/Character.java (isJavaIdentifierPart): Allow
4085 LETTER_NUMBER characters.
4087 * chartables.pl (process_char): Fixed error messages.
4089 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
4090 * chartables.pl: Updated comments. Changed detection of non-digit
4091 numeric values (no longer miss \u00b2 and friends).
4093 * java/lang/Character.java (isJavaIdentifierPart): Recognize
4094 currency symbols and connector punctuation.
4095 (isIdentifierIgnorable): Make 7f-9f ignorable.
4097 * prims.cc (_Jv_NewObjectArray): Check for overflow.
4098 (_Jv_NewPrimArray): Likewise.
4099 (SIZE_T_MAX): New define.
4101 * java/lang/ClassLoader.java (system): Now private and final.
4103 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
4106 * configure: Rebuilt.
4107 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
4109 * exception.cc: Include gansidecl.h.
4111 1999-01-14 Andrew Haley <aph@cygnus.com>
4113 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
4114 corrected: they didn't treat -0.0 and NaNs correctly.
4116 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
4118 * nogc.cc: Use calloc to zero out memory.
4120 1999-01-11 Tom Tromey <tromey@cygnus.com>
4122 * java/lang/natClass.cc (isInstance): Return false if this class
4123 is primitive, not if class of `obj' is primitive.
4124 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
4126 * java/io/SequenceInputStream.java (close): Handle case where `in'
4129 * java/text/DateFormat.java (format): New method.
4131 * mauve-libjava: Omit java.text.DateFormat.
4133 1999-01-08 Tom Tromey <tromey@cygnus.com>
4135 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
4137 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
4139 (_Jv_CondNotifyAll): Likewise.
4141 * configure: Rebuilt.
4142 * configure.in: Change --enable-source-compilation logic to work
4145 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
4147 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4148 and RUNTESTFLAGS from AM_MAKEFLAGS.
4149 * configure.in: AM_RUNTESTFLAGS added.
4150 * configure.host: AM_RUNTESTFLAGS added.
4151 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4152 * configure: rebuilt.
4153 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4155 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4156 argv[] made conditional because embedded targets may not have
4158 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4159 explanatory comments added in call to super.
4161 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4162 exception thrown in the test harness itself added.
4163 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4165 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
4167 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
4169 1999-01-06 Tom Tromey <tromey@cygnus.com>
4171 * java/io/natFile.cc (get_entry): New function.
4172 (performList): Use get_entry.
4173 * include/config.h.in: Rebuilt.
4174 * acconfig.h (HAVE_READDIR_R): New define.
4175 * configure: Rebuilt.
4176 * configure.in: Look for readdir_r.
4178 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4180 * java/util/natDate.cc: Added copyright header.
4182 1999-01-05 Tom Tromey <tromey@cygnus.com>
4184 * include/config.h.in: Rebuilt.
4185 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4186 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4187 * configure: Rebuilt.
4188 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4189 unlink, and realpath.
4190 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4191 (stat): Conditionalize on HAVE_STAT.
4193 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4194 (performMkdir): Conditionalize on HAVE_MKDIR.
4195 (performRenameTo): Conditionalize on HAVE_RENAME.
4196 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4198 * include/config.h.in: Rebuilt.
4199 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4200 * configure: Rebuilt.
4201 * configure.in: Check for gmtime_r and localtime_r. For cross
4202 builds, assume they exist.
4204 * mauve-libjava: Include java.text.DateFormatSymbols again.
4205 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4206 from setAmPmStrings.
4208 * mauve-libjava: Omit java.text.DateFormatSymbols.
4210 1999-01-04 Tom Tromey <tromey@cygnus.com>
4212 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4214 * java/io/LineNumberReader.java (read): Decrement `count' in
4217 * java/io/BufferedWriter.java (write): Correctly determine when
4218 incoming data would overrun buffer. Flush buffer if write causes
4221 * java/io/BufferedOutputStream.java (write): Increment `count'
4222 after copying data into buffer.
4224 * java/io/FilterOutputStream.java (close): Call flush first.
4226 * java/io/PipedReader.java (read): If read causes `out' to catch
4227 up with `in', then set `in' to -1.
4229 * java/io/LineNumberInputStream.java (read): If no bytes read,
4230 return -1. If no bytes requested, return 0.
4232 * java/lang/StringBuffer.java (insert): If `str' is null, use
4235 1998-12-30 Anthony Green <green@cygnus.com>
4238 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4240 1998-12-23 Tom Tromey <tromey@cygnus.com>
4242 * java/io/PushbackInputStream.java (read): `off' already includes
4245 1998-12-17 Tom Tromey <tromey@cygnus.com>
4247 * Makefile.in: Rebuilt.
4248 * Makefile.am (GCJ_canadian): Include target_alias.
4250 * java/lang/natFirstThread.cc (run): Require main's class to be
4253 1998-12-16 Tom Tromey <tromey@cygnus.com>
4255 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4257 * java/util/ResourceBundle.java (getBundle): Throw
4258 NullPointerException if locale argument is null.
4260 * java/lang/natClass.cc (forName): Throw NullPointerException if
4262 Include NullPointerException.h.
4264 1998-12-14 Tom Tromey <tromey@cygnus.com>
4266 * java/lang/Character.java (Character): Implement Comparable.
4267 (compareTo): New methods.
4269 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4270 correct country and language codes.
4271 (UK, US): New constants.
4272 (setDefault): Language codes are lower-case.
4274 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4275 (getDeclaredConstructors): Likewise.
4276 (getDeclaredField): Likewise.
4277 (getDeclaredFields): Likewise.
4278 (getDeclaredMethod): Likewise.
4279 (getDeclaredMethods): Likewise.
4280 (getField): Likewise.
4281 (getFields): Likewise.
4282 (getMethod): Likewise.
4283 (getMethods): Likewise.
4284 * java/lang/Class.java: Declare new methods.
4285 * java/lang/Class.h: Declare new methods.
4287 * java/lang/natString.cc: Removed `#pragma implementation'.
4288 * include/cni.h (_Jv_GetStringChars): New function.
4289 * Makefile.in: Rebuilt.
4290 * Makefile.am (java/lang/String.h): Don't generate definition for
4293 * java/lang/natString.cc: Added `#pragma implementation'.
4295 * Makefile.in: Rebuilt.
4296 * Makefile.am (libjava.zip): Put build directory first in class
4297 path to avoid bug in compiler.
4299 1998-12-14 Anthony Green <green@cygnus.com>
4301 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4303 * include/javaprims.h: Add EventObject, ListResourceBundle and
4306 1998-12-13 Anthony Green <green@cygnus.com>
4308 * mauve-libjava: Run the ResourceBundle tests.
4310 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4313 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4315 * configure.in, configure: Make --enable-gcj-classes and
4316 --enable-source-compilation the default. (Nervously...) Yeah!
4317 Based on a patch from Tom Tromey.
4319 1998-12-13 Tom Tromey <tromey@cygnus.com>
4321 * java/util/EventObject.java: New file.
4322 * java/util/EventListener.java: New file.
4324 * include/javaprims.h: Updated class declarations.
4325 * Makefile.in: Rebuilt.
4326 * Makefile.am (nat_headers): Added Constructor.h.
4327 (java/lang/String.h): Don't inline String::length().
4328 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4329 * java/lang/Class.java (initializeClass, hackRunInitializers,
4330 hackTrampoline): No need to mark `final'.
4331 (getConstructor, getConstructors): Declare.
4332 * java/lang/reflect/Field.java (equals): New method.
4333 * java/lang/natClass.cc (getConstructor): New method.
4334 (getConstructors): Likewise.
4335 Include Method.h, Field.h, Constructor.h.
4336 * java/lang/reflect/Constructor.java: New file.
4337 * java/lang/reflect/Method.java (toString): No space before open
4339 (equals): Simplified.
4341 1998-12-13 Anthony Green <green@cygnus.com>
4343 * java/util/ResourceBundle.java: New file.
4344 * java/util/ListResourceBundle.java: New file.
4346 1998-12-12 Tom Tromey <tromey@cygnus.com>
4348 * java/lang/System.java (in, out, err): Now buffered streams by
4351 * include/javaprims.h: Updated class declarations.
4352 * Makefile.in: Rebuilt.
4353 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4354 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4356 (nat_files): Added natMethod.o.
4357 * java/lang/reflect/natMethod.cc: New file.
4358 * java/lang/reflect/Field.java (Field): Now extends
4360 * java/lang/reflect/AccessibleObject.java: New file.
4361 * java/lang/reflect/InvocationTargetException.java: New file.
4363 1998-12-11 Tom Tromey <tromey@cygnus.com>
4365 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4366 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4367 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4369 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4371 1998-12-09 Tom Tromey <tromey@cygnus.com>
4373 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4376 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4377 character is already titlecase.
4379 * java/lang/Character.java (isJavaLetter): Follow spec.
4380 (isJavaLetterOrDigit): Likewise.
4382 * java/util/GregorianCalendar.java (gregorianCutover): Append
4385 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4387 1998-12-08 Tom Tromey <tromey@cygnus.com>
4389 * java/lang/reflect/Modifier.java (toString): Replace second
4390 `static' with `synchronized'.
4392 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4393 * java/lang/Object.h (Object::hack12_6): Declare.
4394 * java/lang/Object.java (hack12_6): New function.
4396 1998-12-07 Tom Tromey <tromey@cygnus.com>
4398 * include/java-array.h (__JArray::clone): Removed decl.
4399 * prims.cc (__JArray::clone): Removed.
4400 * java/lang/natObject.cc (clone): Incorporate code to clone an
4403 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4404 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4405 Correctly use dtable_method_count.
4407 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4409 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4412 1998-12-06 Anthony Green <green@cygnus.com>
4414 * mauve-libjava: Don't test ResourceBundle.
4416 1998-12-04 Tom Tromey <tromey@cygnus.com>
4418 More JDK 1.2 spec fixes:
4419 * java/util/Date.java (millis): Now private.
4420 * java/text/DateFormat.java (DateFormat): Constructor now
4422 * java/lang/Void.java (Void): New private constructor.
4423 * java/lang/System.java (System): New private constructor.
4424 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4426 (currentClassLoader): New method.
4427 (currentLoadedClass): New method.
4428 * java/lang/Math.java (Math): New private constructor.
4429 * java/lang/Compiler.java (Compiler): New private constructor.
4430 * java/lang/Class.java (Class): New private constructor.
4431 * java/lang/Double.java (toString): Removed access specifier from
4432 two-argument `toString' method.
4434 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4436 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4437 causes it to be flushed from an fp register (where it may be
4438 longer than double precision) to a double in memory. This is
4439 essential to ensure correct rounding behaviour.
4441 1998-12-04 Tom Tromey <tromey@cygnus.com>
4443 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4446 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4447 explaining apparent divergence from JDK 1.2.
4449 1998-12-04 Per Bothner <bothner@cygnus.com>
4451 * include/no-threads.h: Remove unused parameter names.
4452 This silences a bunch of warnings.
4454 1998-12-04 Tom Tromey <tromey@cygnus.com>
4456 * include/config.h.in: Rebuilt.
4457 * acconfig.h (HAVE_CTIME_R): New symbol.
4459 1998-12-03 Tom Tromey <tromey@cygnus.com>
4461 * mauve-libjava: Added many more categories to reject.
4463 Changes to follow JDK1.2 spec:
4464 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4465 setErr, setIn, setOut): No need to be `final'.
4466 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4467 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4468 * java/lang/Object.java (wait): `nanos' argument is an int.
4469 * java/lang/VirtualMachineError.java: Class is abstract.
4470 * java/lang/ThreadDeath.java: Made constructors public.
4471 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4474 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4476 * java/text/DateFormatSymbols.java (getAmPmStrings,
4477 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4479 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4481 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4482 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4483 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4486 * java/lang/IllegalThreadStateException.java
4487 (IllegalThreadStateException): Changed extending class to match spec.
4489 * java/lang/NumberFormatException.java
4490 (java/lang/NumberFormatException): Changed extending class to match
4493 * java/util/Observer.java (Observer): Changed sig to match JCL.
4495 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4497 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4498 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4499 signature to match JDK 1.1 and 1.2.
4501 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4503 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4504 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4505 * Makefile.in, configure: Rebuilt.
4507 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4510 1998-12-02 Tom Tromey <tromey@cygnus.com>
4512 * mauve-libjava: New file.
4514 The remaining `-W -Wall' fixes:
4515 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4517 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4519 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4521 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4523 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4525 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4527 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4529 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4531 * java/lang/mprec.c (Balloc): Removed unused variable.
4532 (mult): Added parentheses per gcc suggestion.
4533 (pow5mult): Likewise.
4538 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4539 suggestion. Added cast to `int' to avoid signed/unsigned
4541 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4543 (IsAssignableFrom): Likewise.
4544 (_Jv_JNI_GetObjectField): Likewise.
4545 (_Jv_JNI_GetByteField): Likewise.
4546 (_Jv_JNI_GetShortField): Likewise.
4547 (_Jv_JNI_GetIntField): Likewise.
4548 (_Jv_JNI_GetLongField): Likewise.
4549 (_Jv_JNI_GetStringLength): Likewise.
4550 (_Jv_JNI_ToReflectedField): Likewise.
4551 (_Jv_JNI_FromReflectedField): Likewise.
4552 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4554 * Makefile.in: Rebuilt.
4555 * Makefile.am (AM_CFLAGS): Define conditionally.
4556 (WARNINGS): New macro.
4557 (AM_CXXFLAGS): Include WARNINGS.
4558 * configure: Rebuilt.
4559 * configure.in (USING_GCC): New conditional.
4561 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4563 * java/lang/Character.java: Changed classification constants to
4564 type `byte' to match JDK 1.2 docs.
4566 1998-12-01 Tom Tromey <tromey@cygnus.com>
4568 Some fixes to be `-W -Wall' clean:
4569 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4570 (_Jv_MarkArray): Likewise.
4571 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4572 (to_upper_title): Likewise.
4573 (isTitleCase): Likewise.
4574 (toTitleCase): Likewise.
4575 (getNumericValue): Likewise.
4576 (isLowerCase): Likewise.
4577 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4578 (avoids compiler warning).
4579 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4581 (getDeclaringClass): Likewise.
4582 (_Jv_LookupInterfaceMethod): Likewise.
4583 (_Jv_NewClass): Removed name of unused parameter.
4584 * exception.cc (_Jv_type_matcher): Removed unused variable.
4585 (_Jv_setup_eh_info): Removed name of unused parameter.
4586 * prims.cc (_Jv_NewArray): Always return a value.
4587 (_Jv_FindClassFromSignature): Likewise.
4588 * include/java-field.h (getNameUtf8Const): Removed name of unused
4590 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4592 (_Jv_ThreadSetPriority): Likewise.
4594 * java/lang/natString.cc (hashChars): Now static.
4596 * java/lang/FirstThread.java (FirstThread): Now final.
4598 * java/io/File.java (performMkdir, performRenameTo): Now private.
4600 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4601 if no time function defined.
4603 * configure: Rebuilt.
4604 * configure.in: Look for ctime_r, ctime.
4605 * java/util/Date.java (toString): Now native.
4606 * java/util/natDate.cc (toString): Rewrote.
4608 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4610 * Add LDFLAGS line to allow TX39 test cases to link when cross
4613 1998-11-23 Anthony Green <green@cygnus.com>
4615 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4616 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4617 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4618 include/java-array.h, include/java-assert.h, include/java-field.h,
4619 include/javaprims.h, include/jni.h, include/jvm.h,
4620 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4621 include/quick-threads.h, java/io/BufferedInputStream.java,
4622 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4623 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4624 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4625 java/io/CharArrayWriter.java,
4626 java/io/CharConversionException.java, java/io/DataInput.java,
4627 java/io/DataInputStream.java, java/io/DataOutput.java,
4628 java/io/DataOutputStream.java, java/io/EOFException.java,
4629 java/io/File.java, java/io/FileDescriptor.java,
4630 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4631 java/io/FileOutputStream.java, java/io/FileReader.java,
4632 java/io/FileWriter.java, java/io/FilenameFilter.java,
4633 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4634 java/io/FilterReader.java, java/io/FilterWriter.java,
4635 java/io/IOException.java, java/io/InputStream.java,
4636 java/io/InputStreamReader.java,
4637 java/io/InterruptedIOException.java,
4638 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4639 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4640 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4641 java/io/PipedReader.java, java/io/PipedWriter.java,
4642 java/io/PrintStream.java, java/io/PrintWriter.java,
4643 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4644 java/io/RandomAccessFile.java, java/io/Reader.java,
4645 java/io/SequenceInputStream.java, java/io/Serializable.java,
4646 java/io/StreamTokenizer.java,
4647 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4648 java/io/StringWriter.java, java/io/SyncFailedException.java,
4649 java/io/UTFDataFormatException.java,
4650 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4651 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4652 java/io/natFileDescriptorPosix.cc,
4653 java/lang/AbstractMethodError.java,
4654 java/lang/ArithmeticException.java,
4655 java/lang/ArrayIndexOutOfBoundsException.java,
4656 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4657 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4658 java/lang/Class.java, java/lang/ClassCastException.java,
4659 java/lang/ClassCircularityError.java,
4660 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4661 java/lang/ClassNotFoundException.java,
4662 java/lang/CloneNotSupportedException.java,
4663 java/lang/Cloneable.java, java/lang/Comparable.java,
4664 java/lang/Compiler.java, java/lang/Double.java,
4665 java/lang/Error.java, java/lang/Exception.java,
4666 java/lang/ExceptionInInitializerError.java,
4667 java/lang/FirstThread.java, java/lang/Float.java,
4668 java/lang/IllegalAccessError.java,
4669 java/lang/IllegalAccessException.java,
4670 java/lang/IllegalArgumentException.java,
4671 java/lang/IllegalMonitorStateException.java,
4672 java/lang/IllegalStateException.java,
4673 java/lang/IllegalThreadStateException.java,
4674 java/lang/IncompatibleClassChangeError.java,
4675 java/lang/IndexOutOfBoundsException.java,
4676 java/lang/InstantiationError.java,
4677 java/lang/InstantiationException.java, java/lang/Integer.java,
4678 java/lang/InternalError.java, java/lang/InterruptedException.java,
4679 java/lang/LinkageError.java, java/lang/Long.java,
4680 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4681 java/lang/NoClassDefFoundError.java,
4682 java/lang/NoSuchFieldError.java,
4683 java/lang/NoSuchFieldException.java,
4684 java/lang/NoSuchMethodError.java,
4685 java/lang/NoSuchMethodException.java,
4686 java/lang/NullPointerException.java, java/lang/Number.java,
4687 java/lang/NumberFormatException.java, java/lang/Object.h,
4688 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4689 java/lang/Process.java, java/lang/Runnable.java,
4690 java/lang/Runtime.java, java/lang/RuntimeException.java,
4691 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4692 java/lang/Short.java, java/lang/StackOverflowError.java,
4693 java/lang/String.java, java/lang/StringBuffer.java,
4694 java/lang/StringIndexOutOfBoundsException.java,
4695 java/lang/System.java, java/lang/Thread.java,
4696 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4697 java/lang/Throwable.java, java/lang/UnknownError.java,
4698 java/lang/UnsatisfiedLinkError.java,
4699 java/lang/UnsupportedOperationException.java,
4700 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4701 java/lang/Void.java, java/lang/natCharacter.cc,
4702 java/lang/natClass.cc, java/lang/natDouble.cc,
4703 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4704 java/lang/natMath.cc, java/lang/natObject.cc,
4705 java/lang/natRuntime.cc, java/lang/natString.cc,
4706 java/lang/natSystem.cc, java/lang/natThread.cc,
4707 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4708 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4709 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4710 java/text/FieldPosition.java, java/text/Format.java,
4711 java/text/NumberFormat.java, java/text/ParseException.java,
4712 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4713 java/util/BitSet.java, java/util/Calendar.java,
4714 java/util/ConcurrentModificationException.java,
4715 java/util/Date.java, java/util/Dictionary.java,
4716 java/util/EmptyStackException.java, java/util/Enumeration.java,
4717 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4718 java/util/Locale.java, java/util/MissingResourceException.java,
4719 java/util/NoSuchElementException.java, java/util/Observable.java,
4720 java/util/Observer.java, java/util/Properties.java,
4721 java/util/Random.java, java/util/SimpleTimeZone.java,
4722 java/util/Stack.java, java/util/StringTokenizer.java,
4723 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4724 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4727 * exception.cc: Include eh-common.h instead of duplicating
4730 1998-11-23 Tom Tromey <tromey@cygnus.com>
4732 * configure.host: Don't add `-O2' to libjava_flags. Only add
4733 `-Os' to libjava_flags once.
4735 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4737 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4738 * Makefile.in: likewise
4739 * acconfig.h: add ECOS conditional for configure.h
4740 * config.h.in: likewise
4741 * configure: add test for --with-ecos
4742 * configure.in: likewise
4743 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4744 rename call to avoid name clash.
4745 * java/lang/natSystem.cc: add eCos clock support.
4746 * java/util/natGregorianCalendar.cc: add eCos support.
4748 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4750 * Makefile.am, Makefile.in, configure.host: tx39 build option
4753 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4755 * java/io/BufferedReader.java: Added more comments for clarity.
4756 (mark): Used more mnemonic name for local var extraBuffSpace.
4758 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4759 confusion with private method of same name in superclass.
4760 (skipRedundantLF): Set fields in special case to avoid infinite
4761 recursion. Check if markPos has been invalidated in special case.
4762 (readLine): Rewritten to use readLine method of superclass.
4763 (skip): Incorporated code from lineEnd.
4765 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4767 * java/io/BufferedReader.java (readLine): New method.
4768 (lineEnd): new private method.
4769 (mark): Track special case for readLine of getting '\r' at the
4776 * java/io/InputStreamReader.java (read): Return number chars skipped
4777 rather than requested.
4779 * java/lang/StringBuffer.java (append): Update count and differentiate
4780 between field and local variable.
4782 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4783 seconds. Deal with military style time.
4784 (parse): Consistently treat all timezones in minutes until final
4785 calculation. Flag as non-local timezone. Return value in milliseconds.
4786 (setTime): Adjust for year offset from 1900.
4787 (UTC): Adjust for year offset from 1900.
4789 1998-11-17 Tom Tromey <tromey@cygnus.com>
4791 * configure: Rebuilt.
4792 * configure.in: Switch on host, not target.
4794 * Makefile.in: Rebuilt.
4795 * Makefile.am (GCJ_no): New macro.
4796 (GCJ): Use @CANADIAN@.
4797 (GCJH_no): New macro
4798 (GCJH_canadian): New macro.
4799 (GCJH): Use @CANADIAN@.
4800 (ZIP_no): New macro.
4801 (ZIP_canadian): New macro.
4802 (ZIP): Use @CANADIAN@.
4803 * aclocal.m4, configure: Rebuilt.
4804 * configure.in (CANADIAN): Compute and subst.
4806 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4808 * java/io/FileDescriptor.java (finalize): Only close file
4809 descriptor if valid.
4811 1998-11-17 Tom Tromey <tromey@cygnus.com>
4813 * prims.cc (_Jv_InitRuntime): Removed.
4815 1998-11-16 Tom Tromey <tromey@cygnus.com>
4817 * java/io/FileOutputStream.java (close): Only close file
4818 descriptor if valid.
4819 (finalize): New method.
4821 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4822 (_Jv_NewPrimArray): Likewise.
4823 * boehm.cc (_Jv_RegisterFinalizer): Use
4824 GC_REGISTER_FINALIZER_NO_ORDER.
4825 (GC_GENERIC_MALLOC): New define.
4826 (_Jv_AllocObj): Use it.
4827 (_Jv_AllocArray): Likewise.
4828 (_Jv_AllocBytes): Likewise.
4829 (_Jv_MarkObj): Just return if vtbl not set.
4830 (_Jv_MarkArray): Likewise.
4831 (MAYBE_MARK): New macro; use everywhere.
4832 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4834 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4836 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4837 to a jlong before calculation to prevent overflow.
4839 1998-11-16 Tom Tromey <tromey@cygnus.com>
4841 * Makefile.in: Rebuilt.
4842 * Makefile.am (nat_headers): Fixed typo.
4844 1998-11-15 Tom Tromey <tromey@cygnus.com>
4846 * java/lang/Class.h (Class::getName): Removed definition.
4847 * Makefile.in: Rebuilt.
4848 * Makefile.am (nat_headers): Added InstantiationException.h,
4849 NoSuchMethodException.h.
4850 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4851 (init_name): New global.
4852 (hackRunInitializers): Use clinit_name.
4853 Include InstantiationException.h, NoSuchMethodException.h.
4854 (newInstance): Do some error checking (but not all). Call
4856 (forName): Throw exception if class not found.
4857 (getName): New method.
4858 (forName): Transform class name from external format to internal
4859 format before lookup.
4861 1998-11-15 Anthony Green <green@cygnus.com>
4863 * java/lang/Class.h (Class::forName): Method is static.
4865 * java/lang/natClass.cc (newInstance): Add simple implementation.
4868 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4870 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4871 int), for compatibility with jc1.
4873 1998-11-14 Tom Tromey <tromey@cygnus.com>
4875 * include/config.h.in: Rebuilt.
4876 * acconfig.h (LINUX_THREADS): New define.
4877 * configure: Rebuilt.
4878 * configure.in: Define LINUX_THREADS if using POSIX threads on
4879 Linux. Look for pthread_mutexattr_setkind_np function.
4880 * posix-threads.cc (throw_cleanup): New function.
4881 (really_start): Push cleanup function.
4882 (_Jv_ThreadCancel): New function.
4883 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4884 (_Jv_ThreadInitData): Set `exception' field in new structure.
4885 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4887 (_Jv_ThreadWait): New function.
4888 (_Jv_InitThreads): Initialize daemon globals.
4889 (FLAG_DAEMON): New macro.
4890 (really_start): Notify daemon_cond when non-daemon thread exits.
4891 Include <java/lang/System.h>.
4892 (struct starter): `object' field now a thread.
4893 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4894 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4895 (_Jv_ThreadWait): Removed definition.
4896 (_Jv_Thread_t): Added `exception' field.
4897 (_Jv_ThreadCancel): Removed definition.
4899 1998-11-13 Tom Tromey <tromey@cygnus.com>
4901 * Makefile.in: Rebuilt.
4902 * Makefile.am (libjava.zip): Compute javac before changing
4905 * Makefile.in: Rebuilt.
4906 * Makefile.am (libjava.zip): Include directory entries.
4908 * Makefile.in: Rebuilt.
4909 * Makefile.am (expanded): New macro.
4912 1998-11-12 Tom Tromey <tromey@cygnus.com>
4914 * prims.cc (clone): New function.
4915 * include/java-array.h (__JArray::clone): Removed definition.
4917 * java/lang/natObject.cc (clone): Don't assert that class is not
4918 an array; array's `clone' method just calls this one.
4920 * Makefile.in: Rebuilt.
4921 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4922 Now creates zip file. Changed all users.
4924 (data_DATA): New macro.
4926 1998-11-11 Tom Tromey <tromey@cygnus.com>
4928 * configure: Rebuilt.
4929 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4931 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4933 * java/io/InputStream.java (reset): Add msg to thrown exception.
4935 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4937 * java/io/LineNumberInputStream.java: Rewritten.
4939 * java/io/StringBufferInputStream.java: Removed extraneous import.
4941 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4943 * java/io/StringBufferInputStream.java: Rewritten.
4945 * java/util/Date.java (parseMonth): Optimize.
4946 (parseDayOfWeek): Created.
4947 (parse): Optimize to use parseDayOfWeek.
4949 1998-11-11 Tom Tromey <tromey@cygnus.com>
4951 * java/lang/StringBuffer.java (append): Handle case where STR is
4954 * include/javaprims.h: Regenerated class declarations.
4956 * configure: Rebuilt.
4957 * configure.in: Added --enable-gcj-classes,
4958 --enable-single-compilation, --enable-source-compilation flags.
4959 * Makefile.in: Rebuilt.
4960 * Makefile.am (java_io_files): New macro.
4961 (java_lang_files): Likewise.
4962 (java_text_files): Likewise.
4963 (java_util_files): Likewise.
4964 (java_files): Use new macros.
4965 (java-io.o): New target.
4966 (java-lang.o): Likewise.
4967 (java-text.o): Likewise.
4968 (java-util.o): Likewise.
4969 (src_io_files): New macro.
4970 (src_lang_files): Likewise.
4971 (src_text_files): Likewise.
4972 (src_util_files): Likewise.
4973 (class_io_files): New macro.
4974 (class_lang_files): Likewise.
4975 (class_text_files): Likewise.
4976 (class_util_files): Likewise.
4977 (class_files): Use new macros.
4978 (javao_files): Define conditionally.
4979 (.java.o): New target.
4980 ($(javao_files)): New target.
4982 (GCJH): Added $(EXEEXT).
4983 (CLASSPATH_ENV): Removed.
4984 (GCJCOMPILE): New macro.
4986 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4988 * java/util/Date.java (parse): Written from scratch.
4990 1998-11-11 Tom Tromey <tromey@cygnus.com>
4992 * java/lang/Throwable.java (toString): Correct sense of test for
4993 determining when to include detail message in result.
4995 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4998 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
5000 * java/lang/Class.h: Use _Jv_RegisterClasses, not
5002 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
5003 (_Jv_RegisterClass): Use it.
5004 * include/jvm.h (_Jv_RegisterClasses): Declare.
5005 * java/lang/natObject.cc (init): Removed.
5006 (sync_init): Never call _Jv_InitializeSyncMutex.
5007 (_Jv_InitializeSyncMutex): Don't set `init'.
5008 * prims.cc (JvRunMain): Don't run init functions.
5010 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
5012 * java/lang/natClass.cc (initializeClass): Set state before
5013 resolving constants.
5015 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
5016 (STATE_RESOLVED): New macro.
5017 (initializeClass): Call resolveConstants.
5018 (hackRunInitializers): Don't call resolveConstants.
5019 (_Jv_FindArrayClass): Move short-circuit return for primitive
5020 element types earlier in function.
5022 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
5024 * prims.cc (no_memory): New global.
5025 (_Jv_makeUtf8Const): Throw no_memory.
5026 (_Jv_AllocObject): Likewise.
5027 (_Jv_NewObjectArray): Likewise.
5028 (_Jv_NewPrimArray): Likewise.
5029 (JvRunMain): Initialize no_memory.
5031 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
5033 * java/io/FileInputStream.java: Corrected date comment.
5034 * java/io/SequenceInputStream.java: Rewritten.
5036 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
5038 * java/lang/FirstThread.java (die): New method.
5039 * java/lang/natFirstThread.cc (die): Removed.
5041 (run): Use `DIE', not `die'.
5043 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
5045 * java/io/CharArrayReader.java (read): Move check into synchronized
5046 block to prevent a close while in progress.
5049 * java/io/PushbackReader.java (read): Ditto.
5052 * java/io/StringReader.java (mark): Ditto.
5057 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
5059 * java/io/PipedInputStream.java: Updated status.
5060 (connect): Added code to prevent infinite recursion and to
5061 differentiate exception causes.
5062 (read): Added code to differentiate exception causes.
5063 (receive): Made exception pass string with the cause.
5065 * java/io/PipedOutputStream.java: Updated status.
5066 (connect): Added code to call connect at the other end of the pipe.
5068 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
5070 * java/io/PipedInputStream.java (connect): Throw exception if
5071 already connected to the same output stream.
5072 (read): Do bounds checking first.
5074 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
5076 * java/io/PipedInputStream.java: Added private boolean outClosed.
5077 (available): Removed check if output stream is open.
5078 (close): Mark the buffer as empty so available returns 0.
5079 (read): Check if the output stream was closed and then return EOF
5080 when the buffer is empty.
5081 (receive): Mark the output stream as closed when passed a -1.
5083 * java/io/PipedOutputStream.java (close): Notify the input stream
5084 that there's no more data coming.
5085 (connect): Added a FIXME comment to note more coordination needed
5086 with PipedInputStream.
5087 (flush): Added a FIXME comment to mark what this method might do
5090 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
5092 * java/io/PipedInputStream.java: Rewritten.
5094 1998-10-30 Tom Tromey <tromey@cygnus.com>
5096 * java/lang/Throwable.java: Rewrote from scratch.
5098 * java/lang/Class.h (Class): Don't mention newMultiArray.
5099 * prims.cc (newMultiArray): Removed.
5100 (_Jv_NewMultiArray): Removed.
5101 (newArray): Removed.
5102 (new_multi_array): New function.
5103 (_Jv_NewMultiArray): Rewrote from scratch.
5105 * include/javaprims.h: Regenerated class declarations.
5106 * classes.pl (scan): Don't declare PrimClass.
5107 * include/cni.h (JvPrimClass): Use new names for classes.
5108 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
5109 added _Jv_PrimClass.
5110 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
5111 (_Jv_initPrimClass): Removed.
5112 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
5113 (_Jv_AllocObject): Added comment.
5114 (_Jv_NewObjectArray): Likewise.
5115 (_Jv_NewPrimArray): Likewise.
5117 1998-10-29 Tom Tromey <tromey@cygnus.com>
5119 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
5120 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
5122 * java/lang/Class.h (Class): Added `dtable_method_count' field.
5124 * java/lang/natObject.cc (init): New global.
5125 (sync_init): Call _Jv_InitializeSyncMutex if required.
5127 * Makefile.in: Rebuilt.
5128 * Makefile.am (nat_headers): Added ClassLoader.h.
5129 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
5130 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
5131 internalAddClass, lookupArray no longer friends.
5132 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
5133 _Jv_FindArrayClass now friends.
5134 * java/lang/natClass.cc (HASH_LEN): New macro.
5135 (HASH_UTF): Likewise.
5136 (loaded_classes): New global.
5137 (_Jv_FindClass): New function.
5138 (ClassClass): New define.
5139 (_Jv_FindClassInCache): New function.
5140 (_Jv_RegisterClass): Likewise.
5141 (_Jv_NewClass): Likewise.
5143 (ObjectClass): New define.
5144 (CloneableClass): New define.
5145 * prims.cc (_Jv_FindClass): Removed.
5146 (simpleLookupClass): Removed.
5147 (insertClass): Removed.
5148 (CLASSHASHSZ): Removed.
5149 (classPool): Removed.
5150 (_Jv_RegisterClass): Removed.
5151 (internalAddClass): Removed.
5152 (ClassClass): Removed.
5153 (RuntimeClass): Removed.
5154 (lookupArray): Removed.
5155 (CloneableClass): Removed.
5156 (CLASSMAXSIG): Removed.
5157 Rearranged file to group related functions together.
5158 (_Jv_IsInstanceOf): Moved to natClass.cc.
5159 (abort_final): Removed.
5160 Removed some unused includes.
5161 (classFromSig): Removed.
5162 (_Jv_FindClassFromSignature): New function.
5163 (_Jv_initPrimClass): Renamed.
5164 (getClass): Removed.
5166 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
5168 * java/io/FileDescriptor.java (finalize): Throws IOException
5169 instead of Throwable.
5171 * java/io/FileInputStream.java: Rewritten.
5173 * java/io/StreamTokenizer.java (nextToken): Unread newline character
5174 at the end of a comment.
5176 1998-10-29 Tom Tromey <tromey@cygnus.com>
5178 * include/javaprims.h: Regenerated class declarations.
5179 * classes.pl (scan): Don't special-case ClassLoader.
5181 * prims.cc (processClass): Removed.
5182 (_Jv_InitClass): Removed.
5183 Removed all CSTATE_ macros.
5184 (resolveConstants): Removed.
5186 (_Jv_NewMultiArray): Cleaned up.
5187 * Makefile.in: Rebuilt.
5188 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5189 * java/lang/Class.h (Class): Declare new methods. processClass no
5191 * java/lang/Class.java (hackTrampoline): New method.
5192 (initializeClass): Declare.
5193 (hackRunInitializers): Declare.
5194 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5195 (initializeClass): New method.
5196 (hackRunInitializers): New method.
5197 (init_name, void_signature): Moved from prims.cc.
5198 (_Jv_InitClass): New function.
5199 (isAssignableFrom): Don't call processClass.
5200 (STATE_NOTHING): New macro.
5201 (resolveConstants): New function.
5203 (ErrorClass): New define.
5205 * java/lang/Class.java (getClassLoader): Declare.
5206 * java/lang/ClassLoader.java: Rewrote from scratch.
5208 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5209 AbstractMethodError.h, IllegalAccessError.h,
5210 NoClassDefFoundError.h.
5211 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5212 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5213 longer static. Changed return type.
5214 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5215 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5216 * prims.cc (findMethodLocal): Removed.
5217 (processClass): Use _Jv_GetMethodLocal.
5219 1998-10-28 Tom Tromey <tromey@cygnus.com>
5221 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5222 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5224 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5225 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5227 * include/jni.h: Added copyright header.
5228 * include/javaprims.h: Added copyright header.
5229 * include/java-field.h: Added copyright header.
5230 * include/java-array.h: Added copyright header.
5231 * include/cni.h: Added copyright header.
5233 * include/javaprims.h: Regenerated class declarations using
5234 classes.pl; now they are complete.
5235 * classes.pl: New file.
5237 * java/lang/natMath.cc: Include <config.h>.
5238 * java/lang/reflect/natField.cc: Include <config.h>.
5239 * java/util/NativeUtil.java: Removed.
5240 * Makefile.in: Rebuilt.
5241 * Makefile.am (nat_headers): Added Math.h.
5242 * java/lang/Math.h: Removed.
5243 * java/util/natGregorianCalendar.cc: Added copyright header.
5245 * java/lang/natFloat.cc: Added copyright header.
5246 * java/lang/Byte.java: Added copyright header.
5247 * java/lang/Void.java: Added copyright header.
5248 * java/lang/Short.java: Added copyright header.
5250 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5252 * include/javaprims.h (java::io): Added bunch of missing classes.
5254 * java/io/DataInputStream.java (readLine): Added a special case
5255 for handling BufferedInputStream data to reduce the likelihood
5256 of a pushback error.
5257 (skipBytes): Added code to handle negative number of skip bytes.
5259 * java/io/StreamTokenizer.java: Rewritten.
5261 1998-10-28 Tom Tromey <tromey@cygnus.com>
5263 * java/util/natGregorianCalendar.cc (computeFields): Call
5264 getRawOffset as a method.
5266 * include/javaprims.h (java::io): Added FilterOutputStream.
5267 * Makefile.in: Rebuilt.
5268 * Makefile.am (nat_headers): Added PrintStream.h,
5269 FilterOutputStream.h.
5270 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5272 (die): New function.
5273 (run): Die if `main' not found, is not public, or is not static.
5275 * boehm.cc (_Jv_MarkObj): Use new field names.
5276 * include/java-field.h (JvGetFirstInstanceField): Use new field
5278 (JvNumInstanceFields): Likewise.
5279 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5280 (getInterfaces): Likewise.
5281 * prims.cc (CLASS_CONSTANTS): Removed.
5282 (CLASS_CONST_SIZE): Likewise.
5283 (CLASS_CONST_TAG): Likewise.
5284 (CLASS_CONST_DATA): Likewise.
5285 (CLASS_CONST_UTF8): Likewise.
5286 (WORD2UTF): Likewise.
5287 (CLASS_CLASS): Likewise.
5288 (CLASS_PRIM_SIG): Likewise.
5289 (CLASS_ARRAY_CACHE): Likewise.
5290 (HASH_CHARS): Likewise.
5291 (hashClassName): Likewise.
5292 Many changes to use new field names.
5293 * java/lang/Class.h (Class): Renamed fields to track compiler.
5295 1998-10-27 Tom Tromey <tromey@cygnus.com>
5297 * java/lang/natClass.cc: Use #pragma implementation.
5298 (getComponentType): Moved into header.
5299 (getModifiers): Likewise.
5300 (getName): Likewise.
5301 (getSuperclass): Likewise.
5302 (isArray): Likewise.
5303 (isPrimitive): Likewise.
5304 * include/jvm.h (_Jv_FindClass): Declare.
5305 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5306 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5307 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5308 * java/lang/Class.h: Rewrote from scratch.
5309 * prims.cc: Many changes to work with new Class.h.
5310 * include/java-field.h (CLASS_FIELDS): Removed.
5311 (CLASS_SFIELDS): Likewise.
5312 (CLASS_IFIELDS): Likewise.
5313 (CLASS_NFIELDS): Likewise.
5314 (CLASS_NIFIELDS): Likewise.
5315 (CLASS_NSFIELDS): Likewise.
5316 (CLASS_FSIZE): Likewise.
5317 (JvGetFirstInstanceField): Rewrote.
5318 (JvNumInstanceFields): Likewise.
5320 * java/lang/Object.h: Added copyright comment.
5322 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5324 * java/text: New package directory.
5325 * java/text/FieldPosition.java: New class.
5326 * java/text/ParsePosition.java: New class.
5327 * java/text/ParseException.java: New Exception class.
5328 * java/text/Format.java: New class.
5329 * java/text/NumberFormat.java: New (empty placeholder) class.
5330 * java/text/DateFormatSymbols.java: New class (no Locales support).
5331 * java/text/DateFormat.java: New Format class (incomplete).
5332 * java/text/SimpleDateFormat.java: New DateFormat class.
5334 * include/javaprims.h (java::test): Added new package and classes.
5335 * java/util/Calendar.java (clone): New method.
5336 * java/util/Date.java (toString): Added non-native implementation.
5337 (parse): Made public instead of synchronized.
5338 * java/util/natDate.cc (toString): Removed.
5339 * java/util/natGregorianCalendar.cc (computeFields):
5340 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5342 1998-10-27 Tom Tromey <tromey@cygnus.com>
5344 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5346 * prims.cc (lookupArray): Added explanatory comment.
5347 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5348 class. Mark the class of each object.
5349 (_Jv_MarkArray): Mark the object's class.
5351 * configure: Rebuilt.
5352 * configure.in: Create java-gc.h.
5353 * include/boehm-gc.h: New file.
5354 * include/no-gc.h: New file.
5355 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5357 * java/lang/Object.h: Include java-gc.h.
5358 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5359 friends, if defined.
5360 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5362 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5364 1998-10-26 Tom Tromey <tromey@cygnus.com>
5366 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5367 paragraph separators, not numbers.
5369 * java/io/Writer.java (write): Removed write(char) to avoid
5371 * java/util/Properties.java: Rewrote from scratch.
5372 * include/javaprims.h (java::io): Added PrintWriter,
5373 BufferedWriter, PushbackReader.
5375 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5377 * java/lang/System.java: exit() is a static method.
5379 1998-10-26 Tom Tromey <tromey@cygnus.com>
5381 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5383 (_Jv_NewStringUtf8Const): Likewise.
5384 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5385 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5387 * java/lang/Object.h (Object): Add mark_array as friend function.
5388 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5389 _Jv_AllocBytes, to ensure that header is marked.
5390 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5392 (mark_array): Push sync_info field for array.
5394 1998-10-24 Tom Tromey <tromey@cygnus.com>
5396 * java/lang/String.java (String): Updated for StringBuffer
5398 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5400 * java/lang/StringBuffer.java: Renamed fields to conform to
5401 serialization spec: buffer->value, next->count, copy->shared.
5403 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5405 * java/util/TimeZone.java: New class.
5406 * java/util/SimpleTimeZone.java: New class.
5407 * java/util/Locale.java: New file.
5408 * java/util/Calendar.java: Make almost complete.
5409 * java/util/GregorianCalendar.java
5410 * java/util/natGregorianCalendar.cc: New file.
5411 * java/util/Date.java: Re-written from scratch.
5412 * java/util/natDate.cc (setTime): Removed - no longer native.
5413 * include/javaprims.h (java::util): Add new classes.
5414 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5415 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5417 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5419 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5420 returning it as a jint.
5422 1998-10-23 Tom Tromey <tromey@cygnus.com>
5424 * prims.cc (arg_vec, main_group, main_thread): New globals.
5425 (JvRunMain): Use them.
5427 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5429 * java/io/DataInputStream.java: Rewritten.
5431 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5432 tertiary bytes with 0x80 per spec.
5434 1998-10-23 Tom Tromey <tromey@cygnus.com>
5436 * java/lang/String.java (init): Changed name of `copy' argument.
5437 * java/lang/natString.cc (init): Inverted sense of `copy'
5440 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5441 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5442 * boehm.cc (ObjectClass): New define.
5443 (ClassClass): Likewise.
5444 (mark_obj): Special-case Object and Class.
5446 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5448 * java/util/BitSet.java: Rewrote from scratch.
5450 * prims.cc (lookupArray): Removed useless cast.
5452 * java/lang/natObject.cc: Use `#pragma implementation'.
5454 * java/lang/String.java (init): Added `copy' argument.
5455 (String): Look in StringBuffer to find char array.
5456 * java/lang/natString.cc (init): Added `copy' argument.
5457 * java/lang/StringBuffer.java: Rewrote from scratch.
5459 * java/lang/Compiler.java: Rewrote from scratch.
5460 * java/lang/Throwable.java: Don't use NativeLang.
5461 * include/javaprims.h (java::lang): Don't mention NativeLang.
5462 * java/lang/Process.java: Rewrote from scratch.
5463 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5465 (currentClassLoader): Likewise.
5466 (currentLoadedClass): Likewise.
5467 * java/lang/natClass.cc (getClassLoader): Commented out.
5468 * java/lang/Class.java (getClassLoader): Commented out.
5469 * java/lang/Compiler.java: Removed.
5470 * java/lang/NativeLang.java: Removed.
5472 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5473 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5474 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5475 (_Jv_hashUtf8String): Now static.
5476 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5477 name of return type.
5479 * java/lang/Class.h (Class): Declare checkMemberAccess.
5480 * Makefile.in: Rebuilt.
5481 * Makefile.am (nat_headers): Added Member.h.
5482 * java/lang/natClass.cc: Include Member.h.
5483 (getDeclaredClasses): Call checkMemberAccess.
5484 * java/lang/Class.java (checkMemberAccess): Call
5485 SecurityManager.checkMemberAccess.
5487 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5489 * java/lang/SecurityManager.java: Rewritten.
5491 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5493 * java/applet/Applet.java, java/applet/AppletContext.java,
5494 java/applet/AppletStub.java, java/applet/AudioClip.java,
5495 java/awt/AWTError.java, java/awt/AWTException.java,
5496 java/awt/BorderLayout.java, java/awt/Button.java,
5497 java/awt/Canvas.java, java/awt/CardLayout.java,
5498 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5499 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5500 java/awt/Color.java, java/awt/Component.java,
5501 java/awt/Container.java, java/awt/Dialog.java,
5502 java/awt/Dimension.java, java/awt/Event.java,
5503 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5504 java/awt/Font.java, java/awt/FontMetrics.java,
5505 java/awt/Frame.java, java/awt/Graphics.java,
5506 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5507 java/awt/GridLayout.java, java/awt/Image.java,
5508 java/awt/Insets.java, java/awt/Label.java,
5509 java/awt/LayoutManager.java, java/awt/List.java,
5510 java/awt/MediaTracker.java, java/awt/Menu.java,
5511 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5512 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5513 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5514 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5515 java/awt/TextArea.java, java/awt/TextComponent.java,
5516 java/awt/TextField.java, java/awt/Toolkit.java,
5517 java/awt/Window.java, java/awt/image/ColorModel.java,
5518 java/awt/image/CropImageFilter.java,
5519 java/awt/image/DirectColorModel.java,
5520 java/awt/image/FilteredImageSource.java,
5521 java/awt/image/ImageConsumer.java,
5522 java/awt/image/ImageFilter.java,
5523 java/awt/image/ImageObserver.java,
5524 java/awt/image/ImageProducer.java,
5525 java/awt/image/IndexColorModel.java,
5526 java/awt/image/MemoryImageSource.java,
5527 java/awt/image/PixelGrabber.java,
5528 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5529 java/awt/peer/CanvasPeer.java,
5530 java/awt/peer/CheckboxMenuItemPeer.java,
5531 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5532 java/awt/peer/ComponentPeer.java,
5533 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5534 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5535 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5536 java/awt/peer/MenuBarPeer.java,
5537 java/awt/peer/MenuComponentPeer.java,
5538 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5539 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5540 java/awt/peer/TextAreaPeer.java,
5541 java/awt/peer/TextComponentPeer.java,
5542 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5543 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5544 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5545 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5546 java/net/MalformedURLException.java, java/net/NativeNet.java,
5547 java/net/ProtocolException.java, java/net/ServerSocket.java,
5548 java/net/Socket.java, java/net/SocketException.java,
5549 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5550 java/net/URL.java, java/net/URLConnection.java,
5551 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5552 java/net/URLStreamHandlerFactory.java,
5553 java/net/UnknownHostException.java,
5554 java/net/UnknownServiceException.java: Removed.
5556 1998-10-22 Tom Tromey <tromey@cygnus.com>
5558 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5559 finalizer is not Object.finalize.
5560 (internalAddClass): Don't set `final' member of class.
5561 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5562 other places that know about finalize() location.
5563 * java/lang/Class.h (Class): Removed `final' field.
5565 * aclocal.m4, configure: Rebuilt.
5566 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5567 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5569 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5570 * Makefile.in: Rebuilt.
5571 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5573 1998-10-21 Tom Tromey <tromey@cygnus.com>
5575 * java/lang/Object.java (finalize): Move to be first method in
5578 * configure: Rebuilt.
5579 * configure.in (GCINCS): Include contents of boehm-cflags file.
5581 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5583 * java/lang/ArrayIndexOutOfBoundsException.java
5584 (ArrayIndexOutOfBoundsException): Fixed string literal.
5585 * java/lang/StringIndexOutOfBoundsException.java
5586 (StringIndexOutOfBoundsException): Fixed string literal.
5588 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5590 * natFileDescriptorEcos.cc added.
5591 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5593 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5595 * acconfig.h: test for __int32_t and __uint32_t added.
5596 * include/config.h.in: test for __int32_t and __uint32_t added.
5597 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5598 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5599 * configure.in: test for __int32_t and __uint32_t added.
5600 * configure: test for __int32_t and __uint32_t added.
5602 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5604 * configure.in: Test for --enable ecos and link
5605 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5606 natFileDescriptorPosix.cc
5608 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5610 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5612 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5615 * java/io/CharArrayReader.java (close): Synchronize on lock
5616 object per Reader contract.
5617 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5618 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5619 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5620 Ensure that arg passed in isn't negative.
5622 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5623 constructing the superclass.
5625 * java/io/PushbackReader.java (close): Synchronize on lock
5626 object per Reader contract.
5627 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5628 (ready): Synchronize on lock obj. Throw IOException if reader
5630 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5631 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5632 Ensure that arg passed in isn't negative.
5633 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5635 * java/io/StringReader.java: Created.
5637 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5639 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5641 (read): Removed synchronized modifier to match JCL.
5642 (reset): Removed synchronized modifier to match JCL.
5643 (skip): Removed synchronized modifier to match JCL.
5645 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5647 * java/io/PushbackReader.java (PushbackReader): Made
5648 constructors public.
5650 1998-10-17 Tom Tromey <tromey@cygnus.com>
5652 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5653 constructors public.
5655 1998-10-16 Anthony Green <green@cygnus.com>
5657 * aclocal.m4, configure: Rebuilt.
5658 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5660 * configure.host: Rewrote.
5661 * Makefile.in: Rebuilt.
5662 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5663 (AM_CFLAGS): New macro.
5664 ($(c_files)): Use COMPILE macro.
5665 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5666 automake problem(s).
5668 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5670 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5672 * java/io/CharArrayReader.java: Created.
5674 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5676 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5677 size check to allow 0 per JCL.
5679 * java/io/PushbackReader.java: Created.
5681 1998-10-16 Tom Tromey <tromey@cygnus.com>
5683 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5684 <sys/time.h> includes.
5685 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5686 * include/no-threads.h: Conditionalize <unistd.h> include on
5689 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5691 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5694 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5696 * java/io/FilterReader.java: Created.
5698 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5700 * java/io/PushbackInputStream.java: Rewritten.
5702 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5703 that size passed to constructor is legal.
5704 (read): Check that args passed in are legal.
5705 (skip): Rewritten to get rid of the temporary buffer.
5706 (refill): Added marklimit check to grow the buffer.
5708 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5710 (bytesAvail): Removed.
5711 (read): Changed bytesAvail to Math.min.
5712 (skip): Changed bytesAvail to Math.min.
5714 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5715 from the throws clause.
5716 (skip): Rewritten to use a temporary buffer.
5718 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5720 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5723 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5725 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5726 to write the double one word at a time.
5728 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5730 * java/io/BufferedInputStream.java: Rewritten.
5732 1998-10-12 Tom Tromey <tromey@cygnus.com>
5734 * jni.cc: Include config.h and stddef.h.
5736 * java/lang/Class.h (_dispatchTable): Removed again.
5737 Removed all ACC_* defines again.
5739 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5741 * Makefile.am (nat_files): Add netField.o.
5742 (libjava_a_SOURCES): Add jni.cc.
5743 (java/lang/reflect/Field.h): New rule.
5744 * Makefile.in: Re-generated.
5745 * include/javaprims.h: Add some extra class and typedefs.
5746 * include/jni.h: New file.
5749 * include/java-field.h: New file.
5750 * include/jvm.h: #include <java-field.h>.
5751 * boehm.cc: #include <java-field.h>.
5752 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5753 * java/lang/reflect/Member.java: New class.
5754 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5755 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5757 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5759 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5760 testsuite/Makefile.in: Rebuilt.
5761 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5762 * configure.host: Created.
5764 1998-10-10 Tom Tromey <tromey@cygnus.com>
5766 * java/lang/natObject.cc (sync_init): Always allocate a new
5769 1998-10-09 Tom Tromey <tromey@cygnus.com>
5771 * java/io/ByteArrayInputStream.java (mark): Renamed from
5774 * java/io/FileOutputStream.java (finalize): Removed.
5775 * java/io/FileDescriptor.java (finalize): New method.
5777 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5779 * ByteArrayInputStream.java: Corrected status comment.
5781 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5783 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5785 1998-10-08 Tom Tromey <tromey@cygnus.com>
5787 * prims.cc (lookupArray): Use static array to initialize list of
5790 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5792 * prims.cc (lookupArray): Initialize the msize for new
5795 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5797 * configure: Rebuilt.
5798 * configure.in: Check for fsync and sleep.
5799 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5801 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5802 HAVE_SLEEP. Include config.h.
5804 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5805 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5808 1998-10-08 Tom Tromey <tromey@cygnus.com>
5810 * java/io/natFile.cc: Don't include SecurityManager.h.
5811 (performList): Renamed.
5812 (performMkdir): Likewise.
5813 (performRenameTo): Likewise.
5814 (performDelete): Likewise.
5816 * java/io/File.java (performDelete): Renamed from natDelete.
5817 (list): Now written in Java.
5818 (performList): New method.
5819 (performMkdir): New method.
5820 (mkdir): Now written in Java.
5821 (performRenameTo): New method.
5822 (renameTo): Now written in Java.
5824 1998-10-06 Tom Tromey <tromey@cygnus.com>
5826 * Makefile.in: Rebuilt.
5827 * Makefile.am (ETAGS_ARGS): New macro.
5828 (TAGS_DEPENDENCIES): Likewise.
5830 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5832 * Makefile.in: Rebuilt.
5833 * Makefile.am: Use -classpath option with javac.
5835 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5837 * java/io/FileOutputStream.java (finalize): Call
5840 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5842 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5844 * java/lang/mprec.c: Ditto.
5846 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5849 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5851 * java/io/InputStream.java (skip): Make local var i a long.
5853 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5855 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5856 * prims.cc (lookupArray): Use memcpy, not memmove.
5857 * include/config.h.in: Rebuilt.
5858 * acconfig.h (HAVE_MEMCPY): Added.
5859 * configure: Rebuilt.
5860 * configure.in: Check for memcpy again.
5862 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5863 String.compareTo, not ==.
5865 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5866 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5867 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5868 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5869 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5870 into new array's dtable.
5871 (_Jv_AllocObject): Use _Jv_DispatchTable.
5872 (_Jv_NewPrimArray): Likewise.
5873 (_Jv_NewObjectArray): Likewise.
5875 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5877 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5878 offending index value.
5879 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5881 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5882 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5884 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5886 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5888 * java/io/OutputStream.java (write): Use off and len parameters to
5889 output partial byte array.
5891 * java/io/BufferedReader.java, java/io/FileReader.java,
5892 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5893 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5894 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5895 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5897 * include/javaprims.h (java::lang): Added
5898 ExceptionInInitializerError, IllegalStateException,
5899 NoSuchFieldException, and UnsupportedOperationException.
5901 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5903 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5906 * include/java-array.h (__JArray): Added clone method.
5907 * prims.cc (CloneableClass): New define.
5908 (lookupArray): Initialize array class to indicate that it
5909 implements Cloneable.
5911 * java/lang/Class.h: Removed all ACC_* defines.
5912 * prims.cc: Include Modifier.h.
5913 (_Jv_LookupInterfaceMethod): Use methods in
5914 java.lang.reflect.Modifier, not ACC_ defines.
5916 * java/lang/Class.h (Class): Declare getClasses,
5917 getDeclaredClasses, getDeclaringClass, getModifiers,
5918 * java/lang/Class.java: Rewrote from scratch.
5920 * include/javaprims.h (java::lang): Added reflect and
5922 * Makefile.in: Rebuilt.
5923 * Makefile.am (nat_headers): Added Modifier.h.
5925 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5928 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5930 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5931 instead of test and abort.
5933 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5934 remove compiler warning.
5936 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5938 * java/lang/natDouble.cc: zero terminate string.
5939 * strtod.c: Set errno if no digits are found in fraction.
5941 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5943 * java/lang/reflect/Modifier.java: New file.
5945 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5946 * java/lang/VerifyError.java: Rewrote from scratch.
5947 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5948 * java/lang/UnknownError.java: Rewrote from scratch.
5949 * java/lang/StackOverflowError.java: Rewrote from scratch.
5950 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5951 * java/lang/InternalError.java: Rewrote from scratch.
5952 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5953 * java/lang/ExceptionInInitializerError.java: New file.
5954 * java/lang/Error.java: Rewrote from scratch.
5955 * java/lang/ClassFormatError.java: Rewrote from scratch.
5956 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5957 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5958 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5959 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5960 * java/lang/LinkageError.java: Rewrote from scratch.
5961 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5963 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5965 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5966 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5968 * include/cni.h (JvAllocObject): Moved from prims.cc.
5970 * prims.cc (JvAllocObject): Moved to cni.h.
5971 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5972 (finalize_name): Removed.
5974 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5976 * java/lang/Class.h (Class): Added size() method.
5977 * prims.cc (_Jv_MonitorEnter): Removed.
5978 (_Jv_MonitorExit): Removed.
5979 * java/lang/Object.h (JvSyncInfo): Removed.
5980 * Makefile.in: Rebuilt.
5981 * Makefile.am (nat_headers): Added Cloneable.h,
5982 CloneNotSupportedException.h.
5983 * java/lang/Object.h: Rewrote.
5984 * java/lang/natObject.cc: Rewrote from scratch.
5985 * java/lang/Object.java: Rewrote from scratch.
5987 * java/io/natFile.cc: Conditionally include <dirent.h>.
5988 (list): If no <dirent.h>, always return NULL.
5989 * configure: Rebuilt.
5990 * configure.in: Check for dirent.h.
5992 * prims.cc (lookupArray): Don't use sprintf.
5994 * java/util/Hashtable.java (containsKey): Use `abs' to compute
6001 * java/util/Hashtable.java (hsize): Renamed from size to avoid
6002 name conflict with method.
6004 * include/javaprims.h (java::util): Added HashtableEntry.
6006 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
6008 * java/util/Hashtable.java: Rewritten.
6010 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6012 * java/io/natFileDescriptor.cc (write): Correctly test `write'
6016 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
6019 * posix-threads.cc (_Jv_CondWait): Now returns int.
6020 * include/javaprims.h (java::lang): Added
6021 IllegalMonitorStateException.
6022 * Makefile.in: Rebuilt.
6023 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
6024 * include/no-threads.h (_Jv_CondDestroy): Removed.
6025 (_Jv_MutexDestroy): Removed.
6026 (_Jv_CondWait): Now returns int.
6027 (_Jv_CondNotify): Likewise. Added mutex argument.
6028 (_Jv_CondNotifyAll): Likewise.
6029 (_Jv_MutexLock): Always succeed.
6030 (_Jv_MutexUnlock): Likewise.
6031 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
6032 (_Jv_HaveMutexDestroy): Define.
6033 (_Jv_CondNotify): Now returns int. Added mutex argument.
6034 (_Jv_CondNotifyAll): Likewise.
6035 * include/quick-threads.h (_Jv_CondDestroy): Removed.
6036 (_Jv_MutexDestroy): Removed.
6037 (_Jv_CondWait): Now returns int.
6038 (_Jv_CondNotify): Likewise. Added mutex argument.
6039 (_Jv_CondNotifyAll): Likewise.
6040 * java/lang/natObject.cc (finalize_sync_info): New function.
6041 (init_mutex): Initialize `init' and register finalizer if
6044 (init_mutex): Use it.
6046 (notifyAll): Use it.
6048 (notify): Throw IllegalMonitorStateException on failure.
6049 (notifyAll): Likewise.
6050 (wait): Likewise. Also, throw InterruptedException if
6052 Include cni.h, Thread.h, IllegalMonitorStateException.h,
6053 InterruptedException.h, IllegalArgumentException.h.
6054 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
6056 * java/lang/natString.cc: Renamed all `JvPriv' functions.
6057 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
6058 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
6059 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
6060 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
6061 * quick-threads.cc: Renamed all `JvPriv' functions.
6062 * prims.cc: Renamed all `JvPriv' functions.
6063 * posix-threads.cc: Renamed all `JvPriv' functions.
6064 * nogc.cc: Renamed all `JvPriv' functions.
6065 * no-threads.cc: Renamed all `JvPriv' functions.
6066 * boehm.cc: Renamed all `JvPriv' functions.
6067 * include/quick-threads.h: Renamed all `JvPriv' functions.
6068 * include/posix-threads.h: Renamed all `JvPriv' functions.
6069 * include/no-threads.h: Renamed all `JvPriv' functions.
6070 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
6072 * include/no-threads.h (JvPrivCondWait): Wrote minimal
6074 (JvPrivCondNotify): Do nothing.
6075 (JvPrivCondNotifyAll): Do nothing.
6077 * prims.cc (processClass): Handle case where state is
6080 * java/lang/natFirstThread.cc: Include <stdlib.h>
6082 * configure: Rebuilt.
6083 * configure.in: Fixed sense of --enable-libjava-debug.
6085 * java/lang/natThread.cc (join): Declare `t' outside the loop so
6086 it can be used afterward by the assertion.
6088 * configure: Rebuilt.
6089 * configure.in: When cross-compiling, assume alloca.
6091 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
6092 __builtin_alloca (autoconf docs are wrong here).
6094 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
6096 (available): Use `FD_ZERO' (typo fix).
6098 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6100 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6101 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
6103 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6104 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
6107 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
6109 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
6111 * java/lang/natDouble.cc: Declare alloca safely.
6113 * configure, include/config.h.in: Rebuilt.
6114 * configure.in: Add alloca check.
6116 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6118 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
6119 condition while calling notify.
6120 (join): Remove `curr_nt' from `nt's join list, not vice versa.
6121 (interrupt): Hold mutex for interrupt condition while calling
6124 * java/lang/natString.cc (init): Allocate and try to read `count'
6125 characters, not `count - offset' characters.
6127 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
6128 Correctly compute `count'.
6130 * java/lang/Boolean.java (getBoolean): Return false if property
6133 * java/lang/System.java (setProperties): Set prop_init.
6135 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
6137 * java/io/PrintStream.java (println): Use line.separator, not
6139 * java/lang/System.java (out, err): Make both autoflush streams.
6140 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
6142 * include/config.h.in: Rebuilt.
6143 * acconfig.h (HAVE_MEMCPY): Removed.
6144 * configure: Rebuilt.
6145 * configure.in: Never define HAVE_MEMCPY.
6147 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6149 (_Jv_AllocString): Use JvAllocObject again.
6150 * java/lang/Class.h (thread): New field.
6151 (_Jv_AllocString): No longer a friend.
6152 * prims.cc (processClass): Removed dead code. Changed to more
6153 closely follow the Java Language Specification.
6154 (processClass): Return early if already at the right state.
6156 * prims.cc (JvNewStringUTF): Removed.
6157 * include/cni.h (JvNewStringUTF): New function.
6158 (_Jv_NewStringUTF): Declare as `extern "C"'.
6159 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6161 * java/lang/natDouble.cc: Added copyright info and header
6162 comment. Include <stdlib.h>.
6163 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
6164 bytes as are chars in string.
6166 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
6168 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6172 * java/lang/System.java (init_properties): Now native.
6173 * java/lang/natSystem.cc (init_properties): New method.
6174 Include java/util/Properties.h.
6176 * Makefile.in: Rebuilt.
6177 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6178 OutputStreamWriter.h, ByteArrayInputStream.h,
6179 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6180 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6181 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6182 Properties.h, Hashtable.h, Dictionary.h.
6185 * include/javaprims.h (java::io): Added Reader, Writer,
6186 InputStreamReader, OutputStreamWriter,
6187 UnsupportedEncodingException, ByteArrayInputStream,
6188 ByteArrayOutputStream, EOFException, SyncFailedException,
6189 PushbackInputStream.
6190 (java::lang): Added Cloneable.
6191 (java::util): Added NoSuchElementException, VectorEnumeration,
6192 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6194 * java/io/PipedReader.java: New file.
6196 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6198 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6201 * java/io/io-defs.h: Removed.
6203 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6204 (FileInputStream): Use new constructor. Can throw IOException.
6206 * java/lang/System.java (getProperty): Don't throw
6207 NullPointerException.
6209 * java/io/RandomAccessFile.java: Rewrote from scratch.
6211 * java/io/natFileDescriptor.cc: Include EOFException.h.
6213 (length): New method.
6214 (getFilePointer): New method.
6216 (available): New method.
6217 * java/io/FileDescriptor.java (SET, CUR): New constants.
6218 (seek, length, getFilePointer, read, available): New decls.
6220 * java/io/PipedWriter.java: New file.
6221 * java/io/StringWriter.java: New file.
6222 * java/io/CharArrayWriter.java: New file.
6223 * java/io/CharConversionException.java: New file.
6224 * java/io/BufferedWriter.java: New file.
6225 * java/io/FilterWriter.java: New file.
6226 * java/io/FileWriter.java: New file.
6228 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6229 OutputStreamWriter.h, NullPointerException.h,
6230 ByteArrayInputStream.h, InputStreamReader.h.
6231 (getBytes): New method.
6232 (init): Throw NullPointerException.
6233 (init): New function.
6234 * java/lang/String.java (getBytes): Added missing decl.
6235 (getBytes): New method.
6236 (String): Added byte[]-based constructors.
6237 (copyValueOf): Wrote.
6238 (init): Declare variant which takes byte array and encoding.
6239 Import java.io.UnsupportedEncodingException.
6241 * java/io/File.java: Rewrote from scratch.
6242 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6243 * java/io/FileDescriptor.java: Rewrote from scratch.
6244 * java/io/FilenameFilter.java: Rewrote from scratch.
6246 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6248 * java/io/SyncFailedException.java: New file.
6249 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6250 * java/io/InterruptedIOException.java: Rewrote from scratch.
6251 * java/io/FileNotFoundException.java: Rewrote from scratch.
6252 * java/io/EOFException.java: Rewrote from scratch.
6253 * java/io/IOException.java: Rewrote from scratch.
6254 * java/io/PrintStream.java: Rewrote from scratch.
6255 * java/io/DataOutputStream.java: Rewrote from scratch.
6256 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6257 * java/io/FilterOutputStream.java: Rewrote from scratch.
6258 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6259 * java/io/PipedOutputStream.java: Rewrote from scratch.
6260 * java/io/FileOutputStream.java: Rewrote from scratch.
6261 * java/io/OutputStream.java: Rewrote from scratch.
6262 * java/io/DataOutput.java: Rewrote from scratch.
6264 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6266 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6268 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6270 * configure.in: Add --enable-libjava-debug
6272 * Makefile.am (nat_headers): Add java/lang/Float.h and
6275 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6277 * Makefile.in, configure, include/config.h.in: Rebuilt.
6279 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6281 * java/lang/Float.java: Rewritten
6282 * java/lang/Double.java: Rewritten
6283 * java/lang/natFloat.cc: toString() added.
6284 * java/lang/natDouble.cc: toString() added.
6285 * java/lang/natDouble.cc: doubleValueOf() added.
6286 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6287 java/lang/strtod.c: added.
6288 * ieeefp.h: __sparc added.
6289 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6291 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6293 * include/javaprims.h (java::lang): Added
6294 CloneNotSupportedException.
6296 * java/lang/Object.java (clone): No longer native. Implemented.
6297 * java/lang/natObject.cc (clone): Removed.
6299 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6301 * prims.cc: Don't make definitions `extern "C"'.
6302 (_Jv_RegisterClass): Renamed from registerClass.
6303 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6304 (_Jv_NewArray): Likewise.
6305 (_Jv_NewMultiArray): Likewise.
6306 (_Jv_CheckCast): Likewise.
6307 (_Jv_LookupInterfaceMethod): Likewise.
6308 (_Jv_CheckArrayStore): Likewise.
6309 (_Jv_RegisterClass): Likewise.
6311 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6312 * configure: Rebuilt.
6313 * configure.in: Don't check for fmod; it is provided by the fdlibm
6315 * prims.cc (fmod): Removed.
6317 * java/lang/natString.cc (charAt): Use _Jv_uint.
6318 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6319 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6320 (equalUtf8Consts): Likewise.
6321 (internalAddClass): Use _Jv_uint.
6322 (processClass): Likewise.
6323 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6324 (_Jv_uint): Renamed from uint32.
6325 (struct _Jv_Utf8Const): Changed members to use new type names.
6327 * configure: Rebuilt.
6328 * configure.in: Don't check for memcpy. Require memmove and a way
6330 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6332 (currentTimeMillis): Don't use #error.
6334 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6336 * java/lang/Math.java: static member random renamed to random_ to
6337 avoid conflict with member function of the same name.
6338 * include/javaprims.h: java.util.Random added.
6340 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6342 * include/java-chartables.h: Regenerated.
6343 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6346 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6348 * java/lang/Math.java: Rewritten.
6349 * java/lang/natMath.cc: New file.
6350 * Files added from fdlibm:
6351 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6352 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6353 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6354 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6355 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6356 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6357 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6358 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6359 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6360 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6361 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6362 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6363 java/lang/k_cos.c, java/lang/sf_ceil.c,
6364 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6365 java/lang/ieeefp.h, java/lang/fdlibm.h
6366 * Makefile.am: rules added for compiling C files from fdlibm.
6368 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6370 * chartables.pl: Minor documentation fixes.
6372 * configure: Rebuilt.
6373 * configure.in: Fixed --help output for --enable-fast-character.
6375 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6377 * configure: Rebuilt.
6378 * configure.in: Recognize --enable-fast-character.
6379 * acconfig.h (COMPACT_CHARACTER): New define.
6380 * include/config.h.in: Rebuilt.
6381 * include/java-chartables.h: New file.
6382 * Makefile.in: Rebuilt.
6383 * Makefile.am (nat_files): Added natCharacter.o.
6384 * java/lang/natCharacter.cc: New file.
6385 * chartables.pl (set_attribute): New function.
6386 (@attributes, @second_attributes): New globals.
6387 ($ROMAN_START, $ROMAN_END): Likewise.
6388 (process_char): Call set_attribute when required.
6389 (print_char): Just print hex value.
6390 (print_block): Generate C++ syntax.
6391 (print_numerics): Likewise.
6392 (print_single_map): Likewise.
6393 (print_all_block): Likewise.
6394 (print_case_table): Likewise.
6395 (print_fast_tables): New function.
6396 Generate C++ code suitable for a header file.
6397 * java/lang/Character.java (table_search): Removed.
6398 (digit_value): Now native.
6399 (getNumericValue): Likewise.
6400 (getType): Likewise.
6401 Removed all automatically-generated tables.
6402 (Tamil_Digit_One): Removed.
6403 (isSpaceChar): Now native.
6404 (isTitleCase): Likewise.
6405 (isLowerCase): Likewise.
6406 (isUpperCase): Likewise.
6407 (toLowerCase): Likewise.
6408 (toTitleCase): Likewise.
6409 (toUpperCase): Likewise.
6410 (isDefined): Fixed sense of test.
6412 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6414 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6416 (regionMatches): Likewise.
6418 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6420 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6422 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6424 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6427 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6430 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6432 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6434 * prims.cc (instanceof_class): Removed.
6435 (instanceof_array): Likewise.
6436 (instanceof): Likewise.
6437 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6438 (_Jv_CheckCast): Likewise.
6439 * java/lang/natClass.cc (isAssignableFrom): New method.
6440 * java/lang/Class.java (isAssignableFrom): Now native.
6442 * include/cni.h (JvThrow): Use `extern inline'.
6443 (JvAllocObject): Likewise.
6444 (JvInitClass): Likewise.
6446 * java/lang/natSystem.cc (arraycopy): Only check class of source
6449 * prims.cc (_Jv_CheckArrayStore): Wrote.
6450 (_Jv_MonitorEnter): Prefer `JvThrow'.
6451 Include ArrayStoreException.h.
6452 (_Jv_CheckCast): Indentation cleanup.
6454 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6456 * chartables.pl: New file.
6457 * java/lang/Character.java: Rewrote from scratch.
6459 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6461 * java/lang/ArithmeticException.java,
6462 java/lang/ArrayIndexOutOfBoundsException.java,
6463 java/lang/ArrayStoreException.java,
6464 java/lang/ClassCastException.java,
6465 java/lang/ClassNotFoundException.java,
6466 java/lang/CloneNotSupportedException.java,
6467 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6468 java/lang/IllegalArgumentException.java,
6469 java/lang/IllegalMonitorStateException.java,
6470 java/lang/IllegalThreadStateException.java,
6471 java/lang/IndexOutOfBoundsException.java,
6472 java/lang/InstantiationException.java,
6473 java/lang/InterruptedException.java,
6474 java/lang/NegativeArraySizeException.java,
6475 java/lang/NoSuchMethodException.java,
6476 java/lang/NullPointerException.java,
6477 java/lang/NumberFormatException.java,
6478 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6479 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6481 * java/lang/IllegalStateException.java,
6482 java/lang/NoSuchFieldException.java,
6483 java/lang/UnsupportedOperationException.java: Created.
6485 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6487 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6488 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6490 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6492 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6494 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6496 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6498 * Makefile.in: Rebuilt.
6500 * include/javaprims.h (java::lang): Added
6501 StringIndexOutOfBoundsException.
6503 * java/lang/String.java: Added header comment and FIXME comment for
6504 missing constructors/methods.
6505 (endsWith): Adjusted offset into string to look at just the last chars.
6506 Commented out undocumented method.
6508 * java/lang/natString.cc: Added includes for
6509 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6510 (String::init): Throw StringIndexOutOfBoundsException.
6511 (String::charAt): Throw StringIndexOutOfBoundsException.
6512 (String::substring): Throw StringIndexOutOfBoundsException.
6513 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6514 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6515 (String::compareTo): Return difference/offset between chars/strings.
6517 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6519 * java/lang/Boolean.java (TYPE): Added comment.
6521 * java/lang/Byte.java (decode): Added - commented out until dependent
6522 code for Integer is written.
6523 (compareTo): JDK 1.2 methods written.
6524 (hashCode): Added comment to note that values have been verified.
6526 * java/lang/Short.java (decode): Added - commented out until dependent
6527 code for Integer is written.
6528 (compareTo): JDK 1.2 methods written.
6529 (hashCode): Added comment to note that values have been verified.
6531 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6533 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6535 * include/javaprims.h (java::lang): Added VirtualMachineError,
6537 * Makefile.in: Rebuilt.
6538 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6539 VirtualMachineError.h.
6540 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6541 (lookupArray): Likewise.
6542 (makeUtf8Const): Likewise.
6543 (_Jv_AllocObject): Likewise.
6544 (_Jv_NewObjectArray): Likewise.
6545 Include OutOfMemoryError.h.
6547 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6548 to use JvNewStringLatin1.
6550 * java/io/io-defs.h: Include java/lang/IOException.h.
6551 * Makefile.in: Rebuilt.
6552 * Makefile.am (nat_headers): Added
6553 ArrayIndexOutOfBoundsException.h,
6554 ClassFormatError.h,ClassNotFoundException.h,
6555 ClassCircularityError.h, ClassCastException.h,
6556 IncompatibleClassChangeError.h, AbstractMethodError.h,
6557 IllegalAccessError.h, LinkageError.h, Error.h,
6558 NegativeArraySizeException.h, IOException.h.
6559 * include/cni.h (SignalError): Removed declaration.
6560 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6561 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6562 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6563 (newInstance): Likewise.
6564 (forName): Likewise.
6565 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6567 (read): Use JvThrow, not SignalError.
6572 (open_read): Likewise.
6573 (open_write): Likewise.
6576 (newstr): New function.
6577 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6579 (lastModifiedUnchecked): Likewise.
6580 (lengthUnchecked): Likewise.
6581 * include/javaprims.h (sorry): Removed declaration.
6582 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6583 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6584 ClassCastException, IncompatibleClassChangeError,
6585 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6586 * prims.cc (instanceof_array): Use JvFail, not sorry.
6588 Include ArrayIndexOutOfBoundsException.h,
6589 ClassFormatError.h,ClassNotFoundException.h,
6590 ClassCircularityError.h, ClassCastException.h,
6591 IncompatibleClassChangeError.h, AbstractMethodError.h,
6592 IllegalAccessError.h, NegativeArraySizeException.h.
6593 (_Jv_ThrowBadArrayIndex): Implemented.
6594 (JvNewStringUTF): Use JvFail, not sorry.
6595 (_Jv_FindClass): Likewise.
6596 (_Jv_NewArray): Likewise.
6597 (throwException): Removed.
6598 (getClass): Use JvThrow.
6599 (processClass): Likewise.
6600 (_Jv_NewObjectArray): Likewise.
6601 (_Jv_NewMultiArray): Likewise.
6602 (_Jv_CheckCast): Likewise.
6603 (_Jv_LookupInterfaceMethod): Likewise.
6604 (SignalError): Removed.
6605 (getClass): Use _Jv_NewStringUtf8Const to create String.
6607 * java/lang/natSystem.cc (arraycopy): Throw
6608 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6610 * Makefile.in: Rebuilt.
6611 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6613 * include/java-array.h: Mention gcjh, not gjavah.
6615 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6616 (canReadUnchecked): Likewise.
6617 (canWriteUnchecked): Likewise.
6618 (isFileUnchecked): Likewise.
6619 * java/io/natFileDescriptor.cc: Don't include cni.h.
6621 * java/lang/Thread.java (run__): Declare.
6622 * java/lang/natThread.cc (run__): New method, to avoid compiler
6624 (start): Use run__, not run_.
6626 * java/io/io-defs.h: Include cni.h and jvm.h.
6628 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6630 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6631 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6632 to natString.cc (with suitable renaming, inlines etc).
6633 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6634 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6635 * java/lang/String.h: Removed - now generated using gjavah.
6636 * java/lang/String.java: Re-written from scratch. Many native methods.
6637 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6638 * java/lang/natString.cc: Many functions re-written for "compact
6639 strings" representation, or native java.lang.String methods added.
6640 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6641 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6642 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6643 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6644 * include/cni.h: Add inline method.
6645 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6646 * include/javaprims.h: Moved some stuff frm String.h.
6647 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6648 * Makefile.am (nat_header): Added Character.h and String.h.
6649 (String.h): Add new rule.
6651 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6653 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6655 * posix-threads.cc: Include cni.h, jvm.h.
6656 * quick-threads.cc: Include cni.h, jvm.h.
6657 * nogc.cc: Include cni.h, not javaprims.h.
6658 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6659 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6660 include java-assert.h.
6661 * java/lang/natSystem.cc: Include cni.h. Don't include
6663 * java/lang/natRuntime.cc: Include cni.h. Don't include
6665 * prims.cc: Rearranged #include ordering. Don't include
6666 java-array.h or java-assert.h.
6667 * boehm.cc: Include config.h, cni.h.
6668 * exception.cc: Include config.h, cni.h.
6669 * include/jvm.h: Include java-assert.h.
6670 * include/cni.h: Include java/lang/Object.h. Don't include
6671 java-threads.h or java-array.h.
6673 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6675 * java/lang/Boolean.java: Rewritten.
6677 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6679 * java/lang/natFirstThread.cc (main_func): New typedef.
6680 (run): Use main_func, not JvPrivThreadStartFunc.
6681 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6683 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6685 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6688 Can't throw Java exceptions with C++ `throw':
6689 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6690 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6691 (setPriority): Likewise.
6695 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6696 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6698 Can't catch Java exceptions from C++:
6699 * java/lang/natThread.cc (finish_): New method.
6701 * java/lang/Thread.java (run_): Rewrote in Java.
6702 (finish_): New native method.
6704 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6706 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6708 * include/javaprims.h (java::io): Added Serializable.
6710 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6712 * java/util/EmptyStackException.java,
6713 java/util/NoSuchElementException.java: Rewritten.
6715 * java/util/ConcurrentModificationException.java,
6716 java/util/MissingResourceException.java,
6717 java/util/TooManyListenersException.java: Created.
6719 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6721 * include/cni.h (JvThrow): New function.
6722 * include/javaprims.h (_Jv_Throw): Declare.
6724 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6726 * java/util/Observable.java: Rewritten.
6728 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6730 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6731 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6732 Include NullPointerException.h.
6734 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6736 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6737 assignability checks. Don't bother using memcpy.
6739 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6741 * include/quick-threads.h (JvPrivThreadWait): New function.
6742 * include/no-threads.h (JvPrivThreadWait): New function.
6743 * include/posix-threads.h (JvPrivThreadWait): New function.
6744 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6746 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6748 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6749 offsets by size of type that is being copied.
6751 * java/lang/natThread.cc (start): Don't pass `object' argument to
6753 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6754 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6756 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6757 always pass thread as object.
6758 * include/quick-threads.h, include/posix-threads.h,
6759 include/no-threads.h (JvPrivThreadStart): Removed `object'
6762 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6764 * java/util/Dictionary.java: Rewritten.
6766 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6768 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6769 (JvPrivThreadDestroy): Likewise.
6771 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6773 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6775 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6777 * java/lang/natSystem.cc: Rewrote from scratch.
6778 * java/lang/System.java: Rewrote from scratch.
6779 * java/lang/Class.h (Class): Declare isAssignableFrom.
6780 * include/javaprims.h (java::lang): Added ArrayStoreException,
6781 IndexOutOfBoundsException.
6782 * Makefile.in: Rebuilt.
6783 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6784 IndexOutOfBoundsException.h.
6785 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6786 * include/jvm.h (_Jv_HashCode): New function.
6788 * java/lang/natThread.cc (suspend): Call checkAccess.
6790 * java/lang/Thread.java (setDaemon): Call checkAccess.
6792 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6794 * java/lang/Runtime.java: Rewrote from scratch.
6795 * java/lang/natRuntime.cc: Rewrote from scratch.
6797 * nogc.cc (JvPrivGCTotalMemory): New function.
6798 (JvPrivGCFreeMemory): Likewise.
6799 (total): New global.
6800 (JvPrivAllocObj): Increment total.
6801 (JvPrivAllocArray): Likewise.
6802 (JvPrivAllocBytes): Likewise.
6803 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6804 * boehm.cc (JvPrivGCTotalMemory): New function.
6805 (sum_blocks): Likewise.
6806 (JvPrivGCFreeMemory): Likewise.
6808 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6810 * include/javaprims.h (java::lang): Added FirstThread.
6811 * java/lang/natFirstThread.cc: New file.
6812 * java/lang/FirstThread.java: New file.
6813 * prims.cc (main_signature): Removed.
6814 (main_name): Removed.
6815 #include FirstThread.h.
6816 * Makefile.in: Rebuilt.
6817 * Makefile.am (TFRIEND): Removed.
6818 (java/lang/Thread.h): Likewise.
6819 (FTFRIEND): New macro.
6820 (java/lang/FirstThread.h): New target.
6821 (nat_files): Added natFirstThread.o.
6822 (nat_headers): Added FirstThread.h.
6823 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6824 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6826 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6830 * java/lang/natThread.cc (start): Synchronize the thread.
6831 (stop): Synchronize the thread.
6833 * java/lang/ThreadDeath.java: Rewrote from scratch.
6835 * Makefile.in: Rebuilt.
6836 * Makefile.am (TGFRIEND): New macro.
6837 (java/lang/ThreadGroup.h): New target.
6838 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6840 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6842 * nogc.cc: Include config.h.
6844 * java/lang/ThreadGroup.java: Rewrote from scratch.
6846 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6848 * java/lang/Thread.java (checkAccess): Only call in to security
6849 manager if it exists.
6850 (Thread): Don't check access when creating the first thread. Add
6851 this thread to the appropriate ThreadGroup.
6853 * java/lang/natThread.cc (run_): Call uncaughtException method on
6856 * java/lang/Runnable.java: Rewrote from scratch.
6857 * java/lang/Thread.java: Updated copyright comment to correct
6860 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6862 * java/util/Random.java: Rewritten.
6864 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6866 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6867 trailing 0 in array[].
6869 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6871 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6872 and RUNTESTFLAGS from AM_MAKEFLAGS.
6873 (SUBDIRS): Conditionally include testsuite.
6874 * Makefile.in: Rebuilt.
6876 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6878 * java/lang/Object.h: Include java-assert.h.
6880 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6882 * Makefile.am: Add testsuite directory.
6883 * configure.in: Build testsuite/Makefile.
6884 * Makefile.in, configure: Rebuilt.
6886 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6888 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6889 * include/jvm.h (_Jv_StartFirstThread): Declare.
6891 * include/javaprims.h (java::lang): Added Exception,
6894 * Makefile.in: Rebuilt.
6895 * Makefile.am (nat_headers): Added NullPointerException.h,
6896 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6897 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6898 (java/lang/Thread.h): New target.
6899 (TFRIEND): New macro
6901 * include/java-assert.h (JvFail): Use 0 and not NULL.
6903 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6904 instead of assuming we are a friend of Thread.
6905 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6906 instead of assuming we are a friend of Thread.
6908 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6910 * java/lang/natThread.cc: Rewrote from scratch.
6911 * java/lang/Thread.java: Rewrote from scratch.
6912 * prims.cc (JvRunMain): Use new Thread constructor.
6913 * include/javaprims.h (java::lang): Added InterruptedException.
6914 * Makefile.in: Rebuilt.
6915 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6916 * java/lang/Thread.h: Removed.
6917 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6918 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6920 * posix-threads.cc (JvPrivThreadJoin): Removed.
6921 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6922 (really_start): Don't notify join_cond.
6923 (JvPrivThreadStart): Added `data' argument.
6924 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6925 (JvPrivThreadJoin): Likewise.
6926 Use JvFail instead of sorry.
6927 (JvPrivThreadSuspend): Removed.
6928 (JvPrivThreadResume): Removed.
6929 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6930 (JvPrivThreadJoin): Likewise.
6931 (JvPrivThreadSuspend): Use JvFail.
6932 (JvPrivThreadResume): Likewise.
6933 (JvPrivThreadSuspend): Removed.
6934 (JvPrivThreadResume): Likewise.
6935 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6936 (JvPrivThread_t): Removed join_mutex, join_cond.
6937 Use JvFail instead of sorry.
6938 (JvPrivThreadSuspend): Removed.
6939 (JvPrivThreadResume): Likewise.
6941 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6943 * java/util/Observer.java: Rewritten
6944 * java/util/Enumeration.java: Rewritten
6946 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6948 * java/util/StringTokenizer.java: Rewritten
6949 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6950 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6951 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6953 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6955 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6958 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6959 Include java-assert.h.
6960 * include/java-assert.h: New file.
6961 * prims.cc (_Jv_Abort): New function.
6962 Include java-assert.h, not assert.h.
6963 (_Jv_MonitorExit): Use JvAssert.
6964 (resolveConstants): Likewise.
6965 (processClass): Likewise.
6966 (JvRunMain): Assert that method is found.
6968 * configure: Rebuilt.
6969 * configure.in: Check for test subdir.
6970 * Makefile.in: Rebuilt.
6971 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6973 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6974 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6976 * prims.cc (resolveConstants): Removed unused variables.
6977 (processClass): Likewise.
6979 * include/quick-threads.h (JvPrivThreadCurrent): Use
6981 * quick-threads.cc (destroy_data): New function.
6982 (JvPrivInitThreads): Create key.
6983 (JvPrivThreadKey): New global.
6984 (JvPrivThreadStart): Use coop_setspecific.
6986 * include/quick-threads.h, include/posix-threads.h,
6987 include/no-threads.h, no-threads.cc, quick-threads.cc,
6988 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6990 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6992 * include/no-threads.h (JvPrivThreadInitData): Don't set
6995 * include/quick-threads.h (JvPrivCondWait): coop function now
6997 (JvPrivThreadJoin): Likewise.
6999 * java/lang/Thread.h (Thread): Updated declaration of
7001 * include/quick-threads.h, include/posix-threads.h: Updated
7002 declaration of JvPrivThreadStart.
7003 * include/no-threads.h (JvPrivThreadStart): Changed definition
7005 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
7006 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
7007 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
7009 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
7011 * quick-threads.cc (qthrow): New function.
7012 (JvPrivInitThreads): New function.
7013 (started): New global.
7014 (JvPrivThreadStart): Call coop_start if required.
7015 * include/quick-threads.h (JvPrivThreadCancel): Implement.
7016 (JvPrivThreadDestroy): Likewise.
7017 (JvPrivInitThreads): Removed.
7018 * include/posix-threads.h (JvPrivThreadCancel): Added error
7020 * java/lang/natThread.cc (stop_): Pass exception to
7023 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
7025 * include/javaprims.h (java::lang): Added
7026 IllegalArgumentException, IllegalThreadStateException, Math,
7027 NullPointerException, ThreadDeath.
7028 (java::util): Added Enumeration.
7030 * Makefile.in: Rebuilt.
7031 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
7033 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
7035 (threadsv): Renamed from threads to avoid clash in C++ header.
7036 (groupsv): Likewise.
7037 * include/no-threads.h (JvPrivThreadStart): Removed.
7038 * no-threads.cc (JvPrivThreadStart): New function.
7039 * java/lang/Thread.java (Thread): New constructor for internal use.
7040 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
7041 (Thread): Declare constructor.
7042 * prims.cc (JvRunMain): Create the initial Thread and
7044 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
7045 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
7046 Removed `daemon' argument.
7048 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
7049 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
7051 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
7053 * Makefile.in: Rebuilt.
7054 * Makefile.am (INCLUDES): Include THREADINCS.
7056 * configure: Rebuilt.
7057 * configure.in: Recognize `qt' as a threads package.
7059 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
7061 * java/util/Stack.java (pop): Null out topmost node for robustness.
7063 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
7065 * java/util/Stack.java: Rewritten.
7066 * java/util/Vector.java (isEmpty): Simplified expression.
7068 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
7070 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
7071 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
7073 * include/java-array.h (JvNewObjectArray): Created inline to
7076 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
7079 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
7081 * java/util/Vector.java: Rewritten.
7082 * java/io/Serializable.java: Created.
7084 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
7086 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
7087 Infinity is 1/0, not 1/1.
7089 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
7091 * configure: Rebuilt.
7092 * configure.in: Removed duplicate AC_ARG_WITH.
7094 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
7096 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
7098 (_Jv_InitClass): Renamed from soft_initialise_class.
7099 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
7100 (_Jv_CheckCast): Renamed from soft_checkcast.
7101 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
7102 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
7103 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
7104 * include/cni.h (JvInitClass): New function.
7105 (_Jv_InitClass): Renamed from soft_initialise_class.
7107 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
7109 * configure: Rebuilt.
7110 * configure.in (CXX): Don't set.
7111 * Makefile.in: Rebuilt.
7112 * Makefile.am (AM_CXXFLAGS): New macro.
7114 * Makefile.in: Rebuilt.
7115 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
7116 nogc.o): New target.
7118 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
7120 (mark_array): Likewise.
7122 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
7124 * java/lang/Class.h (JvMethod): Removed some unused fields.
7125 (JvField.info): Removed unused idx union variant.
7127 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
7129 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
7132 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
7134 * configure.in, configure (CXX): Add -fvtable-thunks.
7136 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
7138 * java/lang/Object.java (finalize): Move first.
7139 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
7140 (Object): Re-arrange order to match Object.java.
7142 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
7144 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
7145 * java/lang/natString.cc (hashChars): Likewise.
7147 * prims.cc (RuntimeClass): New macro.
7148 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
7150 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
7152 * Makefile.in: Rebuilt.
7153 * Makefile.am (AM_MAKEFLAGS): New macro.
7155 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
7157 * nogc.cc: Include <javaprims.h>.
7159 * Makefile.in: Rebuilt.
7160 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7162 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
7164 * exception.cc (terminate): Removed.
7165 (unexpected): Removed.
7167 * configure: Rebuilt.
7168 * configure.in: Handle case where target subdir is ".".
7170 * configure: Rebuilt.
7171 * configure.in: Compute COMPPATH based on --with-target-subdir
7172 option. Added --with-target-subdir and --with-cross-host. Use
7173 --with-cross-host to determine when a cross compiler is in use.
7175 * Makefile.in: Rebuilt.
7176 * Makefile.am (GJAVAH): Include COMPPATH.
7177 * configure: Rebuilt.
7178 * configure.in: Subst COMPPATH.
7180 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7182 * prims.cc (lockMutex): Removed.
7183 (unlockMutex): Likewise.
7184 (processClass): Lock the class using a JvSynchronize object.
7186 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7188 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7189 (gc_free_fixed): Removed.
7190 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7191 freeing old value of strhash.
7193 * exception.cc (_Jv_type_matcher): Cast first argument to
7196 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7198 * include/java-array.h (jstringArray): New type.
7199 * java/lang/natSystem.cc (setProperty): Removed.
7200 (initProperties): Directly call JvNewStringLatin1 for arguments.
7201 * java/util/natDate.cc: Include java/util/Date.h, not
7204 * java/io/FileDescriptor.java (available): No longer static.
7205 * java/lang/natDouble.cc (Double): Removed class definition.
7206 * include/javaprims.h (java::lang::Number): Declare.
7207 (java::lang::NumberFormatException): Likewise.
7208 (java::io::FilenameFilter): Likewise.
7209 (java::lang::Character): Likewise.
7210 (java::lang::Error): Likewise.
7211 (java::lang::SecurityManager): Likewise.
7212 (java::util::Vector): Likewise.
7213 (java::io::FileNotFoundException): Likewise.
7214 (java::io::IOException): Likewise.
7215 (java::lang::NativeLang): Likewise.
7216 (java::lang::UnsatisfiedLinkError): Likewise.
7217 (java::util::StringTokenizer): Likewise.
7218 (java::io::InputStream, java::io::OutputStream): Likewise.
7219 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7220 (java::util::Hashtable): Likewise.
7221 * Makefile.in: Rebuilt.
7222 * Makefile.am (nat_headers): Added java/lang/Double.h,
7223 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7224 (MOSTLYCLEANFILES): Added nat_headers.
7225 * include/jvm.h: Moved many defines, declarations, and functions
7226 to java/lang/Class.h.
7227 (struct JvSyncInfo): Moved to java/lang/Object.h.
7228 (UTF8_GET): Moved to java/lang/String.h.
7230 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7232 * java/io/io-defs.h: Don't include java-io.h.
7233 * include/java-io.h: Removed.
7234 * include/javaprims.h: Include java::io.
7236 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7238 * include/java-io.h (File): Removed
7239 (FileDescriptor): Likewise.
7241 * java/io/io-defs.h: Include java/io/File.h and
7242 java/io/FileDescriptor.h.
7244 * Makefile.in: Rebuilt.
7245 * Makefile.am (GJAVAH): New macro.
7246 (.class.h): New rule.
7247 (SUFFIXES): Added .h.
7248 (nat_headers): New macro.
7249 ($(nat_headers)): New target.
7250 (BUILT_SOURCES): Added nat_headers.
7252 * include/java-util.h: Removed.
7254 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7256 * include/java-io.h: Changed to avoid java-lang.h.
7257 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7259 * java/lang/natSystem.cc: Include java/lang/System.h, not
7261 * java/lang/natString.cc: Include java/lang/String.h, not
7263 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7265 * java/lang/natClass.cc: Include java/lang/Class.h, not
7267 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7269 * java/lang/natObject.cc: Include java/lang/Object.h, not
7271 * exception.cc: Don't include java-lang.h.
7272 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7273 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7274 * nogc.cc: Don't include java-lang.h.
7275 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7276 * prims.cc (processClass): Don't use `init_type'; just cast to
7278 Include java/lang/Class.h and jvm.h, not java-lang.h.
7279 (JvAllocObject): Wrote single-argument version.
7280 (PrimClass): Inherit from Class.
7281 (initPrimClass): Removed.
7282 * include/java-lang.h: Removed.
7283 * include/jvm.h: Declare struct _dispatchTable.
7284 * include/cni.h: Don't declare _Jv_MonitorEnter,
7285 _Jv_MonitorExit, struct _dispatchTable.
7286 * include/javaprims.h: Moved all typedefs here, from cni.h.
7287 * java/lang/Class.h: New file.
7288 * include/java-array.h: New file.
7289 * java/lang/Object.h: New file.
7291 * prims.cc (classFromSig): Now static.
7293 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7295 * include/cni.h: Don't mention soft_new.
7296 * include/java-lang.h (Object): Don't mention soft_new. Mention
7297 _Jv_NewPrimArray, not newPrimArray.
7298 * prims.cc (soft_new): Removed.
7299 (_Jv_NewArray): Renamed from soft_newarray.
7300 (soft_anewarray): Use JvNewObjectArray.
7301 (newArray): Likewise.
7302 (newRefArray): Removed.
7303 (_Jv_NewPrimArray): Renamed from newPrimArray.
7304 (equalUtf8Consts): Now static.
7305 (soft_instanceof): Removed.
7306 * java/lang/natDouble.cc (doubleToString): Now static.
7308 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7309 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7312 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7314 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7316 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7318 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7319 (JvPrivMutexUnlock): Likewise.
7320 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7321 Return value now jint.
7322 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7325 * Makefile.in: Rebuilt.
7326 * Makefile.am: Don't allow `jV' names.
7327 (maintainer-check): Depend on libjava.a.
7328 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7330 * Makefile.in: Rebuilt.
7331 * Makefile.am (NM): New macro.
7332 (maintainer-check): New target.
7334 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7336 * configure: Rebuilt.
7337 * configure.in: Use --enable-threads, not --enable-gc. Fix
7338 documentation for --enable-threads. Changed option to work like
7339 identical option in gcc/configure.
7341 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7343 * boehm.cc (mark_array): Use JvGetArrayLength.
7345 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7347 * exception.cc: New file (mostly written by Andrew MacLeod),
7348 exception handling support.
7349 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7350 Remove -fexceptions - it is now the default.
7352 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7353 (JvAllocObject): Renamed to _Jv_AllocObject.
7354 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7355 (loadClass): Renamed to _Jv_FindClass.
7356 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7357 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7358 * include/java-lang.h (JvGetArrayLength): New CNI function.
7359 * include/jvm.h (_Jv_FindClass): Added declaration.
7361 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7363 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7365 * java/lang/natClass.cc (getName): Add implementation.
7366 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7368 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7370 * Makefile.in: Rebuilt.
7371 * Makefile.am (.class.o): Added -fexceptions.
7373 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7375 * configure: Rebuilt.
7376 * configure.in: Don't check for __nanosleep.
7377 * posix-threads.cc (nanosleep): Never define.
7379 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7381 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7384 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7386 * java/lang/natThread.cc (enumerate): Uncommented.
7387 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7388 (interrupt): Call it.
7390 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7392 * configure: Rebuilt.
7393 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7395 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7397 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7398 * include/java-lang.h (Thread): Added `interrupted_' method.
7399 * java/lang/Thread.java (interrupted_): New method.
7400 * java/lang/natThread.cc (join): Possibly throw interrupted
7401 exception after join finishes.
7402 (interrupted_): New method.
7403 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7405 (JvPrivThreadJoin): New function.
7406 (really_start): Notify all threads waiting for this thread.
7407 (struct starter): Added `data' member.
7408 (JvPrivThreadStart): Set it.
7409 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7411 (JvPrivThreadJoin): No longer inline.
7412 (JvPrivThreadInterrupt): New function.
7414 * include/no-threads.h (JvPrivThreadSleep): Removed.
7415 * posix-threads.cc (JvPrivThreadSleep): Removed.
7417 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7419 * configure: Rebuilt.
7420 * configure.in (THREADOBJS): Initialize to no-threads.o in
7422 * posix-threads.cc (key): New global.
7423 (JvPrivInitThreads): New function.
7424 (really_start): Set thread-specific data to point to object.
7425 (JvPrivThreadStart): Added `daemon' argument.
7426 (JvPrivThreadSleep): Added `data' argument.
7427 * include/posix-threads.h (JvPrivInitThreads): Removed
7429 (JvPrivThreadCurrent): New function.
7430 * include/no-threads.h (JvPrivThreadInitData): Initialize
7431 JvPrivOnlyThread. Added `thread' argument.
7432 (JvPrivThreadCurrent): New function.
7433 (JvPrivThreadStart): Added `daemon' argument.
7434 * no-threads.cc: New file.
7435 * java/lang/natThread.cc (init_data): New function.
7437 (start): Set `alive' member.
7438 (stop_): Clear `alive' member.
7439 (destroy): Likewise.
7440 (currentThread): Implemented.
7441 (start): Pass `daemon' argument to JvPrivThreadStart.
7443 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7444 (Thread): Added `init_data' method.
7445 * java/lang/Thread.java (alive, data): New instance variables.
7446 (init_data): New private method.
7447 (isAlive): No longer native.
7449 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7451 * include/java-lang.h (JvRunMain): Declare.
7452 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7453 * prims.cc (JvRunMain): New function.
7454 (main_signature, main_name): New globals.
7456 * boehm.cc (mark_array): Use `elements' function and not
7457 operator[] on jarray.
7459 * posix-threads.cc: Include <config.h>. Define nanosleep if
7462 * configure: Rebuilt.
7463 * configure.in: Check for _nanosleep.
7465 * configure: Rebuilt.
7466 * configure.in: Check for pthread_mutexattr_settype.
7468 * include/cni.h (class JvSynchronize): New class.
7469 * java/lang/Thread.java (sleep): Throws InterruptedException.
7470 (join): Throws InterruptedException.
7471 (resume): Not native.
7472 (resume_): New method.
7473 (start): Now synchronized.
7474 (stop_): New method.
7475 (Thread): Synchronize when accessing threadNumber.
7477 * java/lang/natThread.cc (throwException): New macro.
7478 (sleep): Throw InterruptedException.
7481 * include/java-lang.h (Runtime): Added interrupted().
7483 * boehm.cc (call_finalizer): Correctly initialize jobj.
7484 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7486 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7489 * configure: Rebuilt.
7490 * configure.in: Added support for --disable-threads.
7491 * include/no-threads.h: New file.
7493 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7495 * Makefile.in: Rebuilt.
7496 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7497 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7498 (libjava_a_LIBADD): Added THREADOBJS.
7499 * configure: Rebuilt.
7500 * configure.in: Added --with-threads option.
7501 * posix-threads.cc: New file.
7502 * include/posix-threads.h: New file.
7503 * include/java-lang.h (Object): Added static member sync_mutex,
7504 member sync_info, method init_mutex.
7505 (struct JvSyncInfo): New struct.
7506 Include "java-threads.h".
7507 * prims.cc (soft_monitorenter): Wrote.
7508 (soft_monitorexit): Likewise.
7509 * java/lang/natObject.cc (init_mutex): New method.
7513 (sync_mutex): Define.
7514 Include "java-threads.h".
7516 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7518 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7519 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7521 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7523 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7524 Added extern "Java" in places to tell G++ Object is a "Java" type.
7525 Other minor renaming and fixes.
7526 * include/java-io.h (FileDescriptor): Add friend class declarations.
7527 G++ no longer allows non-Java types in method parameters and results
7528 of Java classes. Converted most offending methods to friends.
7529 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7530 * java/lang/natSystem.cc (setProperty): Make friend.
7531 * java/lang/natString.cc, include/java-lang.h (String): Rename
7532 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7533 * include/java-lang.h (JArray): Remove getData and eoprator[].
7534 Add elements friend function instead.
7535 * java/lang/natSystem.cc (arraycopy): Use elements function.
7536 * java/io/natFileDescriptor.cc (read, write): Likewise.
7537 * include/java-lang.h (Object): Remove unused make method.
7538 (System::setProperty(char*,char*)): Turn into friend function.
7539 (Class): Rename newObject by JvAllocObject.
7540 * prims.cc: Update to use JvAllocObject, and elements.
7542 * java/lang/natDouble.cc: Fix double -> jdouble.
7544 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7546 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7548 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7550 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7551 * include/java-lang.h (Runtime): finalize_on_exit and
7552 runFinalizersOnExit now static.
7553 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7555 (finalize_on_exit): Now static.
7557 * boehm.cc (mark_obj): Get class using getClass() method on
7559 (_dispatchTable): Removed.
7561 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7563 * java/io/natFileDescriptor.cc (open_read): Only call open if
7565 (open_write): Likewise.
7567 * Makefile.in: Rebuilt.
7568 * Makefile.am ($(nat_files)): Depend on config.h.
7570 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7572 * prims.cc (ObjectClass): Now a macro; updated for new class name
7574 (StringClass): Likewise.
7575 (ClassClass): Likewise.
7577 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7579 * java/io/natFileDescriptor.cc (available): Do nothing unless
7580 HAVE_SELECT defined.
7581 * java/util/natDate.cc (setTime): Conditional on
7583 (toString): Conditional on HAVE_TIME.
7584 * aclocal.m4, configure: Rebuilt.
7585 * acinclude.m4: New file.
7586 * configure.in: Don't actually call AM_EXEEXT. Call
7587 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7588 --with-target-subdir option. Check for select and open
7591 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7593 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7594 (call_finalizer): Likewise.
7595 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7596 * prims.cc (newObject): Pass actual method pointer to
7597 JvPrivRegisterFinalizer.
7598 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7599 (JvPrivRegisterFinalizer): Changed interface.
7601 * Makefile.in: Rebuilt.
7602 * Makefile.am (MOSTLYCLEANFILES): New macro.
7603 (CLEANFILES): Removed javao_files.
7605 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7607 * nogc.cc: New file.
7608 * Makefile.in: Rebuilt.
7609 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7610 (EXTRA_libjava_a_SOURCES): New macro.
7611 (libjava_a_SOURCES): Removed boehm.cc.
7612 (libjava_a_DEPENDENCIES): Added GCOBJS.
7613 (libjava_a_LIBADD): Likewise.
7614 * configure: Rebuilt.
7615 * configure.in: Added code for --enable-gc=TYPE.
7617 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7619 * boehm.cc (mark_array): Don't further dereference pointer from
7622 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7623 * Makefile.in: Rebuilt.
7624 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7625 one for boehm-gc build directory.
7627 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7629 * include/java-lang.h (finalize_on_exit): New instance variable in
7630 java::lang::Runtime.
7631 (runFinalizersOnExit): New method.
7632 * java/lang/Runtime.java (finalize_on_exit): New instance
7634 (runAllFinalizers_): New private method.
7635 (runFinalizersOnExit): New method.
7636 * boehm.cc (JvPrivRunFinalizers): New function.
7637 (JvPrivRunAllFinalizers): Likewise.
7638 (JvPrivRunGC): Likewise.
7639 * java/lang/natRuntime.cc: Include "jvm.h".
7640 (gc): Call JvPrivRunGC.
7641 (runFinalization): Call JvPrivRunFinalizers.
7642 (runFinalizersOnExit): New method.
7643 (exit_): Call JvPrivRunAllFinalizers if required.
7644 * include/jvm.h: Declare JvPrivRunFinalizers,
7645 JvPrivRunAllFinalizers, JvPrivRunGC.
7647 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7649 * boehm.cc (JvPrivRegisterFinalizer): New function.
7650 (call_finalizer): Likewise.
7651 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7652 * prims.cc (finalize_name): New global.
7653 (newObject): Just call other newObject.
7654 (newObject): Register finalizer if it exists.
7656 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7658 * prims.cc (gc_malloc): Removed.
7659 (makeUtf8Const): Use JvPrivAllocBytes.
7660 (lookupArray): Likewise.
7661 (newPrimArray): Likewise.
7662 (JvNewObjectArray): Use JvPrivAllocArray.
7663 (newObject): Use JvPrivAllocObj.
7664 (newObject): Likewise.
7665 Changed Method -> JvMethod everywhere.
7666 Changed Field -> JvField everywhere.
7667 * include/java-lang.h (Object): Changed type of `fields' to
7669 (jmethodID, jfieldID): New typedefs.
7670 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7672 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7674 (METHOD_NATIVECODE): Moved from java-lang.h.
7675 (class JvField): New class.
7676 (JvGetFirstInstanceField): New function.
7677 (JvFieldIsRef): Likewise.
7678 (JvGetObjectField): Likewise.
7679 (JvNumInstanceFields): Likewise.
7681 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7683 * boehm.cc: New file.
7684 * Makefile.in: Rebuilt.
7685 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7686 (INCLUDES): Added -I options to find boehm-gc files.
7688 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7690 * configure: Rebuilt.
7691 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7693 * Makefile.in: Rebuilt.
7694 * Makefile.am (nat_files): New macro.
7695 (libjava_a_DEPENDENCIES): Use it.
7696 (libjava_a_LIBADD): Likewise.
7697 ($(nat_files)): New static pattern rule.
7698 (class_files): Run separate find to find .class files.
7699 (javao_files): Compute based on class_files.
7700 (BUILT_SOURCES): New macro.
7702 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7704 * Makefile.am (java_files): New macro.
7705 (class_files): Likewise.
7706 (javao_files): Likewise.
7707 (libjava_a_DEPENDENCIES): Include $(javao_files).
7708 (libjava_a_LIBADD): Likewise.
7709 (classes.stamp): Depend on $(java_files); only recompile changed
7712 (CLEANFILES): Don't run find; use macros. Don't mention
7714 (.class.o): New target.
7715 (compiled.stamp): Removed.
7717 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7719 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7720 LineNumberReader}>java: Newly-implemented standard classes.
7722 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7724 * Makefile.in: Rebuilt.
7725 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7727 * Makefile.in: Rebuilt.
7728 * Makefile.am (hack): New macro.
7729 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7731 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7733 * include/config.h.in: New file.
7734 * include/config.h: Removed.
7735 * acconfig.h: New file.
7736 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7737 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7738 libjava_a_LIBADD): New macros.
7739 (INCLUDES): New macro.
7742 (SUFFIXES): Removed.
7744 (libjava.a): Removed.
7746 * configure: Rebuilt.
7747 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7748 Look for headers and functions we require. Create
7751 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7753 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7754 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7755 soft_lookupinterfacemethod): New functions.
7756 (PrimClass): Actually initialize the primitive classes.
7757 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7759 * include/java-util.h: Removed java::util definition.
7760 * include/cni.h: Moved java::util here and added Properties.
7761 Added more function prototypes.
7762 * include/java-lang.h: Added mroe methods and friend declarations.
7763 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7764 * include/jvm.h (strLengthUtf8): Add declaration.
7766 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7768 * java/lang/{Byte,Short,Void}.java: New classes.
7769 * java/lang/Character.java (isJavaIdentifierStart,
7770 JavaIdentifierPart): New static methods.
7771 * java/lang/Number.java (byteValue, shortValue): New methods.
7773 * java/lang/String.java (intern, hashCode): Make native.
7774 * java/lang/natString.cc: New file. Handle the string pool.
7775 * Makefile.am: Build natString.o. Use CXXFLAGS.
7777 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7778 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7779 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7780 * java/lang/System.java (setProperty): New private method.
7781 (initProperties): Take argument, and make native.
7782 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7783 (currentTimeMillis): Make more robust.
7785 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7786 * java/io/UnsupportedEncodingException.java: New exception class.
7788 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7789 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7791 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7793 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7794 * prims.cc: Added bunch of stuff.
7795 * include/cni.h: Added various definitions.
7796 * include/java-lang.h: Added Method, various friends, some macros.
7798 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7799 * java/lang/System.java (arraycopy): Make native.
7801 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7803 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7804 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7805 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7806 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7808 * java/lang/Runtime.java: Declare methods as native instead of
7810 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7811 * java/lang/System.java: Comment out some stuff, for now.
7812 * java/lang/Thread.java: Re-write. Use native methods.
7813 * java/lang/NativeLang.java: Remove most of it.
7815 * java/util/natDate.cc: Native (C++) methods for Date.
7816 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7817 * java/util/Date.java: Complete re-write.
7819 * java/io/io-defs.h: New header file.
7820 * java/io/FileDescriptor.java: Add a bunch of private methods,
7821 mostly moved from NativeIO.java and natNativeIO.cc.
7822 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7823 * java/io/File.java: Use new code.
7824 * java/io/{FileInputStream.java.FileOutputStream.java,
7825 RandomAccessFile.java}: Use new private FileDescriptor methods.
7826 * java/io/NativeIO.java: Removed, no longer used.
7828 * java/io/StreamTokenizer.java (numericChars): Make char array.
7830 * include/*.h: Various header files used by the C++ native code.
7832 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7833 New autoconf+automake-based setup.
7834 * prims.cc: New file for Java "primitives".