1 2000-02-15 Tom Tromey <tromey@cygnus.com>
3 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4 with `lib' for loadLibrary. Fixes PR gcj/150.
6 2000-02-14 Warren Levy <warrenl@cygnus.com>
8 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
10 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
14 (modPow): Rewritten to not use the naive, slow, brute force approach.
15 (isProbablePrime): Implemented.
16 (testBit): Implemented.
17 (flipBit): Implemented.
18 (getLowestSetBit): Implemented.
20 2000-02-16 Anthony Green <green@redhat.com>
22 * configure.host: Use the same options for i386 and i486 as we do
25 2000-02-12 Tom Tromey <tromey@cygnus.com>
27 * java/io/File.java (createTempFile): Use low bits from counter,
30 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
32 * THANKS: More thanks.
34 2000-02-11 Tom Tromey <tromey@cygnus.com>
36 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
37 astore instruction. From Hans Boehm.
39 2000-02-11 Warren Levy <warrenl@cygnus.com>
41 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
42 (BigInteger(String)): New constructor.
43 (not): Rewritten using version from Kawa's BitOps class.
44 (valueOf): New private methods from Kawa's BitOps class.
51 (andNot): Implemented.
52 (clearBit): Implemented.
53 (setBit): Implemented.
54 (bitCount): Implemented.
55 (toByteArray): Implemented.
57 2000-02-11 Tom Tromey <tromey@cygnus.com>
59 * java/io/File.java (nextValue): Now synchronized.
61 2000-02-10 Tom Tromey <tromey@cygnus.com>
63 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
64 * java/io/FileDescriptor.java (EXCL): New static field.
65 * java/io/File.java (tmpdir): New static field.
66 (createTempFile): New method.
67 (nextValue): New method.
68 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
71 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
72 (jboolean): Declare as an attributed int, not a bool.
73 (_Jv_func): Declare differently for C.
75 * gnu/gcj/jni/natNativeThread.cc: New file.
76 * gnu/gcj/jni/NativeThread.java: New file.
77 * java/lang/Thread.java (data): Now a RawData.
78 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
80 * Makefile.in: Rebuilt.
81 * Makefile.am (java/lang/Thread.h): New target.
82 (ordinary_java_source_files): Added NativeThread.java.
83 (nat_source_files): Added natNativeThread.cc.
84 * java/lang/natThread.cc: Include <jni.h>
85 (struct natThread): Added `jni_env' field.
86 (_Jv_GetCurrentJNIEnv): New function.
87 (_Jv_SetCurrentJNIEnv): Likewise.
88 (initialize_native): Initialize jni_env.
90 * jni.cc (ThreadGroupClass): New define.
91 (_Jv_JNI_InvokeFunctions): New structure.
92 (JNI_GetCreatedJavaVMs): New function.
94 (JNI_GetDefaultJavaVMInitArgs): New function.
95 Include NativeThread.h.
96 (NativeThreadClass): New define.
97 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
98 (_Jv_JNI_DestroyJavaVM): New function.
99 (_Jv_JNI_AttachCurrentThread): New function.
100 (_Jv_JNI_DetachCurrentThread): New function.
101 (_Jv_JNI_GetEnv): New function.
102 (JNI_CreateJavaVM): New function.
103 (_Jv_JNI_GetJavaVM): New function.
104 (_Jv_JNIFunctions): Added entry for GetJavaVM.
105 * include/jni.h (JavaVMAttachArgs): New structure.
106 (JNI_EDETACHED): New define.
107 (JNI_EVERSION): Likewise.
108 (JavaVM): Define properly.
109 (struct JNIInvokeInterface): New structure.
110 (class _Jv_JavaVM): New class.
111 (JNI_OnLoad, JNI_OnUnload): Declare.
112 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
113 JNI_GetCreatedJavaVMs): Declare.
114 (JavaVMInitArgs): New typedef.
115 (JavaVMOption): Likewise.
116 (JNI_ERR): New define.
119 2000-02-10 Andrew Haley <aph@cygnus.com>
121 * interpret.cc: Don't include fdlibm.h.
122 Replace #if with #ifdef throughout.
123 Declare extern __ieee754_fmod.
124 (continue1): Remove op_getfield, op_getstatic, op_putfield,
126 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
127 Search class hierarchy for superclass vtable.
129 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
130 off the end of a pointer list.
132 * java/lang/natThread.cc (stop): Don't abort, throw an exception
136 2000-02-09 Tom Tromey <tromey@cygnus.com>
138 * java/lang/natRuntime.cc (_load): Call add_library.
139 (loadLibraryInternal): Likewise.
141 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
142 iconv_close when handle is not NULL. Thanks to Andrew Haley.
143 (Output_iconv::finalize): Likewise.
145 2000-02-08 Tom Tromey <tromey@cygnus.com>
147 * java/util/Properties.java (setProperty): New method.
150 2000-02-07 Tom Tromey <tromey@cygnus.com>
152 * java/lang/Runtime.java (_load): Declare.
153 (load, loadLibrary): Wrote in terms of _load.
154 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
156 (loadLibrary): Likewise.
159 (loadLibrary, load): Removed.
161 * jni.cc (ThrowableClass): New define.
162 (_Jv_JNI_Throw): Check argument.
163 (_Jv_JNI_ThrowNew): Likewise.
164 (wrap_value): Don't wrap object if it is NULL.
165 (_Jv_JNI_DefineClass): Use wrap_value.
166 (_Jv_JNI_FindClass): Likewise.
167 (_Jv_JNI_GetSuperclass): Likewise.
168 (_Jv_JNI_ExceptionOccurred): Likewise.
169 (_Jv_JNI_AllocObject): Likewise.
170 (_Jv_JNI_GetObjectClass): Likewise.
171 (_Jv_JNI_NewString): Likewise.
172 (_Jv_JNI_NewStringUTF): Likewise.
173 (_Jv_JNI_NewObjectArray): Likewise.
174 (_Jv_JNI_GetObjectArrayElement): Likewise.
175 (_Jv_JNI_NewPrimitiveArray): Likewise.
176 (_Jv_JNI_ToReflectedField): Likewise.
177 (_Jv_JNI_ToReflectedMethod): Likewise.
178 (_Jv_JNI_AllocObject): Check argument.
179 (_Jv_JNI_NewObjectV): Likewise.
180 (_Jv_JNI_NewObject): Likewise.
181 (_Jv_JNI_NewObjectA): Likewise.
182 (_Jv_JNI_GetObjectClass): Likewise.
183 (_Jv_JNI_GetField): Likewise.
184 (_Jv_JNI_SetField): Likewise.
186 * interpret.cc (PUSHL): Don't use expression statement.
191 * jni.cc (add_char): Conditional on INTERPRETER.
192 (mangled_name): Likewise.
194 * include/java-interp.h (class _Jv_MethodBase): Conditional on
196 (class _Jv_JNIMethod): Likewise.
198 2000-02-04 Warren Levy <warrenl@cygnus.com>
200 * Makefile.am: Added MPN.java and BigInteger.java.
201 * Makefile.in: Rebuilt.
202 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
204 * java/math/BigInteger.java: New file. Based primarily on
205 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
207 2000-02-04 Tom Tromey <tromey@cygnus.com>
209 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
211 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
212 if the method is native.
213 * resolve.cc (ncode): Don't handle native methods.
214 (_Jv_JNIMethod::ncode): New method.
215 (_Jv_PrepareClass): Handle native methods.
216 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
217 Include AbstractMethodError.h.
218 (add_char): New function.
219 (mangled_name): Likewise.
220 * include/java-interp.h (class _Jv_JNIMethod): New class.
221 (class _Jv_MethodBase): New class.
222 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
223 (_Jv_InterpClass): Changed `interpreted_methods' field to type
226 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
227 * java/lang/natRuntime.cc (libraries_size, libraries_count,
228 libraries): New globals.
229 (add_library): New function.
230 (_Jv_FindSymbolInExecutable): New function.
232 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
235 2000-02-04 Andrew Haley <aph@cygnus.com>
237 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
238 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
239 * java/lang/natThrowable.cc (printRawStackTrace): Rename
240 printStackTrace to printRawStackTrace.
242 2000-02-03 Tom Tromey <tromey@cygnus.com>
244 * java/util/Calendar.java (toString): New method.
245 * java/util/SimpleTimeZone.java (clone): New method.
246 (toString): New method.
247 * java/util/TimeZone.java (clone): New method.
248 * java/text/SimpleDateFormat.java (clone): New method.
249 * java/text/NumberFormat.java (clone): New method.
250 (equals): New method.
251 * java/text/Format.java (clone): New method.
252 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
255 * java/text/DateFormat.java (clone): New method.
256 * java/text/Collator.java (clone): New method.
258 2000-02-03 Tom Tromey <tromey@cygnus.com>
260 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
263 2000-02-01 Tom Tromey <tromey@cygnus.com>
265 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
266 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
267 constructing the closure if the function is native.
268 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
269 a template function, #if'd out, or static.
270 Include <java-interp.h>.
272 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
274 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
276 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
277 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
279 (wrap_value): New function.
280 (_Jv_JNI_CallAnyMethodV): Use it.
281 (_Jv_JNI_CallAnyMethodA): Likewise.
282 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
283 (_Jv_JNI_GetStaticField): Likewise.
285 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
286 (_Jv_JNI_GetStaticField): Likewise.
288 2000-01-31 Tom Tromey <tromey@cygnus.com>
290 * prims.cc (_Jv_MallocUnchecked): New function.
291 (main_init): Call _Jv_JNI_Init.
292 * include/jvm.h (_Jv_MallocUnchecked): Declare.
293 (_Jv_JNI_Init): Declare.
294 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
296 (_Jv_JNI_NewGlobalRef): New function.
297 (_Jv_JNI_DeleteGlobalRef): New function.
298 (_Jv_JNI_DeleteLocalRef): New function.
299 (_Jv_JNI_conversion_call): Initialize and clear local reference
301 (_Jv_JNI_NewLocalRef): New function.
302 (struct _Jv_JNI_LocalFrame): New structure.
303 (_Jv_JNI_PushLocalFrame): New function.
304 (_Jv_JNI_EnsureLocalCapacity): New function.
305 (FRAME_SIZE): New define.
306 (_Jv_JNI_GetStringChars): Mark string, not characters.
307 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
308 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
309 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
311 (_Jv_JNI_DefineClass): Make return value a local ref.
312 (_Jv_JNI_FindClass): Likewise.
313 (_Jv_JNI_GetSuperclass): Likewise.
314 (_Jv_JNI_ExceptionOccurred): Likewise.
315 (_Jv_JNI_AllocObject): Likewise.
316 (_Jv_JNI_GetObjectClass): Likewise.
317 (_Jv_JNI_CallAnyMethodV): Likewise.
318 (_Jv_JNI_NewString): Likewise.
319 (_Jv_JNI_NewStringUTF): Likewise.
320 (_Jv_JNI_NewObjectArray): Likewise.
321 (_Jv_JNI_GetObjectArrayElement): Likewise.
322 (_Jv_JNI_ToReflectedField): Likewise.
323 (_Jv_JNI_ToReflectedMethod): Likewise.
324 (_Jv_JNIFunctions): Updated table for new functions.
325 (_Jv_JNI_Init): New function.
326 (mark_for_gc): Wrote.
327 (unmark_for_gc): Wrote.
328 * include/jni.h (struct JNINativeInterface): Removed name from
329 PopLocalFrame parameter.
330 (class _Jv_JNIEnv): Added `locals' field.
332 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
334 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
337 2000-01-30 Tom Tromey <tromey@cygnus.com>
339 * include/config.h.in: Rebuilt.
340 * acconfig.h (HAVE_ICONV): Define.
341 * configure: Rebuilt.
342 * configure.in: Check for `iconv' function.
343 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
344 no specific encoder exists.
345 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
346 no specific encoder exists.
347 * Makefile.in: Rebuilt.
348 * Makefile.am (convert_source_files): Mention Input_iconv.java and
350 (nat_source_files): Added natIconv.cc.
351 * gnu/gcj/convert/natIconv.cc: New file.
352 * gnu/gcj/convert/Input_iconv.java: New file.
353 * gnu/gcj/convert/Output_iconv.java: New file.
355 2000-01-28 Tom Tromey <tromey@cygnus.com>
357 * Makefile.in: Rebuilt.
358 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
360 2000-01-26 Tom Tromey <tromey@cygnus.com>
362 * gcj/method.h (JvNumMethods): Moved from Class.h.
363 (JvGetFirstMethod): Likewise.
364 * java/lang/Class.h (Object): Updated decl of
365 _Jv_JNI_ToReflectedField.
366 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
367 * Makefile.in: Rebuilt.
368 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
369 argument of _Jv_JNI_ToReflectedField.
370 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
372 (java/lang/reflect/Method.h): Likewise.
373 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
375 (jweak): New typedef.
376 (struct JNINativeInterface): Correctly declare remaining entries.
377 * jni.cc: Include Class.h, ClassLoader.h.
378 (_Jv_JNI_FindClass): New function.
379 (_Jv_JNI_DefineClass): New function.
380 (_Jv_JNI_conversion_call): New function.
381 (_Jv_JNI_FindClass): Use current class loader to find class.
382 (_Jv_JNI_ExceptionCheck): New function.
383 (_Jv_JNI_FromReflectedField): Now static.
384 (MethodClass): New define.
385 (_Jv_JNI_FromReflectedMethod): New function.
386 (_Jv_JNI_ToReflectedMethod): Likewise.
388 (_Jv_JNI_IsAssignableFrom): Renamed.
389 (_Jv_JNI_GetStringRegion): New function.
390 Include StringIndexOutOfBoundsException.h.
391 (_Jv_JNI_GetStringUTFRegion): New function.
392 (_Jv_JNIFunctions): Updated for new functions.
393 (_Jv_JNI_GetPrimitiveArrayCritical): New function
394 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
395 (_Jv_JNI_GetStringCritical): New function.
396 (_Jv_JNI_ReleaseStringCritical): Likewise.
397 (get_throwable): Removed.
398 (GCJ_JV_JNIENV_FRIEND): Removed.
399 (__GCJ_JNI_IMPL__): Define.
402 * resolve.cc (get_ffi_type_from_signature): Handle case where
405 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
407 * interpret.cc (run): Don't call println.
408 Don't include PrintStream.h.
410 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
411 nameIndex. Use "jint" as type for boffset.
412 * java/lang/Class.h (struct _Jv_Method): Made accflags a
414 (Class): Likewise. Also changed type of method_count,
415 vtable_method_count, size_in_bytes, field_count,
416 static_field_count, interface_count.
417 * gcj/array.h (__JArray): Made `length' a const jsize, not an
420 2000-01-21 Tom Tromey <tromey@cygnus.com>
422 * java/lang/reflect/natConstructor.cc (newInstance): Use
424 * include/jvm.h: Declare _Jv_CallAnyMethodA.
425 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
426 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
429 (invoke): Use _Jv_CallAnyMethodA.
431 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
432 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
434 (struct _Jv_Method): Added getNextMethod method.
435 (JvNumMethods): New function.
436 (JvGetFirstMethod): Likewise.
437 * gcj/field.h (JvGetFirstStaticField): New function.
438 (JvNumStaticFields): Likewise.
439 (getNextField): Renamed from getNextInstanceField.
440 (struct _Jv_Field): New method getClass.
441 * jni.cc: Wrote many new functions.
442 * include/jni.h (JNI_TRUE): Define.
443 (JNI_FALSE): Likewise.
444 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
445 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
446 jcharArray, jfloatArray, jdoubleArray): New typedefs.
447 (jfieldID, jmethodID): Likewise.
448 (JNI_COMMIT, JNI_ABORT): New defines.
449 (JNINativeMethod): New struct.
450 (struct JNINativeInterface): Correctly declared more entries.
451 (class _Jv_JNIEnv): Added `ex' member.
452 (JNI_VERSION_1_1): New define.
453 (JNI_VERSION_1_2): Likewise.
455 * boehm.cc (_Jv_MarkObj): Use getNextField, not
456 getNextInstanceField.
458 2000-01-20 Tom Tromey <tromey@cygnus.com>
460 * resolve.cc (StringClass): Removed.
461 * defineclass.cc (StringClass): Removed.
463 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
467 2000-01-19 Tom Tromey <tromey@cygnus.com>
469 * interpret.cc (PC_REGISTER_ASM): Removed.
471 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
474 * All files: Updated copyright to reflect Cygnus purchase.
476 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
478 * configure: Rebuilt.
479 * configure.in: Recognize --disable-interpreter.
481 2000-01-18 Andrew Haley <aph@cygnus.com>
483 * name-finder.cc (lookup): Check for dladdr function.
484 acconfig.h (HAVE_DLADDR): Add.
485 configure.in: Check for HAVE_DLADDR
487 include/config.h.in: Rebuilt.
489 2000-01-17 Andrew Haley <aph@cygnus.com>
491 * prims.cc (_Jv_RunMain): Set the name of this executable.
493 2000-01-17 Tom Tromey <tromey@cygnus.com>
495 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
496 when backtrace can't be computed.
498 * configure: Rebuilt.
499 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
501 * java/lang/Runtime.java (loadLibraryInternal): Declare.
502 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
503 (_Jv_FindClassInCache): Likewise.
504 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
505 (findSystemClass): Try to load class from compiled module.
507 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
508 (loadLibrary): Likewise.
509 (lt_preloaded_symbols): Define.
510 (loadLibraryInternal): New method.
511 * include/config.h.in: Rebuilt.
512 * acconfig.h (USE_LTDL): Added.
513 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
514 (INCLUDES): Added $(INCLTDL).
515 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
516 (libgcj_la_LIBADD): Likewise.
517 * aclocal.m4, configure: Rebuilt.
518 * configure.in: Added libltdl support.
520 2000-01-15 Tom Tromey <tromey@cygnus.com>
522 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
524 2000-01-14 Andrew Haley <aph@cygnus.com>
526 * java/lang/natThrowable.cc: New file.
528 * java/lang/Throwable.java (fillInStackTrace): Make native.
529 (printStackTrace): Call native method to do this.
530 (Throwable): Call fillInStackTrace.
531 (stackTrace): New variable.
533 * include/jvm.h: Add _Jv_ThisExecutable functions.
535 * prims.cc: (_Jv_execName): New variable.
536 (catch_segv): Call fillInStackTrace.
538 (_Jv_ThisExecutable): New functions.
539 (JvRunMain): Set the name of this executable.
541 * Makefile.am: Add java/lang/natThrowable.cc.
543 * Makefile.in: Rebuilt.
545 * acconfig.h: Add HAVE_PROC_SELF_EXE.
547 * configure.in: Force link with __frame_state_for in
548 FORCELIBGCCSPEC. Add new checks for backtrace.
549 * include/config.h.in: Rebuilt.
551 * name-finder.cc: New file.
552 * include/name-finder.h: New file.
554 2000-01-16 Anthony Green <green@cygnus.com>
556 * java/lang/StringBuffer.java (StringBuffer): Don't special case
559 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
561 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
563 2000-01-13 Tom Tromey <tromey@cygnus.com>
565 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
566 not system loader, as initiating loader.
568 2000-01-11 Tom Tromey <tromey@cygnus.com>
570 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
571 HP/UX. From David Scott Urban.
573 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
575 * java/lang/natMath.cc (pow): Cast args to `double', not
578 (IEEEremainder): Likewise.
579 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
580 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
582 2000-01-09 Anthony Green <green@cygnus.com>
584 * java/lang/natString.cc (init): Test for overflow condition
585 during out of bounds check.
586 (getChars): Throw StringIndexOutOfBoundsException, not
587 ArrayIndexOutOfBoundsException.
589 (regionMatches): Obey case option during string comparison.
591 * configure.host (ligcj_interpreter): New variable. Enable
592 interpreter by default on IA-32.
593 * configure.in: Examine libgcj_interpreter.
594 * configure: Rebuilt.
596 2000-01-07 Tom Tromey <tromey@cygnus.com>
598 * mauve-libgcj: Don't disable ClassTest.
600 * java/lang/natClass.cc (getClasses): Wrote.
602 2000-01-06 Tom Tromey <tromey@cygnus.com>
604 * java/lang/natClass.cc (_getConstructors): Correctly check
605 whether method name is the init name.
606 (getMethod): Look at accflags on method in `klass', not `this'.
608 2000-01-05 Tom Tromey <tromey@cygnus.com>
610 * java/lang/natClass.cc (getMethod): Compute offset relative to
611 `klass's methods table, not `this's table.
613 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
614 In unwrapping/widening case, check whether `k' is null, not
615 whether it is primitive. Initialize `num' from `argelts', not
616 `paramelts'. Correct create and pass arguments to ffi_call.
617 Don't let presence of `this' argument affect index used to look in
619 (COPY): Set appropriate element in `values' vector.
621 * java/lang/natClass.cc: Include <gcj/method.h>.
623 * java/lang/Class.h (_getMethods): Correctly declare as private,
626 * java/lang/Class.h (_getMethods): Declare.
627 * java/lang/Class.java (_getMethods): Declare.
628 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
629 (getDeclaredClasses): Always return empty array.
630 (_getMethods): New method.
632 (getDeclaredMethod): Return `rmethod'.
633 (finit_name): New global.
634 (getDeclaredMethods): Check for finit_name.
635 (_getMethods): Likewise.
636 (getMethod): Only return public methods.
638 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
639 jboolean and select correct ffi type on that basis.
640 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
641 Constructor call always has `void' return type.
643 2000-01-04 Tom Tromey <tromey@cygnus.com>
645 * java/lang/Class.h (getSignature): Updated.
646 * java/lang/Class.java (getSignature): Updated.
647 * java/lang/natClass.cc (getSignature): Added `is_constructor'
649 (getConstructor): Ensure constructor is public.
650 (_getConstructors): Check for public-ness of constructor when
651 `declared' is false, not when it is true.
653 2000-01-04 Warren Levy <warrenl@cygnus.com>
655 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
657 (receive): Set the sender's address in the DatagramPacket.
659 2000-01-04 Tom Tromey <tromey@cygnus.com>
661 * java/lang/reflect/natConstructor.cc (newInstance): Pass
662 declaring class as return_type argument to
663 _Jv_CallNonvirtualMethodA.
664 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
665 constructor case, create object and use it as `this' argument.
666 * java/lang/Class.h (_getConstructors): Declare.
667 (_getFields): Declare.
668 * java/lang/Class.java (getConstructors): Wrote.
669 (_getConstructors): New native method.
670 (getDeclaredConstructors): Wrote.
671 (_getFields): Declare new native method.
672 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
674 (getMethod): Work correctly when class is primitive.
675 (getDeclaredMethods): Likewise. Compute offset using `method',
677 (getDeclaredMethod): Likewise.
678 (getConstructor): Wrote.
679 (ConstructorClass): New define.
680 (getDeclaredConstructor): Wrote.
681 (_getConstructors): New method.
682 (_getFields): New method.
685 * Makefile.in: Rebuilt.
686 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
688 * prims.cc: Remove `#pragma implementation'.
689 * gcj/array.h: Remove `#pragma interface'.
691 * prims.cc (_Jv_equaln): New function.
692 * java/lang/Class.java (getSignature): Declare.
693 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
694 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
696 (getSignature): New method.
697 (getDeclaredMethod): Wrote.
699 Include StringBuffer.h.
700 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
701 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
703 (getSignature): Declare.
704 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
705 (_Jv_equaln): Declare.
706 (_Jv_CallNonvirtualMethodA): Declare.
707 * Makefile.in: Rebuilt.
708 * Makefile.am (nat_source_files): Added natConstructor.cc.
709 (java/lang/reflect/Constructor.h): New target.
710 * java/lang/reflect/natConstructor.cc: New file.
711 * java/lang/reflect/Constructor.java (newInstance): Now native.
712 (declaringClass): Renamed from decl_class.
713 (offset): Renamed from index.
714 (getType): New native method.
715 (getModifiers): Now native.
716 (getParameterTypes): Call getType if required.
717 (hashCode): Include hash code from declaring class.
718 (modifiers): Removed.
719 (toString): Call getType if required.
720 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
721 * java/lang/reflect/natMethod.cc (hack_call): New method.
722 Removed `#if 0' around FFI code.
723 Include <gnu/gcj/RawData.h>.
724 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
725 IllegalArgumentException when argument object and class disagree.
726 (_Jv_GetTypesFromSignature): New function.
728 (ObjectClass): New define.
729 (_Jv_CallNonvirtualMethodA): New function.
730 * java/lang/reflect/Method.java (hack_trampoline): New method.
731 (hack_call): New native method.
733 1999-12-21 Per Bothner <per@bothner.com>
735 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
736 offset in new Method.
738 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
740 * java/lang/natObject.cc (notify): Throw message with
741 IllegalMonitorStateException.
744 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
745 (isInterrupted_): New function, which does clear interrupt_flag.
746 (interrupt): Use `isInterrupted_'.
747 * java/lang/natThread.cc (interrupt): Add comment.
748 (join): Set `prev' in joiner loop.
749 Change various calls to `isInterrupted' to use `isInterrupted_'.
750 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
751 on linux. Set result to 0 on an interrupt. Test interrupted status
752 of java Thread object directly.
753 FLAG_INTERRUPTED: removed.
754 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
755 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
756 (_Jv_InitThreads): Don't block SIGINT.
757 (_Jv_ThreadWait): Don't configure SIGINT handler.
759 1999-12-21 Tom Tromey <tromey@cygnus.com>
761 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
763 1999-12-20 Tom Tromey <tromey@cygnus.com>
765 * java/lang/reflect/Modifier.java (STRICT): New constant.
766 (isStrict): New method.
767 (toString): Added `strict'.
769 1999-12-23 Anthony Green <green@cygnus.com>
771 * configure: Rebuilt.
772 * configure.in (LIBDATASTARTSPEC): Force data_start in with
775 1999-12-19 Anthony Green <green@cygnus.com>
777 * libgcjdata.c: New file.
778 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
779 * configure: Rebuilt.
780 * configure.in (LIBDATASTARTSPEC): Force data with a known name
782 * Makefile.in: Rebuilt.
783 * Makefile.am: Build libgcjdata.a.
785 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
786 * configure: Rebuilt.
787 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
790 1999-12-17 Tom Tromey <tromey@cygnus.com>
792 * java/lang/reflect/Method.java (toString): Call getType if
793 required. Partial fix for PR libgcj/111. From Per Bothner.
795 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
797 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
799 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
800 null String constructor parameter.
801 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
802 for exception messages.
803 BooleanClass: declare.
804 (setOption): Use BooleanClass instead of Class.forName() for
806 (bind): Cast 4th parameter of setsockopt to `char *' for
807 compatibility with older Solaris headers.
808 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
809 sprintf calls for exception messages.
810 BooleanClass, IntegerClass: declare.
811 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
814 1999-12-15 Tom Tromey <tromey@cygnus.com>
816 * java/lang/natSystem.cc (init_properties): Don't set user.name or
817 user.home if NO_GETUID defined. Only set user.dir if getcwd
820 * include/config.h.in: Rebuilt.
821 * acconfig.h (NO_GETUID): New define.
822 * configure.in: Rebuilt.
823 * configure.in: Define NO_GETUID in cross case. Check for getcwd
826 1999-12-08 Tom Tromey <tromey@cygnus.com>
828 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
829 where no recursive mutexes exist. Fixes PR libgcj/117.
831 1999-12-05 Anthony Green <green@cygnus.com>
833 * include/jvm.h: Declare many functions with
834 __attribute__((__malloc__)).
835 * gcj/javaprims.h: Ditto.
837 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
839 * THANKS: Giving credit where credit is due.
841 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
843 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
845 * java/lang/natString.cc (equalsIgnoreCase): return false if
846 anotherString is null.
847 * java/lang/Boolean.java (valueOf): return FALSE if argument is
850 1999-11-30 Tom Tromey <tromey@cygnus.com>
852 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
853 mutex to initialize. Initialize `count' if required.
856 1999-11-27 Per Bothner <per@bothner.com>
858 * exception.cc: Remove prototype declarations for malloc and free.
859 These clash with recent versions of glibc, which specifies `throws ()'
860 when __cplusplus is defined. Instead, #include <stdlib.h>.
862 1999-11-24 Tom Tromey <tromey@cygnus.com>
864 * prims.cc (_Jv_NewObjectArray): Use
865 _Jv_GetArrayElementFromElementType.
866 (_Jv_NewPrimArray): Likewise.
867 * java/lang/natObject.cc (clone): Use
868 _Jv_GetArrayElementFromElementType instead of sizeof.
869 * java/lang/natSystem.cc (arraycopy): Use
870 _Jv_GetArrayElementFromElementType.
871 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
874 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
876 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
877 Exception messages. PR java.net/57.
878 (bind): set SO_REUSEADDR before bind.
879 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
880 overruns. PR java.net/57.
882 1999-11-19 Tom Tromey <tromey@cygnus.com>
884 * Makefile.am (DIVIDESPEC): Removed.
885 (EXCEPTIONSPEC): Removed.
887 1999-11-19 Andrew Haley <aph@cygnus.com>
889 * Makefile.am (JCFLAGS): Add -L$(here)
891 * Makefile.in: Rebuild.
893 1999-11-18 Tom Tromey <tromey@cygnus.com>
895 * java/lang/natDouble.cc: Include <config.h>.
897 * include/config.h.in: Rebuilt.
898 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
899 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
901 * configure: Rebuilt.
902 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
903 requested by configure.host. Don't put `-D' option into
904 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
906 * configure: Rebuilt.
907 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
910 1999-11-18 Andrew Haley <aph@cygnus.com>
912 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
913 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
915 * Makefile.in: Rebuild
916 * acconfig.h: remove SJLJ_EXCEPTIONS
917 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
918 Do not AC_DEFINE SJLJ_EXCEPTIONS.
919 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
920 * gcj/Makefile.in, include/Makefile.in: rebuild.
921 * include/config.h.in: remove SJLJ_EXCEPTIONS.
923 1999-11-18 Andrew Haley <aph@cygnus.com>
925 * gij.cc (main): Rename label to prevent conflict.
927 * exception.cc (_Jv_type_matcher): Don't check the table if we're
928 using setjmp/longjmp exceptions: there isn't one.
930 1999-11-17 Andrew Haley <aph@cygnus.com>
932 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
933 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
934 (__sjthrow): Add declaration.
935 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
939 * Makefile.in: Rebuild
940 * acconfig.h: Add SJLJ_EXCEPTIONS
941 * configure.in: Add SJLJ_EXCEPTIONS
942 * configure: Rebuild.
943 * gcj/Makefile.in: Rebuild.
944 * gcj/cni.h: Add support for sjlj-exceptions.
945 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
946 * include/Makefile.in: Rebuild.
947 * include/default-signal.h: Add support for sjlj-exceptions.
949 1999-11-18 Tom Tromey <tromey@cygnus.com>
951 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
953 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
955 (method_cache): Made larger.
957 1999-11-11 Tom Tromey <tromey@cygnus.com>
959 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
960 initializing mutex. Initialize `count' when required.
962 1999-11-07 Anthony Green <green@trip.cygnus.com>
964 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
967 1999-11-05 Tom Tromey <tromey@cygnus.com>
969 * java/lang/natThread.cc (destroy): Removed incorrect comment.
971 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
973 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
974 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
977 1999-11-05 Tom Tromey <tromey@cygnus.com>
979 * java/lang/natThread.cc (stop): Removed argument name.
981 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
982 `private'; now has default access.
983 * Makefile.in: Rebuilt.
984 * Makefile.am (java/lang/ThreadGroup.h): Removed.
986 1999-11-04 Tom Tromey <tromey@cygnus.com>
988 * java/lang/natClass.cc (method_cache_count): Removed.
989 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
990 (_Jv_AddMethodToCache): Don't loop.
992 * configure.in: Removed `qt' threads case.
993 * include/quick-threads.h: Removed.
994 * quick-threads.cc: Removed.
996 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
997 (_Jv_ThreadDestroy): Likewise.
998 * include/no-threads.h (_Jv_ThreadCancel): Removed.
999 (_Jv_ThreadDestroy): Likewise.
1000 * include/posix-threads.h (struct _Jv_Thread_t): Removed
1002 (_Jv_ThreadCancel): Removed decl.
1003 (_Jv_ThreadDestroy): Removed.
1004 * posix-threads.cc (_Jv_ThreadCancel): Removed.
1005 (throw_cleanup): Removed.
1006 (really_start): Don't push or pop cleanup.
1007 (_Jv_ThreadInitData): Don't initialize `exception' field.
1008 * java/lang/Thread.java (stop): Officially unimplemented.
1009 * java/lang/natThread.cc (stop): Officially unimplemented.
1011 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1013 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
1016 1999-11-02 Tom Tromey <tromey@cygnus.com>
1018 * boehm.cc: Don't include boehm-config.h.
1020 1999-11-01 Tom Tromey <tromey@cygnus.com>
1022 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
1023 (sum_blocks): Removed.
1024 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
1026 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
1028 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
1030 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
1031 * java/io/InputStreamReader (InputStreamReader): ditto.
1033 1999-10-22 Tom Tromey <tromey@cygnus.com>
1035 * Makefile.in: Rebuilt.
1036 * Makefile.am (java/lang/ClassLoader.h): New target.
1037 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
1040 * include/java-props.h (_Jv_Compiler_Properties): Changed
1042 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
1043 * include/jvm.h (_Jv_GCSetInitialHeapSize,
1044 _Jv_GCSetMaximumHeapSize): Declare.
1045 (JvRunMain, _Jv_RunMain): Declare.
1046 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
1047 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
1048 (_Jv_GCSetMaximumHeapSize): Likewise.
1049 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
1050 (_Jv_GCSetMaximumHeapSize): Likewise.
1051 * prims.cc (parse_heap_size): New function.
1052 (_Jv_SetInitialHeapSize): Likewise.
1053 (_Jv_SetMaximumHeapSize): Likewise.
1054 (_Jv_Compiler_Properties): New global.
1055 * gij.cc (help): New function.
1056 (version): Likewise.
1057 (heap_size): Likewise.
1058 (heap_max_size): Likewise.
1059 (main): Parse arguments. Set _Jv_Compiler_Properties.
1060 Include <config.h>, <java-props.h>.
1061 (_Jv_Compiler_Properties): Removed.
1063 1999-10-18 Tom Tromey <tromey@cygnus.com>
1065 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
1067 (redirect): New static field.
1068 * java/lang/ClassLoader.java (getSystemClassLoader): Now
1070 (getVMClassLoader0): Removed.
1071 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
1072 (redirect): Removed.
1073 (getSystemClassLoader): Implemented.
1075 1999-10-16 Anthony Green <green@cygnus.com>
1077 * java/lang/ClassLoader.java (getSystemResource): Use
1078 getSystemClassLoader instead of ClassLoader.system.
1079 (getSystemResourceAsStream): Ditto.
1081 * java/lang/natClassLoader.cc (redirect): Make static and
1082 remove #ifdef INTERPRETER so it is always defined.
1083 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
1084 returns a VMClassLoader.
1086 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
1087 PropertyResourceBundle if a properties file is found before a
1088 ResourceBundle class.
1090 1999-10-15 Tom Tromey <tromey@cygnus.com>
1092 * gij.cc (main): Formatting fixes.
1093 (_Jv_Compiler_Properties): Define.
1094 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
1096 (init_properties): Set properites from _Jv_Compiler_Properties.
1097 * include/java-props.h (_Jv_Compiler_Properties,
1098 _Jv_Environment_Properties): Declare.
1100 * include/java-props.h: Added copyright.
1102 1999-10-13 Anthony Green <green@cygnus.com>
1104 * libtool-version: Catch up by incrementing current.
1106 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
1107 * configure, include/config.h.in: Rebuilt.
1108 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
1109 * configure.in: Added --disable-getenv-properties and new define
1110 `DISABLE_GETENV_PROPERTIES'.
1112 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
1113 (next_property_key): New function.
1114 (next_property_value): New function.
1115 (process_gcj_properties): New function.
1116 (JvRunMain): Call process_gcj_properties.
1117 (_JvRunMain): Ditto.
1119 * java/lang/natSystem.cc (init_properties): Set properties defined
1122 * include/java-props.h: New file.
1124 * java/lang/natSystem.cc (init_properties): Add new properties to
1125 conform with Java Product Versioning Specification.
1127 1999-10-12 Tom Tromey <tromey@cygnus.com>
1129 * configure: Rebuilt.
1130 * configure.in: Fixed test for --disable-java-net.
1132 1999-10-06 Tom Tromey <tromey@cygnus.com>
1134 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
1135 when building Canadian cross.
1136 (NATIVE): Don't define when cross-compiling.
1138 1999-10-04 Tom Tromey <tromey@cygnus.com>
1140 * java/net/natPlainSocketImpl.cc: Don't include headers if
1141 java.net is disabled.
1143 * Makefile.in: Rebuilt.
1144 * Makefile.am (ZINCS): Removed. This is defined in configure.in
1145 when needed, and must be left empty when not needed.
1147 1999-10-01 Anthony Green <green@cygnus.com>
1149 * THANKS: Refreshed from htdocs version.
1151 1999-10-01 Steve Chamberlain <sac@pobox.com>
1153 * Makefile.in: Rebuilt.
1154 * Makefile.am (ZINCS): Define
1156 * configure: Rebuilt.
1157 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1159 * java/lang/ieeefp.h: Add definitions for picoJava.
1161 1999-10-01 Tom Tromey <tromey@cygnus.com>
1163 * configure: Rebuilt.
1164 * configure.in: Set classpath when invoking gcj. Use changequote
1165 around sed invocation.
1167 * java/net/natPlainSocketImpl.cc: Stub native functions if
1168 DISABLE_JAVA_NET is defined.
1169 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1170 typo in exception string.
1171 (getTimeToLive): Likewise.
1172 Stub native functions if DISABLE_JAVA_NET is defined.
1173 * java/net/natInetAddress.cc: Stub native functions if
1174 DISABLE_JAVA_NET is defined.
1175 * configure.host: Disable java.net for mips-tx39.
1176 * configure, include/config.h.in: Rebuilt.
1177 * acconfig.h (DISABLE_JAVA_NET): Undefine.
1178 * configure.in: Added --disable-java-net and new define
1181 1999-09-30 Tom Tromey <tromey@cygnus.com>
1183 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1185 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1189 1999-09-28 Tom Tromey <tromey@cygnus.com>
1191 * configure: Rebuilt.
1192 * configure.in (PROCESS): In POSIX case, only set if not already
1194 * configure.host (PROCESS): Set in mips-tx39 case.
1196 * aclocal.m4, configure: Rebuilt.
1197 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1198 appropriate AC_PROG_ symbol.
1200 1999-09-24 Tom Tromey <tromey@cygnus.com>
1202 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1204 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1206 Fix for PR java.util/47:
1207 * configure, include/config.h: Rebuilt.
1208 * configure.in: Don't look for ctime or ctime_r.
1209 * Makefile.in: Rebuilt.
1210 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1211 * java/util/natDate.cc: Removed.
1212 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1214 (getAvailableIDs): Rewrote.
1215 (getTimeZone): Rewrote.
1216 * java/util/Date.java (toGMTString): New method.
1217 (toLocaleString): New method.
1218 (toString): Rewrote.
1220 1999-09-23 Tom Tromey <tromey@cygnus.com>
1222 * configure: Rebuilt.
1223 * configure.in: Print message when checking to see if gcj can
1224 handle -fuse-divide-subroutine.
1226 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1228 * java/lang/FirstThread.java (run0): Renamed to `run'.
1231 * prims.cc (main_init): New function.
1232 (JvRunMain): Call it.
1233 (_Jv_RunMain): Likewise.
1235 (main_init): Ignore SIGPIPE. Fixes PR 51.
1237 1999-09-22 Tom Tromey <tromey@cygnus.com>
1239 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1241 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1243 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1245 * java/text/NumberFormat.java: Check that object is a Number. If
1246 not, throw IllegialArgumentException.
1248 1999-09-21 Tom Tromey <tromey@cygnus.com>
1250 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1251 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1253 * include/posix-threads.h (_Jv_MutexDestroy): Use
1254 _Jv_PthreadGetMutex.
1255 (_Jv_MutexLock): Likewise.
1256 (_Jv_MutexUnlock): Likewise.
1258 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1259 previous patch; it too was incorrect.
1260 * java/io/PrintStream.java (PrintStream): Likewise.
1262 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1263 refer to `this' before calling superclass constructor.
1264 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1265 before calling superclass constructor.
1267 1999-09-20 Tom Tromey <tromey@cygnus.com>
1269 * configure: Rebuilt.
1270 * configure.in: Send output of `-fuse-divide-subroutine' test
1271 compilation to /dev/null.
1273 1999-09-14 Tom Tromey <tromey@cygnus.com>
1275 * include/java-insns.h: Turned constants into an enum. Added
1276 multiple-inclusion protection.
1278 1999-09-10 Tom Tromey <tromey@cygnus.com>
1280 * configure: Rebuilt.
1281 * configure.in: Build include/Makefile.
1282 * Makefile.in: Rebuilt.
1283 * Makefile.am (SUBDIRS): Added gcj and include.
1284 (install-data-local): New target.
1285 (extra_headers): New macro.
1286 * include/Makefile.in: New file.
1287 * include/Makefile.am: New file.
1289 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1290 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1292 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1293 * resolve.cc: Include config.h.
1294 * defineclass.cc: Include config.h.
1295 * include/java-interp.h: Don't include config.h.
1296 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1299 * gcj/javaprims.h: Regenerated namespace decls.
1300 * classes.pl (scan): Don't put `;' after closing brace.
1302 * Makefile.in: Rebuilt.
1303 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1304 * configure.in: Create gcj/Makefile.
1305 * gcj/Makefile.in: New file.
1306 * gcj/Makefile.am: New file.
1307 * java/lang/Object.h: Don't include any other headers.
1308 * gcj/array.h: Renamed from include/java-array.h.
1309 * gcj/field.h: Renamed from include/java-field.h.
1310 * gcj/method.h: Renamed from include/java-method.h.
1311 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1312 Updated all files to reflect new include structure.
1314 1999-09-09 Tom Tromey <tromey@cygnus.com>
1316 * configure: Rebuilt.
1317 * configure.in: Fixed typo; variable is THREADSPEC and not
1320 1999-09-08 Tom Tromey <tromey@cygnus.com>
1322 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1323 previous change and implemented a correct test in the __m_count
1326 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1329 1999-09-07 Tom Tromey <tromey@cygnus.com>
1331 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1332 code and don't set errno.
1334 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1335 not `r'. Changed `done_sleeping' to a `bool'.
1337 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1339 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1340 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1341 by another thread, rather than by the GC.
1342 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1343 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1344 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1347 1999-09-03 Tom Tromey <tromey@cygnus.com>
1349 * configure: Rebuilt.
1350 * configure.in: Check for fstat function.
1351 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1354 1999-09-02 Tom Tromey <tromey@cygnus.com>
1356 * include/java-array.h (jobjectArrayjchar): Removed unused
1359 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1360 _Jv_PrepareCompiledClass while holding class mutex.
1362 1999-09-01 Tom Tromey <tromey@cygnus.com>
1364 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1365 (_Jv_PthreadGetMutex): Use it.
1366 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1367 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1368 (_Jv_MutexLock): Likewise.
1369 (_Jv_MutexUnlock): Likewise.
1370 * include/config.h.in: Rebuilt.
1371 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1372 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1373 * configure: Rebuilt.
1374 * libgcj.spec.in: Don't mention INTERPSPEC.
1375 * configure.in (INTERPSPEC): Removed.
1376 Only run pthreads-related checks when using POSIX threads. Check
1377 for m_count and __m_count in mutex structure.
1379 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1381 * java/lang/natClass.cc: Fixed notification of threads
1382 when class initialization is complete.
1384 1999-09-01 Tom Tromey <tromey@cygnus.com>
1386 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1387 * resolve.cc: Removed constants defined by
1388 java.lang.reflect.Modifier.
1389 Include <java/lang/reflect/Modifier.h>.
1390 (_Jv_ResolvePoolEntry): Use values from Modifier.
1391 (_Jv_DetermineVTableIndex): Likewise.
1392 (_Jv_PrepareClass): Likewise.
1394 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1395 java.lang.reflect.Modifier.
1396 Include <java/lang/reflect/Modifier.h>.
1397 (checkExtends): Use values from Modifier.
1398 (checkImplements): Likewise.
1399 (handleField): Likewise.
1400 (handleConstantValueAttribute): Likewise.
1401 (handleFieldsEnd): Likewise.
1402 (handleMethod ): Likewise.
1403 (handleMethodsEnd): Likewise.
1404 (handleClassBegin): Likewise.
1405 * interpret.cc: Removed constants defined by
1406 java.lang.reflect.Modifier.
1407 (continue1): Use values from Modifier.
1408 * java/lang/natClassLoader.cc: Removed constants defined by
1409 java.lang.reflect.Modifier.
1411 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1412 JV_STATE_NOTHING, not `0'.
1413 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1415 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1416 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1418 (_Jv_PthreadGetMutex): New function.
1419 (_Jv_PthreadCheckMonitor): Use it.
1420 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1421 (_Jv_MutexLock): Update `count'.
1422 (_Jv_MutexUnlock): Likewise.
1423 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1426 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1428 * Makefile.am (.java.lo): Add rule.
1430 * Makefile.in: Rebuilt.
1432 1999-09-01 Tom Tromey <tromey@cygnus.com>
1434 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1435 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1437 (_Jv_CondNotify): Use it.
1438 (_Jv_CondNotifyAll): Likewise.
1440 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1442 1999-08-31 Tom Tromey <tromey@cygnus.com>
1444 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1447 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1449 * posix-threads.cc: Include <errno.h>.
1451 1999-08-23 Tom Tromey <tromey@cygnus.com>
1453 * boehm.cc: Undefine TRUE and FALSE.
1455 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1457 1999-08-21 Tom Tromey <tromey@cygnus.com>
1459 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1462 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1464 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1466 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1467 (HAVE_STRUCT_IP_MREQ): Added.
1468 * configure, include/config.h.in: Rebuilt.
1469 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1471 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1472 Disable if ip_mreq is not available.
1474 * configure.in: Check types ssize_t and in_addr_t.
1475 * acconfig.h: Undefine them.
1476 * configure, include/config.h.in: Rebuilt.
1478 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1479 function that detects the signature of getpwuid_r.
1480 (init_properties): Use it.
1481 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1484 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1486 * interpret.cc (continue1): Implement explicit dispatch table.
1487 insn_target: Explicit interpreter switch table.
1488 SAVE_PC: New macro, moves pc saving code into instructions that
1490 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1491 PC_REGISTER_ASM: New macro.
1492 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1493 opcode: Remove local variable.
1494 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1495 (POKEI): Use _Jv_word.
1496 (iinc): Use _Jv_word.
1497 (dupx): Change reference argument (sp) to pointer.
1500 * interpret.cc: Remove instruction timing instrumentation.
1502 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1503 comment. Don't use _Jv_ClassNameSamePackage.
1505 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1506 URLPathEntry, CacheEntry}: Removed.
1508 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1510 (.java.lo): Rule removed.
1512 * Makefile.in: Rebuilt.
1514 1999-08-19 Tom Tromey <tromey@cygnus.com>
1516 * java/lang/natThread.cc (class locker): New class.
1517 (join): Use a locker around _Jv_CondWait.
1520 1999-08-18 Tom Tromey <tromey@cygnus.com>
1522 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1523 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1525 1999-08-18 Tom Tromey <tromey@cygnus.com>
1527 * include/javaprims.h ("Java"): Regenerated namespace decls.
1529 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1531 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1532 from _Jv_InternClassStrings.
1534 * prims.cc (_Jv_RunMain): New function.
1535 (JvRunMain): Remove gij-support.
1537 * gij.cc (main): Use _Jv_RunMain.
1539 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1541 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1542 argument in temp variable.
1543 (continue1): For all op_x2y insns, use temp variable for
1544 intermediate value. Also remove some comments.
1546 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1547 (forName): Don't call _Jv_InitClass.
1549 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1551 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1553 * java/util/jar/JarInputStream.java: New file.
1555 * java/util/jar/JarEntry.java: New file.
1557 * java/util/jar/JarFile.java: New file.
1559 * java/net/URLClassLoader.java: New file.
1561 * java/net/JarURLConnection.java: New file.
1563 * gnu/gcj/protocol/jar/Handler.java: New file.
1565 * gnu/gcj/protocol/jar/Connection.java: New file.
1567 * java/security/SecureClassLoader.java: New file.
1569 * java/lang/ClassLoader.java (parent): New variable.
1570 (ClassLoader (ClassLoader)): new constructor.
1571 (findClass): New method.
1572 (loadClass): Add default 1.2 implementation.
1573 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1574 (readfully): Removed.
1576 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1577 (findSystemClass): New method.
1578 (VMClassLoader): Constructor rewritten.
1580 All other methods removed.
1582 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1583 to gnu::gcj::runtime::VMClassLoader.
1584 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1586 (VMClassLoader::findSystemClass): renamed from findBootClass.
1588 * Makefile.am: Add new files.
1589 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1591 * Makefile.in: Rebuilt.
1593 1999-08-17 Tom Tromey <tromey@cygnus.com>
1595 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1597 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1600 1999-08-16 Tom Tromey <tromey@cygnus.com>
1602 * configure: Rebuilt.
1603 * configure.in: Set DIVIDESPEC to empty string if compiler does
1604 not support -fuse-divide-subroutine.
1606 1999-08-14 Per Bothner <per@bothner.com>
1608 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1609 * java/lang/natClass.cc (initializeClass): Likewise.
1610 * java/lang/ClassLoader.java (resolveClass0): New static method.
1611 (resolveClass): Call resolveClass0.
1612 (findSystemClass): No longer static.
1614 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1616 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1618 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1620 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1623 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1625 * Makefile: Rebuilt.
1626 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1629 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1632 * configure: Rebuilt.
1633 * configure.in: Properly align --help output, fix capitalization
1635 * acinclude.m4: Likewise.
1637 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1639 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1641 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1642 (_Jv_callInterpretedMethod): Unused. Remove.
1643 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1645 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1646 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1647 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1648 * interpret.cc: use _Jv_word.
1649 * defineclass.cc: use_Jv_word.
1650 * resolve.cc: Use _Jv_word.
1651 (_Jv_ResolvePoolEntry): Return _Jv_word.
1652 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1653 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1655 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1658 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1660 * configure: Rebuilt.
1661 * configure.in (sched_yield): Try librt first, then libposix4.
1662 Add -lrt, -lposix4 to THREADSPEC.
1664 1999-08-08 Anthony Green <green@cygnus.com>
1666 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1668 1999-08-08 Anthony Green <green@cygnus.com>
1670 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1673 1999-08-08 Anthony Green <green@cygnus.com>
1677 * include/config.h.in: Rebuilt.
1678 * acconfig.h: Add INTERPRETER.
1680 * Makefile.in: Rebuilt.
1681 * Makefile.am (libffi_files): Identify the libffi object files for
1682 inclusion in libgcj.
1683 (LIBFFIINCS): Define.
1685 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1686 Dummy definition for configurations without an interpreter.
1688 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1689 java::lang::Boolean constructor.
1691 * include/java-interp.h: Always include java-cpool.h.
1693 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1694 when INTERPRETER not defined.
1696 * java/lang/Class.h (finalize): Define.
1698 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1699 IOException from File.getCanonicalPath.
1700 (getStream): Likewise.
1703 * THANKS: More thanks.
1705 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1707 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1709 (_Jv_PrepareClass): Allow non-abstract classes to
1710 have abstract subclasses.
1711 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1713 * interpret.cc (continue1/perform_invoke): Don't sign extend
1715 (continue1/lshl,lshr): Push long, not int.
1716 (continue1/ulshr): Use UINT64, not long long.
1717 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1719 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1720 * java/lang/FirstThread.java (run): Add top-level exception
1722 (run0): Renamed from run.
1724 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1726 * configure.in (--with-interpreter): Added.
1727 * include/config.h.in (INTERPRETER): Added.
1729 * java/lang/ClassLoader.java: File replaced.
1730 * java/lang/VMClassLoader.java: New file.
1731 * java/lang/natClassLoader.cc: New file.
1732 * gnu/gcj/runtime/MethodInvocation.java: New file.
1733 * gnu/gcj/util/path/SearchPath.java: New file.
1734 * gnu/gcj/util/path/PathEntry.java: New file.
1735 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1736 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1737 * gnu/gcj/util/path/URLPathEntry.java: New file.
1738 * gnu/gcj/util/path/CacheEntry.java: New file.
1739 * include/java-interp.h: New file.
1740 * include/java-cpool.h: New file.
1741 * include/java-insns.h: New file.
1742 * defineclass.cc: New file.
1743 * interpret.cc: New file.
1744 * resolve.cc: New file.
1746 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1747 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1748 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1750 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1751 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1753 (initializeClass): Use new JV_ prefixed names. Also, call
1754 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1756 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1757 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1758 JV_STATE_LINKED): New.
1759 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1760 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1761 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1762 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1763 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1764 _Jv_InterpMethodInvocation): New friends for interpreter.
1766 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1767 include/java-cpool.h and renamed with JV_ prefix.
1769 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1771 (_Jv_UnregisterClass): New decl.
1773 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1774 class loader argument.
1775 (_Jv_FindClass): Use class loader.
1777 * prims.cc (_Jv_makeUtf8Const): New function.
1778 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1779 (_Jv_NewPrimArray): Ditto.
1780 (_Jv_FindClassFromSignature): Ditto.
1781 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1782 * java/lang/reflect/natMethod.cc (getType): Ditto.
1784 * include/java-field.h (_Jv_Field::isRef): Make robust for
1785 non-resolved contexts.
1787 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1788 Also, don't mark class->next field.
1790 * java/lang/VirtualMachineError.java: Added FIXME note.
1792 * configure.in (INTERPSPEC): New spec.
1793 * libgcj.spec.in: Added INTERPSPEC.
1794 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1795 gnu/gcj/runtime/MethodInvocation.
1796 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1797 (ordinary_java_source_files): Added above mentioned java classes.
1799 * configure: Rebuilt.
1800 * Makefile.in: Rebuilt.
1802 1999-08-06 Tom Tromey <tromey@cygnus.com>
1804 * configure: Rebuilt.
1805 * configure.in: Look for sched_yield in -lrt.
1807 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1809 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1810 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1811 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1813 (toString): Print correctly when `country' is empty.
1815 1999-08-04 Per Bothner <per@bothner.com>
1817 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1819 1999-08-02 Tom Tromey <tromey@cygnus.com>
1821 * aclocal.m4, configure: Rebuilt for new libtool.
1823 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1825 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1826 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1827 * java/net/ServerSocket.java: Define ANY_IF.
1828 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1829 all network interfaces.
1830 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1831 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1833 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1835 * java/io/natFile.cc (performMkdir): Remove FIXME.
1836 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1838 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1840 * configure.in: Check for bstring.h.
1841 * configure, include/config.h.in: Rebuilt.
1842 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1843 * java/net/natPlainSocketImpl.cc: Likewise.
1845 1999-07-31 Tom Tromey <tromey@cygnus.com>
1850 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1852 * configure.in: Check for struct hostent_data and need for
1853 -D_REENTRANT for gethostbyname_r declaration.
1854 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1855 (lookup): Use hostent_data for fixed_buffer.
1856 * configure, include/config.h.in: Rebuilt.
1858 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1860 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1861 available. Don't cast memmove args to (void*).
1862 * configure.in: Do not abort if memmove is not available.
1864 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1866 * java/lang/natString.cc (substring): optimize where substring is
1868 * java/io/File.java (getName): don't return separator with file name.
1869 * java/io/natFile.cc (attr): fix overflow.
1871 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1873 * mauve-libgcj: Disable Object Serialization tests.
1875 1999-07-20 Warren Levy <warrenl@cygnus.com>
1877 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1878 Default to using PlainDatagramSocketImpl.
1879 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1881 1999-07-19 Tom Tromey <tromey@cygnus.com>
1883 * include/stamp-h.in: New file.
1885 1999-07-12 Tom Tromey <tromey@cygnus.com>
1887 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1890 1999-07-07 Andrew Haley <aph@cygnus.com>
1892 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1893 bytes to make it point after the instruction where the trap
1895 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1897 1999-07-07 Tom Tromey <tromey@cygnus.com>
1899 * mauve-libgcj: Explicitly enable formerly disabled java.text
1902 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1905 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1907 * java/net/URL.java (equals): Compare strings using String.equals.
1908 * java/net/URL.java (sameFile): Ditto.
1910 1999-07-02 Warren Levy <warrenl@cygnus.com>
1912 * configure: Rebuilt.
1913 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1914 * include/config.h.in: Rebuilt.
1915 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1916 (mcastGrp): Updated FIXME comments.
1917 (setOption): Fixed typo.
1918 (getOption):Implemented IP_MULTICAST_IF.
1920 1999-07-02 Warren Levy <warrenl@cygnus.com>
1922 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1923 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1924 (getTimeToLive): Implemented.
1925 (setOption): Implemented IP_MULTICAST_IF.
1927 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1929 * java/lang/String.java (toString): Check for this == null and throw
1930 NullPointerException.
1932 1999-07-01 Warren Levy <warrenl@cygnus.com>
1934 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1935 to count and revised comments to match.
1936 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1937 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1938 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1939 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1940 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1941 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1943 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1945 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1946 properly as count rather than outlength.
1947 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1948 output on overflow rather than buffer fill.
1949 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1950 if markPos is 0 and there is still room in the buffer.
1952 1999-07-01 Andrew Haley <aph@cygnus.com>
1954 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1955 This is a workaround for a bug in glibc's pthreads package which
1956 doesn't deliver any sigcontext information to a signal handler.
1958 1999-06-24 Tom Tromey <tromey@cygnus.com>
1960 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1961 * java/lang/fdlibm.h (HUGE): Conditionally define.
1963 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1965 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1966 * java/lang/e_log.c: Don't use __uint32_t.
1968 1999-05-27 Eric Christopher <echristo@cygnus.com>
1970 * configure: Rebuilt
1971 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1972 * acconfig.h: Rebuilt
1973 * include/config.h.in: Rebuilt
1975 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1976 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1977 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1978 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1979 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1980 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1981 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1982 and namespace collision with __uint32_t
1984 1999-06-23 Tom Tromey <tromey@cygnus.com>
1986 * java/util/zip/InflaterInputStream.java (read): Throw
1987 ZipException if inflater throws a DataFormatException.
1989 1999-06-23 Warren Levy <warrenl@cygnus.com>
1991 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1992 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1993 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1994 is not final per JDK.
1995 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1997 * java/util/zip/DataFormatException.java: Class extends Exception.
1998 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1999 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
2000 * java/util/zip/ZipInputStream.java: ditto.
2001 (closeEntry): Changed method name to match JDK spec.
2003 1999-06-21 Tom Tromey <tromey@cygnus.com>
2005 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
2008 * Makefile.in: Rebuilt.
2009 * Makefile.am (toolexeclibdir): Define as libdir when
2011 * configure: Rebuilt.
2012 * configure.in (USE_LIBDIR): New conditional.
2014 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
2016 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
2017 hostname in returned InetAddress objects.
2018 (getLocalHostname): Fix typo.
2019 * java/net/InetAddress.java (getByName): Set hostname on return
2021 (getLocalHost): Call lookup directly to ensure that a fully-qualified
2024 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
2026 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
2027 interfaces if host==NULL.
2028 (accept): Throw message with InterruptedIOException.
2029 (getOption): Cache localAddress.
2030 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
2031 'address' for DatagramSocket.
2032 (setTimeToLive): Fix compiler warnings.
2033 (getOption): Cache localAddress.
2034 * java/net/Socket.java (getLocalAddress): Don't need local
2035 InetAddress object. Add FIXME comment about calling checkConnect().
2036 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
2037 connection queue to 50 as per JDK 1.2 docs.
2038 (ServerSocket(int,int)): Listen on all network interfaces by
2039 default, per JDK 1.2 docs.
2040 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
2041 Add localAddress caching.
2043 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2045 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
2047 (write(byte[],int,int)): ditto.
2049 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
2051 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
2053 1999-06-11 Warren Levy <warrenl@cygnus.com>
2055 * mauve-libgcj: Activated java.net Mauve tests.
2057 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
2059 * java/net/natInetAddress.cc (aton): Fix typos.
2060 (lookup): Use a bigger buffer size for gethostbyname_r on all
2061 versions of glibc. Updated FIXME comment explaining this.
2062 Modified while loops to not set herr = ERANGE to work around glibc
2063 problems. Use user specified hostname in InetAddress result when
2064 available (consistent with JDK).
2066 1999-06-10 Warren Levy <warrenl@cygnus.com>
2068 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
2069 Throw FileNotFoundException instead of IOException.
2071 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
2073 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
2074 in static field name.
2075 * java/text/DecimalFormat.java: Throw IllegalArgumentException
2076 throughout rather than ParseException.
2078 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
2080 * java/lang/Runtime.java (exec): Convert prog name and arguments
2082 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
2083 environment array conversion. Preserve current environment if envp
2084 not passed. Preserve PATH unless explicitly specified.
2085 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
2086 followed by EOF. Set a flag when a line is terminated by '\r' and
2087 ignore following '\n' if set.
2089 1999-06-02 Warren Levy <warrenl@cygnus.com>
2091 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
2092 Ignore context if spec is an absolute URL. Fix braindead
2094 (hashCode): Use JDK 1.2 style algorithm.
2095 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
2096 context URL properly.
2098 1999-05-30 Anthony Green <green@cygnus.com>
2100 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
2101 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
2103 1999-05-28 Warren Levy <warrenl@cygnus.com>
2105 * java/net/DatagramSocket.java (laddr): Removed.
2106 (DatagramSocket): Removed attempts to get or set laddr if null.
2107 (getLocalAddress): Reimplemented per spec.
2108 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
2110 (joinGroup): Throw NullPointerException if any argument is null.
2111 (leaveGroup): ditto.
2112 * java/net/PlainDatagramSocketImpl.java: Updated comments.
2113 * java/net/PlainSocketImpl.java (timeout): Added.
2114 (getInputStream): Added FIXME comment on how to support timeouts
2116 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
2117 * java/net/Socket.java: Added FIXME comments to identify
2118 conflicting specs between the JCL and JDK 1.2 documents.
2119 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
2120 if host is null. Get localport value resolved by kernel if bind
2122 (receive): Implemented support for timeouts in UDP.
2123 (setOption): Implemented based on natPlainSocketImpl version.
2125 * java/net/natPlainSocketImpl.cc (bind): Get localport value
2126 resolved by kernel if bind lport is 0.
2127 (connect): Get localport value resolved by kernel if bind wasn't
2128 done to set localport.
2129 (accept): Implemented support for timeouts for ServerSocket.
2130 (setOption): Save value for SO_TIMEOUT.
2131 (getOption): Return timeout for SO_TIMEOUT.
2133 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
2135 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
2136 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
2137 (setOption): Made abstract.
2138 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
2139 to avoid cpp conflicts in native code.
2140 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
2141 cpp conflicts in native code.
2142 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
2143 * java/net/Socket.java (getLocalAddress): Implemented.
2144 (setTcpNoDelay): Implemented.
2145 (getTcpNoDelay): Implemented.
2146 (setSoLinger): Implemented.
2147 (getSoLinger): Implemented.
2148 (getSoTimeout): Verify class type.
2149 (setSendBufferSize): Implemented.
2150 (getSendBufferSize): Implemented.
2151 (setReceiveBufferSize): Implemented.
2152 (getReceiveBufferSize): Implemented.
2153 (toString): Prepended "Socket".
2154 * java/net/SocketImpl.java (toString): Rewritten.
2155 (getOption): Made abstract.
2156 (setOption): Made abstract.
2157 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2158 (setOption): Implemented.
2159 (getOption): Implemented.
2161 1999-05-26 Warren Levy <warrenl@cygnus.com>
2163 * java/net/DatagramSocket.java (DatagramSocket): Get local host
2164 address when null. Set SO_REUSEADDR for multicasts.
2165 (getSoTimeout): Implemented.
2166 (setSoTimeout): Implemented.
2167 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2168 * java/net/MulticastSocket.java (getInterface): Implemented.
2169 (setInterface): Implemented.
2170 (setTimeToLive): Check for invalid ttl.
2171 (joinGroup): Verify multicast address and security.
2172 (leaveGroup): Verify multicast address and security.
2173 (send): Implemented.
2174 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2180 (getTTL): Implemented as non-native.
2184 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2185 (getSoTimeout): Implemented.
2186 (setSocketFactory): Made synchronized.
2187 * java/net/Socket.java (setSoTimeout): Implemented.
2188 (getSoTimeout): Implemented.
2189 (close): Made synchronized.
2190 (setSocketImplFactory): Made synchronized.
2191 * java/net/SocketImpl.java: Implement SocketOptions interface.
2192 * java/net/natInetAddress.cc: Corrected module name at top of file.
2193 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2194 (bind): Added FIXME.
2195 (peek): Implemented.
2201 (setOption): Implemented for SO_REUSEADDR.
2202 (getOption): Implemented for SO_REUSEADDR.
2204 1999-05-24 Tom Tromey <tromey@cygnus.com>
2206 * java/util/ResourceBundle.java (getBundle): Throw
2207 NullPointerException if baseName is null.
2209 1999-05-22 Tom Tromey <tromey@cygnus.com>
2211 * java/util/zip/ZipInputStream.java (fill): New method.
2212 (compressed_len): New instance variable.
2213 (getNextStream): Set it.
2214 (read): Reset inflater on EOF. Only read via `super' if entry is
2216 (skip): Only skip via `super' if entry is deflated.
2217 * java/util/zip/Deflater.java (last_input_count): Removed.
2218 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2220 (needsInput): Don't use last_input_count.
2221 (setInput): Don't set last_input_count.
2222 * java/util/zip/natInflater.cc (getRemaining): Return correct
2224 (inflate): Return 0 if input array is length 0.
2225 (setInput): Don't set last_input_count.
2226 * java/util/zip/Inflater.java (last_input_count): Removed.
2228 1999-05-21 Tom Tromey <tromey@cygnus.com>
2230 * Makefile.in: Rebuilt.
2231 * Makefile.am (INCLUDES): Added $(ZINCS).
2232 * configure: Rebuilt.
2233 * configure.in (ZINCS): New subst.
2235 1999-05-21 Andrew Haley <aph@cygnus.com>
2237 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2238 to signal options to allow the same exceptions to be rethrown
2241 1999-05-20 Andrew Haley <aph@cygnus.com>
2243 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2245 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2246 (INIT_FPE): Exception string made more informative.
2247 * include/sparc-signal.h (INIT_FPE): Exception string made more
2249 * testsuite/libjava.lang/Divide_1.java: New file.
2250 * testsuite/libjava.lang/Divide_1.out: New file.
2252 1999-05-19 Tom Tromey <tromey@cygnus.com>
2254 * aclocal.m4, configure: Rebuilt.
2255 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2257 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2260 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2262 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2264 (update): Fail in default case. Always initialize `strat'.
2266 * mauve-libgcj: Enable java.util.zip.
2268 1999-05-18 Warren Levy <warrenl@cygnus.com>
2270 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2271 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2272 PlainDatagramSocketImpl.java, and SocketOptions.java.
2273 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2274 * Makefile.in: Rebuilt.
2276 * java/net/DatagramPacket.java: New file.
2277 * java/net/DatagramSocket.java: New file.
2278 * java/net/DatagramSocketImpl.java: New file.
2279 * java/net/MulticastSocket.java: New file.
2280 * java/net/PlainDatagramSocketImpl.java: New file.
2281 * java/net/SocketOptions.java: New file.
2282 * java/net/natPlainDatagramSocketImpl.cc: New file.
2284 1999-05-18 Tom Tromey <tromey@cygnus.com>
2286 * java/util/zip/ZipOutputStream.java (level): Initial value is
2287 Deflater.DEFAULT_COMPRESSION.
2288 (close): New method.
2289 (closeEntry): Likewise.
2291 (put_version): Likewise.
2292 (write_entry): Likewise.
2293 (put2, put4): Now return `int'.
2294 (comment): Default to empty string.
2295 (bytes_written): New instance variable.
2297 * java/util/zip/ZipEntry.java (setComment): Limit length of
2299 (setCrc): Check CRC validity.
2300 (setExtra): Check argument validity.
2301 (setMethod): Likewise.
2302 (setSize): Likewise.
2303 (ZipEntry): Likewise.
2304 * include/javaprims.h: Updated namespace declarations.
2305 * Makefile.in: Rebuilt.
2306 * Makefile.am (ordinary_java_source_files): Mention new files.
2307 (nat_source_files): Likewise.
2308 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2311 (getInputStream): Handle compressed entries.
2312 * java/util/zip/GZIPOutputStream.java: New file.
2313 * java/util/zip/GZIPInputStream.java: New file.
2314 * java/util/zip/DataFormatException.java: New file.
2315 * java/util/zip/CheckedInputStream.java: New file.
2316 * java/util/zip/CheckedOutputStream.java: New file.
2317 * java/util/zip/InflaterInputStream.java: Implemented.
2318 * java/util/zip/natInflater.cc: New file.
2319 * java/util/zip/Deflater.java: Implemented.
2320 * java/util/zip/natDeflater.cc: New file.
2321 * java/util/zip/DeflaterOutputStream.java: Implemented.
2323 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2324 ZipException, not IOException.
2325 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2328 1999-05-17 Tom Tromey <tromey@cygnus.com>
2330 * java/lang/natSystem.cc (init_properties): URL now points to
2333 1999-05-12 Per Bothner <bothner@cygnus.com>
2335 * java/util/Calendar.java (set): First call computeFields if needed.
2336 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2338 1999-05-12 Tom Tromey <tromey@cygnus.com>
2340 * configure: Rebuilt.
2341 * configure.in: Look for -ldl when using the Boehm collector.
2342 Look for sched_yield in -lposix4.
2344 1999-05-12 Per Bothner <bothner@cygnus.com>
2346 * java/io/File.java (mkdirs): Handle a null parent directory.
2348 1999-05-12 Tom Tromey <tromey@cygnus.com>
2350 * include/javaprims.h: Updated namespace declarations.
2351 * classes.pl (scan): Uniquify class list.
2352 * Makefile.in, configure: Rebuilt.
2353 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2354 (built_java_source_files): New macro.
2355 (nat_headers): Added built_java_source_files.
2356 (javao_files): Likewise.
2357 (EXTRA_libgcj_la_SOURCES): Likewise.
2358 (libgcj.zip): Create built class files.
2359 ($(built_java_source_files:.java=.class)): New target.
2360 (jv_convert_LDADD): Added -L$(here)/.libs.
2361 * configure.in: Create links for ConcreteProcess.java and
2362 natConcreteProcess.cc.
2363 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2364 * java/lang/natEcosProcess.cc: New file.
2365 * java/lang/EcosProcess.java: New file.
2366 * java/lang/PosixProcess.java: New file.
2367 * java/lang/natPosixProcess.cc: New file.
2369 1999-05-12 Warren Levy <warrenl@cygnus.com>
2371 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2372 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2373 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2374 (connect): Throw ConnectException.
2376 1999-05-11 Tom Tromey <tromey@cygnus.com>
2378 * Makefile.in: Rebuilt.
2379 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2380 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2383 * Makefile.in: Rebuilt.
2384 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2385 and it causes problems with libtool.
2387 * Makefile.in, configure: Rebuilt.
2388 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2389 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2390 (jv_convert_DEPENDENCIES): Added ZDEPS.
2391 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2393 (THREADSPEC): Added `-L' to point to qthreads build directory.
2397 * configure, Makefile.in: Rebuilt.
2398 * Makefile.am (toolexeclib_DATA): New macro.
2399 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2400 Recognize --with-system-zlib.
2401 (GCSPEC): New subst.
2402 (THREADSPEC): New subst.
2403 (SYSTEMSPEC): New subst.
2404 (ZLIBSPEC): New subst.
2405 * libgcj.spec.in: New file.
2407 1999-05-10 Tom Tromey <tromey@cygnus.com>
2409 * java/io/InputStreamReader.java (read): If length is 0, return
2410 0. Reset `wpos' and `wcount' when buffer has been filled and
2413 * java/util/Properties.java (save): Removed `FIXME' comment.
2414 (load): Invalid characters in \u now treated as terminators.
2415 Make sure to append character resulting from `\' handling.
2416 Cast to `char' when appending to key or value.
2417 (skip_ws): Inverted test for whitespace.
2419 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2421 (readLine): Likewise.
2422 (readFully): Implemented.
2424 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2426 * java/awt/natToolkit.cc: Added copyright header.
2427 * java/util/zip/InflaterInputStream.java: Added copyright header.
2429 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2431 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2433 (getNextStream): Likewise.
2435 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2437 (getBundle): Don't explicitly throw null pointer exception.
2439 * gnu/gcj/RawData.java: Added copyright header.
2441 * include/jni.h (_Jv_va_list): Always define as va_list.
2443 1999-05-9 Anthony Green <green@cygnus.com>
2445 * java/text/DateFormat.java (computeInstance): Separate time
2447 (getDateTimeInstance): Ditto.
2448 (getDateTimeInstance(int,int)): New method.
2450 * Makefile.in: Rebuilt.
2451 * Makefile.am (ordinary_java_source_files): Add new classes.
2453 * java/util/PropertyResourceBundle.java: New file.
2454 * gnu/gcj/util/EnumerationChain.java: New file.
2456 1999-05-07 Tom Tromey <tromey@cygnus.com>
2458 * acconfig.h (GCJVERSION): New undef.
2459 * java/lang/natSystem.cc (init_properties): Define java.version,
2460 java.class.version, os.name, os.arch, os.version.
2461 Include <sys/utsname.h> if required.
2462 * configure: Rebuilt.
2463 * configure.in: Compute and define GCJVERSION.
2465 * java/lang/natSystem.cc (default_file_encoding): Now static.
2467 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2469 * libtool-version: New file.
2470 * Makefile.in: Rebuilt.
2471 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2474 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2475 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2478 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2479 (we pick those up already).
2481 1999-05-05 Per Bothner <bothner@cygnus.com>
2483 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2484 stub classes. (This is enough to get Kawa to compile against libgcj.)
2486 * gnu/gcj/RawData.java: New class.
2487 * doc/cni.sgml: Document RawData.
2489 * java/util/zip/InflaterInputStream.java: New stub class.
2490 * java/util/zip/ZipInputStream.java: New class. Partly works.
2491 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2492 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2493 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2494 * java/util/zip/ZipOutputStream.java: Start implementation.
2496 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2497 (default_file_encoding): New global, initial value is above macro.
2498 (init_properties): Default file.encoding to default_file_encoding.
2500 * Makefile.am: Add new classes.
2502 1999-05-05 Tom Tromey <tromey@cygnus.com>
2504 * Makefile.in: Rebuilt.
2505 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2506 (clean-local): New target
2508 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2509 (load, loadLibrary): Now native.
2511 * java/lang/Runtime.java (load, loadLibrary): Now native.
2512 (init): New native method.
2513 (Runtime): Use init.
2514 * prims.cc: Include <ltdl.h> if required.
2515 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2517 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2519 * configure.in: Switch from irix threads to posix threads
2520 * configure: Regenerate.
2522 1999-04-30 Tom Tromey <tromey@cygnus.com>
2524 * Makefile.in: Rebuilt.
2525 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2527 1999-04-29 Tom Tromey <tromey@cygnus.com>
2529 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2532 * java/util/Locale.java (Locale(String,String)): Implement in
2533 terms of 3-argument version; variant now defaults to empty
2535 (toString): Assume variant is not null.
2536 (equals): Assume all strings are not null.
2537 (Locale): Throw NullPointerException if any argument is null.
2539 * java/util/ResourceBundle.java (getBundle): Don't try the base
2540 name; now implicit in partialGetBundle call.
2541 (trySomeGetBundle): Search for parent bundles and call setParent
2543 (partialGetBundle): Added `langStop' argument. Use
2544 `Locale.toString' to compute bundleName.
2545 (resource_cache): New static field.
2546 (partialGetBundle): Cache the returned resource bundle. Now
2549 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2552 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2553 * java/text/natCollator.cc (decomposeCharacter): `base' now
2555 * Makefile.in: Rebuilt.
2556 * Makefile.am (ordinary_java_source_files): Added
2557 CollationElementIterator, CollationKey, Collator,
2559 (nat_source_files): Added natCollator.cc.
2560 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2561 (compare): Pass `this' to CollationElementIterator constructor.
2562 (getCollationElementIterator): Likewise.
2563 (ceiNext): Fix off-by-one error when finding initial substring.
2564 (next): Correctly mask off bits when computing return value.
2565 Fixed return values when one string is shorter than the other.
2566 * java/text/CollationElementIterator.java (collator): New field.
2567 (CollationElementIterator): Added collator argument.
2568 (next): Call ceiNext on collator object.
2570 1999-04-26 Tom Tromey <tromey@cygnus.com>
2572 * natCollator.cc: New file.
2574 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2575 (GregorianCalendar): Use it in all constructors.
2576 * java/util/Calendar.java (Calendar): Changed argument name to
2577 `zone' to match code.
2579 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2580 * java/text/CollationKey.java: New file.
2581 * java/text/CollationElementIterator.java: New file.
2582 * java/text/Collator.java: New file.
2583 * java/text/RuleBasedCollator.java: New file.
2585 * Makefile.in: Rebuilt.
2586 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2587 (jv_convert_LDADD): Explicltly add -lm -lc.
2589 1999-04-26 Tom Tromey <tromey@cygnus.com>
2591 * configure, Makefile.in: Rebuilt.
2592 * configure.in: Added AM_PROG_LIBTOOL.
2593 (GCOBJS): Use `.lo' form of files.
2594 (THREADOBJS): Likewise.
2595 (GCDEPS): Use `.la' form of library.
2596 (GCLIBS): Set to be the same as GCDEPS.
2597 (THREADDEPS): Use `.la' form of library.
2598 (THREADLIBS): Set to be the same as THREADDEPS.
2599 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2600 toolexeclib_LIBRARIES.
2601 (libgcj_la_SOURCES): Renamed for libtoolization.
2602 (EXTRA_libgcj_la_SOURCES): Likewise.
2603 (libgcj_la_DEPENDENCIES): Likewise.
2604 (libgcj_la_LIBADD): Likewise.
2605 ($(nat_files)): Use LTCXXCOMPILE.
2606 ($(c_files)): Use LTCOMPILE.
2607 (GCJCOMPILE): New macro.
2609 (.java.o): Likewise.
2610 ($(javao_files)): Likewise.
2611 (jv_convert_LINK): Use LIBTOOL.
2612 (nat_files): Use `.lo' files.
2613 (c_files): Likewise.
2614 (javao_files): Likewise.
2615 (.class.lo): Renamed.
2616 (.java.lo): Likewise.
2617 ($(nat_files)): Depend on %.lo.
2618 ($(c_files)): Likewise.
2619 ($(javao_files)): Likewise.
2620 (jv_convert_LDADD): Link against .lo files.
2621 (jv_convert_DEPENDENCIES): Depend on .lo files.
2622 (maintainer-check): Depend on libgcj.la, but examine .a file.
2623 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2624 (libgcj_la_LDFLAGS): New macro.
2626 1999-04-23 Warren Levy <warrenl@cygnus.com>
2628 * Makefile.am: Added URLDecoder and URLEncoder.
2629 * Makefile.in: Rebuilt.
2631 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2632 setSocketImplFactory to match spec.
2633 * java/net/Socket.java (getSoLinger): Changed return type to
2636 * java/net/URLDecoder.java: New file.
2637 * java/net/URLEncoder.java: New file.
2639 1999-04-21 Tom Tromey <tromey@cygnus.com>
2641 * java/lang/natString.cc (getBytes): Reverted earlier change and
2642 applied correct fix from Per Bothner.
2644 * java/lang/String.java: Don't throw
2645 UnsupportedEncodingException.
2647 * java/lang/natString.cc (getBytes): Correctly size result
2648 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2650 1999-04-20 Andrew Haley <aph@cygnus.com>
2652 * include/sparc-signal.h: new file.
2653 * configure.in: include/sparc-signal.h added.
2654 * configure: regenerated.
2655 * prims.cc (JvRunMain): signal handling code rewritten to be more
2657 (catch_segv): ditto.
2659 * include/i386-signal.h: reorganized.
2660 * include/default-signal.h: reorganized.
2662 1999-04-19 Tom Tromey <tromey@cygnus.com>
2664 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2665 once. From Anthony Green.
2667 1999-04-19 Andrew Haley <aph@cygnus.com>
2669 * Makefile.in: Processed with new automake.
2671 1999-04-19 Tom Tromey <tromey@cygnus.com>
2673 * include/javaprims.h: Removed security namespace.
2675 1999-04-20 Anthony Green <green@cygnus.com>
2677 * java/io/PrintStream.java (println): Remove extra println.
2679 1999-04-19 Anthony Green <green@cygnus.com>
2681 * Makefile.in: Rebuilt.
2682 * Makefile.am (ordinary_java_source_files): Add new security files.
2684 * java/security/NoSuchAlgorithmException.java,
2685 java/security/MessageDigest.java: New files.
2687 * include/javaprims.h: Add security namespace.
2689 1999-04-16 Per Bothner <bothner@cygnus.com>
2691 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2692 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2693 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2694 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2695 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2696 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2697 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2698 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2699 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2700 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2701 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2702 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2703 * Makefile.am: Various changes for new files and conversions.
2705 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2706 New overloading, allows greater efficiency.
2707 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2708 New overloading (for efficiency - avoids copying).
2710 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2711 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2713 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2714 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2715 (writeChars): Don't be quite so eager to flush.
2716 * java/io/PrintStream.java: Rewrite. Now more similar to
2717 OutputStreamWriter, using explicit UnicodeToBytes converter.
2718 Also, autoflush does not need to flush so often.
2719 * java/lang/natString.cc (getBytes): More efficient algorithm.
2720 (init(jbyteArray,jint,jint,jstring)): More efficient.
2722 1999-04-15 Warren Levy <warrenl@cygnus.com>
2724 * Makefile.am (ordinary_java_source_files): Added new Connection
2725 and Handler classes in gnu.gcj.protocol.file package.
2726 * Makefile.in: Rebuilt.
2728 * gnu/gcj/protocol/file/Connection.java: New file.
2729 * gnu/gcj/protocol/file/Handler.java: New file.
2730 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2731 if doInput allows input.
2732 (getOutputStream): Check if doOutput allows output.
2733 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2735 1999-04-14 Tom Tromey <tromey@cygnus.com>
2737 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2738 buffer larger to work around bug.
2739 From Bryce McKinlay <bryce@albatross.co.nz>.
2741 1999-04-14 Andrew Haley <aph@cygnus.com>
2743 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2744 NaNs are always converted to the same long value.
2745 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2748 1999-04-13 Tom Tromey <tromey@cygnus.com>
2750 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2751 instead switch on actual element type.
2753 * Makefile.in: Rebuilt.
2754 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2756 1999-04-13 Andrew Haley <aph@cygnus.com>
2758 * include/i386-signal.h, include/default-signal.h: New files.
2759 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2761 (catch_fpe): New function.
2762 * configure.in: Make link to appropriate include/java-signal.h.
2763 * configure: Rebuilt.
2764 * Makefile.am: include/java-signal.h added to dependency list.
2765 * Makefile.in: Rebuilt.
2767 1999-04-12 Urban Widmark <urban@svenskatest.se>
2769 * java/io/DataInputStream.java (readLine): Corrected handling of
2770 empty lines, from null to "".
2772 1999-04-12 Tom Tromey <tromey@cygnus.com>
2774 * Makefile.in: Rebuilt.
2775 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2777 * java/lang/natSystem.cc (SystemClass): New define.
2778 (init_properties): Synchronize.
2780 1999-04-08 Geoff Berry <gcb@gnu.org>
2782 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2783 * natPlainSocketImpl.cc (accept): Add missing else if check
2786 1999-04-08 Tom Tromey <tromey@cygnus.com>
2788 * java/lang/Long.java (parseLong): Corrected overflow detection
2790 * java/lang/Integer.java (parseInt): Corrected overflow detection
2793 * java/io/PrintStream.java (print): Handle null string argument.
2794 (println): Likewise.
2796 1999-04-07 Warren Levy <warrenl@cygnus.com>
2798 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2799 Set count to 0 when InputStreamReader returns -1 for EOF.
2801 1999-04-07 Tom Tromey <tromey@cygnus.com>
2803 * mauve-libgcj: Omit java.text.Collator,
2804 java.text.RuleBasedCollator.
2806 1999-04-06 Tom Tromey <tromey@cygnus.com>
2808 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2809 IOException from getHttpHeaders().
2810 (getHeaderFieldKey): Likewise.
2812 * include/javaprims.h: Regenerated declarations.
2814 * Makefile.in: Rebuilt.
2815 * Makefile.am (ordinary_java_source_files): Updated for removed
2818 1999-04-06 Per Bothner <bothner@cygnus.com>
2820 * java/util/zip/Adler32.java: New class.
2821 * java/util/zip/CRC32.java: Add working method bodies.
2822 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2823 * Makefile.in: Re-generate.
2825 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2827 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2828 from version in removed www hierarchy.
2829 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2830 version in removed www hierarchy.
2832 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2833 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2834 * gnu/gcj/www/protocol/http: Removed dir.
2835 * gnu/gcj/www/protocol: Removed dir.
2836 * gnu/gcj/www: Removed dir.
2838 * java/net/HttpURLConnection.java: Revised comments to indicate
2839 missing JDK 1.2 methods.
2841 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2842 hierarchy rather than the gnu/gcj/www/protocol one.
2843 * java/net/URLConnection.java: Updated status comments.
2844 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2845 the gnu/gcj/www/content one.
2847 1999-04-06 Per Bothner <bothner@cygnus.com>
2849 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2850 The gen-from-JIS program is in $(CONVERT_DIR).
2852 1999-04-06 Tom Tromey <tromey@cygnus.com>
2854 * mauve-libgcj: Renamed from mauve-libjava.
2856 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2858 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2859 (getResponseMessage): Implemented.
2860 (getResponseVals): New private method.
2862 * java/net/URLConnection.java (getContent): Implemented.
2863 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2865 1999-04-05 Tom Tromey <tromey@cygnus.com>
2867 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2868 (jv_convert_SOURCES): Renamed.
2869 (EXTRA_jv_convert_SOURCES): Likewise.
2870 (jv_convert_LDFLAGS): Likewise.
2871 (jv_convert_LINK): Likewise.
2872 (jv_convert_LDADD): Likewise.
2873 (jv_convert_DEPENDENCIES): Likewise.
2875 * Makefile.in: Rebuilt.
2876 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2879 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2881 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2882 method for comparison.
2884 * java/net/URLConnection.java (getContentLength): Implemented.
2885 (getContentType): Implemented.
2886 (getContentEncoding): Implemented.
2887 (getExpiration): Implemented.
2888 (getDate): Implemented.
2889 (getLastModified): Implemented.
2890 (getHeaderFieldInt): Implemented.
2891 (getHeaderFieldDate): Implemented.
2893 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2895 * java/net/URLConnection.java (toString): Implemented.
2896 (setContentHandlerFactory): Implemented.
2897 (setContentHandler): Wrote new private helper method.
2899 1999-04-01 Tom Tromey <tromey@cygnus.com>
2901 * Makefile.in: Rebuilt.
2902 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2903 of 1999-03-31; we always want to build all the .class files.
2904 Depend on java_source_files, not libgcj.zip.
2905 (nat_headers): Define in terms of ordinary_java_source_files.
2907 1999-03-31 Tom Tromey <tromey@cygnus.com>
2909 * Makefile.in: Rebuilt.
2910 * Makefile.am (special_java_source_files): New macro.
2911 (java_source_files): Use it.
2912 (ordinary_java_source_files): New macro.
2913 (java_source_files): Use it.
2914 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2915 creating headers for those files with hand-maintained headers.
2917 * include/javaprims.h: Regenerated namespace declarations.
2918 * classes.pl (scan): Include [0-9] in regexp for matching class
2919 names; for java.util.zip.CRC32.
2921 * Makefile.in: Rebuilt.
2922 * Makefile.am (nat_headers): Redefined to generate all possible
2925 * java/util/zip/ZipException.java: In package java.util.zip, not
2928 1999-03-30 Tom Tromey <tromey@cygnus.com>
2930 * configure: Rebuilt.
2931 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2932 eh-common.h when not building in tree with gcc.
2934 * Makefile.in: Rebuilt.
2935 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2936 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2938 ($(java_source_files:.java=.class)): New target.
2940 * Makefile.in: Rebuilt.
2941 * Makefile.am (java_source_files): Added
2942 java/net/HttpURLConnection.java and
2943 gnu/gcj/www/protocol/http/Connection.java.
2945 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2947 * gnu/gcj/www/protocol/http/Connection.java: New file.
2948 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2949 * java/net/HttpURLConnection.java: New file.
2950 * java/net/URLConnection.java (getHeaderField): Implemented default.
2951 (getHeaderFieldKey): Implemented default method.
2953 1999-03-30 Tom Tromey <tromey@cygnus.com>
2955 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2957 * java/util/zip/Deflater.java: Added copyright header.
2958 * java/util/zip/CRC32.java: Added copyright header.
2960 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2961 that it is automatically generated.
2962 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2964 * gnu/gcj/convert/BytesToUnicode.java,
2965 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2966 gnu/gcj/convert/Input_EUCJIS.java,
2967 gnu/gcj/convert/Input_UTF8.java,
2968 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2969 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2970 gnu/gcj/convert/Output_8859_1.java,
2971 gnu/gcj/convert/Output_JavaSrc.java,
2972 gnu/gcj/convert/Output_UTF8.java,
2973 gnu/gcj/convert/UnicodeToBytes.java,
2974 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2976 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2978 * Makefile.in, configure: Rebuilt.
2979 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2980 not if test subdir exists.
2981 (--enable-gcj-classes): Removed; gcj always used to generate
2983 (JAVA, JAVAC): Removed.
2984 (--enable-single-compilation, --enable-source-compilation):
2987 (NATIVE): New conditional.
2988 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2989 `install-exec' to work.
2990 (toolexeclibdir): Likewise.
2991 (toollib_LIBRARIES): Likewise.
2992 (AM_MAKEFLAGS): Don't pass tooldir.
2994 (javao_files): Redefined.
2995 (java_source_files): New macro.
2996 (c_source_files): New macro.
2997 (c_files): Redefined in terms of c_source_files.
2998 (java_io_files, java_lang_files, java_net_files, java_text_files,
2999 java_util_files, gnu_files, java_files): Removed.
3000 (class_io_files, class_lang_files, class_net_files,
3001 class_text_files, class_util_files, class_gnu_files, class_files):
3003 (nat_source_files): New macro.
3004 (nat_files): Redefined in terms of nat_source_files.
3005 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
3006 java_source_files. Removed no-such-file.c.
3008 (ETAGS_ARGS): Removed.
3009 (TAGS_DEPENDENCIES): Likewise.
3010 (libgcj.zip): Depend on java_source_files. Use $(here) and not
3012 (src_io_files, src_lang_files, src_text_files, src_util_files,
3013 src_gnu_files): Removed.
3014 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
3015 (BUILT_SOURCES): Removed.
3016 (header-check): New target.
3018 (noinst_PROGRAMS): New macro.
3019 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
3021 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
3022 (gen-from-JIS): Build in top directory.
3023 (convert_source_files): New macro.
3024 (convert_SOURCES): New macro.
3025 (convert_LDFLAGS): Likewise.
3026 (convert_LINK): Likewise.
3027 (convert_LDADD): Likewise.
3028 (convert_DEPENDENCIES): Likewise.
3030 (gen-from-JIS): Removed.
3031 (gen_from_JIS_SOURCES): New macro.
3032 (gen_from_JIS_LDADD): Likewise.
3033 (gen_from_JIS_DEPENDENCIES): Likewise.
3035 * configure: Rebuilt.
3036 * configure.in (CANADIAN): Set to `yes', not `canadian'.
3037 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
3038 when defining conditional.
3040 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
3042 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
3043 The Unicode Consortium does not permit their re-distribution.
3044 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
3045 (JIS0208.h, JIS0212.h): Do not depend on removed files.
3047 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
3049 * natSystem.c (init_properties): Use malloc, realloc, free after all.
3051 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
3053 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
3054 from Unicode Consortium.
3055 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
3056 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
3057 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
3058 New tables, generated using gen-from-JIS.
3059 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
3060 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
3061 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
3062 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
3064 * gnu/gcj/convert/Convert.java: New application.
3065 * Makefile.am, Makefile.in (convert): New program, using Convert.
3066 Build the various JIS conversion tables (in maintainer mode).
3068 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
3070 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
3072 * java/net/URL.java (URL): Deal with null property value. Use "."
3073 as separator in building class name.
3074 * java/net/URLConnection.java: Implemented majority of stubbed methods.
3075 * java/net/URLStreamHandler.java (parseURL): Use "" in string
3076 manipulations instead of 'null'. Comment cleanup. Use 0 for the
3077 beginning of the substring rather than 'start'.
3079 1999-03-26 Tom Tromey <tromey@cygnus.com>
3081 * include/java-chartables.h: Rebuilt.
3082 * include/java-chardecomp.h: New file.
3083 * chartables.pl: Generate output files directly. Added support
3084 for generating decomposition header.
3085 (canonical_decomposition, full_decomposition): New globals.
3086 (DECOMPOSITION): New constant.
3087 (process_char): Call add_decomposition.
3088 (add_decomposition): New sub.
3089 (write_decompositions): New sub.
3091 1999-03-25 Tom Tromey <tromey@cygnus.com>
3093 * java/text/CollationElementIterator.java: New file.
3095 * mauve-libjava: Omit StringTest.
3097 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
3099 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
3100 without a '/' when parsing protocol. Handle ref outside of parseURL.
3101 (hashCode): Implemented.
3102 (set): Don't expand -1 to default port.
3103 (getDefaultPort): Removed.
3105 * java/net/URLStreamHandler.java (parseURL): Implemented.
3106 (toExternalForm): Implemented.
3108 1999-03-23 Tom Tromey <tromey@cygnus.com>
3110 * java/text/BreakIterator.java (getSentenceInstance):
3112 * gnu/gcj/text/SentenceBreakIterator.java: New file.
3114 * Makefile.in: Rebuilt.
3115 * Makefile.am (nat_headers): Added IllegalAccessException.
3116 * java/lang/natClass.cc (newInstance): Throw
3117 IllegalAccessException, not IllegalAccessError.
3118 Include IllegalAccessException.h.
3120 1999-03-22 Tom Tromey <tromey@cygnus.com>
3122 * gnu/gcj/text/LineBreakIterator.java: New file.
3123 * java/text/BreakIterator.java (getLineInstance): Implemented.
3125 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
3126 copy constructor private.
3127 (previous, next): Removed erroneous comment about line
3129 (previous): Correctly recognize break between non-letter on the
3130 left and letter on the right. Handle apostrophes correctly.
3132 * java/text/BreakIterator.java (getWordInstance): Implemented.
3133 * gnu/gcj/text/WordBreakIterator.java: New file.
3134 * gnu/gcj/text/CharacterBreakIterator.java: Extend
3136 * gnu/gcj/text/BaseBreakIterator.java: New file.
3138 1999-03-19 Tom Tromey <tromey@cygnus.com>
3140 * java/text/BreakIterator.java: New file (partially stubbed out).
3141 * gnu/gcj/text/CharacterBreakIterator.java: New file.
3143 * include/config.h.in: Rebuilt.
3144 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
3145 (HAVE_TIMEZONE): Likewise.
3146 * configure: Rebuilt.
3147 * configure.in: Added timezone checks.
3148 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3151 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
3153 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
3154 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
3155 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
3156 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
3157 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
3158 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
3159 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
3160 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
3162 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
3163 (BSD_COMP): Kludge needed for Solaris2.
3165 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
3167 * java/net/URL.java (URL(java.net.URL, string): Moved code to
3168 URL(java.net.URL, string, URLStreamHandler) and call it with a
3169 null handler. In latter constructor, added SecurityManager check.
3170 (set): Expect null handler on bad protocol rather than an exception.
3171 (setURLStreamHandler): Simplified exception handling; return null
3172 on invalid protocol.
3174 1999-03-18 Tom Tromey <tromey@cygnus.com>
3176 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3178 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3180 Include PrintStream.h, InputStream.h.
3181 * java/lang/System.java (ForwardingInputStream,
3182 ForwardingOutputStream): Removed.
3183 (setErr, setIn, setOut): Now native.
3185 Reverted patch from 1999-02-12 to work around problem in
3187 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3188 (_Jv_eh_free): Use free.
3190 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3191 for path name. Minor formatting fixes.
3193 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3195 * prims.cc (fail_on_finalization): New function.
3196 (_Jv_GCWatch): Likewise.
3198 * prims.cc (JvRunMain): Initialize `nullp'.
3199 (nullp): New global.
3200 (catch_segv): Throw nullp.
3202 * Makefile.in: Rebuilt.
3203 * Makefile.am (ZIP): In "null target" case, zip is found in the
3206 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3210 * java/lang/StringBuffer.java (StringBuffer): Don't use
3211 ensureCapacity to set initial capacity.
3212 (capacity): Subtract `length' from return result.
3214 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3216 * java/io/natFileDescriptorPosix.cc (open): Throw
3217 FileNotFoundException, but with filename and errno in msg.
3219 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3221 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3222 functionality folded into java/net/URL.java per spec.
3224 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3225 than EEXIST for throwing FileNotFoundException.
3227 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3228 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3230 * java/net/URLStreamHandler.java (parseURL): Added stub.
3232 1999-03-15 Andrew Haley <aph@cygnus.com>
3234 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3237 1999-03-15 Andrew Haley <aph@cygnus.com>
3239 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3242 1999-03-12 Tom Tromey <tromey@cygnus.com>
3244 * prims.cc (catch_segv): New function.
3245 Include <signal.h> if HANDLE_SEGV defined. Include
3246 NullPointerException.h.
3247 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3250 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3251 a SimpleDateFormat, not just a DateFormat.
3252 (defaultCenturyStart, formatData, pattern): Now private.
3253 (append): Now `final'. Use `NumberFormat.format'.
3255 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3257 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3260 * java/text/MessageFormat.java (format): Use default MessageFormat
3262 (parse, parseObject): Wrote.
3264 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3267 1999-03-12 Andrew Haley <aph@cygnus.com>
3269 * java/lang/String.java (indexOf): Replace with native method for
3271 * java/lang/natString.cc (IndexOf): As above.
3273 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3274 Argument check corrected.
3275 (init(jbyteArray,jint,jint,jstring)): Likewise.
3277 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3278 1.2 compliant method.
3280 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3282 * java/lang/Float.java (byteValue, shortValue): Likewise.
3284 1999-03-11 Tom Tromey <tromey@cygnus.com>
3286 * java/text/DecimalFormat.java (parse): Wrote.
3288 * java/text/ChoiceFormat.java (parse): Set error index on
3289 ParsePosition object.
3291 * java/lang/Integer.java (parseInt): Throw exception on overflow
3292 when intermediate result is most negative number. Changed
3293 overflow detection as well.
3294 * java/lang/Long.java (parseLong): Likewise.
3296 * configure, Makefile.in: Rebuilt.
3297 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3298 CANADIAN when building in source tree that doesn't include gcc.
3299 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3302 * java/text/ChoiceFormat.java (nextDouble): Correct some
3303 off-by-one errors when masking or adding.
3305 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3306 parameter, if given. Use `%', not IEEEremainder.
3307 (scanFix): Throw error if multiplier already set.
3308 (computePattern): Wrote.
3310 1999-03-11 Andrew Haley <aph@cygnus.com>
3312 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3314 (nextDouble): Corrected masking logic. Handle interaction between
3315 `next' and negative numbers.
3317 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3319 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3320 * java/net/URL.java: Added general comments.
3322 1999-03-10 Tom Tromey <tromey@cygnus.com>
3324 * java/text/ChoiceFormat.java (parse): Wrote.
3326 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3328 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3329 Create ChoiceFormat objects.
3330 (format): Special-case ChoiceFormat.
3331 (scanFormatElement): Include { and } in generated style string.
3333 1999-03-09 Tom Tromey <tromey@cygnus.com>
3335 * java/text/ChoiceFormat.java: New file.
3337 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3339 * java/net/BindException.java: Created.
3340 * java/net/ConnectException.java: Created.
3341 * java/net/ContentHandler.java: Created.
3342 * java/net/ContentHandlerFactory.java: Created.
3343 * java/net/FileNameMap.java: Created.
3344 * java/net/MalformedURLException.java: Created.
3345 * java/net/NoRouteToHostException.java: Created.
3346 * java/net/ProtocolException.java: Created.
3347 * java/net/ServerSocket.java (@author): Fixed typo.
3348 * java/net/Socket.java (@author): Fixed typo.
3349 * java/net/SocketImpl.java (@author): Fixed typo.
3350 * java/net/SocketImplFactory.java (@author): Fixed typo.
3351 * java/net/URL.java: Created - nearly complete.
3352 * java/net/URLConnection.java: Created - near-empty stub.
3353 * java/net/URLStreamHandler.java: Created - incomplete stub.
3354 * java/net/URLStreamHandlerFactory.java: Created.
3355 * java/net/UnknownServiceException.java: Created.
3357 1999-03-09 Tom Tromey <tromey@cygnus.com>
3359 * java/lang/System.java (ForwardingInputStream): New class.
3360 (ForwardingOutputStream): Likewise.
3361 (in, out, err): Now `final' forwarding streams.
3362 (setIn, setOut, setErr): Use appropriate method on forwarding
3365 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3368 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3370 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3371 * java/util/zip/Checksum.java: New interface (complete).
3372 * java/util/zip/Deflater.java: New class (near-empty stub).
3373 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3374 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3375 * java/util/zip/ZipEntry.java: New class (complete).
3376 * java/util/zip/ZipException.java: New class (complete).
3377 * java/util/zip/ZipFile.java: New class (incomplete stub).
3378 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3380 1999-03-09 Tom Tromey <tromey@cygnus.com>
3382 * java/text/MessageFormat.java (MessageFormatElement): Removed
3383 `public' specifiers.
3385 * java/text/DecimalFormat.java (scanFormat): Increment index
3386 before processing exponential format. Fixed a couple typos in
3388 (format): Correct normalization of exponent.
3390 1999-03-08 Tom Tromey <tromey@cygnus.com>
3392 * java/text/SimpleDateFormat.java (parse): Throw
3393 IllegalArgumentException, not ParseException.
3395 1999-03-05 Tom Tromey <tromey@cygnus.com>
3397 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3398 when constructing DateFormatSymbols. Initialize numberFormat
3399 field of superclass.
3401 * java/text/DateFormat.java (equals): Rewrote.
3402 (getAvailableLocales): New method.
3403 (getDateInstance): New methods.
3404 (getDateTimeInstance): Likewise.
3405 (getTimeInstance): Likewise.
3406 (getInstance): New method.
3407 (computeInstance): New method.
3409 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3411 (safeGetResource): New method.
3412 (DateFormatSymbols): Use Locale paramater.
3413 (equals): Now protected.
3414 Made instance variables private.
3416 1999-03-04 Tom Tromey <tromey@cygnus.com>
3418 * java/text/DecimalFormat.java: New file.
3420 * java/text/NumberFormat.java (groupingUsed,
3421 maximumFractionDigits, maximumIntegerDigits,
3422 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3424 (setDecimalSeparatorAlwaysShown, setMultiplier,
3425 setPositivePrefix): Removed.
3426 (setMinimumFractionDigits, setMaximumFractionDigits):
3428 (format): Now final.
3429 Added many new methods.
3431 * Makefile.in: Rebuilt.
3432 * Makefile.am (gnu_files): New macro.
3433 (java_files): Added gnu_files.
3434 (class_gnu_files): New macro.
3435 (class_files): Use it.
3436 (src_gnu_files): New macro.
3437 (gnu.o): New target.
3438 (javao_files): Added gnu.o.
3440 * gnu/gcj/text/LocaleData_en_US.java: New file.
3441 * gnu/gcj/text/LocaleData_en.java: New file.
3442 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3443 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3444 (safeGetString): New method.
3445 (safeGetChar): Likewise.
3447 1999-03-03 Tom Tromey <tromey@cygnus.com>
3449 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3452 * java/text/FieldPosition.java (equals): Don't check for null
3453 object; instanceof does this.
3455 * java/util/Locale.java (clone): New method.
3458 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3460 * doc/cni.sgml: New file.
3462 1999-03-03 Tom Tromey <tromey@cygnus.com>
3464 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3466 * java/text/DecimalFormatSymbols.java: New file.
3468 1999-03-02 Tom Tromey <tromey@cygnus.com>
3470 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3472 * configure: Rebuilt.
3473 * configure.in: Check for sys/filio.h.
3475 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3477 (load): Always throw UnsatisfiedLinkError.
3478 (loadLibrary): Likewise.
3480 1999-03-02 Anthony Green <green@cygnus.com>
3482 * LIBGCJ_LICENSE: New file.
3483 * LIBJAVA_LICENSE: Removed.
3484 * Many files: libjava now libgcj.
3486 1999-03-02 Tom Tromey <tromey@cygnus.com>
3488 * include/java-chartables.h: Rebuilt.
3489 * chartables.pl (print_block): Make table `const'.
3490 (print_numerics): Likewise.
3491 (print_single_map): Likewise.
3492 (print_all_block): Likewise.
3493 (print_case_table): Likewise.
3494 (print_fast_tables): Likewise.
3495 * java/lang/natCharacter.cc (table_search): `table' argument now
3498 1999-03-01 Tom Tromey <tromey@cygnus.com>
3500 * java/util/Date.java (before, after): Inverted logic.
3502 * java/util/Date.java (parse): Handle case where first character
3503 in string is open parenthesis.
3504 (skipParens): Rewrote.
3506 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3507 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3509 * java/util/Date.java (parse): Correctly compute beginning of
3512 * java/util/Hashtable.java (get): Throw NullPointerException if
3514 (containsKey): Likewise.
3516 * java/util/Properties.java (list): Truncate value to 37
3517 characters and add `...'.
3519 * java/lang/Byte.java (parseByte): Pass `radix' to
3522 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3524 Include System.h, PrintStream.h.
3526 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3529 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3531 * configure: Rebuilt.
3532 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3535 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3537 * java/lang/SecurityManager.java: Import java.net.*.
3538 (checkMulticast): New methods.
3540 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3542 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3543 (nat_files): Add java/lang/reflect/natArray.o.
3544 (nat_headers): Add Field.h and NoSuchFieldException.h.
3546 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3547 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3548 (_Jv_FromReflectedField): Fix buglet.
3549 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3550 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3551 * prims.cc (_Jv_Abort): Include message in print-out.
3553 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3554 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3555 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3557 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3558 * include/config.h.in (HAVE_PWD_H): New feature macro.
3559 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3560 user.name, user.home, user.dir.
3562 * java/lang/reflect/Array.java: New class.
3563 * java/lang/reflect/natArray.cc: New native methods.
3564 * include/javaprims.h: Declare java::lang::reflect::Array.
3566 * java/lang/Class.h (getField): New private method. Add friends.
3567 * java/lang/Class.java (getField): Add private overload.
3568 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3569 getDeclaredMethods): Add working implementations.
3570 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3571 Finish implementation, except for access control.
3573 * java/lang/reflect/Modifier.java (toString): New overload.
3574 * include/java-method.h: New file.
3575 * java/lang/reflect/Method.java (index): Replaced by offset field.
3576 Remove various private fields - get them from _Jv_Field instead.
3577 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3578 New method implementations.
3580 * java/text/NumberFormat.java: Add a bunch of methods.
3582 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3584 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3586 1999-02-26 Tom Tromey <tromey@cygnus.com>
3588 * include/config.h.in: Rebuilt.
3589 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3590 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3591 HAVE_GETHOSTBYADDR_R): New defines.
3592 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3593 gethostbyaddr_r if available.
3595 * configure: Rebuilt.
3596 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3598 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3602 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3603 * prims.cc (_Jv_AllocBytesChecked): New function.
3605 * Makefile.in: Rebuilt.
3606 * Makefile.am (SUBDIRS): Removed `test'.
3607 * configure: Rebuilt.
3608 * configure.in: Don't build test/Makefile.
3609 * test/*: Removed all files.
3611 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3613 * java/lang/reflect/Constructor.java: Make class final to match spec.
3614 * java/lang/reflect/Method.java: Ditto.
3616 1999-02-25 Tom Tromey <tromey@cygnus.com>
3618 * java/net/natInetAddress.cc: Include <sys/types.h> before
3620 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3623 * java/net/natInetAddress.cc: Declare gethostname if required.
3624 * include/config.h.in: Rebuilt.
3625 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3626 * configure: Rebuilt.
3627 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3628 declared in unistd.h.
3630 1999-02-24 Tom Tromey <tromey@cygnus.com>
3632 * Makefile.in: Rebuilt.
3633 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3634 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3635 from private to "none".
3637 * include/javaprims.h: Regenerated class declarations with new
3639 * classes.pl (scan): Only generate decls for java.lang, java.io,
3642 1999-02-24 Tom Tromey <tromey@cygnus.com>
3644 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3645 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3647 1999-02-23 Tom Tromey <tromey@cygnus.com>
3649 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3650 not already defined.
3651 * java/io/natFile.cc (_REENTRANT): Only define if not already
3653 * include/config.h.in: Rebuilt.
3654 * acconfig.h (HAVE_BOEHM_GC): New define.
3655 * configure: Rebuilt.
3656 * configure.in: Define HAVE_BOEHM_GC if using it.
3657 * posix-threads.cc: Include boehm-config.h and gc.h if
3659 * include/posix-threads.h: Added explanatory note about Boehm GC.
3661 * java/io/BufferedReader.java (readLine): Only return null when
3662 EOF seen before any characters read. (In particular, an empty
3663 line should not return null.)
3665 * java/io/BufferedInputStream.java (read): Only refill once per
3668 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3669 java.lang.Character.classify12, java.lang.String.hash,
3670 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3671 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3673 * java/text/StringCharacterIterator.java (setIndex): No error if
3675 (next): Check for `pos == end', not `end - 1'.
3676 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3677 for null text in each constructor.
3678 (clone): Fixed order of arguments to constructor.
3680 1999-02-22 Tom Tromey <tromey@cygnus.com>
3682 * include/config.h.in: Rebuilt.
3683 * acconfig.h (HAVE_INET6): New define.
3684 (HAVE_SOCKLEN_T): Likewise.
3685 * java/net/PlainSocketImpl.java: Added copyright header.
3686 * java/net/natPlainSocketImpl.cc: Added copyright header.
3687 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3689 (connect): Likewise.
3691 (socklen_t): New typedef.
3692 (accept): Use socklen_t.
3693 * java/net/natInetAddress.cc: Added copyright header.
3694 (HAVE_GETHOSTNAME): Don't define.
3695 (HAVE_INET_ADDR): Likewise.
3696 (lookup): Fixed typo.
3697 (aton): Don't use `address' as name of local variable.
3698 (lookup): Use HAVE_INET6, not AF_INET6.
3700 * configure: Rebuilt.
3701 * configure.in: Look for functions inet_aton, inet_addr,
3702 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3703 Check for socklen_t typedef.
3705 * exception.cc (__throw): Declare as __noreturn__.
3707 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3709 * Makefile.am, Makefile.in: Also build java/net.
3710 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3712 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3713 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3715 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3716 * include/cni.h (JvMalloc, JvFree): New inline functions.
3717 (JvThrow): Add __noreturn__ attribute.
3718 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3719 (_Jv_Throw): Add __noreturn__ attribute.
3721 * java/net/PlainSocketImpl.java: Init fnum to -1.
3722 * java/net/ServerSocket.java: Add missing throws clauses.
3723 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3724 don't call create on the latter. Instead, other constructors
3725 have to explicitly call SocketImpl.create.
3726 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3727 from size_t to int, to match ::accept prototype.
3728 * java/net/natInetAddress.cc: Use JvFree rather than free.
3731 1999-02-22 Tom Tromey <tromey@cygnus.com>
3733 * include/javaprims.h: Added new classes.
3734 * java/text/StringCharacterIterator.java: New file.
3735 * java/text/CharacterIterator.java: New file.
3737 * java/text/ParseException.java (errorOffset): Now private.
3739 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3741 * java/net: New package.
3742 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3743 Socket.java,SocketException.java,SocketImpl.java,
3744 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3745 natPlainSocketImpl.cc}: New classes.
3747 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3748 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3749 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3750 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3752 * classes.pl: Translate package into "namespace", not "class".
3753 * include/javaprims.h: Update class list, using "namespace".
3755 1999-02-21 Tom Tromey <tromey@cygnus.com>
3757 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3758 Define when appropriate.
3760 1999-02-20 Tom Tromey <tromey@cygnus.com>
3762 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3763 as a single byte and \u07ff as two bytes.
3764 (_Jv_GetStringUTFLength): Likewise.
3765 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3766 with 0x0f, not 0x1f.
3768 1999-02-19 Tom Tromey <tromey@cygnus.com>
3770 * java/io/DataOutputStream.java (writeUTF): When encoding
3771 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3772 * java/io/DataInputStream.java (readUTF): Mask second byte of
3773 3-byte character with 0x3f, not 0x1f.
3775 * java/io/DataInputStream.java (readLong): Cast result of
3776 readUnsignedByte to long before using.
3778 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3781 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3782 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3783 argument to avoid warning.
3784 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3785 argument to avoid warning.
3787 1999-02-18 Tom Tromey <tromey@cygnus.com>
3789 * mauve-libjava: Omit java.io.DataInputOutput and
3790 java.io.Utf8Encoding.
3792 1999-02-17 Tom Tromey <tromey@cygnus.com>
3794 * Makefile.in: Rebuilt.
3795 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3796 * java/io/natFileDescriptorPosix.cc: Include
3797 InterruptedIOException.h, Thread.h.
3798 (write): Throw InterruptedIOException when required.
3800 * posix-threads.cc: Include <signal.h>.
3801 (_Jv_ThreadInterrupt): New function.
3803 (handle_intr): New function.
3804 (_Jv_InitThreads): Register handle_intr via sigaction.
3805 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3806 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3807 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3808 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3810 1999-02-19 Andrew Haley <aph@cygnus.com>
3812 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3814 (ThreadGroup (int)): Set the maximum priority of the initial
3817 1999-02-18 Andrew Haley <aph@cygnus.com>
3819 * java/lang/natClass.cc (forName): Check for the case where a
3820 classname is the name of an array and call FindClassFromSignature
3823 1999-02-18 Andrew Haley <aph@cygnus.com>
3825 * java/lang/StringBuffer (insert (int, String)): Move up any
3826 characters above the insert position and increase the length of
3827 the string buffer by the length of the argument.
3828 (insert (int, char[])): Likewise.
3829 (insert (int, char)): Likewise.
3830 (StringBuffer (String)): The initial capacity of the string buffer
3831 is 16 plus the length of the argument.
3832 (getChars): Add a JDK 1.2 FIXME.
3834 1999-02-18 Andrew Haley <aph@cygnus.com>
3836 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3839 1999-02-18 Andrew Haley <aph@cygnus.com>
3841 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3842 instead of floating-point equality. This is necessary for
3843 correct floating-point Hashtables.
3844 * java/lang/Float.java (equals): Ditto.
3846 1999-02-16 Tom Tromey <tromey@cygnus.com>
3848 * java/util/Properties.java (list): Truncate value to 37
3849 characters and add "...".
3851 1999-02-16 Tom Tromey <tromey@cygnus.com>
3853 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3854 if initCap is negative.
3855 (contains): Implement JDK1.2-style handling of null argument.
3856 (removeElement): Likewise.
3857 (indexOf): Likewise. Also, correctly handle case where idx is
3859 (lastIndexOf): Likewise.
3861 1999-02-16 Tom Tromey <tromey@cygnus.com>
3863 * java/lang/natString.cc (init): Increment source pointer in
3866 1999-02-16 Tom Tromey <tromey@cygnus.com>
3868 * exception.cc: Include NullPointerException.h.
3869 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3871 1999-02-16 Tom Tromey <tromey@cygnus.com>
3873 * Makefile.in: Rebuilt.
3874 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3876 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3878 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3879 we're compiling canadian.
3880 * configure: Regenerated.
3882 1999-02-12 Andrew Haley <aph@cygnus.com>
3884 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3885 deleted from libgcj.
3887 1999-02-12 Tom Tromey <tromey@cygnus.com>
3889 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3890 (_Jv_eh_free): Don't call free.
3891 Don't declare malloc or free.
3893 1999-02-11 Tom Tromey <tromey@cygnus.com>
3895 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3897 1999-02-11 Andrew Haley <aph@cygnus.com>
3899 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3900 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3901 needed by java.lang.*.
3902 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3903 wf_fmod.o: Removed from libjava.a.
3905 1999-02-11 Tom Tromey <tromey@cygnus.com>
3907 * include/javaprims.h: Reverted previous change; with it
3908 exception.cc can't compile.
3910 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3912 * include/config.h.in: Rebuilt.
3913 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3915 * configure: Rebuilt.
3916 * configure.in: Check for sched_yield. Look in thread library for
3917 all thread functions.
3919 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3920 no recursive mutexes.
3921 (_Jv_MutexDestroy): Define when required.
3922 (_Jv_MutexLock): Likewise.
3923 (_Jv_MutexUnlock): Likewise.
3924 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3925 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3926 (_Jv_Mutex_t): New structure.
3927 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3928 (_Jv_MutexLock): Likewise.
3929 (_Jv_MutexUnlock): Likewise.
3931 1999-02-10 Tom Tromey <tromey@cygnus.com>
3933 * aclocal.m4, configure, Makefile.in: Rebuilt.
3934 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3936 * configure.in: Changed to track library changes.
3937 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3938 (AM_CXXFLAGS): Likewise.
3939 (data_DATA): Likewise.
3940 (AM_CFLAGS): Likewise.
3941 (JC1FLAGS): Likewise.
3942 (libgcj_a_SOURCES): Likewise.
3943 (EXTRA_libgcj_a_SOURCES): Likewise.
3944 (libgcj_a_DEPENDENCIES): Likewise.
3945 (libgcj_a_LIBADD): Likewise.
3946 (libgcj.zip): Likewise.
3947 (CLEANFILES): Likewise.
3948 ($(nat_headers)): Likewise.
3949 (java/lang/FirstThread.h): Likewise.
3950 (java/lang/ThreadGroup.h): Likewise.
3951 (java/lang/String.h): Likewise.
3952 (java/lang/reflect/Field.h): Likewise.
3953 (BUILT_SOURCES): Likewise.
3954 (maintainer-check): Likewise.
3955 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3956 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3958 * java/util/natGregorianCalendar.cc (computeFields): Only use
3959 gmtime_r and localtime_r when configured for posix threads.
3961 * java/io/natFile.cc (get_entry): Only use readdir_r when
3962 configured for posix threads.
3964 * java/util/natGregorianCalendar.cc: Update copyright notice.
3965 * java/util/TimeZone.java: Ditto.
3966 * java/util/SimpleTimeZone.java: Ditto.
3968 1999-02-08 Tom Tromey <tromey@cygnus.com>
3970 * java/io/PrintStream.java (line_separator): New constant.
3971 (print): Use line_separator, not `file.separator' property.
3972 (println): Use line_separator.
3974 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3975 when trying to instantiate Class.
3977 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3978 NullPointerException if argument is null.
3980 * java/lang/Thread.java (setName): Throw NullPointerException, not
3981 IllegalArgumentException.
3984 1999-02-08 Andrew Haley <aph@cygnus.com>
3986 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3987 create new Classes with Class.newInstance().
3989 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3990 semiciolon to end of an array Class's signature if the elements of
3991 the array aren't themselves arrays.
3993 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3994 array of objects is always sizeof(jobject), not the size of the
3995 object to which the reference points.
3997 1999-02-08 Tom Tromey <tromey@cygnus.com>
3999 * java/util/BitSet.java (and): Throw NullPointerException when
4004 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
4005 if argument is negative.
4006 (clear): Correctly compute `offset'. Throw
4007 IndexOutOfBoundsException when required.
4009 (get): Likewise. Also, return correct value.
4010 (ensure): Changed meaning of argument.
4011 (toString): Wrap contents in `{}'; put spaces after commas.
4012 (hashCode): Don't try to examine elements off the end of array.
4013 (or): Correctly include bits past the end of this bit set.
4016 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
4018 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
4019 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
4021 1999-02-04 Andrew Haley <aph@cygnus.com>
4023 * java/lang/natClass.cc (Class::forName): Remove code which mapped
4024 '/' in signatures to '.'
4025 (Class::getName): Likewise,
4026 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
4028 * java/lang/natFirstThread.cc (run): Change '/' in main's
4031 1999-02-03 Andrew Haley <aph@cygnus.com>
4033 * configure.host: -ffloat-store added when compiling libjava on
4034 x86. fdlibm apparently relies on this.
4036 * java/lang/ThreadGroup.java (add): throw an exception if the
4037 ThreadGroup has been destroyed.
4039 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
4042 1999-01-27 Tom Tromey <tromey@cygnus.com>
4044 * java/lang/StringBuffer.java (StringBuffer): Handle null
4047 1999-01-21 Tom Tromey <tromey@cygnus.com>
4049 * java/lang/natFirstThread.cc (run): Don't require main to be
4052 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
4054 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
4056 1999-01-20 Tom Tromey <tromey@cygnus.com>
4058 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
4062 (unintern): Likewise.
4063 (_Jv_NewStringUtf8Const): Likewise.
4065 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
4066 Character.isLetter, to see if character is self-quoting. Also,
4067 correctly handle quoted characters.
4068 (parse): Fixed typo. Also now throws ParseException.
4070 1999-01-15 Tom Tromey <tromey@cygnus.com>
4072 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
4074 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
4075 _Jv_SyncInfo has `init' member.
4077 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
4080 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
4081 IllegalMonitorStateException if unlock fails.
4083 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
4085 (_Jv_NewObjectArray): Likewise.
4087 1999-01-14 Tom Tromey <tromey@cygnus.com>
4089 * java/lang/Character.java (isJavaIdentifierPart): Allow
4090 LETTER_NUMBER characters.
4092 * chartables.pl (process_char): Fixed error messages.
4094 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
4095 * chartables.pl: Updated comments. Changed detection of non-digit
4096 numeric values (no longer miss \u00b2 and friends).
4098 * java/lang/Character.java (isJavaIdentifierPart): Recognize
4099 currency symbols and connector punctuation.
4100 (isIdentifierIgnorable): Make 7f-9f ignorable.
4102 * prims.cc (_Jv_NewObjectArray): Check for overflow.
4103 (_Jv_NewPrimArray): Likewise.
4104 (SIZE_T_MAX): New define.
4106 * java/lang/ClassLoader.java (system): Now private and final.
4108 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
4111 * configure: Rebuilt.
4112 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
4114 * exception.cc: Include gansidecl.h.
4116 1999-01-14 Andrew Haley <aph@cygnus.com>
4118 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
4119 corrected: they didn't treat -0.0 and NaNs correctly.
4121 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
4123 * nogc.cc: Use calloc to zero out memory.
4125 1999-01-11 Tom Tromey <tromey@cygnus.com>
4127 * java/lang/natClass.cc (isInstance): Return false if this class
4128 is primitive, not if class of `obj' is primitive.
4129 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
4131 * java/io/SequenceInputStream.java (close): Handle case where `in'
4134 * java/text/DateFormat.java (format): New method.
4136 * mauve-libjava: Omit java.text.DateFormat.
4138 1999-01-08 Tom Tromey <tromey@cygnus.com>
4140 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
4142 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
4144 (_Jv_CondNotifyAll): Likewise.
4146 * configure: Rebuilt.
4147 * configure.in: Change --enable-source-compilation logic to work
4150 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
4152 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4153 and RUNTESTFLAGS from AM_MAKEFLAGS.
4154 * configure.in: AM_RUNTESTFLAGS added.
4155 * configure.host: AM_RUNTESTFLAGS added.
4156 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4157 * configure: rebuilt.
4158 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4160 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4161 argv[] made conditional because embedded targets may not have
4163 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4164 explanatory comments added in call to super.
4166 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4167 exception thrown in the test harness itself added.
4168 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4170 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
4172 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
4174 1999-01-06 Tom Tromey <tromey@cygnus.com>
4176 * java/io/natFile.cc (get_entry): New function.
4177 (performList): Use get_entry.
4178 * include/config.h.in: Rebuilt.
4179 * acconfig.h (HAVE_READDIR_R): New define.
4180 * configure: Rebuilt.
4181 * configure.in: Look for readdir_r.
4183 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4185 * java/util/natDate.cc: Added copyright header.
4187 1999-01-05 Tom Tromey <tromey@cygnus.com>
4189 * include/config.h.in: Rebuilt.
4190 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4191 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4192 * configure: Rebuilt.
4193 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4194 unlink, and realpath.
4195 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4196 (stat): Conditionalize on HAVE_STAT.
4198 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4199 (performMkdir): Conditionalize on HAVE_MKDIR.
4200 (performRenameTo): Conditionalize on HAVE_RENAME.
4201 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4203 * include/config.h.in: Rebuilt.
4204 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4205 * configure: Rebuilt.
4206 * configure.in: Check for gmtime_r and localtime_r. For cross
4207 builds, assume they exist.
4209 * mauve-libjava: Include java.text.DateFormatSymbols again.
4210 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4211 from setAmPmStrings.
4213 * mauve-libjava: Omit java.text.DateFormatSymbols.
4215 1999-01-04 Tom Tromey <tromey@cygnus.com>
4217 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4219 * java/io/LineNumberReader.java (read): Decrement `count' in
4222 * java/io/BufferedWriter.java (write): Correctly determine when
4223 incoming data would overrun buffer. Flush buffer if write causes
4226 * java/io/BufferedOutputStream.java (write): Increment `count'
4227 after copying data into buffer.
4229 * java/io/FilterOutputStream.java (close): Call flush first.
4231 * java/io/PipedReader.java (read): If read causes `out' to catch
4232 up with `in', then set `in' to -1.
4234 * java/io/LineNumberInputStream.java (read): If no bytes read,
4235 return -1. If no bytes requested, return 0.
4237 * java/lang/StringBuffer.java (insert): If `str' is null, use
4240 1998-12-30 Anthony Green <green@cygnus.com>
4243 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4245 1998-12-23 Tom Tromey <tromey@cygnus.com>
4247 * java/io/PushbackInputStream.java (read): `off' already includes
4250 1998-12-17 Tom Tromey <tromey@cygnus.com>
4252 * Makefile.in: Rebuilt.
4253 * Makefile.am (GCJ_canadian): Include target_alias.
4255 * java/lang/natFirstThread.cc (run): Require main's class to be
4258 1998-12-16 Tom Tromey <tromey@cygnus.com>
4260 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4262 * java/util/ResourceBundle.java (getBundle): Throw
4263 NullPointerException if locale argument is null.
4265 * java/lang/natClass.cc (forName): Throw NullPointerException if
4267 Include NullPointerException.h.
4269 1998-12-14 Tom Tromey <tromey@cygnus.com>
4271 * java/lang/Character.java (Character): Implement Comparable.
4272 (compareTo): New methods.
4274 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4275 correct country and language codes.
4276 (UK, US): New constants.
4277 (setDefault): Language codes are lower-case.
4279 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4280 (getDeclaredConstructors): Likewise.
4281 (getDeclaredField): Likewise.
4282 (getDeclaredFields): Likewise.
4283 (getDeclaredMethod): Likewise.
4284 (getDeclaredMethods): Likewise.
4285 (getField): Likewise.
4286 (getFields): Likewise.
4287 (getMethod): Likewise.
4288 (getMethods): Likewise.
4289 * java/lang/Class.java: Declare new methods.
4290 * java/lang/Class.h: Declare new methods.
4292 * java/lang/natString.cc: Removed `#pragma implementation'.
4293 * include/cni.h (_Jv_GetStringChars): New function.
4294 * Makefile.in: Rebuilt.
4295 * Makefile.am (java/lang/String.h): Don't generate definition for
4298 * java/lang/natString.cc: Added `#pragma implementation'.
4300 * Makefile.in: Rebuilt.
4301 * Makefile.am (libjava.zip): Put build directory first in class
4302 path to avoid bug in compiler.
4304 1998-12-14 Anthony Green <green@cygnus.com>
4306 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4308 * include/javaprims.h: Add EventObject, ListResourceBundle and
4311 1998-12-13 Anthony Green <green@cygnus.com>
4313 * mauve-libjava: Run the ResourceBundle tests.
4315 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4318 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4320 * configure.in, configure: Make --enable-gcj-classes and
4321 --enable-source-compilation the default. (Nervously...) Yeah!
4322 Based on a patch from Tom Tromey.
4324 1998-12-13 Tom Tromey <tromey@cygnus.com>
4326 * java/util/EventObject.java: New file.
4327 * java/util/EventListener.java: New file.
4329 * include/javaprims.h: Updated class declarations.
4330 * Makefile.in: Rebuilt.
4331 * Makefile.am (nat_headers): Added Constructor.h.
4332 (java/lang/String.h): Don't inline String::length().
4333 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4334 * java/lang/Class.java (initializeClass, hackRunInitializers,
4335 hackTrampoline): No need to mark `final'.
4336 (getConstructor, getConstructors): Declare.
4337 * java/lang/reflect/Field.java (equals): New method.
4338 * java/lang/natClass.cc (getConstructor): New method.
4339 (getConstructors): Likewise.
4340 Include Method.h, Field.h, Constructor.h.
4341 * java/lang/reflect/Constructor.java: New file.
4342 * java/lang/reflect/Method.java (toString): No space before open
4344 (equals): Simplified.
4346 1998-12-13 Anthony Green <green@cygnus.com>
4348 * java/util/ResourceBundle.java: New file.
4349 * java/util/ListResourceBundle.java: New file.
4351 1998-12-12 Tom Tromey <tromey@cygnus.com>
4353 * java/lang/System.java (in, out, err): Now buffered streams by
4356 * include/javaprims.h: Updated class declarations.
4357 * Makefile.in: Rebuilt.
4358 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4359 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4361 (nat_files): Added natMethod.o.
4362 * java/lang/reflect/natMethod.cc: New file.
4363 * java/lang/reflect/Field.java (Field): Now extends
4365 * java/lang/reflect/AccessibleObject.java: New file.
4366 * java/lang/reflect/InvocationTargetException.java: New file.
4368 1998-12-11 Tom Tromey <tromey@cygnus.com>
4370 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4371 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4372 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4374 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4376 1998-12-09 Tom Tromey <tromey@cygnus.com>
4378 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4381 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4382 character is already titlecase.
4384 * java/lang/Character.java (isJavaLetter): Follow spec.
4385 (isJavaLetterOrDigit): Likewise.
4387 * java/util/GregorianCalendar.java (gregorianCutover): Append
4390 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4392 1998-12-08 Tom Tromey <tromey@cygnus.com>
4394 * java/lang/reflect/Modifier.java (toString): Replace second
4395 `static' with `synchronized'.
4397 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4398 * java/lang/Object.h (Object::hack12_6): Declare.
4399 * java/lang/Object.java (hack12_6): New function.
4401 1998-12-07 Tom Tromey <tromey@cygnus.com>
4403 * include/java-array.h (__JArray::clone): Removed decl.
4404 * prims.cc (__JArray::clone): Removed.
4405 * java/lang/natObject.cc (clone): Incorporate code to clone an
4408 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4409 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4410 Correctly use dtable_method_count.
4412 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4414 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4417 1998-12-06 Anthony Green <green@cygnus.com>
4419 * mauve-libjava: Don't test ResourceBundle.
4421 1998-12-04 Tom Tromey <tromey@cygnus.com>
4423 More JDK 1.2 spec fixes:
4424 * java/util/Date.java (millis): Now private.
4425 * java/text/DateFormat.java (DateFormat): Constructor now
4427 * java/lang/Void.java (Void): New private constructor.
4428 * java/lang/System.java (System): New private constructor.
4429 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4431 (currentClassLoader): New method.
4432 (currentLoadedClass): New method.
4433 * java/lang/Math.java (Math): New private constructor.
4434 * java/lang/Compiler.java (Compiler): New private constructor.
4435 * java/lang/Class.java (Class): New private constructor.
4436 * java/lang/Double.java (toString): Removed access specifier from
4437 two-argument `toString' method.
4439 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4441 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4442 causes it to be flushed from an fp register (where it may be
4443 longer than double precision) to a double in memory. This is
4444 essential to ensure correct rounding behaviour.
4446 1998-12-04 Tom Tromey <tromey@cygnus.com>
4448 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4451 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4452 explaining apparent divergence from JDK 1.2.
4454 1998-12-04 Per Bothner <bothner@cygnus.com>
4456 * include/no-threads.h: Remove unused parameter names.
4457 This silences a bunch of warnings.
4459 1998-12-04 Tom Tromey <tromey@cygnus.com>
4461 * include/config.h.in: Rebuilt.
4462 * acconfig.h (HAVE_CTIME_R): New symbol.
4464 1998-12-03 Tom Tromey <tromey@cygnus.com>
4466 * mauve-libjava: Added many more categories to reject.
4468 Changes to follow JDK1.2 spec:
4469 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4470 setErr, setIn, setOut): No need to be `final'.
4471 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4472 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4473 * java/lang/Object.java (wait): `nanos' argument is an int.
4474 * java/lang/VirtualMachineError.java: Class is abstract.
4475 * java/lang/ThreadDeath.java: Made constructors public.
4476 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4479 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4481 * java/text/DateFormatSymbols.java (getAmPmStrings,
4482 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4484 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4486 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4487 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4488 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4491 * java/lang/IllegalThreadStateException.java
4492 (IllegalThreadStateException): Changed extending class to match spec.
4494 * java/lang/NumberFormatException.java
4495 (java/lang/NumberFormatException): Changed extending class to match
4498 * java/util/Observer.java (Observer): Changed sig to match JCL.
4500 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4502 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4503 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4504 signature to match JDK 1.1 and 1.2.
4506 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4508 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4509 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4510 * Makefile.in, configure: Rebuilt.
4512 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4515 1998-12-02 Tom Tromey <tromey@cygnus.com>
4517 * mauve-libjava: New file.
4519 The remaining `-W -Wall' fixes:
4520 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4522 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4524 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4526 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4528 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4530 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4532 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4534 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4536 * java/lang/mprec.c (Balloc): Removed unused variable.
4537 (mult): Added parentheses per gcc suggestion.
4538 (pow5mult): Likewise.
4543 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4544 suggestion. Added cast to `int' to avoid signed/unsigned
4546 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4548 (IsAssignableFrom): Likewise.
4549 (_Jv_JNI_GetObjectField): Likewise.
4550 (_Jv_JNI_GetByteField): Likewise.
4551 (_Jv_JNI_GetShortField): Likewise.
4552 (_Jv_JNI_GetIntField): Likewise.
4553 (_Jv_JNI_GetLongField): Likewise.
4554 (_Jv_JNI_GetStringLength): Likewise.
4555 (_Jv_JNI_ToReflectedField): Likewise.
4556 (_Jv_JNI_FromReflectedField): Likewise.
4557 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4559 * Makefile.in: Rebuilt.
4560 * Makefile.am (AM_CFLAGS): Define conditionally.
4561 (WARNINGS): New macro.
4562 (AM_CXXFLAGS): Include WARNINGS.
4563 * configure: Rebuilt.
4564 * configure.in (USING_GCC): New conditional.
4566 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4568 * java/lang/Character.java: Changed classification constants to
4569 type `byte' to match JDK 1.2 docs.
4571 1998-12-01 Tom Tromey <tromey@cygnus.com>
4573 Some fixes to be `-W -Wall' clean:
4574 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4575 (_Jv_MarkArray): Likewise.
4576 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4577 (to_upper_title): Likewise.
4578 (isTitleCase): Likewise.
4579 (toTitleCase): Likewise.
4580 (getNumericValue): Likewise.
4581 (isLowerCase): Likewise.
4582 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4583 (avoids compiler warning).
4584 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4586 (getDeclaringClass): Likewise.
4587 (_Jv_LookupInterfaceMethod): Likewise.
4588 (_Jv_NewClass): Removed name of unused parameter.
4589 * exception.cc (_Jv_type_matcher): Removed unused variable.
4590 (_Jv_setup_eh_info): Removed name of unused parameter.
4591 * prims.cc (_Jv_NewArray): Always return a value.
4592 (_Jv_FindClassFromSignature): Likewise.
4593 * include/java-field.h (getNameUtf8Const): Removed name of unused
4595 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4597 (_Jv_ThreadSetPriority): Likewise.
4599 * java/lang/natString.cc (hashChars): Now static.
4601 * java/lang/FirstThread.java (FirstThread): Now final.
4603 * java/io/File.java (performMkdir, performRenameTo): Now private.
4605 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4606 if no time function defined.
4608 * configure: Rebuilt.
4609 * configure.in: Look for ctime_r, ctime.
4610 * java/util/Date.java (toString): Now native.
4611 * java/util/natDate.cc (toString): Rewrote.
4613 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4615 * Add LDFLAGS line to allow TX39 test cases to link when cross
4618 1998-11-23 Anthony Green <green@cygnus.com>
4620 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4621 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4622 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4623 include/java-array.h, include/java-assert.h, include/java-field.h,
4624 include/javaprims.h, include/jni.h, include/jvm.h,
4625 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4626 include/quick-threads.h, java/io/BufferedInputStream.java,
4627 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4628 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4629 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4630 java/io/CharArrayWriter.java,
4631 java/io/CharConversionException.java, java/io/DataInput.java,
4632 java/io/DataInputStream.java, java/io/DataOutput.java,
4633 java/io/DataOutputStream.java, java/io/EOFException.java,
4634 java/io/File.java, java/io/FileDescriptor.java,
4635 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4636 java/io/FileOutputStream.java, java/io/FileReader.java,
4637 java/io/FileWriter.java, java/io/FilenameFilter.java,
4638 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4639 java/io/FilterReader.java, java/io/FilterWriter.java,
4640 java/io/IOException.java, java/io/InputStream.java,
4641 java/io/InputStreamReader.java,
4642 java/io/InterruptedIOException.java,
4643 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4644 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4645 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4646 java/io/PipedReader.java, java/io/PipedWriter.java,
4647 java/io/PrintStream.java, java/io/PrintWriter.java,
4648 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4649 java/io/RandomAccessFile.java, java/io/Reader.java,
4650 java/io/SequenceInputStream.java, java/io/Serializable.java,
4651 java/io/StreamTokenizer.java,
4652 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4653 java/io/StringWriter.java, java/io/SyncFailedException.java,
4654 java/io/UTFDataFormatException.java,
4655 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4656 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4657 java/io/natFileDescriptorPosix.cc,
4658 java/lang/AbstractMethodError.java,
4659 java/lang/ArithmeticException.java,
4660 java/lang/ArrayIndexOutOfBoundsException.java,
4661 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4662 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4663 java/lang/Class.java, java/lang/ClassCastException.java,
4664 java/lang/ClassCircularityError.java,
4665 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4666 java/lang/ClassNotFoundException.java,
4667 java/lang/CloneNotSupportedException.java,
4668 java/lang/Cloneable.java, java/lang/Comparable.java,
4669 java/lang/Compiler.java, java/lang/Double.java,
4670 java/lang/Error.java, java/lang/Exception.java,
4671 java/lang/ExceptionInInitializerError.java,
4672 java/lang/FirstThread.java, java/lang/Float.java,
4673 java/lang/IllegalAccessError.java,
4674 java/lang/IllegalAccessException.java,
4675 java/lang/IllegalArgumentException.java,
4676 java/lang/IllegalMonitorStateException.java,
4677 java/lang/IllegalStateException.java,
4678 java/lang/IllegalThreadStateException.java,
4679 java/lang/IncompatibleClassChangeError.java,
4680 java/lang/IndexOutOfBoundsException.java,
4681 java/lang/InstantiationError.java,
4682 java/lang/InstantiationException.java, java/lang/Integer.java,
4683 java/lang/InternalError.java, java/lang/InterruptedException.java,
4684 java/lang/LinkageError.java, java/lang/Long.java,
4685 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4686 java/lang/NoClassDefFoundError.java,
4687 java/lang/NoSuchFieldError.java,
4688 java/lang/NoSuchFieldException.java,
4689 java/lang/NoSuchMethodError.java,
4690 java/lang/NoSuchMethodException.java,
4691 java/lang/NullPointerException.java, java/lang/Number.java,
4692 java/lang/NumberFormatException.java, java/lang/Object.h,
4693 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4694 java/lang/Process.java, java/lang/Runnable.java,
4695 java/lang/Runtime.java, java/lang/RuntimeException.java,
4696 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4697 java/lang/Short.java, java/lang/StackOverflowError.java,
4698 java/lang/String.java, java/lang/StringBuffer.java,
4699 java/lang/StringIndexOutOfBoundsException.java,
4700 java/lang/System.java, java/lang/Thread.java,
4701 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4702 java/lang/Throwable.java, java/lang/UnknownError.java,
4703 java/lang/UnsatisfiedLinkError.java,
4704 java/lang/UnsupportedOperationException.java,
4705 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4706 java/lang/Void.java, java/lang/natCharacter.cc,
4707 java/lang/natClass.cc, java/lang/natDouble.cc,
4708 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4709 java/lang/natMath.cc, java/lang/natObject.cc,
4710 java/lang/natRuntime.cc, java/lang/natString.cc,
4711 java/lang/natSystem.cc, java/lang/natThread.cc,
4712 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4713 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4714 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4715 java/text/FieldPosition.java, java/text/Format.java,
4716 java/text/NumberFormat.java, java/text/ParseException.java,
4717 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4718 java/util/BitSet.java, java/util/Calendar.java,
4719 java/util/ConcurrentModificationException.java,
4720 java/util/Date.java, java/util/Dictionary.java,
4721 java/util/EmptyStackException.java, java/util/Enumeration.java,
4722 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4723 java/util/Locale.java, java/util/MissingResourceException.java,
4724 java/util/NoSuchElementException.java, java/util/Observable.java,
4725 java/util/Observer.java, java/util/Properties.java,
4726 java/util/Random.java, java/util/SimpleTimeZone.java,
4727 java/util/Stack.java, java/util/StringTokenizer.java,
4728 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4729 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4732 * exception.cc: Include eh-common.h instead of duplicating
4735 1998-11-23 Tom Tromey <tromey@cygnus.com>
4737 * configure.host: Don't add `-O2' to libjava_flags. Only add
4738 `-Os' to libjava_flags once.
4740 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4742 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4743 * Makefile.in: likewise
4744 * acconfig.h: add ECOS conditional for configure.h
4745 * config.h.in: likewise
4746 * configure: add test for --with-ecos
4747 * configure.in: likewise
4748 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4749 rename call to avoid name clash.
4750 * java/lang/natSystem.cc: add eCos clock support.
4751 * java/util/natGregorianCalendar.cc: add eCos support.
4753 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4755 * Makefile.am, Makefile.in, configure.host: tx39 build option
4758 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4760 * java/io/BufferedReader.java: Added more comments for clarity.
4761 (mark): Used more mnemonic name for local var extraBuffSpace.
4763 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4764 confusion with private method of same name in superclass.
4765 (skipRedundantLF): Set fields in special case to avoid infinite
4766 recursion. Check if markPos has been invalidated in special case.
4767 (readLine): Rewritten to use readLine method of superclass.
4768 (skip): Incorporated code from lineEnd.
4770 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4772 * java/io/BufferedReader.java (readLine): New method.
4773 (lineEnd): new private method.
4774 (mark): Track special case for readLine of getting '\r' at the
4781 * java/io/InputStreamReader.java (read): Return number chars skipped
4782 rather than requested.
4784 * java/lang/StringBuffer.java (append): Update count and differentiate
4785 between field and local variable.
4787 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4788 seconds. Deal with military style time.
4789 (parse): Consistently treat all timezones in minutes until final
4790 calculation. Flag as non-local timezone. Return value in milliseconds.
4791 (setTime): Adjust for year offset from 1900.
4792 (UTC): Adjust for year offset from 1900.
4794 1998-11-17 Tom Tromey <tromey@cygnus.com>
4796 * configure: Rebuilt.
4797 * configure.in: Switch on host, not target.
4799 * Makefile.in: Rebuilt.
4800 * Makefile.am (GCJ_no): New macro.
4801 (GCJ): Use @CANADIAN@.
4802 (GCJH_no): New macro
4803 (GCJH_canadian): New macro.
4804 (GCJH): Use @CANADIAN@.
4805 (ZIP_no): New macro.
4806 (ZIP_canadian): New macro.
4807 (ZIP): Use @CANADIAN@.
4808 * aclocal.m4, configure: Rebuilt.
4809 * configure.in (CANADIAN): Compute and subst.
4811 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4813 * java/io/FileDescriptor.java (finalize): Only close file
4814 descriptor if valid.
4816 1998-11-17 Tom Tromey <tromey@cygnus.com>
4818 * prims.cc (_Jv_InitRuntime): Removed.
4820 1998-11-16 Tom Tromey <tromey@cygnus.com>
4822 * java/io/FileOutputStream.java (close): Only close file
4823 descriptor if valid.
4824 (finalize): New method.
4826 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4827 (_Jv_NewPrimArray): Likewise.
4828 * boehm.cc (_Jv_RegisterFinalizer): Use
4829 GC_REGISTER_FINALIZER_NO_ORDER.
4830 (GC_GENERIC_MALLOC): New define.
4831 (_Jv_AllocObj): Use it.
4832 (_Jv_AllocArray): Likewise.
4833 (_Jv_AllocBytes): Likewise.
4834 (_Jv_MarkObj): Just return if vtbl not set.
4835 (_Jv_MarkArray): Likewise.
4836 (MAYBE_MARK): New macro; use everywhere.
4837 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4839 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4841 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4842 to a jlong before calculation to prevent overflow.
4844 1998-11-16 Tom Tromey <tromey@cygnus.com>
4846 * Makefile.in: Rebuilt.
4847 * Makefile.am (nat_headers): Fixed typo.
4849 1998-11-15 Tom Tromey <tromey@cygnus.com>
4851 * java/lang/Class.h (Class::getName): Removed definition.
4852 * Makefile.in: Rebuilt.
4853 * Makefile.am (nat_headers): Added InstantiationException.h,
4854 NoSuchMethodException.h.
4855 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4856 (init_name): New global.
4857 (hackRunInitializers): Use clinit_name.
4858 Include InstantiationException.h, NoSuchMethodException.h.
4859 (newInstance): Do some error checking (but not all). Call
4861 (forName): Throw exception if class not found.
4862 (getName): New method.
4863 (forName): Transform class name from external format to internal
4864 format before lookup.
4866 1998-11-15 Anthony Green <green@cygnus.com>
4868 * java/lang/Class.h (Class::forName): Method is static.
4870 * java/lang/natClass.cc (newInstance): Add simple implementation.
4873 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4875 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4876 int), for compatibility with jc1.
4878 1998-11-14 Tom Tromey <tromey@cygnus.com>
4880 * include/config.h.in: Rebuilt.
4881 * acconfig.h (LINUX_THREADS): New define.
4882 * configure: Rebuilt.
4883 * configure.in: Define LINUX_THREADS if using POSIX threads on
4884 Linux. Look for pthread_mutexattr_setkind_np function.
4885 * posix-threads.cc (throw_cleanup): New function.
4886 (really_start): Push cleanup function.
4887 (_Jv_ThreadCancel): New function.
4888 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4889 (_Jv_ThreadInitData): Set `exception' field in new structure.
4890 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4892 (_Jv_ThreadWait): New function.
4893 (_Jv_InitThreads): Initialize daemon globals.
4894 (FLAG_DAEMON): New macro.
4895 (really_start): Notify daemon_cond when non-daemon thread exits.
4896 Include <java/lang/System.h>.
4897 (struct starter): `object' field now a thread.
4898 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4899 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4900 (_Jv_ThreadWait): Removed definition.
4901 (_Jv_Thread_t): Added `exception' field.
4902 (_Jv_ThreadCancel): Removed definition.
4904 1998-11-13 Tom Tromey <tromey@cygnus.com>
4906 * Makefile.in: Rebuilt.
4907 * Makefile.am (libjava.zip): Compute javac before changing
4910 * Makefile.in: Rebuilt.
4911 * Makefile.am (libjava.zip): Include directory entries.
4913 * Makefile.in: Rebuilt.
4914 * Makefile.am (expanded): New macro.
4917 1998-11-12 Tom Tromey <tromey@cygnus.com>
4919 * prims.cc (clone): New function.
4920 * include/java-array.h (__JArray::clone): Removed definition.
4922 * java/lang/natObject.cc (clone): Don't assert that class is not
4923 an array; array's `clone' method just calls this one.
4925 * Makefile.in: Rebuilt.
4926 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4927 Now creates zip file. Changed all users.
4929 (data_DATA): New macro.
4931 1998-11-11 Tom Tromey <tromey@cygnus.com>
4933 * configure: Rebuilt.
4934 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4936 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4938 * java/io/InputStream.java (reset): Add msg to thrown exception.
4940 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4942 * java/io/LineNumberInputStream.java: Rewritten.
4944 * java/io/StringBufferInputStream.java: Removed extraneous import.
4946 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4948 * java/io/StringBufferInputStream.java: Rewritten.
4950 * java/util/Date.java (parseMonth): Optimize.
4951 (parseDayOfWeek): Created.
4952 (parse): Optimize to use parseDayOfWeek.
4954 1998-11-11 Tom Tromey <tromey@cygnus.com>
4956 * java/lang/StringBuffer.java (append): Handle case where STR is
4959 * include/javaprims.h: Regenerated class declarations.
4961 * configure: Rebuilt.
4962 * configure.in: Added --enable-gcj-classes,
4963 --enable-single-compilation, --enable-source-compilation flags.
4964 * Makefile.in: Rebuilt.
4965 * Makefile.am (java_io_files): New macro.
4966 (java_lang_files): Likewise.
4967 (java_text_files): Likewise.
4968 (java_util_files): Likewise.
4969 (java_files): Use new macros.
4970 (java-io.o): New target.
4971 (java-lang.o): Likewise.
4972 (java-text.o): Likewise.
4973 (java-util.o): Likewise.
4974 (src_io_files): New macro.
4975 (src_lang_files): Likewise.
4976 (src_text_files): Likewise.
4977 (src_util_files): Likewise.
4978 (class_io_files): New macro.
4979 (class_lang_files): Likewise.
4980 (class_text_files): Likewise.
4981 (class_util_files): Likewise.
4982 (class_files): Use new macros.
4983 (javao_files): Define conditionally.
4984 (.java.o): New target.
4985 ($(javao_files)): New target.
4987 (GCJH): Added $(EXEEXT).
4988 (CLASSPATH_ENV): Removed.
4989 (GCJCOMPILE): New macro.
4991 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4993 * java/util/Date.java (parse): Written from scratch.
4995 1998-11-11 Tom Tromey <tromey@cygnus.com>
4997 * java/lang/Throwable.java (toString): Correct sense of test for
4998 determining when to include detail message in result.
5000 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
5003 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
5005 * java/lang/Class.h: Use _Jv_RegisterClasses, not
5007 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
5008 (_Jv_RegisterClass): Use it.
5009 * include/jvm.h (_Jv_RegisterClasses): Declare.
5010 * java/lang/natObject.cc (init): Removed.
5011 (sync_init): Never call _Jv_InitializeSyncMutex.
5012 (_Jv_InitializeSyncMutex): Don't set `init'.
5013 * prims.cc (JvRunMain): Don't run init functions.
5015 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
5017 * java/lang/natClass.cc (initializeClass): Set state before
5018 resolving constants.
5020 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
5021 (STATE_RESOLVED): New macro.
5022 (initializeClass): Call resolveConstants.
5023 (hackRunInitializers): Don't call resolveConstants.
5024 (_Jv_FindArrayClass): Move short-circuit return for primitive
5025 element types earlier in function.
5027 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
5029 * prims.cc (no_memory): New global.
5030 (_Jv_makeUtf8Const): Throw no_memory.
5031 (_Jv_AllocObject): Likewise.
5032 (_Jv_NewObjectArray): Likewise.
5033 (_Jv_NewPrimArray): Likewise.
5034 (JvRunMain): Initialize no_memory.
5036 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
5038 * java/io/FileInputStream.java: Corrected date comment.
5039 * java/io/SequenceInputStream.java: Rewritten.
5041 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
5043 * java/lang/FirstThread.java (die): New method.
5044 * java/lang/natFirstThread.cc (die): Removed.
5046 (run): Use `DIE', not `die'.
5048 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
5050 * java/io/CharArrayReader.java (read): Move check into synchronized
5051 block to prevent a close while in progress.
5054 * java/io/PushbackReader.java (read): Ditto.
5057 * java/io/StringReader.java (mark): Ditto.
5062 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
5064 * java/io/PipedInputStream.java: Updated status.
5065 (connect): Added code to prevent infinite recursion and to
5066 differentiate exception causes.
5067 (read): Added code to differentiate exception causes.
5068 (receive): Made exception pass string with the cause.
5070 * java/io/PipedOutputStream.java: Updated status.
5071 (connect): Added code to call connect at the other end of the pipe.
5073 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
5075 * java/io/PipedInputStream.java (connect): Throw exception if
5076 already connected to the same output stream.
5077 (read): Do bounds checking first.
5079 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
5081 * java/io/PipedInputStream.java: Added private boolean outClosed.
5082 (available): Removed check if output stream is open.
5083 (close): Mark the buffer as empty so available returns 0.
5084 (read): Check if the output stream was closed and then return EOF
5085 when the buffer is empty.
5086 (receive): Mark the output stream as closed when passed a -1.
5088 * java/io/PipedOutputStream.java (close): Notify the input stream
5089 that there's no more data coming.
5090 (connect): Added a FIXME comment to note more coordination needed
5091 with PipedInputStream.
5092 (flush): Added a FIXME comment to mark what this method might do
5095 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
5097 * java/io/PipedInputStream.java: Rewritten.
5099 1998-10-30 Tom Tromey <tromey@cygnus.com>
5101 * java/lang/Throwable.java: Rewrote from scratch.
5103 * java/lang/Class.h (Class): Don't mention newMultiArray.
5104 * prims.cc (newMultiArray): Removed.
5105 (_Jv_NewMultiArray): Removed.
5106 (newArray): Removed.
5107 (new_multi_array): New function.
5108 (_Jv_NewMultiArray): Rewrote from scratch.
5110 * include/javaprims.h: Regenerated class declarations.
5111 * classes.pl (scan): Don't declare PrimClass.
5112 * include/cni.h (JvPrimClass): Use new names for classes.
5113 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
5114 added _Jv_PrimClass.
5115 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
5116 (_Jv_initPrimClass): Removed.
5117 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
5118 (_Jv_AllocObject): Added comment.
5119 (_Jv_NewObjectArray): Likewise.
5120 (_Jv_NewPrimArray): Likewise.
5122 1998-10-29 Tom Tromey <tromey@cygnus.com>
5124 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
5125 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
5127 * java/lang/Class.h (Class): Added `dtable_method_count' field.
5129 * java/lang/natObject.cc (init): New global.
5130 (sync_init): Call _Jv_InitializeSyncMutex if required.
5132 * Makefile.in: Rebuilt.
5133 * Makefile.am (nat_headers): Added ClassLoader.h.
5134 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
5135 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
5136 internalAddClass, lookupArray no longer friends.
5137 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
5138 _Jv_FindArrayClass now friends.
5139 * java/lang/natClass.cc (HASH_LEN): New macro.
5140 (HASH_UTF): Likewise.
5141 (loaded_classes): New global.
5142 (_Jv_FindClass): New function.
5143 (ClassClass): New define.
5144 (_Jv_FindClassInCache): New function.
5145 (_Jv_RegisterClass): Likewise.
5146 (_Jv_NewClass): Likewise.
5148 (ObjectClass): New define.
5149 (CloneableClass): New define.
5150 * prims.cc (_Jv_FindClass): Removed.
5151 (simpleLookupClass): Removed.
5152 (insertClass): Removed.
5153 (CLASSHASHSZ): Removed.
5154 (classPool): Removed.
5155 (_Jv_RegisterClass): Removed.
5156 (internalAddClass): Removed.
5157 (ClassClass): Removed.
5158 (RuntimeClass): Removed.
5159 (lookupArray): Removed.
5160 (CloneableClass): Removed.
5161 (CLASSMAXSIG): Removed.
5162 Rearranged file to group related functions together.
5163 (_Jv_IsInstanceOf): Moved to natClass.cc.
5164 (abort_final): Removed.
5165 Removed some unused includes.
5166 (classFromSig): Removed.
5167 (_Jv_FindClassFromSignature): New function.
5168 (_Jv_initPrimClass): Renamed.
5169 (getClass): Removed.
5171 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
5173 * java/io/FileDescriptor.java (finalize): Throws IOException
5174 instead of Throwable.
5176 * java/io/FileInputStream.java: Rewritten.
5178 * java/io/StreamTokenizer.java (nextToken): Unread newline character
5179 at the end of a comment.
5181 1998-10-29 Tom Tromey <tromey@cygnus.com>
5183 * include/javaprims.h: Regenerated class declarations.
5184 * classes.pl (scan): Don't special-case ClassLoader.
5186 * prims.cc (processClass): Removed.
5187 (_Jv_InitClass): Removed.
5188 Removed all CSTATE_ macros.
5189 (resolveConstants): Removed.
5191 (_Jv_NewMultiArray): Cleaned up.
5192 * Makefile.in: Rebuilt.
5193 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5194 * java/lang/Class.h (Class): Declare new methods. processClass no
5196 * java/lang/Class.java (hackTrampoline): New method.
5197 (initializeClass): Declare.
5198 (hackRunInitializers): Declare.
5199 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5200 (initializeClass): New method.
5201 (hackRunInitializers): New method.
5202 (init_name, void_signature): Moved from prims.cc.
5203 (_Jv_InitClass): New function.
5204 (isAssignableFrom): Don't call processClass.
5205 (STATE_NOTHING): New macro.
5206 (resolveConstants): New function.
5208 (ErrorClass): New define.
5210 * java/lang/Class.java (getClassLoader): Declare.
5211 * java/lang/ClassLoader.java: Rewrote from scratch.
5213 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5214 AbstractMethodError.h, IllegalAccessError.h,
5215 NoClassDefFoundError.h.
5216 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5217 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5218 longer static. Changed return type.
5219 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5220 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5221 * prims.cc (findMethodLocal): Removed.
5222 (processClass): Use _Jv_GetMethodLocal.
5224 1998-10-28 Tom Tromey <tromey@cygnus.com>
5226 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5227 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5229 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5230 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5232 * include/jni.h: Added copyright header.
5233 * include/javaprims.h: Added copyright header.
5234 * include/java-field.h: Added copyright header.
5235 * include/java-array.h: Added copyright header.
5236 * include/cni.h: Added copyright header.
5238 * include/javaprims.h: Regenerated class declarations using
5239 classes.pl; now they are complete.
5240 * classes.pl: New file.
5242 * java/lang/natMath.cc: Include <config.h>.
5243 * java/lang/reflect/natField.cc: Include <config.h>.
5244 * java/util/NativeUtil.java: Removed.
5245 * Makefile.in: Rebuilt.
5246 * Makefile.am (nat_headers): Added Math.h.
5247 * java/lang/Math.h: Removed.
5248 * java/util/natGregorianCalendar.cc: Added copyright header.
5250 * java/lang/natFloat.cc: Added copyright header.
5251 * java/lang/Byte.java: Added copyright header.
5252 * java/lang/Void.java: Added copyright header.
5253 * java/lang/Short.java: Added copyright header.
5255 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5257 * include/javaprims.h (java::io): Added bunch of missing classes.
5259 * java/io/DataInputStream.java (readLine): Added a special case
5260 for handling BufferedInputStream data to reduce the likelihood
5261 of a pushback error.
5262 (skipBytes): Added code to handle negative number of skip bytes.
5264 * java/io/StreamTokenizer.java: Rewritten.
5266 1998-10-28 Tom Tromey <tromey@cygnus.com>
5268 * java/util/natGregorianCalendar.cc (computeFields): Call
5269 getRawOffset as a method.
5271 * include/javaprims.h (java::io): Added FilterOutputStream.
5272 * Makefile.in: Rebuilt.
5273 * Makefile.am (nat_headers): Added PrintStream.h,
5274 FilterOutputStream.h.
5275 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5277 (die): New function.
5278 (run): Die if `main' not found, is not public, or is not static.
5280 * boehm.cc (_Jv_MarkObj): Use new field names.
5281 * include/java-field.h (JvGetFirstInstanceField): Use new field
5283 (JvNumInstanceFields): Likewise.
5284 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5285 (getInterfaces): Likewise.
5286 * prims.cc (CLASS_CONSTANTS): Removed.
5287 (CLASS_CONST_SIZE): Likewise.
5288 (CLASS_CONST_TAG): Likewise.
5289 (CLASS_CONST_DATA): Likewise.
5290 (CLASS_CONST_UTF8): Likewise.
5291 (WORD2UTF): Likewise.
5292 (CLASS_CLASS): Likewise.
5293 (CLASS_PRIM_SIG): Likewise.
5294 (CLASS_ARRAY_CACHE): Likewise.
5295 (HASH_CHARS): Likewise.
5296 (hashClassName): Likewise.
5297 Many changes to use new field names.
5298 * java/lang/Class.h (Class): Renamed fields to track compiler.
5300 1998-10-27 Tom Tromey <tromey@cygnus.com>
5302 * java/lang/natClass.cc: Use #pragma implementation.
5303 (getComponentType): Moved into header.
5304 (getModifiers): Likewise.
5305 (getName): Likewise.
5306 (getSuperclass): Likewise.
5307 (isArray): Likewise.
5308 (isPrimitive): Likewise.
5309 * include/jvm.h (_Jv_FindClass): Declare.
5310 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5311 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5312 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5313 * java/lang/Class.h: Rewrote from scratch.
5314 * prims.cc: Many changes to work with new Class.h.
5315 * include/java-field.h (CLASS_FIELDS): Removed.
5316 (CLASS_SFIELDS): Likewise.
5317 (CLASS_IFIELDS): Likewise.
5318 (CLASS_NFIELDS): Likewise.
5319 (CLASS_NIFIELDS): Likewise.
5320 (CLASS_NSFIELDS): Likewise.
5321 (CLASS_FSIZE): Likewise.
5322 (JvGetFirstInstanceField): Rewrote.
5323 (JvNumInstanceFields): Likewise.
5325 * java/lang/Object.h: Added copyright comment.
5327 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5329 * java/text: New package directory.
5330 * java/text/FieldPosition.java: New class.
5331 * java/text/ParsePosition.java: New class.
5332 * java/text/ParseException.java: New Exception class.
5333 * java/text/Format.java: New class.
5334 * java/text/NumberFormat.java: New (empty placeholder) class.
5335 * java/text/DateFormatSymbols.java: New class (no Locales support).
5336 * java/text/DateFormat.java: New Format class (incomplete).
5337 * java/text/SimpleDateFormat.java: New DateFormat class.
5339 * include/javaprims.h (java::test): Added new package and classes.
5340 * java/util/Calendar.java (clone): New method.
5341 * java/util/Date.java (toString): Added non-native implementation.
5342 (parse): Made public instead of synchronized.
5343 * java/util/natDate.cc (toString): Removed.
5344 * java/util/natGregorianCalendar.cc (computeFields):
5345 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5347 1998-10-27 Tom Tromey <tromey@cygnus.com>
5349 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5351 * prims.cc (lookupArray): Added explanatory comment.
5352 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5353 class. Mark the class of each object.
5354 (_Jv_MarkArray): Mark the object's class.
5356 * configure: Rebuilt.
5357 * configure.in: Create java-gc.h.
5358 * include/boehm-gc.h: New file.
5359 * include/no-gc.h: New file.
5360 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5362 * java/lang/Object.h: Include java-gc.h.
5363 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5364 friends, if defined.
5365 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5367 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5369 1998-10-26 Tom Tromey <tromey@cygnus.com>
5371 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5372 paragraph separators, not numbers.
5374 * java/io/Writer.java (write): Removed write(char) to avoid
5376 * java/util/Properties.java: Rewrote from scratch.
5377 * include/javaprims.h (java::io): Added PrintWriter,
5378 BufferedWriter, PushbackReader.
5380 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5382 * java/lang/System.java: exit() is a static method.
5384 1998-10-26 Tom Tromey <tromey@cygnus.com>
5386 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5388 (_Jv_NewStringUtf8Const): Likewise.
5389 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5390 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5392 * java/lang/Object.h (Object): Add mark_array as friend function.
5393 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5394 _Jv_AllocBytes, to ensure that header is marked.
5395 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5397 (mark_array): Push sync_info field for array.
5399 1998-10-24 Tom Tromey <tromey@cygnus.com>
5401 * java/lang/String.java (String): Updated for StringBuffer
5403 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5405 * java/lang/StringBuffer.java: Renamed fields to conform to
5406 serialization spec: buffer->value, next->count, copy->shared.
5408 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5410 * java/util/TimeZone.java: New class.
5411 * java/util/SimpleTimeZone.java: New class.
5412 * java/util/Locale.java: New file.
5413 * java/util/Calendar.java: Make almost complete.
5414 * java/util/GregorianCalendar.java
5415 * java/util/natGregorianCalendar.cc: New file.
5416 * java/util/Date.java: Re-written from scratch.
5417 * java/util/natDate.cc (setTime): Removed - no longer native.
5418 * include/javaprims.h (java::util): Add new classes.
5419 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5420 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5422 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5424 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5425 returning it as a jint.
5427 1998-10-23 Tom Tromey <tromey@cygnus.com>
5429 * prims.cc (arg_vec, main_group, main_thread): New globals.
5430 (JvRunMain): Use them.
5432 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5434 * java/io/DataInputStream.java: Rewritten.
5436 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5437 tertiary bytes with 0x80 per spec.
5439 1998-10-23 Tom Tromey <tromey@cygnus.com>
5441 * java/lang/String.java (init): Changed name of `copy' argument.
5442 * java/lang/natString.cc (init): Inverted sense of `copy'
5445 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5446 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5447 * boehm.cc (ObjectClass): New define.
5448 (ClassClass): Likewise.
5449 (mark_obj): Special-case Object and Class.
5451 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5453 * java/util/BitSet.java: Rewrote from scratch.
5455 * prims.cc (lookupArray): Removed useless cast.
5457 * java/lang/natObject.cc: Use `#pragma implementation'.
5459 * java/lang/String.java (init): Added `copy' argument.
5460 (String): Look in StringBuffer to find char array.
5461 * java/lang/natString.cc (init): Added `copy' argument.
5462 * java/lang/StringBuffer.java: Rewrote from scratch.
5464 * java/lang/Compiler.java: Rewrote from scratch.
5465 * java/lang/Throwable.java: Don't use NativeLang.
5466 * include/javaprims.h (java::lang): Don't mention NativeLang.
5467 * java/lang/Process.java: Rewrote from scratch.
5468 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5470 (currentClassLoader): Likewise.
5471 (currentLoadedClass): Likewise.
5472 * java/lang/natClass.cc (getClassLoader): Commented out.
5473 * java/lang/Class.java (getClassLoader): Commented out.
5474 * java/lang/Compiler.java: Removed.
5475 * java/lang/NativeLang.java: Removed.
5477 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5478 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5479 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5480 (_Jv_hashUtf8String): Now static.
5481 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5482 name of return type.
5484 * java/lang/Class.h (Class): Declare checkMemberAccess.
5485 * Makefile.in: Rebuilt.
5486 * Makefile.am (nat_headers): Added Member.h.
5487 * java/lang/natClass.cc: Include Member.h.
5488 (getDeclaredClasses): Call checkMemberAccess.
5489 * java/lang/Class.java (checkMemberAccess): Call
5490 SecurityManager.checkMemberAccess.
5492 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5494 * java/lang/SecurityManager.java: Rewritten.
5496 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5498 * java/applet/Applet.java, java/applet/AppletContext.java,
5499 java/applet/AppletStub.java, java/applet/AudioClip.java,
5500 java/awt/AWTError.java, java/awt/AWTException.java,
5501 java/awt/BorderLayout.java, java/awt/Button.java,
5502 java/awt/Canvas.java, java/awt/CardLayout.java,
5503 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5504 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5505 java/awt/Color.java, java/awt/Component.java,
5506 java/awt/Container.java, java/awt/Dialog.java,
5507 java/awt/Dimension.java, java/awt/Event.java,
5508 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5509 java/awt/Font.java, java/awt/FontMetrics.java,
5510 java/awt/Frame.java, java/awt/Graphics.java,
5511 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5512 java/awt/GridLayout.java, java/awt/Image.java,
5513 java/awt/Insets.java, java/awt/Label.java,
5514 java/awt/LayoutManager.java, java/awt/List.java,
5515 java/awt/MediaTracker.java, java/awt/Menu.java,
5516 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5517 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5518 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5519 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5520 java/awt/TextArea.java, java/awt/TextComponent.java,
5521 java/awt/TextField.java, java/awt/Toolkit.java,
5522 java/awt/Window.java, java/awt/image/ColorModel.java,
5523 java/awt/image/CropImageFilter.java,
5524 java/awt/image/DirectColorModel.java,
5525 java/awt/image/FilteredImageSource.java,
5526 java/awt/image/ImageConsumer.java,
5527 java/awt/image/ImageFilter.java,
5528 java/awt/image/ImageObserver.java,
5529 java/awt/image/ImageProducer.java,
5530 java/awt/image/IndexColorModel.java,
5531 java/awt/image/MemoryImageSource.java,
5532 java/awt/image/PixelGrabber.java,
5533 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5534 java/awt/peer/CanvasPeer.java,
5535 java/awt/peer/CheckboxMenuItemPeer.java,
5536 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5537 java/awt/peer/ComponentPeer.java,
5538 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5539 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5540 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5541 java/awt/peer/MenuBarPeer.java,
5542 java/awt/peer/MenuComponentPeer.java,
5543 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5544 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5545 java/awt/peer/TextAreaPeer.java,
5546 java/awt/peer/TextComponentPeer.java,
5547 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5548 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5549 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5550 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5551 java/net/MalformedURLException.java, java/net/NativeNet.java,
5552 java/net/ProtocolException.java, java/net/ServerSocket.java,
5553 java/net/Socket.java, java/net/SocketException.java,
5554 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5555 java/net/URL.java, java/net/URLConnection.java,
5556 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5557 java/net/URLStreamHandlerFactory.java,
5558 java/net/UnknownHostException.java,
5559 java/net/UnknownServiceException.java: Removed.
5561 1998-10-22 Tom Tromey <tromey@cygnus.com>
5563 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5564 finalizer is not Object.finalize.
5565 (internalAddClass): Don't set `final' member of class.
5566 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5567 other places that know about finalize() location.
5568 * java/lang/Class.h (Class): Removed `final' field.
5570 * aclocal.m4, configure: Rebuilt.
5571 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5572 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5574 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5575 * Makefile.in: Rebuilt.
5576 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5578 1998-10-21 Tom Tromey <tromey@cygnus.com>
5580 * java/lang/Object.java (finalize): Move to be first method in
5583 * configure: Rebuilt.
5584 * configure.in (GCINCS): Include contents of boehm-cflags file.
5586 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5588 * java/lang/ArrayIndexOutOfBoundsException.java
5589 (ArrayIndexOutOfBoundsException): Fixed string literal.
5590 * java/lang/StringIndexOutOfBoundsException.java
5591 (StringIndexOutOfBoundsException): Fixed string literal.
5593 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5595 * natFileDescriptorEcos.cc added.
5596 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5598 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5600 * acconfig.h: test for __int32_t and __uint32_t added.
5601 * include/config.h.in: test for __int32_t and __uint32_t added.
5602 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5603 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5604 * configure.in: test for __int32_t and __uint32_t added.
5605 * configure: test for __int32_t and __uint32_t added.
5607 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5609 * configure.in: Test for --enable ecos and link
5610 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5611 natFileDescriptorPosix.cc
5613 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5615 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5617 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5620 * java/io/CharArrayReader.java (close): Synchronize on lock
5621 object per Reader contract.
5622 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5623 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5624 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5625 Ensure that arg passed in isn't negative.
5627 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5628 constructing the superclass.
5630 * java/io/PushbackReader.java (close): Synchronize on lock
5631 object per Reader contract.
5632 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5633 (ready): Synchronize on lock obj. Throw IOException if reader
5635 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5636 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5637 Ensure that arg passed in isn't negative.
5638 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5640 * java/io/StringReader.java: Created.
5642 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5644 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5646 (read): Removed synchronized modifier to match JCL.
5647 (reset): Removed synchronized modifier to match JCL.
5648 (skip): Removed synchronized modifier to match JCL.
5650 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5652 * java/io/PushbackReader.java (PushbackReader): Made
5653 constructors public.
5655 1998-10-17 Tom Tromey <tromey@cygnus.com>
5657 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5658 constructors public.
5660 1998-10-16 Anthony Green <green@cygnus.com>
5662 * aclocal.m4, configure: Rebuilt.
5663 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5665 * configure.host: Rewrote.
5666 * Makefile.in: Rebuilt.
5667 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5668 (AM_CFLAGS): New macro.
5669 ($(c_files)): Use COMPILE macro.
5670 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5671 automake problem(s).
5673 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5675 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5677 * java/io/CharArrayReader.java: Created.
5679 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5681 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5682 size check to allow 0 per JCL.
5684 * java/io/PushbackReader.java: Created.
5686 1998-10-16 Tom Tromey <tromey@cygnus.com>
5688 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5689 <sys/time.h> includes.
5690 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5691 * include/no-threads.h: Conditionalize <unistd.h> include on
5694 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5696 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5699 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5701 * java/io/FilterReader.java: Created.
5703 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5705 * java/io/PushbackInputStream.java: Rewritten.
5707 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5708 that size passed to constructor is legal.
5709 (read): Check that args passed in are legal.
5710 (skip): Rewritten to get rid of the temporary buffer.
5711 (refill): Added marklimit check to grow the buffer.
5713 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5715 (bytesAvail): Removed.
5716 (read): Changed bytesAvail to Math.min.
5717 (skip): Changed bytesAvail to Math.min.
5719 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5720 from the throws clause.
5721 (skip): Rewritten to use a temporary buffer.
5723 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5725 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5728 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5730 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5731 to write the double one word at a time.
5733 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5735 * java/io/BufferedInputStream.java: Rewritten.
5737 1998-10-12 Tom Tromey <tromey@cygnus.com>
5739 * jni.cc: Include config.h and stddef.h.
5741 * java/lang/Class.h (_dispatchTable): Removed again.
5742 Removed all ACC_* defines again.
5744 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5746 * Makefile.am (nat_files): Add netField.o.
5747 (libjava_a_SOURCES): Add jni.cc.
5748 (java/lang/reflect/Field.h): New rule.
5749 * Makefile.in: Re-generated.
5750 * include/javaprims.h: Add some extra class and typedefs.
5751 * include/jni.h: New file.
5754 * include/java-field.h: New file.
5755 * include/jvm.h: #include <java-field.h>.
5756 * boehm.cc: #include <java-field.h>.
5757 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5758 * java/lang/reflect/Member.java: New class.
5759 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5760 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5762 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5764 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5765 testsuite/Makefile.in: Rebuilt.
5766 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5767 * configure.host: Created.
5769 1998-10-10 Tom Tromey <tromey@cygnus.com>
5771 * java/lang/natObject.cc (sync_init): Always allocate a new
5774 1998-10-09 Tom Tromey <tromey@cygnus.com>
5776 * java/io/ByteArrayInputStream.java (mark): Renamed from
5779 * java/io/FileOutputStream.java (finalize): Removed.
5780 * java/io/FileDescriptor.java (finalize): New method.
5782 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5784 * ByteArrayInputStream.java: Corrected status comment.
5786 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5788 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5790 1998-10-08 Tom Tromey <tromey@cygnus.com>
5792 * prims.cc (lookupArray): Use static array to initialize list of
5795 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5797 * prims.cc (lookupArray): Initialize the msize for new
5800 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5802 * configure: Rebuilt.
5803 * configure.in: Check for fsync and sleep.
5804 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5806 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5807 HAVE_SLEEP. Include config.h.
5809 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5810 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5813 1998-10-08 Tom Tromey <tromey@cygnus.com>
5815 * java/io/natFile.cc: Don't include SecurityManager.h.
5816 (performList): Renamed.
5817 (performMkdir): Likewise.
5818 (performRenameTo): Likewise.
5819 (performDelete): Likewise.
5821 * java/io/File.java (performDelete): Renamed from natDelete.
5822 (list): Now written in Java.
5823 (performList): New method.
5824 (performMkdir): New method.
5825 (mkdir): Now written in Java.
5826 (performRenameTo): New method.
5827 (renameTo): Now written in Java.
5829 1998-10-06 Tom Tromey <tromey@cygnus.com>
5831 * Makefile.in: Rebuilt.
5832 * Makefile.am (ETAGS_ARGS): New macro.
5833 (TAGS_DEPENDENCIES): Likewise.
5835 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5837 * Makefile.in: Rebuilt.
5838 * Makefile.am: Use -classpath option with javac.
5840 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5842 * java/io/FileOutputStream.java (finalize): Call
5845 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5847 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5849 * java/lang/mprec.c: Ditto.
5851 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5854 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5856 * java/io/InputStream.java (skip): Make local var i a long.
5858 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5860 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5861 * prims.cc (lookupArray): Use memcpy, not memmove.
5862 * include/config.h.in: Rebuilt.
5863 * acconfig.h (HAVE_MEMCPY): Added.
5864 * configure: Rebuilt.
5865 * configure.in: Check for memcpy again.
5867 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5868 String.compareTo, not ==.
5870 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5871 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5872 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5873 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5874 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5875 into new array's dtable.
5876 (_Jv_AllocObject): Use _Jv_DispatchTable.
5877 (_Jv_NewPrimArray): Likewise.
5878 (_Jv_NewObjectArray): Likewise.
5880 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5882 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5883 offending index value.
5884 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5886 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5887 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5889 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5891 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5893 * java/io/OutputStream.java (write): Use off and len parameters to
5894 output partial byte array.
5896 * java/io/BufferedReader.java, java/io/FileReader.java,
5897 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5898 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5899 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5900 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5902 * include/javaprims.h (java::lang): Added
5903 ExceptionInInitializerError, IllegalStateException,
5904 NoSuchFieldException, and UnsupportedOperationException.
5906 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5908 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5911 * include/java-array.h (__JArray): Added clone method.
5912 * prims.cc (CloneableClass): New define.
5913 (lookupArray): Initialize array class to indicate that it
5914 implements Cloneable.
5916 * java/lang/Class.h: Removed all ACC_* defines.
5917 * prims.cc: Include Modifier.h.
5918 (_Jv_LookupInterfaceMethod): Use methods in
5919 java.lang.reflect.Modifier, not ACC_ defines.
5921 * java/lang/Class.h (Class): Declare getClasses,
5922 getDeclaredClasses, getDeclaringClass, getModifiers,
5923 * java/lang/Class.java: Rewrote from scratch.
5925 * include/javaprims.h (java::lang): Added reflect and
5927 * Makefile.in: Rebuilt.
5928 * Makefile.am (nat_headers): Added Modifier.h.
5930 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5933 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5935 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5936 instead of test and abort.
5938 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5939 remove compiler warning.
5941 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5943 * java/lang/natDouble.cc: zero terminate string.
5944 * strtod.c: Set errno if no digits are found in fraction.
5946 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5948 * java/lang/reflect/Modifier.java: New file.
5950 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5951 * java/lang/VerifyError.java: Rewrote from scratch.
5952 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5953 * java/lang/UnknownError.java: Rewrote from scratch.
5954 * java/lang/StackOverflowError.java: Rewrote from scratch.
5955 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5956 * java/lang/InternalError.java: Rewrote from scratch.
5957 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5958 * java/lang/ExceptionInInitializerError.java: New file.
5959 * java/lang/Error.java: Rewrote from scratch.
5960 * java/lang/ClassFormatError.java: Rewrote from scratch.
5961 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5962 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5963 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5964 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5965 * java/lang/LinkageError.java: Rewrote from scratch.
5966 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5968 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5970 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5971 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5973 * include/cni.h (JvAllocObject): Moved from prims.cc.
5975 * prims.cc (JvAllocObject): Moved to cni.h.
5976 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5977 (finalize_name): Removed.
5979 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5981 * java/lang/Class.h (Class): Added size() method.
5982 * prims.cc (_Jv_MonitorEnter): Removed.
5983 (_Jv_MonitorExit): Removed.
5984 * java/lang/Object.h (JvSyncInfo): Removed.
5985 * Makefile.in: Rebuilt.
5986 * Makefile.am (nat_headers): Added Cloneable.h,
5987 CloneNotSupportedException.h.
5988 * java/lang/Object.h: Rewrote.
5989 * java/lang/natObject.cc: Rewrote from scratch.
5990 * java/lang/Object.java: Rewrote from scratch.
5992 * java/io/natFile.cc: Conditionally include <dirent.h>.
5993 (list): If no <dirent.h>, always return NULL.
5994 * configure: Rebuilt.
5995 * configure.in: Check for dirent.h.
5997 * prims.cc (lookupArray): Don't use sprintf.
5999 * java/util/Hashtable.java (containsKey): Use `abs' to compute
6006 * java/util/Hashtable.java (hsize): Renamed from size to avoid
6007 name conflict with method.
6009 * include/javaprims.h (java::util): Added HashtableEntry.
6011 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
6013 * java/util/Hashtable.java: Rewritten.
6015 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6017 * java/io/natFileDescriptor.cc (write): Correctly test `write'
6021 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
6024 * posix-threads.cc (_Jv_CondWait): Now returns int.
6025 * include/javaprims.h (java::lang): Added
6026 IllegalMonitorStateException.
6027 * Makefile.in: Rebuilt.
6028 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
6029 * include/no-threads.h (_Jv_CondDestroy): Removed.
6030 (_Jv_MutexDestroy): Removed.
6031 (_Jv_CondWait): Now returns int.
6032 (_Jv_CondNotify): Likewise. Added mutex argument.
6033 (_Jv_CondNotifyAll): Likewise.
6034 (_Jv_MutexLock): Always succeed.
6035 (_Jv_MutexUnlock): Likewise.
6036 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
6037 (_Jv_HaveMutexDestroy): Define.
6038 (_Jv_CondNotify): Now returns int. Added mutex argument.
6039 (_Jv_CondNotifyAll): Likewise.
6040 * include/quick-threads.h (_Jv_CondDestroy): Removed.
6041 (_Jv_MutexDestroy): Removed.
6042 (_Jv_CondWait): Now returns int.
6043 (_Jv_CondNotify): Likewise. Added mutex argument.
6044 (_Jv_CondNotifyAll): Likewise.
6045 * java/lang/natObject.cc (finalize_sync_info): New function.
6046 (init_mutex): Initialize `init' and register finalizer if
6049 (init_mutex): Use it.
6051 (notifyAll): Use it.
6053 (notify): Throw IllegalMonitorStateException on failure.
6054 (notifyAll): Likewise.
6055 (wait): Likewise. Also, throw InterruptedException if
6057 Include cni.h, Thread.h, IllegalMonitorStateException.h,
6058 InterruptedException.h, IllegalArgumentException.h.
6059 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
6061 * java/lang/natString.cc: Renamed all `JvPriv' functions.
6062 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
6063 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
6064 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
6065 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
6066 * quick-threads.cc: Renamed all `JvPriv' functions.
6067 * prims.cc: Renamed all `JvPriv' functions.
6068 * posix-threads.cc: Renamed all `JvPriv' functions.
6069 * nogc.cc: Renamed all `JvPriv' functions.
6070 * no-threads.cc: Renamed all `JvPriv' functions.
6071 * boehm.cc: Renamed all `JvPriv' functions.
6072 * include/quick-threads.h: Renamed all `JvPriv' functions.
6073 * include/posix-threads.h: Renamed all `JvPriv' functions.
6074 * include/no-threads.h: Renamed all `JvPriv' functions.
6075 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
6077 * include/no-threads.h (JvPrivCondWait): Wrote minimal
6079 (JvPrivCondNotify): Do nothing.
6080 (JvPrivCondNotifyAll): Do nothing.
6082 * prims.cc (processClass): Handle case where state is
6085 * java/lang/natFirstThread.cc: Include <stdlib.h>
6087 * configure: Rebuilt.
6088 * configure.in: Fixed sense of --enable-libjava-debug.
6090 * java/lang/natThread.cc (join): Declare `t' outside the loop so
6091 it can be used afterward by the assertion.
6093 * configure: Rebuilt.
6094 * configure.in: When cross-compiling, assume alloca.
6096 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
6097 __builtin_alloca (autoconf docs are wrong here).
6099 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
6101 (available): Use `FD_ZERO' (typo fix).
6103 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6105 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6106 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
6108 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6109 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
6112 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
6114 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
6116 * java/lang/natDouble.cc: Declare alloca safely.
6118 * configure, include/config.h.in: Rebuilt.
6119 * configure.in: Add alloca check.
6121 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6123 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
6124 condition while calling notify.
6125 (join): Remove `curr_nt' from `nt's join list, not vice versa.
6126 (interrupt): Hold mutex for interrupt condition while calling
6129 * java/lang/natString.cc (init): Allocate and try to read `count'
6130 characters, not `count - offset' characters.
6132 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
6133 Correctly compute `count'.
6135 * java/lang/Boolean.java (getBoolean): Return false if property
6138 * java/lang/System.java (setProperties): Set prop_init.
6140 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
6142 * java/io/PrintStream.java (println): Use line.separator, not
6144 * java/lang/System.java (out, err): Make both autoflush streams.
6145 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
6147 * include/config.h.in: Rebuilt.
6148 * acconfig.h (HAVE_MEMCPY): Removed.
6149 * configure: Rebuilt.
6150 * configure.in: Never define HAVE_MEMCPY.
6152 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6154 (_Jv_AllocString): Use JvAllocObject again.
6155 * java/lang/Class.h (thread): New field.
6156 (_Jv_AllocString): No longer a friend.
6157 * prims.cc (processClass): Removed dead code. Changed to more
6158 closely follow the Java Language Specification.
6159 (processClass): Return early if already at the right state.
6161 * prims.cc (JvNewStringUTF): Removed.
6162 * include/cni.h (JvNewStringUTF): New function.
6163 (_Jv_NewStringUTF): Declare as `extern "C"'.
6164 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6166 * java/lang/natDouble.cc: Added copyright info and header
6167 comment. Include <stdlib.h>.
6168 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
6169 bytes as are chars in string.
6171 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
6173 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6177 * java/lang/System.java (init_properties): Now native.
6178 * java/lang/natSystem.cc (init_properties): New method.
6179 Include java/util/Properties.h.
6181 * Makefile.in: Rebuilt.
6182 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6183 OutputStreamWriter.h, ByteArrayInputStream.h,
6184 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6185 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6186 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6187 Properties.h, Hashtable.h, Dictionary.h.
6190 * include/javaprims.h (java::io): Added Reader, Writer,
6191 InputStreamReader, OutputStreamWriter,
6192 UnsupportedEncodingException, ByteArrayInputStream,
6193 ByteArrayOutputStream, EOFException, SyncFailedException,
6194 PushbackInputStream.
6195 (java::lang): Added Cloneable.
6196 (java::util): Added NoSuchElementException, VectorEnumeration,
6197 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6199 * java/io/PipedReader.java: New file.
6201 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6203 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6206 * java/io/io-defs.h: Removed.
6208 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6209 (FileInputStream): Use new constructor. Can throw IOException.
6211 * java/lang/System.java (getProperty): Don't throw
6212 NullPointerException.
6214 * java/io/RandomAccessFile.java: Rewrote from scratch.
6216 * java/io/natFileDescriptor.cc: Include EOFException.h.
6218 (length): New method.
6219 (getFilePointer): New method.
6221 (available): New method.
6222 * java/io/FileDescriptor.java (SET, CUR): New constants.
6223 (seek, length, getFilePointer, read, available): New decls.
6225 * java/io/PipedWriter.java: New file.
6226 * java/io/StringWriter.java: New file.
6227 * java/io/CharArrayWriter.java: New file.
6228 * java/io/CharConversionException.java: New file.
6229 * java/io/BufferedWriter.java: New file.
6230 * java/io/FilterWriter.java: New file.
6231 * java/io/FileWriter.java: New file.
6233 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6234 OutputStreamWriter.h, NullPointerException.h,
6235 ByteArrayInputStream.h, InputStreamReader.h.
6236 (getBytes): New method.
6237 (init): Throw NullPointerException.
6238 (init): New function.
6239 * java/lang/String.java (getBytes): Added missing decl.
6240 (getBytes): New method.
6241 (String): Added byte[]-based constructors.
6242 (copyValueOf): Wrote.
6243 (init): Declare variant which takes byte array and encoding.
6244 Import java.io.UnsupportedEncodingException.
6246 * java/io/File.java: Rewrote from scratch.
6247 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6248 * java/io/FileDescriptor.java: Rewrote from scratch.
6249 * java/io/FilenameFilter.java: Rewrote from scratch.
6251 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6253 * java/io/SyncFailedException.java: New file.
6254 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6255 * java/io/InterruptedIOException.java: Rewrote from scratch.
6256 * java/io/FileNotFoundException.java: Rewrote from scratch.
6257 * java/io/EOFException.java: Rewrote from scratch.
6258 * java/io/IOException.java: Rewrote from scratch.
6259 * java/io/PrintStream.java: Rewrote from scratch.
6260 * java/io/DataOutputStream.java: Rewrote from scratch.
6261 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6262 * java/io/FilterOutputStream.java: Rewrote from scratch.
6263 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6264 * java/io/PipedOutputStream.java: Rewrote from scratch.
6265 * java/io/FileOutputStream.java: Rewrote from scratch.
6266 * java/io/OutputStream.java: Rewrote from scratch.
6267 * java/io/DataOutput.java: Rewrote from scratch.
6269 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6271 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6273 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6275 * configure.in: Add --enable-libjava-debug
6277 * Makefile.am (nat_headers): Add java/lang/Float.h and
6280 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6282 * Makefile.in, configure, include/config.h.in: Rebuilt.
6284 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6286 * java/lang/Float.java: Rewritten
6287 * java/lang/Double.java: Rewritten
6288 * java/lang/natFloat.cc: toString() added.
6289 * java/lang/natDouble.cc: toString() added.
6290 * java/lang/natDouble.cc: doubleValueOf() added.
6291 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6292 java/lang/strtod.c: added.
6293 * ieeefp.h: __sparc added.
6294 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6296 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6298 * include/javaprims.h (java::lang): Added
6299 CloneNotSupportedException.
6301 * java/lang/Object.java (clone): No longer native. Implemented.
6302 * java/lang/natObject.cc (clone): Removed.
6304 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6306 * prims.cc: Don't make definitions `extern "C"'.
6307 (_Jv_RegisterClass): Renamed from registerClass.
6308 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6309 (_Jv_NewArray): Likewise.
6310 (_Jv_NewMultiArray): Likewise.
6311 (_Jv_CheckCast): Likewise.
6312 (_Jv_LookupInterfaceMethod): Likewise.
6313 (_Jv_CheckArrayStore): Likewise.
6314 (_Jv_RegisterClass): Likewise.
6316 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6317 * configure: Rebuilt.
6318 * configure.in: Don't check for fmod; it is provided by the fdlibm
6320 * prims.cc (fmod): Removed.
6322 * java/lang/natString.cc (charAt): Use _Jv_uint.
6323 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6324 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6325 (equalUtf8Consts): Likewise.
6326 (internalAddClass): Use _Jv_uint.
6327 (processClass): Likewise.
6328 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6329 (_Jv_uint): Renamed from uint32.
6330 (struct _Jv_Utf8Const): Changed members to use new type names.
6332 * configure: Rebuilt.
6333 * configure.in: Don't check for memcpy. Require memmove and a way
6335 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6337 (currentTimeMillis): Don't use #error.
6339 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6341 * java/lang/Math.java: static member random renamed to random_ to
6342 avoid conflict with member function of the same name.
6343 * include/javaprims.h: java.util.Random added.
6345 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6347 * include/java-chartables.h: Regenerated.
6348 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6351 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6353 * java/lang/Math.java: Rewritten.
6354 * java/lang/natMath.cc: New file.
6355 * Files added from fdlibm:
6356 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6357 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6358 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6359 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6360 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6361 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6362 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6363 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6364 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6365 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6366 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6367 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6368 java/lang/k_cos.c, java/lang/sf_ceil.c,
6369 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6370 java/lang/ieeefp.h, java/lang/fdlibm.h
6371 * Makefile.am: rules added for compiling C files from fdlibm.
6373 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6375 * chartables.pl: Minor documentation fixes.
6377 * configure: Rebuilt.
6378 * configure.in: Fixed --help output for --enable-fast-character.
6380 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6382 * configure: Rebuilt.
6383 * configure.in: Recognize --enable-fast-character.
6384 * acconfig.h (COMPACT_CHARACTER): New define.
6385 * include/config.h.in: Rebuilt.
6386 * include/java-chartables.h: New file.
6387 * Makefile.in: Rebuilt.
6388 * Makefile.am (nat_files): Added natCharacter.o.
6389 * java/lang/natCharacter.cc: New file.
6390 * chartables.pl (set_attribute): New function.
6391 (@attributes, @second_attributes): New globals.
6392 ($ROMAN_START, $ROMAN_END): Likewise.
6393 (process_char): Call set_attribute when required.
6394 (print_char): Just print hex value.
6395 (print_block): Generate C++ syntax.
6396 (print_numerics): Likewise.
6397 (print_single_map): Likewise.
6398 (print_all_block): Likewise.
6399 (print_case_table): Likewise.
6400 (print_fast_tables): New function.
6401 Generate C++ code suitable for a header file.
6402 * java/lang/Character.java (table_search): Removed.
6403 (digit_value): Now native.
6404 (getNumericValue): Likewise.
6405 (getType): Likewise.
6406 Removed all automatically-generated tables.
6407 (Tamil_Digit_One): Removed.
6408 (isSpaceChar): Now native.
6409 (isTitleCase): Likewise.
6410 (isLowerCase): Likewise.
6411 (isUpperCase): Likewise.
6412 (toLowerCase): Likewise.
6413 (toTitleCase): Likewise.
6414 (toUpperCase): Likewise.
6415 (isDefined): Fixed sense of test.
6417 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6419 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6421 (regionMatches): Likewise.
6423 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6425 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6427 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6429 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6432 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6435 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6437 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6439 * prims.cc (instanceof_class): Removed.
6440 (instanceof_array): Likewise.
6441 (instanceof): Likewise.
6442 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6443 (_Jv_CheckCast): Likewise.
6444 * java/lang/natClass.cc (isAssignableFrom): New method.
6445 * java/lang/Class.java (isAssignableFrom): Now native.
6447 * include/cni.h (JvThrow): Use `extern inline'.
6448 (JvAllocObject): Likewise.
6449 (JvInitClass): Likewise.
6451 * java/lang/natSystem.cc (arraycopy): Only check class of source
6454 * prims.cc (_Jv_CheckArrayStore): Wrote.
6455 (_Jv_MonitorEnter): Prefer `JvThrow'.
6456 Include ArrayStoreException.h.
6457 (_Jv_CheckCast): Indentation cleanup.
6459 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6461 * chartables.pl: New file.
6462 * java/lang/Character.java: Rewrote from scratch.
6464 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6466 * java/lang/ArithmeticException.java,
6467 java/lang/ArrayIndexOutOfBoundsException.java,
6468 java/lang/ArrayStoreException.java,
6469 java/lang/ClassCastException.java,
6470 java/lang/ClassNotFoundException.java,
6471 java/lang/CloneNotSupportedException.java,
6472 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6473 java/lang/IllegalArgumentException.java,
6474 java/lang/IllegalMonitorStateException.java,
6475 java/lang/IllegalThreadStateException.java,
6476 java/lang/IndexOutOfBoundsException.java,
6477 java/lang/InstantiationException.java,
6478 java/lang/InterruptedException.java,
6479 java/lang/NegativeArraySizeException.java,
6480 java/lang/NoSuchMethodException.java,
6481 java/lang/NullPointerException.java,
6482 java/lang/NumberFormatException.java,
6483 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6484 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6486 * java/lang/IllegalStateException.java,
6487 java/lang/NoSuchFieldException.java,
6488 java/lang/UnsupportedOperationException.java: Created.
6490 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6492 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6493 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6495 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6497 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6499 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6501 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6503 * Makefile.in: Rebuilt.
6505 * include/javaprims.h (java::lang): Added
6506 StringIndexOutOfBoundsException.
6508 * java/lang/String.java: Added header comment and FIXME comment for
6509 missing constructors/methods.
6510 (endsWith): Adjusted offset into string to look at just the last chars.
6511 Commented out undocumented method.
6513 * java/lang/natString.cc: Added includes for
6514 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6515 (String::init): Throw StringIndexOutOfBoundsException.
6516 (String::charAt): Throw StringIndexOutOfBoundsException.
6517 (String::substring): Throw StringIndexOutOfBoundsException.
6518 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6519 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6520 (String::compareTo): Return difference/offset between chars/strings.
6522 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6524 * java/lang/Boolean.java (TYPE): Added comment.
6526 * java/lang/Byte.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/Short.java (decode): Added - commented out until dependent
6532 code for Integer is written.
6533 (compareTo): JDK 1.2 methods written.
6534 (hashCode): Added comment to note that values have been verified.
6536 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6538 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6540 * include/javaprims.h (java::lang): Added VirtualMachineError,
6542 * Makefile.in: Rebuilt.
6543 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6544 VirtualMachineError.h.
6545 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6546 (lookupArray): Likewise.
6547 (makeUtf8Const): Likewise.
6548 (_Jv_AllocObject): Likewise.
6549 (_Jv_NewObjectArray): Likewise.
6550 Include OutOfMemoryError.h.
6552 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6553 to use JvNewStringLatin1.
6555 * java/io/io-defs.h: Include java/lang/IOException.h.
6556 * Makefile.in: Rebuilt.
6557 * Makefile.am (nat_headers): Added
6558 ArrayIndexOutOfBoundsException.h,
6559 ClassFormatError.h,ClassNotFoundException.h,
6560 ClassCircularityError.h, ClassCastException.h,
6561 IncompatibleClassChangeError.h, AbstractMethodError.h,
6562 IllegalAccessError.h, LinkageError.h, Error.h,
6563 NegativeArraySizeException.h, IOException.h.
6564 * include/cni.h (SignalError): Removed declaration.
6565 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6566 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6567 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6568 (newInstance): Likewise.
6569 (forName): Likewise.
6570 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6572 (read): Use JvThrow, not SignalError.
6577 (open_read): Likewise.
6578 (open_write): Likewise.
6581 (newstr): New function.
6582 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6584 (lastModifiedUnchecked): Likewise.
6585 (lengthUnchecked): Likewise.
6586 * include/javaprims.h (sorry): Removed declaration.
6587 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6588 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6589 ClassCastException, IncompatibleClassChangeError,
6590 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6591 * prims.cc (instanceof_array): Use JvFail, not sorry.
6593 Include ArrayIndexOutOfBoundsException.h,
6594 ClassFormatError.h,ClassNotFoundException.h,
6595 ClassCircularityError.h, ClassCastException.h,
6596 IncompatibleClassChangeError.h, AbstractMethodError.h,
6597 IllegalAccessError.h, NegativeArraySizeException.h.
6598 (_Jv_ThrowBadArrayIndex): Implemented.
6599 (JvNewStringUTF): Use JvFail, not sorry.
6600 (_Jv_FindClass): Likewise.
6601 (_Jv_NewArray): Likewise.
6602 (throwException): Removed.
6603 (getClass): Use JvThrow.
6604 (processClass): Likewise.
6605 (_Jv_NewObjectArray): Likewise.
6606 (_Jv_NewMultiArray): Likewise.
6607 (_Jv_CheckCast): Likewise.
6608 (_Jv_LookupInterfaceMethod): Likewise.
6609 (SignalError): Removed.
6610 (getClass): Use _Jv_NewStringUtf8Const to create String.
6612 * java/lang/natSystem.cc (arraycopy): Throw
6613 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6615 * Makefile.in: Rebuilt.
6616 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6618 * include/java-array.h: Mention gcjh, not gjavah.
6620 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6621 (canReadUnchecked): Likewise.
6622 (canWriteUnchecked): Likewise.
6623 (isFileUnchecked): Likewise.
6624 * java/io/natFileDescriptor.cc: Don't include cni.h.
6626 * java/lang/Thread.java (run__): Declare.
6627 * java/lang/natThread.cc (run__): New method, to avoid compiler
6629 (start): Use run__, not run_.
6631 * java/io/io-defs.h: Include cni.h and jvm.h.
6633 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6635 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6636 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6637 to natString.cc (with suitable renaming, inlines etc).
6638 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6639 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6640 * java/lang/String.h: Removed - now generated using gjavah.
6641 * java/lang/String.java: Re-written from scratch. Many native methods.
6642 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6643 * java/lang/natString.cc: Many functions re-written for "compact
6644 strings" representation, or native java.lang.String methods added.
6645 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6646 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6647 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6648 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6649 * include/cni.h: Add inline method.
6650 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6651 * include/javaprims.h: Moved some stuff frm String.h.
6652 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6653 * Makefile.am (nat_header): Added Character.h and String.h.
6654 (String.h): Add new rule.
6656 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6658 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6660 * posix-threads.cc: Include cni.h, jvm.h.
6661 * quick-threads.cc: Include cni.h, jvm.h.
6662 * nogc.cc: Include cni.h, not javaprims.h.
6663 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6664 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6665 include java-assert.h.
6666 * java/lang/natSystem.cc: Include cni.h. Don't include
6668 * java/lang/natRuntime.cc: Include cni.h. Don't include
6670 * prims.cc: Rearranged #include ordering. Don't include
6671 java-array.h or java-assert.h.
6672 * boehm.cc: Include config.h, cni.h.
6673 * exception.cc: Include config.h, cni.h.
6674 * include/jvm.h: Include java-assert.h.
6675 * include/cni.h: Include java/lang/Object.h. Don't include
6676 java-threads.h or java-array.h.
6678 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6680 * java/lang/Boolean.java: Rewritten.
6682 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6684 * java/lang/natFirstThread.cc (main_func): New typedef.
6685 (run): Use main_func, not JvPrivThreadStartFunc.
6686 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6688 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6690 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6693 Can't throw Java exceptions with C++ `throw':
6694 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6695 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6696 (setPriority): Likewise.
6700 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6701 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6703 Can't catch Java exceptions from C++:
6704 * java/lang/natThread.cc (finish_): New method.
6706 * java/lang/Thread.java (run_): Rewrote in Java.
6707 (finish_): New native method.
6709 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6711 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6713 * include/javaprims.h (java::io): Added Serializable.
6715 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6717 * java/util/EmptyStackException.java,
6718 java/util/NoSuchElementException.java: Rewritten.
6720 * java/util/ConcurrentModificationException.java,
6721 java/util/MissingResourceException.java,
6722 java/util/TooManyListenersException.java: Created.
6724 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6726 * include/cni.h (JvThrow): New function.
6727 * include/javaprims.h (_Jv_Throw): Declare.
6729 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6731 * java/util/Observable.java: Rewritten.
6733 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6735 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6736 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6737 Include NullPointerException.h.
6739 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6741 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6742 assignability checks. Don't bother using memcpy.
6744 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6746 * include/quick-threads.h (JvPrivThreadWait): New function.
6747 * include/no-threads.h (JvPrivThreadWait): New function.
6748 * include/posix-threads.h (JvPrivThreadWait): New function.
6749 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6751 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6753 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6754 offsets by size of type that is being copied.
6756 * java/lang/natThread.cc (start): Don't pass `object' argument to
6758 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6759 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6761 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6762 always pass thread as object.
6763 * include/quick-threads.h, include/posix-threads.h,
6764 include/no-threads.h (JvPrivThreadStart): Removed `object'
6767 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6769 * java/util/Dictionary.java: Rewritten.
6771 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6773 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6774 (JvPrivThreadDestroy): Likewise.
6776 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6778 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6780 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6782 * java/lang/natSystem.cc: Rewrote from scratch.
6783 * java/lang/System.java: Rewrote from scratch.
6784 * java/lang/Class.h (Class): Declare isAssignableFrom.
6785 * include/javaprims.h (java::lang): Added ArrayStoreException,
6786 IndexOutOfBoundsException.
6787 * Makefile.in: Rebuilt.
6788 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6789 IndexOutOfBoundsException.h.
6790 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6791 * include/jvm.h (_Jv_HashCode): New function.
6793 * java/lang/natThread.cc (suspend): Call checkAccess.
6795 * java/lang/Thread.java (setDaemon): Call checkAccess.
6797 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6799 * java/lang/Runtime.java: Rewrote from scratch.
6800 * java/lang/natRuntime.cc: Rewrote from scratch.
6802 * nogc.cc (JvPrivGCTotalMemory): New function.
6803 (JvPrivGCFreeMemory): Likewise.
6804 (total): New global.
6805 (JvPrivAllocObj): Increment total.
6806 (JvPrivAllocArray): Likewise.
6807 (JvPrivAllocBytes): Likewise.
6808 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6809 * boehm.cc (JvPrivGCTotalMemory): New function.
6810 (sum_blocks): Likewise.
6811 (JvPrivGCFreeMemory): Likewise.
6813 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6815 * include/javaprims.h (java::lang): Added FirstThread.
6816 * java/lang/natFirstThread.cc: New file.
6817 * java/lang/FirstThread.java: New file.
6818 * prims.cc (main_signature): Removed.
6819 (main_name): Removed.
6820 #include FirstThread.h.
6821 * Makefile.in: Rebuilt.
6822 * Makefile.am (TFRIEND): Removed.
6823 (java/lang/Thread.h): Likewise.
6824 (FTFRIEND): New macro.
6825 (java/lang/FirstThread.h): New target.
6826 (nat_files): Added natFirstThread.o.
6827 (nat_headers): Added FirstThread.h.
6828 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6829 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6831 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6835 * java/lang/natThread.cc (start): Synchronize the thread.
6836 (stop): Synchronize the thread.
6838 * java/lang/ThreadDeath.java: Rewrote from scratch.
6840 * Makefile.in: Rebuilt.
6841 * Makefile.am (TGFRIEND): New macro.
6842 (java/lang/ThreadGroup.h): New target.
6843 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6845 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6847 * nogc.cc: Include config.h.
6849 * java/lang/ThreadGroup.java: Rewrote from scratch.
6851 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6853 * java/lang/Thread.java (checkAccess): Only call in to security
6854 manager if it exists.
6855 (Thread): Don't check access when creating the first thread. Add
6856 this thread to the appropriate ThreadGroup.
6858 * java/lang/natThread.cc (run_): Call uncaughtException method on
6861 * java/lang/Runnable.java: Rewrote from scratch.
6862 * java/lang/Thread.java: Updated copyright comment to correct
6865 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6867 * java/util/Random.java: Rewritten.
6869 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6871 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6872 trailing 0 in array[].
6874 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6876 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6877 and RUNTESTFLAGS from AM_MAKEFLAGS.
6878 (SUBDIRS): Conditionally include testsuite.
6879 * Makefile.in: Rebuilt.
6881 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6883 * java/lang/Object.h: Include java-assert.h.
6885 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6887 * Makefile.am: Add testsuite directory.
6888 * configure.in: Build testsuite/Makefile.
6889 * Makefile.in, configure: Rebuilt.
6891 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6893 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6894 * include/jvm.h (_Jv_StartFirstThread): Declare.
6896 * include/javaprims.h (java::lang): Added Exception,
6899 * Makefile.in: Rebuilt.
6900 * Makefile.am (nat_headers): Added NullPointerException.h,
6901 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6902 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6903 (java/lang/Thread.h): New target.
6904 (TFRIEND): New macro
6906 * include/java-assert.h (JvFail): Use 0 and not NULL.
6908 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6909 instead of assuming we are a friend of Thread.
6910 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6911 instead of assuming we are a friend of Thread.
6913 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6915 * java/lang/natThread.cc: Rewrote from scratch.
6916 * java/lang/Thread.java: Rewrote from scratch.
6917 * prims.cc (JvRunMain): Use new Thread constructor.
6918 * include/javaprims.h (java::lang): Added InterruptedException.
6919 * Makefile.in: Rebuilt.
6920 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6921 * java/lang/Thread.h: Removed.
6922 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6923 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6925 * posix-threads.cc (JvPrivThreadJoin): Removed.
6926 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6927 (really_start): Don't notify join_cond.
6928 (JvPrivThreadStart): Added `data' argument.
6929 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6930 (JvPrivThreadJoin): Likewise.
6931 Use JvFail instead of sorry.
6932 (JvPrivThreadSuspend): Removed.
6933 (JvPrivThreadResume): Removed.
6934 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6935 (JvPrivThreadJoin): Likewise.
6936 (JvPrivThreadSuspend): Use JvFail.
6937 (JvPrivThreadResume): Likewise.
6938 (JvPrivThreadSuspend): Removed.
6939 (JvPrivThreadResume): Likewise.
6940 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6941 (JvPrivThread_t): Removed join_mutex, join_cond.
6942 Use JvFail instead of sorry.
6943 (JvPrivThreadSuspend): Removed.
6944 (JvPrivThreadResume): Likewise.
6946 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6948 * java/util/Observer.java: Rewritten
6949 * java/util/Enumeration.java: Rewritten
6951 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6953 * java/util/StringTokenizer.java: Rewritten
6954 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6955 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6956 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6958 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6960 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6963 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6964 Include java-assert.h.
6965 * include/java-assert.h: New file.
6966 * prims.cc (_Jv_Abort): New function.
6967 Include java-assert.h, not assert.h.
6968 (_Jv_MonitorExit): Use JvAssert.
6969 (resolveConstants): Likewise.
6970 (processClass): Likewise.
6971 (JvRunMain): Assert that method is found.
6973 * configure: Rebuilt.
6974 * configure.in: Check for test subdir.
6975 * Makefile.in: Rebuilt.
6976 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6978 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6979 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6981 * prims.cc (resolveConstants): Removed unused variables.
6982 (processClass): Likewise.
6984 * include/quick-threads.h (JvPrivThreadCurrent): Use
6986 * quick-threads.cc (destroy_data): New function.
6987 (JvPrivInitThreads): Create key.
6988 (JvPrivThreadKey): New global.
6989 (JvPrivThreadStart): Use coop_setspecific.
6991 * include/quick-threads.h, include/posix-threads.h,
6992 include/no-threads.h, no-threads.cc, quick-threads.cc,
6993 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6995 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6997 * include/no-threads.h (JvPrivThreadInitData): Don't set
7000 * include/quick-threads.h (JvPrivCondWait): coop function now
7002 (JvPrivThreadJoin): Likewise.
7004 * java/lang/Thread.h (Thread): Updated declaration of
7006 * include/quick-threads.h, include/posix-threads.h: Updated
7007 declaration of JvPrivThreadStart.
7008 * include/no-threads.h (JvPrivThreadStart): Changed definition
7010 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
7011 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
7012 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
7014 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
7016 * quick-threads.cc (qthrow): New function.
7017 (JvPrivInitThreads): New function.
7018 (started): New global.
7019 (JvPrivThreadStart): Call coop_start if required.
7020 * include/quick-threads.h (JvPrivThreadCancel): Implement.
7021 (JvPrivThreadDestroy): Likewise.
7022 (JvPrivInitThreads): Removed.
7023 * include/posix-threads.h (JvPrivThreadCancel): Added error
7025 * java/lang/natThread.cc (stop_): Pass exception to
7028 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
7030 * include/javaprims.h (java::lang): Added
7031 IllegalArgumentException, IllegalThreadStateException, Math,
7032 NullPointerException, ThreadDeath.
7033 (java::util): Added Enumeration.
7035 * Makefile.in: Rebuilt.
7036 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
7038 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
7040 (threadsv): Renamed from threads to avoid clash in C++ header.
7041 (groupsv): Likewise.
7042 * include/no-threads.h (JvPrivThreadStart): Removed.
7043 * no-threads.cc (JvPrivThreadStart): New function.
7044 * java/lang/Thread.java (Thread): New constructor for internal use.
7045 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
7046 (Thread): Declare constructor.
7047 * prims.cc (JvRunMain): Create the initial Thread and
7049 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
7050 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
7051 Removed `daemon' argument.
7053 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
7054 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
7056 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
7058 * Makefile.in: Rebuilt.
7059 * Makefile.am (INCLUDES): Include THREADINCS.
7061 * configure: Rebuilt.
7062 * configure.in: Recognize `qt' as a threads package.
7064 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
7066 * java/util/Stack.java (pop): Null out topmost node for robustness.
7068 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
7070 * java/util/Stack.java: Rewritten.
7071 * java/util/Vector.java (isEmpty): Simplified expression.
7073 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
7075 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
7076 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
7078 * include/java-array.h (JvNewObjectArray): Created inline to
7081 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
7084 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
7086 * java/util/Vector.java: Rewritten.
7087 * java/io/Serializable.java: Created.
7089 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
7091 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
7092 Infinity is 1/0, not 1/1.
7094 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
7096 * configure: Rebuilt.
7097 * configure.in: Removed duplicate AC_ARG_WITH.
7099 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
7101 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
7103 (_Jv_InitClass): Renamed from soft_initialise_class.
7104 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
7105 (_Jv_CheckCast): Renamed from soft_checkcast.
7106 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
7107 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
7108 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
7109 * include/cni.h (JvInitClass): New function.
7110 (_Jv_InitClass): Renamed from soft_initialise_class.
7112 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
7114 * configure: Rebuilt.
7115 * configure.in (CXX): Don't set.
7116 * Makefile.in: Rebuilt.
7117 * Makefile.am (AM_CXXFLAGS): New macro.
7119 * Makefile.in: Rebuilt.
7120 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
7121 nogc.o): New target.
7123 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
7125 (mark_array): Likewise.
7127 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
7129 * java/lang/Class.h (JvMethod): Removed some unused fields.
7130 (JvField.info): Removed unused idx union variant.
7132 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
7134 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
7137 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
7139 * configure.in, configure (CXX): Add -fvtable-thunks.
7141 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
7143 * java/lang/Object.java (finalize): Move first.
7144 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
7145 (Object): Re-arrange order to match Object.java.
7147 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
7149 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
7150 * java/lang/natString.cc (hashChars): Likewise.
7152 * prims.cc (RuntimeClass): New macro.
7153 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
7155 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
7157 * Makefile.in: Rebuilt.
7158 * Makefile.am (AM_MAKEFLAGS): New macro.
7160 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
7162 * nogc.cc: Include <javaprims.h>.
7164 * Makefile.in: Rebuilt.
7165 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7167 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
7169 * exception.cc (terminate): Removed.
7170 (unexpected): Removed.
7172 * configure: Rebuilt.
7173 * configure.in: Handle case where target subdir is ".".
7175 * configure: Rebuilt.
7176 * configure.in: Compute COMPPATH based on --with-target-subdir
7177 option. Added --with-target-subdir and --with-cross-host. Use
7178 --with-cross-host to determine when a cross compiler is in use.
7180 * Makefile.in: Rebuilt.
7181 * Makefile.am (GJAVAH): Include COMPPATH.
7182 * configure: Rebuilt.
7183 * configure.in: Subst COMPPATH.
7185 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7187 * prims.cc (lockMutex): Removed.
7188 (unlockMutex): Likewise.
7189 (processClass): Lock the class using a JvSynchronize object.
7191 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7193 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7194 (gc_free_fixed): Removed.
7195 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7196 freeing old value of strhash.
7198 * exception.cc (_Jv_type_matcher): Cast first argument to
7201 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7203 * include/java-array.h (jstringArray): New type.
7204 * java/lang/natSystem.cc (setProperty): Removed.
7205 (initProperties): Directly call JvNewStringLatin1 for arguments.
7206 * java/util/natDate.cc: Include java/util/Date.h, not
7209 * java/io/FileDescriptor.java (available): No longer static.
7210 * java/lang/natDouble.cc (Double): Removed class definition.
7211 * include/javaprims.h (java::lang::Number): Declare.
7212 (java::lang::NumberFormatException): Likewise.
7213 (java::io::FilenameFilter): Likewise.
7214 (java::lang::Character): Likewise.
7215 (java::lang::Error): Likewise.
7216 (java::lang::SecurityManager): Likewise.
7217 (java::util::Vector): Likewise.
7218 (java::io::FileNotFoundException): Likewise.
7219 (java::io::IOException): Likewise.
7220 (java::lang::NativeLang): Likewise.
7221 (java::lang::UnsatisfiedLinkError): Likewise.
7222 (java::util::StringTokenizer): Likewise.
7223 (java::io::InputStream, java::io::OutputStream): Likewise.
7224 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7225 (java::util::Hashtable): Likewise.
7226 * Makefile.in: Rebuilt.
7227 * Makefile.am (nat_headers): Added java/lang/Double.h,
7228 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7229 (MOSTLYCLEANFILES): Added nat_headers.
7230 * include/jvm.h: Moved many defines, declarations, and functions
7231 to java/lang/Class.h.
7232 (struct JvSyncInfo): Moved to java/lang/Object.h.
7233 (UTF8_GET): Moved to java/lang/String.h.
7235 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7237 * java/io/io-defs.h: Don't include java-io.h.
7238 * include/java-io.h: Removed.
7239 * include/javaprims.h: Include java::io.
7241 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7243 * include/java-io.h (File): Removed
7244 (FileDescriptor): Likewise.
7246 * java/io/io-defs.h: Include java/io/File.h and
7247 java/io/FileDescriptor.h.
7249 * Makefile.in: Rebuilt.
7250 * Makefile.am (GJAVAH): New macro.
7251 (.class.h): New rule.
7252 (SUFFIXES): Added .h.
7253 (nat_headers): New macro.
7254 ($(nat_headers)): New target.
7255 (BUILT_SOURCES): Added nat_headers.
7257 * include/java-util.h: Removed.
7259 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7261 * include/java-io.h: Changed to avoid java-lang.h.
7262 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7264 * java/lang/natSystem.cc: Include java/lang/System.h, not
7266 * java/lang/natString.cc: Include java/lang/String.h, not
7268 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7270 * java/lang/natClass.cc: Include java/lang/Class.h, not
7272 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7274 * java/lang/natObject.cc: Include java/lang/Object.h, not
7276 * exception.cc: Don't include java-lang.h.
7277 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7278 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7279 * nogc.cc: Don't include java-lang.h.
7280 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7281 * prims.cc (processClass): Don't use `init_type'; just cast to
7283 Include java/lang/Class.h and jvm.h, not java-lang.h.
7284 (JvAllocObject): Wrote single-argument version.
7285 (PrimClass): Inherit from Class.
7286 (initPrimClass): Removed.
7287 * include/java-lang.h: Removed.
7288 * include/jvm.h: Declare struct _dispatchTable.
7289 * include/cni.h: Don't declare _Jv_MonitorEnter,
7290 _Jv_MonitorExit, struct _dispatchTable.
7291 * include/javaprims.h: Moved all typedefs here, from cni.h.
7292 * java/lang/Class.h: New file.
7293 * include/java-array.h: New file.
7294 * java/lang/Object.h: New file.
7296 * prims.cc (classFromSig): Now static.
7298 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7300 * include/cni.h: Don't mention soft_new.
7301 * include/java-lang.h (Object): Don't mention soft_new. Mention
7302 _Jv_NewPrimArray, not newPrimArray.
7303 * prims.cc (soft_new): Removed.
7304 (_Jv_NewArray): Renamed from soft_newarray.
7305 (soft_anewarray): Use JvNewObjectArray.
7306 (newArray): Likewise.
7307 (newRefArray): Removed.
7308 (_Jv_NewPrimArray): Renamed from newPrimArray.
7309 (equalUtf8Consts): Now static.
7310 (soft_instanceof): Removed.
7311 * java/lang/natDouble.cc (doubleToString): Now static.
7313 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7314 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7317 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7319 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7321 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7323 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7324 (JvPrivMutexUnlock): Likewise.
7325 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7326 Return value now jint.
7327 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7330 * Makefile.in: Rebuilt.
7331 * Makefile.am: Don't allow `jV' names.
7332 (maintainer-check): Depend on libjava.a.
7333 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7335 * Makefile.in: Rebuilt.
7336 * Makefile.am (NM): New macro.
7337 (maintainer-check): New target.
7339 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7341 * configure: Rebuilt.
7342 * configure.in: Use --enable-threads, not --enable-gc. Fix
7343 documentation for --enable-threads. Changed option to work like
7344 identical option in gcc/configure.
7346 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7348 * boehm.cc (mark_array): Use JvGetArrayLength.
7350 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7352 * exception.cc: New file (mostly written by Andrew MacLeod),
7353 exception handling support.
7354 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7355 Remove -fexceptions - it is now the default.
7357 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7358 (JvAllocObject): Renamed to _Jv_AllocObject.
7359 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7360 (loadClass): Renamed to _Jv_FindClass.
7361 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7362 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7363 * include/java-lang.h (JvGetArrayLength): New CNI function.
7364 * include/jvm.h (_Jv_FindClass): Added declaration.
7366 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7368 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7370 * java/lang/natClass.cc (getName): Add implementation.
7371 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7373 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7375 * Makefile.in: Rebuilt.
7376 * Makefile.am (.class.o): Added -fexceptions.
7378 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7380 * configure: Rebuilt.
7381 * configure.in: Don't check for __nanosleep.
7382 * posix-threads.cc (nanosleep): Never define.
7384 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7386 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7389 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7391 * java/lang/natThread.cc (enumerate): Uncommented.
7392 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7393 (interrupt): Call it.
7395 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7397 * configure: Rebuilt.
7398 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7400 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7402 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7403 * include/java-lang.h (Thread): Added `interrupted_' method.
7404 * java/lang/Thread.java (interrupted_): New method.
7405 * java/lang/natThread.cc (join): Possibly throw interrupted
7406 exception after join finishes.
7407 (interrupted_): New method.
7408 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7410 (JvPrivThreadJoin): New function.
7411 (really_start): Notify all threads waiting for this thread.
7412 (struct starter): Added `data' member.
7413 (JvPrivThreadStart): Set it.
7414 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7416 (JvPrivThreadJoin): No longer inline.
7417 (JvPrivThreadInterrupt): New function.
7419 * include/no-threads.h (JvPrivThreadSleep): Removed.
7420 * posix-threads.cc (JvPrivThreadSleep): Removed.
7422 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7424 * configure: Rebuilt.
7425 * configure.in (THREADOBJS): Initialize to no-threads.o in
7427 * posix-threads.cc (key): New global.
7428 (JvPrivInitThreads): New function.
7429 (really_start): Set thread-specific data to point to object.
7430 (JvPrivThreadStart): Added `daemon' argument.
7431 (JvPrivThreadSleep): Added `data' argument.
7432 * include/posix-threads.h (JvPrivInitThreads): Removed
7434 (JvPrivThreadCurrent): New function.
7435 * include/no-threads.h (JvPrivThreadInitData): Initialize
7436 JvPrivOnlyThread. Added `thread' argument.
7437 (JvPrivThreadCurrent): New function.
7438 (JvPrivThreadStart): Added `daemon' argument.
7439 * no-threads.cc: New file.
7440 * java/lang/natThread.cc (init_data): New function.
7442 (start): Set `alive' member.
7443 (stop_): Clear `alive' member.
7444 (destroy): Likewise.
7445 (currentThread): Implemented.
7446 (start): Pass `daemon' argument to JvPrivThreadStart.
7448 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7449 (Thread): Added `init_data' method.
7450 * java/lang/Thread.java (alive, data): New instance variables.
7451 (init_data): New private method.
7452 (isAlive): No longer native.
7454 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7456 * include/java-lang.h (JvRunMain): Declare.
7457 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7458 * prims.cc (JvRunMain): New function.
7459 (main_signature, main_name): New globals.
7461 * boehm.cc (mark_array): Use `elements' function and not
7462 operator[] on jarray.
7464 * posix-threads.cc: Include <config.h>. Define nanosleep if
7467 * configure: Rebuilt.
7468 * configure.in: Check for _nanosleep.
7470 * configure: Rebuilt.
7471 * configure.in: Check for pthread_mutexattr_settype.
7473 * include/cni.h (class JvSynchronize): New class.
7474 * java/lang/Thread.java (sleep): Throws InterruptedException.
7475 (join): Throws InterruptedException.
7476 (resume): Not native.
7477 (resume_): New method.
7478 (start): Now synchronized.
7479 (stop_): New method.
7480 (Thread): Synchronize when accessing threadNumber.
7482 * java/lang/natThread.cc (throwException): New macro.
7483 (sleep): Throw InterruptedException.
7486 * include/java-lang.h (Runtime): Added interrupted().
7488 * boehm.cc (call_finalizer): Correctly initialize jobj.
7489 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7491 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7494 * configure: Rebuilt.
7495 * configure.in: Added support for --disable-threads.
7496 * include/no-threads.h: New file.
7498 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7500 * Makefile.in: Rebuilt.
7501 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7502 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7503 (libjava_a_LIBADD): Added THREADOBJS.
7504 * configure: Rebuilt.
7505 * configure.in: Added --with-threads option.
7506 * posix-threads.cc: New file.
7507 * include/posix-threads.h: New file.
7508 * include/java-lang.h (Object): Added static member sync_mutex,
7509 member sync_info, method init_mutex.
7510 (struct JvSyncInfo): New struct.
7511 Include "java-threads.h".
7512 * prims.cc (soft_monitorenter): Wrote.
7513 (soft_monitorexit): Likewise.
7514 * java/lang/natObject.cc (init_mutex): New method.
7518 (sync_mutex): Define.
7519 Include "java-threads.h".
7521 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7523 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7524 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7526 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7528 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7529 Added extern "Java" in places to tell G++ Object is a "Java" type.
7530 Other minor renaming and fixes.
7531 * include/java-io.h (FileDescriptor): Add friend class declarations.
7532 G++ no longer allows non-Java types in method parameters and results
7533 of Java classes. Converted most offending methods to friends.
7534 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7535 * java/lang/natSystem.cc (setProperty): Make friend.
7536 * java/lang/natString.cc, include/java-lang.h (String): Rename
7537 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7538 * include/java-lang.h (JArray): Remove getData and eoprator[].
7539 Add elements friend function instead.
7540 * java/lang/natSystem.cc (arraycopy): Use elements function.
7541 * java/io/natFileDescriptor.cc (read, write): Likewise.
7542 * include/java-lang.h (Object): Remove unused make method.
7543 (System::setProperty(char*,char*)): Turn into friend function.
7544 (Class): Rename newObject by JvAllocObject.
7545 * prims.cc: Update to use JvAllocObject, and elements.
7547 * java/lang/natDouble.cc: Fix double -> jdouble.
7549 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7551 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7553 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7555 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7556 * include/java-lang.h (Runtime): finalize_on_exit and
7557 runFinalizersOnExit now static.
7558 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7560 (finalize_on_exit): Now static.
7562 * boehm.cc (mark_obj): Get class using getClass() method on
7564 (_dispatchTable): Removed.
7566 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7568 * java/io/natFileDescriptor.cc (open_read): Only call open if
7570 (open_write): Likewise.
7572 * Makefile.in: Rebuilt.
7573 * Makefile.am ($(nat_files)): Depend on config.h.
7575 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7577 * prims.cc (ObjectClass): Now a macro; updated for new class name
7579 (StringClass): Likewise.
7580 (ClassClass): Likewise.
7582 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7584 * java/io/natFileDescriptor.cc (available): Do nothing unless
7585 HAVE_SELECT defined.
7586 * java/util/natDate.cc (setTime): Conditional on
7588 (toString): Conditional on HAVE_TIME.
7589 * aclocal.m4, configure: Rebuilt.
7590 * acinclude.m4: New file.
7591 * configure.in: Don't actually call AM_EXEEXT. Call
7592 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7593 --with-target-subdir option. Check for select and open
7596 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7598 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7599 (call_finalizer): Likewise.
7600 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7601 * prims.cc (newObject): Pass actual method pointer to
7602 JvPrivRegisterFinalizer.
7603 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7604 (JvPrivRegisterFinalizer): Changed interface.
7606 * Makefile.in: Rebuilt.
7607 * Makefile.am (MOSTLYCLEANFILES): New macro.
7608 (CLEANFILES): Removed javao_files.
7610 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7612 * nogc.cc: New file.
7613 * Makefile.in: Rebuilt.
7614 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7615 (EXTRA_libjava_a_SOURCES): New macro.
7616 (libjava_a_SOURCES): Removed boehm.cc.
7617 (libjava_a_DEPENDENCIES): Added GCOBJS.
7618 (libjava_a_LIBADD): Likewise.
7619 * configure: Rebuilt.
7620 * configure.in: Added code for --enable-gc=TYPE.
7622 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7624 * boehm.cc (mark_array): Don't further dereference pointer from
7627 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7628 * Makefile.in: Rebuilt.
7629 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7630 one for boehm-gc build directory.
7632 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7634 * include/java-lang.h (finalize_on_exit): New instance variable in
7635 java::lang::Runtime.
7636 (runFinalizersOnExit): New method.
7637 * java/lang/Runtime.java (finalize_on_exit): New instance
7639 (runAllFinalizers_): New private method.
7640 (runFinalizersOnExit): New method.
7641 * boehm.cc (JvPrivRunFinalizers): New function.
7642 (JvPrivRunAllFinalizers): Likewise.
7643 (JvPrivRunGC): Likewise.
7644 * java/lang/natRuntime.cc: Include "jvm.h".
7645 (gc): Call JvPrivRunGC.
7646 (runFinalization): Call JvPrivRunFinalizers.
7647 (runFinalizersOnExit): New method.
7648 (exit_): Call JvPrivRunAllFinalizers if required.
7649 * include/jvm.h: Declare JvPrivRunFinalizers,
7650 JvPrivRunAllFinalizers, JvPrivRunGC.
7652 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7654 * boehm.cc (JvPrivRegisterFinalizer): New function.
7655 (call_finalizer): Likewise.
7656 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7657 * prims.cc (finalize_name): New global.
7658 (newObject): Just call other newObject.
7659 (newObject): Register finalizer if it exists.
7661 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7663 * prims.cc (gc_malloc): Removed.
7664 (makeUtf8Const): Use JvPrivAllocBytes.
7665 (lookupArray): Likewise.
7666 (newPrimArray): Likewise.
7667 (JvNewObjectArray): Use JvPrivAllocArray.
7668 (newObject): Use JvPrivAllocObj.
7669 (newObject): Likewise.
7670 Changed Method -> JvMethod everywhere.
7671 Changed Field -> JvField everywhere.
7672 * include/java-lang.h (Object): Changed type of `fields' to
7674 (jmethodID, jfieldID): New typedefs.
7675 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7677 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7679 (METHOD_NATIVECODE): Moved from java-lang.h.
7680 (class JvField): New class.
7681 (JvGetFirstInstanceField): New function.
7682 (JvFieldIsRef): Likewise.
7683 (JvGetObjectField): Likewise.
7684 (JvNumInstanceFields): Likewise.
7686 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7688 * boehm.cc: New file.
7689 * Makefile.in: Rebuilt.
7690 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7691 (INCLUDES): Added -I options to find boehm-gc files.
7693 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7695 * configure: Rebuilt.
7696 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7698 * Makefile.in: Rebuilt.
7699 * Makefile.am (nat_files): New macro.
7700 (libjava_a_DEPENDENCIES): Use it.
7701 (libjava_a_LIBADD): Likewise.
7702 ($(nat_files)): New static pattern rule.
7703 (class_files): Run separate find to find .class files.
7704 (javao_files): Compute based on class_files.
7705 (BUILT_SOURCES): New macro.
7707 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7709 * Makefile.am (java_files): New macro.
7710 (class_files): Likewise.
7711 (javao_files): Likewise.
7712 (libjava_a_DEPENDENCIES): Include $(javao_files).
7713 (libjava_a_LIBADD): Likewise.
7714 (classes.stamp): Depend on $(java_files); only recompile changed
7717 (CLEANFILES): Don't run find; use macros. Don't mention
7719 (.class.o): New target.
7720 (compiled.stamp): Removed.
7722 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7724 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7725 LineNumberReader}>java: Newly-implemented standard classes.
7727 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7729 * Makefile.in: Rebuilt.
7730 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7732 * Makefile.in: Rebuilt.
7733 * Makefile.am (hack): New macro.
7734 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7736 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7738 * include/config.h.in: New file.
7739 * include/config.h: Removed.
7740 * acconfig.h: New file.
7741 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7742 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7743 libjava_a_LIBADD): New macros.
7744 (INCLUDES): New macro.
7747 (SUFFIXES): Removed.
7749 (libjava.a): Removed.
7751 * configure: Rebuilt.
7752 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7753 Look for headers and functions we require. Create
7756 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7758 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7759 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7760 soft_lookupinterfacemethod): New functions.
7761 (PrimClass): Actually initialize the primitive classes.
7762 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7764 * include/java-util.h: Removed java::util definition.
7765 * include/cni.h: Moved java::util here and added Properties.
7766 Added more function prototypes.
7767 * include/java-lang.h: Added mroe methods and friend declarations.
7768 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7769 * include/jvm.h (strLengthUtf8): Add declaration.
7771 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7773 * java/lang/{Byte,Short,Void}.java: New classes.
7774 * java/lang/Character.java (isJavaIdentifierStart,
7775 JavaIdentifierPart): New static methods.
7776 * java/lang/Number.java (byteValue, shortValue): New methods.
7778 * java/lang/String.java (intern, hashCode): Make native.
7779 * java/lang/natString.cc: New file. Handle the string pool.
7780 * Makefile.am: Build natString.o. Use CXXFLAGS.
7782 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7783 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7784 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7785 * java/lang/System.java (setProperty): New private method.
7786 (initProperties): Take argument, and make native.
7787 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7788 (currentTimeMillis): Make more robust.
7790 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7791 * java/io/UnsupportedEncodingException.java: New exception class.
7793 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7794 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7796 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7798 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7799 * prims.cc: Added bunch of stuff.
7800 * include/cni.h: Added various definitions.
7801 * include/java-lang.h: Added Method, various friends, some macros.
7803 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7804 * java/lang/System.java (arraycopy): Make native.
7806 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7808 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7809 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7810 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7811 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7813 * java/lang/Runtime.java: Declare methods as native instead of
7815 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7816 * java/lang/System.java: Comment out some stuff, for now.
7817 * java/lang/Thread.java: Re-write. Use native methods.
7818 * java/lang/NativeLang.java: Remove most of it.
7820 * java/util/natDate.cc: Native (C++) methods for Date.
7821 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7822 * java/util/Date.java: Complete re-write.
7824 * java/io/io-defs.h: New header file.
7825 * java/io/FileDescriptor.java: Add a bunch of private methods,
7826 mostly moved from NativeIO.java and natNativeIO.cc.
7827 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7828 * java/io/File.java: Use new code.
7829 * java/io/{FileInputStream.java.FileOutputStream.java,
7830 RandomAccessFile.java}: Use new private FileDescriptor methods.
7831 * java/io/NativeIO.java: Removed, no longer used.
7833 * java/io/StreamTokenizer.java (numericChars): Make char array.
7835 * include/*.h: Various header files used by the C++ native code.
7837 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7838 New autoconf+automake-based setup.
7839 * prims.cc: New file for Java "primitives".