1 2000-02-15 Tom Tromey <tromey@cygnus.com>
3 * jni.cc (mangled_name): Skip leading `(' in signature.
5 * jni.cc (add_char): Added missing `else'.
7 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
10 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
14 * java/lang/natRuntime.cc (_load): Include library path with
17 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
20 * java/lang/natThread.cc (dumpStack): Removed.
21 * java/lang/Thread.java (dumpStack): Implemented.
23 2000-02-15 Tom Tromey <tromey@cygnus.com>
25 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
26 with `lib' for loadLibrary. Fixes PR gcj/150.
28 2000-02-14 Warren Levy <warrenl@cygnus.com>
30 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
32 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
36 (modPow): Rewritten to not use the naive, slow, brute force approach.
37 (isProbablePrime): Implemented.
38 (testBit): Implemented.
39 (flipBit): Implemented.
40 (getLowestSetBit): Implemented.
42 2000-02-16 Anthony Green <green@redhat.com>
44 * configure.host: Use the same options for i386 and i486 as we do
47 2000-02-12 Tom Tromey <tromey@cygnus.com>
49 * java/io/File.java (createTempFile): Use low bits from counter,
52 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
54 * THANKS: More thanks.
56 2000-02-11 Tom Tromey <tromey@cygnus.com>
58 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
59 astore instruction. From Hans Boehm.
61 2000-02-11 Warren Levy <warrenl@cygnus.com>
63 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
64 (BigInteger(String)): New constructor.
65 (not): Rewritten using version from Kawa's BitOps class.
66 (valueOf): New private methods from Kawa's BitOps class.
73 (andNot): Implemented.
74 (clearBit): Implemented.
75 (setBit): Implemented.
76 (bitCount): Implemented.
77 (toByteArray): Implemented.
79 2000-02-11 Tom Tromey <tromey@cygnus.com>
81 * java/io/File.java (nextValue): Now synchronized.
83 2000-02-10 Tom Tromey <tromey@cygnus.com>
85 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
86 * java/io/FileDescriptor.java (EXCL): New static field.
87 * java/io/File.java (tmpdir): New static field.
88 (createTempFile): New method.
89 (nextValue): New method.
90 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
93 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
94 (jboolean): Declare as an attributed int, not a bool.
95 (_Jv_func): Declare differently for C.
97 * gnu/gcj/jni/natNativeThread.cc: New file.
98 * gnu/gcj/jni/NativeThread.java: New file.
99 * java/lang/Thread.java (data): Now a RawData.
100 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
102 * Makefile.in: Rebuilt.
103 * Makefile.am (java/lang/Thread.h): New target.
104 (ordinary_java_source_files): Added NativeThread.java.
105 (nat_source_files): Added natNativeThread.cc.
106 * java/lang/natThread.cc: Include <jni.h>
107 (struct natThread): Added `jni_env' field.
108 (_Jv_GetCurrentJNIEnv): New function.
109 (_Jv_SetCurrentJNIEnv): Likewise.
110 (initialize_native): Initialize jni_env.
112 * jni.cc (ThreadGroupClass): New define.
113 (_Jv_JNI_InvokeFunctions): New structure.
114 (JNI_GetCreatedJavaVMs): New function.
115 (the_vm): New global.
116 (JNI_GetDefaultJavaVMInitArgs): New function.
117 Include NativeThread.h.
118 (NativeThreadClass): New define.
119 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
120 (_Jv_JNI_DestroyJavaVM): New function.
121 (_Jv_JNI_AttachCurrentThread): New function.
122 (_Jv_JNI_DetachCurrentThread): New function.
123 (_Jv_JNI_GetEnv): New function.
124 (JNI_CreateJavaVM): New function.
125 (_Jv_JNI_GetJavaVM): New function.
126 (_Jv_JNIFunctions): Added entry for GetJavaVM.
127 * include/jni.h (JavaVMAttachArgs): New structure.
128 (JNI_EDETACHED): New define.
129 (JNI_EVERSION): Likewise.
130 (JavaVM): Define properly.
131 (struct JNIInvokeInterface): New structure.
132 (class _Jv_JavaVM): New class.
133 (JNI_OnLoad, JNI_OnUnload): Declare.
134 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
135 JNI_GetCreatedJavaVMs): Declare.
136 (JavaVMInitArgs): New typedef.
137 (JavaVMOption): Likewise.
138 (JNI_ERR): New define.
141 2000-02-10 Andrew Haley <aph@cygnus.com>
143 * interpret.cc: Don't include fdlibm.h.
144 Replace #if with #ifdef throughout.
145 Declare extern __ieee754_fmod.
146 (continue1): Remove op_getfield, op_getstatic, op_putfield,
148 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
149 Search class hierarchy for superclass vtable.
151 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
152 off the end of a pointer list.
154 * java/lang/natThread.cc (stop): Don't abort, throw an exception
158 2000-02-09 Tom Tromey <tromey@cygnus.com>
160 * java/lang/natRuntime.cc (_load): Call add_library.
161 (loadLibraryInternal): Likewise.
163 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
164 iconv_close when handle is not NULL. Thanks to Andrew Haley.
165 (Output_iconv::finalize): Likewise.
167 2000-02-08 Tom Tromey <tromey@cygnus.com>
169 * java/util/Properties.java (setProperty): New method.
172 2000-02-07 Tom Tromey <tromey@cygnus.com>
174 * java/lang/Runtime.java (_load): Declare.
175 (load, loadLibrary): Wrote in terms of _load.
176 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
178 (loadLibrary): Likewise.
181 (loadLibrary, load): Removed.
183 * jni.cc (ThrowableClass): New define.
184 (_Jv_JNI_Throw): Check argument.
185 (_Jv_JNI_ThrowNew): Likewise.
186 (wrap_value): Don't wrap object if it is NULL.
187 (_Jv_JNI_DefineClass): Use wrap_value.
188 (_Jv_JNI_FindClass): Likewise.
189 (_Jv_JNI_GetSuperclass): Likewise.
190 (_Jv_JNI_ExceptionOccurred): Likewise.
191 (_Jv_JNI_AllocObject): Likewise.
192 (_Jv_JNI_GetObjectClass): Likewise.
193 (_Jv_JNI_NewString): Likewise.
194 (_Jv_JNI_NewStringUTF): Likewise.
195 (_Jv_JNI_NewObjectArray): Likewise.
196 (_Jv_JNI_GetObjectArrayElement): Likewise.
197 (_Jv_JNI_NewPrimitiveArray): Likewise.
198 (_Jv_JNI_ToReflectedField): Likewise.
199 (_Jv_JNI_ToReflectedMethod): Likewise.
200 (_Jv_JNI_AllocObject): Check argument.
201 (_Jv_JNI_NewObjectV): Likewise.
202 (_Jv_JNI_NewObject): Likewise.
203 (_Jv_JNI_NewObjectA): Likewise.
204 (_Jv_JNI_GetObjectClass): Likewise.
205 (_Jv_JNI_GetField): Likewise.
206 (_Jv_JNI_SetField): Likewise.
208 * interpret.cc (PUSHL): Don't use expression statement.
213 * jni.cc (add_char): Conditional on INTERPRETER.
214 (mangled_name): Likewise.
216 * include/java-interp.h (class _Jv_MethodBase): Conditional on
218 (class _Jv_JNIMethod): Likewise.
220 2000-02-04 Warren Levy <warrenl@cygnus.com>
222 * Makefile.am: Added MPN.java and BigInteger.java.
223 * Makefile.in: Rebuilt.
224 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
226 * java/math/BigInteger.java: New file. Based primarily on
227 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
229 2000-02-04 Tom Tromey <tromey@cygnus.com>
231 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
233 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
234 if the method is native.
235 * resolve.cc (ncode): Don't handle native methods.
236 (_Jv_JNIMethod::ncode): New method.
237 (_Jv_PrepareClass): Handle native methods.
238 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
239 Include AbstractMethodError.h.
240 (add_char): New function.
241 (mangled_name): Likewise.
242 * include/java-interp.h (class _Jv_JNIMethod): New class.
243 (class _Jv_MethodBase): New class.
244 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
245 (_Jv_InterpClass): Changed `interpreted_methods' field to type
248 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
249 * java/lang/natRuntime.cc (libraries_size, libraries_count,
250 libraries): New globals.
251 (add_library): New function.
252 (_Jv_FindSymbolInExecutable): New function.
254 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
257 2000-02-04 Andrew Haley <aph@cygnus.com>
259 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
260 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
261 * java/lang/natThrowable.cc (printRawStackTrace): Rename
262 printStackTrace to printRawStackTrace.
264 2000-02-03 Tom Tromey <tromey@cygnus.com>
266 * java/util/Calendar.java (toString): New method.
267 * java/util/SimpleTimeZone.java (clone): New method.
268 (toString): New method.
269 * java/util/TimeZone.java (clone): New method.
270 * java/text/SimpleDateFormat.java (clone): New method.
271 * java/text/NumberFormat.java (clone): New method.
272 (equals): New method.
273 * java/text/Format.java (clone): New method.
274 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
277 * java/text/DateFormat.java (clone): New method.
278 * java/text/Collator.java (clone): New method.
280 2000-02-03 Tom Tromey <tromey@cygnus.com>
282 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
285 2000-02-01 Tom Tromey <tromey@cygnus.com>
287 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
288 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
289 constructing the closure if the function is native.
290 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
291 a template function, #if'd out, or static.
292 Include <java-interp.h>.
294 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
296 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
298 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
299 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
301 (wrap_value): New function.
302 (_Jv_JNI_CallAnyMethodV): Use it.
303 (_Jv_JNI_CallAnyMethodA): Likewise.
304 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
305 (_Jv_JNI_GetStaticField): Likewise.
307 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
308 (_Jv_JNI_GetStaticField): Likewise.
310 2000-01-31 Tom Tromey <tromey@cygnus.com>
312 * prims.cc (_Jv_MallocUnchecked): New function.
313 (main_init): Call _Jv_JNI_Init.
314 * include/jvm.h (_Jv_MallocUnchecked): Declare.
315 (_Jv_JNI_Init): Declare.
316 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
318 (_Jv_JNI_NewGlobalRef): New function.
319 (_Jv_JNI_DeleteGlobalRef): New function.
320 (_Jv_JNI_DeleteLocalRef): New function.
321 (_Jv_JNI_conversion_call): Initialize and clear local reference
323 (_Jv_JNI_NewLocalRef): New function.
324 (struct _Jv_JNI_LocalFrame): New structure.
325 (_Jv_JNI_PushLocalFrame): New function.
326 (_Jv_JNI_EnsureLocalCapacity): New function.
327 (FRAME_SIZE): New define.
328 (_Jv_JNI_GetStringChars): Mark string, not characters.
329 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
330 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
331 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
333 (_Jv_JNI_DefineClass): Make return value a local ref.
334 (_Jv_JNI_FindClass): Likewise.
335 (_Jv_JNI_GetSuperclass): Likewise.
336 (_Jv_JNI_ExceptionOccurred): Likewise.
337 (_Jv_JNI_AllocObject): Likewise.
338 (_Jv_JNI_GetObjectClass): Likewise.
339 (_Jv_JNI_CallAnyMethodV): Likewise.
340 (_Jv_JNI_NewString): Likewise.
341 (_Jv_JNI_NewStringUTF): Likewise.
342 (_Jv_JNI_NewObjectArray): Likewise.
343 (_Jv_JNI_GetObjectArrayElement): Likewise.
344 (_Jv_JNI_ToReflectedField): Likewise.
345 (_Jv_JNI_ToReflectedMethod): Likewise.
346 (_Jv_JNIFunctions): Updated table for new functions.
347 (_Jv_JNI_Init): New function.
348 (mark_for_gc): Wrote.
349 (unmark_for_gc): Wrote.
350 * include/jni.h (struct JNINativeInterface): Removed name from
351 PopLocalFrame parameter.
352 (class _Jv_JNIEnv): Added `locals' field.
354 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
356 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
359 2000-01-30 Tom Tromey <tromey@cygnus.com>
361 * include/config.h.in: Rebuilt.
362 * acconfig.h (HAVE_ICONV): Define.
363 * configure: Rebuilt.
364 * configure.in: Check for `iconv' function.
365 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
366 no specific encoder exists.
367 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
368 no specific encoder exists.
369 * Makefile.in: Rebuilt.
370 * Makefile.am (convert_source_files): Mention Input_iconv.java and
372 (nat_source_files): Added natIconv.cc.
373 * gnu/gcj/convert/natIconv.cc: New file.
374 * gnu/gcj/convert/Input_iconv.java: New file.
375 * gnu/gcj/convert/Output_iconv.java: New file.
377 2000-01-28 Tom Tromey <tromey@cygnus.com>
379 * Makefile.in: Rebuilt.
380 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
382 2000-01-26 Tom Tromey <tromey@cygnus.com>
384 * gcj/method.h (JvNumMethods): Moved from Class.h.
385 (JvGetFirstMethod): Likewise.
386 * java/lang/Class.h (Object): Updated decl of
387 _Jv_JNI_ToReflectedField.
388 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
389 * Makefile.in: Rebuilt.
390 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
391 argument of _Jv_JNI_ToReflectedField.
392 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
394 (java/lang/reflect/Method.h): Likewise.
395 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
397 (jweak): New typedef.
398 (struct JNINativeInterface): Correctly declare remaining entries.
399 * jni.cc: Include Class.h, ClassLoader.h.
400 (_Jv_JNI_FindClass): New function.
401 (_Jv_JNI_DefineClass): New function.
402 (_Jv_JNI_conversion_call): New function.
403 (_Jv_JNI_FindClass): Use current class loader to find class.
404 (_Jv_JNI_ExceptionCheck): New function.
405 (_Jv_JNI_FromReflectedField): Now static.
406 (MethodClass): New define.
407 (_Jv_JNI_FromReflectedMethod): New function.
408 (_Jv_JNI_ToReflectedMethod): Likewise.
410 (_Jv_JNI_IsAssignableFrom): Renamed.
411 (_Jv_JNI_GetStringRegion): New function.
412 Include StringIndexOutOfBoundsException.h.
413 (_Jv_JNI_GetStringUTFRegion): New function.
414 (_Jv_JNIFunctions): Updated for new functions.
415 (_Jv_JNI_GetPrimitiveArrayCritical): New function
416 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
417 (_Jv_JNI_GetStringCritical): New function.
418 (_Jv_JNI_ReleaseStringCritical): Likewise.
419 (get_throwable): Removed.
420 (GCJ_JV_JNIENV_FRIEND): Removed.
421 (__GCJ_JNI_IMPL__): Define.
424 * resolve.cc (get_ffi_type_from_signature): Handle case where
427 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
429 * interpret.cc (run): Don't call println.
430 Don't include PrintStream.h.
432 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
433 nameIndex. Use "jint" as type for boffset.
434 * java/lang/Class.h (struct _Jv_Method): Made accflags a
436 (Class): Likewise. Also changed type of method_count,
437 vtable_method_count, size_in_bytes, field_count,
438 static_field_count, interface_count.
439 * gcj/array.h (__JArray): Made `length' a const jsize, not an
442 2000-01-21 Tom Tromey <tromey@cygnus.com>
444 * java/lang/reflect/natConstructor.cc (newInstance): Use
446 * include/jvm.h: Declare _Jv_CallAnyMethodA.
447 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
448 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
451 (invoke): Use _Jv_CallAnyMethodA.
453 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
454 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
456 (struct _Jv_Method): Added getNextMethod method.
457 (JvNumMethods): New function.
458 (JvGetFirstMethod): Likewise.
459 * gcj/field.h (JvGetFirstStaticField): New function.
460 (JvNumStaticFields): Likewise.
461 (getNextField): Renamed from getNextInstanceField.
462 (struct _Jv_Field): New method getClass.
463 * jni.cc: Wrote many new functions.
464 * include/jni.h (JNI_TRUE): Define.
465 (JNI_FALSE): Likewise.
466 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
467 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
468 jcharArray, jfloatArray, jdoubleArray): New typedefs.
469 (jfieldID, jmethodID): Likewise.
470 (JNI_COMMIT, JNI_ABORT): New defines.
471 (JNINativeMethod): New struct.
472 (struct JNINativeInterface): Correctly declared more entries.
473 (class _Jv_JNIEnv): Added `ex' member.
474 (JNI_VERSION_1_1): New define.
475 (JNI_VERSION_1_2): Likewise.
477 * boehm.cc (_Jv_MarkObj): Use getNextField, not
478 getNextInstanceField.
480 2000-01-20 Tom Tromey <tromey@cygnus.com>
482 * resolve.cc (StringClass): Removed.
483 * defineclass.cc (StringClass): Removed.
485 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
489 2000-01-19 Tom Tromey <tromey@cygnus.com>
491 * interpret.cc (PC_REGISTER_ASM): Removed.
493 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
496 * All files: Updated copyright to reflect Cygnus purchase.
498 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
500 * configure: Rebuilt.
501 * configure.in: Recognize --disable-interpreter.
503 2000-01-18 Andrew Haley <aph@cygnus.com>
505 * name-finder.cc (lookup): Check for dladdr function.
506 acconfig.h (HAVE_DLADDR): Add.
507 configure.in: Check for HAVE_DLADDR
509 include/config.h.in: Rebuilt.
511 2000-01-17 Andrew Haley <aph@cygnus.com>
513 * prims.cc (_Jv_RunMain): Set the name of this executable.
515 2000-01-17 Tom Tromey <tromey@cygnus.com>
517 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
518 when backtrace can't be computed.
520 * configure: Rebuilt.
521 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
523 * java/lang/Runtime.java (loadLibraryInternal): Declare.
524 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
525 (_Jv_FindClassInCache): Likewise.
526 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
527 (findSystemClass): Try to load class from compiled module.
529 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
530 (loadLibrary): Likewise.
531 (lt_preloaded_symbols): Define.
532 (loadLibraryInternal): New method.
533 * include/config.h.in: Rebuilt.
534 * acconfig.h (USE_LTDL): Added.
535 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
536 (INCLUDES): Added $(INCLTDL).
537 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
538 (libgcj_la_LIBADD): Likewise.
539 * aclocal.m4, configure: Rebuilt.
540 * configure.in: Added libltdl support.
542 2000-01-15 Tom Tromey <tromey@cygnus.com>
544 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
546 2000-01-14 Andrew Haley <aph@cygnus.com>
548 * java/lang/natThrowable.cc: New file.
550 * java/lang/Throwable.java (fillInStackTrace): Make native.
551 (printStackTrace): Call native method to do this.
552 (Throwable): Call fillInStackTrace.
553 (stackTrace): New variable.
555 * include/jvm.h: Add _Jv_ThisExecutable functions.
557 * prims.cc: (_Jv_execName): New variable.
558 (catch_segv): Call fillInStackTrace.
560 (_Jv_ThisExecutable): New functions.
561 (JvRunMain): Set the name of this executable.
563 * Makefile.am: Add java/lang/natThrowable.cc.
565 * Makefile.in: Rebuilt.
567 * acconfig.h: Add HAVE_PROC_SELF_EXE.
569 * configure.in: Force link with __frame_state_for in
570 FORCELIBGCCSPEC. Add new checks for backtrace.
571 * include/config.h.in: Rebuilt.
573 * name-finder.cc: New file.
574 * include/name-finder.h: New file.
576 2000-01-16 Anthony Green <green@cygnus.com>
578 * java/lang/StringBuffer.java (StringBuffer): Don't special case
581 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
583 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
585 2000-01-13 Tom Tromey <tromey@cygnus.com>
587 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
588 not system loader, as initiating loader.
590 2000-01-11 Tom Tromey <tromey@cygnus.com>
592 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
593 HP/UX. From David Scott Urban.
595 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
597 * java/lang/natMath.cc (pow): Cast args to `double', not
600 (IEEEremainder): Likewise.
601 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
602 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
604 2000-01-09 Anthony Green <green@cygnus.com>
606 * java/lang/natString.cc (init): Test for overflow condition
607 during out of bounds check.
608 (getChars): Throw StringIndexOutOfBoundsException, not
609 ArrayIndexOutOfBoundsException.
611 (regionMatches): Obey case option during string comparison.
613 * configure.host (ligcj_interpreter): New variable. Enable
614 interpreter by default on IA-32.
615 * configure.in: Examine libgcj_interpreter.
616 * configure: Rebuilt.
618 2000-01-07 Tom Tromey <tromey@cygnus.com>
620 * mauve-libgcj: Don't disable ClassTest.
622 * java/lang/natClass.cc (getClasses): Wrote.
624 2000-01-06 Tom Tromey <tromey@cygnus.com>
626 * java/lang/natClass.cc (_getConstructors): Correctly check
627 whether method name is the init name.
628 (getMethod): Look at accflags on method in `klass', not `this'.
630 2000-01-05 Tom Tromey <tromey@cygnus.com>
632 * java/lang/natClass.cc (getMethod): Compute offset relative to
633 `klass's methods table, not `this's table.
635 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
636 In unwrapping/widening case, check whether `k' is null, not
637 whether it is primitive. Initialize `num' from `argelts', not
638 `paramelts'. Correct create and pass arguments to ffi_call.
639 Don't let presence of `this' argument affect index used to look in
641 (COPY): Set appropriate element in `values' vector.
643 * java/lang/natClass.cc: Include <gcj/method.h>.
645 * java/lang/Class.h (_getMethods): Correctly declare as private,
648 * java/lang/Class.h (_getMethods): Declare.
649 * java/lang/Class.java (_getMethods): Declare.
650 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
651 (getDeclaredClasses): Always return empty array.
652 (_getMethods): New method.
654 (getDeclaredMethod): Return `rmethod'.
655 (finit_name): New global.
656 (getDeclaredMethods): Check for finit_name.
657 (_getMethods): Likewise.
658 (getMethod): Only return public methods.
660 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
661 jboolean and select correct ffi type on that basis.
662 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
663 Constructor call always has `void' return type.
665 2000-01-04 Tom Tromey <tromey@cygnus.com>
667 * java/lang/Class.h (getSignature): Updated.
668 * java/lang/Class.java (getSignature): Updated.
669 * java/lang/natClass.cc (getSignature): Added `is_constructor'
671 (getConstructor): Ensure constructor is public.
672 (_getConstructors): Check for public-ness of constructor when
673 `declared' is false, not when it is true.
675 2000-01-04 Warren Levy <warrenl@cygnus.com>
677 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
679 (receive): Set the sender's address in the DatagramPacket.
681 2000-01-04 Tom Tromey <tromey@cygnus.com>
683 * java/lang/reflect/natConstructor.cc (newInstance): Pass
684 declaring class as return_type argument to
685 _Jv_CallNonvirtualMethodA.
686 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
687 constructor case, create object and use it as `this' argument.
688 * java/lang/Class.h (_getConstructors): Declare.
689 (_getFields): Declare.
690 * java/lang/Class.java (getConstructors): Wrote.
691 (_getConstructors): New native method.
692 (getDeclaredConstructors): Wrote.
693 (_getFields): Declare new native method.
694 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
696 (getMethod): Work correctly when class is primitive.
697 (getDeclaredMethods): Likewise. Compute offset using `method',
699 (getDeclaredMethod): Likewise.
700 (getConstructor): Wrote.
701 (ConstructorClass): New define.
702 (getDeclaredConstructor): Wrote.
703 (_getConstructors): New method.
704 (_getFields): New method.
707 * Makefile.in: Rebuilt.
708 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
710 * prims.cc: Remove `#pragma implementation'.
711 * gcj/array.h: Remove `#pragma interface'.
713 * prims.cc (_Jv_equaln): New function.
714 * java/lang/Class.java (getSignature): Declare.
715 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
716 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
718 (getSignature): New method.
719 (getDeclaredMethod): Wrote.
721 Include StringBuffer.h.
722 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
723 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
725 (getSignature): Declare.
726 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
727 (_Jv_equaln): Declare.
728 (_Jv_CallNonvirtualMethodA): Declare.
729 * Makefile.in: Rebuilt.
730 * Makefile.am (nat_source_files): Added natConstructor.cc.
731 (java/lang/reflect/Constructor.h): New target.
732 * java/lang/reflect/natConstructor.cc: New file.
733 * java/lang/reflect/Constructor.java (newInstance): Now native.
734 (declaringClass): Renamed from decl_class.
735 (offset): Renamed from index.
736 (getType): New native method.
737 (getModifiers): Now native.
738 (getParameterTypes): Call getType if required.
739 (hashCode): Include hash code from declaring class.
740 (modifiers): Removed.
741 (toString): Call getType if required.
742 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
743 * java/lang/reflect/natMethod.cc (hack_call): New method.
744 Removed `#if 0' around FFI code.
745 Include <gnu/gcj/RawData.h>.
746 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
747 IllegalArgumentException when argument object and class disagree.
748 (_Jv_GetTypesFromSignature): New function.
750 (ObjectClass): New define.
751 (_Jv_CallNonvirtualMethodA): New function.
752 * java/lang/reflect/Method.java (hack_trampoline): New method.
753 (hack_call): New native method.
755 1999-12-21 Per Bothner <per@bothner.com>
757 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
758 offset in new Method.
760 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
762 * java/lang/natObject.cc (notify): Throw message with
763 IllegalMonitorStateException.
766 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
767 (isInterrupted_): New function, which does clear interrupt_flag.
768 (interrupt): Use `isInterrupted_'.
769 * java/lang/natThread.cc (interrupt): Add comment.
770 (join): Set `prev' in joiner loop.
771 Change various calls to `isInterrupted' to use `isInterrupted_'.
772 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
773 on linux. Set result to 0 on an interrupt. Test interrupted status
774 of java Thread object directly.
775 FLAG_INTERRUPTED: removed.
776 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
777 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
778 (_Jv_InitThreads): Don't block SIGINT.
779 (_Jv_ThreadWait): Don't configure SIGINT handler.
781 1999-12-21 Tom Tromey <tromey@cygnus.com>
783 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
785 1999-12-20 Tom Tromey <tromey@cygnus.com>
787 * java/lang/reflect/Modifier.java (STRICT): New constant.
788 (isStrict): New method.
789 (toString): Added `strict'.
791 1999-12-23 Anthony Green <green@cygnus.com>
793 * configure: Rebuilt.
794 * configure.in (LIBDATASTARTSPEC): Force data_start in with
797 1999-12-19 Anthony Green <green@cygnus.com>
799 * libgcjdata.c: New file.
800 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
801 * configure: Rebuilt.
802 * configure.in (LIBDATASTARTSPEC): Force data with a known name
804 * Makefile.in: Rebuilt.
805 * Makefile.am: Build libgcjdata.a.
807 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
808 * configure: Rebuilt.
809 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
812 1999-12-17 Tom Tromey <tromey@cygnus.com>
814 * java/lang/reflect/Method.java (toString): Call getType if
815 required. Partial fix for PR libgcj/111. From Per Bothner.
817 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
819 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
821 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
822 null String constructor parameter.
823 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
824 for exception messages.
825 BooleanClass: declare.
826 (setOption): Use BooleanClass instead of Class.forName() for
828 (bind): Cast 4th parameter of setsockopt to `char *' for
829 compatibility with older Solaris headers.
830 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
831 sprintf calls for exception messages.
832 BooleanClass, IntegerClass: declare.
833 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
836 1999-12-15 Tom Tromey <tromey@cygnus.com>
838 * java/lang/natSystem.cc (init_properties): Don't set user.name or
839 user.home if NO_GETUID defined. Only set user.dir if getcwd
842 * include/config.h.in: Rebuilt.
843 * acconfig.h (NO_GETUID): New define.
844 * configure.in: Rebuilt.
845 * configure.in: Define NO_GETUID in cross case. Check for getcwd
848 1999-12-08 Tom Tromey <tromey@cygnus.com>
850 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
851 where no recursive mutexes exist. Fixes PR libgcj/117.
853 1999-12-05 Anthony Green <green@cygnus.com>
855 * include/jvm.h: Declare many functions with
856 __attribute__((__malloc__)).
857 * gcj/javaprims.h: Ditto.
859 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
861 * THANKS: Giving credit where credit is due.
863 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
865 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
867 * java/lang/natString.cc (equalsIgnoreCase): return false if
868 anotherString is null.
869 * java/lang/Boolean.java (valueOf): return FALSE if argument is
872 1999-11-30 Tom Tromey <tromey@cygnus.com>
874 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
875 mutex to initialize. Initialize `count' if required.
878 1999-11-27 Per Bothner <per@bothner.com>
880 * exception.cc: Remove prototype declarations for malloc and free.
881 These clash with recent versions of glibc, which specifies `throws ()'
882 when __cplusplus is defined. Instead, #include <stdlib.h>.
884 1999-11-24 Tom Tromey <tromey@cygnus.com>
886 * prims.cc (_Jv_NewObjectArray): Use
887 _Jv_GetArrayElementFromElementType.
888 (_Jv_NewPrimArray): Likewise.
889 * java/lang/natObject.cc (clone): Use
890 _Jv_GetArrayElementFromElementType instead of sizeof.
891 * java/lang/natSystem.cc (arraycopy): Use
892 _Jv_GetArrayElementFromElementType.
893 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
896 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
898 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
899 Exception messages. PR java.net/57.
900 (bind): set SO_REUSEADDR before bind.
901 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
902 overruns. PR java.net/57.
904 1999-11-19 Tom Tromey <tromey@cygnus.com>
906 * Makefile.am (DIVIDESPEC): Removed.
907 (EXCEPTIONSPEC): Removed.
909 1999-11-19 Andrew Haley <aph@cygnus.com>
911 * Makefile.am (JCFLAGS): Add -L$(here)
913 * Makefile.in: Rebuild.
915 1999-11-18 Tom Tromey <tromey@cygnus.com>
917 * java/lang/natDouble.cc: Include <config.h>.
919 * include/config.h.in: Rebuilt.
920 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
921 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
923 * configure: Rebuilt.
924 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
925 requested by configure.host. Don't put `-D' option into
926 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
928 * configure: Rebuilt.
929 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
932 1999-11-18 Andrew Haley <aph@cygnus.com>
934 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
935 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
937 * Makefile.in: Rebuild
938 * acconfig.h: remove SJLJ_EXCEPTIONS
939 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
940 Do not AC_DEFINE SJLJ_EXCEPTIONS.
941 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
942 * gcj/Makefile.in, include/Makefile.in: rebuild.
943 * include/config.h.in: remove SJLJ_EXCEPTIONS.
945 1999-11-18 Andrew Haley <aph@cygnus.com>
947 * gij.cc (main): Rename label to prevent conflict.
949 * exception.cc (_Jv_type_matcher): Don't check the table if we're
950 using setjmp/longjmp exceptions: there isn't one.
952 1999-11-17 Andrew Haley <aph@cygnus.com>
954 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
955 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
956 (__sjthrow): Add declaration.
957 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
961 * Makefile.in: Rebuild
962 * acconfig.h: Add SJLJ_EXCEPTIONS
963 * configure.in: Add SJLJ_EXCEPTIONS
964 * configure: Rebuild.
965 * gcj/Makefile.in: Rebuild.
966 * gcj/cni.h: Add support for sjlj-exceptions.
967 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
968 * include/Makefile.in: Rebuild.
969 * include/default-signal.h: Add support for sjlj-exceptions.
971 1999-11-18 Tom Tromey <tromey@cygnus.com>
973 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
975 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
977 (method_cache): Made larger.
979 1999-11-11 Tom Tromey <tromey@cygnus.com>
981 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
982 initializing mutex. Initialize `count' when required.
984 1999-11-07 Anthony Green <green@trip.cygnus.com>
986 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
989 1999-11-05 Tom Tromey <tromey@cygnus.com>
991 * java/lang/natThread.cc (destroy): Removed incorrect comment.
993 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
995 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
996 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
999 1999-11-05 Tom Tromey <tromey@cygnus.com>
1001 * java/lang/natThread.cc (stop): Removed argument name.
1003 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
1004 `private'; now has default access.
1005 * Makefile.in: Rebuilt.
1006 * Makefile.am (java/lang/ThreadGroup.h): Removed.
1008 1999-11-04 Tom Tromey <tromey@cygnus.com>
1010 * java/lang/natClass.cc (method_cache_count): Removed.
1011 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
1012 (_Jv_AddMethodToCache): Don't loop.
1014 * configure.in: Removed `qt' threads case.
1015 * include/quick-threads.h: Removed.
1016 * quick-threads.cc: Removed.
1018 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
1019 (_Jv_ThreadDestroy): Likewise.
1020 * include/no-threads.h (_Jv_ThreadCancel): Removed.
1021 (_Jv_ThreadDestroy): Likewise.
1022 * include/posix-threads.h (struct _Jv_Thread_t): Removed
1024 (_Jv_ThreadCancel): Removed decl.
1025 (_Jv_ThreadDestroy): Removed.
1026 * posix-threads.cc (_Jv_ThreadCancel): Removed.
1027 (throw_cleanup): Removed.
1028 (really_start): Don't push or pop cleanup.
1029 (_Jv_ThreadInitData): Don't initialize `exception' field.
1030 * java/lang/Thread.java (stop): Officially unimplemented.
1031 * java/lang/natThread.cc (stop): Officially unimplemented.
1033 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1035 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
1038 1999-11-02 Tom Tromey <tromey@cygnus.com>
1040 * boehm.cc: Don't include boehm-config.h.
1042 1999-11-01 Tom Tromey <tromey@cygnus.com>
1044 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
1045 (sum_blocks): Removed.
1046 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
1048 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
1050 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
1052 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
1053 * java/io/InputStreamReader (InputStreamReader): ditto.
1055 1999-10-22 Tom Tromey <tromey@cygnus.com>
1057 * Makefile.in: Rebuilt.
1058 * Makefile.am (java/lang/ClassLoader.h): New target.
1059 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
1062 * include/java-props.h (_Jv_Compiler_Properties): Changed
1064 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
1065 * include/jvm.h (_Jv_GCSetInitialHeapSize,
1066 _Jv_GCSetMaximumHeapSize): Declare.
1067 (JvRunMain, _Jv_RunMain): Declare.
1068 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
1069 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
1070 (_Jv_GCSetMaximumHeapSize): Likewise.
1071 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
1072 (_Jv_GCSetMaximumHeapSize): Likewise.
1073 * prims.cc (parse_heap_size): New function.
1074 (_Jv_SetInitialHeapSize): Likewise.
1075 (_Jv_SetMaximumHeapSize): Likewise.
1076 (_Jv_Compiler_Properties): New global.
1077 * gij.cc (help): New function.
1078 (version): Likewise.
1079 (heap_size): Likewise.
1080 (heap_max_size): Likewise.
1081 (main): Parse arguments. Set _Jv_Compiler_Properties.
1082 Include <config.h>, <java-props.h>.
1083 (_Jv_Compiler_Properties): Removed.
1085 1999-10-18 Tom Tromey <tromey@cygnus.com>
1087 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
1089 (redirect): New static field.
1090 * java/lang/ClassLoader.java (getSystemClassLoader): Now
1092 (getVMClassLoader0): Removed.
1093 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
1094 (redirect): Removed.
1095 (getSystemClassLoader): Implemented.
1097 1999-10-16 Anthony Green <green@cygnus.com>
1099 * java/lang/ClassLoader.java (getSystemResource): Use
1100 getSystemClassLoader instead of ClassLoader.system.
1101 (getSystemResourceAsStream): Ditto.
1103 * java/lang/natClassLoader.cc (redirect): Make static and
1104 remove #ifdef INTERPRETER so it is always defined.
1105 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
1106 returns a VMClassLoader.
1108 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
1109 PropertyResourceBundle if a properties file is found before a
1110 ResourceBundle class.
1112 1999-10-15 Tom Tromey <tromey@cygnus.com>
1114 * gij.cc (main): Formatting fixes.
1115 (_Jv_Compiler_Properties): Define.
1116 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
1118 (init_properties): Set properites from _Jv_Compiler_Properties.
1119 * include/java-props.h (_Jv_Compiler_Properties,
1120 _Jv_Environment_Properties): Declare.
1122 * include/java-props.h: Added copyright.
1124 1999-10-13 Anthony Green <green@cygnus.com>
1126 * libtool-version: Catch up by incrementing current.
1128 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
1129 * configure, include/config.h.in: Rebuilt.
1130 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
1131 * configure.in: Added --disable-getenv-properties and new define
1132 `DISABLE_GETENV_PROPERTIES'.
1134 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
1135 (next_property_key): New function.
1136 (next_property_value): New function.
1137 (process_gcj_properties): New function.
1138 (JvRunMain): Call process_gcj_properties.
1139 (_JvRunMain): Ditto.
1141 * java/lang/natSystem.cc (init_properties): Set properties defined
1144 * include/java-props.h: New file.
1146 * java/lang/natSystem.cc (init_properties): Add new properties to
1147 conform with Java Product Versioning Specification.
1149 1999-10-12 Tom Tromey <tromey@cygnus.com>
1151 * configure: Rebuilt.
1152 * configure.in: Fixed test for --disable-java-net.
1154 1999-10-06 Tom Tromey <tromey@cygnus.com>
1156 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
1157 when building Canadian cross.
1158 (NATIVE): Don't define when cross-compiling.
1160 1999-10-04 Tom Tromey <tromey@cygnus.com>
1162 * java/net/natPlainSocketImpl.cc: Don't include headers if
1163 java.net is disabled.
1165 * Makefile.in: Rebuilt.
1166 * Makefile.am (ZINCS): Removed. This is defined in configure.in
1167 when needed, and must be left empty when not needed.
1169 1999-10-01 Anthony Green <green@cygnus.com>
1171 * THANKS: Refreshed from htdocs version.
1173 1999-10-01 Steve Chamberlain <sac@pobox.com>
1175 * Makefile.in: Rebuilt.
1176 * Makefile.am (ZINCS): Define
1178 * configure: Rebuilt.
1179 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1181 * java/lang/ieeefp.h: Add definitions for picoJava.
1183 1999-10-01 Tom Tromey <tromey@cygnus.com>
1185 * configure: Rebuilt.
1186 * configure.in: Set classpath when invoking gcj. Use changequote
1187 around sed invocation.
1189 * java/net/natPlainSocketImpl.cc: Stub native functions if
1190 DISABLE_JAVA_NET is defined.
1191 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1192 typo in exception string.
1193 (getTimeToLive): Likewise.
1194 Stub native functions if DISABLE_JAVA_NET is defined.
1195 * java/net/natInetAddress.cc: Stub native functions if
1196 DISABLE_JAVA_NET is defined.
1197 * configure.host: Disable java.net for mips-tx39.
1198 * configure, include/config.h.in: Rebuilt.
1199 * acconfig.h (DISABLE_JAVA_NET): Undefine.
1200 * configure.in: Added --disable-java-net and new define
1203 1999-09-30 Tom Tromey <tromey@cygnus.com>
1205 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1207 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1211 1999-09-28 Tom Tromey <tromey@cygnus.com>
1213 * configure: Rebuilt.
1214 * configure.in (PROCESS): In POSIX case, only set if not already
1216 * configure.host (PROCESS): Set in mips-tx39 case.
1218 * aclocal.m4, configure: Rebuilt.
1219 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1220 appropriate AC_PROG_ symbol.
1222 1999-09-24 Tom Tromey <tromey@cygnus.com>
1224 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1226 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1228 Fix for PR java.util/47:
1229 * configure, include/config.h: Rebuilt.
1230 * configure.in: Don't look for ctime or ctime_r.
1231 * Makefile.in: Rebuilt.
1232 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1233 * java/util/natDate.cc: Removed.
1234 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1236 (getAvailableIDs): Rewrote.
1237 (getTimeZone): Rewrote.
1238 * java/util/Date.java (toGMTString): New method.
1239 (toLocaleString): New method.
1240 (toString): Rewrote.
1242 1999-09-23 Tom Tromey <tromey@cygnus.com>
1244 * configure: Rebuilt.
1245 * configure.in: Print message when checking to see if gcj can
1246 handle -fuse-divide-subroutine.
1248 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1250 * java/lang/FirstThread.java (run0): Renamed to `run'.
1253 * prims.cc (main_init): New function.
1254 (JvRunMain): Call it.
1255 (_Jv_RunMain): Likewise.
1257 (main_init): Ignore SIGPIPE. Fixes PR 51.
1259 1999-09-22 Tom Tromey <tromey@cygnus.com>
1261 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1263 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1265 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1267 * java/text/NumberFormat.java: Check that object is a Number. If
1268 not, throw IllegialArgumentException.
1270 1999-09-21 Tom Tromey <tromey@cygnus.com>
1272 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1273 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1275 * include/posix-threads.h (_Jv_MutexDestroy): Use
1276 _Jv_PthreadGetMutex.
1277 (_Jv_MutexLock): Likewise.
1278 (_Jv_MutexUnlock): Likewise.
1280 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1281 previous patch; it too was incorrect.
1282 * java/io/PrintStream.java (PrintStream): Likewise.
1284 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1285 refer to `this' before calling superclass constructor.
1286 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1287 before calling superclass constructor.
1289 1999-09-20 Tom Tromey <tromey@cygnus.com>
1291 * configure: Rebuilt.
1292 * configure.in: Send output of `-fuse-divide-subroutine' test
1293 compilation to /dev/null.
1295 1999-09-14 Tom Tromey <tromey@cygnus.com>
1297 * include/java-insns.h: Turned constants into an enum. Added
1298 multiple-inclusion protection.
1300 1999-09-10 Tom Tromey <tromey@cygnus.com>
1302 * configure: Rebuilt.
1303 * configure.in: Build include/Makefile.
1304 * Makefile.in: Rebuilt.
1305 * Makefile.am (SUBDIRS): Added gcj and include.
1306 (install-data-local): New target.
1307 (extra_headers): New macro.
1308 * include/Makefile.in: New file.
1309 * include/Makefile.am: New file.
1311 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1312 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1314 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1315 * resolve.cc: Include config.h.
1316 * defineclass.cc: Include config.h.
1317 * include/java-interp.h: Don't include config.h.
1318 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1321 * gcj/javaprims.h: Regenerated namespace decls.
1322 * classes.pl (scan): Don't put `;' after closing brace.
1324 * Makefile.in: Rebuilt.
1325 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1326 * configure.in: Create gcj/Makefile.
1327 * gcj/Makefile.in: New file.
1328 * gcj/Makefile.am: New file.
1329 * java/lang/Object.h: Don't include any other headers.
1330 * gcj/array.h: Renamed from include/java-array.h.
1331 * gcj/field.h: Renamed from include/java-field.h.
1332 * gcj/method.h: Renamed from include/java-method.h.
1333 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1334 Updated all files to reflect new include structure.
1336 1999-09-09 Tom Tromey <tromey@cygnus.com>
1338 * configure: Rebuilt.
1339 * configure.in: Fixed typo; variable is THREADSPEC and not
1342 1999-09-08 Tom Tromey <tromey@cygnus.com>
1344 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1345 previous change and implemented a correct test in the __m_count
1348 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1351 1999-09-07 Tom Tromey <tromey@cygnus.com>
1353 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1354 code and don't set errno.
1356 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1357 not `r'. Changed `done_sleeping' to a `bool'.
1359 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1361 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1362 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1363 by another thread, rather than by the GC.
1364 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1365 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1366 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1369 1999-09-03 Tom Tromey <tromey@cygnus.com>
1371 * configure: Rebuilt.
1372 * configure.in: Check for fstat function.
1373 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1376 1999-09-02 Tom Tromey <tromey@cygnus.com>
1378 * include/java-array.h (jobjectArrayjchar): Removed unused
1381 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1382 _Jv_PrepareCompiledClass while holding class mutex.
1384 1999-09-01 Tom Tromey <tromey@cygnus.com>
1386 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1387 (_Jv_PthreadGetMutex): Use it.
1388 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1389 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1390 (_Jv_MutexLock): Likewise.
1391 (_Jv_MutexUnlock): Likewise.
1392 * include/config.h.in: Rebuilt.
1393 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1394 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1395 * configure: Rebuilt.
1396 * libgcj.spec.in: Don't mention INTERPSPEC.
1397 * configure.in (INTERPSPEC): Removed.
1398 Only run pthreads-related checks when using POSIX threads. Check
1399 for m_count and __m_count in mutex structure.
1401 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1403 * java/lang/natClass.cc: Fixed notification of threads
1404 when class initialization is complete.
1406 1999-09-01 Tom Tromey <tromey@cygnus.com>
1408 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1409 * resolve.cc: Removed constants defined by
1410 java.lang.reflect.Modifier.
1411 Include <java/lang/reflect/Modifier.h>.
1412 (_Jv_ResolvePoolEntry): Use values from Modifier.
1413 (_Jv_DetermineVTableIndex): Likewise.
1414 (_Jv_PrepareClass): Likewise.
1416 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1417 java.lang.reflect.Modifier.
1418 Include <java/lang/reflect/Modifier.h>.
1419 (checkExtends): Use values from Modifier.
1420 (checkImplements): Likewise.
1421 (handleField): Likewise.
1422 (handleConstantValueAttribute): Likewise.
1423 (handleFieldsEnd): Likewise.
1424 (handleMethod ): Likewise.
1425 (handleMethodsEnd): Likewise.
1426 (handleClassBegin): Likewise.
1427 * interpret.cc: Removed constants defined by
1428 java.lang.reflect.Modifier.
1429 (continue1): Use values from Modifier.
1430 * java/lang/natClassLoader.cc: Removed constants defined by
1431 java.lang.reflect.Modifier.
1433 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1434 JV_STATE_NOTHING, not `0'.
1435 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1437 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1438 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1440 (_Jv_PthreadGetMutex): New function.
1441 (_Jv_PthreadCheckMonitor): Use it.
1442 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1443 (_Jv_MutexLock): Update `count'.
1444 (_Jv_MutexUnlock): Likewise.
1445 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1448 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1450 * Makefile.am (.java.lo): Add rule.
1452 * Makefile.in: Rebuilt.
1454 1999-09-01 Tom Tromey <tromey@cygnus.com>
1456 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1457 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1459 (_Jv_CondNotify): Use it.
1460 (_Jv_CondNotifyAll): Likewise.
1462 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1464 1999-08-31 Tom Tromey <tromey@cygnus.com>
1466 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1469 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1471 * posix-threads.cc: Include <errno.h>.
1473 1999-08-23 Tom Tromey <tromey@cygnus.com>
1475 * boehm.cc: Undefine TRUE and FALSE.
1477 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1479 1999-08-21 Tom Tromey <tromey@cygnus.com>
1481 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1484 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1486 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1488 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1489 (HAVE_STRUCT_IP_MREQ): Added.
1490 * configure, include/config.h.in: Rebuilt.
1491 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1493 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1494 Disable if ip_mreq is not available.
1496 * configure.in: Check types ssize_t and in_addr_t.
1497 * acconfig.h: Undefine them.
1498 * configure, include/config.h.in: Rebuilt.
1500 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1501 function that detects the signature of getpwuid_r.
1502 (init_properties): Use it.
1503 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1506 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1508 * interpret.cc (continue1): Implement explicit dispatch table.
1509 insn_target: Explicit interpreter switch table.
1510 SAVE_PC: New macro, moves pc saving code into instructions that
1512 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1513 PC_REGISTER_ASM: New macro.
1514 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1515 opcode: Remove local variable.
1516 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1517 (POKEI): Use _Jv_word.
1518 (iinc): Use _Jv_word.
1519 (dupx): Change reference argument (sp) to pointer.
1522 * interpret.cc: Remove instruction timing instrumentation.
1524 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1525 comment. Don't use _Jv_ClassNameSamePackage.
1527 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1528 URLPathEntry, CacheEntry}: Removed.
1530 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1532 (.java.lo): Rule removed.
1534 * Makefile.in: Rebuilt.
1536 1999-08-19 Tom Tromey <tromey@cygnus.com>
1538 * java/lang/natThread.cc (class locker): New class.
1539 (join): Use a locker around _Jv_CondWait.
1542 1999-08-18 Tom Tromey <tromey@cygnus.com>
1544 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1545 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1547 1999-08-18 Tom Tromey <tromey@cygnus.com>
1549 * include/javaprims.h ("Java"): Regenerated namespace decls.
1551 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1553 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1554 from _Jv_InternClassStrings.
1556 * prims.cc (_Jv_RunMain): New function.
1557 (JvRunMain): Remove gij-support.
1559 * gij.cc (main): Use _Jv_RunMain.
1561 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1563 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1564 argument in temp variable.
1565 (continue1): For all op_x2y insns, use temp variable for
1566 intermediate value. Also remove some comments.
1568 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1569 (forName): Don't call _Jv_InitClass.
1571 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1573 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1575 * java/util/jar/JarInputStream.java: New file.
1577 * java/util/jar/JarEntry.java: New file.
1579 * java/util/jar/JarFile.java: New file.
1581 * java/net/URLClassLoader.java: New file.
1583 * java/net/JarURLConnection.java: New file.
1585 * gnu/gcj/protocol/jar/Handler.java: New file.
1587 * gnu/gcj/protocol/jar/Connection.java: New file.
1589 * java/security/SecureClassLoader.java: New file.
1591 * java/lang/ClassLoader.java (parent): New variable.
1592 (ClassLoader (ClassLoader)): new constructor.
1593 (findClass): New method.
1594 (loadClass): Add default 1.2 implementation.
1595 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1596 (readfully): Removed.
1598 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1599 (findSystemClass): New method.
1600 (VMClassLoader): Constructor rewritten.
1602 All other methods removed.
1604 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1605 to gnu::gcj::runtime::VMClassLoader.
1606 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1608 (VMClassLoader::findSystemClass): renamed from findBootClass.
1610 * Makefile.am: Add new files.
1611 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1613 * Makefile.in: Rebuilt.
1615 1999-08-17 Tom Tromey <tromey@cygnus.com>
1617 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1619 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1622 1999-08-16 Tom Tromey <tromey@cygnus.com>
1624 * configure: Rebuilt.
1625 * configure.in: Set DIVIDESPEC to empty string if compiler does
1626 not support -fuse-divide-subroutine.
1628 1999-08-14 Per Bothner <per@bothner.com>
1630 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1631 * java/lang/natClass.cc (initializeClass): Likewise.
1632 * java/lang/ClassLoader.java (resolveClass0): New static method.
1633 (resolveClass): Call resolveClass0.
1634 (findSystemClass): No longer static.
1636 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1638 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1640 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1642 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1645 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1647 * Makefile: Rebuilt.
1648 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1651 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1654 * configure: Rebuilt.
1655 * configure.in: Properly align --help output, fix capitalization
1657 * acinclude.m4: Likewise.
1659 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1661 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1663 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1664 (_Jv_callInterpretedMethod): Unused. Remove.
1665 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1667 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1668 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1669 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1670 * interpret.cc: use _Jv_word.
1671 * defineclass.cc: use_Jv_word.
1672 * resolve.cc: Use _Jv_word.
1673 (_Jv_ResolvePoolEntry): Return _Jv_word.
1674 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1675 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1677 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1680 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1682 * configure: Rebuilt.
1683 * configure.in (sched_yield): Try librt first, then libposix4.
1684 Add -lrt, -lposix4 to THREADSPEC.
1686 1999-08-08 Anthony Green <green@cygnus.com>
1688 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1690 1999-08-08 Anthony Green <green@cygnus.com>
1692 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1695 1999-08-08 Anthony Green <green@cygnus.com>
1699 * include/config.h.in: Rebuilt.
1700 * acconfig.h: Add INTERPRETER.
1702 * Makefile.in: Rebuilt.
1703 * Makefile.am (libffi_files): Identify the libffi object files for
1704 inclusion in libgcj.
1705 (LIBFFIINCS): Define.
1707 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1708 Dummy definition for configurations without an interpreter.
1710 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1711 java::lang::Boolean constructor.
1713 * include/java-interp.h: Always include java-cpool.h.
1715 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1716 when INTERPRETER not defined.
1718 * java/lang/Class.h (finalize): Define.
1720 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1721 IOException from File.getCanonicalPath.
1722 (getStream): Likewise.
1725 * THANKS: More thanks.
1727 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1729 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1731 (_Jv_PrepareClass): Allow non-abstract classes to
1732 have abstract subclasses.
1733 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1735 * interpret.cc (continue1/perform_invoke): Don't sign extend
1737 (continue1/lshl,lshr): Push long, not int.
1738 (continue1/ulshr): Use UINT64, not long long.
1739 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1741 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1742 * java/lang/FirstThread.java (run): Add top-level exception
1744 (run0): Renamed from run.
1746 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1748 * configure.in (--with-interpreter): Added.
1749 * include/config.h.in (INTERPRETER): Added.
1751 * java/lang/ClassLoader.java: File replaced.
1752 * java/lang/VMClassLoader.java: New file.
1753 * java/lang/natClassLoader.cc: New file.
1754 * gnu/gcj/runtime/MethodInvocation.java: New file.
1755 * gnu/gcj/util/path/SearchPath.java: New file.
1756 * gnu/gcj/util/path/PathEntry.java: New file.
1757 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1758 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1759 * gnu/gcj/util/path/URLPathEntry.java: New file.
1760 * gnu/gcj/util/path/CacheEntry.java: New file.
1761 * include/java-interp.h: New file.
1762 * include/java-cpool.h: New file.
1763 * include/java-insns.h: New file.
1764 * defineclass.cc: New file.
1765 * interpret.cc: New file.
1766 * resolve.cc: New file.
1768 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1769 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1770 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1772 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1773 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1775 (initializeClass): Use new JV_ prefixed names. Also, call
1776 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1778 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1779 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1780 JV_STATE_LINKED): New.
1781 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1782 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1783 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1784 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1785 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1786 _Jv_InterpMethodInvocation): New friends for interpreter.
1788 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1789 include/java-cpool.h and renamed with JV_ prefix.
1791 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1793 (_Jv_UnregisterClass): New decl.
1795 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1796 class loader argument.
1797 (_Jv_FindClass): Use class loader.
1799 * prims.cc (_Jv_makeUtf8Const): New function.
1800 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1801 (_Jv_NewPrimArray): Ditto.
1802 (_Jv_FindClassFromSignature): Ditto.
1803 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1804 * java/lang/reflect/natMethod.cc (getType): Ditto.
1806 * include/java-field.h (_Jv_Field::isRef): Make robust for
1807 non-resolved contexts.
1809 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1810 Also, don't mark class->next field.
1812 * java/lang/VirtualMachineError.java: Added FIXME note.
1814 * configure.in (INTERPSPEC): New spec.
1815 * libgcj.spec.in: Added INTERPSPEC.
1816 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1817 gnu/gcj/runtime/MethodInvocation.
1818 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1819 (ordinary_java_source_files): Added above mentioned java classes.
1821 * configure: Rebuilt.
1822 * Makefile.in: Rebuilt.
1824 1999-08-06 Tom Tromey <tromey@cygnus.com>
1826 * configure: Rebuilt.
1827 * configure.in: Look for sched_yield in -lrt.
1829 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1831 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1832 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1833 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1835 (toString): Print correctly when `country' is empty.
1837 1999-08-04 Per Bothner <per@bothner.com>
1839 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1841 1999-08-02 Tom Tromey <tromey@cygnus.com>
1843 * aclocal.m4, configure: Rebuilt for new libtool.
1845 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1847 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1848 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1849 * java/net/ServerSocket.java: Define ANY_IF.
1850 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1851 all network interfaces.
1852 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1853 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1855 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1857 * java/io/natFile.cc (performMkdir): Remove FIXME.
1858 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1860 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1862 * configure.in: Check for bstring.h.
1863 * configure, include/config.h.in: Rebuilt.
1864 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1865 * java/net/natPlainSocketImpl.cc: Likewise.
1867 1999-07-31 Tom Tromey <tromey@cygnus.com>
1872 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1874 * configure.in: Check for struct hostent_data and need for
1875 -D_REENTRANT for gethostbyname_r declaration.
1876 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1877 (lookup): Use hostent_data for fixed_buffer.
1878 * configure, include/config.h.in: Rebuilt.
1880 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1882 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1883 available. Don't cast memmove args to (void*).
1884 * configure.in: Do not abort if memmove is not available.
1886 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1888 * java/lang/natString.cc (substring): optimize where substring is
1890 * java/io/File.java (getName): don't return separator with file name.
1891 * java/io/natFile.cc (attr): fix overflow.
1893 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1895 * mauve-libgcj: Disable Object Serialization tests.
1897 1999-07-20 Warren Levy <warrenl@cygnus.com>
1899 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1900 Default to using PlainDatagramSocketImpl.
1901 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1903 1999-07-19 Tom Tromey <tromey@cygnus.com>
1905 * include/stamp-h.in: New file.
1907 1999-07-12 Tom Tromey <tromey@cygnus.com>
1909 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1912 1999-07-07 Andrew Haley <aph@cygnus.com>
1914 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1915 bytes to make it point after the instruction where the trap
1917 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1919 1999-07-07 Tom Tromey <tromey@cygnus.com>
1921 * mauve-libgcj: Explicitly enable formerly disabled java.text
1924 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1927 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1929 * java/net/URL.java (equals): Compare strings using String.equals.
1930 * java/net/URL.java (sameFile): Ditto.
1932 1999-07-02 Warren Levy <warrenl@cygnus.com>
1934 * configure: Rebuilt.
1935 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1936 * include/config.h.in: Rebuilt.
1937 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1938 (mcastGrp): Updated FIXME comments.
1939 (setOption): Fixed typo.
1940 (getOption):Implemented IP_MULTICAST_IF.
1942 1999-07-02 Warren Levy <warrenl@cygnus.com>
1944 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1945 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1946 (getTimeToLive): Implemented.
1947 (setOption): Implemented IP_MULTICAST_IF.
1949 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1951 * java/lang/String.java (toString): Check for this == null and throw
1952 NullPointerException.
1954 1999-07-01 Warren Levy <warrenl@cygnus.com>
1956 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1957 to count and revised comments to match.
1958 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1959 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1960 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1961 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1962 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1963 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1965 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1967 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1968 properly as count rather than outlength.
1969 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1970 output on overflow rather than buffer fill.
1971 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1972 if markPos is 0 and there is still room in the buffer.
1974 1999-07-01 Andrew Haley <aph@cygnus.com>
1976 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1977 This is a workaround for a bug in glibc's pthreads package which
1978 doesn't deliver any sigcontext information to a signal handler.
1980 1999-06-24 Tom Tromey <tromey@cygnus.com>
1982 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1983 * java/lang/fdlibm.h (HUGE): Conditionally define.
1985 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1987 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1988 * java/lang/e_log.c: Don't use __uint32_t.
1990 1999-05-27 Eric Christopher <echristo@cygnus.com>
1992 * configure: Rebuilt
1993 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1994 * acconfig.h: Rebuilt
1995 * include/config.h.in: Rebuilt
1997 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1998 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1999 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
2000 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
2001 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
2002 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
2003 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
2004 and namespace collision with __uint32_t
2006 1999-06-23 Tom Tromey <tromey@cygnus.com>
2008 * java/util/zip/InflaterInputStream.java (read): Throw
2009 ZipException if inflater throws a DataFormatException.
2011 1999-06-23 Warren Levy <warrenl@cygnus.com>
2013 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
2014 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
2015 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
2016 is not final per JDK.
2017 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
2019 * java/util/zip/DataFormatException.java: Class extends Exception.
2020 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
2021 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
2022 * java/util/zip/ZipInputStream.java: ditto.
2023 (closeEntry): Changed method name to match JDK spec.
2025 1999-06-21 Tom Tromey <tromey@cygnus.com>
2027 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
2030 * Makefile.in: Rebuilt.
2031 * Makefile.am (toolexeclibdir): Define as libdir when
2033 * configure: Rebuilt.
2034 * configure.in (USE_LIBDIR): New conditional.
2036 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
2038 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
2039 hostname in returned InetAddress objects.
2040 (getLocalHostname): Fix typo.
2041 * java/net/InetAddress.java (getByName): Set hostname on return
2043 (getLocalHost): Call lookup directly to ensure that a fully-qualified
2046 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
2048 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
2049 interfaces if host==NULL.
2050 (accept): Throw message with InterruptedIOException.
2051 (getOption): Cache localAddress.
2052 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
2053 'address' for DatagramSocket.
2054 (setTimeToLive): Fix compiler warnings.
2055 (getOption): Cache localAddress.
2056 * java/net/Socket.java (getLocalAddress): Don't need local
2057 InetAddress object. Add FIXME comment about calling checkConnect().
2058 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
2059 connection queue to 50 as per JDK 1.2 docs.
2060 (ServerSocket(int,int)): Listen on all network interfaces by
2061 default, per JDK 1.2 docs.
2062 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
2063 Add localAddress caching.
2065 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2067 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
2069 (write(byte[],int,int)): ditto.
2071 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
2073 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
2075 1999-06-11 Warren Levy <warrenl@cygnus.com>
2077 * mauve-libgcj: Activated java.net Mauve tests.
2079 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
2081 * java/net/natInetAddress.cc (aton): Fix typos.
2082 (lookup): Use a bigger buffer size for gethostbyname_r on all
2083 versions of glibc. Updated FIXME comment explaining this.
2084 Modified while loops to not set herr = ERANGE to work around glibc
2085 problems. Use user specified hostname in InetAddress result when
2086 available (consistent with JDK).
2088 1999-06-10 Warren Levy <warrenl@cygnus.com>
2090 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
2091 Throw FileNotFoundException instead of IOException.
2093 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
2095 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
2096 in static field name.
2097 * java/text/DecimalFormat.java: Throw IllegalArgumentException
2098 throughout rather than ParseException.
2100 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
2102 * java/lang/Runtime.java (exec): Convert prog name and arguments
2104 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
2105 environment array conversion. Preserve current environment if envp
2106 not passed. Preserve PATH unless explicitly specified.
2107 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
2108 followed by EOF. Set a flag when a line is terminated by '\r' and
2109 ignore following '\n' if set.
2111 1999-06-02 Warren Levy <warrenl@cygnus.com>
2113 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
2114 Ignore context if spec is an absolute URL. Fix braindead
2116 (hashCode): Use JDK 1.2 style algorithm.
2117 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
2118 context URL properly.
2120 1999-05-30 Anthony Green <green@cygnus.com>
2122 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
2123 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
2125 1999-05-28 Warren Levy <warrenl@cygnus.com>
2127 * java/net/DatagramSocket.java (laddr): Removed.
2128 (DatagramSocket): Removed attempts to get or set laddr if null.
2129 (getLocalAddress): Reimplemented per spec.
2130 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
2132 (joinGroup): Throw NullPointerException if any argument is null.
2133 (leaveGroup): ditto.
2134 * java/net/PlainDatagramSocketImpl.java: Updated comments.
2135 * java/net/PlainSocketImpl.java (timeout): Added.
2136 (getInputStream): Added FIXME comment on how to support timeouts
2138 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
2139 * java/net/Socket.java: Added FIXME comments to identify
2140 conflicting specs between the JCL and JDK 1.2 documents.
2141 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
2142 if host is null. Get localport value resolved by kernel if bind
2144 (receive): Implemented support for timeouts in UDP.
2145 (setOption): Implemented based on natPlainSocketImpl version.
2147 * java/net/natPlainSocketImpl.cc (bind): Get localport value
2148 resolved by kernel if bind lport is 0.
2149 (connect): Get localport value resolved by kernel if bind wasn't
2150 done to set localport.
2151 (accept): Implemented support for timeouts for ServerSocket.
2152 (setOption): Save value for SO_TIMEOUT.
2153 (getOption): Return timeout for SO_TIMEOUT.
2155 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
2157 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
2158 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
2159 (setOption): Made abstract.
2160 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
2161 to avoid cpp conflicts in native code.
2162 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
2163 cpp conflicts in native code.
2164 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
2165 * java/net/Socket.java (getLocalAddress): Implemented.
2166 (setTcpNoDelay): Implemented.
2167 (getTcpNoDelay): Implemented.
2168 (setSoLinger): Implemented.
2169 (getSoLinger): Implemented.
2170 (getSoTimeout): Verify class type.
2171 (setSendBufferSize): Implemented.
2172 (getSendBufferSize): Implemented.
2173 (setReceiveBufferSize): Implemented.
2174 (getReceiveBufferSize): Implemented.
2175 (toString): Prepended "Socket".
2176 * java/net/SocketImpl.java (toString): Rewritten.
2177 (getOption): Made abstract.
2178 (setOption): Made abstract.
2179 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2180 (setOption): Implemented.
2181 (getOption): Implemented.
2183 1999-05-26 Warren Levy <warrenl@cygnus.com>
2185 * java/net/DatagramSocket.java (DatagramSocket): Get local host
2186 address when null. Set SO_REUSEADDR for multicasts.
2187 (getSoTimeout): Implemented.
2188 (setSoTimeout): Implemented.
2189 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2190 * java/net/MulticastSocket.java (getInterface): Implemented.
2191 (setInterface): Implemented.
2192 (setTimeToLive): Check for invalid ttl.
2193 (joinGroup): Verify multicast address and security.
2194 (leaveGroup): Verify multicast address and security.
2195 (send): Implemented.
2196 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2202 (getTTL): Implemented as non-native.
2206 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2207 (getSoTimeout): Implemented.
2208 (setSocketFactory): Made synchronized.
2209 * java/net/Socket.java (setSoTimeout): Implemented.
2210 (getSoTimeout): Implemented.
2211 (close): Made synchronized.
2212 (setSocketImplFactory): Made synchronized.
2213 * java/net/SocketImpl.java: Implement SocketOptions interface.
2214 * java/net/natInetAddress.cc: Corrected module name at top of file.
2215 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2216 (bind): Added FIXME.
2217 (peek): Implemented.
2223 (setOption): Implemented for SO_REUSEADDR.
2224 (getOption): Implemented for SO_REUSEADDR.
2226 1999-05-24 Tom Tromey <tromey@cygnus.com>
2228 * java/util/ResourceBundle.java (getBundle): Throw
2229 NullPointerException if baseName is null.
2231 1999-05-22 Tom Tromey <tromey@cygnus.com>
2233 * java/util/zip/ZipInputStream.java (fill): New method.
2234 (compressed_len): New instance variable.
2235 (getNextStream): Set it.
2236 (read): Reset inflater on EOF. Only read via `super' if entry is
2238 (skip): Only skip via `super' if entry is deflated.
2239 * java/util/zip/Deflater.java (last_input_count): Removed.
2240 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2242 (needsInput): Don't use last_input_count.
2243 (setInput): Don't set last_input_count.
2244 * java/util/zip/natInflater.cc (getRemaining): Return correct
2246 (inflate): Return 0 if input array is length 0.
2247 (setInput): Don't set last_input_count.
2248 * java/util/zip/Inflater.java (last_input_count): Removed.
2250 1999-05-21 Tom Tromey <tromey@cygnus.com>
2252 * Makefile.in: Rebuilt.
2253 * Makefile.am (INCLUDES): Added $(ZINCS).
2254 * configure: Rebuilt.
2255 * configure.in (ZINCS): New subst.
2257 1999-05-21 Andrew Haley <aph@cygnus.com>
2259 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2260 to signal options to allow the same exceptions to be rethrown
2263 1999-05-20 Andrew Haley <aph@cygnus.com>
2265 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2267 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2268 (INIT_FPE): Exception string made more informative.
2269 * include/sparc-signal.h (INIT_FPE): Exception string made more
2271 * testsuite/libjava.lang/Divide_1.java: New file.
2272 * testsuite/libjava.lang/Divide_1.out: New file.
2274 1999-05-19 Tom Tromey <tromey@cygnus.com>
2276 * aclocal.m4, configure: Rebuilt.
2277 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2279 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2282 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2284 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2286 (update): Fail in default case. Always initialize `strat'.
2288 * mauve-libgcj: Enable java.util.zip.
2290 1999-05-18 Warren Levy <warrenl@cygnus.com>
2292 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2293 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2294 PlainDatagramSocketImpl.java, and SocketOptions.java.
2295 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2296 * Makefile.in: Rebuilt.
2298 * java/net/DatagramPacket.java: New file.
2299 * java/net/DatagramSocket.java: New file.
2300 * java/net/DatagramSocketImpl.java: New file.
2301 * java/net/MulticastSocket.java: New file.
2302 * java/net/PlainDatagramSocketImpl.java: New file.
2303 * java/net/SocketOptions.java: New file.
2304 * java/net/natPlainDatagramSocketImpl.cc: New file.
2306 1999-05-18 Tom Tromey <tromey@cygnus.com>
2308 * java/util/zip/ZipOutputStream.java (level): Initial value is
2309 Deflater.DEFAULT_COMPRESSION.
2310 (close): New method.
2311 (closeEntry): Likewise.
2313 (put_version): Likewise.
2314 (write_entry): Likewise.
2315 (put2, put4): Now return `int'.
2316 (comment): Default to empty string.
2317 (bytes_written): New instance variable.
2319 * java/util/zip/ZipEntry.java (setComment): Limit length of
2321 (setCrc): Check CRC validity.
2322 (setExtra): Check argument validity.
2323 (setMethod): Likewise.
2324 (setSize): Likewise.
2325 (ZipEntry): Likewise.
2326 * include/javaprims.h: Updated namespace declarations.
2327 * Makefile.in: Rebuilt.
2328 * Makefile.am (ordinary_java_source_files): Mention new files.
2329 (nat_source_files): Likewise.
2330 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2333 (getInputStream): Handle compressed entries.
2334 * java/util/zip/GZIPOutputStream.java: New file.
2335 * java/util/zip/GZIPInputStream.java: New file.
2336 * java/util/zip/DataFormatException.java: New file.
2337 * java/util/zip/CheckedInputStream.java: New file.
2338 * java/util/zip/CheckedOutputStream.java: New file.
2339 * java/util/zip/InflaterInputStream.java: Implemented.
2340 * java/util/zip/natInflater.cc: New file.
2341 * java/util/zip/Deflater.java: Implemented.
2342 * java/util/zip/natDeflater.cc: New file.
2343 * java/util/zip/DeflaterOutputStream.java: Implemented.
2345 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2346 ZipException, not IOException.
2347 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2350 1999-05-17 Tom Tromey <tromey@cygnus.com>
2352 * java/lang/natSystem.cc (init_properties): URL now points to
2355 1999-05-12 Per Bothner <bothner@cygnus.com>
2357 * java/util/Calendar.java (set): First call computeFields if needed.
2358 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2360 1999-05-12 Tom Tromey <tromey@cygnus.com>
2362 * configure: Rebuilt.
2363 * configure.in: Look for -ldl when using the Boehm collector.
2364 Look for sched_yield in -lposix4.
2366 1999-05-12 Per Bothner <bothner@cygnus.com>
2368 * java/io/File.java (mkdirs): Handle a null parent directory.
2370 1999-05-12 Tom Tromey <tromey@cygnus.com>
2372 * include/javaprims.h: Updated namespace declarations.
2373 * classes.pl (scan): Uniquify class list.
2374 * Makefile.in, configure: Rebuilt.
2375 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2376 (built_java_source_files): New macro.
2377 (nat_headers): Added built_java_source_files.
2378 (javao_files): Likewise.
2379 (EXTRA_libgcj_la_SOURCES): Likewise.
2380 (libgcj.zip): Create built class files.
2381 ($(built_java_source_files:.java=.class)): New target.
2382 (jv_convert_LDADD): Added -L$(here)/.libs.
2383 * configure.in: Create links for ConcreteProcess.java and
2384 natConcreteProcess.cc.
2385 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2386 * java/lang/natEcosProcess.cc: New file.
2387 * java/lang/EcosProcess.java: New file.
2388 * java/lang/PosixProcess.java: New file.
2389 * java/lang/natPosixProcess.cc: New file.
2391 1999-05-12 Warren Levy <warrenl@cygnus.com>
2393 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2394 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2395 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2396 (connect): Throw ConnectException.
2398 1999-05-11 Tom Tromey <tromey@cygnus.com>
2400 * Makefile.in: Rebuilt.
2401 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2402 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2405 * Makefile.in: Rebuilt.
2406 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2407 and it causes problems with libtool.
2409 * Makefile.in, configure: Rebuilt.
2410 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2411 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2412 (jv_convert_DEPENDENCIES): Added ZDEPS.
2413 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2415 (THREADSPEC): Added `-L' to point to qthreads build directory.
2419 * configure, Makefile.in: Rebuilt.
2420 * Makefile.am (toolexeclib_DATA): New macro.
2421 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2422 Recognize --with-system-zlib.
2423 (GCSPEC): New subst.
2424 (THREADSPEC): New subst.
2425 (SYSTEMSPEC): New subst.
2426 (ZLIBSPEC): New subst.
2427 * libgcj.spec.in: New file.
2429 1999-05-10 Tom Tromey <tromey@cygnus.com>
2431 * java/io/InputStreamReader.java (read): If length is 0, return
2432 0. Reset `wpos' and `wcount' when buffer has been filled and
2435 * java/util/Properties.java (save): Removed `FIXME' comment.
2436 (load): Invalid characters in \u now treated as terminators.
2437 Make sure to append character resulting from `\' handling.
2438 Cast to `char' when appending to key or value.
2439 (skip_ws): Inverted test for whitespace.
2441 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2443 (readLine): Likewise.
2444 (readFully): Implemented.
2446 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2448 * java/awt/natToolkit.cc: Added copyright header.
2449 * java/util/zip/InflaterInputStream.java: Added copyright header.
2451 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2453 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2455 (getNextStream): Likewise.
2457 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2459 (getBundle): Don't explicitly throw null pointer exception.
2461 * gnu/gcj/RawData.java: Added copyright header.
2463 * include/jni.h (_Jv_va_list): Always define as va_list.
2465 1999-05-9 Anthony Green <green@cygnus.com>
2467 * java/text/DateFormat.java (computeInstance): Separate time
2469 (getDateTimeInstance): Ditto.
2470 (getDateTimeInstance(int,int)): New method.
2472 * Makefile.in: Rebuilt.
2473 * Makefile.am (ordinary_java_source_files): Add new classes.
2475 * java/util/PropertyResourceBundle.java: New file.
2476 * gnu/gcj/util/EnumerationChain.java: New file.
2478 1999-05-07 Tom Tromey <tromey@cygnus.com>
2480 * acconfig.h (GCJVERSION): New undef.
2481 * java/lang/natSystem.cc (init_properties): Define java.version,
2482 java.class.version, os.name, os.arch, os.version.
2483 Include <sys/utsname.h> if required.
2484 * configure: Rebuilt.
2485 * configure.in: Compute and define GCJVERSION.
2487 * java/lang/natSystem.cc (default_file_encoding): Now static.
2489 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2491 * libtool-version: New file.
2492 * Makefile.in: Rebuilt.
2493 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2496 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2497 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2500 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2501 (we pick those up already).
2503 1999-05-05 Per Bothner <bothner@cygnus.com>
2505 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2506 stub classes. (This is enough to get Kawa to compile against libgcj.)
2508 * gnu/gcj/RawData.java: New class.
2509 * doc/cni.sgml: Document RawData.
2511 * java/util/zip/InflaterInputStream.java: New stub class.
2512 * java/util/zip/ZipInputStream.java: New class. Partly works.
2513 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2514 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2515 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2516 * java/util/zip/ZipOutputStream.java: Start implementation.
2518 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2519 (default_file_encoding): New global, initial value is above macro.
2520 (init_properties): Default file.encoding to default_file_encoding.
2522 * Makefile.am: Add new classes.
2524 1999-05-05 Tom Tromey <tromey@cygnus.com>
2526 * Makefile.in: Rebuilt.
2527 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2528 (clean-local): New target
2530 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2531 (load, loadLibrary): Now native.
2533 * java/lang/Runtime.java (load, loadLibrary): Now native.
2534 (init): New native method.
2535 (Runtime): Use init.
2536 * prims.cc: Include <ltdl.h> if required.
2537 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2539 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2541 * configure.in: Switch from irix threads to posix threads
2542 * configure: Regenerate.
2544 1999-04-30 Tom Tromey <tromey@cygnus.com>
2546 * Makefile.in: Rebuilt.
2547 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2549 1999-04-29 Tom Tromey <tromey@cygnus.com>
2551 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2554 * java/util/Locale.java (Locale(String,String)): Implement in
2555 terms of 3-argument version; variant now defaults to empty
2557 (toString): Assume variant is not null.
2558 (equals): Assume all strings are not null.
2559 (Locale): Throw NullPointerException if any argument is null.
2561 * java/util/ResourceBundle.java (getBundle): Don't try the base
2562 name; now implicit in partialGetBundle call.
2563 (trySomeGetBundle): Search for parent bundles and call setParent
2565 (partialGetBundle): Added `langStop' argument. Use
2566 `Locale.toString' to compute bundleName.
2567 (resource_cache): New static field.
2568 (partialGetBundle): Cache the returned resource bundle. Now
2571 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2574 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2575 * java/text/natCollator.cc (decomposeCharacter): `base' now
2577 * Makefile.in: Rebuilt.
2578 * Makefile.am (ordinary_java_source_files): Added
2579 CollationElementIterator, CollationKey, Collator,
2581 (nat_source_files): Added natCollator.cc.
2582 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2583 (compare): Pass `this' to CollationElementIterator constructor.
2584 (getCollationElementIterator): Likewise.
2585 (ceiNext): Fix off-by-one error when finding initial substring.
2586 (next): Correctly mask off bits when computing return value.
2587 Fixed return values when one string is shorter than the other.
2588 * java/text/CollationElementIterator.java (collator): New field.
2589 (CollationElementIterator): Added collator argument.
2590 (next): Call ceiNext on collator object.
2592 1999-04-26 Tom Tromey <tromey@cygnus.com>
2594 * natCollator.cc: New file.
2596 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2597 (GregorianCalendar): Use it in all constructors.
2598 * java/util/Calendar.java (Calendar): Changed argument name to
2599 `zone' to match code.
2601 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2602 * java/text/CollationKey.java: New file.
2603 * java/text/CollationElementIterator.java: New file.
2604 * java/text/Collator.java: New file.
2605 * java/text/RuleBasedCollator.java: New file.
2607 * Makefile.in: Rebuilt.
2608 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2609 (jv_convert_LDADD): Explicltly add -lm -lc.
2611 1999-04-26 Tom Tromey <tromey@cygnus.com>
2613 * configure, Makefile.in: Rebuilt.
2614 * configure.in: Added AM_PROG_LIBTOOL.
2615 (GCOBJS): Use `.lo' form of files.
2616 (THREADOBJS): Likewise.
2617 (GCDEPS): Use `.la' form of library.
2618 (GCLIBS): Set to be the same as GCDEPS.
2619 (THREADDEPS): Use `.la' form of library.
2620 (THREADLIBS): Set to be the same as THREADDEPS.
2621 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2622 toolexeclib_LIBRARIES.
2623 (libgcj_la_SOURCES): Renamed for libtoolization.
2624 (EXTRA_libgcj_la_SOURCES): Likewise.
2625 (libgcj_la_DEPENDENCIES): Likewise.
2626 (libgcj_la_LIBADD): Likewise.
2627 ($(nat_files)): Use LTCXXCOMPILE.
2628 ($(c_files)): Use LTCOMPILE.
2629 (GCJCOMPILE): New macro.
2631 (.java.o): Likewise.
2632 ($(javao_files)): Likewise.
2633 (jv_convert_LINK): Use LIBTOOL.
2634 (nat_files): Use `.lo' files.
2635 (c_files): Likewise.
2636 (javao_files): Likewise.
2637 (.class.lo): Renamed.
2638 (.java.lo): Likewise.
2639 ($(nat_files)): Depend on %.lo.
2640 ($(c_files)): Likewise.
2641 ($(javao_files)): Likewise.
2642 (jv_convert_LDADD): Link against .lo files.
2643 (jv_convert_DEPENDENCIES): Depend on .lo files.
2644 (maintainer-check): Depend on libgcj.la, but examine .a file.
2645 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2646 (libgcj_la_LDFLAGS): New macro.
2648 1999-04-23 Warren Levy <warrenl@cygnus.com>
2650 * Makefile.am: Added URLDecoder and URLEncoder.
2651 * Makefile.in: Rebuilt.
2653 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2654 setSocketImplFactory to match spec.
2655 * java/net/Socket.java (getSoLinger): Changed return type to
2658 * java/net/URLDecoder.java: New file.
2659 * java/net/URLEncoder.java: New file.
2661 1999-04-21 Tom Tromey <tromey@cygnus.com>
2663 * java/lang/natString.cc (getBytes): Reverted earlier change and
2664 applied correct fix from Per Bothner.
2666 * java/lang/String.java: Don't throw
2667 UnsupportedEncodingException.
2669 * java/lang/natString.cc (getBytes): Correctly size result
2670 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2672 1999-04-20 Andrew Haley <aph@cygnus.com>
2674 * include/sparc-signal.h: new file.
2675 * configure.in: include/sparc-signal.h added.
2676 * configure: regenerated.
2677 * prims.cc (JvRunMain): signal handling code rewritten to be more
2679 (catch_segv): ditto.
2681 * include/i386-signal.h: reorganized.
2682 * include/default-signal.h: reorganized.
2684 1999-04-19 Tom Tromey <tromey@cygnus.com>
2686 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2687 once. From Anthony Green.
2689 1999-04-19 Andrew Haley <aph@cygnus.com>
2691 * Makefile.in: Processed with new automake.
2693 1999-04-19 Tom Tromey <tromey@cygnus.com>
2695 * include/javaprims.h: Removed security namespace.
2697 1999-04-20 Anthony Green <green@cygnus.com>
2699 * java/io/PrintStream.java (println): Remove extra println.
2701 1999-04-19 Anthony Green <green@cygnus.com>
2703 * Makefile.in: Rebuilt.
2704 * Makefile.am (ordinary_java_source_files): Add new security files.
2706 * java/security/NoSuchAlgorithmException.java,
2707 java/security/MessageDigest.java: New files.
2709 * include/javaprims.h: Add security namespace.
2711 1999-04-16 Per Bothner <bothner@cygnus.com>
2713 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2714 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2715 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2716 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2717 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2718 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2719 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2720 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2721 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2722 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2723 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2724 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2725 * Makefile.am: Various changes for new files and conversions.
2727 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2728 New overloading, allows greater efficiency.
2729 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2730 New overloading (for efficiency - avoids copying).
2732 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2733 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2735 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2736 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2737 (writeChars): Don't be quite so eager to flush.
2738 * java/io/PrintStream.java: Rewrite. Now more similar to
2739 OutputStreamWriter, using explicit UnicodeToBytes converter.
2740 Also, autoflush does not need to flush so often.
2741 * java/lang/natString.cc (getBytes): More efficient algorithm.
2742 (init(jbyteArray,jint,jint,jstring)): More efficient.
2744 1999-04-15 Warren Levy <warrenl@cygnus.com>
2746 * Makefile.am (ordinary_java_source_files): Added new Connection
2747 and Handler classes in gnu.gcj.protocol.file package.
2748 * Makefile.in: Rebuilt.
2750 * gnu/gcj/protocol/file/Connection.java: New file.
2751 * gnu/gcj/protocol/file/Handler.java: New file.
2752 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2753 if doInput allows input.
2754 (getOutputStream): Check if doOutput allows output.
2755 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2757 1999-04-14 Tom Tromey <tromey@cygnus.com>
2759 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2760 buffer larger to work around bug.
2761 From Bryce McKinlay <bryce@albatross.co.nz>.
2763 1999-04-14 Andrew Haley <aph@cygnus.com>
2765 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2766 NaNs are always converted to the same long value.
2767 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2770 1999-04-13 Tom Tromey <tromey@cygnus.com>
2772 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2773 instead switch on actual element type.
2775 * Makefile.in: Rebuilt.
2776 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2778 1999-04-13 Andrew Haley <aph@cygnus.com>
2780 * include/i386-signal.h, include/default-signal.h: New files.
2781 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2783 (catch_fpe): New function.
2784 * configure.in: Make link to appropriate include/java-signal.h.
2785 * configure: Rebuilt.
2786 * Makefile.am: include/java-signal.h added to dependency list.
2787 * Makefile.in: Rebuilt.
2789 1999-04-12 Urban Widmark <urban@svenskatest.se>
2791 * java/io/DataInputStream.java (readLine): Corrected handling of
2792 empty lines, from null to "".
2794 1999-04-12 Tom Tromey <tromey@cygnus.com>
2796 * Makefile.in: Rebuilt.
2797 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2799 * java/lang/natSystem.cc (SystemClass): New define.
2800 (init_properties): Synchronize.
2802 1999-04-08 Geoff Berry <gcb@gnu.org>
2804 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2805 * natPlainSocketImpl.cc (accept): Add missing else if check
2808 1999-04-08 Tom Tromey <tromey@cygnus.com>
2810 * java/lang/Long.java (parseLong): Corrected overflow detection
2812 * java/lang/Integer.java (parseInt): Corrected overflow detection
2815 * java/io/PrintStream.java (print): Handle null string argument.
2816 (println): Likewise.
2818 1999-04-07 Warren Levy <warrenl@cygnus.com>
2820 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2821 Set count to 0 when InputStreamReader returns -1 for EOF.
2823 1999-04-07 Tom Tromey <tromey@cygnus.com>
2825 * mauve-libgcj: Omit java.text.Collator,
2826 java.text.RuleBasedCollator.
2828 1999-04-06 Tom Tromey <tromey@cygnus.com>
2830 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2831 IOException from getHttpHeaders().
2832 (getHeaderFieldKey): Likewise.
2834 * include/javaprims.h: Regenerated declarations.
2836 * Makefile.in: Rebuilt.
2837 * Makefile.am (ordinary_java_source_files): Updated for removed
2840 1999-04-06 Per Bothner <bothner@cygnus.com>
2842 * java/util/zip/Adler32.java: New class.
2843 * java/util/zip/CRC32.java: Add working method bodies.
2844 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2845 * Makefile.in: Re-generate.
2847 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2849 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2850 from version in removed www hierarchy.
2851 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2852 version in removed www hierarchy.
2854 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2855 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2856 * gnu/gcj/www/protocol/http: Removed dir.
2857 * gnu/gcj/www/protocol: Removed dir.
2858 * gnu/gcj/www: Removed dir.
2860 * java/net/HttpURLConnection.java: Revised comments to indicate
2861 missing JDK 1.2 methods.
2863 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2864 hierarchy rather than the gnu/gcj/www/protocol one.
2865 * java/net/URLConnection.java: Updated status comments.
2866 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2867 the gnu/gcj/www/content one.
2869 1999-04-06 Per Bothner <bothner@cygnus.com>
2871 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2872 The gen-from-JIS program is in $(CONVERT_DIR).
2874 1999-04-06 Tom Tromey <tromey@cygnus.com>
2876 * mauve-libgcj: Renamed from mauve-libjava.
2878 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2880 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2881 (getResponseMessage): Implemented.
2882 (getResponseVals): New private method.
2884 * java/net/URLConnection.java (getContent): Implemented.
2885 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2887 1999-04-05 Tom Tromey <tromey@cygnus.com>
2889 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2890 (jv_convert_SOURCES): Renamed.
2891 (EXTRA_jv_convert_SOURCES): Likewise.
2892 (jv_convert_LDFLAGS): Likewise.
2893 (jv_convert_LINK): Likewise.
2894 (jv_convert_LDADD): Likewise.
2895 (jv_convert_DEPENDENCIES): Likewise.
2897 * Makefile.in: Rebuilt.
2898 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2901 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2903 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2904 method for comparison.
2906 * java/net/URLConnection.java (getContentLength): Implemented.
2907 (getContentType): Implemented.
2908 (getContentEncoding): Implemented.
2909 (getExpiration): Implemented.
2910 (getDate): Implemented.
2911 (getLastModified): Implemented.
2912 (getHeaderFieldInt): Implemented.
2913 (getHeaderFieldDate): Implemented.
2915 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2917 * java/net/URLConnection.java (toString): Implemented.
2918 (setContentHandlerFactory): Implemented.
2919 (setContentHandler): Wrote new private helper method.
2921 1999-04-01 Tom Tromey <tromey@cygnus.com>
2923 * Makefile.in: Rebuilt.
2924 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2925 of 1999-03-31; we always want to build all the .class files.
2926 Depend on java_source_files, not libgcj.zip.
2927 (nat_headers): Define in terms of ordinary_java_source_files.
2929 1999-03-31 Tom Tromey <tromey@cygnus.com>
2931 * Makefile.in: Rebuilt.
2932 * Makefile.am (special_java_source_files): New macro.
2933 (java_source_files): Use it.
2934 (ordinary_java_source_files): New macro.
2935 (java_source_files): Use it.
2936 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2937 creating headers for those files with hand-maintained headers.
2939 * include/javaprims.h: Regenerated namespace declarations.
2940 * classes.pl (scan): Include [0-9] in regexp for matching class
2941 names; for java.util.zip.CRC32.
2943 * Makefile.in: Rebuilt.
2944 * Makefile.am (nat_headers): Redefined to generate all possible
2947 * java/util/zip/ZipException.java: In package java.util.zip, not
2950 1999-03-30 Tom Tromey <tromey@cygnus.com>
2952 * configure: Rebuilt.
2953 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2954 eh-common.h when not building in tree with gcc.
2956 * Makefile.in: Rebuilt.
2957 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2958 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2960 ($(java_source_files:.java=.class)): New target.
2962 * Makefile.in: Rebuilt.
2963 * Makefile.am (java_source_files): Added
2964 java/net/HttpURLConnection.java and
2965 gnu/gcj/www/protocol/http/Connection.java.
2967 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2969 * gnu/gcj/www/protocol/http/Connection.java: New file.
2970 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2971 * java/net/HttpURLConnection.java: New file.
2972 * java/net/URLConnection.java (getHeaderField): Implemented default.
2973 (getHeaderFieldKey): Implemented default method.
2975 1999-03-30 Tom Tromey <tromey@cygnus.com>
2977 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2979 * java/util/zip/Deflater.java: Added copyright header.
2980 * java/util/zip/CRC32.java: Added copyright header.
2982 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2983 that it is automatically generated.
2984 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2986 * gnu/gcj/convert/BytesToUnicode.java,
2987 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2988 gnu/gcj/convert/Input_EUCJIS.java,
2989 gnu/gcj/convert/Input_UTF8.java,
2990 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2991 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2992 gnu/gcj/convert/Output_8859_1.java,
2993 gnu/gcj/convert/Output_JavaSrc.java,
2994 gnu/gcj/convert/Output_UTF8.java,
2995 gnu/gcj/convert/UnicodeToBytes.java,
2996 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2998 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
3000 * Makefile.in, configure: Rebuilt.
3001 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
3002 not if test subdir exists.
3003 (--enable-gcj-classes): Removed; gcj always used to generate
3005 (JAVA, JAVAC): Removed.
3006 (--enable-single-compilation, --enable-source-compilation):
3009 (NATIVE): New conditional.
3010 * Makefile.am (toolexecdir): Renamed from tooldir to allow
3011 `install-exec' to work.
3012 (toolexeclibdir): Likewise.
3013 (toollib_LIBRARIES): Likewise.
3014 (AM_MAKEFLAGS): Don't pass tooldir.
3016 (javao_files): Redefined.
3017 (java_source_files): New macro.
3018 (c_source_files): New macro.
3019 (c_files): Redefined in terms of c_source_files.
3020 (java_io_files, java_lang_files, java_net_files, java_text_files,
3021 java_util_files, gnu_files, java_files): Removed.
3022 (class_io_files, class_lang_files, class_net_files,
3023 class_text_files, class_util_files, class_gnu_files, class_files):
3025 (nat_source_files): New macro.
3026 (nat_files): Redefined in terms of nat_source_files.
3027 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
3028 java_source_files. Removed no-such-file.c.
3030 (ETAGS_ARGS): Removed.
3031 (TAGS_DEPENDENCIES): Likewise.
3032 (libgcj.zip): Depend on java_source_files. Use $(here) and not
3034 (src_io_files, src_lang_files, src_text_files, src_util_files,
3035 src_gnu_files): Removed.
3036 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
3037 (BUILT_SOURCES): Removed.
3038 (header-check): New target.
3040 (noinst_PROGRAMS): New macro.
3041 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
3043 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
3044 (gen-from-JIS): Build in top directory.
3045 (convert_source_files): New macro.
3046 (convert_SOURCES): New macro.
3047 (convert_LDFLAGS): Likewise.
3048 (convert_LINK): Likewise.
3049 (convert_LDADD): Likewise.
3050 (convert_DEPENDENCIES): Likewise.
3052 (gen-from-JIS): Removed.
3053 (gen_from_JIS_SOURCES): New macro.
3054 (gen_from_JIS_LDADD): Likewise.
3055 (gen_from_JIS_DEPENDENCIES): Likewise.
3057 * configure: Rebuilt.
3058 * configure.in (CANADIAN): Set to `yes', not `canadian'.
3059 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
3060 when defining conditional.
3062 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
3064 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
3065 The Unicode Consortium does not permit their re-distribution.
3066 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
3067 (JIS0208.h, JIS0212.h): Do not depend on removed files.
3069 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
3071 * natSystem.c (init_properties): Use malloc, realloc, free after all.
3073 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
3075 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
3076 from Unicode Consortium.
3077 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
3078 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
3079 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
3080 New tables, generated using gen-from-JIS.
3081 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
3082 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
3083 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
3084 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
3086 * gnu/gcj/convert/Convert.java: New application.
3087 * Makefile.am, Makefile.in (convert): New program, using Convert.
3088 Build the various JIS conversion tables (in maintainer mode).
3090 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
3092 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
3094 * java/net/URL.java (URL): Deal with null property value. Use "."
3095 as separator in building class name.
3096 * java/net/URLConnection.java: Implemented majority of stubbed methods.
3097 * java/net/URLStreamHandler.java (parseURL): Use "" in string
3098 manipulations instead of 'null'. Comment cleanup. Use 0 for the
3099 beginning of the substring rather than 'start'.
3101 1999-03-26 Tom Tromey <tromey@cygnus.com>
3103 * include/java-chartables.h: Rebuilt.
3104 * include/java-chardecomp.h: New file.
3105 * chartables.pl: Generate output files directly. Added support
3106 for generating decomposition header.
3107 (canonical_decomposition, full_decomposition): New globals.
3108 (DECOMPOSITION): New constant.
3109 (process_char): Call add_decomposition.
3110 (add_decomposition): New sub.
3111 (write_decompositions): New sub.
3113 1999-03-25 Tom Tromey <tromey@cygnus.com>
3115 * java/text/CollationElementIterator.java: New file.
3117 * mauve-libjava: Omit StringTest.
3119 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
3121 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
3122 without a '/' when parsing protocol. Handle ref outside of parseURL.
3123 (hashCode): Implemented.
3124 (set): Don't expand -1 to default port.
3125 (getDefaultPort): Removed.
3127 * java/net/URLStreamHandler.java (parseURL): Implemented.
3128 (toExternalForm): Implemented.
3130 1999-03-23 Tom Tromey <tromey@cygnus.com>
3132 * java/text/BreakIterator.java (getSentenceInstance):
3134 * gnu/gcj/text/SentenceBreakIterator.java: New file.
3136 * Makefile.in: Rebuilt.
3137 * Makefile.am (nat_headers): Added IllegalAccessException.
3138 * java/lang/natClass.cc (newInstance): Throw
3139 IllegalAccessException, not IllegalAccessError.
3140 Include IllegalAccessException.h.
3142 1999-03-22 Tom Tromey <tromey@cygnus.com>
3144 * gnu/gcj/text/LineBreakIterator.java: New file.
3145 * java/text/BreakIterator.java (getLineInstance): Implemented.
3147 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
3148 copy constructor private.
3149 (previous, next): Removed erroneous comment about line
3151 (previous): Correctly recognize break between non-letter on the
3152 left and letter on the right. Handle apostrophes correctly.
3154 * java/text/BreakIterator.java (getWordInstance): Implemented.
3155 * gnu/gcj/text/WordBreakIterator.java: New file.
3156 * gnu/gcj/text/CharacterBreakIterator.java: Extend
3158 * gnu/gcj/text/BaseBreakIterator.java: New file.
3160 1999-03-19 Tom Tromey <tromey@cygnus.com>
3162 * java/text/BreakIterator.java: New file (partially stubbed out).
3163 * gnu/gcj/text/CharacterBreakIterator.java: New file.
3165 * include/config.h.in: Rebuilt.
3166 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
3167 (HAVE_TIMEZONE): Likewise.
3168 * configure: Rebuilt.
3169 * configure.in: Added timezone checks.
3170 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3173 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
3175 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
3176 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
3177 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
3178 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
3179 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
3180 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
3181 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
3182 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
3184 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
3185 (BSD_COMP): Kludge needed for Solaris2.
3187 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
3189 * java/net/URL.java (URL(java.net.URL, string): Moved code to
3190 URL(java.net.URL, string, URLStreamHandler) and call it with a
3191 null handler. In latter constructor, added SecurityManager check.
3192 (set): Expect null handler on bad protocol rather than an exception.
3193 (setURLStreamHandler): Simplified exception handling; return null
3194 on invalid protocol.
3196 1999-03-18 Tom Tromey <tromey@cygnus.com>
3198 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3200 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3202 Include PrintStream.h, InputStream.h.
3203 * java/lang/System.java (ForwardingInputStream,
3204 ForwardingOutputStream): Removed.
3205 (setErr, setIn, setOut): Now native.
3207 Reverted patch from 1999-02-12 to work around problem in
3209 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3210 (_Jv_eh_free): Use free.
3212 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3213 for path name. Minor formatting fixes.
3215 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3217 * prims.cc (fail_on_finalization): New function.
3218 (_Jv_GCWatch): Likewise.
3220 * prims.cc (JvRunMain): Initialize `nullp'.
3221 (nullp): New global.
3222 (catch_segv): Throw nullp.
3224 * Makefile.in: Rebuilt.
3225 * Makefile.am (ZIP): In "null target" case, zip is found in the
3228 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3232 * java/lang/StringBuffer.java (StringBuffer): Don't use
3233 ensureCapacity to set initial capacity.
3234 (capacity): Subtract `length' from return result.
3236 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3238 * java/io/natFileDescriptorPosix.cc (open): Throw
3239 FileNotFoundException, but with filename and errno in msg.
3241 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3243 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3244 functionality folded into java/net/URL.java per spec.
3246 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3247 than EEXIST for throwing FileNotFoundException.
3249 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3250 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3252 * java/net/URLStreamHandler.java (parseURL): Added stub.
3254 1999-03-15 Andrew Haley <aph@cygnus.com>
3256 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3259 1999-03-15 Andrew Haley <aph@cygnus.com>
3261 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3264 1999-03-12 Tom Tromey <tromey@cygnus.com>
3266 * prims.cc (catch_segv): New function.
3267 Include <signal.h> if HANDLE_SEGV defined. Include
3268 NullPointerException.h.
3269 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3272 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3273 a SimpleDateFormat, not just a DateFormat.
3274 (defaultCenturyStart, formatData, pattern): Now private.
3275 (append): Now `final'. Use `NumberFormat.format'.
3277 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3279 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3282 * java/text/MessageFormat.java (format): Use default MessageFormat
3284 (parse, parseObject): Wrote.
3286 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3289 1999-03-12 Andrew Haley <aph@cygnus.com>
3291 * java/lang/String.java (indexOf): Replace with native method for
3293 * java/lang/natString.cc (IndexOf): As above.
3295 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3296 Argument check corrected.
3297 (init(jbyteArray,jint,jint,jstring)): Likewise.
3299 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3300 1.2 compliant method.
3302 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3304 * java/lang/Float.java (byteValue, shortValue): Likewise.
3306 1999-03-11 Tom Tromey <tromey@cygnus.com>
3308 * java/text/DecimalFormat.java (parse): Wrote.
3310 * java/text/ChoiceFormat.java (parse): Set error index on
3311 ParsePosition object.
3313 * java/lang/Integer.java (parseInt): Throw exception on overflow
3314 when intermediate result is most negative number. Changed
3315 overflow detection as well.
3316 * java/lang/Long.java (parseLong): Likewise.
3318 * configure, Makefile.in: Rebuilt.
3319 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3320 CANADIAN when building in source tree that doesn't include gcc.
3321 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3324 * java/text/ChoiceFormat.java (nextDouble): Correct some
3325 off-by-one errors when masking or adding.
3327 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3328 parameter, if given. Use `%', not IEEEremainder.
3329 (scanFix): Throw error if multiplier already set.
3330 (computePattern): Wrote.
3332 1999-03-11 Andrew Haley <aph@cygnus.com>
3334 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3336 (nextDouble): Corrected masking logic. Handle interaction between
3337 `next' and negative numbers.
3339 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3341 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3342 * java/net/URL.java: Added general comments.
3344 1999-03-10 Tom Tromey <tromey@cygnus.com>
3346 * java/text/ChoiceFormat.java (parse): Wrote.
3348 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3350 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3351 Create ChoiceFormat objects.
3352 (format): Special-case ChoiceFormat.
3353 (scanFormatElement): Include { and } in generated style string.
3355 1999-03-09 Tom Tromey <tromey@cygnus.com>
3357 * java/text/ChoiceFormat.java: New file.
3359 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3361 * java/net/BindException.java: Created.
3362 * java/net/ConnectException.java: Created.
3363 * java/net/ContentHandler.java: Created.
3364 * java/net/ContentHandlerFactory.java: Created.
3365 * java/net/FileNameMap.java: Created.
3366 * java/net/MalformedURLException.java: Created.
3367 * java/net/NoRouteToHostException.java: Created.
3368 * java/net/ProtocolException.java: Created.
3369 * java/net/ServerSocket.java (@author): Fixed typo.
3370 * java/net/Socket.java (@author): Fixed typo.
3371 * java/net/SocketImpl.java (@author): Fixed typo.
3372 * java/net/SocketImplFactory.java (@author): Fixed typo.
3373 * java/net/URL.java: Created - nearly complete.
3374 * java/net/URLConnection.java: Created - near-empty stub.
3375 * java/net/URLStreamHandler.java: Created - incomplete stub.
3376 * java/net/URLStreamHandlerFactory.java: Created.
3377 * java/net/UnknownServiceException.java: Created.
3379 1999-03-09 Tom Tromey <tromey@cygnus.com>
3381 * java/lang/System.java (ForwardingInputStream): New class.
3382 (ForwardingOutputStream): Likewise.
3383 (in, out, err): Now `final' forwarding streams.
3384 (setIn, setOut, setErr): Use appropriate method on forwarding
3387 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3390 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3392 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3393 * java/util/zip/Checksum.java: New interface (complete).
3394 * java/util/zip/Deflater.java: New class (near-empty stub).
3395 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3396 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3397 * java/util/zip/ZipEntry.java: New class (complete).
3398 * java/util/zip/ZipException.java: New class (complete).
3399 * java/util/zip/ZipFile.java: New class (incomplete stub).
3400 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3402 1999-03-09 Tom Tromey <tromey@cygnus.com>
3404 * java/text/MessageFormat.java (MessageFormatElement): Removed
3405 `public' specifiers.
3407 * java/text/DecimalFormat.java (scanFormat): Increment index
3408 before processing exponential format. Fixed a couple typos in
3410 (format): Correct normalization of exponent.
3412 1999-03-08 Tom Tromey <tromey@cygnus.com>
3414 * java/text/SimpleDateFormat.java (parse): Throw
3415 IllegalArgumentException, not ParseException.
3417 1999-03-05 Tom Tromey <tromey@cygnus.com>
3419 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3420 when constructing DateFormatSymbols. Initialize numberFormat
3421 field of superclass.
3423 * java/text/DateFormat.java (equals): Rewrote.
3424 (getAvailableLocales): New method.
3425 (getDateInstance): New methods.
3426 (getDateTimeInstance): Likewise.
3427 (getTimeInstance): Likewise.
3428 (getInstance): New method.
3429 (computeInstance): New method.
3431 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3433 (safeGetResource): New method.
3434 (DateFormatSymbols): Use Locale paramater.
3435 (equals): Now protected.
3436 Made instance variables private.
3438 1999-03-04 Tom Tromey <tromey@cygnus.com>
3440 * java/text/DecimalFormat.java: New file.
3442 * java/text/NumberFormat.java (groupingUsed,
3443 maximumFractionDigits, maximumIntegerDigits,
3444 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3446 (setDecimalSeparatorAlwaysShown, setMultiplier,
3447 setPositivePrefix): Removed.
3448 (setMinimumFractionDigits, setMaximumFractionDigits):
3450 (format): Now final.
3451 Added many new methods.
3453 * Makefile.in: Rebuilt.
3454 * Makefile.am (gnu_files): New macro.
3455 (java_files): Added gnu_files.
3456 (class_gnu_files): New macro.
3457 (class_files): Use it.
3458 (src_gnu_files): New macro.
3459 (gnu.o): New target.
3460 (javao_files): Added gnu.o.
3462 * gnu/gcj/text/LocaleData_en_US.java: New file.
3463 * gnu/gcj/text/LocaleData_en.java: New file.
3464 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3465 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3466 (safeGetString): New method.
3467 (safeGetChar): Likewise.
3469 1999-03-03 Tom Tromey <tromey@cygnus.com>
3471 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3474 * java/text/FieldPosition.java (equals): Don't check for null
3475 object; instanceof does this.
3477 * java/util/Locale.java (clone): New method.
3480 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3482 * doc/cni.sgml: New file.
3484 1999-03-03 Tom Tromey <tromey@cygnus.com>
3486 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3488 * java/text/DecimalFormatSymbols.java: New file.
3490 1999-03-02 Tom Tromey <tromey@cygnus.com>
3492 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3494 * configure: Rebuilt.
3495 * configure.in: Check for sys/filio.h.
3497 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3499 (load): Always throw UnsatisfiedLinkError.
3500 (loadLibrary): Likewise.
3502 1999-03-02 Anthony Green <green@cygnus.com>
3504 * LIBGCJ_LICENSE: New file.
3505 * LIBJAVA_LICENSE: Removed.
3506 * Many files: libjava now libgcj.
3508 1999-03-02 Tom Tromey <tromey@cygnus.com>
3510 * include/java-chartables.h: Rebuilt.
3511 * chartables.pl (print_block): Make table `const'.
3512 (print_numerics): Likewise.
3513 (print_single_map): Likewise.
3514 (print_all_block): Likewise.
3515 (print_case_table): Likewise.
3516 (print_fast_tables): Likewise.
3517 * java/lang/natCharacter.cc (table_search): `table' argument now
3520 1999-03-01 Tom Tromey <tromey@cygnus.com>
3522 * java/util/Date.java (before, after): Inverted logic.
3524 * java/util/Date.java (parse): Handle case where first character
3525 in string is open parenthesis.
3526 (skipParens): Rewrote.
3528 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3529 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3531 * java/util/Date.java (parse): Correctly compute beginning of
3534 * java/util/Hashtable.java (get): Throw NullPointerException if
3536 (containsKey): Likewise.
3538 * java/util/Properties.java (list): Truncate value to 37
3539 characters and add `...'.
3541 * java/lang/Byte.java (parseByte): Pass `radix' to
3544 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3546 Include System.h, PrintStream.h.
3548 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3551 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3553 * configure: Rebuilt.
3554 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3557 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3559 * java/lang/SecurityManager.java: Import java.net.*.
3560 (checkMulticast): New methods.
3562 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3564 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3565 (nat_files): Add java/lang/reflect/natArray.o.
3566 (nat_headers): Add Field.h and NoSuchFieldException.h.
3568 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3569 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3570 (_Jv_FromReflectedField): Fix buglet.
3571 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3572 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3573 * prims.cc (_Jv_Abort): Include message in print-out.
3575 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3576 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3577 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3579 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3580 * include/config.h.in (HAVE_PWD_H): New feature macro.
3581 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3582 user.name, user.home, user.dir.
3584 * java/lang/reflect/Array.java: New class.
3585 * java/lang/reflect/natArray.cc: New native methods.
3586 * include/javaprims.h: Declare java::lang::reflect::Array.
3588 * java/lang/Class.h (getField): New private method. Add friends.
3589 * java/lang/Class.java (getField): Add private overload.
3590 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3591 getDeclaredMethods): Add working implementations.
3592 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3593 Finish implementation, except for access control.
3595 * java/lang/reflect/Modifier.java (toString): New overload.
3596 * include/java-method.h: New file.
3597 * java/lang/reflect/Method.java (index): Replaced by offset field.
3598 Remove various private fields - get them from _Jv_Field instead.
3599 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3600 New method implementations.
3602 * java/text/NumberFormat.java: Add a bunch of methods.
3604 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3606 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3608 1999-02-26 Tom Tromey <tromey@cygnus.com>
3610 * include/config.h.in: Rebuilt.
3611 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3612 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3613 HAVE_GETHOSTBYADDR_R): New defines.
3614 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3615 gethostbyaddr_r if available.
3617 * configure: Rebuilt.
3618 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3620 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3624 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3625 * prims.cc (_Jv_AllocBytesChecked): New function.
3627 * Makefile.in: Rebuilt.
3628 * Makefile.am (SUBDIRS): Removed `test'.
3629 * configure: Rebuilt.
3630 * configure.in: Don't build test/Makefile.
3631 * test/*: Removed all files.
3633 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3635 * java/lang/reflect/Constructor.java: Make class final to match spec.
3636 * java/lang/reflect/Method.java: Ditto.
3638 1999-02-25 Tom Tromey <tromey@cygnus.com>
3640 * java/net/natInetAddress.cc: Include <sys/types.h> before
3642 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3645 * java/net/natInetAddress.cc: Declare gethostname if required.
3646 * include/config.h.in: Rebuilt.
3647 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3648 * configure: Rebuilt.
3649 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3650 declared in unistd.h.
3652 1999-02-24 Tom Tromey <tromey@cygnus.com>
3654 * Makefile.in: Rebuilt.
3655 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3656 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3657 from private to "none".
3659 * include/javaprims.h: Regenerated class declarations with new
3661 * classes.pl (scan): Only generate decls for java.lang, java.io,
3664 1999-02-24 Tom Tromey <tromey@cygnus.com>
3666 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3667 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3669 1999-02-23 Tom Tromey <tromey@cygnus.com>
3671 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3672 not already defined.
3673 * java/io/natFile.cc (_REENTRANT): Only define if not already
3675 * include/config.h.in: Rebuilt.
3676 * acconfig.h (HAVE_BOEHM_GC): New define.
3677 * configure: Rebuilt.
3678 * configure.in: Define HAVE_BOEHM_GC if using it.
3679 * posix-threads.cc: Include boehm-config.h and gc.h if
3681 * include/posix-threads.h: Added explanatory note about Boehm GC.
3683 * java/io/BufferedReader.java (readLine): Only return null when
3684 EOF seen before any characters read. (In particular, an empty
3685 line should not return null.)
3687 * java/io/BufferedInputStream.java (read): Only refill once per
3690 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3691 java.lang.Character.classify12, java.lang.String.hash,
3692 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3693 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3695 * java/text/StringCharacterIterator.java (setIndex): No error if
3697 (next): Check for `pos == end', not `end - 1'.
3698 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3699 for null text in each constructor.
3700 (clone): Fixed order of arguments to constructor.
3702 1999-02-22 Tom Tromey <tromey@cygnus.com>
3704 * include/config.h.in: Rebuilt.
3705 * acconfig.h (HAVE_INET6): New define.
3706 (HAVE_SOCKLEN_T): Likewise.
3707 * java/net/PlainSocketImpl.java: Added copyright header.
3708 * java/net/natPlainSocketImpl.cc: Added copyright header.
3709 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3711 (connect): Likewise.
3713 (socklen_t): New typedef.
3714 (accept): Use socklen_t.
3715 * java/net/natInetAddress.cc: Added copyright header.
3716 (HAVE_GETHOSTNAME): Don't define.
3717 (HAVE_INET_ADDR): Likewise.
3718 (lookup): Fixed typo.
3719 (aton): Don't use `address' as name of local variable.
3720 (lookup): Use HAVE_INET6, not AF_INET6.
3722 * configure: Rebuilt.
3723 * configure.in: Look for functions inet_aton, inet_addr,
3724 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3725 Check for socklen_t typedef.
3727 * exception.cc (__throw): Declare as __noreturn__.
3729 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3731 * Makefile.am, Makefile.in: Also build java/net.
3732 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3734 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3735 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3737 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3738 * include/cni.h (JvMalloc, JvFree): New inline functions.
3739 (JvThrow): Add __noreturn__ attribute.
3740 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3741 (_Jv_Throw): Add __noreturn__ attribute.
3743 * java/net/PlainSocketImpl.java: Init fnum to -1.
3744 * java/net/ServerSocket.java: Add missing throws clauses.
3745 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3746 don't call create on the latter. Instead, other constructors
3747 have to explicitly call SocketImpl.create.
3748 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3749 from size_t to int, to match ::accept prototype.
3750 * java/net/natInetAddress.cc: Use JvFree rather than free.
3753 1999-02-22 Tom Tromey <tromey@cygnus.com>
3755 * include/javaprims.h: Added new classes.
3756 * java/text/StringCharacterIterator.java: New file.
3757 * java/text/CharacterIterator.java: New file.
3759 * java/text/ParseException.java (errorOffset): Now private.
3761 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3763 * java/net: New package.
3764 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3765 Socket.java,SocketException.java,SocketImpl.java,
3766 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3767 natPlainSocketImpl.cc}: New classes.
3769 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3770 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3771 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3772 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3774 * classes.pl: Translate package into "namespace", not "class".
3775 * include/javaprims.h: Update class list, using "namespace".
3777 1999-02-21 Tom Tromey <tromey@cygnus.com>
3779 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3780 Define when appropriate.
3782 1999-02-20 Tom Tromey <tromey@cygnus.com>
3784 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3785 as a single byte and \u07ff as two bytes.
3786 (_Jv_GetStringUTFLength): Likewise.
3787 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3788 with 0x0f, not 0x1f.
3790 1999-02-19 Tom Tromey <tromey@cygnus.com>
3792 * java/io/DataOutputStream.java (writeUTF): When encoding
3793 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3794 * java/io/DataInputStream.java (readUTF): Mask second byte of
3795 3-byte character with 0x3f, not 0x1f.
3797 * java/io/DataInputStream.java (readLong): Cast result of
3798 readUnsignedByte to long before using.
3800 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3803 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3804 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3805 argument to avoid warning.
3806 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3807 argument to avoid warning.
3809 1999-02-18 Tom Tromey <tromey@cygnus.com>
3811 * mauve-libjava: Omit java.io.DataInputOutput and
3812 java.io.Utf8Encoding.
3814 1999-02-17 Tom Tromey <tromey@cygnus.com>
3816 * Makefile.in: Rebuilt.
3817 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3818 * java/io/natFileDescriptorPosix.cc: Include
3819 InterruptedIOException.h, Thread.h.
3820 (write): Throw InterruptedIOException when required.
3822 * posix-threads.cc: Include <signal.h>.
3823 (_Jv_ThreadInterrupt): New function.
3825 (handle_intr): New function.
3826 (_Jv_InitThreads): Register handle_intr via sigaction.
3827 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3828 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3829 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3830 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3832 1999-02-19 Andrew Haley <aph@cygnus.com>
3834 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3836 (ThreadGroup (int)): Set the maximum priority of the initial
3839 1999-02-18 Andrew Haley <aph@cygnus.com>
3841 * java/lang/natClass.cc (forName): Check for the case where a
3842 classname is the name of an array and call FindClassFromSignature
3845 1999-02-18 Andrew Haley <aph@cygnus.com>
3847 * java/lang/StringBuffer (insert (int, String)): Move up any
3848 characters above the insert position and increase the length of
3849 the string buffer by the length of the argument.
3850 (insert (int, char[])): Likewise.
3851 (insert (int, char)): Likewise.
3852 (StringBuffer (String)): The initial capacity of the string buffer
3853 is 16 plus the length of the argument.
3854 (getChars): Add a JDK 1.2 FIXME.
3856 1999-02-18 Andrew Haley <aph@cygnus.com>
3858 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3861 1999-02-18 Andrew Haley <aph@cygnus.com>
3863 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3864 instead of floating-point equality. This is necessary for
3865 correct floating-point Hashtables.
3866 * java/lang/Float.java (equals): Ditto.
3868 1999-02-16 Tom Tromey <tromey@cygnus.com>
3870 * java/util/Properties.java (list): Truncate value to 37
3871 characters and add "...".
3873 1999-02-16 Tom Tromey <tromey@cygnus.com>
3875 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3876 if initCap is negative.
3877 (contains): Implement JDK1.2-style handling of null argument.
3878 (removeElement): Likewise.
3879 (indexOf): Likewise. Also, correctly handle case where idx is
3881 (lastIndexOf): Likewise.
3883 1999-02-16 Tom Tromey <tromey@cygnus.com>
3885 * java/lang/natString.cc (init): Increment source pointer in
3888 1999-02-16 Tom Tromey <tromey@cygnus.com>
3890 * exception.cc: Include NullPointerException.h.
3891 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3893 1999-02-16 Tom Tromey <tromey@cygnus.com>
3895 * Makefile.in: Rebuilt.
3896 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3898 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3900 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3901 we're compiling canadian.
3902 * configure: Regenerated.
3904 1999-02-12 Andrew Haley <aph@cygnus.com>
3906 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3907 deleted from libgcj.
3909 1999-02-12 Tom Tromey <tromey@cygnus.com>
3911 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3912 (_Jv_eh_free): Don't call free.
3913 Don't declare malloc or free.
3915 1999-02-11 Tom Tromey <tromey@cygnus.com>
3917 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3919 1999-02-11 Andrew Haley <aph@cygnus.com>
3921 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3922 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3923 needed by java.lang.*.
3924 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3925 wf_fmod.o: Removed from libjava.a.
3927 1999-02-11 Tom Tromey <tromey@cygnus.com>
3929 * include/javaprims.h: Reverted previous change; with it
3930 exception.cc can't compile.
3932 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3934 * include/config.h.in: Rebuilt.
3935 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3937 * configure: Rebuilt.
3938 * configure.in: Check for sched_yield. Look in thread library for
3939 all thread functions.
3941 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3942 no recursive mutexes.
3943 (_Jv_MutexDestroy): Define when required.
3944 (_Jv_MutexLock): Likewise.
3945 (_Jv_MutexUnlock): Likewise.
3946 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3947 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3948 (_Jv_Mutex_t): New structure.
3949 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3950 (_Jv_MutexLock): Likewise.
3951 (_Jv_MutexUnlock): Likewise.
3953 1999-02-10 Tom Tromey <tromey@cygnus.com>
3955 * aclocal.m4, configure, Makefile.in: Rebuilt.
3956 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3958 * configure.in: Changed to track library changes.
3959 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3960 (AM_CXXFLAGS): Likewise.
3961 (data_DATA): Likewise.
3962 (AM_CFLAGS): Likewise.
3963 (JC1FLAGS): Likewise.
3964 (libgcj_a_SOURCES): Likewise.
3965 (EXTRA_libgcj_a_SOURCES): Likewise.
3966 (libgcj_a_DEPENDENCIES): Likewise.
3967 (libgcj_a_LIBADD): Likewise.
3968 (libgcj.zip): Likewise.
3969 (CLEANFILES): Likewise.
3970 ($(nat_headers)): Likewise.
3971 (java/lang/FirstThread.h): Likewise.
3972 (java/lang/ThreadGroup.h): Likewise.
3973 (java/lang/String.h): Likewise.
3974 (java/lang/reflect/Field.h): Likewise.
3975 (BUILT_SOURCES): Likewise.
3976 (maintainer-check): Likewise.
3977 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3978 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3980 * java/util/natGregorianCalendar.cc (computeFields): Only use
3981 gmtime_r and localtime_r when configured for posix threads.
3983 * java/io/natFile.cc (get_entry): Only use readdir_r when
3984 configured for posix threads.
3986 * java/util/natGregorianCalendar.cc: Update copyright notice.
3987 * java/util/TimeZone.java: Ditto.
3988 * java/util/SimpleTimeZone.java: Ditto.
3990 1999-02-08 Tom Tromey <tromey@cygnus.com>
3992 * java/io/PrintStream.java (line_separator): New constant.
3993 (print): Use line_separator, not `file.separator' property.
3994 (println): Use line_separator.
3996 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3997 when trying to instantiate Class.
3999 * java/lang/ThreadGroup.java (ThreadGroup): Throw
4000 NullPointerException if argument is null.
4002 * java/lang/Thread.java (setName): Throw NullPointerException, not
4003 IllegalArgumentException.
4006 1999-02-08 Andrew Haley <aph@cygnus.com>
4008 * java/lang/natClass.cc (newInstance): Don't allow anyone to
4009 create new Classes with Class.newInstance().
4011 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
4012 semiciolon to end of an array Class's signature if the elements of
4013 the array aren't themselves arrays.
4015 * java/lang/natSystem.cc (arraycopy): The size of an element of an
4016 array of objects is always sizeof(jobject), not the size of the
4017 object to which the reference points.
4019 1999-02-08 Tom Tromey <tromey@cygnus.com>
4021 * java/util/BitSet.java (and): Throw NullPointerException when
4026 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
4027 if argument is negative.
4028 (clear): Correctly compute `offset'. Throw
4029 IndexOutOfBoundsException when required.
4031 (get): Likewise. Also, return correct value.
4032 (ensure): Changed meaning of argument.
4033 (toString): Wrap contents in `{}'; put spaces after commas.
4034 (hashCode): Don't try to examine elements off the end of array.
4035 (or): Correctly include bits past the end of this bit set.
4038 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
4040 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
4041 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
4043 1999-02-04 Andrew Haley <aph@cygnus.com>
4045 * java/lang/natClass.cc (Class::forName): Remove code which mapped
4046 '/' in signatures to '.'
4047 (Class::getName): Likewise,
4048 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
4050 * java/lang/natFirstThread.cc (run): Change '/' in main's
4053 1999-02-03 Andrew Haley <aph@cygnus.com>
4055 * configure.host: -ffloat-store added when compiling libjava on
4056 x86. fdlibm apparently relies on this.
4058 * java/lang/ThreadGroup.java (add): throw an exception if the
4059 ThreadGroup has been destroyed.
4061 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
4064 1999-01-27 Tom Tromey <tromey@cygnus.com>
4066 * java/lang/StringBuffer.java (StringBuffer): Handle null
4069 1999-01-21 Tom Tromey <tromey@cygnus.com>
4071 * java/lang/natFirstThread.cc (run): Don't require main to be
4074 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
4076 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
4078 1999-01-20 Tom Tromey <tromey@cygnus.com>
4080 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
4084 (unintern): Likewise.
4085 (_Jv_NewStringUtf8Const): Likewise.
4087 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
4088 Character.isLetter, to see if character is self-quoting. Also,
4089 correctly handle quoted characters.
4090 (parse): Fixed typo. Also now throws ParseException.
4092 1999-01-15 Tom Tromey <tromey@cygnus.com>
4094 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
4096 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
4097 _Jv_SyncInfo has `init' member.
4099 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
4102 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
4103 IllegalMonitorStateException if unlock fails.
4105 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
4107 (_Jv_NewObjectArray): Likewise.
4109 1999-01-14 Tom Tromey <tromey@cygnus.com>
4111 * java/lang/Character.java (isJavaIdentifierPart): Allow
4112 LETTER_NUMBER characters.
4114 * chartables.pl (process_char): Fixed error messages.
4116 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
4117 * chartables.pl: Updated comments. Changed detection of non-digit
4118 numeric values (no longer miss \u00b2 and friends).
4120 * java/lang/Character.java (isJavaIdentifierPart): Recognize
4121 currency symbols and connector punctuation.
4122 (isIdentifierIgnorable): Make 7f-9f ignorable.
4124 * prims.cc (_Jv_NewObjectArray): Check for overflow.
4125 (_Jv_NewPrimArray): Likewise.
4126 (SIZE_T_MAX): New define.
4128 * java/lang/ClassLoader.java (system): Now private and final.
4130 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
4133 * configure: Rebuilt.
4134 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
4136 * exception.cc: Include gansidecl.h.
4138 1999-01-14 Andrew Haley <aph@cygnus.com>
4140 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
4141 corrected: they didn't treat -0.0 and NaNs correctly.
4143 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
4145 * nogc.cc: Use calloc to zero out memory.
4147 1999-01-11 Tom Tromey <tromey@cygnus.com>
4149 * java/lang/natClass.cc (isInstance): Return false if this class
4150 is primitive, not if class of `obj' is primitive.
4151 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
4153 * java/io/SequenceInputStream.java (close): Handle case where `in'
4156 * java/text/DateFormat.java (format): New method.
4158 * mauve-libjava: Omit java.text.DateFormat.
4160 1999-01-08 Tom Tromey <tromey@cygnus.com>
4162 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
4164 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
4166 (_Jv_CondNotifyAll): Likewise.
4168 * configure: Rebuilt.
4169 * configure.in: Change --enable-source-compilation logic to work
4172 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
4174 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4175 and RUNTESTFLAGS from AM_MAKEFLAGS.
4176 * configure.in: AM_RUNTESTFLAGS added.
4177 * configure.host: AM_RUNTESTFLAGS added.
4178 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4179 * configure: rebuilt.
4180 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4182 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4183 argv[] made conditional because embedded targets may not have
4185 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4186 explanatory comments added in call to super.
4188 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4189 exception thrown in the test harness itself added.
4190 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4192 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
4194 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
4196 1999-01-06 Tom Tromey <tromey@cygnus.com>
4198 * java/io/natFile.cc (get_entry): New function.
4199 (performList): Use get_entry.
4200 * include/config.h.in: Rebuilt.
4201 * acconfig.h (HAVE_READDIR_R): New define.
4202 * configure: Rebuilt.
4203 * configure.in: Look for readdir_r.
4205 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4207 * java/util/natDate.cc: Added copyright header.
4209 1999-01-05 Tom Tromey <tromey@cygnus.com>
4211 * include/config.h.in: Rebuilt.
4212 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4213 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4214 * configure: Rebuilt.
4215 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4216 unlink, and realpath.
4217 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4218 (stat): Conditionalize on HAVE_STAT.
4220 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4221 (performMkdir): Conditionalize on HAVE_MKDIR.
4222 (performRenameTo): Conditionalize on HAVE_RENAME.
4223 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4225 * include/config.h.in: Rebuilt.
4226 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4227 * configure: Rebuilt.
4228 * configure.in: Check for gmtime_r and localtime_r. For cross
4229 builds, assume they exist.
4231 * mauve-libjava: Include java.text.DateFormatSymbols again.
4232 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4233 from setAmPmStrings.
4235 * mauve-libjava: Omit java.text.DateFormatSymbols.
4237 1999-01-04 Tom Tromey <tromey@cygnus.com>
4239 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4241 * java/io/LineNumberReader.java (read): Decrement `count' in
4244 * java/io/BufferedWriter.java (write): Correctly determine when
4245 incoming data would overrun buffer. Flush buffer if write causes
4248 * java/io/BufferedOutputStream.java (write): Increment `count'
4249 after copying data into buffer.
4251 * java/io/FilterOutputStream.java (close): Call flush first.
4253 * java/io/PipedReader.java (read): If read causes `out' to catch
4254 up with `in', then set `in' to -1.
4256 * java/io/LineNumberInputStream.java (read): If no bytes read,
4257 return -1. If no bytes requested, return 0.
4259 * java/lang/StringBuffer.java (insert): If `str' is null, use
4262 1998-12-30 Anthony Green <green@cygnus.com>
4265 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4267 1998-12-23 Tom Tromey <tromey@cygnus.com>
4269 * java/io/PushbackInputStream.java (read): `off' already includes
4272 1998-12-17 Tom Tromey <tromey@cygnus.com>
4274 * Makefile.in: Rebuilt.
4275 * Makefile.am (GCJ_canadian): Include target_alias.
4277 * java/lang/natFirstThread.cc (run): Require main's class to be
4280 1998-12-16 Tom Tromey <tromey@cygnus.com>
4282 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4284 * java/util/ResourceBundle.java (getBundle): Throw
4285 NullPointerException if locale argument is null.
4287 * java/lang/natClass.cc (forName): Throw NullPointerException if
4289 Include NullPointerException.h.
4291 1998-12-14 Tom Tromey <tromey@cygnus.com>
4293 * java/lang/Character.java (Character): Implement Comparable.
4294 (compareTo): New methods.
4296 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4297 correct country and language codes.
4298 (UK, US): New constants.
4299 (setDefault): Language codes are lower-case.
4301 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4302 (getDeclaredConstructors): Likewise.
4303 (getDeclaredField): Likewise.
4304 (getDeclaredFields): Likewise.
4305 (getDeclaredMethod): Likewise.
4306 (getDeclaredMethods): Likewise.
4307 (getField): Likewise.
4308 (getFields): Likewise.
4309 (getMethod): Likewise.
4310 (getMethods): Likewise.
4311 * java/lang/Class.java: Declare new methods.
4312 * java/lang/Class.h: Declare new methods.
4314 * java/lang/natString.cc: Removed `#pragma implementation'.
4315 * include/cni.h (_Jv_GetStringChars): New function.
4316 * Makefile.in: Rebuilt.
4317 * Makefile.am (java/lang/String.h): Don't generate definition for
4320 * java/lang/natString.cc: Added `#pragma implementation'.
4322 * Makefile.in: Rebuilt.
4323 * Makefile.am (libjava.zip): Put build directory first in class
4324 path to avoid bug in compiler.
4326 1998-12-14 Anthony Green <green@cygnus.com>
4328 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4330 * include/javaprims.h: Add EventObject, ListResourceBundle and
4333 1998-12-13 Anthony Green <green@cygnus.com>
4335 * mauve-libjava: Run the ResourceBundle tests.
4337 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4340 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4342 * configure.in, configure: Make --enable-gcj-classes and
4343 --enable-source-compilation the default. (Nervously...) Yeah!
4344 Based on a patch from Tom Tromey.
4346 1998-12-13 Tom Tromey <tromey@cygnus.com>
4348 * java/util/EventObject.java: New file.
4349 * java/util/EventListener.java: New file.
4351 * include/javaprims.h: Updated class declarations.
4352 * Makefile.in: Rebuilt.
4353 * Makefile.am (nat_headers): Added Constructor.h.
4354 (java/lang/String.h): Don't inline String::length().
4355 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4356 * java/lang/Class.java (initializeClass, hackRunInitializers,
4357 hackTrampoline): No need to mark `final'.
4358 (getConstructor, getConstructors): Declare.
4359 * java/lang/reflect/Field.java (equals): New method.
4360 * java/lang/natClass.cc (getConstructor): New method.
4361 (getConstructors): Likewise.
4362 Include Method.h, Field.h, Constructor.h.
4363 * java/lang/reflect/Constructor.java: New file.
4364 * java/lang/reflect/Method.java (toString): No space before open
4366 (equals): Simplified.
4368 1998-12-13 Anthony Green <green@cygnus.com>
4370 * java/util/ResourceBundle.java: New file.
4371 * java/util/ListResourceBundle.java: New file.
4373 1998-12-12 Tom Tromey <tromey@cygnus.com>
4375 * java/lang/System.java (in, out, err): Now buffered streams by
4378 * include/javaprims.h: Updated class declarations.
4379 * Makefile.in: Rebuilt.
4380 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4381 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4383 (nat_files): Added natMethod.o.
4384 * java/lang/reflect/natMethod.cc: New file.
4385 * java/lang/reflect/Field.java (Field): Now extends
4387 * java/lang/reflect/AccessibleObject.java: New file.
4388 * java/lang/reflect/InvocationTargetException.java: New file.
4390 1998-12-11 Tom Tromey <tromey@cygnus.com>
4392 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4393 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4394 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4396 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4398 1998-12-09 Tom Tromey <tromey@cygnus.com>
4400 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4403 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4404 character is already titlecase.
4406 * java/lang/Character.java (isJavaLetter): Follow spec.
4407 (isJavaLetterOrDigit): Likewise.
4409 * java/util/GregorianCalendar.java (gregorianCutover): Append
4412 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4414 1998-12-08 Tom Tromey <tromey@cygnus.com>
4416 * java/lang/reflect/Modifier.java (toString): Replace second
4417 `static' with `synchronized'.
4419 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4420 * java/lang/Object.h (Object::hack12_6): Declare.
4421 * java/lang/Object.java (hack12_6): New function.
4423 1998-12-07 Tom Tromey <tromey@cygnus.com>
4425 * include/java-array.h (__JArray::clone): Removed decl.
4426 * prims.cc (__JArray::clone): Removed.
4427 * java/lang/natObject.cc (clone): Incorporate code to clone an
4430 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4431 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4432 Correctly use dtable_method_count.
4434 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4436 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4439 1998-12-06 Anthony Green <green@cygnus.com>
4441 * mauve-libjava: Don't test ResourceBundle.
4443 1998-12-04 Tom Tromey <tromey@cygnus.com>
4445 More JDK 1.2 spec fixes:
4446 * java/util/Date.java (millis): Now private.
4447 * java/text/DateFormat.java (DateFormat): Constructor now
4449 * java/lang/Void.java (Void): New private constructor.
4450 * java/lang/System.java (System): New private constructor.
4451 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4453 (currentClassLoader): New method.
4454 (currentLoadedClass): New method.
4455 * java/lang/Math.java (Math): New private constructor.
4456 * java/lang/Compiler.java (Compiler): New private constructor.
4457 * java/lang/Class.java (Class): New private constructor.
4458 * java/lang/Double.java (toString): Removed access specifier from
4459 two-argument `toString' method.
4461 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4463 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4464 causes it to be flushed from an fp register (where it may be
4465 longer than double precision) to a double in memory. This is
4466 essential to ensure correct rounding behaviour.
4468 1998-12-04 Tom Tromey <tromey@cygnus.com>
4470 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4473 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4474 explaining apparent divergence from JDK 1.2.
4476 1998-12-04 Per Bothner <bothner@cygnus.com>
4478 * include/no-threads.h: Remove unused parameter names.
4479 This silences a bunch of warnings.
4481 1998-12-04 Tom Tromey <tromey@cygnus.com>
4483 * include/config.h.in: Rebuilt.
4484 * acconfig.h (HAVE_CTIME_R): New symbol.
4486 1998-12-03 Tom Tromey <tromey@cygnus.com>
4488 * mauve-libjava: Added many more categories to reject.
4490 Changes to follow JDK1.2 spec:
4491 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4492 setErr, setIn, setOut): No need to be `final'.
4493 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4494 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4495 * java/lang/Object.java (wait): `nanos' argument is an int.
4496 * java/lang/VirtualMachineError.java: Class is abstract.
4497 * java/lang/ThreadDeath.java: Made constructors public.
4498 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4501 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4503 * java/text/DateFormatSymbols.java (getAmPmStrings,
4504 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4506 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4508 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4509 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4510 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4513 * java/lang/IllegalThreadStateException.java
4514 (IllegalThreadStateException): Changed extending class to match spec.
4516 * java/lang/NumberFormatException.java
4517 (java/lang/NumberFormatException): Changed extending class to match
4520 * java/util/Observer.java (Observer): Changed sig to match JCL.
4522 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4524 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4525 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4526 signature to match JDK 1.1 and 1.2.
4528 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4530 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4531 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4532 * Makefile.in, configure: Rebuilt.
4534 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4537 1998-12-02 Tom Tromey <tromey@cygnus.com>
4539 * mauve-libjava: New file.
4541 The remaining `-W -Wall' fixes:
4542 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4544 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4546 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4548 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4550 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4552 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4554 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4556 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4558 * java/lang/mprec.c (Balloc): Removed unused variable.
4559 (mult): Added parentheses per gcc suggestion.
4560 (pow5mult): Likewise.
4565 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4566 suggestion. Added cast to `int' to avoid signed/unsigned
4568 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4570 (IsAssignableFrom): Likewise.
4571 (_Jv_JNI_GetObjectField): Likewise.
4572 (_Jv_JNI_GetByteField): Likewise.
4573 (_Jv_JNI_GetShortField): Likewise.
4574 (_Jv_JNI_GetIntField): Likewise.
4575 (_Jv_JNI_GetLongField): Likewise.
4576 (_Jv_JNI_GetStringLength): Likewise.
4577 (_Jv_JNI_ToReflectedField): Likewise.
4578 (_Jv_JNI_FromReflectedField): Likewise.
4579 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4581 * Makefile.in: Rebuilt.
4582 * Makefile.am (AM_CFLAGS): Define conditionally.
4583 (WARNINGS): New macro.
4584 (AM_CXXFLAGS): Include WARNINGS.
4585 * configure: Rebuilt.
4586 * configure.in (USING_GCC): New conditional.
4588 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4590 * java/lang/Character.java: Changed classification constants to
4591 type `byte' to match JDK 1.2 docs.
4593 1998-12-01 Tom Tromey <tromey@cygnus.com>
4595 Some fixes to be `-W -Wall' clean:
4596 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4597 (_Jv_MarkArray): Likewise.
4598 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4599 (to_upper_title): Likewise.
4600 (isTitleCase): Likewise.
4601 (toTitleCase): Likewise.
4602 (getNumericValue): Likewise.
4603 (isLowerCase): Likewise.
4604 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4605 (avoids compiler warning).
4606 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4608 (getDeclaringClass): Likewise.
4609 (_Jv_LookupInterfaceMethod): Likewise.
4610 (_Jv_NewClass): Removed name of unused parameter.
4611 * exception.cc (_Jv_type_matcher): Removed unused variable.
4612 (_Jv_setup_eh_info): Removed name of unused parameter.
4613 * prims.cc (_Jv_NewArray): Always return a value.
4614 (_Jv_FindClassFromSignature): Likewise.
4615 * include/java-field.h (getNameUtf8Const): Removed name of unused
4617 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4619 (_Jv_ThreadSetPriority): Likewise.
4621 * java/lang/natString.cc (hashChars): Now static.
4623 * java/lang/FirstThread.java (FirstThread): Now final.
4625 * java/io/File.java (performMkdir, performRenameTo): Now private.
4627 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4628 if no time function defined.
4630 * configure: Rebuilt.
4631 * configure.in: Look for ctime_r, ctime.
4632 * java/util/Date.java (toString): Now native.
4633 * java/util/natDate.cc (toString): Rewrote.
4635 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4637 * Add LDFLAGS line to allow TX39 test cases to link when cross
4640 1998-11-23 Anthony Green <green@cygnus.com>
4642 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4643 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4644 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4645 include/java-array.h, include/java-assert.h, include/java-field.h,
4646 include/javaprims.h, include/jni.h, include/jvm.h,
4647 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4648 include/quick-threads.h, java/io/BufferedInputStream.java,
4649 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4650 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4651 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4652 java/io/CharArrayWriter.java,
4653 java/io/CharConversionException.java, java/io/DataInput.java,
4654 java/io/DataInputStream.java, java/io/DataOutput.java,
4655 java/io/DataOutputStream.java, java/io/EOFException.java,
4656 java/io/File.java, java/io/FileDescriptor.java,
4657 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4658 java/io/FileOutputStream.java, java/io/FileReader.java,
4659 java/io/FileWriter.java, java/io/FilenameFilter.java,
4660 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4661 java/io/FilterReader.java, java/io/FilterWriter.java,
4662 java/io/IOException.java, java/io/InputStream.java,
4663 java/io/InputStreamReader.java,
4664 java/io/InterruptedIOException.java,
4665 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4666 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4667 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4668 java/io/PipedReader.java, java/io/PipedWriter.java,
4669 java/io/PrintStream.java, java/io/PrintWriter.java,
4670 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4671 java/io/RandomAccessFile.java, java/io/Reader.java,
4672 java/io/SequenceInputStream.java, java/io/Serializable.java,
4673 java/io/StreamTokenizer.java,
4674 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4675 java/io/StringWriter.java, java/io/SyncFailedException.java,
4676 java/io/UTFDataFormatException.java,
4677 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4678 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4679 java/io/natFileDescriptorPosix.cc,
4680 java/lang/AbstractMethodError.java,
4681 java/lang/ArithmeticException.java,
4682 java/lang/ArrayIndexOutOfBoundsException.java,
4683 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4684 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4685 java/lang/Class.java, java/lang/ClassCastException.java,
4686 java/lang/ClassCircularityError.java,
4687 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4688 java/lang/ClassNotFoundException.java,
4689 java/lang/CloneNotSupportedException.java,
4690 java/lang/Cloneable.java, java/lang/Comparable.java,
4691 java/lang/Compiler.java, java/lang/Double.java,
4692 java/lang/Error.java, java/lang/Exception.java,
4693 java/lang/ExceptionInInitializerError.java,
4694 java/lang/FirstThread.java, java/lang/Float.java,
4695 java/lang/IllegalAccessError.java,
4696 java/lang/IllegalAccessException.java,
4697 java/lang/IllegalArgumentException.java,
4698 java/lang/IllegalMonitorStateException.java,
4699 java/lang/IllegalStateException.java,
4700 java/lang/IllegalThreadStateException.java,
4701 java/lang/IncompatibleClassChangeError.java,
4702 java/lang/IndexOutOfBoundsException.java,
4703 java/lang/InstantiationError.java,
4704 java/lang/InstantiationException.java, java/lang/Integer.java,
4705 java/lang/InternalError.java, java/lang/InterruptedException.java,
4706 java/lang/LinkageError.java, java/lang/Long.java,
4707 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4708 java/lang/NoClassDefFoundError.java,
4709 java/lang/NoSuchFieldError.java,
4710 java/lang/NoSuchFieldException.java,
4711 java/lang/NoSuchMethodError.java,
4712 java/lang/NoSuchMethodException.java,
4713 java/lang/NullPointerException.java, java/lang/Number.java,
4714 java/lang/NumberFormatException.java, java/lang/Object.h,
4715 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4716 java/lang/Process.java, java/lang/Runnable.java,
4717 java/lang/Runtime.java, java/lang/RuntimeException.java,
4718 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4719 java/lang/Short.java, java/lang/StackOverflowError.java,
4720 java/lang/String.java, java/lang/StringBuffer.java,
4721 java/lang/StringIndexOutOfBoundsException.java,
4722 java/lang/System.java, java/lang/Thread.java,
4723 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4724 java/lang/Throwable.java, java/lang/UnknownError.java,
4725 java/lang/UnsatisfiedLinkError.java,
4726 java/lang/UnsupportedOperationException.java,
4727 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4728 java/lang/Void.java, java/lang/natCharacter.cc,
4729 java/lang/natClass.cc, java/lang/natDouble.cc,
4730 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4731 java/lang/natMath.cc, java/lang/natObject.cc,
4732 java/lang/natRuntime.cc, java/lang/natString.cc,
4733 java/lang/natSystem.cc, java/lang/natThread.cc,
4734 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4735 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4736 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4737 java/text/FieldPosition.java, java/text/Format.java,
4738 java/text/NumberFormat.java, java/text/ParseException.java,
4739 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4740 java/util/BitSet.java, java/util/Calendar.java,
4741 java/util/ConcurrentModificationException.java,
4742 java/util/Date.java, java/util/Dictionary.java,
4743 java/util/EmptyStackException.java, java/util/Enumeration.java,
4744 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4745 java/util/Locale.java, java/util/MissingResourceException.java,
4746 java/util/NoSuchElementException.java, java/util/Observable.java,
4747 java/util/Observer.java, java/util/Properties.java,
4748 java/util/Random.java, java/util/SimpleTimeZone.java,
4749 java/util/Stack.java, java/util/StringTokenizer.java,
4750 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4751 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4754 * exception.cc: Include eh-common.h instead of duplicating
4757 1998-11-23 Tom Tromey <tromey@cygnus.com>
4759 * configure.host: Don't add `-O2' to libjava_flags. Only add
4760 `-Os' to libjava_flags once.
4762 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4764 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4765 * Makefile.in: likewise
4766 * acconfig.h: add ECOS conditional for configure.h
4767 * config.h.in: likewise
4768 * configure: add test for --with-ecos
4769 * configure.in: likewise
4770 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4771 rename call to avoid name clash.
4772 * java/lang/natSystem.cc: add eCos clock support.
4773 * java/util/natGregorianCalendar.cc: add eCos support.
4775 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4777 * Makefile.am, Makefile.in, configure.host: tx39 build option
4780 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4782 * java/io/BufferedReader.java: Added more comments for clarity.
4783 (mark): Used more mnemonic name for local var extraBuffSpace.
4785 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4786 confusion with private method of same name in superclass.
4787 (skipRedundantLF): Set fields in special case to avoid infinite
4788 recursion. Check if markPos has been invalidated in special case.
4789 (readLine): Rewritten to use readLine method of superclass.
4790 (skip): Incorporated code from lineEnd.
4792 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4794 * java/io/BufferedReader.java (readLine): New method.
4795 (lineEnd): new private method.
4796 (mark): Track special case for readLine of getting '\r' at the
4803 * java/io/InputStreamReader.java (read): Return number chars skipped
4804 rather than requested.
4806 * java/lang/StringBuffer.java (append): Update count and differentiate
4807 between field and local variable.
4809 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4810 seconds. Deal with military style time.
4811 (parse): Consistently treat all timezones in minutes until final
4812 calculation. Flag as non-local timezone. Return value in milliseconds.
4813 (setTime): Adjust for year offset from 1900.
4814 (UTC): Adjust for year offset from 1900.
4816 1998-11-17 Tom Tromey <tromey@cygnus.com>
4818 * configure: Rebuilt.
4819 * configure.in: Switch on host, not target.
4821 * Makefile.in: Rebuilt.
4822 * Makefile.am (GCJ_no): New macro.
4823 (GCJ): Use @CANADIAN@.
4824 (GCJH_no): New macro
4825 (GCJH_canadian): New macro.
4826 (GCJH): Use @CANADIAN@.
4827 (ZIP_no): New macro.
4828 (ZIP_canadian): New macro.
4829 (ZIP): Use @CANADIAN@.
4830 * aclocal.m4, configure: Rebuilt.
4831 * configure.in (CANADIAN): Compute and subst.
4833 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4835 * java/io/FileDescriptor.java (finalize): Only close file
4836 descriptor if valid.
4838 1998-11-17 Tom Tromey <tromey@cygnus.com>
4840 * prims.cc (_Jv_InitRuntime): Removed.
4842 1998-11-16 Tom Tromey <tromey@cygnus.com>
4844 * java/io/FileOutputStream.java (close): Only close file
4845 descriptor if valid.
4846 (finalize): New method.
4848 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4849 (_Jv_NewPrimArray): Likewise.
4850 * boehm.cc (_Jv_RegisterFinalizer): Use
4851 GC_REGISTER_FINALIZER_NO_ORDER.
4852 (GC_GENERIC_MALLOC): New define.
4853 (_Jv_AllocObj): Use it.
4854 (_Jv_AllocArray): Likewise.
4855 (_Jv_AllocBytes): Likewise.
4856 (_Jv_MarkObj): Just return if vtbl not set.
4857 (_Jv_MarkArray): Likewise.
4858 (MAYBE_MARK): New macro; use everywhere.
4859 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4861 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4863 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4864 to a jlong before calculation to prevent overflow.
4866 1998-11-16 Tom Tromey <tromey@cygnus.com>
4868 * Makefile.in: Rebuilt.
4869 * Makefile.am (nat_headers): Fixed typo.
4871 1998-11-15 Tom Tromey <tromey@cygnus.com>
4873 * java/lang/Class.h (Class::getName): Removed definition.
4874 * Makefile.in: Rebuilt.
4875 * Makefile.am (nat_headers): Added InstantiationException.h,
4876 NoSuchMethodException.h.
4877 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4878 (init_name): New global.
4879 (hackRunInitializers): Use clinit_name.
4880 Include InstantiationException.h, NoSuchMethodException.h.
4881 (newInstance): Do some error checking (but not all). Call
4883 (forName): Throw exception if class not found.
4884 (getName): New method.
4885 (forName): Transform class name from external format to internal
4886 format before lookup.
4888 1998-11-15 Anthony Green <green@cygnus.com>
4890 * java/lang/Class.h (Class::forName): Method is static.
4892 * java/lang/natClass.cc (newInstance): Add simple implementation.
4895 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4897 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4898 int), for compatibility with jc1.
4900 1998-11-14 Tom Tromey <tromey@cygnus.com>
4902 * include/config.h.in: Rebuilt.
4903 * acconfig.h (LINUX_THREADS): New define.
4904 * configure: Rebuilt.
4905 * configure.in: Define LINUX_THREADS if using POSIX threads on
4906 Linux. Look for pthread_mutexattr_setkind_np function.
4907 * posix-threads.cc (throw_cleanup): New function.
4908 (really_start): Push cleanup function.
4909 (_Jv_ThreadCancel): New function.
4910 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4911 (_Jv_ThreadInitData): Set `exception' field in new structure.
4912 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4914 (_Jv_ThreadWait): New function.
4915 (_Jv_InitThreads): Initialize daemon globals.
4916 (FLAG_DAEMON): New macro.
4917 (really_start): Notify daemon_cond when non-daemon thread exits.
4918 Include <java/lang/System.h>.
4919 (struct starter): `object' field now a thread.
4920 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4921 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4922 (_Jv_ThreadWait): Removed definition.
4923 (_Jv_Thread_t): Added `exception' field.
4924 (_Jv_ThreadCancel): Removed definition.
4926 1998-11-13 Tom Tromey <tromey@cygnus.com>
4928 * Makefile.in: Rebuilt.
4929 * Makefile.am (libjava.zip): Compute javac before changing
4932 * Makefile.in: Rebuilt.
4933 * Makefile.am (libjava.zip): Include directory entries.
4935 * Makefile.in: Rebuilt.
4936 * Makefile.am (expanded): New macro.
4939 1998-11-12 Tom Tromey <tromey@cygnus.com>
4941 * prims.cc (clone): New function.
4942 * include/java-array.h (__JArray::clone): Removed definition.
4944 * java/lang/natObject.cc (clone): Don't assert that class is not
4945 an array; array's `clone' method just calls this one.
4947 * Makefile.in: Rebuilt.
4948 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4949 Now creates zip file. Changed all users.
4951 (data_DATA): New macro.
4953 1998-11-11 Tom Tromey <tromey@cygnus.com>
4955 * configure: Rebuilt.
4956 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4958 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4960 * java/io/InputStream.java (reset): Add msg to thrown exception.
4962 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4964 * java/io/LineNumberInputStream.java: Rewritten.
4966 * java/io/StringBufferInputStream.java: Removed extraneous import.
4968 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4970 * java/io/StringBufferInputStream.java: Rewritten.
4972 * java/util/Date.java (parseMonth): Optimize.
4973 (parseDayOfWeek): Created.
4974 (parse): Optimize to use parseDayOfWeek.
4976 1998-11-11 Tom Tromey <tromey@cygnus.com>
4978 * java/lang/StringBuffer.java (append): Handle case where STR is
4981 * include/javaprims.h: Regenerated class declarations.
4983 * configure: Rebuilt.
4984 * configure.in: Added --enable-gcj-classes,
4985 --enable-single-compilation, --enable-source-compilation flags.
4986 * Makefile.in: Rebuilt.
4987 * Makefile.am (java_io_files): New macro.
4988 (java_lang_files): Likewise.
4989 (java_text_files): Likewise.
4990 (java_util_files): Likewise.
4991 (java_files): Use new macros.
4992 (java-io.o): New target.
4993 (java-lang.o): Likewise.
4994 (java-text.o): Likewise.
4995 (java-util.o): Likewise.
4996 (src_io_files): New macro.
4997 (src_lang_files): Likewise.
4998 (src_text_files): Likewise.
4999 (src_util_files): Likewise.
5000 (class_io_files): New macro.
5001 (class_lang_files): Likewise.
5002 (class_text_files): Likewise.
5003 (class_util_files): Likewise.
5004 (class_files): Use new macros.
5005 (javao_files): Define conditionally.
5006 (.java.o): New target.
5007 ($(javao_files)): New target.
5009 (GCJH): Added $(EXEEXT).
5010 (CLASSPATH_ENV): Removed.
5011 (GCJCOMPILE): New macro.
5013 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
5015 * java/util/Date.java (parse): Written from scratch.
5017 1998-11-11 Tom Tromey <tromey@cygnus.com>
5019 * java/lang/Throwable.java (toString): Correct sense of test for
5020 determining when to include detail message in result.
5022 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
5025 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
5027 * java/lang/Class.h: Use _Jv_RegisterClasses, not
5029 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
5030 (_Jv_RegisterClass): Use it.
5031 * include/jvm.h (_Jv_RegisterClasses): Declare.
5032 * java/lang/natObject.cc (init): Removed.
5033 (sync_init): Never call _Jv_InitializeSyncMutex.
5034 (_Jv_InitializeSyncMutex): Don't set `init'.
5035 * prims.cc (JvRunMain): Don't run init functions.
5037 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
5039 * java/lang/natClass.cc (initializeClass): Set state before
5040 resolving constants.
5042 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
5043 (STATE_RESOLVED): New macro.
5044 (initializeClass): Call resolveConstants.
5045 (hackRunInitializers): Don't call resolveConstants.
5046 (_Jv_FindArrayClass): Move short-circuit return for primitive
5047 element types earlier in function.
5049 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
5051 * prims.cc (no_memory): New global.
5052 (_Jv_makeUtf8Const): Throw no_memory.
5053 (_Jv_AllocObject): Likewise.
5054 (_Jv_NewObjectArray): Likewise.
5055 (_Jv_NewPrimArray): Likewise.
5056 (JvRunMain): Initialize no_memory.
5058 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
5060 * java/io/FileInputStream.java: Corrected date comment.
5061 * java/io/SequenceInputStream.java: Rewritten.
5063 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
5065 * java/lang/FirstThread.java (die): New method.
5066 * java/lang/natFirstThread.cc (die): Removed.
5068 (run): Use `DIE', not `die'.
5070 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
5072 * java/io/CharArrayReader.java (read): Move check into synchronized
5073 block to prevent a close while in progress.
5076 * java/io/PushbackReader.java (read): Ditto.
5079 * java/io/StringReader.java (mark): Ditto.
5084 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
5086 * java/io/PipedInputStream.java: Updated status.
5087 (connect): Added code to prevent infinite recursion and to
5088 differentiate exception causes.
5089 (read): Added code to differentiate exception causes.
5090 (receive): Made exception pass string with the cause.
5092 * java/io/PipedOutputStream.java: Updated status.
5093 (connect): Added code to call connect at the other end of the pipe.
5095 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
5097 * java/io/PipedInputStream.java (connect): Throw exception if
5098 already connected to the same output stream.
5099 (read): Do bounds checking first.
5101 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
5103 * java/io/PipedInputStream.java: Added private boolean outClosed.
5104 (available): Removed check if output stream is open.
5105 (close): Mark the buffer as empty so available returns 0.
5106 (read): Check if the output stream was closed and then return EOF
5107 when the buffer is empty.
5108 (receive): Mark the output stream as closed when passed a -1.
5110 * java/io/PipedOutputStream.java (close): Notify the input stream
5111 that there's no more data coming.
5112 (connect): Added a FIXME comment to note more coordination needed
5113 with PipedInputStream.
5114 (flush): Added a FIXME comment to mark what this method might do
5117 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
5119 * java/io/PipedInputStream.java: Rewritten.
5121 1998-10-30 Tom Tromey <tromey@cygnus.com>
5123 * java/lang/Throwable.java: Rewrote from scratch.
5125 * java/lang/Class.h (Class): Don't mention newMultiArray.
5126 * prims.cc (newMultiArray): Removed.
5127 (_Jv_NewMultiArray): Removed.
5128 (newArray): Removed.
5129 (new_multi_array): New function.
5130 (_Jv_NewMultiArray): Rewrote from scratch.
5132 * include/javaprims.h: Regenerated class declarations.
5133 * classes.pl (scan): Don't declare PrimClass.
5134 * include/cni.h (JvPrimClass): Use new names for classes.
5135 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
5136 added _Jv_PrimClass.
5137 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
5138 (_Jv_initPrimClass): Removed.
5139 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
5140 (_Jv_AllocObject): Added comment.
5141 (_Jv_NewObjectArray): Likewise.
5142 (_Jv_NewPrimArray): Likewise.
5144 1998-10-29 Tom Tromey <tromey@cygnus.com>
5146 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
5147 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
5149 * java/lang/Class.h (Class): Added `dtable_method_count' field.
5151 * java/lang/natObject.cc (init): New global.
5152 (sync_init): Call _Jv_InitializeSyncMutex if required.
5154 * Makefile.in: Rebuilt.
5155 * Makefile.am (nat_headers): Added ClassLoader.h.
5156 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
5157 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
5158 internalAddClass, lookupArray no longer friends.
5159 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
5160 _Jv_FindArrayClass now friends.
5161 * java/lang/natClass.cc (HASH_LEN): New macro.
5162 (HASH_UTF): Likewise.
5163 (loaded_classes): New global.
5164 (_Jv_FindClass): New function.
5165 (ClassClass): New define.
5166 (_Jv_FindClassInCache): New function.
5167 (_Jv_RegisterClass): Likewise.
5168 (_Jv_NewClass): Likewise.
5170 (ObjectClass): New define.
5171 (CloneableClass): New define.
5172 * prims.cc (_Jv_FindClass): Removed.
5173 (simpleLookupClass): Removed.
5174 (insertClass): Removed.
5175 (CLASSHASHSZ): Removed.
5176 (classPool): Removed.
5177 (_Jv_RegisterClass): Removed.
5178 (internalAddClass): Removed.
5179 (ClassClass): Removed.
5180 (RuntimeClass): Removed.
5181 (lookupArray): Removed.
5182 (CloneableClass): Removed.
5183 (CLASSMAXSIG): Removed.
5184 Rearranged file to group related functions together.
5185 (_Jv_IsInstanceOf): Moved to natClass.cc.
5186 (abort_final): Removed.
5187 Removed some unused includes.
5188 (classFromSig): Removed.
5189 (_Jv_FindClassFromSignature): New function.
5190 (_Jv_initPrimClass): Renamed.
5191 (getClass): Removed.
5193 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
5195 * java/io/FileDescriptor.java (finalize): Throws IOException
5196 instead of Throwable.
5198 * java/io/FileInputStream.java: Rewritten.
5200 * java/io/StreamTokenizer.java (nextToken): Unread newline character
5201 at the end of a comment.
5203 1998-10-29 Tom Tromey <tromey@cygnus.com>
5205 * include/javaprims.h: Regenerated class declarations.
5206 * classes.pl (scan): Don't special-case ClassLoader.
5208 * prims.cc (processClass): Removed.
5209 (_Jv_InitClass): Removed.
5210 Removed all CSTATE_ macros.
5211 (resolveConstants): Removed.
5213 (_Jv_NewMultiArray): Cleaned up.
5214 * Makefile.in: Rebuilt.
5215 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5216 * java/lang/Class.h (Class): Declare new methods. processClass no
5218 * java/lang/Class.java (hackTrampoline): New method.
5219 (initializeClass): Declare.
5220 (hackRunInitializers): Declare.
5221 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5222 (initializeClass): New method.
5223 (hackRunInitializers): New method.
5224 (init_name, void_signature): Moved from prims.cc.
5225 (_Jv_InitClass): New function.
5226 (isAssignableFrom): Don't call processClass.
5227 (STATE_NOTHING): New macro.
5228 (resolveConstants): New function.
5230 (ErrorClass): New define.
5232 * java/lang/Class.java (getClassLoader): Declare.
5233 * java/lang/ClassLoader.java: Rewrote from scratch.
5235 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5236 AbstractMethodError.h, IllegalAccessError.h,
5237 NoClassDefFoundError.h.
5238 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5239 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5240 longer static. Changed return type.
5241 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5242 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5243 * prims.cc (findMethodLocal): Removed.
5244 (processClass): Use _Jv_GetMethodLocal.
5246 1998-10-28 Tom Tromey <tromey@cygnus.com>
5248 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5249 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5251 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5252 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5254 * include/jni.h: Added copyright header.
5255 * include/javaprims.h: Added copyright header.
5256 * include/java-field.h: Added copyright header.
5257 * include/java-array.h: Added copyright header.
5258 * include/cni.h: Added copyright header.
5260 * include/javaprims.h: Regenerated class declarations using
5261 classes.pl; now they are complete.
5262 * classes.pl: New file.
5264 * java/lang/natMath.cc: Include <config.h>.
5265 * java/lang/reflect/natField.cc: Include <config.h>.
5266 * java/util/NativeUtil.java: Removed.
5267 * Makefile.in: Rebuilt.
5268 * Makefile.am (nat_headers): Added Math.h.
5269 * java/lang/Math.h: Removed.
5270 * java/util/natGregorianCalendar.cc: Added copyright header.
5272 * java/lang/natFloat.cc: Added copyright header.
5273 * java/lang/Byte.java: Added copyright header.
5274 * java/lang/Void.java: Added copyright header.
5275 * java/lang/Short.java: Added copyright header.
5277 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5279 * include/javaprims.h (java::io): Added bunch of missing classes.
5281 * java/io/DataInputStream.java (readLine): Added a special case
5282 for handling BufferedInputStream data to reduce the likelihood
5283 of a pushback error.
5284 (skipBytes): Added code to handle negative number of skip bytes.
5286 * java/io/StreamTokenizer.java: Rewritten.
5288 1998-10-28 Tom Tromey <tromey@cygnus.com>
5290 * java/util/natGregorianCalendar.cc (computeFields): Call
5291 getRawOffset as a method.
5293 * include/javaprims.h (java::io): Added FilterOutputStream.
5294 * Makefile.in: Rebuilt.
5295 * Makefile.am (nat_headers): Added PrintStream.h,
5296 FilterOutputStream.h.
5297 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5299 (die): New function.
5300 (run): Die if `main' not found, is not public, or is not static.
5302 * boehm.cc (_Jv_MarkObj): Use new field names.
5303 * include/java-field.h (JvGetFirstInstanceField): Use new field
5305 (JvNumInstanceFields): Likewise.
5306 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5307 (getInterfaces): Likewise.
5308 * prims.cc (CLASS_CONSTANTS): Removed.
5309 (CLASS_CONST_SIZE): Likewise.
5310 (CLASS_CONST_TAG): Likewise.
5311 (CLASS_CONST_DATA): Likewise.
5312 (CLASS_CONST_UTF8): Likewise.
5313 (WORD2UTF): Likewise.
5314 (CLASS_CLASS): Likewise.
5315 (CLASS_PRIM_SIG): Likewise.
5316 (CLASS_ARRAY_CACHE): Likewise.
5317 (HASH_CHARS): Likewise.
5318 (hashClassName): Likewise.
5319 Many changes to use new field names.
5320 * java/lang/Class.h (Class): Renamed fields to track compiler.
5322 1998-10-27 Tom Tromey <tromey@cygnus.com>
5324 * java/lang/natClass.cc: Use #pragma implementation.
5325 (getComponentType): Moved into header.
5326 (getModifiers): Likewise.
5327 (getName): Likewise.
5328 (getSuperclass): Likewise.
5329 (isArray): Likewise.
5330 (isPrimitive): Likewise.
5331 * include/jvm.h (_Jv_FindClass): Declare.
5332 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5333 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5334 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5335 * java/lang/Class.h: Rewrote from scratch.
5336 * prims.cc: Many changes to work with new Class.h.
5337 * include/java-field.h (CLASS_FIELDS): Removed.
5338 (CLASS_SFIELDS): Likewise.
5339 (CLASS_IFIELDS): Likewise.
5340 (CLASS_NFIELDS): Likewise.
5341 (CLASS_NIFIELDS): Likewise.
5342 (CLASS_NSFIELDS): Likewise.
5343 (CLASS_FSIZE): Likewise.
5344 (JvGetFirstInstanceField): Rewrote.
5345 (JvNumInstanceFields): Likewise.
5347 * java/lang/Object.h: Added copyright comment.
5349 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5351 * java/text: New package directory.
5352 * java/text/FieldPosition.java: New class.
5353 * java/text/ParsePosition.java: New class.
5354 * java/text/ParseException.java: New Exception class.
5355 * java/text/Format.java: New class.
5356 * java/text/NumberFormat.java: New (empty placeholder) class.
5357 * java/text/DateFormatSymbols.java: New class (no Locales support).
5358 * java/text/DateFormat.java: New Format class (incomplete).
5359 * java/text/SimpleDateFormat.java: New DateFormat class.
5361 * include/javaprims.h (java::test): Added new package and classes.
5362 * java/util/Calendar.java (clone): New method.
5363 * java/util/Date.java (toString): Added non-native implementation.
5364 (parse): Made public instead of synchronized.
5365 * java/util/natDate.cc (toString): Removed.
5366 * java/util/natGregorianCalendar.cc (computeFields):
5367 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5369 1998-10-27 Tom Tromey <tromey@cygnus.com>
5371 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5373 * prims.cc (lookupArray): Added explanatory comment.
5374 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5375 class. Mark the class of each object.
5376 (_Jv_MarkArray): Mark the object's class.
5378 * configure: Rebuilt.
5379 * configure.in: Create java-gc.h.
5380 * include/boehm-gc.h: New file.
5381 * include/no-gc.h: New file.
5382 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5384 * java/lang/Object.h: Include java-gc.h.
5385 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5386 friends, if defined.
5387 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5389 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5391 1998-10-26 Tom Tromey <tromey@cygnus.com>
5393 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5394 paragraph separators, not numbers.
5396 * java/io/Writer.java (write): Removed write(char) to avoid
5398 * java/util/Properties.java: Rewrote from scratch.
5399 * include/javaprims.h (java::io): Added PrintWriter,
5400 BufferedWriter, PushbackReader.
5402 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5404 * java/lang/System.java: exit() is a static method.
5406 1998-10-26 Tom Tromey <tromey@cygnus.com>
5408 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5410 (_Jv_NewStringUtf8Const): Likewise.
5411 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5412 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5414 * java/lang/Object.h (Object): Add mark_array as friend function.
5415 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5416 _Jv_AllocBytes, to ensure that header is marked.
5417 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5419 (mark_array): Push sync_info field for array.
5421 1998-10-24 Tom Tromey <tromey@cygnus.com>
5423 * java/lang/String.java (String): Updated for StringBuffer
5425 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5427 * java/lang/StringBuffer.java: Renamed fields to conform to
5428 serialization spec: buffer->value, next->count, copy->shared.
5430 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5432 * java/util/TimeZone.java: New class.
5433 * java/util/SimpleTimeZone.java: New class.
5434 * java/util/Locale.java: New file.
5435 * java/util/Calendar.java: Make almost complete.
5436 * java/util/GregorianCalendar.java
5437 * java/util/natGregorianCalendar.cc: New file.
5438 * java/util/Date.java: Re-written from scratch.
5439 * java/util/natDate.cc (setTime): Removed - no longer native.
5440 * include/javaprims.h (java::util): Add new classes.
5441 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5442 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5444 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5446 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5447 returning it as a jint.
5449 1998-10-23 Tom Tromey <tromey@cygnus.com>
5451 * prims.cc (arg_vec, main_group, main_thread): New globals.
5452 (JvRunMain): Use them.
5454 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5456 * java/io/DataInputStream.java: Rewritten.
5458 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5459 tertiary bytes with 0x80 per spec.
5461 1998-10-23 Tom Tromey <tromey@cygnus.com>
5463 * java/lang/String.java (init): Changed name of `copy' argument.
5464 * java/lang/natString.cc (init): Inverted sense of `copy'
5467 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5468 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5469 * boehm.cc (ObjectClass): New define.
5470 (ClassClass): Likewise.
5471 (mark_obj): Special-case Object and Class.
5473 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5475 * java/util/BitSet.java: Rewrote from scratch.
5477 * prims.cc (lookupArray): Removed useless cast.
5479 * java/lang/natObject.cc: Use `#pragma implementation'.
5481 * java/lang/String.java (init): Added `copy' argument.
5482 (String): Look in StringBuffer to find char array.
5483 * java/lang/natString.cc (init): Added `copy' argument.
5484 * java/lang/StringBuffer.java: Rewrote from scratch.
5486 * java/lang/Compiler.java: Rewrote from scratch.
5487 * java/lang/Throwable.java: Don't use NativeLang.
5488 * include/javaprims.h (java::lang): Don't mention NativeLang.
5489 * java/lang/Process.java: Rewrote from scratch.
5490 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5492 (currentClassLoader): Likewise.
5493 (currentLoadedClass): Likewise.
5494 * java/lang/natClass.cc (getClassLoader): Commented out.
5495 * java/lang/Class.java (getClassLoader): Commented out.
5496 * java/lang/Compiler.java: Removed.
5497 * java/lang/NativeLang.java: Removed.
5499 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5500 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5501 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5502 (_Jv_hashUtf8String): Now static.
5503 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5504 name of return type.
5506 * java/lang/Class.h (Class): Declare checkMemberAccess.
5507 * Makefile.in: Rebuilt.
5508 * Makefile.am (nat_headers): Added Member.h.
5509 * java/lang/natClass.cc: Include Member.h.
5510 (getDeclaredClasses): Call checkMemberAccess.
5511 * java/lang/Class.java (checkMemberAccess): Call
5512 SecurityManager.checkMemberAccess.
5514 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5516 * java/lang/SecurityManager.java: Rewritten.
5518 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5520 * java/applet/Applet.java, java/applet/AppletContext.java,
5521 java/applet/AppletStub.java, java/applet/AudioClip.java,
5522 java/awt/AWTError.java, java/awt/AWTException.java,
5523 java/awt/BorderLayout.java, java/awt/Button.java,
5524 java/awt/Canvas.java, java/awt/CardLayout.java,
5525 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5526 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5527 java/awt/Color.java, java/awt/Component.java,
5528 java/awt/Container.java, java/awt/Dialog.java,
5529 java/awt/Dimension.java, java/awt/Event.java,
5530 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5531 java/awt/Font.java, java/awt/FontMetrics.java,
5532 java/awt/Frame.java, java/awt/Graphics.java,
5533 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5534 java/awt/GridLayout.java, java/awt/Image.java,
5535 java/awt/Insets.java, java/awt/Label.java,
5536 java/awt/LayoutManager.java, java/awt/List.java,
5537 java/awt/MediaTracker.java, java/awt/Menu.java,
5538 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5539 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5540 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5541 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5542 java/awt/TextArea.java, java/awt/TextComponent.java,
5543 java/awt/TextField.java, java/awt/Toolkit.java,
5544 java/awt/Window.java, java/awt/image/ColorModel.java,
5545 java/awt/image/CropImageFilter.java,
5546 java/awt/image/DirectColorModel.java,
5547 java/awt/image/FilteredImageSource.java,
5548 java/awt/image/ImageConsumer.java,
5549 java/awt/image/ImageFilter.java,
5550 java/awt/image/ImageObserver.java,
5551 java/awt/image/ImageProducer.java,
5552 java/awt/image/IndexColorModel.java,
5553 java/awt/image/MemoryImageSource.java,
5554 java/awt/image/PixelGrabber.java,
5555 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5556 java/awt/peer/CanvasPeer.java,
5557 java/awt/peer/CheckboxMenuItemPeer.java,
5558 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5559 java/awt/peer/ComponentPeer.java,
5560 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5561 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5562 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5563 java/awt/peer/MenuBarPeer.java,
5564 java/awt/peer/MenuComponentPeer.java,
5565 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5566 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5567 java/awt/peer/TextAreaPeer.java,
5568 java/awt/peer/TextComponentPeer.java,
5569 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5570 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5571 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5572 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5573 java/net/MalformedURLException.java, java/net/NativeNet.java,
5574 java/net/ProtocolException.java, java/net/ServerSocket.java,
5575 java/net/Socket.java, java/net/SocketException.java,
5576 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5577 java/net/URL.java, java/net/URLConnection.java,
5578 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5579 java/net/URLStreamHandlerFactory.java,
5580 java/net/UnknownHostException.java,
5581 java/net/UnknownServiceException.java: Removed.
5583 1998-10-22 Tom Tromey <tromey@cygnus.com>
5585 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5586 finalizer is not Object.finalize.
5587 (internalAddClass): Don't set `final' member of class.
5588 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5589 other places that know about finalize() location.
5590 * java/lang/Class.h (Class): Removed `final' field.
5592 * aclocal.m4, configure: Rebuilt.
5593 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5594 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5596 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5597 * Makefile.in: Rebuilt.
5598 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5600 1998-10-21 Tom Tromey <tromey@cygnus.com>
5602 * java/lang/Object.java (finalize): Move to be first method in
5605 * configure: Rebuilt.
5606 * configure.in (GCINCS): Include contents of boehm-cflags file.
5608 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5610 * java/lang/ArrayIndexOutOfBoundsException.java
5611 (ArrayIndexOutOfBoundsException): Fixed string literal.
5612 * java/lang/StringIndexOutOfBoundsException.java
5613 (StringIndexOutOfBoundsException): Fixed string literal.
5615 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5617 * natFileDescriptorEcos.cc added.
5618 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5620 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5622 * acconfig.h: test for __int32_t and __uint32_t added.
5623 * include/config.h.in: test for __int32_t and __uint32_t added.
5624 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5625 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5626 * configure.in: test for __int32_t and __uint32_t added.
5627 * configure: test for __int32_t and __uint32_t added.
5629 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5631 * configure.in: Test for --enable ecos and link
5632 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5633 natFileDescriptorPosix.cc
5635 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5637 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5639 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5642 * java/io/CharArrayReader.java (close): Synchronize on lock
5643 object per Reader contract.
5644 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5645 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5646 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5647 Ensure that arg passed in isn't negative.
5649 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5650 constructing the superclass.
5652 * java/io/PushbackReader.java (close): Synchronize on lock
5653 object per Reader contract.
5654 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5655 (ready): Synchronize on lock obj. Throw IOException if reader
5657 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5658 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5659 Ensure that arg passed in isn't negative.
5660 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5662 * java/io/StringReader.java: Created.
5664 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5666 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5668 (read): Removed synchronized modifier to match JCL.
5669 (reset): Removed synchronized modifier to match JCL.
5670 (skip): Removed synchronized modifier to match JCL.
5672 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5674 * java/io/PushbackReader.java (PushbackReader): Made
5675 constructors public.
5677 1998-10-17 Tom Tromey <tromey@cygnus.com>
5679 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5680 constructors public.
5682 1998-10-16 Anthony Green <green@cygnus.com>
5684 * aclocal.m4, configure: Rebuilt.
5685 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5687 * configure.host: Rewrote.
5688 * Makefile.in: Rebuilt.
5689 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5690 (AM_CFLAGS): New macro.
5691 ($(c_files)): Use COMPILE macro.
5692 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5693 automake problem(s).
5695 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5697 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5699 * java/io/CharArrayReader.java: Created.
5701 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5703 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5704 size check to allow 0 per JCL.
5706 * java/io/PushbackReader.java: Created.
5708 1998-10-16 Tom Tromey <tromey@cygnus.com>
5710 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5711 <sys/time.h> includes.
5712 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5713 * include/no-threads.h: Conditionalize <unistd.h> include on
5716 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5718 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5721 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5723 * java/io/FilterReader.java: Created.
5725 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5727 * java/io/PushbackInputStream.java: Rewritten.
5729 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5730 that size passed to constructor is legal.
5731 (read): Check that args passed in are legal.
5732 (skip): Rewritten to get rid of the temporary buffer.
5733 (refill): Added marklimit check to grow the buffer.
5735 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5737 (bytesAvail): Removed.
5738 (read): Changed bytesAvail to Math.min.
5739 (skip): Changed bytesAvail to Math.min.
5741 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5742 from the throws clause.
5743 (skip): Rewritten to use a temporary buffer.
5745 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5747 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5750 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5752 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5753 to write the double one word at a time.
5755 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5757 * java/io/BufferedInputStream.java: Rewritten.
5759 1998-10-12 Tom Tromey <tromey@cygnus.com>
5761 * jni.cc: Include config.h and stddef.h.
5763 * java/lang/Class.h (_dispatchTable): Removed again.
5764 Removed all ACC_* defines again.
5766 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5768 * Makefile.am (nat_files): Add netField.o.
5769 (libjava_a_SOURCES): Add jni.cc.
5770 (java/lang/reflect/Field.h): New rule.
5771 * Makefile.in: Re-generated.
5772 * include/javaprims.h: Add some extra class and typedefs.
5773 * include/jni.h: New file.
5776 * include/java-field.h: New file.
5777 * include/jvm.h: #include <java-field.h>.
5778 * boehm.cc: #include <java-field.h>.
5779 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5780 * java/lang/reflect/Member.java: New class.
5781 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5782 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5784 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5786 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5787 testsuite/Makefile.in: Rebuilt.
5788 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5789 * configure.host: Created.
5791 1998-10-10 Tom Tromey <tromey@cygnus.com>
5793 * java/lang/natObject.cc (sync_init): Always allocate a new
5796 1998-10-09 Tom Tromey <tromey@cygnus.com>
5798 * java/io/ByteArrayInputStream.java (mark): Renamed from
5801 * java/io/FileOutputStream.java (finalize): Removed.
5802 * java/io/FileDescriptor.java (finalize): New method.
5804 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5806 * ByteArrayInputStream.java: Corrected status comment.
5808 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5810 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5812 1998-10-08 Tom Tromey <tromey@cygnus.com>
5814 * prims.cc (lookupArray): Use static array to initialize list of
5817 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5819 * prims.cc (lookupArray): Initialize the msize for new
5822 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5824 * configure: Rebuilt.
5825 * configure.in: Check for fsync and sleep.
5826 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5828 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5829 HAVE_SLEEP. Include config.h.
5831 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5832 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5835 1998-10-08 Tom Tromey <tromey@cygnus.com>
5837 * java/io/natFile.cc: Don't include SecurityManager.h.
5838 (performList): Renamed.
5839 (performMkdir): Likewise.
5840 (performRenameTo): Likewise.
5841 (performDelete): Likewise.
5843 * java/io/File.java (performDelete): Renamed from natDelete.
5844 (list): Now written in Java.
5845 (performList): New method.
5846 (performMkdir): New method.
5847 (mkdir): Now written in Java.
5848 (performRenameTo): New method.
5849 (renameTo): Now written in Java.
5851 1998-10-06 Tom Tromey <tromey@cygnus.com>
5853 * Makefile.in: Rebuilt.
5854 * Makefile.am (ETAGS_ARGS): New macro.
5855 (TAGS_DEPENDENCIES): Likewise.
5857 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5859 * Makefile.in: Rebuilt.
5860 * Makefile.am: Use -classpath option with javac.
5862 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5864 * java/io/FileOutputStream.java (finalize): Call
5867 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5869 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5871 * java/lang/mprec.c: Ditto.
5873 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5876 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5878 * java/io/InputStream.java (skip): Make local var i a long.
5880 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5882 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5883 * prims.cc (lookupArray): Use memcpy, not memmove.
5884 * include/config.h.in: Rebuilt.
5885 * acconfig.h (HAVE_MEMCPY): Added.
5886 * configure: Rebuilt.
5887 * configure.in: Check for memcpy again.
5889 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5890 String.compareTo, not ==.
5892 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5893 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5894 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5895 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5896 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5897 into new array's dtable.
5898 (_Jv_AllocObject): Use _Jv_DispatchTable.
5899 (_Jv_NewPrimArray): Likewise.
5900 (_Jv_NewObjectArray): Likewise.
5902 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5904 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5905 offending index value.
5906 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5908 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5909 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5911 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5913 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5915 * java/io/OutputStream.java (write): Use off and len parameters to
5916 output partial byte array.
5918 * java/io/BufferedReader.java, java/io/FileReader.java,
5919 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5920 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5921 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5922 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5924 * include/javaprims.h (java::lang): Added
5925 ExceptionInInitializerError, IllegalStateException,
5926 NoSuchFieldException, and UnsupportedOperationException.
5928 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5930 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5933 * include/java-array.h (__JArray): Added clone method.
5934 * prims.cc (CloneableClass): New define.
5935 (lookupArray): Initialize array class to indicate that it
5936 implements Cloneable.
5938 * java/lang/Class.h: Removed all ACC_* defines.
5939 * prims.cc: Include Modifier.h.
5940 (_Jv_LookupInterfaceMethod): Use methods in
5941 java.lang.reflect.Modifier, not ACC_ defines.
5943 * java/lang/Class.h (Class): Declare getClasses,
5944 getDeclaredClasses, getDeclaringClass, getModifiers,
5945 * java/lang/Class.java: Rewrote from scratch.
5947 * include/javaprims.h (java::lang): Added reflect and
5949 * Makefile.in: Rebuilt.
5950 * Makefile.am (nat_headers): Added Modifier.h.
5952 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5955 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5957 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5958 instead of test and abort.
5960 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5961 remove compiler warning.
5963 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5965 * java/lang/natDouble.cc: zero terminate string.
5966 * strtod.c: Set errno if no digits are found in fraction.
5968 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5970 * java/lang/reflect/Modifier.java: New file.
5972 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5973 * java/lang/VerifyError.java: Rewrote from scratch.
5974 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5975 * java/lang/UnknownError.java: Rewrote from scratch.
5976 * java/lang/StackOverflowError.java: Rewrote from scratch.
5977 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5978 * java/lang/InternalError.java: Rewrote from scratch.
5979 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5980 * java/lang/ExceptionInInitializerError.java: New file.
5981 * java/lang/Error.java: Rewrote from scratch.
5982 * java/lang/ClassFormatError.java: Rewrote from scratch.
5983 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5984 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5985 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5986 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5987 * java/lang/LinkageError.java: Rewrote from scratch.
5988 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5990 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5992 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5993 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5995 * include/cni.h (JvAllocObject): Moved from prims.cc.
5997 * prims.cc (JvAllocObject): Moved to cni.h.
5998 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5999 (finalize_name): Removed.
6001 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
6003 * java/lang/Class.h (Class): Added size() method.
6004 * prims.cc (_Jv_MonitorEnter): Removed.
6005 (_Jv_MonitorExit): Removed.
6006 * java/lang/Object.h (JvSyncInfo): Removed.
6007 * Makefile.in: Rebuilt.
6008 * Makefile.am (nat_headers): Added Cloneable.h,
6009 CloneNotSupportedException.h.
6010 * java/lang/Object.h: Rewrote.
6011 * java/lang/natObject.cc: Rewrote from scratch.
6012 * java/lang/Object.java: Rewrote from scratch.
6014 * java/io/natFile.cc: Conditionally include <dirent.h>.
6015 (list): If no <dirent.h>, always return NULL.
6016 * configure: Rebuilt.
6017 * configure.in: Check for dirent.h.
6019 * prims.cc (lookupArray): Don't use sprintf.
6021 * java/util/Hashtable.java (containsKey): Use `abs' to compute
6028 * java/util/Hashtable.java (hsize): Renamed from size to avoid
6029 name conflict with method.
6031 * include/javaprims.h (java::util): Added HashtableEntry.
6033 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
6035 * java/util/Hashtable.java: Rewritten.
6037 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6039 * java/io/natFileDescriptor.cc (write): Correctly test `write'
6043 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
6046 * posix-threads.cc (_Jv_CondWait): Now returns int.
6047 * include/javaprims.h (java::lang): Added
6048 IllegalMonitorStateException.
6049 * Makefile.in: Rebuilt.
6050 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
6051 * include/no-threads.h (_Jv_CondDestroy): Removed.
6052 (_Jv_MutexDestroy): Removed.
6053 (_Jv_CondWait): Now returns int.
6054 (_Jv_CondNotify): Likewise. Added mutex argument.
6055 (_Jv_CondNotifyAll): Likewise.
6056 (_Jv_MutexLock): Always succeed.
6057 (_Jv_MutexUnlock): Likewise.
6058 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
6059 (_Jv_HaveMutexDestroy): Define.
6060 (_Jv_CondNotify): Now returns int. Added mutex argument.
6061 (_Jv_CondNotifyAll): Likewise.
6062 * include/quick-threads.h (_Jv_CondDestroy): Removed.
6063 (_Jv_MutexDestroy): Removed.
6064 (_Jv_CondWait): Now returns int.
6065 (_Jv_CondNotify): Likewise. Added mutex argument.
6066 (_Jv_CondNotifyAll): Likewise.
6067 * java/lang/natObject.cc (finalize_sync_info): New function.
6068 (init_mutex): Initialize `init' and register finalizer if
6071 (init_mutex): Use it.
6073 (notifyAll): Use it.
6075 (notify): Throw IllegalMonitorStateException on failure.
6076 (notifyAll): Likewise.
6077 (wait): Likewise. Also, throw InterruptedException if
6079 Include cni.h, Thread.h, IllegalMonitorStateException.h,
6080 InterruptedException.h, IllegalArgumentException.h.
6081 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
6083 * java/lang/natString.cc: Renamed all `JvPriv' functions.
6084 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
6085 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
6086 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
6087 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
6088 * quick-threads.cc: Renamed all `JvPriv' functions.
6089 * prims.cc: Renamed all `JvPriv' functions.
6090 * posix-threads.cc: Renamed all `JvPriv' functions.
6091 * nogc.cc: Renamed all `JvPriv' functions.
6092 * no-threads.cc: Renamed all `JvPriv' functions.
6093 * boehm.cc: Renamed all `JvPriv' functions.
6094 * include/quick-threads.h: Renamed all `JvPriv' functions.
6095 * include/posix-threads.h: Renamed all `JvPriv' functions.
6096 * include/no-threads.h: Renamed all `JvPriv' functions.
6097 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
6099 * include/no-threads.h (JvPrivCondWait): Wrote minimal
6101 (JvPrivCondNotify): Do nothing.
6102 (JvPrivCondNotifyAll): Do nothing.
6104 * prims.cc (processClass): Handle case where state is
6107 * java/lang/natFirstThread.cc: Include <stdlib.h>
6109 * configure: Rebuilt.
6110 * configure.in: Fixed sense of --enable-libjava-debug.
6112 * java/lang/natThread.cc (join): Declare `t' outside the loop so
6113 it can be used afterward by the assertion.
6115 * configure: Rebuilt.
6116 * configure.in: When cross-compiling, assume alloca.
6118 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
6119 __builtin_alloca (autoconf docs are wrong here).
6121 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
6123 (available): Use `FD_ZERO' (typo fix).
6125 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6127 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6128 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
6130 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6131 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
6134 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
6136 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
6138 * java/lang/natDouble.cc: Declare alloca safely.
6140 * configure, include/config.h.in: Rebuilt.
6141 * configure.in: Add alloca check.
6143 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6145 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
6146 condition while calling notify.
6147 (join): Remove `curr_nt' from `nt's join list, not vice versa.
6148 (interrupt): Hold mutex for interrupt condition while calling
6151 * java/lang/natString.cc (init): Allocate and try to read `count'
6152 characters, not `count - offset' characters.
6154 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
6155 Correctly compute `count'.
6157 * java/lang/Boolean.java (getBoolean): Return false if property
6160 * java/lang/System.java (setProperties): Set prop_init.
6162 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
6164 * java/io/PrintStream.java (println): Use line.separator, not
6166 * java/lang/System.java (out, err): Make both autoflush streams.
6167 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
6169 * include/config.h.in: Rebuilt.
6170 * acconfig.h (HAVE_MEMCPY): Removed.
6171 * configure: Rebuilt.
6172 * configure.in: Never define HAVE_MEMCPY.
6174 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6176 (_Jv_AllocString): Use JvAllocObject again.
6177 * java/lang/Class.h (thread): New field.
6178 (_Jv_AllocString): No longer a friend.
6179 * prims.cc (processClass): Removed dead code. Changed to more
6180 closely follow the Java Language Specification.
6181 (processClass): Return early if already at the right state.
6183 * prims.cc (JvNewStringUTF): Removed.
6184 * include/cni.h (JvNewStringUTF): New function.
6185 (_Jv_NewStringUTF): Declare as `extern "C"'.
6186 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6188 * java/lang/natDouble.cc: Added copyright info and header
6189 comment. Include <stdlib.h>.
6190 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
6191 bytes as are chars in string.
6193 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
6195 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6199 * java/lang/System.java (init_properties): Now native.
6200 * java/lang/natSystem.cc (init_properties): New method.
6201 Include java/util/Properties.h.
6203 * Makefile.in: Rebuilt.
6204 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6205 OutputStreamWriter.h, ByteArrayInputStream.h,
6206 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6207 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6208 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6209 Properties.h, Hashtable.h, Dictionary.h.
6212 * include/javaprims.h (java::io): Added Reader, Writer,
6213 InputStreamReader, OutputStreamWriter,
6214 UnsupportedEncodingException, ByteArrayInputStream,
6215 ByteArrayOutputStream, EOFException, SyncFailedException,
6216 PushbackInputStream.
6217 (java::lang): Added Cloneable.
6218 (java::util): Added NoSuchElementException, VectorEnumeration,
6219 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6221 * java/io/PipedReader.java: New file.
6223 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6225 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6228 * java/io/io-defs.h: Removed.
6230 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6231 (FileInputStream): Use new constructor. Can throw IOException.
6233 * java/lang/System.java (getProperty): Don't throw
6234 NullPointerException.
6236 * java/io/RandomAccessFile.java: Rewrote from scratch.
6238 * java/io/natFileDescriptor.cc: Include EOFException.h.
6240 (length): New method.
6241 (getFilePointer): New method.
6243 (available): New method.
6244 * java/io/FileDescriptor.java (SET, CUR): New constants.
6245 (seek, length, getFilePointer, read, available): New decls.
6247 * java/io/PipedWriter.java: New file.
6248 * java/io/StringWriter.java: New file.
6249 * java/io/CharArrayWriter.java: New file.
6250 * java/io/CharConversionException.java: New file.
6251 * java/io/BufferedWriter.java: New file.
6252 * java/io/FilterWriter.java: New file.
6253 * java/io/FileWriter.java: New file.
6255 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6256 OutputStreamWriter.h, NullPointerException.h,
6257 ByteArrayInputStream.h, InputStreamReader.h.
6258 (getBytes): New method.
6259 (init): Throw NullPointerException.
6260 (init): New function.
6261 * java/lang/String.java (getBytes): Added missing decl.
6262 (getBytes): New method.
6263 (String): Added byte[]-based constructors.
6264 (copyValueOf): Wrote.
6265 (init): Declare variant which takes byte array and encoding.
6266 Import java.io.UnsupportedEncodingException.
6268 * java/io/File.java: Rewrote from scratch.
6269 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6270 * java/io/FileDescriptor.java: Rewrote from scratch.
6271 * java/io/FilenameFilter.java: Rewrote from scratch.
6273 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6275 * java/io/SyncFailedException.java: New file.
6276 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6277 * java/io/InterruptedIOException.java: Rewrote from scratch.
6278 * java/io/FileNotFoundException.java: Rewrote from scratch.
6279 * java/io/EOFException.java: Rewrote from scratch.
6280 * java/io/IOException.java: Rewrote from scratch.
6281 * java/io/PrintStream.java: Rewrote from scratch.
6282 * java/io/DataOutputStream.java: Rewrote from scratch.
6283 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6284 * java/io/FilterOutputStream.java: Rewrote from scratch.
6285 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6286 * java/io/PipedOutputStream.java: Rewrote from scratch.
6287 * java/io/FileOutputStream.java: Rewrote from scratch.
6288 * java/io/OutputStream.java: Rewrote from scratch.
6289 * java/io/DataOutput.java: Rewrote from scratch.
6291 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6293 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6295 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6297 * configure.in: Add --enable-libjava-debug
6299 * Makefile.am (nat_headers): Add java/lang/Float.h and
6302 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6304 * Makefile.in, configure, include/config.h.in: Rebuilt.
6306 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6308 * java/lang/Float.java: Rewritten
6309 * java/lang/Double.java: Rewritten
6310 * java/lang/natFloat.cc: toString() added.
6311 * java/lang/natDouble.cc: toString() added.
6312 * java/lang/natDouble.cc: doubleValueOf() added.
6313 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6314 java/lang/strtod.c: added.
6315 * ieeefp.h: __sparc added.
6316 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6318 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6320 * include/javaprims.h (java::lang): Added
6321 CloneNotSupportedException.
6323 * java/lang/Object.java (clone): No longer native. Implemented.
6324 * java/lang/natObject.cc (clone): Removed.
6326 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6328 * prims.cc: Don't make definitions `extern "C"'.
6329 (_Jv_RegisterClass): Renamed from registerClass.
6330 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6331 (_Jv_NewArray): Likewise.
6332 (_Jv_NewMultiArray): Likewise.
6333 (_Jv_CheckCast): Likewise.
6334 (_Jv_LookupInterfaceMethod): Likewise.
6335 (_Jv_CheckArrayStore): Likewise.
6336 (_Jv_RegisterClass): Likewise.
6338 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6339 * configure: Rebuilt.
6340 * configure.in: Don't check for fmod; it is provided by the fdlibm
6342 * prims.cc (fmod): Removed.
6344 * java/lang/natString.cc (charAt): Use _Jv_uint.
6345 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6346 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6347 (equalUtf8Consts): Likewise.
6348 (internalAddClass): Use _Jv_uint.
6349 (processClass): Likewise.
6350 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6351 (_Jv_uint): Renamed from uint32.
6352 (struct _Jv_Utf8Const): Changed members to use new type names.
6354 * configure: Rebuilt.
6355 * configure.in: Don't check for memcpy. Require memmove and a way
6357 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6359 (currentTimeMillis): Don't use #error.
6361 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6363 * java/lang/Math.java: static member random renamed to random_ to
6364 avoid conflict with member function of the same name.
6365 * include/javaprims.h: java.util.Random added.
6367 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6369 * include/java-chartables.h: Regenerated.
6370 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6373 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6375 * java/lang/Math.java: Rewritten.
6376 * java/lang/natMath.cc: New file.
6377 * Files added from fdlibm:
6378 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6379 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6380 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6381 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6382 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6383 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6384 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6385 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6386 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6387 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6388 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6389 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6390 java/lang/k_cos.c, java/lang/sf_ceil.c,
6391 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6392 java/lang/ieeefp.h, java/lang/fdlibm.h
6393 * Makefile.am: rules added for compiling C files from fdlibm.
6395 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6397 * chartables.pl: Minor documentation fixes.
6399 * configure: Rebuilt.
6400 * configure.in: Fixed --help output for --enable-fast-character.
6402 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6404 * configure: Rebuilt.
6405 * configure.in: Recognize --enable-fast-character.
6406 * acconfig.h (COMPACT_CHARACTER): New define.
6407 * include/config.h.in: Rebuilt.
6408 * include/java-chartables.h: New file.
6409 * Makefile.in: Rebuilt.
6410 * Makefile.am (nat_files): Added natCharacter.o.
6411 * java/lang/natCharacter.cc: New file.
6412 * chartables.pl (set_attribute): New function.
6413 (@attributes, @second_attributes): New globals.
6414 ($ROMAN_START, $ROMAN_END): Likewise.
6415 (process_char): Call set_attribute when required.
6416 (print_char): Just print hex value.
6417 (print_block): Generate C++ syntax.
6418 (print_numerics): Likewise.
6419 (print_single_map): Likewise.
6420 (print_all_block): Likewise.
6421 (print_case_table): Likewise.
6422 (print_fast_tables): New function.
6423 Generate C++ code suitable for a header file.
6424 * java/lang/Character.java (table_search): Removed.
6425 (digit_value): Now native.
6426 (getNumericValue): Likewise.
6427 (getType): Likewise.
6428 Removed all automatically-generated tables.
6429 (Tamil_Digit_One): Removed.
6430 (isSpaceChar): Now native.
6431 (isTitleCase): Likewise.
6432 (isLowerCase): Likewise.
6433 (isUpperCase): Likewise.
6434 (toLowerCase): Likewise.
6435 (toTitleCase): Likewise.
6436 (toUpperCase): Likewise.
6437 (isDefined): Fixed sense of test.
6439 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6441 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6443 (regionMatches): Likewise.
6445 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6447 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6449 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6451 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6454 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6457 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6459 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6461 * prims.cc (instanceof_class): Removed.
6462 (instanceof_array): Likewise.
6463 (instanceof): Likewise.
6464 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6465 (_Jv_CheckCast): Likewise.
6466 * java/lang/natClass.cc (isAssignableFrom): New method.
6467 * java/lang/Class.java (isAssignableFrom): Now native.
6469 * include/cni.h (JvThrow): Use `extern inline'.
6470 (JvAllocObject): Likewise.
6471 (JvInitClass): Likewise.
6473 * java/lang/natSystem.cc (arraycopy): Only check class of source
6476 * prims.cc (_Jv_CheckArrayStore): Wrote.
6477 (_Jv_MonitorEnter): Prefer `JvThrow'.
6478 Include ArrayStoreException.h.
6479 (_Jv_CheckCast): Indentation cleanup.
6481 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6483 * chartables.pl: New file.
6484 * java/lang/Character.java: Rewrote from scratch.
6486 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6488 * java/lang/ArithmeticException.java,
6489 java/lang/ArrayIndexOutOfBoundsException.java,
6490 java/lang/ArrayStoreException.java,
6491 java/lang/ClassCastException.java,
6492 java/lang/ClassNotFoundException.java,
6493 java/lang/CloneNotSupportedException.java,
6494 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6495 java/lang/IllegalArgumentException.java,
6496 java/lang/IllegalMonitorStateException.java,
6497 java/lang/IllegalThreadStateException.java,
6498 java/lang/IndexOutOfBoundsException.java,
6499 java/lang/InstantiationException.java,
6500 java/lang/InterruptedException.java,
6501 java/lang/NegativeArraySizeException.java,
6502 java/lang/NoSuchMethodException.java,
6503 java/lang/NullPointerException.java,
6504 java/lang/NumberFormatException.java,
6505 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6506 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6508 * java/lang/IllegalStateException.java,
6509 java/lang/NoSuchFieldException.java,
6510 java/lang/UnsupportedOperationException.java: Created.
6512 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6514 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6515 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6517 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6519 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6521 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6523 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6525 * Makefile.in: Rebuilt.
6527 * include/javaprims.h (java::lang): Added
6528 StringIndexOutOfBoundsException.
6530 * java/lang/String.java: Added header comment and FIXME comment for
6531 missing constructors/methods.
6532 (endsWith): Adjusted offset into string to look at just the last chars.
6533 Commented out undocumented method.
6535 * java/lang/natString.cc: Added includes for
6536 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6537 (String::init): Throw StringIndexOutOfBoundsException.
6538 (String::charAt): Throw StringIndexOutOfBoundsException.
6539 (String::substring): Throw StringIndexOutOfBoundsException.
6540 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6541 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6542 (String::compareTo): Return difference/offset between chars/strings.
6544 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6546 * java/lang/Boolean.java (TYPE): Added comment.
6548 * java/lang/Byte.java (decode): Added - commented out until dependent
6549 code for Integer is written.
6550 (compareTo): JDK 1.2 methods written.
6551 (hashCode): Added comment to note that values have been verified.
6553 * java/lang/Short.java (decode): Added - commented out until dependent
6554 code for Integer is written.
6555 (compareTo): JDK 1.2 methods written.
6556 (hashCode): Added comment to note that values have been verified.
6558 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6560 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6562 * include/javaprims.h (java::lang): Added VirtualMachineError,
6564 * Makefile.in: Rebuilt.
6565 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6566 VirtualMachineError.h.
6567 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6568 (lookupArray): Likewise.
6569 (makeUtf8Const): Likewise.
6570 (_Jv_AllocObject): Likewise.
6571 (_Jv_NewObjectArray): Likewise.
6572 Include OutOfMemoryError.h.
6574 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6575 to use JvNewStringLatin1.
6577 * java/io/io-defs.h: Include java/lang/IOException.h.
6578 * Makefile.in: Rebuilt.
6579 * Makefile.am (nat_headers): Added
6580 ArrayIndexOutOfBoundsException.h,
6581 ClassFormatError.h,ClassNotFoundException.h,
6582 ClassCircularityError.h, ClassCastException.h,
6583 IncompatibleClassChangeError.h, AbstractMethodError.h,
6584 IllegalAccessError.h, LinkageError.h, Error.h,
6585 NegativeArraySizeException.h, IOException.h.
6586 * include/cni.h (SignalError): Removed declaration.
6587 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6588 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6589 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6590 (newInstance): Likewise.
6591 (forName): Likewise.
6592 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6594 (read): Use JvThrow, not SignalError.
6599 (open_read): Likewise.
6600 (open_write): Likewise.
6603 (newstr): New function.
6604 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6606 (lastModifiedUnchecked): Likewise.
6607 (lengthUnchecked): Likewise.
6608 * include/javaprims.h (sorry): Removed declaration.
6609 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6610 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6611 ClassCastException, IncompatibleClassChangeError,
6612 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6613 * prims.cc (instanceof_array): Use JvFail, not sorry.
6615 Include ArrayIndexOutOfBoundsException.h,
6616 ClassFormatError.h,ClassNotFoundException.h,
6617 ClassCircularityError.h, ClassCastException.h,
6618 IncompatibleClassChangeError.h, AbstractMethodError.h,
6619 IllegalAccessError.h, NegativeArraySizeException.h.
6620 (_Jv_ThrowBadArrayIndex): Implemented.
6621 (JvNewStringUTF): Use JvFail, not sorry.
6622 (_Jv_FindClass): Likewise.
6623 (_Jv_NewArray): Likewise.
6624 (throwException): Removed.
6625 (getClass): Use JvThrow.
6626 (processClass): Likewise.
6627 (_Jv_NewObjectArray): Likewise.
6628 (_Jv_NewMultiArray): Likewise.
6629 (_Jv_CheckCast): Likewise.
6630 (_Jv_LookupInterfaceMethod): Likewise.
6631 (SignalError): Removed.
6632 (getClass): Use _Jv_NewStringUtf8Const to create String.
6634 * java/lang/natSystem.cc (arraycopy): Throw
6635 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6637 * Makefile.in: Rebuilt.
6638 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6640 * include/java-array.h: Mention gcjh, not gjavah.
6642 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6643 (canReadUnchecked): Likewise.
6644 (canWriteUnchecked): Likewise.
6645 (isFileUnchecked): Likewise.
6646 * java/io/natFileDescriptor.cc: Don't include cni.h.
6648 * java/lang/Thread.java (run__): Declare.
6649 * java/lang/natThread.cc (run__): New method, to avoid compiler
6651 (start): Use run__, not run_.
6653 * java/io/io-defs.h: Include cni.h and jvm.h.
6655 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6657 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6658 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6659 to natString.cc (with suitable renaming, inlines etc).
6660 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6661 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6662 * java/lang/String.h: Removed - now generated using gjavah.
6663 * java/lang/String.java: Re-written from scratch. Many native methods.
6664 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6665 * java/lang/natString.cc: Many functions re-written for "compact
6666 strings" representation, or native java.lang.String methods added.
6667 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6668 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6669 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6670 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6671 * include/cni.h: Add inline method.
6672 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6673 * include/javaprims.h: Moved some stuff frm String.h.
6674 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6675 * Makefile.am (nat_header): Added Character.h and String.h.
6676 (String.h): Add new rule.
6678 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6680 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6682 * posix-threads.cc: Include cni.h, jvm.h.
6683 * quick-threads.cc: Include cni.h, jvm.h.
6684 * nogc.cc: Include cni.h, not javaprims.h.
6685 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6686 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6687 include java-assert.h.
6688 * java/lang/natSystem.cc: Include cni.h. Don't include
6690 * java/lang/natRuntime.cc: Include cni.h. Don't include
6692 * prims.cc: Rearranged #include ordering. Don't include
6693 java-array.h or java-assert.h.
6694 * boehm.cc: Include config.h, cni.h.
6695 * exception.cc: Include config.h, cni.h.
6696 * include/jvm.h: Include java-assert.h.
6697 * include/cni.h: Include java/lang/Object.h. Don't include
6698 java-threads.h or java-array.h.
6700 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6702 * java/lang/Boolean.java: Rewritten.
6704 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6706 * java/lang/natFirstThread.cc (main_func): New typedef.
6707 (run): Use main_func, not JvPrivThreadStartFunc.
6708 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6710 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6712 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6715 Can't throw Java exceptions with C++ `throw':
6716 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6717 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6718 (setPriority): Likewise.
6722 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6723 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6725 Can't catch Java exceptions from C++:
6726 * java/lang/natThread.cc (finish_): New method.
6728 * java/lang/Thread.java (run_): Rewrote in Java.
6729 (finish_): New native method.
6731 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6733 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6735 * include/javaprims.h (java::io): Added Serializable.
6737 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6739 * java/util/EmptyStackException.java,
6740 java/util/NoSuchElementException.java: Rewritten.
6742 * java/util/ConcurrentModificationException.java,
6743 java/util/MissingResourceException.java,
6744 java/util/TooManyListenersException.java: Created.
6746 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6748 * include/cni.h (JvThrow): New function.
6749 * include/javaprims.h (_Jv_Throw): Declare.
6751 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6753 * java/util/Observable.java: Rewritten.
6755 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6757 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6758 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6759 Include NullPointerException.h.
6761 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6763 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6764 assignability checks. Don't bother using memcpy.
6766 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6768 * include/quick-threads.h (JvPrivThreadWait): New function.
6769 * include/no-threads.h (JvPrivThreadWait): New function.
6770 * include/posix-threads.h (JvPrivThreadWait): New function.
6771 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6773 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6775 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6776 offsets by size of type that is being copied.
6778 * java/lang/natThread.cc (start): Don't pass `object' argument to
6780 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6781 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6783 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6784 always pass thread as object.
6785 * include/quick-threads.h, include/posix-threads.h,
6786 include/no-threads.h (JvPrivThreadStart): Removed `object'
6789 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6791 * java/util/Dictionary.java: Rewritten.
6793 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6795 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6796 (JvPrivThreadDestroy): Likewise.
6798 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6800 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6802 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6804 * java/lang/natSystem.cc: Rewrote from scratch.
6805 * java/lang/System.java: Rewrote from scratch.
6806 * java/lang/Class.h (Class): Declare isAssignableFrom.
6807 * include/javaprims.h (java::lang): Added ArrayStoreException,
6808 IndexOutOfBoundsException.
6809 * Makefile.in: Rebuilt.
6810 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6811 IndexOutOfBoundsException.h.
6812 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6813 * include/jvm.h (_Jv_HashCode): New function.
6815 * java/lang/natThread.cc (suspend): Call checkAccess.
6817 * java/lang/Thread.java (setDaemon): Call checkAccess.
6819 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6821 * java/lang/Runtime.java: Rewrote from scratch.
6822 * java/lang/natRuntime.cc: Rewrote from scratch.
6824 * nogc.cc (JvPrivGCTotalMemory): New function.
6825 (JvPrivGCFreeMemory): Likewise.
6826 (total): New global.
6827 (JvPrivAllocObj): Increment total.
6828 (JvPrivAllocArray): Likewise.
6829 (JvPrivAllocBytes): Likewise.
6830 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6831 * boehm.cc (JvPrivGCTotalMemory): New function.
6832 (sum_blocks): Likewise.
6833 (JvPrivGCFreeMemory): Likewise.
6835 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6837 * include/javaprims.h (java::lang): Added FirstThread.
6838 * java/lang/natFirstThread.cc: New file.
6839 * java/lang/FirstThread.java: New file.
6840 * prims.cc (main_signature): Removed.
6841 (main_name): Removed.
6842 #include FirstThread.h.
6843 * Makefile.in: Rebuilt.
6844 * Makefile.am (TFRIEND): Removed.
6845 (java/lang/Thread.h): Likewise.
6846 (FTFRIEND): New macro.
6847 (java/lang/FirstThread.h): New target.
6848 (nat_files): Added natFirstThread.o.
6849 (nat_headers): Added FirstThread.h.
6850 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6851 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6853 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6857 * java/lang/natThread.cc (start): Synchronize the thread.
6858 (stop): Synchronize the thread.
6860 * java/lang/ThreadDeath.java: Rewrote from scratch.
6862 * Makefile.in: Rebuilt.
6863 * Makefile.am (TGFRIEND): New macro.
6864 (java/lang/ThreadGroup.h): New target.
6865 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6867 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6869 * nogc.cc: Include config.h.
6871 * java/lang/ThreadGroup.java: Rewrote from scratch.
6873 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6875 * java/lang/Thread.java (checkAccess): Only call in to security
6876 manager if it exists.
6877 (Thread): Don't check access when creating the first thread. Add
6878 this thread to the appropriate ThreadGroup.
6880 * java/lang/natThread.cc (run_): Call uncaughtException method on
6883 * java/lang/Runnable.java: Rewrote from scratch.
6884 * java/lang/Thread.java: Updated copyright comment to correct
6887 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6889 * java/util/Random.java: Rewritten.
6891 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6893 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6894 trailing 0 in array[].
6896 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6898 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6899 and RUNTESTFLAGS from AM_MAKEFLAGS.
6900 (SUBDIRS): Conditionally include testsuite.
6901 * Makefile.in: Rebuilt.
6903 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6905 * java/lang/Object.h: Include java-assert.h.
6907 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6909 * Makefile.am: Add testsuite directory.
6910 * configure.in: Build testsuite/Makefile.
6911 * Makefile.in, configure: Rebuilt.
6913 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6915 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6916 * include/jvm.h (_Jv_StartFirstThread): Declare.
6918 * include/javaprims.h (java::lang): Added Exception,
6921 * Makefile.in: Rebuilt.
6922 * Makefile.am (nat_headers): Added NullPointerException.h,
6923 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6924 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6925 (java/lang/Thread.h): New target.
6926 (TFRIEND): New macro
6928 * include/java-assert.h (JvFail): Use 0 and not NULL.
6930 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6931 instead of assuming we are a friend of Thread.
6932 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6933 instead of assuming we are a friend of Thread.
6935 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6937 * java/lang/natThread.cc: Rewrote from scratch.
6938 * java/lang/Thread.java: Rewrote from scratch.
6939 * prims.cc (JvRunMain): Use new Thread constructor.
6940 * include/javaprims.h (java::lang): Added InterruptedException.
6941 * Makefile.in: Rebuilt.
6942 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6943 * java/lang/Thread.h: Removed.
6944 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6945 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6947 * posix-threads.cc (JvPrivThreadJoin): Removed.
6948 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6949 (really_start): Don't notify join_cond.
6950 (JvPrivThreadStart): Added `data' argument.
6951 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6952 (JvPrivThreadJoin): Likewise.
6953 Use JvFail instead of sorry.
6954 (JvPrivThreadSuspend): Removed.
6955 (JvPrivThreadResume): Removed.
6956 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6957 (JvPrivThreadJoin): Likewise.
6958 (JvPrivThreadSuspend): Use JvFail.
6959 (JvPrivThreadResume): Likewise.
6960 (JvPrivThreadSuspend): Removed.
6961 (JvPrivThreadResume): Likewise.
6962 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6963 (JvPrivThread_t): Removed join_mutex, join_cond.
6964 Use JvFail instead of sorry.
6965 (JvPrivThreadSuspend): Removed.
6966 (JvPrivThreadResume): Likewise.
6968 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6970 * java/util/Observer.java: Rewritten
6971 * java/util/Enumeration.java: Rewritten
6973 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6975 * java/util/StringTokenizer.java: Rewritten
6976 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6977 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6978 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6980 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6982 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6985 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6986 Include java-assert.h.
6987 * include/java-assert.h: New file.
6988 * prims.cc (_Jv_Abort): New function.
6989 Include java-assert.h, not assert.h.
6990 (_Jv_MonitorExit): Use JvAssert.
6991 (resolveConstants): Likewise.
6992 (processClass): Likewise.
6993 (JvRunMain): Assert that method is found.
6995 * configure: Rebuilt.
6996 * configure.in: Check for test subdir.
6997 * Makefile.in: Rebuilt.
6998 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
7000 * prims.cc (JvRunMain): Use NORM_PRIORITY.
7001 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
7003 * prims.cc (resolveConstants): Removed unused variables.
7004 (processClass): Likewise.
7006 * include/quick-threads.h (JvPrivThreadCurrent): Use
7008 * quick-threads.cc (destroy_data): New function.
7009 (JvPrivInitThreads): Create key.
7010 (JvPrivThreadKey): New global.
7011 (JvPrivThreadStart): Use coop_setspecific.
7013 * include/quick-threads.h, include/posix-threads.h,
7014 include/no-threads.h, no-threads.cc, quick-threads.cc,
7015 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
7017 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
7019 * include/no-threads.h (JvPrivThreadInitData): Don't set
7022 * include/quick-threads.h (JvPrivCondWait): coop function now
7024 (JvPrivThreadJoin): Likewise.
7026 * java/lang/Thread.h (Thread): Updated declaration of
7028 * include/quick-threads.h, include/posix-threads.h: Updated
7029 declaration of JvPrivThreadStart.
7030 * include/no-threads.h (JvPrivThreadStart): Changed definition
7032 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
7033 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
7034 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
7036 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
7038 * quick-threads.cc (qthrow): New function.
7039 (JvPrivInitThreads): New function.
7040 (started): New global.
7041 (JvPrivThreadStart): Call coop_start if required.
7042 * include/quick-threads.h (JvPrivThreadCancel): Implement.
7043 (JvPrivThreadDestroy): Likewise.
7044 (JvPrivInitThreads): Removed.
7045 * include/posix-threads.h (JvPrivThreadCancel): Added error
7047 * java/lang/natThread.cc (stop_): Pass exception to
7050 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
7052 * include/javaprims.h (java::lang): Added
7053 IllegalArgumentException, IllegalThreadStateException, Math,
7054 NullPointerException, ThreadDeath.
7055 (java::util): Added Enumeration.
7057 * Makefile.in: Rebuilt.
7058 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
7060 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
7062 (threadsv): Renamed from threads to avoid clash in C++ header.
7063 (groupsv): Likewise.
7064 * include/no-threads.h (JvPrivThreadStart): Removed.
7065 * no-threads.cc (JvPrivThreadStart): New function.
7066 * java/lang/Thread.java (Thread): New constructor for internal use.
7067 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
7068 (Thread): Declare constructor.
7069 * prims.cc (JvRunMain): Create the initial Thread and
7071 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
7072 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
7073 Removed `daemon' argument.
7075 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
7076 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
7078 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
7080 * Makefile.in: Rebuilt.
7081 * Makefile.am (INCLUDES): Include THREADINCS.
7083 * configure: Rebuilt.
7084 * configure.in: Recognize `qt' as a threads package.
7086 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
7088 * java/util/Stack.java (pop): Null out topmost node for robustness.
7090 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
7092 * java/util/Stack.java: Rewritten.
7093 * java/util/Vector.java (isEmpty): Simplified expression.
7095 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
7097 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
7098 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
7100 * include/java-array.h (JvNewObjectArray): Created inline to
7103 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
7106 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
7108 * java/util/Vector.java: Rewritten.
7109 * java/io/Serializable.java: Created.
7111 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
7113 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
7114 Infinity is 1/0, not 1/1.
7116 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
7118 * configure: Rebuilt.
7119 * configure.in: Removed duplicate AC_ARG_WITH.
7121 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
7123 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
7125 (_Jv_InitClass): Renamed from soft_initialise_class.
7126 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
7127 (_Jv_CheckCast): Renamed from soft_checkcast.
7128 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
7129 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
7130 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
7131 * include/cni.h (JvInitClass): New function.
7132 (_Jv_InitClass): Renamed from soft_initialise_class.
7134 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
7136 * configure: Rebuilt.
7137 * configure.in (CXX): Don't set.
7138 * Makefile.in: Rebuilt.
7139 * Makefile.am (AM_CXXFLAGS): New macro.
7141 * Makefile.in: Rebuilt.
7142 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
7143 nogc.o): New target.
7145 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
7147 (mark_array): Likewise.
7149 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
7151 * java/lang/Class.h (JvMethod): Removed some unused fields.
7152 (JvField.info): Removed unused idx union variant.
7154 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
7156 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
7159 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
7161 * configure.in, configure (CXX): Add -fvtable-thunks.
7163 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
7165 * java/lang/Object.java (finalize): Move first.
7166 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
7167 (Object): Re-arrange order to match Object.java.
7169 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
7171 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
7172 * java/lang/natString.cc (hashChars): Likewise.
7174 * prims.cc (RuntimeClass): New macro.
7175 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
7177 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
7179 * Makefile.in: Rebuilt.
7180 * Makefile.am (AM_MAKEFLAGS): New macro.
7182 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
7184 * nogc.cc: Include <javaprims.h>.
7186 * Makefile.in: Rebuilt.
7187 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7189 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
7191 * exception.cc (terminate): Removed.
7192 (unexpected): Removed.
7194 * configure: Rebuilt.
7195 * configure.in: Handle case where target subdir is ".".
7197 * configure: Rebuilt.
7198 * configure.in: Compute COMPPATH based on --with-target-subdir
7199 option. Added --with-target-subdir and --with-cross-host. Use
7200 --with-cross-host to determine when a cross compiler is in use.
7202 * Makefile.in: Rebuilt.
7203 * Makefile.am (GJAVAH): Include COMPPATH.
7204 * configure: Rebuilt.
7205 * configure.in: Subst COMPPATH.
7207 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7209 * prims.cc (lockMutex): Removed.
7210 (unlockMutex): Likewise.
7211 (processClass): Lock the class using a JvSynchronize object.
7213 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7215 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7216 (gc_free_fixed): Removed.
7217 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7218 freeing old value of strhash.
7220 * exception.cc (_Jv_type_matcher): Cast first argument to
7223 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7225 * include/java-array.h (jstringArray): New type.
7226 * java/lang/natSystem.cc (setProperty): Removed.
7227 (initProperties): Directly call JvNewStringLatin1 for arguments.
7228 * java/util/natDate.cc: Include java/util/Date.h, not
7231 * java/io/FileDescriptor.java (available): No longer static.
7232 * java/lang/natDouble.cc (Double): Removed class definition.
7233 * include/javaprims.h (java::lang::Number): Declare.
7234 (java::lang::NumberFormatException): Likewise.
7235 (java::io::FilenameFilter): Likewise.
7236 (java::lang::Character): Likewise.
7237 (java::lang::Error): Likewise.
7238 (java::lang::SecurityManager): Likewise.
7239 (java::util::Vector): Likewise.
7240 (java::io::FileNotFoundException): Likewise.
7241 (java::io::IOException): Likewise.
7242 (java::lang::NativeLang): Likewise.
7243 (java::lang::UnsatisfiedLinkError): Likewise.
7244 (java::util::StringTokenizer): Likewise.
7245 (java::io::InputStream, java::io::OutputStream): Likewise.
7246 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7247 (java::util::Hashtable): Likewise.
7248 * Makefile.in: Rebuilt.
7249 * Makefile.am (nat_headers): Added java/lang/Double.h,
7250 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7251 (MOSTLYCLEANFILES): Added nat_headers.
7252 * include/jvm.h: Moved many defines, declarations, and functions
7253 to java/lang/Class.h.
7254 (struct JvSyncInfo): Moved to java/lang/Object.h.
7255 (UTF8_GET): Moved to java/lang/String.h.
7257 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7259 * java/io/io-defs.h: Don't include java-io.h.
7260 * include/java-io.h: Removed.
7261 * include/javaprims.h: Include java::io.
7263 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7265 * include/java-io.h (File): Removed
7266 (FileDescriptor): Likewise.
7268 * java/io/io-defs.h: Include java/io/File.h and
7269 java/io/FileDescriptor.h.
7271 * Makefile.in: Rebuilt.
7272 * Makefile.am (GJAVAH): New macro.
7273 (.class.h): New rule.
7274 (SUFFIXES): Added .h.
7275 (nat_headers): New macro.
7276 ($(nat_headers)): New target.
7277 (BUILT_SOURCES): Added nat_headers.
7279 * include/java-util.h: Removed.
7281 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7283 * include/java-io.h: Changed to avoid java-lang.h.
7284 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7286 * java/lang/natSystem.cc: Include java/lang/System.h, not
7288 * java/lang/natString.cc: Include java/lang/String.h, not
7290 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7292 * java/lang/natClass.cc: Include java/lang/Class.h, not
7294 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7296 * java/lang/natObject.cc: Include java/lang/Object.h, not
7298 * exception.cc: Don't include java-lang.h.
7299 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7300 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7301 * nogc.cc: Don't include java-lang.h.
7302 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7303 * prims.cc (processClass): Don't use `init_type'; just cast to
7305 Include java/lang/Class.h and jvm.h, not java-lang.h.
7306 (JvAllocObject): Wrote single-argument version.
7307 (PrimClass): Inherit from Class.
7308 (initPrimClass): Removed.
7309 * include/java-lang.h: Removed.
7310 * include/jvm.h: Declare struct _dispatchTable.
7311 * include/cni.h: Don't declare _Jv_MonitorEnter,
7312 _Jv_MonitorExit, struct _dispatchTable.
7313 * include/javaprims.h: Moved all typedefs here, from cni.h.
7314 * java/lang/Class.h: New file.
7315 * include/java-array.h: New file.
7316 * java/lang/Object.h: New file.
7318 * prims.cc (classFromSig): Now static.
7320 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7322 * include/cni.h: Don't mention soft_new.
7323 * include/java-lang.h (Object): Don't mention soft_new. Mention
7324 _Jv_NewPrimArray, not newPrimArray.
7325 * prims.cc (soft_new): Removed.
7326 (_Jv_NewArray): Renamed from soft_newarray.
7327 (soft_anewarray): Use JvNewObjectArray.
7328 (newArray): Likewise.
7329 (newRefArray): Removed.
7330 (_Jv_NewPrimArray): Renamed from newPrimArray.
7331 (equalUtf8Consts): Now static.
7332 (soft_instanceof): Removed.
7333 * java/lang/natDouble.cc (doubleToString): Now static.
7335 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7336 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7339 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7341 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7343 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7345 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7346 (JvPrivMutexUnlock): Likewise.
7347 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7348 Return value now jint.
7349 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7352 * Makefile.in: Rebuilt.
7353 * Makefile.am: Don't allow `jV' names.
7354 (maintainer-check): Depend on libjava.a.
7355 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7357 * Makefile.in: Rebuilt.
7358 * Makefile.am (NM): New macro.
7359 (maintainer-check): New target.
7361 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7363 * configure: Rebuilt.
7364 * configure.in: Use --enable-threads, not --enable-gc. Fix
7365 documentation for --enable-threads. Changed option to work like
7366 identical option in gcc/configure.
7368 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7370 * boehm.cc (mark_array): Use JvGetArrayLength.
7372 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7374 * exception.cc: New file (mostly written by Andrew MacLeod),
7375 exception handling support.
7376 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7377 Remove -fexceptions - it is now the default.
7379 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7380 (JvAllocObject): Renamed to _Jv_AllocObject.
7381 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7382 (loadClass): Renamed to _Jv_FindClass.
7383 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7384 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7385 * include/java-lang.h (JvGetArrayLength): New CNI function.
7386 * include/jvm.h (_Jv_FindClass): Added declaration.
7388 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7390 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7392 * java/lang/natClass.cc (getName): Add implementation.
7393 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7395 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7397 * Makefile.in: Rebuilt.
7398 * Makefile.am (.class.o): Added -fexceptions.
7400 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7402 * configure: Rebuilt.
7403 * configure.in: Don't check for __nanosleep.
7404 * posix-threads.cc (nanosleep): Never define.
7406 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7408 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7411 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7413 * java/lang/natThread.cc (enumerate): Uncommented.
7414 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7415 (interrupt): Call it.
7417 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7419 * configure: Rebuilt.
7420 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7422 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7424 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7425 * include/java-lang.h (Thread): Added `interrupted_' method.
7426 * java/lang/Thread.java (interrupted_): New method.
7427 * java/lang/natThread.cc (join): Possibly throw interrupted
7428 exception after join finishes.
7429 (interrupted_): New method.
7430 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7432 (JvPrivThreadJoin): New function.
7433 (really_start): Notify all threads waiting for this thread.
7434 (struct starter): Added `data' member.
7435 (JvPrivThreadStart): Set it.
7436 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7438 (JvPrivThreadJoin): No longer inline.
7439 (JvPrivThreadInterrupt): New function.
7441 * include/no-threads.h (JvPrivThreadSleep): Removed.
7442 * posix-threads.cc (JvPrivThreadSleep): Removed.
7444 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7446 * configure: Rebuilt.
7447 * configure.in (THREADOBJS): Initialize to no-threads.o in
7449 * posix-threads.cc (key): New global.
7450 (JvPrivInitThreads): New function.
7451 (really_start): Set thread-specific data to point to object.
7452 (JvPrivThreadStart): Added `daemon' argument.
7453 (JvPrivThreadSleep): Added `data' argument.
7454 * include/posix-threads.h (JvPrivInitThreads): Removed
7456 (JvPrivThreadCurrent): New function.
7457 * include/no-threads.h (JvPrivThreadInitData): Initialize
7458 JvPrivOnlyThread. Added `thread' argument.
7459 (JvPrivThreadCurrent): New function.
7460 (JvPrivThreadStart): Added `daemon' argument.
7461 * no-threads.cc: New file.
7462 * java/lang/natThread.cc (init_data): New function.
7464 (start): Set `alive' member.
7465 (stop_): Clear `alive' member.
7466 (destroy): Likewise.
7467 (currentThread): Implemented.
7468 (start): Pass `daemon' argument to JvPrivThreadStart.
7470 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7471 (Thread): Added `init_data' method.
7472 * java/lang/Thread.java (alive, data): New instance variables.
7473 (init_data): New private method.
7474 (isAlive): No longer native.
7476 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7478 * include/java-lang.h (JvRunMain): Declare.
7479 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7480 * prims.cc (JvRunMain): New function.
7481 (main_signature, main_name): New globals.
7483 * boehm.cc (mark_array): Use `elements' function and not
7484 operator[] on jarray.
7486 * posix-threads.cc: Include <config.h>. Define nanosleep if
7489 * configure: Rebuilt.
7490 * configure.in: Check for _nanosleep.
7492 * configure: Rebuilt.
7493 * configure.in: Check for pthread_mutexattr_settype.
7495 * include/cni.h (class JvSynchronize): New class.
7496 * java/lang/Thread.java (sleep): Throws InterruptedException.
7497 (join): Throws InterruptedException.
7498 (resume): Not native.
7499 (resume_): New method.
7500 (start): Now synchronized.
7501 (stop_): New method.
7502 (Thread): Synchronize when accessing threadNumber.
7504 * java/lang/natThread.cc (throwException): New macro.
7505 (sleep): Throw InterruptedException.
7508 * include/java-lang.h (Runtime): Added interrupted().
7510 * boehm.cc (call_finalizer): Correctly initialize jobj.
7511 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7513 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7516 * configure: Rebuilt.
7517 * configure.in: Added support for --disable-threads.
7518 * include/no-threads.h: New file.
7520 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7522 * Makefile.in: Rebuilt.
7523 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7524 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7525 (libjava_a_LIBADD): Added THREADOBJS.
7526 * configure: Rebuilt.
7527 * configure.in: Added --with-threads option.
7528 * posix-threads.cc: New file.
7529 * include/posix-threads.h: New file.
7530 * include/java-lang.h (Object): Added static member sync_mutex,
7531 member sync_info, method init_mutex.
7532 (struct JvSyncInfo): New struct.
7533 Include "java-threads.h".
7534 * prims.cc (soft_monitorenter): Wrote.
7535 (soft_monitorexit): Likewise.
7536 * java/lang/natObject.cc (init_mutex): New method.
7540 (sync_mutex): Define.
7541 Include "java-threads.h".
7543 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7545 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7546 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7548 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7550 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7551 Added extern "Java" in places to tell G++ Object is a "Java" type.
7552 Other minor renaming and fixes.
7553 * include/java-io.h (FileDescriptor): Add friend class declarations.
7554 G++ no longer allows non-Java types in method parameters and results
7555 of Java classes. Converted most offending methods to friends.
7556 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7557 * java/lang/natSystem.cc (setProperty): Make friend.
7558 * java/lang/natString.cc, include/java-lang.h (String): Rename
7559 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7560 * include/java-lang.h (JArray): Remove getData and eoprator[].
7561 Add elements friend function instead.
7562 * java/lang/natSystem.cc (arraycopy): Use elements function.
7563 * java/io/natFileDescriptor.cc (read, write): Likewise.
7564 * include/java-lang.h (Object): Remove unused make method.
7565 (System::setProperty(char*,char*)): Turn into friend function.
7566 (Class): Rename newObject by JvAllocObject.
7567 * prims.cc: Update to use JvAllocObject, and elements.
7569 * java/lang/natDouble.cc: Fix double -> jdouble.
7571 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7573 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7575 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7577 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7578 * include/java-lang.h (Runtime): finalize_on_exit and
7579 runFinalizersOnExit now static.
7580 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7582 (finalize_on_exit): Now static.
7584 * boehm.cc (mark_obj): Get class using getClass() method on
7586 (_dispatchTable): Removed.
7588 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7590 * java/io/natFileDescriptor.cc (open_read): Only call open if
7592 (open_write): Likewise.
7594 * Makefile.in: Rebuilt.
7595 * Makefile.am ($(nat_files)): Depend on config.h.
7597 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7599 * prims.cc (ObjectClass): Now a macro; updated for new class name
7601 (StringClass): Likewise.
7602 (ClassClass): Likewise.
7604 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7606 * java/io/natFileDescriptor.cc (available): Do nothing unless
7607 HAVE_SELECT defined.
7608 * java/util/natDate.cc (setTime): Conditional on
7610 (toString): Conditional on HAVE_TIME.
7611 * aclocal.m4, configure: Rebuilt.
7612 * acinclude.m4: New file.
7613 * configure.in: Don't actually call AM_EXEEXT. Call
7614 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7615 --with-target-subdir option. Check for select and open
7618 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7620 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7621 (call_finalizer): Likewise.
7622 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7623 * prims.cc (newObject): Pass actual method pointer to
7624 JvPrivRegisterFinalizer.
7625 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7626 (JvPrivRegisterFinalizer): Changed interface.
7628 * Makefile.in: Rebuilt.
7629 * Makefile.am (MOSTLYCLEANFILES): New macro.
7630 (CLEANFILES): Removed javao_files.
7632 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7634 * nogc.cc: New file.
7635 * Makefile.in: Rebuilt.
7636 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7637 (EXTRA_libjava_a_SOURCES): New macro.
7638 (libjava_a_SOURCES): Removed boehm.cc.
7639 (libjava_a_DEPENDENCIES): Added GCOBJS.
7640 (libjava_a_LIBADD): Likewise.
7641 * configure: Rebuilt.
7642 * configure.in: Added code for --enable-gc=TYPE.
7644 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7646 * boehm.cc (mark_array): Don't further dereference pointer from
7649 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7650 * Makefile.in: Rebuilt.
7651 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7652 one for boehm-gc build directory.
7654 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7656 * include/java-lang.h (finalize_on_exit): New instance variable in
7657 java::lang::Runtime.
7658 (runFinalizersOnExit): New method.
7659 * java/lang/Runtime.java (finalize_on_exit): New instance
7661 (runAllFinalizers_): New private method.
7662 (runFinalizersOnExit): New method.
7663 * boehm.cc (JvPrivRunFinalizers): New function.
7664 (JvPrivRunAllFinalizers): Likewise.
7665 (JvPrivRunGC): Likewise.
7666 * java/lang/natRuntime.cc: Include "jvm.h".
7667 (gc): Call JvPrivRunGC.
7668 (runFinalization): Call JvPrivRunFinalizers.
7669 (runFinalizersOnExit): New method.
7670 (exit_): Call JvPrivRunAllFinalizers if required.
7671 * include/jvm.h: Declare JvPrivRunFinalizers,
7672 JvPrivRunAllFinalizers, JvPrivRunGC.
7674 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7676 * boehm.cc (JvPrivRegisterFinalizer): New function.
7677 (call_finalizer): Likewise.
7678 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7679 * prims.cc (finalize_name): New global.
7680 (newObject): Just call other newObject.
7681 (newObject): Register finalizer if it exists.
7683 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7685 * prims.cc (gc_malloc): Removed.
7686 (makeUtf8Const): Use JvPrivAllocBytes.
7687 (lookupArray): Likewise.
7688 (newPrimArray): Likewise.
7689 (JvNewObjectArray): Use JvPrivAllocArray.
7690 (newObject): Use JvPrivAllocObj.
7691 (newObject): Likewise.
7692 Changed Method -> JvMethod everywhere.
7693 Changed Field -> JvField everywhere.
7694 * include/java-lang.h (Object): Changed type of `fields' to
7696 (jmethodID, jfieldID): New typedefs.
7697 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7699 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7701 (METHOD_NATIVECODE): Moved from java-lang.h.
7702 (class JvField): New class.
7703 (JvGetFirstInstanceField): New function.
7704 (JvFieldIsRef): Likewise.
7705 (JvGetObjectField): Likewise.
7706 (JvNumInstanceFields): Likewise.
7708 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7710 * boehm.cc: New file.
7711 * Makefile.in: Rebuilt.
7712 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7713 (INCLUDES): Added -I options to find boehm-gc files.
7715 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7717 * configure: Rebuilt.
7718 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7720 * Makefile.in: Rebuilt.
7721 * Makefile.am (nat_files): New macro.
7722 (libjava_a_DEPENDENCIES): Use it.
7723 (libjava_a_LIBADD): Likewise.
7724 ($(nat_files)): New static pattern rule.
7725 (class_files): Run separate find to find .class files.
7726 (javao_files): Compute based on class_files.
7727 (BUILT_SOURCES): New macro.
7729 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7731 * Makefile.am (java_files): New macro.
7732 (class_files): Likewise.
7733 (javao_files): Likewise.
7734 (libjava_a_DEPENDENCIES): Include $(javao_files).
7735 (libjava_a_LIBADD): Likewise.
7736 (classes.stamp): Depend on $(java_files); only recompile changed
7739 (CLEANFILES): Don't run find; use macros. Don't mention
7741 (.class.o): New target.
7742 (compiled.stamp): Removed.
7744 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7746 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7747 LineNumberReader}>java: Newly-implemented standard classes.
7749 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7751 * Makefile.in: Rebuilt.
7752 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7754 * Makefile.in: Rebuilt.
7755 * Makefile.am (hack): New macro.
7756 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7758 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7760 * include/config.h.in: New file.
7761 * include/config.h: Removed.
7762 * acconfig.h: New file.
7763 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7764 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7765 libjava_a_LIBADD): New macros.
7766 (INCLUDES): New macro.
7769 (SUFFIXES): Removed.
7771 (libjava.a): Removed.
7773 * configure: Rebuilt.
7774 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7775 Look for headers and functions we require. Create
7778 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7780 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7781 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7782 soft_lookupinterfacemethod): New functions.
7783 (PrimClass): Actually initialize the primitive classes.
7784 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7786 * include/java-util.h: Removed java::util definition.
7787 * include/cni.h: Moved java::util here and added Properties.
7788 Added more function prototypes.
7789 * include/java-lang.h: Added mroe methods and friend declarations.
7790 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7791 * include/jvm.h (strLengthUtf8): Add declaration.
7793 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7795 * java/lang/{Byte,Short,Void}.java: New classes.
7796 * java/lang/Character.java (isJavaIdentifierStart,
7797 JavaIdentifierPart): New static methods.
7798 * java/lang/Number.java (byteValue, shortValue): New methods.
7800 * java/lang/String.java (intern, hashCode): Make native.
7801 * java/lang/natString.cc: New file. Handle the string pool.
7802 * Makefile.am: Build natString.o. Use CXXFLAGS.
7804 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7805 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7806 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7807 * java/lang/System.java (setProperty): New private method.
7808 (initProperties): Take argument, and make native.
7809 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7810 (currentTimeMillis): Make more robust.
7812 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7813 * java/io/UnsupportedEncodingException.java: New exception class.
7815 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7816 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7818 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7820 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7821 * prims.cc: Added bunch of stuff.
7822 * include/cni.h: Added various definitions.
7823 * include/java-lang.h: Added Method, various friends, some macros.
7825 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7826 * java/lang/System.java (arraycopy): Make native.
7828 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7830 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7831 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7832 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7833 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7835 * java/lang/Runtime.java: Declare methods as native instead of
7837 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7838 * java/lang/System.java: Comment out some stuff, for now.
7839 * java/lang/Thread.java: Re-write. Use native methods.
7840 * java/lang/NativeLang.java: Remove most of it.
7842 * java/util/natDate.cc: Native (C++) methods for Date.
7843 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7844 * java/util/Date.java: Complete re-write.
7846 * java/io/io-defs.h: New header file.
7847 * java/io/FileDescriptor.java: Add a bunch of private methods,
7848 mostly moved from NativeIO.java and natNativeIO.cc.
7849 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7850 * java/io/File.java: Use new code.
7851 * java/io/{FileInputStream.java.FileOutputStream.java,
7852 RandomAccessFile.java}: Use new private FileDescriptor methods.
7853 * java/io/NativeIO.java: Removed, no longer used.
7855 * java/io/StreamTokenizer.java (numericChars): Make char array.
7857 * include/*.h: Various header files used by the C++ native code.
7859 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7860 New autoconf+automake-based setup.
7861 * prims.cc: New file for Java "primitives".